hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

query I rowsort
SELECT ALL 31 * + 22
----
682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT 89 + + + MIN( DISTINCT + CAST( + 66 AS SIGNED ) ) + - + 74 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1
SELECT 89 + + + MIN ( DISTINCT + CAST ( + 66 AS INTEGER ) ) + - + 74 AS col0
----
81

query I rowsort
SELECT 8 + + + 72 - + 32 AS col0
----
48

query I rowsort
SELECT ALL + 67 - 75 AS col2
----
-8

query II rowsort
SELECT 90, + 30 AS col1
----
90
30

query II rowsort
SELECT - 1, 60 AS col2
----
-1
60

query I rowsort
SELECT + 83 + + 78
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7
SELECT + COALESCE ( + + COUNT( * ), + COUNT( * ) * COUNT( * ) * - + CASE 51 WHEN - 2 + 53 THEN NULL WHEN 54 DIV + 88 THEN + 93 * - - 96 * 31 * - 23 ELSE + - 7 + + + CAST( NULL AS SIGNED ) DIV + + 2 END ) DIV - 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7
SELECT + COALESCE ( + + COUNT ( * ), + COUNT ( * ) * COUNT ( * ) * - + CASE 51 WHEN - 2 + 53 THEN NULL WHEN 54 / + 88 THEN + 93 * - - 96 * 31 * - 23 ELSE + - 7 + + + CAST ( NULL AS INTEGER ) / + + 2 END ) / - 4 AS col0
----
0

query I rowsort
SELECT - 48 * 45 * - 90
----
194400

query I rowsort
SELECT ALL 24 - - 81
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL COALESCE ( - + NULLIF ( + COUNT( * ), 75 * + SUM( ALL + + 45 ) + - + 86 ), + 16 * - COUNT( * ), + 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL COALESCE ( - + NULLIF ( + COUNT ( * ), 75 * + SUM ( ALL + + 45 ) + - + 86 ), + 16 * - COUNT ( * ), + 13 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL + 96 * - - SUM( ALL 8 ) * + + 48 + - ( + + ( + COALESCE ( + + MIN( - + ( ( + 17 ) ) ), - COUNT( * ), 6 ) ) ) * + - 9 AS col2
----
36711

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL + 96 * - - SUM ( ALL 8 ) * + + 48 + - ( + + ( + COALESCE ( + + MIN ( - + ( ( + 17 ) ) ), - COUNT ( * ), 6 ) ) ) * + - 9 AS col2
----
36711

query I rowsort
SELECT - 29 + 14 + + 46 col0
----
31

query I rowsort
SELECT DISTINCT CASE 96 WHEN 21 * - 1 THEN - - 68 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT DISTINCT + MIN( DISTINCT + 90 ) * 98 AS col1
----
8820

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT + MIN ( DISTINCT + 90 ) * 98 AS col1
----
8820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT ALL - 23 * CAST( + 67 AS SIGNED ) * - 54 AS col0
----
83214

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL - 23 * CAST ( + 67 AS INTEGER ) * - 54 AS col0
----
83214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-16
SELECT - 76 DIV MIN( + - 14 )
----
5

skipif mysql # not compatible
query I rowsort label-16
SELECT - 76 / MIN ( + - 14 )
----
5

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-18
SELECT - 43 / + - 11 * CAST( NULL AS DECIMAL ) + - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT - 43 / + - 11 * CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col1
----
NULL

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

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

query I rowsort
SELECT - 58 * ( 7 )
----
-406

onlyif mysql # DIV for integer division: 
query II rowsort label-21
SELECT 18 DIV - 51 + + - 38 DIV - 61, + 56 AS col2
----
0
56

skipif mysql # not compatible
query II rowsort label-21
SELECT 18 / - 51 + + - 38 / - 61, + 56 AS col2
----
0
56

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-23
SELECT ALL + 54 DIV - - COUNT( - + 60 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL + 54 / - - COUNT ( - + 60 ) AS col2
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT + + COUNT( * ) + 30 + 7 + + + 77 * 74 AS col2
----
5736

skipif mysql # not compatible
query I rowsort label-25
SELECT + + COUNT ( * ) + 30 + 7 + + + 77 * 74 AS col2
----
5736

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

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

query I rowsort
SELECT ALL - NULLIF ( - + 12, + 5 ) * 2 + + 67 AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-28
SELECT 57 * + + 15 + CAST( - 83 AS SIGNED ) AS col2
----
772

skipif mysql # not compatible
query I rowsort label-28
SELECT 57 * + + 15 + CAST ( - 83 AS INTEGER ) AS col2
----
772

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-30
SELECT ALL - + CAST( NULL AS SIGNED ) * - COUNT( * ) + + 3 - COUNT( * ) * 7 * - - 38 + + 65 + + - NULLIF ( - 67, 71 ) + 88 - + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 3 - COUNT ( * ) * 7 * - - 38 + + 65 + + - NULLIF ( - 67, 71 ) + 88 - + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT - ( - + 95 ) + + 63 * - NULLIF ( - COUNT( * ), - 71 + - - 97 ) AS col0
----
158

skipif mysql # not compatible
query I rowsort label-31
SELECT - ( - + 95 ) + + 63 * - NULLIF ( - COUNT ( * ), - 71 + - - 97 ) AS col0
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-32
SELECT DISTINCT - + 62 * + 53 + + CASE MAX( ALL 49 ) WHEN + 14 + + + 97 THEN NULL WHEN 94 THEN - COALESCE ( - + 6, + 51 * - CAST( NULL AS SIGNED ) ) * + - 9 ELSE NULL END + + COUNT( * ) + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT - + 62 * + 53 + + CASE MAX ( ALL 49 ) WHEN + 14 + + + 97 THEN NULL WHEN 94 THEN - COALESCE ( - + 6, + 51 * - CAST ( NULL AS INTEGER ) ) * + - 9 ELSE NULL END + + COUNT ( * ) + - 90
----
NULL

query II rowsort
SELECT + 63, - 50 AS col1
----
63
-50

query II rowsort
SELECT + - 63, 94 - 29 AS col0
----
-63
65

query I rowsort
SELECT ALL 90 * 14 * + + 94 + - 13 + - 89 * + 94 AS col2
----
110061

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

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

query II rowsort
SELECT 10, 24 col2
----
10
24

onlyif mysql # aggregate syntax: 
query II rowsort label-38
SELECT + 41, - COUNT( * ) col1
----
41
-1

skipif mysql # not compatible
query II rowsort label-38
SELECT + 41, - COUNT ( * ) col1
----
41
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT - ( + 97 ) * + + 99 * + - COUNT( * ) + SUM( + 84 )
----
9687

skipif mysql # not compatible
query I rowsort label-39
SELECT - ( + 97 ) * + + 99 * + - COUNT ( * ) + SUM ( + 84 )
----
9687

query II rowsort
SELECT - 14, - 98 AS col0
----
-14
-98

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

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

query I rowsort
SELECT DISTINCT + 8 * 11 * + ( + 25 )
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL + 9 * + + CASE - 39 WHEN + 78 * - - 50 THEN NULL ELSE - + 4 END + COUNT( * ) + + + 94 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL + 9 * + + CASE - 39 WHEN + 78 * - - 50 THEN NULL ELSE - + 4 END + COUNT ( * ) + + + 94 AS col1
----
59

query II rowsort
SELECT ALL 9 col2, 4 AS col1
----
9
4

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT + 96 * ( + MIN( ALL + - 89 ) ) AS col2
----
-8544

skipif mysql # not compatible
query I rowsort label-47
SELECT + 96 * ( + MIN ( ALL + - 89 ) ) AS col2
----
-8544

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-48
SELECT + COUNT( + CAST( - 95 AS DECIMAL ) ) - - CASE - 64 WHEN + ( + COALESCE ( + 21, - 23 + 44 + - COUNT( * ) ) ) THEN + COALESCE ( + 64, 41 + - 62 ) WHEN - 63 THEN NULL ELSE - 71 END + + + COUNT( * ) - - ( - 30 ) * 71 * + 85
----
-181119

skipif mysql # not compatible
query I rowsort label-48
SELECT + COUNT ( + CAST ( - 95 AS REAL ) ) - - CASE - 64 WHEN + ( + COALESCE ( + 21, - 23 + 44 + - COUNT ( * ) ) ) THEN + COALESCE ( + 64, 41 + - 62 ) WHEN - 63 THEN NULL ELSE - 71 END + + + COUNT ( * ) - - ( - 30 ) * 71 * + 85
----
-181119

query I rowsort
SELECT ALL 54 * + 18 AS col2
----
972

query I rowsort
SELECT + 60 * - 86 AS col0
----
-5160

query I rowsort
SELECT + 36 * + 90 AS col2
----
3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-52
SELECT ALL COALESCE ( - 7, + 62, - - 8 DIV + 54 - + COALESCE ( SUM( + CAST( NULL AS SIGNED ) ), + ( 6 ), - COALESCE ( + ( + 51 ), 64 * - 4 * + 67 + - - COALESCE ( 97, + 84 * SUM( ALL + 20 ) ) * - 81 ) DIV - 68 + - 24 + - - COUNT( * ) ) + - 43 * - - CAST( + 26 AS SIGNED ), + 31 )
----
-7

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL COALESCE ( - 7, + 62, - - 8 / + 54 - + COALESCE ( SUM ( + CAST ( NULL AS INTEGER ) ), + ( 6 ), - COALESCE ( + ( + 51 ), 64 * - 4 * + 67 + - - COALESCE ( 97, + 84 * SUM ( ALL + 20 ) ) * - 81 ) / - 68 + - 24 + - - COUNT ( * ) ) + - 43 * - - CAST ( + 26 AS INTEGER ), + 31 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT + 88 - + ( + ( + 73 ) ) + + NULLIF ( + ( + - 33 ), - + COUNT( * ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-53
SELECT + 88 - + ( + ( + 73 ) ) + + NULLIF ( + ( + - 33 ), - + COUNT ( * ) ) AS col0
----
-18

query I rowsort
SELECT - 65 - - 51 + 64 * 88 AS col1
----
5618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-55
SELECT - ( + - CASE - CAST( - - 97 AS SIGNED ) WHEN + 15 THEN 35 * 15 + + 65 ELSE - - 76 END ) col1
----
76

skipif mysql # not compatible
query I rowsort label-55
SELECT - ( + - CASE - CAST ( - - 97 AS INTEGER ) WHEN + 15 THEN 35 * 15 + + 65 ELSE - - 76 END ) col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-56
SELECT ALL SUM( + + 97 ) AS col2, - 4 AS col2
----
97
-4

skipif mysql # not compatible
query II rowsort label-56
SELECT ALL SUM ( + + 97 ) AS col2, - 4 AS col2
----
97
-4

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

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

query I rowsort
SELECT + 70 * - 42 AS col1
----
-2940

query I rowsort
SELECT + 29 + 51 + - ( + - 16 ) * 60 + 83 AS col1
----
1123

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT DISTINCT + 18 DIV + - 55 + + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT + 18 / + - 55 + + - 39
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT ALL - 14 DIV - - 18 + + 35 col2
----
35

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL - 14 / - - 18 + + 35 col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-62
SELECT ALL 30 DIV - 65 + + - 25 + SUM( ( - 77 ) )
----
-102

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL 30 / - 65 + + - 25 + SUM ( ( - 77 ) )
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-63
SELECT ALL - 49 DIV + - 3 + - 86 + - 41 + - 79 + - + COUNT( * ) DIV 9 * - - 66 AS col0
----
-190

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - 49 / + - 3 + - 86 + - 41 + - 79 + - + COUNT ( * ) / 9 * - - 66 AS col0
----
-190

onlyif mysql # aggregate syntax: 
query II rowsort label-64
SELECT - + 51 + + COUNT( * ) * + - 2 col0, 8
----
-53
8

skipif mysql # not compatible
query II rowsort label-64
SELECT - + 51 + + COUNT ( * ) * + - 2 col0, 8
----
-53
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-65
SELECT + CAST( + NULLIF ( - 35, + AVG ( DISTINCT 75 ) ) AS SIGNED ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-65
SELECT + CAST ( + NULLIF ( - 35, + AVG ( DISTINCT 75 ) ) AS INTEGER ) AS col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT - - 70 DIV 36 * - - 57
----
57

skipif mysql # not compatible
query I rowsort label-66
SELECT - - 70 / 36 * - - 57
----
57

query I rowsort
SELECT - + 1 + 4 + - - 94 + + 88 * + 19 * 77
----
128841

onlyif mysql # aggregate syntax: 
query II rowsort label-68
SELECT ALL - + 0 * - - 61 + - - COUNT( * ) - 92 - - - 96 + + - 10 - - 61 AS col0, - COUNT( * ) AS col1
----
-136
-1

skipif mysql # not compatible
query II rowsort label-68
SELECT ALL - + 0 * - - 61 + - - COUNT ( * ) - 92 - - - 96 + + - 10 - - 61 AS col0, - COUNT ( * ) AS col1
----
-136
-1

query I rowsort
SELECT DISTINCT + ( - 98 ) AS col0
----
-98

query I rowsort
SELECT ALL 63 * + - NULLIF ( + + 15, + - 37 ) - + - 21
----
-924

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

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

query I rowsort
SELECT DISTINCT + + ( - 55 ) AS col2
----
-55

query I rowsort
SELECT ALL - 24 * + 28
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT + - 8 * - - ( 12 ) - COUNT( * ) * + - 60 + 19 * 33 * - + CASE + 49 WHEN - 90 THEN - 31 WHEN NULLIF ( + + COUNT( * ), - 92 ) + + 49 THEN NULL ELSE NULL END * - COUNT( * ) / - 91 - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT + - 8 * - - ( 12 ) - COUNT ( * ) * + - 60 + 19 * 33 * - + CASE + 49 WHEN - 90 THEN - 31 WHEN NULLIF ( + + COUNT ( * ), - 92 ) + + 49 THEN NULL ELSE NULL END * - COUNT ( * ) / - 91 - 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-75
SELECT COALESCE ( + - 18, + NULLIF ( + + 41, - - 82 + + AVG ( DISTINCT + CAST( - - 92 AS SIGNED ) ) ) ) * 19 * + COALESCE ( 81, MIN( ALL - 56 ) DIV - SUM( ALL + 20 ) + + 15 + + - 18, 95 + + + 58 ) + - + COUNT( * )
----
-27703

skipif mysql # not compatible
query I rowsort label-75
SELECT COALESCE ( + - 18, + NULLIF ( + + 41, - - 82 + + AVG ( DISTINCT + CAST ( - - 92 AS INTEGER ) ) ) ) * 19 * + COALESCE ( 81, MIN ( ALL - 56 ) / - SUM ( ALL + 20 ) + + 15 + + - 18, 95 + + + 58 ) + - + COUNT ( * )
----
-27703

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-77
SELECT 88 + + + 96 + - - 13 DIV 37 col2
----
184

skipif mysql # not compatible
query I rowsort label-77
SELECT 88 + + + 96 + - - 13 / 37 col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT CASE - CASE 12 WHEN - 56 + + 49 THEN 63 ELSE NULL END WHEN - 74 THEN NULL WHEN - - 9 THEN - 27 END + 93 * + COUNT( - 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-78
SELECT CASE - CASE 12 WHEN - 56 + + 49 THEN 63 ELSE NULL END WHEN - 74 THEN NULL WHEN - - 9 THEN - 27 END + 93 * + COUNT ( - 9 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 4 * - + 87 col2
----
-348

query I rowsort
SELECT ALL - 95 * - 1 AS col1
----
95

query I rowsort
SELECT 23 + 76
----
99

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-83
SELECT 30 * + 32 * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT 30 * + 32 * - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT 12 + ( 55 ) * MIN( 83 ) + - + 61 - - ( - 37 ) + + + 7
----
4486

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT 12 + ( 55 ) * MIN ( 83 ) + - + 61 - - ( - 37 ) + + + 7
----
4486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-85
SELECT DISTINCT 29 DIV - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT 29 / - COUNT ( * ) col0
----
-29

query I rowsort
SELECT 42 + 83
----
125

query II rowsort
SELECT DISTINCT 69 AS col0, 80
----
69
80

query I rowsort
SELECT ALL 64 * NULLIF ( + 13, 51 * + - 72 + - 66 ) * - 24
----
-19968

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT 20 + - 87 DIV + 85 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-89
SELECT 20 + - 87 / + 85 AS col0
----
19

query II rowsort
SELECT 96 AS col0, + 2
----
96
2

query I rowsort
SELECT 32 * 17
----
544

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL 11 + + 62 * - SUM( - ( - 43 ) ) col0
----
-2655

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL 11 + + 62 * - SUM ( - ( - 43 ) ) col0
----
-2655

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT DISTINCT COUNT( * ) + 21 * - 45 col0
----
-944

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT COUNT ( * ) + 21 * - 45 col0
----
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT - 35 + + COUNT( DISTINCT + 83 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT - 35 + + COUNT ( DISTINCT + 83 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT + COALESCE ( - 71, - 75 ) * 69 + - 31 * - - ( + - COUNT( 74 ) ) - + + 84 * + - 36 + - - COUNT( - + 4 ) * 63 AS col2
----
-1781

skipif mysql # not compatible
query I rowsort label-95
SELECT + COALESCE ( - 71, - 75 ) * 69 + - 31 * - - ( + - COUNT ( 74 ) ) - + + 84 * + - 36 + - - COUNT ( - + 4 ) * 63 AS col2
----
-1781

query I rowsort
SELECT + 38 * - + 52
----
-1976

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-97
SELECT 92 * COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0, 7 * + + 33 * + - 22 AS col2
----
0
-5082

skipif mysql # not compatible
query II rowsort label-97
SELECT 92 * COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0, 7 * + + 33 * + - 22 AS col2
----
0
-5082

query I rowsort
SELECT ALL - 19 - + 53 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT + + 44 * 84 * + CASE + 48 WHEN COALESCE ( - ( COUNT( * ) ), - 44 ) + ( + 20 ) THEN - 1 END - - 61 + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT + + 44 * 84 * + CASE + 48 WHEN COALESCE ( - ( COUNT ( * ) ), - 44 ) + ( + 20 ) THEN - 1 END - - 61 + - 71
----
NULL

query I rowsort
SELECT 71 * + + ( + + 1 ) * + 15 * + 26 AS col0
----
27690

query I rowsort
SELECT ALL 62 * - - 3
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT COUNT( * ) + - 61 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-102
SELECT COUNT ( * ) + - 61 AS col0
----
-60

query I rowsort
SELECT ALL - NULLIF ( ( 72 ), 63 ) AS col0
----
-72

query I rowsort
SELECT + NULLIF ( + 23, 44 - + ( COALESCE ( 17, + 68 - - ( 41 ) ) ) )
----
23

query II rowsort
SELECT ALL - 92 AS col2, + 9 AS col1
----
-92
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-106
SELECT DISTINCT - 25 * - + 93 DIV - COUNT( * ), - 41 AS col1
----
-2325
-41

skipif mysql # not compatible
query II rowsort label-106
SELECT DISTINCT - 25 * - + 93 / - COUNT ( * ), - 41 AS col1
----
-2325
-41

query I rowsort
SELECT CASE + 53 WHEN 75 THEN - 58 * - 93 ELSE NULL END * - 59 * - ( - + 66 ) * + CASE - - 4 WHEN - - 16 THEN - 55 ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT - 37 / - 34 * COUNT( * ) + + + 10 * CASE - + 43 WHEN COUNT( * ) THEN - - 74 / + 15 ELSE NULL END AS col0, 96 AS col2
----
NULL
96

skipif mysql # not compatible
query II rowsort label-109
SELECT - 37 / - 34 * COUNT ( * ) + + + 10 * CASE - + 43 WHEN COUNT ( * ) THEN - - 74 / + 15 ELSE NULL END AS col0, 96 AS col2
----
NULL
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT 98 * + COUNT( ALL + 0 ) * - MAX( + 65 ) AS col1
----
-6370

skipif mysql # not compatible
query I rowsort label-111
SELECT 98 * + COUNT ( ALL + 0 ) * - MAX ( + 65 ) AS col1
----
-6370

onlyif mysql # DIV for integer division: 
query II rowsort label-112
SELECT 4 DIV 21 AS col2, 11
----
0
11

skipif mysql # not compatible
query II rowsort label-112
SELECT 4 / 21 AS col2, 11
----
0
11

query I rowsort
SELECT ALL - NULLIF ( + 10, - 51 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT 97 + + + 42 - - 79 + ( 67 ) + - 41 * COUNT( * ) * 66 + - COUNT( * )
----
-2422

skipif mysql # not compatible
query I rowsort label-114
SELECT 97 + + + 42 - - 79 + ( 67 ) + - 41 * COUNT ( * ) * 66 + - COUNT ( * )
----
-2422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-115
SELECT - MIN( DISTINCT - ( - 31 ) ) * + - COALESCE ( 98, ( 99 ) * - + CAST( NULL AS SIGNED ) DIV + ( - - 20 ) DIV - + ( 30 ) + + 14, ( + COUNT( * ) ) * CASE - 91 WHEN 13 THEN - 60 WHEN - 48 THEN + + 77 WHEN + + 29 THEN + CAST( - + 48 AS SIGNED ) END DIV - 1 * + CASE 66 WHEN - 28 THEN NULL ELSE + + CASE - - NULLIF ( - 50, + 36 ) WHEN + 11 THEN NULL ELSE COUNT( * ) END * - CASE + 65 WHEN - COUNT( DISTINCT + 25 ) THEN - COUNT( * ) * + + CAST( NULL AS SIGNED ) WHEN - 8 THEN NULL ELSE NULL END END - 50 * - 4 ) * + COALESCE ( - 0, - CASE ( COUNT( * ) ) WHEN - ( + AVG ( 58 ) ) THEN - 50 WHEN 93 * 28 - - 20 THEN NULL WHEN COUNT( - 41 ) THEN ( 98 ) * + 7 ELSE NULL END + CAST( NULL AS SIGNED ) ) + 97 - 2 col2
----
95

skipif mysql # not compatible
query I rowsort label-115
SELECT - MIN ( DISTINCT - ( - 31 ) ) * + - COALESCE ( 98, ( 99 ) * - + CAST ( NULL AS INTEGER ) / + ( - - 20 ) / - + ( 30 ) + + 14, ( + COUNT ( * ) ) * CASE - 91 WHEN 13 THEN - 60 WHEN - 48 THEN + + 77 WHEN + + 29 THEN + CAST ( - + 48 AS INTEGER ) END / - 1 * + CASE 66 WHEN - 28 THEN NULL ELSE + + CASE - - NULLIF ( - 50, + 36 ) WHEN + 11 THEN NULL ELSE COUNT ( * ) END * - CASE + 65 WHEN - COUNT ( DISTINCT + 25 ) THEN - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) WHEN - 8 THEN NULL ELSE NULL END END - 50 * - 4 ) * + COALESCE ( - 0, - CASE ( COUNT ( * ) ) WHEN - ( + AVG ( 58 ) ) THEN - 50 WHEN 93 * 28 - - 20 THEN NULL WHEN COUNT ( - 41 ) THEN ( 98 ) * + 7 ELSE NULL END + CAST ( NULL AS INTEGER ) ) + 97 - 2 col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-116
SELECT ALL - 46 + + + 60 DIV - 7
----
-54

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - 46 + + + 60 / - 7
----
-54

query I rowsort
SELECT 23 + + 48 AS col0
----
71

query I rowsort
SELECT 32 + + 33
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT ALL 11 DIV + ( + 32 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL 11 / + ( + 32 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-120
SELECT 55 DIV - 99 * + 24
----
0

skipif mysql # not compatible
query I rowsort label-120
SELECT 55 / - 99 * + 24
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-121
SELECT ALL - COUNT( * ) + + 33 AS col0, NULLIF ( - 28, - CAST( - - COUNT( * ) AS SIGNED ) - - + CAST( - + 14 AS SIGNED ) ) + - MIN( + + 21 ) * - 18 - - - 89 - 60
----
32
201

skipif mysql # not compatible
query II rowsort label-121
SELECT ALL - COUNT ( * ) + + 33 AS col0, NULLIF ( - 28, - CAST ( - - COUNT ( * ) AS INTEGER ) - - + CAST ( - + 14 AS INTEGER ) ) + - MIN ( + + 21 ) * - 18 - - - 89 - 60
----
32
201

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT - NULLIF ( - + 43, - - 82 * + - 93 - 13 ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-123
SELECT - NULLIF ( - + 43, - - 82 * + - 93 - 13 ) / - 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-124
SELECT NULLIF ( 39, - - COALESCE ( + 78, - ( - 74 ) * 30 ) ) + + + 54 + + COALESCE ( - 55, + - 37 ) + + COUNT( * ) * NULLIF ( + COUNT( * ), - 59 ) DIV - + 52 + + 27 + + + 62
----
127

skipif mysql # not compatible
query I rowsort label-124
SELECT NULLIF ( 39, - - COALESCE ( + 78, - ( - 74 ) * 30 ) ) + + + 54 + + COALESCE ( - 55, + - 37 ) + + COUNT ( * ) * NULLIF ( + COUNT ( * ), - 59 ) / - + 52 + + 27 + + + 62
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT 61 * + 47 * CAST( + COUNT( ALL - + 2 ) AS SIGNED ) AS col2
----
2867

skipif mysql # not compatible
query I rowsort label-125
SELECT 61 * + 47 * CAST ( + COUNT ( ALL - + 2 ) AS INTEGER ) AS col2
----
2867

query I rowsort
SELECT ALL 93 * - 1 * 89 AS col2
----
-8277

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

query I rowsort
SELECT DISTINCT 51 * - 65 col0
----
-3315

query I rowsort
SELECT ALL - 29 * - 50 + - - 93 + - 62 * - 57
----
5077

query I rowsort
SELECT + 38 + - + ( - 47 ) AS col1
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT + COUNT( * ) * - COUNT( * ) + - + 62 * - CASE - 45 WHEN 58 THEN - + 18 WHEN - + 41 / + + 72 THEN NULL END + + 68 - + + 5 * - 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT + COUNT ( * ) * - COUNT ( * ) + - + 62 * - CASE - 45 WHEN 58 THEN - + 18 WHEN - + 41 / + + 72 THEN NULL END + + 68 - + + 5 * - 64 col0
----
NULL

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

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

query I rowsort
SELECT ALL + CASE + 91 WHEN + 54 THEN - 80 * - 28 + + 63 WHEN - 53 THEN NULL ELSE - 79 * + 60 + 23 END AS col2
----
-4717

query I rowsort
SELECT + 96 + + 45
----
141

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

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

query I rowsort
SELECT + 13 + + 47 AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-138
SELECT ALL + CASE + - 15 WHEN + 67 THEN NULL ELSE + 97 END * ( + COUNT( * ) ) * 72 DIV + 63 * + - COUNT( * ) - + 97 + 78
----
-129

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL + CASE + - 15 WHEN + 67 THEN NULL ELSE + 97 END * ( + COUNT ( * ) ) * 72 / + 63 * + - COUNT ( * ) - + 97 + 78
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT - SUM( ALL - 86 ) * 29 + - 63 - 50 + + + 31 - - 78 * 74 * + - 24 * + 14
----
-1936980

skipif mysql # not compatible
query I rowsort label-139
SELECT - SUM ( ALL - 86 ) * 29 + - 63 - 50 + + + 31 - - 78 * 74 * + - 24 * + 14
----
-1936980

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-141
SELECT DISTINCT MIN( ALL - 73 ) * + - MIN( - 51 ) + + CAST( - MIN( DISTINCT + - ( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT MIN ( ALL - 73 ) * + - MIN ( - 51 ) + + CAST ( - MIN ( DISTINCT + - ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 53 + - - 62 + - 51 AS col0
----
64

query I rowsort
SELECT ALL + 14 + - 45 AS col2
----
-31

query I rowsort
SELECT - 27 * - 93 * - 67 + + 5 * - COALESCE ( + 69, 52 )
----
-168582

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT DISTINCT MAX( DISTINCT - 42 ) + + 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT MAX ( DISTINCT - 42 ) + + 42 AS col0
----
0

query II rowsort
SELECT ALL - 42 + - 63 + - 59 col0, + 21
----
-164
21

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT DISTINCT + 88 DIV + 79 col2
----
1

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT + 88 / + 79 col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-148
SELECT ALL + ( 37 ) + 26 - - 41 + 98 + + - CAST( - 51 AS SIGNED ) - + 83 * - - 14 * 25 col2
----
-28797

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL + ( 37 ) + 26 - - 41 + 98 + + - CAST ( - 51 AS INTEGER ) - + 83 * - - 14 * 25 col2
----
-28797

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT DISTINCT - MAX( ALL - - 67 ) + + 49
----
-18

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT - MAX ( ALL - - 67 ) + + 49
----
-18

query I rowsort
SELECT - 76 + + 46 * 70 col1
----
3144

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT - CASE - 48 WHEN + 62 THEN 82 * - 58 + COUNT( * ) + 16 * + + 16 ELSE 62 - - - 5 END + - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-151
SELECT - CASE - 48 WHEN + 62 THEN 82 * - 58 + COUNT ( * ) + 16 * + + 16 ELSE 62 - - - 5 END + - COUNT ( * )
----
-58

query I rowsort
SELECT DISTINCT - 25 * - 2 AS col1
----
50

query I rowsort
SELECT ALL CASE 88 WHEN - 36 THEN 53 END
----
NULL

query I rowsort
SELECT ALL - 16 - - ( 99 )
----
83

query I rowsort
SELECT - 40 * - 11 col0
----
440

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

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

query I rowsort
SELECT - 57 + 22 * - 66 AS col1
----
-1509

query I rowsort
SELECT DISTINCT - 98 - + 8 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL ( CASE CASE + ( - COUNT( * ) ) WHEN + 82 THEN - 83 ELSE NULL END WHEN - 82 * 70 THEN SUM( ALL + 69 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL ( CASE CASE + ( - COUNT ( * ) ) WHEN + 82 THEN - 83 ELSE NULL END WHEN - 82 * 70 THEN SUM ( ALL + 69 ) END ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 7 * + 8 AS col0
----
56

query I rowsort
SELECT DISTINCT + 98 - 27 AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-163
SELECT DISTINCT MIN( DISTINCT + 3 ) DIV 2 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT MIN ( DISTINCT + 3 ) / 2 AS col0
----
1

query I rowsort
SELECT + ( - 50 ) + 87
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT 44 DIV 97 + - 61 * - 62
----
3782

skipif mysql # not compatible
query I rowsort label-165
SELECT 44 / 97 + - 61 * - 62
----
3782

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT + 32 DIV - 10 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-166
SELECT + 32 / - 10 AS col1
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT ALL 74 DIV 7 + ( COALESCE ( COUNT( * ), 61 DIV + ( + 86 ) ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL 74 / 7 + ( COALESCE ( COUNT ( * ), 61 / + ( + 86 ) ) ) AS col2
----
11

query I rowsort
SELECT + NULLIF ( + 99, 94 + - 61 )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-171
SELECT DISTINCT - 51 * 39 + + COUNT( 99 ) DIV - COUNT( * ) AS col1
----
-1990

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT - 51 * 39 + + COUNT ( 99 ) / - COUNT ( * ) AS col1
----
-1990

query I rowsort
SELECT DISTINCT COALESCE ( + ( 50 ), 23 ) * - 45 + 10 AS col0
----
-2240

query I rowsort
SELECT DISTINCT - ( 78 ) * + 37 + 2
----
-2884

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-175
SELECT - ( + MIN( + 98 ) ) * - 97 - NULLIF ( + 23, + CAST( 64 AS SIGNED ) * + 31 - + 39 )
----
9483

skipif mysql # not compatible
query I rowsort label-175
SELECT - ( + MIN ( + 98 ) ) * - 97 - NULLIF ( + 23, + CAST ( 64 AS INTEGER ) * + 31 - + 39 )
----
9483

query I rowsort
SELECT + 42 * - 27 AS col0
----
-1134

query I rowsort
SELECT + 54 * 13 col2
----
702

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-179
SELECT CASE 76 WHEN 12 THEN NULL WHEN NULLIF ( 29, - 23 ) + COUNT( DISTINCT 57 ) THEN NULL ELSE - 81 - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-179
SELECT CASE 76 WHEN 12 THEN NULL WHEN NULLIF ( 29, - 23 ) + COUNT ( DISTINCT 57 ) THEN NULL ELSE - 81 - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL - MIN( ALL 76 ) * + 52 + COUNT( * )
----
-3951

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL - MIN ( ALL 76 ) * + 52 + COUNT ( * )
----
-3951

query I rowsort
SELECT DISTINCT + 1 * 41
----
41

query I rowsort
SELECT ALL ( + 42 ) * 37
----
1554

query I rowsort
SELECT + 88 * - 68 col0
----
-5984

query I rowsort
SELECT 20 * 73 + 30 AS col1
----
1490

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

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL NULLIF ( ( + COUNT ( * ) ), 27 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT DISTINCT NULLIF ( SUM( + 70 ), 22 )
----
70

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT NULLIF ( SUM ( + 70 ), 22 )
----
70

query I rowsort
SELECT + + 34 + 79
----
113

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

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

query I rowsort
SELECT DISTINCT 83 * + 86
----
7138

query I rowsort
SELECT - - 59 + 31 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT - - 43 DIV 24 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-191
SELECT - - 43 / 24 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-192
SELECT ALL + - 4 DIV NULLIF ( - 20, 33 + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL + - 4 / NULLIF ( - 20, 33 + - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - 59 - 28 * + 62 AS col0
----
-1795

query I rowsort
SELECT 57 * 17 col2
----
969

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

skipif mysql # not compatible
query I rowsort label-195
SELECT - - MAX ( ALL 54 )
----
54

query I rowsort
SELECT - 25 + ( + 23 + + 45 ) col0
----
43

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

skipif mysql # not compatible
query I rowsort label-197
SELECT - ( MIN ( ALL + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-198
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - 58 * COUNT( * ) + 23 ) col1
----
35

skipif mysql # not compatible
query I rowsort label-198
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - 58 * COUNT ( * ) + 23 ) col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-199
SELECT ALL + COUNT( * ) * ( 63 * ( + 34 DIV ( 23 * 95 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + COUNT ( * ) * ( 63 * ( + 34 / ( 23 * 95 ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT CASE + 15 WHEN - ( - COUNT( * ) ) THEN SUM( ALL - 22 ) * 38 END * + CASE 21 + 32 WHEN 31 THEN 10 * COUNT( * ) WHEN + 91 THEN NULL ELSE 25 + + 84 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-200
SELECT CASE + 15 WHEN - ( - COUNT ( * ) ) THEN SUM ( ALL - 22 ) * 38 END * + CASE 21 + 32 WHEN 31 THEN 10 * COUNT ( * ) WHEN + 91 THEN NULL ELSE 25 + + 84 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL + - 33 + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT - - 70 + COUNT ( * ) AS col0
----
71

query I rowsort
SELECT ALL 1 + 88 col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-204
SELECT MAX( ALL 43 ) * + COUNT( * ) - 28 DIV + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-204
SELECT MAX ( ALL 43 ) * + COUNT ( * ) - 28 / + COUNT ( * )
----
15

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

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

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

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

query I rowsort
SELECT DISTINCT + 32 + + - 78 AS col2
----
-46

query I rowsort
SELECT 4 + + 49 col1
----
53

query I rowsort
SELECT ( - 20 ) - 76 AS col2
----
-96

query I rowsort
SELECT 14 * + 19 + 33 AS col2
----
299

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT 33 + - 8 + - NULLIF ( + 43 + + COALESCE ( 61 + - 43, + 65 ) * 36, - 4 + + COUNT( * ) ) * - COUNT( * )
----
716

skipif mysql # not compatible
query I rowsort label-212
SELECT 33 + - 8 + - NULLIF ( + 43 + + COALESCE ( 61 + - 43, + 65 ) * 36, - 4 + + COUNT ( * ) ) * - COUNT ( * )
----
716

query I rowsort
SELECT ALL - 15 + - 69 AS col0
----
-84

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

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL 94 - - + COUNT ( * ) AS col2
----
95

query I rowsort
SELECT ALL + 42 * - 26 * 38
----
-41496

query I rowsort
SELECT DISTINCT ( - + ( - 28 ) ) * + 56
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT + 43 * - + COUNT( * ) + - 63 col1
----
-106

skipif mysql # not compatible
query I rowsort label-217
SELECT + 43 * - + COUNT ( * ) + - 63 col1
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-218
SELECT ALL 58 * + 76 DIV - 4
----
-1102

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL 58 * + 76 / - 4
----
-1102

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

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

query I rowsort
SELECT 77 + + 88 + - 75 * COALESCE ( 20, - 78, 89 - 77 )
----
-1335

query I rowsort
SELECT DISTINCT 93 - - 79
----
172

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

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

query I rowsort
SELECT 54 * + ( 68 ) AS col0
----
3672

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

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

query I rowsort
SELECT DISTINCT + ( + COALESCE ( - 56, + 15 ) )
----
-56

query I rowsort
SELECT - 43 + - 57 AS col0
----
-100

query I rowsort
SELECT ALL - 0 + 36 * 58 AS col0
----
2088

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-228
SELECT + ( CAST( - ( - ( + 78 ) ) AS SIGNED ) ) DIV 76
----
1

skipif mysql # not compatible
query I rowsort label-228
SELECT + ( CAST ( - ( - ( + 78 ) ) AS INTEGER ) ) / 76
----
1

query I rowsort
SELECT 56 + + - ( + 66 ) + 95 AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT 2 + + - NULLIF ( + 93, 31 ) + + COUNT( * ) DIV + 85 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-230
SELECT 2 + + - NULLIF ( + 93, 31 ) + + COUNT ( * ) / + 85 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT + 23 * - - COALESCE ( - 23, - COUNT( ALL + 52 ) )
----
-529

skipif mysql # not compatible
query I rowsort label-231
SELECT + 23 * - - COALESCE ( - 23, - COUNT ( ALL + 52 ) )
----
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT - 32 DIV - 30 + - 72 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-232
SELECT - 32 / - 30 + - 72 AS col1
----
-71

query I rowsort
SELECT ALL 2 + - 14 * - 27
----
380

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT COALESCE ( + 30, 18 ) + - 81 DIV 24
----
27

skipif mysql # not compatible
query I rowsort label-235
SELECT COALESCE ( + 30, 18 ) + - 81 / 24
----
27

query I rowsort
SELECT DISTINCT - 74 + 53
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT ALL 29 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL 29 / 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT COUNT( * ) + - - 5 col0
----
6

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT COUNT ( * ) + - - 5 col0
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT MAX( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-240
SELECT MAX ( 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-241
SELECT 17 * 12 * COALESCE ( CAST( NULL AS SIGNED ), 72 * ( 16 ) ) DIV 20 AS col1
----
11750

skipif mysql # not compatible
query I rowsort label-241
SELECT 17 * 12 * COALESCE ( CAST ( NULL AS INTEGER ), 72 * ( 16 ) ) / 20 AS col1
----
11750

query I rowsort
SELECT ALL + 19 * - 80 AS col0
----
-1520

query I rowsort
SELECT DISTINCT + 1 * + + 89 * 72 col2
----
6408

query I rowsort
SELECT 48 * - 98
----
-4704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-245
SELECT ALL - 10 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - 10 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT ALL - 3 col1, COUNT( * ) - - MIN( + 88 ) * + 89
----
-3
7833

skipif mysql # not compatible
query II rowsort label-246
SELECT ALL - 3 col1, COUNT ( * ) - - MIN ( + 88 ) * + 89
----
-3
7833

query II rowsort
SELECT + 67 AS col2, 39
----
67
39

onlyif mysql # DIV for integer division: 
query I rowsort label-248
SELECT DISTINCT - 66 DIV - - 82
----
0

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT - 66 / - - 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-249
SELECT ALL - 57 / + MAX( - + 30 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - 57 / + MAX ( - + 30 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-250
SELECT 64 DIV + 47 col0
----
1

skipif mysql # not compatible
query I rowsort label-250
SELECT 64 / + 47 col0
----
1

query I rowsort
SELECT DISTINCT 46 * - 12
----
-552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-252
SELECT ALL - CASE - - 27 WHEN - COUNT( * ) THEN NULL WHEN + 67 THEN NULL ELSE + 61 * - MIN( CAST( NULL AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL - CASE - - 27 WHEN - COUNT ( * ) THEN NULL WHEN + 67 THEN NULL ELSE + 61 * - MIN ( CAST ( NULL AS INTEGER ) ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 93 ) * - + 13 * ( 18 * 32 ) AS col2
----
696384

query I rowsort
SELECT DISTINCT - + 20 + + 76 AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-255
SELECT + CASE - - 13 WHEN - CAST( 59 AS SIGNED ) * 81 + 19 * 8 THEN NULL WHEN - ( + 69 ) - 12 * 74 THEN + 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT + CASE - - 13 WHEN - CAST ( 59 AS INTEGER ) * 81 + 19 * 8 THEN NULL WHEN - ( + 69 ) - 12 * 74 THEN + 19 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-256
SELECT + CAST( NULL AS SIGNED ) * - + COALESCE ( + - 18, 80 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-256
SELECT + CAST ( NULL AS INTEGER ) * - + COALESCE ( + - 18, 80 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 6 + + 32 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL - 71 + - 46 - SUM( DISTINCT 51 ) * 43 AS col1
----
-2310

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL - 71 + - 46 - SUM ( DISTINCT 51 ) * 43 AS col1
----
-2310

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

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

query I rowsort
SELECT + 7 + - 10 AS col2
----
-3

query I rowsort
SELECT DISTINCT ( + - 23 ) + - 61 AS col1
----
-84

query I rowsort
SELECT DISTINCT + 88 + + 48
----
136

query I rowsort
SELECT ALL 60 + - + 99 + 41 + 43 * - 92
----
-3954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-264
SELECT ALL MIN( DISTINCT - - 20 ) + - CASE CAST( 27 AS SIGNED ) WHEN 77 THEN 79 * 25 + 74 WHEN 9 THEN NULL ELSE - 67 END
----
87

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL MIN ( DISTINCT - - 20 ) + - CASE CAST ( 27 AS INTEGER ) WHEN 77 THEN 79 * 25 + 74 WHEN 9 THEN NULL ELSE - 67 END
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-265
SELECT - - COUNT( * ), - 54 + + + 35 col1
----
1
-19

skipif mysql # not compatible
query II rowsort label-265
SELECT - - COUNT ( * ), - 54 + + + 35 col1
----
1
-19

query I rowsort
SELECT ALL + CASE 46 WHEN + 71 THEN + 37 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-267
SELECT DISTINCT ( + 76 ) DIV - COUNT( ALL 77 ) + + 28
----
-48

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT ( + 76 ) / - COUNT ( ALL 77 ) + + 28
----
-48

query I rowsort
SELECT DISTINCT 22 + + 71 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-269
SELECT + CAST( NULL AS SIGNED ) col2, 38 DIV COUNT( * ) AS col2
----
NULL
38

skipif mysql # not compatible
query II rowsort label-269
SELECT + CAST ( NULL AS INTEGER ) col2, 38 / COUNT ( * ) AS col2
----
NULL
38

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-271
SELECT ALL 35 + + COALESCE ( - 27, 44 ) * - ( 32 DIV + 9 + 66 DIV 48 )
----
143

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL 35 + + COALESCE ( - 27, 44 ) * - ( 32 / + 9 + 66 / 48 )
----
143

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

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL + 95 + - COUNT ( * ) AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-273
SELECT - 86 AS col2, + CAST( - - 45 AS SIGNED ) col1
----
-86
45

skipif mysql # not compatible
query II rowsort label-273
SELECT - 86 AS col2, + CAST ( - - 45 AS INTEGER ) col1
----
-86
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-274
SELECT - 19 * COUNT( * ) DIV - 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-274
SELECT - 19 * COUNT ( * ) / - 40 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL + NULLIF ( 33, + SUM( ALL + 15 ) + + 8 )
----
33

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL + NULLIF ( 33, + SUM ( ALL + 15 ) + + 8 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT + COUNT( * ) - - - 5 * + 95
----
-474

skipif mysql # not compatible
query I rowsort label-277
SELECT + COUNT ( * ) - - - 5 * + 95
----
-474

query I rowsort
SELECT + 83 * + 74 * + 79
----
485218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-279
SELECT 15 * - 61 - - 72 DIV - + COUNT( * )
----
-987

skipif mysql # not compatible
query I rowsort label-279
SELECT 15 * - 61 - - 72 / - + COUNT ( * )
----
-987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-280
SELECT - CASE + 51 WHEN - COALESCE ( - 36, - 34 * 7 + + 4 ) THEN COALESCE ( 0, + 32 ) WHEN + NULLIF ( 92, 39 ) + CAST( NULL AS SIGNED ) / 69 THEN 52 WHEN ( ( 8 ) ) * 31 THEN + COUNT( ( + 95 ) ) * + 11 END * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT - CASE + 51 WHEN - COALESCE ( - 36, - 34 * 7 + + 4 ) THEN COALESCE ( 0, + 32 ) WHEN + NULLIF ( 92, 39 ) + CAST ( NULL AS INTEGER ) / 69 THEN 52 WHEN ( ( 8 ) ) * 31 THEN + COUNT ( ( + 95 ) ) * + 11 END * + 97 AS col0
----
NULL

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

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

query I rowsort
SELECT + 89 * - + 6
----
-534

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

query I rowsort
SELECT + 23 * + 47 AS col2
----
1081

query I rowsort
SELECT - 29 * 23
----
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT 52 * COUNT( * ) * - 9 * + + 28 + 67 * 34
----
-10826

skipif mysql # not compatible
query I rowsort label-286
SELECT 52 * COUNT ( * ) * - 9 * + + 28 + 67 * 34
----
-10826

query I rowsort
SELECT - 47 - + - 99 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL + NULLIF ( CASE + ( 6 ) WHEN 17 THEN + 54 + CASE 85 WHEN + 57 + + 99 THEN 36 + CASE 50 WHEN - 61 * - ( 59 ) + - ( 72 ) * + 10 THEN - 89 + 2 WHEN 69 / 88 THEN NULL ELSE NULL END * + 15 END WHEN 84 * - CASE - COUNT( * ) WHEN 61 + - 3 THEN 86 ELSE NULL END THEN NULL END, 17 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL + NULLIF ( CASE + ( 6 ) WHEN 17 THEN + 54 + CASE 85 WHEN + 57 + + 99 THEN 36 + CASE 50 WHEN - 61 * - ( 59 ) + - ( 72 ) * + 10 THEN - 89 + 2 WHEN 69 / 88 THEN NULL ELSE NULL END * + 15 END WHEN 84 * - CASE - COUNT ( * ) WHEN 61 + - 3 THEN 86 ELSE NULL END THEN NULL END, 17 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 82 * - 22 AS col0
----
-1804

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT NULLIF ( + 70, + + CASE + 80 WHEN COUNT( * ) * 73 THEN COUNT( - 61 ) WHEN + ( + 40 ) * 44 THEN NULL END / MIN( ALL 20 + + 37 ) + 13 )
----
70

skipif mysql # not compatible
query I rowsort label-290
SELECT NULLIF ( + 70, + + CASE + 80 WHEN COUNT ( * ) * 73 THEN COUNT ( - 61 ) WHEN + ( + 40 ) * 44 THEN NULL END / MIN ( ALL 20 + + 37 ) + 13 )
----
70

query I rowsort
SELECT ALL 17 * + - 67
----
-1139

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL + - ( + - ( SUM( DISTINCT - 56 ) ) )
----
-56

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL + - ( + - ( SUM ( DISTINCT - 56 ) ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL + COUNT( * ) * + 21 + + 85 * + 44 + - 99 * COUNT( * ) col2
----
3662

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL + COUNT ( * ) * + 21 + + 85 * + 44 + - 99 * COUNT ( * ) col2
----
3662

query I rowsort
SELECT 81 * + 65 + + 88 + - + 97
----
5256

query I rowsort
SELECT ALL 30 * - 95 + - 19 AS col2
----
-2869

query I rowsort
SELECT DISTINCT + ( - - 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT ALL - 40 * 50 + + SUM( DISTINCT 74 ) DIV COUNT( * ) AS col2
----
-1926

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL - 40 * 50 + + SUM ( DISTINCT 74 ) / COUNT ( * ) AS col2
----
-1926

query I rowsort
SELECT - 78 * COALESCE ( - 20, + 9 )
----
1560

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT - 5 DIV + - 83
----
0

skipif mysql # not compatible
query I rowsort label-299
SELECT - 5 / + - 83
----
0

query II rowsort
SELECT - + 54 * - 70 AS col0, 93 AS col2
----
3780
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-301
SELECT ALL - + CAST( - 7 AS SIGNED ) + 55 * 52 AS col1
----
2867

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL - + CAST ( - 7 AS INTEGER ) + 55 * 52 AS col1
----
2867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-302
SELECT ( CAST( - NULLIF ( - 17, CASE 47 WHEN + 34 THEN 24 * 67 WHEN - 61 * - 45 THEN + ( + 8 ) WHEN - 52 * + 97 THEN NULL END ) AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-302
SELECT ( CAST ( - NULLIF ( - 17, CASE 47 WHEN + 34 THEN 24 * 67 WHEN - 61 * - 45 THEN + ( + 8 ) WHEN - 52 * + 97 THEN NULL END ) AS INTEGER ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-303
SELECT - + ( 11 ) DIV + + 93 * 74 * - CAST( 62 AS SIGNED ) + 68
----
68

skipif mysql # not compatible
query I rowsort label-303
SELECT - + ( 11 ) / + + 93 * 74 * - CAST ( 62 AS INTEGER ) + 68
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT + + 4 DIV - 88 * 11
----
0

skipif mysql # not compatible
query I rowsort label-304
SELECT + + 4 / - 88 * 11
----
0

query II rowsort
SELECT ALL + + 51 * - + 45, ( + + 44 ) AS col1
----
-2295
44

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

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

query I rowsort
SELECT ALL - 24 - - 10 * 0
----
-24

query I rowsort
SELECT - 94 * 49 AS col0
----
-4606

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT - + 2 + + MIN( DISTINCT + 97 )
----
95

skipif mysql # not compatible
query I rowsort label-309
SELECT - + 2 + + MIN ( DISTINCT + 97 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT - - 27 + + COUNT( * ) + + 8 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-310
SELECT - - 27 + + COUNT ( * ) + + 8 AS col1
----
36

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

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

query I rowsort
SELECT DISTINCT 36 * - 13
----
-468

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

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

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

query I rowsort
SELECT ALL 35 * - + 37
----
-1295

query I rowsort
SELECT + 70 * 28
----
1960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-317
SELECT DISTINCT 34 + 78 + 2 + + COUNT( * ) DIV - - ( - 83 ) DIV 31
----
114

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT 34 + 78 + 2 + + COUNT ( * ) / - - ( - 83 ) / 31
----
114

query I rowsort
SELECT ALL 69 + - - 44
----
113

query II rowsort
SELECT + 79 col1, 52 * 99
----
79
5148

query I rowsort
SELECT - 9 * + NULLIF ( + 82, + + 80 + + 74 * + 67 ) * + 91
----
-67158

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT 24 * - 19 + - 36 - COUNT( * ) * + - NULLIF ( ( COUNT( * ) ), + 37 / 92 ) + CASE - 11 WHEN 72 * - 61 + ( - 70 ) THEN 80 + + 55 END * + 50 / - ( 73 - - 84 ) - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-321
SELECT 24 * - 19 + - 36 - COUNT ( * ) * + - NULLIF ( ( COUNT ( * ) ), + 37 / 92 ) + CASE - 11 WHEN 72 * - 61 + ( - 70 ) THEN 80 + + 55 END * + 50 / - ( 73 - - 84 ) - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT - COALESCE ( + 80, - MAX( - 82 ), 43 * 18 + 83 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT - COALESCE ( + 80, - MAX ( - 82 ), 43 * 18 + 83 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT ALL + - COALESCE ( + + 24, + - 70, + COUNT( * ) ) + SUM( + 85 ) - - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL + - COALESCE ( + + 24, + - 70, + COUNT ( * ) ) + SUM ( + 85 ) - - COUNT ( * ) AS col0
----
62

query I rowsort
SELECT + ( - 73 ) - + 3 * + - 27
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-325
SELECT ALL - 80 * SUM( ALL - 46 ) + CAST( NULL AS SIGNED ) - - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL - 80 * SUM ( ALL - 46 ) + CAST ( NULL AS INTEGER ) - - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT + 76 * - ( - - 67 ) - - 32 + + + MAX( ALL 50 ) * - 63 * - 39
----
117790

skipif mysql # not compatible
query I rowsort label-326
SELECT + 76 * - ( - - 67 ) - - 32 + + + MAX ( ALL 50 ) * - 63 * - 39
----
117790

query I rowsort
SELECT ALL - - 90 * + - 46 AS col0
----
-4140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-328
SELECT - CAST( 35 AS SIGNED ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-328
SELECT - CAST ( 35 AS INTEGER ) AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-329
SELECT DISTINCT CAST( 93 AS SIGNED ) * - + 96 AS col0
----
-8928

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT CAST ( 93 AS INTEGER ) * - + 96 AS col0
----
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT ALL + NULLIF ( 79, - 20 + + + 92 * - 95 ) * + MAX( - 26 )
----
-2054

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL + NULLIF ( 79, - 20 + + + 92 * - 95 ) * + MAX ( - 26 )
----
-2054

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT DISTINCT + ( + 30 ) + - 60 + + - 95 + 18 + - 2 * ( COUNT( * ) + + COUNT( * ) ) * + 75 AS col0
----
-407

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT + ( + 30 ) + - 60 + + - 95 + 18 + - 2 * ( COUNT ( * ) + + COUNT ( * ) ) * + 75 AS col0
----
-407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-332
SELECT - - CAST( NULL AS SIGNED ) * - + 42 + + 96 + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT - - CAST ( NULL AS INTEGER ) * - + 42 + + 96 + 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-333
SELECT DISTINCT + 86 - - MIN( DISTINCT - NULLIF ( - + CAST( NULL AS SIGNED ), 28 ) ) * 0 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT + 86 - - MIN ( DISTINCT - NULLIF ( - + CAST ( NULL AS INTEGER ), 28 ) ) * 0 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-334
SELECT ALL - COUNT( * ) - + CASE + + COUNT( * ) WHEN 64 THEN NULL WHEN - 31 * + SUM( - COALESCE ( - CAST( NULL AS SIGNED ), + 29 + 33 ) ) THEN 91 + 30 * - 54 END + - CAST( + 7 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL - COUNT ( * ) - + CASE + + COUNT ( * ) WHEN 64 THEN NULL WHEN - 31 * + SUM ( - COALESCE ( - CAST ( NULL AS INTEGER ), + 29 + 33 ) ) THEN 91 + 30 * - 54 END + - CAST ( + 7 AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 54 col1, 16 AS col1
----
54
16

query I rowsort
SELECT - 78 * 7 AS col1
----
-546

query I rowsort
SELECT 69 * 92
----
6348

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT + SUM( 99 ) + - 63 * + - 63 AS col2
----
4068

skipif mysql # not compatible
query I rowsort label-338
SELECT + SUM ( 99 ) + - 63 * + - 63 AS col2
----
4068

onlyif mysql # DIV for integer division: 
query I rowsort label-339
SELECT DISTINCT + + 48 DIV 98 + 53 + 42 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT + + 48 / 98 + 53 + 42 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT ( 1 ) + + - ( - 59 ) + 35 + COUNT( 58 ) * - 31 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-340
SELECT ( 1 ) + + - ( - 59 ) + 35 + COUNT ( 58 ) * - 31 AS col0
----
64

query I rowsort
SELECT ALL + 87 * 94 col1
----
8178

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL - 96 - ( 15 ) * + - ( + COUNT( * ) ) * + - COUNT( * ) + + 82 + - 47
----
-76

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - 96 - ( 15 ) * + - ( + COUNT ( * ) ) * + - COUNT ( * ) + + 82 + - 47
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-343
SELECT - 31, + MAX( DISTINCT 82 ) AS col1
----
-31
82

skipif mysql # not compatible
query II rowsort label-343
SELECT - 31, + MAX ( DISTINCT 82 ) AS col1
----
-31
82

query I rowsort
SELECT ALL 95 * - + 59 * + 63
----
-353115

query II rowsort
SELECT 32 * - 79, + 75 * 19 * + - 86 AS col1
----
-2528
-122550

query II rowsort
SELECT 53, ( 42 ) AS col1
----
53
42

onlyif mysql # aggregate syntax: 
query II rowsort label-347
SELECT DISTINCT - 79 * + 32 AS col2, - 40 * - 58 * ( - SUM( 30 ) ) * 98 + 18
----
-2528
-6820782

skipif mysql # not compatible
query II rowsort label-347
SELECT DISTINCT - 79 * + 32 AS col2, - 40 * - 58 * ( - SUM ( 30 ) ) * 98 + 18
----
-2528
-6820782

query I rowsort
SELECT 48 + - 66 * - + 22
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT 58 * COUNT( * ) * + 18
----
1044

skipif mysql # not compatible
query I rowsort label-349
SELECT 58 * COUNT ( * ) * + 18
----
1044

query I rowsort
SELECT ALL - 25 + - 16 + - + 92 * NULLIF ( 30, + 63 + 5 * - 54 ) * - 19 AS col1
----
52399

query I rowsort
SELECT 73 - 16
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT ALL MAX( 76 ) + + 43 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL MAX ( 76 ) + + 43 AS col2
----
119

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

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

query I rowsort
SELECT ALL + 53 + 39 * - 87
----
-3340

query I rowsort
SELECT ALL 70 + - 99 * + 35
----
-3395

query II rowsort
SELECT + 74 AS col1, 10 AS col2
----
74
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-357
SELECT ( 5 ) / 36 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-357
SELECT ( 5 ) / 36 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT ALL - 84 + + 4 * + - MIN( - ( - 73 ) )
----
-376

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL - 84 + + 4 * + - MIN ( - ( - 73 ) )
----
-376

query I rowsort
SELECT + COALESCE ( + 95, 89 ) - - 56
----
151

query I rowsort
SELECT - 69 * - + NULLIF ( 74, - 72 ) + - - NULLIF ( 58, + 69 - 7 ) * - 42
----
2670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-361
SELECT ALL NULLIF ( - 8, + 28 * + CASE 96 WHEN 6 * MAX( CAST( + 34 AS SIGNED ) - 75 * ( - 96 ) ) THEN - 51 * COUNT( * ) ELSE NULL END + + 30 ) + - 51
----
-59

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL NULLIF ( - 8, + 28 * + CASE 96 WHEN 6 * MAX ( CAST ( + 34 AS INTEGER ) - 75 * ( - 96 ) ) THEN - 51 * COUNT ( * ) ELSE NULL END + + 30 ) + - 51
----
-59

query I rowsort
SELECT ALL 26 - + 51 col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT 15 + + 50 * + CASE - 66 WHEN - + 94 THEN MIN( ALL 21 ) END + - ( 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-363
SELECT 15 + + 50 * + CASE - 66 WHEN - + 94 THEN MIN ( ALL 21 ) END + - ( 22 )
----
NULL

query II rowsort
SELECT ALL - + 66, 7 AS col1
----
-66
7

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT - - COALESCE ( 5, + 95 - 49 DIV + 75, 71 ) * - 82 + - 70 AS col0
----
-480

skipif mysql # not compatible
query I rowsort label-365
SELECT - - COALESCE ( 5, + 95 - 49 / + 75, 71 ) * - 82 + - 70 AS col0
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT ALL + 57 - + - 33 + - 1 * COUNT( * ) * 94 + + + COUNT( * ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL + 57 - + - 33 + - 1 * COUNT ( * ) * 94 + + + COUNT ( * ) col1
----
-3

query II rowsort
SELECT + ( 72 ) col0, 28
----
72
28

query II rowsort
SELECT + + 92, 97 + + 38 AS col0
----
92
135

query I rowsort
SELECT 7 + - + 59 + - 64 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL - - ( + MIN( ALL - 34 ) ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL - - ( + MIN ( ALL - 34 ) ) col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT + NULLIF ( 83, - COUNT( DISTINCT + + 41 ) )
----
83

skipif mysql # not compatible
query I rowsort label-371
SELECT + NULLIF ( 83, - COUNT ( DISTINCT + + 41 ) )
----
83

query II rowsort
SELECT DISTINCT + 99 AS col0, + 16 col0
----
99
16

query I rowsort
SELECT - - CASE NULLIF ( + 3, - 42 ) WHEN - - 90 THEN - 70 + 0 * - 96 END
----
NULL

query II rowsort
SELECT ALL 77 AS col2, - 85 col0
----
77
-85

query I rowsort
SELECT DISTINCT + + 21 * + - 73 * - + 75 * + ( 38 )
----
4369050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-376
SELECT ALL 73 * + CASE - NULLIF ( + + 82, + + 63 * CASE 77 WHEN 62 * + COUNT( - ( + 42 ) * 0 ) THEN + 77 / - 17 WHEN - 50 / - CAST( - ( 65 ) AS SIGNED ) THEN - CASE - 62 WHEN - 64 THEN - 54 - 29 END - - COUNT( * ) * 53 ELSE NULL END ) WHEN 72 THEN - 25 * - COUNT( 37 ) WHEN 51 * + 62 THEN 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL 73 * + CASE - NULLIF ( + + 82, + + 63 * CASE 77 WHEN 62 * + COUNT ( - ( + 42 ) * 0 ) THEN + 77 / - 17 WHEN - 50 / - CAST ( - ( 65 ) AS INTEGER ) THEN - CASE - 62 WHEN - 64 THEN - 54 - 29 END - - COUNT ( * ) * 53 ELSE NULL END ) WHEN 72 THEN - 25 * - COUNT ( 37 ) WHEN 51 * + 62 THEN 87 END
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-379
SELECT CAST( NULL AS SIGNED ) / + + ( + - 16 ) / 60 + 52 + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-379
SELECT CAST ( NULL AS INTEGER ) / + + ( + - 16 ) / 60 + 52 + 39 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 93 + + - 14 + - 46 + 88 * + 49 * 65
----
280127

query I rowsort
SELECT 48 + - ( - + 84 ) AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT 51 - + - MAX( + 51 )
----
102

skipif mysql # not compatible
query I rowsort label-383
SELECT 51 - + - MAX ( + 51 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT DISTINCT - 20 + + - 6 - - NULLIF ( - MIN( ALL + 65 ), 6 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT - 20 + + - 6 - - NULLIF ( - MIN ( ALL + 65 ), 6 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL MAX( DISTINCT 11 )
----
11

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL MAX ( DISTINCT 11 )
----
11

query I rowsort
SELECT DISTINCT - 39 + - - 50 AS col2
----
11

query II rowsort
SELECT DISTINCT + 48 * - 69 col0, 89 + + 63 AS col2
----
-3312
152

query I rowsort
SELECT - 88 + - - 66 * + ( - 8 ) * + 74
----
-39160

query I rowsort
SELECT ALL - 21 + 3 col0
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT - ( + + 49 ) + - + COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-391
SELECT - ( + + 49 ) + - + COUNT ( * ) AS col2
----
-50

query I rowsort
SELECT ALL - 3 * - NULLIF ( - 17, + 61 - - 12 ) AS col1
----
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT - 52 DIV - 41
----
1

skipif mysql # not compatible
query I rowsort label-394
SELECT - 52 / - 41
----
1

query I rowsort
SELECT COALESCE ( - 98, - 64 ) AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-396
SELECT - 22 DIV 40 + 53 AS col2, COUNT( * )
----
53
1

skipif mysql # not compatible
query II rowsort label-396
SELECT - 22 / 40 + 53 AS col2, COUNT ( * )
----
53
1

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

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

query I rowsort
SELECT DISTINCT + 85 * + 12
----
1020

query I rowsort
SELECT DISTINCT + 30 * + 92 + 69
----
2829

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT - + 81 * - 46 * + 31 * + - 27 + - + 49, - COUNT( * ) - + 41 AS col0
----
-3118711
-42

skipif mysql # not compatible
query II rowsort label-401
SELECT - + 81 * - 46 * + 31 * + - 27 + - + 49, - COUNT ( * ) - + 41 AS col0
----
-3118711
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-402
SELECT DISTINCT 72 * - - 21 AS col0, 36 + - 78 + 43 + + 26 + + + 70 DIV CAST( - COUNT( * ) AS SIGNED )
----
1512
-43

skipif mysql # not compatible
query II rowsort label-402
SELECT DISTINCT 72 * - - 21 AS col0, 36 + - 78 + 43 + + 26 + + + 70 / CAST ( - COUNT ( * ) AS INTEGER )
----
1512
-43

query I rowsort
SELECT - - 62 * - - 2 - - - 89
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT + - 42 * + 4 - - 24 + - COUNT( * ) + 83 * 43
----
3424

skipif mysql # not compatible
query I rowsort label-404
SELECT + - 42 * + 4 - - 24 + - COUNT ( * ) + 83 * 43
----
3424

query I rowsort
SELECT ALL - ( - CASE + 78 WHEN - 97 THEN - 49 WHEN + 15 THEN NULL ELSE 31 END ) * 25
----
775

query II rowsort
SELECT - 60 - + - 17 col1, - 33
----
-43
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-407
SELECT + COUNT( * ) DIV - SUM( DISTINCT - 42 ) + NULLIF ( + 42, 8 * + - 6 + 75 + + 70 DIV - NULLIF ( - 72 * + AVG ( DISTINCT + 18 ), 87 * 57 ) ) - + 50
----
-8

skipif mysql # not compatible
query I rowsort label-407
SELECT + COUNT ( * ) / - SUM ( DISTINCT - 42 ) + NULLIF ( + 42, 8 * + - 6 + 75 + + 70 / - NULLIF ( - 72 * + AVG ( DISTINCT + 18 ), 87 * 57 ) ) - + 50
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-408
SELECT ALL CAST( NULL AS SIGNED ) * - ( AVG ( ALL - - 3 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL CAST ( NULL AS INTEGER ) * - ( AVG ( ALL - - 3 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-409
SELECT + 87 * + + 85 AS col0, 40 * + CAST( - 95 AS SIGNED ) AS col1
----
7395
-3800

skipif mysql # not compatible
query II rowsort label-409
SELECT + 87 * + + 85 AS col0, 40 * + CAST ( - 95 AS INTEGER ) AS col1
----
7395
-3800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT DISTINCT CASE 14 WHEN - 73 - + - 75 THEN NULL WHEN + 26 THEN NULL ELSE + + ( - - COUNT( 52 ) ) END * - 61
----
-61

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT CASE 14 WHEN - 73 - + - 75 THEN NULL WHEN + 26 THEN NULL ELSE + + ( - - COUNT ( 52 ) ) END * - 61
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT ALL - 54 DIV 79 * 45
----
0

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL - 54 / 79 * 45
----
0

query I rowsort
SELECT + - 90 - + 40 * - + 65 col1
----
2510

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT - + MIN( + 71 ) * - - 48 AS col1
----
-3408

skipif mysql # not compatible
query I rowsort label-414
SELECT - + MIN ( + 71 ) * - - 48 AS col1
----
-3408

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT + 81 * 57 * - COUNT( * ) + MAX( 74 )
----
-4543

skipif mysql # not compatible
query I rowsort label-415
SELECT + 81 * 57 * - COUNT ( * ) + MAX ( 74 )
----
-4543

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT + 54 DIV - 24 col2
----
-2

skipif mysql # not compatible
query I rowsort label-417
SELECT + 54 / - 24 col2
----
-2

query I rowsort
SELECT ALL 60 + 23 col2
----
83

query I rowsort
SELECT ALL 19 + - 79 * + 37 * - 51 AS col2
----
149092

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT - CASE 3 WHEN 91 THEN + + SUM( DISTINCT - 48 ) + - 25 WHEN + 24 THEN + - 50 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-420
SELECT - CASE 3 WHEN 91 THEN + + SUM ( DISTINCT - 48 ) + - 25 WHEN + 24 THEN + - 50 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT - CAST( 45 AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-421
SELECT - CAST ( 45 AS INTEGER ) AS col2
----
-45

query I rowsort
SELECT + 1 + 33 col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT ALL COUNT( * ) + + - COALESCE ( - 80, + 72 * + + ( 10 ) * - + 6 + CAST( NULL AS SIGNED ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL COUNT ( * ) + + - COALESCE ( - 80, + 72 * + + ( 10 ) * - + 6 + CAST ( NULL AS INTEGER ) ) AS col0
----
81

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT ALL + 25 + + MIN( DISTINCT + 12 )
----
37

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL + 25 + + MIN ( DISTINCT + 12 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL + COUNT( ALL + 67 ) + - SUM( ALL - 66 )
----
67

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL + COUNT ( ALL + 67 ) + - SUM ( ALL - 66 )
----
67

query I rowsort
SELECT ALL 53 * ( ( - 4 ) ) AS col1
----
-212

query II rowsort
SELECT 72, - 39 AS col1
----
72
-39

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

query I rowsort
SELECT + 11 * - 21
----
-231

query I rowsort
SELECT + 29 + + 64
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT - 34 * COALESCE ( - 13, + - 3 + + - MAX( ALL + 64 ) )
----
442

skipif mysql # not compatible
query I rowsort label-433
SELECT - 34 * COALESCE ( - 13, + - 3 + + - MAX ( ALL + 64 ) )
----
442

query II rowsort
SELECT ALL CASE WHEN NULL IS NULL THEN - 21 ELSE NULL END, + 85 AS col1
----
-21
85

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

query I rowsort
SELECT - + 70 - + + 36 + - + 38 * - 46 * + 15
----
26114

onlyif mysql # DIV for integer division: 
query I rowsort label-437
SELECT DISTINCT - 65 DIV + 69 * + - 24
----
0

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT - 65 / + 69 * + - 24
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-438
SELECT - + CAST( NULL AS SIGNED ) * 38 - - 83 AS col2, 63 * + 93 * + + 33
----
NULL
193347

skipif mysql # not compatible
query II rowsort label-438
SELECT - + CAST ( NULL AS INTEGER ) * 38 - - 83 AS col2, 63 * + 93 * + + 33
----
NULL
193347

query I rowsort
SELECT ALL - - 17 * 11 * 25 AS col0
----
4675

query I rowsort
SELECT + + 26 * + 67
----
1742

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

query II rowsort
SELECT 5, 48 AS col0
----
5
48

query I rowsort
SELECT ALL + + 4 * - + 88
----
-352

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-444
SELECT - 96 * - 28 - - CAST( NULL AS DECIMAL ) * + 82 * 48 + 33 / 38 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT - 96 * - 28 - - CAST ( NULL AS REAL ) * + 82 * 48 + 33 / 38 + + - COUNT ( * )
----
NULL

query I rowsort
SELECT - ( 2 ) * 6 * + 97 AS col0
----
-1164

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT - - 1 * + 9 + + - 67 + - + 37 - + COUNT( * ) + + 54 * - 33 * + - 20
----
35544

skipif mysql # not compatible
query I rowsort label-446
SELECT - - 1 * + 9 + + - 67 + - + 37 - + COUNT ( * ) + + 54 * - 33 * + - 20
----
35544

query I rowsort
SELECT + 14 - - 23 + + 78
----
115

query II rowsort
SELECT ALL - + 12 * - 10 + - 58 AS col2, 93 AS col0
----
62
93

query II rowsort
SELECT - 72 + + - ( - 64 ) AS col0, + 76 + 98 * 40 * - + ( - NULLIF ( - 75, + 79 * - 40 ) )
----
-8
-293924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-450
SELECT ALL 29 * + + 85 + + 36 DIV + 80 + NULLIF ( - COUNT( * ), 87 + - 2 )
----
2464

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL 29 * + + 85 + + 36 / + 80 + NULLIF ( - COUNT ( * ), 87 + - 2 )
----
2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT NULLIF ( 63, + 8 * 76 - + CAST( NULL AS SIGNED ) + - - 9 * ( + 78 ) + 43 ) * 64 + - COUNT( * )
----
4031

skipif mysql # not compatible
query I rowsort label-451
SELECT NULLIF ( 63, + 8 * 76 - + CAST ( NULL AS INTEGER ) + - - 9 * ( + 78 ) + 43 ) * 64 + - COUNT ( * )
----
4031

query I rowsort
SELECT - 33 * - 6
----
198

query I rowsort
SELECT + 3 * 13 * COALESCE ( - 44, + 88 ) + 39
----
-1677

query I rowsort
SELECT ALL + 71 * - 76 + - + 69 + + 54 AS col2
----
-5411

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT ALL + 35 * + - 83 + - 58 DIV + - 39 col1
----
-2904

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL + 35 * + - 83 + - 58 / + - 39 col1
----
-2904

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT - 42 + - 34 * - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-456
SELECT - 42 + - 34 * - COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-457
SELECT + MIN( - 53 ), + 89 AS col1
----
-53
89

skipif mysql # not compatible
query II rowsort label-457
SELECT + MIN ( - 53 ), + 89 AS col1
----
-53
89

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT - NULLIF ( COUNT( * ), + 79 ) + - 80 * + - 96 * 94 + + + 38 * - COUNT( * ) AS col0
----
721881

skipif mysql # not compatible
query I rowsort label-458
SELECT - NULLIF ( COUNT ( * ), + 79 ) + - 80 * + - 96 * 94 + + + 38 * - COUNT ( * ) AS col0
----
721881

query I rowsort
SELECT ALL + 35 * + 84 + - - 40 AS col1
----
2980

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT ALL 7 + - + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL 7 + - + COUNT ( * )
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-461
SELECT ALL MAX( DISTINCT + COALESCE ( 40, 35 ) ) + + CASE + + 65 WHEN - CASE 44 WHEN - - 86 THEN - 23 * 32 WHEN COUNT( DISTINCT 53 ) THEN + COUNT( * ) WHEN + COALESCE ( 26, + COUNT( * ) * + 59, CAST( COUNT( 56 ) AS DECIMAL ) ) THEN NULL END THEN + 35 END + COUNT( * ) * + CASE + 22 * + 86 WHEN 68 THEN - 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL MAX ( DISTINCT + COALESCE ( 40, 35 ) ) + + CASE + + 65 WHEN - CASE 44 WHEN - - 86 THEN - 23 * 32 WHEN COUNT ( DISTINCT 53 ) THEN + COUNT ( * ) WHEN + COALESCE ( 26, + COUNT ( * ) * + 59, CAST ( COUNT ( 56 ) AS REAL ) ) THEN NULL END THEN + 35 END + COUNT ( * ) * + CASE + 22 * + 86 WHEN 68 THEN - 98 END AS col0
----
NULL

query I rowsort
SELECT ( + 63 ) + - - 22 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT SUM( - 59 ) + + + COALESCE ( + 69, + 92, 51 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-463
SELECT SUM ( - 59 ) + + + COALESCE ( + 69, + 92, 51 ) col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-464
SELECT ALL 71 + CASE + COUNT( ALL 34 ) WHEN - 29 * - + 13 + - 37 * - 83 THEN - 54 * CASE COUNT( * ) - + 66 WHEN 27 THEN 17 ELSE NULL END END * + ( - CAST( NULL AS SIGNED ) * 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL 71 + CASE + COUNT ( ALL 34 ) WHEN - 29 * - + 13 + - 37 * - 83 THEN - 54 * CASE COUNT ( * ) - + 66 WHEN 27 THEN 17 ELSE NULL END END * + ( - CAST ( NULL AS INTEGER ) * 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT MAX( - 78 ) + - 34 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-465
SELECT MAX ( - 78 ) + - 34 AS col0
----
-112

query I rowsort
SELECT ( + - NULLIF ( - - 95, + AVG ( - 33 ) ) ) + - 46
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-467
SELECT DISTINCT COUNT( * ) - COUNT( * ) * - 30 DIV 3
----
11

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * - 30 / 3
----
11

query I rowsort
SELECT ALL 99 * + 38
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL 70 - - MAX( ALL 84 ) + + 79 + + - 2 * + + 68 * + MIN( - 68 ) AS col1
----
9481

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL 70 - - MAX ( ALL 84 ) + + 79 + + - 2 * + + 68 * + MIN ( - 68 ) AS col1
----
9481

query I rowsort
SELECT DISTINCT 34 * - 22 * + 45
----
-33660

query I rowsort
SELECT 11 * - + 25 * - 79
----
21725

query I rowsort
SELECT ALL 63 * ( 62 )
----
3906

query I rowsort
SELECT 21 + 14
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT - ( 0 ) AS col1, - MIN( DISTINCT 16 ) * + MAX( - 98 ) + 23
----
0
1591

skipif mysql # not compatible
query II rowsort label-474
SELECT - ( 0 ) AS col1, - MIN ( DISTINCT 16 ) * + MAX ( - 98 ) + 23
----
0
1591

query I rowsort
SELECT DISTINCT - 3 * + 81 + + 95 * + - 85 * - 6
----
48207

onlyif mysql # aggregate syntax: 
query II rowsort label-476
SELECT 69 * + 9 * - 96 + + 28 AS col0, COUNT( * ) + - + COUNT( * ) * 19 AS col2
----
-59588
-18

skipif mysql # not compatible
query II rowsort label-476
SELECT 69 * + 9 * - 96 + + 28 AS col0, COUNT ( * ) + - + COUNT ( * ) * 19 AS col2
----
-59588
-18

query I rowsort
SELECT 13 * + + COALESCE ( 81, + 67 ) + 22 AS col2
----
1075

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT DISTINCT - + MIN( + 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT - + MIN ( + 15 ) AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-480
SELECT + + CASE - 73 WHEN + + 33 THEN + + 93 - COALESCE ( - ( - 93 ), 15 ) * + CASE - 86 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 27 THEN - 19 END WHEN 69 * + CASE 69 WHEN 83 THEN 81 ELSE 40 + 52 * - 51 END THEN NULL WHEN 60 THEN NULL END / 93 + CAST( NULL AS SIGNED ) * - COALESCE ( + 23, 21 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-480
SELECT + + CASE - 73 WHEN + + 33 THEN + + 93 - COALESCE ( - ( - 93 ), 15 ) * + CASE - 86 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 27 THEN - 19 END WHEN 69 * + CASE 69 WHEN 83 THEN 81 ELSE 40 + 52 * - 51 END THEN NULL WHEN 60 THEN NULL END / 93 + CAST ( NULL AS INTEGER ) * - COALESCE ( + 23, 21 ) AS col2
----
NULL

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

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

query I rowsort
SELECT 92 * - 57 AS col2
----
-5244

query II rowsort
SELECT + - COALESCE ( - 73, + 35, - + 77 ) AS col2, ( - 94 )
----
73
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT ALL - - 77 + - 79 - - - 87 + + 12 DIV - COUNT( * ) - + - 99 DIV + + 11
----
-92

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL - - 77 + - 79 - - - 87 + + 12 / - COUNT ( * ) - + - 99 / + + 11
----
-92

query I rowsort
SELECT DISTINCT + 70 * 27
----
1890

query I rowsort
SELECT ALL - 59 + + 28 * 46 AS col2
----
1229

onlyif mysql # DIV for integer division: 
query I rowsort label-487
SELECT - 78 * 76 * + 19 + 41 DIV - 53
----
-112632

skipif mysql # not compatible
query I rowsort label-487
SELECT - 78 * 76 * + 19 + 41 / - 53
----
-112632

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-489
SELECT ALL - 68 + 22 DIV - 43 * + 20 col2, 75
----
-68
75

skipif mysql # not compatible
query II rowsort label-489
SELECT ALL - 68 + 22 / - 43 * + 20 col2, 75
----
-68
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-490
SELECT - - CAST( NULL AS SIGNED ) / + 23 - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT - - CAST ( NULL AS INTEGER ) / + 23 - - 25
----
NULL

query I rowsort
SELECT 41 - 84
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-492
SELECT ALL + CAST( NULL AS DECIMAL ) + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL + CAST ( NULL AS REAL ) + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-493
SELECT DISTINCT - 52 * + 39 * - 26, + CASE - 70 WHEN COUNT( * ) THEN NULL ELSE 54 END * - 81 AS col2
----
52728
-4374

skipif mysql # not compatible
query II rowsort label-493
SELECT DISTINCT - 52 * + 39 * - 26, + CASE - 70 WHEN COUNT ( * ) THEN NULL ELSE 54 END * - 81 AS col2
----
52728
-4374

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT DISTINCT + 61 + COUNT( DISTINCT + 65 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT + 61 + COUNT ( DISTINCT + 65 ) AS col1
----
62

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

onlyif mysql # DIV for integer division: 
query II rowsort label-496
SELECT 96 - 15 + - 9 DIV + - 87 + - 45 AS col1, - 56
----
36
-56

skipif mysql # not compatible
query II rowsort label-496
SELECT 96 - 15 + - 9 / + - 87 + - 45 AS col1, - 56
----
36
-56

query I rowsort
SELECT 67 * 74 * 93
----
461094

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT ALL SUM( ALL 71 ) * - 7 col0
----
-497

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL SUM ( ALL 71 ) * - 7 col0
----
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL - 45 - - + SUM( DISTINCT 9 ) * + 40 * - 24 * - COUNT( * ) col2
----
8595

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - 45 - - + SUM ( DISTINCT 9 ) * + 40 * - 24 * - COUNT ( * ) col2
----
8595

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL + MAX( + 73 ) * - + 34
----
-2482

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + MAX ( + 73 ) * - + 34
----
-2482

query I rowsort
SELECT + 86 - - 29
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT 38 DIV - - 92
----
0

skipif mysql # not compatible
query I rowsort label-503
SELECT 38 / - - 92
----
0

query I rowsort
SELECT ( - 14 ) + - - 59 AS col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-505
SELECT DISTINCT 39 DIV - SUM( ALL + 48 )
----
0

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT 39 / - SUM ( ALL + 48 )
----
0

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

query II rowsort
SELECT + NULLIF ( - 84, + 25 * - - 10 ) + - - 20 * + - 97 AS col0, 53 * + - 30 AS col1
----
-2024
-1590

onlyif mysql # aggregate syntax: 
query II rowsort label-508
SELECT DISTINCT + 20, 25 * + 65 * - COUNT( ALL - 48 ) AS col0
----
20
-1625

skipif mysql # not compatible
query II rowsort label-508
SELECT DISTINCT + 20, 25 * + 65 * - COUNT ( ALL - 48 ) AS col0
----
20
-1625

query I rowsort
SELECT 7 * + ( 82 ) + + - 27 AS col1
----
547

query I rowsort
SELECT ALL CASE - + 84 WHEN + + COALESCE ( ( 61 ), 21 ) + - - ( - 39 ) THEN NULL WHEN - 98 THEN NULL ELSE - + 11 + - 6 END + - 41
----
-58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-512
SELECT DISTINCT + 41 * 83 DIV - 57 - + - 24 * - 62 * - COUNT( * ) AS col2
----
1429

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT + 41 * 83 / - 57 - + - 24 * - 62 * - COUNT ( * ) AS col2
----
1429

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT 87 * - COALESCE ( + COUNT( DISTINCT - 80 ), + + 23 * + 11 - COUNT( * ) )
----
-87

skipif mysql # not compatible
query I rowsort label-513
SELECT 87 * - COALESCE ( + COUNT ( DISTINCT - 80 ), + + 23 * + 11 - COUNT ( * ) )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-514
SELECT ALL - NULLIF ( 92, - 31 * - ( + + CASE COUNT( * ) WHEN - 56 * - 60 THEN + 1 ELSE NULL END ) * 16 * - 84 + 62 * 37 ) * CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL - NULLIF ( 92, - 31 * - ( + + CASE COUNT ( * ) WHEN - 56 * - 60 THEN + 1 ELSE NULL END ) * 16 * - 84 + 62 * 37 ) * CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-516
SELECT 17 * - 37 + - 28 + 1 - - 88 DIV + - 3 DIV + COUNT( DISTINCT + 78 ) + + 98
----
-587

skipif mysql # not compatible
query I rowsort label-516
SELECT 17 * - 37 + - 28 + 1 - - 88 / + - 3 / + COUNT ( DISTINCT + 78 ) + + 98
----
-587

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT + 61 DIV + 15 + 75
----
79

skipif mysql # not compatible
query I rowsort label-517
SELECT + 61 / + 15 + 75
----
79

query I rowsort
SELECT ALL - 5 * + 1 + - 43 - 88 AS col0
----
-136

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

skipif mysql # not compatible
query I rowsort label-519
SELECT + - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + + - 51
----
NULL

query II rowsort
SELECT ALL + 3, + 94 AS col1
----
3
94

query II rowsort
SELECT ALL NULLIF ( - 70, - 90 ) * - + 52 - - 74 - 61 col2, 61 AS col2
----
3653
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ALL + SUM( + 41 ) * - 46 * + - 87 * + 90 * MAX( DISTINCT + 18 ) AS col1
----
265812840

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + SUM ( + 41 ) * - 46 * + - 87 * + 90 * MAX ( DISTINCT + 18 ) AS col1
----
265812840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT + COALESCE ( 4, + - 36 + ( + 17 ), + CAST( - 92 AS SIGNED ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-524
SELECT + COALESCE ( 4, + - 36 + ( + 17 ), + CAST ( - 92 AS INTEGER ) ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT COUNT( ALL 25 ) AS col2, 63 AS col0
----
1
63

skipif mysql # not compatible
query II rowsort label-525
SELECT COUNT ( ALL 25 ) AS col2, 63 AS col0
----
1
63

query I rowsort
SELECT + 51 * + 18 + + 95
----
1013

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT + ( + 98 ) * 21 - - 24 DIV - 36 + - - 64 AS col1
----
2122

skipif mysql # not compatible
query I rowsort label-527
SELECT + ( + 98 ) * 21 - - 24 / - 36 + - - 64 AS col1
----
2122

query I rowsort
SELECT - 0 + + - 31
----
-31

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

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

query I rowsort
SELECT ALL - 3 * - 41 AS col1
----
123

query I rowsort
SELECT ALL 94 - - 24 AS col2
----
118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL + COUNT( * ) * 78 * 37 AS col0
----
2886

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + COUNT ( * ) * 78 * 37 AS col0
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL COALESCE ( COUNT( + - 80 ), 68 * - 6 + - 17, - 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL COALESCE ( COUNT ( + - 80 ), 68 * - 6 + - 17, - 30 ) AS col0
----
1

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

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

query I rowsort
SELECT - ( - + 40 ) * - 82
----
-3280

query I rowsort
SELECT - 52 + - + 17
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-538
SELECT ALL COALESCE ( 69, - CASE 78 WHEN - COUNT( + 14 ) * - + ( - - 37 ) THEN NULL WHEN + 34 THEN - 81 + - - 0 DIV - ( + CAST( NULL AS SIGNED ) DIV 99 ) ELSE NULL END * 36 )
----
69

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL COALESCE ( 69, - CASE 78 WHEN - COUNT ( + 14 ) * - + ( - - 37 ) THEN NULL WHEN + 34 THEN - 81 + - - 0 / - ( + CAST ( NULL AS INTEGER ) / 99 ) ELSE NULL END * 36 )
----
69

query I rowsort
SELECT ALL + - 97 * + - 98 AS col0
----
9506

query I rowsort
SELECT - ( + 94 ) * 24
----
-2256

onlyif mysql # aggregate syntax: 
query II rowsort label-541
SELECT ALL - 43 AS col1, MIN( 49 )
----
-43
49

skipif mysql # not compatible
query II rowsort label-541
SELECT ALL - 43 AS col1, MIN ( 49 )
----
-43
49

query I rowsort
SELECT DISTINCT - 20 + 35 + + 19 * - 94 * - 49 AS col2
----
87529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT ALL 50 + + + ( - NULLIF ( 41, - AVG ( ALL + 71 ) * 71 - + + 69 - - 87 ) ) + - 86 * + - 56 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL 50 + + + ( - NULLIF ( 41, - AVG ( ALL + 71 ) * 71 - + + 69 - - 87 ) ) + - 86 * + - 56 * - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT COALESCE ( - CASE - - 79 WHEN 56 THEN 98 + - - COUNT( * ) * 27 DIV 31 + COUNT( * ) DIV 14 ELSE NULL END, - COUNT( * ) * 96, + 80 )
----
-96

skipif mysql # not compatible
query I rowsort label-545
SELECT COALESCE ( - CASE - - 79 WHEN 56 THEN 98 + - - COUNT ( * ) * 27 / 31 + COUNT ( * ) / 14 ELSE NULL END, - COUNT ( * ) * 96, + 80 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ALL + 12 + COUNT( * ) col0
----
13

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + 12 + COUNT ( * ) col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-547
SELECT + + 7 + + 45 AS col2, - CAST( + 90 AS SIGNED ) + 96
----
52
6

skipif mysql # not compatible
query II rowsort label-547
SELECT + + 7 + + 45 AS col2, - CAST ( + 90 AS INTEGER ) + 96
----
52
6

query I rowsort
SELECT ALL - + 93 + - 88 AS col0
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT - COALESCE ( - - CASE 61 WHEN + ( - 83 ) THEN + COUNT( * ) END, COALESCE ( 1, ( - 62 ) + + - 71 ) * - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-549
SELECT - COALESCE ( - - CASE 61 WHEN + ( - 83 ) THEN + COUNT ( * ) END, COALESCE ( 1, ( - 62 ) + + - 71 ) * - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT + - ( - COUNT( * ) ) + - 65 * + + NULLIF ( + + 45, + MAX( ALL 51 ) * 36 )
----
-2924

skipif mysql # not compatible
query I rowsort label-550
SELECT + - ( - COUNT ( * ) ) + - 65 * + + NULLIF ( + + 45, + MAX ( ALL 51 ) * 36 )
----
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT - COUNT( * ) * 75 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-551
SELECT - COUNT ( * ) * 75 AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT ALL - + 6 DIV - 65 + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL - + 6 / - 65 + - 19
----
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT + ( - COUNT( * ) ) * 73 col1
----
-73

skipif mysql # not compatible
query I rowsort label-554
SELECT + ( - COUNT ( * ) ) * 73 col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-555
SELECT + COALESCE ( 42, - 4 * - 35 + + 22, - CASE + ( - - MIN( - + 37 ) ) WHEN + 57 THEN + 51 * + + 69 WHEN 55 THEN + CAST( NULL AS SIGNED ) * 40 ELSE NULL END ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-555
SELECT + COALESCE ( 42, - 4 * - 35 + + 22, - CASE + ( - - MIN ( - + 37 ) ) WHEN + 57 THEN + 51 * + + 69 WHEN 55 THEN + CAST ( NULL AS INTEGER ) * 40 ELSE NULL END ) AS col2
----
42

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

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

query I rowsort
SELECT + ( NULLIF ( 44, + 33 * - 23 + 35 + + - 15 ) ) - 71 * + 25 AS col2
----
-1731

query II rowsort
SELECT + 21 * + 79 + + 56 AS col0, - NULLIF ( + 83, 67 ) AS col0
----
1715
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-559
SELECT + 82 DIV 32 * - - 76
----
152

skipif mysql # not compatible
query I rowsort label-559
SELECT + 82 / 32 * - - 76
----
152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL + SUM( DISTINCT - CASE - 17 WHEN - - 91 THEN + 19 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + SUM ( DISTINCT - CASE - 17 WHEN - - 91 THEN + 19 ELSE NULL END )
----
NULL

query I rowsort
SELECT + 29 + + + ( 81 )
----
110

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

skipif mysql # not compatible
query II rowsort label-563
SELECT + 46 / COUNT ( * ) col0, - 91 AS col0
----
46
-91

query II rowsort
SELECT - 52 * - 55 col0, + 20 * 12 AS col2
----
2860
240

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT - 11 - - COALESCE ( - - SUM( - 86 ), + 98, + + 92 + SUM( DISTINCT - - 58 ) + 21 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-565
SELECT - 11 - - COALESCE ( - - SUM ( - 86 ), + 98, + + 92 + SUM ( DISTINCT - - 58 ) + 21 ) AS col1
----
-97

query II rowsort
SELECT DISTINCT 75 * + 90 * 63 * + 42 * 68 AS col0, - 12 AS col2
----
1214514000
-12

query I rowsort
SELECT ALL - 79 * + 90 * + 71 + + 2 AS col2
----
-504808

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-568
SELECT - CAST( + 77 AS SIGNED ), + 68 AS col1
----
-77
68

skipif mysql # not compatible
query II rowsort label-568
SELECT - CAST ( + 77 AS INTEGER ), + 68 AS col1
----
-77
68

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT + 99 + - SUM( ALL - + 65 ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-569
SELECT + 99 + - SUM ( ALL - + 65 ) AS col2
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT + 16 DIV - + 52 * + + ( + COALESCE ( 28, + 50 + - 47 ) )
----
0

skipif mysql # not compatible
query I rowsort label-570
SELECT + 16 / - + 52 * + + ( + COALESCE ( 28, + 50 + - 47 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-571
SELECT DISTINCT + 55 * + CASE CASE 61 WHEN 88 THEN + - 10 + + 87 + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + COUNT( * ) + CAST( - - 14 AS SIGNED ) * + ( + 42 ) END WHEN 89 + - 40 THEN NULL WHEN - COUNT( CASE - ( + 17 ) WHEN 35 THEN NULL WHEN 23 * 79 THEN 45 WHEN 31 + 62 * + 54 THEN NULL END ) + 84 * + 88 THEN - 1 + 9 * 56 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT + 55 * + CASE CASE 61 WHEN 88 THEN + - 10 + + 87 + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + CAST ( - - 14 AS INTEGER ) * + ( + 42 ) END WHEN 89 + - 40 THEN NULL WHEN - COUNT ( CASE - ( + 17 ) WHEN 35 THEN NULL WHEN 23 * 79 THEN 45 WHEN 31 + 62 * + 54 THEN NULL END ) + 84 * + 88 THEN - 1 + 9 * 56 END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 73 ) + + 67 + 44 AS col1
----
38

query II rowsort
SELECT DISTINCT 83 + - 43 AS col1, 64 AS col0
----
40
64

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT - CASE + 45 WHEN COUNT( * ) THEN + 84 * COUNT( * ) + + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-574
SELECT - CASE + 45 WHEN COUNT ( * ) THEN + 84 * COUNT ( * ) + + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 31 * - NULLIF ( 63, - 1 ) * + + 92 * + 79 + + + 85
----
14194489

query I rowsort
SELECT ALL + 30 + 53
----
83

query II rowsort
SELECT ALL ( + 80 ) AS col1, 85 - 55 AS col0
----
80
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-578
SELECT - 98 + - 97 * CASE CAST( 93 AS SIGNED ) WHEN - ( - 55 ) * 32 * - 76 + + COUNT( * ) * - COUNT( * ) - + - 95 THEN NULL WHEN - COUNT( * ) THEN + 32 DIV CASE 68 * + 88 WHEN 83 THEN NULL WHEN + COUNT( * ) THEN - 70 ELSE NULL END ELSE 1 + + 66 END + 74
----
-6523

skipif mysql # not compatible
query I rowsort label-578
SELECT - 98 + - 97 * CASE CAST ( 93 AS INTEGER ) WHEN - ( - 55 ) * 32 * - 76 + + COUNT ( * ) * - COUNT ( * ) - + - 95 THEN NULL WHEN - COUNT ( * ) THEN + 32 / CASE 68 * + 88 WHEN 83 THEN NULL WHEN + COUNT ( * ) THEN - 70 ELSE NULL END ELSE 1 + + 66 END + 74
----
-6523

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT - + SUM( 77 ) * + 54 * - 71 * + 51 - - - 3 * - 16 col2
----
15056166

skipif mysql # not compatible
query I rowsort label-579
SELECT - + SUM ( 77 ) * + 54 * - 71 * + 51 - - - 3 * - 16 col2
----
15056166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-580
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), - 64 ) + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-580
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), - 64 ) + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 89 - + 79 + 3 + - 38 + ( 59 ) AS col0
----
34

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-583
SELECT CAST( NULL AS SIGNED ) * + 90 * - - 25 * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT CAST ( NULL AS INTEGER ) * + 90 * - - 25 * 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT - 87 - - - 44 + - COALESCE ( - + SUM( DISTINCT - + 77 ), + - 46 )
----
-208

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - 87 - - - 44 + - COALESCE ( - + SUM ( DISTINCT - + 77 ), + - 46 )
----
-208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-585
SELECT - SUM( - 61 ) DIV - 39 + - 62 + + - 65
----
-128

skipif mysql # not compatible
query I rowsort label-585
SELECT - SUM ( - 61 ) / - 39 + - 62 + + - 65
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT ALL - + 86 - + COUNT( * ) + NULLIF ( - + ( - ( + - 16 ) ), - 74 * + 33 / + - 58 + + AVG ( DISTINCT 71 ) ) + + 46
----
-57

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - + 86 - + COUNT ( * ) + NULLIF ( - + ( - ( + - 16 ) ), - 74 * + 33 / + - 58 + + AVG ( DISTINCT 71 ) ) + + 46
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT 3 * - 95 + - + MIN( - 21 ) AS col2
----
-264

skipif mysql # not compatible
query I rowsort label-587
SELECT 3 * - 95 + - + MIN ( - 21 ) AS col2
----
-264

query I rowsort
SELECT 67 + - 77
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-589
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, - 37 AS col1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-589
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - 37 AS col1
----
NULL
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT ALL 7 DIV 2
----
3

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL 7 / 2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT 12 * COUNT( * ) + + 67 * - 96 * - - 94 + + + 91 * + + 39 * + - COUNT( * ) AS col1
----
-608145

skipif mysql # not compatible
query I rowsort label-591
SELECT 12 * COUNT ( * ) + + 67 * - 96 * - - 94 + + + 91 * + + 39 * + - COUNT ( * ) AS col1
----
-608145

query II rowsort
SELECT ALL - 57, + 77 AS col2
----
-57
77

query I rowsort
SELECT 95 + + 30 * - 73 AS col0
----
-2095

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT ( + - 10 ) * + SUM( DISTINCT - ( + 87 ) )
----
870

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT ( + - 10 ) * + SUM ( DISTINCT - ( + 87 ) )
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT - NULLIF ( CASE - 69 WHEN COUNT( * ) * - SUM( ALL - 73 ) * + COUNT( * ) + + 7 - - NULLIF ( - 45, + - 85 + 36 ) + 70 * + 32 THEN NULL ELSE + 19 END, + 29 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT - NULLIF ( CASE - 69 WHEN COUNT ( * ) * - SUM ( ALL - 73 ) * + COUNT ( * ) + + 7 - - NULLIF ( - 45, + - 85 + 36 ) + 70 * + 32 THEN NULL ELSE + 19 END, + 29 ) AS col0
----
-19

query I rowsort
SELECT 82 * - 40 AS col0
----
-3280

query I rowsort
SELECT - 98 * 93 + - 36 * - + 96
----
-5658

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT 30 + - COUNT( * ) + + 13
----
42

skipif mysql # not compatible
query I rowsort label-599
SELECT 30 + - COUNT ( * ) + + 13
----
42

query I rowsort
SELECT ALL 34 + - 43 AS col1
----
-9

query II rowsort
SELECT ALL 98 + 51 * - COALESCE ( - - 12, + 30 ) * - + 91 AS col2, 4
----
55790
4

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT DISTINCT 28 DIV COALESCE ( + 45, - 13 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT 28 / COALESCE ( + 45, - 13 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT ALL + 45 + - MAX( 23 )
----
22

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL + 45 + - MAX ( 23 )
----
22

query I rowsort
SELECT 90 + - 0
----
90

query II rowsort
SELECT - 19 col1, - 28
----
-19
-28

query I rowsort
SELECT ALL + 10 * 53 + - 2 col2
----
528

query II rowsort
SELECT - CASE - 31 WHEN - 24 THEN + 80 ELSE NULL END AS col0, + 29 AS col1
----
NULL
29

query I rowsort
SELECT ALL - 49 * - 10 AS col2
----
490

query II rowsort
SELECT ALL + 95 AS col2, + 24 AS col1
----
95
24

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT - COUNT( * ) + 37 * + 55 + + - 73
----
1961

skipif mysql # not compatible
query I rowsort label-610
SELECT - COUNT ( * ) + 37 * + 55 + + - 73
----
1961

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT - - COUNT( ALL - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-611
SELECT - - COUNT ( ALL - 5 )
----
1

query I rowsort
SELECT - ( + - ( 99 ) ) * - - 49 AS col0
----
4851

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-614
SELECT DISTINCT - MAX( ALL 42 ) * - 38 DIV + COUNT( * ) AS col1
----
1596

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT - MAX ( ALL 42 ) * - 38 / + COUNT ( * ) AS col1
----
1596

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

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

query I rowsort
SELECT 5 * - 17
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL - COUNT( * ) + + CASE - + 1 WHEN - 58 THEN NULL ELSE - COALESCE ( - MAX( DISTINCT + 47 ), COALESCE ( - 6, 8 ) ) + 42 * COUNT( * ) END - - - MIN( - - 68 )
----
20

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL - COUNT ( * ) + + CASE - + 1 WHEN - 58 THEN NULL ELSE - COALESCE ( - MAX ( DISTINCT + 47 ), COALESCE ( - 6, 8 ) ) + 42 * COUNT ( * ) END - - - MIN ( - - 68 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-618
SELECT ALL - COUNT( * ) * - NULLIF ( - MAX( - - 85 ), + 73 ) AS col0, - 91 + + 96 AS col2, + 84 DIV + 9
----
-85
5
9

skipif mysql # not compatible
query III rowsort label-618
SELECT ALL - COUNT ( * ) * - NULLIF ( - MAX ( - - 85 ), + 73 ) AS col0, - 91 + + 96 AS col2, + 84 / + 9
----
-85
5
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT + 19 DIV NULLIF ( 79, - - COUNT( * ) ) + - + 85
----
-85

skipif mysql # not compatible
query I rowsort label-619
SELECT + 19 / NULLIF ( 79, - - COUNT ( * ) ) + - + 85
----
-85

query I rowsort
SELECT 30 * - ( 86 ) AS col2
----
-2580

query II rowsort
SELECT 40 * + - COALESCE ( - 47, - 78 ) AS col1, 9 * + 56
----
1880
504

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL - ( - - ( - MAX( 7 ) ) ) + - - 82 + - 2 * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL - ( - - ( - MAX ( 7 ) ) ) + - - 82 + - 2 * COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-623
SELECT 11 - - COUNT( * ) AS col2, 42
----
12
42

skipif mysql # not compatible
query II rowsort label-623
SELECT 11 - - COUNT ( * ) AS col2, 42
----
12
42

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT DISTINCT - SUM( 43 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT - SUM ( 43 ) col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT ALL - COUNT( - + 31 ) + + 45 * - 19 + - + 74 + + 52 * - CAST( NULL AS SIGNED ) * - + ( + NULLIF ( + COUNT( * ), 99 ) ) * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - COUNT ( - + 31 ) + + 45 * - 19 + - + 74 + + 52 * - CAST ( NULL AS INTEGER ) * - + ( + NULLIF ( + COUNT ( * ), 99 ) ) * - 8
----
NULL

query I rowsort
SELECT ALL 81 * + 96
----
7776

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL 39 + + MIN( 11 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL 39 + + MIN ( 11 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT - COUNT( * ) - - ( - COUNT( * ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-628
SELECT - COUNT ( * ) - - ( - COUNT ( * ) ) AS col1
----
-2

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

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + COUNT ( * ) * - - 54 + 48 AS col1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-630
SELECT - COALESCE ( - - 20, + 69 DIV - 82 )
----
-20

skipif mysql # not compatible
query I rowsort label-630
SELECT - COALESCE ( - - 20, + 69 / - 82 )
----
-20

query I rowsort
SELECT DISTINCT 1 - - + 53
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT + SUM( 34 ) + - - 21
----
55

skipif mysql # not compatible
query I rowsort label-632
SELECT + SUM ( 34 ) + - - 21
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-633
SELECT ALL - + 19 * - 86 AS col1, - COUNT( * ) + + - 78 + 97 AS col0
----
1634
18

skipif mysql # not compatible
query II rowsort label-633
SELECT ALL - + 19 * - 86 AS col1, - COUNT ( * ) + + - 78 + 97 AS col0
----
1634
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT - COALESCE ( CASE - - 86 WHEN CAST( - 4 AS SIGNED ) THEN MIN( ALL - 67 ) ELSE NULL END, + 2 * + - COUNT( * ), - - SUM( + 10 ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-634
SELECT - COALESCE ( CASE - - 86 WHEN CAST ( - 4 AS INTEGER ) THEN MIN ( ALL - 67 ) ELSE NULL END, + 2 * + - COUNT ( * ), - - SUM ( + 10 ) ) AS col2
----
2

query I rowsort
SELECT ALL - CASE - 15 WHEN 4 * 56 THEN 54 + - - 9 + - 77 END AS col1
----
NULL

query I rowsort
SELECT + 7 * 87
----
609

query I rowsort
SELECT + 73 * + 57 * + 82
----
341202

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-638
SELECT ALL + 37 * 27 + - - 57 + + 77 * - ( - 73 ) + + - 7 + + COUNT( * ) DIV 30 * 21 * + 0 + + 53
----
6723

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + 37 * 27 + - - 57 + + 77 * - ( - 73 ) + + - 7 + + COUNT ( * ) / 30 * 21 * + 0 + + 53
----
6723

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

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

query I rowsort
SELECT - + COALESCE ( + 69, - 28 ) col1
----
-69

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

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

query I rowsort
SELECT DISTINCT 35 * 38 col0
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT + ( - COUNT( * ) ) + - 78
----
-79

skipif mysql # not compatible
query I rowsort label-643
SELECT + ( - COUNT ( * ) ) + - 78
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT + MAX( - 60 ) + - - 86 + + + 41 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-644
SELECT + MAX ( - 60 ) + - - 86 + + + 41 AS col2
----
67

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

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

query I rowsort
SELECT - 59 + 89
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + COUNT( * ) * NULLIF ( - CASE + SUM( DISTINCT + 22 ) WHEN - 87 * 97 THEN NULL WHEN + 16 THEN - - 75 * + - 65 + + - ( 88 ) WHEN + 67 - 99 * - 66 THEN NULL END, 92 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT + COUNT ( * ) * NULLIF ( - CASE + SUM ( DISTINCT + 22 ) WHEN - 87 * 97 THEN NULL WHEN + 16 THEN - - 75 * + - 65 + + - ( 88 ) WHEN + 67 - 99 * - 66 THEN NULL END, 92 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT 86 DIV + 74 + - ( - - 66 ) - COALESCE ( - 19, + 34 + - ( 65 ) - + 3 - - 91 ) DIV + ( 11 )
----
-64

skipif mysql # not compatible
query I rowsort label-648
SELECT 86 / + 74 + - ( - - 66 ) - COALESCE ( - 19, + 34 + - ( 65 ) - + 3 - - 91 ) / + ( 11 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL - ( + - 58 ) * - + 15 + - 74 + + - COUNT( * ) * + - 40
----
-904

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - ( + - 58 ) * - + 15 + - 74 + + - COUNT ( * ) * + - 40
----
-904

onlyif mysql # aggregate syntax: 
query II rowsort label-650
SELECT + 23 + 85 * - ( + 36 ) + - + COUNT( * ) AS col0, CASE ( 73 ) WHEN - ( - COUNT( * ) ) THEN COUNT( * ) END - - 38 col1
----
-3038
NULL

skipif mysql # not compatible
query II rowsort label-650
SELECT + 23 + 85 * - ( + 36 ) + - + COUNT ( * ) AS col0, CASE ( 73 ) WHEN - ( - COUNT ( * ) ) THEN COUNT ( * ) END - - 38 col1
----
-3038
NULL

query I rowsort
SELECT - CASE - 59 WHEN + + NULLIF ( + - 48, + 36 ) THEN + 68 ELSE NULL END * - - 85 + - - 75
----
NULL

query I rowsort
SELECT - 90 * - 71 * - 43 + 84
----
-274686

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ( MAX( + - 88 ) ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-653
SELECT ( MAX ( + - 88 ) ) col1
----
-88

query I rowsort
SELECT DISTINCT - 19 * 3 + - 34 + - 34
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT COALESCE ( - 9, - CAST( NULL AS SIGNED ), 50 ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-655
SELECT COALESCE ( - 9, - CAST ( NULL AS INTEGER ), 50 ) col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL + 86 * - 70 + + + 72 + 73 + - - 1 + - ( - COUNT( * ) ) * + 50 AS col1
----
-5824

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + 86 * - 70 + + + 72 + 73 + - - 1 + - ( - COUNT ( * ) ) * + 50 AS col1
----
-5824

query II rowsort
SELECT DISTINCT + 69, 57 AS col1
----
69
57

query I rowsort
SELECT 87 * - 50 + - + 25 * 88 AS col2
----
-6550

query I rowsort
SELECT DISTINCT + 96 * - 19 * 6
----
-10944

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

query I rowsort
SELECT - - 54 * + - 71
----
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL ( + - COUNT( * ) ) * 8 - + + COUNT( * ) + ( - COUNT( * ) ) + - 5 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL ( + - COUNT ( * ) ) * 8 - + + COUNT ( * ) + ( - COUNT ( * ) ) + - 5 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT + CASE MIN( DISTINCT - - 12 ) WHEN - 17 THEN + 86 * - + COUNT( * ) + - + COALESCE ( - 46, + - 80 ) WHEN - 90 + - 76 THEN + 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT + CASE MIN ( DISTINCT - - 12 ) WHEN - 17 THEN + 86 * - + COUNT ( * ) + - + COALESCE ( - 46, + - 80 ) WHEN - 90 + - 76 THEN + 97 ELSE NULL END
----
NULL

query I rowsort
SELECT - 50 + - 76 + + 80
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT - - 4 DIV + COUNT( * ) + 6 - + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-665
SELECT - - 4 / + COUNT ( * ) + 6 - + COUNT ( * )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-666
SELECT ALL + - CAST( NULL AS SIGNED ), + ( + COALESCE ( + 75, - 3 ) ) AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-666
SELECT ALL + - CAST ( NULL AS INTEGER ), + ( + COALESCE ( + 75, - 3 ) ) AS col1
----
NULL
75

query I rowsort
SELECT DISTINCT - 60 * 61
----
-3660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-668
SELECT - MAX( DISTINCT 94 ) DIV 60 * + - 65
----
65

skipif mysql # not compatible
query I rowsort label-668
SELECT - MAX ( DISTINCT 94 ) / 60 * + - 65
----
65

query I rowsort
SELECT - + 21 + - - 61
----
40

query I rowsort
SELECT + 4 * - - 24
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL NULLIF ( - - MAX( DISTINCT + 80 ), 90 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL NULLIF ( - - MAX ( DISTINCT + 80 ), 90 ) AS col0
----
80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-673
SELECT + + 47 + 48 DIV + ( + 85 ) * COALESCE ( - + ( COUNT( - - 68 ) ), COUNT( * ) * + 84 ) * - 33 * - 83 + + CASE + 64 WHEN 62 THEN NULL ELSE - 71 END AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-673
SELECT + + 47 + 48 / + ( + 85 ) * COALESCE ( - + ( COUNT ( - - 68 ) ), COUNT ( * ) * + 84 ) * - 33 * - 83 + + CASE + 64 WHEN 62 THEN NULL ELSE - 71 END AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT - MAX( - 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-674
SELECT - MAX ( - 58 ) AS col1
----
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT + - 72 + - - 21 DIV + + 3 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-676
SELECT + - 72 + - - 21 / + + 3 AS col1
----
-65

query I rowsort
SELECT ALL - 8 * - 14 AS col0
----
112

query I rowsort
SELECT + + 97 * + 97 * + - 16 - - + 3
----
-150541

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

skipif mysql # not compatible
query I rowsort label-679
SELECT + COUNT ( ALL + - 42 ) + 28 AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-680
SELECT DISTINCT + CASE - AVG ( DISTINCT + 29 ) WHEN - 61 THEN - + 53 END + - - 64 - - + 3 + + COUNT( * ) * - + MAX( ALL - 73 ) / - 99 AS col2, 83 + + - 40 AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-680
SELECT DISTINCT + CASE - AVG ( DISTINCT + 29 ) WHEN - 61 THEN - + 53 END + - - 64 - - + 3 + + COUNT ( * ) * - + MAX ( ALL - 73 ) / - 99 AS col2, 83 + + - 40 AS col1
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT + ( - + 8 ) * COUNT( * ) - - - CASE - 18 WHEN - 6 THEN NULL WHEN - 90 - - 98 THEN 15 END + - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT + ( - + 8 ) * COUNT ( * ) - - - CASE - 18 WHEN - 6 THEN NULL WHEN - 90 - - 98 THEN 15 END + - - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT - CASE + 93 WHEN - AVG ( ALL - - 81 ) THEN NULL WHEN 69 THEN - 77 * - + 39 + - 73 WHEN - MIN( - 77 ) THEN + 91 * + 57 + COALESCE ( - 68, - + 34, + - 70 + + 53 / - ( + 7 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT - CASE + 93 WHEN - AVG ( ALL - - 81 ) THEN NULL WHEN 69 THEN - 77 * - + 39 + - 73 WHEN - MIN ( - 77 ) THEN + 91 * + 57 + COALESCE ( - 68, - + 34, + - 70 + + 53 / - ( + 7 ) ) END
----
NULL

query II rowsort
SELECT 75 AS col1, + ( - 28 )
----
75
-28

query I rowsort
SELECT + 36 * + 66 col1
----
2376

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

skipif mysql # not compatible
query II rowsort label-685
SELECT - CAST ( NULL AS INTEGER ) col1, 20 AS col2
----
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT ALL 18 + MIN( ALL + + 89 ) * 7 * - - 69
----
43005

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL 18 + MIN ( ALL + + 89 ) * 7 * - - 69
----
43005

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT - NULLIF ( + 68, CASE + COUNT( * ) WHEN + 51 THEN ( 57 ) WHEN 96 THEN + ( 62 ) ELSE NULL END + 28 )
----
-68

skipif mysql # not compatible
query I rowsort label-687
SELECT - NULLIF ( + 68, CASE + COUNT ( * ) WHEN + 51 THEN ( 57 ) WHEN 96 THEN + ( 62 ) ELSE NULL END + 28 )
----
-68

query I rowsort
SELECT + 0 * - 9 AS col0
----
0

query I rowsort
SELECT + 76 * - 12 col2
----
-912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT ALL MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / 21 + + 56 - - ( + 4 ) * 89 + - + 78 + + - 18 / - 35 / + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / 21 + + 56 - - ( + 4 ) * 89 + - + 78 + + - 18 / - 35 / + 11
----
NULL

query I rowsort
SELECT + 70 * 81
----
5670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-692
SELECT 28 * + + 17 * + 54 * - 18 * + CAST( NULL AS SIGNED ) + + MAX( ALL 88 ) * - COALESCE ( - 29, - 47 * - - 82 + + + 60 + - - 64 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT 28 * + + 17 * + 54 * - 18 * + CAST ( NULL AS INTEGER ) + + MAX ( ALL 88 ) * - COALESCE ( - 29, - 47 * - - 82 + + + 60 + - - 64 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT + 26 * COUNT( * ) * + 29
----
754

skipif mysql # not compatible
query I rowsort label-693
SELECT + 26 * COUNT ( * ) * + 29
----
754

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT - CASE + + NULLIF ( 16, - 16 + + 63 * 31 ) WHEN - - 43 - + - 93 + - 20 THEN + - COUNT( ALL - ( + 21 ) ) + MIN( - 20 ) END * 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT - CASE + + NULLIF ( 16, - 16 + + 63 * 31 ) WHEN - - 43 - + - 93 + - 20 THEN + - COUNT ( ALL - ( + 21 ) ) + MIN ( - 20 ) END * 39 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT - CAST( NULL AS SIGNED ) + + + CASE + 21 WHEN + + 1 * 42 * + CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN + + 95 + + 35 * + + 16 WHEN 59 THEN - - CAST( + + 76 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT - CAST ( NULL AS INTEGER ) + + + CASE + 21 WHEN + + 1 * 42 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN + + 95 + + 35 * + + 16 WHEN 59 THEN - - CAST ( + + 76 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT - NULLIF ( - - NULLIF ( + COUNT( DISTINCT 27 ), MAX( - 54 ) + + ( 8 ) ), ( + 77 ) + - + 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-696
SELECT - NULLIF ( - - NULLIF ( + COUNT ( DISTINCT 27 ), MAX ( - 54 ) + + ( 8 ) ), ( + 77 ) + - + 41 )
----
-1

query II rowsort
SELECT DISTINCT - 96, + ( - 34 ) AS col0
----
-96
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT DISTINCT 40 * - COUNT( * ) * - 40 AS col0
----
1600

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT 40 * - COUNT ( * ) * - 40 AS col0
----
1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-699
SELECT DISTINCT + 70 * - 97 - 58 + MIN( ALL - 22 ) * + ( + - 91 ) + + 96 + - 60 DIV - + 96
----
-4750

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT + 70 * - 97 - 58 + MIN ( ALL - 22 ) * + ( + - 91 ) + + 96 + - 60 / - + 96
----
-4750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT ALL - CAST( - 32 AS SIGNED ) col1
----
32

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL - CAST ( - 32 AS INTEGER ) col1
----
32

query I rowsort
SELECT DISTINCT NULLIF ( + + ( + 14 ), + - 26 )
----
14

query I rowsort
SELECT DISTINCT - 10 + + - 1 + 35
----
24

query II rowsort
SELECT ALL + 72, + 89 + + 78 AS col0
----
72
167

onlyif mysql # aggregate syntax: 
query III rowsort label-704
SELECT DISTINCT 24 AS col0, MAX( - + 21 ) * + + ( - NULLIF ( + 5, ( 37 ) ) ) * - 55 * - COUNT( * ) * - 86 - - ( 91 ) * + 25 AS col2, - - 27 AS col2
----
24
-494375
27

skipif mysql # not compatible
query III rowsort label-704
SELECT DISTINCT 24 AS col0, MAX ( - + 21 ) * + + ( - NULLIF ( + 5, ( 37 ) ) ) * - 55 * - COUNT ( * ) * - 86 - - ( 91 ) * + 25 AS col2, - - 27 AS col2
----
24
-494375
27

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ALL - - 51 + - + 48 * + COUNT( * ) * - 68 / - + COUNT( * ) + + 65 / 5 * + CASE 73 WHEN 73 THEN NULL WHEN + NULLIF ( - 71, - COUNT( * ) * MAX( + 57 ) ) THEN + - AVG ( ALL ( - 23 ) ) * 41 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL - - 51 + - + 48 * + COUNT ( * ) * - 68 / - + COUNT ( * ) + + 65 / 5 * + CASE 73 WHEN 73 THEN NULL WHEN + NULLIF ( - 71, - COUNT ( * ) * MAX ( + 57 ) ) THEN + - AVG ( ALL ( - 23 ) ) * 41 END col1
----
NULL

query I rowsort
SELECT ALL + + ( - 70 ) + 56 * 96 AS col1
----
5306

query I rowsort
SELECT 86 + + + 0 col0
----
86

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

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

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

query I rowsort
SELECT ALL - 86 + 11 * - 56 + 21 AS col0
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL + COALESCE ( ( + 95 ), - + 25 * + + 56 * NULLIF ( COUNT( - + ( 76 ) ), - + ( 27 ) + 53 + + 6 - - ( - COUNT( DISTINCT 85 ) ) + - + COUNT( * ) ) ) - - 45 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + COALESCE ( ( + 95 ), - + 25 * + + 56 * NULLIF ( COUNT ( - + ( 76 ) ), - + ( 27 ) + 53 + + 6 - - ( - COUNT ( DISTINCT 85 ) ) + - + COUNT ( * ) ) ) - - 45 AS col2
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-712
SELECT DISTINCT + 14 * + NULLIF ( + 63, + - AVG ( + ( - + 43 ) ) + + 87 + + COUNT( * ) + - - COUNT( * ) * 32 * 58 ) * + 17, 45 * - 30 - - - CAST( + - 19 AS SIGNED ) + + 95 AS col2
----
14994
-1236

skipif mysql # not compatible
query II rowsort label-712
SELECT DISTINCT + 14 * + NULLIF ( + 63, + - AVG ( + ( - + 43 ) ) + + 87 + + COUNT ( * ) + - - COUNT ( * ) * 32 * 58 ) * + 17, 45 * - 30 - - - CAST ( + - 19 AS INTEGER ) + + 95 AS col2
----
14994
-1236

query I rowsort
SELECT ALL 64 - - 13 col2
----
77

query II rowsort
SELECT 46 + + 31 AS col2, - 27 * 59 AS col0
----
77
-1593

query I rowsort
SELECT 17 * + + ( 98 ) AS col1
----
1666

query I rowsort
SELECT 30 * - - 41 col1
----
1230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT 36 DIV COUNT( - - 95 )
----
36

skipif mysql # not compatible
query I rowsort label-717
SELECT 36 / COUNT ( - - 95 )
----
36

query II rowsort
SELECT 71 * - 74, 82 AS col2
----
-5254
82

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT ALL 22 * + - COALESCE ( 2, + 97 DIV + AVG ( + 44 ) - + 9, - + 15 ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL 22 * + - COALESCE ( 2, + 97 / + AVG ( + 44 ) - + 9, - + 15 ) col2
----
-44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-721
SELECT + 46 DIV + COUNT( * ) DIV - COUNT( * ) + - 65
----
-111

skipif mysql # not compatible
query I rowsort label-721
SELECT + 46 / + COUNT ( * ) / - COUNT ( * ) + - 65
----
-111

query I rowsort
SELECT ALL - 66 * - 47 * + 47
----
145794

query I rowsort
SELECT + 3 * + NULLIF ( - 51, 70 ) * - 19 * - + 17 + COALESCE ( + 59, + - CASE AVG ( + 23 ) WHEN 71 THEN - - 77 END, - 23 - - 95 * 64 ) - 38 col1
----
-49398

onlyif mysql # aggregate syntax: 
query II rowsort label-724
SELECT 21 * 76 * + - COUNT( * ) + + + 61 * ( - COUNT( ALL + ( + - 65 ) ) ) * 28 + 20 + 7 + + 58 AS col1, 75
----
-3219
75

skipif mysql # not compatible
query II rowsort label-724
SELECT 21 * 76 * + - COUNT ( * ) + + + 61 * ( - COUNT ( ALL + ( + - 65 ) ) ) * 28 + 20 + 7 + + 58 AS col1, 75
----
-3219
75

onlyif mysql # DIV for integer division: 
query I rowsort label-725
SELECT DISTINCT 52 + - 9 DIV + 52 + + 61 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT 52 + - 9 / + 52 + + 61 AS col0
----
113

query I rowsort
SELECT - 96 * - 16 AS col2
----
1536

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

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

query I rowsort
SELECT DISTINCT + 39 + + + 86 + - - 14 AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT DISTINCT - + 99 + - COUNT( * ) - - + 76 * + 74 + + 47
----
5571

skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT - + 99 + - COUNT ( * ) - - + 76 * + 74 + + 47
----
5571

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL - 25 + COUNT( * ) * - - 96 + - + 76
----
-5

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - 25 + COUNT ( * ) * - - 96 + - + 76
----
-5

query I rowsort
SELECT 21 + - 80 * - - 83 * - + 84 col2
----
557781

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL SUM ( ALL 3 )
----
3

query I rowsort
SELECT 11 * + 57 AS col1
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL COUNT( * ) - 12 * - + 23 * - 91 col1
----
-25115

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL COUNT ( * ) - 12 * - + 23 * - 91 col1
----
-25115

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

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT COUNT( 66 )
----
1

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT COUNT ( 66 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT ALL - CAST( - 80 AS SIGNED ) - - 16
----
96

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - CAST ( - 80 AS INTEGER ) - - 16
----
96

query II rowsort
SELECT - 92, NULLIF ( + 64, - - 72 + 18 ) AS col0
----
-92
64

query II rowsort
SELECT ALL 93 AS col2, - NULLIF ( - 82, 22 / 82 )
----
93
82

query I rowsort
SELECT 36 * + 26 AS col2
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT ALL - 64 DIV 67 * 57
----
0

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - 64 / 67 * 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT SUM( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT SUM ( ALL 14 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT ALL COUNT( * ) AS col1, + 91 + + 85
----
1
176

skipif mysql # not compatible
query II rowsort label-746
SELECT ALL COUNT ( * ) AS col1, + 91 + + 85
----
1
176

query I rowsort
SELECT 26 * 18 * - - 64
----
29952

onlyif mysql # aggregate syntax: 
query II rowsort label-748
SELECT ALL + 26 AS col2, ( + 40 ) / + - 19 + - - 71 + 58 * - + 56 * + ( - COUNT( * ) ) - + CASE - - 89 WHEN + 29 THEN 47 + 14 - NULLIF ( 14, - 39 ) END AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-748
SELECT ALL + 26 AS col2, ( + 40 ) / + - 19 + - - 71 + 58 * - + 56 * + ( - COUNT ( * ) ) - + CASE - - 89 WHEN + 29 THEN 47 + 14 - NULLIF ( 14, - 39 ) END AS col1
----
26
NULL

query II rowsort
SELECT DISTINCT + + 79 AS col0, 34
----
79
34

onlyif mysql # aggregate syntax: 
query II rowsort label-750
SELECT ALL + 38 AS col0, 34 + + COUNT( * )
----
38
35

skipif mysql # not compatible
query II rowsort label-750
SELECT ALL + 38 AS col0, 34 + + COUNT ( * )
----
38
35

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

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

query II rowsort
SELECT ALL + 87, - 1 AS col0
----
87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT + CASE COALESCE ( + 4, - COUNT( * ) ) WHEN - 80 THEN + ( + 5 ) + + COUNT( * ) ELSE + 66 END AS col0
----
66

skipif mysql # not compatible
query I rowsort label-753
SELECT + CASE COALESCE ( + 4, - COUNT ( * ) ) WHEN - 80 THEN + ( + 5 ) + + COUNT ( * ) ELSE + 66 END AS col0
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-754
SELECT + + ( - - 78 ) DIV + 5, 23 AS col1
----
15
23

skipif mysql # not compatible
query II rowsort label-754
SELECT + + ( - - 78 ) / + 5, 23 AS col1
----
15
23

query I rowsort
SELECT ALL + ( - NULLIF ( - 2, + 2 ) ) * - 43 + - ( 91 ) + + + 49 * + - 74 * 16
----
-58193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT + + 15 + + + ( COUNT( * ) ) + CAST( + 97 AS SIGNED ) - + 77
----
36

skipif mysql # not compatible
query I rowsort label-756
SELECT + + 15 + + + ( COUNT ( * ) ) + CAST ( + 97 AS INTEGER ) - + 77
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT ALL - + 93 DIV 27
----
-3

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL - + 93 / 27
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT DISTINCT + 77 * COUNT( * ) * 44 + + - 92 AS col1
----
3296

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT + 77 * COUNT ( * ) * 44 + + - 92 AS col1
----
3296

onlyif mysql # aggregate syntax: 
query II rowsort label-759
SELECT ALL + - 70 AS col0, COUNT( * ) + 32 AS col2
----
-70
33

skipif mysql # not compatible
query II rowsort label-759
SELECT ALL + - 70 AS col0, COUNT ( * ) + 32 AS col2
----
-70
33

query II rowsort
SELECT + 14, 81 * + 59 col2
----
14
4779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-761
SELECT + 25 - + MIN( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT + 25 - + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT + 83 * + 42 AS col0, - 24
----
3486
-24

query I rowsort
SELECT - NULLIF ( + - 52, + - 93 )
----
52

query I rowsort
SELECT ALL 7 - 96
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT COUNT( - + NULLIF ( + - 71, ( 37 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-765
SELECT COUNT ( - + NULLIF ( + - 71, ( 37 ) ) ) AS col0
----
1

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

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

query II rowsort
SELECT - ( + 70 ), 41 AS col2
----
-70
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-768
SELECT + 41 + + NULLIF ( + - 70, 31 ) * - COUNT( * ) * + - 56 * - + NULLIF ( - - 1, - + CAST( 19 AS SIGNED ) ) + + + CAST( NULL AS SIGNED ) - 57 - + 15 * - MIN( DISTINCT + COALESCE ( + + 95, + 62 ) ) - - + COUNT( * ) + + COUNT( * ) + + 64 * NULLIF ( COUNT( * ) - + COUNT( * ), - CASE 63 WHEN 76 THEN NULL ELSE + 97 * 87 END ) * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT + 41 + + NULLIF ( + - 70, 31 ) * - COUNT ( * ) * + - 56 * - + NULLIF ( - - 1, - + CAST ( 19 AS INTEGER ) ) + + + CAST ( NULL AS INTEGER ) - 57 - + 15 * - MIN ( DISTINCT + COALESCE ( + + 95, + 62 ) ) - - + COUNT ( * ) + + COUNT ( * ) + + 64 * NULLIF ( COUNT ( * ) - + COUNT ( * ), - CASE 63 WHEN 76 THEN NULL ELSE + 97 * 87 END ) * 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-769
SELECT ALL CAST( - + ( - 64 ) AS SIGNED ) - 11 - - - 32 AS col2, 0
----
21
0

skipif mysql # not compatible
query II rowsort label-769
SELECT ALL CAST ( - + ( - 64 ) AS INTEGER ) - 11 - - - 32 AS col2, 0
----
21
0

query I rowsort
SELECT + 17 + + 90 + + 53 AS col0
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-771
SELECT + 35 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-771
SELECT + 35 / - 97 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-773
SELECT ALL CASE - 20 WHEN + 73 * - 56 * 11 * 20 + - 0 / + 4 + - SUM( + 69 ) + - - 9 THEN - CASE - SUM( DISTINCT + + 91 ) WHEN 92 THEN 82 END - + - CAST( - ( - - COUNT( * ) ) AS SIGNED ) * 49 WHEN 44 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL CASE - 20 WHEN + 73 * - 56 * 11 * 20 + - 0 / + 4 + - SUM ( + 69 ) + - - 9 THEN - CASE - SUM ( DISTINCT + + 91 ) WHEN 92 THEN 82 END - + - CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) * 49 WHEN 44 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT ALL CASE - CASE + 49 WHEN + COUNT( * ) * + 26 / - 38 + 46 THEN NULL WHEN 8 THEN 2 + - 44 * + 84 END WHEN + COALESCE ( - - NULLIF ( 64, + + 10 ), + 37, + + ( - - 24 ) ) THEN NULL ELSE + 64 END * - 92 AS col2
----
-5888

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL CASE - CASE + 49 WHEN + COUNT ( * ) * + 26 / - 38 + 46 THEN NULL WHEN 8 THEN 2 + - 44 * + 84 END WHEN + COALESCE ( - - NULLIF ( 64, + + 10 ), + 37, + + ( - - 24 ) ) THEN NULL ELSE + 64 END * - 92 AS col2
----
-5888

query I rowsort
SELECT - 63 + 13 AS col0
----
-50

query I rowsort
SELECT ALL ( 73 ) col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT DISTINCT + 6 DIV - 55 * + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT + 6 / - 55 * + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - COALESCE ( - 22, CASE - 17 WHEN + 4 THEN NULL WHEN + 94 * - ( - 97 ) - - - 36 THEN COUNT( * ) * + 73 + - 64 + + + 64 * - + 76 - - COUNT( * ) ELSE NULL END - - 83 * 9 * + + 42 ) + 33 * CASE 64 WHEN - 84 THEN NULL WHEN - 37 THEN NULL WHEN + 55 THEN 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT - COALESCE ( - 22, CASE - 17 WHEN + 4 THEN NULL WHEN + 94 * - ( - 97 ) - - - 36 THEN COUNT ( * ) * + 73 + - 64 + + + 64 * - + 76 - - COUNT ( * ) ELSE NULL END - - 83 * 9 * + + 42 ) + 33 * CASE 64 WHEN - 84 THEN NULL WHEN - 37 THEN NULL WHEN + 55 THEN 14 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-779
SELECT ALL + 34 + 27 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + 34 + 27 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 44 * ( - 16 ) + + 7 + - 51 AS col1
----
-748

query I rowsort
SELECT DISTINCT + 32 + + 93 AS col2
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-782
SELECT - CASE + 26 WHEN + + 72 + ( 17 ) THEN NULL WHEN CAST( NULL AS SIGNED ) * - 30 / ( + 27 ) / - + 15 - - 25 + - 53 * + 85 * COALESCE ( 93, ( + - COALESCE ( + 36, - 93 ) ), 41 ) + 35 + ( 19 ) * - COALESCE ( - 78, - 32 * 91 ) THEN 13 END / CAST( 27 * + 85 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT - CASE + 26 WHEN + + 72 + ( 17 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 30 / ( + 27 ) / - + 15 - - 25 + - 53 * + 85 * COALESCE ( 93, ( + - COALESCE ( + 36, - 93 ) ), 41 ) + 35 + ( 19 ) * - COALESCE ( - 78, - 32 * 91 ) THEN 13 END / CAST ( 27 * + 85 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-783
SELECT + 53 DIV 70 + + 15 * 9 + + + COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-783
SELECT + 53 / 70 + + 15 * 9 + + + COUNT ( * )
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT DISTINCT - CASE + + 33 WHEN + 82 + 44 * - + 97 + + + 68 * + 56 + + ( + + 23 ) + + CAST( + 39 AS SIGNED ) + AVG ( ALL - + 39 ) * NULLIF ( - 60, + SUM( DISTINCT + - 44 ) + + COUNT( * ) + + - 22 * - 10 ) THEN + COUNT( * ) WHEN + 20 * - 71 THEN NULL END * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT - CASE + + 33 WHEN + 82 + 44 * - + 97 + + + 68 * + 56 + + ( + + 23 ) + + CAST ( + 39 AS INTEGER ) + AVG ( ALL - + 39 ) * NULLIF ( - 60, + SUM ( DISTINCT + - 44 ) + + COUNT ( * ) + + - 22 * - 10 ) THEN + COUNT ( * ) WHEN + 20 * - 71 THEN NULL END * COUNT ( * ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT DISTINCT - 89 DIV + 33 + - 2 + + 17 * 56 * + 46
----
43788

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT - 89 / + 33 + - 2 + + 17 * 56 * + 46
----
43788

query I rowsort
SELECT ALL - 47 * ( - 89 ) + + + 99
----
4282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-787
SELECT DISTINCT 15 DIV SUM( 31 ) + + 60
----
60

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT 15 / SUM ( 31 ) + + 60
----
60

query I rowsort
SELECT + - COALESCE ( + 0, + 14 )
----
0

query I rowsort
SELECT - 1 * + 16 - + ( - 81 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-790
SELECT DISTINCT + + COUNT( * ) DIV + 59 * - + COUNT( * ) + - 96 + - + CASE - 6 WHEN CAST( + 11 AS DECIMAL ) * + 69 + + 40 - + + 68 THEN 95 DIV - 99 DIV - CAST( COUNT( + 95 ) AS SIGNED ) * - ( - 71 ) - CAST( 44 AS SIGNED ) * 52 WHEN 67 * + 73 + 40 THEN 69 * + 98 ELSE 70 END + - MAX( 14 ) col2
----
-180

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT + + COUNT ( * ) / + 59 * - + COUNT ( * ) + - 96 + - + CASE - 6 WHEN CAST ( + 11 AS REAL ) * + 69 + + 40 - + + 68 THEN 95 / - 99 / - CAST ( COUNT ( + 95 ) AS INTEGER ) * - ( - 71 ) - CAST ( 44 AS INTEGER ) * 52 WHEN 67 * + 73 + 40 THEN 69 * + 98 ELSE 70 END + - MAX ( 14 ) col2
----
-180

query I rowsort
SELECT + 7 * - 46 AS col2
----
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT + NULLIF ( + + COUNT( * ), 10 * + 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-792
SELECT + NULLIF ( + + COUNT ( * ), 10 * + 62 ) AS col0
----
1

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

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

query I rowsort
SELECT + 53 * 27 * + 55 * + 67 AS col2
----
5273235

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-795
SELECT DISTINCT + AVG ( + CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT + AVG ( + CAST ( NULL AS REAL ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT DISTINCT ( + 77 ) * - SUM( ALL - 41 ) AS col1
----
3157

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT ( + 77 ) * - SUM ( ALL - 41 ) AS col1
----
3157

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

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

query I rowsort
SELECT + COALESCE ( - + 77, 81 ) + - - 30 * - 96
----
-2957

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT - CASE + 4 WHEN COUNT( * ) - + 80 * 88 * + - 53 + - 45 THEN NULL ELSE 41 * + COUNT( * ) END
----
-41

skipif mysql # not compatible
query I rowsort label-799
SELECT - CASE + 4 WHEN COUNT ( * ) - + 80 * 88 * + - 53 + - 45 THEN NULL ELSE 41 * + COUNT ( * ) END
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT 30 * - + SUM( + - 2 ) * - 21 * + + 81 AS col1
----
-102060

skipif mysql # not compatible
query I rowsort label-800
SELECT 30 * - + SUM ( + - 2 ) * - 21 * + + 81 AS col1
----
-102060

query II rowsort
SELECT ALL 4, - 34 AS col0
----
4
-34

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

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

query I rowsort
SELECT DISTINCT 4 + + 89
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-804
SELECT ALL 15, - 58 * COUNT( * ) * + 80 AS col2
----
15
-4640

skipif mysql # not compatible
query II rowsort label-804
SELECT ALL 15, - 58 * COUNT ( * ) * + 80 AS col2
----
15
-4640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-805
SELECT NULLIF ( ( + COUNT( * ) ), + + CAST( - 83 AS SIGNED ) ) * - 76
----
-76

skipif mysql # not compatible
query I rowsort label-805
SELECT NULLIF ( ( + COUNT ( * ) ), + + CAST ( - 83 AS INTEGER ) ) * - 76
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-806
SELECT ( ( SUM( DISTINCT + 47 ) ) ) * ( + 77 ) AS col0, 66 DIV 99 - 56 * + + 56
----
3619
-3136

skipif mysql # not compatible
query II rowsort label-806
SELECT ( ( SUM ( DISTINCT + 47 ) ) ) * ( + 77 ) AS col0, 66 / 99 - 56 * + + 56
----
3619
-3136

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

query I rowsort
SELECT ALL 23 + 71 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT DISTINCT + - 68 + - SUM( 91 ) * + 80
----
-7348

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT + - 68 + - SUM ( 91 ) * + 80
----
-7348

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

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

query I rowsort
SELECT ALL 89 + + NULLIF ( - 1, + 56 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT 7 - + 78 * + + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT 7 - + 78 * + + COUNT ( * )
----
-71

query I rowsort
SELECT COALESCE ( 19, - - 81 ) - + 6 AS col1
----
13

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

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL - + 26 / - COUNT ( * ) AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-815
SELECT + ( - + 89 ) DIV - - COUNT( * ) * - - COUNT( * ) + - 68 + + + 29 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-815
SELECT + ( - + 89 ) / - - COUNT ( * ) * - - COUNT ( * ) + - 68 + + + 29 AS col2
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT - 8 * + MIN( - 5 ) * - - 29 * + ( COALESCE ( 7, - 79, - - COUNT( * ) + - - ( NULLIF ( - 75, + 90 ) ) ) )
----
8120

skipif mysql # not compatible
query I rowsort label-816
SELECT - 8 * + MIN ( - 5 ) * - - 29 * + ( COALESCE ( 7, - 79, - - COUNT ( * ) + - - ( NULLIF ( - 75, + 90 ) ) ) )
----
8120

query I rowsort
SELECT ALL + 36 * - 6 AS col1
----
-216

query I rowsort
SELECT 8 + 59
----
67

query II rowsort
SELECT DISTINCT - 67 AS col1, - 26
----
-67
-26

query I rowsort
SELECT 54 + - 63 * + NULLIF ( + 76, - 21 + - + 48 ) * 11 * + + 2 + + 65 AS col1
----
-105217

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL + MAX( + + 76 ) * 76 * + COUNT( * ) * + ( + 43 ) AS col0
----
248368

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL + MAX ( + + 76 ) * 76 * + COUNT ( * ) * + ( + 43 ) AS col0
----
248368

query I rowsort
SELECT ALL + - 21 * 90 * - COALESCE ( + - 25, - 14 ) AS col2
----
-47250

query II rowsort
SELECT + 23, - 23 AS col2
----
23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT DISTINCT + 77 * + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT + 77 * + COUNT ( * ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-825
SELECT COUNT( * ) * - 3 * + - 27 * - CASE 54 WHEN - ( - - 22 ) * + COALESCE ( - SUM( - 72 ), - - 80 / + COUNT( * ) + - - 55, 85 ) - + CAST( + - 57 AS SIGNED ) + - 37 + + 37 THEN NULL WHEN 91 THEN NULL WHEN - 39 THEN NULL WHEN + ( - SUM( 39 ) ) THEN CASE WHEN NOT 18 IN ( + COUNT( * ) ) THEN 60 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT COUNT ( * ) * - 3 * + - 27 * - CASE 54 WHEN - ( - - 22 ) * + COALESCE ( - SUM ( - 72 ), - - 80 / + COUNT ( * ) + - - 55, 85 ) - + CAST ( + - 57 AS INTEGER ) + - 37 + + 37 THEN NULL WHEN 91 THEN NULL WHEN - 39 THEN NULL WHEN + ( - SUM ( 39 ) ) THEN CASE WHEN NOT 18 IN ( + COUNT ( * ) ) THEN 60 ELSE NULL END END
----
NULL

query I rowsort
SELECT 11 * 47 * + 78
----
40326

query I rowsort
SELECT 49 + - 88
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL - MAX( ALL + 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL - MAX ( ALL + 97 ) AS col0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-830
SELECT 30 DIV - + 55
----
0

skipif mysql # not compatible
query I rowsort label-830
SELECT 30 / - + 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL + 33 + + 99 + - + 25 + 97 - + COUNT( * ) * + + 3 * - 46 col1
----
342

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL + 33 + + 99 + - + 25 + 97 - + COUNT ( * ) * + + 3 * - 46 col1
----
342

query I rowsort
SELECT ALL 58 * ( - 37 )
----
-2146

query I rowsort
SELECT 55 / + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE 83 END * 98 * - 70 AS col2
----
NULL

query I rowsort
SELECT ALL - ( + - 53 ) + - + 75 AS col2
----
-22

query I rowsort
SELECT DISTINCT + 79 + 40
----
119

query I rowsort
SELECT DISTINCT 93 + + 91 col2
----
184

query II rowsort
SELECT ALL 52 + - - 65 AS col2, + 22
----
117
22

query I rowsort
SELECT 45 + - 25 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT 81 - - COUNT( - 72 )
----
82

skipif mysql # not compatible
query I rowsort label-839
SELECT 81 - - COUNT ( - 72 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL 98 * + COUNT( * ) * + + 70 col0
----
6860

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL 98 * + COUNT ( * ) * + + 70 col0
----
6860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-841
SELECT ALL 16 + COUNT( * ) - - + COALESCE ( + 63, + 99, - 67 * - - 86 * + COUNT( * ) + + 62, + - 17 + + 22 ), 94 + 39 - - CAST( NULL AS SIGNED ) - + 16 + + - 99 / + + ( + 26 ) * - + 89 AS col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-841
SELECT ALL 16 + COUNT ( * ) - - + COALESCE ( + 63, + 99, - 67 * - - 86 * + COUNT ( * ) + + 62, + - 17 + + 22 ), 94 + 39 - - CAST ( NULL AS INTEGER ) - + 16 + + - 99 / + + ( + 26 ) * - + 89 AS col0
----
80
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-842
SELECT MAX( ALL + 3 ) + + + COUNT( + 71 ) * + 64 * 34, NULLIF ( + CAST( - NULLIF ( + 63, - - 11 + 36 ) AS SIGNED ), + 21 + + 63 ) * - + 28 + - + 35 + - + 18 col1
----
2179
1711

skipif mysql # not compatible
query II rowsort label-842
SELECT MAX ( ALL + 3 ) + + + COUNT ( + 71 ) * + 64 * 34, NULLIF ( + CAST ( - NULLIF ( + 63, - - 11 + 36 ) AS INTEGER ), + 21 + + 63 ) * - + 28 + - + 35 + - + 18 col1
----
2179
1711

onlyif mysql # aggregate syntax: 
query II rowsort label-843
SELECT 20 AS col2, COUNT( * ) * + - 12 * + + 66
----
20
-792

skipif mysql # not compatible
query II rowsort label-843
SELECT 20 AS col2, COUNT ( * ) * + - 12 * + + 66
----
20
-792

query I rowsort
SELECT ALL 7 + + - 30 * + - 38 * + - 53 AS col1
----
-60413

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT SUM( DISTINCT - - 8 ) + + 1
----
9

skipif mysql # not compatible
query I rowsort label-845
SELECT SUM ( DISTINCT - - 8 ) + + 1
----
9

query II rowsort
SELECT 58 AS col2, 24 AS col0
----
58
24

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL + 14 * - 60 + + ( + 18 ) + + NULLIF ( - MAX( DISTINCT - 27 ), 11 * + 17 )
----
-795

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL + 14 * - 60 + + ( + 18 ) + + NULLIF ( - MAX ( DISTINCT - 27 ), 11 * + 17 )
----
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT - MAX( DISTINCT - 81 ) + - + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT - MAX ( DISTINCT - 81 ) + - + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-849
SELECT ALL + COUNT( * ), SUM( DISTINCT - 34 ) * - 4 AS col1
----
1
136

skipif mysql # not compatible
query II rowsort label-849
SELECT ALL + COUNT ( * ), SUM ( DISTINCT - 34 ) * - 4 AS col1
----
1
136

onlyif mysql # aggregate syntax: 
query II rowsort label-850
SELECT DISTINCT - 3 AS col2, + COUNT( * ) - - 30
----
-3
31

skipif mysql # not compatible
query II rowsort label-850
SELECT DISTINCT - 3 AS col2, + COUNT ( * ) - - 30
----
-3
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-851
SELECT ALL - 42 - - 97 / - - 20 * + + CASE + COUNT( 72 ) WHEN - MAX( ALL 54 ) * - CAST( - + ( - - 78 ) AS SIGNED ) - - COUNT( * ) + 55 / - 73 * + 59 THEN - - MAX( ALL + 29 ) + - 69 + + + COALESCE ( 3, + COUNT( * ), - 30 * - 84, 51 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL - 42 - - 97 / - - 20 * + + CASE + COUNT ( 72 ) WHEN - MAX ( ALL 54 ) * - CAST ( - + ( - - 78 ) AS INTEGER ) - - COUNT ( * ) + 55 / - 73 * + 59 THEN - - MAX ( ALL + 29 ) + - 69 + + + COALESCE ( 3, + COUNT ( * ), - 30 * - 84, 51 ) END
----
NULL

query I rowsort
SELECT 51 + - + 89 col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-853
SELECT - 40 + - COALESCE ( 28, - 83 ) * - COALESCE ( - MIN( 24 ), - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + 88
----
-624

skipif mysql # not compatible
query I rowsort label-853
SELECT - 40 + - COALESCE ( 28, - 83 ) * - COALESCE ( - MIN ( 24 ), - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 88
----
-624

query II rowsort
SELECT DISTINCT - 98 * - 23 AS col0, 66
----
2254
66

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

skipif mysql # not compatible
query I rowsort label-855
SELECT COUNT ( * ) * + 84 * - 96 - 49 AS col0
----
-8113

query I rowsort
SELECT + ( 41 ) * + 72 AS col1
----
2952

query I rowsort
SELECT 90 + 53 AS col0
----
143

query II rowsort
SELECT ALL - 20 col0, - 93 AS col2
----
-20
-93

query I rowsort
SELECT DISTINCT 80 * + 36
----
2880

query I rowsort
SELECT 54 * - ( 30 )
----
-1620

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT ALL - - 98, 95 + + COUNT( * ) + - NULLIF ( + + 42, + 97 ) AS col1
----
98
54

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL - - 98, 95 + + COUNT ( * ) + - NULLIF ( + + 42, + 97 ) AS col1
----
98
54

query I rowsort
SELECT ALL - 9 * - + 78 AS col0
----
702

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

skipif mysql # not compatible
query I rowsort label-863
SELECT 11 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( - 26 ) * - + 86 * 68 + + - 32
----
152016

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT ALL - COUNT( * ) * - + 12 + - 59 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - COUNT ( * ) * - + 12 + - 59 AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT ALL - CAST( NULL AS SIGNED ) * + + SUM( + 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - CAST ( NULL AS INTEGER ) * + + SUM ( + 82 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT - 0 DIV 54 * + - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT - 0 / 54 * + - 86 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-868
SELECT ALL + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-869
SELECT ALL CAST( 81 AS SIGNED ) + 69 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL CAST ( 81 AS INTEGER ) + 69 AS col1
----
150

query II rowsort
SELECT ALL + 47 + 43 AS col1, - 17
----
90
-17

query I rowsort
SELECT ALL - 2 + - - 25
----
23

query I rowsort
SELECT DISTINCT - 29 * 17 AS col2
----
-493

query I rowsort
SELECT DISTINCT - 20 + 48
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT DISTINCT CASE - 6 WHEN + - 5 THEN - 74 * + - 94 + - MIN( + - 81 ) WHEN + - 89 * + 95 + - - 14 THEN NULL ELSE - 5 * - - 83 + - 54 + + 73 END
----
-396

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT CASE - 6 WHEN + - 5 THEN - 74 * + - 94 + - MIN ( + - 81 ) WHEN + - 89 * + 95 + - - 14 THEN NULL ELSE - 5 * - - 83 + - 54 + + 73 END
----
-396

onlyif mysql # aggregate syntax: 
query II rowsort label-875
SELECT DISTINCT - 84 + COUNT( * ) + + + ( + NULLIF ( + + 86, AVG ( ALL + + 69 ) ) ) AS col0, + 18
----
3
18

skipif mysql # not compatible
query II rowsort label-875
SELECT DISTINCT - 84 + COUNT ( * ) + + + ( + NULLIF ( + + 86, AVG ( ALL + + 69 ) ) ) AS col0, + 18
----
3
18

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

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

query I rowsort
SELECT ALL - - 34 - + + 85 * 24
----
-2006

query II rowsort
SELECT - + 82 * - + 69, 24 col0
----
5658
24

onlyif mysql # aggregate syntax: 
query II rowsort label-879
SELECT DISTINCT - + COUNT( * ) * 20 + + 44 col2, ( - 57 ) * 99 AS col1
----
24
-5643

skipif mysql # not compatible
query II rowsort label-879
SELECT DISTINCT - + COUNT ( * ) * 20 + + 44 col2, ( - 57 ) * 99 AS col1
----
24
-5643

query I rowsort
SELECT - 68 * + 83
----
-5644

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT - - MIN( - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-882
SELECT - - MIN ( - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT - + COUNT( * ) - - 25 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-883
SELECT - + COUNT ( * ) - - 25 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-884
SELECT + - 55 - 24, - CAST( NULL AS SIGNED ) * - + 29 + + CAST( NULL AS SIGNED ) AS col1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-884
SELECT + - 55 - 24, - CAST ( NULL AS INTEGER ) * - + 29 + + CAST ( NULL AS INTEGER ) AS col1
----
-79
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-885
SELECT ALL - COALESCE ( + CASE 0 WHEN - 93 THEN 47 END, + - 58 - - COALESCE ( 67, + COUNT( * ) * - 54 DIV - + NULLIF ( - + 46, + 57 + - ( - 84 ) + - 42 * + 48 * ( + + 3 ) - CAST( NULL AS SIGNED ) ) - - 10 + + + 26 DIV 69 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL - COALESCE ( + CASE 0 WHEN - 93 THEN 47 END, + - 58 - - COALESCE ( 67, + COUNT ( * ) * - 54 / - + NULLIF ( - + 46, + 57 + - ( - 84 ) + - 42 * + 48 * ( + + 3 ) - CAST ( NULL AS INTEGER ) ) - - 10 + + + 26 / 69 ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT + 26 * + - COUNT( * ) + - 61
----
-87

skipif mysql # not compatible
query I rowsort label-886
SELECT + 26 * + - COUNT ( * ) + - 61
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT COUNT( + 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-887
SELECT COUNT ( + 64 ) AS col1
----
1

query I rowsort
SELECT + 53 - 21 + 70 AS col2
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-889
SELECT + 18 DIV 29 * - 55, 30 AS col1
----
0
30

skipif mysql # not compatible
query II rowsort label-889
SELECT + 18 / 29 * - 55, 30 AS col1
----
0
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-890
SELECT + 24 * + COALESCE ( - - 16, + + 59 + + COUNT( * ) DIV CAST( NULL AS SIGNED ) * - MAX( ALL - 87 ) + + 31, + 0 ) * + 3 * + + 86 AS col2
----
99072

skipif mysql # not compatible
query I rowsort label-890
SELECT + 24 * + COALESCE ( - - 16, + + 59 + + COUNT ( * ) / CAST ( NULL AS INTEGER ) * - MAX ( ALL - 87 ) + + 31, + 0 ) * + 3 * + + 86 AS col2
----
99072

query II rowsort
SELECT + 71 + 7 + COALESCE ( + - 49, - 42, + - ( + 64 ) ) * 83 AS col1, - 30 AS col0
----
-3989
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT + 90 * COUNT( * ) * + 14 + + - COALESCE ( + 37, - 36 )
----
1223

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT + 90 * COUNT ( * ) * + 14 + + - COALESCE ( + 37, - 36 )
----
1223

query I rowsort
SELECT CASE ( 24 ) WHEN - 3 THEN NULL WHEN 16 + + + 47 THEN ( 68 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-894
SELECT CASE - CAST( + 18 AS SIGNED ) WHEN + + 95 THEN + - COUNT( * ) - + - ( - - 38 ) + - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT CASE - CAST ( + 18 AS INTEGER ) WHEN + + 95 THEN + - COUNT ( * ) - + - ( - - 38 ) + - + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-895
SELECT ALL 75 * + - CAST( + 25 AS SIGNED ) * + + 90 - 81 + - - 44 * + 65 * - 49 AS col1, + 11 * - 5 AS col0
----
-308971
-55

skipif mysql # not compatible
query II rowsort label-895
SELECT ALL 75 * + - CAST ( + 25 AS INTEGER ) * + + 90 - 81 + - - 44 * + 65 * - 49 AS col1, + 11 * - 5 AS col0
----
-308971
-55

query I rowsort
SELECT CASE + 2 WHEN + + ( + 89 ) THEN NULL ELSE + 68 END
----
68

query I rowsort
SELECT COALESCE ( + 3, + ( + - 81 ) ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT + COUNT( * ) - CASE 73 WHEN - 23 THEN - - 7 + - 50 * + - COUNT( * ) WHEN - + COUNT( * ) THEN NULL ELSE 75 END AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-898
SELECT + COUNT ( * ) - CASE 73 WHEN - 23 THEN - - 7 + - 50 * + - COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL ELSE 75 END AS col2
----
-74

query I rowsort
SELECT + 98 + - + 99
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT SUM( DISTINCT - + 67 ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-900
SELECT SUM ( DISTINCT - + 67 ) col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT + 6 * ( - - 66 ) + - - 49 - + COUNT( * ) AS col1
----
444

skipif mysql # not compatible
query I rowsort label-901
SELECT + 6 * ( - - 66 ) + - - 49 - + COUNT ( * ) AS col1
----
444

onlyif mysql # aggregate syntax: 
query II rowsort label-902
SELECT + 87, 49 + + SUM( 71 ) AS col2
----
87
120

skipif mysql # not compatible
query II rowsort label-902
SELECT + 87, 49 + + SUM ( 71 ) AS col2
----
87
120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-903
SELECT ALL + CAST( 35 AS DECIMAL ) * - 86 - + 41 * CAST( NULL AS DECIMAL ) * + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL + CAST ( 35 AS REAL ) * - 86 - + 41 * CAST ( NULL AS REAL ) * + + 76
----
NULL

query I rowsort
SELECT - 81 * + 85
----
-6885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT - + CAST( - 57 AS SIGNED ) - ( - COUNT( DISTINCT + ( + - NULLIF ( - 28, + - 46 ) ) ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-905
SELECT - + CAST ( - 57 AS INTEGER ) - ( - COUNT ( DISTINCT + ( + - NULLIF ( - 28, + - 46 ) ) ) ) AS col2
----
58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT - - 20 - - COUNT( * ) - - - SUM( DISTINCT 38 ) + + - CASE - - 94 WHEN + 86 THEN + + 59 - + 29 END + - + 24 - ( - CASE 51 WHEN - COUNT( * ) * - 33 * + 56 THEN - ( + + 75 ) WHEN - - 59 * + 46 * - + 91 + + + 63 + + - 58 * 51 THEN NULL ELSE CASE 10 WHEN MIN( ALL - 56 ) THEN + CAST( NULL AS SIGNED ) WHEN + 94 THEN + 71 * + CASE ( + 28 ) WHEN + MAX( DISTINCT 21 ) THEN NULL WHEN 0 * 55 THEN NULL ELSE SUM( 41 ) END END + ( 56 ) * CASE 32 / - 21 + + 9 WHEN 25 THEN NULL WHEN + CASE - 54 WHEN 27 + 5 THEN NULL WHEN - 25 THEN + 29 END THEN NULLIF ( + COUNT( * ), - CASE + 91 WHEN 1 THEN 25 + NULLIF ( + 10, - 11 ) * CASE 0 WHEN + 15 * + 35 + 67 THEN 90 WHEN 62 - 9 THEN NULL WHEN 52 + + AVG ( - 79 ) THEN - 38 / + CASE 94 WHEN 3 THEN NULL WHEN + ( 80 ) / + 68 THEN COUNT( * ) + - 4 END END END ) ELSE NULL END END ) + + 58 * 99 / 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT - - 20 - - COUNT ( * ) - - - SUM ( DISTINCT 38 ) + + - CASE - - 94 WHEN + 86 THEN + + 59 - + 29 END + - + 24 - ( - CASE 51 WHEN - COUNT ( * ) * - 33 * + 56 THEN - ( + + 75 ) WHEN - - 59 * + 46 * - + 91 + + + 63 + + - 58 * 51 THEN NULL ELSE CASE 10 WHEN MIN ( ALL - 56 ) THEN + CAST ( NULL AS INTEGER ) WHEN + 94 THEN + 71 * + CASE ( + 28 ) WHEN + MAX ( DISTINCT 21 ) THEN NULL WHEN 0 * 55 THEN NULL ELSE SUM ( 41 ) END END + ( 56 ) * CASE 32 / - 21 + + 9 WHEN 25 THEN NULL WHEN + CASE - 54 WHEN 27 + 5 THEN NULL WHEN - 25 THEN + 29 END THEN NULLIF ( + COUNT ( * ), - CASE + 91 WHEN 1 THEN 25 + NULLIF ( + 10, - 11 ) * CASE 0 WHEN + 15 * + 35 + 67 THEN 90 WHEN 62 - 9 THEN NULL WHEN 52 + + AVG ( - 79 ) THEN - 38 / + CASE 94 WHEN 3 THEN NULL WHEN + ( 80 ) / + 68 THEN COUNT ( * ) + - 4 END END END ) ELSE NULL END END ) + + 58 * 99 / 45 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - + 45 + - SUM( NULLIF ( - 18, 59 * 40 * + + 39 * + 27 ) ) - + 18
----
-45

skipif mysql # not compatible
query I rowsort label-909
SELECT - + 45 + - SUM ( NULLIF ( - 18, 59 * 40 * + + 39 * + 27 ) ) - + 18
----
-45

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

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

query I rowsort
SELECT - - 59 + 77 AS col1
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-912
SELECT ALL - - 6 DIV - - 56 * 24 + + SUM( DISTINCT + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL - - 6 / - - 56 * 24 + + SUM ( DISTINCT + 86 )
----
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-914
SELECT DISTINCT NULLIF ( - COUNT( * ), - 44 ), ( + 18 ) + - - 16 - + - 36 + - - 96 * + CASE - NULLIF ( + + 16, - 62 + CAST( + - 1 AS SIGNED ) ) WHEN - ( - 34 ) THEN + - 75 * + 52 END / COUNT( * ) * - COUNT( ALL + - 89 ) / + 6 - 87 + - COUNT( * ) / - 2 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-914
SELECT DISTINCT NULLIF ( - COUNT ( * ), - 44 ), ( + 18 ) + - - 16 - + - 36 + - - 96 * + CASE - NULLIF ( + + 16, - 62 + CAST ( + - 1 AS INTEGER ) ) WHEN - ( - 34 ) THEN + - 75 * + 52 END / COUNT ( * ) * - COUNT ( ALL + - 89 ) / + 6 - 87 + - COUNT ( * ) / - 2 AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-915
SELECT - 2 + - - CASE + 40 WHEN 78 * - + 90 * - 9 + - COUNT( * ) * ( 94 ) * - + 12 + - 84 THEN 92 * 5 WHEN - 24 + COUNT( * ) * + + 55 THEN NULL ELSE - - 33 DIV - ( - 38 ) END + + COUNT( * ) + - 47 * 2 + ( - 9 ) * 88
----
-887

skipif mysql # not compatible
query I rowsort label-915
SELECT - 2 + - - CASE + 40 WHEN 78 * - + 90 * - 9 + - COUNT ( * ) * ( 94 ) * - + 12 + - 84 THEN 92 * 5 WHEN - 24 + COUNT ( * ) * + + 55 THEN NULL ELSE - - 33 / - ( - 38 ) END + + COUNT ( * ) + - 47 * 2 + ( - 9 ) * 88
----
-887

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-916
SELECT ALL + + ( - COUNT( * ) ) * - - 70 + 25 + - 9 DIV + + 33 + + 26 + - 45 * - 52 AS col1, 58 + 62 + - - 59 DIV 23 AS col0
----
2321
122

skipif mysql # not compatible
query II rowsort label-916
SELECT ALL + + ( - COUNT ( * ) ) * - - 70 + 25 + - 9 / + + 33 + + 26 + - 45 * - 52 AS col1, 58 + 62 + - - 59 / 23 AS col0
----
2321
122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT - + NULLIF ( - + COUNT( * ), - - 19 ) + - MAX( DISTINCT - 33 )
----
34

skipif mysql # not compatible
query I rowsort label-918
SELECT - + NULLIF ( - + COUNT ( * ), - - 19 ) + - MAX ( DISTINCT - 33 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-919
SELECT NULLIF ( - + COUNT( * ), + 63 * - - 50 - + 35 ) + + 82, + NULLIF ( - 43, + 3 ) * - COUNT( * ) + - 38 AS col2, CAST( NULL AS SIGNED ) AS col1
----
81
5
NULL

skipif mysql # not compatible
query III rowsort label-919
SELECT NULLIF ( - + COUNT ( * ), + 63 * - - 50 - + 35 ) + + 82, + NULLIF ( - 43, + 3 ) * - COUNT ( * ) + - 38 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
81
5
NULL

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

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL + + 39 * - 69 * - + COUNT ( * ) AS col0
----
2691

onlyif mysql # DIV for integer division: 
query I rowsort label-921
SELECT 60 DIV - 3 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-921
SELECT 60 / - 3 AS col0
----
-20

query I rowsort
SELECT ALL - 63 + - 21 - + ( 34 ) - 2 AS col2
----
-120

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

query I rowsort
SELECT ALL 7 + + - ( + + 38 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-925
SELECT DISTINCT - 65 + ( + + COALESCE ( - 94, CAST( NULL AS SIGNED ) + - 98 * 49 ) ) * - 88 + - - COALESCE ( NULLIF ( + - 38, - MIN( 45 ) ), + 3 ) + + 75
----
8244

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT - 65 + ( + + COALESCE ( - 94, CAST ( NULL AS INTEGER ) + - 98 * 49 ) ) * - 88 + - - COALESCE ( NULLIF ( + - 38, - MIN ( 45 ) ), + 3 ) + + 75
----
8244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 46 / + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 46 / + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT DISTINCT 0 + + 21 * - COUNT( * ) * - 94 * 42 * + COUNT( - + 11 ) AS col0
----
82908

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT 0 + + 21 * - COUNT ( * ) * - 94 * 42 * + COUNT ( - + 11 ) AS col0
----
82908

query II rowsort
SELECT DISTINCT - ( 47 ), ( + 74 ) AS col1
----
-47
74

query I rowsort
SELECT DISTINCT 76 + 82 + - 49 + 60 - - ( - 19 ) * - 12 * + 78 col2
----
17953

query I rowsort
SELECT ALL 35 + 73 + + 16 AS col2
----
124

query I rowsort
SELECT DISTINCT - 20 + - 3 + - + 29 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-932
SELECT 83 * - 48 * 55 - - COUNT( * ) AS col0, - ( 97 ) * + + 62
----
-219119
-6014

skipif mysql # not compatible
query II rowsort label-932
SELECT 83 * - 48 * 55 - - COUNT ( * ) AS col0, - ( 97 ) * + + 62
----
-219119
-6014

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

onlyif mysql # aggregate syntax: 
query II rowsort label-934
SELECT + 96 * + SUM( + + 61 ) * 74 - - 50 - + 71 + 82, 20 * - + COUNT( ALL - 35 ) AS col2
----
433405
-20

skipif mysql # not compatible
query II rowsort label-934
SELECT + 96 * + SUM ( + + 61 ) * 74 - - 50 - + 71 + 82, 20 * - + COUNT ( ALL - 35 ) AS col2
----
433405
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT ALL 75 - + 49 - + 60 + 56 * COUNT( * ) * + 97
----
5398

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL 75 - + 49 - + 60 + 56 * COUNT ( * ) * + 97
----
5398

query I rowsort
SELECT ALL 93 * - 9 * 24
----
-20088

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT COUNT( + + ( 71 ) ) + + CASE + 70 WHEN + 24 * COUNT( DISTINCT - 88 ) THEN - COUNT( * ) END AS col0, COUNT( - + 17 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-937
SELECT COUNT ( + + ( 71 ) ) + + CASE + 70 WHEN + 24 * COUNT ( DISTINCT - 88 ) THEN - COUNT ( * ) END AS col0, COUNT ( - + 17 ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-938
SELECT 80 + 53 + 30 - - 69 * + + 67 * + CAST( NULL AS SIGNED ) * + 17 / + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT 80 + 53 + 30 - - 69 * + + 67 * + CAST ( NULL AS INTEGER ) * + 17 / + 53 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87 - ( 39 ) AS col1
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT COALESCE ( - COUNT( ALL - 92 ), 31 * COUNT( * ) * ( + - 69 ) + + 59 ) * + 53 * - 72 + + 54
----
3870

skipif mysql # not compatible
query I rowsort label-941
SELECT COALESCE ( - COUNT ( ALL - 92 ), 31 * COUNT ( * ) * ( + - 69 ) + + 59 ) * + 53 * - 72 + + 54
----
3870

query I rowsort
SELECT + 92 + + + 61 * 28
----
1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-943
SELECT ALL MIN( DISTINCT 45 ) DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL MIN ( DISTINCT 45 ) / 99 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-944
SELECT 49 + - + NULLIF ( + 94, + + 57 + - - COUNT( * ) + - 88 / + + 41 ) + + - 68 + - - COUNT( * ) * - - 82 + 35 - + 34 * CAST( NULL AS SIGNED ) + - ( + MIN( - 15 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT 49 + - + NULLIF ( + 94, + + 57 + - - COUNT ( * ) + - 88 / + + 41 ) + + - 68 + - - COUNT ( * ) * - - 82 + 35 - + 34 * CAST ( NULL AS INTEGER ) + - ( + MIN ( - 15 ) ) AS col0
----
NULL

query I rowsort
SELECT 95 * + 26
----
2470

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT ALL 29 / + - 50 * + 65 * - NULLIF ( CAST( NULL AS SIGNED ), + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL 29 / + - 50 * + 65 * - NULLIF ( CAST ( NULL AS INTEGER ), + 46 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL - 19 * 10 + - 40 * - COUNT( * ) - + - 49 - + 48 AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - 19 * 10 + - 40 * - COUNT ( * ) - + - 49 - + 48 AS col0
----
-149

query I rowsort
SELECT ALL - - 79 * 14 * 75 AS col2
----
82950

query I rowsort
SELECT DISTINCT + 92 * + 90
----
8280

query I rowsort
SELECT ALL COALESCE ( - 5, - - 45 ) AS col2
----
-5

query I rowsort
SELECT - 99 * - - 35 AS col1
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT NULLIF ( - 46, + - ( + ( 37 ) ) * COUNT( * ) + - 34 ) + + 49 - ( - COUNT( DISTINCT + 28 ) ) * - 38 + 88 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-953
SELECT NULLIF ( - 46, + - ( + ( 37 ) ) * COUNT ( * ) + - 34 ) + + 49 - ( - COUNT ( DISTINCT + 28 ) ) * - 38 + 88 AS col2
----
53

query II rowsort
SELECT + 52 + - - 33 AS col1, 52 AS col0
----
85
52

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT ALL - COUNT( ALL - 56 ) + - - 14
----
13

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL - COUNT ( ALL - 56 ) + - - 14
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT - CASE - + 42 WHEN 80 * ( + AVG ( DISTINCT + 67 ) ) THEN 75 + + - COUNT( * ) WHEN 12 / + + 51 + + + 28 * - - 19 * 88 * ( + MAX( DISTINCT 44 ) ) - + 69 + - 66 + + + 54 * - 90 + - AVG ( ALL ( 67 ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT - CASE - + 42 WHEN 80 * ( + AVG ( DISTINCT + 67 ) ) THEN 75 + + - COUNT ( * ) WHEN 12 / + + 51 + + + 28 * - - 19 * 88 * ( + MAX ( DISTINCT 44 ) ) - + 69 + - 66 + + + 54 * - 90 + - AVG ( ALL ( 67 ) ) THEN NULL END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-958
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL + 87 + - COUNT( - NULLIF ( - - 41, 56 * 6 ) ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + 87 + - COUNT ( - NULLIF ( - - 41, 56 * 6 ) ) AS col1
----
86

query I rowsort
SELECT 49 - 76 AS col0
----
-27

query I rowsort
SELECT ALL + 78 * - + 99 col1
----
-7722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-962
SELECT DISTINCT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * + 91 / MAX( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 91 / MAX ( + 24 )
----
NULL

query I rowsort
SELECT ALL + 88 * - + 60 * - 81 * 91
----
38918880

query I rowsort
SELECT 39 + - + 4
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-965
SELECT + 87 AS col0, + 91 * + - 58 * - - COUNT( * ) AS col1
----
87
-5278

skipif mysql # not compatible
query II rowsort label-965
SELECT + 87 AS col0, + 91 * + - 58 * - - COUNT ( * ) AS col1
----
87
-5278

query I rowsort
SELECT DISTINCT + 70 - 7
----
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT MIN( ALL - - 18 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-968
SELECT MIN ( ALL - - 18 ) col0
----
18

query I rowsort
SELECT + ( + 11 ) * - 17 - 30
----
-217

query I rowsort
SELECT 64 * - 52
----
-3328

query II rowsort
SELECT + 98 AS col1, 51
----
98
51

query I rowsort
SELECT DISTINCT + 71 - - ( - 97 ) - + 67 AS col0
----
-93

query I rowsort
SELECT ALL + 16 * 0 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT MAX( ALL 46 ) * 48 + - + 62 * NULLIF ( + 63, + 87 ) * + 78 col2, COUNT( * ) AS col1
----
-302460
1

skipif mysql # not compatible
query II rowsort label-974
SELECT MAX ( ALL 46 ) * 48 + - + 62 * NULLIF ( + 63, + 87 ) * + 78 col2, COUNT ( * ) AS col1
----
-302460
1

query I rowsort
SELECT ALL - 53 - - 54
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-976
SELECT DISTINCT - COALESCE ( + - 53, + - 78, CAST( NULL AS SIGNED ) )
----
53

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT - COALESCE ( + - 53, + - 78, CAST ( NULL AS INTEGER ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT MAX( + 98 ) * - - 90
----
8820

skipif mysql # not compatible
query I rowsort label-977
SELECT MAX ( + 98 ) * - - 90
----
8820

query I rowsort
SELECT 80 + 81
----
161

query II rowsort
SELECT + 33 col1, - 97 AS col1
----
33
-97

query I rowsort
SELECT 74 * - 99 AS col1
----
-7326

query I rowsort
SELECT 5 - - 21 + + - 87
----
-61

query I rowsort
SELECT ALL 73 + 56 AS col0
----
129

query I rowsort
SELECT + 43 * + 47 + - 62 AS col0
----
1959

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL - CASE COUNT( * ) WHEN 3 THEN + 72 * COALESCE ( + 18, 93 * 18 - 37 * + 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL - CASE COUNT ( * ) WHEN 3 THEN + 72 * COALESCE ( + 18, 93 * 18 - 37 * + 77 ) END
----
NULL

query I rowsort
SELECT ALL + - 73 * + 60
----
-4380

query I rowsort
SELECT + 57 + + - 71 - - 35 * 5 + - 55
----
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL + SUM( DISTINCT + 2 ) + ( + 18 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + SUM ( DISTINCT + 2 ) + ( + 18 ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-989
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN + + 97 THEN NULL WHEN - 88 * - CASE 97 WHEN - + 34 + - 46 THEN + + 70 END * 41 * - 63 THEN + 99 ELSE - + 10 END, + 97 AS col2
----
-10
97

skipif mysql # not compatible
query II rowsort label-989
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN + + 97 THEN NULL WHEN - 88 * - CASE 97 WHEN - + 34 + - 46 THEN + + 70 END * 41 * - 63 THEN + 99 ELSE - + 10 END, + 97 AS col2
----
-10
97

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT 19 + - + COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT 19 + - + COUNT ( * ) col1
----
18

query I rowsort
SELECT - - COALESCE ( + 5, + + 12 ) * + 16 + + 87 + - 50
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-992
SELECT + 37 + - COALESCE ( + 24, + 4, - - 90 ) AS col1, - SUM( 62 )
----
13
-62

skipif mysql # not compatible
query II rowsort label-992
SELECT + 37 + - COALESCE ( + 24, + 4, - - 90 ) AS col1, - SUM ( 62 )
----
13
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT DISTINCT - 38 DIV + 17 + + 96 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - 38 / + 17 + + 96 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT DISTINCT - MAX( 59 ) + - CASE + COUNT( * ) WHEN 27 * - 23 THEN 58 WHEN + 54 - + AVG ( ALL + - 75 ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT - MAX ( 59 ) + - CASE + COUNT ( * ) WHEN 27 * - 23 THEN 58 WHEN + 54 - + AVG ( ALL + - 75 ) THEN NULL END col0
----
NULL

query I rowsort
SELECT + 59 + + 85
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT ALL 3 + - + 60 + - 86 * + 6 - + - 98 + + - 18 DIV ( 33 ) * - 30 + + 54 + + 27 AS col2
----
-394

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL 3 + - + 60 + - 86 * + 6 - + - 98 + + - 18 / ( 33 ) * - 30 + + 54 + + 27 AS col2
----
-394

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT + - COUNT( * ) + COUNT( * ) + MIN( ALL + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-997
SELECT + - COUNT ( * ) + COUNT ( * ) + MIN ( ALL + 33 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-998
SELECT DISTINCT 47 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT 47 / - 45
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-999
SELECT ALL - CAST( - - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - CAST ( - - 97 AS INTEGER )
----
-97

query I rowsort
SELECT ALL ( + + 83 ) + + 93 + - + 27 AS col1
----
149

query I rowsort
SELECT DISTINCT 65 - - + 93 + - - 1 AS col0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1002
SELECT - ( - 27 ) + - 81 + + 0 - 62 DIV + 18 + - 93 DIV 45 * + 89 AS col0
----
-235

skipif mysql # not compatible
query I rowsort label-1002
SELECT - ( - 27 ) + - 81 + + 0 - 62 / + 18 + - 93 / 45 * + 89 AS col0
----
-235

query I rowsort
SELECT ALL + 84 - - 72 AS col1
----
156

query II rowsort
SELECT - 85 AS col1, 18 * 99 + 18 + 36 AS col0
----
-85
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT + NULLIF ( COUNT( * ), 41 + + - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT + NULLIF ( COUNT ( * ), 41 + + - 95 )
----
1

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

query II rowsort
SELECT + 93 AS col1, CASE - 12 WHEN + + 89 / - 67 THEN NULL WHEN - 56 THEN 65 END
----
93
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1008
SELECT ALL + COUNT( * ) col2, 74 + - - 82 - + 45 AS col2
----
1
111

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL + COUNT ( * ) col2, 74 + - - 82 - + 45 AS col2
----
1
111

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT + 88 * 65 * - - 66 * ( + 9 ) * 91 + + 45 + - 1 DIV - 19 + 21 AS col1
----
309188946

skipif mysql # not compatible
query I rowsort label-1009
SELECT + 88 * 65 * - - 66 * ( + 9 ) * 91 + + 45 + - 1 / - 19 + 21 AS col1
----
309188946

query I rowsort
SELECT NULLIF ( - 56, + 23 * + - 77 )
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT DISTINCT - 30 * + + SUM( ALL - 83 ) col1
----
2490

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT - 30 * + + SUM ( ALL - 83 ) col1
----
2490

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT ALL - 57 DIV + ( + 2 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL - 57 / + ( + 2 ) AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT - 28 / - 73 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT - 28 / - 73 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1015
SELECT + ( 70 ) DIV 31 - - CAST( 54 AS SIGNED ) + 42 + + + COUNT( * ) * + - 40 - - 57 + + COUNT( * ) * + 51 * - 62 AS col1
----
-3047

skipif mysql # not compatible
query I rowsort label-1015
SELECT + ( 70 ) / 31 - - CAST ( 54 AS INTEGER ) + 42 + + + COUNT ( * ) * + - 40 - - 57 + + COUNT ( * ) * + 51 * - 62 AS col1
----
-3047

query II rowsort
SELECT + 61 AS col0, 97
----
61
97

query I rowsort
SELECT - 22 + - 27 AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1018
SELECT ALL - NULLIF ( - ( + + 82 ), - - AVG ( - NULLIF ( 10, - 27 ) ) ) * - - ( + - CASE + - 50 WHEN + 24 / + - 49 + + 61 * 62 * - - COUNT( * ) + + COUNT( * ) + - - 51 THEN NULL WHEN + CAST( + + COALESCE ( + CAST( NULL AS DECIMAL ), 57, + + 67 - - ( + + 75 ) ) AS SIGNED ) THEN 93 WHEN 9 + 15 THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL - NULLIF ( - ( + + 82 ), - - AVG ( - NULLIF ( 10, - 27 ) ) ) * - - ( + - CASE + - 50 WHEN + 24 / + - 49 + + 61 * 62 * - - COUNT ( * ) + + COUNT ( * ) + - - 51 THEN NULL WHEN + CAST ( + + COALESCE ( + CAST ( NULL AS REAL ), 57, + + 67 - - ( + + 75 ) ) AS INTEGER ) THEN 93 WHEN 9 + 15 THEN NULL ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT 49 * 31 + - 99 * - 68 * + + 90 AS col1
----
607399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1020
SELECT ALL - 80 * - CAST( + 73 AS SIGNED ) - - + 44 + + 87 * - COUNT( * ) * + 21 AS col2
----
4057

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL - 80 * - CAST ( + 73 AS INTEGER ) - - + 44 + + 87 * - COUNT ( * ) * + 21 AS col2
----
4057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1021
SELECT + + MAX( + CAST( + 23 AS SIGNED ) ) * 60
----
1380

skipif mysql # not compatible
query I rowsort label-1021
SELECT + + MAX ( + CAST ( + 23 AS INTEGER ) ) * 60
----
1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1022
SELECT ALL + + 5 * - SUM( ALL - 8 ) * - - 40 + + + CAST( 75 AS SIGNED ) + - 45 * - - NULLIF ( - 21, - + 21 / + 81 )
----
2620

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL + + 5 * - SUM ( ALL - 8 ) * - - 40 + + + CAST ( 75 AS INTEGER ) + - 45 * - - NULLIF ( - 21, - + 21 / + 81 )
----
2620

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT - - 47 + + + COUNT( * ) + + + 33 col1
----
81

skipif mysql # not compatible
query I rowsort label-1023
SELECT - - 47 + + + COUNT ( * ) + + + 33 col1
----
81

query I rowsort
SELECT ALL + ( 76 ) * - 47
----
-3572

onlyif mysql # DIV for integer division: 
query II rowsort label-1025
SELECT ALL + 79, + 24 DIV 2 DIV 89 * 8 AS col1
----
79
0

skipif mysql # not compatible
query II rowsort label-1025
SELECT ALL + 79, + 24 / 2 / 89 * 8 AS col1
----
79
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1026
SELECT DISTINCT - 87 * - 12 DIV + COUNT( * ) + 17, + 69 AS col2
----
1061
69

skipif mysql # not compatible
query II rowsort label-1026
SELECT DISTINCT - 87 * - 12 / + COUNT ( * ) + 17, + 69 AS col2
----
1061
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1027
SELECT DISTINCT + - 41 * 53 + + 42 + + 60 * 61 + SUM( ALL - 61 ) DIV - 39 AS col0
----
1530

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT + - 41 * 53 + + 42 + + 60 * 61 + SUM ( ALL - 61 ) / - 39 AS col0
----
1530

onlyif mysql # DIV for integer division: 
query II rowsort label-1028
SELECT 99 AS col0, 35 + + 93 DIV + 93
----
99
36

skipif mysql # not compatible
query II rowsort label-1028
SELECT 99 AS col0, 35 + + 93 / + 93
----
99
36

query II rowsort
SELECT ALL - 48 AS col0, - 48
----
-48
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1030
SELECT + 91 + ( - 69 ) + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT + 91 + ( - 69 ) + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - 51 + + 30 + 31 col2
----
10

query I rowsort
SELECT ALL + ( - 93 ) * + + 37 + - 69
----
-3510

query I rowsort
SELECT - + 70 * 30 * - 12 + + 1 AS col0
----
25201

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

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

query I rowsort
SELECT ALL 96 * - - 62 AS col2
----
5952

query I rowsort
SELECT ALL 10 - - - 6
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT DISTINCT + COUNT( DISTINCT + 54 ) - - 31
----
32

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT + COUNT ( DISTINCT + 54 ) - - 31
----
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT + 6 * COUNT( DISTINCT - - ( - 11 ) )
----
6

skipif mysql # not compatible
query I rowsort label-1039
SELECT + 6 * COUNT ( DISTINCT - - ( - 11 ) )
----
6

query I rowsort
SELECT + 12 * + 49 AS col1
----
588

onlyif mysql # DIV for integer division: 
query I rowsort label-1041
SELECT DISTINCT 18 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT 18 / 75
----
0

query I rowsort
SELECT ALL 53 * + 22 col0
----
1166

onlyif mysql # aggregate syntax: 
query II rowsort label-1043
SELECT ALL 70 * + COUNT( * ) AS col0, + 76
----
70
76

skipif mysql # not compatible
query II rowsort label-1043
SELECT ALL 70 * + COUNT ( * ) AS col0, + 76
----
70
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT + COUNT( + 79 ) * - 38 * + - 97
----
3686

skipif mysql # not compatible
query I rowsort label-1044
SELECT + COUNT ( + 79 ) * - 38 * + - 97
----
3686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT DISTINCT 82 DIV COUNT( * ) * + 62
----
5084

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT 82 / COUNT ( * ) * + 62
----
5084

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1046
SELECT ALL + 53 * - 68, - COUNT( - + 6 ) DIV - 87 AS col2
----
-3604
0

skipif mysql # not compatible
query II rowsort label-1046
SELECT ALL + 53 * - 68, - COUNT ( - + 6 ) / - 87 AS col2
----
-3604
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1047
SELECT + CAST( - 54 AS SIGNED ) * - - CAST( + 59 AS SIGNED ) AS col2
----
-3186

skipif mysql # not compatible
query I rowsort label-1047
SELECT + CAST ( - 54 AS INTEGER ) * - - CAST ( + 59 AS INTEGER ) AS col2
----
-3186

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT DISTINCT SUM( DISTINCT - 14 ) * 56 AS col0
----
-784

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT SUM ( DISTINCT - 14 ) * 56 AS col0
----
-784

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1050
SELECT CAST( NULL AS SIGNED ) * - 91 + 37 AS col2, + CASE - 5 WHEN + + 63 THEN NULL WHEN - - MAX( DISTINCT + + 7 ) THEN - COALESCE ( + - 46, - - 68 ) * + ( + NULLIF ( MIN( 67 ), + - 51 ) ) END + 57
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1050
SELECT CAST ( NULL AS INTEGER ) * - 91 + 37 AS col2, + CASE - 5 WHEN + + 63 THEN NULL WHEN - - MAX ( DISTINCT + + 7 ) THEN - COALESCE ( + - 46, - - 68 ) * + ( + NULLIF ( MIN ( 67 ), + - 51 ) ) END + 57
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT ALL 10 * - - MAX( + - 5 ) AS col0, 48 AS col2
----
-50
48

skipif mysql # not compatible
query II rowsort label-1051
SELECT ALL 10 * - - MAX ( + - 5 ) AS col0, 48 AS col2
----
-50
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1052
SELECT + 16 * 29 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1052
SELECT + 16 * 29 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1053
SELECT - 22 * + + 59, NULLIF ( - - COUNT( * ), 3 / + + 15 ) + - 3 AS col2
----
-1298
-2

skipif mysql # not compatible
query II rowsort label-1053
SELECT - 22 * + + 59, NULLIF ( - - COUNT ( * ), 3 / + + 15 ) + - 3 AS col2
----
-1298
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT - 81 - - + 1 + + COUNT( * ) + - 34 AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-1054
SELECT - 81 - - + 1 + + COUNT ( * ) + - 34 AS col1
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1055
SELECT ALL - CAST( NULL AS SIGNED ) / + + COUNT( * ) * - ( - 75 ) * - ( ( - 35 ) ) + + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) * - ( - 75 ) * - ( ( - 35 ) ) + + 28 AS col1
----
NULL

query I rowsort
SELECT + 86 * - + 89
----
-7654

query I rowsort
SELECT + + 18 + - 68 - - + COALESCE ( + 81, - 89 )
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1058
SELECT DISTINCT + 33 DIV - NULLIF ( 54, - 60 ) + - 54 + 73 + 32 + + - CAST( - 91 AS SIGNED ) + 11 * 0 + + - 83 + 32 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT + 33 / - NULLIF ( 54, - 60 ) + - 54 + 73 + 32 + + - CAST ( - 91 AS INTEGER ) + 11 * 0 + + - 83 + 32 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1059
SELECT ALL + + ( - 3 ) DIV + - COUNT( * ) + 42
----
45

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + + ( - 3 ) / + - COUNT ( * ) + 42
----
45

query I rowsort
SELECT ALL - - 97 * - 98 AS col2
----
-9506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1061
SELECT DISTINCT + + 64 DIV - - 46 - + MAX( ALL 39 ) + 25 + 53
----
40

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + + 64 / - - 46 - + MAX ( ALL 39 ) + 25 + 53
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT ALL + - 97 DIV - + 91 + + - 38 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + - 97 / - + 91 + + - 38 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT DISTINCT - 4 DIV - 37 * + 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - 4 / - 37 * + 1 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1064
SELECT - MAX( DISTINCT - 41 ) * - - 84 - + 43 + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT - MAX ( DISTINCT - 41 ) * - - 84 - + 43 + + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT + CASE - ( 32 ) WHEN + - 78 THEN NULL ELSE 99 * - 45 * + 58 - - 40 * + - 92 END
----
-262070

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT DISTINCT + - 68 + COUNT( * ) + 60 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT + - 68 + COUNT ( * ) + 60 AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT 4 DIV + + COALESCE ( 72, - + 62 * + 16 * + + 26 + 57 ) + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-1067
SELECT 4 / + + COALESCE ( 72, - + 62 * + 16 * + + 26 + 57 ) + - 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT - COUNT( * ) * - 92
----
92

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT - COUNT ( * ) * - 92
----
92

query I rowsort
SELECT - 28 + - 70 * - 39 * + 20 AS col0
----
54572

query I rowsort
SELECT ( - 49 ) * + 97 * - 83 * + - 65 AS col1
----
-25642435

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT COUNT( - 43 ) * 60 + 57 + - 64 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1071
SELECT COUNT ( - 43 ) * 60 + 57 + - 64 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1072
SELECT DISTINCT + MAX( DISTINCT CAST( NULL AS SIGNED ) ), - COALESCE ( - + SUM( ALL + 33 ), + CASE 25 WHEN + 8 THEN - COUNT( * ) WHEN + COALESCE ( - + COALESCE ( 47, 12 ), 61, + MIN( DISTINCT 32 ) ) * - 70 + 38 * + 80 + + CASE + 1 WHEN - 70 THEN - - NULLIF ( + COUNT( * ), + 99 / + 14 * - COUNT( * ) - + CAST( NULL AS SIGNED ) ) + 47 / - COUNT( * ) END THEN NULL ELSE NULL END * COUNT( * ), 13 ) AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-1072
SELECT DISTINCT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ), - COALESCE ( - + SUM ( ALL + 33 ), + CASE 25 WHEN + 8 THEN - COUNT ( * ) WHEN + COALESCE ( - + COALESCE ( 47, 12 ), 61, + MIN ( DISTINCT 32 ) ) * - 70 + 38 * + 80 + + CASE + 1 WHEN - 70 THEN - - NULLIF ( + COUNT ( * ), + 99 / + 14 * - COUNT ( * ) - + CAST ( NULL AS INTEGER ) ) + 47 / - COUNT ( * ) END THEN NULL ELSE NULL END * COUNT ( * ), 13 ) AS col0
----
NULL
33

query I rowsort
SELECT - 68 + 57
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT ALL COUNT( * ) - ( 46 )
----
-45

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL COUNT ( * ) - ( 46 )
----
-45

query I rowsort
SELECT ALL ( - COALESCE ( + 96, - COALESCE ( + + 56, + ( - - 65 ) ) * 58, - - 21 - + - 39 ) ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT COUNT( DISTINCT 5 ) + + 40 col0
----
41

skipif mysql # not compatible
query I rowsort label-1076
SELECT COUNT ( DISTINCT 5 ) + + 40 col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1077
SELECT 25 AS col2, - COUNT( DISTINCT + 16 ) AS col2
----
25
-1

skipif mysql # not compatible
query II rowsort label-1077
SELECT 25 AS col2, - COUNT ( DISTINCT + 16 ) AS col2
----
25
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT 58 * - SUM( - 14 ) AS col0
----
812

skipif mysql # not compatible
query I rowsort label-1078
SELECT 58 * - SUM ( - 14 ) AS col0
----
812

query I rowsort
SELECT 94 + 19 * 16 AS col0
----
398

query I rowsort
SELECT 64 + - 28
----
36

query I rowsort
SELECT 0 * + - 32 AS col2
----
0

query I rowsort
SELECT 84 + 72 AS col2
----
156

query I rowsort
SELECT ALL - 57 * 39
----
-2223

query I rowsort
SELECT DISTINCT - 39 * - - 29
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT MIN( + 30 ) + MAX( - + 14 ) + + 52 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1085
SELECT MIN ( + 30 ) + MAX ( - + 14 ) + + 52 AS col1
----
68

query I rowsort
SELECT 73 * + + 14
----
1022

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT 80 DIV + 70
----
1

skipif mysql # not compatible
query I rowsort label-1088
SELECT 80 / + 70
----
1

query II rowsort
SELECT 44, + 14 AS col0
----
44
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1090
SELECT 18 + - - CAST( NULL AS SIGNED ) / COALESCE ( - SUM( ALL - 80 ), 50 * 38 - + 31, + AVG ( ALL + - 0 ) ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1090
SELECT 18 + - - CAST ( NULL AS INTEGER ) / COALESCE ( - SUM ( ALL - 80 ), 50 * 38 - + 31, + AVG ( ALL + - 0 ) ) + - 19
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1091
SELECT 49, - 12 DIV + + 57 AS col0
----
49
0

skipif mysql # not compatible
query II rowsort label-1091
SELECT 49, - 12 / + + 57 AS col0
----
49
0

query I rowsort
SELECT 25 * + - 88
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL COUNT( DISTINCT + 3 ) + + 46 * - + 15
----
-689

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL COUNT ( DISTINCT + 3 ) + + 46 * - + 15
----
-689

onlyif mysql # aggregate syntax: 
query II rowsort label-1094
SELECT 57 col1, SUM( DISTINCT 3 ) * + 62 AS col0
----
57
186

skipif mysql # not compatible
query II rowsort label-1094
SELECT 57 col1, SUM ( DISTINCT 3 ) * + 62 AS col0
----
57
186

query I rowsort
SELECT ALL - COALESCE ( 57, - 1 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT DISTINCT - 67 + + - CASE 46 WHEN + COUNT( * ) THEN NULL WHEN - + 91 THEN 7 ELSE NULL END + CASE - 3 WHEN + ( COUNT( * ) ) * - + COUNT( * ) + - 27 THEN - + 82 - + CASE + - 24 WHEN + COALESCE ( + 11, 26 + + 27, NULLIF ( - + 7, - - COUNT( * ) - + 48 ) ) THEN NULL ELSE 24 / + 88 - + 89 * 72 + - 5 END ELSE 18 END * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT - 67 + + - CASE 46 WHEN + COUNT ( * ) THEN NULL WHEN - + 91 THEN 7 ELSE NULL END + CASE - 3 WHEN + ( COUNT ( * ) ) * - + COUNT ( * ) + - 27 THEN - + 82 - + CASE + - 24 WHEN + COALESCE ( + 11, 26 + + 27, NULLIF ( - + 7, - - COUNT ( * ) - + 48 ) ) THEN NULL ELSE 24 / + 88 - + 89 * 72 + - 5 END ELSE 18 END * 60 AS col0
----
NULL

query II rowsort
SELECT + 12, + 90 AS col1
----
12
90

query I rowsort
SELECT 86 * 30 + - 18 * - 89
----
4182

query II rowsort
SELECT ALL - 44 + - ( + 4 ) AS col1, + 20 AS col1
----
-48
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT 53 AS col2, COUNT( * ) + - - 21 * 83 + + 28
----
53
1772

skipif mysql # not compatible
query II rowsort label-1100
SELECT 53 AS col2, COUNT ( * ) + - - 21 * 83 + + 28
----
53
1772

query I rowsort
SELECT ALL + 75 * - - 89 * + - 4 * + 36 AS col0
----
-961200

query I rowsort
SELECT + 46 + + 56
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-1103
SELECT + 47, - MIN( - - 92 ) * 43 AS col1
----
47
-3956

skipif mysql # not compatible
query II rowsort label-1103
SELECT + 47, - MIN ( - - 92 ) * 43 AS col1
----
47
-3956

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1104
SELECT CASE WHEN 67 IS NOT NULL THEN - - 28 WHEN 88 > + + 57 + + - 27 THEN + 68 ELSE - NULLIF ( - 91, - + 71 + 84 - - - 62 ) END, + CAST( - 39 AS SIGNED ) + - - 10 AS col1
----
28
-29

skipif mysql # not compatible
query II rowsort label-1104
SELECT CASE WHEN 67 IS NOT NULL THEN - - 28 WHEN 88 > + + 57 + + - 27 THEN + 68 ELSE - NULLIF ( - 91, - + 71 + 84 - - - 62 ) END, + CAST ( - 39 AS INTEGER ) + - - 10 AS col1
----
28
-29

query II rowsort
SELECT 14 * + ( + 54 ) + + + 52, + 84 AS col2
----
808
84

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1107
SELECT DISTINCT + CAST( 61 AS DECIMAL ) * - 30 / 35 - CAST( NULL AS SIGNED ) + - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT + CAST ( 61 AS REAL ) * - 30 / 35 - CAST ( NULL AS INTEGER ) + - 90 AS col1
----
NULL

query I rowsort
SELECT + 94 * 80 - 37
----
7483

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1109
SELECT + 32 AS col2, + 92 * + CAST( + - 34 AS SIGNED ) AS col1
----
32
-3128

skipif mysql # not compatible
query II rowsort label-1109
SELECT + 32 AS col2, + 92 * + CAST ( + - 34 AS INTEGER ) AS col1
----
32
-3128

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

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL COUNT ( * ) - + + 1 / - COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-1111
SELECT + 82, - 57 - - 48 DIV - 36 AS col1
----
82
-58

skipif mysql # not compatible
query II rowsort label-1111
SELECT + 82, - 57 - - 48 / - 36 AS col1
----
82
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1112
SELECT + COALESCE ( - SUM( - 95 ), - COUNT( * ) DIV - 67 * - 99 ) AS col1, CAST( - CASE - 34 WHEN + 21 THEN - + 58 WHEN - 61 THEN - + ( - ( + 66 ) ) ELSE NULL END AS SIGNED ) * 1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1112
SELECT + COALESCE ( - SUM ( - 95 ), - COUNT ( * ) / - 67 * - 99 ) AS col1, CAST ( - CASE - 34 WHEN + 21 THEN - + 58 WHEN - 61 THEN - + ( - ( + 66 ) ) ELSE NULL END AS INTEGER ) * 1
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT + 75 + - MAX( DISTINCT - - 65 ) * + 31 + + 46 - - 21 * 12 * - 79 - + 15 * + + 68
----
-22822

skipif mysql # not compatible
query I rowsort label-1113
SELECT + 75 + - MAX ( DISTINCT - - 65 ) * + 31 + + 46 - - 21 * 12 * - 79 - + 15 * + + 68
----
-22822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1114
SELECT DISTINCT + CASE COUNT( * ) WHEN + ( + 19 ) + + - 42 THEN + 86 WHEN - 89 - - 98 THEN NULL ELSE - ( + - 68 ) - + 33 + CAST( NULL AS SIGNED ) + COALESCE ( - COALESCE ( 41, + - ( + - 21 ) - - 20 / + 64 ), + 15, - - 69 * 74 * + 29 - - 86 * - 75 / 0 ) * - COUNT( * ) END * + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT + CASE COUNT ( * ) WHEN + ( + 19 ) + + - 42 THEN + 86 WHEN - 89 - - 98 THEN NULL ELSE - ( + - 68 ) - + 33 + CAST ( NULL AS INTEGER ) + COALESCE ( - COALESCE ( 41, + - ( + - 21 ) - - 20 / + 64 ), + 15, - - 69 * 74 * + 29 - - 86 * - 75 / 0 ) * - COUNT ( * ) END * + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT - 28 * 54 + + - COUNT( + 71 )
----
-1513

skipif mysql # not compatible
query I rowsort label-1115
SELECT - 28 * 54 + + - COUNT ( + 71 )
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT ALL + 25 * - MAX( - 37 ) AS col0
----
925

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL + 25 * - MAX ( - 37 ) AS col0
----
925

query I rowsort
SELECT DISTINCT 6 * 99
----
594

query II rowsort
SELECT 93 * - 46 col0, 72 AS col1
----
-4278
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL + SUM( - 53 ) + + - 80 - 79 + - 71
----
-283

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + SUM ( - 53 ) + + - 80 - 79 + - 71
----
-283

query I rowsort
SELECT 74 + - - 97 * - + 39 AS col0
----
-3709

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT - COUNT( * ) + + 26 * - - 19 AS col2
----
493

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT - COUNT ( * ) + + 26 * - - 19 AS col2
----
493

onlyif mysql # DIV for integer division: 
query I rowsort label-1122
SELECT 83 + 86 DIV + 99 + + - 54
----
29

skipif mysql # not compatible
query I rowsort label-1122
SELECT 83 + 86 / + 99 + + - 54
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1123
SELECT 18 * + 16 AS col1, COUNT( * )
----
288
1

skipif mysql # not compatible
query II rowsort label-1123
SELECT 18 * + 16 AS col1, COUNT ( * )
----
288
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT ALL - NULLIF ( - CASE + 16 WHEN + + 95 + - 37 THEN NULL ELSE + 42 END, - 46 ) + - 5 DIV + 2 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL - NULLIF ( - CASE + 16 WHEN + + 95 + - 37 THEN NULL ELSE + 42 END, - 46 ) + - 5 / + 2 AS col0
----
40

query I rowsort
SELECT ALL COALESCE ( 72, + + 8 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT DISTINCT - SUM( DISTINCT - + 44 ) + - + 25
----
19

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT - SUM ( DISTINCT - + 44 ) + - + 25
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT 18 + - 99 + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1127
SELECT 18 + - 99 + COUNT ( * )
----
-80

query I rowsort
SELECT ALL - 63 + - 65 + + 44 * + + 99 + - 94
----
4134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT + NULLIF ( - COALESCE ( 64, + 24, + - 84 ), - - 37 - - + ( - 84 ) ) * + CASE - - 47 WHEN + 10 THEN NULL WHEN + + COUNT( * ) * + - MAX( ALL 39 ) + - 31 + + - 42 * - CAST( - 24 AS SIGNED ) * + 46 THEN 88 ELSE + - 46 END + + MAX( 63 )
----
3007

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT + NULLIF ( - COALESCE ( 64, + 24, + - 84 ), - - 37 - - + ( - 84 ) ) * + CASE - - 47 WHEN + 10 THEN NULL WHEN + + COUNT ( * ) * + - MAX ( ALL 39 ) + - 31 + + - 42 * - CAST ( - 24 AS INTEGER ) * + 46 THEN 88 ELSE + - 46 END + + MAX ( 63 )
----
3007

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL - - 77 * + 80 * - CASE + 80 WHEN MAX( - 37 ) * + + 95 THEN + 95 WHEN 46 * + 95 THEN NULL WHEN + 69 THEN + - 8 * 91 END - + 88 + - + ( + COUNT( ALL - 49 ) ) + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL - - 77 * + 80 * - CASE + 80 WHEN MAX ( - 37 ) * + + 95 THEN + 95 WHEN 46 * + 95 THEN NULL WHEN + 69 THEN + - 8 * 91 END - + 88 + - + ( + COUNT ( ALL - 49 ) ) + 56 AS col0
----
NULL

query I rowsort
SELECT + - 10 * 84 AS col0
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1133
SELECT + 43 * + 80 * - + MIN( - 16 ) + - 48 * + - CASE + 3 WHEN + + 58 THEN NULL WHEN - CAST( + - COUNT( * ) AS SIGNED ) * + 14 + + COUNT( DISTINCT 65 ) / - + 65 THEN 45 END + + + 30 + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT + 43 * + 80 * - + MIN ( - 16 ) + - 48 * + - CASE + 3 WHEN + + 58 THEN NULL WHEN - CAST ( + - COUNT ( * ) AS INTEGER ) * + 14 + + COUNT ( DISTINCT 65 ) / - + 65 THEN 45 END + + + 30 + 58 AS col2
----
NULL

query I rowsort
SELECT - 87 * - 86
----
7482

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL + MIN( ALL + 1 ) * 44 + + 81 - - + MIN( + 78 )
----
203

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + MIN ( ALL + 1 ) * 44 + + 81 - - + MIN ( + 78 )
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT ALL + SUM( ALL 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL + SUM ( ALL 80 ) col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1137
SELECT ALL + 88 * CAST( + 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + 88 * CAST ( + 0 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT + + 83 * 5 col2
----
415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1139
SELECT ALL - AVG ( - 7 ) * + + CAST( NULL AS SIGNED ) * + 24 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL - AVG ( - 7 ) * + + CAST ( NULL AS INTEGER ) * + 24 / + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 2 * + ( - 50 ) + - + 59
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1141
SELECT ALL + 97 * - 5 * - COUNT( + CAST( - 38 AS SIGNED ) ) - - - 6 + 64
----
543

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL + 97 * - 5 * - COUNT ( + CAST ( - 38 AS INTEGER ) ) - - - 6 + 64
----
543

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT + COUNT( * ) - 72 + - 74
----
-145

skipif mysql # not compatible
query I rowsort label-1142
SELECT + COUNT ( * ) - 72 + - 74
----
-145

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

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

query I rowsort
SELECT + - 58 * + - 57 * 70 AS col1
----
231420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1145
SELECT + NULLIF ( - 19, + SUM( ALL 78 ) + - 40 ) + + ( CAST( + 61 AS SIGNED ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1145
SELECT + NULLIF ( - 19, + SUM ( ALL 78 ) + - 40 ) + + ( CAST ( + 61 AS INTEGER ) ) AS col2
----
42

query I rowsort
SELECT + 12 + - 64 AS col1
----
-52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1148
SELECT ALL + COUNT( * ) AS col2, - COUNT( * ) * + + 53 + + 82 + + 28 * + 14 - - 77 + 52 DIV 66 AS col1
----
1
498

skipif mysql # not compatible
query II rowsort label-1148
SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) * + + 53 + + 82 + + 28 * + 14 - - 77 + 52 / 66 AS col1
----
1
498

query I rowsort
SELECT + 35 + + 30
----
65

query I rowsort
SELECT ALL + 94 + - - 95
----
189

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1152
SELECT ALL COUNT( * ) DIV - 85 * + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL COUNT ( * ) / - 85 * + 65 AS col1
----
0

query I rowsort
SELECT ALL 94 + + - 75 * + 77 + - 68 AS col1
----
-5749

onlyif mysql # aggregate syntax: 
query II rowsort label-1154
SELECT - COALESCE ( - 28, - 1 ) AS col0, + COUNT( - - 13 ) + 30
----
28
31

skipif mysql # not compatible
query II rowsort label-1154
SELECT - COALESCE ( - 28, - 1 ) AS col0, + COUNT ( - - 13 ) + 30
----
28
31

query I rowsort
SELECT - 82 + - 90
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL + CASE - 65 WHEN - + COUNT( * ) THEN - 85 WHEN + + 77 THEN NULL WHEN + 94 THEN NULL END + + 75 + - + 38 + + - 1 * - 76 * - 85 * 21 / - - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL + CASE - 65 WHEN - + COUNT ( * ) THEN - 85 WHEN + + 77 THEN NULL WHEN + 94 THEN NULL END + + 75 + - + 38 + + - 1 * - 76 * - 85 * 21 / - - 78
----
NULL

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

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

query I rowsort
SELECT - 58 + + 42 col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1159
SELECT ALL + MIN( + 78 ) + + + 25, + 85 AS col1
----
103
85

skipif mysql # not compatible
query II rowsort label-1159
SELECT ALL + MIN ( + 78 ) + + + 25, + 85 AS col1
----
103
85

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1160
SELECT ALL 51 + + 64 - 95 + NULLIF ( - 21, + CAST( + 99 AS DECIMAL ) ) DIV + + 88
----
20

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL 51 + + 64 - 95 + NULLIF ( - 21, + CAST ( + 99 AS REAL ) ) / + + 88
----
20

query I rowsort
SELECT ALL CASE 43 WHEN - ( - 16 ) THEN 8 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1162
SELECT - 22 + - + 33 + + 98 * - + ( + - CAST( NULL AS SIGNED ) ) AS col2, - 88 * + 2 AS col0
----
NULL
-176

skipif mysql # not compatible
query II rowsort label-1162
SELECT - 22 + - + 33 + + 98 * - + ( + - CAST ( NULL AS INTEGER ) ) AS col2, - 88 * + 2 AS col0
----
NULL
-176

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT + 86 * - 55 * - COUNT( * )
----
4730

skipif mysql # not compatible
query I rowsort label-1164
SELECT + 86 * - 55 * - COUNT ( * )
----
4730

onlyif mysql # aggregate syntax: 
query II rowsort label-1165
SELECT - COUNT( * ) + - 78 + + 95 * + + 72 * - - 99, + 67 AS col1
----
677081
67

skipif mysql # not compatible
query II rowsort label-1165
SELECT - COUNT ( * ) + - 78 + + 95 * + + 72 * - - 99, + 67 AS col1
----
677081
67

query I rowsort
SELECT ALL - + 99 - - - 98
----
-197

query I rowsort
SELECT - + NULLIF ( - 48, - 25 ) * + + 53
----
2544

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT 12 * + 50 + - COUNT( * )
----
599

skipif mysql # not compatible
query I rowsort label-1168
SELECT 12 * + 50 + - COUNT ( * )
----
599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1169
SELECT - CAST( NULL AS SIGNED ) * - 10 + COUNT( * ) * + 14 * - 10 - + SUM( DISTINCT + 13 ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT - CAST ( NULL AS INTEGER ) * - 10 + COUNT ( * ) * + 14 * - 10 - + SUM ( DISTINCT + 13 ) * - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 32 * + - 94 AS col2
----
-3008

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

query I rowsort
SELECT - 87 * - + 50
----
4350

query I rowsort
SELECT 71 * - 79 + 82 AS col1
----
-5527

onlyif mysql # DIV for integer division: 
query II rowsort label-1174
SELECT ALL + 48, 17 DIV - - 20 AS col1
----
48
0

skipif mysql # not compatible
query II rowsort label-1174
SELECT ALL + 48, 17 / - - 20 AS col1
----
48
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT + + 61 * - 26 + - SUM( + 12 ) + - 58 * - + ( + 20 ) AS col1
----
-438

skipif mysql # not compatible
query I rowsort label-1175
SELECT + + 61 * - 26 + - SUM ( + 12 ) + - 58 * - + ( + 20 ) AS col1
----
-438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1176
SELECT - + 10 * - ( - - 99 ) + + NULLIF ( 65, - - CAST( NULL AS SIGNED ) ) + - 73
----
982

skipif mysql # not compatible
query I rowsort label-1176
SELECT - + 10 * - ( - - 99 ) + + NULLIF ( 65, - - CAST ( NULL AS INTEGER ) ) + - 73
----
982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL 2 * + 7 * + + MAX( ALL + - 81 ) * CAST( - ( - 90 ) AS SIGNED ) + - MAX( ALL + ( - 4 ) ) + - MAX( 99 ) * + ( + 75 ) * - - 37 * COUNT( * ) * - - 98 AS col0
----
-27025106

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL 2 * + 7 * + + MAX ( ALL + - 81 ) * CAST ( - ( - 90 ) AS INTEGER ) + - MAX ( ALL + ( - 4 ) ) + - MAX ( 99 ) * + ( + 75 ) * - - 37 * COUNT ( * ) * - - 98 AS col0
----
-27025106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT + COALESCE ( COUNT( * ), + - MIN( - - 54 ) ) * - 50 * 2 + 44
----
-56

skipif mysql # not compatible
query I rowsort label-1179
SELECT + COALESCE ( COUNT ( * ), + - MIN ( - - 54 ) ) * - 50 * 2 + 44
----
-56

query I rowsort
SELECT ALL - 23 * - 97 + - - 6 * 88 AS col1
----
2759

query I rowsort
SELECT ALL 6 * + 85 * + - 84 AS col1
----
-42840

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT + 12 DIV 55 * + + ( + ( - + 34 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1182
SELECT + 12 / 55 * + + ( + ( - + 34 ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1183
SELECT ALL 12 * - + CAST( NULL AS SIGNED ) + 72 - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL 12 * - + CAST ( NULL AS INTEGER ) + 72 - 78
----
NULL

query I rowsort
SELECT - 24 * - - 72 * - + 25 * - 87 * - 61
----
229262400

query I rowsort
SELECT + 29 * 59
----
1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT ALL COUNT( * ) * + ( - - CAST( + CASE 65 WHEN + 39 - - 1 + + 9 / ( - 11 ) THEN + 59 END AS SIGNED ) ) + MIN( DISTINCT - + 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL COUNT ( * ) * + ( - - CAST ( + CASE 65 WHEN + 39 - - 1 + + 9 / ( - 11 ) THEN + 59 END AS INTEGER ) ) + MIN ( DISTINCT - + 78 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT + 6 * - - 7 * - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-1187
SELECT + 6 * - - 7 * - COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL 55 * - COALESCE ( - + 82, + AVG ( DISTINCT - 59 ) ) + CASE 8 WHEN - 57 THEN + 65 + + + 57 + NULLIF ( + - COALESCE ( - + ( + + ( - + CASE 86 WHEN - + COUNT( * ) / 79 * - + 79 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN COUNT( * ) + + 89 * 31 THEN - 55 END ) ), - - 1 * + 30 + + + 10 ), - 55 ) * + 29 + + COUNT( ALL - + 46 ) / COUNT( DISTINCT + 3 ) WHEN - 10 + 95 * 89 THEN + 9 + 36 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 55 * - COALESCE ( - + 82, + AVG ( DISTINCT - 59 ) ) + CASE 8 WHEN - 57 THEN + 65 + + + 57 + NULLIF ( + - COALESCE ( - + ( + + ( - + CASE 86 WHEN - + COUNT ( * ) / 79 * - + 79 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) + + 89 * 31 THEN - 55 END ) ), - - 1 * + 30 + + + 10 ), - 55 ) * + 29 + + COUNT ( ALL - + 46 ) / COUNT ( DISTINCT + 3 ) WHEN - 10 + 95 * 89 THEN + 9 + 36 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + 73, - 23 + 88 )
----
-73

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1191
SELECT - COALESCE ( + 46, - COUNT( * ) + + 55 + - - 12, + 93 * 82 + - 12 + - 4 * 85 DIV + 44 + 77, - 78 - ( 52 ) - + 61 + - - 20 * MIN( + ( 39 ) ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1191
SELECT - COALESCE ( + 46, - COUNT ( * ) + + 55 + - - 12, + 93 * 82 + - 12 + - 4 * 85 / + 44 + 77, - 78 - ( 52 ) - + 61 + - - 20 * MIN ( + ( 39 ) ) ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-1192
SELECT DISTINCT SUM( DISTINCT 80 ), 54 col0
----
80
54

skipif mysql # not compatible
query II rowsort label-1192
SELECT DISTINCT SUM ( DISTINCT 80 ), 54 col0
----
80
54

onlyif mysql # aggregate syntax: 
query II rowsort label-1193
SELECT ALL COUNT( * ) AS col2, - 1 + ( 96 ) AS col1
----
1
95

skipif mysql # not compatible
query II rowsort label-1193
SELECT ALL COUNT ( * ) AS col2, - 1 + ( 96 ) AS col1
----
1
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1194
SELECT MIN( - 39 ) AS col1, + CASE + 69 WHEN 14 + + + 25 THEN + ( COUNT( * ) ) WHEN - - 33 THEN + SUM( + - 74 ) END AS col1
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-1194
SELECT MIN ( - 39 ) AS col1, + CASE + 69 WHEN 14 + + + 25 THEN + ( COUNT ( * ) ) WHEN - - 33 THEN + SUM ( + - 74 ) END AS col1
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT DISTINCT + 64 * - 57 + - + COUNT( * ) AS col1
----
-3649

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT + 64 * - 57 + - + COUNT ( * ) AS col1
----
-3649

query II rowsort
SELECT 65 AS col2, 6
----
65
6

query I rowsort
SELECT 8 + + 62 col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT 43 DIV - + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1198
SELECT 43 / - + 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL 98 * + 59 * + 37 * - 19 * COUNT( * )
----
-4064746

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL 98 * + 59 * + 37 * - 19 * COUNT ( * )
----
-4064746

query II rowsort
SELECT - 64 AS col1, - 11
----
-64
-11

query I rowsort
SELECT ALL ( - 3 ) - - + ( - 90 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT - + CASE COUNT( * ) WHEN - + COALESCE ( - 0, - COUNT( * ) ) / + 42 + 30 THEN 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT - + CASE COUNT ( * ) WHEN - + COALESCE ( - 0, - COUNT ( * ) ) / + 42 + 30 THEN 38 END
----
NULL

query II rowsort
SELECT DISTINCT 10 AS col0, 83 col0
----
10
83

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1205
SELECT ALL - 72 DIV + NULLIF ( - ( + + 72 ), - ( + - NULLIF ( 51, - 39 + + - 71 * + + COALESCE ( + 23, + - 20, - 34 * + + 0 ) ) ) * + COUNT( * ) - + 70 + + 17 ) + + COUNT( ALL - + 66 )
----
2

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL - 72 / + NULLIF ( - ( + + 72 ), - ( + - NULLIF ( 51, - 39 + + - 71 * + + COALESCE ( + 23, + - 20, - 34 * + + 0 ) ) ) * + COUNT ( * ) - + 70 + + 17 ) + + COUNT ( ALL - + 66 )
----
2

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

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

query II rowsort
SELECT ALL + 9 AS col0, ( - 56 ) * + ( + 28 ) AS col2
----
9
-1568

query III rowsort
SELECT + 0 AS col2, 23 AS col2, + 6 AS col1
----
0
23
6

query II rowsort
SELECT 59, + ( 55 ) + - ( + 80 ) AS col1
----
59
-25

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

query II rowsort
SELECT ( + 41 ) AS col0, 87 * - 65 * + 25 * 89
----
41
-12582375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1212
SELECT + - 79 * - + CAST( NULL AS SIGNED ) * - + 31 + + ( + CAST( - + 77 AS DECIMAL ) ) - COUNT( * ) + - 75 - 93 * - + 97 + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT + - 79 * - + CAST ( NULL AS INTEGER ) * - + 31 + + ( + CAST ( - + 77 AS REAL ) ) - COUNT ( * ) + - 75 - 93 * - + 97 + - 1
----
NULL

query II rowsort
SELECT + - 75 AS col1, - 47
----
-75
-47

query I rowsort
SELECT + 55 * 33 AS col1
----
1815

query I rowsort
SELECT ALL + 20 + - 52 * - + 52
----
2724

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1216
SELECT ALL - 76 * + 11, - 87 + CAST( NULL AS SIGNED ) + - 79 * - + 38 / + + 41 * + 39 + + + ( + - 11 ) AS col1
----
-836
NULL

skipif mysql # not compatible
query II rowsort label-1216
SELECT ALL - 76 * + 11, - 87 + CAST ( NULL AS INTEGER ) + - 79 * - + 38 / + + 41 * + 39 + + + ( + - 11 ) AS col1
----
-836
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1217
SELECT + 7, COUNT( - + 39 ) * + + COUNT( * ) AS col0
----
7
1

skipif mysql # not compatible
query II rowsort label-1217
SELECT + 7, COUNT ( - + 39 ) * + + COUNT ( * ) AS col0
----
7
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1218
SELECT ALL + 66 + - + CASE - - 17 WHEN - - 75 + - 33 * SUM( 64 ) * + ( - 12 ) * + COUNT( * ) + + 53 THEN 58 WHEN + - 51 + + CAST( NULL AS DECIMAL ) / - 60 - 46 THEN NULL WHEN - 43 THEN + 25 + + + ( 67 ) ELSE NULL END - - 33 + ( + + 30 ) + + 61 + - 78 / 1 / + 95 * + MIN( + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL + 66 + - + CASE - - 17 WHEN - - 75 + - 33 * SUM ( 64 ) * + ( - 12 ) * + COUNT ( * ) + + 53 THEN 58 WHEN + - 51 + + CAST ( NULL AS REAL ) / - 60 - 46 THEN NULL WHEN - 43 THEN + 25 + + + ( 67 ) ELSE NULL END - - 33 + ( + + 30 ) + + 61 + - 78 / 1 / + 95 * + MIN ( + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT + 52 * 35 * 80 + - COUNT( * ) - 69 AS col0
----
145530

skipif mysql # not compatible
query I rowsort label-1219
SELECT + 52 * 35 * 80 + - COUNT ( * ) - 69 AS col0
----
145530

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT 74 + + COUNT( * ) - 56 * + + MAX( - 4 )
----
299

skipif mysql # not compatible
query I rowsort label-1220
SELECT 74 + + COUNT ( * ) - 56 * + + MAX ( - 4 )
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT 83 + - COUNT( ALL - 38 )
----
82

skipif mysql # not compatible
query I rowsort label-1221
SELECT 83 + - COUNT ( ALL - 38 )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1222
SELECT 90 + - ( - + 39 ) DIV - COUNT( * ) * COUNT( * ) + + 69
----
120

skipif mysql # not compatible
query I rowsort label-1222
SELECT 90 + - ( - + 39 ) / - COUNT ( * ) * COUNT ( * ) + + 69
----
120

onlyif mysql # DIV for integer division: 
query II rowsort label-1223
SELECT DISTINCT - 77 DIV + + 53 AS col1, 13
----
-1
13

skipif mysql # not compatible
query II rowsort label-1223
SELECT DISTINCT - 77 / + + 53 AS col1, 13
----
-1
13

onlyif mysql # aggregate syntax: 
query II rowsort label-1224
SELECT ALL COUNT( * ) - + 32 - + - 66 * 49 * + - 57 AS col2, + 77 * + 95 AS col1
----
-184369
7315

skipif mysql # not compatible
query II rowsort label-1224
SELECT ALL COUNT ( * ) - + 32 - + - 66 * 49 * + - 57 AS col2, + 77 * + 95 AS col1
----
-184369
7315

query I rowsort
SELECT 24 * + ( + - 93 ) AS col2
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT 57 * + - 75 * - 24 * + COUNT( * ) col2
----
102600

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT 57 * + - 75 * - 24 * + COUNT ( * ) col2
----
102600

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT 53 + + - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1227
SELECT 53 + + - COUNT ( * ) AS col0
----
52

query II rowsort
SELECT 24 * - 14 AS col0, - 39
----
-336
-39

query I rowsort
SELECT DISTINCT - NULLIF ( + 70, 21 * - COALESCE ( - - 81, + 90 ) ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1230
SELECT ALL SUM( + 37 ), 20 AS col0
----
37
20

skipif mysql # not compatible
query II rowsort label-1230
SELECT ALL SUM ( + 37 ), 20 AS col0
----
37
20

query I rowsort
SELECT DISTINCT 24 * - ( - - 61 ) + - 74 + + 12 col1
----
-1526

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL 9 + - + MIN( DISTINCT - + 70 ) + 25
----
104

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL 9 + - + MIN ( DISTINCT - + 70 ) + 25
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL 64 * + + 76 + - NULLIF ( - 47, + - ( + 0 ) * - NULLIF ( - COUNT( ALL + + 70 ), + 99 ) + - + 79 ) + - ( 49 ) * + + 30 AS col2
----
3441

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL 64 * + + 76 + - NULLIF ( - 47, + - ( + 0 ) * - NULLIF ( - COUNT ( ALL + + 70 ), + 99 ) + - + 79 ) + - ( 49 ) * + + 30 AS col2
----
3441

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

skipif mysql # not compatible
query I rowsort label-1235
SELECT + ( - 26 ) * - - COUNT ( * ) + - 20 AS col1
----
-46

query I rowsort
SELECT + 59 * + ( + + 15 )
----
885

query I rowsort
SELECT 9 + - - 53 + 21
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1238
SELECT + COUNT( * ) col2, + 16 * + - 40 + - + CAST( - - 69 AS SIGNED ) + + NULLIF ( - + 42, + 2 + + COALESCE ( + + CAST( NULL AS SIGNED ), - COUNT( * ), 16 ) * + - 26 / - 89 ) * CAST( NULL AS SIGNED ) / + + ( - MIN( DISTINCT - 83 ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1238
SELECT + COUNT ( * ) col2, + 16 * + - 40 + - + CAST ( - - 69 AS INTEGER ) + + NULLIF ( - + 42, + 2 + + COALESCE ( + + CAST ( NULL AS INTEGER ), - COUNT ( * ), 16 ) * + - 26 / - 89 ) * CAST ( NULL AS INTEGER ) / + + ( - MIN ( DISTINCT - 83 ) )
----
1
NULL

query I rowsort
SELECT 90 * + 85
----
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT SUM( DISTINCT + - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-1240
SELECT SUM ( DISTINCT + - 41 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1241
SELECT + 74, + CASE + 96 WHEN - CAST( NULL AS SIGNED ) + COUNT( * ) THEN 64 + + COUNT( * ) ELSE NULL END + - 40 * - MAX( + 69 ) AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-1241
SELECT + 74, + CASE + 96 WHEN - CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN 64 + + COUNT ( * ) ELSE NULL END + - 40 * - MAX ( + 69 ) AS col1
----
74
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT - CAST( - 10 AS SIGNED ) * + + 40 - 52 - COUNT( * ) * + 38 + - 31 + 80 * 78 * - COUNT( * ) + 52 * + 97 * MAX( - 43 ) * - 12 * + ( 54 ) AS col1
----
140540055

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - CAST ( - 10 AS INTEGER ) * + + 40 - 52 - COUNT ( * ) * + 38 + - 31 + 80 * 78 * - COUNT ( * ) + 52 * + 97 * MAX ( - 43 ) * - 12 * + ( 54 ) AS col1
----
140540055

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - CASE + 52 WHEN - 23 - - CASE COALESCE ( + 12, + COUNT( * ), - 89 ) WHEN + COUNT( * ) * 43 * - - 12 THEN NULL ELSE - 67 - - COALESCE ( - MIN( DISTINCT - + 14 ), 34 * - + 7 ) * + 12 END + 91 THEN - 11 + + 91 * - 3 + 75 ELSE NULL END * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - CASE + 52 WHEN - 23 - - CASE COALESCE ( + 12, + COUNT ( * ), - 89 ) WHEN + COUNT ( * ) * 43 * - - 12 THEN NULL ELSE - 67 - - COALESCE ( - MIN ( DISTINCT - + 14 ), 34 * - + 7 ) * + 12 END + 91 THEN - 11 + + 91 * - 3 + 75 ELSE NULL END * + 10
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1245
SELECT ALL - ( + CASE - ( - ( + 81 ) ) WHEN 34 / + 11 * + - CAST( NULL AS DECIMAL ) THEN NULL ELSE + 96 END ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - ( + CASE - ( - ( + 81 ) ) WHEN 34 / + 11 * + - CAST ( NULL AS REAL ) THEN NULL ELSE + 96 END ) AS col0
----
-96

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

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

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT MIN ( ALL - 89 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-1248
SELECT - 16 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-1248
SELECT - 16 / 57
----
0

query II rowsort
SELECT + 95, - 10 * - - 65 * + 2 AS col2
----
95
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT ALL + MIN( 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL + MIN ( 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT - 27 * - 43 * - MAX( + + 92 ) - - - COALESCE ( - 95, - 27 )
----
-106717

skipif mysql # not compatible
query I rowsort label-1251
SELECT - 27 * - 43 * - MAX ( + + 92 ) - - - COALESCE ( - 95, - 27 )
----
-106717

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT + SUM( 5 ) * - 9
----
-45

skipif mysql # not compatible
query I rowsort label-1252
SELECT + SUM ( 5 ) * - 9
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1253
SELECT ALL COALESCE ( + + CAST( - - COUNT( + + 92 ) AS SIGNED ), - 27 * - 33 DIV - 59 + - - 7 - - 85 + - - 86, + - ( MAX( DISTINCT + + ( - 79 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL COALESCE ( + + CAST ( - - COUNT ( + + 92 ) AS INTEGER ), - 27 * - 33 / - 59 + - - 7 - - 85 + - - 86, + - ( MAX ( DISTINCT + + ( - 79 ) ) ) )
----
1

query I rowsort
SELECT - 57 - - 70 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT - - 99 DIV - 24
----
-4

skipif mysql # not compatible
query I rowsort label-1255
SELECT - - 99 / - 24
----
-4

query II rowsort
SELECT ALL NULLIF ( - 73, + 74 + + 78 ) AS col2, - 8
----
-73
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT COUNT( * ) * - 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT COUNT ( * ) * - 21 AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1258
SELECT + + 66 DIV - MIN( ALL 67 ) * 3 + - 22 + - COUNT( * ) * + 62 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1258
SELECT + + 66 / - MIN ( ALL 67 ) * 3 + - 22 + - COUNT ( * ) * + 62 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - - 55 + COALESCE ( - + 90, - COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-1259
SELECT - - 55 + COALESCE ( - + 90, - COUNT ( * ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT + - COUNT( ALL + + 20 ) - - 6 + 24 + - 9 * + ( - CASE + 51 WHEN + 99 THEN + 1 WHEN 9 THEN NULL ELSE + - 76 END ) + COALESCE ( - NULLIF ( + 25, COUNT( * ) ), + + 89, - + 8 ) * + 66
----
-2305

skipif mysql # not compatible
query I rowsort label-1260
SELECT + - COUNT ( ALL + + 20 ) - - 6 + 24 + - 9 * + ( - CASE + 51 WHEN + 99 THEN + 1 WHEN 9 THEN NULL ELSE + - 76 END ) + COALESCE ( - NULLIF ( + 25, COUNT ( * ) ), + + 89, - + 8 ) * + 66
----
-2305

query I rowsort
SELECT ALL + COALESCE ( 93, - ( - + 19 ) ) * - 43 AS col2
----
-3999

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT - 27 DIV - 67 + - + 7 * - 19 * - 68
----
-9044

skipif mysql # not compatible
query I rowsort label-1262
SELECT - 27 / - 67 + - + 7 * - 19 * - 68
----
-9044

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT - + 80 + + MIN( + 78 ) AS col0, - 49 * 43
----
-2
-2107

skipif mysql # not compatible
query II rowsort label-1263
SELECT - + 80 + + MIN ( + 78 ) AS col0, - 49 * 43
----
-2
-2107

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT + ( - CASE - + 88 WHEN + 36 + - 69 THEN 95 + COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT + ( - CASE - + 88 WHEN + 36 + - 69 THEN 95 + COUNT ( * ) ELSE NULL END )
----
NULL

query I rowsort
SELECT + 10 * + - 52
----
-520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1266
SELECT DISTINCT 80 + + + NULLIF ( - 31, 84 + + COALESCE ( + CAST( + 67 AS SIGNED ), - + 49 - MIN( DISTINCT + 93 ) + + CAST( + - 27 AS SIGNED ) ) ) - - 40 - NULLIF ( + + 1, CAST( + 50 AS SIGNED ) ) DIV ( 10 ) * + + 39 - - 30 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT 80 + + + NULLIF ( - 31, 84 + + COALESCE ( + CAST ( + 67 AS INTEGER ), - + 49 - MIN ( DISTINCT + 93 ) + + CAST ( + - 27 AS INTEGER ) ) ) - - 40 - NULLIF ( + + 1, CAST ( + 50 AS INTEGER ) ) / ( 10 ) * + + 39 - - 30 AS col2
----
119

query II rowsort
SELECT + 46 AS col2, 31 + + 53 AS col1
----
46
84

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1269
SELECT DISTINCT + 7, COUNT( * ) DIV 30 AS col1
----
7
0

skipif mysql # not compatible
query II rowsort label-1269
SELECT DISTINCT + 7, COUNT ( * ) / 30 AS col1
----
7
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1270
SELECT - COUNT( * ) AS col0, + 95 + - + 3
----
-1
92

skipif mysql # not compatible
query II rowsort label-1270
SELECT - COUNT ( * ) AS col0, + 95 + - + 3
----
-1
92

query I rowsort
SELECT + - 99 + + + 26
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1272
SELECT + COALESCE ( - COALESCE ( 94, - 16 DIV 65 + 11 * - 4 * + 15 ), COALESCE ( + COUNT( * ), ( + 62 ) * - 97 + + 12 + + 88, 35 ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1272
SELECT + COALESCE ( - COALESCE ( 94, - 16 / 65 + 11 * - 4 * + 15 ), COALESCE ( + COUNT ( * ), ( + 62 ) * - 97 + + 12 + + 88, 35 ) ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + 29 * COUNT( * ) * 45 col0
----
1305

skipif mysql # not compatible
query I rowsort label-1273
SELECT + 29 * COUNT ( * ) * 45 col0
----
1305

query II rowsort
SELECT ALL 35 * - 64 AS col2, + 27 * + + 82 AS col2
----
-2240
2214

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1275
SELECT DISTINCT + SUM( - + 39 ) * - CAST( NULL AS DECIMAL ) - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT + SUM ( - + 39 ) * - CAST ( NULL AS REAL ) - - 99
----
NULL

query II rowsort
SELECT ( - 3 ) AS col0, - 54 + - 82 AS col2
----
-3
-136

query I rowsort
SELECT ALL 29 * - 60 * - ( + 2 )
----
3480

query II rowsort
SELECT + 99 * + 6 AS col1, 25
----
594
25

query I rowsort
SELECT - 17 * + 14 - 14 AS col2
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT + MAX( 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT + MAX ( 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT + 87 + COUNT( * ) col0
----
88

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 87 + COUNT ( * ) col0
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1282
SELECT COALESCE ( + 25, + + NULLIF ( - CAST( + - 3 AS SIGNED ), + ( + 16 ) ) * 97 + - COALESCE ( + 85, + 72 ) DIV + ( 70 ) + - 21 )
----
25

skipif mysql # not compatible
query I rowsort label-1282
SELECT COALESCE ( + 25, + + NULLIF ( - CAST ( + - 3 AS INTEGER ), + ( + 16 ) ) * 97 + - COALESCE ( + 85, + 72 ) / + ( 70 ) + - 21 )
----
25

query I rowsort
SELECT + 81 + - 1 * 21 AS col2
----
60

query I rowsort
SELECT + 39 * ( + 63 )
----
2457

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT - 60 * - + ( - 80 ) + + 31 + - COUNT( * ) * - 90 * + 95 AS col1
----
3781

skipif mysql # not compatible
query I rowsort label-1286
SELECT - 60 * - + ( - 80 ) + + 31 + - COUNT ( * ) * - 90 * + 95 AS col1
----
3781

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT DISTINCT + 32 * - SUM( 18 )
----
-576

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT + 32 * - SUM ( 18 )
----
-576

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

skipif mysql # not compatible
query I rowsort label-1288
SELECT - COUNT ( * ) + + ( + + 54 ) + + 76 * - 93 AS col0
----
-7015

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL - SUM( + + 84 ) * - 43 * - - 37 * + 17 + - 55 * - 69
----
2275743

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - SUM ( + + 84 ) * - 43 * - - 37 * + 17 + - 55 * - 69
----
2275743

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT COALESCE ( 22, NULLIF ( - MAX( ALL - 92 ), + + 43 + + 33 + 87 ) ) col0
----
22

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT COALESCE ( 22, NULLIF ( - MAX ( ALL - 92 ), + + 43 + + 33 + 87 ) ) col0
----
22

query I rowsort
SELECT - 72 + - - 65 * + - 88 AS col0
----
-5792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1292
SELECT - 85 + 57, COALESCE ( + 18, + 86 DIV + 81, + 35 + - CASE 32 WHEN 27 THEN NULL WHEN + 35 * + - 48 THEN - 38 + - CASE + - 51 WHEN 56 + - + NULLIF ( - - 96, - 85 ) + - 49 + + 26 + - - COUNT( * ) THEN + 33 END END + - - 77 + - 90 DIV 98 * MAX( - - 64 ) * + 9 + + COALESCE ( - - 30, + COUNT( * ) ) ) AS col0
----
-28
18

skipif mysql # not compatible
query II rowsort label-1292
SELECT - 85 + 57, COALESCE ( + 18, + 86 / + 81, + 35 + - CASE 32 WHEN 27 THEN NULL WHEN + 35 * + - 48 THEN - 38 + - CASE + - 51 WHEN 56 + - + NULLIF ( - - 96, - 85 ) + - 49 + + 26 + - - COUNT ( * ) THEN + 33 END END + - - 77 + - 90 / 98 * MAX ( - - 64 ) * + 9 + + COALESCE ( - - 30, + COUNT ( * ) ) ) AS col0
----
-28
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT - - COUNT( ALL - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-1293
SELECT - - COUNT ( ALL - 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL + ( MIN( - - 9 ) ) + 0 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + ( MIN ( - - 9 ) ) + 0 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT - - 43 * + COUNT( * ) * - - 0
----
0

skipif mysql # not compatible
query I rowsort label-1295
SELECT - - 43 * + COUNT ( * ) * - - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1296
SELECT ALL + - COUNT( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) / CASE COUNT( * ) WHEN + 44 * 74 * - - MAX( - 66 ) + 93 * - 18 + + 60 * - 93 THEN - - 30 * COUNT( * ) + 39 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + - COUNT ( DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) / CASE COUNT ( * ) WHEN + 44 * 74 * - - MAX ( - 66 ) + 93 * - 18 + + 60 * - 93 THEN - - 30 * COUNT ( * ) + 39 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 43 + - 10 * - 24 + - 20 AS col1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT ALL + + CASE + - 12 WHEN + 0 THEN + 4 + - + 13 + COUNT( * ) ELSE NULL END + - - 21 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL + + CASE + - 12 WHEN + 0 THEN + 4 + - + 13 + COUNT ( * ) ELSE NULL END + - - 21 + - 26
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT - MIN ( 47 )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1301
SELECT - COUNT( * ) + + - 26 * - 83 * - 63 AS col2, + ( - - 24 ) DIV - 9 AS col0
----
-135955
-2

skipif mysql # not compatible
query II rowsort label-1301
SELECT - COUNT ( * ) + + - 26 * - 83 * - 63 AS col2, + ( - - 24 ) / - 9 AS col0
----
-135955
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1302
SELECT DISTINCT - + COUNT( * ) * 27 AS col2, + 17 AS col2
----
-27
17

skipif mysql # not compatible
query II rowsort label-1302
SELECT DISTINCT - + COUNT ( * ) * 27 AS col2, + 17 AS col2
----
-27
17

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

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

query I rowsort
SELECT - - COALESCE ( + - 10, + + 22, - 44 ) * - 68 col1
----
680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1305
SELECT - ( - 37 ) + COALESCE ( MIN( + 82 ), - - 78 + - + 82 DIV + - 30 + + 91 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-1305
SELECT - ( - 37 ) + COALESCE ( MIN ( + 82 ), - - 78 + - + 82 / + - 30 + + 91 ) AS col1
----
119

query I rowsort
SELECT 81 * + + 9 - - + 1 AS col2
----
730

query II rowsort
SELECT ALL + 44 AS col1, 68
----
44
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT 34 + ( COUNT( * ) ) + - + 80
----
-45

skipif mysql # not compatible
query I rowsort label-1309
SELECT 34 + ( COUNT ( * ) ) + - + 80
----
-45

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT COUNT( * ) * + - COUNT( * ) + + 57 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1312
SELECT COUNT ( * ) * + - COUNT ( * ) + + 57 AS col1
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT NULLIF ( - - CASE 85 WHEN - COUNT( * ) THEN - COUNT( * ) * - - COUNT( * ) + 93 WHEN 26 THEN - 95 + 2 + - - 88 + - 9 - - 53 / + - 53 / - 48 * + 86 * + - 30 END, - 43 ) / 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT NULLIF ( - - CASE 85 WHEN - COUNT ( * ) THEN - COUNT ( * ) * - - COUNT ( * ) + 93 WHEN 26 THEN - 95 + 2 + - - 88 + - 9 - - 53 / + - 53 / - 48 * + 86 * + - 30 END, - 43 ) / 42
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1316
SELECT ( - ( - 68 ) ) * + 25 + - - 58 * 38 + - CAST( - 8 AS SIGNED ) + 65 * + CASE - 19 WHEN + 23 THEN + 51 ELSE 48 * CASE - 30 WHEN - - CASE - 76 WHEN + NULLIF ( - 54, - ( - - 25 ) + - ( + + 56 ) ) THEN - 33 * - 47 * 96 + 68 + MIN( DISTINCT - 79 ) WHEN 33 THEN + COUNT( * ) ELSE COUNT( + 71 ) * + 76 / CAST( + 12 AS SIGNED ) END THEN 6 + 10 WHEN MIN( ALL 97 ) THEN 44 - NULLIF ( 28, - 72 * - 20 ) * - 97 ELSE 65 END END * 27 AS col0
----
5479512

skipif mysql # not compatible
query I rowsort label-1316
SELECT ( - ( - 68 ) ) * + 25 + - - 58 * 38 + - CAST ( - 8 AS INTEGER ) + 65 * + CASE - 19 WHEN + 23 THEN + 51 ELSE 48 * CASE - 30 WHEN - - CASE - 76 WHEN + NULLIF ( - 54, - ( - - 25 ) + - ( + + 56 ) ) THEN - 33 * - 47 * 96 + 68 + MIN ( DISTINCT - 79 ) WHEN 33 THEN + COUNT ( * ) ELSE COUNT ( + 71 ) * + 76 / CAST ( + 12 AS INTEGER ) END THEN 6 + 10 WHEN MIN ( ALL 97 ) THEN 44 - NULLIF ( 28, - 72 * - 20 ) * - 97 ELSE 65 END END * 27 AS col0
----
5479512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1317
SELECT DISTINCT 69 * + AVG ( DISTINCT + 43 ) * 7 + - MAX( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT 69 * + AVG ( DISTINCT + 43 ) * 7 + - MAX ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 28 + + 54 * + 65 + + 13
----
3551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT 53 DIV COALESCE ( - 33, + COUNT( * ), + + NULLIF ( 1, + ( 40 ) * + 58 + 33 * 8 DIV 35 + - SUM( + 38 ) ) ) * 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1319
SELECT 53 / COALESCE ( - 33, + COUNT ( * ), + + NULLIF ( 1, + ( 40 ) * + 58 + 33 * 8 / 35 + - SUM ( + 38 ) ) ) * 66 AS col2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT 73 DIV + 7
----
10

skipif mysql # not compatible
query I rowsort label-1320
SELECT 73 / + 7
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT COUNT( * ) * - ( - NULLIF ( - + 66, 50 * + 27 + + 2 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1321
SELECT COUNT ( * ) * - ( - NULLIF ( - + 66, 50 * + 27 + + 2 ) )
----
-66

query I rowsort
SELECT 63 * + 91
----
5733

query I rowsort
SELECT ALL - 53 + 18 AS col2
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1324
SELECT ALL + CAST( NULL AS DECIMAL ) * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL + CAST ( NULL AS REAL ) * 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL COALESCE ( - 15, - - 26 + + + COUNT( * ) + + - 43 + 54, 43 ) + + + 50 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL COALESCE ( - 15, - - 26 + + + COUNT ( * ) + + - 43 + 54, 43 ) + + + 50 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1326
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 19 - 85 - + - ( 59 ) + + + 27 * + 89
----
NULL
2396

skipif mysql # not compatible
query II rowsort label-1326
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 19 - 85 - + - ( 59 ) + + + 27 * + 89
----
NULL
2396

query I rowsort
SELECT ALL - 12 - - 73 col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1328
SELECT ALL 42 AS col0, CAST( NULL AS SIGNED ) AS col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-1328
SELECT ALL 42 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
42
NULL

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

query I rowsort
SELECT 11 - 71 * - ( + 85 ) AS col1
----
6046

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT SUM( + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1331
SELECT SUM ( + 3 ) AS col1
----
3

query I rowsort
SELECT ALL - 65 * 90 * 58 * - 44 + - ( + 78 ) AS col0
----
14929122

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT DISTINCT - + 90 DIV - 48 + + 24 DIV - + 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT - + 90 / - 48 + + 24 / - + 65 AS col2
----
1

query I rowsort
SELECT 18 * - 56 col1
----
-1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1336
SELECT DISTINCT - COUNT( * ) DIV + 4 AS col1, + 85 AS col2
----
0
85

skipif mysql # not compatible
query II rowsort label-1336
SELECT DISTINCT - COUNT ( * ) / + 4 AS col1, + 85 AS col2
----
0
85

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

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

query I rowsort
SELECT 8 * + 37
----
296

query I rowsort
SELECT 44 * - 26 AS col2
----
-1144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1340
SELECT ALL - CAST( NULL AS DECIMAL ) * + 1 * + 66 * - 81 * + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL - CAST ( NULL AS REAL ) * + 1 * + 66 * - 81 * + 98 AS col2
----
NULL

query I rowsort
SELECT - 9 * 89 - - 3 AS col2
----
-798

query I rowsort
SELECT ALL 28 + - 31 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL - COUNT( ALL - 95 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - COUNT ( ALL - 95 ) AS col0
----
-1

query I rowsort
SELECT ALL 22 + + 85
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT MAX( - + 20 ) - + MIN( + + ( + 13 ) ) + + 29 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1345
SELECT MAX ( - + 20 ) - + MIN ( + + ( + 13 ) ) + + 29 AS col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1346
SELECT MIN( DISTINCT + 47 ) DIV 48 * - 45 * 0 * - 17 + + 37 + + 73 * - 88 + - 99
----
-6486

skipif mysql # not compatible
query I rowsort label-1346
SELECT MIN ( DISTINCT + 47 ) / 48 * - 45 * 0 * - 17 + + 37 + + 73 * - 88 + - 99
----
-6486

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT 43 + - + ( 34 ) + - MIN( - + 3 )
----
12

skipif mysql # not compatible
query I rowsort label-1348
SELECT 43 + - + ( 34 ) + - MIN ( - + 3 )
----
12

query II rowsort
SELECT ALL 86 + + 68 + + - 88 * 90, 51 AS col2
----
-7766
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1350
SELECT ( - - COUNT( * ) ) DIV + 91 AS col1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1351
SELECT 18 + + + COUNT( * ) + NULLIF ( + 37, - + CAST( NULL AS SIGNED ) ) * + - 67
----
-2460

skipif mysql # not compatible
query I rowsort label-1351
SELECT 18 + + + COUNT ( * ) + NULLIF ( + 37, - + CAST ( NULL AS INTEGER ) ) * + - 67
----
-2460

query I rowsort
SELECT + ( + - NULLIF ( 90, 97 ) )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1353
SELECT DISTINCT - CAST( - 25 AS SIGNED ) + 48
----
73

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT - CAST ( - 25 AS INTEGER ) + 48
----
73

query I rowsort
SELECT 11 + 3 + + 56
----
70

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

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL 3 - COUNT ( + 63 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT DISTINCT MAX( DISTINCT + + 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT MAX ( DISTINCT + + 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - MIN( ALL - 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1357
SELECT - MIN ( ALL - 70 ) AS col1
----
70

query I rowsort
SELECT ALL + 30 * - + 26
----
-780

query I rowsort
SELECT + 70 + - - 78 - + 32 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT + MAX( 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-1360
SELECT + MAX ( 97 ) AS col2
----
97

query II rowsort
SELECT - - 11 col0, - 33 AS col2
----
11
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1362
SELECT + 97 + - CAST( - COUNT( * ) AS SIGNED ) + - 73 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1362
SELECT + 97 + - CAST ( - COUNT ( * ) AS INTEGER ) + - 73 AS col1
----
25

query II rowsort
SELECT ALL - 0 AS col1, 73
----
0
73

query I rowsort
SELECT + - NULLIF ( - 89, - 1 ) + + + 62 col1
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1365
SELECT DISTINCT + 64, CAST( NULL AS SIGNED ) AS col0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-1365
SELECT DISTINCT + 64, CAST ( NULL AS INTEGER ) AS col0
----
64
NULL

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

query I rowsort
SELECT + 94 - ( + 88 )
----
6

query II rowsort
SELECT ALL 6 * - 9 AS col1, + 12 AS col1
----
-54
12

query I rowsort
SELECT + 12 * 58 AS col0
----
696

query III rowsort
SELECT + 71 - + + 97 AS col1, + 30 AS col1, - 23
----
-26
30
-23

query I rowsort
SELECT DISTINCT + 72 + + 32 + + 54
----
158

query I rowsort
SELECT ALL - COALESCE ( + + 58, + + 12 ) * - 79 * + 62 AS col2
----
284084

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT - 70 * - MAX( + - 14 ) AS col2
----
-980

skipif mysql # not compatible
query I rowsort label-1373
SELECT - 70 * - MAX ( + - 14 ) AS col2
----
-980

query I rowsort
SELECT - 58 + - ( + 36 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT MAX( ALL + 54 ) * - - 75 + - + 65 + 38 + + 45 + - - 26 + 62 AS col0
----
4156

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT MAX ( ALL + 54 ) * - - 75 + - + 65 + 38 + + 45 + - - 26 + 62 AS col0
----
4156

query I rowsort
SELECT NULLIF ( - 36, NULLIF ( - 12, - 18 ) * - 46 * - 31 - 19 + - 26 )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT + 98 DIV 81 * - ( 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-1377
SELECT + 98 / 81 * - ( 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT ( - + 31 ) * + 3 + - COUNT( * ) + - 35 + + 20 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-1378
SELECT ( - + 31 ) * + 3 + - COUNT ( * ) + - 35 + + 20 AS col0
----
-109

query I rowsort
SELECT ALL 17 * + + 54 + - 60 + + 8 * 52 + - 84
----
1190

query I rowsort
SELECT + NULLIF ( 3, - + 73 ) * 81 + + ( - 24 ) + + + ( + 75 ) * + 4
----
519

query I rowsort
SELECT NULLIF ( 98, - 92 )
----
98

query I rowsort
SELECT - 4 * - 56 * + 49
----
10976

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT ALL + 75 * - SUM( - 40 ) - - COUNT( * ) col0
----
3001

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + 75 * - SUM ( - 40 ) - - COUNT ( * ) col0
----
3001

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

skipif mysql # not compatible
query II rowsort label-1384
SELECT + SUM ( 46 ), 50 AS col0
----
46
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL + 11 * + 95 + COUNT( * ) + 12 - - 86
----
1144

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL + 11 * + 95 + COUNT ( * ) + 12 - - 86
----
1144

query I rowsort
SELECT - - 70 - + ( + + 81 ) AS col2
----
-11

query I rowsort
SELECT + - 65 * - - 76 AS col2
----
-4940

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT + SUM( + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1388
SELECT + SUM ( + 39 ) AS col1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1389
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), + 73 + - + 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), + 73 + - + 41 )
----
NULL

query I rowsort
SELECT NULLIF ( + + 31, 43 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT + 34 - + COUNT( * ) * - + 22 * 84 AS col2
----
1882

skipif mysql # not compatible
query I rowsort label-1391
SELECT + 34 - + COUNT ( * ) * - + 22 * 84 AS col2
----
1882

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT ALL - + 81 DIV - 62 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL - + 81 / - 62 AS col0
----
1

query I rowsort
SELECT DISTINCT 82 * 23 * 49 * + ( - + 26 )
----
-2402764

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT - + 94 + - 0 DIV - + 19 + 94
----
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT - + 94 + - 0 / - + 19 + 94
----
0

query I rowsort
SELECT - COALESCE ( 22, + NULLIF ( + + ( + - 2 ), + - 8 * 46 * - - 60 * - 95 + + 88 ) ) col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT + MAX( - ( - - 23 ) ) - 66 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-1396
SELECT + MAX ( - ( - - 23 ) ) - 66 AS col1
----
-89

query I rowsort
SELECT ALL - 59 + - 71 AS col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT - NULLIF ( + + 91, + CAST( + 56 AS SIGNED ) * - 65 )
----
-91

skipif mysql # not compatible
query I rowsort label-1398
SELECT - NULLIF ( + + 91, + CAST ( + 56 AS INTEGER ) * - 65 )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1399
SELECT + 58 * + - COUNT( DISTINCT 87 ) AS col1, ( + + SUM( DISTINCT - 18 ) ) DIV - + 11
----
-58
1

skipif mysql # not compatible
query II rowsort label-1399
SELECT + 58 * + - COUNT ( DISTINCT 87 ) AS col1, ( + + SUM ( DISTINCT - 18 ) ) / - + 11
----
-58
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT DISTINCT 64 + CAST( NULL AS SIGNED ) * 6 + - 99 + + COUNT( ALL - 31 ) / + - COUNT( - 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT 64 + CAST ( NULL AS INTEGER ) * 6 + - 99 + + COUNT ( ALL - 31 ) / + - COUNT ( - 72 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + 93 + + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 93 + + + COUNT ( * )
----
94

query I rowsort
SELECT ALL - 87 * + + 89 col1
----
-7743

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

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL COUNT ( * ) + 56 AS col0
----
57

query I rowsort
SELECT + 22 + - 90
----
-68

query I rowsort
SELECT + 57 * + 17 AS col0
----
969

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

skipif mysql # not compatible
query I rowsort label-1406
SELECT - MAX ( ALL + - 70 ) * - + COUNT ( * ) AS col0
----
-70

query I rowsort
SELECT ALL + NULLIF ( - 77, - - 45 * - 61 * + 13 )
----
-77

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1410
SELECT + 69 DIV - 2 + 49 + + NULLIF ( + 5, + + 13 ) + 99
----
119

skipif mysql # not compatible
query I rowsort label-1410
SELECT + 69 / - 2 + 49 + + NULLIF ( + 5, + + 13 ) + 99
----
119

query I rowsort
SELECT - - 85 + 74 AS col1
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT ALL + + 51 DIV CASE - COUNT( * ) WHEN - 20 THEN NULL ELSE + - 18 END col2
----
-2

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL + + 51 / CASE - COUNT ( * ) WHEN - 20 THEN NULL ELSE + - 18 END col2
----
-2

query I rowsort
SELECT + + 49 * + ( - 68 ) * - - 94 + - 4
----
-313212

query I rowsort
SELECT - 25 - + + 33 AS col1
----
-58

query I rowsort
SELECT + 69 + 83 + - ( 96 ) + - 77 + 16 * + 34 * 91
----
49483

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT 19 * 94 + - SUM( 65 ) - - + COUNT( * )
----
1722

skipif mysql # not compatible
query I rowsort label-1416
SELECT 19 * 94 + - SUM ( 65 ) - - + COUNT ( * )
----
1722

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT - - 33 DIV 47 + - - 11 * - 23 col2
----
-253

skipif mysql # not compatible
query I rowsort label-1419
SELECT - - 33 / 47 + - - 11 * - 23 col2
----
-253

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1420
SELECT + 38, - CAST( NULL AS SIGNED ) - + 45 / - ( + ( 93 ) ) + - 75 AS col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-1420
SELECT + 38, - CAST ( NULL AS INTEGER ) - + 45 / - ( + ( 93 ) ) + - 75 AS col1
----
38
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1421
SELECT DISTINCT CASE - 3 WHEN 27 * 56 THEN NULL WHEN - - 95 THEN - + 75 * + COUNT( * ) / - 55 * - COUNT( * ) + + 47 * + ( - CASE - + CAST( 33 AS SIGNED ) WHEN + 96 / + + 75 THEN NULL ELSE + 43 * 0 END ) - + 64 - 71 * 10 WHEN + 1 * + + SUM( DISTINCT + 0 ) * + - ( - 93 ) * - 48 * - 89 * - - 32 + + ( - - 65 ) THEN + ( 74 ) + - + 2 ELSE NULL END / - 83 + + + 10 + - 71 * 53 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT CASE - 3 WHEN 27 * 56 THEN NULL WHEN - - 95 THEN - + 75 * + COUNT ( * ) / - 55 * - COUNT ( * ) + + 47 * + ( - CASE - + CAST ( 33 AS INTEGER ) WHEN + 96 / + + 75 THEN NULL ELSE + 43 * 0 END ) - + 64 - 71 * 10 WHEN + 1 * + + SUM ( DISTINCT + 0 ) * + - ( - 93 ) * - 48 * - 89 * - - 32 + + ( - - 65 ) THEN + ( 74 ) + - + 2 ELSE NULL END / - 83 + + + 10 + - 71 * 53 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1422
SELECT - - COUNT( * ) * + COUNT( * ) * MAX( DISTINCT - - 99 ) * + CASE + 13 WHEN - ( - - 15 ) THEN 15 WHEN 60 + + 79 THEN - 92 END + + 30 + + - 83 + 93 + - - CASE 48 WHEN SUM( - - 60 ) THEN - 64 END - + 96 col0, - COUNT( * ) + - + NULLIF ( - + 82, - 82 * - 22 + + 44 ) + + ( + - 59 ) * 78
----
NULL
-4521

skipif mysql # not compatible
query II rowsort label-1422
SELECT - - COUNT ( * ) * + COUNT ( * ) * MAX ( DISTINCT - - 99 ) * + CASE + 13 WHEN - ( - - 15 ) THEN 15 WHEN 60 + + 79 THEN - 92 END + + 30 + + - 83 + 93 + - - CASE 48 WHEN SUM ( - - 60 ) THEN - 64 END - + 96 col0, - COUNT ( * ) + - + NULLIF ( - + 82, - 82 * - 22 + + 44 ) + + ( + - 59 ) * 78
----
NULL
-4521

query I rowsort
SELECT DISTINCT - + 79 * + + 65
----
-5135

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

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

query I rowsort
SELECT DISTINCT - 87 * NULLIF ( 11, - 73 ) * + 22
----
-21054

query I rowsort
SELECT ALL + 28 + - 56 - + 38 * - - 40 AS col0
----
-1548

query I rowsort
SELECT - 98 * + 2 AS col0
----
-196

query I rowsort
SELECT - 68 + - 15 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT 70 + + CASE - 78 WHEN + - 49 * + MIN( - 53 ) THEN 1 END + - - CASE - - 77 WHEN - 87 THEN NULL ELSE + 52 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT 70 + + CASE - 78 WHEN + - 49 * + MIN ( - 53 ) THEN 1 END + - - CASE - - 77 WHEN - 87 THEN NULL ELSE + 52 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1430
SELECT DISTINCT + ( + MAX( + 98 ) ) DIV + 4 col0
----
24

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT + ( + MAX ( + 98 ) ) / + 4 col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1431
SELECT COUNT( * ) * - 9 AS col0, - 89
----
-9
-89

skipif mysql # not compatible
query II rowsort label-1431
SELECT COUNT ( * ) * - 9 AS col0, - 89
----
-9
-89

query II rowsort
SELECT ALL + 82 * + 46 AS col1, + 26
----
3772
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT ALL - ( + COUNT( DISTINCT + - 46 ) ) + + 45 * - 7 + - - 29 + CASE + 54 WHEN + 51 + 57 THEN NULL WHEN + CASE 59 WHEN - 17 THEN 68 WHEN - 78 THEN - 45 WHEN - 98 - - NULLIF ( - + AVG ( - + 52 ), - COUNT( * ) ) THEN NULL END * COUNT( * ) THEN + 66 END - - ( + 76 ) + 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL - ( + COUNT ( DISTINCT + - 46 ) ) + + 45 * - 7 + - - 29 + CASE + 54 WHEN + 51 + 57 THEN NULL WHEN + CASE 59 WHEN - 17 THEN 68 WHEN - 78 THEN - 45 WHEN - 98 - - NULLIF ( - + AVG ( - + 52 ), - COUNT ( * ) ) THEN NULL END * COUNT ( * ) THEN + 66 END - - ( + 76 ) + 67 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1435
SELECT DISTINCT 4 DIV 97 * CASE - 46 WHEN - COUNT( * ) THEN NULL ELSE 59 END
----
0

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT 4 / 97 * CASE - 46 WHEN - COUNT ( * ) THEN NULL ELSE 59 END
----
0

query I rowsort
SELECT 59 + + 22 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT 68 + + MAX( - 99 ) - 82 * + COUNT( * )
----
-113

skipif mysql # not compatible
query I rowsort label-1437
SELECT 68 + + MAX ( - 99 ) - 82 * + COUNT ( * )
----
-113

query I rowsort
SELECT DISTINCT + 87 * + 58
----
5046

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT + 77 DIV 80 + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-1439
SELECT + 77 / 80 + - 9
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-1440
SELECT - 14 * - - 74 AS col0, + COUNT( * )
----
-1036
1

skipif mysql # not compatible
query II rowsort label-1440
SELECT - 14 * - - 74 AS col0, + COUNT ( * )
----
-1036
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1441
SELECT + - MIN( DISTINCT CAST( + 80 AS SIGNED ) )
----
-80

skipif mysql # not compatible
query I rowsort label-1441
SELECT + - MIN ( DISTINCT CAST ( + 80 AS INTEGER ) )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1442
SELECT ALL - CAST( NULL AS DECIMAL ) * + 1 / - CASE 96 WHEN - + ( - 93 ) THEN NULL ELSE + + 13 END * 50 * + - MAX( - + 79 ) * - + 17 + + - 52 - + - 42 * + - 61 + + - ( + 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL - CAST ( NULL AS REAL ) * + 1 / - CASE 96 WHEN - + ( - 93 ) THEN NULL ELSE + + 13 END * 50 * + - MAX ( - + 79 ) * - + 17 + + - 52 - + - 42 * + - 61 + + - ( + 31 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL - - COUNT ( + + 78 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + 2 * - 12 + - + 63 + - 33 + + 14 + 23 / - - 61 + + 21 - + CASE 94 WHEN - 44 * - + 12 - + 35 THEN NULL WHEN + + 16 * 1 + + ( - + 83 ) - - COUNT( + 66 ) - - 11 * + 57 - MIN( + + 19 ) THEN NULL WHEN 82 THEN + 47 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT + 2 * - 12 + - + 63 + - 33 + + 14 + 23 / - - 61 + + 21 - + CASE 94 WHEN - 44 * - + 12 - + 35 THEN NULL WHEN + + 16 * 1 + + ( - + 83 ) - - COUNT ( + 66 ) - - 11 * + 57 - MIN ( + + 19 ) THEN NULL WHEN 82 THEN + 47 ELSE NULL END * COUNT ( * )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1447
SELECT DISTINCT - NULLIF ( CAST( NULL AS DECIMAL ), - + ( + - 21 ) + - - ( 59 ) + + + 35 * 43 * - - 53 + - 58 * + 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT - NULLIF ( CAST ( NULL AS REAL ), - + ( + - 21 ) + - - ( 59 ) + + + 35 * 43 * - - 53 + - 58 * + 88 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1448
SELECT DISTINCT 81 + ( + - MAX( + 46 ) ) DIV - + 28 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT 81 + ( + - MAX ( + 46 ) ) / - + 28 AS col2
----
82

query I rowsort
SELECT ALL - ( - + 40 ) col1
----
40

query I rowsort
SELECT ALL 99 + + 97 AS col0
----
196

query I rowsort
SELECT 44 - - + 65 * - + 57 * + - 95 AS col2
----
352019

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1452
SELECT ALL - + 14 DIV - 68 * ( + COUNT( * ) ) AS col2, 40
----
0
40

skipif mysql # not compatible
query II rowsort label-1452
SELECT ALL - + 14 / - 68 * ( + COUNT ( * ) ) AS col2, 40
----
0
40

query I rowsort
SELECT - 96 * - 16
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT + NULLIF ( + + CASE + - MIN( 16 ) WHEN - + 77 + COUNT( - ( + + CASE - 55 WHEN - 12 THEN 72 END ) ) THEN NULL WHEN - 70 + AVG ( ALL 31 ) THEN - 92 / + ( 19 ) + + 87 / - + CASE - 33 WHEN AVG ( ALL 13 ) + + 3 + + 90 * COUNT( * ) THEN NULL WHEN + 34 THEN + 86 END * - - 89 * 48 * + - 44 WHEN + 89 THEN NULL ELSE NULL END, - 86 * + 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT + NULLIF ( + + CASE + - MIN ( 16 ) WHEN - + 77 + COUNT ( - ( + + CASE - 55 WHEN - 12 THEN 72 END ) ) THEN NULL WHEN - 70 + AVG ( ALL 31 ) THEN - 92 / + ( 19 ) + + 87 / - + CASE - 33 WHEN AVG ( ALL 13 ) + + 3 + + 90 * COUNT ( * ) THEN NULL WHEN + 34 THEN + 86 END * - - 89 * 48 * + - 44 WHEN + 89 THEN NULL ELSE NULL END, - 86 * + 79 ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 39 + - - 25 + - - 98
----
84

query I rowsort
SELECT 27 - + - 88
----
115

query I rowsort
SELECT ALL 47 * - 91 col1
----
-4277

query I rowsort
SELECT 37 - - - 41 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT DISTINCT + COUNT( * ) * MIN( + - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT + COUNT ( * ) * MIN ( + - 63 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT DISTINCT MAX( DISTINCT - + 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT MAX ( DISTINCT - + 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT 27 + - COUNT( * ) - - 44 * + 47 AS col2
----
2094

skipif mysql # not compatible
query I rowsort label-1461
SELECT 27 + - COUNT ( * ) - - 44 * + 47 AS col2
----
2094

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT 7 AS col1, 92 * + COUNT( * ) * - 21
----
7
-1932

skipif mysql # not compatible
query II rowsort label-1463
SELECT 7 AS col1, 92 * + COUNT ( * ) * - 21
----
7
-1932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT 72 - - 38 - - ( COUNT( * ) ) * - - COUNT( * ) DIV + COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-1464
SELECT 72 - - 38 - - ( COUNT ( * ) ) * - - COUNT ( * ) / + COUNT ( * )
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-1465
SELECT 50, - 84 DIV 12 AS col0
----
50
-7

skipif mysql # not compatible
query II rowsort label-1465
SELECT 50, - 84 / 12 AS col0
----
50
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1466
SELECT CASE + - 54 WHEN 68 THEN + 13 * - + 69 WHEN MAX( ALL + 10 ) THEN NULL ELSE NULL END - - - 36 AS col2, - 89 - 12 * - - 97 * + + 14 + + 6 AS col1
----
NULL
-16379

skipif mysql # not compatible
query II rowsort label-1466
SELECT CASE + - 54 WHEN 68 THEN + 13 * - + 69 WHEN MAX ( ALL + 10 ) THEN NULL ELSE NULL END - - - 36 AS col2, - 89 - 12 * - - 97 * + + 14 + + 6 AS col1
----
NULL
-16379

query I rowsort
SELECT 52 * - 81 AS col2
----
-4212

query I rowsort
SELECT ALL - 97 - + 11 AS col0
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1469
SELECT AVG ( DISTINCT 17 ) + + CAST( 88 AS SIGNED ) * - CAST( NULL AS SIGNED ) / + 83 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1469
SELECT AVG ( DISTINCT 17 ) + + CAST ( 88 AS INTEGER ) * - CAST ( NULL AS INTEGER ) / + 83 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 52 * 57
----
-2964

query I rowsort
SELECT 58 + + 29
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT DISTINCT CASE - 32 WHEN - 45 THEN NULL WHEN - 17 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 62 * + 15 + - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT CASE - 32 WHEN - 45 THEN NULL WHEN - 17 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 62 * + 15 + - 79 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1473
SELECT + COUNT ( * ) + - COUNT ( * ) * 54 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-1474
SELECT - + NULLIF ( + 23, - COUNT( * ) ) AS col2, + NULLIF ( + 44, + MAX( + 75 ) ) + + ( + COUNT( * ) ) AS col0
----
-23
45

skipif mysql # not compatible
query II rowsort label-1474
SELECT - + NULLIF ( + 23, - COUNT ( * ) ) AS col2, + NULLIF ( + 44, + MAX ( + 75 ) ) + + ( + COUNT ( * ) ) AS col0
----
-23
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1475
SELECT COALESCE ( - COUNT( * ), 68 ), 85 AS col0
----
-1
85

skipif mysql # not compatible
query II rowsort label-1475
SELECT COALESCE ( - COUNT ( * ), 68 ), 85 AS col0
----
-1
85

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1477
SELECT ALL - 5 * - 44 / + COUNT( * ) + ( - CAST( CASE + 48 WHEN COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 22 + COUNT( * ) THEN NULL WHEN 35 THEN + + MIN( ALL + 89 ) WHEN 14 THEN NULL ELSE NULL END AS SIGNED ) ) + + ( + 50 ) + 16 + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL - 5 * - 44 / + COUNT ( * ) + ( - CAST ( CASE + 48 WHEN COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 22 + COUNT ( * ) THEN NULL WHEN 35 THEN + + MIN ( ALL + 89 ) WHEN 14 THEN NULL ELSE NULL END AS INTEGER ) ) + + ( + 50 ) + 16 + + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT + 14 * + NULLIF ( - - 46, + CASE - ( - 4 ) WHEN + COUNT( * ) THEN 16 + 91 / + 53 ELSE NULL END / - - SUM( ALL + 96 ) * - 13 )
----
644

skipif mysql # not compatible
query I rowsort label-1478
SELECT + 14 * + NULLIF ( - - 46, + CASE - ( - 4 ) WHEN + COUNT ( * ) THEN 16 + 91 / + 53 ELSE NULL END / - - SUM ( ALL + 96 ) * - 13 )
----
644

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT + - COUNT( * ) + + ( + - 30 ) + + - 79
----
-110

skipif mysql # not compatible
query I rowsort label-1480
SELECT + - COUNT ( * ) + + ( + - 30 ) + + - 79
----
-110

query I rowsort
SELECT ALL - 37 * 98 + 51 AS col0
----
-3575

query I rowsort
SELECT + + 32 * - 81 - 96 AS col0
----
-2688

query II rowsort
SELECT + 8 col0, ( 33 ) AS col0
----
8
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1484
SELECT DISTINCT + - COALESCE ( - 71, - COALESCE ( - + 52, - 88, MAX( ALL - 90 ) ) ) * 84 / + 45 + + CAST( NULL AS SIGNED ) * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + - COALESCE ( - 71, - COALESCE ( - + 52, - 88, MAX ( ALL - 90 ) ) ) * 84 / + 45 + + CAST ( NULL AS INTEGER ) * - 36
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1485
SELECT ALL + 8, - 3 DIV 47 AS col2
----
8
0

skipif mysql # not compatible
query II rowsort label-1485
SELECT ALL + 8, - 3 / 47 AS col2
----
8
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT + 82 DIV 34
----
2

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 82 / 34
----
2

query I rowsort
SELECT - 88 * + 51 * - - 12 AS col1
----
-53856

query II rowsort
SELECT ALL 21 col2, + 9 + 26 AS col0
----
21
35

query I rowsort
SELECT + 99 + - 93 + + - 88
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT SUM( - 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1491
SELECT SUM ( - 80 ) AS col2
----
-80

query I rowsort
SELECT - CASE 53 WHEN + + 53 + 14 THEN NULL WHEN + 28 * - 2 THEN - 91 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT + 52 / - 58
----
0

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

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL 58 / - COUNT ( * )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT - NULLIF ( 70, 40 + - - COALESCE ( - 60, 76 ) ) * - 81 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT - NULLIF ( 70, 40 + - - COALESCE ( - 60, 76 ) ) * - 81 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT 17 col0, + 93
----
17
93

query I rowsort
SELECT ALL + 66 * 37 AS col0
----
2442

query II rowsort
SELECT 92 AS col0, 26 * - 59
----
92
-1534

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT + SUM( DISTINCT - - 17 ) - + 17
----
0

skipif mysql # not compatible
query I rowsort label-1499
SELECT + SUM ( DISTINCT - - 17 ) - + 17
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1500
SELECT 30 col0, - 57 DIV 46
----
30
-1

skipif mysql # not compatible
query II rowsort label-1500
SELECT 30 col0, - 57 / 46
----
30
-1

query I rowsort
SELECT - 92 + - 99 - 31
----
-222

onlyif mysql # aggregate syntax: 
query II rowsort label-1502
SELECT - 62 * - COUNT( * ) AS col1, - 79 col1
----
62
-79

skipif mysql # not compatible
query II rowsort label-1502
SELECT - 62 * - COUNT ( * ) AS col1, - 79 col1
----
62
-79

query I rowsort
SELECT ALL - + 14 + + + 15
----
1

query I rowsort
SELECT - 57 + - - 69
----
12

query II rowsort
SELECT - 56 col1, + 58
----
-56
58

query II rowsort
SELECT ALL 68, 50 * 30 * 72 * - + 90 + 3 AS col2
----
68
-9719997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT ALL - 65 + - 26 - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * MAX( - + 60 ) + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL - 65 + - 26 - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * MAX ( - + 60 ) + - 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT ALL + COUNT( * ) DIV + 89 + + + COUNT( * ) + - + 80 + + 87 * 49
----
4184

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL + COUNT ( * ) / + 89 + + + COUNT ( * ) + - + 80 + + 87 * 49
----
4184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1509
SELECT ALL + - ( - + 66 ) DIV COUNT( * ) + + + 67 + + 21 + 4
----
158

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL + - ( - + 66 ) / COUNT ( * ) + + + 67 + + 21 + 4
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1510
SELECT 61 col0, - CAST( NULL AS SIGNED )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1510
SELECT 61 col0, - CAST ( NULL AS INTEGER )
----
61
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + NULLIF ( + - 72, + COALESCE ( + 55, + 71 + - - 63 * + 98 + - MIN( ALL + 25 ) ) + 63 + + COUNT( * ) ) + COUNT( * ) + - 2 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1512
SELECT + NULLIF ( + - 72, + COALESCE ( + 55, + 71 + - - 63 * + 98 + - MIN ( ALL + 25 ) ) + 63 + + COUNT ( * ) ) + COUNT ( * ) + - 2 AS col0
----
-73

query I rowsort
SELECT 55 * + + 0 + ( - 15 ) + 22
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT - 74 * + 73 * - COUNT( * )
----
5402

skipif mysql # not compatible
query I rowsort label-1514
SELECT - 74 * + 73 * - COUNT ( * )
----
5402

query I rowsort
SELECT + - NULLIF ( + 39, + CASE - 4 WHEN - 39 / - - 12 + 15 THEN NULL WHEN - + NULLIF ( - + ( + - 63 ), - + 56 ) THEN - + 89 ELSE - 27 END * - + 72 + - 71 )
----
-39

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT CASE + - 99 WHEN + 8 THEN + 75 + - + 97 * - NULLIF ( + - 96, - - 42 ) * - 33 - - 56 + - COUNT( * ) + + 69 * COUNT( * ) WHEN - COALESCE ( + 3, - + 47 ) * + COUNT( * ) - - 31 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT CASE + - 99 WHEN + 8 THEN + 75 + - + 97 * - NULLIF ( + - 96, - - 42 ) * - 33 - - 56 + - COUNT ( * ) + + 69 * COUNT ( * ) WHEN - COALESCE ( + 3, - + 47 ) * + COUNT ( * ) - - 31 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 76 * 18 * 25 AS col1
----
34200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT - 97 * + - 42 + - CAST( + - 68 AS SIGNED ) * + 47
----
7270

skipif mysql # not compatible
query I rowsort label-1520
SELECT - 97 * + - 42 + - CAST ( + - 68 AS INTEGER ) * + 47
----
7270

query I rowsort
SELECT ALL 17 * - 6
----
-102

query I rowsort
SELECT DISTINCT NULLIF ( - 26, - + 65 ) AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT + SUM( DISTINCT + ( ( - 7 ) ) ) DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-1523
SELECT + SUM ( DISTINCT + ( ( - 7 ) ) ) / 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL MAX( DISTINCT + - 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL MAX ( DISTINCT + - 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + COUNT( * ) + + 19 * + COUNT( * ) + 57 - ( - 13 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-1525
SELECT + COUNT ( * ) + + 19 * + COUNT ( * ) + 57 - ( - 13 ) AS col0
----
90

query I rowsort
SELECT - 51 - + 43 + - - 29
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1527
SELECT + SUM( 86 ) DIV 67 * + + ( + + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-1527
SELECT + SUM ( 86 ) / 67 * + + ( + + 39 )
----
39

query I rowsort
SELECT DISTINCT 74 + + 41 * - - 5 * 74 * - 17
----
-257816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT ALL COALESCE ( + 28, - COUNT( * ), + COUNT( * ) DIV - 18 + - 47 )
----
28

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL COALESCE ( + 28, - COUNT ( * ), + COUNT ( * ) / - 18 + - 47 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT DISTINCT NULLIF ( 10, + - 12 ) + - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT NULLIF ( 10, + - 12 ) + - COUNT ( * ) AS col1
----
9

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

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL + 6 + COUNT ( * ) / - + 38
----
6

query I rowsort
SELECT ALL - NULLIF ( + - 79, + ( - ( - 69 ) ) ) AS col1
----
79

query I rowsort
SELECT + 69 * 45
----
3105

query I rowsort
SELECT ALL - 14 + - 17 + + 10 AS col2
----
-21

query I rowsort
SELECT 50 + - 54 AS col2
----
-4

query I rowsort
SELECT - 35 + - 71
----
-106

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1538
SELECT - + CAST( NULL AS DECIMAL ) * 43 + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT - + CAST ( NULL AS REAL ) * 43 + 6 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 27 col2
----
-27

query I rowsort
SELECT DISTINCT - - 95 * + 18 * - 83 - - - 93 AS col2
----
-142023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT ALL + 18 - - CASE - 14 WHEN 99 / + 45 * - - 72 - - 13 THEN NULL WHEN + NULLIF ( + - ( - + COALESCE ( + - 38, - 48 * + - 36 + + ( 68 ), 27 ) ), - 89 ) THEN + + CAST( + ( 61 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL + 18 - - CASE - 14 WHEN 99 / + 45 * - - 72 - - 13 THEN NULL WHEN + NULLIF ( + - ( - + COALESCE ( + - 38, - 48 * + - 36 + + ( 68 ), 27 ) ), - 89 ) THEN + + CAST ( + ( 61 ) AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1542
SELECT ALL CAST( NULL AS SIGNED ) - 0 + + 36 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL CAST ( NULL AS INTEGER ) - 0 + + 36 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - COUNT( * ) * 30 * + CASE - 80 WHEN COUNT( * ) THEN 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT - COUNT ( * ) * 30 * + CASE - 80 WHEN COUNT ( * ) THEN 26 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1544
SELECT 63 * 9 + 63 - + AVG ( DISTINCT + 37 ) + SUM( - CAST( NULL AS SIGNED ) ) * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1544
SELECT 63 * 9 + 63 - + AVG ( DISTINCT + 37 ) + SUM ( - CAST ( NULL AS INTEGER ) ) * 35 AS col0
----
NULL

query I rowsort
SELECT 58 * - 17 * 94 * - - 81 - + + ( + 69 )
----
-7507473

query III rowsort
SELECT 66 * ( + 85 ), 81 AS col1, - 40 * - 25 * - 0 * + 77 AS col2
----
5610
81
0

query I rowsort
SELECT 82 + 80
----
162

query I rowsort
SELECT 52 * - - 62 * - 78
----
-251472

query I rowsort
SELECT ALL + 38 * + ( - + COALESCE ( 21, - 85 + + ( - + 47 ) ) ) AS col0
----
-798

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT ALL 40 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL 40 / + 54
----
0

query I rowsort
SELECT 2 * + + 67 + 50 - 70
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1552
SELECT ALL - CAST( NULL AS SIGNED ), - 70 AS col2
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-1552
SELECT ALL - CAST ( NULL AS INTEGER ), - 70 AS col2
----
NULL
-70

query II rowsort
SELECT - 38 AS col0, + 16
----
-38
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT 68 + + + ( - - ( - 1 ) ) DIV 41 + 14 + + 26
----
108

skipif mysql # not compatible
query I rowsort label-1554
SELECT 68 + + + ( - - ( - 1 ) ) / 41 + 14 + + 26
----
108

query I rowsort
SELECT DISTINCT 98 + + 76
----
174

query I rowsort
SELECT ALL 33 + 26 col0
----
59

query I rowsort
SELECT DISTINCT - 76 + - 81 + + 56 + + 69 * 92 - - ( - + 54 ) - + 44 + 65
----
6214

query II rowsort
SELECT ALL 6 AS col2, 19 AS col2
----
6
19

query I rowsort
SELECT 3 + + ( 94 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1560
SELECT ALL - 65 * + 37 + - - CAST( + ( 99 ) AS SIGNED ) * COUNT( * ) * - 72 * - 56
----
396763

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL - 65 * + 37 + - - CAST ( + ( 99 ) AS INTEGER ) * COUNT ( * ) * - 72 * - 56
----
396763

query I rowsort
SELECT DISTINCT CASE + + 87 WHEN - 2 THEN - - 5 WHEN + - 55 THEN NULL WHEN - + 50 THEN - 85 + - + 59 ELSE NULL END + - 4 + + + 37 * 68 AS col2
----
NULL

query I rowsort
SELECT DISTINCT CASE 0 WHEN 69 THEN - 76 WHEN ( + 43 ) THEN + + 79 * + 83 * - 59 * - - 69 WHEN + 63 THEN 88 END col2
----
NULL

query II rowsort
SELECT ALL - 75, + 14 AS col0
----
-75
14

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

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

query I rowsort
SELECT 34 - - + 51
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT DISTINCT + MIN( + 95 ) - - CASE - 28 WHEN - + 30 THEN NULL WHEN - - 79 THEN + + 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT + MIN ( + 95 ) - - CASE - 28 WHEN - + 30 THEN NULL WHEN - - 79 THEN + + 52 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1568
SELECT 55 + + - MAX( ALL 17 ) + - CASE 97 WHEN - 37 + - 96 + + + 68 * + 19 THEN NULL WHEN 1 - - CAST( NULL AS SIGNED ) * ( CASE - COALESCE ( - + 63, - CASE - - 71 WHEN + 14 * - + 36 * + ( 53 ) + + + SUM( ALL - - CASE - 73 WHEN 80 * 84 THEN - 15 END ) * + + 58 THEN NULL ELSE - + 58 / + - 24 * + 83 / - - 56 END, - 70 * + COUNT( * ) ) WHEN + + 71 THEN + - 67 END ) * + 52 / ( - 45 ) * + 40 * + 68 + 7 * + COUNT( * ) / 14 THEN - 29 * - 79 END + COUNT( * ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT 55 + + - MAX ( ALL 17 ) + - CASE 97 WHEN - 37 + - 96 + + + 68 * + 19 THEN NULL WHEN 1 - - CAST ( NULL AS INTEGER ) * ( CASE - COALESCE ( - + 63, - CASE - - 71 WHEN + 14 * - + 36 * + ( 53 ) + + + SUM ( ALL - - CASE - 73 WHEN 80 * 84 THEN - 15 END ) * + + 58 THEN NULL ELSE - + 58 / + - 24 * + 83 / - - 56 END, - 70 * + COUNT ( * ) ) WHEN + + 71 THEN + - 67 END ) * + 52 / ( - 45 ) * + 40 * + 68 + 7 * + COUNT ( * ) / 14 THEN - 29 * - 79 END + COUNT ( * ) / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT ALL + 39 / + 47 * + CASE + + NULLIF ( NULLIF ( - - ( + 65 ), 81 / - COUNT( * ) + 51 + - 30 + 52 ), - + 22 ) WHEN 42 THEN + + ( + 84 ) * - 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL + 39 / + 47 * + CASE + + NULLIF ( NULLIF ( - - ( + 65 ), 81 / - COUNT ( * ) + 51 + - 30 + 52 ), - + 22 ) WHEN 42 THEN + + ( + 84 ) * - 27 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 25 - - + 18 col1
----
43

query I rowsort
SELECT 83 * - 20
----
-1660

query I rowsort
SELECT NULLIF ( + 25, - + 75 ) * + 63 AS col2
----
1575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1573
SELECT + CASE + COALESCE ( 27, + - 14 * - 98 ) WHEN - - 3 * 99 - - 59 * - 75 THEN - 33 END / + + 76 + CAST( NULL AS SIGNED ) - + NULLIF ( COALESCE ( + + 52, - - 35 ), - 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT + CASE + COALESCE ( 27, + - 14 * - 98 ) WHEN - - 3 * 99 - - 59 * - 75 THEN - 33 END / + + 76 + CAST ( NULL AS INTEGER ) - + NULLIF ( COALESCE ( + + 52, - - 35 ), - 90 ) AS col2
----
NULL

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

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

query I rowsort
SELECT 91 * - 76
----
-6916

onlyif mysql # aggregate syntax: 
query II rowsort label-1576
SELECT ALL + 7 + + + 50, + 68 * + COUNT( * ) AS col0
----
57
68

skipif mysql # not compatible
query II rowsort label-1576
SELECT ALL + 7 + + + 50, + 68 * + COUNT ( * ) AS col0
----
57
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1577
SELECT 68 DIV + - 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1577
SELECT 68 / + - 46 AS col1
----
-1

query I rowsort
SELECT 13 * + 12
----
156

query I rowsort
SELECT + 27 * - 19 col0
----
-513

onlyif mysql # aggregate syntax: 
query II rowsort label-1580
SELECT DISTINCT + COUNT( - 14 ), - 4 * 96 + + - 67 * 99 AS col0
----
1
-7017

skipif mysql # not compatible
query II rowsort label-1580
SELECT DISTINCT + COUNT ( - 14 ), - 4 * 96 + + - 67 * 99 AS col0
----
1
-7017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1581
SELECT ALL - 44 + + COALESCE ( - ( + - 87 ), - 67, - - 77 * NULLIF ( + 96, + + 93 ) * - 88 + + + 32 * + 9 ) + - 94 - - 40 DIV CAST( + 27 AS SIGNED ) * + CAST( - CASE - 93 WHEN + + 99 THEN ( - 19 ) * 75 * - 85 * + + 11 * CAST( + - 10 AS DECIMAL ) WHEN CAST( NULL AS SIGNED ) DIV + 10 THEN - 42 WHEN - - 48 * + 61 THEN + + COUNT( * ) ELSE 52 * COUNT( * ) END AS SIGNED ) DIV - + 41 + 13 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL - 44 + + COALESCE ( - ( + - 87 ), - 67, - - 77 * NULLIF ( + 96, + + 93 ) * - 88 + + + 32 * + 9 ) + - 94 - - 40 / CAST ( + 27 AS INTEGER ) * + CAST ( - CASE - 93 WHEN + + 99 THEN ( - 19 ) * 75 * - 85 * + + 11 * CAST ( + - 10 AS REAL ) WHEN CAST ( NULL AS INTEGER ) / + 10 THEN - 42 WHEN - - 48 * + 61 THEN + + COUNT ( * ) ELSE 52 * COUNT ( * ) END AS INTEGER ) / - + 41 + 13 AS col2
----
-37

query I rowsort
SELECT DISTINCT + 89 + - ( 54 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) * + 7
----
8

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) * + 7
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1584
SELECT DISTINCT MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1585
SELECT ALL - 62 DIV - + 91 AS col0, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-1585
SELECT ALL - 62 / - + 91 AS col0, + COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1586
SELECT - 95 + - - 41 AS col0, + CAST( NULL AS SIGNED )
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-1586
SELECT - 95 + - - 41 AS col0, + CAST ( NULL AS INTEGER )
----
-54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT - + SUM( + + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-1587
SELECT - + SUM ( + + 45 )
----
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL + 54 * - + 63 + - 1 * + - COUNT( DISTINCT + - 11 )
----
-3401

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL + 54 * - + 63 + - 1 * + - COUNT ( DISTINCT + - 11 )
----
-3401

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT - COUNT( - 80 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1590
SELECT - COUNT ( - 80 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + + 86 * + + 17
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL + - 61 * + ( + + COALESCE ( - + COALESCE ( CASE 70 WHEN + - NULLIF ( - - NULLIF ( 86, 54 ), + - 5 ) THEN - - COUNT( * ) * + CASE + 33 WHEN + 27 + - 32 THEN NULL WHEN 80 + - COUNT( * ) * 14 THEN - 87 END END, COUNT( * ) ), - 37 + - - 36, + 22 ) ) + + 36 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL + - 61 * + ( + + COALESCE ( - + COALESCE ( CASE 70 WHEN + - NULLIF ( - - NULLIF ( 86, 54 ), + - 5 ) THEN - - COUNT ( * ) * + CASE + 33 WHEN + 27 + - 32 THEN NULL WHEN 80 + - COUNT ( * ) * 14 THEN - 87 END END, COUNT ( * ) ), - 37 + - - 36, + 22 ) ) + + 36 AS col1
----
97

query I rowsort
SELECT + - 24 + - - 39 * + - 60
----
-2364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1594
SELECT DISTINCT + 60 * + CASE - + 28 WHEN + CAST( NULL AS SIGNED ) - COUNT( * ) THEN NULL WHEN + 21 - + 60 * + CASE - 40 WHEN - 8 THEN CAST( NULL AS SIGNED ) WHEN 24 - 20 + COUNT( * ) THEN - - 13 WHEN + 49 + 23 * - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END THEN NULL ELSE + - 14 END AS col0, - 78
----
-840
-78

skipif mysql # not compatible
query II rowsort label-1594
SELECT DISTINCT + 60 * + CASE - + 28 WHEN + CAST ( NULL AS INTEGER ) - COUNT ( * ) THEN NULL WHEN + 21 - + 60 * + CASE - 40 WHEN - 8 THEN CAST ( NULL AS INTEGER ) WHEN 24 - 20 + COUNT ( * ) THEN - - 13 WHEN + 49 + 23 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END THEN NULL ELSE + - 14 END AS col0, - 78
----
-840
-78

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

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

query I rowsort
SELECT + 80 * - 9 + 39 col2
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT - - 21 + ( + 77 ) + - 63 - + 0 * + + SUM( DISTINCT 68 )
----
35

skipif mysql # not compatible
query I rowsort label-1597
SELECT - - 21 + ( + 77 ) + - 63 - + 0 * + + SUM ( DISTINCT 68 )
----
35

query I rowsort
SELECT + + 47 + - - 15 * - 84 AS col2
----
-1213

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

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

query I rowsort
SELECT + + 97 * - 6
----
-582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1601
SELECT ALL 10 * 30 * + + NULLIF ( + - CAST( NULL AS SIGNED ), ( 60 ) ) + NULLIF ( 81, + - 27 * 19 * - COUNT( * ) * - 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL 10 * 30 * + + NULLIF ( + - CAST ( NULL AS INTEGER ), ( 60 ) ) + NULLIF ( 81, + - 27 * 19 * - COUNT ( * ) * - 40 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1602
SELECT ALL 94 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL 94 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1603
SELECT + 5 + + + SUM( DISTINCT + 79 ), 12 + 79 + + 73 * - 23 AS col2
----
84
-1588

skipif mysql # not compatible
query II rowsort label-1603
SELECT + 5 + + + SUM ( DISTINCT + 79 ), 12 + 79 + + 73 * - 23 AS col2
----
84
-1588

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT 78 * + 61 * 73 * - 41 * 41 + CASE + COUNT( * ) WHEN 15 THEN - 15 * + 9 - - 16 * 20 * - + COUNT( * ) WHEN SUM( - + 45 ) + - - 61 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT 78 * + 61 * 73 * - 41 * 41 + CASE + COUNT ( * ) WHEN 15 THEN - 15 * + 9 - - 16 * 20 * - + COUNT ( * ) WHEN SUM ( - + 45 ) + - - 61 THEN NULL END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + + 66 AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT + COALESCE ( ( - 89 ), - - 42, 80 + - 37 DIV 15 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-1606
SELECT + COALESCE ( ( - 89 ), - - 42, 80 + - 37 / 15 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1607
SELECT CAST( NULL AS SIGNED ) * CAST( 97 AS SIGNED ) * + 33 + + + 1 + - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1607
SELECT CAST ( NULL AS INTEGER ) * CAST ( 97 AS INTEGER ) * + 33 + + + 1 + - 13 AS col0
----
NULL

query II rowsort
SELECT ALL + 32 col0, + 51 AS col0
----
32
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + ( + - 60 ) * + NULLIF ( - - COUNT( - 41 ), + COALESCE ( + 9, - 76, + 53 ) * + ( - 12 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-1609
SELECT + ( + - 60 ) * + NULLIF ( - - COUNT ( - 41 ), + COALESCE ( + 9, - 76, + 53 ) * + ( - 12 ) )
----
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-1610
SELECT ALL 97 * - + 33 + - 46 + + - 1 * - 67 + + 35 DIV - - 84 * + 79, 32 AS col1
----
-3180
32

skipif mysql # not compatible
query II rowsort label-1610
SELECT ALL 97 * - + 33 + - 46 + + - 1 * - 67 + + 35 / - - 84 * + 79, 32 AS col1
----
-3180
32

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

skipif mysql # not compatible
query I rowsort label-1611
SELECT + ( + - MIN ( + - 37 ) )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1612
SELECT ALL - 69 * + SUM( DISTINCT + ( - + 16 ) ) + + 83 - + 50 + CAST( NULL AS SIGNED ) * 62 * - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - 69 * + SUM ( DISTINCT + ( - + 16 ) ) + + 83 - + 50 + CAST ( NULL AS INTEGER ) * 62 * - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT + 21 * - 85 * - - 54 + + 9 + - 37 + COUNT( * ) + - 92 AS col0
----
-96509

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 21 * - 85 * - - 54 + + 9 + - 37 + COUNT ( * ) + - 92 AS col0
----
-96509

query I rowsort
SELECT - 92 + 7 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT ALL + COUNT( ALL - 92 ) * 48 - - - SUM( DISTINCT + 56 ) - + 29 * - + MAX( - 36 ) * + 7 + 77 AS col1
----
-7239

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + COUNT ( ALL - 92 ) * 48 - - - SUM ( DISTINCT + 56 ) - + 29 * - + MAX ( - 36 ) * + 7 + 77 AS col1
----
-7239

query I rowsort
SELECT + 80 * 28 AS col0
----
2240

query I rowsort
SELECT - 85 * NULLIF ( - 93, + - 50 ) AS col1
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - + SUM( ALL - + 37 ) col2
----
37

skipif mysql # not compatible
query I rowsort label-1618
SELECT - + SUM ( ALL - + 37 ) col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT - - NULLIF ( + SUM( DISTINCT + + 71 ), - + 8 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-1619
SELECT - - NULLIF ( + SUM ( DISTINCT + + 71 ), - + 8 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1620
SELECT - + 2 AS col1, + 61 * + 5 + - - COUNT( * )
----
-2
306

skipif mysql # not compatible
query II rowsort label-1620
SELECT - + 2 AS col1, + 61 * + 5 + - - COUNT ( * )
----
-2
306

query I rowsort
SELECT ALL - 83 * + 60 col0
----
-4980

query I rowsort
SELECT - 2 * - - 89 col0
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT DISTINCT + + ( 62 ) * - COUNT( * ) - 95 - 81 + + - 31 - + 32 + + - 30 * - - 78 AS col0
----
-2641

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT + + ( 62 ) * - COUNT ( * ) - 95 - 81 + + - 31 - + 32 + + - 30 * - - 78 AS col0
----
-2641

query I rowsort
SELECT ALL COALESCE ( + 91, + + 4 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT ALL - 73 DIV 74 + + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL - 73 / 74 + + ( + COUNT ( * ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1626
SELECT - + 67 DIV + ( 76 ) * + 83 * - 67 - + 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1626
SELECT - + 67 / + ( 76 ) * + 83 * - 67 - + 92 AS col2
----
-92

query I rowsort
SELECT - + 50 * - 56
----
2800

query I rowsort
SELECT + 87 + + 82
----
169

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT ALL CASE - - 23 WHEN + 82 THEN ( - - COUNT( 79 ) ) * + 72 ELSE + 90 * + COUNT( ALL + 77 ) END + + 18
----
108

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL CASE - - 23 WHEN + 82 THEN ( - - COUNT ( 79 ) ) * + 72 ELSE + 90 * + COUNT ( ALL + 77 ) END + + 18
----
108

query I rowsort
SELECT ALL - + 16 * - - 10 col0
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1632
SELECT ALL 17 + + + CAST( - 17 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL 17 + + + CAST ( - 17 AS INTEGER )
----
0

query II rowsort
SELECT ALL 11, + 57 * - + 97 AS col0
----
11
-5529

query I rowsort
SELECT + 82 * + 62
----
5084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1635
SELECT ALL 74 DIV + 29 + - SUM( ALL - 92 ) + + + 43 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL 74 / + 29 + - SUM ( ALL - 92 ) + + + 43 AS col1
----
137

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1637
SELECT DISTINCT 49 DIV - 33 + + COUNT( + 17 ) + - CAST( + 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT 49 / - 33 + + COUNT ( + 17 ) + - CAST ( + 70 AS INTEGER )
----
-70

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

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

query I rowsort
SELECT + 52 * - 72 AS col2
----
-3744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1640
SELECT + COUNT( * ) DIV + MAX( 40 ) * - + 34 - + - NULLIF ( + 43, - - 72 + ( - 83 ) ) DIV - - 65 * 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1640
SELECT + COUNT ( * ) / + MAX ( 40 ) * - + 34 - + - NULLIF ( + 43, - - 72 + ( - 83 ) ) / - - 65 * 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL 10 + MIN( + 78 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL 10 + MIN ( + 78 ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1642
SELECT 97 / - CASE - COUNT( * ) WHEN NULLIF ( + 37, - + 88 ) * - + 93 * + 7 + 98 + 43 * - AVG ( - 58 ) THEN + - 10 WHEN + COUNT( * ) - - 79 THEN - CAST( - + ( - - 47 ) AS DECIMAL ) - + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT 97 / - CASE - COUNT ( * ) WHEN NULLIF ( + 37, - + 88 ) * - + 93 * + 7 + 98 + 43 * - AVG ( - 58 ) THEN + - 10 WHEN + COUNT ( * ) - - 79 THEN - CAST ( - + ( - - 47 ) AS REAL ) - + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT ALL 22 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL 22 / + 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT ALL - 35 AS col1, COUNT( * ) * + 52 - 44 col0
----
-35
8

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL - 35 AS col1, COUNT ( * ) * + 52 - 44 col0
----
-35
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT DISTINCT 39 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT 39 / + 85
----
0

query II rowsort
SELECT ALL ( + 52 ) * 43 + + 30 AS col2, 93 * + 10 AS col2
----
2266
930

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT ALL - 80 AS col0, MIN( + - 84 ) AS col0
----
-80
-84

skipif mysql # not compatible
query II rowsort label-1647
SELECT ALL - 80 AS col0, MIN ( + - 84 ) AS col0
----
-80
-84

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

skipif mysql # not compatible
query I rowsort label-1648
SELECT 86 + + - COUNT ( * ) + - + 97 AS col1
----
-12

query II rowsort
SELECT 95 AS col0, - 54 * + 34
----
95
-1836

query I rowsort
SELECT 96 + - + 0 col0
----
96

query I rowsort
SELECT 31 - + 58
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT - 98 * + 31 * + COUNT( * ) / + - 10 + + 13 * + CASE - 17 WHEN 53 THEN - + COUNT( * ) * - 71 WHEN 25 * + - 33 + - + CAST( + 19 AS SIGNED ) THEN NULL WHEN - 78 * + 88 + - 40 * - 38 THEN 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT - 98 * + 31 * + COUNT ( * ) / + - 10 + + 13 * + CASE - 17 WHEN 53 THEN - + COUNT ( * ) * - 71 WHEN 25 * + - 33 + - + CAST ( + 19 AS INTEGER ) THEN NULL WHEN - 78 * + 88 + - 40 * - 38 THEN 10 ELSE NULL END
----
NULL

query II rowsort
SELECT 48, + 9 AS col1
----
48
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT ALL 60 * - 7 - + 16 DIV - 74 AS col2
----
-420

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL 60 * - 7 - + 16 / - 74 AS col2
----
-420

query II rowsort
SELECT 63 * - + 77 + 31 - 30 AS col1, 29
----
-4850
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL + 26 * - SUM( ALL 70 )
----
-1820

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL + 26 * - SUM ( ALL 70 )
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1657
SELECT ALL - - COALESCE ( + CAST( NULL AS SIGNED ), + CASE + + 30 WHEN + + 5 * + - 34 + 80 + + 48 + - 7 - - - COUNT( ALL + 99 ) * 1 * + 94 - - - 73 + 87 + + 70 + - 9 * 73 * - ( 86 ) THEN + 45 * + + 35 WHEN NULLIF ( - 27, 9 ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - - COALESCE ( + CAST ( NULL AS INTEGER ), + CASE + + 30 WHEN + + 5 * + - 34 + 80 + + 48 + - 7 - - - COUNT ( ALL + 99 ) * 1 * + 94 - - - 73 + 87 + + 70 + - 9 * 73 * - ( 86 ) THEN + 45 * + + 35 WHEN NULLIF ( - 27, 9 ) THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT NULLIF ( + - CAST( + 86 AS SIGNED ), + + ( + 77 ) ) + - ( - COUNT( * ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1658
SELECT NULLIF ( + - CAST ( + 86 AS INTEGER ), + + ( + 77 ) ) + - ( - COUNT ( * ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT ALL - - CASE 21 WHEN 88 * + MAX( 29 ) THEN NULL ELSE - 16 DIV + 84 END * + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - - CASE 21 WHEN 88 * + MAX ( 29 ) THEN NULL ELSE - 16 / + 84 END * + 65 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1660
SELECT + ( - CAST( NULL AS SIGNED ) ) * - - COALESCE ( - 34, - 4 * + COUNT( * ) * - + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - - COALESCE ( - 34, - 4 * + COUNT ( * ) * - + 30 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1661
SELECT 89 + + ( 29 ) DIV + 89, 2 + + 26 DIV + 18 + ( + 82 ) + - 87 AS col0
----
89
-2

skipif mysql # not compatible
query II rowsort label-1661
SELECT 89 + + ( 29 ) / + 89, 2 + + 26 / + 18 + ( + 82 ) + - 87 AS col0
----
89
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1662
SELECT COUNT( * ) AS col2, + 30 + - 47 + - 19 + + 42 AS col0
----
1
6

skipif mysql # not compatible
query II rowsort label-1662
SELECT COUNT ( * ) AS col2, + 30 + - 47 + - 19 + + 42 AS col0
----
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT + 93 + COALESCE ( + 96, + - 84 * + COUNT( * ) ) AS col1
----
189

skipif mysql # not compatible
query I rowsort label-1663
SELECT + 93 + COALESCE ( + 96, + - 84 * + COUNT ( * ) ) AS col1
----
189

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

skipif mysql # not compatible
query II rowsort label-1664
SELECT - 78 AS col0, + COUNT ( * ) / COUNT ( * ) col0
----
-78
1

query I rowsort
SELECT - 2 * - 32 + 91 col2
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT 9 * + 57 - - COUNT( DISTINCT + 56 ) AS col1
----
514

skipif mysql # not compatible
query I rowsort label-1666
SELECT 9 * + 57 - - COUNT ( DISTINCT + 56 ) AS col1
----
514

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

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

query I rowsort
SELECT ALL + + 81 + - 68 + + + 44 AS col0
----
57

query II rowsort
SELECT - 1 AS col0, + 57 AS col0
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT 89 * 55 + + 53 * + MAX( DISTINCT + 38 ) + - 98
----
6811

skipif mysql # not compatible
query I rowsort label-1670
SELECT 89 * 55 + + 53 * + MAX ( DISTINCT + 38 ) + - 98
----
6811

query I rowsort
SELECT - 42 + 69 AS col0
----
27

query I rowsort
SELECT DISTINCT + + 52 + - 87 * - 50 AS col2
----
4402

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL - + 89 + CASE + CASE 91 WHEN + 64 / + + 90 - + COALESCE ( + 66, - ( - - AVG ( - + 13 ) ) / + + SUM( 84 ) / 23 + COUNT( + - 43 ) ) THEN COUNT( * ) / - + 54 + 33 WHEN COUNT( * ) * - 62 * - NULLIF ( + 44, - COUNT( * ) ) + + - 19 / - - COUNT( - + 11 ) THEN NULL ELSE NULL END WHEN 22 + - 13 THEN - 78 * 75 + + + 97 - + + 19 / + 13 END + - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - + 89 + CASE + CASE 91 WHEN + 64 / + + 90 - + COALESCE ( + 66, - ( - - AVG ( - + 13 ) ) / + + SUM ( 84 ) / 23 + COUNT ( + - 43 ) ) THEN COUNT ( * ) / - + 54 + 33 WHEN COUNT ( * ) * - 62 * - NULLIF ( + 44, - COUNT ( * ) ) + + - 19 / - - COUNT ( - + 11 ) THEN NULL ELSE NULL END WHEN 22 + - 13 THEN - 78 * 75 + + + 97 - + + 19 / + 13 END + - 26 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1675
SELECT 52 + - CAST( - - 75 AS SIGNED ) - 17 * - COUNT( * ) col1, CASE - COUNT( * ) WHEN 15 THEN 69 ELSE COUNT( * ) * + - 71 END AS col1
----
-6
-71

skipif mysql # not compatible
query II rowsort label-1675
SELECT 52 + - CAST ( - - 75 AS INTEGER ) - 17 * - COUNT ( * ) col1, CASE - COUNT ( * ) WHEN 15 THEN 69 ELSE COUNT ( * ) * + - 71 END AS col1
----
-6
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT DISTINCT + 65 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT + 65 / - 31
----
-2

query I rowsort
SELECT 97 - + 87 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT 71 + COUNT( * ) + + CASE + 19 WHEN + COUNT( * ) * - + 1 * 12 + 11 + 77 THEN ( 84 ) WHEN + COUNT( * ) * - 78 + - 44 THEN 73 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT 71 + COUNT ( * ) + + CASE + 19 WHEN + COUNT ( * ) * - + 1 * 12 + 11 + 77 THEN ( 84 ) WHEN + COUNT ( * ) * - 78 + - 44 THEN 73 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1680
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) + - 20, + 10 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-1680
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) + - 20, + 10 AS col0
----
NULL
10

query I rowsort
SELECT ALL - NULLIF ( - 5, - 69 * - 4 )
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1682
SELECT + 76 DIV + + 70 + CAST( - 90 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-1682
SELECT + 76 / + + 70 + CAST ( - 90 AS INTEGER )
----
-89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT 12 * SUM( ALL - + 97 ) * + 91 AS col1
----
-105924

skipif mysql # not compatible
query I rowsort label-1684
SELECT 12 * SUM ( ALL - + 97 ) * + 91 AS col1
----
-105924

query I rowsort
SELECT DISTINCT - 58 - - 52 + + + 3 * - - 81 + + 99 col1
----
336

query II rowsort
SELECT 25 * 11 AS col0, 99
----
275
99

query I rowsort
SELECT 76 * 7 + + 68
----
600

query I rowsort
SELECT 2 * - 42
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT - 38 DIV 34 + 44 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-1689
SELECT - 38 / 34 + 44 AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1690
SELECT DISTINCT 32 * - COUNT( * ) DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT 32 * - COUNT ( * ) / - 92
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1691
SELECT DISTINCT + 22 DIV - + COUNT( * ), 68 AS col1
----
-22
68

skipif mysql # not compatible
query II rowsort label-1691
SELECT DISTINCT + 22 / - + COUNT ( * ), 68 AS col1
----
-22
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1692
SELECT ALL - COALESCE ( + 21, 0 - - 29 ) * + 10 * + + 91 + - 61 * + 2 AS col1, CAST( 94 AS SIGNED ) AS col1
----
-19232
94

skipif mysql # not compatible
query II rowsort label-1692
SELECT ALL - COALESCE ( + 21, 0 - - 29 ) * + 10 * + + 91 + - 61 * + 2 AS col1, CAST ( 94 AS INTEGER ) AS col1
----
-19232
94

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT DISTINCT 21 + + 80 DIV + - 65 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT 21 + + 80 / + - 65 AS col1
----
20

query I rowsort
SELECT 3 + - - 12 * 10 - - + 44 - + - ( - 99 )
----
68

query I rowsort
SELECT ALL 5 + - + 25 * + + 66 col2
----
-1645

query I rowsort
SELECT ALL + 29 + + ( 93 ) col1
----
122

query I rowsort
SELECT ALL - 54 + + + 69 AS col1
----
15

query I rowsort
SELECT ALL 33 * + 21 * + - 83 AS col2
----
-57519

query I rowsort
SELECT 97 + + 77 AS col2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT - 52 + 63 + COUNT( * ) * + 18 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1702
SELECT - 52 + 63 + COUNT ( * ) * + 18 AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1703
SELECT 96 AS col0, + 28 - - 67 * COALESCE ( + SUM( DISTINCT - + 25 ), + 22 ) + + 65
----
96
-1582

skipif mysql # not compatible
query II rowsort label-1703
SELECT 96 AS col0, + 28 - - 67 * COALESCE ( + SUM ( DISTINCT - + 25 ), + 22 ) + + 65
----
96
-1582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT - ( - ( 80 ) ) DIV + ( + + 99 ) + 59 * - COUNT( * ) * 74
----
-4366

skipif mysql # not compatible
query I rowsort label-1704
SELECT - ( - ( 80 ) ) / + ( + + 99 ) + 59 * - COUNT ( * ) * 74
----
-4366

query I rowsort
SELECT DISTINCT 46 * - - 38 AS col0
----
1748

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT DISTINCT 64 * - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT 64 * - COUNT ( * )
----
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT + MIN( + 44 ) - - NULLIF ( 94, - 65 ) * + COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-1709
SELECT + MIN ( + 44 ) - - NULLIF ( 94, - 65 ) * + COUNT ( * )
----
138

query I rowsort
SELECT COALESCE ( + 41, + 30 * - 73 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ALL + MAX( ALL - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL + MAX ( ALL - 24 )
----
-24

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

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

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

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

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

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

query I rowsort
SELECT ALL 21 * 89 AS col2
----
1869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT - + 25 * + 76 + - ( + 78 ) + + 97 - + 87 - - + 62 - 70 * - 86 + + - NULLIF ( + 4, - CASE 65 WHEN - COUNT( * ) * + 18 - + MAX( DISTINCT - + 88 ) THEN ( + 54 ) ELSE - 52 END * + + 14 - CAST( + 88 AS SIGNED ) + + 62 ) - - 43 + - + CASE + - 99 WHEN + CASE - + ( + 57 ) WHEN - 5 THEN 72 / + - 31 / - + COUNT( * ) ELSE ( - + COUNT( - + 90 ) ) * ( - - 28 ) END + - - COUNT( * ) - - 98 THEN + SUM( ALL + - 46 ) END * 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - + 25 * + 76 + - ( + 78 ) + + 97 - + 87 - - + 62 - 70 * - 86 + + - NULLIF ( + 4, - CASE 65 WHEN - COUNT ( * ) * + 18 - + MAX ( DISTINCT - + 88 ) THEN ( + 54 ) ELSE - 52 END * + + 14 - CAST ( + 88 AS INTEGER ) + + 62 ) - - 43 + - + CASE + - 99 WHEN + CASE - + ( + 57 ) WHEN - 5 THEN 72 / + - 31 / - + COUNT ( * ) ELSE ( - + COUNT ( - + 90 ) ) * ( - - 28 ) END + - - COUNT ( * ) - - 98 THEN + SUM ( ALL + - 46 ) END * 62 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1717
SELECT DISTINCT + + CASE - 11 WHEN 26 - + 37 + - 69 * - 26 * + CASE + CAST( NULL AS SIGNED ) WHEN - 67 * - 13 / - COUNT( * ) THEN NULL WHEN + + 34 + - + 44 THEN NULL WHEN 65 - - + ( 19 ) / + 86 THEN + 57 END + + ( + - COUNT( * ) ) / - 32 * + 74 + - 60 THEN NULL ELSE 95 END * + 75
----
7125

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT + + CASE - 11 WHEN 26 - + 37 + - 69 * - 26 * + CASE + CAST ( NULL AS INTEGER ) WHEN - 67 * - 13 / - COUNT ( * ) THEN NULL WHEN + + 34 + - + 44 THEN NULL WHEN 65 - - + ( 19 ) / + 86 THEN + 57 END + + ( + - COUNT ( * ) ) / - 32 * + 74 + - 60 THEN NULL ELSE 95 END * + 75
----
7125

query I rowsort
SELECT + 8 * - - 85 AS col2
----
680

query I rowsort
SELECT - 48 + - ( 45 ) + - - 34 + - + ( 69 ) + - 0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL - + 61 * ( 71 ) + - COUNT( * ) * - + 46 AS col2
----
-4285

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - + 61 * ( 71 ) + - COUNT ( * ) * - + 46 AS col2
----
-4285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1721
SELECT + NULLIF ( - 55, - 72 + - + 46 ) * CAST( NULL AS SIGNED ) + + - CAST( 45 AS SIGNED ) * - 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT + NULLIF ( - 55, - 72 + - + 46 ) * CAST ( NULL AS INTEGER ) + + - CAST ( 45 AS INTEGER ) * - 23 col0
----
NULL

query I rowsort
SELECT + + 74 - + 58
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT + - 99 * - 65 * + COUNT( * ) col0
----
6435

skipif mysql # not compatible
query I rowsort label-1723
SELECT + - 99 * - 65 * + COUNT ( * ) col0
----
6435

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT + MIN( DISTINCT + - 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-1724
SELECT + MIN ( DISTINCT + - 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1725
SELECT DISTINCT + + 42 * + + CAST( NULL AS SIGNED ) + MAX( + + CASE - 43 WHEN - 14 THEN NULL ELSE + 68 END ) * - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT + + 42 * + + CAST ( NULL AS INTEGER ) + MAX ( + + CASE - 43 WHEN - 14 THEN NULL ELSE + 68 END ) * - - 59
----
NULL

query II rowsort
SELECT - 97 AS col0, 38 AS col0
----
-97
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT DISTINCT 10 * + + 61 DIV + 74 DIV ( + 27 ) * + 86 + 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT 10 * + + 61 / + 74 / ( + 27 ) * + 86 + 53 AS col0
----
53

query I rowsort
SELECT ALL 94 + - 18 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT - 77 * + - COUNT( - + ( + 47 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1729
SELECT - 77 * + - COUNT ( - + ( + 47 ) ) AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT + + MIN( CAST( NULL AS SIGNED ) ) * 98 * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT + + MIN ( CAST ( NULL AS INTEGER ) ) * 98 * + 54 AS col1
----
NULL

query I rowsort
SELECT ALL - 67 * 56 + + 59 AS col1
----
-3693

query I rowsort
SELECT DISTINCT 21 * 25
----
525

query II rowsort
SELECT + 91 * + 68 + - + 13 AS col2, - 78 AS col0
----
6175
-78

query I rowsort
SELECT ALL 58 - + ( - - 63 )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1735
SELECT ALL 5 * - - 23, COUNT( * ) + COUNT( * ) + + 99 AS col2
----
115
101

skipif mysql # not compatible
query II rowsort label-1735
SELECT ALL 5 * - - 23, COUNT ( * ) + COUNT ( * ) + + 99 AS col2
----
115
101

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT CASE + - COUNT( * ) WHEN 76 THEN - 58 WHEN + - 95 * + 13 + + 17 + + - 15 + - 69 THEN NULL ELSE + - 71 END
----
-71

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT CASE + - COUNT ( * ) WHEN 76 THEN - 58 WHEN + - 95 * + 13 + + 17 + + - 15 + - 69 THEN NULL ELSE + - 71 END
----
-71

query I rowsort
SELECT - 87 - + 9 * + 30 col0
----
-357

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT - 63 - + 69 - + COUNT( * ) - - 53 * + 1 + + 40
----
-40

skipif mysql # not compatible
query I rowsort label-1740
SELECT - 63 - + 69 - + COUNT ( * ) - - 53 * + 1 + + 40
----
-40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1742
SELECT + 33 + NULLIF ( + 72, + 65 ) DIV + 56 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1742
SELECT + 33 + NULLIF ( + 72, + 65 ) / + 56 AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT ALL + COUNT( * ) * 62 DIV ( 76 )
----
0

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL + COUNT ( * ) * 62 / ( 76 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ALL COALESCE ( - 40, - + 83 + - COUNT( * ) + - 28 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL COALESCE ( - 40, - + 83 + - COUNT ( * ) + - 28 ) AS col1
----
-40

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

skipif mysql # not compatible
query I rowsort label-1745
SELECT 13 * - 60 + - COUNT ( * ) AS col2
----
-781

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT ALL 23 DIV 63 DIV + 60 + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL 23 / 63 / + 60 + - 4
----
-4

query I rowsort
SELECT - 79 + 24 + - 70 + + 93 * + 11 * + 1 col0
----
898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1748
SELECT CAST( + NULLIF ( - 16, 98 ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-1748
SELECT CAST ( + NULLIF ( - 16, 98 ) AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1749
SELECT ALL - ( + SUM( 1 ) ) DIV - + 82 + 50 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL - ( + SUM ( 1 ) ) / - + 82 + 50 AS col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1750
SELECT - + NULLIF ( + 14, 26 ) DIV - + 41 col1
----
0

skipif mysql # not compatible
query I rowsort label-1750
SELECT - + NULLIF ( + 14, 26 ) / - + 41 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1751
SELECT - 95 DIV + 50 + - 36 + COUNT( * ) + ( + + 70 ) * - + COUNT( * ) + - 24 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-1751
SELECT - 95 / + 50 + - 36 + COUNT ( * ) + ( + + 70 ) * - + COUNT ( * ) + - 24 AS col0
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT ALL + 37 DIV + + 57 + + + 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL + 37 / + + 57 + + + 77 AS col0
----
77

query II rowsort
SELECT ALL + + 74 * - - 33 AS col0, 24 * - ( - 91 )
----
2442
2184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1754
SELECT - + 82 * - + CAST( NULL AS SIGNED ) col1, - 8 + + 1 * - CASE - + 42 WHEN 17 / 68 THEN + + CASE + + 5 WHEN - ( + 66 ) + + 41 + + + 26 THEN + - CASE - + 11 WHEN 64 THEN MIN( ALL - - 71 ) WHEN - 17 * - COUNT( * ) + AVG ( DISTINCT + 73 ) - - 3 THEN NULL ELSE NULL END ELSE - + 30 END WHEN - COALESCE ( - ( + COUNT( * ) ), + + 86, + 57 ) THEN NULL END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1754
SELECT - + 82 * - + CAST ( NULL AS INTEGER ) col1, - 8 + + 1 * - CASE - + 42 WHEN 17 / 68 THEN + + CASE + + 5 WHEN - ( + 66 ) + + 41 + + + 26 THEN + - CASE - + 11 WHEN 64 THEN MIN ( ALL - - 71 ) WHEN - 17 * - COUNT ( * ) + AVG ( DISTINCT + 73 ) - - 3 THEN NULL ELSE NULL END ELSE - + 30 END WHEN - COALESCE ( - ( + COUNT ( * ) ), + + 86, + 57 ) THEN NULL END AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1755
SELECT + MAX( + 32 ) AS col1, 68
----
32
68

skipif mysql # not compatible
query II rowsort label-1755
SELECT + MAX ( + 32 ) AS col1, 68
----
32
68

query I rowsort
SELECT ( 4 ) * - 57
----
-228

query I rowsort
SELECT + 45 * - 78 AS col0
----
-3510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1758
SELECT - 54 + 87 - COUNT( * ) * + 21 DIV + 31
----
33

skipif mysql # not compatible
query I rowsort label-1758
SELECT - 54 + 87 - COUNT ( * ) * + 21 / + 31
----
33

query I rowsort
SELECT 90 * 42 AS col1
----
3780

query I rowsort
SELECT ALL 11 * - 61
----
-671

query I rowsort
SELECT DISTINCT 46 * - + 24 col0
----
-1104

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT 80 DIV + 75 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1762
SELECT 80 / + 75 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL 75 * - COALESCE ( + 38, + MAX( DISTINCT + - 61 ), - 44 )
----
-2850

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL 75 * - COALESCE ( + 38, + MAX ( DISTINCT + - 61 ), - 44 )
----
-2850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1764
SELECT - 72 AS col1, 90 * + CAST( NULL AS SIGNED ) * 30
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-1764
SELECT - 72 AS col1, 90 * + CAST ( NULL AS INTEGER ) * 30
----
-72
NULL

query I rowsort
SELECT DISTINCT 10 * + + 54 AS col0
----
540

onlyif mysql # DIV for integer division: 
query II rowsort label-1766
SELECT 6 DIV 79 * + + 47, - 43 AS col0
----
0
-43

skipif mysql # not compatible
query II rowsort label-1766
SELECT 6 / 79 * + + 47, - 43 AS col0
----
0
-43

query I rowsort
SELECT 41 + 46
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1768
SELECT NULLIF ( - 83, - + CASE + 55 WHEN - + 21 + - ( - 5 ) / + - 10 THEN + + CAST( 68 AS SIGNED ) WHEN MAX( DISTINCT - - 24 ) THEN NULL END + - + COUNT( * ) * + 87 * + + 60 ) * - 66 - - 28 col0
----
5506

skipif mysql # not compatible
query I rowsort label-1768
SELECT NULLIF ( - 83, - + CASE + 55 WHEN - + 21 + - ( - 5 ) / + - 10 THEN + + CAST ( 68 AS INTEGER ) WHEN MAX ( DISTINCT - - 24 ) THEN NULL END + - + COUNT ( * ) * + 87 * + + 60 ) * - 66 - - 28 col0
----
5506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1769
SELECT ALL MIN( - 15 ) + + 74 DIV + - 60 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL MIN ( - 15 ) + + 74 / + - 60 AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1770
SELECT COALESCE ( - 39, + SUM( ALL 95 ) * + 63 - - 27, + + 48 ) - + 84 + + COUNT( * ) + + + CAST( NULL AS SIGNED ) / - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1770
SELECT COALESCE ( - 39, + SUM ( ALL 95 ) * + 63 - - 27, + + 48 ) - + 84 + + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) / - 41
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1771
SELECT COUNT( * ) - - SUM( ALL 37 ) col1, 56 * 45 - - 30 * - 44 * - 3 * + COUNT( * ) AS col0
----
38
6480

skipif mysql # not compatible
query II rowsort label-1771
SELECT COUNT ( * ) - - SUM ( ALL 37 ) col1, 56 * 45 - - 30 * - 44 * - 3 * + COUNT ( * ) AS col0
----
38
6480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1772
SELECT ALL 38 + - COUNT( * ) DIV - COUNT( ALL 3 * + 40 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL 38 + - COUNT ( * ) / - COUNT ( ALL 3 * + 40 ) AS col1
----
39

query I rowsort
SELECT 31 * 90
----
2790

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

query I rowsort
SELECT ALL 55 * - 69
----
-3795

query I rowsort
SELECT ALL 2 + 83 AS col0
----
85

query I rowsort
SELECT ( + ( - 21 ) ) - 39 * 2 AS col1
----
-99

query I rowsort
SELECT DISTINCT 54 * - 54
----
-2916

query I rowsort
SELECT DISTINCT + 74 - - 25
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ( - 82 ) + 53 * + NULLIF ( + MIN( DISTINCT 51 ) * 44, 53 )
----
118850

skipif mysql # not compatible
query I rowsort label-1781
SELECT ( - 82 ) + 53 * + NULLIF ( + MIN ( DISTINCT 51 ) * 44, 53 )
----
118850

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT ALL - 29 DIV - CASE 54 WHEN - 70 THEN NULL ELSE 1 * 92 END
----
0

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL - 29 / - CASE 54 WHEN - 70 THEN NULL ELSE 1 * 92 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT 93 * - 61 + 65 * - COUNT( * )
----
-5738

skipif mysql # not compatible
query I rowsort label-1783
SELECT 93 * - 61 + 65 * - COUNT ( * )
----
-5738

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

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

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

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - 20 / ( COUNT ( * ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT MIN( ALL 3 ) * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-1786
SELECT MIN ( ALL 3 ) * COUNT ( * )
----
3

query I rowsort
SELECT ALL + 57 - 80 AS col1
----
-23

query I rowsort
SELECT 81 * 32 col2
----
2592

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

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - CAST ( COUNT ( - ( 32 ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL - NULLIF ( 29, 96 + - MIN( + 26 ) ) * - 96 AS col2
----
2784

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL - NULLIF ( 29, 96 + - MIN ( + 26 ) ) * - 96 AS col2
----
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT 0 + - 81 DIV 7
----
-11

skipif mysql # not compatible
query I rowsort label-1791
SELECT 0 + - 81 / 7
----
-11

query I rowsort
SELECT 6 * + ( - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1793
SELECT + COUNT( * ) * 18 + + 67 * - NULLIF ( - 85 + ( + 84 ) DIV 22, 16 * AVG ( ALL 74 * 53 ) ) AS col1
----
5512

skipif mysql # not compatible
query I rowsort label-1793
SELECT + COUNT ( * ) * 18 + + 67 * - NULLIF ( - 85 + ( + 84 ) / 22, 16 * AVG ( ALL 74 * 53 ) ) AS col1
----
5512

query I rowsort
SELECT 25 * 66 AS col2
----
1650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT 96 + + SUM( DISTINCT CAST( NULL AS SIGNED ) + 84 ) * + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT 96 + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) + 84 ) * + 86 AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT COUNT ( ALL + 15 ) AS col0
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT ALL CAST( 47 AS SIGNED ) + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL CAST ( 47 AS INTEGER ) + - COUNT ( * )
----
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT ALL + 50 + + 35 DIV + 69
----
50

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + 50 + + 35 / + 69
----
50

query I rowsort
SELECT DISTINCT + 41 + 58 AS col1
----
99

query I rowsort
SELECT 12 + + 65 * 27 AS col1
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT - 77 * NULLIF ( ( + COUNT( * ) ), 20 + + 89 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT - 77 * NULLIF ( ( + COUNT ( * ) ), 20 + + 89 ) AS col2
----
-77

query I rowsort
SELECT ALL + NULLIF ( 26, 96 * - 41 + + ( 58 ) ) + + 45 AS col2
----
71

query I rowsort
SELECT 21 + 99 * - 80
----
-7899

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ( + COUNT( * ) ) - + 71
----
-70

skipif mysql # not compatible
query I rowsort label-1807
SELECT ( + COUNT ( * ) ) - + 71
----
-70

query I rowsort
SELECT DISTINCT 97 + + 58 AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT ALL 56 + + MAX( ALL - 19 )
----
37

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL 56 + + MAX ( ALL - 19 )
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1810
SELECT ALL ( CAST( NULL AS DECIMAL ) ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL ( CAST ( NULL AS REAL ) ) * 86
----
NULL

query I rowsort
SELECT - 28 + 27 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1812
SELECT DISTINCT CAST( + ( - NULLIF ( + 90, COUNT( * ) ) ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT CAST ( + ( - NULLIF ( + 90, COUNT ( * ) ) ) AS INTEGER )
----
-90

query I rowsort
SELECT ALL + 21 * + 94 + 97
----
2071

query I rowsort
SELECT + 12 * + 39 + - ( + 70 ) AS col2
----
398

query I rowsort
SELECT ALL - 99 * + 90 - - 94 col1
----
-8816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1816
SELECT + CAST( - 20 AS SIGNED ) + - CASE 27 + 82 WHEN MIN( ALL + 92 ) - - 62 THEN - 44 + + 48 WHEN - 79 THEN 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1816
SELECT + CAST ( - 20 AS INTEGER ) + - CASE 27 + 82 WHEN MIN ( ALL + 92 ) - - 62 THEN - 44 + + 48 WHEN - 79 THEN 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT MIN( 21 ) * 97 + 7 * - 38 col0
----
1771

skipif mysql # not compatible
query I rowsort label-1817
SELECT MIN ( 21 ) * 97 + 7 * - 38 col0
----
1771

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

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

query I rowsort
SELECT + 30 * - 69
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + + MAX( + 5 ) * - 82 AS col2
----
-410

skipif mysql # not compatible
query I rowsort label-1820
SELECT + + MAX ( + 5 ) * - 82 AS col2
----
-410

query I rowsort
SELECT DISTINCT - 88 * 14
----
-1232

query I rowsort
SELECT DISTINCT 45 * + 49 AS col1
----
2205

query I rowsort
SELECT ALL + NULLIF ( 83, + 65 * 44 + - 3 ) * + 58 AS col2
----
4814

query I rowsort
SELECT + 2 * 8 AS col1
----
16

query I rowsort
SELECT DISTINCT 72 * 97 AS col0
----
6984

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT + 18 * 52 * 12 - - MIN( 93 )
----
11325

skipif mysql # not compatible
query I rowsort label-1826
SELECT + 18 * 52 * 12 - - MIN ( 93 )
----
11325

query I rowsort
SELECT + ( + - 80 ) * + 30 AS col1
----
-2400

query I rowsort
SELECT - 64 + + + 96
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT - 40 + + + 81 * - CASE + 92 + - ( 45 ) WHEN - 76 + + 88 THEN NULL WHEN + COUNT( * ) THEN 81 * - 40 + + 51 WHEN 53 / - 80 THEN MAX( 29 ) ELSE 84 END
----
-6844

skipif mysql # not compatible
query I rowsort label-1829
SELECT - 40 + + + 81 * - CASE + 92 + - ( 45 ) WHEN - 76 + + 88 THEN NULL WHEN + COUNT ( * ) THEN 81 * - 40 + + 51 WHEN 53 / - 80 THEN MAX ( 29 ) ELSE 84 END
----
-6844

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT ALL COUNT( + 62 ) + - 28 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL COUNT ( + 62 ) + - 28 AS col1
----
-27

query I rowsort
SELECT ALL + 54 + ( 48 ) + 15 * + 59 * - 49 AS col0
----
-43263

query I rowsort
SELECT - 28 + + - 67
----
-95

query I rowsort
SELECT - 4 + 16 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1834
SELECT - 80 * 32 * - CAST( NULL AS SIGNED ) - 74 * NULLIF ( 54 - 45 * 42, 1 + + 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT - 80 * 32 * - CAST ( NULL AS INTEGER ) - 74 * NULLIF ( 54 - 45 * 42, 1 + + 77 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL SUM( DISTINCT - + 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL SUM ( DISTINCT - + 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL CASE + 46 WHEN - 88 THEN NULL WHEN + 75 THEN COUNT( * ) ELSE 50 * 26 + + 23 END AS col0
----
1323

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL CASE + 46 WHEN - 88 THEN NULL WHEN + 75 THEN COUNT ( * ) ELSE 50 * 26 + + 23 END AS col0
----
1323

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT ALL + ( + CASE 13 WHEN 47 + 49 THEN 78 * - 66 - CASE 34 WHEN + 33 * - ( - 98 ) + - 99 DIV + 12 THEN NULL WHEN - 13 THEN ( + 95 ) DIV ( + CASE 77 WHEN 49 + - 51 THEN 69 ELSE NULL END * - 81 ) + 35 * + 93 ELSE - 4 END ELSE 31 END ) + + 0
----
31

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL + ( + CASE 13 WHEN 47 + 49 THEN 78 * - 66 - CASE 34 WHEN + 33 * - ( - 98 ) + - 99 / + 12 THEN NULL WHEN - 13 THEN ( + 95 ) / ( + CASE 77 WHEN 49 + - 51 THEN 69 ELSE NULL END * - 81 ) + 35 * + 93 ELSE - 4 END ELSE 31 END ) + + 0
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1838
SELECT ALL - CASE - + 38 WHEN 1 / 88 THEN CAST( - CAST( - NULLIF ( 46, 48 ) AS DECIMAL ) AS DECIMAL ) ELSE NULL END + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - CASE - + 38 WHEN 1 / 88 THEN CAST ( - CAST ( - NULLIF ( 46, 48 ) AS REAL ) AS REAL ) ELSE NULL END + + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT - 74 + - + NULLIF ( 83, + 36 + 47 ) + COUNT( * ) * ( 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT - 74 + - + NULLIF ( 83, + 36 + 47 ) + COUNT ( * ) * ( 48 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT DISTINCT - CAST( - 66 AS SIGNED ) * + 49 col2
----
3234

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT - CAST ( - 66 AS INTEGER ) * + 49 col2
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT - ( + - 84 ) + - CASE + MAX( - ( 11 ) ) WHEN + 33 + + COUNT( 28 ) THEN NULL ELSE 61 + - MAX( - 22 ) END col0
----
1

skipif mysql # not compatible
query I rowsort label-1841
SELECT - ( + - 84 ) + - CASE + MAX ( - ( 11 ) ) WHEN + 33 + + COUNT ( 28 ) THEN NULL ELSE 61 + - MAX ( - 22 ) END col0
----
1

query I rowsort
SELECT ALL + 19 + 37
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1843
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), COALESCE ( - 7, NULLIF ( 94, 94 * - 83 ) ) - 31 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), COALESCE ( - 7, NULLIF ( 94, 94 * - 83 ) ) - 31 ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT - ( - 94 ) - COALESCE ( 86 + 59, - 0 * COALESCE ( 90, 13 ), COUNT( * ) ) DIV 72
----
92

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT - ( - 94 ) - COALESCE ( 86 + 59, - 0 * COALESCE ( 90, 13 ), COUNT ( * ) ) / 72
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT + NULLIF ( - 7, - 9 + - MIN( - 29 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1845
SELECT + NULLIF ( - 7, - 9 + - MIN ( - 29 ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL + NULLIF ( - 54, COUNT( * ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL + NULLIF ( - 54, COUNT ( * ) ) AS col1
----
-54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT ALL 87 * NULLIF ( + 71, + 6 + - 13 ) * + CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL 87 * NULLIF ( + 71, + 6 + - 13 ) * + CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT + 33 DIV + 57 + 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT + 33 / + 57 + 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT - COUNT( * ) - + 22 * + 73
----
-1607

skipif mysql # not compatible
query I rowsort label-1850
SELECT - COUNT ( * ) - + 22 * + 73
----
-1607

query I rowsort
SELECT ALL + + 1 * NULLIF ( + 16, + 68 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1852
SELECT + - COUNT( 92 ) DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1852
SELECT + - COUNT ( 92 ) / 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT - 5 * + + 84 * 54 + 45 + CASE COUNT( * ) WHEN + 73 THEN NULL WHEN 36 THEN + 0 * + 32 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT - 5 * + + 84 * 54 + 45 + CASE COUNT ( * ) WHEN + 73 THEN NULL WHEN 36 THEN + 0 * + 32 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT SUM( DISTINCT 4 )
----
4

skipif mysql # not compatible
query I rowsort label-1854
SELECT SUM ( DISTINCT 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL + 9 * + + ( + COUNT( * ) ) + 64 * 15 AS col1
----
969

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL + 9 * + + ( + COUNT ( * ) ) + 64 * 15 AS col1
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL + COALESCE ( - 84, MAX( 69 ) + COALESCE ( 89, - COALESCE ( 58, - 47 * 82 ), - 74 * + 68 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL + COALESCE ( - 84, MAX ( 69 ) + COALESCE ( 89, - COALESCE ( 58, - 47 * 82 ), - 74 * + 68 ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT - - COUNT( * ) * SUM( DISTINCT 41 ) + 12
----
53

skipif mysql # not compatible
query I rowsort label-1857
SELECT - - COUNT ( * ) * SUM ( DISTINCT 41 ) + 12
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT - - 28 DIV + + 8 + 65
----
68

skipif mysql # not compatible
query I rowsort label-1858
SELECT - - 28 / + + 8 + 65
----
68

query I rowsort
SELECT + ( + - NULLIF ( 17, - 89 ) ) - - 0
----
-17

query I rowsort
SELECT ALL - 48 * - + 3 * 77 AS col2
----
11088

query I rowsort
SELECT ALL - - 55 * - ( - ( 91 ) ) * 94 + + COALESCE ( 53 + 10, 95 ) * 54 AS col1
----
473872

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

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

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

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

query I rowsort
SELECT - 52 * 56 + + 41 * - 74 col1
----
-5946

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT + 23 - - ( COUNT( * ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1867
SELECT + 23 - - ( COUNT ( * ) ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT DISTINCT - 73 * - + 90 * + 78 + + NULLIF ( + 34 + + COUNT( * ), + COUNT( - ( - 43 ) ) ) AS col0
----
512495

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT - 73 * - + 90 * + 78 + + NULLIF ( + 34 + + COUNT ( * ), + COUNT ( - ( - 43 ) ) ) AS col0
----
512495

query I rowsort
SELECT ALL - 24 * + 69 + - + 21 - + 16 * - 29 AS col0
----
-1213

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT ALL + ( - 65 ) * MAX( - 30 ) + + 66
----
2016

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL + ( - 65 ) * MAX ( - 30 ) + + 66
----
2016

query I rowsort
SELECT + 87 + + 55 - + - 84 * 6
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL CASE - + 26 WHEN + - 65 * 84 THEN NULL WHEN - 48 + 47 THEN 31 END * + COUNT( ALL - 11 * 84 + - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL CASE - + 26 WHEN + - 65 * 84 THEN NULL WHEN - 48 + 47 THEN 31 END * + COUNT ( ALL - 11 * 84 + - 39 )
----
NULL

query I rowsort
SELECT + 63 + 2
----
65

query I rowsort
SELECT ALL NULLIF ( + 64, - 23 * 43 )
----
64

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

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

query I rowsort
SELECT + 51 * 95 AS col2
----
4845

query I rowsort
SELECT + 45 + - 57 * + 12 AS col0
----
-639

query I rowsort
SELECT - 50 * 52
----
-2600

query I rowsort
SELECT - ( + 68 ) + 74 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT ALL 15 DIV + ( - + 69 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL 15 / + ( - + 69 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT NULLIF ( SUM( ALL + 27 ), 36 + + 19 * 36 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT NULLIF ( SUM ( ALL + 27 ), 36 + + 19 * 36 ) AS col2
----
27

query I rowsort
SELECT ALL + 23 - 92
----
-69

query I rowsort
SELECT + 14 + - ( ( 55 ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT DISTINCT ( COALESCE ( COUNT( * ), ( - ( - ( - 87 ) ) ), + 34 * + 41 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT ( COALESCE ( COUNT ( * ), ( - ( - ( - 87 ) ) ), + 34 * + 41 ) )
----
1

query I rowsort
SELECT ALL + + 65 * - - 46 * + 67 AS col0
----
200330

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT - COUNT( * ) + ( - 69 )
----
-70

skipif mysql # not compatible
query I rowsort label-1886
SELECT - COUNT ( * ) + ( - 69 )
----
-70

query I rowsort
SELECT ALL - 4 * - 27 * ( - ( 30 ) ) AS col1
----
-3240

query I rowsort
SELECT + - 98 + 79 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL + SUM( ALL + 20 ) * + 81 * + CASE - CASE 75 WHEN - 93 + 74 THEN 0 + + 81 END * + 66 WHEN + 62 THEN 55 WHEN 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + SUM ( ALL + 20 ) * + 81 * + CASE - CASE 75 WHEN - 93 + 74 THEN 0 + + 81 END * + 66 WHEN + 62 THEN 55 WHEN 47 THEN NULL END
----
NULL

query I rowsort
SELECT + 82 - - - 53
----
29

query I rowsort
SELECT - 21 * + 38 col1
----
-798

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

skipif mysql # not compatible
query II rowsort label-1892
SELECT DISTINCT - COUNT ( * ) AS col0, - 94 * - COUNT ( * ) AS col0
----
-1
94

query I rowsort
SELECT + 39 * + + 69
----
2691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1894
SELECT + MAX( ALL + + 61 ) DIV 2 + + COUNT( * ) + + 78
----
109

skipif mysql # not compatible
query I rowsort label-1894
SELECT + MAX ( ALL + + 61 ) / 2 + + COUNT ( * ) + + 78
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1895
SELECT ALL + - ( + - 44 ) DIV COUNT( * ) * + 27 AS col2
----
1188

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + - ( + - 44 ) / COUNT ( * ) * + 27 AS col2
----
1188

query I rowsort
SELECT DISTINCT + - 31 + + 51 * 46 col2
----
2315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1897
SELECT - COUNT( * ) * COUNT( * ) * + CAST( 98 AS SIGNED ) - CAST( NULL AS DECIMAL ) * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT - COUNT ( * ) * COUNT ( * ) * + CAST ( 98 AS INTEGER ) - CAST ( NULL AS REAL ) * 95
----
NULL

query I rowsort
SELECT 25 + - - 95 + 60 AS col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT ALL + + 81 + - - 87 + 61 * COUNT( * ) AS col0
----
229

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + + 81 + - - 87 + 61 * COUNT ( * ) AS col0
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT + + NULLIF ( + 63, - ( 49 ) * SUM( COALESCE ( - 58, 67 ) ) - 90 / + 22 ) col1
----
63

skipif mysql # not compatible
query I rowsort label-1900
SELECT + + NULLIF ( + 63, - ( 49 ) * SUM ( COALESCE ( - 58, 67 ) ) - 90 / + 22 ) col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL - COALESCE ( 15, - + COUNT( * ) * 78 )
----
-15

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - COALESCE ( 15, - + COUNT ( * ) * 78 )
----
-15

query I rowsort
SELECT + 60 * - 38 + + NULLIF ( 12, + 17 )
----
-2268

query I rowsort
SELECT ( + - 85 ) * + 73 col0
----
-6205

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL COALESCE ( + - ( - - ( - + 1 ) ), - COUNT( * ) ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL COALESCE ( + - ( - - ( - + 1 ) ), - COUNT ( * ) ) + COUNT ( * ) AS col1
----
2

query II rowsort
SELECT ALL 81 + + 80, - 22 * - - 83 + - 95 col1
----
161
-1921

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT - 54 + + 26 + + - 93 - 15 + 16 * - COUNT( * )
----
-152

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT - 54 + + 26 + + - 93 - 15 + 16 * - COUNT ( * )
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT - 72 * - 35 + CAST( + 33 AS SIGNED ) AS col2
----
2553

skipif mysql # not compatible
query I rowsort label-1907
SELECT - 72 * - 35 + CAST ( + 33 AS INTEGER ) AS col2
----
2553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT ALL - COUNT( * ) + + - CAST( - 3 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL - COUNT ( * ) + + - CAST ( - 3 AS INTEGER )
----
2

query I rowsort
SELECT - 72 * + 39 - + - 24 AS col1
----
-2784

query I rowsort
SELECT ( - 92 ) * + 19 * + 72
----
-125856

query I rowsort
SELECT ( - 75 ) + 74
----
-1

query I rowsort
SELECT DISTINCT 74 * 32 AS col0
----
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL + 64 / - 24 * - CASE COUNT( * ) WHEN 56 THEN - 70 / 89 END * - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + 64 / - 24 * - CASE COUNT ( * ) WHEN 56 THEN - 70 / 89 END * - 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1914
SELECT ( + COUNT( * ) ) + COUNT( * ) - + NULLIF ( COALESCE ( 71, 87 * ( ( COUNT( 84 ) ) DIV - 96 ) + + 87 ), - 67 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-1914
SELECT ( + COUNT ( * ) ) + COUNT ( * ) - + NULLIF ( COALESCE ( 71, 87 * ( ( COUNT ( 84 ) ) / - 96 ) + + 87 ), - 67 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT DISTINCT 26 * - COUNT( * ) * + 63 AS col0
----
-1638

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT 26 * - COUNT ( * ) * + 63 AS col0
----
-1638

query I rowsort
SELECT 40 * - ( + + 47 ) * - + NULLIF ( 36, + ( 94 ) ) - - 18
----
67698

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

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

query II rowsort
SELECT - 53 + + 82 AS col2, + 92 * - 72 AS col1
----
29
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT - CASE + COUNT( ALL + 96 ) WHEN 34 THEN ( 87 ) ELSE - ( - 67 ) END * 13
----
-871

skipif mysql # not compatible
query I rowsort label-1919
SELECT - CASE + COUNT ( ALL + 96 ) WHEN 34 THEN ( 87 ) ELSE - ( - 67 ) END * 13
----
-871

query I rowsort
SELECT 22 + 64 * + - 21 + 27 AS col2
----
-1295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT ALL 93 / + 31 * - CAST( NULL AS SIGNED ) + + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL 93 / + 31 * - CAST ( NULL AS INTEGER ) + + - 11
----
NULL

query I rowsort
SELECT 1 * 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT - ( + - NULLIF ( + 8, + - ( + 49 ) + COUNT( * ) ) ) * + 41 AS col1
----
328

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT - ( + - NULLIF ( + 8, + - ( + 49 ) + COUNT ( * ) ) ) * + 41 AS col1
----
328

query I rowsort
SELECT ALL + 43 + + 59 + 77
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL + 32 + + MIN( - - 67 )
----
99

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + 32 + + MIN ( - - 67 )
----
99

query I rowsort
SELECT COALESCE ( - 79, + ( 88 ), 15 * 2 ) * 16 AS col2
----
-1264

query I rowsort
SELECT ALL + 65 * CASE + 38 WHEN - 25 THEN NULL ELSE 0 * 9 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT ALL - - NULLIF ( - + CAST( 25 AS SIGNED ), - + 66 ) * 42 + 94 AS col0
----
-956

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL - - NULLIF ( - + CAST ( 25 AS INTEGER ), - + 66 ) * 42 + 94 AS col0
----
-956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT 2 / - 54 + - 81 + 20 * + CAST( NULL AS SIGNED ) + - 9 * - 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT 2 / - 54 + - 81 + 20 * + CAST ( NULL AS INTEGER ) + - 9 * - 45 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT 4 * - + 31 * 1 * - 94 - - COUNT( * ) + 87 AS col0
----
11744

skipif mysql # not compatible
query I rowsort label-1930
SELECT 4 * - + 31 * 1 * - 94 - - COUNT ( * ) + 87 AS col0
----
11744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1931
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN + 24 THEN NULL WHEN - 83 * - COUNT( DISTINCT + 99 ) THEN 72 * 75 ELSE 66 END + 28 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN + 24 THEN NULL WHEN - 83 * - COUNT ( DISTINCT + 99 ) THEN 72 * 75 ELSE 66 END + 28 AS col2
----
-38

query I rowsort
SELECT 15 + - - 95 + - 74 * + 2 * ( 60 )
----
-8770

query I rowsort
SELECT 24 + - 13
----
11

query I rowsort
SELECT 60 * ( - + 86 )
----
-5160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1935
SELECT ALL - COUNT( * ) * NULLIF ( - 99, - 55 + COUNT( * ) ) DIV 96
----
1

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - COUNT ( * ) * NULLIF ( - 99, - 55 + COUNT ( * ) ) / 96
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL - 5 - COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL - 5 - COUNT ( * ) AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT 50 DIV + 74 * + 33
----
0

skipif mysql # not compatible
query I rowsort label-1938
SELECT 50 / + 74 * + 33
----
0

query I rowsort
SELECT ALL - 32 * + - 50 AS col1
----
1600

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT SUM( - 4 ) + + - 3, + 63 col2
----
-7
63

skipif mysql # not compatible
query II rowsort label-1940
SELECT SUM ( - 4 ) + + - 3, + 63 col2
----
-7
63

query II rowsort
SELECT 43 col2, 84
----
43
84

query I rowsort
SELECT ALL + 60 * + 79
----
4740

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1944
SELECT 51, - COUNT( * ) col1
----
51
-1

skipif mysql # not compatible
query II rowsort label-1944
SELECT 51, - COUNT ( * ) col1
----
51
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - 79 + CASE - 22 WHEN 41 + - 48 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT - 79 + CASE - 22 WHEN 41 + - 48 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - NULLIF ( + - 77, + 72 + - - 65 ) * SUM( 7 ) * 10 AS col0
----
5390

skipif mysql # not compatible
query I rowsort label-1946
SELECT - NULLIF ( + - 77, + 72 + - - 65 ) * SUM ( 7 ) * 10 AS col0
----
5390

query I rowsort
SELECT - 81 + 65 + + 36 AS col0
----
20

query I rowsort
SELECT - COALESCE ( + 84, 47 * + 20 ) col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL MAX( ( + 80 ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL MAX ( ( + 80 ) ) AS col2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT ALL - 21 + ( - 48 ) DIV 21
----
-23

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL - 21 + ( - 48 ) / 21
----
-23

query I rowsort
SELECT DISTINCT 43 * 36
----
1548

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1952
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + + 10 - + + 41 * + 51 * + 48 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT - + CAST ( NULL AS REAL ) + + 10 - + + 41 * + 51 * + 48 * 23
----
NULL

query II rowsort
SELECT + 79 AS col0, NULLIF ( 65, - 92 * + 96 ) AS col0
----
79
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT ALL - CASE - - COUNT( * ) WHEN - 29 THEN - COALESCE ( + + 11, - 75 * - 73 - COUNT( * ) ) ELSE NULL END + 20 * + COALESCE ( 19, - 71, + AVG ( ALL 68 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL - CASE - - COUNT ( * ) WHEN - 29 THEN - COALESCE ( + + 11, - 75 * - 73 - COUNT ( * ) ) ELSE NULL END + 20 * + COALESCE ( 19, - 71, + AVG ( ALL 68 ) ) AS col2
----
NULL

query I rowsort
SELECT + - 66 + 18 col0
----
-48

query I rowsort
SELECT ALL 0 + - 69 * - 2 * - 85 AS col1
----
-11730

query I rowsort
SELECT + + 91 + - 61
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT COALESCE ( CAST( 18 AS SIGNED ), + 36 * - - 5 - + NULLIF ( CAST( NULL AS SIGNED ), - 39 ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1958
SELECT COALESCE ( CAST ( 18 AS INTEGER ), + 36 * - - 5 - + NULLIF ( CAST ( NULL AS INTEGER ), - 39 ) ) AS col0
----
18

query I rowsort
SELECT ALL 27 + 9 AS col0
----
36

query I rowsort
SELECT + 67 - - NULLIF ( - + 31, - 33 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT + COUNT( * ) + - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-1961
SELECT + COUNT ( * ) + - 36 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1962
SELECT + CAST( + 54 AS SIGNED ) + MIN( + 98 ) AS col0
----
152

skipif mysql # not compatible
query I rowsort label-1962
SELECT + CAST ( + 54 AS INTEGER ) + MIN ( + 98 ) AS col0
----
152

query I rowsort
SELECT ALL - 20 + + 46 - + + 44 * + - 28 AS col0
----
1258

query I rowsort
SELECT ALL + NULLIF ( - 72, - 13 ) + - 29
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT DISTINCT 72 DIV - 43 - 28 - + + 48 + 74 * - 95 AS col2
----
-7107

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT 72 / - 43 - 28 - + + 48 + 74 * - 95 AS col2
----
-7107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT DISTINCT - 66 * - 93 + + 42 * 98 - + - NULLIF ( CASE + 19 WHEN + COUNT( ALL 79 ) * CAST( + ( 92 ) + - CASE + CASE - 27 WHEN - MIN( DISTINCT 1 ) + COALESCE ( COUNT( * ), 65 ) THEN + 96 - CASE CASE CAST( NULL AS SIGNED ) WHEN MIN( + 70 ) THEN 13 WHEN + 4 + - 87 * COALESCE ( - 1 * 90 + - COUNT( * ) / 38, - COUNT( * ), 23 / - COALESCE ( 42, 98 + + COUNT( * ) ) + + COUNT( * ) ) THEN 66 / 35 ELSE CAST( 51 AS SIGNED ) + 50 END WHEN + 99 + COUNT( ALL - 12 ) THEN 44 * - 42 + - COALESCE ( + 38, COALESCE ( + 38, CAST( NULL AS SIGNED ) ) ) / + 91 END END WHEN 7 THEN CAST( NULL AS SIGNED ) + - 54 WHEN 12 THEN AVG ( DISTINCT 24 ) + + COALESCE ( + ( MAX( 9 ) ), + COALESCE ( CASE - ( - CAST( NULL AS SIGNED ) ) WHEN + 24 * - 67 + 38 THEN - 43 END, 71 / COUNT( * ), - 6 * - 32 + COUNT( * ), 82 ) ) ELSE NULL END / 49 AS SIGNED ) + - COUNT( * ) THEN 5 + - 55 WHEN 16 THEN NULL WHEN 98 THEN NULL ELSE 1 * + 33 END, ( - CAST( NULL AS SIGNED ) ) - - 79 * COUNT( * ) ) - - 39 * COUNT( * ) * COALESCE ( + 6 - + 78 * - 99, 87 ) AS col2
----
311679

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT - 66 * - 93 + + 42 * 98 - + - NULLIF ( CASE + 19 WHEN + COUNT ( ALL 79 ) * CAST ( + ( 92 ) + - CASE + CASE - 27 WHEN - MIN ( DISTINCT 1 ) + COALESCE ( COUNT ( * ), 65 ) THEN + 96 - CASE CASE CAST ( NULL AS INTEGER ) WHEN MIN ( + 70 ) THEN 13 WHEN + 4 + - 87 * COALESCE ( - 1 * 90 + - COUNT ( * ) / 38, - COUNT ( * ), 23 / - COALESCE ( 42, 98 + + COUNT ( * ) ) + + COUNT ( * ) ) THEN 66 / 35 ELSE CAST ( 51 AS INTEGER ) + 50 END WHEN + 99 + COUNT ( ALL - 12 ) THEN 44 * - 42 + - COALESCE ( + 38, COALESCE ( + 38, CAST ( NULL AS INTEGER ) ) ) / + 91 END END WHEN 7 THEN CAST ( NULL AS INTEGER ) + - 54 WHEN 12 THEN AVG ( DISTINCT 24 ) + + COALESCE ( + ( MAX ( 9 ) ), + COALESCE ( CASE - ( - CAST ( NULL AS INTEGER ) ) WHEN + 24 * - 67 + 38 THEN - 43 END, 71 / COUNT ( * ), - 6 * - 32 + COUNT ( * ), 82 ) ) ELSE NULL END / 49 AS INTEGER ) + - COUNT ( * ) THEN 5 + - 55 WHEN 16 THEN NULL WHEN 98 THEN NULL ELSE 1 * + 33 END, ( - CAST ( NULL AS INTEGER ) ) - - 79 * COUNT ( * ) ) - - 39 * COUNT ( * ) * COALESCE ( + 6 - + 78 * - 99, 87 ) AS col2
----
311679

query II rowsort
SELECT ALL + 96 AS col1, + 86 + + - 12 AS col1
----
96
74

query I rowsort
SELECT ALL + ( - 15 ) * 6
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT + 64 + + - CAST( NULL AS SIGNED ) * - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT + 64 + + - CAST ( NULL AS INTEGER ) * - - 91
----
NULL

query I rowsort
SELECT ALL + 81 * - 49 - - - 69
----
-4038

query I rowsort
SELECT + 52 * 63
----
3276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1972
SELECT - 58 * COUNT( * ) DIV - - 33
----
-1

skipif mysql # not compatible
query I rowsort label-1972
SELECT - 58 * COUNT ( * ) / - - 33
----
-1

query I rowsort
SELECT ALL 63 * - 94 * 37
----
-219114

query II rowsort
SELECT + CASE 57 WHEN 54 THEN + 0 ELSE NULL END AS col1, 29 + - 74 - + 6 * 92
----
NULL
-597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1975
SELECT + 39 * + 46 + + 6 + + CASE 50 WHEN + CAST( NULL AS SIGNED ) THEN 29 + COUNT( * ) WHEN 99 THEN NULL WHEN 96 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT + 39 * + 46 + + 6 + + CASE 50 WHEN + CAST ( NULL AS INTEGER ) THEN 29 + COUNT ( * ) WHEN 99 THEN NULL WHEN 96 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1976
SELECT + 22 * - 99 * - CASE - COUNT( * ) WHEN + COUNT( * ) / COALESCE ( 47, - 99 * 92 ) + 17 THEN NULL WHEN - MIN( DISTINCT + 55 ) THEN 70 * - 71 - 89 * 84 ELSE - 48 * CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT + 22 * - 99 * - CASE - COUNT ( * ) WHEN + COUNT ( * ) / COALESCE ( 47, - 99 * 92 ) + 17 THEN NULL WHEN - MIN ( DISTINCT + 55 ) THEN 70 * - 71 - 89 * 84 ELSE - 48 * CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT ALL 27 * + 77
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL + COALESCE ( - - 86, - + 17, SUM( DISTINCT - 90 ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL + COALESCE ( - - 86, - + 17, SUM ( DISTINCT - 90 ) ) AS col2
----
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1980
SELECT ( - COUNT( 2 ) ) * + - MIN( DISTINCT - + CAST( + 0 AS SIGNED ) ) + 81 * + 26 + 20 AS col1
----
2126

skipif mysql # not compatible
query I rowsort label-1980
SELECT ( - COUNT ( 2 ) ) * + - MIN ( DISTINCT - + CAST ( + 0 AS INTEGER ) ) + 81 * + 26 + 20 AS col1
----
2126

query I rowsort
SELECT COALESCE ( 57, + 29 + - + ( 55 ) * - ( 49 ), - 46 )
----
57

query I rowsort
SELECT ALL + COALESCE ( + 38, + 32 + + 22 + 84 - - 92 + - 64 ) col2
----
38

query I rowsort
SELECT + 25 * - 59 + + - ( - 85 )
----
-1390

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT ALL - 1 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL - 1 / 94
----
0

query I rowsort
SELECT + 56 * + CASE - 87 WHEN + - 99 THEN NULL WHEN + - 6 THEN - ( 85 ) WHEN 31 * + 7 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1986
SELECT DISTINCT - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) * - SUM( + ( + 2 ) ) - + - 78 + COALESCE ( 47 + 9, + 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) * - SUM ( + ( + 2 ) ) - + - 78 + COALESCE ( 47 + 9, + 22 ) AS col2
----
NULL

query II rowsort
SELECT + - 74, 62 AS col1
----
-74
62

query I rowsort
SELECT ALL + 67 * - 33
----
-2211

query I rowsort
SELECT ALL 50 * + + 63 + - - 77 AS col1
----
3227

query I rowsort
SELECT ALL - + 79 * + 67 * - 20 AS col1
----
105860

query I rowsort
SELECT ALL 45 + 81 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT - ( - CASE - ( 76 ) WHEN + + 99 + + + 66 THEN - 66 * - 52 + + MAX( 80 ) ELSE NULL END ) / - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT - ( - CASE - ( 76 ) WHEN + + 99 + + + 66 THEN - 66 * - 52 + + MAX ( 80 ) ELSE NULL END ) / - 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL - - SUM( ALL 42 ) * + 40
----
1680

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL - - SUM ( ALL 42 ) * + 40
----
1680

query II rowsort
SELECT 30 AS col1, 51 * + 75
----
30
3825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1995
SELECT DISTINCT - - 12 + - CASE + + CASE + 43 WHEN + CASE + NULLIF ( + ( 11 ), - 75 + 58 ) WHEN 49 THEN - 70 END + 43 THEN NULL WHEN 48 THEN COUNT( * ) * 49 END WHEN + AVG ( NULLIF ( - 19, - 51 ) ) * + 38 THEN CAST( NULL AS SIGNED ) + 20 / COUNT( * ) WHEN COUNT( * ) + 96 THEN COALESCE ( - 17, COUNT( * ) / - 47, + 2, 6 ) END - 83 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT - - 12 + - CASE + + CASE + 43 WHEN + CASE + NULLIF ( + ( 11 ), - 75 + 58 ) WHEN 49 THEN - 70 END + 43 THEN NULL WHEN 48 THEN COUNT ( * ) * 49 END WHEN + AVG ( NULLIF ( - 19, - 51 ) ) * + 38 THEN CAST ( NULL AS INTEGER ) + 20 / COUNT ( * ) WHEN COUNT ( * ) + 96 THEN COALESCE ( - 17, COUNT ( * ) / - 47, + 2, 6 ) END - 83 * - 24
----
NULL

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

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

query I rowsort
SELECT + 31 * + + ( - 78 ) AS col2
----
-2418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1998
SELECT ALL - + 70 - - + ( 81 ) / - COUNT( * ) + 73 * - CAST( NULL AS SIGNED ) * COALESCE ( - 29 / - 61, + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL - + 70 - - + ( 81 ) / - COUNT ( * ) + 73 * - CAST ( NULL AS INTEGER ) * COALESCE ( - 29 / - 61, + 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT - MAX( 40 ) - - 98 * + - 54 / + COUNT( * ) + + - CASE + 3 WHEN + ( 78 ) THEN NULL WHEN 9 * - NULLIF ( - 36 * COUNT( * ), 87 ) + - COUNT( * ) THEN - 59 / 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT - MAX ( 40 ) - - 98 * + - 54 / + COUNT ( * ) + + - CASE + 3 WHEN + ( 78 ) THEN NULL WHEN 9 * - NULLIF ( - 36 * COUNT ( * ), 87 ) + - COUNT ( * ) THEN - 59 / 68 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2000
SELECT DISTINCT + 50 * + 88 AS col0, COUNT( * ) col2
----
4400
1

skipif mysql # not compatible
query II rowsort label-2000
SELECT DISTINCT + 50 * + 88 AS col0, COUNT ( * ) col2
----
4400
1

query I rowsort
SELECT - 52 - - + 48 col0
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT 41 * - + 15 * + - SUM( ALL 30 ) + + COUNT( + + 14 ) + 22 - 94
----
18379

skipif mysql # not compatible
query I rowsort label-2003
SELECT 41 * - + 15 * + - SUM ( ALL 30 ) + + COUNT ( + + 14 ) + 22 - 94
----
18379

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT - 60 DIV - + 97 + - 83 * 37
----
-3071

skipif mysql # not compatible
query I rowsort label-2004
SELECT - 60 / - + 97 + - 83 * 37
----
-3071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2005
SELECT + 22 DIV + - CASE - - COUNT( * ) WHEN 23 THEN - - CAST( COUNT( * ) AS SIGNED ) * + 23 - - COALESCE ( 19, 8 DIV + CASE - 35 WHEN + CAST( ( COUNT( * ) ) AS DECIMAL ) THEN + 32 WHEN 5 THEN NULL END ) ELSE - 22 END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2005
SELECT + 22 / + - CASE - - COUNT ( * ) WHEN 23 THEN - - CAST ( COUNT ( * ) AS INTEGER ) * + 23 - - COALESCE ( 19, 8 / + CASE - 35 WHEN + CAST ( ( COUNT ( * ) ) AS REAL ) THEN + 32 WHEN 5 THEN NULL END ) ELSE - 22 END AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT + 98 * CASE 25 WHEN + 84 * SUM( - 24 ) THEN + + ( 7 ) END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT + 98 * CASE 25 WHEN + 84 * SUM ( - 24 ) THEN + + ( 7 ) END * + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2008
SELECT ALL CAST( - CAST( + 71 AS SIGNED ) AS SIGNED ) DIV + - 25
----
2

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL CAST ( - CAST ( + 71 AS INTEGER ) AS INTEGER ) / + - 25
----
2

query II rowsort
SELECT ALL 9 + - 72 + 32 col0, + 2 + + 2
----
-31
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT 79 * - - 66 + - 76 DIV + 42 AS col2
----
5213

skipif mysql # not compatible
query I rowsort label-2010
SELECT 79 * - - 66 + - 76 / + 42 AS col2
----
5213

query I rowsort
SELECT 1 * ( - 23 )
----
-23

query I rowsort
SELECT ALL - NULLIF ( - 71, 31 - 56 + 29 * + + 59 - + ( - 30 ) * 85 )
----
71

query I rowsort
SELECT DISTINCT - 88 + + ( + 44 ) * + + NULLIF ( 41, 9 * 52 ) AS col0
----
1716

query I rowsort
SELECT ALL + + 14 + - - 58 * 65 AS col2
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT COUNT( * ) * + + 5 * + 87 AS col2
----
435

skipif mysql # not compatible
query I rowsort label-2015
SELECT COUNT ( * ) * + + 5 * + 87 AS col2
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT + 94 + - COALESCE ( - COUNT( * ), - 79 + COUNT( * ) ) + + 99 * 17 AS col1
----
1778

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT + 94 + - COALESCE ( - COUNT ( * ), - 79 + COUNT ( * ) ) + + 99 * 17 AS col1
----
1778

query I rowsort
SELECT NULLIF ( + 24, + 59 )
----
24

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT + + 80 * + 44 + + SUM( - - 9 ) + + - 35
----
3494

skipif mysql # not compatible
query I rowsort label-2020
SELECT + + 80 * + 44 + + SUM ( - - 9 ) + + - 35
----
3494

query II rowsort
SELECT + 65 + + - 50, - ( - 62 ) AS col0
----
15
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT - SUM( - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2022
SELECT - SUM ( - 63 ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT DISTINCT - - 10 + CAST( - CASE - 70 WHEN - - 83 THEN NULL WHEN + ( SUM( 67 ) ) THEN + ( - ( + 82 ) ) - COUNT( * ) WHEN - COUNT( + 8 ) * 93 THEN NULL ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT - - 10 + CAST ( - CASE - 70 WHEN - - 83 THEN NULL WHEN + ( SUM ( 67 ) ) THEN + ( - ( + 82 ) ) - COUNT ( * ) WHEN - COUNT ( + 8 ) * 93 THEN NULL ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT - 49 DIV - + 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2024
SELECT - 49 / - + 30 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL + MAX( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL + MAX ( 6 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT - - COALESCE ( - + CAST( - + 77 AS SIGNED ), 86 * - - 1 + + 84 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2026
SELECT - - COALESCE ( - + CAST ( - + 77 AS INTEGER ), 86 * - - 1 + + 84 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT - 15 + - 26, - SUM( - 6 ) col0
----
-41
6

skipif mysql # not compatible
query II rowsort label-2027
SELECT - 15 + - 26, - SUM ( - 6 ) col0
----
-41
6

query II rowsort
SELECT 35 * - 53, + 1 AS col1
----
-1855
1

query II rowsort
SELECT - 72 * + - 82, 99 + + ( + 80 ) + - + 55 col1
----
5904
124

query I rowsort
SELECT 94 + + + 91 AS col1
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT - 51 AS col1, - CASE + 62 WHEN - - MIN( - 13 ) THEN 10 WHEN + 25 THEN NULL WHEN + - 17 THEN NULL ELSE NULL END + 43
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-2031
SELECT - 51 AS col1, - CASE + 62 WHEN - - MIN ( - 13 ) THEN 10 WHEN + 25 THEN NULL WHEN + - 17 THEN NULL ELSE NULL END + 43
----
-51
NULL

query I rowsort
SELECT 25 + - 84 col2
----
-59

query I rowsort
SELECT 60 + - 47 + - - 39
----
52

query I rowsort
SELECT 44 * + 12 AS col1
----
528

onlyif mysql # DIV for integer division: 
query II rowsort label-2035
SELECT 50 + - - 66 DIV 50 + + - 99 AS col2, 57 col1
----
-48
57

skipif mysql # not compatible
query II rowsort label-2035
SELECT 50 + - - 66 / 50 + + - 99 AS col2, 57 col1
----
-48
57

query I rowsort
SELECT DISTINCT 10 * 57
----
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - - 91 + - + 15 + + + COUNT( * ) / - - 35 * + - 8 ) / 10 + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - - 91 + - + 15 + + + COUNT ( * ) / - - 35 * + - 8 ) / 10 + + 57 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2038
SELECT DISTINCT + COUNT ( * ) * 43 AS col1
----
43

query II rowsort
SELECT 24 AS col2, + 16 + - - 58 AS col2
----
24
74

query I rowsort
SELECT ALL - 47 + 70 + + ( 2 ) - + - 59 - - 81 * + 79 * + NULLIF ( - 21, - 60 ) * - 55 AS col0
----
7390929

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2042
SELECT MAX( - 64 ) DIV 48 + + + 87
----
86

skipif mysql # not compatible
query I rowsort label-2042
SELECT MAX ( - 64 ) / 48 + + + 87
----
86

query II rowsort
SELECT DISTINCT - 43 AS col1, 45 + 3 * - 37 * - 2 AS col2
----
-43
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT DISTINCT 20 + + NULLIF ( + 37, + 37 + + NULLIF ( - 24, 2 + + ( 23 ) * + 16 ) * CAST( NULL AS SIGNED ) )
----
57

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT 20 + + NULLIF ( + 37, + 37 + + NULLIF ( - 24, 2 + + ( 23 ) * + 16 ) * CAST ( NULL AS INTEGER ) )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2045
SELECT DISTINCT - 29 + - SUM( + 51 ) DIV - 91
----
-29

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT - 29 + - SUM ( + 51 ) / - 91
----
-29

query I rowsort
SELECT 76 + + - 40 AS col0
----
36

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2048
SELECT - COUNT( - 33 ) DIV - SUM( - 35 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT - COUNT ( - 33 ) / - SUM ( - 35 ) AS col1
----
0

query I rowsort
SELECT 24 * - 45 - 26 AS col0
----
-1106

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

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

query I rowsort
SELECT ALL + 15 + + 57 AS col2
----
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT DISTINCT 89 - + COUNT( * ) * - - 51 - + COUNT( * ) + + COUNT( * ) * + 88 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT 89 - + COUNT ( * ) * - - 51 - + COUNT ( * ) + + COUNT ( * ) * + 88 AS col0
----
125

query II rowsort
SELECT ALL 26 AS col2, 21
----
26
21

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT - - COUNT( DISTINCT - 55 ) * 54 * 39 - - 71 AS col2
----
2177

skipif mysql # not compatible
query I rowsort label-2057
SELECT - - COUNT ( DISTINCT - 55 ) * 54 * 39 - - 71 AS col2
----
2177

query II rowsort
SELECT ALL - 29 AS col0, + 60 * + COALESCE ( + 42, 71, - - 37 * - 89 ) * + 98 * 25 AS col0
----
-29
6174000

query I rowsort
SELECT ALL + + 2 * - - 32 * + 12 col0
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT - CASE - 65 WHEN COUNT( DISTINCT + - 54 ) THEN NULL ELSE 66 END
----
-66

skipif mysql # not compatible
query I rowsort label-2060
SELECT - CASE - 65 WHEN COUNT ( DISTINCT + - 54 ) THEN NULL ELSE 66 END
----
-66

query I rowsort
SELECT ALL - 78 * 81
----
-6318

query I rowsort
SELECT ALL 5 * 65 * - 89 AS col2
----
-28925

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL + 14 + - NULLIF ( + 99, - AVG ( 15 ) + - + COUNT( * ) - 47 + - + 98 * - ( - 7 ) * - 4 ) + + 90
----
5

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL + 14 + - NULLIF ( + 99, - AVG ( 15 ) + - + COUNT ( * ) - 47 + - + 98 * - ( - 7 ) * - 4 ) + + 90
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT ALL CASE - 66 WHEN 44 - + - COALESCE ( + 6, - - ( COUNT( * ) ), CAST( + 31 AS SIGNED ) ) THEN + CAST( NULL AS SIGNED ) ELSE 98 + + NULLIF ( + 59, ( - 3 ) ) * 95 END AS col0
----
5703

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL CASE - 66 WHEN 44 - + - COALESCE ( + 6, - - ( COUNT ( * ) ), CAST ( + 31 AS INTEGER ) ) THEN + CAST ( NULL AS INTEGER ) ELSE 98 + + NULLIF ( + 59, ( - 3 ) ) * 95 END AS col0
----
5703

query I rowsort
SELECT DISTINCT + 33 + - 0 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - NULLIF ( + + NULLIF ( 72, CASE - 71 WHEN - 6 * 91 THEN + COUNT( * ) END ), + - 89 )
----
-72

skipif mysql # not compatible
query I rowsort label-2066
SELECT - NULLIF ( + + NULLIF ( 72, CASE - 71 WHEN - 6 * 91 THEN + COUNT ( * ) END ), + - 89 )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-2067
SELECT + COUNT( * ) * + - 61, 34 + - COUNT( * ) + COUNT( * ) * + MAX( - 75 ) AS col1
----
-61
-42

skipif mysql # not compatible
query II rowsort label-2067
SELECT + COUNT ( * ) * + - 61, 34 + - COUNT ( * ) + COUNT ( * ) * + MAX ( - 75 ) AS col1
----
-61
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2068
SELECT ALL + 15 + 27 * MIN( DISTINCT - 36 ) * + 36 * 18 + CAST( NULL AS DECIMAL ) AS col1, - 80
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-2068
SELECT ALL + 15 + 27 * MIN ( DISTINCT - 36 ) * + 36 * 18 + CAST ( NULL AS REAL ) AS col1, - 80
----
NULL
-80

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

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

query I rowsort
SELECT NULLIF ( + CASE ( ( + + AVG ( ALL - - 37 ) ) ) WHEN - 47 * + 69 + - + 17 * 4 THEN 7 ELSE NULL END, 57 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2071
SELECT + COALESCE ( - - COUNT( * ), + 82 + + 97 + + - COUNT( * ), - - CAST( 15 AS SIGNED ) DIV 38 + - - COALESCE ( - 12, - COALESCE ( 78, - CAST( 71 AS SIGNED ) + 68, - 27, + 58 + - COUNT( * ) * 73 ) + - 23, - 37 * - COUNT( * ) ) ) DIV - 45 + 61
----
61

skipif mysql # not compatible
query I rowsort label-2071
SELECT + COALESCE ( - - COUNT ( * ), + 82 + + 97 + + - COUNT ( * ), - - CAST ( 15 AS INTEGER ) / 38 + - - COALESCE ( - 12, - COALESCE ( 78, - CAST ( 71 AS INTEGER ) + 68, - 27, + 58 + - COUNT ( * ) * 73 ) + - 23, - 37 * - COUNT ( * ) ) ) / - 45 + 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL 26 * + - COUNT( * ) * + - ( + 77 ) * - 81 + 37 + + - 37
----
-162162

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL 26 * + - COUNT ( * ) * + - ( + 77 ) * - 81 + 37 + + - 37
----
-162162

query I rowsort
SELECT ALL ( + 14 ) * + - 77
----
-1078

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2074
SELECT + CAST( - 42 AS SIGNED ), - 32 AS col1
----
-42
-32

skipif mysql # not compatible
query II rowsort label-2074
SELECT + CAST ( - 42 AS INTEGER ), - 32 AS col1
----
-42
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2075
SELECT ALL + MIN( DISTINCT + - 81 ) * - 73 - - 96, 21 + 81 AS col0
----
6009
102

skipif mysql # not compatible
query II rowsort label-2075
SELECT ALL + MIN ( DISTINCT + - 81 ) * - 73 - - 96, 21 + 81 AS col0
----
6009
102

query I rowsort
SELECT - 25 + - 38
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + MAX( DISTINCT - + 20 ) * 44 AS col0
----
-880

skipif mysql # not compatible
query I rowsort label-2077
SELECT + MAX ( DISTINCT - + 20 ) * 44 AS col0
----
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT + - NULLIF ( + 13, + + 0 ) * + CAST( NULL AS SIGNED ) + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT + - NULLIF ( + 13, + + 0 ) * + CAST ( NULL AS INTEGER ) + + 36
----
NULL

query I rowsort
SELECT + 8 - 12 * - 2 col2
----
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT - SUM( DISTINCT 69 ) * - 55
----
3795

skipif mysql # not compatible
query I rowsort label-2081
SELECT - SUM ( DISTINCT 69 ) * - 55
----
3795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2082
SELECT ALL + 61 DIV - NULLIF ( - 69, - 40 + + CASE - 75 WHEN - ( - + 0 ) + - 15 + + COUNT( * ) THEN 74 ELSE NULL END + + 51 * 31 )
----
0

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + 61 / - NULLIF ( - 69, - 40 + + CASE - 75 WHEN - ( - + 0 ) + - 15 + + COUNT ( * ) THEN 74 ELSE NULL END + + 51 * 31 )
----
0

query I rowsort
SELECT ALL + 0 * - 81 - + + 63 col1
----
-63

query I rowsort
SELECT ALL + + 44 col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT DISTINCT 18 DIV COALESCE ( 25, - - 30, + + CASE WHEN ( 34 ) < NULL THEN ( - - 12 ) + - 31 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT 18 / COALESCE ( 25, - - 30, + + CASE WHEN ( 34 ) < NULL THEN ( - - 12 ) + - 31 END ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL + 12 * - + MIN( + 21 ) AS col2
----
-252

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL + 12 * - + MIN ( + 21 ) AS col2
----
-252

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

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

query I rowsort
SELECT - 67 * 51 + 77
----
-3340

query I rowsort
SELECT + 63 + 84 + + 74 + + - 97 * + 87 AS col0
----
-8218

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - NULLIF ( + COUNT( * ), 50 - - + ( - 95 ) + - 95 + - 72 / - 12 * - CASE 78 WHEN - 32 THEN NULL WHEN - 22 + 7 THEN ( - 29 ) - 91 ELSE NULL END * - 47 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2090
SELECT - NULLIF ( + COUNT ( * ), 50 - - + ( - 95 ) + - 95 + - 72 / - 12 * - CASE 78 WHEN - 32 THEN NULL WHEN - 22 + 7 THEN ( - 29 ) - 91 ELSE NULL END * - 47 ) AS col1
----
-1

query I rowsort
SELECT + 99 + + 63
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT + 75 + 20 * 2 + NULLIF ( - + ( + 80 ), - + 9 ) * + - ( - - 9 ) + 78 * - CAST( - ( ( + COUNT( * ) ) ) * - AVG ( DISTINCT - 84 + 51 ) AS SIGNED )
----
3409

skipif mysql # not compatible
query I rowsort label-2092
SELECT + 75 + 20 * 2 + NULLIF ( - + ( + 80 ), - + 9 ) * + - ( - - 9 ) + 78 * - CAST ( - ( ( + COUNT ( * ) ) ) * - AVG ( DISTINCT - 84 + 51 ) AS INTEGER )
----
3409

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2093
SELECT ALL COUNT( * ), + 90 DIV - COUNT( * ) AS col1
----
1
-90

skipif mysql # not compatible
query II rowsort label-2093
SELECT ALL COUNT ( * ), + 90 / - COUNT ( * ) AS col1
----
1
-90

query I rowsort
SELECT ALL 57 + - 69 AS col2
----
-12

query I rowsort
SELECT + 39 * 6 AS col2
----
234

query I rowsort
SELECT - ( + + 63 ) + - ( + - 87 ) AS col1
----
24

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT + 92 DIV - 81
----
-1

skipif mysql # not compatible
query I rowsort label-2098
SELECT + 92 / - 81
----
-1

query II rowsort
SELECT ALL 98 + + 54 * + 59 AS col2, 2
----
3284
2

query I rowsort
SELECT + 9 * + 83
----
747

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

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

query I rowsort
SELECT DISTINCT - 29 * - 53
----
1537

query I rowsort
SELECT ALL 50 * + 56
----
2800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL + SUM( ( - - NULLIF ( + 66, 83 * + + CAST( - - 46 AS SIGNED ) + - 21 ) ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL + SUM ( ( - - NULLIF ( + 66, 83 * + + CAST ( - - 46 AS INTEGER ) + - 21 ) ) ) AS col1
----
66

query II rowsort
SELECT + 41, CASE + + 74 WHEN - 98 THEN NULL WHEN - - 19 * ( - - 0 ) * 75 + - 91 * - 42 THEN 12 ELSE NULL END AS col1
----
41
NULL

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

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT 85 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT - CASE ( - 89 ) WHEN 9 / 46 * SUM( DISTINCT + 64 ) + - - 92 THEN - 91 END * + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT - CASE ( - 89 ) WHEN 9 / 46 * SUM ( DISTINCT + 64 ) + - - 92 THEN - 91 END * + 93 AS col0
----
NULL

query I rowsort
SELECT + 7 * 53 * + 91 + - 86 AS col1
----
33675

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT DISTINCT + - MAX( ALL + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT + - MAX ( ALL + 50 )
----
-50

query I rowsort
SELECT ALL + NULLIF ( - 22, + 73 ) col1
----
-22

query I rowsort
SELECT DISTINCT + - 10 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT - + NULLIF ( - COALESCE ( - - 66, + COALESCE ( - + 96, - MIN( + 30 ), + + COUNT( * ) - + 90 ) ), - 97 ) * 81
----
5346

skipif mysql # not compatible
query I rowsort label-2112
SELECT - + NULLIF ( - COALESCE ( - - 66, + COALESCE ( - + 96, - MIN ( + 30 ), + + COUNT ( * ) - + 90 ) ), - 97 ) * 81
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT - 19 * 44 + 25 + - CASE - 31 WHEN + 53 THEN + 45 * - - 72 + - + 54 END - - 29 * + 19 + - ( CASE 32 WHEN + CASE 7 WHEN + 73 THEN NULL ELSE + AVG ( DISTINCT 73 ) + + 65 END THEN NULL WHEN 48 - 86 THEN NULL ELSE + 63 * 19 + ( + NULLIF ( ( MIN( 48 ) ), + COUNT( * ) ) ) * COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT - 19 * 44 + 25 + - CASE - 31 WHEN + 53 THEN + 45 * - - 72 + - + 54 END - - 29 * + 19 + - ( CASE 32 WHEN + CASE 7 WHEN + 73 THEN NULL ELSE + AVG ( DISTINCT 73 ) + + 65 END THEN NULL WHEN 48 - 86 THEN NULL ELSE + 63 * 19 + ( + NULLIF ( ( MIN ( 48 ) ), + COUNT ( * ) ) ) * COUNT ( * ) END )
----
NULL

query I rowsort
SELECT DISTINCT - 3 * + NULLIF ( + - 29, + 50 ) * 82 - 44 - + 36 * + 88 * - 89 + + - 36 + + 65 AS col1
----
289071

query I rowsort
SELECT - + 10 * + - 56 + + + 44 AS col1
----
604

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT - 95 * - COUNT( DISTINCT + 39 ) col0
----
95

skipif mysql # not compatible
query I rowsort label-2117
SELECT - 95 * - COUNT ( DISTINCT + 39 ) col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2118
SELECT - MIN( 21 ) * 78 DIV + 88 - + 96 * + + COUNT( * ) * - COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2118
SELECT - MIN ( 21 ) * 78 / + 88 - + 96 * + + COUNT ( * ) * - COUNT ( * ) AS col1
----
78

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

skipif mysql # not compatible
query I rowsort label-2119
SELECT - MIN ( + + 72 )
----
-72

query I rowsort
SELECT + + 69 + + 12 + 85 + NULLIF ( + 51, + ( + COALESCE ( - 96, + 34 ) ) ) AS col1
----
217

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT DISTINCT - 56 DIV - 39 + - - 36 + + 16
----
53

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - 56 / - 39 + - - 36 + + 16
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2123
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, + NULLIF ( - CAST( 88 AS SIGNED ), - AVG ( DISTINCT 78 ) + + 55 ) + + COUNT( * ) * - 28 * + - 64
----
NULL
1704

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL CAST ( NULL AS REAL ) AS col0, + NULLIF ( - CAST ( 88 AS INTEGER ), - AVG ( DISTINCT 78 ) + + 55 ) + + COUNT ( * ) * - 28 * + - 64
----
NULL
1704

query I rowsort
SELECT DISTINCT 87 * - 20 * - 26
----
45240

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

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

query I rowsort
SELECT ALL - 14 + + - 83 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT 40 - 73 * - COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-2127
SELECT 40 - 73 * - COUNT ( * )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT 50 * + 32 * SUM( + 44 ) * + COUNT( * ) + - + 81 AS col2
----
70319

skipif mysql # not compatible
query I rowsort label-2128
SELECT 50 * + 32 * SUM ( + 44 ) * + COUNT ( * ) + - + 81 AS col2
----
70319

query I rowsort
SELECT DISTINCT 51 * - 87 AS col0
----
-4437

query I rowsort
SELECT 95 * ( + 37 )
----
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL COUNT( * ) + 63
----
64

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

query II rowsort
SELECT 64, - 88 AS col1
----
64
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2133
SELECT DISTINCT 29 AS col1, CAST( 17 AS SIGNED )
----
29
17

skipif mysql # not compatible
query II rowsort label-2133
SELECT DISTINCT 29 AS col1, CAST ( 17 AS INTEGER )
----
29
17

query I rowsort
SELECT DISTINCT 9 * + 36 AS col0
----
324

query I rowsort
SELECT 68 + 6
----
74

query I rowsort
SELECT ALL 44 - + - ( + - 24 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT COUNT( * ) * + + COUNT( - 60 ) * 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2137
SELECT COUNT ( * ) * + + COUNT ( - 60 ) * 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2138
SELECT ( + COUNT( * ) ) + + SUM( DISTINCT + 43 ) + - - ( 89 ) * - + 25 + + ( 11 ), + ( + + 48 ) AS col2
----
-2170
48

skipif mysql # not compatible
query II rowsort label-2138
SELECT ( + COUNT ( * ) ) + + SUM ( DISTINCT + 43 ) + - - ( 89 ) * - + 25 + + ( 11 ), + ( + + 48 ) AS col2
----
-2170
48

query II rowsort
SELECT ALL 94 AS col2, - 15 AS col0
----
94
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT + ( - ( - ( 81 ) ) ) DIV + + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT + ( - ( - ( 81 ) ) ) / + + 98 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2141
SELECT 47 DIV COUNT( * ) + + 98 * - - 29 AS col0
----
2889

skipif mysql # not compatible
query I rowsort label-2141
SELECT 47 / COUNT ( * ) + + 98 * - - 29 AS col0
----
2889

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL - - MAX( DISTINCT - 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL - - MAX ( DISTINCT - 31 ) AS col0
----
-31

query I rowsort
SELECT - 43 + 28
----
-15

query II rowsort
SELECT DISTINCT - + 17 AS col2, - ( + 82 ) AS col0
----
-17
-82

query I rowsort
SELECT DISTINCT + 34 * - + 52
----
-1768

query I rowsort
SELECT ALL 40 * 46 AS col2
----
1840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2147
SELECT ( 2 ) * 59 - + COUNT( DISTINCT + - 29 ) + 22 * + - 61 + - 6 + - COALESCE ( + + 81, + + 40 ) DIV 71 DIV 69 AS col1
----
-1231

skipif mysql # not compatible
query I rowsort label-2147
SELECT ( 2 ) * 59 - + COUNT ( DISTINCT + - 29 ) + 22 * + - 61 + - 6 + - COALESCE ( + + 81, + + 40 ) / 71 / 69 AS col1
----
-1231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2148
SELECT + ( + 48 ) + 5 * + 26 * + MAX( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT + ( + 48 ) + 5 * + 26 * + MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 32 * 4
----
128

query I rowsort
SELECT - 38 * - - 47 + 18 - + + 80 * + + 18 AS col2
----
-3208

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

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

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

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL + COUNT ( * ) + - 31 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2153
SELECT DISTINCT - - 24, COUNT( DISTINCT - - 39 ) * + 66 + - 29 - - ( 45 ) col2
----
24
82

skipif mysql # not compatible
query II rowsort label-2153
SELECT DISTINCT - - 24, COUNT ( DISTINCT - - 39 ) * + 66 + - 29 - - ( 45 ) col2
----
24
82

query I rowsort
SELECT ALL 29 + + 35 AS col0
----
64

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

query II rowsort
SELECT + + 71 AS col1, - 90 AS col0
----
71
-90

query I rowsort
SELECT 69 * - - 92 AS col0
----
6348

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT + 74 * ( - ( COUNT( * ) ) ) * 96 AS col2
----
-7104

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + 74 * ( - ( COUNT ( * ) ) ) * 96 AS col2
----
-7104

query I rowsort
SELECT 83 * - 22 + 68
----
-1758

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

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

query II rowsort
SELECT + 2 * - 81 - 30 + + ( - + 84 ) + + + 88 * + + 79 AS col1, 70 - - + 18
----
6676
88

query II rowsort
SELECT DISTINCT + 74 * + 28 AS col2, 29 * - 92 * + + 45 * + 93
----
2072
-11165580

onlyif mysql # aggregate syntax: 
query II rowsort label-2163
SELECT ALL - 83 - COUNT( * ) AS col2, - 80 + 43 + 15
----
-84
-22

skipif mysql # not compatible
query II rowsort label-2163
SELECT ALL - 83 - COUNT ( * ) AS col2, - 80 + 43 + 15
----
-84
-22

query I rowsort
SELECT ALL + 56 * 86 * 10 AS col2
----
48160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2165
SELECT 94 + 40 + 52 * COUNT( 84 ) + CAST( - + CAST( ( - - ( 64 ) ) AS SIGNED ) AS SIGNED ) DIV - + COUNT( * ) + - 11 + 97 * 33 AS col0
----
3440

skipif mysql # not compatible
query I rowsort label-2165
SELECT 94 + 40 + 52 * COUNT ( 84 ) + CAST ( - + CAST ( ( - - ( 64 ) ) AS INTEGER ) AS INTEGER ) / - + COUNT ( * ) + - 11 + 97 * 33 AS col0
----
3440

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL - 84 - - COUNT( * ) * 17 - - 86 * - - 38 col0
----
3201

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL - 84 - - COUNT ( * ) * 17 - - 86 * - - 38 col0
----
3201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2167
SELECT 68 * - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-2167
SELECT 68 * - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-68
NULL

query I rowsort
SELECT NULLIF ( ( 40 ), - - 12 ) + + + 70
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2169
SELECT COALESCE ( - + COUNT( * ), - CAST( - + 55 AS SIGNED ) ) * - 76
----
76

skipif mysql # not compatible
query I rowsort label-2169
SELECT COALESCE ( - + COUNT ( * ), - CAST ( - + 55 AS INTEGER ) ) * - 76
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2170
SELECT DISTINCT + COUNT( * ) DIV COALESCE ( 9, + - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT + COUNT ( * ) / COALESCE ( 9, + - 28 )
----
0

query I rowsort
SELECT ALL 44 * + - 78 + + + 52
----
-3380

query I rowsort
SELECT - 14 * + 64 + + + 12 AS col1
----
-884

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2175
SELECT ALL ( + 69 ) * - 17 / 35 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL ( + 69 ) * - 17 / 35 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2176
SELECT ALL 13 DIV + - 96 AS col0, 52 AS col2
----
0
52

skipif mysql # not compatible
query II rowsort label-2176
SELECT ALL 13 / + - 96 AS col0, 52 AS col2
----
0
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT DISTINCT + COALESCE ( + - ( + ( - 91 ) ), 16, - ( - + 23 ) - MAX( DISTINCT - ( + 18 ) ) ) * + 25 + + 70 AS col0
----
2345

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT + COALESCE ( + - ( + ( - 91 ) ), 16, - ( - + 23 ) - MAX ( DISTINCT - ( + 18 ) ) ) * + 25 + + 70 AS col0
----
2345

query I rowsort
SELECT + 40 * - + 13
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT - 5 * + CASE - + ( + - COUNT( * ) ) WHEN - SUM( ALL 70 ) THEN ( 94 ) WHEN + - 96 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT - 5 * + CASE - + ( + - COUNT ( * ) ) WHEN - SUM ( ALL 70 ) THEN ( 94 ) WHEN + - 96 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2180
SELECT + COALESCE ( CAST( - + 38 AS SIGNED ), SUM( + 87 ) + - + 27 - - - 12 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2180
SELECT + COALESCE ( CAST ( - + 38 AS INTEGER ), SUM ( + 87 ) + - + 27 - - - 12 ) AS col0
----
-38

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

query I rowsort
SELECT ALL 98 * - + NULLIF ( 43, - ( 0 ) )
----
-4214

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2184
SELECT 8, + COUNT( DISTINCT 96 ) * + ( + + 18 ) DIV + 11 - 58 AS col1
----
8
-57

skipif mysql # not compatible
query II rowsort label-2184
SELECT 8, + COUNT ( DISTINCT 96 ) * + ( + + 18 ) / + 11 - 58 AS col1
----
8
-57

query II rowsort
SELECT - ( - - 84 ) * + + 70 AS col1, 91 * + 97 col1
----
-5880
8827

query I rowsort
SELECT + 50 - + ( + 52 ) AS col0
----
-2

query I rowsort
SELECT - 15 * + 34
----
-510

query I rowsort
SELECT ALL + 25 * - - 48 AS col1
----
1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT - ( + - 41 ) - 0 * - 58 + 26 + + 50 + 4 * - 29 + + - 55 * CASE + ( - ( 49 ) ) WHEN - 61 + 25 THEN NULL WHEN + COUNT( * ) THEN - CAST( + 19 AS SIGNED ) + + 68 WHEN - 58 + + 56 THEN NULL ELSE NULL END * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT - ( + - 41 ) - 0 * - 58 + 26 + + 50 + 4 * - 29 + + - 55 * CASE + ( - ( 49 ) ) WHEN - 61 + 25 THEN NULL WHEN + COUNT ( * ) THEN - CAST ( + 19 AS INTEGER ) + + 68 WHEN - 58 + + 56 THEN NULL ELSE NULL END * 5
----
NULL

query II rowsort
SELECT - 34 AS col0, - 23 col0
----
-34
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT ALL COALESCE ( 30, + + MIN( - 8 ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL COALESCE ( 30, + + MIN ( - 8 ) ) AS col0
----
30

query I rowsort
SELECT - 79 * - 76
----
6004

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2194
SELECT - 91, - SUM( - 60 ) + + 91 AS col0
----
-91
151

skipif mysql # not compatible
query II rowsort label-2194
SELECT - 91, - SUM ( - 60 ) + + 91 AS col0
----
-91
151

onlyif mysql # aggregate syntax: 
query II rowsort label-2195
SELECT ALL COUNT( * ), 18 - - NULLIF ( 65, 2 * - + 41 + + 53 + - 84 + 14 + + 80 ) col2
----
1
83

skipif mysql # not compatible
query II rowsort label-2195
SELECT ALL COUNT ( * ), 18 - - NULLIF ( 65, 2 * - + 41 + + 53 + - 84 + 14 + + 80 ) col2
----
1
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2196
SELECT DISTINCT CASE + - 46 WHEN + - 84 / COUNT( * ) + - ( + 27 ) * + CASE - - 45 WHEN + - 6 + COALESCE ( + 76, + 14, - 36, + 60 * 99 + COUNT( * ) * - 26 ) - + CAST( 21 + - 75 AS DECIMAL ) / + 46 THEN + MAX( DISTINCT ( 58 ) ) + + 16 * COUNT( - ( 96 ) ) WHEN + 62 THEN 89 ELSE NULL END THEN - NULLIF ( - COUNT( DISTINCT 53 ), 93 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT CASE + - 46 WHEN + - 84 / COUNT ( * ) + - ( + 27 ) * + CASE - - 45 WHEN + - 6 + COALESCE ( + 76, + 14, - 36, + 60 * 99 + COUNT ( * ) * - 26 ) - + CAST ( 21 + - 75 AS REAL ) / + 46 THEN + MAX ( DISTINCT ( 58 ) ) + + 16 * COUNT ( - ( 96 ) ) WHEN + 62 THEN 89 ELSE NULL END THEN - NULLIF ( - COUNT ( DISTINCT 53 ), 93 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL + NULLIF ( + COUNT( * ), ( + + COUNT( * ) ) ) + - 92 + - + 0 * ( + 46 ) + + SUM( - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + NULLIF ( + COUNT ( * ), ( + + COUNT ( * ) ) ) + - 92 + - + 0 * ( + 46 ) + + SUM ( - 4 )
----
NULL

query I rowsort
SELECT - + 39 * - 91 AS col1
----
3549

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT - 34 DIV + ( 63 ) * + 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT - 34 / + ( 63 ) * + 35 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2201
SELECT - MIN( 60 ) + COALESCE ( + - NULLIF ( 66, + COUNT( * ) ), - 23, + CASE 8 WHEN + 67 * + ( 95 ) * - 15 + + ( 74 ) * + 10 + CAST( NULL AS SIGNED ) / 45 THEN NULL WHEN - 23 THEN - MAX( + 91 ) * + 78 END ) + + 94
----
-32

skipif mysql # not compatible
query I rowsort label-2201
SELECT - MIN ( 60 ) + COALESCE ( + - NULLIF ( 66, + COUNT ( * ) ), - 23, + CASE 8 WHEN + 67 * + ( 95 ) * - 15 + + ( 74 ) * + 10 + CAST ( NULL AS INTEGER ) / 45 THEN NULL WHEN - 23 THEN - MAX ( + 91 ) * + 78 END ) + + 94
----
-32

query I rowsort
SELECT - 91 + 9 * + 31 AS col0
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT - 1 DIV - + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2203
SELECT - 1 / - + 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT DISTINCT + 51 + - COUNT( * ) + - - 85
----
135

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT + 51 + - COUNT ( * ) + - - 85
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL COUNT( * ) * - - 29 + - - 33 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL COUNT ( * ) * - - 29 + - - 33 AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT DISTINCT 62 * + 63 * + CAST( NULL AS SIGNED ) * + 90 * - - 76 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT 62 * + 63 * + CAST ( NULL AS INTEGER ) * + 90 * - - 76 * + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 50 * - CASE - ( 22 ) WHEN - 37 * + 80 + + 51 + 22 THEN NULL ELSE + 24 + + + ( + 5 ) END
----
-1450

query I rowsort
SELECT 63 * + 5 * + COALESCE ( + ( - 58 ), 58 ) + - - 39 + 8
----
-18223

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

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT + 99 * + COUNT ( * ) AS col1
----
99

query I rowsort
SELECT - 8 * + COALESCE ( - 9, + 47 )
----
72

query II rowsort
SELECT - 75, + 6 col0
----
-75
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2212
SELECT ALL MAX( 77 ) DIV + COALESCE ( - COUNT( * ), + - 37 DIV + + COUNT( * ) * - 19 * + 3 * 90, - - 55 + + ( - + ( 19 ) ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL MAX ( 77 ) / + COALESCE ( - COUNT ( * ), + - 37 / + + COUNT ( * ) * - 19 * + 3 * 90, - - 55 + + ( - + ( 19 ) ) ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2213
SELECT + COALESCE ( + MIN( 48 ), 3 ) AS col1, COUNT( * ) * - 14 * + 94
----
48
-1316

skipif mysql # not compatible
query II rowsort label-2213
SELECT + COALESCE ( + MIN ( 48 ), 3 ) AS col1, COUNT ( * ) * - 14 * + 94
----
48
-1316

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT DISTINCT 34 DIV - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT 34 / - 67 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 18 - - CASE + - 27 WHEN - - 1 * + + 22 THEN NULL ELSE 74 END + + CASE - 28 WHEN 46 * + + 14 THEN + + 43 - + 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 18 - - CASE + - 27 WHEN - - 1 * + + 22 THEN NULL ELSE 74 END + + CASE - 28 WHEN 46 * + + 14 THEN + + 43 - + 0 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2217
SELECT CASE - 53 WHEN + - COUNT( * ) - CAST( NULL AS DECIMAL ) THEN + 61 + - 6 WHEN COUNT( * ) * 88 / + 95 THEN NULL ELSE - 66 * - CAST( ( 81 ) AS SIGNED ) - 34 + 8 * 70 + - 10 * + COUNT( * ) END AS col1
----
5862

skipif mysql # not compatible
query I rowsort label-2217
SELECT CASE - 53 WHEN + - COUNT ( * ) - CAST ( NULL AS REAL ) THEN + 61 + - 6 WHEN COUNT ( * ) * 88 / + 95 THEN NULL ELSE - 66 * - CAST ( ( 81 ) AS INTEGER ) - 34 + 8 * 70 + - 10 * + COUNT ( * ) END AS col1
----
5862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT + CASE + - COUNT( * ) WHEN COALESCE ( - + 59, 8 ) / + + CASE + 22 WHEN CAST( NULL AS SIGNED ) / AVG ( ALL + 67 ) * COUNT( - - 47 ) * 76 / - + 68 THEN NULL WHEN - 60 THEN NULL ELSE 99 END * COUNT( * ) THEN + 52 / 39 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT + CASE + - COUNT ( * ) WHEN COALESCE ( - + 59, 8 ) / + + CASE + 22 WHEN CAST ( NULL AS INTEGER ) / AVG ( ALL + 67 ) * COUNT ( - - 47 ) * 76 / - + 68 THEN NULL WHEN - 60 THEN NULL ELSE 99 END * COUNT ( * ) THEN + 52 / 39 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT CASE + 13 WHEN 14 + 80 THEN + + 39 WHEN - COUNT( * ) * - 20 THEN NULL END, CASE WHEN 38 IS NOT NULL THEN NULL WHEN NOT + 46 NOT IN ( - 78 / - + 21 ) THEN ( 63 ) END * 38
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2219
SELECT CASE + 13 WHEN 14 + 80 THEN + + 39 WHEN - COUNT ( * ) * - 20 THEN NULL END, CASE WHEN 38 IS NOT NULL THEN NULL WHEN NOT + 46 NOT IN ( - 78 / - + 21 ) THEN ( 63 ) END * 38
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT + 30 * - + 89 * - + 38 * + 75 + - 15 + - COUNT( * ) AS col1
----
7609484

skipif mysql # not compatible
query I rowsort label-2220
SELECT + 30 * - + 89 * - + 38 * + 75 + - 15 + - COUNT ( * ) AS col1
----
7609484

query I rowsort
SELECT - 15 * + ( + 88 )
----
-1320

query I rowsort
SELECT - 33 - 95 AS col2
----
-128

query I rowsort
SELECT - 91 * - COALESCE ( 27, + + 72 * + 84 + - 30 * - - 55 )
----
2457

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

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

query I rowsort
SELECT + 97 + - 58
----
39

query I rowsort
SELECT + 55 * + + 21 * 50 AS col2
----
57750

query I rowsort
SELECT + + 99 * ( - 88 )
----
-8712

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - COUNT( * ) + - + 42 + 91
----
48

skipif mysql # not compatible
query I rowsort label-2228
SELECT - COUNT ( * ) + - + 42 + 91
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - COUNT( * ) + - 11 + 98 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2229
SELECT - COUNT ( * ) + - 11 + 98 AS col2
----
86

query I rowsort
SELECT - 45 + + 35 + - + 72
----
-82

query I rowsort
SELECT - 89 * 63
----
-5607

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT DISTINCT + ( + COUNT( * ) ) * - 78 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT + ( + COUNT ( * ) ) * - 78 AS col0
----
-78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT DISTINCT - - CAST( - + 7 AS SIGNED ) + - + 77 * - + CAST( NULL AS SIGNED ) * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT - - CAST ( - + 7 AS INTEGER ) + - + 77 * - + CAST ( NULL AS INTEGER ) * 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2235
SELECT ALL - 72 + + 76, + 86 * CASE + COUNT( * ) WHEN 81 THEN 65 + + + 81 + - CASE 88 WHEN - - 80 * 72 THEN - 74 END ELSE + 52 END col2
----
4
4472

skipif mysql # not compatible
query II rowsort label-2235
SELECT ALL - 72 + + 76, + 86 * CASE + COUNT ( * ) WHEN 81 THEN 65 + + + 81 + - CASE 88 WHEN - - 80 * 72 THEN - 74 END ELSE + 52 END col2
----
4
4472

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + 25 * - MAX( - 58 ) AS col0
----
1450

skipif mysql # not compatible
query I rowsort label-2236
SELECT + 25 * - MAX ( - 58 ) AS col0
----
1450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT - 92 * 49 * + 0 * CAST( - 19 AS SIGNED ) * - + 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2237
SELECT - 92 * 49 * + 0 * CAST ( - 19 AS INTEGER ) * - + 23 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT - CASE + COUNT( 13 ) WHEN - 99 * + + ( - + ( - CAST( NULL AS SIGNED ) ) ) * - 85 + + ( - COUNT( * ) ) + - + 19 THEN NULL WHEN 92 + + 79 THEN + - CASE 56 WHEN + ( + COUNT( 66 ) ) THEN 43 END * 56 END * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT - CASE + COUNT ( 13 ) WHEN - 99 * + + ( - + ( - CAST ( NULL AS INTEGER ) ) ) * - 85 + + ( - COUNT ( * ) ) + - + 19 THEN NULL WHEN 92 + + 79 THEN + - CASE 56 WHEN + ( + COUNT ( 66 ) ) THEN 43 END * 56 END * 35
----
NULL

query I rowsort
SELECT 90 * - 31 * 22 + + 6
----
-61374

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2240
SELECT + - 6 DIV + + 4 - + 18 * - 22 - - - COUNT( * ) AS col1, 94 + - ( + - 9 ) * 73 + - + 59 + + - 5 + + 52 * - - 96 + 29
----
394
5708

skipif mysql # not compatible
query II rowsort label-2240
SELECT + - 6 / + + 4 - + 18 * - 22 - - - COUNT ( * ) AS col1, 94 + - ( + - 9 ) * 73 + - + 59 + + - 5 + + 52 * - - 96 + 29
----
394
5708

query I rowsort
SELECT + NULLIF ( + 98, + 96 )
----
98

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

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - 24 / - - COUNT ( * )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT ALL 81 * 9 DIV + - 36 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL 81 * 9 / + - 36 AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2244
SELECT 85 + + COUNT( * ) DIV - 99 AS col1, - ( + CASE + 40 WHEN + + COUNT( * ) THEN + COUNT( * ) ELSE NULL END )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-2244
SELECT 85 + + COUNT ( * ) / - 99 AS col1, - ( + CASE + 40 WHEN + + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END )
----
85
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2245
SELECT DISTINCT - 52 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT - 52 * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 43 * - 60 AS col2
----
2580

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2247
SELECT 68 * 20 * - - CAST( NULL AS DECIMAL ) * + 5 * - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT 68 * 20 * - - CAST ( NULL AS REAL ) * + 5 * - 29 AS col1
----
NULL

query I rowsort
SELECT 4 * + 93 AS col1
----
372

query I rowsort
SELECT NULLIF ( + 21, + - 91 / + - 73 ) + - 82
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT 23 DIV - + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2250
SELECT 23 / - + 95 AS col2
----
0

query I rowsort
SELECT 94 * 4 AS col0
----
376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2252
SELECT ALL - 68 AS col1, - COUNT( * ) + + + MIN( DISTINCT CAST( + 13 AS SIGNED ) ) AS col0
----
-68
12

skipif mysql # not compatible
query II rowsort label-2252
SELECT ALL - 68 AS col1, - COUNT ( * ) + + + MIN ( DISTINCT CAST ( + 13 AS INTEGER ) ) AS col0
----
-68
12

query I rowsort
SELECT DISTINCT 33 + - ( - - 7 ) AS col2
----
26

query I rowsort
SELECT 19 * - - 40
----
760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2255
SELECT ALL 79 DIV - 14 * COUNT( * ) AS col2, 91 * + - 64
----
-5
-5824

skipif mysql # not compatible
query II rowsort label-2255
SELECT ALL 79 / - 14 * COUNT ( * ) AS col2, 91 * + - 64
----
-5
-5824

query II rowsort
SELECT ALL 86 AS col0, 44 AS col1
----
86
44

query I rowsort
SELECT DISTINCT 97 + + 30 * - 69 - - - 85 + + - 99 AS col0
----
-2157

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT ( + ( + 58 ) ) + - COUNT( * ) col1
----
57

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT ( + ( + 58 ) ) + - COUNT ( * ) col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL COUNT( * ) + + 19 col2
----
20

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL COUNT ( * ) + + 19 col2
----
20

query II rowsort
SELECT 38 AS col1, 41 + + - 51 AS col2
----
38
-10

query II rowsort
SELECT + 60 - - + ( - 18 ), 84 col1
----
42
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2262
SELECT CASE + COUNT( * ) WHEN - 97 THEN - 92 WHEN - COUNT( * ) THEN + COALESCE ( CAST( NULL AS SIGNED ), - 18, CAST( + 9 AS DECIMAL ) ) END / - 4 * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT CASE + COUNT ( * ) WHEN - 97 THEN - 92 WHEN - COUNT ( * ) THEN + COALESCE ( CAST ( NULL AS INTEGER ), - 18, CAST ( + 9 AS REAL ) ) END / - 4 * 58 AS col1
----
NULL

query I rowsort
SELECT ALL + 57 + 38
----
95

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

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

query II rowsort
SELECT ALL + 12 AS col1, - 51 col1
----
12
-51

query I rowsort
SELECT ALL + + 87 + + 31
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2267
SELECT ALL - 58 col0, - COUNT( * )
----
-58
-1

skipif mysql # not compatible
query II rowsort label-2267
SELECT ALL - 58 col0, - COUNT ( * )
----
-58
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2268
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - 25
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-2268
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - 25
----
NULL
-25

query I rowsort
SELECT ALL 6 - + 21 * + 68
----
-1422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT + 76 + + 29 + + CAST( + 0 AS SIGNED ) + + 56 - - 61 AS col2
----
222

skipif mysql # not compatible
query I rowsort label-2270
SELECT + 76 + + 29 + + CAST ( + 0 AS INTEGER ) + + 56 - - 61 AS col2
----
222

query I rowsort
SELECT COALESCE ( + - 89, + 28 ) + + - ( - - 23 ) AS col2
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT + CAST( + 58 AS SIGNED ) * 67 * 19
----
73834

skipif mysql # not compatible
query I rowsort label-2272
SELECT + CAST ( + 58 AS INTEGER ) * 67 * 19
----
73834

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT DISTINCT 68 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT 68 / + 48
----
1

query I rowsort
SELECT ALL + ( + ( + 54 ) ) * 94
----
5076

query I rowsort
SELECT ALL 95 * + + 98 AS col1
----
9310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT ALL - CAST( - - 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL - CAST ( - - 59 AS INTEGER )
----
-59

query I rowsort
SELECT 88 + 60
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL - COALESCE ( + 95, - 48, - 27 + + - 14 * + COUNT( * ) ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - COALESCE ( + 95, - 48, - 27 + + - 14 * + COUNT ( * ) ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT + 23 * - 2 + - 35 - + 95 col0, MIN( - - 3 )
----
-176
3

skipif mysql # not compatible
query II rowsort label-2279
SELECT + 23 * - 2 + - 35 - + 95 col0, MIN ( - - 3 )
----
-176
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT CASE 96 WHEN + 45 * + + CASE - 29 WHEN 39 THEN NULL ELSE + - 18 END * - 55 * 99 THEN - + COUNT( * ) WHEN 83 - + - COUNT( * ) THEN - - 28 * - 45 WHEN + - 10 THEN - + 16 ELSE NULL END / - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT CASE 96 WHEN + 45 * + + CASE - 29 WHEN 39 THEN NULL ELSE + - 18 END * - 55 * 99 THEN - + COUNT ( * ) WHEN 83 - + - COUNT ( * ) THEN - - 28 * - 45 WHEN + - 10 THEN - + 16 ELSE NULL END / - 22 AS col1
----
NULL

query I rowsort
SELECT 4 * + 0 * 72 col1
----
0

query II rowsort
SELECT 13 * + 16 AS col0, 93
----
208
93

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

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

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

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

query I rowsort
SELECT ALL - ( - + 75 ) + 23 col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL + MAX( ALL - 86 ) + - MAX( + + 18 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL + MAX ( ALL - 86 ) + - MAX ( + + 18 ) AS col1
----
-104

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2287
SELECT - ( COUNT( * ) ) * + 27 DIV - + 50 - - - NULLIF ( - 67, CAST( NULL AS DECIMAL ) ) + + + 10 + - 87 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2287
SELECT - ( COUNT ( * ) ) * + 27 / - + 50 - - - NULLIF ( - 67, CAST ( NULL AS REAL ) ) + + + 10 + - 87 AS col2
----
-10

query I rowsort
SELECT ALL - 3 * ( - 58 ) col2
----
174

query I rowsort
SELECT ALL + 31 + + 41
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2290
SELECT - MAX( ALL 93 ) * - - 76 + + COUNT( * ) AS col2, - 74
----
-7067
-74

skipif mysql # not compatible
query II rowsort label-2290
SELECT - MAX ( ALL 93 ) * - - 76 + + COUNT ( * ) AS col2, - 74
----
-7067
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT 19 + + COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2291
SELECT 19 + + COUNT ( * ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT MAX( ALL - 91 ) - + 4 * + + MAX( ( 27 ) )
----
-199

skipif mysql # not compatible
query I rowsort label-2292
SELECT MAX ( ALL - 91 ) - + 4 * + + MAX ( ( 27 ) )
----
-199

query I rowsort
SELECT DISTINCT - 44 * + 0
----
0

query I rowsort
SELECT ALL + 86 + 73 AS col1
----
159

query II rowsort
SELECT - - 6 AS col0, + 19 * + - 26 col0
----
6
-494

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2297
SELECT - 98 AS col1, - 47 - + SUM( - + ( - 35 ) ) - - 91 AS col0
----
-98
9

skipif mysql # not compatible
query II rowsort label-2297
SELECT - 98 AS col1, - 47 - + SUM ( - + ( - 35 ) ) - - 91 AS col0
----
-98
9

query I rowsort
SELECT + - 50 + 91
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL - NULLIF ( + COUNT( * ), - 13 * + - 16 ) - 39
----
-40

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL - NULLIF ( + COUNT ( * ), - 13 * + - 16 ) - 39
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - - 39 * + SUM( 37 )
----
1443

skipif mysql # not compatible
query I rowsort label-2300
SELECT - - 39 * + SUM ( 37 )
----
1443

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT + - 1 * - MIN( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-2301
SELECT + - 1 * - MIN ( 37 )
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2302
SELECT + 44 + + + CAST( NULL AS DECIMAL ) - 81 + - COALESCE ( + 42, + CAST( NULL AS DECIMAL ) ) * + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT + 44 + + + CAST ( NULL AS REAL ) - 81 + - COALESCE ( + 42, + CAST ( NULL AS REAL ) ) * + - 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2303
SELECT ALL 54 AS col1, - 48 DIV ( + + CASE + - 80 WHEN + - 75 + 46 THEN + - 20 * + 24 ELSE + + 52 END ) + COUNT( * ) + + - COUNT( * )
----
54
0

skipif mysql # not compatible
query II rowsort label-2303
SELECT ALL 54 AS col1, - 48 / ( + + CASE + - 80 WHEN + - 75 + 46 THEN + - 20 * + 24 ELSE + + 52 END ) + COUNT ( * ) + + - COUNT ( * )
----
54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT + 83 + CASE 23 WHEN COALESCE ( 78, + ( 86 ) ) * - + 6 THEN NULL WHEN - 33 - 84 THEN NULL ELSE + MIN( - 0 ) END col1
----
83

skipif mysql # not compatible
query I rowsort label-2304
SELECT + 83 + CASE 23 WHEN COALESCE ( 78, + ( 86 ) ) * - + 6 THEN NULL WHEN - 33 - 84 THEN NULL ELSE + MIN ( - 0 ) END col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2305
SELECT DISTINCT + + COUNT( * ) * + + 83 / + 80 - 79 + - CAST( NULL AS DECIMAL ) + + + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT + + COUNT ( * ) * + + 83 / + 80 - 79 + - CAST ( NULL AS REAL ) + + + 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2306
SELECT ALL NULLIF ( - - 68, - 26 ) DIV + COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL NULLIF ( - - 68, - 26 ) / + COUNT ( * ) AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT + 10 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-2307
SELECT + 10 / 94
----
0

query II rowsort
SELECT ALL + 65 AS col2, 94 * + - 0
----
65
0

query I rowsort
SELECT + + 32 + 85 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ( + - NULLIF ( 61, - 7 * 12 * + + MAX( ALL + - 43 ) ) ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-2310
SELECT ( + - NULLIF ( 61, - 7 * 12 * + + MAX ( ALL + - 43 ) ) ) col1
----
-61

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

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

query II rowsort
SELECT ( + 76 ) AS col0, 65 AS col2
----
76
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + 18 * + COUNT( DISTINCT + 66 ) + 77 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2313
SELECT + 18 * + COUNT ( DISTINCT + 66 ) + 77 AS col2
----
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2314
SELECT CAST( NULL AS DECIMAL ) / 82 * - - 97 - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT CAST ( NULL AS REAL ) / 82 * - - 97 - 79
----
NULL

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

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

query II rowsort
SELECT ALL 6 * + 64 + + 4 AS col1, - 57 + 88 * - 62 + - 80
----
388
-5593

onlyif mysql # aggregate syntax: 
query II rowsort label-2317
SELECT ALL + SUM( ALL + - ( 27 ) ) * - 36 + 46 AS col1, + 55 + - ( + 63 ) + + + 67
----
1018
59

skipif mysql # not compatible
query II rowsort label-2317
SELECT ALL + SUM ( ALL + - ( 27 ) ) * - 36 + 46 AS col1, + 55 + - ( + 63 ) + + + 67
----
1018
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT - 43 * + CAST( 43 AS SIGNED ) - 59 AS col1
----
-1908

skipif mysql # not compatible
query I rowsort label-2318
SELECT - 43 * + CAST ( 43 AS INTEGER ) - 59 AS col1
----
-1908

query I rowsort
SELECT ALL + ( 85 ) * + 57 + 89
----
4934

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT CASE 66 WHEN 41 THEN MIN( + - 3 ) + - - 5 - - - 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT CASE 66 WHEN 41 THEN MIN ( + - 3 ) + - - 5 - - - 51 ELSE NULL END
----
NULL

query I rowsort
SELECT + 97 * 2
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT COALESCE ( + COUNT( * ), + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-2322
SELECT COALESCE ( + COUNT ( * ), + 51 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2323
SELECT - 14 DIV - + SUM( - 48 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 14 / - + SUM ( - 48 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2324
SELECT - COALESCE ( - 4, - + 41 + + - COALESCE ( - 62, 64 + + - 99, + + 96 + ( + COUNT( * ) ) + - 16 DIV + - 67 ) * + 9, ( - 95 ) ) + COALESCE ( 96, 62 + + 96 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2324
SELECT - COALESCE ( - 4, - + 41 + + - COALESCE ( - 62, 64 + + - 99, + + 96 + ( + COUNT ( * ) ) + - 16 / + - 67 ) * + 9, ( - 95 ) ) + COALESCE ( 96, 62 + + 96 ) AS col0
----
100

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT DISTINCT + COUNT( * ) * + - MIN( ALL 33 ) AS col2, + 52 + COUNT( * ) * + 0 * + + ( - + COUNT( * ) )
----
-33
52

skipif mysql # not compatible
query II rowsort label-2326
SELECT DISTINCT + COUNT ( * ) * + - MIN ( ALL 33 ) AS col2, + 52 + COUNT ( * ) * + 0 * + + ( - + COUNT ( * ) )
----
-33
52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2328
SELECT - - COUNT( ALL - - ( + + 8 ) ) * 62 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT - - COUNT ( ALL - - ( + + 8 ) ) * 62 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT + - 66 * + NULLIF ( COUNT( * ), + 88 * + 97 ) * 42
----
-2772

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT + - 66 * + NULLIF ( COUNT ( * ), + 88 * + 97 ) * 42
----
-2772

query I rowsort
SELECT DISTINCT + + 40 * + 39
----
1560

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT - ( 69 ) - - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-2333
SELECT - ( 69 ) - - COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT - + NULLIF ( + + COUNT( * ), 47 ) * + 78
----
-78

skipif mysql # not compatible
query I rowsort label-2334
SELECT - + NULLIF ( + + COUNT ( * ), 47 ) * + 78
----
-78

query I rowsort
SELECT DISTINCT 29 * - 22 * COALESCE ( + + 19, 93, 94 ) + + + ( + ( + 68 ) ) AS col2
----
-12054

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2336
SELECT + + 78 - - 59 AS col0, CAST( + 90 AS SIGNED ) AS col2
----
137
90

skipif mysql # not compatible
query II rowsort label-2336
SELECT + + 78 - - 59 AS col0, CAST ( + 90 AS INTEGER ) AS col2
----
137
90

query II rowsort
SELECT - - 9 + 62, 98 * - 76 col1
----
71
-7448

query I rowsort
SELECT + - 3 - - 66
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT + COALESCE ( - 2, + - 96 ) * - COUNT( + 62 ) * + 32 + - 84 + + 92
----
72

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT + COALESCE ( - 2, + - 96 ) * - COUNT ( + 62 ) * + 32 + - 84 + + 92
----
72

query II rowsort
SELECT + + 28 * - 72 * 96, - 8 AS col1
----
-193536
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT - CAST( NULL AS SIGNED ) + - CASE 75 WHEN - 0 THEN + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT - CAST ( NULL AS INTEGER ) + - CASE 75 WHEN - 0 THEN + 66 END
----
NULL

query I rowsort
SELECT + 93 - - - 5 AS col2
----
88

query I rowsort
SELECT + 63 + - + 19
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL - 75 + + + 41 + ( - COUNT( * ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - 75 + + + 41 + ( - COUNT ( * ) ) AS col0
----
-35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2346
SELECT ALL + MIN( DISTINCT 91 ) DIV 84 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL + MIN ( DISTINCT 91 ) / 84 + + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT DISTINCT - 7 DIV + 29 + - 93 * - 99
----
9207

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT - 7 / + 29 + - 93 * - 99
----
9207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2348
SELECT DISTINCT + 24 DIV - 20 + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT + 24 / - 20 + - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2349
SELECT + COALESCE ( + COALESCE ( + - 51, + 47 DIV NULLIF ( - 90, + 60 ) + MAX( ALL - 80 ) ), - 69, COUNT( * ) DIV 27 + + 90 ) col0, 85 * - + COUNT( * ) AS col0
----
-51
-85

skipif mysql # not compatible
query II rowsort label-2349
SELECT + COALESCE ( + COALESCE ( + - 51, + 47 / NULLIF ( - 90, + 60 ) + MAX ( ALL - 80 ) ), - 69, COUNT ( * ) / 27 + + 90 ) col0, 85 * - + COUNT ( * ) AS col0
----
-51
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2350
SELECT ALL + 74 DIV COUNT( DISTINCT 77 ) + 85 * - - 42
----
3644

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + 74 / COUNT ( DISTINCT 77 ) + 85 * - - 42
----
3644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2351
SELECT ALL - ( - - COUNT( * ) ) DIV 35 + 21 * - 11 AS col2
----
-231

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - ( - - COUNT ( * ) ) / 35 + 21 * - 11 AS col2
----
-231

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2353
SELECT + 30 AS col1, + 61 DIV - COUNT( * )
----
30
-61

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

query I rowsort
SELECT + 91 + 74
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2355
SELECT DISTINCT ( + 92 ) * - 73 * + 78 + - CAST( - 10 AS SIGNED ) AS col0
----
-523838

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT ( + 92 ) * - 73 * + 78 + - CAST ( - 10 AS INTEGER ) AS col0
----
-523838

query I rowsort
SELECT ALL - 94 * - - 9 AS col0
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + CASE + - 80 WHEN + 26 * 52 THEN 0 * + + ( 78 ) - 67 / + 33 END * - + 41 + 18 + 81 * SUM( DISTINCT + - 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT + CASE + - 80 WHEN + 26 * 52 THEN 0 * + + ( 78 ) - 67 / + 33 END * - + 41 + 18 + 81 * SUM ( DISTINCT + - 56 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2358
SELECT ALL COALESCE ( - 65, - - 8 + 48 + - 52, - COUNT( * ) ) - + - COUNT( * ) * + 59, + MAX( ALL 81 ) AS col0
----
-6
81

skipif mysql # not compatible
query II rowsort label-2358
SELECT ALL COALESCE ( - 65, - - 8 + 48 + - 52, - COUNT ( * ) ) - + - COUNT ( * ) * + 59, + MAX ( ALL 81 ) AS col0
----
-6
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT ALL - COALESCE ( + NULLIF ( - 84, CASE + 35 WHEN - + 14 THEN - 29 END * - CAST( NULL AS SIGNED ) ), + COALESCE ( 26, 14 + + 49 ) + - ( + 67 ), COALESCE ( - + 82, - NULLIF ( MAX( ALL 29 ), COUNT( * ) ) * 67 ), MIN( 74 ) )
----
84

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL - COALESCE ( + NULLIF ( - 84, CASE + 35 WHEN - + 14 THEN - 29 END * - CAST ( NULL AS INTEGER ) ), + COALESCE ( 26, 14 + + 49 ) + - ( + 67 ), COALESCE ( - + 82, - NULLIF ( MAX ( ALL 29 ), COUNT ( * ) ) * 67 ), MIN ( 74 ) )
----
84

query I rowsort
SELECT 13 * - 7
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2361
SELECT - 67 * - - 55 * 57 + CAST( - ( ( - 54 ) ) AS SIGNED ) + - ( + + 45 ) AS col0
----
-210036

skipif mysql # not compatible
query I rowsort label-2361
SELECT - 67 * - - 55 * 57 + CAST ( - ( ( - 54 ) ) AS INTEGER ) + - ( + + 45 ) AS col0
----
-210036

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

skipif mysql # not compatible
query I rowsort label-2362
SELECT 43 / - - COUNT ( * )
----
43

query I rowsort
SELECT 46 + + + 96 + - - 31 * + - COALESCE ( - 29, - 86 * + 88 ) AS col1
----
1041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT ALL - CAST( + 28 AS SIGNED ) * - 35
----
980

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL - CAST ( + 28 AS INTEGER ) * - 35
----
980

onlyif mysql # DIV for integer division: 
query I rowsort label-2365
SELECT 23 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-2365
SELECT 23 / + 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT DISTINCT - 51 DIV + + 20
----
-2

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT - 51 / + + 20
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2367
SELECT ( - 23 ) DIV + SUM( DISTINCT - 81 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2367
SELECT ( - 23 ) / + SUM ( DISTINCT - 81 ) AS col1
----
0

query I rowsort
SELECT ALL - 18 * - 65
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT + 60 + + 45 * - 73 + COUNT( * ) AS col0
----
-3224

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT + 60 + + 45 * - 73 + COUNT ( * ) AS col0
----
-3224

query I rowsort
SELECT + 36 * - 34 AS col1
----
-1224

query I rowsort
SELECT 61 + 52
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT + COUNT( * ) + 1 * + CASE + 2 WHEN + 85 + - COALESCE ( + 55, - 58 * + + COUNT( * ) + - - 81 + - + 30 * 41 ) THEN NULL ELSE 28 END
----
29

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT + COUNT ( * ) + 1 * + CASE + 2 WHEN + 85 + - COALESCE ( + 55, - 58 * + + COUNT ( * ) + - - 81 + - + 30 * 41 ) THEN NULL ELSE 28 END
----
29

query II rowsort
SELECT - 51 AS col0, 72 AS col0
----
-51
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2374
SELECT ALL 73 AS col2, COUNT( * ) + CAST( 83 AS SIGNED ) + 66 + - + 92 + - 5 * 23 * + + 77
----
73
-8797

skipif mysql # not compatible
query II rowsort label-2374
SELECT ALL 73 AS col2, COUNT ( * ) + CAST ( 83 AS INTEGER ) + 66 + - + 92 + - 5 * 23 * + + 77
----
73
-8797

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

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

query I rowsort
SELECT 88 * - - ( - 14 )
----
-1232

query I rowsort
SELECT DISTINCT + 62 + - + 20
----
42

query I rowsort
SELECT ALL - 80 + + 18
----
-62

query I rowsort
SELECT ALL 69 * + 86
----
5934

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT 32 DIV 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2381
SELECT 32 / 59 AS col0
----
0

query II rowsort
SELECT ALL - 44 + - 50, - 23 AS col0
----
-94
-23

query II rowsort
SELECT 3 * - 47 AS col0, ( - 67 )
----
-141
-67

query I rowsort
SELECT ALL - 35 * + 63
----
-2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT - NULLIF ( MIN( - 27 ), + - 89 * - + 7 + - - 9 ) DIV + ( - ( - + 79 ) ) + + MIN( - - 10 ) - 20 - + - 34
----
24

skipif mysql # not compatible
query I rowsort label-2385
SELECT - NULLIF ( MIN ( - 27 ), + - 89 * - + 7 + - - 9 ) / + ( - ( - + 79 ) ) + + MIN ( - - 10 ) - 20 - + - 34
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2386
SELECT 22 - 35 * + MAX( DISTINCT - 93 ) AS col1, - 73 + + + 34 - - 97
----
3277
58

skipif mysql # not compatible
query II rowsort label-2386
SELECT 22 - 35 * + MAX ( DISTINCT - 93 ) AS col1, - 73 + + + 34 - - 97
----
3277
58

query I rowsort
SELECT 57 * - - 35 * 62 AS col2
----
123690

query II rowsort
SELECT DISTINCT - ( + + 90 ) AS col1, - 27 AS col0
----
-90
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - 27 * + MIN( DISTINCT - + 17 ) * - 54 AS col2
----
-24786

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - 27 * + MIN ( DISTINCT - + 17 ) * - 54 AS col2
----
-24786

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2391
SELECT ALL 55 DIV - 46 AS col0, 25 col2
----
-1
25

skipif mysql # not compatible
query II rowsort label-2391
SELECT ALL 55 / - 46 AS col0, 25 col2
----
-1
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2392
SELECT + 96 DIV 20 - - + CAST( + + 3 AS SIGNED ) * ( COUNT( * ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2392
SELECT + 96 / 20 - - + CAST ( + + 3 AS INTEGER ) * ( COUNT ( * ) ) AS col1
----
7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2394
SELECT ALL + MIN( DISTINCT + 2 ) * 84 * - 23 AS col0, 25 col0
----
-3864
25

skipif mysql # not compatible
query II rowsort label-2394
SELECT ALL + MIN ( DISTINCT + 2 ) * 84 * - 23 AS col0, 25 col0
----
-3864
25

query I rowsort
SELECT + NULLIF ( - - 11, 49 ) AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT 58 + - 95 DIV 8
----
47

skipif mysql # not compatible
query I rowsort label-2396
SELECT 58 + - 95 / 8
----
47

query I rowsort
SELECT DISTINCT - 66 * 35
----
-2310

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT + - MIN( + 89 ) AS col0, + 72 AS col2
----
-89
72

skipif mysql # not compatible
query II rowsort label-2398
SELECT + - MIN ( + 89 ) AS col0, + 72 AS col2
----
-89
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT 7 * - + MIN( ALL + + ( + 85 ) ) * - 44 AS col0
----
26180

skipif mysql # not compatible
query I rowsort label-2399
SELECT 7 * - + MIN ( ALL + + ( + 85 ) ) * - 44 AS col0
----
26180

query I rowsort
SELECT ALL - 22 + + 30 * + 33 * + 86 * - 5 AS col1
----
-425722

onlyif mysql # aggregate syntax: 
query II rowsort label-2401
SELECT 30 * + - 83 AS col2, COUNT( * ) AS col2
----
-2490
1

skipif mysql # not compatible
query II rowsort label-2401
SELECT 30 * + - 83 AS col2, COUNT ( * ) AS col2
----
-2490
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT DISTINCT + 39 + - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT + 39 + - - COUNT ( * )
----
40

query II rowsort
SELECT ( - - 83 ), - 64 AS col2
----
83
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2404
SELECT ALL - ( - - NULLIF ( - COUNT( ALL - - 95 ), + + 30 - - COUNT( * ) - - 35 + - CAST( NULL AS SIGNED ) * 21 * + 25 ) ) + 33 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - ( - - NULLIF ( - COUNT ( ALL - - 95 ), + + 30 - - COUNT ( * ) - - 35 + - CAST ( NULL AS INTEGER ) * 21 * + 25 ) ) + 33 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2405
SELECT COUNT( * ) + - + 53 AS col1, + NULLIF ( - 67, + 27 ) + 36 * + COUNT( - 21 ) AS col1
----
-52
-31

skipif mysql # not compatible
query II rowsort label-2405
SELECT COUNT ( * ) + - + 53 AS col1, + NULLIF ( - 67, + 27 ) + 36 * + COUNT ( - 21 ) AS col1
----
-52
-31

query I rowsort
SELECT ALL + CASE + 82 WHEN ( - + 76 ) THEN - - 79 END + - + 44 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 21 * - 43
----
903

query I rowsort
SELECT ALL + ( 97 ) * 71 col1
----
6887

query I rowsort
SELECT ALL - 48 + 78
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT 23 - - COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2410
SELECT 23 - - COUNT ( * ) AS col2
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT 12 + + + COUNT( DISTINCT - 63 ) + - 1
----
12

skipif mysql # not compatible
query I rowsort label-2412
SELECT 12 + + + COUNT ( DISTINCT - 63 ) + - 1
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL COUNT( DISTINCT 52 )
----
1

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL COUNT ( DISTINCT 52 )
----
1

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

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

query I rowsort
SELECT ALL NULLIF ( 20, 86 - - 58 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT - 67 * - + COUNT( * ) col0
----
67

skipif mysql # not compatible
query I rowsort label-2417
SELECT - 67 * - + COUNT ( * ) col0
----
67

query I rowsort
SELECT ALL + CASE 54 WHEN - + CASE + + CASE - - 38 WHEN - + 66 THEN - - 3 END WHEN + 89 THEN 34 ELSE NULL END THEN NULL WHEN - 81 THEN NULL WHEN 17 THEN - 50 + - 69 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT ALL 14 * - - CAST( 94 AS SIGNED ) * - 7
----
-9212

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL 14 * - - CAST ( 94 AS INTEGER ) * - 7
----
-9212

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL + MAX( + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL + MAX ( + 0 ) AS col1
----
0

query I rowsort
SELECT - 32 * - 98 * - - 6 * + + 92 AS col0
----
1731072

query I rowsort
SELECT - 37 * + 96
----
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT - 96 * + NULLIF ( + + MIN( DISTINCT - 64 ), 73 / + + 5 )
----
6144

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT - 96 * + NULLIF ( + + MIN ( DISTINCT - 64 ), 73 / + + 5 )
----
6144

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT 31 * + 11 * + + MAX( - ( + - 46 ) ) - - + 3 + - CAST( NULL AS SIGNED ) + + 12 + + 41 + - COUNT( + + 74 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT 31 * + 11 * + + MAX ( - ( + - 46 ) ) - - + 3 + - CAST ( NULL AS INTEGER ) + + 12 + + 41 + - COUNT ( + + 74 ) AS col2
----
NULL

query II rowsort
SELECT ALL + + 68 AS col0, 18 AS col0
----
68
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT + COALESCE ( 74, 66 ) DIV + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-2427
SELECT + COALESCE ( 74, 66 ) / + + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL - + 71 * - + 22 + - + 23 - + COUNT( * )
----
1538

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - + 71 * - + 22 + - + 23 - + COUNT ( * )
----
1538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT + + CAST( + 81 AS SIGNED ) + + - 37 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2429
SELECT + + CAST ( + 81 AS INTEGER ) + + - 37 AS col2
----
44

query I rowsort
SELECT - - 80 + + 83
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2431
SELECT ALL + 16 * - 33 + - - CAST( NULL AS SIGNED ) + AVG ( - 22 ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + 16 * - 33 + - - CAST ( NULL AS INTEGER ) + AVG ( - 22 ) * - 2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL + ( + SUM( ALL - 19 ) ) * + - 32 * + + 39 AS col2
----
23712

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + ( + SUM ( ALL - 19 ) ) * + - 32 * + + 39 AS col2
----
23712

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT - 28 * + MAX( + 66 ) + 78 AS col0
----
-1770

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - 28 * + MAX ( + 66 ) + 78 AS col0
----
-1770

query I rowsort
SELECT + 10 + - 34
----
-24

query I rowsort
SELECT - NULLIF ( + 75, + 72 ) AS col0
----
-75

query II rowsort
SELECT DISTINCT 5 AS col0, - 14 * 88 AS col1
----
5
-1232

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT ALL SUM( ALL + - 41 ) col1, 26 + 26
----
-41
52

skipif mysql # not compatible
query II rowsort label-2439
SELECT ALL SUM ( ALL + - 41 ) col1, 26 + 26
----
-41
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - 4 * MAX( DISTINCT + - 13 )
----
52

skipif mysql # not compatible
query I rowsort label-2440
SELECT - 4 * MAX ( DISTINCT + - 13 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2441
SELECT DISTINCT + 99 DIV + COUNT( * ) AS col0, 98
----
99
98

skipif mysql # not compatible
query II rowsort label-2441
SELECT DISTINCT + 99 / + COUNT ( * ) AS col0, 98
----
99
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2442
SELECT ALL COUNT( * ) AS col0, 92 DIV - - 26
----
1
3

skipif mysql # not compatible
query II rowsort label-2442
SELECT ALL COUNT ( * ) AS col0, 92 / - - 26
----
1
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2443
SELECT 89, MIN( + - 6 ) AS col2
----
89
-6

skipif mysql # not compatible
query II rowsort label-2443
SELECT 89, MIN ( + - 6 ) AS col2
----
89
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT + 68 DIV COUNT( * ) * - + 84
----
-5712

skipif mysql # not compatible
query I rowsort label-2444
SELECT + 68 / COUNT ( * ) * - + 84
----
-5712

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT DISTINCT ( - + 12 ) DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT ( - + 12 ) / - 63
----
0

query I rowsort
SELECT - 61 + - 61 * + 61 + 12
----
-3770

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT + 32 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT + 32 / 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT - NULLIF ( + - COUNT( DISTINCT 69 ), - ( + 50 ) + + + 82 ) + 31 * - 82
----
-2541

skipif mysql # not compatible
query I rowsort label-2449
SELECT - NULLIF ( + - COUNT ( DISTINCT 69 ), - ( + 50 ) + + + 82 ) + 31 * - 82
----
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL CASE - 77 WHEN - 7 + - + 56 * + 93 + COUNT( ALL 40 ) THEN NULL WHEN + - 66 THEN 48 / + 49 + + - 42 + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL CASE - 77 WHEN - 7 + - + 56 * + 93 + COUNT ( ALL 40 ) THEN NULL WHEN + - 66 THEN 48 / + 49 + + - 42 + - COUNT ( * ) END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 10 * + 6 AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT CAST( - 55 AS SIGNED ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2453
SELECT CAST ( - 55 AS INTEGER ) AS col0
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2454
SELECT CAST( NULL AS DECIMAL ) AS col2, 32 * + + 44 AS col1
----
NULL
1408

skipif mysql # not compatible
query II rowsort label-2454
SELECT CAST ( NULL AS REAL ) AS col2, 32 * + + 44 AS col1
----
NULL
1408

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT - - 77 - - 71 DIV 88 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-2455
SELECT - - 77 - - 71 / 88 AS col2
----
77

query II rowsort
SELECT ALL + - 39 col0, + 97 AS col0
----
-39
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT - ( COUNT( * ) ) * - - 88 + + COUNT( - ( + 94 ) ) + + 73 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2457
SELECT - ( COUNT ( * ) ) * - - 88 + + COUNT ( - ( + 94 ) ) + + 73 AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2458
SELECT ALL + 27 DIV + ( + 68 ) + - COUNT( * ) * - + 18
----
18

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL + 27 / + ( + 68 ) + - COUNT ( * ) * - + 18
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2459
SELECT ALL CASE WHEN ( - 77 ) IS NULL THEN NULL ELSE CAST( + - 98 AS SIGNED ) END DIV COUNT( * ) + 93
----
-5

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL CASE WHEN ( - 77 ) IS NULL THEN NULL ELSE CAST ( + - 98 AS INTEGER ) END / COUNT ( * ) + 93
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT + COALESCE ( - 73, - COUNT( * ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2460
SELECT + COALESCE ( - 73, - COUNT ( * ) ) AS col2
----
-73

query I rowsort
SELECT DISTINCT + NULLIF ( 82, 84 + + 88 )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT 36 DIV 90 - + 6 col0
----
-6

skipif mysql # not compatible
query I rowsort label-2462
SELECT 36 / 90 - + 6 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL 77 * + 73 + 25 - - - 43 * - - 25 - + MAX( ALL + 33 ) - 66 + - 84 * + CASE CASE - + 27 WHEN + 82 * - 22 * - 83 THEN - + CASE - 26 WHEN + - COUNT( * ) * - 3 + 28 - - - 58 + - 99 * COUNT( * ) THEN + COUNT( * ) WHEN - 0 THEN NULL ELSE 16 + + 19 / - 46 END ELSE NULL END WHEN 23 THEN 13 * 49 - - ( + 40 + - 25 * - 58 ) WHEN 52 * + 30 THEN NULL ELSE NULL END / COALESCE ( - 64, - 5, 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL 77 * + 73 + 25 - - - 43 * - - 25 - + MAX ( ALL + 33 ) - 66 + - 84 * + CASE CASE - + 27 WHEN + 82 * - 22 * - 83 THEN - + CASE - 26 WHEN + - COUNT ( * ) * - 3 + 28 - - - 58 + - 99 * COUNT ( * ) THEN + COUNT ( * ) WHEN - 0 THEN NULL ELSE 16 + + 19 / - 46 END ELSE NULL END WHEN 23 THEN 13 * 49 - - ( + 40 + - 25 * - 58 ) WHEN 52 * + 30 THEN NULL ELSE NULL END / COALESCE ( - 64, - 5, 1 ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT - 11 * 16 * COUNT( * )
----
-176

skipif mysql # not compatible
query I rowsort label-2465
SELECT - 11 * 16 * COUNT ( * )
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-2466
SELECT + 81 + - COUNT( * ) AS col1, + 41 * - MIN( + 8 )
----
80
-328

skipif mysql # not compatible
query II rowsort label-2466
SELECT + 81 + - COUNT ( * ) AS col1, + 41 * - MIN ( + 8 )
----
80
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT + COALESCE ( SUM( DISTINCT - 16 ), 57 + - + 71 + + + COUNT( * ), + COUNT( * ) * + - 65 ) * COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT + COALESCE ( SUM ( DISTINCT - 16 ), 57 + - + 71 + + + COUNT ( * ), + COUNT ( * ) * + - 65 ) * COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2468
SELECT + 19 AS col0, 62 + - MIN( - 11 ) + 7 * - + 52
----
19
-291

skipif mysql # not compatible
query II rowsort label-2468
SELECT + 19 AS col0, 62 + - MIN ( - 11 ) + 7 * - + 52
----
19
-291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT ALL 97 * 93 DIV MIN( - 58 ) + + - 64 + - ( 26 ) AS col2
----
-245

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL 97 * 93 / MIN ( - 58 ) + + - 64 + - ( 26 ) AS col2
----
-245

query I rowsort
SELECT DISTINCT - 97 * - - 95 - 57 + - + 36 * + 47 - - + 35 + + ( + 34 )
----
-10895

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL + + 45 * 57 - + COUNT( * ) - + COUNT( * ) AS col2
----
2563

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL + + 45 * 57 - + COUNT ( * ) - + COUNT ( * ) AS col2
----
2563

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

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

query I rowsort
SELECT - 22 - - 38
----
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2474
SELECT + 28 * - - 5, CASE + 71 WHEN + + CAST( NULL AS SIGNED ) THEN - - CAST( - 45 AS SIGNED ) ELSE + 10 END + - 94 DIV - - 30 AS col0
----
140
7

skipif mysql # not compatible
query II rowsort label-2474
SELECT + 28 * - - 5, CASE + 71 WHEN + + CAST ( NULL AS INTEGER ) THEN - - CAST ( - 45 AS INTEGER ) ELSE + 10 END + - 94 / - - 30 AS col0
----
140
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT COUNT( * ) + 52 + COALESCE ( 87, - - 68 ) * + COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-2475
SELECT COUNT ( * ) + 52 + COALESCE ( 87, - - 68 ) * + COUNT ( * )
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-2476
SELECT ALL CASE + ( 4 ) WHEN 79 + - - 79 THEN + 60 WHEN - 47 THEN NULL ELSE NULL END * MIN( DISTINCT - - 14 ) * - + 66 + + 90 + - + COUNT( * ) AS col2, + 88 * 9 AS col1
----
NULL
792

skipif mysql # not compatible
query II rowsort label-2476
SELECT ALL CASE + ( 4 ) WHEN 79 + - - 79 THEN + 60 WHEN - 47 THEN NULL ELSE NULL END * MIN ( DISTINCT - - 14 ) * - + 66 + + 90 + - + COUNT ( * ) AS col2, + 88 * 9 AS col1
----
NULL
792

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT COUNT( * ) * + + 45 * 44 AS col0
----
1980

skipif mysql # not compatible
query I rowsort label-2477
SELECT COUNT ( * ) * + + 45 * 44 AS col0
----
1980

query I rowsort
SELECT 32 + 96 - 82
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT ALL 38 * + SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL 38 * + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2480
SELECT 57 - - + COALESCE ( - + 74, - 44 + 86 + 81 * 18 ) AS col1, SUM( DISTINCT + 22 ) AS col2
----
-17
22

skipif mysql # not compatible
query II rowsort label-2480
SELECT 57 - - + COALESCE ( - + 74, - 44 + 86 + 81 * 18 ) AS col1, SUM ( DISTINCT + 22 ) AS col2
----
-17
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT DISTINCT CAST( + - 76 AS SIGNED ) * - 52 * - - 24 AS col2
----
94848

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT CAST ( + - 76 AS INTEGER ) * - 52 * - - 24 AS col2
----
94848

query I rowsort
SELECT DISTINCT 44 + + 5
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2483
SELECT CAST( + 38 AS SIGNED ) DIV - 81 - + + COUNT( * ) col2
----
-1

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

query II rowsort
SELECT ALL 79 + 92, + 78 * - + 85 AS col2
----
171
-6630

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT COUNT( * ) + + 11 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT COUNT ( * ) + + 11 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT ALL 72 DIV - 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL 72 / - 32 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2487
SELECT CAST( + + 73 AS SIGNED ) DIV + 2 - - 38 - - 11 DIV + 91 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2487
SELECT CAST ( + + 73 AS INTEGER ) / + 2 - - 38 - - 11 / + 91 AS col2
----
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT ALL - - 29 + + CASE - 14 WHEN - CASE + SUM( DISTINCT + 85 ) WHEN + 64 * + NULLIF ( + - 77, + + 25 + - - COUNT( * ) - - 8 * - 81 ) * 26 + COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) * - 69 * COUNT( * ), + 58 * + + 10 * + + 36 ) + - 80 * - MAX( ALL - 4 + 9 * COALESCE ( 62 - - 50, 34 ) ) THEN - 55 WHEN + 8 * + ( COUNT( * ) ) THEN 9 END THEN + 77 * - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - - 29 + + CASE - 14 WHEN - CASE + SUM ( DISTINCT + 85 ) WHEN + 64 * + NULLIF ( + - 77, + + 25 + - - COUNT ( * ) - - 8 * - 81 ) * 26 + COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) * - 69 * COUNT ( * ), + 58 * + + 10 * + + 36 ) + - 80 * - MAX ( ALL - 4 + 9 * COALESCE ( 62 - - 50, 34 ) ) THEN - 55 WHEN + 8 * + ( COUNT ( * ) ) THEN 9 END THEN + 77 * - 32 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2490
SELECT ALL + 46 + - 3 AS col1, CAST( NULL AS DECIMAL ) AS col0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-2490
SELECT ALL + 46 + - 3 AS col1, CAST ( NULL AS REAL ) AS col0
----
43
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT DISTINCT - 76 + - CAST( NULL AS SIGNED ) + + 61 * - - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT - 76 + - CAST ( NULL AS INTEGER ) + + 61 * - - 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT + 70 * 82 + + 86 * - COUNT( * ) * + - 76
----
12276

skipif mysql # not compatible
query I rowsort label-2492
SELECT + 70 * 82 + + 86 * - COUNT ( * ) * + - 76
----
12276

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT + 2 * + 59 * COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT + 2 * + 59 * COUNT ( * )
----
118

query I rowsort
SELECT ALL 12 + + 82 - - 90
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL - 85 + + 29 * + 40 * + 91 * - 37 + 71 + + COUNT( * ) AS col2
----
-3905733

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - 85 + + 29 * + 40 * + 91 * - 37 + 71 + + COUNT ( * ) AS col2
----
-3905733

query I rowsort
SELECT 84 * + 55
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT + 66 * COUNT( * ) * 82 + - 24 + + - ( - 5 ) - + - COUNT( * ) * + 3 + - 93 AS col0
----
5303

skipif mysql # not compatible
query I rowsort label-2497
SELECT + 66 * COUNT ( * ) * 82 + - 24 + + - ( - 5 ) - + - COUNT ( * ) * + 3 + - 93 AS col0
----
5303

onlyif mysql # DIV for integer division: 
query I rowsort label-2498
SELECT ALL - - 49 - - + 10 + - - 87 DIV + - 81
----
58

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - - 49 - - + 10 + - - 87 / + - 81
----
58

query I rowsort
SELECT + NULLIF ( - 38, + 51 ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT - 53 * + SUM( - + 71 ) * + 59 + + - 93
----
221924

skipif mysql # not compatible
query I rowsort label-2500
SELECT - 53 * + SUM ( - + 71 ) * + 59 + + - 93
----
221924

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT 84 + - - MAX( ALL + - 54 ) + - 69 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2501
SELECT 84 + - - MAX ( ALL + - 54 ) + - 69 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT - COUNT( * ) * + + 99 * 65 - 76 + 71 * + 92
----
21

skipif mysql # not compatible
query I rowsort label-2502
SELECT - COUNT ( * ) * + + 99 * 65 - 76 + 71 * + 92
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - 72 + - - 91 * - + 1 - + MIN( - - 10 ) - - COUNT( * )
----
-172

skipif mysql # not compatible
query I rowsort label-2503
SELECT - 72 + - - 91 * - + 1 - + MIN ( - - 10 ) - - COUNT ( * )
----
-172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2504
SELECT - 12 DIV + ( + COALESCE ( - 18, - 41 * COUNT( * ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2504
SELECT - 12 / + ( + COALESCE ( - 18, - 41 * COUNT ( * ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT COUNT( * ) * + 95 * - SUM( DISTINCT + 2 )
----
-190

skipif mysql # not compatible
query I rowsort label-2505
SELECT COUNT ( * ) * + 95 * - SUM ( DISTINCT + 2 )
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT 17 * - 50 + + ( - 62 ) - - + CASE - - 73 WHEN - 30 THEN NULL ELSE 65 END + + + 35 * - 59 + 26 + 96 - + 29 * COUNT( * )
----
-2819

skipif mysql # not compatible
query I rowsort label-2506
SELECT 17 * - 50 + + ( - 62 ) - - + CASE - - 73 WHEN - 30 THEN NULL ELSE 65 END + + + 35 * - 59 + 26 + 96 - + 29 * COUNT ( * )
----
-2819

query I rowsort
SELECT 48 + - - ( - 82 ) AS col1
----
-34

query II rowsort
SELECT 22 AS col1, 15
----
22
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2509
SELECT ALL - COALESCE ( - MIN( - + 6 ), - - 49 DIV - - 80 + + + 80 * + 66 * - + 33 + + - COALESCE ( + 53, + 37 ) * 1 ) DIV 55 * - 45
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - COALESCE ( - MIN ( - + 6 ), - - 49 / - - 80 + + + 80 * + 66 * - + 33 + + - COALESCE ( + 53, + 37 ) * 1 ) / 55 * - 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT 29 DIV - + 18
----
-1

skipif mysql # not compatible
query I rowsort label-2510
SELECT 29 / - + 18
----
-1

query I rowsort
SELECT DISTINCT - 99 * 88
----
-8712

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

skipif mysql # not compatible
query I rowsort label-2512
SELECT 41 / + 42
----
0

query I rowsort
SELECT 48 + - 96 AS col2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT ALL 56 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL 56 / 88 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT MAX( - 32 ) * - CASE - 34 WHEN 77 THEN - 13 WHEN - + 83 THEN - + COUNT( + COALESCE ( 88, + 65 * + - 61 + + + 62 ) ) WHEN + ( COUNT( * ) ) / 70 THEN 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT MAX ( - 32 ) * - CASE - 34 WHEN 77 THEN - 13 WHEN - + 83 THEN - + COUNT ( + COALESCE ( 88, + 65 * + - 61 + + + 62 ) ) WHEN + ( COUNT ( * ) ) / 70 THEN 78 END
----
NULL

query II rowsort
SELECT ALL - 55 + + ( 18 ) AS col2, - 64 * - 41 col0
----
-37
2624

onlyif mysql # aggregate syntax: 
query II rowsort label-2518
SELECT CASE ( - - ( + COUNT( * ) ) ) WHEN 29 THEN NULL WHEN + ( - 25 ) THEN AVG ( - - 33 ) ELSE NULL END * 47 * 46, - 66 col0
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-2518
SELECT CASE ( - - ( + COUNT ( * ) ) ) WHEN 29 THEN NULL WHEN + ( - 25 ) THEN AVG ( - - 33 ) ELSE NULL END * 47 * 46, - 66 col0
----
NULL
-66

query II rowsort
SELECT - 76, + 12 AS col1
----
-76
12

query II rowsort
SELECT ALL 78, 3 * - 15 + - 7 + 40 + - 46 * + + ( + 82 ) AS col0
----
78
-3784

query I rowsort
SELECT DISTINCT + 10 + 14
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT 30 + 18 + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-2523
SELECT 30 + 18 + COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT - 18 * - COUNT( * ) + NULLIF ( 94, - + COUNT( * ) + + 77 + - 23 + 87 )
----
112

skipif mysql # not compatible
query I rowsort label-2524
SELECT - 18 * - COUNT ( * ) + NULLIF ( 94, - + COUNT ( * ) + + 77 + - 23 + 87 )
----
112

query I rowsort
SELECT - 27 + - 58 AS col1
----
-85

query I rowsort
SELECT ALL NULLIF ( - + NULLIF ( + COALESCE ( + - 48, + + ( + 75 ) ), 79 - CASE - + 88 WHEN ( - + ( + + 1 ) ) THEN 5 - + + 66 ELSE NULL END ), 92 ) + + 74 AS col1
----
122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL - NULLIF ( - COUNT( * ), + 11 * + 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - NULLIF ( - COUNT ( * ), + 11 * + 2 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2529
SELECT + + ( - CAST( 4 AS SIGNED ) ), ( + 47 ) + - + CASE - 80 WHEN 31 THEN + - 25 + + 56 END AS col2
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-2529
SELECT + + ( - CAST ( 4 AS INTEGER ) ), ( + 47 ) + - + CASE - 80 WHEN 31 THEN + - 25 + + 56 END AS col2
----
-4
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT DISTINCT 42 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT 42 / + 99
----
0

query I rowsort
SELECT ALL + 73 * 54
----
3942

query II rowsort
SELECT + 54, + 68 - 90 * 47 AS col0
----
54
-4162

query I rowsort
SELECT ALL - 96 * 11
----
-1056

query II rowsort
SELECT 65, 49 + - 70 + - 84 AS col0
----
65
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT - 0 * 40 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT - 0 * 40 / - 35
----
0

query II rowsort
SELECT COALESCE ( + + 50, + 0 ) AS col1, + 0 + + - 65 - - 93 * + - 70
----
50
-6575

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

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

query I rowsort
SELECT DISTINCT + 13 * - - 98
----
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + NULLIF ( - COUNT( - 31 ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2540
SELECT + NULLIF ( - COUNT ( - 31 ), COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT ( + - 40 ) * 48 col0
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - MIN( DISTINCT + + 40 ) * 96 * + 16 AS col1
----
-61440

skipif mysql # not compatible
query I rowsort label-2542
SELECT - MIN ( DISTINCT + + 40 ) * 96 * + 16 AS col1
----
-61440

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

query I rowsort
SELECT DISTINCT 74 * 20 AS col2
----
1480

query I rowsort
SELECT 59 * - 42 + + 72 AS col1
----
-2406

query I rowsort
SELECT - 21 * - 8 * - 9
----
-1512

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

query I rowsort
SELECT + 91 + + 60 AS col2
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT + 9 + 81 * COUNT( DISTINCT + ( + + 22 ) ) AS col0, - 34
----
90
-34

skipif mysql # not compatible
query II rowsort label-2549
SELECT + 9 + 81 * COUNT ( DISTINCT + ( + + 22 ) ) AS col0, - 34
----
90
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2550
SELECT ALL - 51 * + CAST( + 59 AS SIGNED )
----
-3009

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - 51 * + CAST ( + 59 AS INTEGER )
----
-3009

query I rowsort
SELECT ALL + 96 + + + 7 * + 14
----
194

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2552
SELECT ALL + ( + + CAST( + 21 AS SIGNED ) ) + - 93 * + - 53 AS col2, 73 + - 20
----
4950
53

skipif mysql # not compatible
query II rowsort label-2552
SELECT ALL + ( + + CAST ( + 21 AS INTEGER ) ) + - 93 * + - 53 AS col2, 73 + - 20
----
4950
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2553
SELECT - 38 + + - 63 DIV NULLIF ( - + 80, + 24 )
----
-38

skipif mysql # not compatible
query I rowsort label-2553
SELECT - 38 + + - 63 / NULLIF ( - + 80, + 24 )
----
-38

query I rowsort
SELECT ALL - 24 + + 27 col2
----
3

query I rowsort
SELECT - 55 * - + 88 * - 42 col2
----
-203280

query I rowsort
SELECT ALL - 51 * + 93
----
-4743

query II rowsort
SELECT ALL + 97 + 73, 74 AS col1
----
170
74

query I rowsort
SELECT DISTINCT NULLIF ( - - 46, 62 * + 60 ) AS col1
----
46

query I rowsort
SELECT - - 13 * - + 8
----
-104

query I rowsort
SELECT + 16 + - 89 + - 78 AS col0
----
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2561
SELECT ALL + 43 - + 40 + - MAX( + + 5 ) * + COUNT( * ) * + CASE 97 WHEN - 24 - - 59 + - - 99 + + 49 / - CASE COUNT( * ) WHEN + ( + 26 ) THEN NULL ELSE + + CAST( 78 AS SIGNED ) * 86 END - COUNT( * ) * + MIN( 71 ) - - 61 THEN + 27 WHEN + - 13 THEN + 47 ELSE CAST( NULL AS SIGNED ) END / - CASE + 92 / - 77 - 31 WHEN - 78 * 32 THEN ( - 14 ) WHEN + ( 96 ) THEN 82 * 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL + 43 - + 40 + - MAX ( + + 5 ) * + COUNT ( * ) * + CASE 97 WHEN - 24 - - 59 + - - 99 + + 49 / - CASE COUNT ( * ) WHEN + ( + 26 ) THEN NULL ELSE + + CAST ( 78 AS INTEGER ) * 86 END - COUNT ( * ) * + MIN ( 71 ) - - 61 THEN + 27 WHEN + - 13 THEN + 47 ELSE CAST ( NULL AS INTEGER ) END / - CASE + 92 / - 77 - 31 WHEN - 78 * 32 THEN ( - 14 ) WHEN + ( 96 ) THEN 82 * 64 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT - - 63 + - + CASE - 91 WHEN 68 THEN + - CASE - 98 WHEN - - COUNT( * ) THEN NULL WHEN 56 THEN + 86 END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT - - 63 + - + CASE - 91 WHEN 68 THEN + - CASE - 98 WHEN - - COUNT ( * ) THEN NULL WHEN 56 THEN + 86 END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + 98 col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2565
SELECT ALL 30 * + + COUNT( * ) AS col2, + 78 * - - COUNT( * ) * + - MAX( + 0 )
----
30
0

skipif mysql # not compatible
query II rowsort label-2565
SELECT ALL 30 * + + COUNT ( * ) AS col2, + 78 * - - COUNT ( * ) * + - MAX ( + 0 )
----
30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL 35 - - 83 + - - 73 - - MAX( DISTINCT - + 95 ) * - ( + MAX( + - NULLIF ( + 30, + 22 * - 58 * - + 19 / + + 47 + - 8 ) ) ) * - 45 * - - 71 AS col2
----
9105941

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL 35 - - 83 + - - 73 - - MAX ( DISTINCT - + 95 ) * - ( + MAX ( + - NULLIF ( + 30, + 22 * - 58 * - + 19 / + + 47 + - 8 ) ) ) * - 45 * - - 71 AS col2
----
9105941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT DISTINCT - 44 * - 56 * - CAST( NULL AS SIGNED ) + - 66 + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT - 44 * - 56 * - CAST ( NULL AS INTEGER ) + - 66 + + 79 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT COALESCE ( + 44, + 67 * + - 93 * - 26 ) * + - CASE - 25 WHEN 76 THEN + - 59 END * - + CAST( - 45 AS SIGNED ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT COALESCE ( + 44, + 67 * + - 93 * - 26 ) * + - CASE - 25 WHEN 76 THEN + - 59 END * - + CAST ( - 45 AS INTEGER ) + 99
----
NULL

query I rowsort
SELECT ALL - ( 11 ) * + + 60 AS col1
----
-660

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2572
SELECT - - ( 68 ) DIV - 86 - - 25 + + SUM( DISTINCT - CAST( + 72 AS SIGNED ) ), + 1 AS col0
----
-47
1

skipif mysql # not compatible
query II rowsort label-2572
SELECT - - ( 68 ) / - 86 - - 25 + + SUM ( DISTINCT - CAST ( + 72 AS INTEGER ) ), + 1 AS col0
----
-47
1

query II rowsort
SELECT + - 56 * - 60 AS col0, 65
----
3360
65

query I rowsort
SELECT - 86 * + + 7 - 81 AS col2
----
-683

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2575
SELECT + COALESCE ( - + COALESCE ( + - ( + + 79 ), + 59 ), MIN( - + 98 ) ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT + COALESCE ( - + COALESCE ( + - ( + + 79 ), + 59 ), MIN ( - + 98 ) ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT 27 * CAST( - - NULLIF ( 5, - 22 * + 32 + - + 93 + + + CASE - 48 WHEN + COUNT( * ) + COUNT( * ) * + - CASE 7 WHEN + CASE - 56 WHEN 26 THEN NULL ELSE 54 / + 11 + 9 END THEN NULL WHEN - 7 THEN - 67 + + + 23 + + 12 - + - NULLIF ( 69, ( 96 ) ) - - 73 / - 57 * + ( ( - COUNT( * ) ) * 71 ) END + COUNT( * ) THEN NULL ELSE NULLIF ( - 32, 43 ) - + COUNT( * ) END * 30 - - 47 ) AS SIGNED ) + 89
----
224

skipif mysql # not compatible
query I rowsort label-2576
SELECT 27 * CAST ( - - NULLIF ( 5, - 22 * + 32 + - + 93 + + + CASE - 48 WHEN + COUNT ( * ) + COUNT ( * ) * + - CASE 7 WHEN + CASE - 56 WHEN 26 THEN NULL ELSE 54 / + 11 + 9 END THEN NULL WHEN - 7 THEN - 67 + + + 23 + + 12 - + - NULLIF ( 69, ( 96 ) ) - - 73 / - 57 * + ( ( - COUNT ( * ) ) * 71 ) END + COUNT ( * ) THEN NULL ELSE NULLIF ( - 32, 43 ) - + COUNT ( * ) END * 30 - - 47 ) AS INTEGER ) + 89
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-2577
SELECT DISTINCT + 74 AS col2, CASE WHEN COUNT( * ) <> ( - 94 ) * COUNT( * ) + - 72 + 19 + - COUNT( * ) * + 38 + - + 97 * + 11 THEN 12 END col1
----
74
12

skipif mysql # not compatible
query II rowsort label-2577
SELECT DISTINCT + 74 AS col2, CASE WHEN COUNT ( * ) <> ( - 94 ) * COUNT ( * ) + - 72 + 19 + - COUNT ( * ) * + 38 + - + 97 * + 11 THEN 12 END col1
----
74
12

query I rowsort
SELECT DISTINCT 81 * + 13 AS col0
----
1053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2579
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 36 + - + AVG ( - ( - 42 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 36 + - + AVG ( - ( - 42 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT + COUNT( * ) + - - COUNT( * ) * - 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2580
SELECT + COUNT ( * ) + - - COUNT ( * ) * - 24 AS col2
----
-23

query I rowsort
SELECT + NULLIF ( 62, 84 - + 64 )
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-2582
SELECT + 98 + - 38 + + 47, 32 DIV 3 + - 18 col1
----
107
-8

skipif mysql # not compatible
query II rowsort label-2582
SELECT + 98 + - 38 + + 47, 32 / 3 + - 18 col1
----
107
-8

query I rowsort
SELECT DISTINCT 62 * + 58 AS col1
----
3596

query I rowsort
SELECT CASE 37 WHEN + 70 THEN 11 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + CASE - - 68 WHEN + 46 THEN AVG ( - 90 ) WHEN - 90 / 45 - - 62 / 23 * MAX( + - 18 ) THEN NULL END * 96 + - 26 + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT + CASE - - 68 WHEN + 46 THEN AVG ( - 90 ) WHEN - 90 / 45 - - 62 / 23 * MAX ( + - 18 ) THEN NULL END * 96 + - 26 + - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL 85 * + COUNT( * ) + + 77 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL 85 * + COUNT ( * ) + + 77 AS col0
----
162

query I rowsort
SELECT ALL - 64 * - - 82 * + - 51 AS col1
----
267648

query I rowsort
SELECT + 62 * - 32 col0
----
-1984

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL NULLIF ( + 56, - 29 / + 42 + 71 + - AVG ( DISTINCT - - 68 ) + + 38 * - + 62 + COALESCE ( - + ( - + AVG ( - - 52 ) ), + + MAX( - 61 ), + NULLIF ( - - COUNT( * ), - ( 90 ) ) * + 19 ) * - 72 * + 63 * + - COUNT( * ) + - 49 )
----
56

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL NULLIF ( + 56, - 29 / + 42 + 71 + - AVG ( DISTINCT - - 68 ) + + 38 * - + 62 + COALESCE ( - + ( - + AVG ( - - 52 ) ), + + MAX ( - 61 ), + NULLIF ( - - COUNT ( * ), - ( 90 ) ) * + 19 ) * - 72 * + 63 * + - COUNT ( * ) + - 49 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT MAX( DISTINCT - + NULLIF ( - 38, + ( + 50 ) * - 32 - - + 74 / + 18 - - + 55 ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2590
SELECT MAX ( DISTINCT - + NULLIF ( - 38, + ( + 50 ) * - 32 - - + 74 / + 18 - - + 55 ) ) AS col2
----
38

query I rowsort
SELECT DISTINCT 85 * + COALESCE ( 26, 39 * 71 ) AS col0
----
2210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2592
SELECT ALL NULLIF ( 23, - 38 ) * + COUNT( * ) + - + CAST( + CASE - COUNT( ALL 44 ) WHEN - 96 THEN NULL WHEN + CAST( NULL AS DECIMAL ) + 13 + - - 85 + + + 58 / 56 THEN NULL ELSE 94 END AS SIGNED ) AS col2, - 94 * + NULLIF ( ( 13 ), + 40 ) + + 14 AS col2
----
-71
-1208

skipif mysql # not compatible
query II rowsort label-2592
SELECT ALL NULLIF ( 23, - 38 ) * + COUNT ( * ) + - + CAST ( + CASE - COUNT ( ALL 44 ) WHEN - 96 THEN NULL WHEN + CAST ( NULL AS REAL ) + 13 + - - 85 + + + 58 / 56 THEN NULL ELSE 94 END AS INTEGER ) AS col2, - 94 * + NULLIF ( ( 13 ), + 40 ) + + 14 AS col2
----
-71
-1208

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT SUM( DISTINCT - 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2593
SELECT SUM ( DISTINCT - 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2594
SELECT DISTINCT 96 * + - COUNT( * ) * COALESCE ( - + 47, + 81 - COALESCE ( - + COUNT( * ), + COUNT( * ) ) + 10 DIV 46 + 83, + 14 ) - ( 39 )
----
4473

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT 96 * + - COUNT ( * ) * COALESCE ( - + 47, + 81 - COALESCE ( - + COUNT ( * ), + COUNT ( * ) ) + 10 / 46 + 83, + 14 ) - ( 39 )
----
4473

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT MAX( ALL + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-2595
SELECT MAX ( ALL + 67 )
----
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT ALL + 92 - - COALESCE ( + + 67, CAST( + 36 AS SIGNED ), - 94 ) * - 62
----
-4062

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + 92 - - COALESCE ( + + 67, CAST ( + 36 AS INTEGER ), - 94 ) * - 62
----
-4062

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT + - 67 - + COUNT( * ) + - 81 AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-2598
SELECT + - 67 - + COUNT ( * ) + - 81 AS col0
----
-149

query I rowsort
SELECT ALL - 56 * - 52 AS col0
----
2912

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2601
SELECT - - COUNT( * ) AS col2, COUNT( * ) * NULLIF ( 6, - 19 )
----
1
6

skipif mysql # not compatible
query II rowsort label-2601
SELECT - - COUNT ( * ) AS col2, COUNT ( * ) * NULLIF ( 6, - 19 )
----
1
6

query I rowsort
SELECT ALL + 6 * - - 62
----
372

query I rowsort
SELECT ALL + 95 * + 31 * + 61
----
179645

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

query I rowsort
SELECT - + 40 * - + 21 * 21 AS col2
----
17640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2606
SELECT ( + - CAST( 60 AS SIGNED ) ), + CASE 89 WHEN 68 THEN CAST( NULL AS SIGNED ) + 1 + + 64 * ( - - COUNT( * ) ) ELSE NULL END AS col2
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-2606
SELECT ( + - CAST ( 60 AS INTEGER ) ), + CASE 89 WHEN 68 THEN CAST ( NULL AS INTEGER ) + 1 + + 64 * ( - - COUNT ( * ) ) ELSE NULL END AS col2
----
-60
NULL

query II rowsort
SELECT ALL 5, 50 + - + 78 AS col2
----
5
-28

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT ALL + - 63 DIV + NULLIF ( 25, - 41 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + - 63 / + NULLIF ( 25, - 41 ) AS col2
----
-2

query I rowsort
SELECT 69 * + 23 AS col2
----
1587

query II rowsort
SELECT DISTINCT - + 31 AS col2, 75 AS col0
----
-31
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL + 19 + COUNT( * ) * - + 54 + 82 col0
----
47

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + 19 + COUNT ( * ) * - + 54 + 82 col0
----
47

query I rowsort
SELECT ALL 49 * - - 46 * - + ( + 66 )
----
-148764

query II rowsort
SELECT DISTINCT - 9 AS col1, - 82 * 8 AS col2
----
-9
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL 40 + - CASE 0 WHEN + + 31 / + 82 + 88 + - COUNT( * ) THEN 55 + 4 WHEN - - 88 THEN NULL END * 43 / - + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL 40 + - CASE 0 WHEN + + 31 / + 82 + 88 + - COUNT ( * ) THEN 55 + 4 WHEN - - 88 THEN NULL END * 43 / - + 33 AS col2
----
NULL

query I rowsort
SELECT 48 * 65 AS col1
----
3120

onlyif mysql # DIV for integer division: 
query II rowsort label-2618
SELECT + 96 AS col2, 19 + + 65 DIV 61 + 40 * - 77
----
96
-3060

skipif mysql # not compatible
query II rowsort label-2618
SELECT + 96 AS col2, 19 + + 65 / 61 + 40 * - 77
----
96
-3060

query I rowsort
SELECT ALL + 23 + - 73 AS col2
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-2620
SELECT + 98, - 85 + + ( 81 ) + - - 78 DIV - 99 AS col1
----
98
-4

skipif mysql # not compatible
query II rowsort label-2620
SELECT + 98, - 85 + + ( 81 ) + - - 78 / - 99 AS col1
----
98
-4

query II rowsort
SELECT 33 AS col0, 26 AS col2
----
33
26

query I rowsort
SELECT 38 - - 98 AS col2
----
136

query II rowsort
SELECT + 4, 0 + + - 76 AS col2
----
4
-76

query I rowsort
SELECT ALL 80 + + 20
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT SUM( ALL + 6 ) DIV + 33 + - 57 * 24
----
-1368

skipif mysql # not compatible
query I rowsort label-2625
SELECT SUM ( ALL + 6 ) / + 33 + - 57 * 24
----
-1368

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

query II rowsort
SELECT DISTINCT - 43 col0, 16
----
-43
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2628
SELECT ALL 38 DIV + 88 AS col2, CAST( - 57 AS SIGNED ) + COALESCE ( - ( 92 ), - 15 * - - 52 + 19 + COALESCE ( + 51, - - COUNT( * ) * - 39 ) ) DIV 2 * - 44 AS col0
----
0
1967

skipif mysql # not compatible
query II rowsort label-2628
SELECT ALL 38 / + 88 AS col2, CAST ( - 57 AS INTEGER ) + COALESCE ( - ( 92 ), - 15 * - - 52 + 19 + COALESCE ( + 51, - - COUNT ( * ) * - 39 ) ) / 2 * - 44 AS col0
----
0
1967

query I rowsort
SELECT 56 + + - NULLIF ( COALESCE ( 47, - - ( + 55 ), - 32 ), 97 )
----
9

query II rowsort
SELECT + 28 AS col2, 18
----
28
18

query I rowsort
SELECT ALL 14 - - 42 * + + 46 * + + 44 + 35
----
85057

query I rowsort
SELECT DISTINCT 73 * 54 AS col0
----
3942

query II rowsort
SELECT - 82, 0 AS col0
----
-82
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2634
SELECT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) / - 87 * 98 col2, 28 + - COUNT( * ) + + 28 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-2634
SELECT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) / - 87 * 98 col2, 28 + - COUNT ( * ) + + 28 AS col1
----
NULL
55

query I rowsort
SELECT ALL 66 * 22 AS col2
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - 37 + - - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-2636
SELECT - 37 + - - COUNT ( * )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT ALL 7 - - ( - - CAST( + - 49 AS SIGNED ) )
----
-42

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL 7 - - ( - - CAST ( + - 49 AS INTEGER ) )
----
-42

query I rowsort
SELECT + COALESCE ( - + 5, + 5 )
----
-5

query I rowsort
SELECT 5 + - 47
----
-42

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

query I rowsort
SELECT - 64 + - 9
----
-73

query I rowsort
SELECT ALL 34 * - 29 AS col0
----
-986

onlyif mysql # aggregate syntax: 
query II rowsort label-2643
SELECT + MIN( + 83 ) * 86 + - 48 AS col2, 63 AS col0
----
7090
63

skipif mysql # not compatible
query II rowsort label-2643
SELECT + MIN ( + 83 ) * 86 + - 48 AS col2, 63 AS col0
----
7090
63

query II rowsort
SELECT ALL + ( - 28 ) AS col1, 98
----
-28
98

query II rowsort
SELECT ALL 88 AS col1, ( + 61 ) * 15 * + 91 - + 92 AS col1
----
88
83173

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT 53 + + + MIN( - 78 )
----
-25

skipif mysql # not compatible
query I rowsort label-2646
SELECT 53 + + + MIN ( - 78 )
----
-25

query I rowsort
SELECT ALL COALESCE ( + 11, - 47 ) AS col1
----
11

query I rowsort
SELECT DISTINCT + - 85 + - 98 + - 19 AS col0
----
-202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT DISTINCT CAST( - 90 AS SIGNED ) + 71 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT CAST ( - 90 AS INTEGER ) + 71 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2650
SELECT - CAST( NULL AS SIGNED ) AS col1, - 26 * COUNT( * )
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-2650
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 26 * COUNT ( * )
----
NULL
-26

query I rowsort
SELECT ALL + 68 + 55 AS col2
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT - 27 DIV 8 * + 65 - + 65 AS col0
----
-260

skipif mysql # not compatible
query I rowsort label-2652
SELECT - 27 / 8 * + 65 - + 65 AS col0
----
-260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2653
SELECT ALL - + CAST( - 15 AS SIGNED ) * - 95 * + 68 + - 3 AS col0
----
-96903

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL - + CAST ( - 15 AS INTEGER ) * - 95 * + 68 + - 3 AS col0
----
-96903

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT 57 * 43 * 42 DIV - 95 AS col1
----
-1083

skipif mysql # not compatible
query I rowsort label-2654
SELECT 57 * 43 * 42 / - 95 AS col1
----
-1083

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT - MIN( DISTINCT + + 43 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - MIN ( DISTINCT + + 43 ) col0
----
-43

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

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + 27 + - COUNT ( * ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2657
SELECT - 46 * + + ( MIN( + 7 ) ) + 3 + + + 11 * + + 49 * + + ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT - 46 * + + ( MIN ( + 7 ) ) + 3 + + + 11 * + + 49 * + + ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2659
SELECT DISTINCT - COALESCE ( 11, + - 30 ) AS col1, - CASE - + COUNT( * ) WHEN + 8 THEN + CAST( NULL AS SIGNED ) + - 96 ELSE NULL END AS col1
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-2659
SELECT DISTINCT - COALESCE ( 11, + - 30 ) AS col1, - CASE - + COUNT ( * ) WHEN + 8 THEN + CAST ( NULL AS INTEGER ) + - 96 ELSE NULL END AS col1
----
-11
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2660
SELECT ALL - ( - 35 ) AS col1, 68 DIV - 29 + 69, COUNT( ALL - 86 ) * - - 58 * - COUNT( ALL + 9 ) col1
----
35
67
-58

skipif mysql # not compatible
query III rowsort label-2660
SELECT ALL - ( - 35 ) AS col1, 68 / - 29 + 69, COUNT ( ALL - 86 ) * - - 58 * - COUNT ( ALL + 9 ) col1
----
35
67
-58

query I rowsort
SELECT 28 * + 53 * + ( + - 62 ) + + - 13 + + 22
----
-91999

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2664
SELECT - 26 * COUNT( - 99 ) * - 1 + - 8 + COUNT( + - 14 ) + - 42 DIV + 89 + - 86 + COUNT( * ) * 14 * - 49
----
-753

skipif mysql # not compatible
query I rowsort label-2664
SELECT - 26 * COUNT ( - 99 ) * - 1 + - 8 + COUNT ( + - 14 ) + - 42 / + 89 + - 86 + COUNT ( * ) * 14 * - 49
----
-753

query II rowsort
SELECT DISTINCT + 20 * 15 AS col1, 73
----
300
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL - SUM( DISTINCT + - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL - SUM ( DISTINCT + - 6 ) AS col1
----
6

query II rowsort
SELECT 99 * - 32, 65 * - 41 AS col2
----
-3168
-2665

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT 43 * - + CASE + 46 WHEN + - ( - 92 ) THEN 25 + + 16 - + 18 * + COUNT( DISTINCT + 11 ) ELSE COALESCE ( - 32, + 68, - 71 ) + - 64 END AS col2
----
4128

skipif mysql # not compatible
query I rowsort label-2668
SELECT 43 * - + CASE + 46 WHEN + - ( - 92 ) THEN 25 + + 16 - + 18 * + COUNT ( DISTINCT + 11 ) ELSE COALESCE ( - 32, + 68, - 71 ) + - 64 END AS col2
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + 13 + - ( - COUNT( * ) ) + 5 * + - 50 + - COUNT( * )
----
-237

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + 13 + - ( - COUNT ( * ) ) + 5 * + - 50 + - COUNT ( * )
----
-237

query I rowsort
SELECT + ( - 47 ) - + - 18 AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2671
SELECT + - 32 + + COUNT( * ) * - - 45 - + COUNT( * ) DIV + 93
----
13

skipif mysql # not compatible
query I rowsort label-2671
SELECT + - 32 + + COUNT ( * ) * - - 45 - + COUNT ( * ) / + 93
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2672
SELECT + 51 * - + 86, COALESCE ( 36, 22 * + - MAX( ALL 61 ) ) * + 74 + 31 - - 96 + + 75 AS col1
----
-4386
2866

skipif mysql # not compatible
query II rowsort label-2672
SELECT + 51 * - + 86, COALESCE ( 36, 22 * + - MAX ( ALL 61 ) ) * + 74 + 31 - - 96 + + 75 AS col1
----
-4386
2866

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2673
SELECT + + COUNT( - - 37 ) DIV + - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2673
SELECT + + COUNT ( - - 37 ) / + - 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL + SUM( ALL - 92 ) + CASE + 91 WHEN - COUNT( * ) THEN 38 / COUNT( * ) ELSE NULL END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL + SUM ( ALL - 92 ) + CASE + 91 WHEN - COUNT ( * ) THEN 38 / COUNT ( * ) ELSE NULL END * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 38, + + 79 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2676
SELECT DISTINCT SUM( ALL + 40 ) * 80 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT SUM ( ALL + 40 ) * 80 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2677
SELECT ALL - - 96 + - + CASE + COUNT( * ) WHEN + 11 * + 32 * - CASE MIN( 43 ) WHEN + 97 THEN NULL ELSE + 41 + - - COUNT( * ) * 41 END + 61 * + + CAST( NULL AS SIGNED ) THEN - - COUNT( DISTINCT + 25 ) WHEN ( + 74 ) * NULLIF ( + - 49, + 33 ) * - - 6 THEN NULL END AS col0, ( - ( + + ( + 27 ) ) )
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-2677
SELECT ALL - - 96 + - + CASE + COUNT ( * ) WHEN + 11 * + 32 * - CASE MIN ( 43 ) WHEN + 97 THEN NULL ELSE + 41 + - - COUNT ( * ) * 41 END + 61 * + + CAST ( NULL AS INTEGER ) THEN - - COUNT ( DISTINCT + 25 ) WHEN ( + 74 ) * NULLIF ( + - 49, + 33 ) * - - 6 THEN NULL END AS col0, ( - ( + + ( + 27 ) ) )
----
NULL
-27

query I rowsort
SELECT + 1 - + 3 AS col2
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2680
SELECT ( + CAST( + + MAX( DISTINCT - 58 ) AS SIGNED ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2680
SELECT ( + CAST ( + + MAX ( DISTINCT - 58 ) AS INTEGER ) ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2681
SELECT 6, 72 + CAST( - + 3 AS SIGNED ) + + 57 AS col1
----
6
126

skipif mysql # not compatible
query II rowsort label-2681
SELECT 6, 72 + CAST ( - + 3 AS INTEGER ) + + 57 AS col1
----
6
126

query I rowsort
SELECT ALL 63 + NULLIF ( - 48, - 31 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT + 45 + - + 49 - COUNT( * ) + + 88
----
83

skipif mysql # not compatible
query I rowsort label-2683
SELECT + 45 + - + 49 - COUNT ( * ) + + 88
----
83

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2685
SELECT ALL + 92 col0, 30 * 40 + + - SUM( 2 ) DIV - + MAX( DISTINCT 45 )
----
92
1200

skipif mysql # not compatible
query II rowsort label-2685
SELECT ALL + 92 col0, 30 * 40 + + - SUM ( 2 ) / - + MAX ( DISTINCT 45 )
----
92
1200

query I rowsort
SELECT ALL - 5 * + - 31 AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL - 96 * - COUNT( - 63 ) * - 66 * 16 AS col2
----
-101376

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL - 96 * - COUNT ( - 63 ) * - 66 * 16 AS col2
----
-101376

onlyif mysql # DIV for integer division: 
query I rowsort label-2688
SELECT - 56 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-2688
SELECT - 56 / - 74
----
0

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

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

query I rowsort
SELECT COALESCE ( - - 73, - + 62, + 2 * 55 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT - 91 DIV + 79
----
-1

skipif mysql # not compatible
query I rowsort label-2691
SELECT - 91 / + 79
----
-1

query I rowsort
SELECT + 3 * - ( - 54 )
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2693
SELECT CASE + + 70 WHEN - 72 + - 9 THEN NULL WHEN - + 24 * - COUNT( ALL + 83 ) + - - COUNT( * ) * + 83 + + 79 + - + 80 * + COALESCE ( - 16, - + COALESCE ( + + COALESCE ( + + 8, 74 * 76 - + 57 + 98, 67 * - - 97 + + 29 ), - ( 88 ), + COALESCE ( 2, ( 37 ) - 31 * ( + ( 37 ) ) ) / - 53 + 36 ) ) * CAST( NULL AS SIGNED ) THEN + COUNT( * ) * 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT CASE + + 70 WHEN - 72 + - 9 THEN NULL WHEN - + 24 * - COUNT ( ALL + 83 ) + - - COUNT ( * ) * + 83 + + 79 + - + 80 * + COALESCE ( - 16, - + COALESCE ( + + COALESCE ( + + 8, 74 * 76 - + 57 + 98, 67 * - - 97 + + 29 ), - ( 88 ), + COALESCE ( 2, ( 37 ) - 31 * ( + ( 37 ) ) ) / - 53 + 36 ) ) * CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT COALESCE ( + + ( + 59 ), + 51, - COUNT( 29 ) * + + 48 ) col1
----
59

skipif mysql # not compatible
query I rowsort label-2694
SELECT COALESCE ( + + ( + 59 ), + 51, - COUNT ( 29 ) * + + 48 ) col1
----
59

query I rowsort
SELECT - 2 * + 88 AS col1
----
-176

query I rowsort
SELECT - 61 * + 89 AS col1
----
-5429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2697
SELECT ALL - CASE - 13 WHEN + ( 7 ) THEN + - 43 END / + COALESCE ( + CAST( 0 AS SIGNED ), 15, 18 + - + MAX( - + 78 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL - CASE - 13 WHEN + ( 7 ) THEN + - 43 END / + COALESCE ( + CAST ( 0 AS INTEGER ), 15, 18 + - + MAX ( - + 78 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2698
SELECT DISTINCT + 23 AS col2, + COUNT( * ) * 94 DIV MIN( + 19 )
----
23
4

skipif mysql # not compatible
query II rowsort label-2698
SELECT DISTINCT + 23 AS col2, + COUNT ( * ) * 94 / MIN ( + 19 )
----
23
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL + COALESCE ( - + 58, + COUNT( * ), 97 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + COALESCE ( - + 58, + COUNT ( * ), 97 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT NULLIF ( - NULLIF ( 36, - 24 * - - 29 ), 28 * + - CASE - 18 WHEN 33 THEN NULL ELSE - 40 * COUNT( * ) END + - - 99 * - COUNT( * ) + + 65 + + 41 )
----
-36

skipif mysql # not compatible
query I rowsort label-2700
SELECT NULLIF ( - NULLIF ( 36, - 24 * - - 29 ), 28 * + - CASE - 18 WHEN 33 THEN NULL ELSE - 40 * COUNT ( * ) END + - - 99 * - COUNT ( * ) + + 65 + + 41 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL + MAX( - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL + MAX ( - 68 ) AS col0
----
-68

query I rowsort
SELECT - 42 - + 35 AS col0
----
-77

query I rowsort
SELECT ALL + - NULLIF ( + 31, - + 63 )
----
-31

query I rowsort
SELECT - 55 - - - 89 col1
----
-144

query II rowsort
SELECT DISTINCT + 24, + 82 AS col1
----
24
82

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT DISTINCT - 60 * - CAST( - 56 AS SIGNED ) * - 21 - + - 40 * + COUNT( * ) + 11 * + - 93 + ( - 29 ) AS col0
----
69548

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT - 60 * - CAST ( - 56 AS INTEGER ) * - 21 - + - 40 * + COUNT ( * ) + 11 * + - 93 + ( - 29 ) AS col0
----
69548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2709
SELECT ALL + + 19 * + ( - + NULLIF ( 81, + 0 - COUNT( * ) ) ) DIV + + 1 + - 45 + 46 * - 93 AS col1
----
-5862

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL + + 19 * + ( - + NULLIF ( 81, + 0 - COUNT ( * ) ) ) / + + 1 + - 45 + 46 * - 93 AS col1
----
-5862

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT - - 78 + + 79 * + MIN( + 0 )
----
78

skipif mysql # not compatible
query I rowsort label-2710
SELECT - - 78 + + 79 * + MIN ( + 0 )
----
78

query I rowsort
SELECT NULLIF ( + ( 79 ), 69 )
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL 2 + + MIN( 81 ) * + + 87 AS col2
----
7049

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL 2 + + MIN ( 81 ) * + + 87 AS col2
----
7049

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT - 15 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2714
SELECT - 15 / + 77 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2715
SELECT + SUM( DISTINCT 14 ) + 41 AS col2, 90
----
55
90

skipif mysql # not compatible
query II rowsort label-2715
SELECT + SUM ( DISTINCT 14 ) + 41 AS col2, 90
----
55
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2716
SELECT - COALESCE ( + CAST( ( + 6 ) AS SIGNED ), + COALESCE ( - + COUNT( ALL - 63 ), - + 93 * - 81 * - 71, + 49 DIV COUNT( DISTINCT - 12 ) ) DIV 91 * + + 78 * COUNT( * ) + - 22 + 98 + - 41 * + 95 * + 43 )
----
-6

skipif mysql # not compatible
query I rowsort label-2716
SELECT - COALESCE ( + CAST ( ( + 6 ) AS INTEGER ), + COALESCE ( - + COUNT ( ALL - 63 ), - + 93 * - 81 * - 71, + 49 / COUNT ( DISTINCT - 12 ) ) / 91 * + + 78 * COUNT ( * ) + - 22 + 98 + - 41 * + 95 * + 43 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT DISTINCT - 40 + SUM( - 66 ) + 68 * - 35 + + 34 * - + 4
----
-2622

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT - 40 + SUM ( - 66 ) + 68 * - 35 + + 34 * - + 4
----
-2622

onlyif mysql # aggregate syntax: 
query II rowsort label-2718
SELECT - - COUNT( * ), + COALESCE ( - - 13, + - COUNT( * ) * + 25 * 20 - - 34 * 5 ) * + + 62 AS col2
----
1
806

skipif mysql # not compatible
query II rowsort label-2718
SELECT - - COUNT ( * ), + COALESCE ( - - 13, + - COUNT ( * ) * + 25 * 20 - - 34 * 5 ) * + + 62 AS col2
----
1
806

query I rowsort
SELECT - + 2 * - - 74
----
-148

query I rowsort
SELECT + - 96 * + - 59 AS col0
----
5664

query I rowsort
SELECT ALL 57 * 39 AS col2
----
2223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT ALL CAST( - ( + - 19 ) AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL CAST ( - ( + - 19 ) AS INTEGER ) AS col2
----
19

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT + 15 * - 54, 87 + - 44 * + + 47 * + - 78 + + 63 - + ( 88 ) - MIN( + 43 ) * + + 7 * 72 * + COALESCE ( + 50, - NULLIF ( - 61, + + 81 ) * 21 ) * + 1 + - + 38 * + 3 * - 5 AS col1
----
-810
-921664

skipif mysql # not compatible
query II rowsort label-2725
SELECT + 15 * - 54, 87 + - 44 * + + 47 * + - 78 + + 63 - + ( 88 ) - MIN ( + 43 ) * + + 7 * 72 * + COALESCE ( + 50, - NULLIF ( - 61, + + 81 ) * 21 ) * + 1 + - + 38 * + 3 * - 5 AS col1
----
-810
-921664

query I rowsort
SELECT - 85 * - 64 AS col1
----
5440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT ( + + CASE - + CAST( NULL AS SIGNED ) WHEN - ( - - 3 ) + + COUNT( + - ( 53 ) ) * - 76 THEN - 18 WHEN 99 THEN NULL END ) / - 87 * + - 13 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT ( + + CASE - + CAST ( NULL AS INTEGER ) WHEN - ( - - 3 ) + + COUNT ( + - ( 53 ) ) * - 76 THEN - 18 WHEN 99 THEN NULL END ) / - 87 * + - 13 + COUNT ( * )
----
NULL

query I rowsort
SELECT + ( - 59 ) + - 92
----
-151

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

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

query I rowsort
SELECT ALL - 75 * - + 99
----
7425

query I rowsort
SELECT NULLIF ( 21, 2 ) * + 45 + 46 * - 9 AS col2
----
531

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT ALL - 6 DIV - 97 + + - 29
----
-29

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - 6 / - 97 + + - 29
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT ALL 36 DIV + 5 + 12
----
19

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL 36 / + 5 + 12
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT + COUNT( * ) * + 6 * + 75 * 1 AS col0
----
450

skipif mysql # not compatible
query I rowsort label-2734
SELECT + COUNT ( * ) * + 6 * + 75 * 1 AS col0
----
450

query I rowsort
SELECT 3 * + 62 + 32 AS col2
----
218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT DISTINCT - COUNT( * ) DIV + 72 - + - 32 + + - 9 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT - COUNT ( * ) / + 72 - + - 32 + + - 9 AS col0
----
23

query I rowsort
SELECT ALL + 87 + - 60 - 37
----
-10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT - 33 DIV - 53 * + 8
----
0

skipif mysql # not compatible
query I rowsort label-2739
SELECT - 33 / - 53 * + 8
----
0

query I rowsort
SELECT ALL 3 + 78
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2741
SELECT ALL - - ( - + CAST( NULL AS SIGNED ) ) + 52 + 19 AS col1, + COUNT( - + 90 ) + 31 AS col0
----
NULL
32

skipif mysql # not compatible
query II rowsort label-2741
SELECT ALL - - ( - + CAST ( NULL AS INTEGER ) ) + 52 + 19 AS col1, + COUNT ( - + 90 ) + 31 AS col0
----
NULL
32

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

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

query I rowsort
SELECT ALL - - 49 - - 31 * - 9
----
-230

query I rowsort
SELECT 39 + 83
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT 76 DIV + ( 1 )
----
76

skipif mysql # not compatible
query I rowsort label-2745
SELECT 76 / + ( 1 )
----
76

query II rowsort
SELECT 47 * 67 * + + 32 AS col2, - 56 col2
----
100768
-56

query I rowsort
SELECT 82 + + 91 AS col2
----
173

query I rowsort
SELECT 92 + - 76
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT ALL + 79 DIV - 1 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + 79 / - 1 AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT 66 DIV - COALESCE ( - 53, 62, + ( + + 16 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2750
SELECT 66 / - COALESCE ( - 53, 62, + ( + + 16 ) ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT 9 * + ( - MAX( 91 ) ) AS col1
----
-819

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT 9 * + ( - MAX ( 91 ) ) AS col1
----
-819

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT DISTINCT + 88 DIV - + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + 88 / - + 99 AS col2
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2756
SELECT ALL COUNT( * ) + CASE 80 WHEN + - 11 - - SUM( CAST( NULL AS SIGNED ) ) THEN - CAST( + - ( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) * + 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL COUNT ( * ) + CASE 80 WHEN + - 11 - - SUM ( CAST ( NULL AS INTEGER ) ) THEN - CAST ( + - ( - CAST ( NULL AS REAL ) ) AS INTEGER ) * + 0 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT 91 * - MAX( - 26 ) AS col0, COUNT( DISTINCT + 43 )
----
2366
1

skipif mysql # not compatible
query II rowsort label-2757
SELECT 91 * - MAX ( - 26 ) AS col0, COUNT ( DISTINCT + 43 )
----
2366
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL 1 + + + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL 1 + + + COUNT ( * ) col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT CASE ( + CASE + 75 WHEN + 47 + + 75 + - + 80 + COALESCE ( - - 6, + COUNT( * ) * 57 * + - 94 ) * - COUNT( * ) * 52 THEN 20 END ) WHEN - 13 + 39 - 13 * 10 THEN - + AVG ( + 30 ) * + 11 / 24 * + 13 - - - ( + - 9 ) WHEN - COUNT( * ) - - COUNT( * ) * - 15 * - 25 + COUNT( 25 ) THEN NULL WHEN 51 THEN 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT CASE ( + CASE + 75 WHEN + 47 + + 75 + - + 80 + COALESCE ( - - 6, + COUNT ( * ) * 57 * + - 94 ) * - COUNT ( * ) * 52 THEN 20 END ) WHEN - 13 + 39 - 13 * 10 THEN - + AVG ( + 30 ) * + 11 / 24 * + 13 - - - ( + - 9 ) WHEN - COUNT ( * ) - - COUNT ( * ) * - 15 * - 25 + COUNT ( 25 ) THEN NULL WHEN 51 THEN 45 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT - + NULLIF ( + 9, - COUNT( * ) * + 33 + 56 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT - + NULLIF ( + 9, - COUNT ( * ) * + 33 + 56 ) AS col1
----
-9

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

query I rowsort
SELECT ALL + 1 - - 26 - + 14 AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2763
SELECT + 40 - - - 20 + - 28 * COUNT( * ) * - 32 + - 61 DIV 82 * - 52
----
916

skipif mysql # not compatible
query I rowsort label-2763
SELECT + 40 - - - 20 + - 28 * COUNT ( * ) * - 32 + - 61 / 82 * - 52
----
916

query I rowsort
SELECT - 6 * + 77
----
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2765
SELECT + CAST( - SUM( - 37 ) AS SIGNED ) AS col0, - MAX( + 43 ) - + 6 DIV + - 25
----
37
-43

skipif mysql # not compatible
query II rowsort label-2765
SELECT + CAST ( - SUM ( - 37 ) AS INTEGER ) AS col0, - MAX ( + 43 ) - + 6 / + - 25
----
37
-43

query I rowsort
SELECT 76 + 59
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ( - + ( - 24 ) ) * + 51 - - 62 + COUNT( * ) * - + ( - - ( - 66 ) )
----
1352

skipif mysql # not compatible
query I rowsort label-2767
SELECT ( - + ( - 24 ) ) * + 51 - - 62 + COUNT ( * ) * - + ( - - ( - 66 ) )
----
1352

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2769
SELECT 17 AS col0, CAST( NULL AS SIGNED )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-2769
SELECT 17 AS col0, CAST ( NULL AS INTEGER )
----
17
NULL

query I rowsort
SELECT 92 * - 44
----
-4048

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT SUM( DISTINCT + 12 ) + - 49 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2771
SELECT SUM ( DISTINCT + 12 ) + - 49 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL MAX( ALL - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL MAX ( ALL - 26 ) AS col2
----
-26

query II rowsort
SELECT - 1, 52 AS col2
----
-1
52

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

query I rowsort
SELECT 82 + + 97 AS col0
----
179

query I rowsort
SELECT ALL + 2 + 53
----
55

query I rowsort
SELECT DISTINCT + 56 + + 59 col1
----
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT 7 - MIN( DISTINCT - + 22 )
----
29

skipif mysql # not compatible
query I rowsort label-2779
SELECT 7 - MIN ( DISTINCT - + 22 )
----
29

query I rowsort
SELECT 81 + 6
----
87

query I rowsort
SELECT ALL - 90 * - 21 + - - 20 + 47 - - 60 + 51 * + 14 * - 14 + - 21 - - + 52 AS col1
----
-7948

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

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

query I rowsort
SELECT + 46 * - - ( 2 ) + - - 23 AS col2
----
115

query I rowsort
SELECT NULLIF ( 16, + 57 ) col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2785
SELECT 39 DIV - 74 + - SUM( - 65 ) + 32 DIV - - COUNT( * ) - + 13 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2785
SELECT 39 / - 74 + - SUM ( - 65 ) + 32 / - - COUNT ( * ) - + 13 AS col1
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT 16 * + - 23 + + 75 - + NULLIF ( + MIN( DISTINCT - 78 ), + - 94 * + 81 ) + + + 5 - + - 16
----
-194

skipif mysql # not compatible
query I rowsort label-2787
SELECT 16 * + - 23 + + 75 - + NULLIF ( + MIN ( DISTINCT - 78 ), + - 94 * + 81 ) + + + 5 - + - 16
----
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2788
SELECT ALL - 76 * + CAST( NULL AS SIGNED ) - + - 53 col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT + COUNT( 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2789
SELECT + COUNT ( 14 ) AS col1
----
1

query I rowsort
SELECT - 53 * 99 + - 99 + + 23
----
-5323

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

query I rowsort
SELECT ALL - 47 * 29 - - 35 AS col1
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT - MAX( 58 ) * - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-2793
SELECT - MAX ( 58 ) * - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query III rowsort label-2794
SELECT + + 68 col1, 89 AS col0, - + MAX( DISTINCT 86 )
----
68
89
-86

skipif mysql # not compatible
query III rowsort label-2794
SELECT + + 68 col1, 89 AS col0, - + MAX ( DISTINCT 86 )
----
68
89
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2795
SELECT + + COUNT( * ), + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2795
SELECT + + COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT + + ( - + 84 ) * + - 18
----
1512

query I rowsort
SELECT ALL + - NULLIF ( + + 98, + 54 )
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2798
SELECT DISTINCT + 50 AS col2, - CASE - + 67 WHEN - 34 * - + 6 - - 28 THEN NULL ELSE MIN( ALL + + 86 ) END AS col2
----
50
-86

skipif mysql # not compatible
query II rowsort label-2798
SELECT DISTINCT + 50 AS col2, - CASE - + 67 WHEN - 34 * - + 6 - - 28 THEN NULL ELSE MIN ( ALL + + 86 ) END AS col2
----
50
-86

query I rowsort
SELECT ALL + 28 * - - 14 AS col0
----
392

query I rowsort
SELECT + ( + 14 ) * 27 * 35
----
13230

query II rowsort
SELECT - 66, NULLIF ( - 5, + ( - 29 ) * - + 51 * - - 61 ) * - 37 col1
----
-66
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT + CASE COUNT( DISTINCT - 11 ) WHEN + 66 * + 94 THEN 28 * - CAST( NULL AS SIGNED ) + - COUNT( * ) + + + 96 - CAST( NULL AS SIGNED ) * - 68 ELSE NULL END * ( + ( - - 68 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT + CASE COUNT ( DISTINCT - 11 ) WHEN + 66 * + 94 THEN 28 * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + + 96 - CAST ( NULL AS INTEGER ) * - 68 ELSE NULL END * ( + ( - - 68 ) ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL 98 * - - CASE + 82 WHEN + - 46 / 37 THEN NULL WHEN + - MAX( - - 1 ) THEN NULL ELSE NULLIF ( ( - - ( - + 87 ) ), NULLIF ( 46, + 19 * 78 ) ) END
----
-8526

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL 98 * - - CASE + 82 WHEN + - 46 / 37 THEN NULL WHEN + - MAX ( - - 1 ) THEN NULL ELSE NULLIF ( ( - - ( - + 87 ) ), NULLIF ( 46, + 19 * 78 ) ) END
----
-8526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2805
SELECT + NULLIF ( + - 35, + ( + ( + 76 ) ) ) DIV - - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-2805
SELECT + NULLIF ( + - 35, + ( + ( + 76 ) ) ) / - - COUNT ( * )
----
-35

query I rowsort
SELECT + 50 * + 64 * 23 + + 16 AS col0
----
73616

query I rowsort
SELECT - COALESCE ( 60, 48 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2808
SELECT + CAST( + 76 AS SIGNED ) - - + COUNT( - - 40 ) + 73 * - 69 * 10 AS col2
----
-50293

skipif mysql # not compatible
query I rowsort label-2808
SELECT + CAST ( + 76 AS INTEGER ) - - + COUNT ( - - 40 ) + 73 * - 69 * 10 AS col2
----
-50293

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

skipif mysql # not compatible
query I rowsort label-2809
SELECT + 74 / + COUNT ( * ) AS col0
----
74

query I rowsort
SELECT + COALESCE ( 58, - - 8, 24 + - 43 ) - + 0
----
58

query I rowsort
SELECT ALL 38 * 70
----
2660

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2812
SELECT ALL - 16 DIV - COALESCE ( + - 77, 47 DIV 40 * - 96 + - MAX( + 15 ) ), - 13 AS col1
----
0
-13

skipif mysql # not compatible
query II rowsort label-2812
SELECT ALL - 16 / - COALESCE ( + - 77, 47 / 40 * - 96 + - MAX ( + 15 ) ), - 13 AS col1
----
0
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT - 20 + - 86 + - + CAST( 75 AS SIGNED ) AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-2813
SELECT - 20 + - 86 + - + CAST ( 75 AS INTEGER ) AS col2
----
-181

query I rowsort
SELECT DISTINCT + 71 + + 52 + + 12 AS col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT ALL + COALESCE ( 33, - ( - ( 37 ) ), - 33 * 77 / - 71 ) * - 82 * - 34 * + CASE + + 95 WHEN - 5 + + 39 THEN NULL WHEN 52 THEN + - NULLIF ( + 90, + - ( - NULLIF ( - 14, + - COUNT( CAST( NULL AS SIGNED ) ) ) ) ) + - + 57 + COALESCE ( - 53, 53 ) * - 0 + - 53 WHEN + ( 14 ) + - 66 THEN NULL END * + 25 - 30 + + 3 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL + COALESCE ( 33, - ( - ( 37 ) ), - 33 * 77 / - 71 ) * - 82 * - 34 * + CASE + + 95 WHEN - 5 + + 39 THEN NULL WHEN 52 THEN + - NULLIF ( + 90, + - ( - NULLIF ( - 14, + - COUNT ( CAST ( NULL AS INTEGER ) ) ) ) ) + - + 57 + COALESCE ( - 53, 53 ) * - 0 + - 53 WHEN + ( 14 ) + - 66 THEN NULL END * + 25 - 30 + + 3 col1
----
NULL

query I rowsort
SELECT DISTINCT + 26 - 24
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT ALL + 31 DIV - 91 - + 24 * - - 98
----
-2352

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL + 31 / - 91 - + 24 * - - 98
----
-2352

onlyif mysql # aggregate syntax: 
query II rowsort label-2818
SELECT MIN( 66 ) AS col2, - 10 AS col1
----
66
-10

skipif mysql # not compatible
query II rowsort label-2818
SELECT MIN ( 66 ) AS col2, - 10 AS col1
----
66
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT ALL - 24 DIV - 73 * 58 * + 51 + - 97 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL - 24 / - 73 * 58 * + 51 + - 97 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query III rowsort label-2820
SELECT ALL COUNT( * ) * + 40, 79 * - + ( 77 ) AS col2, + 77 AS col1
----
40
-6083
77

skipif mysql # not compatible
query III rowsort label-2820
SELECT ALL COUNT ( * ) * + 40, 79 * - + ( 77 ) AS col2, + 77 AS col1
----
40
-6083
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT + + 94 * + - ( + - 34 ) + + - 6 + - + COUNT( * ) + 4
----
3193

skipif mysql # not compatible
query I rowsort label-2822
SELECT + + 94 * + - ( + - 34 ) + + - 6 + - + COUNT ( * ) + 4
----
3193

query I rowsort
SELECT DISTINCT - - 0 * 54 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT ( - 3 ) * COUNT( * ) + CAST( + 65 AS SIGNED ) + - + 84 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2824
SELECT ( - 3 ) * COUNT ( * ) + CAST ( + 65 AS INTEGER ) + - + 84 AS col2
----
-22

query I rowsort
SELECT + 51 - 99
----
-48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT + 46 * 42 + - 28 - 90 DIV - - 41
----
1902

skipif mysql # not compatible
query I rowsort label-2827
SELECT + 46 * 42 + - 28 - 90 / - - 41
----
1902

query I rowsort
SELECT ALL ( 61 ) * - - 90 + 45 AS col2
----
5535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2829
SELECT MIN( DISTINCT + CAST( - - 2 AS SIGNED ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2829
SELECT MIN ( DISTINCT + CAST ( - - 2 AS INTEGER ) ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT + CAST( NULL AS SIGNED ) + CASE + 51 WHEN - 1 * + SUM( DISTINCT 79 ) THEN + + 35 WHEN 38 + 34 THEN NULL END + + 17 + 99 * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT + CAST ( NULL AS INTEGER ) + CASE + 51 WHEN - 1 * + SUM ( DISTINCT 79 ) THEN + + 35 WHEN 38 + 34 THEN NULL END + + 17 + 99 * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT ALL NULLIF ( + - 88, - + SUM( - 41 ) ) * - 7 - - - 56, 83 - - 54 AS col2
----
560
137

skipif mysql # not compatible
query II rowsort label-2831
SELECT ALL NULLIF ( + - 88, - + SUM ( - 41 ) ) * - 7 - - - 56, 83 - - 54 AS col2
----
560
137

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

query I rowsort
SELECT DISTINCT 80 * 17 AS col1
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL - COUNT( * ) * SUM( + 99 ) * - - 25 * 87 * + 30 + - COUNT( - 61 ) + - 34 AS col2
----
-6459785

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL - COUNT ( * ) * SUM ( + 99 ) * - - 25 * 87 * + 30 + - COUNT ( - 61 ) + - 34 AS col2
----
-6459785

query I rowsort
SELECT 81 + + + ( 2 ) AS col1
----
83

query I rowsort
SELECT 0 * + ( + 56 ) col0
----
0

query I rowsort
SELECT 7 + - + 12 * + 63
----
-749

query II rowsort
SELECT ALL 74, ( + 37 ) * 33 AS col0
----
74
1221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2839
SELECT ( MAX( ALL + + 74 ) ) + + 89 DIV + ( + - MIN( ALL + + 45 ) )
----
73

skipif mysql # not compatible
query I rowsort label-2839
SELECT ( MAX ( ALL + + 74 ) ) + + 89 / + ( + - MIN ( ALL + + 45 ) )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT ALL - 85 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - 85 / - 95
----
0

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

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

query I rowsort
SELECT + + COALESCE ( 57, + 96 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT + + MAX( ALL - - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-2843
SELECT + + MAX ( ALL - - 78 )
----
78

query II rowsort
SELECT ALL - + 3 AS col2, 6 * + 26 AS col0
----
-3
156

query I rowsort
SELECT - 86 + + - 17 col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL - 61 * - - 72 + CASE + 23 WHEN - 5 * - 91 * - + COUNT( * ) / - 70 + - ( ( 55 ) ) + - 55 * - - SUM( - + 71 ) THEN - 18 WHEN - - 34 * - - 82 + - 43 THEN - 53 + - 16 / + 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL - 61 * - - 72 + CASE + 23 WHEN - 5 * - 91 * - + COUNT ( * ) / - 70 + - ( ( 55 ) ) + - 55 * - - SUM ( - + 71 ) THEN - 18 WHEN - - 34 * - - 82 + - 43 THEN - 53 + - 16 / + 25 END
----
NULL

query I rowsort
SELECT DISTINCT + 50 * - 78 AS col0
----
-3900

onlyif mysql # aggregate syntax: 
query II rowsort label-2848
SELECT - NULLIF ( - ( - + COUNT( * ) ), 54 ) AS col0, 9
----
-1
9

skipif mysql # not compatible
query II rowsort label-2848
SELECT - NULLIF ( - ( - + COUNT ( * ) ), 54 ) AS col0, 9
----
-1
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2849
SELECT 21 * - CAST( NULL AS SIGNED ) * - 94 AS col1, - 37
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-2849
SELECT 21 * - CAST ( NULL AS INTEGER ) * - 94 AS col1, - 37
----
NULL
-37

query I rowsort
SELECT ALL - 12 + + NULLIF ( 8, 63 ) AS col1
----
-4

query I rowsort
SELECT + 7 * - 52 + + 61 + + + 91 AS col2
----
-212

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT 0 DIV + 42 * 55
----
0

skipif mysql # not compatible
query I rowsort label-2853
SELECT 0 / + 42 * 55
----
0

query I rowsort
SELECT + 49 + - - 14
----
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT - + MIN( ALL + 8 ) * - 94 + 32 + + + COUNT( * ) + + - MAX( - 54 ) * - + 49 + - 89
----
-1950

skipif mysql # not compatible
query I rowsort label-2856
SELECT - + MIN ( ALL + 8 ) * - 94 + 32 + + + COUNT ( * ) + + - MAX ( - 54 ) * - + 49 + - 89
----
-1950

query I rowsort
SELECT ALL + 76 + + 50 * 89
----
4526

query I rowsort
SELECT ALL - 15 * 13 * + 2
----
-390

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL + 88 + CASE + CASE - 8 WHEN - 63 * - - 42 THEN NULL WHEN + - 42 THEN - 26 END WHEN 85 / 78 THEN + COUNT( * ) * + 7 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL + 88 + CASE + CASE - 8 WHEN - 63 * - - 42 THEN NULL WHEN + - 42 THEN - 26 END WHEN 85 / 78 THEN + COUNT ( * ) * + 7 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2861
SELECT ALL COUNT( 9 ) + + 83 + - CASE 5 WHEN - 94 + CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( * ) * 64 - - 34 * 44 THEN NULL WHEN + MIN( DISTINCT 29 ) THEN - 98 END * 32 + COALESCE ( - ( - 16 ), + COUNT( * ), - 38 ) / 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL COUNT ( 9 ) + + 83 + - CASE 5 WHEN - 94 + CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) * 64 - - 34 * 44 THEN NULL WHEN + MIN ( DISTINCT 29 ) THEN - 98 END * 32 + COALESCE ( - ( - 16 ), + COUNT ( * ), - 38 ) / 32 AS col2
----
NULL

query I rowsort
SELECT 11 * - 96
----
-1056

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT COUNT( * ) + - 51 + + NULLIF ( COUNT( * ), - + 68 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2864
SELECT COUNT ( * ) + - 51 + + NULLIF ( COUNT ( * ), - + 68 ) AS col2
----
-49

query I rowsort
SELECT 20 * + 9 * - 8
----
-1440

query I rowsort
SELECT 10 - - - 38 + 84 * - 35 * 89 AS col0
----
-261688

query II rowsort
SELECT ALL - 53 * + 70 col1, 99 + + 19
----
-3710
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT COUNT( * ) - - NULLIF ( + 91, + 23 / 77 )
----
92

skipif mysql # not compatible
query I rowsort label-2868
SELECT COUNT ( * ) - - NULLIF ( + 91, + 23 / 77 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2869
SELECT DISTINCT 90 * - + ( 48 ) * - MAX( DISTINCT 4 ) * + 86 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT 90 * - + ( 48 ) * - MAX ( DISTINCT 4 ) * + 86 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 35 * - 47 AS col1
----
-1645

query II rowsort
SELECT ALL 25 * + 97 col2, 69 col1
----
2425
69

query II rowsort
SELECT 42 + + 91 AS col2, + 52 * + + 11 AS col0
----
133
572

query II rowsort
SELECT DISTINCT 37 - + 86 AS col0, + 24 AS col1
----
-49
24

query I rowsort
SELECT + 90 + ( + - 59 )
----
31

query I rowsort
SELECT COALESCE ( - 39, - 3 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL - SUM( ALL - 76 ) * - COUNT( * ) + 30 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - SUM ( ALL - 76 ) * - COUNT ( * ) + 30 AS col0
----
-46

query I rowsort
SELECT + 6 * - 85
----
-510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2878
SELECT ALL 76 DIV 30 + - 45 DIV + + COUNT( ALL - - 71 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL 76 / 30 + - 45 / + + COUNT ( ALL - - 71 ) AS col2
----
-43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2880
SELECT DISTINCT COUNT( * ) * - - 35 + - 54 + - + CASE + + 61 WHEN + CASE + 83 WHEN + - 93 * 70 THEN NULL WHEN 6 + + - CAST( NULL AS SIGNED ) THEN NULL WHEN 41 THEN - 74 - - - 27 END * - 96 THEN - 6 * + 58 ELSE ( 36 ) END + - 64 AS col1
----
-119

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT COUNT ( * ) * - - 35 + - 54 + - + CASE + + 61 WHEN + CASE + 83 WHEN + - 93 * 70 THEN NULL WHEN 6 + + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 41 THEN - 74 - - - 27 END * - 96 THEN - 6 * + 58 ELSE ( 36 ) END + - 64 AS col1
----
-119

query I rowsort
SELECT ALL - 89 * + 59 col1
----
-5251

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT DISTINCT CASE ( - - 32 ) WHEN 44 THEN + 38 * - - COUNT( * ) + + 37 - - ( - MAX( 41 ) ) WHEN 23 + + 8 * ( 80 ) THEN + + 93 * + COUNT( * ) ELSE + - 67 END * - 36 + 7 * + 35
----
2657

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT CASE ( - - 32 ) WHEN 44 THEN + 38 * - - COUNT ( * ) + + 37 - - ( - MAX ( 41 ) ) WHEN 23 + + 8 * ( 80 ) THEN + + 93 * + COUNT ( * ) ELSE + - 67 END * - 36 + 7 * + 35
----
2657

onlyif mysql # aggregate syntax: 
query II rowsort label-2883
SELECT 95 + MAX( DISTINCT + 63 ), COUNT( * ) + + + ( + 83 ) AS col0
----
158
84

skipif mysql # not compatible
query II rowsort label-2883
SELECT 95 + MAX ( DISTINCT + 63 ), COUNT ( * ) + + + ( + 83 ) AS col0
----
158
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT ALL 16 + + + 52 + + 7 + - + COUNT( * ) * - COUNT( 18 ) * + NULLIF ( - CAST( + + COUNT( * ) AS SIGNED ), - COUNT( * ) * + - 35 - - - 96 + + - 16 / + 30 * - + COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL 16 + + + 52 + + 7 + - + COUNT ( * ) * - COUNT ( 18 ) * + NULLIF ( - CAST ( + + COUNT ( * ) AS INTEGER ), - COUNT ( * ) * + - 35 - - - 96 + + - 16 / + 30 * - + COUNT ( * ) )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT + CASE - 35 WHEN - + CAST( - 95 AS SIGNED ) * + COUNT( ALL + 63 ) * + + 82 + COUNT( * ) + - 89 THEN + 92 ELSE NULL END * - COUNT( * ) - + - 84 + + COUNT( * ) + 3 + + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT + CASE - 35 WHEN - + CAST ( - 95 AS INTEGER ) * + COUNT ( ALL + 63 ) * + + 82 + COUNT ( * ) + - 89 THEN + 92 ELSE NULL END * - COUNT ( * ) - + - 84 + + COUNT ( * ) + 3 + + 22 col0
----
NULL

query I rowsort
SELECT - 3 - - 22
----
19

query I rowsort
SELECT ALL + NULLIF ( + 89, - 36 )
----
89

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

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

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT + COUNT ( * ) / + 50 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT DISTINCT - COALESCE ( - - 83, + + 11 ) * + + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT - COALESCE ( - - 83, + + 11 ) * + + COUNT ( * )
----
-83

query II rowsort
SELECT - 26, - 43 + 98 col1
----
-26
55

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

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

query I rowsort
SELECT + 2 * 60 AS col1
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-2894
SELECT - + 5 + - 73 - COUNT( * ) AS col0, 99 + - - 73 + + + 36 * + COUNT( * ) AS col2
----
-79
208

skipif mysql # not compatible
query II rowsort label-2894
SELECT - + 5 + - 73 - COUNT ( * ) AS col0, 99 + - - 73 + + + 36 * + COUNT ( * ) AS col2
----
-79
208

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL + 25 + - ( - - COUNT( + + 26 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + 25 + - ( - - COUNT ( + + 26 ) ) AS col2
----
24

query I rowsort
SELECT ALL - 45 + - NULLIF ( + 43, - 65 ) AS col1
----
-88

query I rowsort
SELECT + 77 + + 20 + + 43 + + 98 * 32
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL + COUNT( * ) * + - 78 * COUNT( * ) * + 79 col2
----
-6162

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL + COUNT ( * ) * + - 78 * COUNT ( * ) * + 79 col2
----
-6162

query I rowsort
SELECT + 4 + + 94 * 22 AS col2
----
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT + 35 / 12 + + COUNT( * ) + 96 + - CASE + 6 WHEN + 9 THEN + COUNT( 31 ) + NULLIF ( 85, + - NULLIF ( 3, + 55 ) ) ELSE NULL END * 95 * - + 53 - + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT + 35 / 12 + + COUNT ( * ) + 96 + - CASE + 6 WHEN + 9 THEN + COUNT ( 31 ) + NULLIF ( 85, + - NULLIF ( 3, + 55 ) ) ELSE NULL END * 95 * - + 53 - + 94 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + NULLIF ( - 98, - 49 )
----
-98

query I rowsort
SELECT ALL + + 14 col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT + + CASE + + 51 WHEN - - 57 THEN 99 + + ( - 85 ) + - 53 * - 36 - 19 + - 63 * - + CAST( - 76 AS SIGNED ) ELSE + - 49 END + - + MIN( + 49 )
----
-98

skipif mysql # not compatible
query I rowsort label-2905
SELECT + + CASE + + 51 WHEN - - 57 THEN 99 + + ( - 85 ) + - 53 * - 36 - 19 + - 63 * - + CAST ( - 76 AS INTEGER ) ELSE + - 49 END + - + MIN ( + 49 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL 52 * + - 66 + - - 33 * - COALESCE ( - + SUM( ( - 45 ) ), 41 )
----
-4917

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL 52 * + - 66 + - - 33 * - COALESCE ( - + SUM ( ( - 45 ) ), 41 )
----
-4917

onlyif mysql # aggregate syntax: 
query III rowsort label-2907
SELECT + NULLIF ( - - 42, + 26 * + 53 + - 89 + + COUNT( * ) + + 89 - + 89 + 45 + + - 8 + - 3 * 37 * - COUNT( * ) ) AS col2, 94 + - + 2 * + 13, + 80 AS col0
----
42
68
80

skipif mysql # not compatible
query III rowsort label-2907
SELECT + NULLIF ( - - 42, + 26 * + 53 + - 89 + + COUNT ( * ) + + 89 - + 89 + 45 + + - 8 + - 3 * 37 * - COUNT ( * ) ) AS col2, 94 + - + 2 * + 13, + 80 AS col0
----
42
68
80

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

query I rowsort
SELECT 88 * - 5 + + 72
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT + 80 + - ( + COUNT( * ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2910
SELECT + 80 + - ( + COUNT ( * ) ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT COALESCE ( - + MAX( DISTINCT - 75 ), + - 11 ) col2
----
75

skipif mysql # not compatible
query I rowsort label-2911
SELECT COALESCE ( - + MAX ( DISTINCT - 75 ), + - 11 ) col2
----
75

query I rowsort
SELECT + 68 * + - 35
----
-2380

query I rowsort
SELECT - 74 * + - 65
----
4810

query I rowsort
SELECT CASE 41 WHEN + 45 THEN 94 + + + 62 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2915
SELECT ALL + 81 AS col0, 32 * + 52 * - + COUNT( * )
----
81
-1664

skipif mysql # not compatible
query II rowsort label-2915
SELECT ALL + 81 AS col0, 32 * + 52 * - + COUNT ( * )
----
81
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT 17 * - 11 + - MAX( DISTINCT + 16 )
----
-203

skipif mysql # not compatible
query I rowsort label-2916
SELECT 17 * - 11 + - MAX ( DISTINCT + 16 )
----
-203

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

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

query I rowsort
SELECT + 38 * - - 96
----
3648

onlyif mysql # aggregate syntax: 
query II rowsort label-2919
SELECT ALL + 0, + 87 + + + 76 * + SUM( DISTINCT 40 ) + + + 53 + + - ( + 23 ) AS col0
----
0
3157

skipif mysql # not compatible
query II rowsort label-2919
SELECT ALL + 0, + 87 + + + 76 * + SUM ( DISTINCT 40 ) + + + 53 + + - ( + 23 ) AS col0
----
0
3157

query I rowsort
SELECT + 84 - - 42 AS col0
----
126

query I rowsort
SELECT + 60 + - ( + 8 ) - + ( 34 ) col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT MAX( - NULLIF ( 68, + 11 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-2922
SELECT MAX ( - NULLIF ( 68, + 11 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT - 84 + + - COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2923
SELECT - 84 + + - COUNT ( * ) AS col0
----
-85

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2925
SELECT ALL CAST( - 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL CAST ( - 63 AS INTEGER )
----
-63

query I rowsort
SELECT - CASE - 73 WHEN + 62 THEN NULL WHEN + 3 THEN - 9 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 8 + 77 * + 46 + + ( - + 29 )
----
3521

query I rowsort
SELECT ALL - 96 + - - 88 + 77
----
69

query I rowsort
SELECT ALL + + ( + 38 ) + 61 * + - 31
----
-1853

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL - + 21 * - COALESCE ( + COALESCE ( NULLIF ( + - COALESCE ( - 79, 21 ), - + 35 * + - COUNT( * ) + 99 * - - 94 * + COALESCE ( + 83, - 90, - - 7 ) ), + 96 + 51 ), + 14, + MAX( - - 48 ) )
----
1659

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - + 21 * - COALESCE ( + COALESCE ( NULLIF ( + - COALESCE ( - 79, 21 ), - + 35 * + - COUNT ( * ) + 99 * - - 94 * + COALESCE ( + 83, - 90, - - 7 ) ), + 96 + 51 ), + 14, + MAX ( - - 48 ) )
----
1659

query I rowsort
SELECT + 5 * + COALESCE ( + - 63, + + 64, - + 34 * + + 53 + 94 + + 28 + + ( - 13 ) + + - 20 ) AS col1
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT + SUM( + + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-2932
SELECT + SUM ( + + 51 )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT - + 19 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT - + 19 / + 64
----
0

query I rowsort
SELECT ALL - - 91 + - - 31 col1
----
122

query I rowsort
SELECT + NULLIF ( - 7, 54 * + + COALESCE ( 33, 42 ) )
----
-7

query I rowsort
SELECT - - 33 * + + 93
----
3069

query II rowsort
SELECT DISTINCT + - 62 + + 57 col1, - 11 + ( - CASE 76 WHEN - ( - 99 ) + + 72 THEN 21 * 40 ELSE NULL END ) * 24 AS col1
----
-5
NULL

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

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

query II rowsort
SELECT DISTINCT - 39 * - 96, 49 AS col1
----
3744
49

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

skipif mysql # not compatible
query II rowsort label-2940
SELECT + + 21 AS col1, COUNT ( * ) AS col1
----
21
1

query II rowsort
SELECT 85 + 78 col1, + 11 - + 67 col2
----
163
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT ALL 86 - - CAST( + + 34 AS SIGNED ) * ( + - 57 ) * + 67 + 15 + - 14 AS col0
----
-129759

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL 86 - - CAST ( + + 34 AS INTEGER ) * ( + - 57 ) * + 67 + 15 + - 14 AS col0
----
-129759

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

skipif mysql # not compatible
query I rowsort label-2943
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) * + - 29 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 57 - - + 41 * - 44 - + - 81 AS col0
----
-1780

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT 30 * - CASE + + 9 WHEN - - COUNT( * ) + - 51 THEN + 95 * + 89 + 28 * + - 72 * + + 83 WHEN 97 THEN NULL END + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT 30 * - CASE + + 9 WHEN - - COUNT ( * ) + - 51 THEN + 95 * + 89 + 28 * + - 72 * + + 83 WHEN 97 THEN NULL END + + 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2947
SELECT COUNT( * ) + - + COALESCE ( - 88, - - 80 DIV + 13 * 85 + COUNT( * ) ) * - 99
----
-8711

skipif mysql # not compatible
query I rowsort label-2947
SELECT COUNT ( * ) + - + COALESCE ( - 88, - - 80 / + 13 * 85 + COUNT ( * ) ) * - 99
----
-8711

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2949
SELECT 45 - 45 DIV + 83
----
45

skipif mysql # not compatible
query I rowsort label-2949
SELECT 45 - 45 / + 83
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT 16 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT 16 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT 51 * ( - COUNT( * ) ) * - COUNT( * ) col0
----
51

skipif mysql # not compatible
query I rowsort label-2951
SELECT 51 * ( - COUNT ( * ) ) * - COUNT ( * ) col0
----
51

query I rowsort
SELECT DISTINCT 14 + + 80 * + - 16
----
-1266

query I rowsort
SELECT ( - 69 ) * + 17 AS col0
----
-1173

query I rowsort
SELECT ALL 66 + - + 4
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT 3 * MAX( DISTINCT 37 ) + - 94 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2955
SELECT 3 * MAX ( DISTINCT 37 ) + - 94 AS col0
----
17

query I rowsort
SELECT DISTINCT + 67 * ( + - 73 ) AS col1
----
-4891

query I rowsort
SELECT ALL 6 + + + 18 AS col2
----
24

query I rowsort
SELECT + 59 * 77 col1
----
4543

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT + 3 + + - COUNT( * ) + - - 88 * - COUNT( * ) * - + 38 * - - 47 * - 1 AS col2, + 42 + - + 0 * - - 69 + + 34 AS col1
----
-157166
76

skipif mysql # not compatible
query II rowsort label-2959
SELECT + 3 + + - COUNT ( * ) + - - 88 * - COUNT ( * ) * - + 38 * - - 47 * - 1 AS col2, + 42 + - + 0 * - - 69 + + 34 AS col1
----
-157166
76

query I rowsort
SELECT ALL - 42 + + 67 * + + 18
----
1164

query I rowsort
SELECT - 26 + + 50 * + 16 * - 38 * + - 79 col1
----
2401574

query I rowsort
SELECT - 53 + + 94 AS col1
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2963
SELECT ALL - CAST( NULL AS DECIMAL ) - - 67 * + 68 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - CAST ( NULL AS REAL ) - - 67 * + 68 + 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT DISTINCT - 90 DIV - 6 + - MIN( DISTINCT 8 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT - 90 / - 6 + - MIN ( DISTINCT 8 ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT + ( - 36 ) + - 3 * COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-2965
SELECT + ( - 36 ) + - 3 * COUNT ( * ) AS col1
----
-39

query I rowsort
SELECT ALL - 57 * - 45
----
2565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT 21 + - - 23 * + + CASE - 77 WHEN - 3 + + + 98 THEN + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT 21 + - - 23 * + + CASE - 77 WHEN - 3 + + + 98 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT - 93 * - - MIN( DISTINCT 60 ) AS col2, - 51
----
-5580
-51

skipif mysql # not compatible
query II rowsort label-2968
SELECT - 93 * - - MIN ( DISTINCT 60 ) AS col2, - 51
----
-5580
-51

query I rowsort
SELECT - + NULLIF ( - 25, 97 + 76 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2970
SELECT ALL + - CASE - + 92 WHEN COUNT( * ) * COALESCE ( - 85, 50 ) THEN AVG ( - 66 ) END * + + 11 * - + 63 - - 57 * - 72, + ( - + 81 ) AS col0
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-2970
SELECT ALL + - CASE - + 92 WHEN COUNT ( * ) * COALESCE ( - 85, 50 ) THEN AVG ( - 66 ) END * + + 11 * - + 63 - - 57 * - 72, + ( - + 81 ) AS col0
----
NULL
-81

query I rowsort
SELECT 91 * + + 59
----
5369

query I rowsort
SELECT 94 * - 0 AS col0
----
0

query I rowsort
SELECT 98 * - 56 + - - 16 + + 70 AS col1
----
-5402

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT - COUNT( ALL - - 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT - COUNT ( ALL - - 2 )
----
-1

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

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

query I rowsort
SELECT ALL + 26 * - 31 AS col1
----
-806

query II rowsort
SELECT DISTINCT - 49, - 21 AS col1
----
-49
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-2978
SELECT ALL - CASE + + 85 WHEN 46 THEN + - 66 ELSE NULL END AS col1, - 9 DIV + 71
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2978
SELECT ALL - CASE + + 85 WHEN 46 THEN + - 66 ELSE NULL END AS col1, - 9 / + 71
----
NULL
0

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

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - MIN ( DISTINCT - 55 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2980
SELECT ALL - 65, CAST( NULL AS SIGNED ) + 11 * - 3 * 30 AS col2
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-2980
SELECT ALL - 65, CAST ( NULL AS INTEGER ) + 11 * - 3 * 30 AS col2
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL + ( - COALESCE ( 71, 61 - - + 70, + COALESCE ( - 81, + 60 * 75 + 39 + + MIN( + - 93 ) + ( - 75 ) ) * - 26 * - MAX( - 42 ) ) ) + + + 77 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL + ( - COALESCE ( 71, 61 - - + 70, + COALESCE ( - 81, + 60 * 75 + 39 + + MIN ( + - 93 ) + ( - 75 ) ) * - 26 * - MAX ( - 42 ) ) ) + + + 77 AS col1
----
6

query II rowsort
SELECT 15 AS col2, 14
----
15
14

query I rowsort
SELECT 19 * - 51
----
-969

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

skipif mysql # not compatible
query I rowsort label-2984
SELECT 55 + - - 0 / + 58 / - + COUNT ( * )
----
55

query I rowsort
SELECT ALL - ( - 50 ) * 61 * - 19 * + 95
----
-5505250

query II rowsort
SELECT 63, 2 - + - 11 + 54 col0
----
63
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT ALL 25 + - 44 * + CAST( + 41 AS SIGNED ) * + 17
----
-30643

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL 25 + - 44 * + CAST ( + 41 AS INTEGER ) * + 17
----
-30643

query I rowsort
SELECT 45 * - 21
----
-945

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

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

query I rowsort
SELECT DISTINCT 60 + + 10
----
70

query I rowsort
SELECT DISTINCT - ( + 62 ) * + 44
----
-2728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT ALL - CAST( - + 89 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL - CAST ( - + 89 AS INTEGER ) AS col2
----
89

query I rowsort
SELECT + 34 * - + ( - 55 ) - - 24 * + 56
----
3214

query II rowsort
SELECT + 74 col0, 22 + + + 37
----
74
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2995
SELECT 56 DIV - 41 + + COUNT( * ) + + 1 - - - 20
----
-19

skipif mysql # not compatible
query I rowsort label-2995
SELECT 56 / - 41 + + COUNT ( * ) + + 1 - - - 20
----
-19

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT + 1 * 99 * CASE 10 WHEN + 82 * - 17 * + 24 + 78 THEN - 37 DIV 46 * NULLIF ( + 8, + 8 DIV - 33 * 28 * - 50 ) ELSE - 72 END * + 43 AS col0
----
-306504

skipif mysql # not compatible
query I rowsort label-2997
SELECT + 1 * 99 * CASE 10 WHEN + 82 * - 17 * + 24 + 78 THEN - 37 / 46 * NULLIF ( + 8, + 8 / - 33 * 28 * - 50 ) ELSE - 72 END * + 43 AS col0
----
-306504

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

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL - MIN ( - 60 )
----
60

query I rowsort
SELECT DISTINCT - ( + COALESCE ( + 86, 61 ) ) - - 92 + + - 92
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT + COUNT( * ) - - 26 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT + COUNT ( * ) - - 26 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL ( 62 ) * 30 * - 72 + 92 * + - SUM( ALL - 58 ) AS col2
----
-128584

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL ( 62 ) * 30 * - 72 + 92 * + - SUM ( ALL - 58 ) AS col2
----
-128584

query I rowsort
SELECT ALL - 61 * + 56 AS col1
----
-3416

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT - - SUM( DISTINCT 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3004
SELECT - - SUM ( DISTINCT 42 )
----
42

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

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

query I rowsort
SELECT + 26 - + 2
----
24

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

skipif mysql # not compatible
query I rowsort label-3007
SELECT + 27 / 2 * + - COUNT ( * )
----
-13

query I rowsort
SELECT - NULLIF ( - + 78, + 97 ) AS col2
----
78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT - 15 - + + 98 DIV ( - 48 ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-3010
SELECT - 15 - + + 98 / ( - 48 ) col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT - MIN( ALL + 48 ) * + - 82 AS col1
----
3936

skipif mysql # not compatible
query I rowsort label-3011
SELECT - MIN ( ALL + 48 ) * + - 82 AS col1
----
3936

onlyif mysql # aggregate syntax: 
query II rowsort label-3012
SELECT + NULLIF ( + COUNT( * ), + AVG ( ALL 49 ) ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3012
SELECT + NULLIF ( + COUNT ( * ), + AVG ( ALL 49 ) ) AS col2, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT CASE - - 0 WHEN + + SUM( ALL - ( - 0 ) ) THEN + CAST( NULL AS SIGNED ) / ( + COALESCE ( + 22, COUNT( * ) * ( - 11 ) * + + 79 / - 97 ) ) ELSE + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT CASE - - 0 WHEN + + SUM ( ALL - ( - 0 ) ) THEN + CAST ( NULL AS INTEGER ) / ( + COALESCE ( + 22, COUNT ( * ) * ( - 11 ) * + + 79 / - 97 ) ) ELSE + COUNT ( * ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3014
SELECT 40 * - + CAST( + COUNT( * ) AS SIGNED ) + 86
----
46

skipif mysql # not compatible
query I rowsort label-3014
SELECT 40 * - + CAST ( + COUNT ( * ) AS INTEGER ) + 86
----
46

query II rowsort
SELECT - 55 + + 57, + 96 AS col0
----
2
96

query II rowsort
SELECT ALL 61 * - + 98 col0, - 92
----
-5978
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3017
SELECT ALL - 35 * + + 51 + + - 49 + 95 + + 71 * NULLIF ( + COUNT( * ), + + 19 ) * + 53 AS col2, - 79
----
2024
-79

skipif mysql # not compatible
query II rowsort label-3017
SELECT ALL - 35 * + + 51 + + - 49 + 95 + + 71 * NULLIF ( + COUNT ( * ), + + 19 ) * + 53 AS col2, - 79
----
2024
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT COALESCE ( + 38, 81 + - 6 * + + CAST( 66 AS SIGNED ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3018
SELECT COALESCE ( + 38, 81 + - 6 * + + CAST ( 66 AS INTEGER ) ) AS col2
----
38

query I rowsort
SELECT + 18 * - 74 + - 26
----
-1358

query II rowsort
SELECT + 59 + - - 55, 23 * - 18 + + 91 AS col1
----
114
-323

query I rowsort
SELECT - 99 + + COALESCE ( + 59, + 4 ) AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT ALL - 57 DIV - ( 88 )
----
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL - 57 / - ( 88 )
----
0

query I rowsort
SELECT - 12 + + 9 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL MIN( DISTINCT - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL MIN ( DISTINCT - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL COALESCE ( COUNT( * ), - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL COALESCE ( COUNT ( * ), - 71 )
----
1

query I rowsort
SELECT - 88 + - - ( - 3 ) AS col0
----
-91

query I rowsort
SELECT + + NULLIF ( - 9, + + COALESCE ( + 25, + 11 + - 26 ) * + 89 + - - 12 ) + 27 col2
----
18

query II rowsort
SELECT - NULLIF ( + + 76, - + 32 ) * - 95, + 56 AS col0
----
7220
56

query I rowsort
SELECT + 71 * + 8 AS col1
----
568

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT DISTINCT - ( - 14 ) AS col2, COUNT( - - 1 ) * - 22 + - - 29 * + 29 * - 22 AS col0
----
14
-18524

skipif mysql # not compatible
query II rowsort label-3031
SELECT DISTINCT - ( - 14 ) AS col2, COUNT ( - - 1 ) * - 22 + - - 29 * + 29 * - 22 AS col0
----
14
-18524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT DISTINCT - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

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

query I rowsort
SELECT + 85 * 96 col1
----
8160

query I rowsort
SELECT + 91 + 3 + + 1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL SUM( + 90 ) + + 12
----
102

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL SUM ( + 90 ) + + 12
----
102

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

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

skipif mysql # not compatible
query II rowsort label-3038
SELECT + ( - + MIN ( ALL + 87 ) ), CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-87
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT + COUNT( * ) * ( - + 43 ) * COUNT( * ) + - - 18 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3039
SELECT + COUNT ( * ) * ( - + 43 ) * COUNT ( * ) + - - 18 AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT ALL 47 / 13 * CAST( CASE - + 12 WHEN 70 THEN + 18 ELSE - COALESCE ( + CAST( + 49 AS SIGNED ), + 46, - 66 ) END AS SIGNED ) + MAX( + CAST( NULL AS SIGNED ) ) + - 49 * 75 + + 33 * - + AVG ( - 48 ) * + - 80 * 50 + - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL 47 / 13 * CAST ( CASE - + 12 WHEN 70 THEN + 18 ELSE - COALESCE ( + CAST ( + 49 AS INTEGER ), + 46, - 66 ) END AS INTEGER ) + MAX ( + CAST ( NULL AS INTEGER ) ) + - 49 * 75 + + 33 * - + AVG ( - 48 ) * + - 80 * 50 + - 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3041
SELECT + 55 * + + MAX( + ( - - 61 ) ) * + 3 + + 90 + + 29 * 66 * + COUNT( * ) * + 36 * - 21 * - 94 + - 16 + - 27 * - 42 AS col0, - MIN( + + 29 ) AS col1
----
136027769
-29

skipif mysql # not compatible
query II rowsort label-3041
SELECT + 55 * + + MAX ( + ( - - 61 ) ) * + 3 + + 90 + + 29 * 66 * + COUNT ( * ) * + 36 * - 21 * - 94 + - 16 + - 27 * - 42 AS col0, - MIN ( + + 29 ) AS col1
----
136027769
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL SUM( ALL - 37 ) * + COALESCE ( + 69, + + 72 * + - ( CASE 9 WHEN - 20 THEN 82 END ) ) * COUNT( * ) * + 80
----
-204240

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL SUM ( ALL - 37 ) * + COALESCE ( + 69, + + 72 * + - ( CASE 9 WHEN - 20 THEN 82 END ) ) * COUNT ( * ) * + 80
----
-204240

query II rowsort
SELECT ALL + 16, 14 AS col2
----
16
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT CAST( ( - 0 ) AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3044
SELECT CAST ( ( - 0 ) AS INTEGER ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3045
SELECT ALL - COUNT( * ) DIV + + ( - 71 ) * ( + 4 ) * + - CASE + 40 WHEN - COUNT( * ) THEN NULL ELSE + 33 END + 47, 53 DIV - - 79 col0
----
47
0

skipif mysql # not compatible
query II rowsort label-3045
SELECT ALL - COUNT ( * ) / + + ( - 71 ) * ( + 4 ) * + - CASE + 40 WHEN - COUNT ( * ) THEN NULL ELSE + 33 END + 47, 53 / - - 79 col0
----
47
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3047
SELECT DISTINCT 59 DIV COALESCE ( + + 10, - - 52 ) - CAST( - 72 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT 59 / COALESCE ( + + 10, - - 52 ) - CAST ( - 72 AS INTEGER )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT CAST( - 71 AS SIGNED ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3048
SELECT CAST ( - 71 AS INTEGER ) AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT ALL 83 * 20 DIV - 81
----
-20

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL 83 * 20 / - 81
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT + SUM( + 96 ) * - COUNT( * ) - COUNT( DISTINCT - + 5 ) + 55 * + - 50 * - + 83 * - - 7 col2
----
1597653

skipif mysql # not compatible
query I rowsort label-3050
SELECT + SUM ( + 96 ) * - COUNT ( * ) - COUNT ( DISTINCT - + 5 ) + 55 * + - 50 * - + 83 * - - 7 col2
----
1597653

onlyif mysql # aggregate syntax: 
query II rowsort label-3051
SELECT + 79 AS col1, - COUNT( * ) * - 22 + + - 13
----
79
9

skipif mysql # not compatible
query II rowsort label-3051
SELECT + 79 AS col1, - COUNT ( * ) * - 22 + + - 13
----
79
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3052
SELECT ALL - + 45 * 39 DIV - 76 - + - 85
----
108

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - + 45 * 39 / - 76 - + - 85
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL + - ( + MAX( DISTINCT - + 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL + - ( + MAX ( DISTINCT - + 16 ) )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT + + 91 DIV - 62 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3054
SELECT + + 91 / - 62 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT ALL + SUM( ALL 60 ) * 51 + + - 75 / - 53 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + SUM ( ALL 60 ) * 51 + + - 75 / - 53 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 57 * 17
----
969

query I rowsort
SELECT - COALESCE ( - 79, 69, + + 63 + - 24 )
----
79

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

query II rowsort
SELECT ALL - 37 AS col0, 16 + + 42
----
-37
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3060
SELECT - MIN( DISTINCT + 66 ) + + 72, + ( + ( - 19 ) ) * + ( NULLIF ( COUNT( * ), 43 * + 33 - SUM( + - 24 ) ) ) AS col1
----
6
-19

skipif mysql # not compatible
query II rowsort label-3060
SELECT - MIN ( DISTINCT + 66 ) + + 72, + ( + ( - 19 ) ) * + ( NULLIF ( COUNT ( * ), 43 * + 33 - SUM ( + - 24 ) ) ) AS col1
----
6
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT 96 * - ( + 91 ) * + + 60 * + - COUNT( * ) + - - 97 AS col0
----
524257

skipif mysql # not compatible
query I rowsort label-3061
SELECT 96 * - ( + 91 ) * + + 60 * + - COUNT ( * ) + - - 97 AS col0
----
524257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3062
SELECT - CAST( 94 AS SIGNED ) * - 18 - 55
----
1637

skipif mysql # not compatible
query I rowsort label-3062
SELECT - CAST ( 94 AS INTEGER ) * - 18 - 55
----
1637

query I rowsort
SELECT 26 + + 77
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT 19 * + + 85 + + 22 * + + 37 * 42 * - 20 + - + ( + - 28 ) * COUNT( * )
----
-682117

skipif mysql # not compatible
query I rowsort label-3064
SELECT 19 * + + 85 + + 22 * + + 37 * 42 * - 20 + - + ( + - 28 ) * COUNT ( * )
----
-682117

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT ALL + 79 + - - ( 77 ) DIV - 13 col1
----
74

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + 79 + - - ( 77 ) / - 13 col1
----
74

query II rowsort
SELECT - NULLIF ( + + 60, + - 55 ), - 10 + 41 + - - 81 AS col0
----
-60
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ( - + 42 ) + + + COUNT( * ) - - - ( - + 12 )
----
-29

skipif mysql # not compatible
query I rowsort label-3067
SELECT ( - + 42 ) + + + COUNT ( * ) - - - ( - + 12 )
----
-29

query I rowsort
SELECT ALL + 18 + + + 64 + - + 64 * + 1 * + ( + 85 )
----
-5358

query II rowsort
SELECT 44, 3 + + 95 AS col2
----
44
98

query I rowsort
SELECT ALL 10 + - 4
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3071
SELECT 3 + COUNT( * ) AS col0, + MAX( + ( + 13 ) ) AS col1
----
4
13

skipif mysql # not compatible
query II rowsort label-3071
SELECT 3 + COUNT ( * ) AS col0, + MAX ( + ( + 13 ) ) AS col1
----
4
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT 10 DIV - - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3072
SELECT 10 / - - 48 AS col2
----
0

query II rowsort
SELECT ALL 41 AS col0, 24 AS col2
----
41
24

query I rowsort
SELECT DISTINCT + 22 + + - 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL SUM( ALL + 51 ) + + COUNT( * ) * + + 36
----
87

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL SUM ( ALL + 51 ) + + COUNT ( * ) * + + 36
----
87

query II rowsort
SELECT 74 AS col1, NULLIF ( - 1, - ( 31 ) )
----
74
-1

query I rowsort
SELECT ALL 50 + + + 77 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT COALESCE ( - - COUNT( * ), 23 * 82 ) - + 67
----
-66

skipif mysql # not compatible
query I rowsort label-3078
SELECT COALESCE ( - - COUNT ( * ), 23 * 82 ) - + 67
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3079
SELECT ALL 0 AS col0, + CASE + + 37 WHEN ( - 41 ) THEN NULL ELSE 37 END * + - COALESCE ( + 42, - COUNT( * ) ) + + 20 * + 84 + - + 60 AS col0
----
0
66

skipif mysql # not compatible
query II rowsort label-3079
SELECT ALL 0 AS col0, + CASE + + 37 WHEN ( - 41 ) THEN NULL ELSE 37 END * + - COALESCE ( + 42, - COUNT ( * ) ) + + 20 * + 84 + - + 60 AS col0
----
0
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT DISTINCT - ( + + 41 ) / 17 + + CAST( 41 AS SIGNED ) + + ( 83 ) + + 75 + - 68 * - - 54 * - MAX( - NULLIF ( CAST( NULL AS SIGNED ), 13 ) ) / + MAX( ALL - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT - ( + + 41 ) / 17 + + CAST ( 41 AS INTEGER ) + + ( 83 ) + + 75 + - 68 * - - 54 * - MAX ( - NULLIF ( CAST ( NULL AS INTEGER ), 13 ) ) / + MAX ( ALL - 19 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3081
SELECT ALL 43 * CAST( + - NULLIF ( + COUNT( * ), - 4 + + 35 ) AS SIGNED ), + 71 AS col1
----
-43
71

skipif mysql # not compatible
query II rowsort label-3081
SELECT ALL 43 * CAST ( + - NULLIF ( + COUNT ( * ), - 4 + + 35 ) AS INTEGER ), + 71 AS col1
----
-43
71

query II rowsort
SELECT DISTINCT - 31, 71 AS col0
----
-31
71

query I rowsort
SELECT - 30 * - - 83 + ( - 19 ) + - 73 - + 93 + + - 63
----
-2738

query I rowsort
SELECT ALL 8 * - 39
----
-312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3085
SELECT COUNT( * ) DIV COALESCE ( + 96, 33 * - 10 + ( + + ( + - 59 ) ) + + 31 * + - ( - 90 ), - + COUNT( * ) * + 86 + + 43 + - - 57 ) + + + NULLIF ( + - 99, NULLIF ( - 89, + 19 ) ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3085
SELECT COUNT ( * ) / COALESCE ( + 96, 33 * - 10 + ( + + ( + - 59 ) ) + + 31 * + - ( - 90 ), - + COUNT ( * ) * + 86 + + 43 + - - 57 ) + + + NULLIF ( + - 99, NULLIF ( - 89, + 19 ) ) AS col1
----
-99

query II rowsort
SELECT + 75 AS col1, + 44 + 11 col2
----
75
55

query I rowsort
SELECT ALL 60 - - - 54 AS col0
----
6

query II rowsort
SELECT ALL - 51 AS col0, 63 AS col0
----
-51
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT SUM( + 92 ) + - - 31
----
123

skipif mysql # not compatible
query I rowsort label-3089
SELECT SUM ( + 92 ) + - - 31
----
123

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

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL 20 / - ( - ( COUNT ( * ) ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT 72 * - - CASE + - SUM( + 32 ) WHEN 73 * + 83 + - 77 THEN + - 60 + - COALESCE ( - - 5, + - 14 * + + 50 * + COUNT( * ) ) ELSE COUNT( - - 13 ) END col1
----
72

skipif mysql # not compatible
query I rowsort label-3091
SELECT 72 * - - CASE + - SUM ( + 32 ) WHEN 73 * + 83 + - 77 THEN + - 60 + - COALESCE ( - - 5, + - 14 * + + 50 * + COUNT ( * ) ) ELSE COUNT ( - - 13 ) END col1
----
72

query II rowsort
SELECT ALL - 31 AS col0, 74
----
-31
74

query II rowsort
SELECT + - 21, - 71 AS col0
----
-21
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3094
SELECT ALL - 74 DIV 85 DIV - 24 * - + 70 col0, 86 * + - MIN( + 26 ) AS col0
----
0
-2236

skipif mysql # not compatible
query II rowsort label-3094
SELECT ALL - 74 / 85 / - 24 * - + 70 col0, 86 * + - MIN ( + 26 ) AS col0
----
0
-2236

onlyif mysql # aggregate syntax: 
query II rowsort label-3095
SELECT MIN( ALL 24 ) * + - 80 * + 92 AS col0, 73
----
-176640
73

skipif mysql # not compatible
query II rowsort label-3095
SELECT MIN ( ALL 24 ) * + - 80 * + 92 AS col0, 73
----
-176640
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT - 83 + - 53 + + - SUM( + 50 ) AS col1
----
-186

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT - 83 + - 53 + + - SUM ( + 50 ) AS col1
----
-186

query I rowsort
SELECT ALL - 24 * - 72 col1
----
1728

query I rowsort
SELECT ALL + - 75 + 5 + 20 + + - 84 + + 28 AS col2
----
-106

query II rowsort
SELECT ALL 73, 20 col1
----
73
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT - 84 AS col1, MAX( DISTINCT 78 ) + + 71
----
-84
149

skipif mysql # not compatible
query II rowsort label-3101
SELECT - 84 AS col1, MAX ( DISTINCT 78 ) + + 71
----
-84
149

query I rowsort
SELECT ALL 89 + - COALESCE ( - 19, + 3 )
----
108

query II rowsort
SELECT DISTINCT 29, ( + 39 ) * - 0 col0
----
29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT CASE - + 95 WHEN + + 19 + 37 * 34 + - CASE - 31 WHEN - 49 THEN + 59 * + - 65 WHEN + + ( + 78 ) THEN NULL ELSE - 7 * + + COALESCE ( ( - 11 ), 96 / - 85 * + COUNT( * ) ) + + + 78 END THEN NULL ELSE + - 86 END AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT CASE - + 95 WHEN + + 19 + 37 * 34 + - CASE - 31 WHEN - 49 THEN + 59 * + - 65 WHEN + + ( + 78 ) THEN NULL ELSE - 7 * + + COALESCE ( ( - 11 ), 96 / - 85 * + COUNT ( * ) ) + + + 78 END THEN NULL ELSE + - 86 END AS col0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3105
SELECT COUNT( * ) + + SUM( DISTINCT + 81 ) - + COUNT( * ) + + - 79 DIV - 68 + - 55 + + 41 * - - NULLIF ( - 90, + 9 + ( MIN( ALL - - 65 ) ) )
----
-3663

skipif mysql # not compatible
query I rowsort label-3105
SELECT COUNT ( * ) + + SUM ( DISTINCT + 81 ) - + COUNT ( * ) + + - 79 / - 68 + - 55 + + 41 * - - NULLIF ( - 90, + 9 + ( MIN ( ALL - - 65 ) ) )
----
-3663

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT 48 + + 22 * - COUNT( + + 9 )
----
26

skipif mysql # not compatible
query I rowsort label-3106
SELECT 48 + + 22 * - COUNT ( + + 9 )
----
26

query I rowsort
SELECT ALL + ( 55 ) + 25 - ( - + 96 )
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-3108
SELECT 26 + 13 DIV + 31 * - 61 - 21 - + 89
----
-84

skipif mysql # not compatible
query I rowsort label-3108
SELECT 26 + 13 / + 31 * - 61 - 21 - + 89
----
-84

query I rowsort
SELECT 35 + + 39 AS col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3110
SELECT 38 * 38 * COUNT( * ), 47 + + COUNT( * ) AS col0
----
1444
48

skipif mysql # not compatible
query II rowsort label-3110
SELECT 38 * 38 * COUNT ( * ), 47 + + COUNT ( * ) AS col0
----
1444
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL + 45 DIV + 54 * - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + 45 / + 54 * - 90 AS col2
----
0

query I rowsort
SELECT 45 + - 25
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL + COUNT( * ) - - 37
----
38

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + COUNT ( * ) - - 37
----
38

query II rowsort
SELECT 54 + - 10 AS col1, 35 - - ( 32 )
----
44
67

query I rowsort
SELECT DISTINCT - ( 71 ) - + 84
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-3116
SELECT ALL - 73 DIV - + 31
----
2

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL - 73 / - + 31
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-3117
SELECT 60 DIV - 62 AS col2, 63 * - 97 + 60 AS col2
----
0
-6051

skipif mysql # not compatible
query II rowsort label-3117
SELECT 60 / - 62 AS col2, 63 * - 97 + 60 AS col2
----
0
-6051

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3118
SELECT 96 DIV - CASE 45 WHEN + - AVG ( DISTINCT - 58 ) THEN NULL WHEN 47 * - + 31 + - 96 + + 21 THEN - ( + MIN( - 87 ) ) ELSE - - 99 * 41 END
----
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT 96 / - CASE 45 WHEN + - AVG ( DISTINCT - 58 ) THEN NULL WHEN 47 * - + 31 + - 96 + + 21 THEN - ( + MIN ( - 87 ) ) ELSE - - 99 * 41 END
----
0

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

skipif mysql # not compatible
query I rowsort label-3119
SELECT + 88 * + + COUNT ( * ) + + + 96 AS col1
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3120
SELECT ALL - 83 DIV - NULLIF ( - 82, - 35 * + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - 83 / - NULLIF ( - 82, - 35 * + COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT DISTINCT - ( 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3122
SELECT ALL - + 99 DIV + MAX( + + 48 )
----
-2

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL - + 99 / + MAX ( + + 48 )
----
-2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT + - CAST( + - 31 AS SIGNED ) * - 40 + - 25 AS col0
----
-1265

skipif mysql # not compatible
query I rowsort label-3124
SELECT + - CAST ( + - 31 AS INTEGER ) * - 40 + - 25 AS col0
----
-1265

query II rowsort
SELECT + + ( + 62 ), + 22 + + 46 * 49 AS col1
----
62
2276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT ALL + CAST( + 38 AS SIGNED ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + CAST ( + 38 AS INTEGER ) AS col1
----
38

query I rowsort
SELECT ALL + 35 * + 38 - 32 + - + ( + 42 )
----
1256

query I rowsort
SELECT + 24 * 40 + + 36 - + 74
----
922

onlyif mysql # DIV for integer division: 
query I rowsort label-3129
SELECT ALL - + 25 * - - 44 * - + 45 + + 6 * + - 82 * ( - 23 ) + COALESCE ( 55, + - 67, + 19 ) * - COALESCE ( - COALESCE ( - 83, 18 DIV - 31 ), 88 * + 29 + + 37 ) * - ( + 58 ) + 66 AS col0
----
325652

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL - + 25 * - - 44 * - + 45 + + 6 * + - 82 * ( - 23 ) + COALESCE ( 55, + - 67, + 19 ) * - COALESCE ( - COALESCE ( - 83, 18 / - 31 ), 88 * + 29 + + 37 ) * - ( + 58 ) + 66 AS col0
----
325652

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT + - MIN( - 53 ) * 70
----
3710

skipif mysql # not compatible
query I rowsort label-3130
SELECT + - MIN ( - 53 ) * 70
----
3710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3131
SELECT + ( + 80 ) * 59 - + 6 * 9 DIV - 31 + + CAST( + + COUNT( * ) AS SIGNED )
----
4722

skipif mysql # not compatible
query I rowsort label-3131
SELECT + ( + 80 ) * 59 - + 6 * 9 / - 31 + + CAST ( + + COUNT ( * ) AS INTEGER )
----
4722

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3132
SELECT DISTINCT SUM( ALL + 45 ) * 8 + + 34 DIV - 7 AS col2, - 72
----
356
-72

skipif mysql # not compatible
query II rowsort label-3132
SELECT DISTINCT SUM ( ALL + 45 ) * 8 + + 34 / - 7 AS col2, - 72
----
356
-72

query II rowsort
SELECT ALL ( - - CASE 47 WHEN + 50 THEN NULL ELSE - 39 END ) * 19 - + - 20 + + ( 1 ) + - 86 * + + ( + + 44 ), 81 * + ( 63 ) AS col1
----
-4504
5103

onlyif mysql # aggregate syntax: 
query II rowsort label-3134
SELECT DISTINCT + 34 * + 51 + ( 3 ) * + COUNT( * ) AS col1, 10
----
1737
10

skipif mysql # not compatible
query II rowsort label-3134
SELECT DISTINCT + 34 * + 51 + ( 3 ) * + COUNT ( * ) AS col1, 10
----
1737
10

query I rowsort
SELECT DISTINCT + - 82 col1
----
-82

query II rowsort
SELECT + - ( - + 9 ) AS col0, 33 * - 16 AS col1
----
9
-528

query I rowsort
SELECT + NULLIF ( + - 29, - 57 ) + + 46 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT MAX( - - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-3138
SELECT MAX ( - - 68 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT ALL CAST( NULL AS SIGNED ) + - 55 + 9 * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL CAST ( NULL AS INTEGER ) + - 55 + 9 * - 24 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 3 * + NULLIF ( + 94, - - NULLIF ( - - 59, + 74 * 45 + - + 18 ) ) * + + 69
----
19458

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

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

query I rowsort
SELECT DISTINCT ( - + 79 ) * ( 23 ) AS col0
----
-1817

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT ALL CAST( ( - + AVG ( - ( + + 20 ) ) ) AS SIGNED ) * MAX( 27 ) AS col1
----
540

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL CAST ( ( - + AVG ( - ( + + 20 ) ) ) AS INTEGER ) * MAX ( 27 ) AS col1
----
540

query II rowsort
SELECT 99 AS col2, 14
----
99
14

query I rowsort
SELECT ALL + 4 - + 7 - + 34 - - + 24 + + - 53 * 95 col2
----
-5048

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

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL COUNT ( DISTINCT - 78 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT - CASE 26 WHEN - + 94 * - - 78 THEN 53 / - CAST( 39 AS SIGNED ) - - - CAST( + - 41 AS SIGNED ) + - - 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT - CASE 26 WHEN - + 94 * - - 78 THEN 53 / - CAST ( 39 AS INTEGER ) - - - CAST ( + - 41 AS INTEGER ) + - - 59 ELSE NULL END
----
NULL

query II rowsort
SELECT 12 AS col0, 71 AS col1
----
12
71

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

query I rowsort
SELECT - 25 * - - 2 AS col1
----
-50

query I rowsort
SELECT DISTINCT - 69 * + + 88
----
-6072

onlyif mysql # DIV for integer division: 
query I rowsort label-3153
SELECT DISTINCT 66 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT 66 / + 45
----
1

query I rowsort
SELECT DISTINCT - 88 * + 2 AS col0
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-3155
SELECT - 95 * COUNT( DISTINCT 99 ) AS col0, 39 + - 98 + - - ( - - 24 ) AS col0
----
-95
-35

skipif mysql # not compatible
query II rowsort label-3155
SELECT - 95 * COUNT ( DISTINCT 99 ) AS col0, 39 + - 98 + - - ( - - 24 ) AS col0
----
-95
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT - MAX( ALL 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT - MAX ( ALL 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT - COUNT( * ) * - 47 * - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT - COUNT ( * ) * - 47 * - - COUNT ( * )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3158
SELECT ALL 84 / + - 31 * + CAST( 63 AS SIGNED ) * - + 76 + + CASE + + 38 WHEN + 62 * + 2 - 26 THEN - 56 * - 68 / COUNT( * ) END * - 21 + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL 84 / + - 31 * + CAST ( 63 AS INTEGER ) * - + 76 + + CASE + + 38 WHEN + 62 * + 2 - 26 THEN - 56 * - 68 / COUNT ( * ) END * - 21 + 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT + - COUNT( * ) * - - COUNT( * ) + NULLIF ( + - ( - COUNT( * ) ), + 72 ) + + 61 + + 47 * - - NULLIF ( 10, - - CAST( NULL AS SIGNED ) ) * - - 47
----
22151

skipif mysql # not compatible
query I rowsort label-3159
SELECT + - COUNT ( * ) * - - COUNT ( * ) + NULLIF ( + - ( - COUNT ( * ) ), + 72 ) + + 61 + + 47 * - - NULLIF ( 10, - - CAST ( NULL AS INTEGER ) ) * - - 47
----
22151

query I rowsort
SELECT - ( + 27 ) * - + 59 - - - 35
----
1558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3161
SELECT ALL - + 48 DIV - - 33 * + - COUNT( * ) + - - COALESCE ( - - COUNT( DISTINCT - 37 ), + 31, COUNT( ALL - 84 ) + + ( + + NULLIF ( + 85, + 77 ) ) ) + - + MIN( ALL 90 )
----
-88

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - + 48 / - - 33 * + - COUNT ( * ) + - - COALESCE ( - - COUNT ( DISTINCT - 37 ), + 31, COUNT ( ALL - 84 ) + + ( + + NULLIF ( + 85, + 77 ) ) ) + - + MIN ( ALL 90 )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT DISTINCT - + 21 DIV + - 2
----
10

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT - + 21 / + - 2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT ALL + + 15 DIV - COUNT( - - 77 ) + + + COUNT( DISTINCT + 1 )
----
-14

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL + + 15 / - COUNT ( - - 77 ) + + + COUNT ( DISTINCT + 1 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT ALL - 91 DIV - - 58
----
-1

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - 91 / - - 58
----
-1

query I rowsort
SELECT ALL 92 * - ( - 52 ) + + 48 + - 49 AS col2
----
4783

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

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT + - COUNT ( * ) / - 83
----
0

query I rowsort
SELECT - - 53 + - 43
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3168
SELECT ALL + COUNT( * ) * - 80 + + - 83 + - 32 + 6 + - MIN( ALL - 9 ) DIV + + 24 + - - 6
----
-183

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + COUNT ( * ) * - 80 + + - 83 + - 32 + 6 + - MIN ( ALL - 9 ) / + + 24 + - - 6
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT - 41 + NULLIF ( 62, - 5 ) - + MAX( DISTINCT - + 35 )
----
56

skipif mysql # not compatible
query I rowsort label-3169
SELECT - 41 + NULLIF ( 62, - 5 ) - + MAX ( DISTINCT - + 35 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT - + 67 * + 63 * - 70 DIV 7 AS col2
----
42210

skipif mysql # not compatible
query I rowsort label-3170
SELECT - + 67 * + 63 * - 70 / 7 AS col2
----
42210

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

query II rowsort
SELECT + - 83 AS col0, 37 + - 79 + 54 * - - 74 col2
----
-83
3954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3173
SELECT + COALESCE ( + ( + 19 ), - + 31 DIV - 2 * - COUNT( * ) + - + ( + COUNT( * ) ), - - 40 )
----
19

skipif mysql # not compatible
query I rowsort label-3173
SELECT + COALESCE ( + ( + 19 ), - + 31 / - 2 * - COUNT ( * ) + - + ( + COUNT ( * ) ), - - 40 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT - 12 * CASE 88 WHEN 94 * 68 THEN - 29 WHEN - SUM( DISTINCT + 10 ) THEN NULL WHEN 9 * 14 + + 61 + 61 + + SUM( ALL + 77 ) / - 87 THEN NULL END + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT - 12 * CASE 88 WHEN 94 * 68 THEN - 29 WHEN - SUM ( DISTINCT + 10 ) THEN NULL WHEN 9 * 14 + + 61 + 61 + + SUM ( ALL + 77 ) / - 87 THEN NULL END + - 11 AS col1
----
NULL

query II rowsort
SELECT + - 29 col0, 83 AS col0
----
-29
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3176
SELECT + 24 * COUNT( * ) * + 99 * 51 * - + 63 * - - COALESCE ( - 35, - 34, - 24 * + - MAX( - ( + 53 ) ) + - 11 ) + + 39 - + - 81 - 65 * + 36 * - 34, + 64 col0
----
267272760
64

skipif mysql # not compatible
query II rowsort label-3176
SELECT + 24 * COUNT ( * ) * + 99 * 51 * - + 63 * - - COALESCE ( - 35, - 34, - 24 * + - MAX ( - ( + 53 ) ) + - 11 ) + + 39 - + - 81 - 65 * + 36 * - 34, + 64 col0
----
267272760
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3177
SELECT ALL - 72 * - 55 * - 1 - 29 AS col2, + CAST( - - 74 AS SIGNED )
----
-3989
74

skipif mysql # not compatible
query II rowsort label-3177
SELECT ALL - 72 * - 55 * - 1 - 29 AS col2, + CAST ( - - 74 AS INTEGER )
----
-3989
74

query II rowsort
SELECT + 31, 4 + - 17 + - - 73 col1
----
31
60

query I rowsort
SELECT + 57 + + 99 + 5 * 82 AS col2
----
566

onlyif mysql # aggregate syntax: 
query II rowsort label-3180
SELECT DISTINCT + MIN( DISTINCT + - 22 ) * + 89 - 37 col0, + 72 * - 52
----
-1995
-3744

skipif mysql # not compatible
query II rowsort label-3180
SELECT DISTINCT + MIN ( DISTINCT + - 22 ) * + 89 - 37 col0, + 72 * - 52
----
-1995
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT CASE - 15 WHEN + COUNT( - - 2 ) THEN NULL WHEN - 25 THEN + AVG ( ALL 61 ) + + 15 * + + 2 * - - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT CASE - 15 WHEN + COUNT ( - - 2 ) THEN NULL WHEN - 25 THEN + AVG ( ALL 61 ) + + 15 * + + 2 * - - 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3182
SELECT + 9 * 58, MIN( 46 ) AS col2
----
522
46

skipif mysql # not compatible
query II rowsort label-3182
SELECT + 9 * 58, MIN ( 46 ) AS col2
----
522
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3183
SELECT ALL 21 DIV - - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL 21 / - - 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3184
SELECT ALL MAX( ALL 66 ), - 76 AS col0
----
66
-76

skipif mysql # not compatible
query II rowsort label-3184
SELECT ALL MAX ( ALL 66 ), - 76 AS col0
----
66
-76

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

query I rowsort
SELECT ALL 85 * - + 82 col1
----
-6970

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT + 67 + + 77 * MIN( DISTINCT 1 )
----
144

skipif mysql # not compatible
query I rowsort label-3187
SELECT + 67 + + 77 * MIN ( DISTINCT 1 )
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3188
SELECT + COUNT( * ) DIV COUNT( * ) col2, 54 + - + COUNT( * )
----
1
53

skipif mysql # not compatible
query II rowsort label-3188
SELECT + COUNT ( * ) / COUNT ( * ) col2, 54 + - + COUNT ( * )
----
1
53

query I rowsort
SELECT ALL 37 * 19 AS col0
----
703

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT ALL 49 * + NULLIF ( + COUNT( * ), + 15 ) AS col2, - 12 * + NULLIF ( - + 33, + 1 + - 77 + + COUNT( * ) )
----
49
396

skipif mysql # not compatible
query II rowsort label-3190
SELECT ALL 49 * + NULLIF ( + COUNT ( * ), + 15 ) AS col2, - 12 * + NULLIF ( - + 33, + 1 + - 77 + + COUNT ( * ) )
----
49
396

query I rowsort
SELECT ALL 84 * + - 92 AS col1
----
-7728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3192
SELECT DISTINCT 42 * CAST( - - 27 AS SIGNED ) col0
----
1134

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT 42 * CAST ( - - 27 AS INTEGER ) col0
----
1134

query I rowsort
SELECT 98 * - + 65
----
-6370

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT DISTINCT - 45 + - 98 DIV + 11
----
-53

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - 45 + - 98 / + 11
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL COUNT( + 48 ) + - - 22
----
23

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL COUNT ( + 48 ) + - - 22
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT 19 * + ( + - 9 ) * + MAX( DISTINCT 27 ) + - 48
----
-4665

skipif mysql # not compatible
query I rowsort label-3196
SELECT 19 * + ( + - 9 ) * + MAX ( DISTINCT 27 ) + - 48
----
-4665

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT - ( + MIN( ALL + - 45 ) ) + + - ( + + 89 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3197
SELECT - ( + MIN ( ALL + - 45 ) ) + + - ( + + 89 ) AS col1
----
-44

query II rowsort
SELECT DISTINCT - 95 * + 33, + 37 AS col1
----
-3135
37

query I rowsort
SELECT ALL - ( + 21 ) col2
----
-21

query I rowsort
SELECT + 63 * + + 70 + 17 AS col2
----
4427

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

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

query I rowsort
SELECT ALL + 46 * 76 * + 39 AS col1
----
136344

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT ALL + - 51 DIV 95 * + + 92
----
0

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + - 51 / 95 * + + 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3204
SELECT CAST( 46 AS SIGNED ) DIV - + 58 - - - 13 + - NULLIF ( + 52, - + 12 * + + MAX( ALL - - 20 ) ) * + 32
----
-1677

skipif mysql # not compatible
query I rowsort label-3204
SELECT CAST ( 46 AS INTEGER ) / - + 58 - - - 13 + - NULLIF ( + 52, - + 12 * + + MAX ( ALL - - 20 ) ) * + 32
----
-1677

query I rowsort
SELECT DISTINCT + 59 * + 61 AS col1
----
3599

onlyif mysql # DIV for integer division: 
query II rowsort label-3206
SELECT 32 AS col0, + 94 DIV - 46 - - 31 * COALESCE ( 75, - 71 ) AS col2
----
32
2323

skipif mysql # not compatible
query II rowsort label-3206
SELECT 32 AS col0, + 94 / - 46 - - 31 * COALESCE ( 75, - 71 ) AS col2
----
32
2323

query I rowsort
SELECT ALL 3 * + - 51 AS col0
----
-153

query I rowsort
SELECT ALL 80 * - - 55 * + + ( 94 ) col2
----
413600

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

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

query III rowsort
SELECT + 39, 38 * 24 col2, 0 col1
----
39
912
0

query I rowsort
SELECT 38 + 20
----
58

query I rowsort
SELECT + ( + - NULLIF ( - + 88, - + 51 ) ) * 19 + + + 84
----
1756

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT MAX( 80 ) - + - 0 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3213
SELECT MAX ( 80 ) - + - 0 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL - 87 * + CASE 38 WHEN - 88 THEN - COUNT( * ) WHEN 45 THEN + 70 * + + 92 / - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - 87 * + CASE 38 WHEN - 88 THEN - COUNT ( * ) WHEN 45 THEN + 70 * + + 92 / - 12 END
----
NULL

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

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

query I rowsort
SELECT ALL 37 + - 92 AS col2
----
-55

query II rowsort
SELECT DISTINCT 56, + 43 AS col2
----
56
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT + 64 * + - COUNT( * ) + + 60 - 61 DIV + + COUNT( * ) + 64 * - - 81
----
5119

skipif mysql # not compatible
query I rowsort label-3218
SELECT + 64 * + - COUNT ( * ) + + 60 - 61 / + + COUNT ( * ) + 64 * - - 81
----
5119

query I rowsort
SELECT ALL + 87 * + + 44 AS col1
----
3828

query I rowsort
SELECT ALL - 15 + 98 AS col0
----
83

query I rowsort
SELECT ALL 78 + - 51
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT COUNT( - - 55 ) + - + 51 - 22 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3222
SELECT COUNT ( - - 55 ) + - + 51 - 22 AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3223
SELECT ALL MIN( DISTINCT - + 17 ) DIV + 1, + 29 AS col2
----
-17
29

skipif mysql # not compatible
query II rowsort label-3223
SELECT ALL MIN ( DISTINCT - + 17 ) / + 1, + 29 AS col2
----
-17
29

query I rowsort
SELECT ALL 71 + 86 * 39 AS col2
----
3425

query I rowsort
SELECT ALL 42 * - + 50
----
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT - COALESCE ( + - 2, COUNT( * ) + + ( - + 30 ), - CASE - 20 WHEN 34 THEN 69 WHEN - + 75 * + COALESCE ( + 96, 70 * + 51 * COUNT( * ) / - COUNT( * ) + + + 97 ) * 76 - + - CAST( - - 12 AS SIGNED ) * 18 + 45 * + 11 THEN NULL END )
----
2

skipif mysql # not compatible
query I rowsort label-3226
SELECT - COALESCE ( + - 2, COUNT ( * ) + + ( - + 30 ), - CASE - 20 WHEN 34 THEN 69 WHEN - + 75 * + COALESCE ( + 96, 70 * + 51 * COUNT ( * ) / - COUNT ( * ) + + + 97 ) * 76 - + - CAST ( - - 12 AS INTEGER ) * 18 + 45 * + 11 THEN NULL END )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT + 81 DIV + 21
----
3

skipif mysql # not compatible
query I rowsort label-3227
SELECT + 81 / + 21
----
3

query I rowsort
SELECT + 20 - - + 77 * + 49 AS col2
----
3793

query I rowsort
SELECT DISTINCT 60 * 65 AS col0
----
3900

query I rowsort
SELECT ALL - 66 + - 41 AS col2
----
-107

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL + 97 * + CASE + COUNT( * ) WHEN + COUNT( * ) / 11 + - + 53 THEN - 31 * 47 * - + 16 END * - - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL + 97 * + CASE + COUNT ( * ) WHEN + COUNT ( * ) / 11 + - + 53 THEN - 31 * 47 * - + 16 END * - - 13 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3233
SELECT - 47 DIV - + 27
----
1

skipif mysql # not compatible
query I rowsort label-3233
SELECT - 47 / - + 27
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT - 22 * - MIN( ALL - + 17 )
----
-374

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - 22 * - MIN ( ALL - + 17 )
----
-374

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

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

query I rowsort
SELECT ALL 31 + + 9 AS col1
----
40

query I rowsort
SELECT 33 - - 75 col0
----
108

query I rowsort
SELECT - 27 + + - 38 col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT + NULLIF ( 55, - 89 * + 68 + ( - 21 ) + - 99 + - COUNT( * ) + + 47 + - + 62 - + COUNT( 12 ) ) * COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-3239
SELECT + NULLIF ( 55, - 89 * + 68 + ( - 21 ) + - 99 + - COUNT ( * ) + + 47 + - + 62 - + COUNT ( 12 ) ) * COUNT ( * )
----
55

query I rowsort
SELECT + NULLIF ( 1, - CASE - 25 WHEN 1 THEN 9 END )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT - + MAX( DISTINCT - 17 ) * 83 + 86 * + COUNT( * ) + + 15
----
1512

skipif mysql # not compatible
query I rowsort label-3241
SELECT - + MAX ( DISTINCT - 17 ) * 83 + 86 * + COUNT ( * ) + + 15
----
1512

query I rowsort
SELECT 90 * + - 81 AS col2
----
-7290

onlyif mysql # aggregate syntax: 
query II rowsort label-3243
SELECT DISTINCT + COUNT( * ) * + - MAX( 66 ) AS col1, 36
----
-66
36

skipif mysql # not compatible
query II rowsort label-3243
SELECT DISTINCT + COUNT ( * ) * + - MAX ( 66 ) AS col1, 36
----
-66
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3244
SELECT 58 + COUNT( * ) + + 47 DIV + 39
----
60

skipif mysql # not compatible
query I rowsort label-3244
SELECT 58 + COUNT ( * ) + + 47 / + 39
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3245
SELECT ALL CAST( - 9 AS SIGNED ) * - - COALESCE ( - 79, - 67 + + 90 + - COUNT( * ) + + - 30 * 43 * + 9 * + - MIN( DISTINCT - - 94 ) ) AS col2
----
711

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL CAST ( - 9 AS INTEGER ) * - - COALESCE ( - 79, - 67 + + 90 + - COUNT ( * ) + + - 30 * 43 * + 9 * + - MIN ( DISTINCT - - 94 ) ) AS col2
----
711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3246
SELECT ( - - 99 ) + + + MIN( ALL 68 ) DIV + 64
----
100

skipif mysql # not compatible
query I rowsort label-3246
SELECT ( - - 99 ) + + + MIN ( ALL 68 ) / + 64
----
100

query I rowsort
SELECT 74 + 88 * - 24 AS col0
----
-2038

query II rowsort
SELECT ALL - 9 AS col2, 67 + - 62
----
-9
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT + NULLIF ( - ( - - CASE - 63 WHEN - - 75 THEN - CAST( NULL AS SIGNED ) WHEN + 37 * 86 + CAST( - COUNT( * ) AS SIGNED ) / - 34 THEN NULL END ), + ( - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT + NULLIF ( - ( - - CASE - 63 WHEN - - 75 THEN - CAST ( NULL AS INTEGER ) WHEN + 37 * 86 + CAST ( - COUNT ( * ) AS INTEGER ) / - 34 THEN NULL END ), + ( - COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT ALL + 46 + - 73 AS col0
----
-27

query I rowsort
SELECT 70 + 11 AS col1
----
81

query I rowsort
SELECT DISTINCT + 10 + + + ( - 77 ) AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT DISTINCT + COALESCE ( - - 67, - CAST( - 87 AS SIGNED ) )
----
67

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT + COALESCE ( - - 67, - CAST ( - 87 AS INTEGER ) )
----
67

query I rowsort
SELECT DISTINCT + 1 + + 58 * - 93 AS col0
----
-5393

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT DISTINCT - 10 + - 4 * + COUNT( * ) * - MAX( DISTINCT + COALESCE ( 5, + + 6 ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT - 10 + - 4 * + COUNT ( * ) * - MAX ( DISTINCT + COALESCE ( 5, + + 6 ) ) AS col0
----
10

query I rowsort
SELECT ALL + 83 + + + 96 AS col2
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT DISTINCT - 29 + + - CAST( - + 25 AS SIGNED ) + - 30 * - CASE + 27 WHEN + 98 / 63 * 37 * 23 THEN 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT - 29 + + - CAST ( - + 25 AS INTEGER ) + - 30 * - CASE + 27 WHEN + 98 / 63 * 37 * 23 THEN 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - 66 * - - MIN( ALL + 95 )
----
-6270

skipif mysql # not compatible
query I rowsort label-3258
SELECT - 66 * - - MIN ( ALL + 95 )
----
-6270

onlyif mysql # aggregate syntax: 
query II rowsort label-3259
SELECT 39, 32 * 56 + - SUM( ALL 90 ) col0
----
39
1702

skipif mysql # not compatible
query II rowsort label-3259
SELECT 39, 32 * 56 + - SUM ( ALL 90 ) col0
----
39
1702

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

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

query I rowsort
SELECT ALL + 56 * - - 16 * + 57
----
51072

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3262
SELECT + 66 + + - ( + CAST( + 97 AS SIGNED ) ) DIV 4 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3262
SELECT + 66 + + - ( + CAST ( + 97 AS INTEGER ) ) / 4 AS col1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3263
SELECT ALL COALESCE ( - 76, + 97 - - 66 * - + COALESCE ( + 73, + - 70 ) + 47, 83 DIV COUNT( * ) * + COUNT( * ) * + 90 - - 62 * 89 * + + COUNT( * ) * - 19 ) col2, 43
----
-76
43

skipif mysql # not compatible
query II rowsort label-3263
SELECT ALL COALESCE ( - 76, + 97 - - 66 * - + COALESCE ( + 73, + - 70 ) + 47, 83 / COUNT ( * ) * + COUNT ( * ) * + 90 - - 62 * 89 * + + COUNT ( * ) * - 19 ) col2, 43
----
-76
43

query II rowsort
SELECT - 23 AS col2, 70 + + 62 col2
----
-23
132

query I rowsort
SELECT - 54 + - 61 col1
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3266
SELECT DISTINCT - 30 AS col0, + ( + 83 ) DIV 6 + - COUNT( * )
----
-30
12

skipif mysql # not compatible
query II rowsort label-3266
SELECT DISTINCT - 30 AS col0, + ( + 83 ) / 6 + - COUNT ( * )
----
-30
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3267
SELECT - 18 + - COUNT( * ) * - 69 DIV + 93 + - - 99 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3267
SELECT - 18 + - COUNT ( * ) * - 69 / + 93 + - - 99 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT ALL + + CAST( - 49 AS SIGNED ) + - + SUM( ALL 64 ) * 89
----
-5745

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL + + CAST ( - 49 AS INTEGER ) + - + SUM ( ALL 64 ) * 89
----
-5745

query I rowsort
SELECT DISTINCT + 68 * 44 AS col1
----
2992

query I rowsort
SELECT ALL + COALESCE ( - 8, - + 14 ) - 65
----
-73

query I rowsort
SELECT DISTINCT - 76 - + 38 col0
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT NULLIF ( 41, + + ( + - MAX( ALL 39 ) ) + + COALESCE ( - + 73, + + COALESCE ( - + 35, - + COUNT( * ) * - MAX( DISTINCT - 2 ) + 82 * - + NULLIF ( + COUNT( * ), + 42 + - - 76 * - CAST( + 47 AS SIGNED ) ) ) / - COUNT( * ) ) )
----
41

skipif mysql # not compatible
query I rowsort label-3272
SELECT NULLIF ( 41, + + ( + - MAX ( ALL 39 ) ) + + COALESCE ( - + 73, + + COALESCE ( - + 35, - + COUNT ( * ) * - MAX ( DISTINCT - 2 ) + 82 * - + NULLIF ( + COUNT ( * ), + 42 + - - 76 * - CAST ( + 47 AS INTEGER ) ) ) / - COUNT ( * ) ) )
----
41

query II rowsort
SELECT 64 col1, - 90 AS col0
----
64
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT + + 49 + + - 34 + - CAST( NULL AS SIGNED ) * - - 50 * - + 81 * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT + + 49 + + - 34 + - CAST ( NULL AS INTEGER ) * - - 50 * - + 81 * + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL - ( + + ( - MIN( + 82 ) ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL - ( + + ( - MIN ( + 82 ) ) ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT ALL + 85 DIV - 15 - + + 63 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + 85 / - 15 - + + 63 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT + - COUNT( DISTINCT - - 45 ) + + ( + 74 ) * MIN( - + ( + + 84 ) )
----
-6217

skipif mysql # not compatible
query I rowsort label-3277
SELECT + - COUNT ( DISTINCT - - 45 ) + + ( + 74 ) * MIN ( - + ( + + 84 ) )
----
-6217

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT - 21 * + + 43 + - ( COALESCE ( + 44, - CASE + 64 WHEN + MAX( - 96 ) THEN NULL WHEN - - 32 THEN - 76 * + 12 END ) )
----
-947

skipif mysql # not compatible
query I rowsort label-3278
SELECT - 21 * + + 43 + - ( COALESCE ( + 44, - CASE + 64 WHEN + MAX ( - 96 ) THEN NULL WHEN - - 32 THEN - 76 * + 12 END ) )
----
-947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT - CAST( - CAST( - ( - + 33 ) AS SIGNED ) AS SIGNED ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3279
SELECT - CAST ( - CAST ( - ( - + 33 ) AS INTEGER ) AS INTEGER ) AS col2
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3280
SELECT + CAST( NULL AS DECIMAL ) * + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT + CAST ( NULL AS REAL ) * + + 50 AS col1
----
NULL

query I rowsort
SELECT + - 22 * + - 87 * - - 91
----
174174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT ALL - 16 * - 90 DIV + COUNT( * ) AS col0
----
1440

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL - 16 * - 90 / + COUNT ( * ) AS col0
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3283
SELECT DISTINCT + + COUNT( * ), 42 DIV + 97 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-3283
SELECT DISTINCT + + COUNT ( * ), 42 / + 97 AS col1
----
1
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + MIN( 53 ) * + COUNT( * ) * 49 + COUNT( * ) + MAX( ALL 3 )
----
2601

skipif mysql # not compatible
query I rowsort label-3285
SELECT + MIN ( 53 ) * + COUNT ( * ) * 49 + COUNT ( * ) + MAX ( ALL 3 )
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT - MIN( + ( + ( - - 87 ) ) ) + + - 88 + + 27 AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-3286
SELECT - MIN ( + ( + ( - - 87 ) ) ) + + - 88 + + 27 AS col2
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT + COUNT( * ) - - COALESCE ( 3, - - 54 * 85 * + 86 + + - 15 * + 90 * CAST( NULL AS SIGNED ) )
----
4

skipif mysql # not compatible
query I rowsort label-3287
SELECT + COUNT ( * ) - - COALESCE ( 3, - - 54 * 85 * + 86 + + - 15 * + 90 * CAST ( NULL AS INTEGER ) )
----
4

query I rowsort
SELECT DISTINCT NULLIF ( 48, + 0 ) * + 60 + + 98 - + - 44
----
3022

onlyif mysql # aggregate syntax: 
query II rowsort label-3289
SELECT ALL 68 * + AVG ( ALL - + 39 ) + + CASE - ( 88 ) WHEN COUNT( * ) THEN + + 22 + - + 0 END * - + COUNT( * ) AS col2, 65 AS col2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-3289
SELECT ALL 68 * + AVG ( ALL - + 39 ) + + CASE - ( 88 ) WHEN COUNT ( * ) THEN + + 22 + - + 0 END * - + COUNT ( * ) AS col2, 65 AS col2
----
NULL
65

query I rowsort
SELECT ALL - COALESCE ( + 88, + - 96 ) * 5 AS col0
----
-440

onlyif mysql # DIV for integer division: 
query II rowsort label-3291
SELECT NULLIF ( - - 30, AVG ( DISTINCT + 45 ) + COALESCE ( + ( + + ( COALESCE ( 73, + 93, - 4 ) ) ), - 84 ) ) AS col0, + 3 + - 86 DIV 18 AS col2
----
30
-1

skipif mysql # not compatible
query II rowsort label-3291
SELECT NULLIF ( - - 30, AVG ( DISTINCT + 45 ) + COALESCE ( + ( + + ( COALESCE ( 73, + 93, - 4 ) ) ), - 84 ) ) AS col0, + 3 + - 86 / 18 AS col2
----
30
-1

query II rowsort
SELECT ALL - 1 * - 43 + 23 col0, 9 col1
----
66
9

query I rowsort
SELECT - 90 + + 57 AS col0
----
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3295
SELECT ALL - 24 * + - 74 * + MAX( ALL + CASE + - CAST( NULL AS DECIMAL ) WHEN - 33 THEN NULL WHEN 97 THEN + 2 ELSE - + 81 DIV 1 END )
----
-143856

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL - 24 * + - 74 * + MAX ( ALL + CASE + - CAST ( NULL AS REAL ) WHEN - 33 THEN NULL WHEN 97 THEN + 2 ELSE - + 81 / 1 END )
----
-143856

query I rowsort
SELECT 52 * 6 + - 38
----
274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT - 25 - NULLIF ( + - 70, + 62 + CAST( - - 16 AS SIGNED ) ) / ( 24 ) * - 21 * + CAST( NULL AS SIGNED ) - 97 + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT - 25 - NULLIF ( + - 70, + 62 + CAST ( - - 16 AS INTEGER ) ) / ( 24 ) * - 21 * + CAST ( NULL AS INTEGER ) - 97 + - 57
----
NULL

query I rowsort
SELECT ALL - 74 * 63 + - ( + 74 )
----
-4736

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT - 30 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT - 30 / - 49
----
0

query I rowsort
SELECT - 89 + - + 15 AS col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL - + COUNT( * ) * - ( - - 63 ) + - 99 + 32
----
-4

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - + COUNT ( * ) * - ( - - 63 ) + - 99 + 32
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3302
SELECT - + 53 DIV - MAX( - - 20 ) + + + 12 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3302
SELECT - + 53 / - MAX ( - - 20 ) + + + 12 AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT DISTINCT - + 20 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT - + 20 / + 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT + - 7 * + + COALESCE ( + + 65, - 34 * COUNT( * ) ) * - 89
----
40495

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + - 7 * + + COALESCE ( + + 65, - 34 * COUNT ( * ) ) * - 89
----
40495

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT - 9 * 90 + - MAX( DISTINCT - - 79 ) AS col2
----
-889

skipif mysql # not compatible
query I rowsort label-3305
SELECT - 9 * 90 + - MAX ( DISTINCT - - 79 ) AS col2
----
-889

query I rowsort
SELECT ALL - + 40 * 41 + - ( + 77 ) AS col2
----
-1717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3307
SELECT DISTINCT COALESCE ( + + 22, + NULLIF ( 27, SUM( DISTINCT 67 ) ) + - CAST( + 49 AS SIGNED ) )
----
22

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT COALESCE ( + + 22, + NULLIF ( 27, SUM ( DISTINCT 67 ) ) + - CAST ( + 49 AS INTEGER ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL - + 65 * + 97 + + COUNT( * ) + + ( - 6 )
----
-6310

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - + 65 * + 97 + + COUNT ( * ) + + ( - 6 )
----
-6310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3309
SELECT - + MIN( 55 ) * 78 + - 45 * 81 DIV 72 * + COALESCE ( + 70, + + CAST( NULL AS SIGNED ), - 5 ) * + COUNT( * ) AS col2
----
-7790

skipif mysql # not compatible
query I rowsort label-3309
SELECT - + MIN ( 55 ) * 78 + - 45 * 81 / 72 * + COALESCE ( + 70, + + CAST ( NULL AS INTEGER ), - 5 ) * + COUNT ( * ) AS col2
----
-7790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT - - CAST( - ( + - 87 ) AS SIGNED ) + - MIN( DISTINCT + 24 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3310
SELECT - - CAST ( - ( + - 87 ) AS INTEGER ) + - MIN ( DISTINCT + 24 ) AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT - 82 DIV + + 29 + 62 + - 32
----
28

skipif mysql # not compatible
query I rowsort label-3311
SELECT - 82 / + + 29 + 62 + - 32
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT + 73 * + + ( ( - ( 0 ) ) ) DIV + 77 - + NULLIF ( + + COUNT( * ), - 33 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3312
SELECT + 73 * + + ( ( - ( 0 ) ) ) / + 77 - + NULLIF ( + + COUNT ( * ), - 33 ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT - 21 DIV + - 94 * - 47
----
0

skipif mysql # not compatible
query I rowsort label-3313
SELECT - 21 / + - 94 * - 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3314
SELECT + 9 DIV + 46 - 82 + + - MAX( + 54 ) * + - 7 col2
----
296

skipif mysql # not compatible
query I rowsort label-3314
SELECT + 9 / + 46 - 82 + + - MAX ( + 54 ) * + - 7 col2
----
296

onlyif mysql # DIV for integer division: 
query I rowsort label-3315
SELECT ALL 27 DIV - 99 + ( + 7 ) + + 84 * + 82 * - + 43 * + 1 + + + 26
----
-296151

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL 27 / - 99 + ( + 7 ) + + 84 * + 82 * - + 43 * + 1 + + + 26
----
-296151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT ALL - MIN( 73 ) DIV + ( - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - MIN ( 73 ) / + ( - 63 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3318
SELECT 62 AS col0, - 73 + + COUNT( * )
----
62
-72

skipif mysql # not compatible
query II rowsort label-3318
SELECT 62 AS col0, - 73 + + COUNT ( * )
----
62
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT - MIN( - 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - MIN ( - 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT COUNT( * ) + + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT COUNT ( * ) + + - 7
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3321
SELECT 43 AS col0, MAX( ALL - 54 ) AS col0
----
43
-54

skipif mysql # not compatible
query II rowsort label-3321
SELECT 43 AS col0, MAX ( ALL - 54 ) AS col0
----
43
-54

query II rowsort
SELECT 78, + 99 AS col2
----
78
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL 79 * - - 20 * - + 0 * - 68 * COUNT( + 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL 79 * - - 20 * - + 0 * - 68 * COUNT ( + 61 ) AS col2
----
0

query I rowsort
SELECT 69 + + 60 col0
----
129

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

skipif mysql # not compatible
query I rowsort label-3325
SELECT 73 / 25
----
2

query I rowsort
SELECT NULLIF ( - 76, - 25 ) + - 59
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT + COUNT( * ) * - 56 * 20 + - 79 - + - 9 AS col0
----
-1190

skipif mysql # not compatible
query I rowsort label-3327
SELECT + COUNT ( * ) * - 56 * 20 + - 79 - + - 9 AS col0
----
-1190

onlyif mysql # DIV for integer division: 
query II rowsort label-3328
SELECT 7 * + 1 DIV + 13 col2, - 1
----
0
-1

skipif mysql # not compatible
query II rowsort label-3328
SELECT 7 * + 1 / + 13 col2, - 1
----
0
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3329
SELECT ALL - 93 * - SUM( + 56 ) AS col0, - 53 DIV + COUNT( * )
----
5208
-53

skipif mysql # not compatible
query II rowsort label-3329
SELECT ALL - 93 * - SUM ( + 56 ) AS col0, - 53 / + COUNT ( * )
----
5208
-53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3331
SELECT - 23 - + CAST( - COUNT( * ) AS SIGNED ) DIV - 30 * + + 43 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3331
SELECT - 23 - + CAST ( - COUNT ( * ) AS INTEGER ) / - 30 * + + 43 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3332
SELECT ALL 97 * + COUNT( DISTINCT - + 63 ), 93 * + - 37 * 47 - - + CASE + + ( + - 40 ) WHEN - 95 THEN - 84 WHEN 79 THEN NULL ELSE NULL END AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-3332
SELECT ALL 97 * + COUNT ( DISTINCT - + 63 ), 93 * + - 37 * 47 - - + CASE + + ( + - 40 ) WHEN - 95 THEN - 84 WHEN 79 THEN NULL ELSE NULL END AS col1
----
97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3333
SELECT - ( - COUNT( * ) ) + + CAST( + - 33 AS SIGNED ) + COUNT( * ) + + COUNT( - 79 ) * + 37 AS col0, 29 - - CASE + ( 56 ) WHEN + - 63 THEN NULL ELSE - + 0 END * + + ( 79 ) - - 10
----
6
39

skipif mysql # not compatible
query II rowsort label-3333
SELECT - ( - COUNT ( * ) ) + + CAST ( + - 33 AS INTEGER ) + COUNT ( * ) + + COUNT ( - 79 ) * + 37 AS col0, 29 - - CASE + ( 56 ) WHEN + - 63 THEN NULL ELSE - + 0 END * + + ( 79 ) - - 10
----
6
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3334
SELECT - 1 * - ( - + 38 ) / + - ( - - 74 ) + + SUM( CAST( NULL AS DECIMAL ) ) * COUNT( * ) + + + 55 * + - 17 * 92 + - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT - 1 * - ( - + 38 ) / + - ( - - 74 ) + + SUM ( CAST ( NULL AS REAL ) ) * COUNT ( * ) + + + 55 * + - 17 * 92 + - + 33
----
NULL

query II rowsort
SELECT ALL 4 AS col0, + 96
----
4
96

query II rowsort
SELECT DISTINCT - 85 * - 19 * + - 33 col0, 92 AS col2
----
-53295
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT - + COUNT( 63 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3337
SELECT - + COUNT ( 63 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT 88 * + + CAST( 93 AS SIGNED )
----
8184

skipif mysql # not compatible
query I rowsort label-3338
SELECT 88 * + + CAST ( 93 AS INTEGER )
----
8184

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ( - 18 ) + + COUNT( DISTINCT 59 )
----
-17

skipif mysql # not compatible
query I rowsort label-3339
SELECT ( - 18 ) + + COUNT ( DISTINCT 59 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3340
SELECT ( SUM( + 62 ) ) AS col0, - 73
----
62
-73

skipif mysql # not compatible
query II rowsort label-3340
SELECT ( SUM ( + 62 ) ) AS col0, - 73
----
62
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3341
SELECT ALL + + 42 DIV - ( - 98 ) * - 95 + 12
----
12

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + + 42 / - ( - 98 ) * - 95 + 12
----
12

query II rowsort
SELECT ALL + 54 AS col2, + 64 AS col0
----
54
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3343
SELECT COALESCE ( - 51, - + 77 * - SUM( + CAST( NULL AS SIGNED ) ) * - + 27 + 42 DIV 7 + 96 )
----
-51

skipif mysql # not compatible
query I rowsort label-3343
SELECT COALESCE ( - 51, - + 77 * - SUM ( + CAST ( NULL AS INTEGER ) ) * - + 27 + 42 / 7 + 96 )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT + 57 DIV ( + - 9 )
----
-6

skipif mysql # not compatible
query I rowsort label-3344
SELECT + 57 / ( + - 9 )
----
-6

query II rowsort
SELECT ALL + 42 + + 73 + - 63 AS col1, 86 AS col2
----
52
86

query I rowsort
SELECT - 66 + 77 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT ALL 62 AS col1, COUNT( * ) + - 54 AS col0
----
62
-53

skipif mysql # not compatible
query II rowsort label-3347
SELECT ALL 62 AS col1, COUNT ( * ) + - 54 AS col0
----
62
-53

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

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

query I rowsort
SELECT ALL - - 38 + 56 + + 54 * + - 93 * + 87
----
-436820

query II rowsort
SELECT - 23 AS col2, + 65 * + 34
----
-23
2210

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

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

query I rowsort
SELECT ALL - 69 * - 69 AS col2
----
4761

query I rowsort
SELECT DISTINCT + 14 + - 60 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT 32 + + + MAX( + 49 ) + + COUNT( * ) + - 84 * NULLIF ( 70, 1 ) + + 63 col0
----
-5735

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT 32 + + + MAX ( + 49 ) + + COUNT ( * ) + - 84 * NULLIF ( 70, 1 ) + + 63 col0
----
-5735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3355
SELECT 99 * + 90 DIV - COUNT( * ) col0
----
-8910

skipif mysql # not compatible
query I rowsort label-3355
SELECT 99 * + 90 / - COUNT ( * ) col0
----
-8910

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3357
SELECT ALL + 97 - + 8 + + 67 + - CAST( NULL AS SIGNED ), ( 57 ) + 1 + - CAST( NULL AS SIGNED ) + + 45
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3357
SELECT ALL + 97 - + 8 + + 67 + - CAST ( NULL AS INTEGER ), ( 57 ) + 1 + - CAST ( NULL AS INTEGER ) + + 45
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT 88 * + 20 * + + COUNT( * ) AS col0
----
1760

skipif mysql # not compatible
query I rowsort label-3358
SELECT 88 * + 20 * + + COUNT ( * ) AS col0
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT COUNT( * ) + + ( - - 3 )
----
4

skipif mysql # not compatible
query I rowsort label-3359
SELECT COUNT ( * ) + + ( - - 3 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3360
SELECT ALL 7 - 7 + + ( - - COUNT( * ) ), - ( 16 ) * - - ( CAST( 28 AS SIGNED ) ) * - 71 AS col0
----
1
31808

skipif mysql # not compatible
query II rowsort label-3360
SELECT ALL 7 - 7 + + ( - - COUNT ( * ) ), - ( 16 ) * - - ( CAST ( 28 AS INTEGER ) ) * - 71 AS col0
----
1
31808

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT DISTINCT SUM( + 86 ) * 17
----
1462

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT SUM ( + 86 ) * 17
----
1462

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

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT + COUNT ( * ) / 72
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3363
SELECT COUNT( * ) - + ( + - 83 ) + 21 AS col0, + 23 AS col2
----
105
23

skipif mysql # not compatible
query II rowsort label-3363
SELECT COUNT ( * ) - + ( + - 83 ) + 21 AS col0, + 23 AS col2
----
105
23

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

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

query I rowsort
SELECT DISTINCT + 80 * - - 77 AS col0
----
6160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3366
SELECT 64 * - - 17 + 76 * + ( + - 17 ) * + 20 + - - ( 94 ) * + 68 + - 95 DIV - 27 * - COUNT( * ) + + - COUNT( * )
----
-18364

skipif mysql # not compatible
query I rowsort label-3366
SELECT 64 * - - 17 + 76 * + ( + - 17 ) * + 20 + - - ( 94 ) * + 68 + - 95 / - 27 * - COUNT ( * ) + + - COUNT ( * )
----
-18364

onlyif mysql # aggregate syntax: 
query II rowsort label-3367
SELECT + 20 + + 2, - MIN( COALESCE ( 25, 51, + 37 * - - 94 ) ) AS col1
----
22
-25

skipif mysql # not compatible
query II rowsort label-3367
SELECT + 20 + + 2, - MIN ( COALESCE ( 25, 51, + 37 * - - 94 ) ) AS col1
----
22
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT - NULLIF ( 39, + COUNT( ALL - 43 ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3368
SELECT - NULLIF ( 39, + COUNT ( ALL - 43 ) ) AS col2
----
-39

query I rowsort
SELECT ALL + NULLIF ( - 98, 74 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT 13 + + + COUNT( - + 93 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-3370
SELECT 13 + + + COUNT ( - + 93 ) col0
----
14

query I rowsort
SELECT + COALESCE ( - - 30, - 2, 40, 41 ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3372
SELECT DISTINCT + 29 * - - 62 + + CAST( NULL AS SIGNED ) + - 64 + 30 AS col0, + 9 * - - 80 AS col2
----
NULL
720

skipif mysql # not compatible
query II rowsort label-3372
SELECT DISTINCT + 29 * - - 62 + + CAST ( NULL AS INTEGER ) + - 64 + 30 AS col0, + 9 * - - 80 AS col2
----
NULL
720

query I rowsort
SELECT ALL 11 + + 53
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT - CASE - 5 WHEN 11 + 89 THEN NULL ELSE - + 98 + COALESCE ( - COUNT( * ), 49 * - + 20 ) END + 62 AS col2
----
161

skipif mysql # not compatible
query I rowsort label-3374
SELECT - CASE - 5 WHEN 11 + 89 THEN NULL ELSE - + 98 + COALESCE ( - COUNT ( * ), 49 * - + 20 ) END + 62 AS col2
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3375
SELECT 5 + - 98 DIV 26 * + MIN( DISTINCT 88 )
----
-259

skipif mysql # not compatible
query I rowsort label-3375
SELECT 5 + - 98 / 26 * + MIN ( DISTINCT 88 )
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT + - 99 - - + NULLIF ( - COUNT( + ( 59 ) ), + + 72 )
----
-100

skipif mysql # not compatible
query I rowsort label-3376
SELECT + - 99 - - + NULLIF ( - COUNT ( + ( 59 ) ), + + 72 )
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT + COALESCE ( + 68, + - 32 + ( + 35 ) * 62 ) + + 48 + NULLIF ( - 36, + - NULLIF ( - 36, - 98 * 0 / CAST( NULL AS SIGNED ) + 94 ) * 94 ) * 98 * + - 8 + 6 + + 35 + - - 78
----
28459

skipif mysql # not compatible
query I rowsort label-3377
SELECT + COALESCE ( + 68, + - 32 + ( + 35 ) * 62 ) + + 48 + NULLIF ( - 36, + - NULLIF ( - 36, - 98 * 0 / CAST ( NULL AS INTEGER ) + 94 ) * 94 ) * 98 * + - 8 + 6 + + 35 + - - 78
----
28459

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL 9 + + + COUNT( * ) col0
----
10

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL 9 + + + COUNT ( * ) col0
----
10

query I rowsort
SELECT - 80 + 5
----
-75

query I rowsort
SELECT ALL - NULLIF ( + 93, + - 39 ) + + - 96 AS col1
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-3381
SELECT ALL + 92 DIV - 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + 92 / - 10 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3382
SELECT COUNT( * ) DIV 72 + SUM( + + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-3382
SELECT COUNT ( * ) / 72 + SUM ( + + 50 )
----
50

query I rowsort
SELECT + COALESCE ( - 72, 65 ) AS col1
----
-72

query I rowsort
SELECT NULLIF ( 19, - 49 - - + 46 * - 24 * + 5 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT - COUNT( * ) * 19 * 40 AS col2
----
-760

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT - COUNT ( * ) * 19 * 40 AS col2
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT COALESCE ( 71, + COUNT( * ) * - SUM( + 28 ) + - - 10 + 62 + - - 9 - ( + 94 ), MIN( - + 47 ) + - - 16 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3386
SELECT COALESCE ( 71, + COUNT ( * ) * - SUM ( + 28 ) + - - 10 + 62 + - - 9 - ( + 94 ), MIN ( - + 47 ) + - - 16 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - COALESCE ( COUNT( * ), - COUNT( + 81 ) + + + 6, 10, - - 76 * 62 * + 74 ) + - + ( - ( 4 ) ) + + 83 * - CASE - 14 WHEN CASE 78 WHEN + - 98 * - MAX( - 81 ) * 11 + COUNT( * ) THEN NULL ELSE + 49 * + COUNT( * ) END THEN NULL WHEN - 90 THEN NULL WHEN - 14 THEN + - 59 + + 58 ELSE + 2 * + 44 + 43 END AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3387
SELECT - COALESCE ( COUNT ( * ), - COUNT ( + 81 ) + + + 6, 10, - - 76 * 62 * + 74 ) + - + ( - ( 4 ) ) + + 83 * - CASE - 14 WHEN CASE 78 WHEN + - 98 * - MAX ( - 81 ) * 11 + COUNT ( * ) THEN NULL ELSE + 49 * + COUNT ( * ) END THEN NULL WHEN - 90 THEN NULL WHEN - 14 THEN + - 59 + + 58 ELSE + 2 * + 44 + 43 END AS col1
----
86

query I rowsort
SELECT ALL + 93 * 17 AS col1
----
1581

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

query I rowsort
SELECT DISTINCT + 20 * 52
----
1040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3391
SELECT DISTINCT + CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) + - 58 THEN + 81 WHEN + - 71 / + COUNT( * ) THEN + 22 ELSE + 23 + - COUNT( * ) END AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT + CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) + - 58 THEN + 81 WHEN + - 71 / + COUNT ( * ) THEN + 22 ELSE + 23 + - COUNT ( * ) END AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3392
SELECT NULLIF ( MAX( - CAST( + 82 AS SIGNED ) ), - 34 * + 13 * + 22 * CASE + - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 5 THEN NULL ELSE - 59 + + + 85 + - 5 END + + - ( - + ( COUNT( * ) ) ) + + CAST( - 34 AS DECIMAL ) )
----
-82

skipif mysql # not compatible
query I rowsort label-3392
SELECT NULLIF ( MAX ( - CAST ( + 82 AS INTEGER ) ), - 34 * + 13 * + 22 * CASE + - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 5 THEN NULL ELSE - 59 + + + 85 + - 5 END + + - ( - + ( COUNT ( * ) ) ) + + CAST ( - 34 AS REAL ) )
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-3393
SELECT - 71 + 60 DIV + + 54 AS col0, 72
----
-70
72

skipif mysql # not compatible
query II rowsort label-3393
SELECT - 71 + 60 / + + 54 AS col0, 72
----
-70
72

query I rowsort
SELECT NULLIF ( - - 18, + 12 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT - COUNT( * ) + 27
----
26

skipif mysql # not compatible
query I rowsort label-3395
SELECT - COUNT ( * ) + 27
----
26

query I rowsort
SELECT - 48 * 79
----
-3792

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

skipif mysql # not compatible
query I rowsort label-3397
SELECT + COUNT ( ALL - 96 ) * + 66 AS col2
----
66

query I rowsort
SELECT ALL + CASE + 57 WHEN - 60 * 75 THEN 72 END / + 41
----
NULL

query I rowsort
SELECT DISTINCT + ( - 72 ) * 75 AS col2
----
-5400

query I rowsort
SELECT ALL 17 * + 50 + 62 * 73 AS col0
----
5376

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL 60 * 44 + CAST( 14 + COALESCE ( + 42, 63 * 55 ) AS SIGNED ) AS col2
----
2696

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL 60 * 44 + CAST ( 14 + COALESCE ( + 42, 63 * 55 ) AS INTEGER ) AS col2
----
2696

query I rowsort
SELECT ALL + 73 * ( ( + 14 ) ) + 18
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT - COUNT( DISTINCT ( - NULLIF ( 51, 76 ) ) ) + 56
----
55

skipif mysql # not compatible
query I rowsort label-3404
SELECT - COUNT ( DISTINCT ( - NULLIF ( 51, 76 ) ) ) + 56
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT + ( 43 ) + NULLIF ( - 76 + 38 DIV 83, 62 * - 82 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3405
SELECT + ( 43 ) + NULLIF ( - 76 + 38 / 83, 62 * - 82 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT MIN( ALL 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3406
SELECT MIN ( ALL 52 ) AS col2
----
52

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

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

query I rowsort
SELECT - 58 * 27 col2
----
-1566

query I rowsort
SELECT + 40 + - 67
----
-27

query I rowsort
SELECT ALL 46 + 9 AS col0
----
55

query I rowsort
SELECT - 51 + 3 AS col2
----
-48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + AVG ( 87 ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + AVG ( 87 ) * - 30
----
NULL

query I rowsort
SELECT + 4 + 53 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL COUNT( DISTINCT - 15 ) - - 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL COUNT ( DISTINCT - 15 ) - - 52 AS col2
----
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT ALL COUNT( * ) * CASE 9 / - CASE + CAST( NULL AS SIGNED ) WHEN 19 THEN 91 WHEN 23 + - 27 THEN NULL END WHEN - ( + 36 ) + 39 THEN NULL ELSE ( - 30 ) + - ( 70 ) END
----
-100

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL COUNT ( * ) * CASE 9 / - CASE + CAST ( NULL AS INTEGER ) WHEN 19 THEN 91 WHEN 23 + - 27 THEN NULL END WHEN - ( + 36 ) + 39 THEN NULL ELSE ( - 30 ) + - ( 70 ) END
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + 50 + COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3418
SELECT + 50 + COUNT ( * ) AS col0
----
51

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

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

query I rowsort
SELECT + ( 91 ) * + 47
----
4277

query I rowsort
SELECT - COALESCE ( 55, NULLIF ( 75, 78 * 27 ), 67 * 66 )
----
-55

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

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

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

query I rowsort
SELECT ALL 2 * 58 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL CASE COALESCE ( + 66, + COUNT( * ) * 49 + 34, 17 ) WHEN 44 + ( 74 ) / + 19 THEN NULL ELSE 83 + + 24 END col0
----
107

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL CASE COALESCE ( + 66, + COUNT ( * ) * 49 + 34, 17 ) WHEN 44 + ( 74 ) / + 19 THEN NULL ELSE 83 + + 24 END col0
----
107

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT ALL - ( - 3 ) DIV 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - ( - 3 ) / 18 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT - 84 DIV + COUNT( DISTINCT NULLIF ( 2, 92 ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3428
SELECT - 84 / + COUNT ( DISTINCT NULLIF ( 2, 92 ) ) AS col0
----
-84

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

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

query I rowsort
SELECT + 30 + - 28
----
2

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

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

query I rowsort
SELECT ALL + 71 * 77 AS col0
----
5467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT ALL - - MIN( 43 ) DIV - 26 + 45
----
44

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL - - MIN ( 43 ) / - 26 + 45
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3434
SELECT ALL 43 * - CAST( ( + 65 ) - 90 DIV 58 AS SIGNED ) AS col0
----
-2752

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL 43 * - CAST ( ( + 65 ) - 90 / 58 AS INTEGER ) AS col0
----
-2752

query I rowsort
SELECT - + 84 * NULLIF ( - ( - 70 ), + 25 ) col0
----
-5880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3436
SELECT DISTINCT 98 * + CASE 55 WHEN - 71 THEN CAST( + NULLIF ( 90, COUNT( 8 ) * CAST( 53 AS SIGNED ) ) AS SIGNED ) ELSE NULL END + - 83 * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT 98 * + CASE 55 WHEN - 71 THEN CAST ( + NULLIF ( 90, COUNT ( 8 ) * CAST ( 53 AS INTEGER ) ) AS INTEGER ) ELSE NULL END + - 83 * - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT + + MAX( ALL 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3437
SELECT + + MAX ( ALL 42 )
----
42

query I rowsort
SELECT + + 40 + + 93 AS col1
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3439
SELECT + CASE - CASE - 92 WHEN 83 THEN NULL WHEN + 30 * 97 THEN NULL ELSE + ( - 22 ) END WHEN ( - 92 ) * - 19 THEN NULL WHEN + 0 * + CASE + CAST( + 5 AS DECIMAL ) WHEN 4 / 13 THEN CASE 77 WHEN 75 * CASE - ( 81 ) WHEN 78 THEN ( - 94 ) * - CAST( NULL AS SIGNED ) WHEN ( - 56 ) * - 20 THEN NULL ELSE NULL END + - CAST( ( - 87 ) + - 6 AS SIGNED ) THEN 30 * - 36 + + 1 END + + 48 WHEN 53 THEN NULL ELSE NULL END THEN - COALESCE ( 39, COUNT( * ) / + 26 ) * 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT + CASE - CASE - 92 WHEN 83 THEN NULL WHEN + 30 * 97 THEN NULL ELSE + ( - 22 ) END WHEN ( - 92 ) * - 19 THEN NULL WHEN + 0 * + CASE + CAST ( + 5 AS REAL ) WHEN 4 / 13 THEN CASE 77 WHEN 75 * CASE - ( 81 ) WHEN 78 THEN ( - 94 ) * - CAST ( NULL AS INTEGER ) WHEN ( - 56 ) * - 20 THEN NULL ELSE NULL END + - CAST ( ( - 87 ) + - 6 AS INTEGER ) THEN 30 * - 36 + + 1 END + + 48 WHEN 53 THEN NULL ELSE NULL END THEN - COALESCE ( 39, COUNT ( * ) / + 26 ) * 46 ELSE NULL END
----
NULL

query I rowsort
SELECT - 19 * 42
----
-798

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL + 24 * 5 + + 72 DIV + 24 col0
----
123

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + 24 * 5 + + 72 / + 24 col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL + + MIN( + NULLIF ( 96, 41 ) ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL + + MIN ( + NULLIF ( 96, 41 ) ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT SUM( - 90 ) - - 16
----
-74

skipif mysql # not compatible
query I rowsort label-3443
SELECT SUM ( - 90 ) - - 16
----
-74

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

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

query I rowsort
SELECT - 85 * - 79
----
6715

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT COUNT( * ) - + 14
----
-13

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT COUNT ( * ) - + 14
----
-13

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

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

query I rowsort
SELECT ( + 40 ) * 49
----
1960

query I rowsort
SELECT ALL - ( 69 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT 73 + - 28 - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3451
SELECT 73 + - 28 - - COUNT ( * )
----
46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT 79 DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-3453
SELECT 79 / - 73
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3454
SELECT MAX( ALL NULLIF ( 90, - CAST( NULL AS SIGNED ) * 65 ) ) + 78
----
168

skipif mysql # not compatible
query I rowsort label-3454
SELECT MAX ( ALL NULLIF ( 90, - CAST ( NULL AS INTEGER ) * 65 ) ) + 78
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT MAX( ALL - 67 ) * + 85
----
-5695

skipif mysql # not compatible
query I rowsort label-3455
SELECT MAX ( ALL - 67 ) * + 85
----
-5695

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT 98 + - MAX( ALL ( - 45 ) )
----
143

skipif mysql # not compatible
query I rowsort label-3456
SELECT 98 + - MAX ( ALL ( - 45 ) )
----
143

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ( - NULLIF ( + MIN( + COALESCE ( + 93, - 45, 96, + ( 93 ) * ( 37 ) ) ), - 28 ) ) * 56 AS col1
----
-5208

skipif mysql # not compatible
query I rowsort label-3458
SELECT ( - NULLIF ( + MIN ( + COALESCE ( + 93, - 45, 96, + ( 93 ) * ( 37 ) ) ), - 28 ) ) * 56 AS col1
----
-5208

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT COUNT( * ) + - 8 * COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3459
SELECT COUNT ( * ) + - 8 * COUNT ( * ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT 27 + - COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-3460
SELECT 27 + - COUNT ( * ) col1
----
26

query I rowsort
SELECT ALL 49 * + - 63 AS col2
----
-3087

query I rowsort
SELECT 4 * - 24 col2
----
-96

query I rowsort
SELECT - 10 * - 20 * - 19 - 90
----
-3890

query I rowsort
SELECT DISTINCT 1 * 33 * + 30
----
990

query I rowsort
SELECT 17 * 71 col2
----
1207

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT - 47 * - COUNT( * ) + - ( 68 )
----
-21

skipif mysql # not compatible
query I rowsort label-3466
SELECT - 47 * - COUNT ( * ) + - ( 68 )
----
-21

query I rowsort
SELECT DISTINCT 88 + 78 AS col0
----
166

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

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - COUNT ( * ) / + 65
----
0

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

query I rowsort
SELECT 19 + + 89 + - 64
----
44

query I rowsort
SELECT + 24 * - 71
----
-1704

query I rowsort
SELECT 78 * + - 89 col2
----
-6942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3473
SELECT 53 * + 10 * COUNT( * ) + 33 * CAST( 70 AS SIGNED ) + MAX( ALL 76 - 15 ) DIV - 86
----
2840

skipif mysql # not compatible
query I rowsort label-3473
SELECT 53 * + 10 * COUNT ( * ) + 33 * CAST ( 70 AS INTEGER ) + MAX ( ALL 76 - 15 ) / - 86
----
2840

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT 8 DIV 44 + - 62 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3474
SELECT 8 / 44 + - 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT - ( - + COUNT( ALL 42 ) ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT - ( - + COUNT ( ALL 42 ) ) * - 9
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3476
SELECT + + CAST( - ( NULLIF ( CASE 31 WHEN + 15 THEN - 52 WHEN 32 THEN NULL WHEN + MIN( DISTINCT + 15 ) * - 78 THEN CASE - 23 WHEN 48 THEN 66 ELSE 96 - 24 END * 32 END, + 40 ) ) AS DECIMAL ) * 61 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT + + CAST ( - ( NULLIF ( CASE 31 WHEN + 15 THEN - 52 WHEN 32 THEN NULL WHEN + MIN ( DISTINCT + 15 ) * - 78 THEN CASE - 23 WHEN 48 THEN 66 ELSE 96 - 24 END * 32 END, + 40 ) ) AS REAL ) * 61 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT + 81 - ( - COUNT( * ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT + 81 - ( - COUNT ( * ) ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT + 83 + - SUM( 16 ) + + CAST( COALESCE ( - 27, + 41, - 80 * - 37 ) AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-3478
SELECT + 83 + - SUM ( 16 ) + + CAST ( COALESCE ( - 27, + 41, - 80 * - 37 ) AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT - - 79 - + - COUNT( * ) + ( 65 )
----
145

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - - 79 - + - COUNT ( * ) + ( 65 )
----
145

query I rowsort
SELECT ALL - NULLIF ( - 48, + 76 ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT CAST( + 84 AS SIGNED ) + - 10
----
74

skipif mysql # not compatible
query I rowsort label-3481
SELECT CAST ( + 84 AS INTEGER ) + - 10
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + 40 * - - MAX( - 76 )
----
-3040

skipif mysql # not compatible
query I rowsort label-3482
SELECT + 40 * - - MAX ( - 76 )
----
-3040

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

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

query I rowsort
SELECT 82 * - 29
----
-2378

query I rowsort
SELECT 18 + 79
----
97

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

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT - COUNT ( - + 2 ) / + - ( 98 ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL SUM ( 40 )
----
40

query I rowsort
SELECT 8 * - 99
----
-792

query I rowsort
SELECT DISTINCT - 61 * - CASE + - 54 WHEN ( 34 ) THEN NULL ELSE - 3 END
----
-183

query I rowsort
SELECT 98 * - - 64 col2
----
6272

query I rowsort
SELECT ALL + NULLIF ( - 73, - - 71 ) * - 48
----
3504

query I rowsort
SELECT 4 / + - CASE 63 WHEN + 66 THEN 39 ELSE NULL END * + 12 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT 17 DIV 17 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3493
SELECT 17 / 17 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT ALL ( + 35 ) + - + 69 DIV - COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL ( + 35 ) + - + 69 / - COUNT ( * )
----
104

query I rowsort
SELECT ALL 95 + - - NULLIF ( - 42, + 79 ) AS col1
----
53

query I rowsort
SELECT 39 + 80
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT CASE - 6 WHEN 97 THEN CAST( NULL AS SIGNED ) + - 94 * 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT CASE - 6 WHEN 97 THEN CAST ( NULL AS INTEGER ) + - 94 * 5 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT CASE - 79 WHEN + - 7 THEN NULL ELSE CAST( - NULLIF ( - 80, + 13 ) AS SIGNED ) END
----
80

skipif mysql # not compatible
query I rowsort label-3498
SELECT CASE - 79 WHEN + - 7 THEN NULL ELSE CAST ( - NULLIF ( - 80, + 13 ) AS INTEGER ) END
----
80

query II rowsort
SELECT + 30, 9 * + ( 18 ) AS col1
----
30
162

query I rowsort
SELECT 3 + - 18
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT + + 73 * + + 31 * - + 93 + COUNT( * )
----
-210458

skipif mysql # not compatible
query I rowsort label-3501
SELECT + + 73 * + + 31 * - + 93 + COUNT ( * )
----
-210458

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT + - MIN( 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT + - MIN ( 81 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT ALL + CASE + - 95 WHEN + NULLIF ( - AVG ( 77 ), - 2 + 99 ) THEN NULL WHEN + AVG ( - 17 ) * - 88 - - ( + MIN( DISTINCT - 12 ) + 43 ) THEN + ( ( + NULLIF ( COUNT( + 83 ), - COUNT( * ) ) ) ) END * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL + CASE + - 95 WHEN + NULLIF ( - AVG ( 77 ), - 2 + 99 ) THEN NULL WHEN + AVG ( - 17 ) * - 88 - - ( + MIN ( DISTINCT - 12 ) + 43 ) THEN + ( ( + NULLIF ( COUNT ( + 83 ), - COUNT ( * ) ) ) ) END * - 20
----
NULL

query I rowsort
SELECT DISTINCT - + 22 * + 1 AS col0
----
-22

query II rowsort
SELECT ALL + 13 AS col0, 57 col1
----
13
57

query I rowsort
SELECT ALL + 52 * + + 11
----
572

query I rowsort
SELECT + - 83 - + 55 AS col2
----
-138

query II rowsort
SELECT ALL + 5, 79 AS col2
----
5
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT ALL 97 * - 81 / - + ( + CAST( NULL AS SIGNED ) ) - - 90 * 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL 97 * - 81 / - + ( + CAST ( NULL AS INTEGER ) ) - - 90 * 22 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3511
SELECT + COUNT( * ) DIV + + ( - 74 ) DIV 5 + 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3511
SELECT + COUNT ( * ) / + + ( - 74 ) / 5 + 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3512
SELECT + - 82, - 24 * + COUNT( - 52 ) AS col2
----
-82
-24

skipif mysql # not compatible
query II rowsort label-3512
SELECT + - 82, - 24 * + COUNT ( - 52 ) AS col2
----
-82
-24

query I rowsort
SELECT + 38 + + + 82 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - MAX( - + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-3514
SELECT - MAX ( - + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT + - CASE - 33 WHEN - - COUNT( * ) + 62 THEN + 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT + - CASE - 33 WHEN - - COUNT ( * ) + 62 THEN + 67 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT - CAST( NULL AS SIGNED ) - - - MIN( DISTINCT + + COALESCE ( 50, 10 * CAST( + 72 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT - CAST ( NULL AS INTEGER ) - - - MIN ( DISTINCT + + COALESCE ( 50, 10 * CAST ( + 72 AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT - - 25 * - - 67
----
1675

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL - 20 * + + COUNT( * ) * 95 * - 36
----
68400

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - 20 * + + COUNT ( * ) * 95 * - 36
----
68400

query I rowsort
SELECT + ( - + 80 ) - - 53 AS col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT DISTINCT 44 DIV - + 2 col2
----
-22

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT 44 / - + 2 col2
----
-22

query I rowsort
SELECT DISTINCT 38 + - 97 + 5 * + + 73 - 40 * - 65
----
2906

onlyif mysql # aggregate syntax: 
query II rowsort label-3522
SELECT ALL SUM( + + 20 ) AS col1, - 8 AS col1
----
20
-8

skipif mysql # not compatible
query II rowsort label-3522
SELECT ALL SUM ( + + 20 ) AS col1, - 8 AS col1
----
20
-8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL 73 + + MIN( DISTINCT - + 50 ) - + - ( + 65 )
----
88

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL 73 + + MIN ( DISTINCT - + 50 ) - + - ( + 65 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT + MAX( - + 63 ) + COUNT( * ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-3525
SELECT + MAX ( - + 63 ) + COUNT ( * ) col2
----
-62

query I rowsort
SELECT ALL - 48 + - - 86
----
38

query I rowsort
SELECT + 31 + - 46
----
-15

query II rowsort
SELECT - 37 * + 13 AS col1, 32 * - 63
----
-481
-2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT + 7 + + CAST( + 63 AS SIGNED ) + - 36 + - CAST( NULL AS SIGNED ) * 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT + 7 + + CAST ( + 63 AS INTEGER ) + - 36 + - CAST ( NULL AS INTEGER ) * 7 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3530
SELECT ALL - 76 + 20 DIV + 36 * COUNT( * ) * 21
----
-76

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL - 76 + 20 / + 36 * COUNT ( * ) * 21
----
-76

query I rowsort
SELECT - 1 + - + 39
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT ALL + 3 * + CASE - - 56 WHEN - + 15 * 20 + + 54 / + 71 THEN 93 WHEN 84 * 3 + 6 / + COALESCE ( + COUNT( * ) * - 45, 70 + 88 / - CAST( NULL AS SIGNED ), - 42 * - 60, 36 ) THEN NULL ELSE + 14 END
----
42

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL + 3 * + CASE - - 56 WHEN - + 15 * 20 + + 54 / + 71 THEN 93 WHEN 84 * 3 + 6 / + COALESCE ( + COUNT ( * ) * - 45, 70 + 88 / - CAST ( NULL AS INTEGER ), - 42 * - 60, 36 ) THEN NULL ELSE + 14 END
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3533
SELECT DISTINCT + 31 + - 81 + ( + COUNT( * ) ) DIV 85 * 72
----
-50

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT + 31 + - 81 + ( + COUNT ( * ) ) / 85 * 72
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL ( + ( + + SUM( ALL - 84 ) ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL ( + ( + + SUM ( ALL - 84 ) ) ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3535
SELECT DISTINCT + 86 * 96 AS col2, MIN( ALL CASE - 8 WHEN - 49 THEN NULL WHEN - 55 THEN + 89 END ) * 18 AS col2
----
8256
NULL

skipif mysql # not compatible
query II rowsort label-3535
SELECT DISTINCT + 86 * 96 AS col2, MIN ( ALL CASE - 8 WHEN - 49 THEN NULL WHEN - 55 THEN + 89 END ) * 18 AS col2
----
8256
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - MIN( + 6 ) + + + 96 + 7 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3536
SELECT - MIN ( + 6 ) + + + 96 + 7 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL + NULLIF ( 99, - - NULLIF ( + 69, - COUNT( * ) ) * + 14 ) + + 73
----
172

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + NULLIF ( 99, - - NULLIF ( + 69, - COUNT ( * ) ) * + 14 ) + + 73
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT + 65 * - MIN( ALL - 4 ) AS col0
----
260

skipif mysql # not compatible
query I rowsort label-3538
SELECT + 65 * - MIN ( ALL - 4 ) AS col0
----
260

query I rowsort
SELECT - 93 + - 59 AS col2
----
-152

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT - 41 DIV + 41 + - - 25 + 99
----
123

skipif mysql # not compatible
query I rowsort label-3541
SELECT - 41 / + 41 + - - 25 + 99
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT + + 83 * 35 + + SUM( - 26 ) + + 97 + 13 * + 51 AS col0
----
3639

skipif mysql # not compatible
query I rowsort label-3542
SELECT + + 83 * 35 + + SUM ( - 26 ) + + 97 + 13 * + 51 AS col0
----
3639

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT 72 DIV - 63 + - 74 + + 11
----
-64

skipif mysql # not compatible
query I rowsort label-3543
SELECT 72 / - 63 + - 74 + + 11
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3544
SELECT ALL + 18 DIV 94 - 81 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL + 18 / 94 - 81 AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3545
SELECT ALL + ( + - 61 ) DIV 39
----
-1

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + ( + - 61 ) / 39
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT + 53 DIV - 44 + + 24
----
23

skipif mysql # not compatible
query I rowsort label-3546
SELECT + 53 / - 44 + + 24
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - + 9 + + - COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3548
SELECT - + 9 + + - COUNT ( * ) AS col2
----
-10

query II rowsort
SELECT + + 46 * + - 64 AS col2, 46
----
-2944
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3550
SELECT ALL - COUNT( * ) * + NULLIF ( 72, CAST( - 70 AS SIGNED ) * - 30 ) * - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL - COUNT ( * ) * + NULLIF ( 72, CAST ( - 70 AS INTEGER ) * - 30 ) * - COUNT ( * ) AS col2
----
72

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

skipif mysql # not compatible
query I rowsort label-3551
SELECT + - 46 * + - COUNT ( * ) + - 62 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3552
SELECT 71 * + + 47 + 12 + - COUNT( * ) DIV 6
----
3349

skipif mysql # not compatible
query I rowsort label-3552
SELECT 71 * + + 47 + 12 + - COUNT ( * ) / 6
----
3349

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3553
SELECT COUNT( * ) * 72 * - CAST( NULL AS DECIMAL ) + - - 39 + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT COUNT ( * ) * 72 * - CAST ( NULL AS REAL ) + - - 39 + 27 AS col2
----
NULL

query I rowsort
SELECT ALL + 79 * + 14 AS col1
----
1106

query I rowsort
SELECT + 67 + - + 26 + + + 72 + 49 * - 14
----
-573

query I rowsort
SELECT ALL 48 * ( 32 ) * 80 * - 52 + + ( 31 ) * - 30
----
-6390690

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

query II rowsort
SELECT DISTINCT 83 AS col2, 98
----
83
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3559
SELECT 7 * - - CAST( - + 69 AS SIGNED ) + + - NULLIF ( - 45, ( COUNT( + 48 ) ) ) DIV COUNT( * ) AS col0
----
-438

skipif mysql # not compatible
query I rowsort label-3559
SELECT 7 * - - CAST ( - + 69 AS INTEGER ) + + - NULLIF ( - 45, ( COUNT ( + 48 ) ) ) / COUNT ( * ) AS col0
----
-438

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT ALL ( + 44 ) DIV 66 * 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL ( + 44 ) / 66 * 95 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT + 32 DIV + 49 * + + 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3561
SELECT + 32 / + 49 * + + 18 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + COUNT( * ) + + 93 * + 34 * + NULLIF ( + - 65, + ( + 99 ) * + NULLIF ( - 82 * 30, COUNT( * ) * 86 + - COUNT( * ) ) ) AS col1
----
-205529

skipif mysql # not compatible
query I rowsort label-3562
SELECT + COUNT ( * ) + + 93 * + 34 * + NULLIF ( + - 65, + ( + 99 ) * + NULLIF ( - 82 * 30, COUNT ( * ) * 86 + - COUNT ( * ) ) ) AS col1
----
-205529

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

skipif mysql # not compatible
query I rowsort label-3563
SELECT COUNT ( - 42 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT - 14 + 61 + + - 53 DIV + ( + - ( - 54 ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3564
SELECT - 14 + 61 + + - 53 / + ( + - ( - 54 ) ) AS col1
----
47

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

skipif mysql # not compatible
query I rowsort label-3565
SELECT COUNT ( - 88 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT 54 + - NULLIF ( + 85, - - COUNT( DISTINCT - 14 ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT 54 + - NULLIF ( + 85, - - COUNT ( DISTINCT - 14 ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT ALL NULLIF ( + 10, + + 75 ) AS col1, 27 * + + 55 + COUNT( * )
----
10
1486

skipif mysql # not compatible
query II rowsort label-3568
SELECT ALL NULLIF ( + 10, + + 75 ) AS col1, 27 * + + 55 + COUNT ( * )
----
10
1486

query I rowsort
SELECT ALL + 17 * + 65
----
1105

query II rowsort
SELECT 95 AS col2, 60 AS col0
----
95
60

query I rowsort
SELECT + 42 * + + 48 * + 87 AS col0
----
175392

query II rowsort
SELECT - 31 col0, + 6
----
-31
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL + 96 - - COUNT( - 73 ) * - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL + 96 - - COUNT ( - 73 ) * - COUNT ( * )
----
95

query II rowsort
SELECT ALL 26, 77 col1
----
26
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT ALL 10 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL 10 / - 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3577
SELECT MIN( ( 35 ) ) * COUNT( * ) * 27 / + ( CAST( NULL AS SIGNED ) ) - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT MIN ( ( 35 ) ) * COUNT ( * ) * 27 / + ( CAST ( NULL AS INTEGER ) ) - 2
----
NULL

query I rowsort
SELECT 34 + 50
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT 65 * 70 * - COUNT( + 22 ) + + COALESCE ( 51, - 85, 7 )
----
-4499

skipif mysql # not compatible
query I rowsort label-3579
SELECT 65 * 70 * - COUNT ( + 22 ) + + COALESCE ( 51, - 85, 7 )
----
-4499

query I rowsort
SELECT DISTINCT - + 77 col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT + 50 + + + MIN( DISTINCT - 56 ) + + + 63 * - 16 * 82 col0
----
-82662

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT + 50 + + + MIN ( DISTINCT - 56 ) + + + 63 * - 16 * 82 col0
----
-82662

query I rowsort
SELECT 4 - - 57
----
61

query II rowsort
SELECT ALL - 91 AS col1, + 86
----
-91
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT COUNT( * ) * - + 73 * 96 AS col1
----
-7008

skipif mysql # not compatible
query I rowsort label-3584
SELECT COUNT ( * ) * - + 73 * 96 AS col1
----
-7008

query I rowsort
SELECT ALL + + 0 + + 11 + - - 87 * - 82
----
-7123

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

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL - MAX ( ALL 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT 88 - - + COUNT( * ) * + 80
----
168

skipif mysql # not compatible
query I rowsort label-3587
SELECT 88 - - + COUNT ( * ) * + 80
----
168

query II rowsort
SELECT + 77, + ( + 26 ) AS col2
----
77
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL + COUNT( * ) + - + COUNT( * ) * 10
----
-9

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * 10
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT 98 * - - MIN( DISTINCT 7 ) col1
----
686

skipif mysql # not compatible
query I rowsort label-3590
SELECT 98 * - - MIN ( DISTINCT 7 ) col1
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT COALESCE ( - 27, + + 19 ) * - COUNT( * ) * - + 86 AS col2
----
-2322

skipif mysql # not compatible
query I rowsort label-3591
SELECT COALESCE ( - 27, + + 19 ) * - COUNT ( * ) * - + 86 AS col2
----
-2322

query I rowsort
SELECT DISTINCT + ( 88 ) + 80
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL - MAX( ALL 58 ) + 14 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - MAX ( ALL 58 ) + 14 AS col0
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT + COUNT( * ) + 57 + + - 10 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT + COUNT ( * ) + 57 + + - 10 AS col0
----
48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT 67 AS col2, - SUM( - 11 ) + - 93 * - + 95
----
67
8846

skipif mysql # not compatible
query II rowsort label-3597
SELECT 67 AS col2, - SUM ( - 11 ) + - 93 * - + 95
----
67
8846

query I rowsort
SELECT 61 * ( + + 72 ) AS col2
----
4392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT 68 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT 68 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT COUNT( * ) + 70 + + + 20
----
91

skipif mysql # not compatible
query I rowsort label-3600
SELECT COUNT ( * ) + 70 + + + 20
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT - 67 AS col0, COUNT( * ) + - 22 AS col2
----
-67
-21

skipif mysql # not compatible
query II rowsort label-3601
SELECT - 67 AS col0, COUNT ( * ) + - 22 AS col2
----
-67
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT ALL 30 - CAST( + 11 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL 30 - CAST ( + 11 AS INTEGER ) AS col1
----
19

query I rowsort
SELECT 51 + - 87
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT COUNT( * ) + 49 + + 45 + 23 + SUM( DISTINCT - + 66 ) * + 46
----
-2918

skipif mysql # not compatible
query I rowsort label-3604
SELECT COUNT ( * ) + 49 + + 45 + 23 + SUM ( DISTINCT - + 66 ) * + 46
----
-2918

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL + 9 * ( - + COUNT( * ) ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL + 9 * ( - + COUNT ( * ) ) col2
----
-9

query I rowsort
SELECT + 24 + - 65 * 99 AS col2
----
-6411

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

query I rowsort
SELECT 70 + + + ( - 48 ) * + - 31
----
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT 88 * + + MAX( + - 79 )
----
-6952

skipif mysql # not compatible
query I rowsort label-3609
SELECT 88 * + + MAX ( + - 79 )
----
-6952

query I rowsort
SELECT - 60 + - + 42 AS col1
----
-102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3611
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS DECIMAL ) * ( - - 35 ) + NULLIF ( - - 89, COUNT( * ) ) + + ( 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS REAL ) * ( - - 35 ) + NULLIF ( - - 89, COUNT ( * ) ) + + ( 88 )
----
NULL

query II rowsort
SELECT ALL - - 44, 5 AS col0
----
44
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT + 83 * 19 DIV + 80 + 9 + + 36 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3613
SELECT + 83 * 19 / + 80 + 9 + + 36 AS col0
----
64

query II rowsort
SELECT DISTINCT - 98 AS col1, 19 AS col1
----
-98
19

query II rowsort
SELECT + 49 * + 66 * + + 76 + 67, NULLIF ( + - 67, 10 ) AS col1
----
245851
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 39 - - ( 21 ) + ( - 2 ) / + 87 * 93 * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 39 - - ( 21 ) + ( - 2 ) / + 87 * 93 * - 78
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT DISTINCT NULLIF ( + + 26, - 38 * + - 84 ) DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT NULLIF ( + + 26, - 38 * + - 84 ) / - 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3618
SELECT + 7 * - 84 AS col0, + COUNT( * ) * COUNT( * ) AS col2
----
-588
1

skipif mysql # not compatible
query II rowsort label-3618
SELECT + 7 * - 84 AS col0, + COUNT ( * ) * COUNT ( * ) AS col2
----
-588
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL - COUNT( * ) * - 63 * 27
----
1701

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - COUNT ( * ) * - 63 * 27
----
1701

query I rowsort
SELECT 98 + - 39 - + 95 * - 37
----
3574

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

skipif mysql # not compatible
query I rowsort label-3621
SELECT 43 / - 85 / + COUNT ( * ) - - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 34 * - + 98 + + 4 col1
----
3336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3623
SELECT ALL + COUNT( * ) + - NULLIF ( + 83, + CAST( NULL AS SIGNED ) )
----
-82

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + COUNT ( * ) + - NULLIF ( + 83, + CAST ( NULL AS INTEGER ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL 14 * MIN( - + 85 )
----
-1190

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL 14 * MIN ( - + 85 )
----
-1190

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

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

query I rowsort
SELECT ALL + 44 - - + 12 + - 81
----
-25

query I rowsort
SELECT 42 + + + 37 - + 69 AS col2
----
10

query I rowsort
SELECT ALL - 44 - - 61 + - 31 col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT 58 + 68 + - - COUNT( * ) * + ( 21 ) * COUNT( * ) * + 6 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT 58 + 68 + - - COUNT ( * ) * + ( 21 ) * COUNT ( * ) * + 6 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL COUNT( - 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL COUNT ( - 7 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + COUNT( * ) * 37 + 66 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-3631
SELECT + COUNT ( * ) * 37 + 66 AS col0
----
103

query I rowsort
SELECT + 24 + + 73
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT ALL - 82 * + - SUM( - - CASE - 84 WHEN - 73 * - 99 * - 50 DIV 35 + + 28 THEN NULL WHEN 84 THEN NULL ELSE - 73 DIV + ( - ( 13 ) * 94 ) END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - 82 * + - SUM ( - - CASE - 84 WHEN - 73 * - 99 * - 50 / 35 + + 28 THEN NULL WHEN 84 THEN NULL ELSE - 73 / + ( - ( 13 ) * 94 ) END ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - 36 * SUM( 43 ) * + + 70
----
-108360

skipif mysql # not compatible
query I rowsort label-3634
SELECT - 36 * SUM ( 43 ) * + + 70
----
-108360

query I rowsort
SELECT ALL 83 * + 84
----
6972

query I rowsort
SELECT ALL - + NULLIF ( - - 62, - NULLIF ( + 44, + 57 ) ) * - 8
----
496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT + COALESCE ( - + CAST( NULL AS SIGNED ), - 37 * - 92 - 67 + + COUNT( * ) )
----
3338

skipif mysql # not compatible
query I rowsort label-3637
SELECT + COALESCE ( - + CAST ( NULL AS INTEGER ), - 37 * - 92 - 67 + + COUNT ( * ) )
----
3338

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT - + COUNT( - 93 ) * 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - + COUNT ( - 93 ) * 21 AS col1
----
-21

query I rowsort
SELECT + + 24 * + 99 - 49
----
2327

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT DISTINCT - NULLIF ( - MAX( DISTINCT - + 40 ), + COUNT( * ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT - NULLIF ( - MAX ( DISTINCT - + 40 ), + COUNT ( * ) ) AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3642
SELECT - ( - COUNT( * ) ) col0, COUNT( + CAST( 36 AS SIGNED ) ) + - 3 + - - ( + CASE + 58 WHEN - CASE COALESCE ( 82, + 80 + 46 / 27 ) WHEN + 58 THEN NULL ELSE NULLIF ( - MAX( ALL + 56 ), + 90 + 99 ) END THEN 50 + - SUM( DISTINCT 88 + 83 * 71 ) ELSE NULL END )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3642
SELECT - ( - COUNT ( * ) ) col0, COUNT ( + CAST ( 36 AS INTEGER ) ) + - 3 + - - ( + CASE + 58 WHEN - CASE COALESCE ( 82, + 80 + 46 / 27 ) WHEN + 58 THEN NULL ELSE NULLIF ( - MAX ( ALL + 56 ), + 90 + 99 ) END THEN 50 + - SUM ( DISTINCT 88 + 83 * 71 ) ELSE NULL END )
----
1
NULL

query I rowsort
SELECT ALL - ( + 87 ) + + 93 AS col2
----
6

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

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

query I rowsort
SELECT + - 97 - 67 * 67 col1
----
-4586

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3647
SELECT ALL - CAST( + + 16 AS SIGNED ) DIV + 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - CAST ( + + 16 AS INTEGER ) / + 76 col0
----
0

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

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

query I rowsort
SELECT ALL 78 * + 33 AS col2
----
2574

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3650
SELECT ALL 17 * 98 AS col1, + 48 DIV + ( - COUNT( * ) ) AS col2
----
1666
-48

skipif mysql # not compatible
query II rowsort label-3650
SELECT ALL 17 * 98 AS col1, + 48 / + ( - COUNT ( * ) ) AS col2
----
1666
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT + 5 + - NULLIF ( 33, + 11 ) + ( - 43 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT + 5 + - NULLIF ( 33, + 11 ) + ( - 43 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 74 * + - 68 col2
----
-5032

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3654
SELECT 48 DIV + + 58 + + + COUNT( * ), + ( - - 84 ) AS col0
----
1
84

skipif mysql # not compatible
query II rowsort label-3654
SELECT 48 / + + 58 + + + COUNT ( * ), + ( - - 84 ) AS col0
----
1
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT ( + ( COUNT( * ) ) ), - 0 + 10 AS col1
----
1
10

skipif mysql # not compatible
query II rowsort label-3655
SELECT ( + ( COUNT ( * ) ) ), - 0 + 10 AS col1
----
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3656
SELECT ALL + 52, 26 + + CAST( - 58 AS SIGNED ) + COALESCE ( 93, + 81 + + 83 ) + + 2 * CAST( NULL AS SIGNED ) AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-3656
SELECT ALL + 52, 26 + + CAST ( - 58 AS INTEGER ) + COALESCE ( 93, + 81 + + 83 ) + + 2 * CAST ( NULL AS INTEGER ) AS col1
----
52
NULL

query I rowsort
SELECT DISTINCT + 19 * COALESCE ( + 8, - + 51 ) * + - 44 - 5 AS col0
----
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT + 85 * + + ( + COALESCE ( - SUM( - 25 ), - MAX( - 0 ) ) ) * + 17 col2
----
36125

skipif mysql # not compatible
query I rowsort label-3658
SELECT + 85 * + + ( + COALESCE ( - SUM ( - 25 ), - MAX ( - 0 ) ) ) * + 17 col2
----
36125

query II rowsort
SELECT ALL + 97 col1, - 46 AS col2
----
97
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + ( - + CASE + 22 WHEN + + COUNT( * ) * - 14 THEN NULL WHEN - + 71 THEN - 8 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT + ( - + CASE + 22 WHEN + + COUNT ( * ) * - 14 THEN NULL WHEN - + 71 THEN - 8 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 86 * - 55 - + COALESCE ( + + 20, - + 72 ) * + - 92 + - 68 + + - ( + 93 )
----
6409

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL 42 * 90 * - 59 - COUNT( * ) AS col1
----
-223021

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL 42 * 90 * - 59 - COUNT ( * ) AS col1
----
-223021

query I rowsort
SELECT ALL - 58 * - 22 AS col0
----
1276

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - 55 * SUM( DISTINCT 1 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3664
SELECT - 55 * SUM ( DISTINCT 1 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3665
SELECT ALL COUNT( + + 67 ) DIV + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL COUNT ( + + 67 ) / + 44 AS col2
----
0

query I rowsort
SELECT 49 * - 12 - - + 7 * 80 AS col0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3667
SELECT DISTINCT - 68 * + CASE 42 WHEN - 97 THEN NULL WHEN - 67 THEN NULL ELSE - + COUNT( * ) + + - 5 * - + ( + 7 ) DIV + 58 END * ( 14 DIV - COUNT( * ) + 1 )
----
-884

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT - 68 * + CASE 42 WHEN - 97 THEN NULL WHEN - 67 THEN NULL ELSE - + COUNT ( * ) + + - 5 * - + ( + 7 ) / + 58 END * ( 14 / - COUNT ( * ) + 1 )
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL 79 * - COUNT( * ) - - 15 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL 79 * - COUNT ( * ) - - 15 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT + 19 * 82 * - COUNT( * ) * + + 95 AS col0
----
-148010

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT + 36 DIV + 22 col2
----
1

skipif mysql # not compatible
query I rowsort label-3670
SELECT + 36 / + 22 col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT COUNT( * ), 28 * + 26 AS col0
----
1
728

skipif mysql # not compatible
query II rowsort label-3671
SELECT COUNT ( * ), 28 * + 26 AS col0
----
1
728

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3672
SELECT - COUNT( DISTINCT 47 ) DIV - 44 AS col1, - 16 + + 71 AS col0
----
0
55

skipif mysql # not compatible
query II rowsort label-3672
SELECT - COUNT ( DISTINCT 47 ) / - 44 AS col1, - 16 + + 71 AS col0
----
0
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT - CASE 3 WHEN - MAX( - + 99 ) * 77 THEN - - 78 END - - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT - CASE 3 WHEN - MAX ( - + 99 ) * 77 THEN - - 78 END - - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3674
SELECT ALL - 96 * + MAX( ALL - 70 ) AS col2, + 43 AS col2
----
6720
43

skipif mysql # not compatible
query II rowsort label-3674
SELECT ALL - 96 * + MAX ( ALL - 70 ) AS col2, + 43 AS col2
----
6720
43

query II rowsort
SELECT - 19 AS col0, 76
----
-19
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3676
SELECT ALL + COUNT( * ) + - 87 + + 21 * - - CASE WHEN 5 IS NOT NULL THEN CASE WHEN - CASE - COALESCE ( CAST( + 90 AS DECIMAL ), 10 * COUNT( * ) ) WHEN + 41 THEN - 51 WHEN 19 + 99 THEN + 60 WHEN - AVG ( ALL 22 ) THEN + 65 ELSE - 22 + - 14 END >= + 42 THEN + COALESCE ( ( 0 ), - COUNT( * ) ) END * + CAST( NULL AS SIGNED ) - + ( 71 ) ELSE COUNT( * ) + 82 END + + 25 * + 67 * SUM( DISTINCT 74 * CAST( 94 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + COUNT ( * ) + - 87 + + 21 * - - CASE WHEN 5 IS NOT NULL THEN CASE WHEN - CASE - COALESCE ( CAST ( + 90 AS REAL ), 10 * COUNT ( * ) ) WHEN + 41 THEN - 51 WHEN 19 + 99 THEN + 60 WHEN - AVG ( ALL 22 ) THEN + 65 ELSE - 22 + - 14 END >= + 42 THEN + COALESCE ( ( 0 ), - COUNT ( * ) ) END * + CAST ( NULL AS INTEGER ) - + ( 71 ) ELSE COUNT ( * ) + 82 END + + 25 * + 67 * SUM ( DISTINCT 74 * CAST ( 94 AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 54, + COALESCE ( + 33, 39 + + + 29 + + - 54 * 85, 74 ) ) + 26 * - NULLIF ( 70, 68 ) col2
----
-1766

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT + MAX( - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3678
SELECT + MAX ( - 20 ) AS col2
----
-20

query I rowsort
SELECT - COALESCE ( - 86, NULLIF ( - 25, + + 7 ), 57 ) * + + 57 * - 61
----
-299022

query I rowsort
SELECT - - 68 + + 53
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT - - 62 - - 30 + ( - + CAST( 52 AS SIGNED ) ) * - COUNT( * )
----
144

skipif mysql # not compatible
query I rowsort label-3681
SELECT - - 62 - - 30 + ( - + CAST ( 52 AS INTEGER ) ) * - COUNT ( * )
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT - + ( - ( - ( + COALESCE ( - 91, + - 92 * - - 39 ) ) ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT - + ( - ( - ( + COALESCE ( - 91, + - 92 * - - 39 ) ) ) ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - CASE + 31 WHEN - + 62 - + - 36 / 99 - - + 8 THEN + 7 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL - NULLIF ( 36, + + COUNT( * ) ) + - - 30
----
-6

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - NULLIF ( 36, + + COUNT ( * ) ) + - - 30
----
-6

query I rowsort
SELECT - 9 + 43 + + + 76 + - 37 * - 94
----
3588

query I rowsort
SELECT DISTINCT - ( - 38 ) * 51 AS col0
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT - 22 + 50 + - + NULLIF ( - 7, - COUNT( * ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-3687
SELECT - 22 + 50 + - + NULLIF ( - 7, - COUNT ( * ) ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - + MAX( + 12 ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-3688
SELECT - + MAX ( + 12 ) col0
----
-12

query I rowsort
SELECT ALL + - 94 * - - 78
----
-7332

query I rowsort
SELECT ALL - 71 + + 13 AS col1
----
-58

query II rowsort
SELECT - 13 col0, + ( - + ( + 70 ) )
----
-13
-70

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

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

query I rowsort
SELECT - - 49 + 13
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT + + CASE - 27 WHEN + - COUNT( * ) THEN 86 END + - + COUNT( ALL 63 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT + + CASE - 27 WHEN + - COUNT ( * ) THEN 86 END + - + COUNT ( ALL 63 ) col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT DISTINCT ( + 22 ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT ( + 22 ) / + 72
----
0

query I rowsort
SELECT DISTINCT + ( + 53 ) AS col2
----
53

query I rowsort
SELECT + 61 * - 50 AS col2
----
-3050

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3700
SELECT - 49 / + 71 * 42 / - + CASE - - NULLIF ( + + 30, + AVG ( + - CAST( 7 AS SIGNED ) ) * - 29 ) WHEN 97 * CAST( NULL AS DECIMAL ) THEN NULL WHEN 93 THEN + 1 / COUNT( * ) + 71 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT - 49 / + 71 * 42 / - + CASE - - NULLIF ( + + 30, + AVG ( + - CAST ( 7 AS INTEGER ) ) * - 29 ) WHEN 97 * CAST ( NULL AS REAL ) THEN NULL WHEN 93 THEN + 1 / COUNT ( * ) + 71 END * + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT 63 * - 97 - 15 AS col0
----
-6126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT MAX( ( 89 ) ) * COALESCE ( + 54, + + 16 ) * + CAST( - - 48 AS SIGNED ) * + - 42 AS col0
----
-9688896

skipif mysql # not compatible
query I rowsort label-3703
SELECT MAX ( ( 89 ) ) * COALESCE ( + 54, + + 16 ) * + CAST ( - - 48 AS INTEGER ) * + - 42 AS col0
----
-9688896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3704
SELECT 32 + - + CAST( NULL AS SIGNED ) AS col1, - 85 AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-3704
SELECT 32 + - + CAST ( NULL AS INTEGER ) AS col1, - 85 AS col0
----
NULL
-85

query I rowsort
SELECT DISTINCT 55 * - 27 * + 32
----
-47520

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT COUNT( + - 0 ) * - NULLIF ( 94, + COUNT( DISTINCT + - 77 ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3706
SELECT COUNT ( + - 0 ) * - NULLIF ( 94, + COUNT ( DISTINCT + - 77 ) ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT 67 + + COUNT( * ) * + 24 + 36 * COUNT( * ) * + + 17 * 27 * + - CAST( NULL AS SIGNED ) - - 70 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT 67 + + COUNT ( * ) * + 24 + 36 * COUNT ( * ) * + + 17 * 27 * + - CAST ( NULL AS INTEGER ) - - 70 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT 12 + + MIN( DISTINCT + + 51 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT 12 + + MIN ( DISTINCT + + 51 ) AS col1
----
63

query I rowsort
SELECT DISTINCT 65 + + 15 AS col1
----
80

query I rowsort
SELECT + 44 * + 73 AS col1
----
3212

query I rowsort
SELECT - - CASE 30 WHEN + - 70 THEN - 31 WHEN + 65 THEN + 75 ELSE NULL END * + ( - 9 ) * - 23 + 30 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT ALL CAST( - 12 AS SIGNED ) * 93
----
-1116

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL CAST ( - 12 AS INTEGER ) * 93
----
-1116

query I rowsort
SELECT ALL NULLIF ( - 13, - 84 ) AS col2
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT - MAX( DISTINCT + 81 ) * - COUNT( * ) - - 69 - 51 + 29 + 71 * - 2 * - 28 - + 25 AS col2
----
4079

skipif mysql # not compatible
query I rowsort label-3716
SELECT - MAX ( DISTINCT + 81 ) * - COUNT ( * ) - - 69 - 51 + 29 + 71 * - 2 * - 28 - + 25 AS col2
----
4079

query I rowsort
SELECT ALL 54 * + 39 col0
----
2106

query I rowsort
SELECT DISTINCT + + 21 + + 74 AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT CAST( + 13 AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3719
SELECT CAST ( + 13 AS INTEGER ) AS col2
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL + - 91 + 14 / 86 / - CASE - 5 WHEN - 91 THEN + COALESCE ( + - 79, + + COALESCE ( 13, - NULLIF ( 78, COUNT( * ) ) ) * 10 ) END + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL + - 91 + 14 / 86 / - CASE - 5 WHEN - 91 THEN + COALESCE ( + - 79, + + COALESCE ( 13, - NULLIF ( 78, COUNT ( * ) ) ) * 10 ) END + - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + COUNT( ALL 34 ) - - 90
----
91

skipif mysql # not compatible
query I rowsort label-3722
SELECT + COUNT ( ALL 34 ) - - 90
----
91

query I rowsort
SELECT ALL + 18 * - + 84
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT + COUNT( * ) - + - 42 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT + COUNT ( * ) - + - 42 AS col1
----
43

query I rowsort
SELECT 36 - 28 AS col1
----
8

query I rowsort
SELECT 42 * - + 31
----
-1302

query I rowsort
SELECT ALL + ( + 35 ) * - 80 AS col2
----
-2800

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT 26 + - + 6 + - 92 * - 44 * CASE 89 WHEN 75 THEN 56 DIV - 27 * - - 98 + NULLIF ( 91, 84 ) ELSE COALESCE ( 92, 87 * 28 ) END
----
372436

skipif mysql # not compatible
query I rowsort label-3728
SELECT 26 + - + 6 + - 92 * - 44 * CASE 89 WHEN 75 THEN 56 / - 27 * - - 98 + NULLIF ( 91, 84 ) ELSE COALESCE ( 92, 87 * 28 ) END
----
372436

onlyif mysql # aggregate syntax: 
query II rowsort label-3729
SELECT 32 * - ( + + 6 ) * - ( + 89 ) * + 99 AS col1, COUNT( * ) AS col2
----
1691712
1

skipif mysql # not compatible
query II rowsort label-3729
SELECT 32 * - ( + + 6 ) * - ( + 89 ) * + 99 AS col1, COUNT ( * ) AS col2
----
1691712
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT 31 DIV + 3 - + + 64 + - 95
----
-149

skipif mysql # not compatible
query I rowsort label-3730
SELECT 31 / + 3 - + + 64 + - 95
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3731
SELECT 22 DIV + COUNT( + COALESCE ( 55, + 55 ) ) + 6 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3731
SELECT 22 / + COUNT ( + COALESCE ( 55, + 55 ) ) + 6 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ( + MIN( - + 0 ) ) - - 85 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3732
SELECT ( + MIN ( - + 0 ) ) - - 85 AS col2
----
85

query I rowsort
SELECT ALL 7 + + - 38
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT DISTINCT - CAST( + 96 AS SIGNED ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT - CAST ( + 96 AS INTEGER ) AS col0
----
-96

query I rowsort
SELECT DISTINCT - 41 + - + 70
----
-111

query I rowsort
SELECT 70 + + - 18 * - ( - 16 ) col0
----
-218

query I rowsort
SELECT ALL - 23 + + 9
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT 60 * COUNT( * ) + MAX( DISTINCT 61 )
----
121

skipif mysql # not compatible
query I rowsort label-3738
SELECT 60 * COUNT ( * ) + MAX ( DISTINCT 61 )
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3739
SELECT DISTINCT + CAST( 24 AS SIGNED ) + - 8 col1, - 74 - - COUNT( * ) AS col1
----
16
-73

skipif mysql # not compatible
query II rowsort label-3739
SELECT DISTINCT + CAST ( 24 AS INTEGER ) + - 8 col1, - 74 - - COUNT ( * ) AS col1
----
16
-73

query I rowsort
SELECT DISTINCT + 29 * 60 AS col2
----
1740

query I rowsort
SELECT ALL 94 + - 51 + + 55 - 7 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3742
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COALESCE ( - + COUNT( * ), - ( 20 ) * 98 ) + 95 * COUNT( * ) col2, - MIN( + CASE 94 WHEN 48 THEN + 35 END ) + - 14
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3742
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COALESCE ( - + COUNT ( * ), - ( 20 ) * 98 ) + 95 * COUNT ( * ) col2, - MIN ( + CASE 94 WHEN 48 THEN + 35 END ) + - 14
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT ALL - 74 * - COALESCE ( - + 65, + + 0 ) - + + 91 + 90 * - CAST( NULL AS SIGNED ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL - 74 * - COALESCE ( - + 65, + + 0 ) - + + 91 + 90 * - CAST ( NULL AS INTEGER ) + - 4
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT ( + 32 ) + - 32 * + + COUNT( * ) + + + 76 DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT ( + 32 ) + - 32 * + + COUNT ( * ) + + + 76 / 92 AS col0
----
0

query I rowsort
SELECT - 44 + + - 39
----
-83

query I rowsort
SELECT 70 * - 6
----
-420

query I rowsort
SELECT ALL 83 * - 45 col1
----
-3735

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT - 80 * - + COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - 80 * - + COUNT ( * ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT 18 + + + COALESCE ( + COUNT( * ), - 2 + - + 27 ) * + + 77
----
95

skipif mysql # not compatible
query I rowsort label-3751
SELECT 18 + + + COALESCE ( + COUNT ( * ), - 2 + - + 27 ) * + + 77
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT - 41 - - 19 * + 17 * + - COUNT( * ) AS col0
----
-364

skipif mysql # not compatible
query I rowsort label-3752
SELECT - 41 - - 19 * + 17 * + - COUNT ( * ) AS col0
----
-364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3753
SELECT DISTINCT - CASE + COUNT( ALL - 89 ) WHEN - 92 THEN 14 WHEN + ( - - CASE CAST( - - 8 AS DECIMAL ) WHEN COALESCE ( + COUNT( * ), 6, + 21 + CAST( - COUNT( * ) AS SIGNED ) ) THEN + MAX( ALL 77 ) * - ( COALESCE ( 33, 90 + - 50, + 75 ) ) END ) THEN 72 * 46 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - CASE + COUNT ( ALL - 89 ) WHEN - 92 THEN 14 WHEN + ( - - CASE CAST ( - - 8 AS REAL ) WHEN COALESCE ( + COUNT ( * ), 6, + 21 + CAST ( - COUNT ( * ) AS INTEGER ) ) THEN + MAX ( ALL 77 ) * - ( COALESCE ( 33, 90 + - 50, + 75 ) ) END ) THEN 72 * 46 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3755
SELECT + 93 + 8 + + 33 * 97 + 61 + 65 DIV + CAST( - 28 AS SIGNED ) AS col0, COUNT( * ) * + 81 * 65
----
3361
5265

skipif mysql # not compatible
query II rowsort label-3755
SELECT + 93 + 8 + + 33 * 97 + 61 + 65 / + CAST ( - 28 AS INTEGER ) AS col0, COUNT ( * ) * + 81 * 65
----
3361
5265

query I rowsort
SELECT DISTINCT 68 * - NULLIF ( - ( - 3 ), ( + 98 ) ) - + 49 AS col2
----
-253

query I rowsort
SELECT 46 + - + 76 AS col0
----
-30

query I rowsort
SELECT + 44 + + 37 + 51 col2
----
132

query I rowsort
SELECT - ( + + 50 ) * + 23
----
-1150

query I rowsort
SELECT DISTINCT + 54 + 45 * + 83
----
3789

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

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

query I rowsort
SELECT COALESCE ( - - COALESCE ( - 57, - NULLIF ( + - 85, - 72 ) + + + 86 - 75 * COALESCE ( 39, 91, 86 - - 63 ) ), + 5 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL + CASE WHEN 24 IS NOT NULL THEN NULL WHEN ( NULL ) <= + + ( + 7 ) THEN + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL + CASE WHEN 24 IS NOT NULL THEN NULL WHEN ( NULL ) <= + + ( + 7 ) THEN + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT ALL NULLIF ( - - CAST( NULL AS SIGNED ), ( - MIN( + 44 ) ) * + MIN( ALL - - 95 ) / - 15 * - 96 + - 26 ) * - COUNT( * ) + - COUNT( * ) * + CAST( 31 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL NULLIF ( - - CAST ( NULL AS INTEGER ), ( - MIN ( + 44 ) ) * + MIN ( ALL - - 95 ) / - 15 * - 96 + - 26 ) * - COUNT ( * ) + - COUNT ( * ) * + CAST ( 31 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 15, - 85 - 86, + 33 + + - 96 )
----
-15

query I rowsort
SELECT + 97 * + - 34 * + 45 + - 58 AS col1
----
-148468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3767
SELECT ALL ( - + CASE 30 WHEN COUNT( * ) - - - MIN( ALL - CAST( NULL AS SIGNED ) ) THEN NULL WHEN COUNT( * ) + 14 THEN + + 32 END ) * 91 + + 34 + + 95 * NULLIF ( 28 * 20, 54 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL ( - + CASE 30 WHEN COUNT ( * ) - - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN COUNT ( * ) + 14 THEN + + 32 END ) * 91 + + 34 + + 95 * NULLIF ( 28 * 20, 54 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3768
SELECT - COALESCE ( - - 13, - 34 * + - COUNT( * ) - + - COALESCE ( - - 93, - - 58, - - 17 + - 19 ) + - 59, - ( + 14 ), COALESCE ( 30, - 0 ) + 32 ) DIV 88 + 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3768
SELECT - COALESCE ( - - 13, - 34 * + - COUNT ( * ) - + - COALESCE ( - - 93, - - 58, - - 17 + - 19 ) + - 59, - ( + 14 ), COALESCE ( 30, - 0 ) + 32 ) / 88 + 9 AS col2
----
9

query I rowsort
SELECT - 54 + 45 AS col1
----
-9

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

query I rowsort
SELECT ALL + NULLIF ( + 17, + 63 + - 98 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3772
SELECT + 36 + - 5 + + + 88 * + + 30 * - 37 DIV ( 37 ) AS col0
----
-2609

skipif mysql # not compatible
query I rowsort label-3772
SELECT + 36 + - 5 + + + 88 * + + 30 * - 37 / ( 37 ) AS col0
----
-2609

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL 65 * + 27 * - 51 * - - 42 * COUNT( * ) * - ( + - 68 ) * + COUNT( DISTINCT + - 2 ) + - 53 col2
----
-255626333

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL 65 * + 27 * - 51 * - - 42 * COUNT ( * ) * - ( + - 68 ) * + COUNT ( DISTINCT + - 2 ) + - 53 col2
----
-255626333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT - 71 * - + 34 + 70 * 32 * - 53 * - COALESCE ( - 6, + - 54 + CAST( + + 68 AS SIGNED ) - + - 71 * + 68 )
----
-709906

skipif mysql # not compatible
query I rowsort label-3775
SELECT - 71 * - + 34 + 70 * 32 * - 53 * - COALESCE ( - 6, + - 54 + CAST ( + + 68 AS INTEGER ) - + - 71 * + 68 )
----
-709906

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT - - NULLIF ( - COUNT( * ), - + 51 ) * - - 28
----
-28

skipif mysql # not compatible
query I rowsort label-3777
SELECT - - NULLIF ( - COUNT ( * ), - + 51 ) * - - 28
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT DISTINCT + 43, ( - 11 ) * - COUNT( * ) AS col1
----
43
11

skipif mysql # not compatible
query II rowsort label-3778
SELECT DISTINCT + 43, ( - 11 ) * - COUNT ( * ) AS col1
----
43
11

query II rowsort
SELECT ALL + 5, 68 - - 30 AS col2
----
5
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT - 15 * CASE + 48 WHEN + + 59 + + 72 THEN NULL WHEN - MAX( ALL 32 ) * - 53 * - 3 * 30 * 0 * + 25 + COUNT( * ) * - 26 THEN 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT - 15 * CASE + 48 WHEN + + 59 + + 72 THEN NULL WHEN - MAX ( ALL 32 ) * - 53 * - 3 * 30 * 0 * + 25 + COUNT ( * ) * - 26 THEN 29 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT - - 70 * + 2 + + CAST( + - 93 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3781
SELECT - - 70 * + 2 + + CAST ( + - 93 AS INTEGER ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT + 89 * - COUNT( * ) col1, + 50 + + 83 + 61
----
-89
194

skipif mysql # not compatible
query II rowsort label-3782
SELECT + 89 * - COUNT ( * ) col1, + 50 + + 83 + 61
----
-89
194

query I rowsort
SELECT ALL 72 * - + 76 AS col1
----
-5472

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

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

query I rowsort
SELECT + + 98 + - 43
----
55

query II rowsort
SELECT ALL 4 col0, 54 AS col0
----
4
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3787
SELECT - CAST( NULL AS SIGNED ) AS col2, + 64 * + ( + NULLIF ( - 89, - 36 ) ) AS col0
----
NULL
-5696

skipif mysql # not compatible
query II rowsort label-3787
SELECT - CAST ( NULL AS INTEGER ) AS col2, + 64 * + ( + NULLIF ( - 89, - 36 ) ) AS col0
----
NULL
-5696

query I rowsort
SELECT ALL COALESCE ( - 70, 65 * 51 + - 72 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL - COUNT( * ) * 97 * 20 AS col2
----
-1940

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - COUNT ( * ) * 97 * 20 AS col2
----
-1940

query I rowsort
SELECT ALL - ( ( 41 ) ) AS col1
----
-41

query II rowsort
SELECT DISTINCT 10, 91 * - 77 col1
----
10
-7007

query II rowsort
SELECT ALL - 53 AS col1, 0 AS col0
----
-53
0

query I rowsort
SELECT NULLIF ( + - 60, + ( + 0 ) ) col1
----
-60

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

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

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

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

query I rowsort
SELECT + 26 - 11 + + + ( - 40 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3797
SELECT - ( - + MIN( 31 ) ) AS col0, + SUM( + 47 )
----
31
47

skipif mysql # not compatible
query II rowsort label-3797
SELECT - ( - + MIN ( 31 ) ) AS col0, + SUM ( + 47 )
----
31
47

query I rowsort
SELECT DISTINCT 97 + + + 25 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT + 3 - - - CASE + + 81 WHEN - + 31 / + - ( - 85 ) THEN 3 / + 74 / 76 + + 86 + - + COUNT( ALL + + ( + 32 ) ) / + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT + 3 - - - CASE + + 81 WHEN - + 31 / + - ( - 85 ) THEN 3 / + 74 / 76 + + 86 + - + COUNT ( ALL + + ( + 32 ) ) / + 37 END
----
NULL

query I rowsort
SELECT - 26 + + + 81 * 34
----
2728

query II rowsort
SELECT DISTINCT 32 + - 88 AS col2, + 70 * + + 95 AS col2
----
-56
6650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT ALL AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT + 72 - 18 * - + 34 - CAST( 79 AS SIGNED ) - - CASE 97 WHEN + 93 + - 25 THEN - 23 WHEN + 17 * - ( 87 ) THEN NULL END * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT + 72 - 18 * - + 34 - CAST ( 79 AS INTEGER ) - - CASE 97 WHEN + 93 + - 25 THEN - 23 WHEN + 17 * - ( 87 ) THEN NULL END * - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL NULLIF ( + COUNT( * ), - 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL NULLIF ( + COUNT ( * ), - 44 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT 96 + - - SUM( - - ( + + NULLIF ( 70, + 97 * + 0 ) ) ) col2
----
166

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT 96 + - - SUM ( - - ( + + NULLIF ( 70, + 97 * + 0 ) ) ) col2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT - 78 + + 74 + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - 78 + + 74 + - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3807
SELECT ALL 31 + 15 AS col0, SUM( ALL - + 26 )
----
46
-26

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL 31 + 15 AS col0, SUM ( ALL - + 26 )
----
46
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3808
SELECT + SUM( DISTINCT + + ( 67 ) ) DIV 18
----
3

skipif mysql # not compatible
query I rowsort label-3808
SELECT + SUM ( DISTINCT + + ( 67 ) ) / 18
----
3

query I rowsort
SELECT + 13 + + 51 AS col2
----
64

query II rowsort
SELECT - 95 - + 4 AS col2, - 29
----
-99
-29

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

skipif mysql # not compatible
query II rowsort label-3811
SELECT CAST ( + + 20 AS INTEGER ), COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
20
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL 93 / 42 * + - 52 + - COUNT( * ) + + 26 - - MIN( ALL - - CASE 31 WHEN CAST( + 15 AS SIGNED ) THEN NULL WHEN - 32 THEN - 93 * ( 49 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL 93 / 42 * + - 52 + - COUNT ( * ) + + 26 - - MIN ( ALL - - CASE 31 WHEN CAST ( + 15 AS INTEGER ) THEN NULL WHEN - 32 THEN - 93 * ( 49 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL - COUNT( * ) * - 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - COUNT ( * ) * - 61 AS col0
----
61

query I rowsort
SELECT - 0 * - ( - 56 ) col0
----
0

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

query I rowsort
SELECT DISTINCT + COALESCE ( ( - - 17 ), + 77 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + 99 - - COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-3817
SELECT + 99 - - COUNT ( * )
----
100

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

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

query II rowsort
SELECT - 87 * - 12 + - 92 AS col0, - 17
----
952
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3820
SELECT ( - - 64 ), COUNT( * ) AS col2
----
64
1

skipif mysql # not compatible
query II rowsort label-3820
SELECT ( - - 64 ), COUNT ( * ) AS col2
----
64
1

query I rowsort
SELECT - + 58 * - 57
----
3306

query I rowsort
SELECT - 62 - - + 98 AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT DISTINCT 1 * + 72 DIV - 16
----
-4

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT 1 * + 72 / - 16
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3824
SELECT DISTINCT + - 42 DIV 25 * 54 AS col2, CASE 6 WHEN AVG ( + 73 ) * - - COUNT( * ) * + 45 THEN NULL WHEN - 15 THEN 59 ELSE NULL END * 74 DIV - 41 + 12 DIV COALESCE ( 21 * - COUNT( - 35 ), + 70 * 32 + + 74 ) AS col2
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-3824
SELECT DISTINCT + - 42 / 25 * 54 AS col2, CASE 6 WHEN AVG ( + 73 ) * - - COUNT ( * ) * + 45 THEN NULL WHEN - 15 THEN 59 ELSE NULL END * 74 / - 41 + 12 / COALESCE ( 21 * - COUNT ( - 35 ), + 70 * 32 + + 74 ) AS col2
----
-54
NULL

query I rowsort
SELECT - 89 + - - 10
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT - 28 + 92 + + 69 DIV - 55 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3826
SELECT - 28 + 92 + + 69 / - 55 AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT + 12 - + - NULLIF ( - + 10, + ( + 71 ) + + 22 - + COUNT( * ) + - 48 - - 22 ) + - - 52, 67 + - - 7 AS col1
----
54
74

skipif mysql # not compatible
query II rowsort label-3827
SELECT + 12 - + - NULLIF ( - + 10, + ( + 71 ) + + 22 - + COUNT ( * ) + - 48 - - 22 ) + - - 52, 67 + - - 7 AS col1
----
54
74

query I rowsort
SELECT 89 * + + 75 + - 30
----
6645

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT - 59 * 44 + + 87 * + - 89 * 21 * - 44 * + + COUNT( * )
----
7151936

skipif mysql # not compatible
query I rowsort label-3829
SELECT - 59 * 44 + + 87 * + - 89 * 21 * - 44 * + + COUNT ( * )
----
7151936

query I rowsort
SELECT 45 + + 24 + + 42 + 18 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL 91 + MIN( + 65 ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL 91 + MIN ( + 65 ) AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL - 63 * + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL - 63 * + COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT - 54 + 69 * NULLIF ( - 57, - COUNT( + 80 ) ) * - ( 29 )
----
114003

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT - 54 + 69 * NULLIF ( - 57, - COUNT ( + 80 ) ) * - ( 29 )
----
114003

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL 43 + + COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL 43 + + COUNT ( * ) AS col0
----
44

query I rowsort
SELECT ( - 30 ) + 78 AS col2
----
48

query I rowsort
SELECT CASE - 78 WHEN + 73 THEN - + 96 WHEN - + 32 THEN NULL END + + 90 AS col1
----
NULL

query I rowsort
SELECT 61 * - 43 AS col0
----
-2623

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT 67 + + - 33 - 34 * - - COUNT( ALL - 98 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3838
SELECT 67 + + - 33 - 34 * - - COUNT ( ALL - 98 ) AS col1
----
0

query I rowsort
SELECT DISTINCT 42 - 71 AS col1
----
-29

query I rowsort
SELECT ALL 89 * - 44
----
-3916

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL 82 * - ( SUM( - 25 ) ) AS col2
----
2050

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL 82 * - ( SUM ( - 25 ) ) AS col2
----
2050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT ALL 4 * + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL 4 * + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 50 * - + 39
----
1950

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT + + 15 DIV - 35 + + 59
----
59

skipif mysql # not compatible
query I rowsort label-3844
SELECT + + 15 / - 35 + + 59
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3845
SELECT + 71 DIV COUNT( * ) DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT + 71 / COUNT ( * ) / 81
----
0

query I rowsort
SELECT - 80 + 5 + + + 6
----
-69

query I rowsort
SELECT 45 * 20 + 94 AS col1
----
994

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT NULLIF ( - SUM( 22 ), - + 23 )
----
-22

skipif mysql # not compatible
query I rowsort label-3848
SELECT NULLIF ( - SUM ( 22 ), - + 23 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3849
SELECT ALL - 14, + 33 * - COUNT( * ) AS col1
----
-14
-33

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL - 14, + 33 * - COUNT ( * ) AS col1
----
-14
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3850
SELECT DISTINCT - + 11, + NULLIF ( - 3, - 36 * - 94 * + 45 + - CAST( NULL AS SIGNED ) ) AS col1
----
-11
-3

skipif mysql # not compatible
query II rowsort label-3850
SELECT DISTINCT - + 11, + NULLIF ( - 3, - 36 * - 94 * + 45 + - CAST ( NULL AS INTEGER ) ) AS col1
----
-11
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT ALL - 1 * + + COUNT( 41 ) + 35 * + CAST( + 65 AS SIGNED ) * + - 47 * - CASE CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) + 82 THEN NULL WHEN 97 THEN + 91 END - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - 1 * + + COUNT ( 41 ) + 35 * + CAST ( + 65 AS INTEGER ) * + - 47 * - CASE CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) + 82 THEN NULL WHEN 97 THEN + 91 END - + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT + 74 + - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + 74 + - - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT COUNT( * ) * - 37 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3853
SELECT COUNT ( * ) * - 37 AS col1
----
-37

query I rowsort
SELECT + + 21 * - 83 + + 36 + 55 * - 18 * 50 * - 98 + + - 69
----
4849224

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT + COUNT( * ) + - + 49 + - COALESCE ( + 39, - 37 + + 52 - + 27 + + COUNT( * ) + + + 42 + - 81 ) + + + 98
----
11

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT + COUNT ( * ) + - + 49 + - COALESCE ( + 39, - 37 + + 52 - + 27 + + COUNT ( * ) + + + 42 + - 81 ) + + + 98
----
11

query I rowsort
SELECT ALL - COALESCE ( + 13, + + 83 ) + NULLIF ( + + 7, - - ( - 40 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT + 53 / + CASE + 44 WHEN - 12 THEN - MAX( 73 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT + 53 / + CASE + 44 WHEN - 12 THEN - MAX ( 73 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT DISTINCT + 95 DIV - + 46 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + 95 / - + 46 AS col1
----
-2

query I rowsort
SELECT DISTINCT + 22 + 47
----
69

query I rowsort
SELECT ALL + 77 + - 59
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT 71 DIV + 80 * - + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT 71 / + 80 * - + 24 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL + 5 + COUNT( ALL + + ( + 93 ) ) * - + 41 + - 93 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL + 5 + COUNT ( ALL + + ( + 93 ) ) * - + 41 + - 93 AS col0
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3863
SELECT CASE + - CAST( + - 13 AS SIGNED ) WHEN - - 20 THEN NULL WHEN - COUNT( * ) + CASE 50 WHEN - + CAST( NULL AS SIGNED ) THEN 12 WHEN + COUNT( ( 35 ) ) THEN + 70 END THEN NULL WHEN 53 THEN - 34 WHEN - SUM( + 7 ) * COUNT( * ) THEN NULL END * 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT CASE + - CAST ( + - 13 AS INTEGER ) WHEN - - 20 THEN NULL WHEN - COUNT ( * ) + CASE 50 WHEN - + CAST ( NULL AS INTEGER ) THEN 12 WHEN + COUNT ( ( 35 ) ) THEN + 70 END THEN NULL WHEN 53 THEN - 34 WHEN - SUM ( + 7 ) * COUNT ( * ) THEN NULL END * 33 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT 70 + + 65 DIV + - 90
----
70

skipif mysql # not compatible
query I rowsort label-3864
SELECT 70 + + 65 / + - 90
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT + 15 * COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT + 15 * COUNT ( * ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3866
SELECT DISTINCT - 60 - + + 27 DIV - 22 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT - 60 - + + 27 / - 22 AS col1
----
-59

query II rowsort
SELECT ALL + 6 * + 87, 7 col2
----
522
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3868
SELECT 5 - 62, + ( - 27 ) + ( + CASE - 66 WHEN - 59 THEN + 64 * - - 63 + + - SUM( ALL + + 37 ) + - COUNT( * ) WHEN - 64 THEN COUNT( * ) * 33 ELSE - 87 + - 90 END ) AS col0
----
-57
-204

skipif mysql # not compatible
query II rowsort label-3868
SELECT 5 - 62, + ( - 27 ) + ( + CASE - 66 WHEN - 59 THEN + 64 * - - 63 + + - SUM ( ALL + + 37 ) + - COUNT ( * ) WHEN - 64 THEN COUNT ( * ) * 33 ELSE - 87 + - 90 END ) AS col0
----
-57
-204

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT DISTINCT MIN( - 3 ) col2, 72
----
-3
72

skipif mysql # not compatible
query II rowsort label-3869
SELECT DISTINCT MIN ( - 3 ) col2, 72
----
-3
72

query I rowsort
SELECT 13 * - 64 AS col1
----
-832

query I rowsort
SELECT + 85 + ( - + 24 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3872
SELECT + MIN( DISTINCT - - 98 ) AS col2, - 89
----
98
-89

skipif mysql # not compatible
query II rowsort label-3872
SELECT + MIN ( DISTINCT - - 98 ) AS col2, - 89
----
98
-89

query I rowsort
SELECT + 69 - - NULLIF ( 44, - 23 ) - + 78
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL 38 * - 50 - + COUNT( * ) + + + 92 AS col0
----
-1809

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL 38 * - 50 - + COUNT ( * ) + + + 92 AS col0
----
-1809

query I rowsort
SELECT 93 * 96 * - 69 AS col2
----
-616032

onlyif mysql # DIV for integer division: 
query I rowsort label-3876
SELECT ALL + - ( 5 ) DIV - + ( + + 17 ) - 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + - ( 5 ) / - + ( + + 17 ) - 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT - 64 * + COALESCE ( COUNT( * ), - 35 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT - 64 * + COALESCE ( COUNT ( * ), - 35 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL + - 66 * + + CASE + 14 WHEN 91 THEN NULL WHEN - 93 THEN 53 * 46 END / + SUM( DISTINCT - 18 ) - 5 + + + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL + - 66 * + + CASE + 14 WHEN 91 THEN NULL WHEN - 93 THEN 53 * 46 END / + SUM ( DISTINCT - 18 ) - 5 + + + 35 AS col0
----
NULL

query I rowsort
SELECT + 44 * 26
----
1144

query I rowsort
SELECT DISTINCT + 24 * 95 + + 18
----
2298

query I rowsort
SELECT + 97 + 46
----
143

query II rowsort
SELECT + ( + 35 ), + 16 col1
----
35
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3884
SELECT ALL - 81 * + 42 + - 75 * CASE - + CASE 92 WHEN 26 THEN - + 6 WHEN - 41 / - CAST( NULL AS SIGNED ) + - - 43 + 34 THEN - + 56 * 50 / CASE + 26 WHEN 7 * + CAST( NULLIF ( + 36, 7 ) AS DECIMAL ) THEN NULL WHEN 15 THEN + 54 END WHEN + 8 THEN NULL END WHEN - 89 THEN NULL WHEN 10 THEN 17 END + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL - 81 * + 42 + - 75 * CASE - + CASE 92 WHEN 26 THEN - + 6 WHEN - 41 / - CAST ( NULL AS INTEGER ) + - - 43 + 34 THEN - + 56 * 50 / CASE + 26 WHEN 7 * + CAST ( NULLIF ( + 36, 7 ) AS REAL ) THEN NULL WHEN 15 THEN + 54 END WHEN + 8 THEN NULL END WHEN - 89 THEN NULL WHEN 10 THEN 17 END + 99 AS col1
----
NULL

query I rowsort
SELECT 64 * 18 + - + 88
----
1064

query I rowsort
SELECT + 80 * - 36 AS col0
----
-2880

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT ALL 50 DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL 50 / - 54 AS col0
----
0

query II rowsort
SELECT + 24 + + 73, 93 AS col0
----
97
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT ALL NULLIF ( COUNT( * ), + + 32 ) * + 46 + - - NULLIF ( + + 83, 63 ) col0, 0 + - 96 + + ( - 8 ) * + + 63 col2
----
129
-600

skipif mysql # not compatible
query II rowsort label-3889
SELECT ALL NULLIF ( COUNT ( * ), + + 32 ) * + 46 + - - NULLIF ( + + 83, 63 ) col0, 0 + - 96 + + ( - 8 ) * + + 63 col2
----
129
-600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT + 38 + - CAST( + + 9 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-3890
SELECT + 38 + - CAST ( + + 9 AS INTEGER )
----
29

query II rowsort
SELECT ALL 7 + - 41 AS col2, 82 * 55 AS col1
----
-34
4510

query I rowsort
SELECT DISTINCT 12 + - 16 + 90 * ( + - 5 ) + 36 AS col1
----
-418

query I rowsort
SELECT ALL + 9 + 26 + - 24 + + 28 * - 0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT COUNT( * ) * - 71 + 98 - 48 * + + 73 * 85
----
-297813

skipif mysql # not compatible
query I rowsort label-3894
SELECT COUNT ( * ) * - 71 + 98 - 48 * + + 73 * 85
----
-297813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT - ( + - AVG ( ALL - - CAST( NULL AS SIGNED ) ) ) + + - 2 * + 74 * + + 14 + - 76 * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT - ( + - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) ) + + - 2 * + 74 * + + 14 + - 76 * 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL 32 - + NULLIF ( - COUNT( * ), 0 ) col0
----
33

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL 32 - + NULLIF ( - COUNT ( * ), 0 ) col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT + COUNT( * ) + 16
----
17

skipif mysql # not compatible
query I rowsort label-3897
SELECT + COUNT ( * ) + 16
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT - ( + 40 ) * 9 * + 45 * + MIN( + - NULLIF ( 40, - 33 ) )
----
648000

skipif mysql # not compatible
query I rowsort label-3898
SELECT - ( + 40 ) * 9 * + 45 * + MIN ( + - NULLIF ( 40, - 33 ) )
----
648000

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - COUNT( * ) - - + 15
----
14

skipif mysql # not compatible
query I rowsort label-3899
SELECT - COUNT ( * ) - - + 15
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT - ( - - NULLIF ( - 49, + COUNT( * ) ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3900
SELECT - ( - - NULLIF ( - 49, + COUNT ( * ) ) ) AS col2
----
49

query I rowsort
SELECT + ( - - 86 ) + - 21 * - 37
----
863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT - 96 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT - 96 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL MIN( 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL MIN ( 84 )
----
84

query I rowsort
SELECT ALL 13 * - 97
----
-1261

query I rowsort
SELECT ALL COALESCE ( - 18, 60, + - ( - - 69 ) )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3906
SELECT ALL + COUNT( * ) DIV - - 4 * + - 13, - 44 AS col0
----
0
-44

skipif mysql # not compatible
query II rowsort label-3906
SELECT ALL + COUNT ( * ) / - - 4 * + - 13, - 44 AS col0
----
0
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT MAX( + - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT MAX ( + - 6 )
----
-6

query I rowsort
SELECT - 36 + - - 35 col2
----
-1

query I rowsort
SELECT ALL ( - ( - - 88 ) ) AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT - 30 DIV - - 8
----
-3

skipif mysql # not compatible
query I rowsort label-3910
SELECT - 30 / - - 8
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT - COUNT( * ) * - + 27
----
27

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - COUNT ( * ) * - + 27
----
27

query I rowsort
SELECT ALL + 1 * + 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - 79 + + COALESCE ( - 34, - 34 ) - - COUNT( * ) * + 91
----
-22

skipif mysql # not compatible
query I rowsort label-3913
SELECT - 79 + + COALESCE ( - 34, - 34 ) - - COUNT ( * ) * + 91
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3914
SELECT + ( + - 66 ) + - 6, - COUNT( * ) AS col2
----
-72
-1

skipif mysql # not compatible
query II rowsort label-3914
SELECT + ( + - 66 ) + - 6, - COUNT ( * ) AS col2
----
-72
-1

query I rowsort
SELECT DISTINCT + 68 * + 15
----
1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3916
SELECT DISTINCT + COALESCE ( - COUNT( * ), COUNT( * ), - - 35 - SUM( ALL - CAST( 51 AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + COALESCE ( - COUNT ( * ), COUNT ( * ), - - 35 - SUM ( ALL - CAST ( 51 AS INTEGER ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT DISTINCT - - 35 / - COALESCE ( + 25, + 27 ) + + ( + ( + 57 ) ) + 57 * + + MIN( - - 64 ) / + CAST( NULL AS SIGNED ) * 20 + - - 65 + + + 45 + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - - 35 / - COALESCE ( + 25, + 27 ) + + ( + ( + 57 ) ) + 57 * + + MIN ( - - 64 ) / + CAST ( NULL AS INTEGER ) * 20 + - - 65 + + + 45 + - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT + - NULLIF ( 20, 92 + COALESCE ( + + COUNT( * ), - 64, + 7 / - - COUNT( * ) ) + - - 47 * - - 85 )
----
-20

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + - NULLIF ( 20, 92 + COALESCE ( + + COUNT ( * ), - 64, + 7 / - - COUNT ( * ) ) + - - 47 * - - 85 )
----
-20

query II rowsort
SELECT - 40 AS col2, + 80
----
-40
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3920
SELECT - ( SUM( 6 ) ) DIV + 47 * + 91 + - - 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3920
SELECT - ( SUM ( 6 ) ) / + 47 * + 91 + - - 34 AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3921
SELECT - 8 DIV 98 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3921
SELECT - 8 / 98 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + - COUNT( * ) + - + 27 + - SUM( + 37 )
----
-65

skipif mysql # not compatible
query I rowsort label-3922
SELECT + - COUNT ( * ) + - + 27 + - SUM ( + 37 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT + - MAX( - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-3923
SELECT + - MAX ( - 70 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT ALL - ( COUNT( * ) ) * COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - ( COUNT ( * ) ) * COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT + - 53 + - 30 DIV - 44 col2
----
-53

skipif mysql # not compatible
query I rowsort label-3925
SELECT + - 53 + - 30 / - 44 col2
----
-53

query I rowsort
SELECT ALL + + ( + 88 )
----
88

query I rowsort
SELECT DISTINCT 23 * - 24 AS col1
----
-552

query II rowsort
SELECT ALL + 42 AS col0, + 85 AS col2
----
42
85

query I rowsort
SELECT - 20 * + 95
----
-1900

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT - 38 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT - 38 / + 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3931
SELECT + 44 * - 10 * 51 * - + ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT + 44 * - 10 * 51 * - + ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT + 46 * - 63 + 8 * + 61 + - - SUM( DISTINCT - NULLIF ( 12, + 22 ) )
----
-2422

skipif mysql # not compatible
query I rowsort label-3932
SELECT + 46 * - 63 + 8 * + 61 + - - SUM ( DISTINCT - NULLIF ( 12, + 22 ) )
----
-2422

query I rowsort
SELECT - 96 + - 18 * - 59 AS col0
----
966

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT + 8 DIV ( + 59 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3934
SELECT + 8 / ( + 59 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT + CAST( - + 94 AS SIGNED ) * - - 53 AS col1
----
-4982

skipif mysql # not compatible
query I rowsort label-3935
SELECT + CAST ( - + 94 AS INTEGER ) * - - 53 AS col1
----
-4982

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT MIN( DISTINCT - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3936
SELECT MIN ( DISTINCT - 37 ) AS col2
----
-37

query II rowsort
SELECT ALL 43, + COALESCE ( + 28, - 42 ) col1
----
43
28

query I rowsort
SELECT 70 * - 7 * + 94 + + 55 AS col0
----
-46005

query II rowsort
SELECT DISTINCT 46, + 84 * 22 AS col0
----
46
1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT + CAST( NULL AS SIGNED ) * + + ( + CAST( 61 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT + CAST ( NULL AS INTEGER ) * + + ( + CAST ( 61 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3941
SELECT - 54 * - COUNT( * ), 91 + 52 DIV 44 AS col0
----
54
92

skipif mysql # not compatible
query II rowsort label-3941
SELECT - 54 * - COUNT ( * ), 91 + 52 / 44 AS col0
----
54
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3942
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1, 75 AS col0
----
-1
75

skipif mysql # not compatible
query II rowsort label-3942
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1, 75 AS col0
----
-1
75

query I rowsort
SELECT ALL - 43 * - - 81 AS col0
----
-3483

query I rowsort
SELECT + 18 * 44 * + + 47
----
37224

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT SUM( - 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3945
SELECT SUM ( - 69 ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT - 99 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT - 99 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 0 - - 70
----
70

query I rowsort
SELECT DISTINCT + ( COALESCE ( - + 25, - 55 ) ) + + 33 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT ALL + CAST( CAST( + AVG ( ALL - 80 ) AS SIGNED ) AS SIGNED ) + 18 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + CAST ( CAST ( + AVG ( ALL - 80 ) AS INTEGER ) AS INTEGER ) + 18 AS col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT ALL - - 33 + + 74 DIV - 50
----
32

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL - - 33 + + 74 / - 50
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + MIN( - + 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3951
SELECT + MIN ( - + 18 ) AS col0
----
-18

query I rowsort
SELECT 32 * - 10 AS col2
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT - COALESCE ( + 66, + + MAX( DISTINCT + 16 ) * CASE 83 WHEN + 62 THEN 96 WHEN 46 + - + 61 + + MAX( + + 56 ) THEN NULL WHEN - + 40 * 44 * 67 + 51 + - 15 * 14 THEN NULL END - 84 )
----
-66

skipif mysql # not compatible
query I rowsort label-3953
SELECT - COALESCE ( + 66, + + MAX ( DISTINCT + 16 ) * CASE 83 WHEN + 62 THEN 96 WHEN 46 + - + 61 + + MAX ( + + 56 ) THEN NULL WHEN - + 40 * 44 * 67 + 51 + - 15 * 14 THEN NULL END - 84 )
----
-66

query I rowsort
SELECT ALL - - 58 * + + 72 + + - 65
----
4111

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT + + 96 + + + CASE - 34 WHEN + ( + + NULLIF ( + + 98, - - COALESCE ( - 31, + MIN( ALL - 89 ) + - 78 * - - 83, 12 * + 73 ) * 67 - - 14 + - ( 15 - 2 ) ) ) * + 12 THEN - ( - COUNT( * ) ) - - ( 13 + 79 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + + 96 + + + CASE - 34 WHEN + ( + + NULLIF ( + + 98, - - COALESCE ( - 31, + MIN ( ALL - 89 ) + - 78 * - - 83, 12 * + 73 ) * 67 - - 14 + - ( 15 - 2 ) ) ) * + 12 THEN - ( - COUNT ( * ) ) - - ( 13 + 79 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3956
SELECT + COUNT( ALL - 92 ) - + CAST( NULL AS SIGNED ) + + ( - 88 ) * + COUNT( * ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT + COUNT ( ALL - 92 ) - + CAST ( NULL AS INTEGER ) + + ( - 88 ) * + COUNT ( * ) * + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT - COUNT( * ) * - + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3957
SELECT - COUNT ( * ) * - + 57 AS col0
----
57

query I rowsort
SELECT DISTINCT - + COALESCE ( + 59, + 25 ) * + 70 AS col0
----
-4130

query I rowsort
SELECT ALL - + 54 - 22 + 42 col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT - 82 + - - COUNT( * ) * - 54 * + 63 * - - 42 AS col0
----
-142966

skipif mysql # not compatible
query I rowsort label-3960
SELECT - 82 + - - COUNT ( * ) * - 54 * + 63 * - - 42 AS col0
----
-142966

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3961
SELECT + 92 AS col2, - 2 col1, 51 - - - 7 + + + NULLIF ( + 58, + 5 + - 98 + - - 93 ) DIV CAST( - - COALESCE ( + 44, - 68 + + 81 + - 31 ) AS SIGNED )
----
92
-2
45

skipif mysql # not compatible
query III rowsort label-3961
SELECT + 92 AS col2, - 2 col1, 51 - - - 7 + + + NULLIF ( + 58, + 5 + - 98 + - - 93 ) / CAST ( - - COALESCE ( + 44, - 68 + + 81 + - 31 ) AS INTEGER )
----
92
-2
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3962
SELECT DISTINCT - ( - 29 ) AS col2, CAST( + 30 AS SIGNED ) AS col1
----
29
30

skipif mysql # not compatible
query II rowsort label-3962
SELECT DISTINCT - ( - 29 ) AS col2, CAST ( + 30 AS INTEGER ) AS col1
----
29
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT 46 * + - ( + + 29 ) + - 87 + COUNT( + + 43 ) AS col1
----
-1420

skipif mysql # not compatible
query I rowsort label-3963
SELECT 46 * + - ( + + 29 ) + - 87 + COUNT ( + + 43 ) AS col1
----
-1420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT 70 + - COUNT( * ) + - 14 DIV 9 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3964
SELECT 70 + - COUNT ( * ) + - 14 / 9 AS col2
----
68

query I rowsort
SELECT 86 + - 43 AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT + COUNT( * ) * + 44 DIV + + SUM( + 5 ) + 65 - - 78 * 29
----
2335

skipif mysql # not compatible
query I rowsort label-3966
SELECT + COUNT ( * ) * + 44 / + + SUM ( + 5 ) + 65 - - 78 * 29
----
2335

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT - 56 * + - MIN( ALL - - 61 ) AS col1
----
3416

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT - 56 * + - MIN ( ALL - - 61 ) AS col1
----
3416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3968
SELECT 83 * + 13 + - 26 + - 25 * - COALESCE ( + MAX( ALL + 40 ), CAST( NULL AS SIGNED ), 32 ) + + 1 * + + MIN( ALL + COALESCE ( - 18, + + 87 DIV - 80 ) ) * + - 6 + - 41 - SUM( DISTINCT 96 ) * 91
----
-6616

skipif mysql # not compatible
query I rowsort label-3968
SELECT 83 * + 13 + - 26 + - 25 * - COALESCE ( + MAX ( ALL + 40 ), CAST ( NULL AS INTEGER ), 32 ) + + 1 * + + MIN ( ALL + COALESCE ( - 18, + + 87 / - 80 ) ) * + - 6 + - 41 - SUM ( DISTINCT 96 ) * 91
----
-6616

query I rowsort
SELECT ALL - 47 * - ( + - 42 )
----
-1974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3970
SELECT COUNT( * ) DIV + 3 * - - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3970
SELECT COUNT ( * ) / + 3 * - - 19 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3971
SELECT ( + COUNT( * ) ) + 3 + + COALESCE ( 11, - 50 DIV 42 - 12 ), + 1 AS col0
----
15
1

skipif mysql # not compatible
query II rowsort label-3971
SELECT ( + COUNT ( * ) ) + 3 + + COALESCE ( 11, - 50 / 42 - 12 ), + 1 AS col0
----
15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT MAX( + - ( 84 ) ) + - ( ( - 21 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-3972
SELECT MAX ( + - ( 84 ) ) + - ( ( - 21 ) )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT 95 + - + 83, NULLIF ( - COUNT( * ), + 65 * - - 12 ) * - 58 - + + 34 + MAX( ALL 39 ) AS col1
----
12
63

skipif mysql # not compatible
query II rowsort label-3973
SELECT 95 + - + 83, NULLIF ( - COUNT ( * ), + 65 * - - 12 ) * - 58 - + + 34 + MAX ( ALL 39 ) AS col1
----
12
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT COUNT( * ) DIV + 34 * - - COALESCE ( + + 7, - 54 DIV - MIN( ALL + 77 ) - 72 + 93 * + 83 )
----
0

skipif mysql # not compatible
query I rowsort label-3974
SELECT COUNT ( * ) / + 34 * - - COALESCE ( + + 7, - 54 / - MIN ( ALL + 77 ) - 72 + 93 * + 83 )
----
0

query I rowsort
SELECT 5 + + 8 + 73 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT 40 + - 69 DIV + 45 + + MIN( + 52 )
----
91

skipif mysql # not compatible
query I rowsort label-3976
SELECT 40 + - 69 / + 45 + + MIN ( + 52 )
----
91

query I rowsort
SELECT DISTINCT 6 + - ( + 57 )
----
-51

query I rowsort
SELECT DISTINCT + 40 + - 91 AS col2
----
-51

query I rowsort
SELECT - 88 + + - 49 + + - 62 * 76
----
-4849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3980
SELECT ALL - 18 * - + CASE + 89 WHEN - - CASE - 57 WHEN COUNT( * ) * + - 48 + + AVG ( DISTINCT 65 ) - 49 THEN - 97 + 16 ELSE NULL END - - COUNT( DISTINCT - + 10 ) + + 44 - - + 6 + - 77 + + 92 THEN 52 * - 5 + CAST( NULL AS SIGNED ) * 50 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL - 18 * - + CASE + 89 WHEN - - CASE - 57 WHEN COUNT ( * ) * + - 48 + + AVG ( DISTINCT 65 ) - 49 THEN - 97 + 16 ELSE NULL END - - COUNT ( DISTINCT - + 10 ) + + 44 - - + 6 + - 77 + + 92 THEN 52 * - 5 + CAST ( NULL AS INTEGER ) * 50 WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT + 97 * CASE - 90 WHEN 41 THEN NULL WHEN - ( + - 84 ) * + 6 + 34 THEN + - COUNT( * ) WHEN 65 THEN NULL END * - 8 - - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT + 97 * CASE - 90 WHEN 41 THEN NULL WHEN - ( + - 84 ) * + 6 + 34 THEN + - COUNT ( * ) WHEN 65 THEN NULL END * - 8 - - 87 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT DISTINCT + COALESCE ( - 99, + 32 * + 63 / + - CASE - - 86 WHEN - + ( - 34 ) THEN NULL WHEN - - 69 * CAST( NULL AS SIGNED ) THEN + + 97 END ) + CAST( NULL AS SIGNED ) / - + 48 + - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT + COALESCE ( - 99, + 32 * + 63 / + - CASE - - 86 WHEN - + ( - 34 ) THEN NULL WHEN - - 69 * CAST ( NULL AS INTEGER ) THEN + + 97 END ) + CAST ( NULL AS INTEGER ) / - + 48 + - + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL 85 + - - CASE - MAX( ALL 23 ) WHEN - 62 * - + NULLIF ( 18, + + 14 ) THEN + + 73 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL 85 + - - CASE - MAX ( ALL 23 ) WHEN - 62 * - + NULLIF ( 18, + + 14 ) THEN + + 73 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3984
SELECT + 63 + - COUNT( * ) + COUNT( * ) * 99 * - NULLIF ( - - MAX( + + 40 ), + 67 ) * + - COUNT( * ) * + 40 + + - 16 * - + 79 + - 65 DIV - 43 col0
----
159727

skipif mysql # not compatible
query I rowsort label-3984
SELECT + 63 + - COUNT ( * ) + COUNT ( * ) * 99 * - NULLIF ( - - MAX ( + + 40 ), + 67 ) * + - COUNT ( * ) * + 40 + + - 16 * - + 79 + - 65 / - 43 col0
----
159727

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT 47 + CAST( + 0 AS SIGNED ) * - 99 * - 72 * 5 col2
----
47

skipif mysql # not compatible
query I rowsort label-3985
SELECT 47 + CAST ( + 0 AS INTEGER ) * - 99 * - 72 * 5 col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL + 66 - - + 19 - 44 + - 4 * - 70 * 1 * - - COUNT( * ) * COALESCE ( - 84, 92 ) * + + 18 - + ( - 65 ) + COUNT( * )
----
-423253

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + 66 - - + 19 - 44 + - 4 * - 70 * 1 * - - COUNT ( * ) * COALESCE ( - 84, 92 ) * + + 18 - + ( - 65 ) + COUNT ( * )
----
-423253

query I rowsort
SELECT DISTINCT - + 39 col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT + 22 * + CAST( 98 AS SIGNED ) * + COUNT( ALL 44 ) * 40 * + 90 + ( + COUNT( * ) ) + - + COALESCE ( - - 95, - + 3 * 62 ) * + 21 + - - 94 + - SUM( + ( - 96 ) ) + 73 * COUNT( * )
----
7759869

skipif mysql # not compatible
query I rowsort label-3988
SELECT + 22 * + CAST ( 98 AS INTEGER ) * + COUNT ( ALL 44 ) * 40 * + 90 + ( + COUNT ( * ) ) + - + COALESCE ( - - 95, - + 3 * 62 ) * + 21 + - - 94 + - SUM ( + ( - 96 ) ) + 73 * COUNT ( * )
----
7759869

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT 3 DIV - ( + 73 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT 3 / - ( + 73 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT DISTINCT + - 64 / - CAST( NULL AS SIGNED ) + + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + - 64 / - CAST ( NULL AS INTEGER ) + + 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT + 54 * - COUNT( * ) + - 81 AS col1, - 71
----
-135
-71

skipif mysql # not compatible
query II rowsort label-3991
SELECT + 54 * - COUNT ( * ) + - 81 AS col1, - 71
----
-135
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT ALL + 81 * - 85 * CAST( + 98 AS SIGNED ) + - + 6
----
-674736

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + 81 * - 85 * CAST ( + 98 AS INTEGER ) + - + 6
----
-674736

query II rowsort
SELECT 99 * - 98 * 57 AS col0, ( + COALESCE ( - 64, 82 + + - 55 * + 27 ) )
----
-553014
-64

query II rowsort
SELECT ALL - 35 col2, + 75 + + - 73 AS col2
----
-35
2

query I rowsort
SELECT ALL - 78 * 21 * 13 * - 6
----
127764

query I rowsort
SELECT 80 * + 59 AS col2
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT 89 * COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3997
SELECT 89 * COUNT ( * ) AS col0
----
89

query I rowsort
SELECT ALL - 87 * + 58
----
-5046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3999
SELECT DISTINCT - NULLIF ( + - SUM( + CAST( NULL AS SIGNED ) ), + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT - NULLIF ( + - SUM ( + CAST ( NULL AS INTEGER ) ), + 1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL - CAST( + + 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - CAST ( + + 63 AS INTEGER ) AS col2
----
-63

query II rowsort
SELECT 33 AS col1, - 62 AS col0
----
33
-62

query I rowsort
SELECT ALL - ( - 87 ) col2
----
87

query II rowsort
SELECT + 86 AS col2, + 18 AS col1
----
86
18

query I rowsort
SELECT 15 * + 30 AS col0
----
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT DISTINCT - CAST( 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT - CAST ( 53 AS INTEGER )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL - MAX( 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL - MAX ( 37 )
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4007
SELECT 19 AS col1, + 57 + COUNT( * ) col2
----
19
58

skipif mysql # not compatible
query II rowsort label-4007
SELECT 19 AS col1, + 57 + COUNT ( * ) col2
----
19
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT ALL - COALESCE ( - - 98, 41, + CAST( NULL AS SIGNED ) ) + 72
----
-26

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - COALESCE ( - - 98, 41, + CAST ( NULL AS INTEGER ) ) + 72
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4009
SELECT DISTINCT - 70 + + 74 + + 67 + COUNT( * ) * CAST( + 59 AS SIGNED ) AS col2, + 92
----
130
92

skipif mysql # not compatible
query II rowsort label-4009
SELECT DISTINCT - 70 + + 74 + + 67 + COUNT ( * ) * CAST ( + 59 AS INTEGER ) AS col2, + 92
----
130
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT ALL + ( - COUNT( * ) ) + - COUNT( * ) DIV 48 - - 23 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL + ( - COUNT ( * ) ) + - COUNT ( * ) / 48 - - 23 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4011
SELECT ALL 65 + + ( COUNT( * ) ) + + - CAST( 55 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL 65 + + ( COUNT ( * ) ) + + - CAST ( 55 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT + 25 + - COUNT( * ) + 40 col1
----
64

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT + 25 + - COUNT ( * ) + 40 col1
----
64

query I rowsort
SELECT DISTINCT - ( ( 25 ) ) + 80 AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT + - CAST( NULL AS SIGNED ) + - COALESCE ( 57, + - COALESCE ( 58, + 96, + + 67, - 32 + - - 5 + - NULLIF ( - 15, - 48 + 98 ) ) * 18 * 68 * + 57 + + 13 + + 57 ) + - 42 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT + - CAST ( NULL AS INTEGER ) + - COALESCE ( 57, + - COALESCE ( 58, + 96, + + 67, - 32 + - - 5 + - NULLIF ( - 15, - 48 + 98 ) ) * 18 * 68 * + 57 + + 13 + + 57 ) + - 42 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4015
SELECT DISTINCT + 36 + COALESCE ( - - COUNT( - 45 ), - 27 * + 12 ) * - 39 DIV - 60 * + 92 * ( + + COUNT( DISTINCT - - 4 ) ) - - + ( + MAX( DISTINCT - 84 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT + 36 + COALESCE ( - - COUNT ( - 45 ), - 27 * + 12 ) * - 39 / - 60 * + 92 * ( + + COUNT ( DISTINCT - - 4 ) ) - - + ( + MAX ( DISTINCT - 84 ) )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL - 78 + + 41 * - 59 * - MIN( ALL - - CAST( NULL AS SIGNED ) ) * - 54 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - 78 + + 41 * - 59 * - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) * - 54 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT - + 97 - + CAST( + 53 AS SIGNED ) + + COUNT( - + 17 ) * 64 * 42 AS col2
----
2538

skipif mysql # not compatible
query I rowsort label-4017
SELECT - + 97 - + CAST ( + 53 AS INTEGER ) + + COUNT ( - + 17 ) * 64 * 42 AS col2
----
2538

query I rowsort
SELECT + - 92 * - 33 AS col2
----
3036

query I rowsort
SELECT - + ( - - 81 ) AS col1
----
-81

query I rowsort
SELECT DISTINCT + ( - 22 ) AS col1
----
-22

query I rowsort
SELECT DISTINCT 0 - - NULLIF ( - NULLIF ( + 84, 51 ), - - 33 / - - 85 ) * + 41 - 6
----
-3450

onlyif mysql # DIV for integer division: 
query I rowsort label-4022
SELECT ALL 5 DIV 24 + - - 20
----
20

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL 5 / 24 + - - 20
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4023
SELECT + 88 * + MIN( DISTINCT + 4 ) * 10, SUM( DISTINCT 86 ) AS col2
----
3520
86

skipif mysql # not compatible
query II rowsort label-4023
SELECT + 88 * + MIN ( DISTINCT + 4 ) * 10, SUM ( DISTINCT 86 ) AS col2
----
3520
86

query II rowsort
SELECT ALL + 95, - CASE + 23 WHEN 72 * + 72 THEN 90 ELSE NULL END col1
----
95
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - 87, 40 ) - + 76 * - 15 AS col0
----
1227

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT COUNT( * ) * - 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT COUNT ( * ) * - 35 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4027
SELECT ALL + COUNT( * ) - 54 + - - 89, + COUNT( * ) AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-4027
SELECT ALL + COUNT ( * ) - 54 + - - 89, + COUNT ( * ) AS col2
----
36
1

query I rowsort
SELECT + - 90 * + 81 AS col1
----
-7290

query II rowsort
SELECT - 37, 39 AS col1
----
-37
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT + CAST( 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-4030
SELECT + CAST ( 97 AS INTEGER )
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4031
SELECT + 99, 17 DIV - - 95 AS col1
----
99
0

skipif mysql # not compatible
query II rowsort label-4031
SELECT + 99, 17 / - - 95 AS col1
----
99
0

query I rowsort
SELECT - - 41 * 73
----
2993

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL + MAX( ( - 64 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + MAX ( ( - 64 ) )
----
-64

query I rowsort
SELECT DISTINCT 14 * + - 68
----
-952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT CAST( NULL AS SIGNED ) * - - 68 * - 47 / - 54 - SUM( + 53 ) * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT CAST ( NULL AS INTEGER ) * - - 68 * - 47 / - 54 - SUM ( + 53 ) * + 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4036
SELECT + ( 33 ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-4036
SELECT + ( 33 ) / + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL + 61 * + + 35 + + - 63 + ( - MAX( + + 0 ) ) * + 44 - + 91 AS col1
----
1981

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + 61 * + + 35 + + - 63 + ( - MAX ( + + 0 ) ) * + 44 - + 91 AS col1
----
1981

query I rowsort
SELECT + ( - 60 ) * - 85 AS col2
----
5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4039
SELECT NULLIF ( - + CAST( NULL AS SIGNED ), + ( COUNT( * ) ) * 1 + - + COUNT( * ) - + COUNT( * ) * + CAST( NULL AS SIGNED ) / - - 98 * - - 55 * - 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), + ( COUNT ( * ) ) * 1 + - + COUNT ( * ) - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - - 98 * - - 55 * - 86 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT + CASE 55 WHEN + 38 THEN + 6 * COUNT( * ) * + 76 * NULLIF ( + 29, - + 33 ) * + + 51 * - 49 * 12 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT + CASE 55 WHEN + 38 THEN + 6 * COUNT ( * ) * + 76 * NULLIF ( + 29, - + 33 ) * + + 51 * - 49 * 12 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + 8 * - COUNT( * ) + - COUNT( * ) + - 75 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4041
SELECT + 8 * - COUNT ( * ) + - COUNT ( * ) + - 75 AS col1
----
-84

query II rowsort
SELECT COALESCE ( + + 53, - 6 * - + 1 * - 1 ), + 49 AS col1
----
53
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT ALL + 34 * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + + NULLIF ( + COALESCE ( + 70, COUNT( * ) * - CASE + 96 WHEN - COUNT( * ) THEN 4 WHEN + ( + - COALESCE ( - 40, + 60 ) ) THEN NULL ELSE NULL END, + 84 + 19 * COUNT( * ) ), 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL + 34 * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + + NULLIF ( + COALESCE ( + 70, COUNT ( * ) * - CASE + 96 WHEN - COUNT ( * ) THEN 4 WHEN + ( + - COALESCE ( - 40, + 60 ) ) THEN NULL ELSE NULL END, + 84 + 19 * COUNT ( * ) ), 63 )
----
NULL

query I rowsort
SELECT 20 * 97 + + 70 AS col0
----
2010

onlyif mysql # aggregate syntax: 
query II rowsort label-4045
SELECT + ( + - 44 ) AS col0, ( + SUM( 62 ) ) AS col1
----
-44
62

skipif mysql # not compatible
query II rowsort label-4045
SELECT + ( + - 44 ) AS col0, ( + SUM ( 62 ) ) AS col1
----
-44
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4046
SELECT + 77 + - 41, CAST( + 31 AS SIGNED ) AS col1
----
36
31

skipif mysql # not compatible
query II rowsort label-4046
SELECT + 77 + - 41, CAST ( + 31 AS INTEGER ) AS col1
----
36
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4047
SELECT ALL + COUNT( * ) * + COUNT( - 50 ) + 93 DIV - NULLIF ( + - ( - 95 ), + 8 ) * + 45, COALESCE ( 43, + 51 DIV - 27 + COUNT( * ), - 88 ) AS col2
----
1
43

skipif mysql # not compatible
query II rowsort label-4047
SELECT ALL + COUNT ( * ) * + COUNT ( - 50 ) + 93 / - NULLIF ( + - ( - 95 ), + 8 ) * + 45, COALESCE ( 43, + 51 / - 27 + COUNT ( * ), - 88 ) AS col2
----
1
43

query I rowsort
SELECT COALESCE ( 43, - + 53 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL + 57 * - - ( + COUNT( * ) ) + + 72
----
129

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + 57 * - - ( + COUNT ( * ) ) + + 72
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL - COUNT( * ) * + 6 + 93
----
87

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - COUNT ( * ) * + 6 + 93
----
87

query I rowsort
SELECT 21 * - - 48 + 32 + 43 + + ( 95 ) col2
----
1178

query I rowsort
SELECT ALL + NULLIF ( 77, + + NULLIF ( + + 36, - 81 ) ) AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT - - COUNT( * ) * + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT + - 89 * + - 62 AS col0, + 65 * 54 AS col1
----
5518
3510

query I rowsort
SELECT - + 11 + + 97 AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT + - ( + 26 ) + 36 DIV - + 32 col1
----
-27

skipif mysql # not compatible
query I rowsort label-4056
SELECT + - ( + 26 ) + 36 / - + 32 col1
----
-27

query II rowsort
SELECT ALL + 30 * + - 64 AS col2, + 4 * 53 * + + 9 col1
----
-1920
1908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4058
SELECT - COUNT( * ) DIV - 21
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT - COUNT ( * ) / - 21
----
0

query I rowsort
SELECT + 9 * 56
----
504

query I rowsort
SELECT ALL + - 47 * - + 31
----
1457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT - CAST( NULL AS SIGNED ) + - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT - CAST ( NULL AS INTEGER ) + - 13 AS col2
----
NULL

query I rowsort
SELECT - 61 + + 87 AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT - CAST( + 13 AS SIGNED ) + - 64 + + 14 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4063
SELECT - CAST ( + 13 AS INTEGER ) + - 64 + + 14 AS col0
----
-63

query I rowsort
SELECT + - 84 * - 72 AS col2
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL + MIN( DISTINCT - + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL + MIN ( DISTINCT - + 93 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4066
SELECT ALL + CAST( NULL AS SIGNED ) / + - 27 * - ( - + 90 ) + + - ( 36 ) + + MIN( + 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + CAST ( NULL AS INTEGER ) / + - 27 * - ( - + 90 ) + + - ( 36 ) + + MIN ( + 0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + 61 + 60 + 68 * + 87 * + 2 + + COUNT( * ) AS col2
----
11954

skipif mysql # not compatible
query I rowsort label-4067
SELECT + 61 + 60 + 68 * + 87 * + 2 + + COUNT ( * ) AS col2
----
11954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT ALL 11 / - 42 * + 46 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL 11 / - 42 * + 46 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4069
SELECT - COUNT( * ) * - - CAST( + - 65 AS SIGNED ) + + COUNT( * ) DIV + 65 - + + 69
----
-4

skipif mysql # not compatible
query I rowsort label-4069
SELECT - COUNT ( * ) * - - CAST ( + - 65 AS INTEGER ) + + COUNT ( * ) / + 65 - + + 69
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4070
SELECT 24 DIV - 70 + - 26 AS col2, 88 * - NULLIF ( COUNT( * ), - ( 10 ) * + 66 )
----
-26
-88

skipif mysql # not compatible
query II rowsort label-4070
SELECT 24 / - 70 + - 26 AS col2, 88 * - NULLIF ( COUNT ( * ), - ( 10 ) * + 66 )
----
-26
-88

query I rowsort
SELECT 15 * - 60 + + 55 - - 9 AS col0
----
-836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4072
SELECT CAST( - - COALESCE ( AVG ( ALL + ( + + 42 ) ), - - 85 * - + 29 + - 9 + - COUNT( * ) * 46 ) AS SIGNED ) AS col1, 58
----
42
58

skipif mysql # not compatible
query II rowsort label-4072
SELECT CAST ( - - COALESCE ( AVG ( ALL + ( + + 42 ) ), - - 85 * - + 29 + - 9 + - COUNT ( * ) * 46 ) AS INTEGER ) AS col1, 58
----
42
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT ALL NULLIF ( + CAST( ( - 24 ) AS SIGNED ), - 41 ) * - CAST( COALESCE ( + - 54, + 50 ) AS SIGNED ) AS col1
----
-1296

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL NULLIF ( + CAST ( ( - 24 ) AS INTEGER ), - 41 ) * - CAST ( COALESCE ( + - 54, + 50 ) AS INTEGER ) AS col1
----
-1296

query I rowsort
SELECT + ( + + 99 )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4075
SELECT ALL + SUM( - - 85 ) DIV SUM( DISTINCT - - ( - 86 ) ) + + - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL + SUM ( - - 85 ) / SUM ( DISTINCT - - ( - 86 ) ) + + - 3 AS col1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4076
SELECT + ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT + ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 69, COALESCE ( - 89, 74 - 17 ) AS col1
----
-69
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT 53 * + 6 - - CAST( + - 48 AS SIGNED )
----
270

skipif mysql # not compatible
query I rowsort label-4078
SELECT 53 * + 6 - - CAST ( + - 48 AS INTEGER )
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL - - MIN( DISTINCT 19 ) * + + 75 * - 98 AS col0
----
-139650

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL - - MIN ( DISTINCT 19 ) * + + 75 * - 98 AS col0
----
-139650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4080
SELECT CAST( + 51 AS SIGNED ) * + + 16 + + MAX( 19 ) + 65 DIV 68
----
835

skipif mysql # not compatible
query I rowsort label-4080
SELECT CAST ( + 51 AS INTEGER ) * + + 16 + + MAX ( 19 ) + 65 / 68
----
835

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - + MIN( ALL 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4081
SELECT - + MIN ( ALL 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT + + ( + COUNT( * ) ) * + 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT + + ( + COUNT ( * ) ) * + 4 AS col0
----
4

query I rowsort
SELECT - 16 * + 49 - 89 AS col0
----
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL NULLIF ( + - 7, + COUNT( ALL + 50 ) * + 64 + 97 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL NULLIF ( + - 7, + COUNT ( ALL + 50 ) * + 64 + 97 ) AS col1
----
-7

query I rowsort
SELECT ALL 40 * + 51
----
2040

query I rowsort
SELECT 71 + + 15 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - 6 * - + 15 + - - COUNT( * ) - 23
----
68

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 6 * - + 15 + - - COUNT ( * ) - 23
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT + MIN( DISTINCT 49 )
----
49

skipif mysql # not compatible
query I rowsort label-4088
SELECT + MIN ( DISTINCT 49 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT ALL + 82 + CAST( NULL AS SIGNED ) + + + CASE + 44 WHEN - 98 THEN - 71 WHEN - 70 + - 49 * - 78 + - - 16 THEN NULL ELSE - SUM( ALL ( 99 ) ) * - + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + 82 + CAST ( NULL AS INTEGER ) + + + CASE + 44 WHEN - 98 THEN - 71 WHEN - 70 + - 49 * - 78 + - - 16 THEN NULL ELSE - SUM ( ALL ( 99 ) ) * - + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT ALL - + 44 * 84 DIV - + 39
----
94

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - + 44 * 84 / - + 39
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4091
SELECT DISTINCT COUNT( * ) AS col2, 55
----
1
55

skipif mysql # not compatible
query II rowsort label-4091
SELECT DISTINCT COUNT ( * ) AS col2, 55
----
1
55

query I rowsort
SELECT ALL - 2 + + 55
----
53

query I rowsort
SELECT - 82 * - - 89 * - 60 - 85 * - 14 AS col0
----
439070

query II rowsort
SELECT DISTINCT - 68 AS col0, 80 AS col0
----
-68
80

query I rowsort
SELECT ALL + - 32 + - 4 col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT + 0 + + COUNT( * ) - - + 67 + - - 77 * - 15 * - 74 + + 80
----
85618

skipif mysql # not compatible
query I rowsort label-4096
SELECT + 0 + + COUNT ( * ) - - + 67 + - - 77 * - 15 * - 74 + + 80
----
85618

query I rowsort
SELECT ALL - 28 * 87 * + - 86
----
209496

onlyif mysql # aggregate syntax: 
query III rowsort label-4098
SELECT 76 - - COUNT( * ) * - NULLIF ( + + 26, 64 ) + 8, 87 AS col2, + CASE - MIN( - ( - 98 ) ) WHEN 93 / 21 THEN + - 41 + - + 95 + + - 81 WHEN - 17 + + + 35 THEN NULL END AS col1
----
58
87
NULL

skipif mysql # not compatible
query III rowsort label-4098
SELECT 76 - - COUNT ( * ) * - NULLIF ( + + 26, 64 ) + 8, 87 AS col2, + CASE - MIN ( - ( - 98 ) ) WHEN 93 / 21 THEN + - 41 + - + 95 + + - 81 WHEN - 17 + + + 35 THEN NULL END AS col1
----
58
87
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4099
SELECT DISTINCT - COUNT( * ) + CAST( 28 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT - COUNT ( * ) + CAST ( 28 AS INTEGER )
----
27

query I rowsort
SELECT 89 * + 15 * - + 87 * - - 69 AS col0
----
-8014005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4101
SELECT - 24, CASE + NULLIF ( + - COUNT( * ), 35 * 81 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 79 END * - - 83 AS col1
----
-24
-6557

skipif mysql # not compatible
query II rowsort label-4101
SELECT - 24, CASE + NULLIF ( + - COUNT ( * ), 35 * 81 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 79 END * - - 83 AS col1
----
-24
-6557

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT 31 * SUM( - 54 )
----
-1674

skipif mysql # not compatible
query I rowsort label-4102
SELECT 31 * SUM ( - 54 )
----
-1674

onlyif mysql # DIV for integer division: 
query I rowsort label-4103
SELECT ALL - 84 + - - 89 DIV 49
----
-83

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - 84 + - - 89 / 49
----
-83

query I rowsort
SELECT DISTINCT - 11 * 97 * - CASE + 77 WHEN + - 62 - + + 5 - + 8 THEN + 91 * + 19 END * + 84 AS col0
----
NULL

query I rowsort
SELECT 21 * 64 - 84 - - - 25 AS col2
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL - SUM( ALL - 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - SUM ( ALL - 49 ) AS col1
----
49

query II rowsort
SELECT ALL - 1 AS col1, - 17
----
-1
-17

query I rowsort
SELECT 11 + - 91 - + 21 * - 38 + - 1 * - 14 * - - 86 AS col2
----
1922

query II rowsort
SELECT + 50, - 8 AS col0
----
50
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT + CASE + - 60 WHEN 90 + 81 THEN NULL WHEN + COUNT( * ) * - 17 + - 90 + - 98 THEN 26 END * + + ( - - ( - 86 ) ) + - 63 - - COUNT( * ) + - 14 - + - 46 * - - MIN( ALL 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT + CASE + - 60 WHEN 90 + 81 THEN NULL WHEN + COUNT ( * ) * - 17 + - 90 + - 98 THEN 26 END * + + ( - - ( - 86 ) ) + - 63 - - COUNT ( * ) + - 14 - + - 46 * - - MIN ( ALL 55 ) AS col1
----
NULL

query I rowsort
SELECT ALL 58 * + + 23 AS col0
----
1334

query II rowsort
SELECT ALL - + 80 * + 48 * - ( + - 56 ) AS col1, 63 AS col0
----
-215040
63

query II rowsort
SELECT ALL - - 71, + 43 AS col1
----
71
43

query II rowsort
SELECT ALL - - 24 AS col2, 33 + - 60 - + 29
----
24
-56

query II rowsort
SELECT ALL - 47 AS col0, - 60 + - + 11 AS col2
----
-47
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + MIN( ALL - 88 ) * + + 0 + + SUM( DISTINCT + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4116
SELECT + MIN ( ALL - 88 ) * + + 0 + + SUM ( DISTINCT + 35 )
----
35

query II rowsort
SELECT DISTINCT - + 33, 93 AS col1
----
-33
93

query III rowsort
SELECT 54 AS col2, - 41 AS col2, - + 28
----
54
-41
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4119
SELECT ALL ( + - CAST( + + ( - 23 ) AS SIGNED ) )
----
23

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL ( + - CAST ( + + ( - 23 ) AS INTEGER ) )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4120
SELECT + COUNT( * ) * + - 94 AS col0, + 32 * + 41 * - ( + 26 ) AS col1
----
-94
-34112

skipif mysql # not compatible
query II rowsort label-4120
SELECT + COUNT ( * ) * + - 94 AS col0, + 32 * + 41 * - ( + 26 ) AS col1
----
-94
-34112

query II rowsort
SELECT + 4 + + 70 AS col0, 6 * + + 54 AS col2
----
74
324

query I rowsort
SELECT 16 * - 40
----
-640

query I rowsort
SELECT ALL 13 + - - 26
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL - 53 + - + 61 + + ( - COUNT( * ) ) * + 70
----
-184

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL - 53 + - + 61 + + ( - COUNT ( * ) ) * + 70
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL - - COUNT( 3 ) + - 35 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL - - COUNT ( 3 ) + - 35 AS col2
----
-34

query I rowsort
SELECT ALL - + 17 + 25
----
8

query II rowsort
SELECT - 6, - 14 + + - 57 AS col1
----
-6
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL ( - COUNT( * ) ) * - - 97
----
-97

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL ( - COUNT ( * ) ) * - - 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT - MIN( + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4129
SELECT - MIN ( + 60 )
----
-60

query I rowsort
SELECT ALL - 71 + + 44 * + 6 AS col1
----
193

onlyif mysql # aggregate syntax: 
query II rowsort label-4131
SELECT 86 + + + 45 AS col1, MIN( DISTINCT + 60 )
----
131
60

skipif mysql # not compatible
query II rowsort label-4131
SELECT 86 + + + 45 AS col1, MIN ( DISTINCT + 60 )
----
131
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4132
SELECT 31 - - 26 AS col0, CAST( + COUNT( * ) AS SIGNED ) + - 96 + + COUNT( * ) DIV 47
----
57
-95

skipif mysql # not compatible
query II rowsort label-4132
SELECT 31 - - 26 AS col0, CAST ( + COUNT ( * ) AS INTEGER ) + - 96 + + COUNT ( * ) / 47
----
57
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT DISTINCT + 52 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT + 52 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT COUNT( * ) - 34 + + 6 * + 53 + + 94
----
379

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT COUNT ( * ) - 34 + + 6 * + 53 + + 94
----
379

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL COUNT( ALL 8 )
----
1

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL COUNT ( ALL 8 )
----
1

query II rowsort
SELECT - 31 * - 44 AS col1, 30 + + 91 AS col0
----
1364
121

query I rowsort
SELECT - 48 + - - 59
----
11

query II rowsort
SELECT DISTINCT - 53 * - - 58 AS col0, - 96
----
-3074
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT - 58 * + 9 + - - ( + COUNT( * ) ) + - + 25 AS col1
----
-546

skipif mysql # not compatible
query I rowsort label-4139
SELECT - 58 * + 9 + - - ( + COUNT ( * ) ) + - + 25 AS col1
----
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4140
SELECT ALL + ( - 94 ) AS col1, + COUNT( ALL + CAST( NULL AS DECIMAL ) ) * + CAST( + 80 AS SIGNED ) * + COUNT( * ) AS col2
----
-94
0

skipif mysql # not compatible
query II rowsort label-4140
SELECT ALL + ( - 94 ) AS col1, + COUNT ( ALL + CAST ( NULL AS REAL ) ) * + CAST ( + 80 AS INTEGER ) * + COUNT ( * ) AS col2
----
-94
0

query I rowsort
SELECT ALL - 62 * - 42 AS col2
----
2604

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT 89 DIV 56 + - 23 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4142
SELECT 89 / 56 + - 23 AS col1
----
-22

query II rowsort
SELECT DISTINCT - 53 * 24, 15 AS col0
----
-1272
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT NULLIF ( + + 43, - 14 + - COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-4144
SELECT NULLIF ( + + 43, - 14 + - COUNT ( * ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + 94 + - COALESCE ( + 11, + + 19, + COUNT( * ) * + 8 + - 26 + + + 88 )
----
83

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 94 + - COALESCE ( + 11, + + 19, + COUNT ( * ) * + 8 + - 26 + + + 88 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL 20 * - 16 - - COUNT( * )
----
-319

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL 20 * - 16 - - COUNT ( * )
----
-319

query II rowsort
SELECT - 65 * - 96, - 70 col2
----
6240
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT - 8 * - + NULLIF ( COUNT( * ), - 57 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT - 8 * - + NULLIF ( COUNT ( * ), - 57 ) AS col0
----
8

query I rowsort
SELECT NULLIF ( - 53, - - 84 ) AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT DISTINCT 60 DIV MAX( 61 ) * + 40 + + 29 - + + 60 * + ( - - 24 )
----
-1411

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT 60 / MAX ( 61 ) * + 40 + + 29 - + + 60 * + ( - - 24 )
----
-1411

onlyif mysql # DIV for integer division: 
query I rowsort label-4151
SELECT ( 68 ) * 82 - - + 54 DIV + 53 AS col0
----
5577

skipif mysql # not compatible
query I rowsort label-4151
SELECT ( 68 ) * 82 - - + 54 / + 53 AS col0
----
5577

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4152
SELECT ALL - AVG ( ALL + ( + CAST( NULL AS DECIMAL ) ) ) * - + 45 + - 36 + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL - AVG ( ALL + ( + CAST ( NULL AS REAL ) ) ) * - + 45 + - 36 + + 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT - + 38 - + COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4153
SELECT - + 38 - + COUNT ( * ) AS col0
----
-39

query I rowsort
SELECT - - 63 * - - ( + - 74 ) AS col1
----
-4662

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT + COUNT( + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-4155
SELECT + COUNT ( + 21 )
----
1

query I rowsort
SELECT DISTINCT + 39 * + - 83 + - 75 AS col2
----
-3312

query I rowsort
SELECT ALL 85 + + + 57 + + - 86 AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4158
SELECT - COALESCE ( + 98, - + COUNT( * ), + COUNT( * ) ) * + COUNT( * ) + 38 DIV COALESCE ( 51, - 89 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4158
SELECT - COALESCE ( + 98, - + COUNT ( * ), + COUNT ( * ) ) * + COUNT ( * ) + 38 / COALESCE ( 51, - 89 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT MIN( DISTINCT + + NULLIF ( - 47, + 97 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-4159
SELECT MIN ( DISTINCT + + NULLIF ( - 47, + 97 ) )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4160
SELECT ALL + 42 + - COUNT( * ) + ( 80 ) / + 2 * CASE - 60 WHEN + 73 * - - COUNT( * ) * + MAX( DISTINCT - - 47 ) * + - COUNT( - 23 ) + + 60 * + - 98 * - 60 - ( + - 91 ) * CAST( - 50 AS SIGNED ) + CAST( + + 22 AS SIGNED ) THEN + 16 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + 42 + - COUNT ( * ) + ( 80 ) / + 2 * CASE - 60 WHEN + 73 * - - COUNT ( * ) * + MAX ( DISTINCT - - 47 ) * + - COUNT ( - 23 ) + + 60 * + - 98 * - 60 - ( + - 91 ) * CAST ( - 50 AS INTEGER ) + CAST ( + + 22 AS INTEGER ) THEN + 16 END AS col0
----
NULL

query I rowsort
SELECT + + 36 * - + 76
----
-2736

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT + 30 DIV 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4162
SELECT + 30 / 59 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT ALL 12 AS col0, + 29 + COUNT( * )
----
12
30

skipif mysql # not compatible
query II rowsort label-4163
SELECT ALL 12 AS col0, + 29 + COUNT ( * )
----
12
30

query I rowsort
SELECT - 8 + + 1 AS col1
----
-7

query I rowsort
SELECT - 67 - + 52 AS col1
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4166
SELECT DISTINCT COUNT( * ) DIV + CAST( - 59 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT COUNT ( * ) / + CAST ( - 59 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * 19 * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * 19 * + 12
----
NULL

query I rowsort
SELECT ALL + 39 - 57 AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT + 31 DIV 42 * - - 9 * ( 37 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT + 31 / 42 * - - 9 * ( 37 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT - CAST( - 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-4170
SELECT - CAST ( - 22 AS INTEGER )
----
22

query I rowsort
SELECT + 7 + - 59 + - 51 + - - 10
----
-93

query I rowsort
SELECT - NULLIF ( + 8, 3 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4173
SELECT ALL 30 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL 30 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 12 AS col2, 71 AS col2
----
12
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT + 13 - + + MIN( ( + 58 ) ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-4175
SELECT + 13 - + + MIN ( ( + 58 ) ) col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT COUNT( 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT COUNT ( 90 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT CAST( NULLIF ( 81, + 2 ) AS SIGNED ) col1
----
81

skipif mysql # not compatible
query I rowsort label-4177
SELECT CAST ( NULLIF ( 81, + 2 ) AS INTEGER ) col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT CAST( + + 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-4178
SELECT CAST ( + + 42 AS INTEGER )
----
42

query I rowsort
SELECT - 82 - + 34 * - - 2 AS col2
----
-150

query I rowsort
SELECT - 41 * 77 AS col0
----
-3157

query I rowsort
SELECT ALL + 31 * - + 24
----
-744

query I rowsort
SELECT + 76 + - - 54 AS col0
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4183
SELECT ( + NULLIF ( - - ( + + ( + - 85 ) ), + AVG ( ( + CAST( - 75 AS SIGNED ) ) ) ) ) * + - COALESCE ( + 47, 49 ) + 98 + - 49 * 13 DIV - - COUNT( * ) + + NULLIF ( COUNT( * ), 72 ) + + ( - 3 ) AS col1
----
3454

skipif mysql # not compatible
query I rowsort label-4183
SELECT ( + NULLIF ( - - ( + + ( + - 85 ) ), + AVG ( ( + CAST ( - 75 AS INTEGER ) ) ) ) ) * + - COALESCE ( + 47, 49 ) + 98 + - 49 * 13 / - - COUNT ( * ) + + NULLIF ( COUNT ( * ), 72 ) + + ( - 3 ) AS col1
----
3454

query I rowsort
SELECT - 59 - 18 AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4185
SELECT - 3 + - - SUM( DISTINCT - COALESCE ( - + 86, + 0 DIV + - 72 - + 5 * + 8 ) )
----
83

skipif mysql # not compatible
query I rowsort label-4185
SELECT - 3 + - - SUM ( DISTINCT - COALESCE ( - + 86, + 0 / + - 72 - + 5 * + 8 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - + 14 * - 74 + + - 76 * - 25 - - CASE - + 43 WHEN + 98 * + COUNT( * ) THEN NULL ELSE + COUNT( * ) END
----
2937

skipif mysql # not compatible
query I rowsort label-4186
SELECT - + 14 * - 74 + + - 76 * - 25 - - CASE - + 43 WHEN + 98 * + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END
----
2937

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - 16 + - - COUNT( * ) + - COALESCE ( 2, - 43 * - 96 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4187
SELECT - 16 + - - COUNT ( * ) + - COALESCE ( 2, - 43 * - 96 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL + 50 * 72 + - 92 + + 96 + SUM( - 22 ) + 0 * 49 + - + COUNT( - 64 ) * + - 36 + + 32
----
3650

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + 50 * 72 + - 92 + + 96 + SUM ( - 22 ) + 0 * 49 + - + COUNT ( - 64 ) * + - 36 + + 32
----
3650

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL + + COUNT( 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + + COUNT ( 70 ) AS col1
----
1

query I rowsort
SELECT - - 26 + - 51 AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4191
SELECT ALL - 15 DIV COALESCE ( - - ( + 71 ), CAST( - 99 AS SIGNED ), + 96 DIV + 86 ) + 76 + - 92 + - 10 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - 15 / COALESCE ( - - ( + 71 ), CAST ( - 99 AS INTEGER ), + 96 / + 86 ) + 76 + - 92 + - 10 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT - 91 AS col0, + COUNT( * ) + - 14 AS col0
----
-91
-13

skipif mysql # not compatible
query II rowsort label-4192
SELECT - 91 AS col0, + COUNT ( * ) + - 14 AS col0
----
-91
-13

query I rowsort
SELECT + - 76 + - 12 * 51 * + 36 AS col0
----
-22108

onlyif mysql # aggregate syntax: 
query II rowsort label-4194
SELECT ALL - COUNT( * ) * - 4 + 69 + SUM( - 39 ) * + 14 + - 97 * - - 65 + + + 42 col2, 74 * - MAX( DISTINCT + 78 ) * - 50 col0
----
-6736
288600

skipif mysql # not compatible
query II rowsort label-4194
SELECT ALL - COUNT ( * ) * - 4 + 69 + SUM ( - 39 ) * + 14 + - 97 * - - 65 + + + 42 col2, 74 * - MAX ( DISTINCT + 78 ) * - 50 col0
----
-6736
288600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT - ( + CAST( NULL AS SIGNED ) ) * + MIN( DISTINCT + - 27 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + MIN ( DISTINCT + - 27 ) col2
----
NULL

query I rowsort
SELECT ALL 58 * - 50 col1
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - NULLIF ( + COUNT( * ), 32 * - 77 / + 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-4197
SELECT - NULLIF ( + COUNT ( * ), 32 * - 77 / + 99 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT COUNT( * ) * - - NULLIF ( + 46, 84 - + - 89 ) * + + 63 * - COUNT( * ) * + + 48
----
-139104

skipif mysql # not compatible
query I rowsort label-4198
SELECT COUNT ( * ) * - - NULLIF ( + 46, 84 - + - 89 ) * + + 63 * - COUNT ( * ) * + + 48
----
-139104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT COUNT( * ) * - 78 * COUNT( ALL CAST( 34 AS SIGNED ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4199
SELECT COUNT ( * ) * - 78 * COUNT ( ALL CAST ( 34 AS INTEGER ) ) AS col1
----
-78

query I rowsort
SELECT ( 15 ) * + 79 AS col0
----
1185

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT COUNT( * ) + ( + 39 )
----
40

skipif mysql # not compatible
query I rowsort label-4201
SELECT COUNT ( * ) + ( + 39 )
----
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4202
SELECT CAST( 10 AS SIGNED ) DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT CAST ( 10 AS INTEGER ) / - 72
----
0

query II rowsort
SELECT DISTINCT 18 * - 87 AS col2, 64 AS col2
----
-1566
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4204
SELECT COUNT( * ) + + - ( 97 ) + CAST( + 24 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-4204
SELECT COUNT ( * ) + + - ( 97 ) + CAST ( + 24 AS INTEGER )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4205
SELECT CAST( NULL AS SIGNED ) / + - 78 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT CAST ( NULL AS INTEGER ) / + - 78 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT ALL CAST( NULL AS SIGNED ) / - 3 * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL CAST ( NULL AS INTEGER ) / - 3 * + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4207
SELECT 55 + + 64 * + - CAST( NULL AS DECIMAL ) / CASE - COALESCE ( ( COUNT( DISTINCT - 81 ) ), + + CASE - + ( - 1 ) WHEN - - 16 / - NULLIF ( - + 61, + 27 ) + - 88 THEN NULL ELSE - + 0 + + MIN( DISTINCT - 85 ) + 94 * SUM( - 51 ) * - 82 + 55 END * 17 ) WHEN + 73 THEN + SUM( + 57 ) WHEN + 60 + 15 THEN NULL END - ( 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT 55 + + 64 * + - CAST ( NULL AS REAL ) / CASE - COALESCE ( ( COUNT ( DISTINCT - 81 ) ), + + CASE - + ( - 1 ) WHEN - - 16 / - NULLIF ( - + 61, + 27 ) + - 88 THEN NULL ELSE - + 0 + + MIN ( DISTINCT - 85 ) + 94 * SUM ( - 51 ) * - 82 + 55 END * 17 ) WHEN + 73 THEN + SUM ( + 57 ) WHEN + 60 + 15 THEN NULL END - ( 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL + 36 + + + COUNT( * ) * - + MIN( ALL - 76 ) * - 23
----
-1712

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + 36 + + + COUNT ( * ) * - + MIN ( ALL - 76 ) * - 23
----
-1712

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT 39 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-4209
SELECT 39 / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT + 68 + - COUNT( * ) + - 9
----
58

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT + 68 + - COUNT ( * ) + - 9
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4211
SELECT DISTINCT MIN( + CAST( - ( 33 ) AS SIGNED ) ) * + + 14 - - ( - 26 ) DIV - + 6
----
-458

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT MIN ( + CAST ( - ( 33 ) AS INTEGER ) ) * + + 14 - - ( - 26 ) / - + 6
----
-458

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4212
SELECT + + NULLIF ( + - ( 3 ), + + 11 - - + 33 + + CAST( NULL AS SIGNED ) + 35 * 39 / 25 ), 61 AS col1
----
-3
61

skipif mysql # not compatible
query II rowsort label-4212
SELECT + + NULLIF ( + - ( 3 ), + + 11 - - + 33 + + CAST ( NULL AS INTEGER ) + 35 * 39 / 25 ), 61 AS col1
----
-3
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT ALL + 35 + ( + COALESCE ( 63, 22, 48 ) ) - + NULLIF ( + + 76, + 4 ) DIV 8 * 46 DIV + 54 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + 35 + ( + COALESCE ( 63, 22, 48 ) ) - + NULLIF ( + + 76, + 4 ) / 8 * 46 / + 54 AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT DISTINCT + + 35 + - 10 + 87 - + + COUNT( * ) * + 24 AS col1, 20
----
88
20

skipif mysql # not compatible
query II rowsort label-4214
SELECT DISTINCT + + 35 + - 10 + 87 - + + COUNT ( * ) * + 24 AS col1, 20
----
88
20

query I rowsort
SELECT ALL + 86 * - 61
----
-5246

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT - 76 * + - COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4216
SELECT - 76 * + - COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT + + CASE - MIN( DISTINCT 4 ) WHEN 3 THEN 10 + 67 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT + + CASE - MIN ( DISTINCT 4 ) WHEN 3 THEN 10 + 67 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT 91 * + 24 * 45 * COUNT( * ) AS col1
----
98280

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT 91 * + 24 * 45 * COUNT ( * ) AS col1
----
98280

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL - - COUNT( * ) - - 32 * - 54 AS col0
----
-1727

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - - COUNT ( * ) - - 32 * - 54 AS col0
----
-1727

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4220
SELECT CAST( - - 99 AS SIGNED ) DIV + 39
----
2

skipif mysql # not compatible
query I rowsort label-4220
SELECT CAST ( - - 99 AS INTEGER ) / + 39
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT 24 - - ( COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4221
SELECT 24 - - ( COUNT ( * ) ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4222
SELECT ALL 66 AS col0, + CASE CASE - + COUNT( - 5 ) WHEN CAST( + 63 AS SIGNED ) / 82 * - COUNT( * ) - - 26 THEN 5 ELSE NULL END WHEN + COALESCE ( + 29, - + 57 * + 81 + + MAX( 21 ) + - - 36 - + ( - 72 ) * 50 + + CAST( + + 51 AS SIGNED ) + + + ( 40 ) + 40 * 31, + 32, 52 * - 0 - - CASE 7 WHEN 57 * NULLIF ( 70, + 46 * + 87 + + 54 ) THEN - 75 WHEN 59 THEN + 48 ELSE NULL END ) + 24 THEN 45 ELSE NULL END col2
----
66
NULL

skipif mysql # not compatible
query II rowsort label-4222
SELECT ALL 66 AS col0, + CASE CASE - + COUNT ( - 5 ) WHEN CAST ( + 63 AS INTEGER ) / 82 * - COUNT ( * ) - - 26 THEN 5 ELSE NULL END WHEN + COALESCE ( + 29, - + 57 * + 81 + + MAX ( 21 ) + - - 36 - + ( - 72 ) * 50 + + CAST ( + + 51 AS INTEGER ) + + + ( 40 ) + 40 * 31, + 32, 52 * - 0 - - CASE 7 WHEN 57 * NULLIF ( 70, + 46 * + 87 + + 54 ) THEN - 75 WHEN 59 THEN + 48 ELSE NULL END ) + 24 THEN 45 ELSE NULL END col2
----
66
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT DISTINCT 2 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT 2 / 84
----
0

query I rowsort
SELECT 34 - + 42 + - 55 AS col1
----
-63

query I rowsort
SELECT ALL - 39 - - - 99
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT 5 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4226
SELECT 5 / 79 AS col0
----
0

query I rowsort
SELECT 40 * + 40 AS col0
----
1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4228
SELECT DISTINCT - COUNT( * ) DIV + - 45 * - 56
----
0

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT - COUNT ( * ) / + - 45 * - 56
----
0

query II rowsort
SELECT ALL 77 AS col1, COALESCE ( - 12, - 51, 25 )
----
77
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT COUNT( * ) * - - 32
----
32

skipif mysql # not compatible
query I rowsort label-4230
SELECT COUNT ( * ) * - - 32
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT ALL 77 + + CAST( NULL AS SIGNED ) - + + NULLIF ( - - 37, + 97 + COUNT( * ) + 21 * 8 + - CAST( NULL AS SIGNED ) * - ( + 2 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL 77 + + CAST ( NULL AS INTEGER ) - + + NULLIF ( - - 37, + 97 + COUNT ( * ) + 21 * 8 + - CAST ( NULL AS INTEGER ) * - ( + 2 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 95 * 67 col2
----
6365

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT + 49 + - 83 + - CASE - ( COUNT( * ) ) WHEN + + 19 THEN - 45 ELSE NULL END + - 49 * - - AVG ( DISTINCT - - 89 ) + - 5 * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT + 49 + - 83 + - CASE - ( COUNT ( * ) ) WHEN + + 19 THEN - 45 ELSE NULL END + - 49 * - - AVG ( DISTINCT - - 89 ) + - 5 * - 25
----
NULL

query II rowsort
SELECT 53 AS col2, ( + 98 ) AS col0
----
53
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL COUNT( * ) + - MIN( - 39 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL COUNT ( * ) + - MIN ( - 39 ) AS col2
----
40

query I rowsort
SELECT ( - ( + 55 ) ) * NULLIF ( + 93, + 50 ) + - + 43 AS col2
----
-5158

query I rowsort
SELECT ALL - 31 + + 63 AS col2
----
32

query I rowsort
SELECT 45 - + + 37 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4239
SELECT - 6, - CAST( - 74 AS SIGNED ) + - + 18 + + 39 AS col0
----
-6
95

skipif mysql # not compatible
query II rowsort label-4239
SELECT - 6, - CAST ( - 74 AS INTEGER ) + - + 18 + + 39 AS col0
----
-6
95

query I rowsort
SELECT ALL 94 + ( - 44 ) + 17 + - + 92 AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4241
SELECT 55 + + 73 DIV + COALESCE ( 25, + 7 ) + - MIN( - 43 )
----
100

skipif mysql # not compatible
query I rowsort label-4241
SELECT 55 + + 73 / + COALESCE ( 25, + 7 ) + - MIN ( - 43 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT - + MAX( DISTINCT 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4242
SELECT - + MAX ( DISTINCT 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL - NULLIF ( - 62, 17 + MIN( DISTINCT - - 51 ) ) col0
----
62

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - NULLIF ( - 62, 17 + MIN ( DISTINCT - - 51 ) ) col0
----
62

query I rowsort
SELECT ALL 33 * - 96 + 56 col2
----
-3112

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT 37 - 33 + - + COUNT( * ) * 74
----
-70

skipif mysql # not compatible
query I rowsort label-4245
SELECT 37 - 33 + - + COUNT ( * ) * 74
----
-70

query I rowsort
SELECT DISTINCT 33 * 80
----
2640

query I rowsort
SELECT DISTINCT 4 * + 65 + + 23 * + ( 62 ) + - 85 + - 43 * + 26 col2
----
483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4248
SELECT - 62 DIV - + 26 + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 62 / - + 26 + COUNT ( * ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4249
SELECT ALL + 12 * - 22 / + CASE + 67 WHEN - CAST( NULL AS DECIMAL ) THEN COUNT( * ) + + 44 WHEN + CASE 71 WHEN AVG ( + + 34 ) THEN - 66 END THEN NULL END + - 96 + - COUNT( * ) - CAST( NULL AS SIGNED ) * - + 28 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + 12 * - 22 / + CASE + 67 WHEN - CAST ( NULL AS REAL ) THEN COUNT ( * ) + + 44 WHEN + CASE 71 WHEN AVG ( + + 34 ) THEN - 66 END THEN NULL END + - 96 + - COUNT ( * ) - CAST ( NULL AS INTEGER ) * - + 28 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT 16 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT 16 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 30 * - 28 col0
----
-840

query I rowsort
SELECT ALL + 12 * + 78 AS col1
----
936

query I rowsort
SELECT + 57 - - 49
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT + CAST( NULL AS SIGNED ) * + - 71 * + COUNT( DISTINCT - - 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT + CAST ( NULL AS INTEGER ) * + - 71 * + COUNT ( DISTINCT - - 85 ) AS col2
----
NULL

query II rowsort
SELECT ALL + - 63 AS col2, - 26 AS col0
----
-63
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL - COUNT( * ) * + CASE - 98 WHEN + 36 THEN - 43 ELSE NULL END / - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - COUNT ( * ) * + CASE - 98 WHEN + 36 THEN - 43 ELSE NULL END / - 25 AS col2
----
NULL

query I rowsort
SELECT - 49 * + + 14 * 85
----
-58310

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT - 30 * ( 77 ) + + + COUNT( * )
----
-2309

skipif mysql # not compatible
query I rowsort label-4258
SELECT - 30 * ( 77 ) + + + COUNT ( * )
----
-2309

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT SUM( - - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4259
SELECT SUM ( - - 96 ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT - 84 + + + CAST( NULL AS SIGNED ) + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT - 84 + + + CAST ( NULL AS INTEGER ) + + 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4261
SELECT - 2 / + + CASE - 58 WHEN + 47 + CAST( + CASE - 22 WHEN - + 34 THEN NULL WHEN - + 63 THEN NULL ELSE - MAX( ALL 38 ) + + + CAST( - NULLIF ( + 1, - 9 ) AS SIGNED ) END AS DECIMAL ) + - - 58 + 93 * 64 * + + 41 * 53 * - 74 + + - 37 * + - CASE + 45 WHEN + CAST( NULL AS SIGNED ) THEN + CASE COALESCE ( + 78, 44, 23 ) WHEN 36 THEN - 47 * 19 - - 42 WHEN + 46 THEN 60 * - 74 END / + COALESCE ( - CAST( NULL AS SIGNED ), ( 52 ), COUNT( 19 ) * 38 ) ELSE COUNT( * ) END THEN 15 / - 21 + 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT - 2 / + + CASE - 58 WHEN + 47 + CAST ( + CASE - 22 WHEN - + 34 THEN NULL WHEN - + 63 THEN NULL ELSE - MAX ( ALL 38 ) + + + CAST ( - NULLIF ( + 1, - 9 ) AS INTEGER ) END AS REAL ) + - - 58 + 93 * 64 * + + 41 * 53 * - 74 + + - 37 * + - CASE + 45 WHEN + CAST ( NULL AS INTEGER ) THEN + CASE COALESCE ( + 78, 44, 23 ) WHEN 36 THEN - 47 * 19 - - 42 WHEN + 46 THEN 60 * - 74 END / + COALESCE ( - CAST ( NULL AS INTEGER ), ( 52 ), COUNT ( 19 ) * 38 ) ELSE COUNT ( * ) END THEN 15 / - 21 + 28 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 35 * - 4 AS col0
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT + 13 + 85 DIV + 23
----
16

skipif mysql # not compatible
query I rowsort label-4263
SELECT + 13 + 85 / + 23
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4264
SELECT 28 AS col0, CASE - 35 WHEN 33 THEN + 6 WHEN - 30 * 9 THEN - 7 + + 20 - 94 + 94 WHEN + COUNT( * ) / + + 36 * - 94 THEN NULL ELSE NULL END * - - 22 + + + 69 AS col1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-4264
SELECT 28 AS col0, CASE - 35 WHEN 33 THEN + 6 WHEN - 30 * 9 THEN - 7 + + 20 - 94 + 94 WHEN + COUNT ( * ) / + + 36 * - 94 THEN NULL ELSE NULL END * - - 22 + + + 69 AS col1
----
28
NULL

query I rowsort
SELECT + 90 + - 27 AS col0
----
63

query I rowsort
SELECT - 48 * + 8
----
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT - 66 DIV - - 5 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4267
SELECT - 66 / - - 5 AS col2
----
-13

query I rowsort
SELECT ALL 72 + - 80 AS col0
----
-8

query I rowsort
SELECT ALL + 44 + + 47 AS col0
----
91

query I rowsort
SELECT DISTINCT NULLIF ( + + 90, - 72 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL + 35 + - 17 - + MAX( DISTINCT + 41 ) + 36 * - 91 * MIN( ALL - + 37 ) + + COUNT( + 4 ) * - 30
----
121159

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + 35 + - 17 - + MAX ( DISTINCT + 41 ) + 36 * - 91 * MIN ( ALL - + 37 ) + + COUNT ( + 4 ) * - 30
----
121159

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT ALL - 72 DIV - 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL - 72 / - 35 AS col0
----
2

query I rowsort
SELECT - 36 + - 86 AS col1
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4274
SELECT DISTINCT - 90 / + CAST( NULL AS SIGNED ) * + - 9 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - 90 / + CAST ( NULL AS INTEGER ) * + - 9 * - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT - NULLIF ( - - MIN( DISTINCT + + ( - - 21 ) ), + ( + 19 ) * - + 39 + + 39 - - 52 ) + + - 92 * + + 53
----
-4897

skipif mysql # not compatible
query I rowsort label-4275
SELECT - NULLIF ( - - MIN ( DISTINCT + + ( - - 21 ) ), + ( + 19 ) * - + 39 + + 39 - - 52 ) + + - 92 * + + 53
----
-4897

query I rowsort
SELECT - 82 * - 60
----
4920

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT 44 col0, COUNT( * )
----
44
1

skipif mysql # not compatible
query II rowsort label-4277
SELECT 44 col0, COUNT ( * )
----
44
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4278
SELECT ALL + 73 DIV + - ( - - 32 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL + 73 / + - ( - - 32 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - NULLIF ( + - MAX( ALL + 88 ), 83 ) - 73
----
15

skipif mysql # not compatible
query I rowsort label-4279
SELECT - NULLIF ( + - MAX ( ALL + 88 ), 83 ) - 73
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4280
SELECT DISTINCT + 55 + COUNT( * ) * - NULLIF ( - 60, + - 99 + + MIN( - 17 ) + + CAST( + + 91 AS SIGNED ) + - 26 + - 87 * - 61 / + 90 - - - 74 + + 90 - 49 * COUNT( * ) * + NULLIF ( - 17, 3 * - 90 * 60 ) ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + 55 + COUNT ( * ) * - NULLIF ( - 60, + - 99 + + MIN ( - 17 ) + + CAST ( + + 91 AS INTEGER ) + - 26 + - 87 * - 61 / + 90 - - - 74 + + 90 - 49 * COUNT ( * ) * + NULLIF ( - 17, 3 * - 90 * 60 ) ) AS col1
----
115

query I rowsort
SELECT ALL CASE + 62 WHEN 53 THEN 54 END AS col0
----
NULL

query II rowsort
SELECT - - 75 AS col0, 54 AS col1
----
75
54

onlyif mysql # DIV for integer division: 
query II rowsort label-4283
SELECT ALL 25 AS col0, 15 DIV + 52 * + 2 * + 54
----
25
0

skipif mysql # not compatible
query II rowsort label-4283
SELECT ALL 25 AS col0, 15 / + 52 * + 2 * + 54
----
25
0

query I rowsort
SELECT DISTINCT - + ( + - 38 ) * + - ( + 84 ) AS col0
----
-3192

query I rowsort
SELECT - + 69 * 61 + 2
----
-4207

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT - 35 DIV 20 * - 45 + 97 + + 84 AS col0
----
226

skipif mysql # not compatible
query I rowsort label-4286
SELECT - 35 / 20 * - 45 + 97 + + 84 AS col0
----
226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4287
SELECT - - 53 DIV 17 + COALESCE ( - - 53, + 47, + CASE - AVG ( + 66 ) WHEN - 79 * + ( + 86 ) + + - 95 DIV - 98 * + - 73 THEN NULL WHEN + ( - + 7 ) THEN + COUNT( * ) END, + + 43 + + + SUM( ( - 9 ) ) - 71 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-4287
SELECT - - 53 / 17 + COALESCE ( - - 53, + 47, + CASE - AVG ( + 66 ) WHEN - 79 * + ( + 86 ) + + - 95 / - 98 * + - 73 THEN NULL WHEN + ( - + 7 ) THEN + COUNT ( * ) END, + + 43 + + + SUM ( ( - 9 ) ) - 71 ) col1
----
56

query I rowsort
SELECT + 28 * NULLIF ( + 53, 45 ) AS col2
----
1484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT - COUNT( * ) DIV 20 + - - 54 * 14 + 10 AS col0
----
766

skipif mysql # not compatible
query I rowsort label-4289
SELECT - COUNT ( * ) / 20 + - - 54 * 14 + 10 AS col0
----
766

query I rowsort
SELECT + 94 * - - 59
----
5546

query I rowsort
SELECT ALL 52 * + 90 AS col0
----
4680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT + COUNT( * ) AS col1, + 82 AS col2
----
1
82

skipif mysql # not compatible
query II rowsort label-4293
SELECT + COUNT ( * ) AS col1, + 82 AS col2
----
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT + - 45 * - MAX( DISTINCT 3 ) * ( COALESCE ( - + 59, - 60 * 22 * - 73 ) )
----
-7965

skipif mysql # not compatible
query I rowsort label-4294
SELECT + - 45 * - MAX ( DISTINCT 3 ) * ( COALESCE ( - + 59, - 60 * 22 * - 73 ) )
----
-7965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT 32 * - NULLIF ( 78, 4 * - CAST( - + 75 AS SIGNED ) )
----
-2496

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT 32 * - NULLIF ( 78, 4 * - CAST ( - + 75 AS INTEGER ) )
----
-2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT + CAST( + NULLIF ( + COUNT( * ), 14 / 48 + + 79 - + - ( CAST( NULL AS SIGNED ) ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4296
SELECT + CAST ( + NULLIF ( + COUNT ( * ), 14 / 48 + + 79 - + - ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL + COUNT( * ) * 27 + + - 47
----
-20

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + COUNT ( * ) * 27 + + - 47
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4298
SELECT CASE + CAST( 73 AS SIGNED ) WHEN + + CAST( NULL AS SIGNED ) + + COUNT( + 6 ) THEN COUNT( * ) WHEN + CAST( NULL AS SIGNED ) + - + 65 THEN + - 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT CASE + CAST ( 73 AS INTEGER ) WHEN + + CAST ( NULL AS INTEGER ) + + COUNT ( + 6 ) THEN COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) + - + 65 THEN + - 61 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT - CAST( + + 84 AS SIGNED ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-4299
SELECT - CAST ( + + 84 AS INTEGER ) col1
----
-84

query I rowsort
SELECT + 95 - + - 76 + - 59 AS col2
----
112

query I rowsort
SELECT ALL 6 * + COALESCE ( - 2, + + 81, + 3 * + - 2 ) + - COALESCE ( - - 75, - 6 )
----
-87

query I rowsort
SELECT + 24 * - 38
----
-912

query II rowsort
SELECT - ( 96 ) AS col2, 82 AS col0
----
-96
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4304
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col1, 14 + NULLIF ( - 70, + - 77 * + 89 )
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-4304
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1, 14 + NULLIF ( - 70, + - 77 * + 89 )
----
NULL
-56

query I rowsort
SELECT DISTINCT + 32 + - 83 + + CASE + 73 WHEN + 3 THEN + 87 WHEN + 89 THEN NULL ELSE NULL END * 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL + MIN( + + 90 ) - - 70
----
160

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + MIN ( + + 90 ) - - 70
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4307
SELECT ALL ( 27 ) AS col2, 77 + 95 + + CASE - NULLIF ( COUNT( * ), COUNT( * ) ) WHEN - NULLIF ( - - 31, - 53 + + - 85 * CAST( - 79 AS SIGNED ) + 82 ) * + 30 + 67 + - 66 THEN NULL ELSE - COUNT( * ) + + 77 END * + 42 * 91 AS col1
----
27
290644

skipif mysql # not compatible
query II rowsort label-4307
SELECT ALL ( 27 ) AS col2, 77 + 95 + + CASE - NULLIF ( COUNT ( * ), COUNT ( * ) ) WHEN - NULLIF ( - - 31, - 53 + + - 85 * CAST ( - 79 AS INTEGER ) + 82 ) * + 30 + 67 + - 66 THEN NULL ELSE - COUNT ( * ) + + 77 END * + 42 * 91 AS col1
----
27
290644

query I rowsort
SELECT DISTINCT ( - + 80 )
----
-80

query II rowsort
SELECT DISTINCT 17 - - 51, 57 * + 75 AS col0
----
68
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT - 67 * + - SUM( 5 ) col2
----
335

skipif mysql # not compatible
query I rowsort label-4310
SELECT - 67 * + - SUM ( 5 ) col2
----
335

query I rowsort
SELECT + 29 - + 76 * - + 5 AS col2
----
409

onlyif mysql # DIV for integer division: 
query II rowsort label-4312
SELECT + - 98 * 97 DIV 21, 40 DIV + 90 col0
----
-452
0

skipif mysql # not compatible
query II rowsort label-4312
SELECT + - 98 * 97 / 21, 40 / + 90 col0
----
-452
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT - - 93 * + COUNT( * ) + + + 71 + - - 81 AS col1
----
245

skipif mysql # not compatible
query I rowsort label-4313
SELECT - - 93 * + COUNT ( * ) + + + 71 + - - 81 AS col1
----
245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4314
SELECT ALL + + ( - + COUNT( - 8 ) ) DIV - 3 - + 34
----
-34

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL + + ( - + COUNT ( - 8 ) ) / - 3 - + 34
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + 43 - + 95 + - - 5 * COUNT( * ) * 44 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-4315
SELECT + 43 - + 95 + - - 5 * COUNT ( * ) * 44 AS col2
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4316
SELECT - COUNT( * ) DIV + + 72 + ( - 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4316
SELECT - COUNT ( * ) / + + 72 + ( - 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT - 56 + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-4317
SELECT - 56 + - COUNT ( * )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT DISTINCT CAST( 74 AS SIGNED ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT CAST ( 74 AS INTEGER ) AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4319
SELECT CASE + CAST( + + 34 AS SIGNED ) WHEN + COUNT( * ) * - 92 / 8 * - 23 * - 71 THEN NULL WHEN - 88 THEN - ( + 19 ) / 47 / + - 20 + 93 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT CASE + CAST ( + + 34 AS INTEGER ) WHEN + COUNT ( * ) * - 92 / 8 * - 23 * - 71 THEN NULL WHEN - 88 THEN - ( + 19 ) / 47 / + - 20 + 93 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 38 * + 54
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT COUNT( - 2 ) - 51 + 58 * + - ( - + 18 ) + - - NULLIF ( + 32, + - 79 ) AS col1
----
1026

skipif mysql # not compatible
query I rowsort label-4321
SELECT COUNT ( - 2 ) - 51 + 58 * + - ( - + 18 ) + - - NULLIF ( + 32, + - 79 ) AS col1
----
1026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT DISTINCT - + 74 * CAST( 71 AS SIGNED ) AS col0
----
-5254

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - + 74 * CAST ( 71 AS INTEGER ) AS col0
----
-5254

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT - 3 * 11 DIV 57 - 26
----
-26

skipif mysql # not compatible
query I rowsort label-4323
SELECT - 3 * 11 / 57 - 26
----
-26

query II rowsort
SELECT ALL - ( 6 ) * + - 85 AS col1, + 41 + + 64 + 84 AS col2
----
510
189

query I rowsort
SELECT 17 * + 23
----
391

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT + 15 DIV 92 + - 46 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4326
SELECT + 15 / 92 + - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT + - ( - 65 ) + + COUNT( * ) - MIN( 30 ) + - 16 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT + - ( - 65 ) + + COUNT ( * ) - MIN ( 30 ) + - 16 AS col0
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4328
SELECT ALL - 11 + CAST( NULL AS DECIMAL ) - 76 * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL - 11 + CAST ( NULL AS REAL ) - 76 * + 97
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT ( 26 ) * + 18 * 60 + + 29 - - - 77 DIV + 12
----
28103

skipif mysql # not compatible
query I rowsort label-4329
SELECT ( 26 ) * + 18 * 60 + + 29 - - - 77 / + 12
----
28103

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + COUNT( * ) * + 31 - ( - - 65 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4330
SELECT + COUNT ( * ) * + 31 - ( - - 65 ) AS col2
----
-34

query I rowsort
SELECT DISTINCT + ( 14 ) + + - 26 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT 78 + - - COUNT( ALL 98 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT 78 + - - COUNT ( ALL 98 ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT DISTINCT - CAST( + 95 AS SIGNED ) + + + 4 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT - CAST ( + 95 AS INTEGER ) + + + 4 AS col2
----
-91

query I rowsort
SELECT ALL 54 * + 6
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL 13 + 49 + + 43 + 8 + - COALESCE ( - 25, - COUNT( * ), 49 )
----
138

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL 13 + 49 + + 43 + 8 + - COALESCE ( - 25, - COUNT ( * ), 49 )
----
138

query I rowsort
SELECT 81 * + ( + 80 ) + 59 col0
----
6539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT DISTINCT + CAST( - + CASE + 51 WHEN + + 40 THEN - ( 30 ) WHEN + - 43 THEN NULL ELSE NULL END AS SIGNED ) * + - 37 / + CASE - 40 WHEN + 3 * + CASE + NULLIF ( 28, 92 / 82 ) WHEN - + CAST( NULL AS SIGNED ) THEN 23 + + 32 WHEN - + 15 * 12 THEN NULL ELSE NULL END * + CAST( NULL AS SIGNED ) / + + ( 65 ) * + CASE + 72 WHEN + + 30 * - 41 * + 21 THEN 73 WHEN - 1 * + 42 THEN NULL ELSE NULL END + 20 * - 84 + AVG ( DISTINCT - 45 ) THEN - 41 WHEN NULLIF ( 27, 69 ) THEN 14 * + 11 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT + CAST ( - + CASE + 51 WHEN + + 40 THEN - ( 30 ) WHEN + - 43 THEN NULL ELSE NULL END AS INTEGER ) * + - 37 / + CASE - 40 WHEN + 3 * + CASE + NULLIF ( 28, 92 / 82 ) WHEN - + CAST ( NULL AS INTEGER ) THEN 23 + + 32 WHEN - + 15 * 12 THEN NULL ELSE NULL END * + CAST ( NULL AS INTEGER ) / + + ( 65 ) * + CASE + 72 WHEN + + 30 * - 41 * + 21 THEN 73 WHEN - 1 * + 42 THEN NULL ELSE NULL END + 20 * - 84 + AVG ( DISTINCT - 45 ) THEN - 41 WHEN NULLIF ( 27, 69 ) THEN 14 * + 11 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4338
SELECT + 84 * CAST( NULL AS SIGNED ) + 53 AS col2, 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-4338
SELECT + 84 * CAST ( NULL AS INTEGER ) + 53 AS col2, 48
----
NULL
48

query II rowsort
SELECT + 84 AS col0, - 96 * 84
----
84
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL 18 * - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL 18 * - COUNT ( * ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL 77 + - + NULLIF ( 95, - - AVG ( - 85 ) + MIN( 93 ) + ( + 44 ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL 77 + - + NULLIF ( 95, - - AVG ( - 85 ) + MIN ( 93 ) + ( + 44 ) ) AS col0
----
-18

query II rowsort
SELECT + 37, + 96 AS col1
----
37
96

query I rowsort
SELECT 55 + - 77 AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4344
SELECT CASE + + 76 WHEN - - 88 + - NULLIF ( COUNT( * ), 16 ) + - + 57 + 82 THEN NULL ELSE 14 END DIV - + MAX( ALL 40 ) * NULLIF ( + + 19, - 12 ) * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4344
SELECT CASE + + 76 WHEN - - 88 + - NULLIF ( COUNT ( * ), 16 ) + - + 57 + 82 THEN NULL ELSE 14 END / - + MAX ( ALL 40 ) * NULLIF ( + + 19, - 12 ) * + COUNT ( * ) AS col0
----
0

query II rowsort
SELECT ALL 96, 92 col2
----
96
92

query II rowsort
SELECT ALL 6 AS col2, + 65
----
6
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT 90 + + 70 * + COALESCE ( + + 16, - 16 ) + - - 57 - - + 80 - + + COUNT( - - 94 ) - - - COUNT( DISTINCT + 82 ) + - COUNT( * ) col0
----
1344

skipif mysql # not compatible
query I rowsort label-4347
SELECT 90 + + 70 * + COALESCE ( + + 16, - 16 ) + - - 57 - - + 80 - + + COUNT ( - - 94 ) - - - COUNT ( DISTINCT + 82 ) + - COUNT ( * ) col0
----
1344

query I rowsort
SELECT 4 * - + 79 + - + 66 * 3
----
-514

query I rowsort
SELECT 91 * + 99
----
9009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4350
SELECT 35 + COUNT( * ) DIV - 24 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4350
SELECT 35 + COUNT ( * ) / - 24 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT 84 * 14 * + + COUNT( * ) + + 33 AS col1
----
1209

skipif mysql # not compatible
query I rowsort label-4351
SELECT 84 * 14 * + + COUNT ( * ) + + 33 AS col1
----
1209

query I rowsort
SELECT - 1 * - 99 + - + ( 62 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT + NULLIF ( - 50, - CASE - 75 WHEN NULLIF ( - 15, + 5 ) * + 99 + + - 24 + - 26 + + 3 THEN + COUNT( - 46 ) END ) + - + 98 * + 38 + - 94
----
-3868

skipif mysql # not compatible
query I rowsort label-4353
SELECT + NULLIF ( - 50, - CASE - 75 WHEN NULLIF ( - 15, + 5 ) * + 99 + + - 24 + - 26 + + 3 THEN + COUNT ( - 46 ) END ) + - + 98 * + 38 + - 94
----
-3868

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + 67 * + 35 + - COUNT( DISTINCT 6 ) * 79 * 12 col1
----
1397

skipif mysql # not compatible
query I rowsort label-4354
SELECT + 67 * + 35 + - COUNT ( DISTINCT 6 ) * 79 * 12 col1
----
1397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT ALL - CAST( + 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - CAST ( + 66 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - 76 + + MIN( ALL ( 31 ) ) * 19
----
513

skipif mysql # not compatible
query I rowsort label-4356
SELECT - 76 + + MIN ( ALL ( 31 ) ) * 19
----
513

query I rowsort
SELECT DISTINCT 46 * - 6 col2
----
-276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT ALL - 1 + - + 32 + + CASE - 67 WHEN + 1 + + 86 + - - COALESCE ( CASE + 56 WHEN AVG ( + 13 ) THEN + ( + COUNT( * ) ) * + + MAX( ALL + 86 ) * - COUNT( * ) - - COUNT( * ) + + + ( - 85 ) / 33 * 33 + - - 50 WHEN + + COUNT( DISTINCT - - 76 ) / + NULLIF ( ( + + 43 ), COALESCE ( + 58, + 9 + 81 ) ) + SUM( ALL CAST( NULL AS SIGNED ) ) THEN + 78 + 32 * + 73 ELSE NULL END, COALESCE ( COUNT( * ), - ( 12 ), COUNT( * ) + + CASE + 50 WHEN - 39 THEN 81 ELSE NULL END, - 24 ) ) THEN 10 + 57 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL - 1 + - + 32 + + CASE - 67 WHEN + 1 + + 86 + - - COALESCE ( CASE + 56 WHEN AVG ( + 13 ) THEN + ( + COUNT ( * ) ) * + + MAX ( ALL + 86 ) * - COUNT ( * ) - - COUNT ( * ) + + + ( - 85 ) / 33 * 33 + - - 50 WHEN + + COUNT ( DISTINCT - - 76 ) / + NULLIF ( ( + + 43 ), COALESCE ( + 58, + 9 + 81 ) ) + SUM ( ALL CAST ( NULL AS INTEGER ) ) THEN + 78 + 32 * + 73 ELSE NULL END, COALESCE ( COUNT ( * ), - ( 12 ), COUNT ( * ) + + CASE + 50 WHEN - 39 THEN 81 ELSE NULL END, - 24 ) ) THEN 10 + 57 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT 83 + + - 44 + 16 + + 40 * ( - 58 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT 83 + + - 44 + 16 + + 40 * ( - 58 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT - CAST( NULL AS SIGNED ) / 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT - CAST ( NULL AS INTEGER ) / 54 AS col2
----
NULL

query I rowsort
SELECT - 76 * + + 70 - + 67 + + 14 + - 24 + - 92 * - 2 AS col0
----
-5213

query II rowsort
SELECT 43 AS col1, - 52
----
43
-52

query I rowsort
SELECT 53 + + ( + - 6 ) col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT 33 * - 86 * - CAST( NULL AS SIGNED ) * + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT 33 * - 86 * - CAST ( NULL AS INTEGER ) * + 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL MIN( DISTINCT + 42 ) + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL MIN ( DISTINCT + 42 ) + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT + 3 + - - MAX( + + 39 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT + 3 + - - MAX ( + + 39 ) col0
----
42

query I rowsort
SELECT ALL - 49 + + 55 * - 30
----
-1699

query I rowsort
SELECT ALL + 85 + 92
----
177

query I rowsort
SELECT 59 * 55
----
3245

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT 65 + + COALESCE ( ( MAX( DISTINCT + - 14 ) ), - + CASE + 95 WHEN - + 30 THEN + 24 * + - 34 * - 53 + - 26 END, MIN( + 31 ) )
----
51

skipif mysql # not compatible
query I rowsort label-4370
SELECT 65 + + COALESCE ( ( MAX ( DISTINCT + - 14 ) ), - + CASE + 95 WHEN - + 30 THEN + 24 * + - 34 * - 53 + - 26 END, MIN ( + 31 ) )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT DISTINCT + 4 * + ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) + MIN( DISTINCT - ( + - 15 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + 4 * + ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + MIN ( DISTINCT - ( + - 15 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 86 - 98 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT COUNT( + 79 ) * - 26 * + 2 * - 28
----
1456

skipif mysql # not compatible
query I rowsort label-4373
SELECT COUNT ( + 79 ) * - 26 * + 2 * - 28
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT 58 - + 40 - + 43 * + - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4374
SELECT 58 - + 40 - + 43 * + - COUNT ( * ) AS col1
----
61

query I rowsort
SELECT + 54 * 47 + + NULLIF ( - 33, + - 11 ) col2
----
2505

query I rowsort
SELECT ALL + 86 - + + 40
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL 0 * MIN( ALL 79 )
----
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL 0 * MIN ( ALL 79 )
----
0

query I rowsort
SELECT 64 * 48 * - - 72
----
221184

query I rowsort
SELECT 99 * - 34
----
-3366

query I rowsort
SELECT ALL - 42 * - - 13 AS col2
----
-546

query I rowsort
SELECT - 2 * - - 98 AS col1
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT + MIN( + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4382
SELECT + MIN ( + 0 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT + 85 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-4383
SELECT + 85 / - 62
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + 25 * - SUM( COALESCE ( - - 92, + 90 ) ) AS col2
----
-2300

skipif mysql # not compatible
query I rowsort label-4384
SELECT + 25 * - SUM ( COALESCE ( - - 92, + 90 ) ) AS col2
----
-2300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4385
SELECT - NULLIF ( + COUNT( * ), - 71 * + 36 * - 30 + - 4 ) + - MAX( - 94 ) + - + 79 DIV - COUNT( * ) * + + COUNT( * ) AS col0
----
172

skipif mysql # not compatible
query I rowsort label-4385
SELECT - NULLIF ( + COUNT ( * ), - 71 * + 36 * - 30 + - 4 ) + - MAX ( - 94 ) + - + 79 / - COUNT ( * ) * + + COUNT ( * ) AS col0
----
172

query II rowsort
SELECT + + 90 * + 46 col1, - 76 + + 10
----
4140
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT ALL + + 16 * - CAST( - 84 AS SIGNED ) AS col1
----
1344

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + + 16 * - CAST ( - 84 AS INTEGER ) AS col1
----
1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4388
SELECT - COALESCE ( + 76, + + 18 DIV + 25 + + COUNT( * ) + ( + 47 ) + - 1 )
----
-76

skipif mysql # not compatible
query I rowsort label-4388
SELECT - COALESCE ( + 76, + + 18 / + 25 + + COUNT ( * ) + ( + 47 ) + - 1 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4389
SELECT DISTINCT - 71 + + 39 * 10 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT - 71 + + 39 * 10 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 2 + 21 + 74 AS col2
----
97

query I rowsort
SELECT ALL + 44 + - 43 col1
----
1

query I rowsort
SELECT + + 38 - - 0 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + 1 * - COUNT( DISTINCT - CASE 63 WHEN + 83 * + ( + - 97 ) * + 23 THEN NULL WHEN - + 99 THEN NULL WHEN + 46 THEN NULL ELSE + 78 END ) * + 37 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4393
SELECT + 1 * - COUNT ( DISTINCT - CASE 63 WHEN + 83 * + ( + - 97 ) * + 23 THEN NULL WHEN - + 99 THEN NULL WHEN + 46 THEN NULL ELSE + 78 END ) * + 37 AS col1
----
-37

query I rowsort
SELECT + - 64 + - 7 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT + + MIN( DISTINCT + 9 ) + + ( - 70 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4395
SELECT + + MIN ( DISTINCT + 9 ) + + ( - 70 ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL - CAST( NULL AS SIGNED ) * + 89 + + 52 * + + 13 + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - CAST ( NULL AS INTEGER ) * + 89 + + 52 * + + 13 + 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT + CAST( - NULLIF ( + 9, - + 62 ) AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4397
SELECT + CAST ( - NULLIF ( + 9, - + 62 ) AS INTEGER ) AS col2
----
-9

query II rowsort
SELECT ALL 14 * - 43 + - - 51 AS col0, + 10 - + + 94 AS col2
----
-551
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT - COUNT( * ) * 51 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT - COUNT ( * ) * 51 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT ALL 8 * - + CAST( NULL AS SIGNED ) * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL 8 * - + CAST ( NULL AS INTEGER ) * + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT + 31 * COUNT( * ) col1
----
31

skipif mysql # not compatible
query I rowsort label-4401
SELECT + 31 * COUNT ( * ) col1
----
31

query I rowsort
SELECT ALL 51 * 73 * + 44 - + 89 AS col0
----
163723

query I rowsort
SELECT - 89 * + - 97
----
8633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT + MIN( DISTINCT + 59 ) DIV 37 + 25
----
26

skipif mysql # not compatible
query I rowsort label-4404
SELECT + MIN ( DISTINCT + 59 ) / 37 + 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + 88 * - MIN( - 52 ) - + 41 + + - COUNT( * ) * 92 AS col1
----
4443

skipif mysql # not compatible
query I rowsort label-4405
SELECT + 88 * - MIN ( - 52 ) - + 41 + + - COUNT ( * ) * 92 AS col1
----
4443

query I rowsort
SELECT + ( - + 66 ) AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT - 36 + - + 29 + 10 + + 11 DIV 88 * 54
----
-55

skipif mysql # not compatible
query I rowsort label-4407
SELECT - 36 + - + 29 + 10 + + 11 / 88 * 54
----
-55

query I rowsort
SELECT NULLIF ( + 40, - 41 ) AS col1
----
40

query I rowsort
SELECT ALL + 55 * - 83 AS col2
----
-4565

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4410
SELECT - CAST( NULL AS SIGNED ) * + 6 * + + 84 AS col0, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-4410
SELECT - CAST ( NULL AS INTEGER ) * + 6 * + + 84 AS col0, 43
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + NULLIF ( NULLIF ( + + 82, - 39 + - 47 + - + AVG ( - 9 ) - MIN( ALL + 97 ) ), - 29 * + 52 + 51 + - 2 )
----
82

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + NULLIF ( NULLIF ( + + 82, - 39 + - 47 + - + AVG ( - 9 ) - MIN ( ALL + 97 ) ), - 29 * + 52 + 51 + - 2 )
----
82

query II rowsort
SELECT DISTINCT + 22 AS col0, 36 AS col2
----
22
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4413
SELECT 55 * + CAST( ( + COUNT( * ) ) AS SIGNED ) + - + 96 + - - 50 DIV + 93 col0
----
-41

skipif mysql # not compatible
query I rowsort label-4413
SELECT 55 * + CAST ( ( + COUNT ( * ) ) AS INTEGER ) + - + 96 + - - 50 / + 93 col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4414
SELECT ALL - MIN( ALL - - 81 ) * 67, + 29 AS col1
----
-5427
29

skipif mysql # not compatible
query II rowsort label-4414
SELECT ALL - MIN ( ALL - - 81 ) * 67, + 29 AS col1
----
-5427
29

query I rowsort
SELECT - 94 * 44 * + 15 AS col0
----
-62040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4416
SELECT - 99 * + + COALESCE ( - CAST( 37 AS SIGNED ), - + 77 - + 32, CAST( NULL AS SIGNED ) * - ( - MAX( 78 ) ) + + - 25 ) * + 23 * + COUNT( * )
----
84249

skipif mysql # not compatible
query I rowsort label-4416
SELECT - 99 * + + COALESCE ( - CAST ( 37 AS INTEGER ), - + 77 - + 32, CAST ( NULL AS INTEGER ) * - ( - MAX ( 78 ) ) + + - 25 ) * + 23 * + COUNT ( * )
----
84249

query I rowsort
SELECT - 11 + - 69 AS col2
----
-80

query II rowsort
SELECT 80 AS col0, + 12
----
80
12

query I rowsort
SELECT 19 * + 37 + + 46 + 37 AS col0
----
786

query I rowsort
SELECT ALL - + 67 + + + 60 AS col0
----
-7

query I rowsort
SELECT DISTINCT - CASE + - 22 WHEN - - 51 + + - 98 + + 70 THEN NULL ELSE - 12 END AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - - 84 * 27 + 18 + - COUNT( * ) AS col0
----
2285

skipif mysql # not compatible
query I rowsort label-4422
SELECT - - 84 * 27 + 18 + - COUNT ( * ) AS col0
----
2285

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT - COUNT( 99 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - COUNT ( 99 ) col0
----
-1

query I rowsort
SELECT ALL + 73 + - 78
----
-5

query I rowsort
SELECT ALL - 15 + NULLIF ( 16, - 27 )
----
1

query I rowsort
SELECT + + 4 + + 27 AS col1
----
31

query I rowsort
SELECT - + 93 * - 41 - - 11 AS col2
----
3824

query I rowsort
SELECT ALL - 23 * 97 col2
----
-2231

query I rowsort
SELECT ALL 91 + + 13 AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT DISTINCT + CAST( + 7 AS SIGNED ) col1
----
7

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + CAST ( + 7 AS INTEGER ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT + COUNT( * ) + + 42 * 32
----
1345

skipif mysql # not compatible
query I rowsort label-4431
SELECT + COUNT ( * ) + + 42 * 32
----
1345

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - MAX( - 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4432
SELECT - MAX ( - 54 ) AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT ALL 78 DIV - + 37 - - 17 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL 78 / - + 37 - - 17 AS col1
----
15

query I rowsort
SELECT - 8 * - 49 col1
----
392

query I rowsort
SELECT + 13 * - 17
----
-221

query I rowsort
SELECT ALL 54 * + + 86 * 73
----
339012

query II rowsort
SELECT ALL + 94 AS col0, - 42 AS col2
----
94
-42

query II rowsort
SELECT + 77 * 33 * - NULLIF ( + 31, + + 88 * + - 85 ), + 66 AS col0
----
-78771
66

query I rowsort
SELECT DISTINCT 1 * + - 53 AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4440
SELECT ALL + 10 AS col2, 4 - CAST( - - NULLIF ( - - 71, 81 ) AS SIGNED ) AS col2
----
10
-67

skipif mysql # not compatible
query II rowsort label-4440
SELECT ALL + 10 AS col2, 4 - CAST ( - - NULLIF ( - - 71, 81 ) AS INTEGER ) AS col2
----
10
-67

query I rowsort
SELECT DISTINCT 53 * - ( + 61 ) AS col1
----
-3233

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT + ( 49 ), + 69 + + - 10 - - COUNT( * ) AS col0
----
49
60

skipif mysql # not compatible
query II rowsort label-4442
SELECT + ( 49 ), + 69 + + - 10 - - COUNT ( * ) AS col0
----
49
60

query I rowsort
SELECT + 24 + ( + 68 )
----
92

query I rowsort
SELECT - 82 * + - 74 AS col2
----
6068

query I rowsort
SELECT + 70 - 24 - - - 52
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4446
SELECT + 1, ( - COUNT( * ) ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-4446
SELECT + 1, ( - COUNT ( * ) ) AS col2
----
1
-1

query I rowsort
SELECT DISTINCT + 97 + + - 12 * 10
----
-23

query II rowsort
SELECT ALL - 28 AS col2, + 70 AS col0
----
-28
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT - ( 65 ) DIV 32 * + - 82 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-4449
SELECT - ( 65 ) / 32 * + - 82 AS col0
----
164

query I rowsort
SELECT DISTINCT + 38 + + 79 col1
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4451
SELECT ALL - 69 col1, CAST( - - 43 AS SIGNED ) + + 68, - + CAST( - COALESCE ( CASE 25 WHEN + + COUNT( * ) - - + 1 THEN 0 END, + 24 ) AS SIGNED ) col2
----
-69
111
24

skipif mysql # not compatible
query III rowsort label-4451
SELECT ALL - 69 col1, CAST ( - - 43 AS INTEGER ) + + 68, - + CAST ( - COALESCE ( CASE 25 WHEN + + COUNT ( * ) - - + 1 THEN 0 END, + 24 ) AS INTEGER ) col2
----
-69
111
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL + CASE 38 WHEN + 37 - ( + - NULLIF ( + 12, + 28 ) ) THEN + - 17 WHEN - 3 / 58 * + CAST( NULL AS SIGNED ) + - MIN( + 35 ) * 67 * + CASE NULLIF ( - - AVG ( DISTINCT + 75 ), 58 ) WHEN + 9 THEN + COUNT( * ) * + COUNT( * ) / - + 86 * + COUNT( * ) WHEN - CAST( + NULLIF ( + + 87, + - 82 ) AS SIGNED ) * 33 * - 27 THEN 30 * - MAX( ALL + ( 24 ) ) END THEN - 35 WHEN - 73 THEN NULL END + + 64 / - CAST( COUNT( * ) + - 89 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL + CASE 38 WHEN + 37 - ( + - NULLIF ( + 12, + 28 ) ) THEN + - 17 WHEN - 3 / 58 * + CAST ( NULL AS INTEGER ) + - MIN ( + 35 ) * 67 * + CASE NULLIF ( - - AVG ( DISTINCT + 75 ), 58 ) WHEN + 9 THEN + COUNT ( * ) * + COUNT ( * ) / - + 86 * + COUNT ( * ) WHEN - CAST ( + NULLIF ( + + 87, + - 82 ) AS INTEGER ) * 33 * - 27 THEN 30 * - MAX ( ALL + ( 24 ) ) END THEN - 35 WHEN - 73 THEN NULL END + + 64 / - CAST ( COUNT ( * ) + - 89 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 90 AS col2, - 39 AS col0
----
90
-39

query I rowsort
SELECT DISTINCT 12 + - 49 - - - 76 AS col0
----
-113

query II rowsort
SELECT - - 38, 7 - - 23 col0
----
38
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4456
SELECT COUNT( * ) AS col1, CAST( + 28 AS SIGNED ) AS col2
----
1
28

skipif mysql # not compatible
query II rowsort label-4456
SELECT COUNT ( * ) AS col1, CAST ( + 28 AS INTEGER ) AS col2
----
1
28

query I rowsort
SELECT 58 * - 71 AS col1
----
-4118

onlyif mysql # aggregate syntax: 
query II rowsort label-4458
SELECT ALL 24 col2, + 84 * + 50 * MIN( DISTINCT COALESCE ( - 41, 23, 72 ) ) AS col0
----
24
-172200

skipif mysql # not compatible
query II rowsort label-4458
SELECT ALL 24 col2, + 84 * + 50 * MIN ( DISTINCT COALESCE ( - 41, 23, 72 ) ) AS col0
----
24
-172200

query I rowsort
SELECT DISTINCT - 25 * 36 + - + 3
----
-903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4460
SELECT DISTINCT - CAST( NULL AS SIGNED ), 3 - 77 * + + 3 + COUNT( * ) AS col0
----
NULL
-227

skipif mysql # not compatible
query II rowsort label-4460
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 3 - 77 * + + 3 + COUNT ( * ) AS col0
----
NULL
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL COALESCE ( + - 9, - - NULLIF ( COUNT( * ), - 84 + - 99 * + 44 ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL COALESCE ( + - 9, - - NULLIF ( COUNT ( * ), - 84 + - 99 * + 44 ) ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4462
SELECT DISTINCT 98 * - - CAST( + 94 AS SIGNED ) + COUNT( * )
----
9213

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT 98 * - - CAST ( + 94 AS INTEGER ) + COUNT ( * )
----
9213

query I rowsort
SELECT ALL - - 68 - - 12
----
80

query I rowsort
SELECT 86 + - - 96
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4465
SELECT + CAST( NULL AS SIGNED ), ( + 6 ) AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-4465
SELECT + CAST ( NULL AS INTEGER ), ( + 6 ) AS col1
----
NULL
6

query I rowsort
SELECT 39 + + 63 AS col2
----
102

query I rowsort
SELECT DISTINCT + 45 * + 23 AS col0
----
1035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT MIN( ALL + + 91 ) * - CAST( NULL AS SIGNED ) / - 27 / - ( - 18 ) + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT MIN ( ALL + + 91 ) * - CAST ( NULL AS INTEGER ) / - 27 / - ( - 18 ) + 18
----
NULL

query I rowsort
SELECT ALL + 27 * + 50 * - CASE 50 WHEN + 55 * 90 THEN 76 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 58 + 28 + 88 * - 53
----
-4578

query I rowsort
SELECT ALL + ( + + 33 ) * ( + 27 ) + + 60
----
951

query I rowsort
SELECT DISTINCT + 45 * + 54 AS col0
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT 74 * - - 14 * + + 50 * - COUNT( * ) * + COUNT( * ) AS col0
----
-51800

skipif mysql # not compatible
query I rowsort label-4473
SELECT 74 * - - 14 * + + 50 * - COUNT ( * ) * + COUNT ( * ) AS col0
----
-51800

query I rowsort
SELECT ALL - 82 * - 29 * + - 54
----
-128412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4475
SELECT 91 DIV - - COUNT( * ) + - 95
----
-4

skipif mysql # not compatible
query I rowsort label-4475
SELECT 91 / - - COUNT ( * ) + - 95
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ( COUNT( + 90 ) ) + ( COALESCE ( COUNT( * ), - ( + - 21 ), + + 85 * + 7 * ( + - 91 ), 26 ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4476
SELECT ( COUNT ( + 90 ) ) + ( COALESCE ( COUNT ( * ), - ( + - 21 ), + + 85 * + 7 * ( + - 91 ), 26 ) ) AS col2
----
2

query I rowsort
SELECT 65 * - 50 + 91 - + - 87
----
-3072

query I rowsort
SELECT ALL + 92 + 34 + 31 + - - 65
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT DISTINCT - NULLIF ( 21, - COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT - NULLIF ( 21, - COUNT ( * ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL - 83 + + CASE + 73 WHEN - COUNT( ALL - + 61 ) + + 80 + - 67 THEN - 63 ELSE NULL END - + COUNT( * ) * COUNT( ( ( - 77 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - 83 + + CASE + 73 WHEN - COUNT ( ALL - + 61 ) + + 80 + - 67 THEN - 63 ELSE NULL END - + COUNT ( * ) * COUNT ( ( ( - 77 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL COUNT( * ) + 59 * + 94 * - 63
----
-349397

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL COUNT ( * ) + 59 * + 94 * - 63
----
-349397

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT ALL - 97 * + 63 - + 47 AS col2, COUNT( * ) AS col0
----
-6158
1

skipif mysql # not compatible
query II rowsort label-4482
SELECT ALL - 97 * + 63 - + 47 AS col2, COUNT ( * ) AS col0
----
-6158
1

query I rowsort
SELECT - - 32 * - 39 * - 70 + + ( 94 )
----
87454

query I rowsort
SELECT ALL - 48 * - 75 + + 66 - - + 37
----
3703

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT + 45 + 25 * - COUNT( * ) * + 13 AS col1
----
-280

skipif mysql # not compatible
query I rowsort label-4485
SELECT + 45 + 25 * - COUNT ( * ) * + 13 AS col1
----
-280

query I rowsort
SELECT DISTINCT - + ( + - 82 ) AS col1
----
82

query I rowsort
SELECT + 93 + CASE + AVG ( ALL 26 ) WHEN - 7 THEN NULL ELSE 15 END
----
108

query I rowsort
SELECT 53 * + 80 * - + 33 AS col2
----
-139920

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - COUNT( 57 ) * + 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4489
SELECT - COUNT ( 57 ) * + 11 AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4490
SELECT ALL + 21 DIV - COUNT( ALL 14 )
----
-21

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + 21 / - COUNT ( ALL 14 )
----
-21

query I rowsort
SELECT - 43 + + 51
----
8

query I rowsort
SELECT 22 * - 84
----
-1848

query I rowsort
SELECT ALL - 41 * 61 AS col0
----
-2501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4494
SELECT 52 + 79 AS col0, 34 + - COUNT( * ) / + + CAST( NULL AS SIGNED ) * 31 * COUNT( * )
----
131
NULL

skipif mysql # not compatible
query II rowsort label-4494
SELECT 52 + 79 AS col0, 34 + - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) * 31 * COUNT ( * )
----
131
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT 1 * 26 + + - COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4495
SELECT 1 * 26 + + - COUNT ( * ) AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT 84 + + + 51 DIV - 81 + - 16
----
68

skipif mysql # not compatible
query I rowsort label-4496
SELECT 84 + + + 51 / - 81 + - 16
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT MAX( - 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT MAX ( - 72 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4498
SELECT ALL COUNT( * ), + 54 * 0 + + 20 AS col0
----
1
20

skipif mysql # not compatible
query II rowsort label-4498
SELECT ALL COUNT ( * ), + 54 * 0 + + 20 AS col0
----
1
20

query I rowsort
SELECT 68 * - ( - 73 )
----
4964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4500
SELECT ALL 43 * + - ( + 82 ), + COUNT( * ) DIV + - CAST( - AVG ( 51 ) AS SIGNED ) col0
----
-3526
0

skipif mysql # not compatible
query II rowsort label-4500
SELECT ALL 43 * + - ( + 82 ), + COUNT ( * ) / + - CAST ( - AVG ( 51 ) AS INTEGER ) col0
----
-3526
0

query II rowsort
SELECT - 67 AS col0, - 1 AS col0
----
-67
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4502
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) / + 32
----
0

query I rowsort
SELECT ALL + 96 + + 20
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-4504
SELECT ALL + 23 DIV + NULLIF ( - - 38, + AVG ( ALL 96 ) * - 81 * + 30 * 0 + 16 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL + 23 / + NULLIF ( - - 38, + AVG ( ALL 96 ) * - 81 * + 30 * 0 + 16 ) col1
----
0

query II rowsort
SELECT 4, + COALESCE ( + - 28, + - 51 * - + 69 ) AS col0
----
4
-28

query I rowsort
SELECT ALL ( - + 5 ) * + + 25 * + - 86 + + - 87
----
10663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT - CAST( + 67 AS SIGNED ) * + ( + 64 )
----
-4288

skipif mysql # not compatible
query I rowsort label-4507
SELECT - CAST ( + 67 AS INTEGER ) * + ( + 64 )
----
-4288

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL - COUNT( * ) * + - 82
----
82

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - COUNT ( * ) * + - 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT COUNT( * ) * COUNT( * ) + 76 * - 31 + + 29 + + + 37
----
-2289

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + 76 * - 31 + + 29 + + + 37
----
-2289

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT - 41 * - COALESCE ( - 10, - 11 DIV - - 38 - + ( + 72 ) ) * + 11 * + 82 AS col0
----
-369820

skipif mysql # not compatible
query I rowsort label-4510
SELECT - 41 * - COALESCE ( - 10, - 11 / - - 38 - + ( + 72 ) ) * + 11 * + 82 AS col0
----
-369820

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT DISTINCT 52 DIV - + 21
----
-2

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT 52 / - + 21
----
-2

query I rowsort
SELECT + 29 * 80
----
2320

query I rowsort
SELECT - 69 * + ( ( 6 ) ) + - 23 col0
----
-437

onlyif mysql # DIV for integer division: 
query II rowsort label-4514
SELECT + - 19, 68 DIV 63 AS col1
----
-19
1

skipif mysql # not compatible
query II rowsort label-4514
SELECT + - 19, 68 / 63 AS col1
----
-19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - 82 + CASE - MAX( DISTINCT - 45 ) WHEN - 33 * 70 + + 3 THEN NULL ELSE - 58 END
----
-140

skipif mysql # not compatible
query I rowsort label-4515
SELECT - 82 + CASE - MAX ( DISTINCT - 45 ) WHEN - 33 * 70 + + 3 THEN NULL ELSE - 58 END
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT + - ( + COUNT( ALL 34 ) ) + + - 5 - - + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-4516
SELECT + - ( + COUNT ( ALL 34 ) ) + + - 5 - - + COUNT ( * )
----
-5

query I rowsort
SELECT ALL - 36 * 72
----
-2592

query II rowsort
SELECT 92 AS col0, - 58
----
92
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL + - MAX( ALL - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL + - MAX ( ALL - 48 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4520
SELECT ALL - + 82 * COUNT( * ) - - COUNT( * ) AS col0, 80 col2
----
-81
80

skipif mysql # not compatible
query II rowsort label-4520
SELECT ALL - + 82 * COUNT ( * ) - - COUNT ( * ) AS col0, 80 col2
----
-81
80

query II rowsort
SELECT DISTINCT - 3 * + - ( + - 55 ) AS col1, 86 col2
----
-165
86

query I rowsort
SELECT DISTINCT 97 - + 72 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - MAX( - - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-4523
SELECT - MAX ( - - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT + 45 - - SUM( + 21 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4524
SELECT + 45 - - SUM ( + 21 ) AS col2
----
66

query II rowsort
SELECT - + 24 AS col1, + 18
----
-24
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT + ( - COALESCE ( - 2, - ( - 67 ) ) ) DIV 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT + ( - COALESCE ( - 2, - ( - 67 ) ) ) / 33 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4527
SELECT + + 15 * COUNT( * ) * - 60 AS col2, + 26 * 12 AS col1
----
-900
312

skipif mysql # not compatible
query II rowsort label-4527
SELECT + + 15 * COUNT ( * ) * - 60 AS col2, + 26 * 12 AS col1
----
-900
312

query II rowsort
SELECT DISTINCT 21 AS col1, 76 * + 85 * + 33 + 32 * + + 30 AS col2
----
21
214140

onlyif mysql # aggregate syntax: 
query II rowsort label-4529
SELECT + 12 + 3 + - COUNT( * ) AS col1, + COUNT( * ) - 79 * 81
----
14
-6398

skipif mysql # not compatible
query II rowsort label-4529
SELECT + 12 + 3 + - COUNT ( * ) AS col1, + COUNT ( * ) - 79 * 81
----
14
-6398

query I rowsort
SELECT - - NULLIF ( - 62, 96 + 0 ) * + 1
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-4531
SELECT + 37 DIV + 96 AS col0, 75 AS col2
----
0
75

skipif mysql # not compatible
query II rowsort label-4531
SELECT + 37 / + 96 AS col0, 75 AS col2
----
0
75

query I rowsort
SELECT ALL + 27 + 13 + 76
----
116

query I rowsort
SELECT - ( + 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL - SUM( DISTINCT + 2 ) + - 83 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - SUM ( DISTINCT + 2 ) + - 83 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT + 71 + + - COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4535
SELECT + 71 + + - COUNT ( * ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT - 77 - 76 DIV - - 69 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4536
SELECT - 77 - 76 / - - 69 AS col1
----
-78

query I rowsort
SELECT DISTINCT 94 + - 34 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL 29 + - - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL 29 + - - COUNT ( * )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT DISTINCT 71 DIV 86 + - + ( - + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT 71 / 86 + - + ( - + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT + MIN( 54 )
----
54

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT + MIN ( 54 )
----
54

query I rowsort
SELECT - 33 * + 91 + 18
----
-2985

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4542
SELECT DISTINCT - MAX( - 79 ) DIV + + SUM( - 30 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT - MAX ( - 79 ) / + + SUM ( - 30 ) AS col1
----
-2

query I rowsort
SELECT - + 26 * - COALESCE ( + + 37, NULLIF ( 80, ( + 93 ) - - + 57 + + 24 ) ) * + 21 * ( - 27 )
----
-545454

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4544
SELECT DISTINCT - 16 / - - CAST( NULL AS SIGNED ) - CAST( - 23 AS SIGNED ), 11 AS col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-4544
SELECT DISTINCT - 16 / - - CAST ( NULL AS INTEGER ) - CAST ( - 23 AS INTEGER ), 11 AS col2
----
NULL
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4545
SELECT ALL - 54 * + COUNT( * ) + - 30 * - - 27 + - 93 DIV - 19 - + 34 * 17 + - 14
----
-1452

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL - 54 * + COUNT ( * ) + - 30 * - - 27 + - 93 / - 19 - + 34 * 17 + - 14
----
-1452

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL + 96 * - + COUNT( ALL + 23 ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + 96 * - + COUNT ( ALL + 23 ) col1
----
-96

query I rowsort
SELECT ALL + + 42 col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT 10 * - - CAST( NULL AS SIGNED ) + - ( + 60 ) + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT 10 * - - CAST ( NULL AS INTEGER ) + - ( + 60 ) + 61
----
NULL

query I rowsort
SELECT + 95 * + + 10 + + 95
----
1045

query II rowsort
SELECT - + ( 62 ) * 1 * + - 74 col1, 29 AS col0
----
4588
29

query I rowsort
SELECT DISTINCT + - NULLIF ( 59, + 74 * + 43 + 39 * + 21 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - 5 + - - 39 * - - COALESCE ( 14, COALESCE ( + - 17, + 22 ), + + 68 + MAX( 61 ) ) * - 55 * - ( + + 58 ) col2
----
1741735

skipif mysql # not compatible
query I rowsort label-4552
SELECT - 5 + - - 39 * - - COALESCE ( 14, COALESCE ( + - 17, + 22 ), + + 68 + MAX ( 61 ) ) * - 55 * - ( + + 58 ) col2
----
1741735

query I rowsort
SELECT DISTINCT 36 * 93 * - ( + + 83 ) + + 48
----
-277836

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT DISTINCT - 41 DIV - + 73
----
0

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - 41 / - + 73
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT DISTINCT - 23 * + CAST( - - 78 AS SIGNED ) * + 14 + - 39 * 52 + ( 15 ) col1
----
-27129

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT - 23 * + CAST ( - - 78 AS INTEGER ) * + 14 + - 39 * 52 + ( 15 ) col1
----
-27129

query I rowsort
SELECT + ( - - 27 ) + - ( - + 98 ) AS col1
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT 74 * + ( - - MAX( ALL CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT 74 * + ( - - MAX ( ALL CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4558
SELECT 51 AS col0, MIN( ALL - 37 )
----
51
-37

skipif mysql # not compatible
query II rowsort label-4558
SELECT 51 AS col0, MIN ( ALL - 37 )
----
51
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT 93 DIV 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4559
SELECT 93 / 64 AS col2
----
1

query I rowsort
SELECT ALL - 97 + - + 8
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT 77 DIV + 90 * - - 63
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT 77 / + 90 * - - 63
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT DISTINCT 88 + ( COUNT( * ) ) DIV 37 * 40 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT 88 + ( COUNT ( * ) ) / 37 * 40 AS col1
----
88

query I rowsort
SELECT ALL - 33 + - + 52
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4564
SELECT COUNT( * ) DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-4564
SELECT COUNT ( * ) / - 54
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT ALL 23 DIV + 8 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL 23 / + 8 AS col0
----
2

query I rowsort
SELECT 89 * 63
----
5607

query II rowsort
SELECT - 97 AS col2, - ( + 91 )
----
-97
-91

query I rowsort
SELECT DISTINCT ( - 34 ) * + + 64 + - 1
----
-2177

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL MAX( ALL 14 ) - + ( - 19 )
----
33

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL MAX ( ALL 14 ) - + ( - 19 )
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4570
SELECT - CAST( - 99 AS SIGNED ) DIV - - 91 - + 22 DIV + 71 * + 42 * - + 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4570
SELECT - CAST ( - 99 AS INTEGER ) / - - 91 - + 22 / + 71 * + 42 * - + 44 AS col2
----
1

query I rowsort
SELECT DISTINCT + 27 - 53 * - - 5 AS col1
----
-238

query II rowsort
SELECT 41, - NULLIF ( - + 26, 67 * - - 72 ) AS col0
----
41
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT DISTINCT - 58 * - + 32 + + COALESCE ( - - CAST( NULL AS SIGNED ), + 42 )
----
1898

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - 58 * - + 32 + + COALESCE ( - - CAST ( NULL AS INTEGER ), + 42 )
----
1898

query I rowsort
SELECT DISTINCT - 67 - + 53
----
-120

query I rowsort
SELECT ALL - - NULLIF ( + 96, + 81 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT COUNT( * ) - 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4576
SELECT COUNT ( * ) - 17 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4577
SELECT ALL - + ( - ( COUNT( * ) ) ) col1, ( 80 )
----
1
80

skipif mysql # not compatible
query II rowsort label-4577
SELECT ALL - + ( - ( COUNT ( * ) ) ) col1, ( 80 )
----
1
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT 70 * + + 82 + + 71 + CASE - 82 WHEN CASE + - 86 WHEN - 3 * - ( 61 ) THEN - MAX( - - 0 ) - + 49 WHEN - + 24 THEN NULL ELSE NULL END THEN + 57 WHEN + 97 THEN NULL ELSE + - 5 END + + 24 - + 21 * + ( 9 ) col2, 87
----
5641
87

skipif mysql # not compatible
query II rowsort label-4578
SELECT 70 * + + 82 + + 71 + CASE - 82 WHEN CASE + - 86 WHEN - 3 * - ( 61 ) THEN - MAX ( - - 0 ) - + 49 WHEN - + 24 THEN NULL ELSE NULL END THEN + 57 WHEN + 97 THEN NULL ELSE + - 5 END + + 24 - + 21 * + ( 9 ) col2, 87
----
5641
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + COALESCE ( + COUNT( ALL - + 94 ), COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4579
SELECT + COALESCE ( + COUNT ( ALL - + 94 ), COUNT ( * ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT + 53 DIV - - 21
----
2

skipif mysql # not compatible
query I rowsort label-4580
SELECT + 53 / - - 21
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4581
SELECT ALL - - COUNT( * ) DIV + 4 + + - 77
----
-77

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL - - COUNT ( * ) / + 4 + + - 77
----
-77

query I rowsort
SELECT + - 97 col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4583
SELECT ALL - - 47 * + ( + + COUNT( * ) ) + + 36 DIV + 43 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - - 47 * + ( + + COUNT ( * ) ) + + 36 / + 43 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL + 82 + + COUNT( DISTINCT - - 66 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL + 82 + + COUNT ( DISTINCT - - 66 ) AS col0
----
83

query I rowsort
SELECT 30 * + 19
----
570

query I rowsort
SELECT ALL + - 34 + - 90
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL + - 55 + 94 - + NULLIF ( 3, + CAST( NULL AS SIGNED ) + - + MIN( 88 ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + - 55 + 94 - + NULLIF ( 3, + CAST ( NULL AS INTEGER ) + - + MIN ( 88 ) ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT 7 * + CAST( + + 86 AS SIGNED ) AS col1
----
602

skipif mysql # not compatible
query I rowsort label-4588
SELECT 7 * + CAST ( + + 86 AS INTEGER ) AS col1
----
602

query I rowsort
SELECT ALL - 37 * - 50 * - - 11
----
20350

query I rowsort
SELECT 58 * + 37 AS col0
----
2146

query I rowsort
SELECT ALL - 28 + - 33
----
-61

query I rowsort
SELECT 74 - 2 col0
----
72

query I rowsort
SELECT 83 * + + 5 AS col2
----
415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT ALL + 65 + + CAST( - CASE 42 WHEN + + NULLIF ( 75, + MIN( ALL - + 67 ) * - + 87 ) * + 11 - - 11 + - CAST( + ( 2 ) AS SIGNED ) * - 56 THEN - SUM( + - 9 ) * 71 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + 65 + + CAST ( - CASE 42 WHEN + + NULLIF ( 75, + MIN ( ALL - + 67 ) * - + 87 ) * + 11 - - 11 + - CAST ( + ( 2 ) AS INTEGER ) * - 56 THEN - SUM ( + - 9 ) * 71 END AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 77 AS col0, 63
----
77
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL 36 - - COUNT( * ) + + - ( - + 21 ) * + 56 AS col1
----
1213

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL 36 - - COUNT ( * ) + + - ( - + 21 ) * + 56 AS col1
----
1213

query II rowsort
SELECT 9 - - 32, + 6 * 48 AS col0
----
41
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4598
SELECT DISTINCT - 92 * - + NULLIF ( - - 10, + + 21 * COUNT( * ) * - ( + NULLIF ( - + CAST( NULL AS SIGNED ), + COUNT( * ) ) ) )
----
920

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT - 92 * - + NULLIF ( - - 10, + + 21 * COUNT ( * ) * - ( + NULLIF ( - + CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) )
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT NULLIF ( COALESCE ( + + 75, ( + ( + + SUM( ALL + + 17 ) ) ) ), - 31 * - - 21 / + 18 ) - - 16
----
91

skipif mysql # not compatible
query I rowsort label-4599
SELECT NULLIF ( COALESCE ( + + 75, ( + ( + + SUM ( ALL + + 17 ) ) ) ), - 31 * - - 21 / + 18 ) - - 16
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4600
SELECT ALL - CASE WHEN + 38 <= - 31 - - + 82 * 97 DIV - 68 THEN NULL WHEN + + COALESCE ( - COUNT( * ), - ( + 52 ) DIV + MAX( + 4 ) ) >= 26 AND NOT + 16 IS NULL THEN + + CAST( NULL AS SIGNED ) WHEN 30 IS NOT NULL THEN + 12 DIV ( - - 34 ) + 65 END * - - 38 + - 27 AS col1
----
-2497

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - CASE WHEN + 38 <= - 31 - - + 82 * 97 / - 68 THEN NULL WHEN + + COALESCE ( - COUNT ( * ), - ( + 52 ) / + MAX ( + 4 ) ) >= 26 AND NOT + 16 IS NULL THEN + + CAST ( NULL AS INTEGER ) WHEN 30 IS NOT NULL THEN + 12 / ( - - 34 ) + 65 END * - - 38 + - 27 AS col1
----
-2497

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL - 66 - - 63 + + + 43 * + MIN( DISTINCT 0 ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - 66 - - 63 + + + 43 * + MIN ( DISTINCT 0 ) col2
----
-3

query II rowsort
SELECT ALL 94 AS col0, + 49 + 49 AS col1
----
94
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT 18 + + COUNT( * ) col1
----
19

skipif mysql # not compatible
query I rowsort label-4603
SELECT 18 + + COUNT ( * ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT MIN( + 43 ) + + 92 * - 41 + + + 0 + + COUNT( * )
----
-3728

skipif mysql # not compatible
query I rowsort label-4604
SELECT MIN ( + 43 ) + + 92 * - 41 + + + 0 + + COUNT ( * )
----
-3728

query II rowsort
SELECT - 62 + + - 95 AS col0, 22 AS col2
----
-157
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL + 49 * + COUNT( * ) * 60 * 34 * - + 49
----
-4898040

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + 49 * + COUNT ( * ) * 60 * 34 * - + 49
----
-4898040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4607
SELECT ALL + COUNT( * ) DIV - + 22
----
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + COUNT ( * ) / - + 22
----
0

query I rowsort
SELECT 83 * 85 + - 34 AS col2
----
7021

query I rowsort
SELECT ( + - 72 ) AS col2
----
-72

query I rowsort
SELECT ALL 81 * - 31 AS col2
----
-2511

query II rowsort
SELECT DISTINCT - + 86 AS col1, - 33 * + 39 AS col0
----
-86
-1287

query I rowsort
SELECT DISTINCT 44 * + 35 + + 87 * + 59 + + 80 AS col0
----
6753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4613
SELECT - MIN( CAST( NULL AS SIGNED ) ) * COUNT( * ) + COUNT( * ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + COUNT ( * ) * + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL - 92 * 5 + 95 + MAX( ALL + - 50 ) * - 92 AS col1
----
4235

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - 92 * 5 + 95 + MAX ( ALL + - 50 ) * - 92 AS col1
----
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL 32 * ( COUNT( * ) ) + + 12 + - 91 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL 32 * ( COUNT ( * ) ) + + 12 + - 91 AS col0
----
-47

query II rowsort
SELECT + 7 AS col0, - 86
----
7
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT 22 DIV 89 * + + 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT 22 / 89 * + + 14 AS col2
----
0

query I rowsort
SELECT ALL 93 + + 81
----
174

query I rowsort
SELECT + 96 + + + 8 * + ( + COALESCE ( + 51, - + 41 ) ) + - 72 * - 96 col1
----
7416

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL 54 + + COUNT( * ) - + 32 + - 55
----
-32

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL 54 + + COUNT ( * ) - + 32 + - 55
----
-32

query I rowsort
SELECT ALL 13 - + 12 + 99 * 86 col1
----
8515

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT DISTINCT + 61 * + 0 * - - COUNT( ALL + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT + 61 * + 0 * - - COUNT ( ALL + 33 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT DISTINCT + MIN( + + 20 ) * + 24
----
480

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT + MIN ( + + 20 ) * + 24
----
480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4624
SELECT - 77 DIV + - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4624
SELECT - 77 / + - COUNT ( * ) AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT + CAST( + 57 AS SIGNED ) * 18
----
1026

skipif mysql # not compatible
query I rowsort label-4625
SELECT + CAST ( + 57 AS INTEGER ) * 18
----
1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4626
SELECT ALL SUM( - - CAST( NULL AS SIGNED ) ) AS col1, 59 * + - 18 - + 37 DIV + - 13 AS col1
----
NULL
-1060

skipif mysql # not compatible
query II rowsort label-4626
SELECT ALL SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1, 59 * + - 18 - + 37 / + - 13 AS col1
----
NULL
-1060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT - 70 + 62 + + 49 + CAST( + 10 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 70 + 62 + + 49 + CAST ( + 10 AS INTEGER ) AS col0
----
51

query I rowsort
SELECT DISTINCT + 16 - 56
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT COALESCE ( + 9, - + COUNT( * ), - SUM( 4 ) + - 9, - 34 - - COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT COALESCE ( + 9, - + COUNT ( * ), - SUM ( 4 ) + - 9, - 34 - - COUNT ( * ) )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4630
SELECT ALL COALESCE ( + - COUNT( * ), + - 38 ) AS col0, - COUNT( * ) - + 73 - - 62
----
-1
-12

skipif mysql # not compatible
query II rowsort label-4630
SELECT ALL COALESCE ( + - COUNT ( * ), + - 38 ) AS col0, - COUNT ( * ) - + 73 - - 62
----
-1
-12

query I rowsort
SELECT - 52 * - 50 AS col1
----
2600

query I rowsort
SELECT DISTINCT CASE 78 WHEN + + 71 + - 69 THEN - + 31 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4633
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 79
----
NULL

query II rowsort
SELECT ALL + + 80 * + 85 AS col1, - 98
----
6800
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT + CASE - 73 WHEN 71 * + 87 * + 26 - - ( + + COUNT( * ) ) * + + 92 THEN - + 19 + - 98 + - + 66 ELSE - 37 * + - 52 - + 62 END
----
1862

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT + CASE - 73 WHEN 71 * + 87 * + 26 - - ( + + COUNT ( * ) ) * + + 92 THEN - + 19 + - 98 + - + 66 ELSE - 37 * + - 52 - + 62 END
----
1862

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT - 8 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-4636
SELECT - 8 / - 15
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4637
SELECT DISTINCT + 75 + + CAST( NULL AS SIGNED ), 76 + 27 + + 13 * 19 AS col2
----
NULL
350

skipif mysql # not compatible
query II rowsort label-4637
SELECT DISTINCT + 75 + + CAST ( NULL AS INTEGER ), 76 + 27 + + 13 * 19 AS col2
----
NULL
350

query I rowsort
SELECT - + 45 * - 11 * - 88 * + - 72 AS col2
----
3136320

query I rowsort
SELECT + - 87 * + + 55
----
-4785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT ALL - CAST( NULL AS SIGNED ) * 43 * + COUNT( * ) + - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - CAST ( NULL AS INTEGER ) * 43 * + COUNT ( * ) + - 0 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL - 74 * - 83 / 11 * + AVG ( CASE WHEN NOT CAST( 96 AS SIGNED ) = NULL THEN + - 18 WHEN - 8 < + - 1 THEN NULL ELSE 84 END ) + - 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL - 74 * - 83 / 11 * + AVG ( CASE WHEN NOT CAST ( 96 AS INTEGER ) = NULL THEN + - 18 WHEN - 8 < + - 1 THEN NULL ELSE 84 END ) + - 75 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4642
SELECT DISTINCT + SUM( DISTINCT - 19 ) * + - 72 + + MIN( ALL 9 ) - + 6 + - 18 AS col1, 45 * 55 AS col1
----
1353
2475

skipif mysql # not compatible
query II rowsort label-4642
SELECT DISTINCT + SUM ( DISTINCT - 19 ) * + - 72 + + MIN ( ALL 9 ) - + 6 + - 18 AS col1, 45 * 55 AS col1
----
1353
2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4643
SELECT DISTINCT CAST( + 55 AS SIGNED ) * COUNT( * ) DIV 73 * + + 5 + 19 + - + 87 * + 65 - + COUNT( - 59 ) * + 57 col0
----
-5693

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT CAST ( + 55 AS INTEGER ) * COUNT ( * ) / 73 * + + 5 + 19 + - + 87 * + 65 - + COUNT ( - 59 ) * + 57 col0
----
-5693

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL COUNT( * ) * - COUNT( DISTINCT 38 ) - - + COALESCE ( - 33, - + 48 + + 23, + + ( + 91 ), - 98 ) + + SUM( - + ( + 32 ) ) + - 18 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL COUNT ( * ) * - COUNT ( DISTINCT 38 ) - - + COALESCE ( - 33, - + 48 + + 23, + + ( + 91 ), - 98 ) + + SUM ( - + ( + 32 ) ) + - 18 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT MAX( 7 ), 43 AS col1
----
7
43

skipif mysql # not compatible
query II rowsort label-4645
SELECT MAX ( 7 ), 43 AS col1
----
7
43

query I rowsort
SELECT DISTINCT 8 * - - 27 AS col2
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4647
SELECT + COALESCE ( - - ( - CASE + 10 WHEN + CASE + + 45 WHEN 35 + + 98 THEN 97 / + 89 / - 57 * + 96 ELSE NULL END * - + CAST( + CASE + + COALESCE ( - - COUNT( * ), COUNT( * ) ) WHEN + 93 * - CAST( NULL AS SIGNED ) THEN + 54 ELSE + - 22 + + 13 END AS SIGNED ) THEN - 42 END ), 62 * + MIN( - 5 ) - 10 * MIN( 57 ) * + ( - + 72 ) + 39 * - 22, - - 12 + + 37 ) AS col0
----
39872

skipif mysql # not compatible
query I rowsort label-4647
SELECT + COALESCE ( - - ( - CASE + 10 WHEN + CASE + + 45 WHEN 35 + + 98 THEN 97 / + 89 / - 57 * + 96 ELSE NULL END * - + CAST ( + CASE + + COALESCE ( - - COUNT ( * ), COUNT ( * ) ) WHEN + 93 * - CAST ( NULL AS INTEGER ) THEN + 54 ELSE + - 22 + + 13 END AS INTEGER ) THEN - 42 END ), 62 * + MIN ( - 5 ) - 10 * MIN ( 57 ) * + ( - + 72 ) + 39 * - 22, - - 12 + + 37 ) AS col0
----
39872

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + NULLIF ( + COUNT( DISTINCT + - 34 ), + + 90 + 51 ) + + 23 + - 22 col2
----
2

skipif mysql # not compatible
query I rowsort label-4648
SELECT + NULLIF ( + COUNT ( DISTINCT + - 34 ), + + 90 + 51 ) + + 23 + - 22 col2
----
2

query I rowsort
SELECT ALL 37 * - 31 AS col0
----
-1147

query I rowsort
SELECT DISTINCT + 69 * + 40 * 99 - + 60 + 11 * - 75
----
272355

query I rowsort
SELECT DISTINCT 72 * - + 58 AS col2
----
-4176

query I rowsort
SELECT ALL + COALESCE ( - 68, - - 31 ) * + NULLIF ( 80, - + 69 ) - - 90
----
-5350

query I rowsort
SELECT + 1 * 55 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT - COUNT( DISTINCT + 76 ) * - 72 - + 95 + + 20
----
-3

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT - COUNT ( DISTINCT + 76 ) * - 72 - + 95 + + 20
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4655
SELECT MAX( DISTINCT + CAST( - 72 AS SIGNED ) ), 45 AS col1
----
-72
45

skipif mysql # not compatible
query II rowsort label-4655
SELECT MAX ( DISTINCT + CAST ( - 72 AS INTEGER ) ), 45 AS col1
----
-72
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL SUM( ALL 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL SUM ( ALL 52 )
----
52

query I rowsort
SELECT + 82 - - 8
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT MAX( + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4658
SELECT MAX ( + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL COALESCE ( + COUNT( ALL - 0 ), - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL COALESCE ( + COUNT ( ALL - 0 ), - 22 ) AS col0
----
1

query I rowsort
SELECT 39 * + - 61 + + 4
----
-2375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4661
SELECT ALL NULLIF ( ( 15 ), + + MAX( DISTINCT + + 3 ) + 36 ) DIV 64 - + 37 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL NULLIF ( ( 15 ), + + MAX ( DISTINCT + + 3 ) + 36 ) / 64 - + 37 AS col1
----
-37

query I rowsort
SELECT + 35 * + 26 AS col1
----
910

query I rowsort
SELECT ALL + NULLIF ( + - 71, + - 14 ) * - 93
----
6603

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT - 87 DIV 7
----
-12

skipif mysql # not compatible
query I rowsort label-4664
SELECT - 87 / 7
----
-12

query I rowsort
SELECT DISTINCT + 79 + + 98 - - 18 + 37 * 0 * + + 7 * - - 5 AS col1
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT + 97 + - CAST( NULL AS SIGNED ) + NULLIF ( + 53, + - 47 + - - 46 * + + 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT + 97 + - CAST ( NULL AS INTEGER ) + NULLIF ( + 53, + - 47 + - - 46 * + + 82 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4667
SELECT ALL + 46 + - - COALESCE ( + CASE MIN( ALL + 86 ) WHEN - COUNT( * ) * + + MAX( ALL + ( - ( + 26 ) ) ) + COUNT( * ) + - - COUNT( * ) THEN + + COUNT( * ) DIV + - COUNT( * ) + 30 WHEN 89 THEN NULL WHEN ( + 57 ) THEN NULL END, + 39 * + 8 + - 51 * 60 DIV ( + 39 ) ) + + 47
----
327

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL + 46 + - - COALESCE ( + CASE MIN ( ALL + 86 ) WHEN - COUNT ( * ) * + + MAX ( ALL + ( - ( + 26 ) ) ) + COUNT ( * ) + - - COUNT ( * ) THEN + + COUNT ( * ) / + - COUNT ( * ) + 30 WHEN 89 THEN NULL WHEN ( + 57 ) THEN NULL END, + 39 * + 8 + - 51 * 60 / ( + 39 ) ) + + 47
----
327

query I rowsort
SELECT - + 66 + + 68 AS col1
----
2

query II rowsort
SELECT + 73 col0, 62
----
73
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT - SUM( ALL + - 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4670
SELECT - SUM ( ALL + - 67 ) AS col0
----
67

query II rowsort
SELECT ALL + 97 + - 16 + - + 33 AS col0, 36 + - 33
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT - - 91 + + COUNT( * ) + - COALESCE ( - - 43, - - COUNT( * ) + COUNT( * ) ) + - 16 - 97 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4672
SELECT - - 91 + + COUNT ( * ) + - COALESCE ( - - 43, - - COUNT ( * ) + COUNT ( * ) ) + - 16 - 97 AS col1
----
-64

query II rowsort
SELECT ALL - 86 + + 0 * - - 22, 3 AS col0
----
-86
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT - + 16 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT - + 16 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT - - COUNT( * ) + + + 73 + - ( + - 60 ) * 20
----
1274

skipif mysql # not compatible
query I rowsort label-4675
SELECT - - COUNT ( * ) + + + 73 + - ( + - 60 ) * 20
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4676
SELECT ALL + COUNT( * ) + + - 85 * + NULLIF ( - + 92, 54 ) * CAST( - 32 AS SIGNED ) * 63 AS col2
----
-15765119

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL + COUNT ( * ) + + - 85 * + NULLIF ( - + 92, 54 ) * CAST ( - 32 AS INTEGER ) * 63 AS col2
----
-15765119

query I rowsort
SELECT ALL + 14 * - 63 AS col2
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT CASE + - 55 WHEN - 26 THEN - 68 WHEN + 62 + 37 * + + AVG ( + - 52 ) THEN + + 93 + + + 74 END * + 17 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT CASE + - 55 WHEN - 26 THEN - 68 WHEN + 62 + 37 * + + AVG ( + - 52 ) THEN + + 93 + + + 74 END * + 17 * + + COUNT ( * )
----
NULL

query I rowsort
SELECT + - ( - 42 )
----
42

query II rowsort
SELECT ALL - 95 AS col0, 69
----
-95
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4681
SELECT ALL - NULLIF ( 98, + - 6 * - NULLIF ( + + 99, - COUNT( * ) + - - 91 + - 49 + + + 60 * - 62 + - 27 ) + 66 + 8 + - 22 * - 51 ) AS col1, 77 AS col0
----
-98
77

skipif mysql # not compatible
query II rowsort label-4681
SELECT ALL - NULLIF ( 98, + - 6 * - NULLIF ( + + 99, - COUNT ( * ) + - - 91 + - 49 + + + 60 * - 62 + - 27 ) + 66 + 8 + - 22 * - 51 ) AS col1, 77 AS col0
----
-98
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT 12 DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4682
SELECT 12 / - 78 AS col1
----
0

query I rowsort
SELECT ALL 13 * 56 AS col2
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT DISTINCT - 33 DIV - 19
----
1

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - 33 / - 19
----
1

query II rowsort
SELECT ALL 59 - + 9 col0, - COALESCE ( + + 15, 51 )
----
50
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT 2 / + NULLIF ( CAST( NULL AS SIGNED ), + - 47 + MIN( DISTINCT + 79 ) * 93 * + + 63 + COUNT( ALL - 62 ) + 83 ) * + MAX( ALL + - 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT 2 / + NULLIF ( CAST ( NULL AS INTEGER ), + - 47 + MIN ( DISTINCT + 79 ) * 93 * + + 63 + COUNT ( ALL - 62 ) + 83 ) * + MAX ( ALL + - 93 ) AS col1
----
NULL

query I rowsort
SELECT 37 * - + 62 AS col0
----
-2294

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT COALESCE ( + + 19, 60 ) + - COALESCE ( 54, 11 + + 73 * + - 29 DIV 85 * 60 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4688
SELECT COALESCE ( + + 19, 60 ) + - COALESCE ( 54, 11 + + 73 * + - 29 / 85 * 60 ) AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4689
SELECT ALL - CAST( + MIN( + 39 ) AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL - CAST ( + MIN ( + 39 ) AS INTEGER ) AS col1
----
-39

query I rowsort
SELECT ALL ( - ( - - 52 ) ) + - 63
----
-115

query I rowsort
SELECT 27 * + - 51
----
-1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4692
SELECT - + ( + + CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4692
SELECT - + ( + + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4693
SELECT ALL - 0 + + COUNT( * ) col1, + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4693
SELECT ALL - 0 + + COUNT ( * ) col1, + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT - + 25 col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL + COUNT( * ) + + 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + COUNT ( * ) + + 52 AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT ALL - - 88 * + 84 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL - - 88 * + 84 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( ( + - 74 ), 25 + - 25 ) + + - ( - - 92 ) * + 80 AS col1
----
-7434

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT + 97 * - 45 * - 65 + - - 4 - - + COUNT( * )
----
283730

skipif mysql # not compatible
query I rowsort label-4698
SELECT + 97 * - 45 * - 65 + - - 4 - - + COUNT ( * )
----
283730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4699
SELECT SUM( ALL + 3 ) * 8 DIV - + ( + - MIN( ALL + 59 ) ) - + 32 * - 0
----
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT SUM ( ALL + 3 ) * 8 / - + ( + - MIN ( ALL + 59 ) ) - + 32 * - 0
----
0

query I rowsort
SELECT ALL + 74 * 45
----
3330

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT - ( - 16 ), 48 + + COUNT( * ) + - 34 + - 36 + 58 + - 63 + NULLIF ( 66, - 73 + - 15 ) * + - 15 + - 98 AS col2
----
16
-1114

skipif mysql # not compatible
query II rowsort label-4701
SELECT - ( - 16 ), 48 + + COUNT ( * ) + - 34 + - 36 + 58 + - 63 + NULLIF ( 66, - 73 + - 15 ) * + - 15 + - 98 AS col2
----
16
-1114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT - - CASE + 97 WHEN + 5 * + - MAX( - 25 ) + 90 + CAST( 96 AS SIGNED ) THEN + - 77 ELSE + 69 END AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4702
SELECT - - CASE + 97 WHEN + 5 * + - MAX ( - 25 ) + 90 + CAST ( 96 AS INTEGER ) THEN + - 77 ELSE + 69 END AS col1
----
69

query II rowsort
SELECT ALL + ( 96 ) AS col2, 28 AS col2
----
96
28

query I rowsort
SELECT 76 - 28 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT 20 * + MIN( - 3 )
----
-60

skipif mysql # not compatible
query I rowsort label-4705
SELECT 20 * + MIN ( - 3 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4706
SELECT ALL 17 - - 49 AS col1, - 89 * MAX( DISTINCT + - 87 )
----
66
7743

skipif mysql # not compatible
query II rowsort label-4706
SELECT ALL 17 - - 49 AS col1, - 89 * MAX ( DISTINCT + - 87 )
----
66
7743

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT - + COALESCE ( - 78, + + NULLIF ( + COUNT( * ), + 69 / + 96 ), - 88, 75 * - - 90 + 66 )
----
78

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT - + COALESCE ( - 78, + + NULLIF ( + COUNT ( * ), + 69 / + 96 ), - 88, 75 * - - 90 + 66 )
----
78

query I rowsort
SELECT ALL - + 33 * 52 * + ( 32 ) AS col1
----
-54912

query I rowsort
SELECT 3 * + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT - 65 - - - NULLIF ( + - CAST( - 23 AS SIGNED ), - 35 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - 65 - - - NULLIF ( + - CAST ( - 23 AS INTEGER ), - 35 ) AS col2
----
-88

query I rowsort
SELECT - 97 * + - 4 + + - 5 * - 25 AS col0
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT - MAX( ( - + 50 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT - MAX ( ( - + 50 ) ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT 93 * - - CASE + 9 WHEN - + 87 - - + 20 + - COUNT( 16 ) THEN - - 86 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT 93 * - - CASE + 9 WHEN - + 87 - - + 20 + - COUNT ( 16 ) THEN - - 86 ELSE NULL END col0
----
NULL

query I rowsort
SELECT 28 * + - ( + - 16 )
----
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4715
SELECT DISTINCT - 29 * + NULLIF ( - 66, + 84 * - SUM( - CASE - - 19 WHEN - 35 THEN + 34 END ) + 45 + 17 / - ( + 49 ) ) * - + MAX( - CAST( - 55 AS SIGNED ) ) AS col0
----
-105270

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - 29 * + NULLIF ( - 66, + 84 * - SUM ( - CASE - - 19 WHEN - 35 THEN + 34 END ) + 45 + 17 / - ( + 49 ) ) * - + MAX ( - CAST ( - 55 AS INTEGER ) ) AS col0
----
-105270

query I rowsort
SELECT ALL - ( - 14 )
----
14

query I rowsort
SELECT ALL - 20 * - + 64
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT 12 + + - NULLIF ( + + 57, - 66 / - 86 + - SUM( - + 48 ) ) * - 22 * + 46
----
57696

skipif mysql # not compatible
query I rowsort label-4718
SELECT 12 + + - NULLIF ( + + 57, - 66 / - 86 + - SUM ( - + 48 ) ) * - 22 * + 46
----
57696

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT 47 DIV 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT 47 / 85 AS col1
----
0

query I rowsort
SELECT 18 * + 50 col1
----
900

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4721
SELECT 21 + - ( 0 ) AS col2, SUM( - 33 ) + + 63 + - - 14 + - 80 * 26 DIV 67 - - + 51 AS col2
----
21
64

skipif mysql # not compatible
query II rowsort label-4721
SELECT 21 + - ( 0 ) AS col2, SUM ( - 33 ) + + 63 + - - 14 + - 80 * 26 / 67 - - + 51 AS col2
----
21
64

query II rowsort
SELECT DISTINCT - COALESCE ( + 97, + 29 + + + 25 ) * - COALESCE ( 79, + + 50, 33 ) AS col1, 44 + - - 59 AS col0
----
7663
103

query I rowsort
SELECT ALL + 75 + + - 78 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT ALL 6 DIV - - 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL 6 / - - 35 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( - 80 ) + 57 * - - 62
----
3454

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT - MAX( - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT - MAX ( - 88 ) AS col1
----
88

query I rowsort
SELECT 17 + - 11
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4728
SELECT DISTINCT + 30 + - 0 + + 77 + + + CAST( + 90 AS SIGNED ) * + - MAX( + - 82 )
----
7487

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + 30 + - 0 + + 77 + + + CAST ( + 90 AS INTEGER ) * + - MAX ( + - 82 )
----
7487

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT DISTINCT 5 * + MIN( DISTINCT - 82 )
----
-410

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT 5 * + MIN ( DISTINCT - 82 )
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL 64 + - COUNT( * ) col0
----
63

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL 64 + - COUNT ( * ) col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT + 85 AS col1, - 24 * + ( - 45 ) * 35 * + - COUNT( * ) * - - 79
----
85
-2986200

skipif mysql # not compatible
query II rowsort label-4731
SELECT + 85 AS col1, - 24 * + ( - 45 ) * 35 * + - COUNT ( * ) * - - 79
----
85
-2986200

query I rowsort
SELECT ALL ( - + ( - NULLIF ( 18, + 69 + + - 88 ) ) ) * + + 2 + - - 75 + - 83 * 59 * + 69 * 90 AS col0
----
-30410259

query I rowsort
SELECT DISTINCT 3 - 23 AS col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4734
SELECT + - COUNT( * ) - + 47 * MAX( - 88 ) * + + 53 + 54 DIV + 89 * + - 14
----
219207

skipif mysql # not compatible
query I rowsort label-4734
SELECT + - COUNT ( * ) - + 47 * MAX ( - 88 ) * + + 53 + 54 / + 89 * + - 14
----
219207

query I rowsort
SELECT + 91 * + + 47 * - ( - 61 )
----
260897

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4736
SELECT + CAST( NULL AS DECIMAL ), + 82 + 18 * - 13 * - 69 AS col2
----
NULL
16228

skipif mysql # not compatible
query II rowsort label-4736
SELECT + CAST ( NULL AS REAL ), + 82 + 18 * - 13 * - 69 AS col2
----
NULL
16228

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + 65 + COUNT( * ) + + 91 col1
----
157

skipif mysql # not compatible
query I rowsort label-4737
SELECT + 65 + COUNT ( * ) + + 91 col1
----
157

query II rowsort
SELECT ALL + 1, - 3 AS col0
----
1
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT + 18 + - + COALESCE ( - 37, + 10 * COUNT( * ) + + + ( - - 42 ) ) + - 29 * - 74 * - 33, 87 + 64 AS col2
----
-70763
151

skipif mysql # not compatible
query II rowsort label-4739
SELECT + 18 + - + COALESCE ( - 37, + 10 * COUNT ( * ) + + + ( - - 42 ) ) + - 29 * - 74 * - 33, 87 + 64 AS col2
----
-70763
151

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4740
SELECT + CAST( NULL AS DECIMAL ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT + CAST ( NULL AS REAL ) + - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 75 * + ( + 35 ) AS col2
----
2625

query I rowsort
SELECT + 45 + 48 AS col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4743
SELECT ALL - 93 DIV + 77 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - 93 / + 77 AS col2
----
-1

query II rowsort
SELECT ALL + + 37, 16 * + - 88 col1
----
37
-1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL AVG ( - 87 ) * ( + 47 ) + - - 15 - - SUM( - CAST( NULL AS SIGNED ) ) - 91 * - 79 - + 56 + - COUNT( * ) + 34 + - + 76 - + - 66 * - + ( + COUNT( * ) ) / - - COUNT( * ) + ( + - 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL AVG ( - 87 ) * ( + 47 ) + - - 15 - - SUM ( - CAST ( NULL AS INTEGER ) ) - 91 * - 79 - + 56 + - COUNT ( * ) + 34 + - + 76 - + - 66 * - + ( + COUNT ( * ) ) / - - COUNT ( * ) + ( + - 44 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT - 54 + + - 26 DIV + 44 * + 46
----
-54

skipif mysql # not compatible
query I rowsort label-4746
SELECT - 54 + + - 26 / + 44 * + 46
----
-54

query I rowsort
SELECT - 72 * - - 40
----
-2880

query II rowsort
SELECT ALL + 73 AS col1, + 91 - 2 + 64
----
73
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + MAX( ALL + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + MAX ( ALL + 52 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT DISTINCT - 16 * - 83 + - + 24 DIV - + 35 + - - ( - 14 ) + - 97 * + 37 AS col1
----
-2275

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT - 16 * - 83 + - + 24 / - + 35 + - - ( - 14 ) + - 97 * + 37 AS col1
----
-2275

onlyif mysql # aggregate syntax: 
query II rowsort label-4751
SELECT + ( - NULLIF ( ( + 91 ), 7 - 25 ) ), - 42 * + COUNT( * ) col1
----
-91
-42

skipif mysql # not compatible
query II rowsort label-4751
SELECT + ( - NULLIF ( ( + 91 ), 7 - 25 ) ), - 42 * + COUNT ( * ) col1
----
-91
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4752
SELECT ALL - SUM( 53 ) * - CAST( 48 AS SIGNED ) * + 7 * + CAST( NULL AS SIGNED ) - + 27 + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL - SUM ( 53 ) * - CAST ( 48 AS INTEGER ) * + 7 * + CAST ( NULL AS INTEGER ) - + 27 + + 56
----
NULL

query I rowsort
SELECT COALESCE ( + + CASE + ( - + 23 ) WHEN 47 THEN + - 16 * + - ( + 66 ) ELSE 65 + + ( + 97 ) END, 42, - 93 ) AS col0
----
162

query I rowsort
SELECT ALL 4 * + 76 + + 30
----
334

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT ALL + 82 AS col2, CASE - MAX( DISTINCT + 2 ) WHEN + COUNT( * ) + - 37 THEN NULL WHEN 82 + + 60 * - 41 THEN + - COUNT( ALL + 33 ) ELSE 49 END AS col2
----
82
49

skipif mysql # not compatible
query II rowsort label-4755
SELECT ALL + 82 AS col2, CASE - MAX ( DISTINCT + 2 ) WHEN + COUNT ( * ) + - 37 THEN NULL WHEN 82 + + 60 * - 41 THEN + - COUNT ( ALL + 33 ) ELSE 49 END AS col2
----
82
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT ALL + 68 * 82 + - + 71 + - 40 * + NULLIF ( - COUNT( * ), CAST( NULL AS SIGNED ) )
----
5545

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + 68 * 82 + - + 71 + - 40 * + NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
5545

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL NULLIF ( 46, + + ( + COUNT( * ) ) ) * + 79 - + SUM( 21 ) + - MIN( - ( + 97 ) ) * 23
----
5844

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL NULLIF ( 46, + + ( + COUNT ( * ) ) ) * + 79 - + SUM ( 21 ) + - MIN ( - ( + 97 ) ) * 23
----
5844

query I rowsort
SELECT - 70 + - 35 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT DISTINCT + 39 col1, - CASE + 80 WHEN + + 43 THEN 51 * + 28 / - SUM( + + 47 ) WHEN + 11 THEN NULL END
----
39
NULL

skipif mysql # not compatible
query II rowsort label-4759
SELECT DISTINCT + 39 col1, - CASE + 80 WHEN + + 43 THEN 51 * + 28 / - SUM ( + + 47 ) WHEN + 11 THEN NULL END
----
39
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT DISTINCT + 65 - CAST( - + COALESCE ( 43, 94 ) AS SIGNED ) * ( - - 32 )
----
1441

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + 65 - CAST ( - + COALESCE ( 43, 94 ) AS INTEGER ) * ( - - 32 )
----
1441

query I rowsort
SELECT - - 54 * + - 61 AS col2
----
-3294

query I rowsort
SELECT + 35 + + + 67
----
102

query I rowsort
SELECT - 75 * - 86 * - 79 AS col0
----
-509550

query I rowsort
SELECT - - ( + 30 ) * 66
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL COALESCE ( + 50, - 66 * - ( - SUM( ALL + - 24 ) ) + 37 + + + 47 ) * + - 41 + - 66 - + 0 + 48 col1
----
-2068

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL COALESCE ( + 50, - 66 * - ( - SUM ( ALL + - 24 ) ) + 37 + + + 47 ) * + - 41 + - 66 - + 0 + 48 col1
----
-2068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4766
SELECT + + MAX( - + 57 ) DIV + 7 + + - COUNT( * ) - - 79
----
70

skipif mysql # not compatible
query I rowsort label-4766
SELECT + + MAX ( - + 57 ) / + 7 + + - COUNT ( * ) - - 79
----
70

query I rowsort
SELECT ALL - 66 * + 36
----
-2376

query II rowsort
SELECT - 37 AS col1, - 58
----
-37
-58

query I rowsort
SELECT ALL + 91 * 9
----
819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4770
SELECT - ( + ( CASE + MIN( - 52 ) WHEN + - 26 THEN 32 * + 45 + - 13 WHEN 25 * + 43 * + - NULLIF ( 52, CAST( + 10 AS SIGNED ) ) + + + 9 - + 25 + + + MIN( + + 48 ) + 97 THEN NULL ELSE NULL END ) ) * 13 + - COUNT( * ) / 9 + - CAST( NULL AS SIGNED ) + + COALESCE ( + - 17, - 84, - 48 / - 94 ) + ( + SUM( - + ( - 63 ) ) ) * 93 + COUNT( * ) * + 20 - + SUM( + 67 ) - - - 50 + - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT - ( + ( CASE + MIN ( - 52 ) WHEN + - 26 THEN 32 * + 45 + - 13 WHEN 25 * + 43 * + - NULLIF ( 52, CAST ( + 10 AS INTEGER ) ) + + + 9 - + 25 + + + MIN ( + + 48 ) + 97 THEN NULL ELSE NULL END ) ) * 13 + - COUNT ( * ) / 9 + - CAST ( NULL AS INTEGER ) + + COALESCE ( + - 17, - 84, - 48 / - 94 ) + ( + SUM ( - + ( - 63 ) ) ) * 93 + COUNT ( * ) * + 20 - + SUM ( + 67 ) - - - 50 + - 29 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 63 * + 62
----
-3906

query II rowsort
SELECT + - 52 * - 13 - - 41 * 18 AS col0, 97 AS col1
----
1414
97

query I rowsort
SELECT ALL 21 * 32
----
672

query I rowsort
SELECT - 95 + + 61 * - 84
----
-5219

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT + 96 + + 40 + + - COUNT( * )
----
135

skipif mysql # not compatible
query I rowsort label-4775
SELECT + 96 + + 40 + + - COUNT ( * )
----
135

query I rowsort
SELECT DISTINCT 2 + + CASE - + 98 WHEN + 6 THEN - + 27 * - 89 + - 18 ELSE NULL END * 24 + + + 9 / 55 col0
----
NULL

query I rowsort
SELECT - CASE + 94 WHEN 73 + - 91 * 40 THEN + + 47 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT + 72 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-4778
SELECT + 72 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL 37 + + 11 + - 65 + + 67 * - 85 * + - COUNT( * )
----
5678

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL 37 + + 11 + - 65 + + 67 * - 85 * + - COUNT ( * )
----
5678

query I rowsort
SELECT + 42 - 85 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT DISTINCT - 72 DIV - 47 + + 6
----
7

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT - 72 / - 47 + + 6
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT DISTINCT + 89 DIV - 38 + 85 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT + 89 / - 38 + 85 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4783
SELECT DISTINCT + 34 DIV + - ( 6 ) + + - 77
----
-82

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT + 34 / + - ( 6 ) + + - 77
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4784
SELECT ALL 32 DIV ( COUNT( * ) ) + 53 + + 68 AS col2, ( + + 62 ) + + COUNT( * ) + + ( SUM( ALL - 81 ) ) AS col2
----
153
-18

skipif mysql # not compatible
query II rowsort label-4784
SELECT ALL 32 / ( COUNT ( * ) ) + 53 + + 68 AS col2, ( + + 62 ) + + COUNT ( * ) + + ( SUM ( ALL - 81 ) ) AS col2
----
153
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4785
SELECT ALL NULLIF ( + 51, 85 ) DIV - 26 + + + 2
----
1

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL NULLIF ( + 51, 85 ) / - 26 + + + 2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4786
SELECT ALL ( + - 97 ) * + 86 + + 31 - + SUM( DISTINCT - 11 ) * + COUNT( * ) AS col0, + 22 DIV + - COALESCE ( 3, + 32 * + COUNT( * ) * - 50 + ( - 71 ) * 7 )
----
-8300
-7

skipif mysql # not compatible
query II rowsort label-4786
SELECT ALL ( + - 97 ) * + 86 + + 31 - + SUM ( DISTINCT - 11 ) * + COUNT ( * ) AS col0, + 22 / + - COALESCE ( 3, + 32 * + COUNT ( * ) * - 50 + ( - 71 ) * 7 )
----
-8300
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4787
SELECT CAST( + + COUNT( * ) AS SIGNED ) AS col1, ( - + 80 )
----
1
-80

skipif mysql # not compatible
query II rowsort label-4787
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) AS col1, ( - + 80 )
----
1
-80

query I rowsort
SELECT + 65 - - ( 52 ) - - 70 AS col2
----
187

query I rowsort
SELECT + ( ( - - 58 ) ) AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT ALL 37 DIV + 35 + - + 85
----
-84

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL 37 / + 35 + - + 85
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT + MAX( DISTINCT + + 35 ) * - 28 * - 5
----
4900

skipif mysql # not compatible
query I rowsort label-4791
SELECT + MAX ( DISTINCT + + 35 ) * - 28 * - 5
----
4900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4792
SELECT ( + + NULLIF ( 94, + - 95 + + - ( 44 ) + - 15 ) ), - ( + 82 ) * + - CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col1
----
94
NULL

skipif mysql # not compatible
query II rowsort label-4792
SELECT ( + + NULLIF ( 94, + - 95 + + - ( 44 ) + - 15 ) ), - ( + 82 ) * + - CAST ( NULL AS REAL ) / + COUNT ( * ) AS col1
----
94
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT + 29 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT + 29 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ( - COALESCE ( + COUNT( * ), - 62 * 91, + - 76, + 51 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4794
SELECT ( - COALESCE ( + COUNT ( * ), - 62 * 91, + - 76, + 51 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT ALL + ( - COUNT( * ) ), COALESCE ( + + CASE - 98 WHEN + 3 THEN - 65 ELSE + COUNT( * ) END, - COUNT( * ) + - - 42 ) * 49 AS col1
----
-1
49

skipif mysql # not compatible
query II rowsort label-4795
SELECT ALL + ( - COUNT ( * ) ), COALESCE ( + + CASE - 98 WHEN + 3 THEN - 65 ELSE + COUNT ( * ) END, - COUNT ( * ) + - - 42 ) * 49 AS col1
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL + MAX( + + 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL + MAX ( + + 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL 24 * 83 - - MIN( + + 97 )
----
2089

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL 24 * 83 - - MIN ( + + 97 )
----
2089

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL + - 94 * COUNT( * ) * + 8 col0
----
-752

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + - 94 * COUNT ( * ) * + 8 col0
----
-752

query I rowsort
SELECT - 50 + - 67
----
-117

query I rowsort
SELECT 5 * + 79 AS col1
----
395

query I rowsort
SELECT ALL + + 2 * - - 74 - - 58
----
206

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4802
SELECT CAST( NULL AS DECIMAL ) - - 22, 60 * - SUM( - 94 ) AS col1
----
NULL
5640

skipif mysql # not compatible
query II rowsort label-4802
SELECT CAST ( NULL AS REAL ) - - 22, 60 * - SUM ( - 94 ) AS col1
----
NULL
5640

query I rowsort
SELECT ALL + 42 * 67 AS col2
----
2814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4804
SELECT ALL 69 * 96, SUM( DISTINCT - 95 ) * - 74 * - CAST( NULL AS SIGNED ) * + - 21 AS col0
----
6624
NULL

skipif mysql # not compatible
query II rowsort label-4804
SELECT ALL 69 * 96, SUM ( DISTINCT - 95 ) * - 74 * - CAST ( NULL AS INTEGER ) * + - 21 AS col0
----
6624
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL NULLIF ( + ( - COUNT( * ) ), + 39 / 5 / + 11 * - 59 + + 69 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL NULLIF ( + ( - COUNT ( * ) ), + 39 / 5 / + 11 * - 59 + + 69 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4806
SELECT DISTINCT + - CAST( 92 AS SIGNED ) * + 79 col0, - 46 * - COUNT( * )
----
-7268
46

skipif mysql # not compatible
query II rowsort label-4806
SELECT DISTINCT + - CAST ( 92 AS INTEGER ) * + 79 col0, - 46 * - COUNT ( * )
----
-7268
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT MIN( ALL + - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT MIN ( ALL + - 81 )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT ALL 66 DIV - 5 + 89 + - + 36
----
40

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL 66 / - 5 + 89 + - + 36
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT - CAST( NULL AS SIGNED ) + - ( ( - COUNT( * ) ) ) + 89 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT - CAST ( NULL AS INTEGER ) + - ( ( - COUNT ( * ) ) ) + 89 + 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4810
SELECT - 93 DIV 60 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4810
SELECT - 93 / 60 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL + COUNT( * ) + - COUNT( - + 18 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + COUNT ( * ) + - COUNT ( - + 18 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4812
SELECT 12 + - CASE COUNT( * ) WHEN - 82 + + 72 + ( - 16 ) THEN NULL ELSE - 10 * - + COUNT( * ) DIV + + SUM( ALL - - 37 ) + - 10 * 41 END * + ( ( + 92 ) )
----
37732

skipif mysql # not compatible
query I rowsort label-4812
SELECT 12 + - CASE COUNT ( * ) WHEN - 82 + + 72 + ( - 16 ) THEN NULL ELSE - 10 * - + COUNT ( * ) / + + SUM ( ALL - - 37 ) + - 10 * 41 END * + ( ( + 92 ) )
----
37732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4813
SELECT ALL CASE - 78 WHEN - 38 / + 95 THEN - + 94 WHEN + + 85 + + - COUNT( * ) * - 75 * + - 66 * - + CAST( 41 AS SIGNED ) / + 41 + + 13 / - 97 THEN NULL END * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL CASE - 78 WHEN - 38 / + 95 THEN - + 94 WHEN + + 85 + + - COUNT ( * ) * - 75 * + - 66 * - + CAST ( 41 AS INTEGER ) / + 41 + + 13 / - 97 THEN NULL END * 51
----
NULL

query I rowsort
SELECT ALL 13 + + 29 * - + 23
----
-654

query I rowsort
SELECT 21 + + + 26
----
47

query I rowsort
SELECT ALL - 89 + + + 78
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT ( + MIN( - 69 ) ) * + + 49 - + CAST( NULL AS SIGNED ) + + - COUNT( * ) * + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT ( + MIN ( - 69 ) ) * + + 49 - + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * + - 43
----
NULL

query I rowsort
SELECT ALL 7 + - 62 + + COALESCE ( + 11, - 48 * - 70 ) + 4 + + 49 * - 80 AS col0
----
-3960

query I rowsort
SELECT ALL + 16 * 90 AS col0
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL 83 + - - 91 - + COUNT( * ) AS col0
----
173

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL 83 + - - 91 - + COUNT ( * ) AS col0
----
173

query I rowsort
SELECT 21 * + 33 col2
----
693

onlyif mysql # DIV for integer division: 
query II rowsort label-4822
SELECT ALL - 98 col2, 91 DIV + 9 + + 53 + - COALESCE ( 82, - 71 ) * ( + + 81 ) DIV 27 AS col2
----
-98
-183

skipif mysql # not compatible
query II rowsort label-4822
SELECT ALL - 98 col2, 91 / + 9 + + 53 + - COALESCE ( 82, - 71 ) * ( + + 81 ) / 27 AS col2
----
-98
-183

query I rowsort
SELECT ALL 47 + + 38 col0
----
85

query I rowsort
SELECT 43 + - - 88 * - 52 AS col0
----
-4533

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT NULLIF ( + - ( - 76 ), ( + 23 ) ) * - 11 DIV 81 DIV NULLIF ( + 56, - ( + + 45 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4825
SELECT NULLIF ( + - ( - 76 ), ( + 23 ) ) * - 11 / 81 / NULLIF ( + 56, - ( + + 45 ) ) AS col1
----
0

query II rowsort
SELECT ALL - 33, 47 AS col1
----
-33
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4827
SELECT CAST( + + COUNT( * ) AS SIGNED ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4828
SELECT CAST( + - 68 AS SIGNED ) + - - 89 + - 46 DIV + 79
----
21

skipif mysql # not compatible
query I rowsort label-4828
SELECT CAST ( + - 68 AS INTEGER ) + - - 89 + - 46 / + 79
----
21

query I rowsort
SELECT DISTINCT ( - - 59 ) * - - 1 + 98 AS col0
----
157

query I rowsort
SELECT + 48 * 37
----
1776

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT 21 * + - 52 * COUNT( * ) + - COUNT( * ) + - - 2 AS col1
----
-1091

skipif mysql # not compatible
query I rowsort label-4831
SELECT 21 * + - 52 * COUNT ( * ) + - COUNT ( * ) + - - 2 AS col1
----
-1091

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT SUM( ALL 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4832
SELECT SUM ( ALL 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT 51 + + + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4833
SELECT 51 + + + COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4834
SELECT - - 98 * COUNT( * ) DIV - 62 + 87 + + - 70 + - COUNT( - 38 )
----
15

skipif mysql # not compatible
query I rowsort label-4834
SELECT - - 98 * COUNT ( * ) / - 62 + 87 + + - 70 + - COUNT ( - 38 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT ALL 14 / + 20 * ( + - CAST( NULL AS SIGNED ) ) * - - 54 + + + CASE - 26 WHEN - + AVG ( - + 74 ) THEN COALESCE ( 3, - + 5 + + 77 + NULLIF ( - - MAX( ALL 71 ), ( + MIN( ALL - 27 ) ) * 68 * - 71 ) - - ( + - 72 ) * + CASE + 15 WHEN + 0 * CAST( + NULLIF ( - - 35, + + 83 + + COALESCE ( + + COUNT( * ), + - 67 * - - CAST( - 6 AS SIGNED ) + + 57 + 58, - - 62 ) * + CASE + - 41 WHEN + - COALESCE ( - ( - COALESCE ( + COUNT( * ), - COUNT( * ) / - 84 ) ), CASE 45 WHEN CASE 98 WHEN - 43 + + 42 * 71 THEN - 86 / 58 WHEN - 24 * 99 THEN - 67 * 40 WHEN NULLIF ( + 98, - CAST( 42 AS SIGNED ) ) - - COALESCE ( + 90, + 56 * 84, 93 * 75 ) THEN NULL END * + 46 THEN + 86 * + 99 END * + 9 + - 38 ) THEN - 77 END * + ( 37 ) + COUNT( + 44 ) ) AS SIGNED ) + + 36 THEN NULL WHEN + 85 THEN NULL ELSE + 47 END, 4 + - 46 ) * + 58 WHEN + 85 THEN - 62 / 44 ELSE - 77 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL 14 / + 20 * ( + - CAST ( NULL AS INTEGER ) ) * - - 54 + + + CASE - 26 WHEN - + AVG ( - + 74 ) THEN COALESCE ( 3, - + 5 + + 77 + NULLIF ( - - MAX ( ALL 71 ), ( + MIN ( ALL - 27 ) ) * 68 * - 71 ) - - ( + - 72 ) * + CASE + 15 WHEN + 0 * CAST ( + NULLIF ( - - 35, + + 83 + + COALESCE ( + + COUNT ( * ), + - 67 * - - CAST ( - 6 AS INTEGER ) + + 57 + 58, - - 62 ) * + CASE + - 41 WHEN + - COALESCE ( - ( - COALESCE ( + COUNT ( * ), - COUNT ( * ) / - 84 ) ), CASE 45 WHEN CASE 98 WHEN - 43 + + 42 * 71 THEN - 86 / 58 WHEN - 24 * 99 THEN - 67 * 40 WHEN NULLIF ( + 98, - CAST ( 42 AS INTEGER ) ) - - COALESCE ( + 90, + 56 * 84, 93 * 75 ) THEN NULL END * + 46 THEN + 86 * + 99 END * + 9 + - 38 ) THEN - 77 END * + ( 37 ) + COUNT ( + 44 ) ) AS INTEGER ) + + 36 THEN NULL WHEN + 85 THEN NULL ELSE + 47 END, 4 + - 46 ) * + 58 WHEN + 85 THEN - 62 / 44 ELSE - 77 END AS col0
----
NULL

query I rowsort
SELECT ALL - - CASE - 71 WHEN 72 THEN - NULLIF ( 41, - 95 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4837
SELECT - COALESCE ( - 48, + + COUNT( * ) ) AS col0, - 36 * + - 6 col2
----
48
216

skipif mysql # not compatible
query II rowsort label-4837
SELECT - COALESCE ( - 48, + + COUNT ( * ) ) AS col0, - 36 * + - 6 col2
----
48
216

onlyif mysql # aggregate syntax: 
query II rowsort label-4838
SELECT DISTINCT COUNT( * ), - 56 * + + 49 AS col2
----
1
-2744

skipif mysql # not compatible
query II rowsort label-4838
SELECT DISTINCT COUNT ( * ), - 56 * + + 49 AS col2
----
1
-2744

query I rowsort
SELECT ALL 81 + - - 39
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4840
SELECT ( - + 35 ) + - - 19, 44 DIV - COUNT( * ) AS col0
----
-16
-44

skipif mysql # not compatible
query II rowsort label-4840
SELECT ( - + 35 ) + - - 19, 44 / - COUNT ( * ) AS col0
----
-16
-44

query I rowsort
SELECT + 64 * ( 4 ) AS col0
----
256

query I rowsort
SELECT + 34 + + - 59
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT ALL - 14 + + - 10 DIV 75
----
-14

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - 14 + + - 10 / 75
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4844
SELECT - + 53 AS col1, + COUNT( * )
----
-53
1

skipif mysql # not compatible
query II rowsort label-4844
SELECT - + 53 AS col1, + COUNT ( * )
----
-53
1

query II rowsort
SELECT - + 43 AS col2, 36 col2
----
-43
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT SUM( ALL + 91 ) * + COUNT( * ) + + COUNT( * ) + - - 34 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-4846
SELECT SUM ( ALL + 91 ) * + COUNT ( * ) + + COUNT ( * ) + - - 34 AS col2
----
126

query I rowsort
SELECT ALL + - 82 * 47
----
-3854

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4848
SELECT ALL - 29 + 87 + + COUNT( - CAST( NULL AS DECIMAL ) ) AS col2, 45
----
58
45

skipif mysql # not compatible
query II rowsort label-4848
SELECT ALL - 29 + 87 + + COUNT ( - CAST ( NULL AS REAL ) ) AS col2, 45
----
58
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT DISTINCT - ( 73 ) + + 52 + - CAST( + + 72 AS SIGNED ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - ( 73 ) + + 52 + - CAST ( + + 72 AS INTEGER ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4850
SELECT 31 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4850
SELECT 31 / - 75 AS col2
----
0

query I rowsort
SELECT 37 * - 27 * + - 60
----
59940

query I rowsort
SELECT 21 + + + 88
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4853
SELECT 56 DIV + 97 * - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4853
SELECT 56 / + 97 * - + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4854
SELECT ALL - ( ( - + 33 ) ) + + - CASE - + 41 WHEN - 91 THEN - 0 * 65 + - + ( + 76 ) DIV + 29 WHEN ( + 74 ) THEN NULL ELSE + COUNT( * ) END AS col2, + 67 * + 29 AS col1
----
32
1943

skipif mysql # not compatible
query II rowsort label-4854
SELECT ALL - ( ( - + 33 ) ) + + - CASE - + 41 WHEN - 91 THEN - 0 * 65 + - + ( + 76 ) / + 29 WHEN ( + 74 ) THEN NULL ELSE + COUNT ( * ) END AS col2, + 67 * + 29 AS col1
----
32
1943

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT ALL + 94 - - 23 * 85 * - 23 + + - 89 - 26 DIV - 79 * - - 95 + 32
----
-44928

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + 94 - - 23 * 85 * - 23 + + - 89 - 26 / - 79 * - - 95 + 32
----
-44928

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4856
SELECT DISTINCT - 40 DIV + COALESCE ( - 61, COUNT( * ) ), 14 AS col1
----
0
14

skipif mysql # not compatible
query II rowsort label-4856
SELECT DISTINCT - 40 / + COALESCE ( - 61, COUNT ( * ) ), 14 AS col1
----
0
14

query I rowsort
SELECT 53 * 53 * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4858
SELECT + 17 * + 92 * 98 + - 65 DIV - - ( - COUNT( + 44 ) ) + + + 84
----
153421

skipif mysql # not compatible
query I rowsort label-4858
SELECT + 17 * + 92 * 98 + - 65 / - - ( - COUNT ( + 44 ) ) + + + 84
----
153421

query I rowsort
SELECT ALL - 75 * 47 - 26
----
-3551

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT DISTINCT COUNT( * ) * - 92 AS col0, COUNT( * )
----
-92
1

skipif mysql # not compatible
query II rowsort label-4860
SELECT DISTINCT COUNT ( * ) * - 92 AS col0, COUNT ( * )
----
-92
1

query II rowsort
SELECT DISTINCT + 68 * - 14 AS col2, 11
----
-952
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT + 50 * COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + 50 * COUNT ( * ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-4863
SELECT ALL + + ( 63 ) AS col2, + 74 DIV + 7 + - 24
----
63
-14

skipif mysql # not compatible
query II rowsort label-4863
SELECT ALL + + ( 63 ) AS col2, + 74 / + 7 + - 24
----
63
-14

query I rowsort
SELECT + + ( - 20 ) AS col1
----
-20

query I rowsort
SELECT - 46 * + - 26 + - + 80
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + 15 * - - COUNT( DISTINCT + + 67 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4866
SELECT + 15 * - - COUNT ( DISTINCT + + 67 ) AS col0
----
15

query II rowsort
SELECT - 59 + + 85, 84 AS col0
----
26
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT + COUNT( * ) * - + ( - 8 ) + - ( + 57 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT + COUNT ( * ) * - + ( - 8 ) + - ( + 57 ) AS col0
----
-49

query I rowsort
SELECT + + 15 * + 10 * 84
----
12600

query II rowsort
SELECT ALL - 72 * + ( + 8 ) + + 96, - 44 AS col2
----
-480
-44

query I rowsort
SELECT ALL + NULLIF ( - 1, + + 39 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL 88 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL 88 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + COUNT( * ) * + 50
----
50

skipif mysql # not compatible
query I rowsort label-4873
SELECT + COUNT ( * ) * + 50
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4874
SELECT DISTINCT - CASE - CASE + COUNT( * ) WHEN CAST( NULL AS SIGNED ) * - - COUNT( DISTINCT - 81 ) * - + 37 + + 5 + 77 THEN + 5 * + 80 ELSE NULL END WHEN 58 THEN NULL WHEN - - COUNT( * ) - + - COUNT( * ) THEN + + COUNT( DISTINCT - 71 ) + - 43 + NULLIF ( - CAST( - 91 AS SIGNED ), + + CAST( + 68 AS SIGNED ) ) ELSE + + 45 END
----
-45

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT - CASE - CASE + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * - - COUNT ( DISTINCT - 81 ) * - + 37 + + 5 + 77 THEN + 5 * + 80 ELSE NULL END WHEN 58 THEN NULL WHEN - - COUNT ( * ) - + - COUNT ( * ) THEN + + COUNT ( DISTINCT - 71 ) + - 43 + NULLIF ( - CAST ( - 91 AS INTEGER ), + + CAST ( + 68 AS INTEGER ) ) ELSE + + 45 END
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT 88 * + + 38 - COUNT( * ) + 72
----
3415

skipif mysql # not compatible
query I rowsort label-4875
SELECT 88 * + + 38 - COUNT ( * ) + 72
----
3415

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL - MIN( 33 ) + + 69 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL - MIN ( 33 ) + + 69 AS col0
----
36

query I rowsort
SELECT ALL + 2 + - - 42 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + 96 + - COUNT( * ) * - 81
----
177

skipif mysql # not compatible
query I rowsort label-4878
SELECT + 96 + - COUNT ( * ) * - 81
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT ALL + 25 + + CAST( - 86 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + 25 + + CAST ( - 86 AS INTEGER )
----
-61

query I rowsort
SELECT - ( + + 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT - NULLIF ( - - 8, - 66 * + - COUNT( * ) / - 45 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4881
SELECT - NULLIF ( - - 8, - 66 * + - COUNT ( * ) / - 45 ) AS col2
----
-8

query I rowsort
SELECT DISTINCT 30 * + ( - 80 ) AS col1
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - 42 + + - COUNT( * ) + - 5 + - 11
----
-59

skipif mysql # not compatible
query I rowsort label-4883
SELECT - 42 + + - COUNT ( * ) + - 5 + - 11
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + COUNT( * ) + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-4884
SELECT + COUNT ( * ) + - 97
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT - 6 + 12 * - + 24 * + - 29 - + 6 * - CAST( + 10 AS SIGNED ) AS col0
----
8406

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 6 + 12 * - + 24 * + - 29 - + 6 * - CAST ( + 10 AS INTEGER ) AS col0
----
8406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT ALL NULLIF ( - + MIN( DISTINCT CAST( NULL AS SIGNED ) ), - 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL NULLIF ( - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ), - 6 ) AS col2
----
NULL

query I rowsort
SELECT - 23 * + + 94 AS col2
----
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL COUNT( * ) * + - 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL COUNT ( * ) * + - 24 AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT + 87 * - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT + 87 * - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT - MIN( + 57 ) * 63 * - ( - COUNT( * ) ) AS col2
----
-3591

skipif mysql # not compatible
query I rowsort label-4890
SELECT - MIN ( + 57 ) * 63 * - ( - COUNT ( * ) ) AS col2
----
-3591

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT DISTINCT - 9 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT - 9 / - 75 AS col2
----
0

query I rowsort
SELECT - 28 + + 61 AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT - - COUNT( - 66 ) + 41, + 32 - + 91 AS col2
----
42
-59

skipif mysql # not compatible
query II rowsort label-4893
SELECT - - COUNT ( - 66 ) + 41, + 32 - + 91 AS col2
----
42
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT DISTINCT - 88 DIV + - 77 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - 88 / + - 77 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + COUNT( * ) * + ( + 43 ) * + + 24 + + ( 24 ) - + 98
----
958

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + COUNT ( * ) * + ( + 43 ) * + + 24 + + ( 24 ) - + 98
----
958

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT CASE - - COUNT( * ) WHEN - 81 - + 55 THEN 85 * + 38 - COUNT( * ) ELSE 61 + 16 + - - 50 * 65 - + 65 END AS col2
----
3262

skipif mysql # not compatible
query I rowsort label-4896
SELECT CASE - - COUNT ( * ) WHEN - 81 - + 55 THEN 85 * + 38 - COUNT ( * ) ELSE 61 + 16 + - - 50 * 65 - + 65 END AS col2
----
3262

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL + 11 * COUNT( * ) + + 58 - + 79 * + 90 * ( COUNT( * ) ) * + - 62 * 95
----
41877969

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + 11 * COUNT ( * ) + + 58 - + 79 * + 90 * ( COUNT ( * ) ) * + - 62 * 95
----
41877969

query I rowsort
SELECT - 23 * + 61 + ( + 1 ) col1
----
-1402

query I rowsort
SELECT - - 92 * 17 AS col2
----
1564

query I rowsort
SELECT ALL 11 * - - 12 + - - 66 * - 28 AS col0
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL + NULLIF ( - 59, COUNT( ALL + - ( + ( - 2 ) ) ) )
----
-59

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL + NULLIF ( - 59, COUNT ( ALL + - ( + ( - 2 ) ) ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT DISTINCT - SUM( ALL + 80 ) * 88 * + + 74 AS col0
----
-520960

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - SUM ( ALL + 80 ) * 88 * + + 74 AS col0
----
-520960

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL MIN( + 1 ) * 55
----
55

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL MIN ( + 1 ) * 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL + COUNT( * ) * - 91 - + 94
----
-185

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + COUNT ( * ) * - 91 - + 94
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT + 54 DIV + ( + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4905
SELECT + 54 / + ( + 7 ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4906
SELECT + CASE - 37 WHEN 38 * - CAST( NULL AS DECIMAL ) + - + 66 THEN NULL ELSE + - 9 + + - 21 END * + MAX( ALL + - 37 ) AS col2
----
1110

skipif mysql # not compatible
query I rowsort label-4906
SELECT + CASE - 37 WHEN 38 * - CAST ( NULL AS REAL ) + - + 66 THEN NULL ELSE + - 9 + + - 21 END * + MAX ( ALL + - 37 ) AS col2
----
1110

onlyif mysql # aggregate syntax: 
query II rowsort label-4907
SELECT ALL - SUM( + 35 ) - 86 - - + 41, 48 * 69 AS col0
----
-80
3312

skipif mysql # not compatible
query II rowsort label-4907
SELECT ALL - SUM ( + 35 ) - 86 - - + 41, 48 * 69 AS col0
----
-80
3312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4908
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 59 / 31 / CAST( NULL AS SIGNED ), 6 + 77 + 18 col0
----
NULL
101

skipif mysql # not compatible
query II rowsort label-4908
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 59 / 31 / CAST ( NULL AS INTEGER ), 6 + 77 + 18 col0
----
NULL
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4909
SELECT ALL 18 DIV + COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL 18 / + COUNT ( * ) col1
----
18

query II rowsort
SELECT ALL 25, - 92 * + 6 AS col0
----
25
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT COALESCE ( 77, 22 ) + - COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4911
SELECT COALESCE ( 77, 22 ) + - COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT ALL 82, + COUNT( * ) * - COUNT( * ) AS col2
----
82
-1

skipif mysql # not compatible
query II rowsort label-4912
SELECT ALL 82, + COUNT ( * ) * - COUNT ( * ) AS col2
----
82
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4913
SELECT - 38 col1, 67 + - 94 DIV + + 82 AS col0
----
-38
66

skipif mysql # not compatible
query II rowsort label-4913
SELECT - 38 col1, 67 + - 94 / + + 82 AS col0
----
-38
66

query I rowsort
SELECT 97 * + 10
----
970

query I rowsort
SELECT ALL 76 + + ( - - 85 ) col0
----
161

query II rowsort
SELECT - 93, 39 + + + 99 AS col1
----
-93
138

query II rowsort
SELECT - 95 AS col2, 66 * 89 + - 29 AS col2
----
-95
5845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT ALL - COALESCE ( - 10, 30 * CAST( NULL AS SIGNED ) + + - 1 )
----
10

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - COALESCE ( - 10, 30 * CAST ( NULL AS INTEGER ) + + - 1 )
----
10

query I rowsort
SELECT ALL + 9 + + 71 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT 26 * + + COUNT( * ) * - 1
----
-26

skipif mysql # not compatible
query I rowsort label-4920
SELECT 26 * + + COUNT ( * ) * - 1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4921
SELECT - + 57 * + - COUNT( ALL - - 5 ) - + 29 AS col2, - COUNT( * ) * 25 DIV + 84
----
28
0

skipif mysql # not compatible
query II rowsort label-4921
SELECT - + 57 * + - COUNT ( ALL - - 5 ) - + 29 AS col2, - COUNT ( * ) * 25 / + 84
----
28
0

onlyif mysql # aggregate syntax: 
query III rowsort label-4922
SELECT + - 74, + 12 col0, SUM( ALL - + 23 ) * CASE 6 WHEN 97 * + 47 THEN + - COUNT( * ) END AS col0
----
-74
12
NULL

skipif mysql # not compatible
query III rowsort label-4922
SELECT + - 74, + 12 col0, SUM ( ALL - + 23 ) * CASE 6 WHEN 97 * + 47 THEN + - COUNT ( * ) END AS col0
----
-74
12
NULL

query I rowsort
SELECT ALL + + 75 + - + 60
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT 66 + - + 54 * 10 * + COUNT( * ) AS col0
----
-474

skipif mysql # not compatible
query I rowsort label-4924
SELECT 66 + - + 54 * 10 * + COUNT ( * ) AS col0
----
-474

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT ALL + + 75 - + 95 col2, + COUNT( * )
----
-20
1

skipif mysql # not compatible
query II rowsort label-4925
SELECT ALL + + 75 - + 95 col2, + COUNT ( * )
----
-20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL - - COUNT( DISTINCT - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - - COUNT ( DISTINCT - 81 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT + - 33 - COUNT( * ) * 33
----
-66

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT + - 33 - COUNT ( * ) * 33
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT - CAST( NULL AS SIGNED ) + + + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT - CAST ( NULL AS INTEGER ) + + + 90 AS col1
----
NULL

query I rowsort
SELECT 23 + - 43
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT 27 * - SUM( - 90 )
----
2430

skipif mysql # not compatible
query I rowsort label-4930
SELECT 27 * - SUM ( - 90 )
----
2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4931
SELECT DISTINCT - CASE - SUM( - 19 ) WHEN + - 70 THEN - CAST( NULL AS SIGNED ) / 57 + + - 51 WHEN + 60 THEN - NULLIF ( + CAST( + 57 AS SIGNED ), - 57 - - 2 ) - + 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - CASE - SUM ( - 19 ) WHEN + - 70 THEN - CAST ( NULL AS INTEGER ) / 57 + + - 51 WHEN + 60 THEN - NULLIF ( + CAST ( + 57 AS INTEGER ), - 57 - - 2 ) - + 24 END AS col0
----
NULL

query I rowsort
SELECT 37 + + 90 * + 70
----
6337

query I rowsort
SELECT 40 * + 26 AS col2
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - COUNT( + + 57 ) * - - 2 + - - COUNT( * ) * 47 * + 22 + 44
----
1076

skipif mysql # not compatible
query I rowsort label-4934
SELECT - COUNT ( + + 57 ) * - - 2 + - - COUNT ( * ) * 47 * + 22 + 44
----
1076

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4935
SELECT 56 + - + 66 - COUNT( - 83 ) DIV - - NULLIF ( - 63, 13 ) AS col0, + ( - - 99 ) * - 28 AS col2
----
-10
-2772

skipif mysql # not compatible
query II rowsort label-4935
SELECT 56 + - + 66 - COUNT ( - 83 ) / - - NULLIF ( - 63, 13 ) AS col0, + ( - - 99 ) * - 28 AS col2
----
-10
-2772

query I rowsort
SELECT ALL 77 * - 7 * - + 25 * 77
----
1037575

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT COUNT( ALL 52 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT COUNT ( ALL 52 ) + - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4938
SELECT DISTINCT COUNT( * ) * + 11 * CASE 58 WHEN + + COUNT( * ) THEN 76 ELSE NULL END * CAST( + - 28 AS SIGNED ) * - + 45 * + MAX( DISTINCT - 75 ) * + + 44 + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT COUNT ( * ) * + 11 * CASE 58 WHEN + + COUNT ( * ) THEN 76 ELSE NULL END * CAST ( + - 28 AS INTEGER ) * - + 45 * + MAX ( DISTINCT - 75 ) * + + 44 + - 69
----
NULL

query III rowsort
SELECT 81 + 0, 57 AS col0, - 95 - 21 + - - 32 AS col2
----
81
57
-84

query I rowsort
SELECT DISTINCT + 9 * - ( 8 ) col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4941
SELECT 71 + + NULLIF ( 29, + CAST( + + 92 AS SIGNED ) * - 0 + - COUNT( + 89 ) ) - + + 23 DIV - + 12
----
101

skipif mysql # not compatible
query I rowsort label-4941
SELECT 71 + + NULLIF ( 29, + CAST ( + + 92 AS INTEGER ) * - 0 + - COUNT ( + 89 ) ) - + + 23 / - + 12
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL COUNT( * ) + COUNT( + - 14 ) + ( - - 71 ) * - 26
----
-1844

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL COUNT ( * ) + COUNT ( + - 14 ) + ( - - 71 ) * - 26
----
-1844

query I rowsort
SELECT DISTINCT - 46 * + 86 col1
----
-3956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4944
SELECT DISTINCT + 80 + + - 39 DIV COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + 80 + + - 39 / COUNT ( * )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT ( + - 32 ) + - - 61 + - 20 DIV 5 * + 21
----
-55

skipif mysql # not compatible
query I rowsort label-4945
SELECT ( + - 32 ) + - - 61 + - 20 / 5 * + 21
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4946
SELECT - 92 * + 8 DIV + - COUNT( * ) AS col1
----
736

skipif mysql # not compatible
query I rowsort label-4946
SELECT - 92 * + 8 / + - COUNT ( * ) AS col1
----
736

query I rowsort
SELECT 9 + - 48 AS col1
----
-39

query I rowsort
SELECT + - COALESCE ( + 41, - + 32 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL - + 8 * - COUNT( + 27 ) + + ( + NULLIF ( 82, 13 * - ( COALESCE ( - - CASE - MIN( + 41 ) WHEN + + 29 * - 70 THEN - COUNT( * ) ELSE NULL END, 67 * - + AVG ( + 5 ) ) ) + - - 6 ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - + 8 * - COUNT ( + 27 ) + + ( + NULLIF ( 82, 13 * - ( COALESCE ( - - CASE - MIN ( + 41 ) WHEN + + 29 * - 70 THEN - COUNT ( * ) ELSE NULL END, 67 * - + AVG ( + 5 ) ) ) + - - 6 ) ) AS col1
----
90

query II rowsort
SELECT + ( + + 59 ) AS col1, 92 AS col0
----
59
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT DISTINCT - + CAST( - - AVG ( + 41 ) AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - + CAST ( - - AVG ( + 41 ) AS INTEGER )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT DISTINCT - COUNT( * ) * + 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT - COUNT ( * ) * + 31 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4953
SELECT ALL - COALESCE ( + - CAST( NULL AS SIGNED ), - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - COALESCE ( + - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT 91 * + 34 + 79 * + COUNT( * ) col0
----
3173

skipif mysql # not compatible
query I rowsort label-4954
SELECT 91 * + 34 + 79 * + COUNT ( * ) col0
----
3173

onlyif mysql # DIV for integer division: 
query I rowsort label-4955
SELECT DISTINCT + 12 DIV + ( + - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + 12 / + ( + - 73 )
----
0

query I rowsort
SELECT 75 * 94
----
7050

query I rowsort
SELECT ALL - 94 * + 50
----
-4700

query I rowsort
SELECT ALL - 76 * 5
----
-380

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4959
SELECT - 83 / ( - CASE 81 WHEN - ( 19 ) THEN NULL WHEN - - 75 THEN CAST( 48 AS DECIMAL ) + + 96 * COUNT( * ) * + 56 + - + ( + - 15 ) + - COUNT( * ) - 23 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT - 83 / ( - CASE 81 WHEN - ( 19 ) THEN NULL WHEN - - 75 THEN CAST ( 48 AS REAL ) + + 96 * COUNT ( * ) * + 56 + - + ( + - 15 ) + - COUNT ( * ) - 23 ELSE NULL END ) AS col0
----
NULL

query II rowsort
SELECT - 22 AS col2, - 14 AS col1
----
-22
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4961
SELECT 43, - NULLIF ( ( - 19 ), + CAST( + + 68 AS SIGNED ) ) AS col1
----
43
19

skipif mysql # not compatible
query II rowsort label-4961
SELECT 43, - NULLIF ( ( - 19 ), + CAST ( + + 68 AS INTEGER ) ) AS col1
----
43
19

query I rowsort
SELECT DISTINCT - 59 + 20 AS col0
----
-39

query I rowsort
SELECT ALL + 5 + + 45 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT DISTINCT NULLIF ( - 47, COUNT( * ) - + - 70 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT NULLIF ( - 47, COUNT ( * ) - + - 70 ) AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4965
SELECT ALL - 77 + - CASE - AVG ( + ( - 41 ) ) WHEN 3 / - 18 THEN COUNT( * ) * CAST( NULL AS SIGNED ) * - COUNT( * ) WHEN - - 87 THEN + ( + - ( - 76 ) ) END / - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - 77 + - CASE - AVG ( + ( - 41 ) ) WHEN 3 / - 18 THEN COUNT ( * ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) WHEN - - 87 THEN + ( + - ( - 76 ) ) END / - 36
----
NULL

query I rowsort
SELECT ALL + 5 + + + 29
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4967
SELECT - 91 AS col1, CASE 6 WHEN ( + + 81 ) THEN NULL WHEN + 1 THEN - 49 WHEN 73 + + 16 + + 52 + + - COUNT( DISTINCT 67 ) * + ( - NULLIF ( + COUNT( * ), + 98 ) ) * CASE + 77 WHEN - 94 + + + 12 THEN - COALESCE ( + - 24, - - 4 + 27 ) * + NULLIF ( - + 93, + CAST( NULL AS SIGNED ) + + 67 * - COUNT( * ) ) * + 67 + - 97 - - 15 ELSE NULL END + 96 THEN - + 44 * - 14 ELSE NULL END + - + 74 AS col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-4967
SELECT - 91 AS col1, CASE 6 WHEN ( + + 81 ) THEN NULL WHEN + 1 THEN - 49 WHEN 73 + + 16 + + 52 + + - COUNT ( DISTINCT 67 ) * + ( - NULLIF ( + COUNT ( * ), + 98 ) ) * CASE + 77 WHEN - 94 + + + 12 THEN - COALESCE ( + - 24, - - 4 + 27 ) * + NULLIF ( - + 93, + CAST ( NULL AS INTEGER ) + + 67 * - COUNT ( * ) ) * + 67 + - 97 - - 15 ELSE NULL END + 96 THEN - + 44 * - 14 ELSE NULL END + - + 74 AS col2
----
-91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4968
SELECT - + 87 + + 9 + - COUNT( * ) - + 75 * - + COUNT( * ) + - CAST( - + CASE - COUNT( ALL + CAST( NULL AS DECIMAL ) ) WHEN - 15 * + + AVG ( - 73 ) THEN 49 / + COUNT( * ) + + 43 * + + 14 - 96 ELSE NULL END AS SIGNED ) + 41 - - - NULLIF ( - - 10, + NULLIF ( - AVG ( DISTINCT - + 63 ), 22 * COALESCE ( + 41, + 39, COALESCE ( + 17, - - 47, - 25 + - 86 ) ) + + 79 + 10 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4968
SELECT - + 87 + + 9 + - COUNT ( * ) - + 75 * - + COUNT ( * ) + - CAST ( - + CASE - COUNT ( ALL + CAST ( NULL AS REAL ) ) WHEN - 15 * + + AVG ( - 73 ) THEN 49 / + COUNT ( * ) + + 43 * + + 14 - 96 ELSE NULL END AS INTEGER ) + 41 - - - NULLIF ( - - 10, + NULLIF ( - AVG ( DISTINCT - + 63 ), 22 * COALESCE ( + 41, + 39, COALESCE ( + 17, - - 47, - 25 + - 86 ) ) + + 79 + 10 ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4969
SELECT DISTINCT - 60 + - SUM( ALL - - 64 ) AS col2, + 48 * + 58 * + 1
----
-124
2784

skipif mysql # not compatible
query II rowsort label-4969
SELECT DISTINCT - 60 + - SUM ( ALL - - 64 ) AS col2, + 48 * + 58 * + 1
----
-124
2784

query I rowsort
SELECT ALL + 26 - 79
----
-53

query I rowsort
SELECT - 12 - + 64 AS col0
----
-76

query I rowsort
SELECT + 82 * + 56 AS col0
----
4592

query I rowsort
SELECT - 26 + 39
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL COUNT( ALL 60 )
----
1

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL COUNT ( ALL 60 )
----
1

query I rowsort
SELECT ALL + + 4 * + + 43 * ( - 21 ) AS col2
----
-3612

onlyif mysql # DIV for integer division: 
query II rowsort label-4976
SELECT ALL + 55 * 1 * COALESCE ( + + 29, + 90 ) DIV + - 24 - + - 45 * 5, ( - 54 ) AS col0
----
159
-54

skipif mysql # not compatible
query II rowsort label-4976
SELECT ALL + 55 * 1 * COALESCE ( + + 29, + 90 ) / + - 24 - + - 45 * 5, ( - 54 ) AS col0
----
159
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4977
SELECT + + 80 * SUM( - 63 ) DIV MIN( + 64 )
----
-78

skipif mysql # not compatible
query I rowsort label-4977
SELECT + + 80 * SUM ( - 63 ) / MIN ( + 64 )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4978
SELECT + + 57 AS col1, MIN( + + 25 ) + 18
----
57
43

skipif mysql # not compatible
query II rowsort label-4978
SELECT + + 57 AS col1, MIN ( + + 25 ) + 18
----
57
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT + - NULLIF ( + COUNT( * ), + CAST( NULL AS SIGNED ) ) - 7 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4979
SELECT + - NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) - 7 AS col1
----
-8

query I rowsort
SELECT CASE - 8 WHEN - 54 THEN - ( - 64 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL + - COUNT( + 51 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL + - COUNT ( + 51 ) AS col0
----
-1

query I rowsort
SELECT + 28 * 88
----
2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4983
SELECT ALL + 93 AS col2, CAST( NULL AS SIGNED ) * COUNT( * ) / - + 62 / - - 51
----
93
NULL

skipif mysql # not compatible
query II rowsort label-4983
SELECT ALL + 93 AS col2, CAST ( NULL AS INTEGER ) * COUNT ( * ) / - + 62 / - - 51
----
93
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4984
SELECT 10 AS col1, CAST( NULL AS SIGNED )
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4984
SELECT 10 AS col1, CAST ( NULL AS INTEGER )
----
10
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT ALL 1 * + 61 DIV 9 col2
----
6

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL 1 * + 61 / 9 col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT + 7 * + SUM( DISTINCT 46 ) * COUNT( * ) AS col0, 54 * - 50 * - - 3 AS col1
----
322
-8100

skipif mysql # not compatible
query II rowsort label-4986
SELECT + 7 * + SUM ( DISTINCT 46 ) * COUNT ( * ) AS col0, 54 * - 50 * - - 3 AS col1
----
322
-8100

query II rowsort
SELECT ALL 13 * 29, 78 - - 66 AS col2
----
377
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4988
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) + - - ( 58 ), 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-4988
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) + - - ( 58 ), 33 AS col2
----
NULL
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4989
SELECT + COUNT( * ) - + 14 DIV - 93 + - CAST( + 61 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-4989
SELECT + COUNT ( * ) - + 14 / - 93 + - CAST ( + 61 AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT DISTINCT 53 * 46 + + - NULLIF ( COUNT( DISTINCT + 2 ), + AVG ( ALL + + 51 ) * 20 )
----
2437

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT 53 * 46 + + - NULLIF ( COUNT ( DISTINCT + 2 ), + AVG ( ALL + + 51 ) * 20 )
----
2437

query I rowsort
SELECT ALL 21 * - 21 + - 87 AS col2
----
-528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT CASE - - CAST( NULL AS SIGNED ) WHEN - MIN( DISTINCT + 75 ) THEN + ( CASE - + COUNT( * ) WHEN 39 THEN - 92 WHEN - + MIN( DISTINCT 72 ) THEN NULL END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT CASE - - CAST ( NULL AS INTEGER ) WHEN - MIN ( DISTINCT + 75 ) THEN + ( CASE - + COUNT ( * ) WHEN 39 THEN - 92 WHEN - + MIN ( DISTINCT 72 ) THEN NULL END ) END
----
NULL

query I rowsort
SELECT + ( - ( 85 ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT ALL 27 * + 18 * + + 75 + COUNT( * ) DIV 9 * + - COUNT( * )
----
36450

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL 27 * + 18 * + + 75 + COUNT ( * ) / 9 * + - COUNT ( * )
----
36450

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT DISTINCT - 64 DIV - + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT - 64 / - + 75 AS col2
----
0

query I rowsort
SELECT DISTINCT ( - 37 ) * 72 * + + 90 + 30 * + + 4 * - 40 AS col2
----
-244560

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL CASE 52 WHEN MIN( ALL 31 ) * + - 74 THEN - 85 + - COUNT( + 39 ) WHEN + + 6 THEN - 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL CASE 52 WHEN MIN ( ALL 31 ) * + - 74 THEN - 85 + - COUNT ( + 39 ) WHEN + + 6 THEN - 74 END AS col1
----
NULL

query II rowsort
SELECT ALL - NULLIF ( - 58, - 81 ) * + 99 AS col1, 44
----
5742
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4999
SELECT ALL CAST( + 28 AS SIGNED ) * 47 + - 30 - - - CAST( 20 AS SIGNED )
----
1266

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL CAST ( + 28 AS INTEGER ) * 47 + - 30 - - - CAST ( 20 AS INTEGER )
----
1266

query I rowsort
SELECT - 70 + + - 93
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5001
SELECT ALL + ( + 66 ) + + ( + 10 ) + 43 + 42 * + CAST( COUNT( * ) AS SIGNED ) + + - COUNT( * ) DIV 91 AS col2, - 71 AS col1
----
161
-71

skipif mysql # not compatible
query II rowsort label-5001
SELECT ALL + ( + 66 ) + + ( + 10 ) + 43 + 42 * + CAST ( COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) / 91 AS col2, - 71 AS col1
----
161
-71

query I rowsort
SELECT ALL - 46 * - ( + + 59 ) AS col1
----
2714

query I rowsort
SELECT - 63 + 88 AS col2
----
25

query I rowsort
SELECT - CASE + 9 WHEN 67 THEN + - 97 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - 83 * CASE - 92 WHEN 92 THEN NULL WHEN - 70 THEN 24 ELSE + 60 END + 81 + - - 65 + + - 41 * + 69 * + COALESCE ( - + 83, - 55 ) * + COUNT( * ) AS col0
----
229973

skipif mysql # not compatible
query I rowsort label-5005
SELECT - 83 * CASE - 92 WHEN 92 THEN NULL WHEN - 70 THEN 24 ELSE + 60 END + 81 + - - 65 + + - 41 * + 69 * + COALESCE ( - + 83, - 55 ) * + COUNT ( * ) AS col0
----
229973

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - MAX( DISTINCT - 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5006
SELECT - MAX ( DISTINCT - 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT MIN( + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5007
SELECT MIN ( + 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT COUNT( + - 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5008
SELECT COUNT ( + - 51 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - MAX( 75 ) + + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-5009
SELECT - MAX ( 75 ) + + COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL - - 14 * + NULLIF ( + 30, - 66 * + 96 - + COUNT( * ) ) * - SUM( ALL + - 55 ) col0
----
23100

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - - 14 * + NULLIF ( + 30, - 66 * + 96 - + COUNT ( * ) ) * - SUM ( ALL + - 55 ) col0
----
23100

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT + 82 * + 22 - - MAX( 60 ) col2
----
1864

skipif mysql # not compatible
query I rowsort label-5011
SELECT + 82 * + 22 - - MAX ( 60 ) col2
----
1864

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT - + 32 + + - 94 * - COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5012
SELECT - + 32 + + - 94 * - COUNT ( * ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5013
SELECT DISTINCT - ( 63 ) * - - COUNT( * ) + - 2 - - - COALESCE ( + 69, + + 7 * - 55 ) * 59 + + COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT - ( 63 ) * - - COUNT ( * ) + - 2 - - - COALESCE ( + 69, + + 7 * - 55 ) * 59 + + COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 10 * - 1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL + + ( - + SUM( ALL + ( + 5 ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + + ( - + SUM ( ALL + ( + 5 ) ) )
----
-5

query I rowsort
SELECT ALL + + CASE - AVG ( ALL + - 93 ) WHEN - 39 THEN NULL WHEN - 11 THEN 85 END
----
NULL

query I rowsort
SELECT ALL 95 + - 18
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL + 77 + - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + 77 + - COUNT ( * ) AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT 46 DIV - 43 col0
----
-1

skipif mysql # not compatible
query I rowsort label-5019
SELECT 46 / - 43 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT SUM( + 94 ) + - 31 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5020
SELECT SUM ( + 94 ) + - 31 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT NULLIF ( - + NULLIF ( - 22, + 87 + - 20 / 91 + - COUNT( + - 13 ) ), + + 58 * - COALESCE ( 44, AVG ( ALL + 77 ) * - ( COUNT( DISTINCT - ( + 14 ) ) ) - - 37, + 71 ) ) * 18 + + + ( + 51 ) * + COUNT( * )
----
447

skipif mysql # not compatible
query I rowsort label-5021
SELECT NULLIF ( - + NULLIF ( - 22, + 87 + - 20 / 91 + - COUNT ( + - 13 ) ), + + 58 * - COALESCE ( 44, AVG ( ALL + 77 ) * - ( COUNT ( DISTINCT - ( + 14 ) ) ) - - 37, + 71 ) ) * 18 + + + ( + 51 ) * + COUNT ( * )
----
447

query I rowsort
SELECT ALL 59 + - 24 AS col0
----
35

query I rowsort
SELECT DISTINCT 94 + + - 64 AS col1
----
30

query II rowsort
SELECT DISTINCT - 42 AS col2, + 71 AS col0
----
-42
71

query I rowsort
SELECT 81 * + 14 AS col0
----
1134

query I rowsort
SELECT ALL - 5 + - 69 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL NULLIF ( - 32, + 15 ) + 59 - + + CASE 70 WHEN + 36 THEN - SUM( + 92 ) * - 79 / + 24 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL NULLIF ( - 32, + 15 ) + 59 - + + CASE 70 WHEN + 36 THEN - SUM ( + 92 ) * - 79 / + 24 END col1
----
NULL

query I rowsort
SELECT ALL 82 - 63
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5029
SELECT MIN( 17 ) * + 24 * - NULLIF ( 43, - 78 ) + 74 - - 42 - - - COUNT( + 49 ) DIV - 48 * - - COUNT( * ) * + CAST( + + 75 AS SIGNED ) * CAST( - COUNT( * ) AS SIGNED ) * - 87
----
-17428

skipif mysql # not compatible
query I rowsort label-5029
SELECT MIN ( 17 ) * + 24 * - NULLIF ( 43, - 78 ) + 74 - - 42 - - - COUNT ( + 49 ) / - 48 * - - COUNT ( * ) * + CAST ( + + 75 AS INTEGER ) * CAST ( - COUNT ( * ) AS INTEGER ) * - 87
----
-17428

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT 32 * + + 43 * - - SUM( 14 ) AS col1
----
19264

skipif mysql # not compatible
query I rowsort label-5030
SELECT 32 * + + 43 * - - SUM ( 14 ) AS col1
----
19264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT ALL + CAST( NULL AS SIGNED ) / - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + CAST ( NULL AS INTEGER ) / - 68 AS col1
----
NULL

query I rowsort
SELECT ALL 10 - + 55 * 21 AS col0
----
-1145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT NULLIF ( - 44, 84 ) * ( - 59 - MAX( + 87 ) DIV 74 )
----
2640

skipif mysql # not compatible
query I rowsort label-5033
SELECT NULLIF ( - 44, 84 ) * ( - 59 - MAX ( + 87 ) / 74 )
----
2640

query I rowsort
SELECT 31 * - 18
----
-558

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT 41 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-5035
SELECT 41 / - 64
----
0

query I rowsort
SELECT COALESCE ( 14, NULLIF ( 20, - 44 / 56 ) ) * - 48
----
-672

query I rowsort
SELECT 15 + 74 col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT 21 * - COUNT( DISTINCT - 90 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-5038
SELECT 21 * - COUNT ( DISTINCT - 90 ) col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT 57 * + COALESCE ( 68, - 21 DIV 29 ) AS col0
----
3876

skipif mysql # not compatible
query I rowsort label-5039
SELECT 57 * + COALESCE ( 68, - 21 / 29 ) AS col0
----
3876

query I rowsort
SELECT 40 + + 3 AS col2
----
43

query I rowsort
SELECT 46 * 5
----
230

query I rowsort
SELECT DISTINCT - 90 + - 38 * 59
----
-2332

query I rowsort
SELECT DISTINCT + 35 + + 95 AS col2
----
130

query I rowsort
SELECT ALL - 8 + - 45 AS col0
----
-53

query I rowsort
SELECT DISTINCT - 36 + 57 AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT 91 DIV - 35 col0
----
-2

skipif mysql # not compatible
query I rowsort label-5046
SELECT 91 / - 35 col0
----
-2

query I rowsort
SELECT DISTINCT + 63 * 61
----
3843

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT COUNT( 80 ) * + 48 - + 3
----
45

skipif mysql # not compatible
query I rowsort label-5048
SELECT COUNT ( 80 ) * + 48 - + 3
----
45

query I rowsort
SELECT 75 * 29 AS col0
----
2175

query I rowsort
SELECT ALL + 46 * + ( 56 * 51 )
----
131376

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT 81 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-5051
SELECT 81 / 63
----
1

query I rowsort
SELECT ALL + 73 + - 30
----
43

query I rowsort
SELECT ALL 6 - 24 AS col2
----
-18

query I rowsort
SELECT DISTINCT - 1 * + 13 AS col1
----
-13

query I rowsort
SELECT ALL - ( - 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT - ( - 83 ) * 46 - - COUNT( * ) AS col1
----
3819

skipif mysql # not compatible
query I rowsort label-5056
SELECT - ( - 83 ) * 46 - - COUNT ( * ) AS col1
----
3819

query I rowsort
SELECT 80 + 29 AS col0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT 10 * - CAST( - 63 * 18 AS SIGNED ) - - 83
----
11423

skipif mysql # not compatible
query I rowsort label-5058
SELECT 10 * - CAST ( - 63 * 18 AS INTEGER ) - - 83
----
11423

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT MAX( DISTINCT 24 ) + - 81 * - 89 AS col1
----
7233

skipif mysql # not compatible
query I rowsort label-5059
SELECT MAX ( DISTINCT 24 ) + - 81 * - 89 AS col1
----
7233

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT MIN( DISTINCT + 45 ) + + 27 * + 70 AS col2
----
1935

skipif mysql # not compatible
query I rowsort label-5060
SELECT MIN ( DISTINCT + 45 ) + + 27 * + 70 AS col2
----
1935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT 9 + COALESCE ( + CAST( NULL AS SIGNED ), - CASE 2 WHEN 26 + - CAST( 27 AS SIGNED ) * - 18 THEN + 45 WHEN - 63 * - 31 + + COUNT( * ) THEN NULL WHEN + 56 + + CAST( NULL AS SIGNED ) THEN 52 ELSE - MIN( 95 ) END ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-5061
SELECT 9 + COALESCE ( + CAST ( NULL AS INTEGER ), - CASE 2 WHEN 26 + - CAST ( 27 AS INTEGER ) * - 18 THEN + 45 WHEN - 63 * - 31 + + COUNT ( * ) THEN NULL WHEN + 56 + + CAST ( NULL AS INTEGER ) THEN 52 ELSE - MIN ( 95 ) END ) AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT + MIN( ALL - 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + MIN ( ALL - 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL COUNT( * ) * 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL COUNT ( * ) * 68 AS col0
----
68

query I rowsort
SELECT - 1 * 57
----
-57

query I rowsort
SELECT - - ( 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT - COUNT( - 70 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5066
SELECT - COUNT ( - 70 ) * COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT + 68 DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT + 68 / - 69 AS col0
----
0

query I rowsort
SELECT + 42 + + 62
----
104

query I rowsort
SELECT ALL 20 + 36 AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT DISTINCT 60 + ( 78 ) DIV - 91 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT 60 + ( 78 ) / - 91 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5071
SELECT 89 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-5071
SELECT 89 / 63
----
1

query I rowsort
SELECT + 22 * + 84
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL + - NULLIF ( - 40, 91 ) * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL + - NULLIF ( - 40, 91 ) * COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ALL COUNT( * ) + - 74 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL COUNT ( * ) + - 74 AS col0
----
-73

query I rowsort
SELECT DISTINCT + 69 + + 51 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT COALESCE ( + COALESCE ( COUNT( * ), 6 * 22, + 59 ), 84 + ( - 87 - + 48 * COUNT( * ) ), COALESCE ( 57, + ( ( 66 ) ) * - 51 ) * ( - 58 ) - 36 * - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-5076
SELECT COALESCE ( + COALESCE ( COUNT ( * ), 6 * 22, + 59 ), 84 + ( - 87 - + 48 * COUNT ( * ) ), COALESCE ( 57, + ( ( 66 ) ) * - 51 ) * ( - 58 ) - 36 * - 97 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT + COUNT( * ) + - - 61
----
62

skipif mysql # not compatible
query I rowsort label-5077
SELECT + COUNT ( * ) + - - 61
----
62

query I rowsort
SELECT 77 * 39 + CASE - 67 WHEN - 84 + + 24 THEN - 67 * - 71 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 41 * + + 25 - 63
----
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT - 64 + + + 60 * ( - COUNT( * ) )
----
-124

skipif mysql # not compatible
query I rowsort label-5080
SELECT - 64 + + + 60 * ( - COUNT ( * ) )
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) - - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT NULLIF ( - - 64, COUNT( * ) + - COUNT( * ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5082
SELECT NULLIF ( - - 64, COUNT ( * ) + - COUNT ( * ) ) AS col0
----
64

query I rowsort
SELECT 15 * + 44 + - NULLIF ( 84 - 28 * - 49, + 59 + NULLIF ( - 66, 46 - ( - ( 14 ) ) ) ) AS col0
----
-796

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - COUNT( * ) * + - 29
----
29

skipif mysql # not compatible
query I rowsort label-5084
SELECT - COUNT ( * ) * + - 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL + 15 * 0 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL + 15 * 0 * + COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT ALL 33 * - 1 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL 33 * - 1 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT DISTINCT + MAX( DISTINCT + - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT + MAX ( DISTINCT + - 58 )
----
-58

query I rowsort
SELECT ALL + + 16 col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT + - COUNT( DISTINCT 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-5089
SELECT + - COUNT ( DISTINCT 19 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT COALESCE ( - COUNT( * ), - 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-5090
SELECT COALESCE ( - COUNT ( * ), - 41 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL + - 95 * COUNT( * ) * - 69 AS col1
----
6555

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL + - 95 * COUNT ( * ) * - 69 AS col1
----
6555

query I rowsort
SELECT - + 2 - - 22 + - 62 * 89 AS col2
----
-5498

query I rowsort
SELECT + + 22 * - - 90
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL - + 82 / + + 79 + + CASE 77 WHEN 93 / - SUM( DISTINCT NULLIF ( - 16, - 74 ) ) THEN 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL - + 82 / + + 79 + + CASE 77 WHEN 93 / - SUM ( DISTINCT NULLIF ( - 16, - 74 ) ) THEN 61 END AS col0
----
NULL

query I rowsort
SELECT - - 52 * 88 + - 34 * 72
----
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT COUNT( * ) + - - 55
----
56

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT COUNT ( * ) + - - 55
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5097
SELECT - 92 * - 8 + + CAST( - 49 AS SIGNED ) * SUM( 15 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5097
SELECT - 92 * - 8 + + CAST ( - 49 AS INTEGER ) * SUM ( 15 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL + 75 * + + MIN( 64 ) * + 52 + + 21
----
249621

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + 75 * + + MIN ( 64 ) * + 52 + + 21
----
249621

query I rowsort
SELECT ALL - 0 + + ( - 25 ) - COALESCE ( + 90, 22 * 28 ) AS col0
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5100
SELECT DISTINCT 50 * 64 DIV - COUNT( * )
----
-3200

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT 50 * 64 / - COUNT ( * )
----
-3200

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL - 84 + - 85 * COUNT( * )
----
-169

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - 84 + - 85 * COUNT ( * )
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT - + COUNT( * ) + 43 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5102
SELECT - + COUNT ( * ) + 43 AS col1
----
42

query I rowsort
SELECT + 38 + - 83
----
-45

query I rowsort
SELECT + - 45 - - 28 + 79 col0
----
62

query I rowsort
SELECT + + CASE - + 41 WHEN - 49 * + 92 THEN + ( - 62 ) * 44 END / - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT + ( + COUNT( * ) ) * - COUNT( ALL 84 ) + - 50 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5106
SELECT + ( + COUNT ( * ) ) * - COUNT ( ALL 84 ) + - 50 AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5107
SELECT - CAST( CASE - - 74 WHEN CASE - 17 WHEN - COALESCE ( 61, + 1 * 7 ) * + SUM( 75 ) + 27 THEN NULL WHEN 95 + + 25 * + 76 THEN + 7 + 26 * - 77 END + 59 THEN + COUNT( * ) WHEN + 45 + 44 / 85 THEN - 32 ELSE - COALESCE ( 68, + 8 ) * 60 + 22 * + 98 END AS SIGNED ) AS col1
----
1924

skipif mysql # not compatible
query I rowsort label-5107
SELECT - CAST ( CASE - - 74 WHEN CASE - 17 WHEN - COALESCE ( 61, + 1 * 7 ) * + SUM ( 75 ) + 27 THEN NULL WHEN 95 + + 25 * + 76 THEN + 7 + 26 * - 77 END + 59 THEN + COUNT ( * ) WHEN + 45 + 44 / 85 THEN - 32 ELSE - COALESCE ( 68, + 8 ) * 60 + 22 * + 98 END AS INTEGER ) AS col1
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT DISTINCT + 73 - + COUNT( - + ( + 42 ) )
----
72

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT + 73 - + COUNT ( - + ( + 42 ) )
----
72

query I rowsort
SELECT + 77 + + 89 AS col1
----
166

query I rowsort
SELECT + 95 * + ( - + 11 ) AS col0
----
-1045

query I rowsort
SELECT DISTINCT - 0 * 93 * - 15
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT + 41 / + + 62 * - CASE - 32 WHEN + 25 / - 76 + 6 / + CAST( NULL AS SIGNED ) THEN NULL WHEN 83 * 61 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT + 41 / + + 62 * - CASE - 32 WHEN + 25 / - 76 + 6 / + CAST ( NULL AS INTEGER ) THEN NULL WHEN 83 * 61 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5113
SELECT + 47 DIV + COALESCE ( 65, + MIN( DISTINCT ( - 24 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5113
SELECT + 47 / + COALESCE ( 65, + MIN ( DISTINCT ( - 24 ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL COUNT( * ) * + ( - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL COUNT ( * ) * + ( - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT DISTINCT 88 * - 0 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT 88 * - 0 * + COUNT ( * )
----
0

query I rowsort
SELECT + 42 * - ( + - 68 ) - 90 col1
----
2766

query I rowsort
SELECT 47 * 73 - + + 5 col1
----
3426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT CAST( - + MIN( - - 86 ) AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-5118
SELECT CAST ( - + MIN ( - - 86 ) AS INTEGER ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL MIN( + - 51 ) * 36 + 45 AS col0
----
-1791

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL MIN ( + - 51 ) * 36 + 45 AS col0
----
-1791

query I rowsort
SELECT + 5 + + 95 + 39 * + 24
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT - MIN( ALL 87 ) * - - 58 * 40
----
-201840

skipif mysql # not compatible
query I rowsort label-5121
SELECT - MIN ( ALL 87 ) * - - 58 * 40
----
-201840

query II rowsort
SELECT ALL + 13 AS col0, 51 col1
----
13
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5123
SELECT + - 56 + COALESCE ( + 82, - 61, 39, 86 DIV - MAX( - 60 ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5123
SELECT + - 56 + COALESCE ( + 82, - 61, 39, 86 / - MAX ( - 60 ) ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT + CASE - ( - - 35 ) WHEN CASE + 19 WHEN 17 + CASE CASE - 88 WHEN - ( - COUNT( * ) ) + - COUNT( * ) * 63 THEN NULL WHEN + MAX( - 59 ) + + 88 THEN 81 ELSE COUNT( * ) END WHEN COUNT( * ) THEN ( - COUNT( * ) ) + 0 WHEN 84 THEN NULL WHEN + 35 + COUNT( * ) THEN NULL END THEN NULL ELSE COUNT( * ) * 2 END THEN NULL WHEN + 63 THEN 31 * 42 END * + 78 - + COALESCE ( COUNT( * ), - NULLIF ( - 44, + CASE ( 46 ) WHEN 1 THEN NULL ELSE + COUNT( * ) END + - 19 * 85 ), - 65 * 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT + CASE - ( - - 35 ) WHEN CASE + 19 WHEN 17 + CASE CASE - 88 WHEN - ( - COUNT ( * ) ) + - COUNT ( * ) * 63 THEN NULL WHEN + MAX ( - 59 ) + + 88 THEN 81 ELSE COUNT ( * ) END WHEN COUNT ( * ) THEN ( - COUNT ( * ) ) + 0 WHEN 84 THEN NULL WHEN + 35 + COUNT ( * ) THEN NULL END THEN NULL ELSE COUNT ( * ) * 2 END THEN NULL WHEN + 63 THEN 31 * 42 END * + 78 - + COALESCE ( COUNT ( * ), - NULLIF ( - 44, + CASE ( 46 ) WHEN 1 THEN NULL ELSE + COUNT ( * ) END + - 19 * 85 ), - 65 * 1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT + 41 DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT + 41 / + + 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5126
SELECT - COUNT( * ) * + 8 DIV - + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5126
SELECT - COUNT ( * ) * + 8 / - + 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT - CASE + 15 WHEN + 62 THEN COALESCE ( 15, COUNT( * ) * + 37 + 6 / 45, NULLIF ( + 0, - 0 + - 34 ) ) END + - 58 * ( + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT - CASE + 15 WHEN + 62 THEN COALESCE ( 15, COUNT ( * ) * + 37 + 6 / 45, NULLIF ( + 0, - 0 + - 34 ) ) END + - 58 * ( + 55 )
----
NULL

query II rowsort
SELECT - 0 AS col1, + 62
----
0
62

query I rowsort
SELECT - + COALESCE ( - + 32, + 95 ) * 7 + 94 AS col0
----
318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5130
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT COALESCE ( COUNT( * ), + 33, 57 * 97 ) + 98 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5131
SELECT COALESCE ( COUNT ( * ), + 33, 57 * 97 ) + 98 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT + MIN( ALL - + 38 ) + 56 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5132
SELECT + MIN ( ALL - + 38 ) + 56 AS col0
----
18

query II rowsort
SELECT 96 AS col2, 21 AS col1
----
96
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT 10 + - MIN( DISTINCT 46 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5134
SELECT 10 + - MIN ( DISTINCT 46 ) AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5135
SELECT DISTINCT - 11 DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT - 11 / + 75 AS col1
----
0

query I rowsort
SELECT - 40 + - 29 AS col2
----
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-5137
SELECT 52 AS col2, + 14 + 14 DIV + 86
----
52
14

skipif mysql # not compatible
query II rowsort label-5137
SELECT 52 AS col2, + 14 + 14 / + 86
----
52
14

query I rowsort
SELECT DISTINCT 48 * - 33
----
-1584

query I rowsort
SELECT 0 * + 7
----
0

query I rowsort
SELECT 74 - + - 98
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT COALESCE ( + COUNT( * ), + COUNT( * ), + 28 ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5141
SELECT COALESCE ( + COUNT ( * ), + COUNT ( * ), + 28 ) + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT 90 * + MIN( DISTINCT - + 16 ) * 8 * + NULLIF ( ( - 99 ), 2 ) col0
----
1140480

skipif mysql # not compatible
query I rowsort label-5142
SELECT 90 * + MIN ( DISTINCT - + 16 ) * 8 * + NULLIF ( ( - 99 ), 2 ) col0
----
1140480

query I rowsort
SELECT 25 * + 77
----
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL - SUM( 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL - SUM ( 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT COUNT( * ) + 6 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT COUNT ( * ) + 6 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5146
SELECT - CAST( NULL AS DECIMAL ) / - 6 + + - MAX( ALL + + CAST( 65 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT - CAST ( NULL AS REAL ) / - 6 + + - MAX ( ALL + + CAST ( 65 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT COUNT( * ) + - 16 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5147
SELECT COUNT ( * ) + - 16 AS col0
----
-15

query I rowsort
SELECT NULLIF ( - 89, + 44 ) * + 87 * + 43 col1
----
-332949

onlyif mysql # DIV for integer division: 
query II rowsort label-5149
SELECT + + ( - 3 ) AS col0, 3 * - 93 + + 63 DIV 59
----
-3
-278

skipif mysql # not compatible
query II rowsort label-5149
SELECT + + ( - 3 ) AS col0, 3 * - 93 + + 63 / 59
----
-3
-278

query I rowsort
SELECT ALL - NULLIF ( - 22, 14 + - 56 * 68 ) + 93
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT + ( + SUM( DISTINCT + + 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-5151
SELECT + ( + SUM ( DISTINCT + + 4 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT + ( COUNT( * ) ) * 98 * - + 5
----
-490

skipif mysql # not compatible
query I rowsort label-5152
SELECT + ( COUNT ( * ) ) * 98 * - + 5
----
-490

query I rowsort
SELECT ALL - + 22 AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5154
SELECT DISTINCT 26 + + - COUNT( * ) DIV - + 25 + - MIN( DISTINCT 52 )
----
-26

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT 26 + + - COUNT ( * ) / - + 25 + - MIN ( DISTINCT 52 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL - 64 + + - COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL - 64 + + - COUNT ( * ) AS col0
----
-65

query I rowsort
SELECT - ( - 18 ) - + ( - 64 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL - SUM( ALL + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - SUM ( ALL + 43 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5158
SELECT ( - COALESCE ( + MIN( ALL + 18 ), NULLIF ( 86, - CAST( + 11 AS SIGNED ) + 99 ), + 96 + 31 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-5158
SELECT ( - COALESCE ( + MIN ( ALL + 18 ), NULLIF ( 86, - CAST ( + 11 AS INTEGER ) + 99 ), + 96 + 31 ) )
----
-18

query I rowsort
SELECT - 11 * - 94
----
1034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5160
SELECT MIN( ALL + 2 ) * - 74 DIV - 34
----
4

skipif mysql # not compatible
query I rowsort label-5160
SELECT MIN ( ALL + 2 ) * - 74 / - 34
----
4

query I rowsort
SELECT + 20 + + 36 AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5162
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + - 68 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT ALL + + 48 - 56 - COUNT( * ) + MIN( ALL + 39 ) + - CAST( NULL AS SIGNED ) / 31 * + 52 / + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL + + 48 - 56 - COUNT ( * ) + MIN ( ALL + 39 ) + - CAST ( NULL AS INTEGER ) / 31 * + 52 / + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT + MIN( ALL + 35 ) - - 37 + + NULLIF ( + 44, 64 + - COUNT( * ) ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-5164
SELECT + MIN ( ALL + 35 ) - - 37 + + NULLIF ( + 44, 64 + - COUNT ( * ) ) AS col2
----
116

query I rowsort
SELECT ALL - - 35 * - 87 AS col2
----
-3045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT - CAST( - - 81 AS SIGNED ) * + - 27
----
2187

skipif mysql # not compatible
query I rowsort label-5166
SELECT - CAST ( - - 81 AS INTEGER ) * + - 27
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT DISTINCT SUM( 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT SUM ( 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT DISTINCT + 73 * + COUNT( 70 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT + 73 * + COUNT ( 70 ) AS col2
----
73

query I rowsort
SELECT 74 + - 10
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5170
SELECT 10 - COUNT( * ) * - - 64 DIV MIN( DISTINCT + - 96 ) * 61 - COALESCE ( - 97, 95 * + 2 ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-5170
SELECT 10 - COUNT ( * ) * - - 64 / MIN ( DISTINCT + - 96 ) * 61 - COALESCE ( - 97, 95 * + 2 ) AS col2
----
107

query II rowsort
SELECT - 5, - 2 * + + ( - 65 ) AS col1
----
-5
130

query I rowsort
SELECT 19 - 54 + + 69 AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT 90 DIV - 10
----
-9

skipif mysql # not compatible
query I rowsort label-5173
SELECT 90 / - 10
----
-9

query I rowsort
SELECT 26 * 70 AS col1
----
1820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5175
SELECT ALL + COUNT( + + 9 ) DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + COUNT ( + + 9 ) / - 54
----
0

query I rowsort
SELECT 35 * + 1 * 81
----
2835

query I rowsort
SELECT 9 + - 56 col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL COUNT( + - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL COUNT ( + - 49 )
----
1

query I rowsort
SELECT ALL + 83 + + 54 + + - 11
----
126

query I rowsort
SELECT 25 * + + 38
----
950

query I rowsort
SELECT DISTINCT - 11 * - 52
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT 5 + + COALESCE ( - 69, - 44, - + COUNT( * ) ) + ( 72 + - 52 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-5182
SELECT 5 + + COALESCE ( - 69, - 44, - + COUNT ( * ) ) + ( 72 + - 52 ) AS col2
----
-44

query I rowsort
SELECT CASE - 10 WHEN + AVG ( DISTINCT + + 31 ) THEN + - 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL - MAX( - 9 ) * - - CASE - 1 WHEN + - 72 THEN + 45 END + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL - MAX ( - 9 ) * - - CASE - 1 WHEN + - 72 THEN + 45 END + - 90
----
NULL

query I rowsort
SELECT 15 * - 61 AS col0
----
-915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT 50 * - 92 * - CAST( + 70 AS SIGNED )
----
322000

skipif mysql # not compatible
query I rowsort label-5186
SELECT 50 * - 92 * - CAST ( + 70 AS INTEGER )
----
322000

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT COUNT( ALL + 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5187
SELECT COUNT ( ALL + 21 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - - 25 * 80 * - MAX( - + 93 ) - 34 * + 35 AS col2
----
184810

skipif mysql # not compatible
query I rowsort label-5188
SELECT - - 25 * 80 * - MAX ( - + 93 ) - 34 * + 35 AS col2
----
184810

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL + ( - + COUNT( * ) ) * - - 82 + - 85 * - + 31 * - 59 + + 14 AS col0
----
-155533

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL + ( - + COUNT ( * ) ) * - - 82 + - 85 * - + 31 * - 59 + + 14 AS col0
----
-155533

query II rowsort
SELECT + 52, 87 AS col1
----
52
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT + + SUM( - ( + 6 ) ) * - 34 - + - 24 * 18 AS col0
----
636

skipif mysql # not compatible
query I rowsort label-5191
SELECT + + SUM ( - ( + 6 ) ) * - 34 - + - 24 * 18 AS col0
----
636

query I rowsort
SELECT - 12 + - - 83
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT 8 * - 40 * + - COUNT( - 8 ) - + 58 + 78 AS col1
----
340

skipif mysql # not compatible
query I rowsort label-5193
SELECT 8 * - 40 * + - COUNT ( - 8 ) - + 58 + 78 AS col1
----
340

query I rowsort
SELECT + + 38 + 31 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5195
SELECT + COUNT( * ) * 35 + - 55 + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT + COUNT ( * ) * 35 + - 55 + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT + - 22 * - + CASE + COALESCE ( - 57, AVG ( - 1 ), + 6 ) WHEN 78 * 46 THEN COUNT( * ) WHEN 55 / 43 THEN NULL ELSE NULL END + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT + - 22 * - + CASE + COALESCE ( - 57, AVG ( - 1 ), + 6 ) WHEN 78 * 46 THEN COUNT ( * ) WHEN 55 / 43 THEN NULL ELSE NULL END + 54 AS col1
----
NULL

query I rowsort
SELECT + - 58 + 99 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + + COUNT( * ) + - + SUM( DISTINCT 95 ) - + + 23
----
-117

skipif mysql # not compatible
query I rowsort label-5198
SELECT + + COUNT ( * ) + - + SUM ( DISTINCT 95 ) - + + 23
----
-117

query I rowsort
SELECT - 17 * + 54 + + - 32 + - 50
----
-1000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT ALL + 83 * CAST( 18 AS SIGNED )
----
1494

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL + 83 * CAST ( 18 AS INTEGER )
----
1494

query I rowsort
SELECT ALL - NULLIF ( 9, + 14 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + CASE + 21 WHEN + + COUNT( * ) * - 98 THEN NULL WHEN - + 35 * - 26 + - 51 THEN 78 END + + MIN( 72 ) * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT + CASE + 21 WHEN + + COUNT ( * ) * - 98 THEN NULL WHEN - + 35 * - 26 + - 51 THEN 78 END + + MIN ( 72 ) * + 91 AS col2
----
NULL

query I rowsort
SELECT ALL 45 * - - 64
----
2880

query I rowsort
SELECT + 88 + + + 86
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + ( - COUNT( ALL + - 50 ) ) + - + 68 * 33 - + 97
----
-2342

skipif mysql # not compatible
query I rowsort label-5205
SELECT + ( - COUNT ( ALL + - 50 ) ) + - + 68 * 33 - + 97
----
-2342

query I rowsort
SELECT - 48 + - 87 * 30 + 63 + - + 63
----
-2658

query II rowsort
SELECT - 65 * + - 21, 31 * 74 AS col1
----
1365
2294

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT DISTINCT 50 AS col0, + 95 + - 50 * 77 + + + 33 + + COUNT( * )
----
50
-3721

skipif mysql # not compatible
query II rowsort label-5208
SELECT DISTINCT 50 AS col0, + 95 + - 50 * 77 + + + 33 + + COUNT ( * )
----
50
-3721

query II rowsort
SELECT 81, 3 AS col2
----
81
3

query II rowsort
SELECT - 4, 6 AS col1
----
-4
6

query I rowsort
SELECT - 0 + + + 63
----
63

query I rowsort
SELECT ALL + 97 * - 31
----
-3007

query II rowsort
SELECT - ( - 11 ) AS col0, + 11
----
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT DISTINCT 77 + - NULLIF ( ( - 31 ), COUNT( * ) ) + 34 * - ( + 64 ) * 91
----
-197908

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT 77 + - NULLIF ( ( - 31 ), COUNT ( * ) ) + 34 * - ( + 64 ) * 91
----
-197908

query I rowsort
SELECT DISTINCT 35 + + + 29 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5216
SELECT ALL 11 + + 13 - 88 + - 30 - - CAST( COUNT( 43 ) AS SIGNED ) + 59 DIV COUNT( * ) DIV + 38 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL 11 + + 13 - 88 + - 30 - - CAST ( COUNT ( 43 ) AS INTEGER ) + 59 / COUNT ( * ) / + 38 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL - CASE - 23 WHEN 46 / 54 THEN NULL WHEN - 31 THEN + ( - 19 ) * COUNT( * ) + + 19 WHEN 97 THEN AVG ( ALL + 92 ) + 28 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - CASE - 23 WHEN 46 / 54 THEN NULL WHEN - 31 THEN + ( - 19 ) * COUNT ( * ) + + 19 WHEN 97 THEN AVG ( ALL + 92 ) + 28 ELSE NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL - COALESCE ( - MAX( + - 63 ), - 46 + ( - + 99 ) ) * 93 col1
----
-5859

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL - COALESCE ( - MAX ( + - 63 ), - 46 + ( - + 99 ) ) * 93 col1
----
-5859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - COALESCE ( 95, 63, + 60 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - COALESCE ( 95, 63, + 60 ) col1
----
NULL

query I rowsort
SELECT - 28 + NULLIF ( - 89, - 37 ) + 62 * + 48 * + 45
----
133803

query I rowsort
SELECT - 40 + + + 45 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT - COUNT( DISTINCT + 14 ) * + + 47 * + COUNT( * ) * - 19 AS col0
----
893

skipif mysql # not compatible
query I rowsort label-5222
SELECT - COUNT ( DISTINCT + 14 ) * + + 47 * + COUNT ( * ) * - 19 AS col0
----
893

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT - 40 * + 66 + - 70 + 23 + - - 30 DIV + - 79
----
-2687

skipif mysql # not compatible
query I rowsort label-5223
SELECT - 40 * + 66 + - 70 + 23 + - - 30 / + - 79
----
-2687

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5224
SELECT ALL - + 43 DIV - 2 + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL - + 43 / - 2 + COUNT ( * )
----
22

query I rowsort
SELECT DISTINCT + ( - + ( 92 ) )
----
-92

query II rowsort
SELECT ALL + 6, + 83 AS col1
----
6
83

query II rowsort
SELECT + 8 AS col1, - ( - - 61 )
----
8
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5228
SELECT ALL + 35 DIV 84 * + 1 - + - 62 * - COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + 35 / 84 * + 1 - + - 62 * - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5229
SELECT 11 DIV ( + 15 ) * + 70 DIV 63 - + MAX( ALL 63 ) + 92 * - 83 AS col1
----
-7699

skipif mysql # not compatible
query I rowsort label-5229
SELECT 11 / ( + 15 ) * + 70 / 63 - + MAX ( ALL 63 ) + 92 * - 83 AS col1
----
-7699

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5230
SELECT ALL + + 69 * - + COUNT( * ) + 62 - NULLIF ( + NULLIF ( + ( - COALESCE ( 20, ( + 4 ) DIV - 72, - COUNT( * ) + - SUM( ALL + 34 ) ) ), 58 ), + 47 ) + COUNT( * ) * 88 DIV - ( - 33 )
----
15

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL + + 69 * - + COUNT ( * ) + 62 - NULLIF ( + NULLIF ( + ( - COALESCE ( 20, ( + 4 ) / - 72, - COUNT ( * ) + - SUM ( ALL + 34 ) ) ), 58 ), + 47 ) + COUNT ( * ) * 88 / - ( - 33 )
----
15

query I rowsort
SELECT + - ( 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - + COALESCE ( + 42, + 76 ) + NULLIF ( COUNT( * ), + - 51 + - 51 ) * 60
----
18

skipif mysql # not compatible
query I rowsort label-5232
SELECT - + COALESCE ( + 42, + 76 ) + NULLIF ( COUNT ( * ), + - 51 + - 51 ) * 60
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT + - MAX( 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5233
SELECT + - MAX ( 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT + - 27 * COUNT( * ) + 59 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT + - 27 * COUNT ( * ) + 59 AS col1
----
32

query I rowsort
SELECT ALL + ( + + 47 ) AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5236
SELECT - - 66 + - 58 DIV 50 * - 35 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-5236
SELECT - - 66 + - 58 / 50 * - 35 AS col1
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT 83, SUM( DISTINCT 79 ) AS col0
----
83
79

skipif mysql # not compatible
query II rowsort label-5237
SELECT 83, SUM ( DISTINCT 79 ) AS col0
----
83
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT - CAST( - 96 AS SIGNED ) / CAST( NULL AS SIGNED ) * CASE + 90 WHEN 2 THEN - CAST( NULL AS SIGNED ) * 90 ELSE 51 * 34 + MIN( ( + 46 ) - CASE + 61 + 86 WHEN CASE + 1 WHEN + 75 THEN NULL WHEN 50 THEN 95 ELSE - 51 END THEN 98 END * + 25 ) END / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT - CAST ( - 96 AS INTEGER ) / CAST ( NULL AS INTEGER ) * CASE + 90 WHEN 2 THEN - CAST ( NULL AS INTEGER ) * 90 ELSE 51 * 34 + MIN ( ( + 46 ) - CASE + 61 + 86 WHEN CASE + 1 WHEN + 75 THEN NULL WHEN 50 THEN 95 ELSE - 51 END THEN 98 END * + 25 ) END / + 84
----
NULL

query I rowsort
SELECT 1 * + + ( - - 6 ) + - - 85
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT ALL - 95 * 62 DIV + + 86 + - 21 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL - 95 * 62 / + + 86 + - 21 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5241
SELECT + 6 * + - 27 AS col2, + COUNT( * ) * - 96
----
-162
-96

skipif mysql # not compatible
query II rowsort label-5241
SELECT + 6 * + - 27 AS col2, + COUNT ( * ) * - 96
----
-162
-96

query I rowsort
SELECT + 65 + - 33 + - 54
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT ALL 70 + + COUNT( * ) AS col2, 60 + + - ( - 95 ) * 26 - + 82 AS col0
----
71
2448

skipif mysql # not compatible
query II rowsort label-5243
SELECT ALL 70 + + COUNT ( * ) AS col2, 60 + + - ( - 95 ) * 26 - + 82 AS col0
----
71
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT DISTINCT COUNT( * ) * COALESCE ( 13, 47 ) * 91 AS col1
----
1183

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT COUNT ( * ) * COALESCE ( 13, 47 ) * 91 AS col1
----
1183

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL + CASE COUNT( * ) WHEN COUNT( * ) THEN - 97 WHEN 75 THEN NULL ELSE - 50 + COUNT( * ) * + 20 END + ( 76 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + CASE COUNT ( * ) WHEN COUNT ( * ) THEN - 97 WHEN 75 THEN NULL ELSE - 50 + COUNT ( * ) * + 20 END + ( 76 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5246
SELECT + 70 * - - 57 AS col2, - COUNT( * )
----
3990
-1

skipif mysql # not compatible
query II rowsort label-5246
SELECT + 70 * - - 57 AS col2, - COUNT ( * )
----
3990
-1

query I rowsort
SELECT + 35 - 29 * 86 col2
----
-2459

query I rowsort
SELECT DISTINCT 58 + - + 73
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5249
SELECT - CAST( + 26 AS SIGNED ), + 43 AS col1
----
-26
43

skipif mysql # not compatible
query II rowsort label-5249
SELECT - CAST ( + 26 AS INTEGER ), + 43 AS col1
----
-26
43

query I rowsort
SELECT DISTINCT 22 - - - 44 AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5251
SELECT DISTINCT + 21 - 81 - 55 * 39 DIV COUNT( * ) + 44
----
-2161

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT + 21 - 81 - 55 * 39 / COUNT ( * ) + 44
----
-2161

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT DISTINCT CASE - 65 WHEN 71 THEN + + 52 * + COUNT( * ) * + 43 WHEN + 95 THEN NULL END * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT CASE - 65 WHEN 71 THEN + + 52 * + COUNT ( * ) * + 43 WHEN + 95 THEN NULL END * 69
----
NULL

query I rowsort
SELECT ALL - 77 * + CASE - 24 WHEN - + 91 THEN NULL ELSE - - NULLIF ( - 3, 55 * + 4 ) END AS col0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT - COUNT( * ) * + 50 col2
----
-50

skipif mysql # not compatible
query I rowsort label-5254
SELECT - COUNT ( * ) * + 50 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT 31 * - 98 * - + ( - - COUNT( * ) ) AS col2
----
3038

skipif mysql # not compatible
query I rowsort label-5255
SELECT 31 * - 98 * - + ( - - COUNT ( * ) ) AS col2
----
3038

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - 20 * - - MIN( ALL + 3 ) * - + 45 * 90 + + + 72 + + - COUNT( * ) * 30 - COUNT( * )
----
243041

skipif mysql # not compatible
query I rowsort label-5256
SELECT - 20 * - - MIN ( ALL + 3 ) * - + 45 * 90 + + + 72 + + - COUNT ( * ) * 30 - COUNT ( * )
----
243041

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT 34 * SUM( + + 9 ) AS col2
----
306

skipif mysql # not compatible
query I rowsort label-5257
SELECT 34 * SUM ( + + 9 ) AS col2
----
306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5258
SELECT + - 80 DIV COUNT( * ) + 21 * - 35 AS col0
----
-815

skipif mysql # not compatible
query I rowsort label-5258
SELECT + - 80 / COUNT ( * ) + 21 * - 35 AS col0
----
-815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5259
SELECT NULLIF ( - MIN( - - 61 ), CAST( NULL AS SIGNED ) - + CAST( 10 AS SIGNED ) * - COUNT( * ) ) + 93 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5259
SELECT NULLIF ( - MIN ( - - 61 ), CAST ( NULL AS INTEGER ) - + CAST ( 10 AS INTEGER ) * - COUNT ( * ) ) + 93 AS col2
----
32

onlyif mysql # aggregate syntax: 
query III rowsort label-5260
SELECT + 57 * + + COUNT( DISTINCT 68 ), - 8 * - 65 AS col2, + - 12 - + 5 AS col2
----
57
520
-17

skipif mysql # not compatible
query III rowsort label-5260
SELECT + 57 * + + COUNT ( DISTINCT 68 ), - 8 * - 65 AS col2, + - 12 - + 5 AS col2
----
57
520
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5261
SELECT 89 * ( COALESCE ( + + 95, + - 27 * - 3, + 68 DIV COUNT( DISTINCT + 6 * 68 ) ) ) - ( 87 ) - - 73
----
8441

skipif mysql # not compatible
query I rowsort label-5261
SELECT 89 * ( COALESCE ( + + 95, + - 27 * - 3, + 68 / COUNT ( DISTINCT + 6 * 68 ) ) ) - ( 87 ) - - 73
----
8441

query I rowsort
SELECT - 23 + - 23 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT 80 + + NULLIF ( 38, + - COUNT( * ) + 70 * - + MIN( - - 39 ) ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-5263
SELECT 80 + + NULLIF ( 38, + - COUNT ( * ) + 70 * - + MIN ( - - 39 ) ) AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL + - 49 + - + SUM( + 70 ) + - - 60 col1
----
-59

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL + - 49 + - + SUM ( + 70 ) + - - 60 col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5265
SELECT + 41 AS col0, - COUNT( * ) AS col1
----
41
-1

skipif mysql # not compatible
query II rowsort label-5265
SELECT + 41 AS col0, - COUNT ( * ) AS col1
----
41
-1

query I rowsort
SELECT 29 + + 82
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT 96 * + NULLIF ( + 36, - COUNT( * ) ) + + 97 + - + ( - 19 ) + 24 * 25
----
4172

skipif mysql # not compatible
query I rowsort label-5267
SELECT 96 * + NULLIF ( + 36, - COUNT ( * ) ) + + 97 + - + ( - 19 ) + 24 * 25
----
4172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT ALL CAST( + - 36 AS SIGNED ) + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL CAST ( + - 36 AS INTEGER ) + - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT 19 + 91 + + COUNT( * ) * - COUNT( * ) - + 93 col0
----
16

skipif mysql # not compatible
query I rowsort label-5269
SELECT 19 + 91 + + COUNT ( * ) * - COUNT ( * ) - + 93 col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5270
SELECT 49 AS col1, COUNT( * ) + - 63
----
49
-62

skipif mysql # not compatible
query II rowsort label-5270
SELECT 49 AS col1, COUNT ( * ) + - 63
----
49
-62

query II rowsort
SELECT ALL 57 AS col0, 88
----
57
88

query I rowsort
SELECT 99 * - + 10 AS col2
----
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5273
SELECT 35 * + + ( - + COUNT( * ) ) DIV - 86 * - - COALESCE ( MAX( ALL - 62 ), + 18 ) * - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT 35 * + + ( - + COUNT ( * ) ) / - 86 * - - COALESCE ( MAX ( ALL - 62 ), + 18 ) * - 68 AS col0
----
0

query I rowsort
SELECT 6 + 12
----
18

query II rowsort
SELECT 30 AS col2, 32 AS col1
----
30
32

query II rowsort
SELECT - 68 AS col1, + 1 + + 9
----
-68
10

query I rowsort
SELECT 25 * - 30
----
-750

query I rowsort
SELECT ALL 11 * + - 64
----
-704

query I rowsort
SELECT NULLIF ( - 32, - + AVG ( + - 32 ) ) + - - 69 + - 12
----
25

query I rowsort
SELECT DISTINCT + 89 - + - 50 AS col0
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-5281
SELECT ALL - ( + + COUNT( * ) ) * + 66, + 15 AS col2
----
-66
15

skipif mysql # not compatible
query II rowsort label-5281
SELECT ALL - ( + + COUNT ( * ) ) * + 66, + 15 AS col2
----
-66
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT + MAX( ALL - ( - + 29 ) ) * + - 49 + - 62 AS col0
----
-1483

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT + MAX ( ALL - ( - + 29 ) ) * + - 49 + - 62 AS col0
----
-1483

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT 4 - + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT 4 - + + COUNT ( * )
----
3

query II rowsort
SELECT DISTINCT 40 AS col2, + 43 AS col2
----
40
43

query I rowsort
SELECT + 55 - - + 15 AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5286
SELECT - + 64 AS col0, - 62 * + 41 + + COUNT( * )
----
-64
-2541

skipif mysql # not compatible
query II rowsort label-5286
SELECT - + 64 AS col0, - 62 * + 41 + + COUNT ( * )
----
-64
-2541

query I rowsort
SELECT 7 + + + 39
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - COUNT( * ) + + 22 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5288
SELECT - COUNT ( * ) + + 22 AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT DISTINCT - + 70, - 42 * + COUNT( * ) * 41 col2
----
-70
-1722

skipif mysql # not compatible
query II rowsort label-5289
SELECT DISTINCT - + 70, - 42 * + COUNT ( * ) * 41 col2
----
-70
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT - 93 * 76 + - - 57 + + COUNT( * ) * + + 10 + + 4 AS col0
----
-6997

skipif mysql # not compatible
query I rowsort label-5290
SELECT - 93 * 76 + - - 57 + + COUNT ( * ) * + + 10 + + 4 AS col0
----
-6997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL - CAST( + - 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - CAST ( + - 48 AS INTEGER )
----
48

query II rowsort
SELECT ALL - + 88 AS col2, 69 * + + 36 * - + 67 AS col0
----
-88
-166428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT DISTINCT 93 / - 42 * - CAST( NULL AS SIGNED ) + 16 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT 93 / - 42 * - CAST ( NULL AS INTEGER ) + 16 * 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5294
SELECT CAST( NULL AS SIGNED ) * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT CAST ( NULL AS INTEGER ) * - 89
----
NULL

query I rowsort
SELECT - 80 * - + 47 AS col2
----
3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5296
SELECT COUNT( 20 ) DIV 67 + 83
----
83

skipif mysql # not compatible
query I rowsort label-5296
SELECT COUNT ( 20 ) / 67 + 83
----
83

query II rowsort
SELECT 0, 66 AS col2
----
0
66

query I rowsort
SELECT DISTINCT + 71 + + 88
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5299
SELECT 5 DIV COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5299
SELECT 5 / COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT COUNT( * ) * + 37 + + ( + 98 ) + + 86 AS col0
----
221

skipif mysql # not compatible
query I rowsort label-5300
SELECT COUNT ( * ) * + 37 + + ( + 98 ) + + 86 AS col0
----
221

onlyif mysql # DIV for integer division: 
query II rowsort label-5301
SELECT 9 DIV - - 46, 9 DIV + 45 + - 47 DIV + + 69 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-5301
SELECT 9 / - - 46, 9 / + 45 + - 47 / + + 69 AS col0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL 95 + COUNT( * ) * 57 * 21
----
1292

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL 95 + COUNT ( * ) * 57 * 21
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT DISTINCT 12 DIV - + 38 col2
----
0

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT 12 / - + 38 col2
----
0

query I rowsort
SELECT ALL + ( - COALESCE ( 98, - 39 + + 91 ) ) + - 79 AS col0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT CASE - 75 WHEN 1 THEN SUM( DISTINCT 52 ) WHEN + 80 THEN ( - ( - + 99 ) ) ELSE NULL END - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT CASE - 75 WHEN 1 THEN SUM ( DISTINCT 52 ) WHEN + 80 THEN ( - ( - + 99 ) ) ELSE NULL END - 93
----
NULL

query I rowsort
SELECT 38 * CASE 24 WHEN + AVG ( + 6 ) THEN + ( + ( + 20 ) ) + - 88 * 32 END + - COALESCE ( - 65, 66 / 47, - 25 ) AS col0
----
NULL

query I rowsort
SELECT 44 * - 74 AS col1
----
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - MIN( - 47 ) * + 29 * 30 AS col0
----
40890

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - MIN ( - 47 ) * + 29 * 30 AS col0
----
40890

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT 51 + COUNT( * ) * + 18
----
69

skipif mysql # not compatible
query I rowsort label-5309
SELECT 51 + COUNT ( * ) * + 18
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5310
SELECT ALL COUNT( + CAST( 11 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL COUNT ( + CAST ( 11 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT + COUNT( * ) - 87 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT + COUNT ( * ) - 87 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT - MAX( DISTINCT - + 35 ) - + 33 * COUNT( * ) + + 66
----
68

skipif mysql # not compatible
query I rowsort label-5312
SELECT - MAX ( DISTINCT - + 35 ) - + 33 * COUNT ( * ) + + 66
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL SUM( ALL - + 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL SUM ( ALL - + 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT - COUNT( * ) * - - 81 * 58
----
-4698

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - COUNT ( * ) * - - 81 * 58
----
-4698

query I rowsort
SELECT - 69 * - 12 AS col0
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT DISTINCT NULLIF ( + - 1, 2 * + SUM( + 14 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT NULLIF ( + - 1, 2 * + SUM ( + 14 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT - SUM( DISTINCT - 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5317
SELECT - SUM ( DISTINCT - 20 ) AS col0
----
20

query I rowsort
SELECT ALL - - CASE - 29 WHEN 35 THEN NULL WHEN + 83 * + 51 * + 96 THEN ( AVG ( + - 43 ) ) + + 11 / 24 END / + 86
----
NULL

query I rowsort
SELECT + - 49 * + COALESCE ( 45, - NULLIF ( ( + 98 ), + ( - + ( + - 92 ) ) ) + + 93 )
----
-2205

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT + 36 - + 7 DIV + 31 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5320
SELECT + 36 - + 7 / + 31 AS col2
----
36

query II rowsort
SELECT - - 80 * + 52 AS col1, + 35 AS col2
----
4160
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT - CASE - COUNT( * ) WHEN + 12 THEN + 69 - - 4 + - COUNT( * ) WHEN - 35 THEN NULL ELSE + 66 END
----
-66

skipif mysql # not compatible
query I rowsort label-5322
SELECT - CASE - COUNT ( * ) WHEN + 12 THEN + 69 - - 4 + - COUNT ( * ) WHEN - 35 THEN NULL ELSE + 66 END
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT + SUM( ALL + 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5323
SELECT + SUM ( ALL + 34 ) AS col0
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-5324
SELECT ALL + 0 DIV + 97 * + 51 * + 16 AS col0, 8 col1
----
0
8

skipif mysql # not compatible
query II rowsort label-5324
SELECT ALL + 0 / + 97 * + 51 * + 16 AS col0, 8 col1
----
0
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5325
SELECT + 98 * + 35 * + + 56 + - 5 + + COUNT( * ) AS col1, 37 * - - 51 col2
----
192076
1887

skipif mysql # not compatible
query II rowsort label-5325
SELECT + 98 * + 35 * + + 56 + - 5 + + COUNT ( * ) AS col1, 37 * - - 51 col2
----
192076
1887

query I rowsort
SELECT + - 30 + + 46 col1
----
16

query I rowsort
SELECT DISTINCT + + NULLIF ( - - 66, + 49 + + 24 - 6 + - 79 * + 33 + 50 + - 33 * + 64 * ( 17 ) ) * 51
----
3366

onlyif mysql # aggregate syntax: 
query II rowsort label-5328
SELECT DISTINCT - MAX( ALL 6 ) + - 3 * + 32 col0, 16 col1
----
-102
16

skipif mysql # not compatible
query II rowsort label-5328
SELECT DISTINCT - MAX ( ALL 6 ) + - 3 * + 32 col0, 16 col1
----
-102
16

query I rowsort
SELECT ( + + COALESCE ( COALESCE ( - 65, 18 - + + 85 + - - 14 ), 43 ) ) AS col0
----
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-5330
SELECT - - 53 + - 44, - 39 DIV + - 91 AS col0
----
9
0

skipif mysql # not compatible
query II rowsort label-5330
SELECT - - 53 + - 44, - 39 / + - 91 AS col0
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT + + ( + 79 ) * 6 + - - 43 - + + COUNT( * ) * + 15 * - - 9 * + 4 + - 68 - - 92 + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5331
SELECT + + ( + 79 ) * 6 + - - 43 - + + COUNT ( * ) * + 15 * - - 9 * + 4 + - 68 - - 92 + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT + + 62 + 60 + + ( COUNT( * ) ) + - + COUNT( * ) * 79 * 37 * 88 + + COUNT( * ) + 81 * 57 AS col0
----
-252483

skipif mysql # not compatible
query I rowsort label-5332
SELECT + + 62 + 60 + + ( COUNT ( * ) ) + - + COUNT ( * ) * 79 * 37 * 88 + + COUNT ( * ) + 81 * 57 AS col0
----
-252483

onlyif mysql # aggregate syntax: 
query II rowsort label-5333
SELECT ALL + ( + COUNT( * ) ) AS col0, + 62
----
1
62

skipif mysql # not compatible
query II rowsort label-5333
SELECT ALL + ( + COUNT ( * ) ) AS col0, + 62
----
1
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT - - 42 DIV 13 + - 14 * - ( + + 6 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5334
SELECT - - 42 / 13 + - 14 * - ( + + 6 ) AS col0
----
87

query I rowsort
SELECT + 66 + 93
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT ALL + 52 * - - 30 + + 21 - COUNT( * )
----
1580

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL + 52 * - - 30 + + 21 - COUNT ( * )
----
1580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5337
SELECT - 20 * + 80 + - - ( + 33 ) + + - CAST( + 81 AS SIGNED ) * COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT - 20 * + 80 + - - ( + 33 ) + + - CAST ( + 81 AS INTEGER ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT - 58 * NULLIF ( - 85, + + SUM( + ( + 7 ) ) ) * - + 42 - + 50 - - + 70
----
-207040

skipif mysql # not compatible
query I rowsort label-5338
SELECT - 58 * NULLIF ( - 85, + + SUM ( + ( + 7 ) ) ) * - + 42 - + 50 - - + 70
----
-207040

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL + SUM( DISTINCT + + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + SUM ( DISTINCT + + 75 )
----
75

query I rowsort
SELECT + 30 + - 33 AS col1
----
-3

query I rowsort
SELECT - 64 * + - 38 * - + 94 + + 39
----
-228569

onlyif mysql # aggregate syntax: 
query II rowsort label-5342
SELECT ALL NULLIF ( + - 1, + 23 - + 92 ) * - 44 + - 32 AS col1, COUNT( * ) + + 78 AS col0
----
12
79

skipif mysql # not compatible
query II rowsort label-5342
SELECT ALL NULLIF ( + - 1, + 23 - + 92 ) * - 44 + - 32 AS col1, COUNT ( * ) + + 78 AS col0
----
12
79

query I rowsort
SELECT + 47 * + - NULLIF ( - 47, + - 94 )
----
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT - 12 + COUNT( * ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-5344
SELECT - 12 + COUNT ( * ) col0
----
-11

query I rowsort
SELECT DISTINCT 47 * - + 19 AS col0
----
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT COUNT( * ) * 84 + + 71 * + - 80 col1
----
-5596

skipif mysql # not compatible
query I rowsort label-5346
SELECT COUNT ( * ) * 84 + + 71 * + - 80 col1
----
-5596

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5347
SELECT DISTINCT COUNT( * ) col1, + ( + 62 ) DIV - 86 - - 38
----
1
38

skipif mysql # not compatible
query II rowsort label-5347
SELECT DISTINCT COUNT ( * ) col1, + ( + 62 ) / - 86 - - 38
----
1
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5348
SELECT ALL ( + 12 ) DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL ( + 12 ) / 83 AS col0
----
0

query I rowsort
SELECT DISTINCT - 17 * + 10 AS col2
----
-170

query I rowsort
SELECT - ( + - 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT - 46 * + COUNT( - 65 ) * - - ( 90 ) + + 27 * - - 90 * - ( 46 ) * - 22 AS col0
----
2455020

skipif mysql # not compatible
query I rowsort label-5351
SELECT - 46 * + COUNT ( - 65 ) * - - ( 90 ) + + 27 * - - 90 * - ( 46 ) * - 22 AS col0
----
2455020

query I rowsort
SELECT ALL CASE - - 33 WHEN - 66 THEN NULL WHEN + - 73 THEN - 27 * - - 34 * + - 48 / - 90 + + 68 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT - MIN( DISTINCT - 54 ) + - 97 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5353
SELECT - MIN ( DISTINCT - 54 ) + - 97 AS col0
----
-43

query I rowsort
SELECT - 30 * - 61 AS col1
----
1830

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL - + CASE - ( + + COUNT( * ) ) WHEN + - ( - - 83 ) THEN NULL ELSE + 67 * ( + + 16 ) + - 11 + + - 83 - + 95 * 13 * 48 END + - ( + NULLIF ( - 25, 60 * NULLIF ( 51, 48 * + 31 ) ) )
----
58327

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL - + CASE - ( + + COUNT ( * ) ) WHEN + - ( - - 83 ) THEN NULL ELSE + 67 * ( + + 16 ) + - 11 + + - 83 - + 95 * 13 * 48 END + - ( + NULLIF ( - 25, 60 * NULLIF ( 51, 48 * + 31 ) ) )
----
58327

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + SUM( + 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5356
SELECT + SUM ( + 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5357
SELECT + 12 AS col0, + COUNT( * ) + + - 46 * - 55 col1
----
12
2531

skipif mysql # not compatible
query II rowsort label-5357
SELECT + 12 AS col0, + COUNT ( * ) + + - 46 * - 55 col1
----
12
2531

query II rowsort
SELECT - 54 - + 15 * - 31 AS col2, + 96
----
411
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5359
SELECT - + ( - COUNT( * ) ) DIV + - NULLIF ( - - 8, ( + 29 ) * + 32 DIV 3 )
----
0

skipif mysql # not compatible
query I rowsort label-5359
SELECT - + ( - COUNT ( * ) ) / + - NULLIF ( - - 8, ( + 29 ) * + 32 / 3 )
----
0

query I rowsort
SELECT - + 77 + + - 47 col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + - COUNT( * ) + + 58 + - 49 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5361
SELECT + - COUNT ( * ) + + 58 + - 49 AS col0
----
8

query II rowsort
SELECT + 62 AS col1, - 30 AS col0
----
62
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT + 59 + 48 + - CAST( NULL AS SIGNED ) + - + 36 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT + 59 + 48 + - CAST ( NULL AS INTEGER ) + - + 36 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5364
SELECT ALL ( - 30 ) + + COUNT( * ) AS col0, + 58 AS col0
----
-29
58

skipif mysql # not compatible
query II rowsort label-5364
SELECT ALL ( - 30 ) + + COUNT ( * ) AS col0, + 58 AS col0
----
-29
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT ALL + 38 DIV - NULLIF ( + 48, ( + 55 ) * - 28 ) + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL + 38 / - NULLIF ( + 48, ( + 55 ) * - 28 ) + - 37
----
-37

query I rowsort
SELECT ALL + 30 * - 97
----
-2910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT DISTINCT - 87 / + - AVG ( - CAST( NULL AS SIGNED ) ) - 47 + + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT - 87 / + - AVG ( - CAST ( NULL AS INTEGER ) ) - 47 + + + 29
----
NULL

query I rowsort
SELECT + CASE - 5 WHEN - 36 THEN 29 + 87 + - 73 ELSE - + 99 END AS col2
----
-99

query II rowsort
SELECT 25 * 72 col2, 82
----
1800
82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5370
SELECT ALL 88 * CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL 88 * CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT CASE WHEN + 83 IS NOT NULL THEN 66 WHEN 95 * + 50 IS NOT NULL THEN - + 47 + + COUNT( * ) * - 83 * 37 + MAX( - 13 ) END * - 33 AS col0
----
-2178

skipif mysql # not compatible
query I rowsort label-5371
SELECT CASE WHEN + 83 IS NOT NULL THEN 66 WHEN 95 * + 50 IS NOT NULL THEN - + 47 + + COUNT ( * ) * - 83 * 37 + MAX ( - 13 ) END * - 33 AS col0
----
-2178

query I rowsort
SELECT DISTINCT ( ( - + 45 ) ) * + + 40 col2
----
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT ( + - 5 ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT ( + - 5 ) * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT COUNT( * ) + - 91
----
-90

skipif mysql # not compatible
query I rowsort label-5374
SELECT COUNT ( * ) + - 91
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5375
SELECT 89 AS col1, CASE COUNT( DISTINCT + + 78 ) WHEN + + 99 THEN NULL WHEN NULLIF ( - COUNT( * ), - 65 ) THEN NULL ELSE - COUNT( ALL - 33 ) END - 74 AS col0
----
89
-75

skipif mysql # not compatible
query II rowsort label-5375
SELECT 89 AS col1, CASE COUNT ( DISTINCT + + 78 ) WHEN + + 99 THEN NULL WHEN NULLIF ( - COUNT ( * ), - 65 ) THEN NULL ELSE - COUNT ( ALL - 33 ) END - 74 AS col0
----
89
-75

query I rowsort
SELECT ALL 52 * + 40 AS col0
----
2080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5377
SELECT COALESCE ( + 9, - + 49, - COUNT( * ) ) * + - COALESCE ( SUM( ALL - + 49 ), + + 6 ) + 81 AS col1, NULLIF ( - + 67, - 39 + + 11 ) DIV 62
----
522
-1

skipif mysql # not compatible
query II rowsort label-5377
SELECT COALESCE ( + 9, - + 49, - COUNT ( * ) ) * + - COALESCE ( SUM ( ALL - + 49 ), + + 6 ) + 81 AS col1, NULLIF ( - + 67, - 39 + + 11 ) / 62
----
522
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5378
SELECT DISTINCT 80, NULLIF ( + 16, - 13 + - ( + 8 ) - - 18 ) DIV - - 37 + - - 35 * 29 col1
----
80
1015

skipif mysql # not compatible
query II rowsort label-5378
SELECT DISTINCT 80, NULLIF ( + 16, - 13 + - ( + 8 ) - - 18 ) / - - 37 + - - 35 * 29 col1
----
80
1015

query I rowsort
SELECT ( - 50 ) + 80 AS col0
----
30

query I rowsort
SELECT 88 * - 73 AS col0
----
-6424

onlyif mysql # aggregate syntax: 
query II rowsort label-5381
SELECT - 84 AS col0, COUNT( * ) + - - 0
----
-84
1

skipif mysql # not compatible
query II rowsort label-5381
SELECT - 84 AS col0, COUNT ( * ) + - - 0
----
-84
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5382
SELECT 95 DIV 85, 76 * 45 - + 35 * 36 * 45 + 9 AS col0
----
1
-53271

skipif mysql # not compatible
query II rowsort label-5382
SELECT 95 / 85, 76 * 45 - + 35 * 36 * 45 + 9 AS col0
----
1
-53271

query I rowsort
SELECT ALL 80 + - 82 + - 1 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT COUNT( ALL 15 ) - + - 17 col1
----
18

skipif mysql # not compatible
query I rowsort label-5384
SELECT COUNT ( ALL 15 ) - + - 17 col1
----
18

query I rowsort
SELECT DISTINCT 32 + 1 + + 40
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5386
SELECT DISTINCT + COUNT( * ) + 96 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + COUNT ( * ) + 96 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5387
SELECT ( CAST( NULL AS DECIMAL ) ) / COUNT( ALL + + 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT ( CAST ( NULL AS REAL ) ) / COUNT ( ALL + + 11 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5388
SELECT DISTINCT 59 DIV + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT 59 / + 67 AS col0
----
0

query I rowsort
SELECT - 33 * + 98 * ( - 8 )
----
25872

query I rowsort
SELECT ( 26 ) + - 0 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT + MIN( - 70 ) + + + 45
----
-25

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + MIN ( - 70 ) + + + 45
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5392
SELECT COUNT( * ) - + 24 AS col0, 20 + + - 20
----
-23
0

skipif mysql # not compatible
query II rowsort label-5392
SELECT COUNT ( * ) - + 24 AS col0, 20 + + - 20
----
-23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL + + 90 + 86 + NULLIF ( + COALESCE ( + + 91, + 38 * + + COUNT( * ) ), COUNT( * ) * - + COUNT( * ) )
----
267

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + + 90 + 86 + NULLIF ( + COALESCE ( + + 91, + 38 * + + COUNT ( * ) ), COUNT ( * ) * - + COUNT ( * ) )
----
267

query I rowsort
SELECT ALL - 67 + 61 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT - COUNT( ALL ( 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5395
SELECT - COUNT ( ALL ( 1 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5396
SELECT ALL COUNT( - 96 ) * - CASE 0 WHEN + 89 * + + 41 * 56 + 37 * - 78 THEN SUM( + 51 ) WHEN 15 + 5 THEN NULL WHEN - CASE 35 WHEN COUNT( * ) - 12 THEN 13 + CAST( - 80 AS SIGNED ) END THEN 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL COUNT ( - 96 ) * - CASE 0 WHEN + 89 * + + 41 * 56 + 37 * - 78 THEN SUM ( + 51 ) WHEN 15 + 5 THEN NULL WHEN - CASE 35 WHEN COUNT ( * ) - 12 THEN 13 + CAST ( - 80 AS INTEGER ) END THEN 35 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT ALL - COALESCE ( COUNT( * ), - - 20 * + 2, CAST( NULL AS SIGNED ) * + CASE + + 77 WHEN + 91 THEN - 86 ELSE NULL END - 57 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL - COALESCE ( COUNT ( * ), - - 20 * + 2, CAST ( NULL AS INTEGER ) * + CASE + + 77 WHEN + 91 THEN - 86 ELSE NULL END - 57 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + - 48 - + 33 + 82 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT + 24 * + ( COUNT( * ) ) * + 29 AS col1, - 20 AS col2
----
696
-20

skipif mysql # not compatible
query II rowsort label-5399
SELECT + 24 * + ( COUNT ( * ) ) * + 29 AS col1, - 20 AS col2
----
696
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5400
SELECT - - 47 * - COALESCE ( + 45, + NULLIF ( - + COUNT( * ), COUNT( * ) + + 10 + - - 21 DIV + 19 * 31 ) ) + + NULLIF ( + 12, 36 ) DIV CAST( + 87 + + 81 AS SIGNED ) - - 46 AS col1
----
-2069

skipif mysql # not compatible
query I rowsort label-5400
SELECT - - 47 * - COALESCE ( + 45, + NULLIF ( - + COUNT ( * ), COUNT ( * ) + + 10 + - - 21 / + 19 * 31 ) ) + + NULLIF ( + 12, 36 ) / CAST ( + 87 + + 81 AS INTEGER ) - - 46 AS col1
----
-2069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT - 12 * + 92 + - - CAST( - 49 AS SIGNED ) + + 17 col1
----
-1136

skipif mysql # not compatible
query I rowsort label-5401
SELECT - 12 * + 92 + - - CAST ( - 49 AS INTEGER ) + + 17 col1
----
-1136

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT ALL + 7 DIV 66 col2
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL + 7 / 66 col2
----
0

query I rowsort
SELECT - 49 * - 93 + + ( 56 ) + + 31
----
4644

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL - COUNT( ALL - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - COUNT ( ALL - 52 )
----
-1

query I rowsort
SELECT - 55 * 65 + - + NULLIF ( + 66, 2 * - 29 / - 91 + - ( - 36 ) )
----
-3641

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT - MAX( ALL + + ( + - COALESCE ( + 12, 43 * + 28 ) ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - MAX ( ALL + + ( + - COALESCE ( + 12, 43 * + 28 ) ) ) AS col1
----
12

query II rowsort
SELECT ALL - ( - + 87 ) * + 32 AS col2, - 92
----
2784
-92

query I rowsort
SELECT 53 + - 68 * 11
----
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL - CASE - 68 WHEN + 52 * + MAX( 23 ) THEN - - 53 * - - COUNT( * ) + + - 29 WHEN + 57 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - CASE - 68 WHEN + 52 * + MAX ( 23 ) THEN - - 53 * - - COUNT ( * ) + + - 29 WHEN + 57 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 89 * - 61
----
5429

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT 17 * + - 3 + + CASE 66 WHEN + COUNT( * ) THEN NULL WHEN + 27 * - 36 THEN NULL ELSE - 64 END col1, ( + - 74 )
----
-115
-74

skipif mysql # not compatible
query II rowsort label-5411
SELECT 17 * + - 3 + + CASE 66 WHEN + COUNT ( * ) THEN NULL WHEN + 27 * - 36 THEN NULL ELSE - 64 END col1, ( + - 74 )
----
-115
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT COUNT( * ) * 51 + 97
----
148

skipif mysql # not compatible
query I rowsort label-5412
SELECT COUNT ( * ) * 51 + 97
----
148

query II rowsort
SELECT ALL + 17 * - 78 * - 17 AS col1, - 6 AS col0
----
22542
-6

query I rowsort
SELECT DISTINCT - 62 + - 69
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5415
SELECT DISTINCT 46 + - 94 DIV - COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT 46 + - 94 / - COUNT ( * )
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT ALL 4 + 35 + + - 64 / - CASE 16 WHEN - 10 * - 24 THEN NULL WHEN - AVG ( ALL 93 ) THEN - + 1 WHEN + + CAST( NULL AS SIGNED ) THEN - + COUNT( * ) * 43 + MIN( ( 76 ) ) END * + 95 + 81 * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL 4 + 35 + + - 64 / - CASE 16 WHEN - 10 * - 24 THEN NULL WHEN - AVG ( ALL 93 ) THEN - + 1 WHEN + + CAST ( NULL AS INTEGER ) THEN - + COUNT ( * ) * 43 + MIN ( ( 76 ) ) END * + 95 + 81 * + 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5417
SELECT ALL + CAST( NULL AS SIGNED ) + 48 - - - COALESCE ( - + MAX( ALL 38 ), - - 87 / + + CAST( - + 7 AS SIGNED ) ) + + ( + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL + CAST ( NULL AS INTEGER ) + 48 - - - COALESCE ( - + MAX ( ALL 38 ), - - 87 / + + CAST ( - + 7 AS INTEGER ) ) + + ( + 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL SUM( DISTINCT - 57 ) * - 6 * + - 21 AS col0
----
-7182

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL SUM ( DISTINCT - 57 ) * - 6 * + - 21 AS col0
----
-7182

query I rowsort
SELECT DISTINCT + 0 + - - 62 AS col2
----
62

query II rowsort
SELECT ALL - 45 + - - 49 AS col0, 66 col0
----
4
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + + CASE - 86 WHEN + 81 THEN - 95 WHEN CASE + COUNT( * ) WHEN + 77 THEN - ( + 11 ) ELSE - - 89 - - - 93 * + 13 * - 50 + 3 END THEN NULL ELSE - 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-5421
SELECT + + CASE - 86 WHEN + 81 THEN - 95 WHEN CASE + COUNT ( * ) WHEN + 77 THEN - ( + 11 ) ELSE - - 89 - - - 93 * + 13 * - 50 + 3 END THEN NULL ELSE - 86 END
----
-86

query I rowsort
SELECT ALL + 37 + + + 72
----
109

query I rowsort
SELECT 87 + - 12
----
75

query I rowsort
SELECT - 31 + - - 47 AS col2
----
16

query I rowsort
SELECT - 5 + 55 + - 9 - + 73 * 10 * 54
----
-39379

query I rowsort
SELECT + 81 + + 78 + + 83 col2
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT 48 + + 43 + - COUNT( * ) + - CAST( + COALESCE ( - 74, - 84 ) AS SIGNED ) * + + ( + 0 ) * + ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT 48 + + 43 + - COUNT ( * ) + - CAST ( + COALESCE ( - 74, - 84 ) AS INTEGER ) * + + ( + 0 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 61 - + 36
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5429
SELECT 94 * CAST( 44 AS SIGNED ) * + COUNT( * ) + - 84 + + - 79 AS col2
----
3973

skipif mysql # not compatible
query I rowsort label-5429
SELECT 94 * CAST ( 44 AS INTEGER ) * + COUNT ( * ) + - 84 + + - 79 AS col2
----
3973

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT ALL 77 DIV + 11
----
7

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL 77 / + 11
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT COUNT( * ) + + 21 + + - ( + 35 ) * - + 19 AS col1
----
687

skipif mysql # not compatible
query I rowsort label-5431
SELECT COUNT ( * ) + + 21 + + - ( + 35 ) * - + 19 AS col1
----
687

query I rowsort
SELECT - NULLIF ( + + 50, + ( + 10 ) + - - 97 )
----
-50

query I rowsort
SELECT + 83 * - 13 AS col2
----
-1079

onlyif mysql # aggregate syntax: 
query II rowsort label-5434
SELECT DISTINCT 44 AS col0, + COUNT( * )
----
44
1

skipif mysql # not compatible
query II rowsort label-5434
SELECT DISTINCT 44 AS col0, + COUNT ( * )
----
44
1

query I rowsort
SELECT DISTINCT + 2 * - 16 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5436
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 39 * - 43 / - 13 * + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 39 * - 43 / - 13 * + 78 AS col0
----
NULL

query I rowsort
SELECT - 53 * 47
----
-2491

query I rowsort
SELECT COALESCE ( - 6, 28 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL - 27 * COUNT( * ) + - + 90
----
-117

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - 27 * COUNT ( * ) + - + 90
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5440
SELECT ALL 19 * + 59 + - 90 AS col2, - 68 * CAST( NULL AS SIGNED ) + - 50 AS col0
----
1031
NULL

skipif mysql # not compatible
query II rowsort label-5440
SELECT ALL 19 * + 59 + - 90 AS col2, - 68 * CAST ( NULL AS INTEGER ) + - 50 AS col0
----
1031
NULL

query I rowsort
SELECT - 17 * - 66 AS col0
----
1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5442
SELECT - 23 * - SUM( ALL 90 ) * + 28 * - 47 * 92 DIV + COUNT( * ) col1
----
-250619040

skipif mysql # not compatible
query I rowsort label-5442
SELECT - 23 * - SUM ( ALL 90 ) * + 28 * - 47 * 92 / + COUNT ( * ) col1
----
-250619040

query II rowsort
SELECT COALESCE ( - - 89, - + 58 ) AS col0, + 0 AS col1
----
89
0

query I rowsort
SELECT ALL 63 * + 13 + + 69 * - + COALESCE ( 38, + + ( - 40 ), - 78 * - 88 ) * - + 72 AS col2
----
189603

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT DISTINCT 25 * 4 * - - 86 * - COUNT( * ) + + - 47 + - - 65 col2
----
-8582

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT 25 * 4 * - - 86 * - COUNT ( * ) + + - 47 + - - 65 col2
----
-8582

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL - COUNT( * ) * 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL - COUNT ( * ) * 11 AS col2
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-5447
SELECT + 80 AS col2, 78 DIV + - 73 * - 86 DIV 61 AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-5447
SELECT + 80 AS col2, 78 / + - 73 * - 86 / 61 AS col0
----
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL 0 * - - 70 + ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL 0 * - - 70 + ( + + COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT - 59 * - 61 * - 66 * - + 44
----
10451496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5450
SELECT - COUNT( * ) DIV + CAST( + MIN( ALL + ( + + 49 ) ) AS SIGNED ) * - - 40 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5450
SELECT - COUNT ( * ) / + CAST ( + MIN ( ALL + ( + + 49 ) ) AS INTEGER ) * - - 40 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT ALL + 46 * - COUNT( * ) + 13, + 96 AS col0
----
-33
96

skipif mysql # not compatible
query II rowsort label-5451
SELECT ALL + 46 * - COUNT ( * ) + 13, + 96 AS col0
----
-33
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL COUNT( * ) * + 86 + + 7 + + - 55 + 33 + + 42 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL COUNT ( * ) * + 86 + + 7 + + - 55 + 33 + + 42 AS col0
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5453
SELECT DISTINCT + 73 AS col1, 53 * + CAST( + 61 AS SIGNED ) - - 22 * CAST( NULL AS SIGNED ) col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-5453
SELECT DISTINCT + 73 AS col1, 53 * + CAST ( + 61 AS INTEGER ) - - 22 * CAST ( NULL AS INTEGER ) col0
----
73
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5454
SELECT ALL + COUNT( * ) AS col2, + COUNT( * ) + COUNT( ALL - + 0 ) AS col1
----
1
2

skipif mysql # not compatible
query II rowsort label-5454
SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) + COUNT ( ALL - + 0 ) AS col1
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL - COUNT( * ) - + 37 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - COUNT ( * ) - + 37 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - - COUNT( * ) * 22
----
22

skipif mysql # not compatible
query I rowsort label-5456
SELECT - - COUNT ( * ) * 22
----
22

query I rowsort
SELECT ALL - 15 * COALESCE ( 49, - + 33 )
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL COUNT( ALL - 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL COUNT ( ALL - 47 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - + 6 - + 25
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5460
SELECT COUNT( * ), + COALESCE ( - - ( - ( + + COUNT( * ) ) ), - - MAX( - + ( - 16 ) ) ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-5460
SELECT COUNT ( * ), + COALESCE ( - - ( - ( + + COUNT ( * ) ) ), - - MAX ( - + ( - 16 ) ) ) AS col2
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT + - ( - - COALESCE ( CAST( NULL AS SIGNED ), - - 39 ) ) + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-5461
SELECT + - ( - - COALESCE ( CAST ( NULL AS INTEGER ), - - 39 ) ) + - COUNT ( * )
----
-40

query I rowsort
SELECT ALL - 65 - - 64 AS col1
----
-1

query I rowsort
SELECT + 79 * - 42 AS col2
----
-3318

query I rowsort
SELECT - ( + 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL + NULLIF ( COUNT( * ), MAX( DISTINCT + - 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + NULLIF ( COUNT ( * ), MAX ( DISTINCT + - 37 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT + + ( + 80 ) DIV + 89 - + 6 + - - 36 col0
----
30

skipif mysql # not compatible
query I rowsort label-5466
SELECT + + ( + 80 ) / + 89 - + 6 + - - 36 col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5467
SELECT DISTINCT COUNT( * ), 96 AS col1
----
1
96

skipif mysql # not compatible
query II rowsort label-5467
SELECT DISTINCT COUNT ( * ), 96 AS col1
----
1
96

query I rowsort
SELECT ALL 7 * 57 AS col0
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT 30 + CASE ( + - 77 ) WHEN + MIN( DISTINCT - - 63 ) THEN COUNT( * ) ELSE - - 75 END * - + 60
----
-4470

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT 30 + CASE ( + - 77 ) WHEN + MIN ( DISTINCT - - 63 ) THEN COUNT ( * ) ELSE - - 75 END * - + 60
----
-4470

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT + 53 DIV + ( + 46 )
----
1

skipif mysql # not compatible
query I rowsort label-5470
SELECT + 53 / + ( + 46 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL - 44 + - - CASE - + ( NULLIF ( 89, - - 9 ) ) WHEN 80 THEN NULL WHEN - - 82 THEN - - CASE - 4 WHEN + 67 THEN NULL WHEN - 64 + SUM( DISTINCT + 13 ) THEN NULL ELSE - 0 END END + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - 44 + - - CASE - + ( NULLIF ( 89, - - 9 ) ) WHEN 80 THEN NULL WHEN - - 82 THEN - - CASE - 4 WHEN + 67 THEN NULL WHEN - 64 + SUM ( DISTINCT + 13 ) THEN NULL ELSE - 0 END END + 99 AS col2
----
NULL

query I rowsort
SELECT ALL 35 + - 3 - + 95
----
-63

query I rowsort
SELECT + 47 - 92
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5474
SELECT + 17 + COUNT( - 2 ) - + 40 AS col1, - 13 + + 97 + - 15 + - COUNT( - 93 ) DIV 94 * - 52 col2
----
-22
69

skipif mysql # not compatible
query II rowsort label-5474
SELECT + 17 + COUNT ( - 2 ) - + 40 AS col1, - 13 + + 97 + - 15 + - COUNT ( - 93 ) / 94 * - 52 col2
----
-22
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5475
SELECT ALL 84 DIV + 64 + + ( - 32 )
----
-31

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL 84 / + 64 + + ( - 32 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT - 99 * - 16 * - COUNT( DISTINCT - 50 )
----
-1584

skipif mysql # not compatible
query I rowsort label-5476
SELECT - 99 * - 16 * - COUNT ( DISTINCT - 50 )
----
-1584

query I rowsort
SELECT 45 * + 23 + - 36 AS col2
----
999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT + CAST( - - 7 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5478
SELECT + CAST ( - - 7 AS INTEGER ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5479
SELECT ALL 96 DIV + ( 29 ) + - 7 col0
----
-4

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL 96 / + ( 29 ) + - 7 col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT + CAST( NULL AS SIGNED ) / - ( 75 ) + 98 + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT + CAST ( NULL AS INTEGER ) / - ( 75 ) + 98 + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5481
SELECT + 63 + - COALESCE ( - MIN( ALL - 29 ), - - ( + + 76 ) + - 58 DIV - 49 + + COUNT( * ), 21 )
----
34

skipif mysql # not compatible
query I rowsort label-5481
SELECT + 63 + - COALESCE ( - MIN ( ALL - 29 ), - - ( + + 76 ) + - 58 / - 49 + + COUNT ( * ), 21 )
----
34

query I rowsort
SELECT ( + + COALESCE ( - + 87, + + 12, + - 20 ) ) AS col2
----
-87

query I rowsort
SELECT DISTINCT 87 * + - 13
----
-1131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT ALL + COUNT( * ) DIV + - COALESCE ( ( - + 89 ), - 43 - 81 ) + - COUNT( * ) - 86 col1
----
-87

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + COUNT ( * ) / + - COALESCE ( ( - + 89 ), - 43 - 81 ) + - COUNT ( * ) - 86 col1
----
-87

query I rowsort
SELECT 91 * 65 + - 57 + - 98 + + 23 * + 73 AS col1
----
7439

query I rowsort
SELECT + 27 * 24 * 71 AS col2
----
46008

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT 82 * + + COUNT( * ) + - + 40
----
42

skipif mysql # not compatible
query I rowsort label-5487
SELECT 82 * + + COUNT ( * ) + - + 40
----
42

query I rowsort
SELECT - 4 * + + 27 * + 95 + + 56 col0
----
-10204

query I rowsort
SELECT - NULLIF ( + 32, 29 )
----
-32

query I rowsort
SELECT - + ( + 91 ) + - 30 + + 46 * + 48 + + 1
----
2088

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5491
SELECT - NULLIF ( - 8, + 39 * - 25 * 68 / + 61 ) * CASE COUNT( * ) WHEN CAST( NULL AS DECIMAL ) + + - NULLIF ( - 25, 32 ) + + - 11 * 40 / - COUNT( * ) THEN 67 - + 97 END + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT - NULLIF ( - 8, + 39 * - 25 * 68 / + 61 ) * CASE COUNT ( * ) WHEN CAST ( NULL AS REAL ) + + - NULLIF ( - 25, 32 ) + + - 11 * 40 / - COUNT ( * ) THEN 67 - + 97 END + 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL - COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 40 * - + 17
----
680

query II rowsort
SELECT ALL + - 33 * + + 84 AS col2, - 10
----
-2772
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT DISTINCT - - MIN( - 52 ) * CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT - - MIN ( - 52 ) * CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5496
SELECT - - CASE + + 89 WHEN COUNT( * ) * 42 + + ( - - 38 ) THEN 75 WHEN + 39 + CASE - 57 WHEN - COUNT( * ) THEN NULL ELSE - 60 * AVG ( ALL + - CAST( NULL AS SIGNED ) ) + - 93 + + 78 END * + 91 THEN NULL END * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT - - CASE + + 89 WHEN COUNT ( * ) * 42 + + ( - - 38 ) THEN 75 WHEN + 39 + CASE - 57 WHEN - COUNT ( * ) THEN NULL ELSE - 60 * AVG ( ALL + - CAST ( NULL AS INTEGER ) ) + - 93 + + 78 END * + 91 THEN NULL END * + 53
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT ALL + 78 * - - 57 AS col2, 57 + - 96 + MAX( - 82 ) * + COUNT( * ) + 64 + + - 68 col2
----
4446
-125

skipif mysql # not compatible
query II rowsort label-5497
SELECT ALL + 78 * - - 57 AS col2, 57 + - 96 + MAX ( - 82 ) * + COUNT ( * ) + 64 + + - 68 col2
----
4446
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT - + 8 * + MIN( + 79 )
----
-632

skipif mysql # not compatible
query I rowsort label-5498
SELECT - + 8 * + MIN ( + 79 )
----
-632

query I rowsort
SELECT ALL - + 4 * - - 72 * - 63 + 56 AS col0
----
18200

query I rowsort
SELECT - + 97 + + 25 * 59 * - 94
----
-138747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5501
SELECT DISTINCT - 86 * - CAST( NULL AS SIGNED ) - + SUM( ALL 96 ) + 48 + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - 86 * - CAST ( NULL AS INTEGER ) - + SUM ( ALL 96 ) + 48 + + 30
----
NULL

query I rowsort
SELECT - + NULLIF ( 78, + - 24 )
----
-78

query I rowsort
SELECT + 43 * - 56 AS col2
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL SUM( + 49 ) + - 53 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL SUM ( + 49 ) + - 53 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT SUM( ALL 47 ) + - - ( - 61 ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT SUM ( ALL 47 ) + - - ( - 61 ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT DISTINCT MAX( + 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT MAX ( + 83 ) AS col0
----
83

query I rowsort
SELECT 34 + + - 93 * - 31
----
2917

query I rowsort
SELECT DISTINCT 89 * + 12 AS col1
----
1068

query I rowsort
SELECT 34 * 12 AS col0
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT MIN( 96 ) + NULLIF ( + + 14, + 63 + 68 ) + - 4 + - 88 - + 57
----
-39

skipif mysql # not compatible
query I rowsort label-5510
SELECT MIN ( 96 ) + NULLIF ( + + 14, + 63 + 68 ) + - 4 + - 88 - + 57
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT DISTINCT 53 * - CASE - 88 WHEN 15 * + AVG ( + 8 ) + + 81 THEN NULL WHEN + COUNT( * ) THEN - COUNT( * ) + 28 * - COUNT( * ) ELSE NULLIF ( + 54, 37 ) * COUNT( * ) + + 11 END AS col0
----
-3445

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT 53 * - CASE - 88 WHEN 15 * + AVG ( + 8 ) + + 81 THEN NULL WHEN + COUNT ( * ) THEN - COUNT ( * ) + 28 * - COUNT ( * ) ELSE NULLIF ( + 54, 37 ) * COUNT ( * ) + + 11 END AS col0
----
-3445

query I rowsort
SELECT 79 + - ( - + 33 ) AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL 29 + + COUNT( DISTINCT - 22 ) + + 96 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL 29 + + COUNT ( DISTINCT - 22 ) + + 96 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT - COALESCE ( - COUNT( * ), 66 * + 46 + 16 - + + 6 + + MIN( 52 ) + 68 * + - COUNT( * ) ) + 71 + 53 * + - 66
----
-3426

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - COALESCE ( - COUNT ( * ), 66 * + 46 + 16 - + + 6 + + MIN ( 52 ) + 68 * + - COUNT ( * ) ) + 71 + 53 * + - 66
----
-3426

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT ALL - 13 + 62 + - COUNT( ALL + 55 )
----
48

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL - 13 + 62 + - COUNT ( ALL + 55 )
----
48

query I rowsort
SELECT ALL + 58 * - 23
----
-1334

onlyif mysql # aggregate syntax: 
query II rowsort label-5517
SELECT ALL 46 + - + ( + COUNT( * ) ) * - + 64 * 21, + 10 * - + 17 AS col1
----
1390
-170

skipif mysql # not compatible
query II rowsort label-5517
SELECT ALL 46 + - + ( + COUNT ( * ) ) * - + 64 * 21, + 10 * - + 17 AS col1
----
1390
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ( 30 ) * - 64 * + + COUNT( * )
----
-1920

skipif mysql # not compatible
query I rowsort label-5518
SELECT ( 30 ) * - 64 * + + COUNT ( * )
----
-1920

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT ALL 22 DIV + 11 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL 22 / + 11 AS col1
----
2

query I rowsort
SELECT DISTINCT 81 - 79 AS col2
----
2

query I rowsort
SELECT ALL 15 - - 85
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5522
SELECT 84 * 85 DIV + COUNT( * )
----
7140

skipif mysql # not compatible
query I rowsort label-5522
SELECT 84 * 85 / + COUNT ( * )
----
7140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5523
SELECT + NULLIF ( + COUNT( * ), - COUNT( * ) * 88 / + - COUNT( * ) ) AS col2, - CAST( - 48 AS SIGNED ) / 35 * - 4 * - CAST( NULL AS SIGNED ) + - SUM( ALL + - 92 ) + - 25 * - - NULLIF ( + CASE - 53 WHEN 74 THEN NULL ELSE 59 * + 89 END, 33 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5523
SELECT + NULLIF ( + COUNT ( * ), - COUNT ( * ) * 88 / + - COUNT ( * ) ) AS col2, - CAST ( - 48 AS INTEGER ) / 35 * - 4 * - CAST ( NULL AS INTEGER ) + - SUM ( ALL + - 92 ) + - 25 * - - NULLIF ( + CASE - 53 WHEN 74 THEN NULL ELSE 59 * + 89 END, 33 ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL 94 * + MAX( + 45 ) * - 95 - + 79 + - + COUNT( 2 ) * - + 92 AS col2
----
-401837

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL 94 * + MAX ( + 45 ) * - 95 - + 79 + - + COUNT ( 2 ) * - + 92 AS col2
----
-401837

query I rowsort
SELECT DISTINCT - - 82 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + SUM( DISTINCT + - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-5526
SELECT + SUM ( DISTINCT + - 29 )
----
-29

query I rowsort
SELECT ALL - 48 * - 39 + - - 78 AS col1
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT + 61 * COALESCE ( ( + NULLIF ( COUNT( * ), + 29 ) ), 85 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5528
SELECT + 61 * COALESCE ( ( + NULLIF ( COUNT ( * ), + 29 ) ), 85 ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5529
SELECT NULLIF ( - - 45, - 79 ) + + 92 DIV 36 - - + COUNT( ALL - 93 ) * + - 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5529
SELECT NULLIF ( - - 45, - 79 ) + + 92 / 36 - - + COUNT ( ALL - 93 ) * + - 23 AS col0
----
24

query II rowsort
SELECT 15 AS col1, 25 + - 81
----
15
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5531
SELECT - 6 * ( + - COUNT( * ) ) + - 76 + - - 10 - - CASE + 50 WHEN - COALESCE ( + - 78, + - 60 + + COUNT( * ) * 98 ) * + CAST( NULL AS SIGNED ) * + - 30 THEN + CAST( NULL AS SIGNED ) END / MAX( DISTINCT 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT - 6 * ( + - COUNT ( * ) ) + - 76 + - - 10 - - CASE + 50 WHEN - COALESCE ( + - 78, + - 60 + + COUNT ( * ) * 98 ) * + CAST ( NULL AS INTEGER ) * + - 30 THEN + CAST ( NULL AS INTEGER ) END / MAX ( DISTINCT 28 ) AS col2
----
NULL

query I rowsort
SELECT 23 * + - 6
----
-138

query I rowsort
SELECT ALL - 91 + + - 20 * ( - + 8 ) AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5534
SELECT - COALESCE ( - COUNT( * ), - 18, + - 38 DIV 40 * ( + - 53 ) DIV + + 44 DIV + + 48 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5534
SELECT - COALESCE ( - COUNT ( * ), - 18, + - 38 / 40 * ( + - 53 ) / + + 44 / + + 48 ) AS col0
----
1

query I rowsort
SELECT 72 + 52
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT ALL 24 DIV - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL 24 / - 70 AS col0
----
0

query I rowsort
SELECT DISTINCT 28 + + ( + - 96 )
----
-68

query I rowsort
SELECT - 68 + - - 99 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT + 83 + + + MIN( ALL + 46 ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + 83 + + + MIN ( ALL + 46 ) AS col1
----
129

query II rowsort
SELECT - 16 - + + 39 + + 24 + + ( + - 81 ) AS col0, 71 * - 60 AS col2
----
-112
-4260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT CAST( NULL AS SIGNED ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT CAST ( NULL AS INTEGER ) * + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT MIN( ALL + 66 ) * COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5542
SELECT MIN ( ALL + 66 ) * COUNT ( * ) AS col2
----
66

query I rowsort
SELECT DISTINCT + 44 + + 41 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT DISTINCT MAX( + 83 ) col1
----
83

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT MAX ( + 83 ) col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL - 17 + + 10 - - ( + + COUNT( * ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL - 17 + + 10 - - ( + + COUNT ( * ) ) AS col0
----
-6

query I rowsort
SELECT 59 - - + 23 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5547
SELECT DISTINCT 3 AS col2, COUNT( * ) * - COUNT( 32 ) AS col1
----
3
-1

skipif mysql # not compatible
query II rowsort label-5547
SELECT DISTINCT 3 AS col2, COUNT ( * ) * - COUNT ( 32 ) AS col1
----
3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL MAX( DISTINCT + ( 48 ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL MAX ( DISTINCT + ( 48 ) ) AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5549
SELECT 69 - + ( + 50 ) + + COALESCE ( + - 69, - 55 + + + COUNT( * ) * + 40 DIV MAX( 6 ) + - 48 ) * + + 92 - - ( + - SUM( ALL 86 ) ) AS col2
----
-6415

skipif mysql # not compatible
query I rowsort label-5549
SELECT 69 - + ( + 50 ) + + COALESCE ( + - 69, - 55 + + + COUNT ( * ) * + 40 / MAX ( 6 ) + - 48 ) * + + 92 - - ( + - SUM ( ALL 86 ) ) AS col2
----
-6415

query I rowsort
SELECT ALL + 81 + - - ( + 74 ) AS col1
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT ALL 76 - - 4 DIV 26 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL 76 - - 4 / 26 AS col2
----
76

query II rowsort
SELECT - 66 AS col2, + 76
----
-66
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5553
SELECT MIN( ALL - - 64 ) - + 83 DIV + ( - 82 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5553
SELECT MIN ( ALL - - 64 ) - + 83 / + ( - 82 ) AS col0
----
65

query II rowsort
SELECT - 20 AS col2, 75 AS col2
----
-20
75

query I rowsort
SELECT 68 + 34 + + ( + 36 )
----
138

query I rowsort
SELECT 4 - 25
----
-21

query II rowsort
SELECT ALL - 39, - ( - 76 ) + + + 61 AS col1
----
-39
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT MAX( DISTINCT 38 ) * + 45 - 37 AS col1
----
1673

skipif mysql # not compatible
query I rowsort label-5558
SELECT MAX ( DISTINCT 38 ) * + 45 - 37 AS col1
----
1673

query II rowsort
SELECT + 31 AS col0, - 60
----
31
-60

query I rowsort
SELECT DISTINCT + 37 * - 73 * - + NULLIF ( - 94, + 49 ) AS col2
----
-253894

onlyif mysql # aggregate syntax: 
query II rowsort label-5561
SELECT ALL - COUNT( * ), COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-5561
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT DISTINCT - - ( 90 ) * + 18
----
1620

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT DISTINCT + - 0 * - 91 DIV + - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT + - 0 * - 91 / + - 73 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5564
SELECT NULLIF ( + SUM( ALL + + 59 ), 68 * - + 29 * 60 * - + COUNT( * ) + + 82 * 33 - + 41 - CAST( + + 0 AS SIGNED ) - 58 )
----
59

skipif mysql # not compatible
query I rowsort label-5564
SELECT NULLIF ( + SUM ( ALL + + 59 ), 68 * - + 29 * 60 * - + COUNT ( * ) + + 82 * 33 - + 41 - CAST ( + + 0 AS INTEGER ) - 58 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT ALL - + COALESCE ( + - 3, 45 * + 47 * - - 52 + - 61 ) col2, + 28 + 67 * + 64 * + 42 * + + COUNT( * )
----
3
180124

skipif mysql # not compatible
query II rowsort label-5565
SELECT ALL - + COALESCE ( + - 3, 45 * + 47 * - - 52 + - 61 ) col2, + 28 + 67 * + 64 * + 42 * + + COUNT ( * )
----
3
180124

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT + CASE + 21 WHEN + ( + 99 ) + + CASE - + COUNT( DISTINCT + + 88 ) WHEN - + 19 * - + COUNT( * ) / 57 - - - 96 - + COALESCE ( + - 64, - + MAX( NULLIF ( - + 57, 38 ) ) + 65 ) THEN CASE - 83 WHEN + 22 THEN 24 + 0 END * - COUNT( DISTINCT - 99 ) ELSE + 10 + - 8 END + + 88 THEN NULL WHEN 6 THEN COUNT( * ) / 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT + CASE + 21 WHEN + ( + 99 ) + + CASE - + COUNT ( DISTINCT + + 88 ) WHEN - + 19 * - + COUNT ( * ) / 57 - - - 96 - + COALESCE ( + - 64, - + MAX ( NULLIF ( - + 57, 38 ) ) + 65 ) THEN CASE - 83 WHEN + 22 THEN 24 + 0 END * - COUNT ( DISTINCT - 99 ) ELSE + 10 + - 8 END + + 88 THEN NULL WHEN 6 THEN COUNT ( * ) / 29 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5567
SELECT - NULLIF ( COUNT( * ), + + 52 * - - 3 ) * + CAST( + COUNT( * ) AS SIGNED ) + - + ( - 78 ) / - CAST( NULL AS DECIMAL ) * - COUNT( * ) * + 41 * - + 65 * + 91 * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT - NULLIF ( COUNT ( * ), + + 52 * - - 3 ) * + CAST ( + COUNT ( * ) AS INTEGER ) + - + ( - 78 ) / - CAST ( NULL AS REAL ) * - COUNT ( * ) * + 41 * - + 65 * + 91 * + 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT + 98 * - - SUM( + 48 ) AS col0
----
4704

skipif mysql # not compatible
query I rowsort label-5568
SELECT + 98 * - - SUM ( + 48 ) AS col0
----
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT + 2 * + NULLIF ( - COUNT( * ), + 19 ) + + - ( - 86 )
----
84

skipif mysql # not compatible
query I rowsort label-5569
SELECT + 2 * + NULLIF ( - COUNT ( * ), + 19 ) + + - ( - 86 )
----
84

query II rowsort
SELECT DISTINCT + 20, 3 AS col0
----
20
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL + COALESCE ( + COUNT( - - 24 ), + 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + COALESCE ( + COUNT ( - - 24 ), + 79 ) AS col2
----
1

query II rowsort
SELECT ALL + + 8 AS col1, - 24 AS col1
----
8
-24

query II rowsort
SELECT ALL + 28 AS col2, - 62
----
28
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT + + MIN( + 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5574
SELECT + + MIN ( + 75 ) AS col0
----
75

query I rowsort
SELECT ALL + + ( + + 99 )
----
99

query I rowsort
SELECT ALL 31 + - 48 AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5577
SELECT ALL - 1 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL - 1 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT 96 * + - COUNT( * ) + + - 68 + - - NULLIF ( COALESCE ( - - 39, - 47 ), 14 ) + 87 * + COUNT( * ) * - 73 - 81 AS col2
----
-6557

skipif mysql # not compatible
query I rowsort label-5578
SELECT 96 * + - COUNT ( * ) + + - 68 + - - NULLIF ( COALESCE ( - - 39, - 47 ), 14 ) + 87 * + COUNT ( * ) * - 73 - 81 AS col2
----
-6557

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + COUNT( * ) + - 36 * + 34 AS col0
----
-1223

skipif mysql # not compatible
query I rowsort label-5579
SELECT + COUNT ( * ) + - 36 * + 34 AS col0
----
-1223

query I rowsort
SELECT + NULLIF ( + + 35, ( - - 9 ) ) * - 1 AS col0
----
-35

query I rowsort
SELECT - ( - + 85 ) * - ( 74 )
----
-6290

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5582
SELECT - CAST( NULL AS SIGNED ) + + 85, - 57 - 10 AS col1
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-5582
SELECT - CAST ( NULL AS INTEGER ) + + 85, - 57 - 10 AS col1
----
NULL
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT DISTINCT MAX( - + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT MAX ( - + 60 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT ALL + 31 + + 68 + + COALESCE ( 96, 22 ) + - 48 + - 21 * + - MIN( + 26 ) + - - 98 AS col0, 26 AS col2
----
791
26

skipif mysql # not compatible
query II rowsort label-5584
SELECT ALL + 31 + + 68 + + COALESCE ( 96, 22 ) + - 48 + - 21 * + - MIN ( + 26 ) + - - 98 AS col0, 26 AS col2
----
791
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5585
SELECT + ( + + 87 ) * + - CAST( NULL AS DECIMAL ) + - 20 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT + ( + + 87 ) * + - CAST ( NULL AS REAL ) + - 20 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT - COUNT( * ) - - - MIN( - 86 ) + + + 87 * - 30 * 45
----
-117365

skipif mysql # not compatible
query I rowsort label-5586
SELECT - COUNT ( * ) - - - MIN ( - 86 ) + + + 87 * - 30 * 45
----
-117365

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL CASE + 6 WHEN + - 15 * - COUNT( - 92 ) THEN NULL WHEN + 84 THEN 71 WHEN - ( 49 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL CASE + 6 WHEN + - 15 * - COUNT ( - 92 ) THEN NULL WHEN + 84 THEN 71 WHEN - ( 49 ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT ALL - 95 * - 78 / 74 / - 73 * + CAST( NULL AS SIGNED ) / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL - 95 * - 78 / 74 / - 73 * + CAST ( NULL AS INTEGER ) / - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL - 22 * + ( - - 37 ) * - ( - + 63 ) + + SUM( ALL 82 ) * - 93 + 34 AS col2
----
-58874

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL - 22 * + ( - - 37 ) * - ( - + 63 ) + + SUM ( ALL 82 ) * - 93 + 34 AS col2
----
-58874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5590
SELECT DISTINCT + 68 - - CAST( - + COUNT( * ) AS SIGNED ) * 47
----
21

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT + 68 - - CAST ( - + COUNT ( * ) AS INTEGER ) * 47
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5591
SELECT - ( - 35 ) AS col2, CAST( NULL AS DECIMAL )
----
35
NULL

skipif mysql # not compatible
query II rowsort label-5591
SELECT - ( - 35 ) AS col2, CAST ( NULL AS REAL )
----
35
NULL

query I rowsort
SELECT ALL + 50 - - 62 - - - 7
----
105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5593
SELECT ALL NULLIF ( - + 90, + CAST( SUM( ALL + + 32 ) AS DECIMAL ) * + 58 * COALESCE ( + - COUNT( * ), 51 ) + - - 9 * + + 36 )
----
-90

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL NULLIF ( - + 90, + CAST ( SUM ( ALL + + 32 ) AS REAL ) * + 58 * COALESCE ( + - COUNT ( * ), 51 ) + - - 9 * + + 36 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT - 4 * - + COUNT( - + 32 )
----
4

skipif mysql # not compatible
query I rowsort label-5594
SELECT - 4 * - + COUNT ( - + 32 )
----
4

query I rowsort
SELECT - 10 + - - 70 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT - 22 DIV + + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5596
SELECT - 22 / + + 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL + COUNT( ALL - + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL + COUNT ( ALL - + 52 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5598
SELECT - MAX( + - 13 ) * - CAST( NULL AS SIGNED ) / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT - MAX ( + - 13 ) * - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5599
SELECT ALL + 15 * - 49, COUNT( * ) AS col1
----
-735
1

skipif mysql # not compatible
query II rowsort label-5599
SELECT ALL + 15 * - 49, COUNT ( * ) AS col1
----
-735
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5600
SELECT - - ( - MIN( + 84 ) ) DIV + 64 + 33
----
32

skipif mysql # not compatible
query I rowsort label-5600
SELECT - - ( - MIN ( + 84 ) ) / + 64 + 33
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + ( + - COALESCE ( COUNT( * ), - - 82 + + + 33 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5601
SELECT + ( + - COALESCE ( COUNT ( * ), - - 82 + + + 33 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT - 51 * - - MIN( + ( + 85 ) ) + - 49 + + 58 + + + 87 * MIN( + + CASE - 70 WHEN - 22 - + 53 * + 89 THEN NULL WHEN - NULLIF ( + 61, - NULLIF ( - 94, + 63 * + 3 ) ) + 20 THEN NULL ELSE + 62 END ) * 96
----
513498

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT - 51 * - - MIN ( + ( + 85 ) ) + - 49 + + 58 + + + 87 * MIN ( + + CASE - 70 WHEN - 22 - + 53 * + 89 THEN NULL WHEN - NULLIF ( + 61, - NULLIF ( - 94, + 63 * + 3 ) ) + 20 THEN NULL ELSE + 62 END ) * 96
----
513498

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT - - 60 - - SUM( + 39 )
----
99

skipif mysql # not compatible
query I rowsort label-5603
SELECT - - 60 - - SUM ( + 39 )
----
99

query I rowsort
SELECT ALL - + 14 * - 98 * - + 45 + - 47 AS col2
----
-61787

query I rowsort
SELECT - + 85 - - 61
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT ALL 47 * + 27 * + - 29 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL 47 * + 27 * + - 29 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5607
SELECT + - 11 * COUNT( * ) * + - 32 + - ( - 44 ) AS col2, 25 * - 95
----
396
-2375

skipif mysql # not compatible
query II rowsort label-5607
SELECT + - 11 * COUNT ( * ) * + - 32 + - ( - 44 ) AS col2, 25 * - 95
----
396
-2375

query I rowsort
SELECT ALL - 86 * + 24 + + + 49 AS col1
----
-2015

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT + + MIN( DISTINCT 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT + + MIN ( DISTINCT 99 ) AS col1
----
99

query I rowsort
SELECT + 50 * - 79 AS col0
----
-3950

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL - 78 * + - 30 + + - COUNT( * )
----
2339

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL - 78 * + - 30 + + - COUNT ( * )
----
2339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5612
SELECT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + + - 32 + SUM( 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + + - 32 + SUM ( 53 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT + MIN( + 9 ) - - - COUNT( * ) + + - COUNT( ALL + 33 )
----
7

skipif mysql # not compatible
query I rowsort label-5613
SELECT + MIN ( + 9 ) - - - COUNT ( * ) + + - COUNT ( ALL + 33 )
----
7

query I rowsort
SELECT + + 28 + 19
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT + 28 * + 43 * + 31 + 87 + ( - - 8 ) * - 94 + + - NULLIF ( - COUNT( * ), 80 )
----
36660

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + 28 * + 43 * + 31 + 87 + ( - - 8 ) * - 94 + + - NULLIF ( - COUNT ( * ), 80 )
----
36660

query I rowsort
SELECT ALL ( + 38 ) * 51 * - 61 - + 59 + - - 85 + - - 64
----
-118128

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT MIN( DISTINCT - + 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5617
SELECT MIN ( DISTINCT - + 67 ) AS col1
----
-67

query I rowsort
SELECT ALL 70 * - 40 AS col2
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT ALL COUNT( * ) * + + ( + + 26 ) * - 42 - - 37 AS col2
----
-1055

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL COUNT ( * ) * + + ( + + 26 ) * - 42 - - 37 AS col2
----
-1055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT - CAST( + - 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-5620
SELECT - CAST ( + - 31 AS INTEGER )
----
31

query I rowsort
SELECT ALL 23 * - 39 * 88 AS col1
----
-78936

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5622
SELECT + 29 + MIN( DISTINCT + 73 ) * + MAX( 64 ) + - ( - 24 ) + 58 AS col0, - 96 - - 56 + - ( + 81 ) * - 90 DIV - - COUNT( * ) + - COALESCE ( - CASE + 96 WHEN - ( 92 ) * + NULLIF ( MIN( 49 ), 32 ) THEN 99 END, + COUNT( * ) ) AS col1
----
4783
7249

skipif mysql # not compatible
query II rowsort label-5622
SELECT + 29 + MIN ( DISTINCT + 73 ) * + MAX ( 64 ) + - ( - 24 ) + 58 AS col0, - 96 - - 56 + - ( + 81 ) * - 90 / - - COUNT ( * ) + - COALESCE ( - CASE + 96 WHEN - ( 92 ) * + NULLIF ( MIN ( 49 ), 32 ) THEN 99 END, + COUNT ( * ) ) AS col1
----
4783
7249

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL MIN( DISTINCT + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL MIN ( DISTINCT + 5 ) AS col2
----
5

query I rowsort
SELECT + 81 * + - 48 * - 11 AS col2
----
42768

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL COALESCE ( + COUNT( * ), + - 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL COALESCE ( + COUNT ( * ), + - 18 ) AS col1
----
1

query I rowsort
SELECT + 98 - 46
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5627
SELECT DISTINCT - 82 DIV 59
----
-1

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT - 82 / 59
----
-1

query I rowsort
SELECT DISTINCT ( + ( 38 ) ) AS col0
----
38

query I rowsort
SELECT - 51 * 64
----
-3264

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT ALL 57 DIV - + COALESCE ( - 36, - - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL 57 / - + COALESCE ( - 36, - - 88 )
----
1

query I rowsort
SELECT + 13 - ( + + 83 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL - ( - COUNT( ALL + 87 ) ) + + - 44 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL - ( - COUNT ( ALL + 87 ) ) + + - 44 AS col1
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5633
SELECT 9 + + CAST( NULL AS DECIMAL ) + + 96 + - - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT 9 + + CAST ( NULL AS REAL ) + + 96 + - - 24 AS col1
----
NULL

query I rowsort
SELECT + 27 - + NULLIF ( 23, + 57 ) + + 87 * + - 88
----
-7652

query I rowsort
SELECT ALL + - 95 * + 90 AS col1
----
-8550

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT - + ( 58 ) * 53 + - COUNT( * ) + + ( - - SUM( + 57 ) ) AS col0
----
-3018

skipif mysql # not compatible
query I rowsort label-5636
SELECT - + ( 58 ) * 53 + - COUNT ( * ) + + ( - - SUM ( + 57 ) ) AS col0
----
-3018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT CAST( CASE 54 WHEN - - 26 THEN + CAST( NULL AS SIGNED ) * 87 + - 14 + + 58 * 20 ELSE NULL END AS SIGNED ) - + - CAST( NULL AS SIGNED ) * + 98 * + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT CAST ( CASE 54 WHEN - - 26 THEN + CAST ( NULL AS INTEGER ) * 87 + - 14 + + 58 * 20 ELSE NULL END AS INTEGER ) - + - CAST ( NULL AS INTEGER ) * + 98 * + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5638
SELECT ALL + 70 + - 5 * + 59 AS col2, ( - SUM( 90 ) ) * 75 - + 60 * 93 - COUNT( * ) + - ( + MIN( + - 30 ) ) - + + 86
----
-225
-12387

skipif mysql # not compatible
query II rowsort label-5638
SELECT ALL + 70 + - 5 * + 59 AS col2, ( - SUM ( 90 ) ) * 75 - + 60 * 93 - COUNT ( * ) + - ( + MIN ( + - 30 ) ) - + + 86
----
-225
-12387

query II rowsort
SELECT + - 1 AS col2, + 6 + - 88 + + ( 47 ) AS col2
----
-1
-35

query I rowsort
SELECT ALL + + 82 + 68 + + 48
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5641
SELECT - CAST( - + 89 AS SIGNED ) * COUNT( * ) + + ( 46 ) + + + COUNT( ALL 18 )
----
136

skipif mysql # not compatible
query I rowsort label-5641
SELECT - CAST ( - + 89 AS INTEGER ) * COUNT ( * ) + + ( 46 ) + + + COUNT ( ALL 18 )
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5642
SELECT DISTINCT - COUNT( * ), + CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5642
SELECT DISTINCT - COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

query I rowsort
SELECT DISTINCT - 67 + + 17
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5644
SELECT DISTINCT - + NULLIF ( - + 41, COUNT( * ) * - MAX( 34 ) - - + 56 + - + NULLIF ( - 28, ( - 51 ) * - 26 + + 53 - + 58 ) + + 72 * + - 82 + + - MIN( + 23 ) + - 39 ) + MIN( 97 ) DIV - 71 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT - + NULLIF ( - + 41, COUNT ( * ) * - MAX ( 34 ) - - + 56 + - + NULLIF ( - 28, ( - 51 ) * - 26 + + 53 - + 58 ) + + 72 * + - 82 + + - MIN ( + 23 ) + - 39 ) + MIN ( 97 ) / - 71 AS col1
----
40

query I rowsort
SELECT 65 * - NULLIF ( 36, - + ( + 18 ) ) * - 34 + + 85 * + 32 - 66
----
82214

query I rowsort
SELECT 57 * + 30 + - 54
----
1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5647
SELECT + 43 * + COUNT( * ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-5647
SELECT + 43 * + COUNT ( * ) / + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + COUNT( ALL + 15 ) * + ( + COUNT( - - 23 ) ) + - - 54 + 23
----
78

skipif mysql # not compatible
query I rowsort label-5648
SELECT + COUNT ( ALL + 15 ) * + ( + COUNT ( - - 23 ) ) + - - 54 + 23
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT ALL - - COUNT( * ) - + MIN( DISTINCT + 58 )
----
-57

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - - COUNT ( * ) - + MIN ( DISTINCT + 58 )
----
-57

query I rowsort
SELECT - ( + 63 ) * 78 * 74 + - + 14
----
-363650

onlyif mysql # DIV for integer division: 
query II rowsort label-5651
SELECT ALL - - ( NULLIF ( - ( - - 70 ), - ( 83 ) ) ) DIV - - 90 * + 32 AS col1, + 16
----
0
16

skipif mysql # not compatible
query II rowsort label-5651
SELECT ALL - - ( NULLIF ( - ( - - 70 ), - ( 83 ) ) ) / - - 90 * + 32 AS col1, + 16
----
0
16

query I rowsort
SELECT DISTINCT - 40 * + + 34 AS col2
----
-1360

query I rowsort
SELECT ALL + 68 - - ( - ( - 55 ) )
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT 59 + + + CAST( NULL AS SIGNED ) + + + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT 59 + + + CAST ( NULL AS INTEGER ) + + + 35 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5655
SELECT + 51 * + CAST( NULL AS SIGNED ) - - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT + 51 * + CAST ( NULL AS INTEGER ) - - 28 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT DISTINCT 58 DIV + + 26
----
2

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT 58 / + + 26
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT ALL + 96 DIV 68 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL + 96 / 68 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL 69 * - COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL 69 * - COUNT ( * ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT NULLIF ( + + 67, - - ( + - AVG ( + + 14 ) ) ) - + 91 - + 35 - - 33 + - + 85 * MAX( ALL 36 )
----
-3086

skipif mysql # not compatible
query I rowsort label-5659
SELECT NULLIF ( + + 67, - - ( + - AVG ( + + 14 ) ) ) - + 91 - + 35 - - 33 + - + 85 * MAX ( ALL 36 )
----
-3086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT COALESCE ( 10, - - CASE - 55 WHEN - + CAST( NULL AS SIGNED ) THEN - + 61 ELSE NULL END * 95 ) + + 83
----
93

skipif mysql # not compatible
query I rowsort label-5660
SELECT COALESCE ( 10, - - CASE - 55 WHEN - + CAST ( NULL AS INTEGER ) THEN - + 61 ELSE NULL END * 95 ) + + 83
----
93

query I rowsort
SELECT ALL 16 * + 79
----
1264

query I rowsort
SELECT 23 * + 88
----
2024

query I rowsort
SELECT 93 * 43 AS col0
----
3999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT 29 + + 1 - CASE + 40 WHEN + 73 * - - ( - 97 ) THEN ( + + 1 ) WHEN - CASE 86 WHEN + - 65 * + 64 * - ( - 69 ) THEN + AVG ( ALL 91 ) * 22 + 87 + 16 / 57 / COUNT( ALL + 25 ) END * + 63 THEN NULL WHEN COUNT( * ) * 93 THEN - NULLIF ( 77, - 15 ) * 73 ELSE COALESCE ( - NULLIF ( - 71, - COUNT( * ) ), CAST( + 38 AS SIGNED ) * - ( NULLIF ( ( 80 ), 33 * 38 ) ), 81 ) END
----
-41

skipif mysql # not compatible
query I rowsort label-5664
SELECT 29 + + 1 - CASE + 40 WHEN + 73 * - - ( - 97 ) THEN ( + + 1 ) WHEN - CASE 86 WHEN + - 65 * + 64 * - ( - 69 ) THEN + AVG ( ALL 91 ) * 22 + 87 + 16 / 57 / COUNT ( ALL + 25 ) END * + 63 THEN NULL WHEN COUNT ( * ) * 93 THEN - NULLIF ( 77, - 15 ) * 73 ELSE COALESCE ( - NULLIF ( - 71, - COUNT ( * ) ), CAST ( + 38 AS INTEGER ) * - ( NULLIF ( ( 80 ), 33 * 38 ) ), 81 ) END
----
-41

query I rowsort
SELECT DISTINCT 51 * - 84
----
-4284

query I rowsort
SELECT - 11 + + 13 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT COUNT( * ) * - - COUNT( * ) * 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5667
SELECT COUNT ( * ) * - - COUNT ( * ) * 10 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5668
SELECT - COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 94 + - NULLIF ( + 8, 21 / 37 ) + - 73 AS col2
----
13

query I rowsort
SELECT ALL - ( + 95 ) AS col0
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5671
SELECT ALL 38 + + AVG ( ALL - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL 38 + + AVG ( ALL - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT NULLIF ( + 23, - COUNT( * ) + - 44 )
----
23

skipif mysql # not compatible
query I rowsort label-5672
SELECT NULLIF ( + 23, - COUNT ( * ) + - 44 )
----
23

query I rowsort
SELECT ALL + - 55 + ( 99 ) * + - 9
----
-946

query I rowsort
SELECT ALL - - 35 col1
----
35

query I rowsort
SELECT DISTINCT + 16 + - - 42
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL - MIN( 56 ) + - 71 + + 83
----
-44

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - MIN ( 56 ) + - 71 + + 83
----
-44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5677
SELECT + - NULLIF ( + - 89, + 16 * + CAST( NULL AS DECIMAL ) + + 85 ) AS col0, ( - 29 ) * + ( - 95 ) * + + MIN( ALL + - 68 ) AS col1
----
89
-187340

skipif mysql # not compatible
query II rowsort label-5677
SELECT + - NULLIF ( + - 89, + 16 * + CAST ( NULL AS REAL ) + + 85 ) AS col0, ( - 29 ) * + ( - 95 ) * + + MIN ( ALL + - 68 ) AS col1
----
89
-187340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5678
SELECT DISTINCT - + CASE - 23 WHEN + - NULLIF ( + COUNT( * ), - MIN( - COALESCE ( - - 32, + + 48 * + 88 * 43 + + 41, - 6 ) ) - - + 50 ) THEN COUNT( * ) / CAST( + - 86 AS SIGNED ) * - COALESCE ( - 63, - SUM( 3 ) - - 77 * - 47, 7 * - 26 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT - + CASE - 23 WHEN + - NULLIF ( + COUNT ( * ), - MIN ( - COALESCE ( - - 32, + + 48 * + 88 * 43 + + 41, - 6 ) ) - - + 50 ) THEN COUNT ( * ) / CAST ( + - 86 AS INTEGER ) * - COALESCE ( - 63, - SUM ( 3 ) - - 77 * - 47, 7 * - 26 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT - CASE - 78 WHEN - 58 THEN NULL WHEN - 76 + + 58 THEN 76 WHEN - CAST( NULL AS SIGNED ) THEN NULL END * - - 80 * CASE + 73 WHEN - - ( + + CASE - 30 WHEN 81 * - MAX( + 9 ) + 13 * - 98 * + - 50 THEN NULL WHEN 30 THEN NULL ELSE - 35 * - 50 END ) THEN - 21 WHEN + 38 THEN + 84 + COUNT( * ) * - 14 WHEN - 55 THEN NULL ELSE NULL END * 46 + - 1 - + 11 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT - CASE - 78 WHEN - 58 THEN NULL WHEN - 76 + + 58 THEN 76 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END * - - 80 * CASE + 73 WHEN - - ( + + CASE - 30 WHEN 81 * - MAX ( + 9 ) + 13 * - 98 * + - 50 THEN NULL WHEN 30 THEN NULL ELSE - 35 * - 50 END ) THEN - 21 WHEN + 38 THEN + 84 + COUNT ( * ) * - 14 WHEN - 55 THEN NULL ELSE NULL END * 46 + - 1 - + 11 col0
----
NULL

query I rowsort
SELECT ALL 97 * - 36 - + + 41 AS col2
----
-3533

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT COALESCE ( + - 90, - 75, + 60, 73 * - 8 ) * 43 + + 89 + 79 - 18 DIV 7 AS col1
----
-3704

skipif mysql # not compatible
query I rowsort label-5681
SELECT COALESCE ( + - 90, - 75, + 60, 73 * - 8 ) * 43 + + 89 + 79 - 18 / 7 AS col1
----
-3704

query I rowsort
SELECT + 41 * 85 AS col0
----
3485

query II rowsort
SELECT ALL + 22 - 81 * + + 24 + 30, + 39 + + 69 col0
----
-1892
108

onlyif mysql # DIV for integer division: 
query II rowsort label-5684
SELECT - 94 DIV - 97 AS col2, - 94 * + 24 + + - 74 + + 17 - + 89 * - 5
----
0
-1868

skipif mysql # not compatible
query II rowsort label-5684
SELECT - 94 / - 97 AS col2, - 94 * + 24 + + - 74 + + 17 - + 89 * - 5
----
0
-1868

query I rowsort
SELECT ALL 68 * + + 91 AS col1
----
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5686
SELECT - CAST( NULL AS SIGNED ) - - COUNT( * ) + + CAST( NULL AS SIGNED ) + + + 73 / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT - CAST ( NULL AS INTEGER ) - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + + 73 / - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT - ( + 5 ) * - COALESCE ( - - COUNT( * ), - 67 )
----
5

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT - ( + 5 ) * - COALESCE ( - - COUNT ( * ), - 67 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5688
SELECT COUNT( * ) col0, 55 AS col0
----
1
55

skipif mysql # not compatible
query II rowsort label-5688
SELECT COUNT ( * ) col0, 55 AS col0
----
1
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5689
SELECT + 37 AS col1, CASE + - CASE - 0 WHEN + - 82 THEN NULL ELSE - 71 END WHEN + 3 * + 87 THEN - + CAST( - 92 AS SIGNED ) WHEN - 76 THEN NULL WHEN - 59 * + - 89 + 11 + COUNT( * ) / - + 10 THEN + - 71 ELSE NULL END AS col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-5689
SELECT + 37 AS col1, CASE + - CASE - 0 WHEN + - 82 THEN NULL ELSE - 71 END WHEN + 3 * + 87 THEN - + CAST ( - 92 AS INTEGER ) WHEN - 76 THEN NULL WHEN - 59 * + - 89 + 11 + COUNT ( * ) / - + 10 THEN + - 71 ELSE NULL END AS col0
----
37
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5690
SELECT 88 * COALESCE ( + - COUNT( * ), - 40 + - + 2 ) AS col0, - 94 + 2
----
-88
-92

skipif mysql # not compatible
query II rowsort label-5690
SELECT 88 * COALESCE ( + - COUNT ( * ), - 40 + - + 2 ) AS col0, - 94 + 2
----
-88
-92

query I rowsort
SELECT DISTINCT + 91 * + 11 AS col1
----
1001

query I rowsort
SELECT DISTINCT + 82 * + 2
----
164

query II rowsort
SELECT DISTINCT + 9 + - 29 - - 13 AS col1, - 9
----
-7
-9

query I rowsort
SELECT 4 * - 9 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT DISTINCT + COUNT( DISTINCT - - ( - + 46 ) ) + + MIN( ALL 50 ) * 21
----
1051

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT + COUNT ( DISTINCT - - ( - + 46 ) ) + + MIN ( ALL 50 ) * 21
----
1051

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5696
SELECT DISTINCT NULLIF ( 12, 95 ) + 86 + + 12 AS col0, + COALESCE ( + 13, 0 DIV - NULLIF ( - ( 45 ), + 16 ) + + 13 DIV 63 + + 30 + - 21 DIV COALESCE ( - + 49, + + 16, + + 13 ) + - 58 * 72 * COALESCE ( + 45 DIV + 30 + - 86, COUNT( * ), - 0 ) ) + 98 * - 64
----
110
-6259

skipif mysql # not compatible
query II rowsort label-5696
SELECT DISTINCT NULLIF ( 12, 95 ) + 86 + + 12 AS col0, + COALESCE ( + 13, 0 / - NULLIF ( - ( 45 ), + 16 ) + + 13 / 63 + + 30 + - 21 / COALESCE ( - + 49, + + 16, + + 13 ) + - 58 * 72 * COALESCE ( + 45 / + 30 + - 86, COUNT ( * ), - 0 ) ) + 98 * - 64
----
110
-6259

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT 63 + COUNT( * ) + + NULLIF ( - + 11, + 16 * AVG ( - 78 ) + - 23 ) + - 11 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT 63 + COUNT ( * ) + + NULLIF ( - + 11, + 16 * AVG ( - 78 ) + - 23 ) + - 11 AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT ALL + 65 + + 4 DIV + + 43 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL + 65 + + 4 / + + 43 AS col1
----
65

query I rowsort
SELECT ALL COALESCE ( - + 86, 7, + 46 * + - 15 ) AS col0
----
-86

query I rowsort
SELECT - 16 + + 63 AS col1
----
47

query I rowsort
SELECT ALL - 92 + + ( + - 75 )
----
-167

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT + 9 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-5702
SELECT + 9 / 21
----
0

query I rowsort
SELECT - - 22 - - 51 AS col1
----
73

query I rowsort
SELECT DISTINCT + 11 * + - ( - 94 ) AS col2
----
1034

query I rowsort
SELECT DISTINCT + + 48 + 79 AS col2
----
127

query I rowsort
SELECT + - 73 + - ( + 69 ) AS col0
----
-142

query I rowsort
SELECT ALL + 67 + - 21
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL SUM( ALL - + 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL SUM ( ALL - + 13 ) AS col2
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5709
SELECT + + CASE 80 WHEN + CAST( NULL AS DECIMAL ) - + 28 THEN + 85 ELSE NULL END + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT + + CASE 80 WHEN + CAST ( NULL AS REAL ) - + 28 THEN + 85 ELSE NULL END + 90
----
NULL

query I rowsort
SELECT ALL 28 - - - 84
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT DISTINCT 68 * + - COUNT( ALL + + 66 ), 90 * + 29 AS col1
----
-68
2610

skipif mysql # not compatible
query II rowsort label-5711
SELECT DISTINCT 68 * + - COUNT ( ALL + + 66 ), 90 * + 29 AS col1
----
-68
2610

query I rowsort
SELECT + 11 - 41 AS col2
----
-30

query I rowsort
SELECT + 25 - - 69 AS col2
----
94

query I rowsort
SELECT + 39 + - 52 AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5715
SELECT ALL + - COALESCE ( 18, 90, - - COUNT( * ) * - + ( 13 ) * - - COALESCE ( - 67, CAST( NULL AS SIGNED ) * COUNT( * ) + - + 66 ) * - 16 + + + 93 * 76 + + + 11 + + CAST( 31 AS SIGNED ) + - ( + + 13 ) + + CAST( + 67 AS SIGNED ) - - 3 * - 2 - + 47, 76 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL + - COALESCE ( 18, 90, - - COUNT ( * ) * - + ( 13 ) * - - COALESCE ( - 67, CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 66 ) * - 16 + + + 93 * 76 + + + 11 + + CAST ( 31 AS INTEGER ) + - ( + + 13 ) + + CAST ( + 67 AS INTEGER ) - - 3 * - 2 - + 47, 76 ) AS col0
----
-18

query II rowsort
SELECT DISTINCT + 89, 64 AS col2
----
89
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5717
SELECT + 82 * + COUNT( * ) * COUNT( * ) * - COALESCE ( 23, + - ( + + ( - 78 ) ) ) AS col2, 6
----
-1886
6

skipif mysql # not compatible
query II rowsort label-5717
SELECT + 82 * + COUNT ( * ) * COUNT ( * ) * - COALESCE ( 23, + - ( + + ( - 78 ) ) ) AS col2, 6
----
-1886
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL 52 * - + COUNT( ALL - - 7 ) * MIN( ALL - 59 )
----
3068

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL 52 * - + COUNT ( ALL - - 7 ) * MIN ( ALL - 59 )
----
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT DISTINCT + - MAX( ALL 59 ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT + - MAX ( ALL 59 ) col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5720
SELECT ALL + CASE 45 WHEN CAST( + SUM( DISTINCT 81 ) AS SIGNED ) + + 44 * + NULLIF ( + 93, + + COALESCE ( + + COUNT( * ), + - ( 2 ) + - 35 + + - CAST( - + 73 AS SIGNED ), + + 61 + - 76 - - 15 + - 18 * - - MAX( ALL 19 ) + ( - 68 + MIN( ALL 5 ) ) ) ) THEN NULL ELSE 51 END
----
51

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + CASE 45 WHEN CAST ( + SUM ( DISTINCT 81 ) AS INTEGER ) + + 44 * + NULLIF ( + 93, + + COALESCE ( + + COUNT ( * ), + - ( 2 ) + - 35 + + - CAST ( - + 73 AS INTEGER ), + + 61 + - 76 - - 15 + - 18 * - - MAX ( ALL 19 ) + ( - 68 + MIN ( ALL 5 ) ) ) ) THEN NULL ELSE 51 END
----
51

query I rowsort
SELECT + + 96 + + 87 AS col2
----
183

query I rowsort
SELECT + - 22 + 70 AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5723
SELECT + CAST( NULL AS SIGNED ) / + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT + CAST ( NULL AS INTEGER ) / + - 94
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5724
SELECT ALL + 27, 15 * - + 8 * - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * + 95 * + - 96 AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-5724
SELECT ALL + 27, 15 * - + 8 * - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * + 95 * + - 96 AS col0
----
27
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5725
SELECT + COALESCE ( - - 94, 39 * + - 74 * - 4 * 71 + CAST( NULL AS SIGNED ) * + 33, - + SUM( + 7 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5725
SELECT + COALESCE ( - - 94, 39 * + - 74 * - 4 * 71 + CAST ( NULL AS INTEGER ) * + 33, - + SUM ( + 7 ) ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT 95 * MIN( - ( + + 29 ) ) + + 65
----
-2690

skipif mysql # not compatible
query I rowsort label-5726
SELECT 95 * MIN ( - ( + + 29 ) ) + + 65
----
-2690

query I rowsort
SELECT - 24 * + - 95 * + + NULLIF ( + 68, - 67 + + 46 * + 71 ) + + 83
----
155123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5728
SELECT + CAST( NULL AS SIGNED ) / + + 65 AS col1, 23 * - + 99
----
NULL
-2277

skipif mysql # not compatible
query II rowsort label-5728
SELECT + CAST ( NULL AS INTEGER ) / + + 65 AS col1, 23 * - + 99
----
NULL
-2277

onlyif mysql # DIV for integer division: 
query I rowsort label-5729
SELECT - 11 DIV + COALESCE ( 69, 87 )
----
0

skipif mysql # not compatible
query I rowsort label-5729
SELECT - 11 / + COALESCE ( 69, 87 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL - COUNT( * ) * - ( + 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL - COUNT ( * ) * - ( + 56 ) AS col0
----
56

query I rowsort
SELECT DISTINCT 5 * + 55 + - 30
----
245

query I rowsort
SELECT ALL + 17 * ( - 73 ) + + ( 10 ) * + 79 + 81
----
-370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5733
SELECT 96 * - - 7 + + CAST( NULL AS SIGNED ) - + 87 * + 51 * - COUNT( ALL - + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT 96 * - - 7 + + CAST ( NULL AS INTEGER ) - + 87 * + 51 * - COUNT ( ALL - + 75 )
----
NULL

query I rowsort
SELECT COALESCE ( + ( - 24 ), 23 )
----
-24

query I rowsort
SELECT ALL 40 * CASE + 35 WHEN - 12 * - NULLIF ( - + AVG ( - ( 47 ) ), + ( 24 ) ) + + + 75 THEN + + 33 WHEN 44 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 40 + - 34 * + 29 AS col1
----
-946

query I rowsort
SELECT + 16 * 13
----
208

query I rowsort
SELECT ALL COALESCE ( + - 99, + - 34 ) AS col1
----
-99

query I rowsort
SELECT - 98 + - 79 + + 47 AS col0
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5740
SELECT ALL + NULLIF ( - + ( ( 30 ) ), 49 + + 9 * - 81 - - + 17 + - - COUNT( ALL - 38 ) ) * COALESCE ( - SUM( 96 ), + 97 * - 50 DIV 57 + - + 32 + + NULLIF ( + CASE MIN( ALL + 29 ) WHEN + CASE 85 WHEN 27 + - 71 THEN 72 * - 63 ELSE NULL END THEN NULL ELSE COUNT( ( - 31 ) ) END, 9 + 78 ) ) col2
----
2880

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + NULLIF ( - + ( ( 30 ) ), 49 + + 9 * - 81 - - + 17 + - - COUNT ( ALL - 38 ) ) * COALESCE ( - SUM ( 96 ), + 97 * - 50 / 57 + - + 32 + + NULLIF ( + CASE MIN ( ALL + 29 ) WHEN + CASE 85 WHEN 27 + - 71 THEN 72 * - 63 ELSE NULL END THEN NULL ELSE COUNT ( ( - 31 ) ) END, 9 + 78 ) ) col2
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT DISTINCT ( MAX( + + 64 ) )
----
64

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT ( MAX ( + + 64 ) )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5742
SELECT - - 77 + - ( - 3 ) + - ( + - COUNT( * ) ) * + - ( 72 ) DIV - + 13
----
85

skipif mysql # not compatible
query I rowsort label-5742
SELECT - - 77 + - ( - 3 ) + - ( + - COUNT ( * ) ) * + - ( 72 ) / - + 13
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT - + COALESCE ( + 96, + - 89 * - 36 + + 99 * - 63 + 77 * COUNT( * ), 69 ) + - COUNT( * ) - - 75 + + - 55 * + + 61 + 30 * + COUNT( 26 ) - - - 14 + + 91
----
-3270

skipif mysql # not compatible
query I rowsort label-5743
SELECT - + COALESCE ( + 96, + - 89 * - 36 + + 99 * - 63 + 77 * COUNT ( * ), 69 ) + - COUNT ( * ) - - 75 + + - 55 * + + 61 + 30 * + COUNT ( 26 ) - - - 14 + + 91
----
-3270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5744
SELECT - 13 DIV COUNT( * ) * - 55
----
715

skipif mysql # not compatible
query I rowsort label-5744
SELECT - 13 / COUNT ( * ) * - 55
----
715

query II rowsort
SELECT ALL 97, + 91 * - 88 - 45 AS col2
----
97
-8053

query I rowsort
SELECT - 0 * - + 26
----
0

query I rowsort
SELECT + - 86 + - + 29 + + ( 54 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT - + 17 * COUNT( * ) * 17 + + - 82 * 1
----
-371

skipif mysql # not compatible
query I rowsort label-5748
SELECT - + 17 * COUNT ( * ) * 17 + + - 82 * 1
----
-371

query I rowsort
SELECT ALL + 6 * + - 55 AS col2
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT + MAX( ALL - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5750
SELECT + MAX ( ALL - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5751
SELECT ALL - SUM( ALL + 56 ) DIV - 49 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL - SUM ( ALL + 56 ) / - 49 AS col0
----
1

query I rowsort
SELECT ALL - 31 * 5 AS col0
----
-155

query I rowsort
SELECT ALL NULLIF ( - 93, - - 98 + + ( + ( 12 ) ) ) * - ( - 83 ) AS col1
----
-7719

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT DISTINCT + SUM( - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT + SUM ( - 18 )
----
-18

query I rowsort
SELECT - ( - 71 ) * - 20
----
-1420

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT + COALESCE ( + 31, + 12, + 71 + + - 85 + + 90, COUNT( * ) * - - 0 * - COUNT( DISTINCT + 67 ) )
----
31

skipif mysql # not compatible
query I rowsort label-5756
SELECT + COALESCE ( + 31, + 12, + 71 + + - 85 + + 90, COUNT ( * ) * - - 0 * - COUNT ( DISTINCT + 67 ) )
----
31

query I rowsort
SELECT + 71 * 57 * + 31
----
125457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT CAST( + - 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-5758
SELECT CAST ( + - 60 AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT 10 * - + MIN( 18 ) - - + 33 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-5759
SELECT 10 * - + MIN ( 18 ) - - + 33 AS col0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL 46 * + SUM( ALL - + 89 ) * 44 AS col0
----
-180136

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL 46 * + SUM ( ALL - + 89 ) * 44 AS col0
----
-180136

query I rowsort
SELECT ALL 58 + 96 + + - 11 AS col0
----
143

query II rowsort
SELECT ALL 93 + 88 AS col2, + 78 AS col0
----
181
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5763
SELECT 39 DIV + 25 AS col2, 96 * + - 40 * COUNT( * )
----
1
-3840

skipif mysql # not compatible
query II rowsort label-5763
SELECT 39 / + 25 AS col2, 96 * + - 40 * COUNT ( * )
----
1
-3840

query I rowsort
SELECT DISTINCT 28 + + 70
----
98

query I rowsort
SELECT DISTINCT 45 * ( + - 59 )
----
-2655

query I rowsort
SELECT ALL 57 - - 23 - - 13 * ( + 6 )
----
158

query I rowsort
SELECT 22 * + 38 col1
----
836

onlyif mysql # DIV for integer division: 
query II rowsort label-5768
SELECT 28 DIV + 5 col1, 96 AS col0
----
5
96

skipif mysql # not compatible
query II rowsort label-5768
SELECT 28 / + 5 col1, 96 AS col0
----
5
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT DISTINCT 92 - ( CAST( - 84 AS SIGNED ) )
----
176

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT 92 - ( CAST ( - 84 AS INTEGER ) )
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-5770
SELECT DISTINCT - 78 DIV - COALESCE ( - - 62, 72 * + 3 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT - 78 / - COALESCE ( - - 62, 72 * + 3 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT CASE - - COUNT( * ) WHEN + 51 THEN + + SUM( ( 18 ) ) * - + COUNT( ALL + - 3 ) - + 84 WHEN + 26 * 73 THEN + 95 * COUNT( * ) ELSE - 32 * + - 96 + - - 10 * 76 END + + 13
----
3845

skipif mysql # not compatible
query I rowsort label-5771
SELECT CASE - - COUNT ( * ) WHEN + 51 THEN + + SUM ( ( 18 ) ) * - + COUNT ( ALL + - 3 ) - + 84 WHEN + 26 * 73 THEN + 95 * COUNT ( * ) ELSE - 32 * + - 96 + - - 10 * 76 END + + 13
----
3845

query I rowsort
SELECT DISTINCT + ( + ( - + 4 ) ) AS col1
----
-4

query I rowsort
SELECT + 97 + + 89 AS col1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT 78 + SUM( ALL + + 30 ) + 71 * + 42
----
3090

skipif mysql # not compatible
query I rowsort label-5774
SELECT 78 + SUM ( ALL + + 30 ) + 71 * + 42
----
3090

query I rowsort
SELECT ALL - + 68 * - - 15
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT + 37 + 72 + COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-5776
SELECT + 37 + 72 + COUNT ( * )
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT DISTINCT CASE + + 34 WHEN - 21 + - 20 + + 14 + - + 55 * MAX( + 95 ) THEN NULL WHEN + + 74 THEN - ( 37 ) - ( 68 ) + - 73 * - 16 WHEN - 78 + - 33 THEN NULL END AS col1, + 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-5777
SELECT DISTINCT CASE + + 34 WHEN - 21 + - 20 + + 14 + - + 55 * MAX ( + 95 ) THEN NULL WHEN + + 74 THEN - ( 37 ) - ( 68 ) + - 73 * - 16 WHEN - 78 + - 33 THEN NULL END AS col1, + 23
----
NULL
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT 1 + 75 + 85 - + CAST( NULL AS SIGNED ) * 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT 1 + 75 + 85 - + CAST ( NULL AS INTEGER ) * 0 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5779
SELECT COALESCE ( 18, - + COUNT( * ) - + 11, 48 DIV - 88 ) DIV 22 + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5779
SELECT COALESCE ( 18, - + COUNT ( * ) - + 11, 48 / - 88 ) / 22 + 15 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT 47 + + - COUNT( * ) * + 71 * 91 AS col2
----
-6414

skipif mysql # not compatible
query I rowsort label-5780
SELECT 47 + + - COUNT ( * ) * + 71 * 91 AS col2
----
-6414

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT MAX( DISTINCT + 2 ) + - + 17 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5781
SELECT MAX ( DISTINCT + 2 ) + - + 17 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT - CASE - - 47 WHEN - NULLIF ( 39, - COUNT( * ) + + 83 ) THEN + 53 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT - CASE - - 47 WHEN - NULLIF ( 39, - COUNT ( * ) + + 83 ) THEN + 53 WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5783
SELECT COUNT( * ) DIV + 6
----
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT COUNT ( * ) / + 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT 26 + + 83 * - 79 * - - COUNT( * )
----
-6531

skipif mysql # not compatible
query I rowsort label-5784
SELECT 26 + + 83 * - 79 * - - COUNT ( * )
----
-6531

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT 70 - + + MIN( + + 18 )
----
52

skipif mysql # not compatible
query I rowsort label-5785
SELECT 70 - + + MIN ( + + 18 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5786
SELECT ALL ( - CAST( - 49 AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL ( - CAST ( - 49 AS INTEGER ) )
----
49

query I rowsort
SELECT ( 60 ) + + - 45 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5788
SELECT DISTINCT - 50 DIV - + MAX( ALL - - 11 ) AS col2, 42 * + + 92 AS col1
----
4
3864

skipif mysql # not compatible
query II rowsort label-5788
SELECT DISTINCT - 50 / - + MAX ( ALL - - 11 ) AS col2, 42 * + + 92 AS col1
----
4
3864

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT 81 DIV - 41
----
-1

skipif mysql # not compatible
query I rowsort label-5789
SELECT 81 / - 41
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL - 77 + - - COUNT( * ) + 92 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - 77 + - - COUNT ( * ) + 92 AS col1
----
16

query I rowsort
SELECT DISTINCT + 23 + - - 86 AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT DISTINCT - NULLIF ( + 83, - - 92 ) + + + 91 * - + COUNT( * ) + 49 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT - NULLIF ( + 83, - - 92 ) + + + 91 * - + COUNT ( * ) + 49 AS col0
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5793
SELECT DISTINCT - 50 DIV - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT - 50 / - COUNT ( * ) AS col0
----
50

query I rowsort
SELECT 7 + - 78 AS col1
----
-71

query I rowsort
SELECT 14 * 26 + - - 94 AS col2
----
458

query I rowsort
SELECT ALL - 78 + - 41 - 33
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT ALL - ( + COALESCE ( - SUM( DISTINCT - CASE - 39 WHEN - + 39 + - 72 THEN 83 END ), + + 92 ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL - ( + COALESCE ( - SUM ( DISTINCT - CASE - 39 WHEN - + 39 + - 72 THEN 83 END ), + + 92 ) ) AS col1
----
-92

query II rowsort
SELECT DISTINCT - 80, 75 AS col2
----
-80
75

query I rowsort
SELECT DISTINCT - 61 * - - 27 AS col1
----
-1647

query I rowsort
SELECT ALL 39 - - 65 + 15
----
119

query I rowsort
SELECT 32 * ( 37 ) * + 45
----
53280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT DISTINCT - CAST( - + 90 AS SIGNED ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT - CAST ( - + 90 AS INTEGER ) AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5803
SELECT DISTINCT 74 - - COUNT( * ) DIV + COUNT( * ) AS col2, 79 * - 80 AS col1
----
75
-6320

skipif mysql # not compatible
query II rowsort label-5803
SELECT DISTINCT 74 - - COUNT ( * ) / + COUNT ( * ) AS col2, 79 * - 80 AS col1
----
75
-6320

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT - 58 * 30 + SUM( ALL + 38 ) + - - 73 - + 32 - + 75 * + 89 * ( - 56 ) AS col2
----
372139

skipif mysql # not compatible
query I rowsort label-5804
SELECT - 58 * 30 + SUM ( ALL + 38 ) + - - 73 - + 32 - + 75 * + 89 * ( - 56 ) AS col2
----
372139

query II rowsort
SELECT ALL - 83, + 0 * - 67 AS col1
----
-83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - + SUM( + + 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5806
SELECT - + SUM ( + + 5 ) AS col0
----
-5

query I rowsort
SELECT ALL - NULLIF ( 75, - 57 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT - CAST( + + ( - 46 ) AS SIGNED ) + - - 2 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5808
SELECT - CAST ( + + ( - 46 ) AS INTEGER ) + - - 2 AS col2
----
48

query I rowsort
SELECT 92 * 96 AS col2
----
8832

onlyif mysql # aggregate syntax: 
query II rowsort label-5810
SELECT 36 + + NULLIF ( - + 17, - SUM( - 24 ) ) - + ( + - 92 ) * COALESCE ( - - 31, 68 + + + 46 - + 46 + - - 65 * - 4 + + - COUNT( * ) * 1 ) AS col1, 83 * - 40
----
2871
-3320

skipif mysql # not compatible
query II rowsort label-5810
SELECT 36 + + NULLIF ( - + 17, - SUM ( - 24 ) ) - + ( + - 92 ) * COALESCE ( - - 31, 68 + + + 46 - + 46 + - - 65 * - 4 + + - COUNT ( * ) * 1 ) AS col1, 83 * - 40
----
2871
-3320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5811
SELECT ALL MAX( 13 ) * COUNT( * ) DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL MAX ( 13 ) * COUNT ( * ) / 98 AS col0
----
0

query I rowsort
SELECT DISTINCT + 28 * + 63
----
1764

onlyif mysql # aggregate syntax: 
query II rowsort label-5813
SELECT ALL - COUNT( * ) AS col1, + ( - COUNT( * ) ) + + 37 + MAX( 4 ) + 10 * 0
----
-1
40

skipif mysql # not compatible
query II rowsort label-5813
SELECT ALL - COUNT ( * ) AS col1, + ( - COUNT ( * ) ) + + 37 + MAX ( 4 ) + 10 * 0
----
-1
40

query I rowsort
SELECT - 44 + + 10 col2
----
-34

query II rowsort
SELECT DISTINCT + 56 AS col2, + ( - - 64 ) AS col2
----
56
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5816
SELECT ALL + - CAST( NULL AS SIGNED ) / + + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL + - CAST ( NULL AS INTEGER ) / + + 29 AS col2
----
NULL

query II rowsort
SELECT 61 * - 76 * + 89 AS col0, 20 AS col2
----
-412604
20

query I rowsort
SELECT - ( + - 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5819
SELECT - 78 AS col0, SUM( + 15 ) + - COUNT( * ) AS col0
----
-78
14

skipif mysql # not compatible
query II rowsort label-5819
SELECT - 78 AS col0, SUM ( + 15 ) + - COUNT ( * ) AS col0
----
-78
14

query II rowsort
SELECT - - 54 AS col2, 37
----
54
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT 41 * CASE COUNT( * ) WHEN - 74 THEN 41 * - + COUNT( * ) / - 12 END * 81 / + ( ( - 88 ) ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT 41 * CASE COUNT ( * ) WHEN - 74 THEN 41 * - + COUNT ( * ) / - 12 END * 81 / + ( ( - 88 ) ) * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT 84 + MAX( DISTINCT - + 41 )
----
43

skipif mysql # not compatible
query I rowsort label-5822
SELECT 84 + MAX ( DISTINCT - + 41 )
----
43

query II rowsort
SELECT + 78 AS col1, + 84 AS col1
----
78
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5824
SELECT 97 * - - CAST( NULL AS SIGNED ) * - - ( + 1 ) col0, 26 * - COUNT( * )
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-5824
SELECT 97 * - - CAST ( NULL AS INTEGER ) * - - ( + 1 ) col0, 26 * - COUNT ( * )
----
NULL
-26

query I rowsort
SELECT ALL - COALESCE ( - 1, + 20 * + 4 ) * + + 38 * + + 59 * + - 73
----
-163666

onlyif mysql # aggregate syntax: 
query II rowsort label-5826
SELECT ALL SUM( - - 81 ) AS col2, + MIN( DISTINCT - + 91 )
----
81
-91

skipif mysql # not compatible
query II rowsort label-5826
SELECT ALL SUM ( - - 81 ) AS col2, + MIN ( DISTINCT - + 91 )
----
81
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT + COUNT( * ) - - 21 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5827
SELECT + COUNT ( * ) - - 21 AS col1
----
22

query I rowsort
SELECT - 29 * + 7
----
-203

query I rowsort
SELECT NULLIF ( 74, - - 88 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT NULLIF ( - ( 78 ), 70 / - 50 * + 39 - - + 11 + COUNT( * ) ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-5830
SELECT NULLIF ( - ( 78 ), 70 / - 50 * + 39 - - + 11 + COUNT ( * ) ) col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT - 81 DIV + 14
----
-5

skipif mysql # not compatible
query I rowsort label-5831
SELECT - 81 / + 14
----
-5

query I rowsort
SELECT - 93 * - - 8 * 67
----
-49848

query I rowsort
SELECT ALL + 58 * - - 63 - 4 * - 4 col2
----
3670

query II rowsort
SELECT NULLIF ( + CASE WHEN NOT - 71 IS NOT NULL THEN + 21 * + 42 ELSE NULL END, + NULLIF ( - 21, + - 20 ) ) AS col2, 72 + - 32
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT - 45 - NULLIF ( - 8, + - CASE - 5 WHEN + 72 THEN NULL WHEN - 16 THEN + 58 * + ( + 62 ) + + CASE 37 WHEN - - 90 THEN - - 76 END + + 83 + - 78 * ( 53 ) + + NULLIF ( - 32, - ( - + 25 ) * 5 * - 31 * - AVG ( DISTINCT + 96 ) + COUNT( * ) ) * 96 WHEN - 85 THEN ( - 98 ) END ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5835
SELECT - 45 - NULLIF ( - 8, + - CASE - 5 WHEN + 72 THEN NULL WHEN - 16 THEN + 58 * + ( + 62 ) + + CASE 37 WHEN - - 90 THEN - - 76 END + + 83 + - 78 * ( 53 ) + + NULLIF ( - 32, - ( - + 25 ) * 5 * - 31 * - AVG ( DISTINCT + 96 ) + COUNT ( * ) ) * 96 WHEN - 85 THEN ( - 98 ) END ) AS col1
----
-37

query I rowsort
SELECT ALL + 75 * - - 96 * 34 AS col1
----
244800

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT - 63 * - MAX( - 65 ) col2
----
-4095

skipif mysql # not compatible
query I rowsort label-5837
SELECT - 63 * - MAX ( - 65 ) col2
----
-4095

query I rowsort
SELECT + - 65 * + - 93 + - 20 AS col1
----
6025

query I rowsort
SELECT ALL - 59 * + 29
----
-1711

query I rowsort
SELECT - 92 * + + 58
----
-5336

query I rowsort
SELECT ALL + NULLIF ( - + 99, + 30 ) AS col0
----
-99

query I rowsort
SELECT DISTINCT + 66 + + 46
----
112

query I rowsort
SELECT ALL - 7 + 4 * - + 86 AS col0
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT + + 38 * - + ( + COUNT( * ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-5844
SELECT + + 38 * - + ( + COUNT ( * ) ) AS col2
----
-38

query I rowsort
SELECT - 95 + 45 + + 51 AS col2
----
1

query I rowsort
SELECT + ( - + 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT - 8 + - + ( + - 11 ) + + - COUNT( * ) * - - 92 * + 45 AS col2
----
-4137

skipif mysql # not compatible
query I rowsort label-5847
SELECT - 8 + - + ( + - 11 ) + + - COUNT ( * ) * - - 92 * + 45 AS col2
----
-4137

onlyif mysql # DIV for integer division: 
query II rowsort label-5848
SELECT ( 64 ), ( 71 ) DIV - 66 + - 27 AS col0
----
64
-28

skipif mysql # not compatible
query II rowsort label-5848
SELECT ( 64 ), ( 71 ) / - 66 + - 27 AS col0
----
64
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5849
SELECT ALL CASE - + 61 WHEN - 94 THEN NULLIF ( + COALESCE ( - CAST( NULL AS SIGNED ), - + 93 ), + 3 / ( - COUNT( * ) ) + 51 * - 9 + + 46 ) END * - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL CASE - + 61 WHEN - 94 THEN NULLIF ( + COALESCE ( - CAST ( NULL AS INTEGER ), - + 93 ), + 3 / ( - COUNT ( * ) ) + 51 * - 9 + + 46 ) END * - - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT + 22 + SUM( ALL - 56 ) + + - 38 * + 62 AS col1
----
-2390

skipif mysql # not compatible
query I rowsort label-5850
SELECT + 22 + SUM ( ALL - 56 ) + + - 38 * + 62 AS col1
----
-2390

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT + 35 + + - COUNT( * ) - 10 + - 82
----
-58

skipif mysql # not compatible
query I rowsort label-5851
SELECT + 35 + + - COUNT ( * ) - 10 + - 82
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5852
SELECT ALL + COUNT( DISTINCT 71 ) + + ( - 31 ) * - CAST( + SUM( ALL + + 8 ) AS SIGNED ) * - 71 + - 80 * 64 AS col1
----
-22727

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL + COUNT ( DISTINCT 71 ) + + ( - 31 ) * - CAST ( + SUM ( ALL + + 8 ) AS INTEGER ) * - 71 + - 80 * 64 AS col1
----
-22727

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT + + COUNT( - - ( + 29 ) ) + + - 97 + + + 72
----
-24

skipif mysql # not compatible
query I rowsort label-5853
SELECT + + COUNT ( - - ( + 29 ) ) + + - 97 + + + 72
----
-24

query I rowsort
SELECT DISTINCT - ( + ( 80 ) ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT ALL NULLIF ( - COUNT( * ), - - 45 + + 6 + 84 ) * + 82
----
-82

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL NULLIF ( - COUNT ( * ), - - 45 + + 6 + 84 ) * + 82
----
-82

query I rowsort
SELECT + - 11 + + 41 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT DISTINCT MAX( - COALESCE ( - 61, - NULLIF ( + 63, - 77 ) ) ) * + COUNT( DISTINCT 82 ) * 13 * 72 - COUNT( * ) + + 54 AS col0
----
57149

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT MAX ( - COALESCE ( - 61, - NULLIF ( + 63, - 77 ) ) ) * + COUNT ( DISTINCT 82 ) * 13 * 72 - COUNT ( * ) + + 54 AS col0
----
57149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5858
SELECT ALL 41 + ( + 94 ) DIV + 46 + + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL 41 + ( + 94 ) / + 46 + + COUNT ( * ) AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5859
SELECT ALL + 87 DIV - + 22 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + 87 / - + 22 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5860
SELECT + CAST( NULL AS SIGNED ) + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT + CAST ( NULL AS INTEGER ) + 39 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5861
SELECT DISTINCT 91 AS col0, - 71 - 48 * - COUNT( * ) / + - 79 * + CAST( NULL AS SIGNED ) + - 86 * + SUM( DISTINCT - 47 ) AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-5861
SELECT DISTINCT 91 AS col0, - 71 - 48 * - COUNT ( * ) / + - 79 * + CAST ( NULL AS INTEGER ) + - 86 * + SUM ( DISTINCT - 47 ) AS col2
----
91
NULL

query I rowsort
SELECT - 5 + 20 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL SUM( DISTINCT 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL SUM ( DISTINCT 68 ) AS col0
----
68

query I rowsort
SELECT + ( + 81 ) col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT ALL + COALESCE ( - 19, + 24, - MIN( DISTINCT - + 62 ) + - 38 + NULLIF ( 77, + 35 ) + COUNT( * ) + ( + 50 ) / ( - MIN( DISTINCT 21 ) ) ) * + + CASE - - 81 WHEN + 0 THEN - MAX( DISTINCT - 58 ) * - 87 + - - NULLIF ( - 24, 4 + 91 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL + COALESCE ( - 19, + 24, - MIN ( DISTINCT - + 62 ) + - 38 + NULLIF ( 77, + 35 ) + COUNT ( * ) + ( + 50 ) / ( - MIN ( DISTINCT 21 ) ) ) * + + CASE - - 81 WHEN + 0 THEN - MAX ( DISTINCT - 58 ) * - 87 + - - NULLIF ( - 24, 4 + 91 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 69 * + 31 AS col1
----
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5867
SELECT 15 DIV + - 35 + 53 + + 42 * 54 + + SUM( ALL - 5 )
----
2316

skipif mysql # not compatible
query I rowsort label-5867
SELECT 15 / + - 35 + 53 + + 42 * 54 + + SUM ( ALL - 5 )
----
2316

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL + 88 * - + COUNT( * ) * - 40
----
3520

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + 88 * - + COUNT ( * ) * - 40
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT - 22 + 95 * + - MAX( + 90 )
----
-8572

skipif mysql # not compatible
query I rowsort label-5869
SELECT - 22 + 95 * + - MAX ( + 90 )
----
-8572

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL NULLIF ( + 72, + - 28 ) * - + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL NULLIF ( + 72, + - 28 ) * - + COUNT ( * )
----
-72

query I rowsort
SELECT 7 * + 74 * 18 * + - 14 + + + 63 AS col0
----
-130473

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5872
SELECT - 50 DIV + + COUNT( * ) + MIN( ALL + 72 ) + + - 44 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5872
SELECT - 50 / + + COUNT ( * ) + MIN ( ALL + 72 ) + + - 44 AS col1
----
-22

query I rowsort
SELECT - ( + 31 ) * + 21 AS col0
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - - 8 * - 75 + - CASE COUNT( * ) WHEN - 55 * 39 - + 48 THEN + 36 * + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT - - 8 * - 75 + - CASE COUNT ( * ) WHEN - 55 * 39 - + 48 THEN + 36 * + 74 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5875
SELECT ALL + - 62 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + - 62 / 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5876
SELECT + - CASE 78 WHEN + CAST( SUM( - 78 ) AS SIGNED ) THEN - + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT + - CASE 78 WHEN + CAST ( SUM ( - 78 ) AS INTEGER ) THEN - + 30 END
----
NULL

query I rowsort
SELECT DISTINCT - + ( + 57 ) * + 80 + + 26
----
-4534

query I rowsort
SELECT + 41 * - + 18 - + 4 + - - 92 + + 73 + + 4
----
-573

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT ALL + 30 * + 16 + + COUNT( * ) AS col1
----
481

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL + 30 * + 16 + + COUNT ( * ) AS col1
----
481

query I rowsort
SELECT - 40 + 65 * 44 + + + 79 AS col2
----
2899

query I rowsort
SELECT ALL + + 57 * 29 * - NULLIF ( - 19, - 21 ) * + 70 * + + ( ( - 24 ) )
----
-52763760

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT MIN( DISTINCT 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT MIN ( DISTINCT 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5883
SELECT DISTINCT 15 * MIN( 23 ) DIV - 67 DIV - NULLIF ( - + COUNT( * ), + + ( NULLIF ( + 34, - - 24 + - - 84 ) ) * + - 37 - - 26 * + COUNT( * ) ) + - 72 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT 15 * MIN ( 23 ) / - 67 / - NULLIF ( - + COUNT ( * ), + + ( NULLIF ( + 34, - - 24 + - - 84 ) ) * + - 37 - - 26 * + COUNT ( * ) ) + - 72 AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5884
SELECT ALL 13, CAST( NULL AS DECIMAL ) - + + CAST( NULL AS SIGNED ) AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-5884
SELECT ALL 13, CAST ( NULL AS REAL ) - + + CAST ( NULL AS INTEGER ) AS col2
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT - 13 - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT - 13 - COUNT ( * ) AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT ALL CAST( + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL CAST ( + 74 AS INTEGER )
----
74

query II rowsort
SELECT - CASE + 31 WHEN + 15 THEN NULL WHEN + 58 THEN - + 41 * ( - 31 ) * 68 - + 88 * + + 48 + + 47 END AS col2, 1 AS col1
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT ( + - COUNT( * ) ) DIV + 4 * - + 73
----
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT ( + - COUNT ( * ) ) / + 4 * - + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT DISTINCT ( + ( 66 ) ) * - + 39 + - + ( + + COUNT( * ) ) * - COUNT( * ) * - + 3
----
-2577

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT ( + ( 66 ) ) * - + 39 + - + ( + + COUNT ( * ) ) * - COUNT ( * ) * - + 3
----
-2577

query II rowsort
SELECT DISTINCT 45, - ( 15 ) AS col1
----
45
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5891
SELECT ( + COUNT( * ) ) DIV 41 * + + 41 + - ( - 64 ) * - + ( 74 ) AS col0
----
-4736

skipif mysql # not compatible
query I rowsort label-5891
SELECT ( + COUNT ( * ) ) / 41 * + + 41 + - ( - 64 ) * - + ( 74 ) AS col0
----
-4736

query I rowsort
SELECT DISTINCT - ( + 28 ) * + - 54 AS col2
----
1512

query I rowsort
SELECT 41 * 17 * 48
----
33456

onlyif mysql # aggregate syntax: 
query II rowsort label-5894
SELECT ALL 9 AS col0, ( 3 ) * + CASE - + 39 WHEN - COUNT( * ) THEN - 88 WHEN - MIN( DISTINCT + + 48 ) THEN NULL END - + COUNT( * ) - + + 16 AS col2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5894
SELECT ALL 9 AS col0, ( 3 ) * + CASE - + 39 WHEN - COUNT ( * ) THEN - 88 WHEN - MIN ( DISTINCT + + 48 ) THEN NULL END - + COUNT ( * ) - + + 16 AS col2
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT COUNT( * ) + COUNT( * ) + COUNT( * ) + - + 5 * - + 80 AS col0
----
403

skipif mysql # not compatible
query I rowsort label-5895
SELECT COUNT ( * ) + COUNT ( * ) + COUNT ( * ) + - + 5 * - + 80 AS col0
----
403

query II rowsort
SELECT ALL - 96 AS col2, + 24 AS col0
----
-96
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5897
SELECT 21 * 60 + CASE - 38 WHEN + COUNT( * ) THEN + 46 + 46 - - 17 END * + + CASE - - 31 WHEN NULLIF ( + - ( + + ( 10 ) ), - + COUNT( * ) ) THEN - 89 ELSE NULL END AS col2, 44 * - CAST( NULL AS SIGNED ) + + - ( - AVG ( DISTINCT - 83 ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5897
SELECT 21 * 60 + CASE - 38 WHEN + COUNT ( * ) THEN + 46 + 46 - - 17 END * + + CASE - - 31 WHEN NULLIF ( + - ( + + ( 10 ) ), - + COUNT ( * ) ) THEN - 89 ELSE NULL END AS col2, 44 * - CAST ( NULL AS INTEGER ) + + - ( - AVG ( DISTINCT - 83 ) )
----
NULL
NULL

query II rowsort
SELECT 95, 27 col0
----
95
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5899
SELECT - COUNT( * ) DIV + 49 + - 55 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5899
SELECT - COUNT ( * ) / + 49 + - 55 AS col1
----
-55

query II rowsort
SELECT + 76, - COALESCE ( - 84, - 6, + 74 + + 39 + 2 ) - - - 38 col2
----
76
46

query I rowsort
SELECT DISTINCT 67 + - - 44 AS col0
----
111

query I rowsort
SELECT 21 * + 17 col2
----
357

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5903
SELECT 70 + 78 + + - MIN( + 87 ) + - - 52 * - 2, COUNT( * ) * - COUNT( * ) DIV - + 76 AS col2
----
-43
0

skipif mysql # not compatible
query II rowsort label-5903
SELECT 70 + 78 + + - MIN ( + 87 ) + - - 52 * - 2, COUNT ( * ) * - COUNT ( * ) / - + 76 AS col2
----
-43
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5904
SELECT COUNT( * ) DIV - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5904
SELECT COUNT ( * ) / - ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5905
SELECT + COALESCE ( - + ( 11 ), - - 92 + + - 2, + 22 * + - 94 ) * 9 DIV - COUNT( * ) + 8
----
107

skipif mysql # not compatible
query I rowsort label-5905
SELECT + COALESCE ( - + ( 11 ), - - 92 + + - 2, + 22 * + - 94 ) * 9 / - COUNT ( * ) + 8
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT + MIN( ALL 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5906
SELECT + MIN ( ALL 29 ) AS col1
----
29

query II rowsort
SELECT 88, 80 AS col1
----
88
80

query I rowsort
SELECT DISTINCT + 25 + + 40
----
65

query II rowsort
SELECT ALL - 49, 4 * 26 col0
----
-49
104

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT - 9 * - 37 * + COUNT( * ) * MAX( - - 94 ) - + + 35 AS col0, COUNT( * )
----
31267
1

skipif mysql # not compatible
query II rowsort label-5910
SELECT - 9 * - 37 * + COUNT ( * ) * MAX ( - - 94 ) - + + 35 AS col0, COUNT ( * )
----
31267
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT DISTINCT - 33 DIV - 17 + 71 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT - 33 / - 17 + 71 AS col2
----
72

query I rowsort
SELECT ALL 96 - + - 67
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT DISTINCT - CAST( - + ( - AVG ( - 5 ) ) AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT - CAST ( - + ( - AVG ( - 5 ) ) AS INTEGER ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT DISTINCT - 73 DIV - 44 + 36
----
37

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT - 73 / - 44 + 36
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT 6 + + 16 DIV + 45 * + - NULLIF ( - 80, COUNT( * ) + + ( 50 ) ) + 65
----
71

skipif mysql # not compatible
query I rowsort label-5915
SELECT 6 + + 16 / + 45 * + - NULLIF ( - 80, COUNT ( * ) + + ( 50 ) ) + 65
----
71

query I rowsort
SELECT ALL + ( 76 ) * + 9
----
684

query I rowsort
SELECT 13 * + 50 AS col2
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT DISTINCT + 42 * COUNT( * ) * - 19 * COUNT( * )
----
-798

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT + 42 * COUNT ( * ) * - 19 * COUNT ( * )
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT 22 + CASE - 86 WHEN + - ( - COUNT( - 6 ) ) / - 85 THEN + 10 / 64 WHEN + 85 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT 22 + CASE - 86 WHEN + - ( - COUNT ( - 6 ) ) / - 85 THEN + 10 / 64 WHEN + 85 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT 26 * 52 AS col1, 62 * 25 col0
----
1352
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT COUNT( * ) + + 48 + 60 col0
----
109

skipif mysql # not compatible
query I rowsort label-5921
SELECT COUNT ( * ) + + 48 + 60 col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT 41 + + COALESCE ( 37, NULLIF ( - MAX( DISTINCT - 92 ), + 70 * + + 43 ) - + 92, - ( - + COUNT( * ) ) * NULLIF ( ( + 40 ), - 61 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5922
SELECT 41 + + COALESCE ( 37, NULLIF ( - MAX ( DISTINCT - 92 ), + 70 * + + 43 ) - + 92, - ( - + COUNT ( * ) ) * NULLIF ( ( + 40 ), - 61 ) ) AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL + CAST( NULL AS SIGNED ) + + - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT DISTINCT - MAX( DISTINCT + 19 ) + - ( - - 78 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT - MAX ( DISTINCT + 19 ) + - ( - - 78 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5925
SELECT 41 * - + 42, + ( + ( 75 ) ) * - MIN( - 71 ) AS col2
----
-1722
5325

skipif mysql # not compatible
query II rowsort label-5925
SELECT 41 * - + 42, + ( + ( 75 ) ) * - MIN ( - 71 ) AS col2
----
-1722
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT 76 + - - 54 + - - ( + SUM( ALL + + 66 ) ) * 94
----
6334

skipif mysql # not compatible
query I rowsort label-5926
SELECT 76 + - - 54 + - - ( + SUM ( ALL + + 66 ) ) * 94
----
6334

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5927
SELECT ALL - CAST( - 41 AS SIGNED ) DIV + - 72 * + 46 + 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - CAST ( - 41 AS INTEGER ) / + - 72 * + 46 + 13 AS col0
----
13

query I rowsort
SELECT ALL - 72 * 93 * + 65 + - 22 + - 76 + + 58
----
-435280

query I rowsort
SELECT ALL 10 * 48 + - + 76 + - 6 + + - 27 + - 26 + 63 * + 63
----
4314

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5930
SELECT ALL - - 78 * + 58 * CAST( NULL AS SIGNED ) AS col1, 26 AS col1
----
NULL
26

skipif mysql # not compatible
query II rowsort label-5930
SELECT ALL - - 78 * + 58 * CAST ( NULL AS INTEGER ) AS col1, 26 AS col1
----
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT 5 + + 78 + - COUNT( * ) * - + 68
----
151

skipif mysql # not compatible
query I rowsort label-5931
SELECT 5 + + 78 + - COUNT ( * ) * - + 68
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT COALESCE ( - - 87, 18 + + 43 ) * SUM( ALL - 71 ) + COUNT( * ) + - 58 + + 33 * + COUNT( * )
----
-6201

skipif mysql # not compatible
query I rowsort label-5932
SELECT COALESCE ( - - 87, 18 + + 43 ) * SUM ( ALL - 71 ) + COUNT ( * ) + - 58 + + 33 * + COUNT ( * )
----
-6201

query I rowsort
SELECT - 98 * + + 47 + - + 61 col1
----
-4667

query I rowsort
SELECT - 2 * - 58
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5935
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( - ( - SUM( ( + 76 ) ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( - ( - SUM ( ( + 76 ) ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5936
SELECT DISTINCT + ( - - COUNT( * ) ) - COUNT( DISTINCT 56 ) DIV - 47
----
1

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT + ( - - COUNT ( * ) ) - COUNT ( DISTINCT 56 ) / - 47
----
1

query I rowsort
SELECT DISTINCT + + 77 - + + 53 + 51
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5938
SELECT + + 49 * 77 AS col0, CASE - 76 WHEN COUNT( * ) / - 89 + - 4 + 0 * - 93 * 21 * 18 THEN 87 END AS col0
----
3773
NULL

skipif mysql # not compatible
query II rowsort label-5938
SELECT + + 49 * 77 AS col0, CASE - 76 WHEN COUNT ( * ) / - 89 + - 4 + 0 * - 93 * 21 * 18 THEN 87 END AS col0
----
3773
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT + 11 * COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT + 11 * COUNT ( * ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT DISTINCT COUNT( * ) - - + COUNT( * ) * - 95 * 70 AS col0
----
-6649

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT COUNT ( * ) - - + COUNT ( * ) * - 95 * 70 AS col0
----
-6649

query I rowsort
SELECT + 4 * - ( + 28 )
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT - 82 + COUNT( * ) + + 74
----
-7

skipif mysql # not compatible
query I rowsort label-5942
SELECT - 82 + COUNT ( * ) + + 74
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT ALL COUNT( CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5944
SELECT 96 AS col2, - COUNT( * )
----
96
-1

skipif mysql # not compatible
query II rowsort label-5944
SELECT 96 AS col2, - COUNT ( * )
----
96
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5945
SELECT + 29 DIV COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5945
SELECT + 29 / COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5946
SELECT ALL - MAX( - - 5 ) DIV 6 AS col2, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-5946
SELECT ALL - MAX ( - - 5 ) / 6 AS col2, + COUNT ( * )
----
0
1

query I rowsort
SELECT - 47 * 75 AS col0
----
-3525

onlyif mysql # aggregate syntax: 
query II rowsort label-5948
SELECT ALL 42 AS col1, COUNT( * )
----
42
1

skipif mysql # not compatible
query II rowsort label-5948
SELECT ALL 42 AS col1, COUNT ( * )
----
42
1

query II rowsort
SELECT ALL 93 AS col0, + 5 * + 7 AS col0
----
93
35

onlyif mysql # DIV for integer division: 
query II rowsort label-5950
SELECT + 34 - - + 18 DIV - 85, + 41 AS col2
----
34
41

skipif mysql # not compatible
query II rowsort label-5950
SELECT + 34 - - + 18 / - 85, + 41 AS col2
----
34
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT + 11 * - NULLIF ( SUM( ALL + 80 ), - 49 ) col2
----
-880

skipif mysql # not compatible
query I rowsort label-5951
SELECT + 11 * - NULLIF ( SUM ( ALL + 80 ), - 49 ) col2
----
-880

query II rowsort
SELECT - 53 AS col0, 84 * + 79 col2
----
-53
6636

query I rowsort
SELECT - 75 * ( - 50 ) * ( - - 89 ) AS col0
----
333750

onlyif mysql # aggregate syntax: 
query II rowsort label-5954
SELECT - 61 AS col0, + SUM( ALL - 84 ) * 36 * + 16
----
-61
-48384

skipif mysql # not compatible
query II rowsort label-5954
SELECT - 61 AS col0, + SUM ( ALL - 84 ) * 36 * + 16
----
-61
-48384

query II rowsort
SELECT - 63, 98 AS col0
----
-63
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5956
SELECT DISTINCT + 12 + + SUM( + 53 ) - 33 AS col2, - 6 * - CAST( NULL AS SIGNED ) AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-5956
SELECT DISTINCT + 12 + + SUM ( + 53 ) - 33 AS col2, - 6 * - CAST ( NULL AS INTEGER ) AS col0
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT DISTINCT + 39 + + 88 - + 66 + - 49 * COUNT( * ) * + COUNT( * ) * - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT + 39 + + 88 - + 66 + - 49 * COUNT ( * ) * + COUNT ( * ) * - COUNT ( * )
----
110

query I rowsort
SELECT ALL + 94 + + - 36 * - NULLIF ( - - ( + 91 ), + 57 * + + AVG ( + 93 ) ) AS col0
----
3370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT DISTINCT - COUNT( * ) + - 94 - - + CAST( + 87 AS SIGNED ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT - COUNT ( * ) + - 94 - - + CAST ( + 87 AS INTEGER ) AS col0
----
-8

query I rowsort
SELECT - 9 * + 14 * 62 * - 74 AS col1
----
578088

query I rowsort
SELECT - 21 * - 69
----
1449

onlyif mysql # aggregate syntax: 
query II rowsort label-5962
SELECT + 1, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-5962
SELECT + 1, COUNT ( * ) AS col2
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5963
SELECT + 67 * - 24 * - 62 * + - COUNT( * ) + + 27 + 91 * - + 87 + ( + 6 ) - - 48 * CAST( + 20 AS SIGNED )
----
-106620

skipif mysql # not compatible
query I rowsort label-5963
SELECT + 67 * - 24 * - 62 * + - COUNT ( * ) + + 27 + 91 * - + 87 + ( + 6 ) - - 48 * CAST ( + 20 AS INTEGER )
----
-106620

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT ALL - - 50 DIV 22
----
2

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL - - 50 / 22
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT + - 30 AS col2, - COUNT( * ) col1
----
-30
-1

skipif mysql # not compatible
query II rowsort label-5965
SELECT + - 30 AS col2, - COUNT ( * ) col1
----
-30
-1

query I rowsort
SELECT - 79 * + ( - 28 ) + + 37 * 96 + 84
----
5848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5967
SELECT ALL + + CASE + COUNT( * ) WHEN ( + - 8 ) + + 59 THEN NULL WHEN - 52 * - AVG ( ALL - 40 ) * + 0 + - 97 - + ( + 94 ) + + CAST( - 13 AS SIGNED ) THEN NULL WHEN - 17 + - - 78 - + CAST( - - 92 AS SIGNED ) + 74 * - 63 * + - COUNT( * ) + - 78 + NULLIF ( + ( - 57 ), - MIN( DISTINCT + 97 ) ) / 72 THEN - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL + + CASE + COUNT ( * ) WHEN ( + - 8 ) + + 59 THEN NULL WHEN - 52 * - AVG ( ALL - 40 ) * + 0 + - 97 - + ( + 94 ) + + CAST ( - 13 AS INTEGER ) THEN NULL WHEN - 17 + - - 78 - + CAST ( - - 92 AS INTEGER ) + 74 * - 63 * + - COUNT ( * ) + - 78 + NULLIF ( + ( - 57 ), - MIN ( DISTINCT + 97 ) ) / 72 THEN - 68 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5968
SELECT - - SUM( + 13 ) DIV + 64, 82 col1
----
0
82

skipif mysql # not compatible
query II rowsort label-5968
SELECT - - SUM ( + 13 ) / + 64, 82 col1
----
0
82

query I rowsort
SELECT + - 78 * + + 25 * - 62 + - 85
----
120815

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + + MAX( - 46 ) * 48 + 99 + NULLIF ( 89, - + 84 / AVG ( - 55 ) ) * ( + 43 ) - ( - - 29 ) * - - 73
----
-399

skipif mysql # not compatible
query I rowsort label-5970
SELECT + + MAX ( - 46 ) * 48 + 99 + NULLIF ( 89, - + 84 / AVG ( - 55 ) ) * ( + 43 ) - ( - - 29 ) * - - 73
----
-399

query II rowsort
SELECT - 15, 12 * + 8 col2
----
-15
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5972
SELECT - 0 * + CASE 0 WHEN - COUNT( * ) THEN NULL ELSE 14 * - 54 END + - 18 + - COUNT( * ) AS col1, + 24 AS col2
----
-19
24

skipif mysql # not compatible
query II rowsort label-5972
SELECT - 0 * + CASE 0 WHEN - COUNT ( * ) THEN NULL ELSE 14 * - 54 END + - 18 + - COUNT ( * ) AS col1, + 24 AS col2
----
-19
24

query I rowsort
SELECT ( + ( + ( + + ( - + 48 ) ) ) ) AS col2
----
-48

query I rowsort
SELECT + 2 * 60 + + 91
----
211

query II rowsort
SELECT 51 * - + 94 - + ( - 5 ), - 21 AS col2
----
-4789
-21

query I rowsort
SELECT + 6 + 92 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT + 35 + - 45 + - CASE + - 15 WHEN - - 59 THEN - 87 WHEN + CAST( + - 9 AS SIGNED ) * - + 7 THEN - 31 END + - - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT + 35 + - 45 + - CASE + - 15 WHEN - - 59 THEN - 87 WHEN + CAST ( + - 9 AS INTEGER ) * - + 7 THEN - 31 END + - - 36 AS col1
----
NULL

query II rowsort
SELECT + COALESCE ( + 76, - 7 ) - - 62 * - 65 AS col0, 22 * - + 39
----
-3954
-858

query I rowsort
SELECT + 87 + - + 21 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT - COUNT( + - 92 ) - 75 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5980
SELECT - COUNT ( + - 92 ) - 75 AS col2
----
-76

query I rowsort
SELECT ALL 99 * - - 73
----
7227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5982
SELECT + 63 + CAST( COUNT( * ) AS SIGNED ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5982
SELECT + 63 + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL + 26 + - COUNT( * ) * 74 * 68 + 33 - - 94 + - + ( + 73 ) + 51 * + 53
----
-2249

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL + 26 + - COUNT ( * ) * 74 * 68 + 33 - - 94 + - + ( + 73 ) + 51 * + 53
----
-2249

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT + COUNT( ALL - NULLIF ( + ( - + 41 ), - - 56 ) ) + + 37 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5984
SELECT + COUNT ( ALL - NULLIF ( + ( - + 41 ), - - 56 ) ) + + 37 AS col2
----
38

query I rowsort
SELECT + 33 + + + 16 + - 53 AS col1
----
-4

query I rowsort
SELECT - COALESCE ( 98, + 82 + - 83 ) + 68 * 32 col0
----
2078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5987
SELECT ALL NULLIF ( - + 99, - 40 * ( - - 46 ) - + 43 * - NULLIF ( + + 91, - 10 + - COUNT( * ) + - - 80 - + 55 * + CAST( NULL AS SIGNED ) * + - 4 * - 11 ) * COUNT( * ) + - 27 - + + 73 * - 3 - - COUNT( * ) * - 15 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL NULLIF ( - + 99, - 40 * ( - - 46 ) - + 43 * - NULLIF ( + + 91, - 10 + - COUNT ( * ) + - - 80 - + 55 * + CAST ( NULL AS INTEGER ) * + - 4 * - 11 ) * COUNT ( * ) + - 27 - + + 73 * - 3 - - COUNT ( * ) * - 15 ) AS col0
----
-99

query I rowsort
SELECT + 97 * 31 col2
----
3007

query I rowsort
SELECT - 4 + 85 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL - + ( 99 ) AS col0
----
-99

query I rowsort
SELECT DISTINCT + 46 - - 27
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - 93 * - + MAX( - + 84 ) AS col0
----
-7812

skipif mysql # not compatible
query I rowsort label-5993
SELECT - 93 * - + MAX ( - + 84 ) AS col0
----
-7812

query I rowsort
SELECT 14 * + 92
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT + + MAX( DISTINCT + + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-5995
SELECT + + MAX ( DISTINCT + + 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT CAST( 71 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5996
SELECT CAST ( 71 AS INTEGER ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT CASE WHEN + ( + 93 ) IS NULL THEN MIN( ALL - + 0 ) ELSE NULL END / + 62 - + - 76 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT CASE WHEN + ( + 93 ) IS NULL THEN MIN ( ALL - + 0 ) ELSE NULL END / + 62 - + - 76 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT DISTINCT + CASE + COUNT( * ) WHEN + + 17 + - + 50 THEN - 20 + + 42 - 24 ELSE NULL END / - ( 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + + 17 + - + 50 THEN - 20 + + 42 - 24 ELSE NULL END / - ( 64 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5999
SELECT + 35 * - 66 * - MAX( - + 5 ) * CAST( NULL AS SIGNED ) + + + 4 + - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT + 35 * - 66 * - MAX ( - + 5 ) * CAST ( NULL AS INTEGER ) + + + 4 + - - 71
----
NULL

query I rowsort
SELECT ALL + 56 + + - 78 AS col0
----
-22

query II rowsort
SELECT DISTINCT + ( + 71 ) + 60 AS col2, 49 * + 0
----
131
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ( - 45 ) + SUM( ALL + 18 ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-6002
SELECT ( - 45 ) + SUM ( ALL + 18 ) col1
----
-27

query I rowsort
SELECT DISTINCT 17 + - 11 AS col1
----
6

query I rowsort
SELECT DISTINCT - 39 + 12
----
-27

query I rowsort
SELECT DISTINCT 10 + + 65
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 38 AS col2
----
NULL

query I rowsort
SELECT ALL 45 * + 69 * - 4 AS col2
----
-12420

query I rowsort
SELECT ALL 16 - + + 26 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT 47 - - 87 - - + COALESCE ( + 44, - 1, + - 50 ) + - 20 - 55 + COUNT( * ) * + 99
----
202

skipif mysql # not compatible
query I rowsort label-6009
SELECT 47 - - 87 - - + COALESCE ( + 44, - 1, + - 50 ) + - 20 - 55 + COUNT ( * ) * + 99
----
202

query I rowsort
SELECT ALL 9 * 32 AS col2
----
288

query II rowsort
SELECT - 25 AS col1, 47 + - 74 - 47
----
-25
-74

query I rowsort
SELECT ALL 11 * + + NULLIF ( + - 84, 20 ) AS col2
----
-924

query I rowsort
SELECT + 55 - - + 76
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT DISTINCT + MAX( DISTINCT 97 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT + MAX ( DISTINCT 97 ) col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6015
SELECT ALL + - 83 / - CAST( NULL AS SIGNED ) * + - 64 / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL + - 83 / - CAST ( NULL AS INTEGER ) * + - 64 / + 99
----
NULL

query I rowsort
SELECT 90 * - 63 + - 30 AS col1
----
-5700

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT DISTINCT NULLIF ( COUNT( * ), + 98 ), ( - + 96 ) col2
----
1
-96

skipif mysql # not compatible
query II rowsort label-6017
SELECT DISTINCT NULLIF ( COUNT ( * ), + 98 ), ( - + 96 ) col2
----
1
-96

query I rowsort
SELECT 52 * + + ( - 42 ) AS col0
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT - 8 * COUNT( * ) * + - 72 + + 42
----
618

skipif mysql # not compatible
query I rowsort label-6019
SELECT - 8 * COUNT ( * ) * + - 72 + + 42
----
618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6020
SELECT - - 22 DIV - 39 * - + ( + - 92 ) * 74 - + - 3 - - MIN( + 97 ) * - + 36 + + + ( - 83 )
----
-3572

skipif mysql # not compatible
query I rowsort label-6020
SELECT - - 22 / - 39 * - + ( + - 92 ) * 74 - + - 3 - - MIN ( + 97 ) * - + 36 + + + ( - 83 )
----
-3572

onlyif mysql # aggregate syntax: 
query II rowsort label-6021
SELECT COUNT( * ) - 7 + + - 33 * + 63 * 68, + 68 AS col0
----
-141378
68

skipif mysql # not compatible
query II rowsort label-6021
SELECT COUNT ( * ) - 7 + + - 33 * + 63 * 68, + 68 AS col0
----
-141378
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6022
SELECT ALL + + 28 + + COUNT( * ) DIV + 37 + - 23 + - 86, + 56 AS col0
----
-81
56

skipif mysql # not compatible
query II rowsort label-6022
SELECT ALL + + 28 + + COUNT ( * ) / + 37 + - 23 + - 86, + 56 AS col0
----
-81
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT DISTINCT - MIN( + 52 ) + + COUNT( * ) * + COUNT( * ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - MIN ( + 52 ) + + COUNT ( * ) * + COUNT ( * ) AS col1
----
-51

query I rowsort
SELECT DISTINCT 63 + + 83
----
146

query I rowsort
SELECT ALL - - 99 + + 88 AS col0
----
187

query I rowsort
SELECT DISTINCT - ( ( 17 ) ) AS col0
----
-17

query I rowsort
SELECT 60 * 6
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT ALL - 35 DIV 69 * + 40 * 73 * - 14
----
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL - 35 / 69 * + 40 * 73 * - 14
----
0

query I rowsort
SELECT ALL - 26 - + 96 * - 16
----
1510

query I rowsort
SELECT 47 + - 51 + 17 * - 79 AS col2
----
-1347

query I rowsort
SELECT 86 * - + 74
----
-6364

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT DISTINCT NULLIF ( 47, + + MAX( ALL 1 ) )
----
47

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT NULLIF ( 47, + + MAX ( ALL 1 ) )
----
47

query I rowsort
SELECT 75 + + + 82 AS col0
----
157

query I rowsort
SELECT + ( + 32 ) + 25
----
57

query I rowsort
SELECT + 52 + + 18 * + 76 col0
----
1420

query I rowsort
SELECT - 96 * + - 66 * + 47 AS col2
----
297792

onlyif mysql # aggregate syntax: 
query II rowsort label-6037
SELECT ALL 88, 56 * + 53 + 78 + 78 - + 4 + COUNT( * ) AS col2
----
88
3121

skipif mysql # not compatible
query II rowsort label-6037
SELECT ALL 88, 56 * + 53 + 78 + 78 - + 4 + COUNT ( * ) AS col2
----
88
3121

query I rowsort
SELECT + 79 + + 5
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6039
SELECT - - COUNT( * ), + 11 DIV - 19 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-6039
SELECT - - COUNT ( * ), + 11 / - 19 AS col0
----
1
0

query I rowsort
SELECT ALL + 27 + 73 col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-6041
SELECT + - 16 + + COUNT( * ), ( 1 ) col0
----
-15
1

skipif mysql # not compatible
query II rowsort label-6041
SELECT + - 16 + + COUNT ( * ), ( 1 ) col0
----
-15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT COUNT( + 12 ) + + + 34 col1
----
35

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT COUNT ( + 12 ) + + + 34 col1
----
35

query I rowsort
SELECT ALL ( - 99 ) + + 90 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6044
SELECT COUNT( * ) AS col0, - 7
----
1
-7

skipif mysql # not compatible
query II rowsort label-6044
SELECT COUNT ( * ) AS col0, - 7
----
1
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT ALL - 66 + - 94 DIV - 10 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL - 66 + - 94 / - 10 AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6046
SELECT - AVG ( DISTINCT - 5 ) * 8 + 74 + - CASE + CAST( + 49 AS SIGNED ) WHEN - 15 THEN - 31 WHEN 75 THEN - - 9 WHEN - CAST( NULL AS SIGNED ) + - MIN( - 43 ) THEN + 48 * - AVG ( 63 ) * - SUM( + - 77 ) / - 12 + + ( 80 ) * - 60 - - 91 / - 58 ELSE - 66 END * CAST( 58 AS SIGNED ) * + 56 * + CASE 82 WHEN 76 / - ( - 46 * 47 ) + 41 * - 51 THEN 56 * + 83 + 96 / - 70 WHEN 42 / + 79 THEN + 7 END + ( 83 ) * - 94 - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT - AVG ( DISTINCT - 5 ) * 8 + 74 + - CASE + CAST ( + 49 AS INTEGER ) WHEN - 15 THEN - 31 WHEN 75 THEN - - 9 WHEN - CAST ( NULL AS INTEGER ) + - MIN ( - 43 ) THEN + 48 * - AVG ( 63 ) * - SUM ( + - 77 ) / - 12 + + ( 80 ) * - 60 - - 91 / - 58 ELSE - 66 END * CAST ( 58 AS INTEGER ) * + 56 * + CASE 82 WHEN 76 / - ( - 46 * 47 ) + 41 * - 51 THEN 56 * + 83 + 96 / - 70 WHEN 42 / + 79 THEN + 7 END + ( 83 ) * - 94 - 81 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6047
SELECT DISTINCT + 53 * + 45 + + 94 + + - CAST( NULL AS SIGNED ) * 56 * - 57 + NULLIF ( 54, - 20 ) / 16 + - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT + 53 * + 45 + + 94 + + - CAST ( NULL AS INTEGER ) * 56 * - 57 + NULLIF ( 54, - 20 ) / 16 + - 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT ALL + MIN( DISTINCT + 56 ) AS col1, - 78 - 85
----
56
-163

skipif mysql # not compatible
query II rowsort label-6048
SELECT ALL + MIN ( DISTINCT + 56 ) AS col1, - 78 - 85
----
56
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT + 96 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-6049
SELECT + 96 / 56
----
1

query I rowsort
SELECT + + 95 * + - 13 col2
----
-1235

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT - CASE + 81 WHEN - + 78 + ( - 37 ) THEN NULL WHEN - 97 * - AVG ( ALL - 86 ) - 93 / ( - - 93 ) THEN + + 83 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT - CASE + 81 WHEN - + 78 + ( - 37 ) THEN NULL WHEN - 97 * - AVG ( ALL - 86 ) - 93 / ( - - 93 ) THEN + + 83 + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6052
SELECT + COUNT( - 99 ) * - COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT + COUNT ( - 99 ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL + COUNT( DISTINCT - ( - 2 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL + COUNT ( DISTINCT - ( - 2 ) ) AS col0
----
1

query I rowsort
SELECT - 53 * 71
----
-3763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT ALL CAST( NULL AS SIGNED ) * - 46 + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL CAST ( NULL AS INTEGER ) * - 46 + - 78
----
NULL

query I rowsort
SELECT ALL + 39 * 71
----
2769

query I rowsort
SELECT DISTINCT + ( + 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL MAX( 85 ) * + 6 - 99 AS col2
----
411

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL MAX ( 85 ) * + 6 - 99 AS col2
----
411

query I rowsort
SELECT ALL 99 * - 25 * - + 71 AS col1
----
175725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT CASE + - 73 WHEN + 96 * - 47 * + 45 * - COUNT( * ) + - 35 - - + NULLIF ( COUNT( * ), + COUNT( * ) * + CAST( NULL AS SIGNED ) / - COUNT( * ) ) THEN + ( + 81 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT CASE + - 73 WHEN + 96 * - 47 * + 45 * - COUNT ( * ) + - 35 - - + NULLIF ( COUNT ( * ), + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - COUNT ( * ) ) THEN + ( + 81 ) END AS col2
----
NULL

query I rowsort
SELECT + 22 * + + 15 * - + 84 * 38 AS col1
----
-1053360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6062
SELECT MIN( DISTINCT + NULLIF ( 46, - + 81 - + 11 * CAST( NULL AS SIGNED ) ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6062
SELECT MIN ( DISTINCT + NULLIF ( 46, - + 81 - + 11 * CAST ( NULL AS INTEGER ) ) ) AS col1
----
46

query I rowsort
SELECT - COALESCE ( + + 74, + 69 ) + - 85
----
-159

query II rowsort
SELECT - 63 * 22 AS col1, 72 * - - 92 AS col0
----
-1386
6624

query I rowsort
SELECT DISTINCT - 77 * 36 * - 82 AS col1
----
227304

query I rowsort
SELECT - 27 * - 98
----
2646

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT DISTINCT MAX( DISTINCT - + 50 ) AS col0, 80 * CASE - 64 WHEN - + ( + - 14 ) THEN NULL WHEN + 52 + + 21 + - 26 + - ( 90 ) THEN COUNT( * ) END AS col0
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-6067
SELECT DISTINCT MAX ( DISTINCT - + 50 ) AS col0, 80 * CASE - 64 WHEN - + ( + - 14 ) THEN NULL WHEN + 52 + + 21 + - 26 + - ( 90 ) THEN COUNT ( * ) END AS col0
----
-50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT DISTINCT - SUM( ALL 59 ) * + - 27 * + + ( 33 ) + - COUNT( - + COALESCE ( 6, + 3 ) ) * + 17 * + 13 + - COUNT( * ) AS col1
----
52347

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT - SUM ( ALL 59 ) * + - 27 * + + ( 33 ) + - COUNT ( - + COALESCE ( 6, + 3 ) ) * + 17 * + 13 + - COUNT ( * ) AS col1
----
52347

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT DISTINCT - 22 * - ( + 39 ) + + 41 * + ( + 38 ) - 73 + + - MAX( - 43 ) + - 60 - 88 * - - 11 * 9 * + + COUNT( * ) + - - 64 + - 61 AS col2
----
-6383

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT - 22 * - ( + 39 ) + + 41 * + ( + 38 ) - 73 + + - MAX ( - 43 ) + - 60 - 88 * - - 11 * 9 * + + COUNT ( * ) + - - 64 + - 61 AS col2
----
-6383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT - - CAST( NULL AS SIGNED ) / - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT - - CAST ( NULL AS INTEGER ) / - - 24
----
NULL

query II rowsort
SELECT - - 11 * 77, + 63 AS col0
----
847
63

query I rowsort
SELECT - - 25 - - + 35
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6073
SELECT ALL - MIN( DISTINCT - - 7 ) + - 90 + COUNT( * ) + - CAST( - + 48 AS SIGNED ) * - + CASE + 81 WHEN + - 68 - + 9 THEN NULL WHEN + 94 * - + 99 + + COUNT( * ) * + 24 THEN NULL ELSE 4 * + + CASE - 27 WHEN - 1 THEN 92 + - 46 * - + 18 ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - MIN ( DISTINCT - - 7 ) + - 90 + COUNT ( * ) + - CAST ( - + 48 AS INTEGER ) * - + CASE + 81 WHEN + - 68 - + 9 THEN NULL WHEN + 94 * - + 99 + + COUNT ( * ) * + 24 THEN NULL ELSE 4 * + + CASE - 27 WHEN - 1 THEN 92 + - 46 * - + 18 ELSE NULL END END AS col2
----
NULL

query II rowsort
SELECT - 17 * - - 58 AS col0, ( + 60 ) AS col0
----
-986
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6075
SELECT ALL 69 + - - 58 + CASE - 75 WHEN - 28 + - - 79 + + 4 * + 83 THEN NULL WHEN - 16 * - 46 * 10 - 0 + - 94 * COALESCE ( - 7, - CAST( NULL AS SIGNED ) * - + 30 * + - 10, - CASE + - COUNT( - - 63 ) WHEN + NULLIF ( 78, - 76 + - 38 ) + 1 THEN + 61 - + 14 - 38 * + + COALESCE ( 43, + ( 7 ) + COUNT( * ) ) ELSE COUNT( + 99 ) END * + 92 ) THEN + 3 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL 69 + - - 58 + CASE - 75 WHEN - 28 + - - 79 + + 4 * + 83 THEN NULL WHEN - 16 * - 46 * 10 - 0 + - 94 * COALESCE ( - 7, - CAST ( NULL AS INTEGER ) * - + 30 * + - 10, - CASE + - COUNT ( - - 63 ) WHEN + NULLIF ( 78, - 76 + - 38 ) + 1 THEN + 61 - + 14 - 38 * + + COALESCE ( 43, + ( 7 ) + COUNT ( * ) ) ELSE COUNT ( + 99 ) END * + 92 ) THEN + 3 * COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + + 57 + - 4
----
53

query I rowsort
SELECT DISTINCT - + 95 + - ( + 50 )
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL 97 + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL 97 + - COUNT ( * )
----
96

query I rowsort
SELECT + - ( - + 76 ) - - 26 * 89
----
2390

query I rowsort
SELECT ALL - - 45 + - 16 AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT DISTINCT - 52 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT - 52 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( - + 80 )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT ALL 31 DIV + 91 * - - 7 - + - 11
----
11

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL 31 / + 91 * - - 7 - + - 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT + 41 * - - 25 * + 2 * - COUNT( * ) * MAX( - 35 )
----
71750

skipif mysql # not compatible
query I rowsort label-6084
SELECT + 41 * - - 25 * + 2 * - COUNT ( * ) * MAX ( - 35 )
----
71750

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT DISTINCT + 41 DIV - + 13 - + 43 * - 20 * 21 col2
----
18057

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT + 41 / - + 13 - + 43 * - 20 * 21 col2
----
18057

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6086
SELECT CAST( + 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-6086
SELECT CAST ( + 76 AS INTEGER )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT DISTINCT + 2, + MIN( ALL 27 ) + 31 * - 53 * + 40 + + COUNT( * ) AS col2
----
2
-65692

skipif mysql # not compatible
query II rowsort label-6087
SELECT DISTINCT + 2, + MIN ( ALL 27 ) + 31 * - 53 * + 40 + + COUNT ( * ) AS col2
----
2
-65692

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT + COUNT( * ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-6088
SELECT + COUNT ( * ) * 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT + 98 + - MIN( 44 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6089
SELECT + 98 + - MIN ( 44 ) AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6090
SELECT + MAX( - - 96 ) * - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT + MAX ( - - 96 ) * - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 86 * + + 97
----
8342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6092
SELECT DISTINCT 98 DIV + COALESCE ( COUNT( DISTINCT + 77 ), 82, 53 + CAST( NULL AS SIGNED ) - - - MIN( ALL - 99 ) - + + 53 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT 98 / + COALESCE ( COUNT ( DISTINCT + 77 ), 82, 53 + CAST ( NULL AS INTEGER ) - - - MIN ( ALL - 99 ) - + + 53 ) AS col2
----
98

query II rowsort
SELECT ALL - 11 AS col0, + 30 AS col1
----
-11
30

query I rowsort
SELECT 82 - + + 88 + - 56 * + + 5
----
-286

query II rowsort
SELECT DISTINCT - 24 AS col2, 85 + 9 + + 23
----
-24
117

onlyif mysql # aggregate syntax: 
query II rowsort label-6096
SELECT ALL - 27 col2, + 36 + - 99 + - COUNT( * ) AS col2
----
-27
-64

skipif mysql # not compatible
query II rowsort label-6096
SELECT ALL - 27 col2, + 36 + - 99 + - COUNT ( * ) AS col2
----
-27
-64

query I rowsort
SELECT 1 + - + ( - 85 )
----
86

query II rowsort
SELECT - 76 AS col2, 65 AS col1
----
-76
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6099
SELECT CAST( + - 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-6099
SELECT CAST ( + - 92 AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-6100
SELECT + COUNT( * ), 81 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-6100
SELECT + COUNT ( * ), 81 AS col0
----
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT MIN( ALL + 34 ) * - - 3 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-6101
SELECT MIN ( ALL + 34 ) * - - 3 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL - - 97 + + COUNT( ALL 67 )
----
98

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL - - 97 + + COUNT ( ALL 67 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6103
SELECT 45 + - COUNT( * ) * + 75 AS col0, + 72 * + 21 col0
----
-30
1512

skipif mysql # not compatible
query II rowsort label-6103
SELECT 45 + - COUNT ( * ) * + 75 AS col0, + 72 * + 21 col0
----
-30
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6104
SELECT 88 - - SUM( ALL + CAST( NULL AS SIGNED ) ) + + AVG ( - 4 ) + - + 41 * + + 85 * + MAX( + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT 88 - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) + + AVG ( - 4 ) + - + 41 * + + 85 * + MAX ( + 15 )
----
NULL

query I rowsort
SELECT - 1 + + - 19
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6106
SELECT CASE - CAST( 2 AS DECIMAL ) WHEN + COUNT( * ) * CASE + - COALESCE ( 70, 25 ) WHEN + 26 THEN + - AVG ( + CAST( NULL AS SIGNED ) ) WHEN 55 THEN NULL END THEN + COUNT( * ) * 6 + - 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT CASE - CAST ( 2 AS REAL ) WHEN + COUNT ( * ) * CASE + - COALESCE ( 70, 25 ) WHEN + 26 THEN + - AVG ( + CAST ( NULL AS INTEGER ) ) WHEN 55 THEN NULL END THEN + COUNT ( * ) * 6 + - 44 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 5 WHEN - + NULLIF ( - ( - 48 ), + 63 ) THEN NULL ELSE - 3 END
----
3

query I rowsort
SELECT - - ( - 96 ) AS col0
----
-96

query II rowsort
SELECT - 12 AS col0, 67 * - 15
----
-12
-1005

query I rowsort
SELECT ALL - 25 + - + 80 + 57 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL + - COUNT( * ) * - 26 + - + 72 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + - COUNT ( * ) * - 26 + - + 72 AS col1
----
-46

query I rowsort
SELECT + ( 9 ) + + ( - 27 ) AS col1
----
-18

query I rowsort
SELECT ALL + 33 + 16 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT 47 * - COUNT( * ) + + NULLIF ( - - 44, - + 26 * + COALESCE ( CAST( + - ( - - 34 ) AS SIGNED ), 56 + + MAX( - 52 ) - 90 - 74 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6114
SELECT 47 * - COUNT ( * ) + + NULLIF ( - - 44, - + 26 * + COALESCE ( CAST ( + - ( - - 34 ) AS INTEGER ), 56 + + MAX ( - 52 ) - 90 - 74 ) ) AS col0
----
-3

query I rowsort
SELECT DISTINCT + 17 * - 94 AS col2
----
-1598

query II rowsort
SELECT - 79, 45 AS col1
----
-79
45

query I rowsort
SELECT ALL - + 92 * + 54 * - ( - 55 ) * - 23 AS col0
----
6284520

query I rowsort
SELECT 83 * + 4
----
332

query I rowsort
SELECT ALL - 81 * ( + - 44 ) * - + 20
----
-71280

query I rowsort
SELECT DISTINCT + ( + 6 ) - 22 + 99
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT 67 DIV NULLIF ( ( + 6 ), + - 43 + + - 97 ) + 83
----
94

skipif mysql # not compatible
query I rowsort label-6121
SELECT 67 / NULLIF ( ( + 6 ), + - 43 + + - 97 ) + 83
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6122
SELECT DISTINCT 46 * - + 71 AS col0, 30 * - - 60 DIV 78 DIV - 84 * - COUNT( * ) * 81 DIV + - 41 + - + 80 col1
----
-3266
-80

skipif mysql # not compatible
query II rowsort label-6122
SELECT DISTINCT 46 * - + 71 AS col0, 30 * - - 60 / 78 / - 84 * - COUNT ( * ) * 81 / + - 41 + - + 80 col1
----
-3266
-80

query I rowsort
SELECT 50 * + - 42 AS col0
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT 86 * - - COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-6124
SELECT 86 * - - COUNT ( * ) col0
----
86

query I rowsort
SELECT ALL - 3 * + 56 * + + 21
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT 67 * - - 38 + - + COUNT( * ) AS col0
----
2545

skipif mysql # not compatible
query I rowsort label-6126
SELECT 67 * - - 38 + - + COUNT ( * ) AS col0
----
2545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6127
SELECT ALL 45 * + + CASE - - 88 WHEN 34 + - 28 + + CAST( NULL AS DECIMAL ) * ( + NULLIF ( - + CAST( - 39 AS SIGNED ), + - 5 ) ) THEN - 83 + + ( CASE + + 41 WHEN - ( 32 ) THEN + ( - - 35 ) * - 26 WHEN + 53 THEN NULL END ) + - 78 - - 68 WHEN - 8 THEN NULL WHEN + COUNT( * ) * 48 * 44 * + 12 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL 45 * + + CASE - - 88 WHEN 34 + - 28 + + CAST ( NULL AS REAL ) * ( + NULLIF ( - + CAST ( - 39 AS INTEGER ), + - 5 ) ) THEN - 83 + + ( CASE + + 41 WHEN - ( 32 ) THEN + ( - - 35 ) * - 26 WHEN + 53 THEN NULL END ) + - 78 - - 68 WHEN - 8 THEN NULL WHEN + COUNT ( * ) * 48 * 44 * + 12 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6128
SELECT 76 * - 46 AS col1, + 7 + - CASE - - 35 WHEN - + ( - 45 ) THEN NULL WHEN - MAX( DISTINCT + 76 ) THEN + + MIN( + 39 ) / - 61 * + + NULLIF ( CASE 44 WHEN + 29 THEN NULL WHEN 27 THEN NULL ELSE 99 END, - 92 + + 88 ) * 48 END AS col2
----
-3496
NULL

skipif mysql # not compatible
query II rowsort label-6128
SELECT 76 * - 46 AS col1, + 7 + - CASE - - 35 WHEN - + ( - 45 ) THEN NULL WHEN - MAX ( DISTINCT + 76 ) THEN + + MIN ( + 39 ) / - 61 * + + NULLIF ( CASE 44 WHEN + 29 THEN NULL WHEN 27 THEN NULL ELSE 99 END, - 92 + + 88 ) * 48 END AS col2
----
-3496
NULL

query I rowsort
SELECT ALL + 4 * + - 91
----
-364

query I rowsort
SELECT ALL + 77 * + - 96 AS col2
----
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) * + - NULLIF ( COUNT( * ), - 61 ) / - CASE + + 65 WHEN + ( - - 6 ) THEN + 34 WHEN - - 17 THEN + 1 + - + 35 + + + 99 END + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) * + - NULLIF ( COUNT ( * ), - 61 ) / - CASE + + 65 WHEN + ( - - 6 ) THEN + 34 WHEN - - 17 THEN + 1 + - + 35 + + + 99 END + - 69
----
NULL

query I rowsort
SELECT ALL 3 + - + 57 + + 2
----
-52

query I rowsort
SELECT 13 * + 56 AS col1
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT DISTINCT - 73 DIV 51 - + 79 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT - 73 / 51 - + 79 AS col0
----
-80

query I rowsort
SELECT COALESCE ( - 75, + 70 ) + - 8 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL + 98 + + COALESCE ( - ( 15 ), + 9 + + 9, - 52 * - SUM( - 6 ) ) + - - 24 * - 66 AS col2
----
-1501

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL + 98 + + COALESCE ( - ( 15 ), + 9 + + 9, - 52 * - SUM ( - 6 ) ) + - - 24 * - 66 AS col2
----
-1501

query I rowsort
SELECT ALL - 40 * + + 61
----
-2440

onlyif mysql # aggregate syntax: 
query II rowsort label-6138
SELECT ALL - COUNT( * ) + + 16 AS col0, 53 AS col1
----
15
53

skipif mysql # not compatible
query II rowsort label-6138
SELECT ALL - COUNT ( * ) + + 16 AS col0, 53 AS col1
----
15
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT SUM( + 52 ) + + 60 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT SUM ( + 52 ) + + 60 AS col0
----
112

query I rowsort
SELECT DISTINCT ( - - 71 ) AS col2
----
71

query I rowsort
SELECT + 57 * + - 37
----
-2109

onlyif mysql # aggregate syntax: 
query II rowsort label-6142
SELECT COUNT( * ) - + 88, - 61 + + 23 AS col0
----
-87
-38

skipif mysql # not compatible
query II rowsort label-6142
SELECT COUNT ( * ) - + 88, - 61 + + 23 AS col0
----
-87
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6143
SELECT ALL + CAST( - ( + CASE + - 47 WHEN - CAST( + 59 AS DECIMAL ) * + + 36 + + + CASE 54 WHEN + 94 THEN - 56 END * - + AVG ( 34 ) + ( + 22 ) THEN NULL WHEN + 67 / + + 71 THEN - 70 / - CASE - - 7 WHEN + 77 * + 14 / + COUNT( * ) + + 79 THEN + 0 + + + 56 * 67 * + SUM( ALL ( ( - 60 ) ) ) / - 99 ELSE NULL END END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL + CAST ( - ( + CASE + - 47 WHEN - CAST ( + 59 AS REAL ) * + + 36 + + + CASE 54 WHEN + 94 THEN - 56 END * - + AVG ( 34 ) + ( + 22 ) THEN NULL WHEN + 67 / + + 71 THEN - 70 / - CASE - - 7 WHEN + 77 * + 14 / + COUNT ( * ) + + 79 THEN + 0 + + + 56 * 67 * + SUM ( ALL ( ( - 60 ) ) ) / - 99 ELSE NULL END END ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6144
SELECT + 15 + + + COUNT( * ) + 86 + 15 col1, - ( + 80 )
----
117
-80

skipif mysql # not compatible
query II rowsort label-6144
SELECT + 15 + + + COUNT ( * ) + 86 + 15 col1, - ( + 80 )
----
117
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT 98 DIV - + 45 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6145
SELECT 98 / - + 45 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6146
SELECT + NULLIF ( + 79, - 8 * - CAST( - + COUNT( * ) AS SIGNED ) ) * - 47
----
-3713

skipif mysql # not compatible
query I rowsort label-6146
SELECT + NULLIF ( + 79, - 8 * - CAST ( - + COUNT ( * ) AS INTEGER ) ) * - 47
----
-3713

query I rowsort
SELECT ALL ( 78 ) AS col2
----
78

query I rowsort
SELECT ALL + 72 * + 88
----
6336

query I rowsort
SELECT 77 - - 60 * 24
----
1517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT ALL CAST( NULL AS SIGNED ) / - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL CAST ( NULL AS INTEGER ) / - 81 AS col1
----
NULL

query I rowsort
SELECT 67 * + 87 AS col0
----
5829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6152
SELECT 70 - - 29 + - - COUNT( * ) / + ( - 9 ) * - - 57 + - + MAX( - 52 ) / NULLIF ( 3, - 4 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT 70 - - 29 + - - COUNT ( * ) / + ( - 9 ) * - - 57 + - + MAX ( - 52 ) / NULLIF ( 3, - 4 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 89 * - - 84 AS col0
----
7476

query I rowsort
SELECT 79 * - - ( + - 94 ) * 86 * + - 53 + 44
----
33847752

query I rowsort
SELECT ALL + 80 * 53
----
4240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6156
SELECT CAST( MIN( 92 ) AS SIGNED ) + - 76
----
16

skipif mysql # not compatible
query I rowsort label-6156
SELECT CAST ( MIN ( 92 ) AS INTEGER ) + - 76
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT 86 DIV - 89 col1
----
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT 86 / - 89 col1
----
0

query I rowsort
SELECT 57 * - + ( 32 ) AS col2
----
-1824

query II rowsort
SELECT NULLIF ( + 33, 36 ) AS col0, ( + 31 ) AS col2
----
33
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6160
SELECT ALL - COUNT( * ) AS col1, + ( - 5 ) * 71 col0
----
-1
-355

skipif mysql # not compatible
query II rowsort label-6160
SELECT ALL - COUNT ( * ) AS col1, + ( - 5 ) * 71 col0
----
-1
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT NULLIF ( - 55, SUM( DISTINCT NULLIF ( + 60, 66 * 0 ) ) * + + ( - 38 ) * + 66 )
----
-55

skipif mysql # not compatible
query I rowsort label-6161
SELECT NULLIF ( - 55, SUM ( DISTINCT NULLIF ( + 60, 66 * 0 ) ) * + + ( - 38 ) * + 66 )
----
-55

query I rowsort
SELECT NULLIF ( - - 17, - 70 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6163
SELECT ALL COUNT( * ) * ( - 1 ) + MAX( DISTINCT - 22 ) + - - 91 + - - COUNT( * ) * - + 44 * 64 * + 87 AS col1, 29 * + COUNT( * )
----
-244924
29

skipif mysql # not compatible
query II rowsort label-6163
SELECT ALL COUNT ( * ) * ( - 1 ) + MAX ( DISTINCT - 22 ) + - - 91 + - - COUNT ( * ) * - + 44 * 64 * + 87 AS col1, 29 * + COUNT ( * )
----
-244924
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6164
SELECT ALL 72 * + 45 + + - COUNT( * ) * + + 13 * 12 * + 50 - 73 DIV - 42 + - - SUM( 60 )
----
-4499

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL 72 * + 45 + + - COUNT ( * ) * + + 13 * 12 * + 50 - 73 / - 42 + - - SUM ( 60 )
----
-4499

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT ALL + 5 * + COUNT( * ) + - 66
----
-61

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + 5 * + COUNT ( * ) + - 66
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT - 4 + CAST( + - 8 AS SIGNED ) + - + 51 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6166
SELECT - 4 + CAST ( + - 8 AS INTEGER ) + - + 51 AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT - 85 + - - 89 * - CASE - 71 WHEN - + CAST( 24 AS SIGNED ) * - CAST( NULL AS SIGNED ) THEN NULL ELSE COALESCE ( 32, 92 ) END * + 53 + - 65 AS col2
----
-151094

skipif mysql # not compatible
query I rowsort label-6167
SELECT - 85 + - - 89 * - CASE - 71 WHEN - + CAST ( 24 AS INTEGER ) * - CAST ( NULL AS INTEGER ) THEN NULL ELSE COALESCE ( 32, 92 ) END * + 53 + - 65 AS col2
----
-151094

query I rowsort
SELECT - ( + + 16 ) * - 22 * - 29
----
-10208

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL + COUNT( * ) * - 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL + COUNT ( * ) * - 49 AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6170
SELECT + SUM( DISTINCT + CAST( - 30 AS SIGNED ) )
----
-30

skipif mysql # not compatible
query I rowsort label-6170
SELECT + SUM ( DISTINCT + CAST ( - 30 AS INTEGER ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT - - 65 * + + 0 + + - COUNT( ALL + COALESCE ( + 99, - 91 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6171
SELECT - - 65 * + + 0 + + - COUNT ( ALL + COALESCE ( + 99, - 91 ) )
----
-1

query I rowsort
SELECT ALL - + 79 * + 8 + 89 AS col0
----
-543

query I rowsort
SELECT + 19 + + 87 * - 33
----
-2852

query I rowsort
SELECT - 63 * + 37
----
-2331

query I rowsort
SELECT + - 31 - - - 86 AS col1
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT ALL + 67 DIV + 54 + 87 * + 63 AS col2
----
5482

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL + 67 / + 54 + 87 * + 63 AS col2
----
5482

query I rowsort
SELECT + + 62 + - + 64 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6178
SELECT + 8 DIV COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-6178
SELECT + 8 / COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT DISTINCT 47 * + NULLIF ( + CASE + 92 WHEN - 37 * - + 96 - + - NULLIF ( - - ( 49 ), - - 66 * 24 ) THEN NULL ELSE - + 26 END, 5 * + + 63 / 29 + + - COUNT( 26 ) ) AS col0
----
-1222

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT 47 * + NULLIF ( + CASE + 92 WHEN - 37 * - + 96 - + - NULLIF ( - - ( 49 ), - - 66 * 24 ) THEN NULL ELSE - + 26 END, 5 * + + 63 / 29 + + - COUNT ( 26 ) ) AS col0
----
-1222

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT + 35 + - + COALESCE ( + 69, - + 6 ) - 25 + - CASE - 42 WHEN - COUNT( * ) THEN NULL WHEN + MAX( - 25 ) * + - 43 THEN 52 * 68 * 99 END * 39 * + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT + 35 + - + COALESCE ( + 69, - + 6 ) - 25 + - CASE - 42 WHEN - COUNT ( * ) THEN NULL WHEN + MAX ( - 25 ) * + - 43 THEN 52 * 68 * 99 END * 39 * + - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT CASE 96 WHEN + + MIN( DISTINCT ( + 73 ) ) + + - COUNT( * ) + + ( - 98 ) THEN COUNT( ALL + + 54 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT CASE 96 WHEN + + MIN ( DISTINCT ( + 73 ) ) + + - COUNT ( * ) + + ( - 98 ) THEN COUNT ( ALL + + 54 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6182
SELECT + COUNT( * ) * + - 47, + NULLIF ( - ( - 99 ), - + 42 * - COALESCE ( 99, + 6 ) ) AS col0, + ( + - 10 ) * - 88 AS col0
----
-47
99
880

skipif mysql # not compatible
query III rowsort label-6182
SELECT + COUNT ( * ) * + - 47, + NULLIF ( - ( - 99 ), - + 42 * - COALESCE ( 99, + 6 ) ) AS col0, + ( + - 10 ) * - 88 AS col0
----
-47
99
880

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT - COALESCE ( - COALESCE ( 61, + - ( + - 37 ) * - 66 - - + ( + - COUNT( * ) ) ), 26, + 79 ) col0
----
61

skipif mysql # not compatible
query I rowsort label-6183
SELECT - COALESCE ( - COALESCE ( 61, + - ( + - 37 ) * - 66 - - + ( + - COUNT ( * ) ) ), 26, + 79 ) col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-6184
SELECT 99, MAX( - 76 ) + - - 81 AS col1
----
99
5

skipif mysql # not compatible
query II rowsort label-6184
SELECT 99, MAX ( - 76 ) + - - 81 AS col1
----
99
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT - CAST( + 79 AS SIGNED ) + ( 55 ) * 85
----
4596

skipif mysql # not compatible
query I rowsort label-6185
SELECT - CAST ( + 79 AS INTEGER ) + ( 55 ) * 85
----
4596

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ALL MAX( DISTINCT + - ( + 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL MAX ( DISTINCT + - ( + 33 ) )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT - CAST( + SUM( DISTINCT 4 ) AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6187
SELECT - CAST ( + SUM ( DISTINCT 4 ) AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT ALL - ( 5 ) + + 71 AS col1
----
66

query II rowsort
SELECT + 50 AS col0, - 63
----
50
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6190
SELECT DISTINCT COUNT( * ) DIV 88 + + 70 * ( + - 90 ) AS col1
----
-6300

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT COUNT ( * ) / 88 + + 70 * ( + - 90 ) AS col1
----
-6300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6191
SELECT CAST( + 55 AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6191
SELECT CAST ( + 55 AS INTEGER ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6192
SELECT - 98 + - 63 * CAST( NULL AS SIGNED ) * 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6192
SELECT - 98 + - 63 * CAST ( NULL AS INTEGER ) * 81 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6193
SELECT + CAST( - + 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-6193
SELECT + CAST ( - + 72 AS INTEGER ) AS col2
----
-72

query II rowsort
SELECT - 92 + 14, - 1 * - 18 * - - 11 col0
----
-78
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6195
SELECT DISTINCT + 51 DIV 21 * - 28 * + CAST( 44 AS SIGNED ) + - + MAX( DISTINCT - 25 )
----
-2439

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT + 51 / 21 * - 28 * + CAST ( 44 AS INTEGER ) + - + MAX ( DISTINCT - 25 )
----
-2439

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6196
SELECT ALL + 65 AS col2, CAST( NULL AS SIGNED ) * + + 38 * + + ( + 52 )
----
65
NULL

skipif mysql # not compatible
query II rowsort label-6196
SELECT ALL + 65 AS col2, CAST ( NULL AS INTEGER ) * + + 38 * + + ( + 52 )
----
65
NULL

query I rowsort
SELECT 42 * - 99 + - 21 col2
----
-4179

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT ALL 92 DIV 95 + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL 92 / 95 + - 63
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6199
SELECT ALL + ( - 93 ) * + 27 * + CAST( ( + COUNT( * ) ) AS SIGNED ) + + + CAST( + NULLIF ( - - 29, + COUNT( * ) + + + AVG ( ALL - 28 ) * 40 ) AS SIGNED ) DIV + 23
----
-2510

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + ( - 93 ) * + 27 * + CAST ( ( + COUNT ( * ) ) AS INTEGER ) + + + CAST ( + NULLIF ( - - 29, + COUNT ( * ) + + + AVG ( ALL - 28 ) * 40 ) AS INTEGER ) / + 23
----
-2510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6200
SELECT - + CASE - - 13 WHEN + 1 THEN NULL WHEN + - 93 THEN NULL ELSE - 94 / CASE + 30 WHEN - ( - 79 ) THEN NULL ELSE - + 9 * - CASE 5 WHEN 65 + + 23 + CAST( NULL AS SIGNED ) * - + 51 + + + SUM( + 92 ) THEN - + 77 ELSE NULL END + - 98 + - - COUNT( * ) + MAX( + + 48 ) END END + 81, 42 * - 12 + - ( ( - 75 ) ) - - - 28 * + 17 / COUNT( * ) / - CASE - 40 WHEN - ( SUM( + 80 ) ) THEN COUNT( * ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6200
SELECT - + CASE - - 13 WHEN + 1 THEN NULL WHEN + - 93 THEN NULL ELSE - 94 / CASE + 30 WHEN - ( - 79 ) THEN NULL ELSE - + 9 * - CASE 5 WHEN 65 + + 23 + CAST ( NULL AS INTEGER ) * - + 51 + + + SUM ( + 92 ) THEN - + 77 ELSE NULL END + - 98 + - - COUNT ( * ) + MAX ( + + 48 ) END END + 81, 42 * - 12 + - ( ( - 75 ) ) - - - 28 * + 17 / COUNT ( * ) / - CASE - 40 WHEN - ( SUM ( + 80 ) ) THEN COUNT ( * ) END
----
NULL
NULL

query I rowsort
SELECT - - 1 + 54
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL + - MAX( - - ( + 63 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL + - MAX ( - - ( + 63 ) )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT DISTINCT + - CASE 12 WHEN + 8 * 62 * CAST( - - COALESCE ( 32, - 97 + - 86 + COUNT( * ) ) AS SIGNED ) THEN 60 WHEN CAST( NULL AS SIGNED ) * + 2 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT + - CASE 12 WHEN + 8 * 62 * CAST ( - - COALESCE ( 32, - 97 + - 86 + COUNT ( * ) ) AS INTEGER ) THEN 60 WHEN CAST ( NULL AS INTEGER ) * + 2 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL - - COUNT( * ) * 69 - + 69
----
0

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - - COUNT ( * ) * 69 - + 69
----
0

query I rowsort
SELECT - + 15 * + - 7
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT MAX( DISTINCT + - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6206
SELECT MAX ( DISTINCT + - 0 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6207
SELECT - + 77 * 2 DIV 22
----
-7

skipif mysql # not compatible
query I rowsort label-6207
SELECT - + 77 * 2 / 22
----
-7

query I rowsort
SELECT DISTINCT + ( 67 )
----
67

query II rowsort
SELECT - 20 AS col0, 2
----
-20
2

query II rowsort
SELECT ALL ( + 42 ) AS col0, - 51 AS col0
----
42
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6211
SELECT + NULLIF ( 39, COUNT( * ) ) DIV - 59 + - 34 * 56 AS col0
----
-1904

skipif mysql # not compatible
query I rowsort label-6211
SELECT + NULLIF ( 39, COUNT ( * ) ) / - 59 + - 34 * 56 AS col0
----
-1904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT - + CAST( - + 43 AS SIGNED ) - 77 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6212
SELECT - + CAST ( - + 43 AS INTEGER ) - 77 AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6213
SELECT + 47 DIV + + COUNT( * ), ( + ( + - 69 ) ) * + 67 AS col1
----
47
-4623

skipif mysql # not compatible
query II rowsort label-6213
SELECT + 47 / + + COUNT ( * ), ( + ( + - 69 ) ) * + 67 AS col1
----
47
-4623

onlyif mysql # DIV for integer division: 
query I rowsort label-6214
SELECT - 58 + - 35 + + - ( 16 ) DIV 1 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-6214
SELECT - 58 + - 35 + + - ( 16 ) / 1 AS col0
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT ALL 70 DIV - 16 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL 70 / - 16 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6216
SELECT 66 DIV - - 83 AS col0, - 93 + + CASE + + MAX( DISTINCT - + 21 ) WHEN + 73 THEN NULL WHEN - 92 THEN - COALESCE ( + 59, + 64 ) + + + COUNT( DISTINCT 57 ) ELSE NULL END - 11 * - NULLIF ( - - 73, - SUM( ALL 84 ) * + 86 * + ( + + 42 ) ) * 72
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6216
SELECT 66 / - - 83 AS col0, - 93 + + CASE + + MAX ( DISTINCT - + 21 ) WHEN + 73 THEN NULL WHEN - 92 THEN - COALESCE ( + 59, + 64 ) + + + COUNT ( DISTINCT 57 ) ELSE NULL END - 11 * - NULLIF ( - - 73, - SUM ( ALL 84 ) * + 86 * + ( + + 42 ) ) * 72
----
0
NULL

query II rowsort
SELECT ALL 22 + - 51 AS col0, 19 + - - 27
----
-29
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6218
SELECT ALL - 45 DIV + 99 AS col0, - MIN( + 59 )
----
0
-59

skipif mysql # not compatible
query II rowsort label-6218
SELECT ALL - 45 / + 99 AS col0, - MIN ( + 59 )
----
0
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL 93 + - COALESCE ( - 77, + MAX( - 19 ) ) AS col0
----
170

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL 93 + - COALESCE ( - 77, + MAX ( - 19 ) ) AS col0
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6220
SELECT ( NULLIF ( - 28, + 49 - 45 + + 98 * + 68 * CAST( NULL AS SIGNED ) * - 29 + - 80 - - 45 ) ) - - COUNT( - - ( - 42 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-6220
SELECT ( NULLIF ( - 28, + 49 - 45 + + 98 * + 68 * CAST ( NULL AS INTEGER ) * - 29 + - 80 - - 45 ) ) - - COUNT ( - - ( - 42 ) )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-6221
SELECT DISTINCT COUNT( * ) + + + 50 AS col1, + 96 col1
----
51
96

skipif mysql # not compatible
query II rowsort label-6221
SELECT DISTINCT COUNT ( * ) + + + 50 AS col1, + 96 col1
----
51
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6222
SELECT ALL + 55 - 85 + NULLIF ( + 49, COUNT( * ) ) * + 19 * 95 DIV 1 AS col0
----
88415

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL + 55 - 85 + NULLIF ( + 49, COUNT ( * ) ) * + 19 * 95 / 1 AS col0
----
88415

query I rowsort
SELECT - ( 82 ) * + 75 + - - 20 - + - 93 - - COALESCE ( - 58, 8 ) * + - 32 + + 75
----
-4106

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT ALL 57 DIV - 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL 57 / - 53 AS col1
----
-1

query I rowsort
SELECT + - NULLIF ( + + 48, 84 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6226
SELECT + 45 DIV MIN( + 13 ) - + + 89 + 86 * - 94 * - - 89 AS col0
----
-719562

skipif mysql # not compatible
query I rowsort label-6226
SELECT + 45 / MIN ( + 13 ) - + + 89 + 86 * - 94 * - - 89 AS col0
----
-719562

query I rowsort
SELECT 27 * + 62
----
1674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6228
SELECT 14 + 7 * - ( + CAST( + 57 AS SIGNED ) ) AS col0, + COUNT( * ) + + - 8 col2
----
-385
-7

skipif mysql # not compatible
query II rowsort label-6228
SELECT 14 + 7 * - ( + CAST ( + 57 AS INTEGER ) ) AS col0, + COUNT ( * ) + + - 8 col2
----
-385
-7

query I rowsort
SELECT DISTINCT 42 * - + 72 * - 55
----
166320

query I rowsort
SELECT DISTINCT - 98 * + 7 + - 89 AS col0
----
-775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6231
SELECT ALL - CASE 80 WHEN - - 31 THEN + - 18 * + 95 WHEN + 36 + - CASE - COUNT( * ) WHEN 91 - - MAX( DISTINCT - - 84 ) - - 25 + - 78 * + - 83 THEN CASE + SUM( DISTINCT - 79 ) WHEN 69 THEN + 14 WHEN CAST( 0 AS SIGNED ) THEN 32 END / + CASE - 51 WHEN + ( + - 79 ) THEN - - 67 / + ( 42 ) END - + NULLIF ( - 55, + 77 ) + - - ( - 23 ) + + 75 * 58 * - 34 * - 77 * COUNT( * ) END THEN COUNT( DISTINCT - 40 ) - 58 * MIN( + 60 + - 4 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL - CASE 80 WHEN - - 31 THEN + - 18 * + 95 WHEN + 36 + - CASE - COUNT ( * ) WHEN 91 - - MAX ( DISTINCT - - 84 ) - - 25 + - 78 * + - 83 THEN CASE + SUM ( DISTINCT - 79 ) WHEN 69 THEN + 14 WHEN CAST ( 0 AS INTEGER ) THEN 32 END / + CASE - 51 WHEN + ( + - 79 ) THEN - - 67 / + ( 42 ) END - + NULLIF ( - 55, + 77 ) + - - ( - 23 ) + + 75 * 58 * - 34 * - 77 * COUNT ( * ) END THEN COUNT ( DISTINCT - 40 ) - 58 * MIN ( + 60 + - 4 ) END
----
NULL

query I rowsort
SELECT DISTINCT - + ( - 37 ) AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6233
SELECT DISTINCT + - 45 DIV + ( MIN( DISTINCT + 66 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT + - 45 / + ( MIN ( DISTINCT + 66 ) ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6234
SELECT ALL + + SUM( ALL - 70 ) DIV + + 88 * - 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + + SUM ( ALL - 70 ) / + + 88 * - 93 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT 16 + + - COALESCE ( - + 5, 88 + + CASE - COUNT( * ) WHEN + COUNT( * ) + - + 21 THEN NULL ELSE + 50 END * + COALESCE ( 28, COUNT( * ) ) ) * + 33 AS col0
----
181

skipif mysql # not compatible
query I rowsort label-6235
SELECT 16 + + - COALESCE ( - + 5, 88 + + CASE - COUNT ( * ) WHEN + COUNT ( * ) + - + 21 THEN NULL ELSE + 50 END * + COALESCE ( 28, COUNT ( * ) ) ) * + 33 AS col0
----
181

query I rowsort
SELECT 75 + - + 75 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6237
SELECT + ( + - COUNT( * ) ) * - - MAX( - 78 ) + - COALESCE ( + 43, 53 DIV 55 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6237
SELECT + ( + - COUNT ( * ) ) * - - MAX ( - 78 ) + - COALESCE ( + 43, 53 / 55 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL + + 3 + COUNT( * ) * + 3 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL + + 3 + COUNT ( * ) * + 3 AS col0
----
6

query I rowsort
SELECT + + 34 * - 53 - + 8 AS col2
----
-1810

query I rowsort
SELECT ALL - 58 + + 77
----
19

query I rowsort
SELECT 69 + ( - 33 ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT ALL - 85 + + CAST( NULL AS SIGNED ) + + + 4 - 31 + + 73 * ( - - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - 85 + + CAST ( NULL AS INTEGER ) + + + 4 - 31 + + 73 * ( - - 37 )
----
NULL

query I rowsort
SELECT ALL - 76 * + - 2 AS col2
----
152

query I rowsort
SELECT ALL + 86 + + 34 AS col1
----
120

query I rowsort
SELECT 85 + - 59 col1
----
26

query I rowsort
SELECT ALL - 59 * + 84
----
-4956

query I rowsort
SELECT DISTINCT - 41 + - 98 + - 69
----
-208

query I rowsort
SELECT 85 * + 20
----
1700

query II rowsort
SELECT 34, 19 AS col2
----
34
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6250
SELECT 30 + CAST( + 5 AS SIGNED ) * + + COUNT( * ) - ( - - SUM( DISTINCT 65 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6250
SELECT 30 + CAST ( + 5 AS INTEGER ) * + + COUNT ( * ) - ( - - SUM ( DISTINCT 65 ) ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6251
SELECT DISTINCT COUNT( * ) DIV - 17 * - 74 AS col2, - 93 AS col0
----
0
-93

skipif mysql # not compatible
query II rowsort label-6251
SELECT DISTINCT COUNT ( * ) / - 17 * - 74 AS col2, - 93 AS col0
----
0
-93

query I rowsort
SELECT DISTINCT 74 - - 64 + - 65 * - 1 * + 75
----
5013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6253
SELECT ALL COALESCE ( 28, + 50 + + ( - - 85 ) ) * - + 8 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL COALESCE ( 28, + 50 + + ( - - 85 ) ) * - + 8 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6254
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * - 61 / - 84 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 61 / - 84 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6255
SELECT ALL + 14 DIV + CAST( + 88 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + 14 / + CAST ( + 88 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT 26 + 32
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6257
SELECT - 21 DIV - - 4 + - 49, COUNT( * ) + - ( - - 22 ) AS col0
----
-54
-21

skipif mysql # not compatible
query II rowsort label-6257
SELECT - 21 / - - 4 + - 49, COUNT ( * ) + - ( - - 22 ) AS col0
----
-54
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-6258
SELECT ALL + 3 * - 73 - - 58, MAX( DISTINCT ( + 66 ) ) AS col1
----
-161
66

skipif mysql # not compatible
query II rowsort label-6258
SELECT ALL + 3 * - 73 - - 58, MAX ( DISTINCT ( + 66 ) ) AS col1
----
-161
66

query II rowsort
SELECT - 16 * 86 * 31 AS col1, + 57
----
-42656
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6260
SELECT NULLIF ( - 87, - ( 0 ) * + ( + + COUNT( * ) ) * + + 54 + 12 + + CASE - ( NULLIF ( + + 66, + 0 * - 77 + + 95 + + NULLIF ( + 88, + NULLIF ( - 33, - COUNT( * ) DIV + 89 + + + MIN( 47 ) ) ) ) ) WHEN + 59 * 59 + - ( 24 ) THEN NULL ELSE 13 END ) AS col1, 41 + + NULLIF ( - - COUNT( * ), + 49 + - 51 + + 20 + + - 9 * 32 + 81 + + 62 * - ( ( - 49 ) + 85 ) ) + 0 DIV 32
----
-87
42

skipif mysql # not compatible
query II rowsort label-6260
SELECT NULLIF ( - 87, - ( 0 ) * + ( + + COUNT ( * ) ) * + + 54 + 12 + + CASE - ( NULLIF ( + + 66, + 0 * - 77 + + 95 + + NULLIF ( + 88, + NULLIF ( - 33, - COUNT ( * ) / + 89 + + + MIN ( 47 ) ) ) ) ) WHEN + 59 * 59 + - ( 24 ) THEN NULL ELSE 13 END ) AS col1, 41 + + NULLIF ( - - COUNT ( * ), + 49 + - 51 + + 20 + + - 9 * 32 + 81 + + 62 * - ( ( - 49 ) + 85 ) ) + 0 / 32
----
-87
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6261
SELECT CAST( - ( - + 17 ) AS SIGNED ), - 9 AS col2
----
17
-9

skipif mysql # not compatible
query II rowsort label-6261
SELECT CAST ( - ( - + 17 ) AS INTEGER ), - 9 AS col2
----
17
-9

query I rowsort
SELECT DISTINCT + 88 * + 31
----
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL - - MAX( - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL - - MAX ( - 45 )
----
-45

query I rowsort
SELECT + - ( + 7 ) AS col0
----
-7

query I rowsort
SELECT 41 * - 76 * - NULLIF ( 46, 1 + - 86 ) col1
----
143336

query I rowsort
SELECT + 52 * - 25 * + 48
----
-62400

query I rowsort
SELECT ALL - - ( - - 49 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6268
SELECT + 49, - 97 * - 35 + 86 AS col1, + + CASE - 3 WHEN + 1 THEN NULL WHEN - COUNT( * ) * - - 90 THEN + 35 ELSE COALESCE ( + COUNT( * ), 61 + - 13 + + 0 * - - 94, + ( + 80 ) + - ( + 90 ) ) END * - CAST( NULL AS SIGNED ) + 8 AS col2
----
49
3481
NULL

skipif mysql # not compatible
query III rowsort label-6268
SELECT + 49, - 97 * - 35 + 86 AS col1, + + CASE - 3 WHEN + 1 THEN NULL WHEN - COUNT ( * ) * - - 90 THEN + 35 ELSE COALESCE ( + COUNT ( * ), 61 + - 13 + + 0 * - - 94, + ( + 80 ) + - ( + 90 ) ) END * - CAST ( NULL AS INTEGER ) + 8 AS col2
----
49
3481
NULL

query I rowsort
SELECT ALL 43 * + 34 * - + ( 65 ) + + 86 AS col0
----
-94944

query I rowsort
SELECT 52 * + + 70 AS col1
----
3640

query I rowsort
SELECT ALL 71 + 91
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT DISTINCT MIN( DISTINCT + 1 ) DIV 93 - 41 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT MIN ( DISTINCT + 1 ) / 93 - 41 AS col0
----
-41

query I rowsort
SELECT + 24 + + 65 AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6274
SELECT DISTINCT - 11 * 50 * 43 DIV + - 93
----
254

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT - 11 * 50 * 43 / + - 93
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT ALL 98 + + - 17 + 28 * COUNT( DISTINCT + 65 ) * 49 * - COALESCE ( - 19, - 89, - COUNT( * ) * - 14 ) AS col1
----
26149

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL 98 + + - 17 + 28 * COUNT ( DISTINCT + 65 ) * 49 * - COALESCE ( - 19, - 89, - COUNT ( * ) * - 14 ) AS col1
----
26149

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT + + SUM( - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-6276
SELECT + + SUM ( - 30 )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6277
SELECT + - 73 DIV - COUNT( * ) + + + 47 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-6277
SELECT + - 73 / - COUNT ( * ) + + + 47 AS col0
----
120

query I rowsort
SELECT ALL + 62 + + - 23 AS col0
----
39

query II rowsort
SELECT + 90 * - + 8 + 49 AS col0, + 2
----
-671
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT 58 * 94 * + COUNT( * )
----
5452

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT 58 * 94 * + COUNT ( * )
----
5452

onlyif mysql # aggregate syntax: 
query II rowsort label-6281
SELECT DISTINCT MIN( DISTINCT 83 ) AS col2, 32 + - + ( + 72 ) - 22 + + MAX( ALL 86 ) AS col1
----
83
24

skipif mysql # not compatible
query II rowsort label-6281
SELECT DISTINCT MIN ( DISTINCT 83 ) AS col2, 32 + - + ( + 72 ) - 22 + + MAX ( ALL 86 ) AS col1
----
83
24

query I rowsort
SELECT + 75 + - + NULLIF ( + 86, + ( - - 34 ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL MIN( DISTINCT - 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL MIN ( DISTINCT - 87 ) AS col0
----
-87

query II rowsort
SELECT - 22 + - 21 AS col2, - ( - 49 ) + + 15
----
-43
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( + 25 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( + 25 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 28 * - 51 col0
----
-1428

query I rowsort
SELECT - 15 * - - 11 AS col1
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT ALL COALESCE ( - 9, CAST( NULL AS SIGNED ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL COALESCE ( - 9, CAST ( NULL AS INTEGER ) ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - 68 + ( + SUM( DISTINCT 82 ) ) + - MIN( + 44 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6289
SELECT - 68 + ( + SUM ( DISTINCT 82 ) ) + - MIN ( + 44 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL + CASE - 7 WHEN - 93 * 52 THEN 16 ELSE 87 * 6 + - COUNT( 77 ) END * + 61
----
31781

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + CASE - 7 WHEN - 93 * 52 THEN 16 ELSE 87 * 6 + - COUNT ( 77 ) END * + 61
----
31781

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT - MAX( DISTINCT - - 80 ) * - - NULLIF ( 38, - 61 ) * + 15
----
-45600

skipif mysql # not compatible
query I rowsort label-6291
SELECT - MAX ( DISTINCT - - 80 ) * - - NULLIF ( 38, - 61 ) * + 15
----
-45600

query I rowsort
SELECT - 13 + + - 71 col2
----
-84

query I rowsort
SELECT - + 95 + + 77
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - ( - MAX( ALL + 47 ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6294
SELECT - ( - MAX ( ALL + 47 ) ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT ALL 75 DIV + 30 + + 61 - 86 + - 72 * 17 * + - SUM( DISTINCT + + 89 ) * - + 85
----
-9259583

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL 75 / + 30 + + 61 - 86 + - 72 * 17 * + - SUM ( DISTINCT + + 89 ) * - + 85
----
-9259583

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT + 5 * - 47 + + + MAX( DISTINCT + - 93 )
----
-328

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT + 5 * - 47 + + + MAX ( DISTINCT + - 93 )
----
-328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6297
SELECT ALL - 76 * CAST( AVG ( DISTINCT + 72 ) AS SIGNED ) DIV COUNT( * ) + + - COALESCE ( + 92, 54, 1 + 83 * + 4 + + + 34 ) + - COUNT( ALL + 52 ) + + 98 DIV ( - - CAST( 9 AS SIGNED ) ) DIV - - 67 + - 87
----
-5652

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - 76 * CAST ( AVG ( DISTINCT + 72 ) AS INTEGER ) / COUNT ( * ) + + - COALESCE ( + 92, 54, 1 + 83 * + 4 + + + 34 ) + - COUNT ( ALL + 52 ) + + 98 / ( - - CAST ( 9 AS INTEGER ) ) / - - 67 + - 87
----
-5652

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT + 72 * + COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6298
SELECT + 72 * + COUNT ( * ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6299
SELECT ALL - 62 * ( - + COUNT( 88 ) ) + - - 6 + CASE - 70 WHEN 18 + + + 99 * - 22 * - - 88 / - 90 THEN - + MAX( 32 ) * - 52 WHEN 17 + + 57 THEN - 42 + CAST( NULL AS SIGNED ) END + + 81 * - COUNT( * ) * - + 29 * - 62 * - COUNT( * ) / + 10 * + + 98 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - 62 * ( - + COUNT ( 88 ) ) + - - 6 + CASE - 70 WHEN 18 + + + 99 * - 22 * - - 88 / - 90 THEN - + MAX ( 32 ) * - 52 WHEN 17 + + 57 THEN - 42 + CAST ( NULL AS INTEGER ) END + + 81 * - COUNT ( * ) * - + 29 * - 62 * - COUNT ( * ) / + 10 * + + 98 * 47
----
NULL

query II rowsort
SELECT - 16 * 15 AS col2, 7
----
-240
7

query I rowsort
SELECT + ( - + 72 ) * + + ( 51 ) * - 44 - + 56 col1
----
161512

query I rowsort
SELECT 26 * + 12 + + - 20
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT - 15 * + + 88 + COUNT( * )
----
-1319

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - 15 * + + 88 + COUNT ( * )
----
-1319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6304
SELECT - 3 DIV - 16 + + MIN( 55 ) * + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-6304
SELECT - 3 / - 16 + + MIN ( 55 ) * + + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ALL - 82 * - NULLIF ( - 50, - COUNT( + 77 ) )
----
-4100

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL - 82 * - NULLIF ( - 50, - COUNT ( + 77 ) )
----
-4100

query I rowsort
SELECT - - 77 + ( + 56 )
----
133

query I rowsort
SELECT + - 71 * + 2 AS col2
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6308
SELECT DISTINCT + - 82 * + - CAST( COUNT( * ) AS SIGNED ) - 9
----
73

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT + - 82 * + - CAST ( COUNT ( * ) AS INTEGER ) - 9
----
73

query I rowsort
SELECT DISTINCT + + 14 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT COUNT( * ) / + CASE + + 76 WHEN ( + - 56 ) THEN NULL WHEN - 10 / - + 24 * + - 39 + + COUNT( * ) * + 8 THEN + ( - - 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT COUNT ( * ) / + CASE + + 76 WHEN ( + - 56 ) THEN NULL WHEN - 10 / - + 24 * + - 39 + + COUNT ( * ) * + 8 THEN + ( - - 73 ) END
----
NULL

query I rowsort
SELECT DISTINCT + 2 * - + 23 - - + 11 * + - 49
----
-585

query I rowsort
SELECT + 82 + + 65 AS col2
----
147

query I rowsort
SELECT + 99 * + 36
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT COUNT( * ) * - 67 * + 79 AS col0
----
-5293

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT COUNT ( * ) * - 67 * + 79 AS col0
----
-5293

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT - 34 * CASE - 36 WHEN 25 THEN - ( - AVG ( - 60 ) ) * + - 93 + - 48 + - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT - 34 * CASE - 36 WHEN 25 THEN - ( - AVG ( - 60 ) ) * + - 93 + - 48 + - + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6316
SELECT ALL COALESCE ( - + COUNT( * ), - CAST( - 36 AS SIGNED ), + COUNT( * ) ) * + 48 + + 87 + + + 89 * + 16 * - 79 * + 54 * - COUNT( * ) col2
----
6074823

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL COALESCE ( - + COUNT ( * ), - CAST ( - 36 AS INTEGER ), + COUNT ( * ) ) * + 48 + + 87 + + + 89 * + 16 * - 79 * + 54 * - COUNT ( * ) col2
----
6074823

query II rowsort
SELECT ALL ( 65 ) * 31, 14 * + 45 + 57 AS col2
----
2015
687

query I rowsort
SELECT ALL - 23 - - 39 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT MIN( - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-6319
SELECT MIN ( - 22 )
----
-22

query I rowsort
SELECT DISTINCT COALESCE ( 22, 28 ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6321
SELECT DISTINCT 63 * NULLIF ( + - 17, - 79 * + + COUNT( * ) * - 51 ) DIV + 79
----
-13

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT 63 * NULLIF ( + - 17, - 79 * + + COUNT ( * ) * - 51 ) / + 79
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT ALL - 51 DIV - - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL - 51 / - - 79 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT - 92 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT - 92 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 62 * + 26
----
1612

query I rowsort
SELECT - 68 + - 10 + + - 51 * - 52 * + 84
----
222690

query I rowsort
SELECT + 73 + + 38
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT DISTINCT - COUNT( ALL 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - COUNT ( ALL 50 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL 90 + + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL 90 + + - COUNT ( * )
----
89

query I rowsort
SELECT ALL 3 + + 63
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) * + 7 + - - MIN( DISTINCT 45 ) + - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 7 + - - MIN ( DISTINCT 45 ) + - 33 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 35 * - 16 * + 6 * 81 AS col2
----
-272160

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL - - MAX( DISTINCT - ( + 45 ) ) + - - 59 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - - MAX ( DISTINCT - ( + 45 ) ) + - - 59 AS col2
----
14

query I rowsort
SELECT ALL + 77 * + + 65 * - 13 * + + 31 AS col2
----
-2017015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6334
SELECT + CASE COUNT( * ) WHEN - 40 THEN + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) + - 99 + - ( - + AVG ( - 93 ) ) * + 58 WHEN + - ( + 35 ) - - - 2 THEN NULL WHEN + 20 THEN + + COUNT( * ) + + 93 END / 99 + CAST( + + 22 AS SIGNED ) + AVG ( + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT + CASE COUNT ( * ) WHEN - 40 THEN + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + - 99 + - ( - + AVG ( - 93 ) ) * + 58 WHEN + - ( + 35 ) - - - 2 THEN NULL WHEN + 20 THEN + + COUNT ( * ) + + 93 END / 99 + CAST ( + + 22 AS INTEGER ) + AVG ( + 96 )
----
NULL

query I rowsort
SELECT + + ( + + 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL CASE - 2 WHEN + COUNT( * ) - + COUNT( * ) - + + 36 * 3 THEN 20 + + + 82 * - 72 / - - 18 + + + 56 / 32 / - - 43 * - COUNT( * ) ELSE NULL END / - 11 + - 26 + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL CASE - 2 WHEN + COUNT ( * ) - + COUNT ( * ) - + + 36 * 3 THEN 20 + + + 82 * - 72 / - - 18 + + + 56 / 32 / - - 43 * - COUNT ( * ) ELSE NULL END / - 11 + - 26 + + 52
----
NULL

query I rowsort
SELECT + 67 * - - NULLIF ( + 53, - 16 ) + - 99 + + 33 col1
----
3485

query II rowsort
SELECT ALL - - 80, - 51 AS col0
----
80
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL - MAX( DISTINCT - - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - MAX ( DISTINCT - - 0 ) AS col1
----
0

query I rowsort
SELECT ALL - - 17 * 15
----
255

query I rowsort
SELECT 69 * + - 45 col1
----
-3105

query I rowsort
SELECT DISTINCT - 82 * + 79 * + 19 AS col0
----
-123082

onlyif mysql # aggregate syntax: 
query II rowsort label-6343
SELECT ALL + COUNT( * ) * + + 21 AS col2, 83 * + 17 AS col1
----
21
1411

skipif mysql # not compatible
query II rowsort label-6343
SELECT ALL + COUNT ( * ) * + + 21 AS col2, 83 * + 17 AS col1
----
21
1411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT DISTINCT 23 - + NULLIF ( - - 46, - - NULLIF ( + COALESCE ( + ( + 73 ), - 26 ), + - 89 * - 81 ) * - 47 + - 56 + - 15 ) * - - CAST( - - 77 AS SIGNED ) * - + 1 - + - 69
----
3634

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT 23 - + NULLIF ( - - 46, - - NULLIF ( + COALESCE ( + ( + 73 ), - 26 ), + - 89 * - 81 ) * - 47 + - 56 + - 15 ) * - - CAST ( - - 77 AS INTEGER ) * - + 1 - + - 69
----
3634

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT DISTINCT - COUNT( * ) AS col2, + COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-6345
SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( * ) AS col0
----
-1
1

query I rowsort
SELECT ALL + 28 * 26
----
728

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6347
SELECT ALL 44 AS col1, - 90 DIV COUNT( * ) AS col2
----
44
-90

skipif mysql # not compatible
query II rowsort label-6347
SELECT ALL 44 AS col1, - 90 / COUNT ( * ) AS col2
----
44
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6348
SELECT ALL 46 AS col2, CAST( + + 86 AS SIGNED ) AS col2
----
46
86

skipif mysql # not compatible
query II rowsort label-6348
SELECT ALL 46 AS col2, CAST ( + + 86 AS INTEGER ) AS col2
----
46
86

query I rowsort
SELECT 0 * + 38
----
0

query I rowsort
SELECT 36 * ( + 83 ) AS col0
----
2988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6351
SELECT DISTINCT 4 AS col0, - COUNT( DISTINCT + COALESCE ( 94, + 13 ) ) * 20 + - 23 DIV + 52 - + CAST( + + 69 AS SIGNED ) + 39 AS col1
----
4
-50

skipif mysql # not compatible
query II rowsort label-6351
SELECT DISTINCT 4 AS col0, - COUNT ( DISTINCT + COALESCE ( 94, + 13 ) ) * 20 + - 23 / + 52 - + CAST ( + + 69 AS INTEGER ) + 39 AS col1
----
4
-50

query I rowsort
SELECT 48 * 90 AS col1
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL 50 + COUNT( * ) * 68 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL 50 + COUNT ( * ) * 68 AS col1
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT 26 * - 98 DIV 14 AS col1
----
-182

skipif mysql # not compatible
query I rowsort label-6354
SELECT 26 * - 98 / 14 AS col1
----
-182

onlyif mysql # aggregate syntax: 
query II rowsort label-6355
SELECT NULLIF ( - + 21, - ( 68 ) + - 25 ) + + 75, CASE - 18 WHEN + 38 THEN NULL ELSE - COUNT( * ) - + 63 END col1
----
54
-64

skipif mysql # not compatible
query II rowsort label-6355
SELECT NULLIF ( - + 21, - ( 68 ) + - 25 ) + + 75, CASE - 18 WHEN + 38 THEN NULL ELSE - COUNT ( * ) - + 63 END col1
----
54
-64

query II rowsort
SELECT ALL 67, - 93 AS col2
----
67
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL CASE 37 WHEN + ( + 89 ) + + 5 THEN NULL WHEN + 38 * 72 + + - ( + 25 ) - 58 * - 69 THEN NULL ELSE + 64 END + - ( - 18 ) + 63 * + COUNT( * ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL CASE 37 WHEN + ( + 89 ) + + 5 THEN NULL WHEN + 38 * 72 + + - ( + 25 ) - 58 * - 69 THEN NULL ELSE + 64 END + - ( - 18 ) + 63 * + COUNT ( * ) AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL 14 + - COALESCE ( + + 88, - + MAX( - 76 ), - 95 ) - + + 85 + 88
----
-71

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL 14 + - COALESCE ( + + 88, - + MAX ( - 76 ), - 95 ) - + + 85 + 88
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6359
SELECT ALL - + COUNT( * ) + - 23 DIV - 78 + - + 24 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - + COUNT ( * ) + - 23 / - 78 + - + 24 AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT ALL + CASE + 16 WHEN + 74 / - 1 * + - CAST( NULL AS SIGNED ) + - - 1 * + 55 THEN + - ( 60 ) * + ( + + 87 ) / 88 ELSE NULL END + + CAST( + 56 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL + CASE + 16 WHEN + 74 / - 1 * + - CAST ( NULL AS INTEGER ) + - - 1 * + 55 THEN + - ( 60 ) * + ( + + 87 ) / 88 ELSE NULL END + + CAST ( + 56 AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 27 - + 69 AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6362
SELECT ALL - 81 * 81 DIV - NULLIF ( + 12, 14 * + COUNT( DISTINCT + 92 ) )
----
546

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - 81 * 81 / - NULLIF ( + 12, 14 * + COUNT ( DISTINCT + 92 ) )
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT CASE - 92 WHEN - 5 + + COUNT( * ) THEN 7 + 41 END * + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6363
SELECT CASE - 92 WHEN - 5 + + COUNT ( * ) THEN 7 + 41 END * + - 46
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6364
SELECT ALL - ( 63 ) col0, + 88 DIV 54 AS col0
----
-63
1

skipif mysql # not compatible
query II rowsort label-6364
SELECT ALL - ( 63 ) col0, + 88 / 54 AS col0
----
-63
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT - + CAST( + 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6365
SELECT - + CAST ( + 0 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ALL 24 + + 16 - 42 + + + 75 AS col1
----
73

query II rowsort
SELECT - + 50 AS col2, 7
----
-50
7

query I rowsort
SELECT 37 * 64 * + - 3
----
-7104

onlyif mysql # aggregate syntax: 
query II rowsort label-6369
SELECT + 24 AS col1, + COUNT( DISTINCT + 14 ) AS col0
----
24
1

skipif mysql # not compatible
query II rowsort label-6369
SELECT + 24 AS col1, + COUNT ( DISTINCT + 14 ) AS col0
----
24
1

query I rowsort
SELECT 98 + - - ( + 18 ) - 5 AS col1
----
111

query I rowsort
SELECT ALL - + ( 97 ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6372
SELECT + 24 AS col1, ( - COUNT( * ) ) + + + 6 + - - 90 * CAST( NULL AS SIGNED )
----
24
NULL

skipif mysql # not compatible
query II rowsort label-6372
SELECT + 24 AS col1, ( - COUNT ( * ) ) + + + 6 + - - 90 * CAST ( NULL AS INTEGER )
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT ALL - + SUM( + + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL - + SUM ( + + 69 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6374
SELECT - COALESCE ( - + 21, - + COUNT( * ) * + - 31 DIV + 93 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-6374
SELECT - COALESCE ( - + 21, - + COUNT ( * ) * + - 31 / + 93 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT + + COUNT( * ) * + + ( - 0 ) + + + 82
----
82

skipif mysql # not compatible
query I rowsort label-6375
SELECT + + COUNT ( * ) * + + ( - 0 ) + + + 82
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6376
SELECT CAST( NULL AS DECIMAL ) AS col2, + 48 + - 58 * - + NULLIF ( COUNT( * ), - - 46 ) - + 63 AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-6376
SELECT CAST ( NULL AS REAL ) AS col2, + 48 + - 58 * - + NULLIF ( COUNT ( * ), - - 46 ) - + 63 AS col1
----
NULL
43

query I rowsort
SELECT 44 * - + 37 + - 26 col1
----
-1654

query I rowsort
SELECT 85 + 24 * - - 30
----
805

query I rowsort
SELECT 23 * 97 - + - 58 AS col2
----
2289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6380
SELECT 94 + + + 84 + - + 66 + - 63 * COUNT( * ) * + - CAST( NULL AS SIGNED ) * + ( + COALESCE ( - ( 15 ), 65, - 34 ) ) + + COUNT( * ) * + 30 + + NULLIF ( - 64, + 6 / 63 ) - + + 84 + - - NULLIF ( 76, 26 ) AS col1, 60 * MAX( - - 98 ) * - 49 - + + 26 - 52
----
NULL
-288198

skipif mysql # not compatible
query II rowsort label-6380
SELECT 94 + + + 84 + - + 66 + - 63 * COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * + ( + COALESCE ( - ( 15 ), 65, - 34 ) ) + + COUNT ( * ) * + 30 + + NULLIF ( - 64, + 6 / 63 ) - + + 84 + - - NULLIF ( 76, 26 ) AS col1, 60 * MAX ( - - 98 ) * - 49 - + + 26 - 52
----
NULL
-288198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6381
SELECT ALL + COUNT( * ) - + + CAST( - + 72 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + COUNT ( * ) - + + CAST ( - + 72 AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT - 87 * ( - 65 ) * + COUNT( * ) + 53 col1
----
5708

skipif mysql # not compatible
query I rowsort label-6382
SELECT - 87 * ( - 65 ) * + COUNT ( * ) + 53 col1
----
5708

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT 29 + - 76 DIV - + 84 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6383
SELECT 29 + - 76 / - + 84 AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6384
SELECT DISTINCT - CAST( + + 80 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT - CAST ( + + 80 AS INTEGER )
----
-80

query II rowsort
SELECT 3 * + 95 AS col2, 33
----
285
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT COALESCE ( + 17, COUNT( * ) * - COUNT( - 6 ) ) + 24 * - 41 + + - 35 col1
----
-1002

skipif mysql # not compatible
query I rowsort label-6386
SELECT COALESCE ( + 17, COUNT ( * ) * - COUNT ( - 6 ) ) + 24 * - 41 + + - 35 col1
----
-1002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT ALL - CAST( - + 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - CAST ( - + 35 AS INTEGER )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT - COUNT( * ) * - + 25 + + + 11
----
36

skipif mysql # not compatible
query I rowsort label-6388
SELECT - COUNT ( * ) * - + 25 + + + 11
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6389
SELECT ALL + NULLIF ( + 43, - CAST( - + 18 AS SIGNED ) ) + SUM( - 66 ) col1
----
-23

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL + NULLIF ( + 43, - CAST ( - + 18 AS INTEGER ) ) + SUM ( - 66 ) col1
----
-23

query I rowsort
SELECT 19 * + + 90 AS col0
----
1710

onlyif mysql # aggregate syntax: 
query II rowsort label-6391
SELECT ALL COUNT( ALL - + ( - 35 ) ), - MAX( + 87 ) + + - 93 AS col2
----
1
-180

skipif mysql # not compatible
query II rowsort label-6391
SELECT ALL COUNT ( ALL - + ( - 35 ) ), - MAX ( + 87 ) + + - 93 AS col2
----
1
-180

query I rowsort
SELECT 29 * + 64 col0
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT DISTINCT 62 + COUNT( * ) * + 90
----
152

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT 62 + COUNT ( * ) * + 90
----
152

query I rowsort
SELECT DISTINCT 38 + 19 AS col2
----
57

query I rowsort
SELECT ALL 97 + + 1 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6396
SELECT NULLIF ( + CAST( + - 83 AS SIGNED ), - CASE + COUNT( * ) WHEN - 50 / 4 / - - 85 THEN NULL ELSE + ( + + 82 ) * AVG ( 42 ) END )
----
-83

skipif mysql # not compatible
query I rowsort label-6396
SELECT NULLIF ( + CAST ( + - 83 AS INTEGER ), - CASE + COUNT ( * ) WHEN - 50 / 4 / - - 85 THEN NULL ELSE + ( + + 82 ) * AVG ( 42 ) END )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT DISTINCT 8 + + + MIN( - + 43 ) + - 36 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT 8 + + + MIN ( - + 43 ) + - 36 AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT ALL 13 + - + 60 + + - NULLIF ( - 57, - - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL 13 + - + 60 + + - NULLIF ( - 57, - - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT - CAST( - + 78 AS SIGNED ) * + 58 + - 89 + CAST( NULL AS SIGNED ) * + - NULLIF ( AVG ( - - 16 ), - + SUM( 34 ) / + NULLIF ( COUNT( * ), - - 74 ) ) * - - ( - 28 ) - 88 + + SUM( ALL + - 99 ) * + + 99 * - 90 * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT - CAST ( - + 78 AS INTEGER ) * + 58 + - 89 + CAST ( NULL AS INTEGER ) * + - NULLIF ( AVG ( - - 16 ), - + SUM ( 34 ) / + NULLIF ( COUNT ( * ), - - 74 ) ) * - - ( - 28 ) - 88 + + SUM ( ALL + - 99 ) * + + 99 * - 90 * + 34
----
NULL

query I rowsort
SELECT ALL 26 + 31 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6401
SELECT DISTINCT + COUNT( * ) + + 75 AS col1, COALESCE ( + - 24, COALESCE ( - 7, - 46, - + ( + 2 ) + + + COUNT( * ) * - 46 ) ) * COALESCE ( - 24, - NULLIF ( - + 56, 26 ), CAST( NULL AS SIGNED ) ) + + 12 DIV 89
----
76
576

skipif mysql # not compatible
query II rowsort label-6401
SELECT DISTINCT + COUNT ( * ) + + 75 AS col1, COALESCE ( + - 24, COALESCE ( - 7, - 46, - + ( + 2 ) + + + COUNT ( * ) * - 46 ) ) * COALESCE ( - 24, - NULLIF ( - + 56, 26 ), CAST ( NULL AS INTEGER ) ) + + 12 / 89
----
76
576

query I rowsort
SELECT + + 64 + + - 25 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6403
SELECT + ( - 87 ) / + 42 * 42 / - COUNT( * ) + + 85 + + 17 * - CAST( 68 AS SIGNED ) + - CAST( NULL AS SIGNED ) * SUM( - 33 ) AS col2, 68 * - 2 + 12
----
NULL
-124

skipif mysql # not compatible
query II rowsort label-6403
SELECT + ( - 87 ) / + 42 * 42 / - COUNT ( * ) + + 85 + + 17 * - CAST ( 68 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * SUM ( - 33 ) AS col2, 68 * - 2 + 12
----
NULL
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-6404
SELECT ALL - 95 * COUNT( * ) - - + 53 AS col0, 97 + - 43
----
-42
54

skipif mysql # not compatible
query II rowsort label-6404
SELECT ALL - 95 * COUNT ( * ) - - + 53 AS col0, 97 + - 43
----
-42
54

query II rowsort
SELECT - COALESCE ( - ( + - 56 ), 16 * - 44 * + - 63 - - 54 ) AS col1, - 89 AS col2
----
-56
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6406
SELECT ALL - 34 * ( + COALESCE ( - CASE 43 WHEN + - CAST( + 51 AS DECIMAL ) THEN - - MIN( ALL - 18 ) ELSE NULL END, - 63 DIV + 22 * + COUNT( * ), - 32 - + 17 ) ) col0
----
68

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL - 34 * ( + COALESCE ( - CASE 43 WHEN + - CAST ( + 51 AS REAL ) THEN - - MIN ( ALL - 18 ) ELSE NULL END, - 63 / + 22 * + COUNT ( * ), - 32 - + 17 ) ) col0
----
68

query I rowsort
SELECT DISTINCT + 76 * - + 64 AS col2
----
-4864

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT NULLIF ( + - 89, + - 30 ) DIV - - NULLIF ( + 98, + 16 * - 25 ) + - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-6408
SELECT NULLIF ( + - 89, + - 30 ) / - - NULLIF ( + 98, + 16 * - 25 ) + - 97 AS col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT + COALESCE ( - NULLIF ( 5, 81 * - ( + 18 ) + + 48 + + + ( + - 53 ) * 62 * - 61 ), + 27, COALESCE ( - 66, - + ( 67 ) DIV - + 90 DIV 3 + 40 + 17 DIV - - CASE + COUNT( * ) WHEN - 48 THEN NULL ELSE + 59 * + 80 END ) )
----
-5

skipif mysql # not compatible
query I rowsort label-6409
SELECT + COALESCE ( - NULLIF ( 5, 81 * - ( + 18 ) + + 48 + + + ( + - 53 ) * 62 * - 61 ), + 27, COALESCE ( - 66, - + ( 67 ) / - + 90 / 3 + 40 + 17 / - - CASE + COUNT ( * ) WHEN - 48 THEN NULL ELSE + 59 * + 80 END ) )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6410
SELECT + COUNT( * ) DIV - 87 + + + 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6410
SELECT + COUNT ( * ) / - 87 + + + 13 AS col0
----
13

query I rowsort
SELECT + - NULLIF ( - 69, 38 + - - 26 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6412
SELECT - + AVG ( 45 ) + - ( - 36 ) / - COALESCE ( - + 23, - - 88 ) * COUNT( * ) + - NULLIF ( - - 24, + + 11 / - AVG ( + 32 ) ) / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT - + AVG ( 45 ) + - ( - 36 ) / - COALESCE ( - + 23, - - 88 ) * COUNT ( * ) + - NULLIF ( - - 24, + + 11 / - AVG ( + 32 ) ) / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT - 95 * - 55 * + + COUNT( * )
----
5225

skipif mysql # not compatible
query I rowsort label-6413
SELECT - 95 * - 55 * + + COUNT ( * )
----
5225

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT + COALESCE ( 34, - COUNT( - 1 ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6414
SELECT + COALESCE ( 34, - COUNT ( - 1 ) ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT + 99 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-6415
SELECT + 99 * COUNT ( * )
----
99

query I rowsort
SELECT ALL - 64 * 54
----
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL + COUNT( - 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL + COUNT ( - 46 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6418
SELECT + CASE 64 WHEN + 25 - + - 77 THEN COUNT( * ) WHEN - ( - CAST( - + 53 AS SIGNED ) ) THEN NULL WHEN - ( - - 84 ) * + + 15 - + 84 + 20 + - COUNT( * ) * - - 97 / - - NULLIF ( + ( - 96 ), - COUNT( ALL - - 50 ) + NULLIF ( ( + 82 ), + 81 / 95 ) + ( + 67 ) * - 33 * - COUNT( * ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT + CASE 64 WHEN + 25 - + - 77 THEN COUNT ( * ) WHEN - ( - CAST ( - + 53 AS INTEGER ) ) THEN NULL WHEN - ( - - 84 ) * + + 15 - + 84 + 20 + - COUNT ( * ) * - - 97 / - - NULLIF ( + ( - 96 ), - COUNT ( ALL - - 50 ) + NULLIF ( ( + 82 ), + 81 / 95 ) + ( + 67 ) * - 33 * - COUNT ( * ) ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 63 * + 62
----
3906

query I rowsort
SELECT - 69 * - 92 * + 91 AS col0
----
577668

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ALL + 83 * + ( COUNT( * ) ) + - + 54
----
29

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL + 83 * + ( COUNT ( * ) ) + - + 54
----
29

query I rowsort
SELECT + 80 - - + 37
----
117

query II rowsort
SELECT + 45, 33 AS col0
----
45
33

query I rowsort
SELECT COALESCE ( 44, - 53 + + 81 )
----
44

query I rowsort
SELECT + ( + ( - + 46 ) ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-6426
SELECT COUNT( * ) AS col0, 85 + + - ( + + 42 ) AS col2
----
1
43

skipif mysql # not compatible
query II rowsort label-6426
SELECT COUNT ( * ) AS col0, 85 + + - ( + + 42 ) AS col2
----
1
43

query II rowsort
SELECT ALL + 90 col2, 33 + - + 17
----
90
16

query I rowsort
SELECT ALL - 83 * + NULLIF ( + 9, + + 57 ) + + 84 AS col2
----
-663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6429
SELECT - 33 * SUM( DISTINCT - NULLIF ( + + CAST( 19 AS SIGNED ), - 12 ) ) AS col2, 89 AS col0
----
627
89

skipif mysql # not compatible
query II rowsort label-6429
SELECT - 33 * SUM ( DISTINCT - NULLIF ( + + CAST ( 19 AS INTEGER ), - 12 ) ) AS col2, 89 AS col0
----
627
89

query I rowsort
SELECT DISTINCT 26 * + 1 + + 66 * + 27 * + 0 - + - 75 col0
----
101

query I rowsort
SELECT ALL 94 * + - 82 + - 54 * + 16 * + 81 * - 34 AS col0
----
2371748

onlyif mysql # aggregate syntax: 
query II rowsort label-6432
SELECT COUNT( * ) AS col2, - 27 * COUNT( * ) + + + 75 + 75 * + 50
----
1
3798

skipif mysql # not compatible
query II rowsort label-6432
SELECT COUNT ( * ) AS col2, - 27 * COUNT ( * ) + + + 75 + 75 * + 50
----
1
3798

query I rowsort
SELECT ALL + 93 * 17 AS col2
----
1581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6434
SELECT DISTINCT + 21 + - 43 * - 34 * COUNT( * ) * - COUNT( - 27 ) * + 96 + 17 + - CAST( NULL AS SIGNED ) + CASE + 16 WHEN + - 80 + NULLIF ( COUNT( * ), - 20 ) - + 43 THEN - 10 WHEN + 96 * 7 * - - COUNT( * ) THEN NULL END * 42 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + 21 + - 43 * - 34 * COUNT ( * ) * - COUNT ( - 27 ) * + 96 + 17 + - CAST ( NULL AS INTEGER ) + CASE + 16 WHEN + - 80 + NULLIF ( COUNT ( * ), - 20 ) - + 43 THEN - 10 WHEN + 96 * 7 * - - COUNT ( * ) THEN NULL END * 42 * + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 58 + 83
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT - 27 DIV + - 11 + 45 + 21 * 27
----
614

skipif mysql # not compatible
query I rowsort label-6436
SELECT - 27 / + - 11 + 45 + 21 * 27
----
614

query I rowsort
SELECT ALL + 90 + + 68
----
158

query I rowsort
SELECT ALL - 99 * - - 54
----
-5346

onlyif mysql # aggregate syntax: 
query II rowsort label-6439
SELECT DISTINCT COUNT( * ) AS col0, ( - - 23 ) AS col2
----
1
23

skipif mysql # not compatible
query II rowsort label-6439
SELECT DISTINCT COUNT ( * ) AS col0, ( - - 23 ) AS col2
----
1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT - + COUNT( * ) + 66
----
65

skipif mysql # not compatible
query I rowsort label-6440
SELECT - + COUNT ( * ) + 66
----
65

query I rowsort
SELECT ALL + + 86 - + + 7 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT - SUM( 38 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6442
SELECT - SUM ( 38 ) AS col2
----
-38

query II rowsort
SELECT DISTINCT 8 AS col1, + 74
----
8
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT - 16 * + CAST( NULL AS SIGNED ) + - 13 * + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT - 16 * + CAST ( NULL AS INTEGER ) + - 13 * + - 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6445
SELECT + COALESCE ( - 28, - 86 DIV - CASE - 45 WHEN 29 * - 2 - - 97 THEN NULL WHEN + 63 THEN NULL ELSE - ( 53 ) * - + 80 * - + NULLIF ( + 20, - 10 ) END - + 83, + MIN( ALL 63 ), - 69 + - 1 ) + - CAST( + 54 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-6445
SELECT + COALESCE ( - 28, - 86 / - CASE - 45 WHEN 29 * - 2 - - 97 THEN NULL WHEN + 63 THEN NULL ELSE - ( 53 ) * - + 80 * - + NULLIF ( + 20, - 10 ) END - + 83, + MIN ( ALL 63 ), - 69 + - 1 ) + - CAST ( + 54 AS INTEGER )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6446
SELECT ALL 9, - 53 * + 92 - - 46 + + CAST( + + 4 AS SIGNED ) AS col1
----
9
-4826

skipif mysql # not compatible
query II rowsort label-6446
SELECT ALL 9, - 53 * + 92 - - 46 + + CAST ( + + 4 AS INTEGER ) AS col1
----
9
-4826

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT - COALESCE ( 92, COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-6447
SELECT - COALESCE ( 92, COUNT ( * ) )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT + 43 + SUM( 50 ), - 76 AS col1
----
93
-76

skipif mysql # not compatible
query II rowsort label-6448
SELECT + 43 + SUM ( 50 ), - 76 AS col1
----
93
-76

query I rowsort
SELECT + + 77 * + - 24 + 70 AS col1
----
-1778

query I rowsort
SELECT ALL + CASE + - 93 WHEN - + 78 THEN NULL ELSE + 35 END AS col2
----
35

query II rowsort
SELECT - + 82 AS col1, 21 AS col0
----
-82
21

query I rowsort
SELECT - + 33 + + 54 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6453
SELECT ALL + COUNT( * ) * + - COALESCE ( + 4, COUNT( * ) ) * 2 + 19 * + 86 * + + 51 * + 26 * + CAST( NULL AS SIGNED ) * 89 AS col1, 48 * 56
----
NULL
2688

skipif mysql # not compatible
query II rowsort label-6453
SELECT ALL + COUNT ( * ) * + - COALESCE ( + 4, COUNT ( * ) ) * 2 + 19 * + 86 * + + 51 * + 26 * + CAST ( NULL AS INTEGER ) * 89 AS col1, 48 * 56
----
NULL
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT + + 17 * - + 14 + + COALESCE ( + COUNT( * ), - 97 ) * - ( 77 ) AS col0
----
-315

skipif mysql # not compatible
query I rowsort label-6454
SELECT + + 17 * - + 14 + + COALESCE ( + COUNT ( * ), - 97 ) * - ( 77 ) AS col0
----
-315

onlyif mysql # aggregate syntax: 
query II rowsort label-6455
SELECT ALL COUNT( * ) AS col0, + 48 AS col0
----
1
48

skipif mysql # not compatible
query II rowsort label-6455
SELECT ALL COUNT ( * ) AS col0, + 48 AS col0
----
1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT - 89 * - COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT - 89 * - COUNT ( * ) AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT + 99 DIV - 98 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6457
SELECT + 99 / - 98 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT - 42 DIV ( - 41 ) * + 33 - 6 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6458
SELECT - 42 / ( - 41 ) * + 33 - 6 AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6459
SELECT CAST( 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-6459
SELECT CAST ( 58 AS INTEGER )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6460
SELECT CAST( + 42 AS SIGNED ) col0
----
42

skipif mysql # not compatible
query I rowsort label-6460
SELECT CAST ( + 42 AS INTEGER ) col0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-6461
SELECT ALL + ( - - 73 ) DIV + 89 + - 81, 48 AS col0
----
-81
48

skipif mysql # not compatible
query II rowsort label-6461
SELECT ALL + ( - - 73 ) / + 89 + - 81, 48 AS col0
----
-81
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6462
SELECT ALL + 39 DIV + + COUNT( + 80 ) + - 76 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL + 39 / + + COUNT ( + 80 ) + - 76 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6463
SELECT - CAST( 34 AS SIGNED ) * SUM( ( - 45 ) ) * + COUNT( * ) + 22 + + 44 * 69 * + ( - + SUM( ALL + 74 ) ) + - 83 AS col0
----
-223195

skipif mysql # not compatible
query I rowsort label-6463
SELECT - CAST ( 34 AS INTEGER ) * SUM ( ( - 45 ) ) * + COUNT ( * ) + 22 + + 44 * 69 * + ( - + SUM ( ALL + 74 ) ) + - 83 AS col0
----
-223195

query I rowsort
SELECT + 57 + 79
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6465
SELECT + 33 + + 2 * + 16 + + COUNT( ALL - 66 ) + NULLIF ( + + 83, - 79 + - + 89 ) - - COALESCE ( - ( + COUNT( * ) ), + - 30 DIV + 2 * 11 - + 29 + 73 DIV - 38, + 98 ) * + 15
----
134

skipif mysql # not compatible
query I rowsort label-6465
SELECT + 33 + + 2 * + 16 + + COUNT ( ALL - 66 ) + NULLIF ( + + 83, - 79 + - + 89 ) - - COALESCE ( - ( + COUNT ( * ) ), + - 30 / + 2 * 11 - + 29 + 73 / - 38, + 98 ) * + 15
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT - 97 * - 53 + + + CAST( NULL AS SIGNED ) + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT - 97 * - 53 + + + CAST ( NULL AS INTEGER ) + + 93
----
NULL

query I rowsort
SELECT ALL 22 * + 54 + - 9 AS col2
----
1179

query II rowsort
SELECT 34 * + 81 * - 68 + - + 2, 58 * 60 + - 88 col1
----
-187274
3392

query I rowsort
SELECT ALL + 46 * - 17 + + 50 - + - 51 + + 64 AS col0
----
-617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT 73 + + CASE - 86 WHEN 58 THEN + 7 WHEN + 80 * MAX( DISTINCT 48 ) THEN + SUM( + 63 ) WHEN - 70 THEN + NULLIF ( + + 67, + CAST( 32 AS SIGNED ) - - - MIN( - ( + 40 ) ) ) ELSE ( + 33 ) - + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT 73 + + CASE - 86 WHEN 58 THEN + 7 WHEN + 80 * MAX ( DISTINCT 48 ) THEN + SUM ( + 63 ) WHEN - 70 THEN + NULLIF ( + + 67, + CAST ( 32 AS INTEGER ) - - - MIN ( - ( + 40 ) ) ) ELSE ( + 33 ) - + - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL 61 - - 39 * - 63
----
-2396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6472
SELECT + 34 * 79 * + COUNT( * ) + + ( 64 ) + + - CAST( - - 49 AS SIGNED ) * + COALESCE ( - CAST( NULL AS SIGNED ), - - 43 * + + 13 + 60 ) * + 42 * + 27 AS col1
----
-34392604

skipif mysql # not compatible
query I rowsort label-6472
SELECT + 34 * 79 * + COUNT ( * ) + + ( 64 ) + + - CAST ( - - 49 AS INTEGER ) * + COALESCE ( - CAST ( NULL AS INTEGER ), - - 43 * + + 13 + 60 ) * + 42 * + 27 AS col1
----
-34392604

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT ALL SUM( - 59 ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL SUM ( - 59 ) col1
----
-59

query I rowsort
SELECT ALL 48 - + 48 + + - 17 + + 23 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT - COUNT( * ) * + 31 * + - COUNT( * ) * - 20 - 44 AS col1
----
-664

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT - COUNT ( * ) * + 31 * + - COUNT ( * ) * - 20 - 44 AS col1
----
-664

query I rowsort
SELECT ALL + - 50 - + NULLIF ( 17, - + ( - + ( + 31 ) ) + 18 ) + - 87 * + 52 * - + 62 AS col0
----
280421

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT + NULLIF ( - + 76, - + 12 * + - 1 ) * - 64 + + NULLIF ( + COUNT( * ), + 15 * ( + + COALESCE ( 94, + + 94 ) ) + + - ( - COUNT( * ) ) ) + 79 + + + COUNT( * ) AS col2
----
4945

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT + NULLIF ( - + 76, - + 12 * + - 1 ) * - 64 + + NULLIF ( + COUNT ( * ), + 15 * ( + + COALESCE ( 94, + + 94 ) ) + + - ( - COUNT ( * ) ) ) + 79 + + + COUNT ( * ) AS col2
----
4945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6478
SELECT ALL + 18 / - + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL + 18 / - + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - + COALESCE ( + 65, - 63 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ( - 39 ) * COUNT( * ) + - 59 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6480
SELECT ( - 39 ) * COUNT ( * ) + - 59 AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6481
SELECT 84 / + 58 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6481
SELECT 84 / + 58 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT - COUNT( - 92 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6482
SELECT - COUNT ( - 92 ) AS col2
----
-1

query I rowsort
SELECT ALL + - ( 84 ) * - 76
----
6384

query I rowsort
SELECT DISTINCT + ( + 88 ) col1
----
88

query I rowsort
SELECT ALL + ( + 46 ) + + 33 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT DISTINCT - COUNT( ALL - + 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - COUNT ( ALL - + 84 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6487
SELECT ALL CAST( + + 76 AS SIGNED ) + - 44 col0, 29 AS col1
----
32
29

skipif mysql # not compatible
query II rowsort label-6487
SELECT ALL CAST ( + + 76 AS INTEGER ) + - 44 col0, 29 AS col1
----
32
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ( + + 24 ) + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6488
SELECT ( + + 24 ) + + COUNT ( * )
----
25

query II rowsort
SELECT + 38 AS col2, - 46 + - 13 * - 56
----
38
682

query I rowsort
SELECT ALL 45 + - 8 + + 89
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT DISTINCT - MIN( DISTINCT + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT - MIN ( DISTINCT + 56 )
----
-56

query II rowsort
SELECT ALL 21 + - 68 - - - 30 AS col1, - 15 + - - 72
----
-77
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT NULLIF ( + + CASE + + 22 WHEN - - 63 THEN - 85 * + 75 END, 27 * 46 * - MIN( DISTINCT + 21 ) ) * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT NULLIF ( + + CASE + + 22 WHEN - - 63 THEN - 85 * + 75 END, 27 * 46 * - MIN ( DISTINCT + 21 ) ) * - 25
----
NULL

query I rowsort
SELECT ALL 85 - 81 + + 48 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT COUNT( * ) - + 16 + + 42 - + COUNT( * ) - - + 13 + + 69
----
108

skipif mysql # not compatible
query I rowsort label-6495
SELECT COUNT ( * ) - + 16 + + 42 - + COUNT ( * ) - - + 13 + + 69
----
108

query II rowsort
SELECT DISTINCT - 15 AS col2, 69
----
-15
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6497
SELECT 39 * + 90 * - CAST( NULL AS DECIMAL ) - - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT 39 * + 90 * - CAST ( NULL AS REAL ) - - + 77
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6498
SELECT 89 DIV ( - - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-6498
SELECT 89 / ( - - 70 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6499
SELECT DISTINCT + COALESCE ( - COALESCE ( - 65, + 3 * + CAST( NULL AS SIGNED ) ), - AVG ( - + 67 ) ) DIV - NULLIF ( - COALESCE ( + - 12, + 57 ), + + 84 ) + - - 46
----
41

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT + COALESCE ( - COALESCE ( - 65, + 3 * + CAST ( NULL AS INTEGER ) ), - AVG ( - + 67 ) ) / - NULLIF ( - COALESCE ( + - 12, + 57 ), + + 84 ) + - - 46
----
41

query I rowsort
SELECT + 71 * + 52
----
3692

query I rowsort
SELECT DISTINCT 20 * - 44
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL + COUNT( * ) * - NULLIF ( + - 83, - COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + COUNT ( * ) * - NULLIF ( + - 83, - COUNT ( * ) )
----
83

query I rowsort
SELECT 98 + + 39 + - 94 col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL - CASE - + COUNT( * ) WHEN MAX( - 66 ) + + 19 - 58 * + 57 + - 92 * + 49 * + 39 / + + 86 * + 33 + - 51 THEN NULL WHEN - - COUNT( * ) THEN COUNT( - 28 ) + + 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - CASE - + COUNT ( * ) WHEN MAX ( - 66 ) + + 19 - 58 * + 57 + - 92 * + 49 * + 39 / + + 86 * + 33 + - 51 THEN NULL WHEN - - COUNT ( * ) THEN COUNT ( - 28 ) + + 40 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6505
SELECT DISTINCT + 88 * - MAX( + - 68 ) + 71 + - 5 AS col0, MIN( + 65 ) col0
----
6050
65

skipif mysql # not compatible
query II rowsort label-6505
SELECT DISTINCT + 88 * - MAX ( + - 68 ) + 71 + - 5 AS col0, MIN ( + 65 ) col0
----
6050
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT CAST( - 39 AS SIGNED ) * + 66 + + + 93 + + + 98 * + + 97 + + + 91 AS col1
----
7116

skipif mysql # not compatible
query I rowsort label-6506
SELECT CAST ( - 39 AS INTEGER ) * + 66 + + + 93 + + + 98 * + + 97 + + + 91 AS col1
----
7116

query I rowsort
SELECT 19 * 29
----
551

query I rowsort
SELECT ALL 4 * - + 31 * + - 68 * - 58
----
-489056

onlyif mysql # aggregate syntax: 
query III rowsort label-6509
SELECT ALL + 97 + ( - 60 ) + + - ( + + 66 ) AS col1, + 34 + 26 * 57 AS col0, COALESCE ( + - 24, + 32 * - NULLIF ( - 49, + MIN( ALL 54 ) ), + ( + 39 ) ) AS col1
----
-29
1516
-24

skipif mysql # not compatible
query III rowsort label-6509
SELECT ALL + 97 + ( - 60 ) + + - ( + + 66 ) AS col1, + 34 + 26 * 57 AS col0, COALESCE ( + - 24, + 32 * - NULLIF ( - 49, + MIN ( ALL 54 ) ), + ( + 39 ) ) AS col1
----
-29
1516
-24

query I rowsort
SELECT - 78 + 62 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT 68 + MAX( + 5 ) + 59 + + + 10 col0
----
142

skipif mysql # not compatible
query I rowsort label-6511
SELECT 68 + MAX ( + 5 ) + 59 + + + 10 col0
----
142

query I rowsort
SELECT DISTINCT - COALESCE ( + 8, 60 * + 81 + - 48, 21 )
----
-8

query I rowsort
SELECT ALL + - 43 + - - 76
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6514
SELECT DISTINCT - 73 DIV - COUNT( DISTINCT - - 35 ) + + 33
----
106

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - 73 / - COUNT ( DISTINCT - - 35 ) + + 33
----
106

query I rowsort
SELECT ALL + 14 + + + 57 AS col0
----
71

query I rowsort
SELECT DISTINCT 93 + + + 35 AS col2
----
128

query I rowsort
SELECT - - ( + 27 )
----
27

query II rowsort
SELECT 33 + - - 99, - 86 * + NULLIF ( - 22, - - 96 ) AS col2
----
132
1892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6519
SELECT CAST( NULL AS SIGNED ) - + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT CAST ( NULL AS INTEGER ) - + 28 AS col2
----
NULL

query I rowsort
SELECT 13 * + 70 * - 39 AS col2
----
-35490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT ALL - NULLIF ( + 83, + + COUNT( * ) ) * + 71 + - CAST( CAST( + 9 AS SIGNED ) AS SIGNED ) AS col2
----
-5902

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - NULLIF ( + 83, + + COUNT ( * ) ) * + 71 + - CAST ( CAST ( + 9 AS INTEGER ) AS INTEGER ) AS col2
----
-5902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6522
SELECT 20 + - COUNT( * ) * + 81 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT 20 + - COUNT ( * ) * + 81 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT 55 DIV - - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6523
SELECT 55 / - - 71 AS col2
----
0

query I rowsort
SELECT 34 * - 20 - + 21 + 31 - + + 19 AS col1
----
-689

query I rowsort
SELECT COALESCE ( - 26, + 53 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL - 8 * COUNT( * ) - + + ( + + 80 )
----
-88

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - 8 * COUNT ( * ) - + + ( + + 80 )
----
-88

query II rowsort
SELECT + 49, + 46 - + 50 AS col0
----
49
-4

query I rowsort
SELECT COALESCE ( 66, + 29 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT - COUNT( * ) * - + 81 * - 65 + + - 24 AS col0
----
-5289

skipif mysql # not compatible
query I rowsort label-6529
SELECT - COUNT ( * ) * - + 81 * - 65 + + - 24 AS col0
----
-5289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6530
SELECT MAX( + 28 ) DIV 30 + + 26 DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-6530
SELECT MAX ( + 28 ) / 30 + + 26 / - - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT - COUNT( * ) + + 72 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6531
SELECT - COUNT ( * ) + + 72 AS col0
----
71

query I rowsort
SELECT 44 * + 7 + - 9
----
299

query I rowsort
SELECT ALL 32 * + + 67
----
2144

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT DISTINCT - - 42 DIV + 12 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT - - 42 / + 12 AS col2
----
3

query I rowsort
SELECT ALL + NULLIF ( 88, - 73 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT + 62 * + - 63 + + COUNT( * ) + + MAX( + 84 ) * + 45 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-6536
SELECT + 62 * + - 63 + + COUNT ( * ) + + MAX ( + 84 ) * + 45 AS col1
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6537
SELECT + - 73 * ( + 71 ) * + 87 + 86 DIV COUNT( * )
----
-450835

skipif mysql # not compatible
query I rowsort label-6537
SELECT + - 73 * ( + 71 ) * + 87 + 86 / COUNT ( * )
----
-450835

onlyif mysql # aggregate syntax: 
query II rowsort label-6538
SELECT ALL + COUNT( * ), - 67 AS col2
----
1
-67

skipif mysql # not compatible
query II rowsort label-6538
SELECT ALL + COUNT ( * ), - 67 AS col2
----
1
-67

query I rowsort
SELECT ALL - - 66 * 83 AS col0
----
5478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6540
SELECT - COUNT( * ) DIV - 62 + 44
----
44

skipif mysql # not compatible
query I rowsort label-6540
SELECT - COUNT ( * ) / - 62 + 44
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT + 96 + + 78 DIV - - 14
----
101

skipif mysql # not compatible
query I rowsort label-6541
SELECT + 96 + + 78 / - - 14
----
101

query II rowsort
SELECT + - 44, + 51 AS col2
----
-44
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6543
SELECT DISTINCT - ( 23 ) DIV + COUNT( * ) - - - 87 + - 7
----
-117

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT - ( 23 ) / + COUNT ( * ) - - - 87 + - 7
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT + + 4 * + - 94 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT + + 4 * + - 94 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 76 * - ( - - 8 ) AS col0
----
-608

onlyif mysql # DIV for integer division: 
query II rowsort label-6546
SELECT ALL - 35 DIV - 92 col1, 60
----
0
60

skipif mysql # not compatible
query II rowsort label-6546
SELECT ALL - 35 / - 92 col1, 60
----
0
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6547
SELECT 80, MAX( + 17 ) AS col2
----
80
17

skipif mysql # not compatible
query II rowsort label-6547
SELECT 80, MAX ( + 17 ) AS col2
----
80
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6548
SELECT ALL - 24 + - CAST( NULL AS DECIMAL ) - + 70 + 32 * + 48 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL - 24 + - CAST ( NULL AS REAL ) - + 70 + 32 * + 48 - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT + + 5 * COUNT( * ) col1
----
5

skipif mysql # not compatible
query I rowsort label-6549
SELECT + + 5 * COUNT ( * ) col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT DISTINCT CAST( - + 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT CAST ( - + 12 AS INTEGER )
----
-12

query I rowsort
SELECT + 17 - + 2 + 95
----
110

query I rowsort
SELECT - 22 * 0 AS col0
----
0

query I rowsort
SELECT DISTINCT 75 - - 46 - + + 15 AS col1
----
106

query I rowsort
SELECT + 87 * - 93
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT DISTINCT COUNT( * ) - + 17
----
-16

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT COUNT ( * ) - + 17
----
-16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6556
SELECT - ( + + 75 ) + - CAST( ( - 37 ) AS SIGNED ) DIV + + 36
----
-74

skipif mysql # not compatible
query I rowsort label-6556
SELECT - ( + + 75 ) + - CAST ( ( - 37 ) AS INTEGER ) / + + 36
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT + 51 * 37 DIV + 69
----
27

skipif mysql # not compatible
query I rowsort label-6557
SELECT + 51 * 37 / + 69
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL - 75 * COUNT( + ( 44 ) ) col1
----
-75

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - 75 * COUNT ( + ( 44 ) ) col1
----
-75

query I rowsort
SELECT + 27 * - ( 40 )
----
-1080

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT DISTINCT - 3 * - 72 AS col0, - ( - COUNT( * ) ) - - - 26
----
216
-25

skipif mysql # not compatible
query II rowsort label-6560
SELECT DISTINCT - 3 * - 72 AS col0, - ( - COUNT ( * ) ) - - - 26
----
216
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6561
SELECT - COUNT( * ) * - 46 AS col1, - 88 AS col0
----
46
-88

skipif mysql # not compatible
query II rowsort label-6561
SELECT - COUNT ( * ) * - 46 AS col1, - 88 AS col0
----
46
-88

query I rowsort
SELECT ALL + NULLIF ( - 96, 36 - 49 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6563
SELECT - 97 * - 50 col0, + CAST( COUNT( 5 ) AS SIGNED )
----
4850
1

skipif mysql # not compatible
query II rowsort label-6563
SELECT - 97 * - 50 col0, + CAST ( COUNT ( 5 ) AS INTEGER )
----
4850
1

query I rowsort
SELECT ALL 2 * - 17
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT ( SUM( DISTINCT CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT ( SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT + + ( - COUNT( ALL - 45 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6566
SELECT + + ( - COUNT ( ALL - 45 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT - 11 * MAX( - 21 ) + - - COUNT( * ) col2
----
232

skipif mysql # not compatible
query I rowsort label-6567
SELECT - 11 * MAX ( - 21 ) + - - COUNT ( * ) col2
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT DISTINCT + 92 * - + MIN( + 23 ) + - + COUNT( * ) + + + 17 * + SUM( 73 ) * COUNT( * ) * + - 8 + 72
----
-11973

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT + 92 * - + MIN ( + 23 ) + - + COUNT ( * ) + + + 17 * + SUM ( 73 ) * COUNT ( * ) * + - 8 + 72
----
-11973

query I rowsort
SELECT - - 25 - - + 8 * + 11
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6570
SELECT ALL - COUNT( * ) * 12 DIV 69 * - 79 * - - 50 * 50 + - COALESCE ( + 7, + + 65, - 58 ), COALESCE ( - COALESCE ( 76, + 4 ), 29, - SUM( - + 52 ) + + - 92 + - 16 ) col2
----
-7
-76

skipif mysql # not compatible
query II rowsort label-6570
SELECT ALL - COUNT ( * ) * 12 / 69 * - 79 * - - 50 * 50 + - COALESCE ( + 7, + + 65, - 58 ), COALESCE ( - COALESCE ( 76, + 4 ), 29, - SUM ( - + 52 ) + + - 92 + - 16 ) col2
----
-7
-76

query I rowsort
SELECT DISTINCT 22 * - + 5 - + 72 + - + COALESCE ( - ( + 80 ), 61, - 62 - + + 80 ) + - + 98 + 61 * 81 + + + 61 AS col1
----
4802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6572
SELECT ALL - SUM( + - 36 ) * - 69 * + 92 * + 35 + - CAST( NULL AS SIGNED ) * - - COUNT( * ) + + 11 * - COUNT( * ) * - ( - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - SUM ( + - 36 ) * - 69 * + 92 * + 35 + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + + 11 * - COUNT ( * ) * - ( - 95 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6573
SELECT - + COUNT( * ) / + 5 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT - + COUNT ( * ) / + 5 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT ALL - ( - + ( + 37 ) ) * COUNT( * ) + 62 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL - ( - + ( + 37 ) ) * COUNT ( * ) + 62 AS col0
----
99

query I rowsort
SELECT ALL 22 * - 36 * - 73
----
57816

onlyif mysql # aggregate syntax: 
query II rowsort label-6576
SELECT ALL - COALESCE ( + 35, + 6 * COUNT( * ) + - SUM( + 77 ), 88 * - + 32 + 24 + - + 88 ) AS col0, 70
----
-35
70

skipif mysql # not compatible
query II rowsort label-6576
SELECT ALL - COALESCE ( + 35, + 6 * COUNT ( * ) + - SUM ( + 77 ), 88 * - + 32 + 24 + - + 88 ) AS col0, 70
----
-35
70

query I rowsort
SELECT - 17 + - 59 + + 80 * 20 + + 53
----
1577

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT ALL ( + 8 ) DIV - - 52 * 81
----
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL ( + 8 ) / - - 52 * 81
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6579
SELECT ALL CAST( - 65 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL CAST ( - 65 AS INTEGER ) AS col2
----
-65

query I rowsort
SELECT - ( - 65 ) col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT 34 - - 90 + COUNT( * ) * - ( - 80 )
----
204

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT 34 - - 90 + COUNT ( * ) * - ( - 80 )
----
204

query I rowsort
SELECT ALL 57 * - 8 AS col2
----
-456

query I rowsort
SELECT 58 + ( - - 26 ) * 44 * + 64 AS col1
----
73274

query II rowsort
SELECT - 36, + 71 col1
----
-36
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6585
SELECT CAST( + 72 AS SIGNED ) + - 75
----
-3

skipif mysql # not compatible
query I rowsort label-6585
SELECT CAST ( + 72 AS INTEGER ) + - 75
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6586
SELECT 54 AS col0, 70 + 27 + - 9 - - COALESCE ( - + 6, 23 * + COUNT( * ) * + 28 ) AS col2
----
54
82

skipif mysql # not compatible
query II rowsort label-6586
SELECT 54 AS col0, 70 + 27 + - 9 - - COALESCE ( - + 6, 23 * + COUNT ( * ) * + 28 ) AS col2
----
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6587
SELECT COALESCE ( 94, - 68 * + CAST( 54 AS SIGNED ) - + 29 ) + + + 30 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-6587
SELECT COALESCE ( 94, - 68 * + CAST ( 54 AS INTEGER ) - + 29 ) + + + 30 AS col2
----
124

query I rowsort
SELECT 48 * + 84
----
4032

query I rowsort
SELECT 89 + 37 * - - 79 * 4 AS col0
----
11781

onlyif mysql # DIV for integer division: 
query I rowsort label-6590
SELECT 4 DIV - 43 col1
----
0

skipif mysql # not compatible
query I rowsort label-6590
SELECT 4 / - 43 col1
----
0

query I rowsort
SELECT + 65 + - + 99
----
-34

query I rowsort
SELECT ALL + 59 + + 63
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT + 3 / NULLIF ( 92, + 52 / + 34 + 55 / + 32 * + 56 ) * + 74 * CASE - 0 WHEN + - ( 54 ) * + 63 THEN 62 + + COUNT( - 89 ) WHEN 15 THEN NULL END + - - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT + 3 / NULLIF ( 92, + 52 / + 34 + 55 / + 32 * + 56 ) * + 74 * CASE - 0 WHEN + - ( 54 ) * + 63 THEN 62 + + COUNT ( - 89 ) WHEN 15 THEN NULL END + - - 43
----
NULL

query II rowsort
SELECT + - 25 AS col2, + 7
----
-25
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6595
SELECT + COUNT( * ), CASE + COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN - - 70 THEN - COUNT( * ) ELSE NULL END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6595
SELECT + COUNT ( * ), CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN - - 70 THEN - COUNT ( * ) ELSE NULL END AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6596
SELECT ALL + - CASE + 66 WHEN 59 + + 93 THEN - COUNT( * ) / + ( + 20 ) * - - ( + 2 ) * + 50 - CAST( + + COUNT( * ) AS SIGNED ) WHEN - CASE - COALESCE ( - + 8, - + 93 ) WHEN - + 36 * + - ( - 69 ) * - 46 + + 0 + + 52 * + COUNT( * ) / + - CAST( + CASE 12 WHEN - - 24 * + 57 * 76 * + + 70 + - + 18 + + 78 THEN NULL WHEN - 63 / - ( - 41 ) - + SUM( ALL 6 ) - + 34 THEN NULL WHEN - 31 - 82 THEN + + 99 END AS DECIMAL ) THEN 76 ELSE NULL END * + 38 THEN 16 * - ( - - CAST( + 73 AS SIGNED ) ) END * AVG ( DISTINCT 19 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL + - CASE + 66 WHEN 59 + + 93 THEN - COUNT ( * ) / + ( + 20 ) * - - ( + 2 ) * + 50 - CAST ( + + COUNT ( * ) AS INTEGER ) WHEN - CASE - COALESCE ( - + 8, - + 93 ) WHEN - + 36 * + - ( - 69 ) * - 46 + + 0 + + 52 * + COUNT ( * ) / + - CAST ( + CASE 12 WHEN - - 24 * + 57 * 76 * + + 70 + - + 18 + + 78 THEN NULL WHEN - 63 / - ( - 41 ) - + SUM ( ALL 6 ) - + 34 THEN NULL WHEN - 31 - 82 THEN + + 99 END AS REAL ) THEN 76 ELSE NULL END * + 38 THEN 16 * - ( - - CAST ( + 73 AS INTEGER ) ) END * AVG ( DISTINCT 19 ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 37 * - + ( - 95 )
----
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT ALL 14 + + NULLIF ( - CASE + 98 WHEN - 0 / - - SUM( + + 36 ) THEN NULL WHEN + 98 * + - 5 - - - 14 - + 77 + + + 45 THEN NULL WHEN + 87 * 46 THEN + - 93 ELSE NULL END, - 2 ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL 14 + + NULLIF ( - CASE + 98 WHEN - 0 / - - SUM ( + + 36 ) THEN NULL WHEN + 98 * + - 5 - - - 14 - + 77 + + + 45 THEN NULL WHEN + 87 * 46 THEN + - 93 ELSE NULL END, - 2 ) + - 52
----
NULL

query I rowsort
SELECT ALL + - 24 + + 12 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-6600
SELECT ALL - 44 + - + NULLIF ( SUM( ALL + - 50 ), 48 ) + + + 72 AS col1, 47 + + - 23 * + - MIN( + 80 )
----
78
1887

skipif mysql # not compatible
query II rowsort label-6600
SELECT ALL - 44 + - + NULLIF ( SUM ( ALL + - 50 ), 48 ) + + + 72 AS col1, 47 + + - 23 * + - MIN ( + 80 )
----
78
1887

query II rowsort
SELECT - 81 + + 7 - 77 AS col0, 97
----
-151
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT DISTINCT - - SUM( DISTINCT - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT - - SUM ( DISTINCT - 91 )
----
-91

query II rowsort
SELECT 27, ( + COALESCE ( - + 44, - 17 * + + 43 + + 26 ) ) AS col2
----
27
-44

query I rowsort
SELECT ALL + ( 1 ) - + 77 * 64 * - - 73
----
-359743

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT 39 * 47 DIV 96 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6605
SELECT 39 * 47 / 96 AS col1
----
19

query I rowsort
SELECT DISTINCT + 74 * - 62 col1
----
-4588

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT COUNT( + 80 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6607
SELECT COUNT ( + 80 ) + + COUNT ( * )
----
2

query II rowsort
SELECT DISTINCT + 75 * - + 75, 35 AS col1
----
-5625
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT 45 + + - 52 * - + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6609
SELECT 45 + + - 52 * - + COUNT ( * )
----
97

query I rowsort
SELECT 48 - - - COALESCE ( - 99, + + 87 * + 87 ) + + 71 AS col0
----
218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6611
SELECT MIN( - 99 ) * - + ( CAST( NULL AS SIGNED ) ) + 60 - + + MAX( DISTINCT - + 23 ) * - + COUNT( ALL 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT MIN ( - 99 ) * - + ( CAST ( NULL AS INTEGER ) ) + 60 - + + MAX ( DISTINCT - + 23 ) * - + COUNT ( ALL 27 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6612
SELECT 57 - + - 31, 74 * - + NULLIF ( + 35, MAX( - - 30 ) ) * 87 + + 66 * - 20 + CAST( NULL AS SIGNED ) col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-6612
SELECT 57 - + - 31, 74 * - + NULLIF ( + 35, MAX ( - - 30 ) ) * 87 + + 66 * - 20 + CAST ( NULL AS INTEGER ) col2
----
88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT 73 DIV + ( + 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6613
SELECT 73 / + ( + 58 ) AS col1
----
1

query II rowsort
SELECT ALL 9 + + - 16 AS col0, 66
----
-7
66

query I rowsort
SELECT 79 + + 53 AS col1
----
132

query I rowsort
SELECT DISTINCT 14 + - COALESCE ( 67, 65 ) AS col2
----
-53

query II rowsort
SELECT + 62 * + 6 AS col1, 55
----
372
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT DISTINCT + + COUNT( 97 ) * 41 * 13 - - COUNT( * ) + 70 - + 29 * 83 * + + 85 * + - 74 * + 11
----
166540934

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT + + COUNT ( 97 ) * 41 * 13 - - COUNT ( * ) + 70 - + 29 * 83 * + + 85 * + - 74 * + 11
----
166540934

query I rowsort
SELECT DISTINCT 18 * + + 59 + 87
----
1149

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL + - NULLIF ( - 67, + + COUNT( * ) + + 58 * + MIN( - 72 ) ) * 50 * - - 53 * - 73 + + - COALESCE ( 6, + 45 )
----
-12961156

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL + - NULLIF ( - 67, + + COUNT ( * ) + + 58 * + MIN ( - 72 ) ) * 50 * - - 53 * - 73 + + - COALESCE ( 6, + 45 )
----
-12961156

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT DISTINCT - - COUNT( - 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - - COUNT ( - 68 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL - MAX( ALL + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - MAX ( ALL + 35 )
----
-35

query I rowsort
SELECT + 4 * + + 64 + + 1
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT + 22 * ( - - COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-6624
SELECT + 22 * ( - - COUNT ( * ) )
----
22

query I rowsort
SELECT DISTINCT - 54 - - + ( - - 15 ) * - 15
----
-279

query I rowsort
SELECT ALL 71 * + + 91 * + 48 AS col2
----
310128

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT - - 53 * - 51 * COUNT( - + 32 ) - - + 45
----
-2658

skipif mysql # not compatible
query I rowsort label-6627
SELECT - - 53 * - 51 * COUNT ( - + 32 ) - - + 45
----
-2658

query I rowsort
SELECT DISTINCT + 4 * + + 62 AS col0
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT COALESCE ( - - 85, - - ( - - MIN( ALL - + 15 ) ), + - ( + 95 ) * - 15 + 70 - - 6 )
----
85

skipif mysql # not compatible
query I rowsort label-6629
SELECT COALESCE ( - - 85, - - ( - - MIN ( ALL - + 15 ) ), + - ( + 95 ) * - 15 + 70 - - 6 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6630
SELECT ALL - + COALESCE ( - 76, + 34 DIV + 60 + + 57, - + 97 * 71 )
----
76

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL - + COALESCE ( - 76, + 34 / + 60 + + 57, - + 97 * 71 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6631
SELECT 48 - - NULLIF ( - - 14, - CAST( NULL AS SIGNED ) * - 87 * + CASE - 47 WHEN CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + - 30 THEN NULL WHEN - CASE + - ( + 76 ) WHEN + + 6 THEN NULL WHEN - 28 THEN - + 57 ELSE 30 + 49 END * 76 THEN + 2 * COUNT( * ) / + 86 WHEN + + AVG ( - - 67 ) THEN NULL END ) + + 10 * - 89
----
-828

skipif mysql # not compatible
query I rowsort label-6631
SELECT 48 - - NULLIF ( - - 14, - CAST ( NULL AS INTEGER ) * - 87 * + CASE - 47 WHEN CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 30 THEN NULL WHEN - CASE + - ( + 76 ) WHEN + + 6 THEN NULL WHEN - 28 THEN - + 57 ELSE 30 + 49 END * 76 THEN + 2 * COUNT ( * ) / + 86 WHEN + + AVG ( - - 67 ) THEN NULL END ) + + 10 * - 89
----
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT - 64 - + + 13 * - 60 * - + 67 * - COUNT( * ) - + COALESCE ( - - CAST( 85 AS SIGNED ), + COUNT( * ) + ( - + COUNT( * ) ) ) * + 60
----
47096

skipif mysql # not compatible
query I rowsort label-6632
SELECT - 64 - + + 13 * - 60 * - + 67 * - COUNT ( * ) - + COALESCE ( - - CAST ( 85 AS INTEGER ), + COUNT ( * ) + ( - + COUNT ( * ) ) ) * + 60
----
47096

query I rowsort
SELECT - NULLIF ( - ( 40 ), + 3 - - 73 ) AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT + 79 * - - 30 - + + ( + 38 ) DIV - - 53
----
2370

skipif mysql # not compatible
query I rowsort label-6634
SELECT + 79 * - - 30 - + + ( + 38 ) / - - 53
----
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT + MIN( - 92 ) * - - 85
----
-7820

skipif mysql # not compatible
query I rowsort label-6635
SELECT + MIN ( - 92 ) * - - 85
----
-7820

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT - ( 13 ) * + COUNT( * ) + + 64 * COUNT( * ) + - COUNT( * ) * - 42 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6636
SELECT - ( 13 ) * + COUNT ( * ) + + 64 * COUNT ( * ) + - COUNT ( * ) * - 42 AS col1
----
93

query I rowsort
SELECT - 28 + - ( - - 10 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT - NULLIF ( 97, + 58 / + - ( COUNT( 22 ) ) * - - MIN( DISTINCT + - 62 ) ) + - 6
----
-103

skipif mysql # not compatible
query I rowsort label-6638
SELECT - NULLIF ( 97, + 58 / + - ( COUNT ( 22 ) ) * - - MIN ( DISTINCT + - 62 ) ) + - 6
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6639
SELECT - ( - - 52 ) * - + 97 - 10 DIV - COUNT( * ) AS col1, CAST( NULL AS SIGNED )
----
5054
NULL

skipif mysql # not compatible
query II rowsort label-6639
SELECT - ( - - 52 ) * - + 97 - 10 / - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER )
----
5054
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL + COUNT( * ) + - 98 + + 3
----
-94

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL + COUNT ( * ) + - 98 + + 3
----
-94

query I rowsort
SELECT DISTINCT ( + 91 ) AS col2
----
91

query I rowsort
SELECT ALL + 81 + + CASE + - 82 WHEN + 80 THEN - + 55 / - 66 * + 71 END
----
NULL

query I rowsort
SELECT ALL - 27 + 22 + - + 73 * 59 AS col1
----
-4312

query I rowsort
SELECT - 55 + 60
----
5

query I rowsort
SELECT ALL + 82 + 38 * 22 AS col1
----
918

query I rowsort
SELECT - 8 + 62
----
54

query I rowsort
SELECT DISTINCT NULLIF ( - 7, 29 ) AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT - 96 DIV + 36 - 93
----
-95

skipif mysql # not compatible
query I rowsort label-6648
SELECT - 96 / + 36 - 93
----
-95

query I rowsort
SELECT + 60 * 3
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6650
SELECT ALL - SUM( 59 ) DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL - SUM ( 59 ) / 89 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT DISTINCT + CAST( 14 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT + CAST ( 14 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT - COUNT( * ) * + 61 + + 64
----
3

skipif mysql # not compatible
query I rowsort label-6652
SELECT - COUNT ( * ) * + 61 + + 64
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT - NULLIF ( + 64, - 7 * CAST( 85 AS SIGNED ) + COUNT( * ) ) * + 33 + 16 * + 92
----
-640

skipif mysql # not compatible
query I rowsort label-6653
SELECT - NULLIF ( + 64, - 7 * CAST ( 85 AS INTEGER ) + COUNT ( * ) ) * + 33 + 16 * + 92
----
-640

query I rowsort
SELECT ( 7 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + NULLIF ( - 22, COUNT( * ) + + 55 )
----
-22

skipif mysql # not compatible
query I rowsort label-6655
SELECT + NULLIF ( - 22, COUNT ( * ) + + 55 )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT 19 DIV 16 + 22 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6656
SELECT 19 / 16 + 22 AS col1
----
23

query I rowsort
SELECT + NULLIF ( - 47, 20 - + 1 ) * 95
----
-4465

query I rowsort
SELECT + 18 + 61 AS col2
----
79

query I rowsort
SELECT ALL - 19 * - 55 AS col1
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT + 35 * MAX( 97 )
----
3395

skipif mysql # not compatible
query I rowsort label-6660
SELECT + 35 * MAX ( 97 )
----
3395

query I rowsort
SELECT DISTINCT + 87 * - 99 - 4 AS col0
----
-8617

query I rowsort
SELECT + 70 * 51 AS col2
----
3570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6663
SELECT COALESCE ( 67, + ( 61 ) + 73 ) * - COUNT( * ) + COALESCE ( - 89 + - 50, + 36 * 67 + - 71, 6 DIV MIN( + 84 ) + - 73 )
----
-206

skipif mysql # not compatible
query I rowsort label-6663
SELECT COALESCE ( 67, + ( 61 ) + 73 ) * - COUNT ( * ) + COALESCE ( - 89 + - 50, + 36 * 67 + - 71, 6 / MIN ( + 84 ) + - 73 )
----
-206

query I rowsort
SELECT COALESCE ( - 63, - ( 17 ) * 91 + + 73, 53 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6665
SELECT + MIN( 53 ) + - NULLIF ( + ( - CAST( + 44 AS SIGNED ) ), + ( + COUNT( * ) ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6665
SELECT + MIN ( 53 ) + - NULLIF ( + ( - CAST ( + 44 AS INTEGER ) ), + ( + COUNT ( * ) ) ) AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT CASE 91 WHEN 39 THEN NULL ELSE ( - CAST( + 85 AS SIGNED ) ) END
----
-85

skipif mysql # not compatible
query I rowsort label-6666
SELECT CASE 91 WHEN 39 THEN NULL ELSE ( - CAST ( + 85 AS INTEGER ) ) END
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6667
SELECT + ( COALESCE ( ( - 83 ), - 74 * + CAST( NULL AS SIGNED ) ) )
----
-83

skipif mysql # not compatible
query I rowsort label-6667
SELECT + ( COALESCE ( ( - 83 ), - 74 * + CAST ( NULL AS INTEGER ) ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT + 40 + ( - 57 - COUNT( * ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6668
SELECT + 40 + ( - 57 - COUNT ( * ) ) AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT + NULLIF ( 84, 12 * CAST( + 6 * 95 AS SIGNED ) + - ( + 52 ) )
----
84

skipif mysql # not compatible
query I rowsort label-6669
SELECT + NULLIF ( 84, 12 * CAST ( + 6 * 95 AS INTEGER ) + - ( + 52 ) )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT + 58 DIV - 1
----
-58

skipif mysql # not compatible
query I rowsort label-6670
SELECT + 58 / - 1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT + 12 * - 6 + + 36 DIV 81
----
-72

skipif mysql # not compatible
query I rowsort label-6671
SELECT + 12 * - 6 + + 36 / 81
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT + 75 * 43 + SUM( 28 + 79 ) col1
----
3332

skipif mysql # not compatible
query I rowsort label-6672
SELECT + 75 * 43 + SUM ( 28 + 79 ) col1
----
3332

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6673
SELECT ALL COUNT( * ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL COUNT ( * ) / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6674
SELECT + 22 DIV + 68 col0
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT + 22 / + 68 col0
----
0

query I rowsort
SELECT DISTINCT 6 * 57 + 36 * 26
----
1278

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL + SUM( 91 ) * - 45 AS col0
----
-4095

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL + SUM ( 91 ) * - 45 AS col0
----
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT - MIN( ALL 44 ) * - 13
----
572

skipif mysql # not compatible
query I rowsort label-6677
SELECT - MIN ( ALL 44 ) * - 13
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL - CASE 45 WHEN 49 - 56 THEN + 38 * 77 WHEN - 37 THEN NULL END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL - CASE 45 WHEN 49 - 56 THEN + 38 * 77 WHEN - 37 THEN NULL END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT - MIN( ( ( 67 ) ) ) + 78 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6679
SELECT - MIN ( ( ( 67 ) ) ) + 78 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT DISTINCT 97 + SUM( DISTINCT 53 )
----
150

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT 97 + SUM ( DISTINCT 53 )
----
150

query I rowsort
SELECT - 68 + + 89
----
21

query I rowsort
SELECT ALL + 95 + ( 31 )
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6683
SELECT - CAST( + 54 AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6683
SELECT - CAST ( + 54 AS INTEGER ) AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6684
SELECT - CAST( + SUM( 14 ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-6684
SELECT - CAST ( + SUM ( 14 ) AS INTEGER )
----
-14

query I rowsort
SELECT + 14 - + 5 * 42
----
-196

query I rowsort
SELECT - ( - 6 ) - - 3
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT ALL MAX( DISTINCT CAST( 71 AS SIGNED ) )
----
71

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL MAX ( DISTINCT CAST ( 71 AS INTEGER ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL + + MIN( DISTINCT 4 ) - 33
----
-29

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL + + MIN ( DISTINCT 4 ) - 33
----
-29

query I rowsort
SELECT - 20 + - 11 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT - + CASE - MAX( 16 ) WHEN COUNT( * ) - + 2 THEN NULL WHEN - 90 * + 88 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT - + CASE - MAX ( 16 ) WHEN COUNT ( * ) - + 2 THEN NULL WHEN - 90 * + 88 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6691
SELECT DISTINCT - - CAST( 74 AS SIGNED ) * 42
----
3108

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - - CAST ( 74 AS INTEGER ) * 42
----
3108

query I rowsort
SELECT ALL + 20 - 64 AS col2
----
-44

query I rowsort
SELECT - 77 * - 66
----
5082

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6694
SELECT - + COUNT( * ) DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-6694
SELECT - + COUNT ( * ) / 68
----
0

query I rowsort
SELECT DISTINCT - - 88 * 87
----
7656

query I rowsort
SELECT + - 59 + 70 AS col2
----
11

query I rowsort
SELECT + 74 * 46
----
3404

query I rowsort
SELECT ALL - + ( 91 ) * + 15
----
-1365

query I rowsort
SELECT - 36 * - ( 62 + + 8 ) col1
----
2520

onlyif mysql # DIV for integer division: 
query I rowsort label-6700
SELECT - + 40 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-6700
SELECT - + 40 / - 68
----
0

query I rowsort
SELECT DISTINCT 89 * 72
----
6408

query I rowsort
SELECT - 93 + 13 AS col1
----
-80

query I rowsort
SELECT + 16 - 88
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ALL 99 + - - 43 + + COUNT( * ) * 51 AS col0
----
193

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL 99 + - - 43 + + COUNT ( * ) * 51 AS col0
----
193

query I rowsort
SELECT + 71 * 59 + + 76
----
4265

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL + 25 + - COUNT( DISTINCT ( 36 ) )
----
24

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL + 25 + - COUNT ( DISTINCT ( 36 ) )
----
24

query I rowsort
SELECT DISTINCT - ( + + 89 ) * ( 17 ) AS col0
----
-1513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6708
SELECT 67 + + COUNT( * ) DIV 11 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6708
SELECT 67 + + COUNT ( * ) / 11 AS col2
----
67

query I rowsort
SELECT ALL 92 + + + 25 AS col2
----
117

query I rowsort
SELECT ALL - 53 * 10 AS col0
----
-530

query I rowsort
SELECT ( 47 ) - 67 * + 81 AS col1
----
-5380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6712
SELECT 57 + + CAST( 45 AS SIGNED ) * - 64
----
-2823

skipif mysql # not compatible
query I rowsort label-6712
SELECT 57 + + CAST ( 45 AS INTEGER ) * - 64
----
-2823

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT MIN( ALL 95 ) - 28
----
67

skipif mysql # not compatible
query I rowsort label-6713
SELECT MIN ( ALL 95 ) - 28
----
67

query I rowsort
SELECT 92 + + - 58 AS col2
----
34

query I rowsort
SELECT ALL 97 - + 78 * - 98 AS col2
----
7741

query I rowsort
SELECT ALL + ( + CASE 23 WHEN + 70 + + 63 * ( 35 ) THEN NULL ELSE 0 END ) * - 42 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT COALESCE ( - SUM( DISTINCT - 28 ), ( + 68 ) * + 18 ) * - 36 AS col0
----
-1008

skipif mysql # not compatible
query I rowsort label-6717
SELECT COALESCE ( - SUM ( DISTINCT - 28 ), ( + 68 ) * + 18 ) * - 36 AS col0
----
-1008

query I rowsort
SELECT ALL 90 * - - ( + 37 )
----
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT DISTINCT MIN( DISTINCT + + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT MIN ( DISTINCT + + 58 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6720
SELECT - 9 * + 69 - 19 DIV - COUNT( * ) col2
----
-602

skipif mysql # not compatible
query I rowsort label-6720
SELECT - 9 * + 69 - 19 / - COUNT ( * ) col2
----
-602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT - 48 + 97 * CAST( 14 * 5 AS SIGNED )
----
6742

skipif mysql # not compatible
query I rowsort label-6721
SELECT - 48 + 97 * CAST ( 14 * 5 AS INTEGER )
----
6742

query I rowsort
SELECT ALL + 49 * + 10 + 46 AS col2
----
536

query I rowsort
SELECT 4 + 77 * - 18 AS col2
----
-1382

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT + 75 * - COUNT( * ) * 1
----
-75

skipif mysql # not compatible
query I rowsort label-6724
SELECT + 75 * - COUNT ( * ) * 1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT + 98 + - MIN( DISTINCT + 38 ) + - 72
----
-12

skipif mysql # not compatible
query I rowsort label-6725
SELECT + 98 + - MIN ( DISTINCT + 38 ) + - 72
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL - SUM( ALL + - 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - SUM ( ALL + - 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6727
SELECT 42 + 25 + COUNT( * ) DIV - 4 col1
----
67

skipif mysql # not compatible
query I rowsort label-6727
SELECT 42 + 25 + COUNT ( * ) / - 4 col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6728
SELECT - 89 DIV - 63 + + 44 * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6728
SELECT - 89 / - 63 + + 44 * + COUNT ( * )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6729
SELECT COUNT( * ) * + CAST( ( + COUNT( * ) ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6729
SELECT COUNT ( * ) * + CAST ( ( + COUNT ( * ) ) AS INTEGER ) col1
----
1

query I rowsort
SELECT + 47 + - 45 AS col0
----
2

query I rowsort
SELECT ALL + 73 * - 34 * - 7
----
17374

query I rowsort
SELECT - 14 * - + 83 + 74 * + 88
----
7674

onlyif mysql # DIV for integer division: 
query I rowsort label-6733
SELECT + 97 * + 98 + + 81 DIV - 24 col0
----
9503

skipif mysql # not compatible
query I rowsort label-6733
SELECT + 97 * + 98 + + 81 / - 24 col0
----
9503

query I rowsort
SELECT DISTINCT - - 39 col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6735
SELECT ALL + 23 + CASE - COALESCE ( 69, - 65, - 42 ) WHEN + 33 * - CASE 34 WHEN COALESCE ( - 85, - MAX( - 74 ) * NULLIF ( + COUNT( * ) - + MAX( + 62 + ( - 5 ) * 81 ) / COUNT( * ), CAST( 72 AS SIGNED ) * 65 - - 72 ) ) THEN NULL WHEN 84 + + AVG ( 66 + - 79 / CASE + 77 WHEN 46 - + 30 THEN - ( + 48 ) + + 22 WHEN + 37 + 33 THEN NULL END ) * + CAST( 43 - - 91 AS SIGNED ) THEN 66 / MAX( DISTINCT - 51 ) END THEN 27 + + COUNT( * ) WHEN ( 62 ) + - 82 * COALESCE ( 90, 8 ) THEN + COUNT( * ) / 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL + 23 + CASE - COALESCE ( 69, - 65, - 42 ) WHEN + 33 * - CASE 34 WHEN COALESCE ( - 85, - MAX ( - 74 ) * NULLIF ( + COUNT ( * ) - + MAX ( + 62 + ( - 5 ) * 81 ) / COUNT ( * ), CAST ( 72 AS INTEGER ) * 65 - - 72 ) ) THEN NULL WHEN 84 + + AVG ( 66 + - 79 / CASE + 77 WHEN 46 - + 30 THEN - ( + 48 ) + + 22 WHEN + 37 + 33 THEN NULL END ) * + CAST ( 43 - - 91 AS INTEGER ) THEN 66 / MAX ( DISTINCT - 51 ) END THEN 27 + + COUNT ( * ) WHEN ( 62 ) + - 82 * COALESCE ( 90, 8 ) THEN + COUNT ( * ) / 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + 14 + + - ( + SUM( 57 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-6736
SELECT + 14 + + - ( + SUM ( 57 ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT + + 11 * + + 53 - MIN( 74 ) - MIN( 14 )
----
495

skipif mysql # not compatible
query I rowsort label-6737
SELECT + + 11 * + + 53 - MIN ( 74 ) - MIN ( 14 )
----
495

query I rowsort
SELECT 57 + + + 43 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT DISTINCT + ( + - 80 ) * - - COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT + ( + - 80 ) * - - COUNT ( * ) AS col0
----
-80

query I rowsort
SELECT ALL + 30 + - + 14 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT 73 * + + 97 * + MAX( 81 ) AS col2
----
573561

skipif mysql # not compatible
query I rowsort label-6741
SELECT 73 * + + 97 * + MAX ( 81 ) AS col2
----
573561

query II rowsort
SELECT + 26 AS col0, 49 AS col0
----
26
49

query I rowsort
SELECT ALL - 67 + + 2 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-6744
SELECT 9, SUM( ALL + + 60 ) AS col0
----
9
60

skipif mysql # not compatible
query II rowsort label-6744
SELECT 9, SUM ( ALL + + 60 ) AS col0
----
9
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6745
SELECT 57 DIV 25 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6745
SELECT 57 / 25 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT MIN( CAST( NULLIF ( 84, - 10 ) AS SIGNED ) ) + - 19 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6746
SELECT MIN ( CAST ( NULLIF ( 84, - 10 ) AS INTEGER ) ) + - 19 AS col1
----
65

query I rowsort
SELECT ALL + 94 + - 10 * 73 AS col1
----
-636

query I rowsort
SELECT 63 * + - 63 AS col0
----
-3969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6749
SELECT 52 col0, COALESCE ( + + 82, + CAST( NULL AS SIGNED ) + 36, COUNT( * ) ) * 18 col1
----
52
1476

skipif mysql # not compatible
query II rowsort label-6749
SELECT 52 col0, COALESCE ( + + 82, + CAST ( NULL AS INTEGER ) + 36, COUNT ( * ) ) * 18 col1
----
52
1476

query I rowsort
SELECT 2 + - + 55 AS col2
----
-53

query I rowsort
SELECT ALL - 22 * 2
----
-44

query II rowsort
SELECT 33 AS col0, - 51 AS col0
----
33
-51

query I rowsort
SELECT + 28 * - 10 + + 63 + + 83
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL COUNT( * ) * - 62 * + 81 col0
----
-5022

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL COUNT ( * ) * - 62 * + 81 col0
----
-5022

query II rowsort
SELECT - 7, + 44 + 63 AS col2
----
-7
107

query I rowsort
SELECT DISTINCT + 5 * + 12 AS col1
----
60

query I rowsort
SELECT DISTINCT - 50 - - 86 * + - 7 AS col0
----
-652

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT 88 * + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-6758
SELECT 88 * + - COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT COALESCE ( - + COUNT( * ), - - COUNT( * ), - MIN( ALL 62 ) ) + 5 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6759
SELECT COALESCE ( - + COUNT ( * ), - - COUNT ( * ), - MIN ( ALL 62 ) ) + 5 AS col0
----
4

query II rowsort
SELECT ALL 54 AS col2, 56 * - 67
----
54
-3752

query I rowsort
SELECT - 95 * + + 1 AS col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT ALL 65 DIV + - 84 + - NULLIF ( + 42, + 90 * 27 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL 65 / + - 84 + - NULLIF ( + 42, + 90 * 27 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT + COALESCE ( COUNT( * ), + 35 ) * CASE ( COUNT( * ) ) * - 5 + 8 WHEN - 35 THEN 80 * 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT + COALESCE ( COUNT ( * ), + 35 ) * CASE ( COUNT ( * ) ) * - 5 + 8 WHEN - 35 THEN 80 * 27 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 88 + + 48
----
136

query I rowsort
SELECT + + 7 * - 49 AS col1
----
-343

query I rowsort
SELECT ALL + 44 * + + ( 13 )
----
572

query I rowsort
SELECT + - 38 * + 61 + 39
----
-2279

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT - - COUNT( * ) * - - 63
----
63

skipif mysql # not compatible
query I rowsort label-6768
SELECT - - COUNT ( * ) * - - 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT - MAX( DISTINCT + ( + 23 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-6769
SELECT - MAX ( DISTINCT + ( + 23 ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL - MAX( 12 ) * + COUNT( * ) * 41 + 69 * - 42
----
-3390

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL - MAX ( 12 ) * + COUNT ( * ) * 41 + 69 * - 42
----
-3390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6771
SELECT ALL 72 * + CAST( NULL AS SIGNED ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL 72 * + CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT DISTINCT + - MIN( DISTINCT - + 48 ) * + 78 / - COUNT( * ) + CASE - 56 WHEN 85 THEN - 47 END / 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT + - MIN ( DISTINCT - + 48 ) * + 78 / - COUNT ( * ) + CASE - 56 WHEN 85 THEN - 47 END / 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL COUNT( - 25 ) * + 21 + 96
----
117

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL COUNT ( - 25 ) * + 21 + 96
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT CASE - COUNT( * ) WHEN + 27 + - 23 THEN + 73 WHEN 37 * 76 THEN NULL ELSE 35 END AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6774
SELECT CASE - COUNT ( * ) WHEN + 27 + - 23 THEN + 73 WHEN 37 * 76 THEN NULL ELSE 35 END AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT DISTINCT 13 * MIN( DISTINCT + 24 ) + - 5
----
307

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT 13 * MIN ( DISTINCT + 24 ) + - 5
----
307

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL ( + 68 ) * 55 + + + 62 + COUNT( * ) AS col0
----
3803

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL ( + 68 ) * 55 + + + 62 + COUNT ( * ) AS col0
----
3803

query I rowsort
SELECT - ( 88 ) * - 89 AS col2
----
7832

query I rowsort
SELECT + CASE + - 55 WHEN - - 74 THEN + 82 * + AVG ( ALL + 78 ) WHEN 39 + 35 THEN NULL ELSE 86 + 78 END AS col1
----
164

query I rowsort
SELECT + 45 + 1 - - ( 11 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6780
SELECT + COALESCE ( 84, - 28 + + - 41 DIV - 63 )
----
84

skipif mysql # not compatible
query I rowsort label-6780
SELECT + COALESCE ( 84, - 28 + + - 41 / - 63 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT + COALESCE ( + ( 19 ), - + 97, 91 + 76 DIV + ( 69 * + 27 ) ) + 9 DIV ( + 73 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6781
SELECT + COALESCE ( + ( 19 ), - + 97, 91 + 76 / + ( 69 * + 27 ) ) + 9 / ( + 73 ) AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6782
SELECT COALESCE ( + COUNT( * ), - + 30 * + 37 + - MIN( ALL CASE 19 WHEN + 81 - - ( 21 ) THEN NULL ELSE - ( 87 ) END - + 96 DIV 46 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6782
SELECT COALESCE ( + COUNT ( * ), - + 30 * + 37 + - MIN ( ALL CASE 19 WHEN + 81 - - ( 21 ) THEN NULL ELSE - ( 87 ) END - + 96 / 46 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6783
SELECT + ( 59 ) - + CAST( + + 52 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-6783
SELECT + ( 59 ) - + CAST ( + + 52 AS INTEGER )
----
7

query I rowsort
SELECT NULLIF ( - 11, 52 + ( 48 ) + 31 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT 99 * ( 22 ) + 73 + + COUNT( * )
----
2252

skipif mysql # not compatible
query I rowsort label-6785
SELECT 99 * ( 22 ) + 73 + + COUNT ( * )
----
2252

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT + COUNT( * ) * + + 8 + - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6786
SELECT + COUNT ( * ) * + + 8 + - COUNT ( * ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT ALL + CAST( + + 43 AS SIGNED ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + CAST ( + + 43 AS INTEGER ) AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6788
SELECT ALL + 91 * - 52 * + ( - + 47 ) DIV + COUNT( * )
----
222404

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL + 91 * - 52 * + ( - + 47 ) / + COUNT ( * )
----
222404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6789
SELECT ALL - COALESCE ( - 54, + + 46 * 88 - COUNT( * ) ) DIV + 14
----
3

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - COALESCE ( - 54, + + 46 * 88 - COUNT ( * ) ) / + 14
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT - 61 - + 62 + MAX( ALL 18 ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-6790
SELECT - 61 - + 62 + MAX ( ALL 18 ) AS col2
----
-105

query I rowsort
SELECT - 79 * - - 52 AS col2
----
-4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT - 80 * - COUNT( * ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT - 80 * - COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - ( 36 ) * - ( - 72 ) + 72
----
-2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT ALL CASE - 82 WHEN + 73 THEN 57 WHEN 74 / 20 THEN NULL WHEN + 62 / 64 + 27 THEN NULL ELSE - 25 / CAST( NULL AS SIGNED ) + + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL CASE - 82 WHEN + 73 THEN 57 WHEN 74 / 20 THEN NULL WHEN + 62 / 64 + 27 THEN NULL ELSE - 25 / CAST ( NULL AS INTEGER ) + + 89 END
----
NULL

query I rowsort
SELECT - 57 + 84 * + 6 AS col2
----
447

query I rowsort
SELECT - - 77 * + 55 - + 77 AS col1
----
4158

query I rowsort
SELECT - 71 + + 40 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL - - NULLIF ( COUNT( * ), - 56 ) + + CASE - ( 6 ) WHEN 74 * 91 THEN + 18 END + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL - - NULLIF ( COUNT ( * ), - 56 ) + + CASE - ( 6 ) WHEN 74 * 91 THEN + 18 END + 52
----
NULL

query I rowsort
SELECT ALL + 17 + + 42 + + 73
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT + COUNT( * ) * 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6800
SELECT + COUNT ( * ) * 57 AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6801
SELECT DISTINCT + - 1 + + - NULLIF ( - - CASE - + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) * - 9 THEN - COALESCE ( 51, COUNT( * ), 36 + - MAX( 3 ) * + 93 ) WHEN + COUNT( * ) THEN NULL WHEN 7 THEN NULL ELSE 32 END, - 86 )
----
-33

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT + - 1 + + - NULLIF ( - - CASE - + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) * - 9 THEN - COALESCE ( 51, COUNT ( * ), 36 + - MAX ( 3 ) * + 93 ) WHEN + COUNT ( * ) THEN NULL WHEN 7 THEN NULL ELSE 32 END, - 86 )
----
-33

query I rowsort
SELECT - - 42 + + 6 - ( 29 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT + - 78 + - - COUNT( DISTINCT 3 )
----
-77

skipif mysql # not compatible
query I rowsort label-6803
SELECT + - 78 + - - COUNT ( DISTINCT 3 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT DISTINCT + COUNT( - + 63 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT + COUNT ( - + 63 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT ALL CAST( + 53 AS SIGNED ) + - - 75 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL CAST ( + 53 AS INTEGER ) + - - 75 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT - MIN( - 72 ) + - 50 + + 80 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-6806
SELECT - MIN ( - 72 ) + - 50 + + 80 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT - SUM( - 48 ) + - COUNT( * ) * + + 73
----
-25

skipif mysql # not compatible
query I rowsort label-6807
SELECT - SUM ( - 48 ) + - COUNT ( * ) * + + 73
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT DISTINCT SUM( 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT SUM ( 35 ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6809
SELECT DISTINCT + CAST( ( + 45 ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT + CAST ( ( + 45 ) AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL - CASE + + 77 WHEN + 99 * + 66 THEN NULL WHEN 88 THEN - 27 * 23 ELSE NULL END + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL - CASE + + 77 WHEN + 99 * + 66 THEN NULL WHEN 88 THEN - 27 * 23 ELSE NULL END + + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT + - 26 + 16 AS col0
----
-10

query I rowsort
SELECT ALL + - 47 + + 1
----
-46

query I rowsort
SELECT DISTINCT 83 + - 63 * + ( 19 )
----
-1114

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT ( + 71 ) DIV + 46 + 68 + - + 84 * + 87
----
-7239

skipif mysql # not compatible
query I rowsort label-6814
SELECT ( + 71 ) / + 46 + 68 + - + 84 * + 87
----
-7239

query I rowsort
SELECT ALL 81 * - 49
----
-3969

query I rowsort
SELECT ALL 40 * + 50
----
2000

query I rowsort
SELECT + ( + 98 ) + - 18 * + + 65
----
-1072

query I rowsort
SELECT + 22 * + 21
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT 4 * CASE 60 WHEN - + 15 * + 39 THEN NULL ELSE - 66 END * 83 + COUNT( * ) * 24
----
-21888

skipif mysql # not compatible
query I rowsort label-6819
SELECT 4 * CASE 60 WHEN - + 15 * + 39 THEN NULL ELSE - 66 END * 83 + COUNT ( * ) * 24
----
-21888

query I rowsort
SELECT + COALESCE ( + 7, + ( + + 25 ) - - - 88 ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6821
SELECT CAST( + + MAX( ALL + 93 ) AS SIGNED ) col1
----
93

skipif mysql # not compatible
query I rowsort label-6821
SELECT CAST ( + + MAX ( ALL + 93 ) AS INTEGER ) col1
----
93

query I rowsort
SELECT + ( 97 ) + + ( - ( - ( 75 ) ) ) * + 66
----
5047

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT ALL + MAX( DISTINCT 46 )
----
46

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL + MAX ( DISTINCT 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT DISTINCT 39 * NULLIF ( + COALESCE ( - 89, + - 24 ), - COUNT( * ) * 30 ) * 67 AS col0
----
-232557

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT 39 * NULLIF ( + COALESCE ( - 89, + - 24 ), - COUNT ( * ) * 30 ) * 67 AS col0
----
-232557

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT ALL + 27 AS col1, + SUM( + - 99 ) + - + 24 * - 36
----
27
765

skipif mysql # not compatible
query II rowsort label-6825
SELECT ALL + 27 AS col1, + SUM ( + - 99 ) + - + 24 * - 36
----
27
765

query I rowsort
SELECT ( + + 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT 68 * - COUNT( * ) * 46 * + 80 * - 80 + - 53 AS col0
----
20019147

skipif mysql # not compatible
query I rowsort label-6827
SELECT 68 * - COUNT ( * ) * 46 * + 80 * - 80 + - 53 AS col0
----
20019147

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT + 49 DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6828
SELECT + 49 / + 80 AS col0
----
0

query I rowsort
SELECT - 55 * - 27 * + + 34 AS col0
----
50490

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT 61 * + 28 * COUNT( * )
----
1708

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT 61 * + 28 * COUNT ( * )
----
1708

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL + MAX( + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + MAX ( + 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6832
SELECT + CAST( ( 28 ) AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-6832
SELECT + CAST ( ( 28 ) AS INTEGER )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT - 70 * 3 + - 94 * - 88 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT - 70 * 3 + - 94 * - 88 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT - 71 * 78 + + 97 * COUNT( * ) + + COALESCE ( 12, - 31 - 12 )
----
-5429

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT - 71 * 78 + + 97 * COUNT ( * ) + + COALESCE ( 12, - 31 - 12 )
----
-5429

query I rowsort
SELECT DISTINCT - 79 + - - NULLIF ( - 51, + - 3 ) AS col2
----
-130

query I rowsort
SELECT ALL + - 66 + 10 AS col2
----
-56

query I rowsort
SELECT - 86 + - 68 AS col0
----
-154

query II rowsort
SELECT 25 AS col2, - 47 - + 26
----
25
-73

query I rowsort
SELECT 87 * 29 AS col2
----
2523

query I rowsort
SELECT 17 + - 12
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT + 53 DIV + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6841
SELECT + 53 / + COUNT ( * ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT - SUM( + 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6842
SELECT - SUM ( + 61 ) AS col2
----
-61

query I rowsort
SELECT + CASE 97 WHEN - CASE - ( - 80 ) WHEN 16 + + 7 THEN ( - 48 ) WHEN - COALESCE ( 34, + 62 - 93 ) + - 75 THEN + 60 WHEN + 68 * + 89 THEN NULL ELSE NULL END THEN 57 WHEN 55 THEN + 45 END * 84
----
NULL

query I rowsort
SELECT 66 - 14 * + 66
----
-858

onlyif mysql # aggregate syntax: 
query III rowsort label-6845
SELECT - 46 AS col0, 54 + + COUNT( * ) AS col0, - 68 - - + 54
----
-46
55
-14

skipif mysql # not compatible
query III rowsort label-6845
SELECT - 46 AS col0, 54 + + COUNT ( * ) AS col0, - 68 - - + 54
----
-46
55
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL - - 95 + MIN( - 13 )
----
82

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - - 95 + MIN ( - 13 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL - + COUNT( * ) + NULLIF ( 24, COUNT( * ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - + COUNT ( * ) + NULLIF ( 24, COUNT ( * ) ) AS col1
----
23

query I rowsort
SELECT + ( + + 19 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6849
SELECT ALL 33 - + - 56 * 70 DIV 25 col2
----
189

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL 33 - + - 56 * 70 / 25 col2
----
189

query I rowsort
SELECT - 3 * - 20 AS col1
----
60

query I rowsort
SELECT DISTINCT - 33 * + 28 AS col1
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT + MAX( + + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-6852
SELECT + MAX ( + + 4 )
----
4

query I rowsort
SELECT 63 * + - 12 * 86 AS col1
----
-65016

query II rowsort
SELECT 62 AS col2, + 41 * - 81
----
62
-3321

query I rowsort
SELECT DISTINCT 93 - 77
----
16

query I rowsort
SELECT 76 * - 51
----
-3876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6857
SELECT DISTINCT - COUNT( * ) AS col0, CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6857
SELECT DISTINCT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT 2 * - - 14 AS col1
----
28

query I rowsort
SELECT ALL 80 * - NULLIF ( 34, + 60 * - - 34 + + 48 ) AS col0
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT SUM( DISTINCT + 80 ) * ( - 17 ) AS col0
----
-1360

skipif mysql # not compatible
query I rowsort label-6860
SELECT SUM ( DISTINCT + 80 ) * ( - 17 ) AS col0
----
-1360

query I rowsort
SELECT 91 + - 98
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT COUNT( * ) * ( + + 83 ) * 63
----
5229

skipif mysql # not compatible
query I rowsort label-6862
SELECT COUNT ( * ) * ( + + 83 ) * 63
----
5229

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT 48, COUNT( 30 ) col2
----
48
1

skipif mysql # not compatible
query II rowsort label-6863
SELECT 48, COUNT ( 30 ) col2
----
48
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6864
SELECT COUNT( * ) DIV + 18 * 92
----
0

skipif mysql # not compatible
query I rowsort label-6864
SELECT COUNT ( * ) / + 18 * 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT 7 + + + CASE - + 40 WHEN - + 96 THEN NULL WHEN + + 4 * + COUNT( * ) THEN + 94 * 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6865
SELECT 7 + + + CASE - + 40 WHEN - + 96 THEN NULL WHEN + + 4 * + COUNT ( * ) THEN + 94 * 79 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6866
SELECT DISTINCT - 92 + + CAST( - 26 AS SIGNED )
----
-118

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - 92 + + CAST ( - 26 AS INTEGER )
----
-118

query I rowsort
SELECT DISTINCT 73 + - 41 + + 21
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6868
SELECT 10 * + - CAST( + 18 AS DECIMAL ) * + CAST( NULL AS DECIMAL ) - 68 + - 19 * 76 + - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT 10 * + - CAST ( + 18 AS REAL ) * + CAST ( NULL AS REAL ) - 68 + - 19 * 76 + - 70 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 71, - 28 / - + 13 + 14 )
----
71

query I rowsort
SELECT DISTINCT 88 + - - 44 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT ALL + 92 + - + 38 + 94 - + SUM( ALL 17 ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL + 92 + - + 38 + 94 - + SUM ( ALL 17 ) AS col1
----
131

query II rowsort
SELECT ALL - 7, 33 AS col1
----
-7
33

query I rowsort
SELECT - 75 - - + 43 AS col1
----
-32

query II rowsort
SELECT DISTINCT - - 49, 74 * 86 AS col0
----
49
6364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT DISTINCT - CASE - + ( - + ( - 38 ) ) WHEN - COALESCE ( - CAST( - 8 AS SIGNED ), - 98 + 15 * 21 ) + + 50 * 17 THEN + 54 * 67 WHEN + 61 * MAX( ALL 12 ) + + 57 THEN NULL ELSE NULL END + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - CASE - + ( - + ( - 38 ) ) WHEN - COALESCE ( - CAST ( - 8 AS INTEGER ), - 98 + 15 * 21 ) + + 50 * 17 THEN + 54 * 67 WHEN + 61 * MAX ( ALL 12 ) + + 57 THEN NULL ELSE NULL END + 93
----
NULL

query I rowsort
SELECT + 42 * + 76 AS col1
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT ALL MAX( DISTINCT + + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL MAX ( DISTINCT + + 22 )
----
22

query II rowsort
SELECT - 2 AS col1, 59
----
-2
59

query II rowsort
SELECT - - 12 col1, + 96 AS col0
----
12
96

query I rowsort
SELECT ALL - - 96 - + + 80
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6881
SELECT + 2 AS col2, + 31 * 69 + - NULLIF ( - CAST( NULL AS SIGNED ), + - 51 / - 44 ) + - 89 * 80 AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6881
SELECT + 2 AS col2, + 31 * 69 + - NULLIF ( - CAST ( NULL AS INTEGER ), + - 51 / - 44 ) + - 89 * 80 AS col2
----
2
NULL

query II rowsort
SELECT DISTINCT 30, 6 AS col1
----
30
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT 4 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-6883
SELECT 4 / 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT ALL + + 67 DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + + 67 / + 92 AS col1
----
0

query II rowsort
SELECT ALL 14 AS col0, - 91 AS col2
----
14
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6886
SELECT - NULLIF ( - 23, - + 54 - + CASE + COUNT( * ) WHEN COALESCE ( 20, 57 * CASE + 73 WHEN 56 THEN - 31 ELSE NULL END + - SUM( 44 + 38 ), + CAST( + 96 AS SIGNED ) * + COUNT( * ) ) * + 81 + 16 THEN NULL WHEN + 20 THEN + 25 END + 62 / + 48 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6886
SELECT - NULLIF ( - 23, - + 54 - + CASE + COUNT ( * ) WHEN COALESCE ( 20, 57 * CASE + 73 WHEN 56 THEN - 31 ELSE NULL END + - SUM ( 44 + 38 ), + CAST ( + 96 AS INTEGER ) * + COUNT ( * ) ) * + 81 + 16 THEN NULL WHEN + 20 THEN + 25 END + 62 / + 48 ) AS col0
----
23

query I rowsort
SELECT 12 * 36 AS col0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT 83 + - MAX( - 12 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-6888
SELECT 83 + - MAX ( - 12 ) AS col1
----
95

query I rowsort
SELECT ALL - CASE - - 13 WHEN + 44 / - - 65 * - 28 THEN + 36 END * NULLIF ( - 70, ( 7 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT 92 + + + MAX( ALL + 8 ) - - 87 * - 63 + - ( + 80 )
----
-5461

skipif mysql # not compatible
query I rowsort label-6890
SELECT 92 + + + MAX ( ALL + 8 ) - - 87 * - 63 + - ( + 80 )
----
-5461

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT 2 + COALESCE ( COUNT( * ), 54 + - COALESCE ( + 81, + + 12, - 33 ), ( 81 ) + - 22 ) * 97
----
99

skipif mysql # not compatible
query I rowsort label-6891
SELECT 2 + COALESCE ( COUNT ( * ), 54 + - COALESCE ( + 81, + + 12, - 33 ), ( 81 ) + - 22 ) * 97
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL SUM( ALL + + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL SUM ( ALL + + 77 ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT 8 + COALESCE ( MAX( DISTINCT + + ( - 97 ) ), CAST( - 89 AS SIGNED ) + + 3 ) * - 18 AS col1
----
1754

skipif mysql # not compatible
query I rowsort label-6893
SELECT 8 + COALESCE ( MAX ( DISTINCT + + ( - 97 ) ), CAST ( - 89 AS INTEGER ) + + 3 ) * - 18 AS col1
----
1754

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL MIN( ALL + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL MIN ( ALL + 48 )
----
48

query II rowsort
SELECT ALL - 77 * 63 AS col2, - 5
----
-4851
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6896
SELECT DISTINCT - ( + 0 ) AS col0, 21 + + - 7 + 1 - MAX( DISTINCT - - 98 ) + 42 * - 31
----
0
-1385

skipif mysql # not compatible
query II rowsort label-6896
SELECT DISTINCT - ( + 0 ) AS col0, 21 + + - 7 + 1 - MAX ( DISTINCT - - 98 ) + 42 * - 31
----
0
-1385

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT 88 * - COUNT( DISTINCT - 17 ) * - 63
----
5544

skipif mysql # not compatible
query I rowsort label-6897
SELECT 88 * - COUNT ( DISTINCT - 17 ) * - 63
----
5544

query I rowsort
SELECT DISTINCT + 38 * - + ( + 70 ) + 9
----
-2651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT ALL - CAST( - 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - CAST ( - 19 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL - CASE + MIN( ALL + - 72 ) WHEN - 49 - - 32 + + CASE 38 WHEN + 76 * ( + 19 ) THEN - 1 * + COUNT( * ) END * 58 THEN 77 * 3 + + 54 * + 68 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL - CASE + MIN ( ALL + - 72 ) WHEN - 49 - - 32 + + CASE 38 WHEN + 76 * ( + 19 ) THEN - 1 * + COUNT ( * ) END * 58 THEN 77 * 3 + + 54 * + 68 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6901
SELECT DISTINCT COUNT( * ) * - + 94 * - 51 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT COUNT ( * ) * - + 94 * - 51 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL - 78 * + COUNT( * ) + + NULLIF ( - 89, + 21 ) AS col0
----
-167

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL - 78 * + COUNT ( * ) + + NULLIF ( - 89, + 21 ) AS col0
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6903
SELECT - 79 * - CAST( NULL AS SIGNED ) AS col2, CAST( COUNT( * ) AS SIGNED ) * + 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-6903
SELECT - 79 * - CAST ( NULL AS INTEGER ) AS col2, CAST ( COUNT ( * ) AS INTEGER ) * + 47
----
NULL
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT ALL + 63 * + - ( - 48 ) + - - CAST( + - 15 AS SIGNED ) + - + COALESCE ( + 55, 11 * - COALESCE ( + 5, - 25 * + 69, - ( COALESCE ( COUNT( * ), 59 ) ) ) ) + + 68 + COUNT( * )
----
3023

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL + 63 * + - ( - 48 ) + - - CAST ( + - 15 AS INTEGER ) + - + COALESCE ( + 55, 11 * - COALESCE ( + 5, - 25 * + 69, - ( COALESCE ( COUNT ( * ), 59 ) ) ) ) + + 68 + COUNT ( * )
----
3023

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL - 13 * - - ( + 72 ) * - - 8 + - - ( COALESCE ( - COUNT( * ), ( - COALESCE ( 27, + 59 * - 18, + COUNT( * ) ) ) ) ) + 7
----
-7482

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - 13 * - - ( + 72 ) * - - 8 + - - ( COALESCE ( - COUNT ( * ), ( - COALESCE ( 27, + 59 * - 18, + COUNT ( * ) ) ) ) ) + 7
----
-7482

query I rowsort
SELECT + + NULLIF ( - - NULLIF ( - 66, - + 88 ), - 19 ) * - 27 col2
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT + - 66 * + 84 + ( + NULLIF ( + COUNT( * ), - 59 ) ) * - 40
----
-5584

skipif mysql # not compatible
query I rowsort label-6907
SELECT + - 66 * + 84 + ( + NULLIF ( + COUNT ( * ), - 59 ) ) * - 40
----
-5584

onlyif mysql # DIV for integer division: 
query I rowsort label-6908
SELECT ALL - 34 * - 41 + - 40 DIV - 45
----
1394

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL - 34 * - 41 + - 40 / - 45
----
1394

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT 47 * COUNT( * ) - - - 28 * + ( ( - - COUNT( * ) ) )
----
19

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT 47 * COUNT ( * ) - - - 28 * + ( ( - - COUNT ( * ) ) )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6910
SELECT - - MIN( 28 ) * + CAST( NULL AS SIGNED ) * + 46 + 83 + + - CAST( - 5 AS SIGNED ) - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT - - MIN ( 28 ) * + CAST ( NULL AS INTEGER ) * + 46 + 83 + + - CAST ( - 5 AS INTEGER ) - - 54
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6911
SELECT + 96 * - 86 * + - NULLIF ( + - 74, - - CAST( + 4 AS DECIMAL ) / 93 ) AS col1
----
-610944

skipif mysql # not compatible
query I rowsort label-6911
SELECT + 96 * - 86 * + - NULLIF ( + - 74, - - CAST ( + 4 AS REAL ) / 93 ) AS col1
----
-610944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6912
SELECT - - 98 * + 75 + - + 90 - + + MAX( 98 ) DIV - 86
----
7261

skipif mysql # not compatible
query I rowsort label-6912
SELECT - - 98 * + 75 + - + 90 - + + MAX ( 98 ) / - 86
----
7261

query I rowsort
SELECT DISTINCT + 58 - + 32
----
26

query I rowsort
SELECT ALL - 99 * + 56 AS col2
----
-5544

onlyif mysql # aggregate syntax: 
query II rowsort label-6915
SELECT DISTINCT + 77 - - 65 + + 98, + 10 / - 91 * CASE + - 48 WHEN - COUNT( * ) THEN NULL WHEN 57 THEN COUNT( * ) + 73 END AS col2
----
240
NULL

skipif mysql # not compatible
query II rowsort label-6915
SELECT DISTINCT + 77 - - 65 + + 98, + 10 / - 91 * CASE + - 48 WHEN - COUNT ( * ) THEN NULL WHEN 57 THEN COUNT ( * ) + 73 END AS col2
----
240
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6916
SELECT ALL - MIN( - + 32 ) AS col2, - NULLIF ( + 10, COUNT( * ) + COUNT( * ) )
----
32
-10

skipif mysql # not compatible
query II rowsort label-6916
SELECT ALL - MIN ( - + 32 ) AS col2, - NULLIF ( + 10, COUNT ( * ) + COUNT ( * ) )
----
32
-10

query I rowsort
SELECT - + ( - 8 ) col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6918
SELECT + + NULLIF ( + ( + ( - + 16 ) ), 12 / - 85 * 70 * + MIN( DISTINCT - CAST( - 16 AS SIGNED ) ) ) + 40 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6918
SELECT + + NULLIF ( + ( + ( - + 16 ) ), 12 / - 85 * 70 * + MIN ( DISTINCT - CAST ( - 16 AS INTEGER ) ) ) + 40 AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6919
SELECT DISTINCT - 17 - + 76 + 95 + 71 DIV + + ( - + 92 ) + + MAX( DISTINCT 38 ) + - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT - 17 - + 76 + 95 + 71 / + + ( - + 92 ) + + MAX ( DISTINCT 38 ) + - COUNT ( * ) AS col1
----
39

query I rowsort
SELECT 47 * - 72 - + 91 + - - CASE 83 WHEN - 29 THEN + 62 / 75 WHEN 58 THEN NULL WHEN + 74 / 52 THEN NULL END + - ( + 34 ) * 87 + - 94 * - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL + CASE + COALESCE ( + AVG ( + 47 ), 77 * + 42 + + 65 / COUNT( * ) ) WHEN 85 * 33 THEN NULL WHEN 38 * - 62 THEN 31 + 34 WHEN + MAX( 91 ) * - 43 THEN 98 ELSE NULL END * - 1 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + CASE + COALESCE ( + AVG ( + 47 ), 77 * + 42 + + 65 / COUNT ( * ) ) WHEN 85 * 33 THEN NULL WHEN 38 * - 62 THEN 31 + 34 WHEN + MAX ( 91 ) * - 43 THEN 98 ELSE NULL END * - 1 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT - + MIN( 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-6922
SELECT - + MIN ( 83 )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT DISTINCT 64 DIV + - 13 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT 64 / + - 13 AS col1
----
-4

query I rowsort
SELECT ALL 81 * - + 3 AS col2
----
-243

query I rowsort
SELECT + ( - + 30 ) * 5
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT ALL SUM( ( - 85 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL SUM ( ( - 85 ) )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6927
SELECT DISTINCT CASE + + CAST( - COUNT( * ) AS SIGNED ) WHEN + + 2 THEN NULL WHEN + 69 THEN 1 ELSE + - 55 + + + COUNT( 27 ) + - SUM( CASE WHEN NOT ( NULL ) NOT IN ( - 57 ) THEN + 19 ELSE NULL END ) * MAX( + 94 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT CASE + + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + + 2 THEN NULL WHEN + 69 THEN 1 ELSE + - 55 + + + COUNT ( 27 ) + - SUM ( CASE WHEN NOT ( NULL ) NOT IN ( - 57 ) THEN + 19 ELSE NULL END ) * MAX ( + 94 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6928
SELECT + ( CAST( NULL AS SIGNED ) ) * + - 87, + 27 * - 98 * COALESCE ( 23, + 71, + COUNT( * ) ) * + 2 + 12 * + 3 AS col0
----
NULL
-121680

skipif mysql # not compatible
query II rowsort label-6928
SELECT + ( CAST ( NULL AS INTEGER ) ) * + - 87, + 27 * - 98 * COALESCE ( 23, + 71, + COUNT ( * ) ) * + 2 + 12 * + 3 AS col0
----
NULL
-121680

query I rowsort
SELECT - 63 * + + 24 col1
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL MIN( ALL + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL MIN ( ALL + 19 ) AS col0
----
19

query I rowsort
SELECT ALL - 73 + 77 + 21 AS col2
----
25

query I rowsort
SELECT - ( 64 ) col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6933
SELECT - COUNT( * ) DIV + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT - COUNT ( * ) / + 84 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6934
SELECT - 3 * 40 DIV - 72 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6934
SELECT - 3 * 40 / - 72 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6935
SELECT ALL - COUNT( * ) DIV - 52 * - 65 + + 68 * + ( - - 63 ) AS col0
----
4284

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL - COUNT ( * ) / - 52 * - 65 + + 68 * + ( - - 63 ) AS col0
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT DISTINCT + SUM( + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT + SUM ( + 13 )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT DISTINCT - 78 DIV - + 43 + - NULLIF ( - - 66, - 65 DIV 37 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT - 78 / - + 43 + - NULLIF ( - - 66, - 65 / 37 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT ALL + AVG ( + - 53 ) / - 86 + - + 80 + - 59 * - CASE + 28 WHEN - COUNT( * ) * + 74 THEN NULL WHEN 51 THEN 99 ELSE NULL END * 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL + AVG ( + - 53 ) / - 86 + - + 80 + - 59 * - CASE + 28 WHEN - COUNT ( * ) * + 74 THEN NULL WHEN 51 THEN 99 ELSE NULL END * 27 AS col0
----
NULL

query II rowsort
SELECT + 2, + 95 AS col1
----
2
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT ALL + 34 DIV 66 * 60 + + 74 col0
----
74

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + 34 / 66 * 60 + + 74 col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT - 73 - 54 + 33 * - + COUNT( * )
----
-160

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 73 - 54 + 33 * - + COUNT ( * )
----
-160

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6942
SELECT DISTINCT + COALESCE ( - ( - CAST( NULL AS SIGNED ) ), + 33, - 16 + 82 + - 31 DIV + 43 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT + COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), + 33, - 16 + 82 + - 31 / + 43 ) AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6943
SELECT 47 / + + CAST( + - 32 AS DECIMAL ) / 81 + + CAST( NULL AS SIGNED ) + 88 + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT 47 / + + CAST ( + - 32 AS REAL ) / 81 + + CAST ( NULL AS INTEGER ) + 88 + - 50
----
NULL

query II rowsort
SELECT + - 34 AS col0, 10 * - - 0 AS col0
----
-34
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6945
SELECT ALL - CAST( - 96 AS SIGNED ) * - 62 + - ( - ( + - CASE - 21 WHEN + - AVG ( ALL - 5 ) THEN COUNT( * ) END ) ) - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL - CAST ( - 96 AS INTEGER ) * - 62 + - ( - ( + - CASE - 21 WHEN + - AVG ( ALL - 5 ) THEN COUNT ( * ) END ) ) - 43
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT - ( - + 14 ) * + - 68 * + 51 DIV + 17 AS col0
----
-2856

skipif mysql # not compatible
query I rowsort label-6946
SELECT - ( - + 14 ) * + - 68 * + 51 / + 17 AS col0
----
-2856

onlyif mysql # aggregate syntax: 
query II rowsort label-6947
SELECT + 91, + COUNT( * ) * ( - + 88 ) col0
----
91
-88

skipif mysql # not compatible
query II rowsort label-6947
SELECT + 91, + COUNT ( * ) * ( - + 88 ) col0
----
91
-88

query II rowsort
SELECT DISTINCT + 67, 29 * + 44 * 97 AS col1
----
67
123772

query I rowsort
SELECT - 10 + 39 + 2 col1
----
31

query I rowsort
SELECT DISTINCT + + 89 col0
----
89

query I rowsort
SELECT ALL + - 57 * - 95 - 32 AS col1
----
5383

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT - 37 + 51 + - MIN( DISTINCT 68 )
----
-54

skipif mysql # not compatible
query I rowsort label-6952
SELECT - 37 + 51 + - MIN ( DISTINCT 68 )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6953
SELECT - - ( + 44 ) DIV COUNT( * ) AS col0, + 39 AS col1
----
44
39

skipif mysql # not compatible
query II rowsort label-6953
SELECT - - ( + 44 ) / COUNT ( * ) AS col0, + 39 AS col1
----
44
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6954
SELECT DISTINCT + + 75 * + + 12 + + 27 * + 86 * - 9 * CASE + 40 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN + 2 THEN 76 * 3 ELSE NULL END + - 9 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT + + 75 * + + 12 + + 27 * + 86 * - 9 * CASE + 40 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 2 THEN 76 * 3 ELSE NULL END + - 9 col2
----
NULL

query I rowsort
SELECT ALL + ( - 92 ) AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6956
SELECT - 26 DIV + ( + + 94 ) AS col2, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-6956
SELECT - 26 / + ( + + 94 ) AS col2, + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6957
SELECT ALL 59 col0, MAX( ALL + - 94 ) AS col2
----
59
-94

skipif mysql # not compatible
query II rowsort label-6957
SELECT ALL 59 col0, MAX ( ALL + - 94 ) AS col2
----
59
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT - MAX( ALL - 77 ) * - 24 - 90
----
-1938

skipif mysql # not compatible
query I rowsort label-6958
SELECT - MAX ( ALL - 77 ) * - 24 - 90
----
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT + ( COUNT( * ) ) * - - ( 39 ) * 40
----
1560

skipif mysql # not compatible
query I rowsort label-6959
SELECT + ( COUNT ( * ) ) * - - ( 39 ) * 40
----
1560

query I rowsort
SELECT ALL + 10 * + 82 col2
----
820

query I rowsort
SELECT + 69 * + 31 * 69
----
147591

query I rowsort
SELECT ALL 75 + 62 * - 7
----
-359

query II rowsort
SELECT DISTINCT 34 + 64 AS col2, + 44 AS col0
----
98
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT + 63 - COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6964
SELECT + 63 - COUNT ( * ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6965
SELECT ALL 69 + COUNT( * ) + + - 65 + - - 1 DIV - 66 AS col1, + 1
----
5
1

skipif mysql # not compatible
query II rowsort label-6965
SELECT ALL 69 + COUNT ( * ) + + - 65 + - - 1 / - 66 AS col1, + 1
----
5
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6966
SELECT + ( + 86 ) * + COUNT( * ) * + + 89 AS col0, CASE 96 WHEN + - 15 + COUNT( ( + 8 ) ) THEN CAST( 15 AS SIGNED ) * + 25 END AS col0
----
7654
NULL

skipif mysql # not compatible
query II rowsort label-6966
SELECT + ( + 86 ) * + COUNT ( * ) * + + 89 AS col0, CASE 96 WHEN + - 15 + COUNT ( ( + 8 ) ) THEN CAST ( 15 AS INTEGER ) * + 25 END AS col0
----
7654
NULL

query II rowsort
SELECT + 39 * - 59 AS col0, 22
----
-2301
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6968
SELECT + CAST( - COUNT( * ) AS SIGNED ) + 30 * 50 + NULLIF ( 69, + + 23 ) AS col0
----
1568

skipif mysql # not compatible
query I rowsort label-6968
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + 30 * 50 + NULLIF ( 69, + + 23 ) AS col0
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT DISTINCT CASE - COUNT( * ) WHEN + COUNT( * ) + + + ( + + NULLIF ( ( 34 ), - - 33 * 33 ) ) THEN - 6 * MAX( + 85 ) END * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT CASE - COUNT ( * ) WHEN + COUNT ( * ) + + + ( + + NULLIF ( ( 34 ), - - 33 * 33 ) ) THEN - 6 * MAX ( + 85 ) END * 40 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6970
SELECT ALL 21 + 68 + + - ( + ( - - 95 ) ) - + 28 * - 29 * + CASE + CAST( + 11 AS DECIMAL ) WHEN + COUNT( * ) * - MAX( + 96 * - 84 ) + 34 * CAST( 77 AS SIGNED ) THEN + 71 WHEN + 3 * - 58 + - ( + COALESCE ( + COUNT( * ), 31 ) ) THEN - AVG ( DISTINCT 85 ) END * COALESCE ( NULLIF ( COUNT( * ), 83 ) + - 18 * - 60, 64 * + MAX( 99 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL 21 + 68 + + - ( + ( - - 95 ) ) - + 28 * - 29 * + CASE + CAST ( + 11 AS REAL ) WHEN + COUNT ( * ) * - MAX ( + 96 * - 84 ) + 34 * CAST ( 77 AS INTEGER ) THEN + 71 WHEN + 3 * - 58 + - ( + COALESCE ( + COUNT ( * ), 31 ) ) THEN - AVG ( DISTINCT 85 ) END * COALESCE ( NULLIF ( COUNT ( * ), 83 ) + - 18 * - 60, 64 * + MAX ( 99 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6971
SELECT ALL CAST( 55 AS SIGNED ) + CASE COUNT( * ) WHEN - - 68 + - 89 THEN - 92 - - - 22 + NULLIF ( 64, 88 * 94 ) END - - 41 * 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL CAST ( 55 AS INTEGER ) + CASE COUNT ( * ) WHEN - - 68 + - 89 THEN - 92 - - - 22 + NULLIF ( 64, 88 * 94 ) END - - 41 * 77 AS col1
----
NULL

query II rowsort
SELECT ALL NULLIF ( 83, - 59 ) + 30 col0, 57 + - + 72 AS col1
----
113
-15

query I rowsort
SELECT ALL ( + 23 ) * - 61 * + 75 + 65 AS col0
----
-105160

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT 48 * - COUNT( * ) * + - 53 * 3 AS col0
----
7632

skipif mysql # not compatible
query I rowsort label-6974
SELECT 48 * - COUNT ( * ) * + - 53 * 3 AS col0
----
7632

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT DISTINCT - - 28 / + CASE - COUNT( + - ( + 40 ) ) WHEN + + 79 THEN NULL ELSE + - 80 END - + ( - 16 ) / - CASE COUNT( * ) / 13 WHEN - 44 THEN NULL WHEN 18 + 51 THEN 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT - - 28 / + CASE - COUNT ( + - ( + 40 ) ) WHEN + + 79 THEN NULL ELSE + - 80 END - + ( - 16 ) / - CASE COUNT ( * ) / 13 WHEN - 44 THEN NULL WHEN 18 + 51 THEN 12 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6976
SELECT - CAST( NULLIF ( + 23, + 81 ) AS SIGNED ) * - + 60 + + 33 + + 78 col0
----
1491

skipif mysql # not compatible
query I rowsort label-6976
SELECT - CAST ( NULLIF ( + 23, + 81 ) AS INTEGER ) * - + 60 + + 33 + + 78 col0
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT DISTINCT + 10 - + SUM( ALL 25 ) + - 31
----
-46

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT + 10 - + SUM ( ALL 25 ) + - 31
----
-46

query I rowsort
SELECT DISTINCT + + 23 * + ( - 65 ) AS col2
----
-1495

query I rowsort
SELECT - COALESCE ( 12, - ( - - 30 ) )
----
-12

query I rowsort
SELECT ALL + 17 * - 67
----
-1139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT 40 * - 25 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT 40 * - 25 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT + MIN( + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-6982
SELECT + MIN ( + 91 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT + - NULLIF ( + 5, + CAST( NULL AS SIGNED ) ) * + 38 * + COALESCE ( - + 57, + 72 * - 60 ) - - + 7
----
10837

skipif mysql # not compatible
query I rowsort label-6983
SELECT + - NULLIF ( + 5, + CAST ( NULL AS INTEGER ) ) * + 38 * + COALESCE ( - + 57, + 72 * - 60 ) - - + 7
----
10837

query I rowsort
SELECT - 64 * - - 67 + + 63 + + - 37 col0
----
-4262

query II rowsort
SELECT ALL + 65 + + 86 * - 77 * - - 8 * 85 col1, 55
----
-4502895
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL - + 97 * MAX( 20 ) AS col2
----
-1940

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL - + 97 * MAX ( 20 ) AS col2
----
-1940

query I rowsort
SELECT ( - + 13 ) col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL - + 81 + + MIN( ALL 75 )
----
-6

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL - + 81 + + MIN ( ALL 75 )
----
-6

query I rowsort
SELECT DISTINCT + 91 + - + 86
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6990
SELECT DISTINCT - COUNT( * ) DIV - ( 86 )
----
0

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - COUNT ( * ) / - ( 86 )
----
0

query I rowsort
SELECT ALL - 18 * 3
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT 34 AS col0, + 92 + + 11 / - + CASE + - 37 WHEN AVG ( + + 46 ) THEN 65 ELSE NULL END * COUNT( * ) + + 24 col1
----
34
NULL

skipif mysql # not compatible
query II rowsort label-6992
SELECT 34 AS col0, + 92 + + 11 / - + CASE + - 37 WHEN AVG ( + + 46 ) THEN 65 ELSE NULL END * COUNT ( * ) + + 24 col1
----
34
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6993
SELECT 17 DIV + COUNT( + - 0 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-6993
SELECT 17 / + COUNT ( + - 0 ) col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT COUNT( * ) + - 47 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT COUNT ( * ) + - 47 AS col0
----
-46

query II rowsort
SELECT DISTINCT 36 AS col0, 35 AS col0
----
36
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6996
SELECT DISTINCT 45 col1, + 74 - - - NULLIF ( - + 82, - 28 + + - COUNT( * ) ) AS col2
----
45
156

skipif mysql # not compatible
query II rowsort label-6996
SELECT DISTINCT 45 col1, + 74 - - - NULLIF ( - + 82, - 28 + + - COUNT ( * ) ) AS col2
----
45
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ( - + 90 ) * - 31 + + + COUNT( * )
----
2791

skipif mysql # not compatible
query I rowsort label-6997
SELECT ( - + 90 ) * - 31 + + + COUNT ( * )
----
2791

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6998
SELECT 23 * + 27 * CAST( NULL AS DECIMAL ) AS col1, ( 1 ) * - COUNT( * ) + COUNT( * ) col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6998
SELECT 23 * + 27 * CAST ( NULL AS REAL ) AS col1, ( 1 ) * - COUNT ( * ) + COUNT ( * ) col0
----
NULL
0

query I rowsort
SELECT 32 - + 12 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT 36 * + - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-7000
SELECT 36 * + - COUNT ( * )
----
-36

query I rowsort
SELECT ALL 8 * + 69 AS col1
----
552

query I rowsort
SELECT ALL - 23 * + 52 AS col2
----
-1196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT ALL + CAST( NULL AS SIGNED ) * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL + CAST ( NULL AS INTEGER ) * 57 AS col0
----
NULL

query I rowsort
SELECT 86 * 77 AS col0
----
6622

query I rowsort
SELECT DISTINCT - ( - - 89 ) * + + 80
----
-7120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7006
SELECT - SUM( DISTINCT 50 ) DIV - NULLIF ( + - 20, - 5 ) - - 72 + + ( + + 77 )
----
147

skipif mysql # not compatible
query I rowsort label-7006
SELECT - SUM ( DISTINCT 50 ) / - NULLIF ( + - 20, - 5 ) - - 72 + + ( + + 77 )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT + 42 * - 25 + + COUNT( * ) * + 23 - 13 AS col2
----
-1040

skipif mysql # not compatible
query I rowsort label-7007
SELECT + 42 * - 25 + + COUNT ( * ) * + 23 - 13 AS col2
----
-1040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7008
SELECT ( + NULLIF ( - + 73, - + 21 ) ) DIV - 6 + + SUM( ALL + + 96 )
----
108

skipif mysql # not compatible
query I rowsort label-7008
SELECT ( + NULLIF ( - + 73, - + 21 ) ) / - 6 + + SUM ( ALL + + 96 )
----
108

query I rowsort
SELECT + 51 * 45
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL + 96 + - - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + 96 + - - COUNT ( * ) AS col2
----
97

query I rowsort
SELECT + 35 + + + 43 AS col2
----
78

query I rowsort
SELECT ALL - 36 + + - 98
----
-134

query I rowsort
SELECT ALL + + 33 + 28
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT DISTINCT + 3 + + - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT + 3 + + - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT ALL ( - 9 ) * - + 91 AS col1
----
819

query I rowsort
SELECT 18 * + 95 * + 71 * - 90 * + - 61 AS col0
----
666540900

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT - 34 * MIN( DISTINCT - - 95 ) * - 57 + - 29 + - 75 + + 63 * - 23 + + 28 * + ( + 65 ) * 7 AS col2
----
195297

skipif mysql # not compatible
query I rowsort label-7017
SELECT - 34 * MIN ( DISTINCT - - 95 ) * - 57 + - 29 + - 75 + + 63 * - 23 + + 28 * + ( + 65 ) * 7 AS col2
----
195297

query II rowsort
SELECT 6 AS col0, - 21 AS col1
----
6
-21

query I rowsort
SELECT DISTINCT 51 * - 25
----
-1275

query I rowsort
SELECT - 62 * + - 6
----
372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT ALL COALESCE ( - - 91, - CAST( + 68 AS SIGNED ) + - 8 )
----
91

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL COALESCE ( - - 91, - CAST ( + 68 AS INTEGER ) + - 8 )
----
91

query II rowsort
SELECT - 30, + ( - 57 ) AS col1
----
-30
-57

query II rowsort
SELECT ALL 31 AS col0, 79
----
31
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL CASE 63 WHEN 25 + - + COUNT( * ) THEN + 72 * - - 69 - CAST( - 94 AS SIGNED ) * - - 47 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL CASE 63 WHEN 25 + - + COUNT ( * ) THEN + 72 * - - 69 - CAST ( - 94 AS INTEGER ) * - - 47 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT - SUM( ALL + 8 ) - - 25 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7025
SELECT - SUM ( ALL + 8 ) - - 25 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT SUM( ALL - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT SUM ( ALL - 41 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7027
SELECT ALL - MAX( DISTINCT - 72 ) DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL - MAX ( DISTINCT - 72 ) / - + 82
----
0

query I rowsort
SELECT - 44 + - - 77
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT ALL CASE + + NULLIF ( 6, - 24 ) WHEN + 13 * + COUNT( * ) - 42 - + - 20 + - - COALESCE ( + 51, + 48, - 79 ) THEN - CASE 39 WHEN 77 * + SUM( - 3 / 36 ) THEN AVG ( 75 ) + CASE COUNT( * ) WHEN + 94 + 43 THEN + 45 ELSE NULL END WHEN CASE + ( 0 ) WHEN 85 * + NULLIF ( SUM( ALL 92 ), 69 ) THEN NULL WHEN - 8 THEN ( + 36 ) * - 82 - ( + 36 ) ELSE 59 / 85 + 2 END THEN NULL WHEN 39 THEN NULL ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL CASE + + NULLIF ( 6, - 24 ) WHEN + 13 * + COUNT ( * ) - 42 - + - 20 + - - COALESCE ( + 51, + 48, - 79 ) THEN - CASE 39 WHEN 77 * + SUM ( - 3 / 36 ) THEN AVG ( 75 ) + CASE COUNT ( * ) WHEN + 94 + 43 THEN + 45 ELSE NULL END WHEN CASE + ( 0 ) WHEN 85 * + NULLIF ( SUM ( ALL 92 ), 69 ) THEN NULL WHEN - 8 THEN ( + 36 ) * - 82 - ( + 36 ) ELSE 59 / 85 + 2 END THEN NULL WHEN 39 THEN NULL ELSE NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT DISTINCT - ( - COUNT( * ) ) * + NULLIF ( - 42, + 29 + 95 * - 20 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT - ( - COUNT ( * ) ) * + NULLIF ( - 42, + 29 + 95 * - 20 ) AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT ALL CASE + + 2 WHEN - + 99 THEN + + 75 * CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL CASE + + 2 WHEN - + 99 THEN + + 75 * CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7032
SELECT - COUNT( * ) + - 31 + - 7 DIV + COALESCE ( + - 15, + 6 - - + 29 )
----
-32

skipif mysql # not compatible
query I rowsort label-7032
SELECT - COUNT ( * ) + - 31 + - 7 / + COALESCE ( + - 15, + 6 - - + 29 )
----
-32

query I rowsort
SELECT - 96 * 68
----
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT + COUNT( * ) * + + NULLIF ( 28, + - 1 - + 25 * 94 + - 93 * COUNT( - ( + 73 ) ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7034
SELECT + COUNT ( * ) * + + NULLIF ( 28, + - 1 - + 25 * 94 + - 93 * COUNT ( - ( + 73 ) ) ) AS col0
----
28

query I rowsort
SELECT ALL + 52 * + 57
----
2964

query I rowsort
SELECT - 14 + - - 30 + - 9 - - COALESCE ( + 40, + 82 ) + + - 52
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL + 79 - - COUNT( * ) + + 24 - 66 + - COUNT( * ) * ( + 77 ) + 66 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL + 79 - - COUNT ( * ) + + 24 - 66 + - COUNT ( * ) * ( + 77 ) + 66 AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7038
SELECT DISTINCT COALESCE ( - 7, + 26, + 56 + COUNT( + 10 ) DIV 5 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT COALESCE ( - 7, + 26, + 56 + COUNT ( + 10 ) / 5 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT DISTINCT - CASE 95 WHEN - COALESCE ( + + 13, + 73, - 95 ) THEN - 27 WHEN + - ( + 20 ) THEN 57 * - 9 + + NULLIF ( 50, - 8 * - CASE 47 WHEN - 79 THEN 17 - + 51 * 18 END + 73 ) WHEN 64 THEN + 72 END * - SUM( DISTINCT 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT - CASE 95 WHEN - COALESCE ( + + 13, + 73, - 95 ) THEN - 27 WHEN + - ( + 20 ) THEN 57 * - 9 + + NULLIF ( 50, - 8 * - CASE 47 WHEN - 79 THEN 17 - + 51 * 18 END + 73 ) WHEN 64 THEN + 72 END * - SUM ( DISTINCT 41 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7040
SELECT + COUNT( * ) * - - CAST( + + 40 AS SIGNED ) col0
----
40

skipif mysql # not compatible
query I rowsort label-7040
SELECT + COUNT ( * ) * - - CAST ( + + 40 AS INTEGER ) col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL + MIN( DISTINCT - + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL + MIN ( DISTINCT - + 6 )
----
-6

query I rowsort
SELECT + + 55 + 65 * + 7
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT - NULLIF ( + - COUNT( * ), - 5 * - SUM( + 46 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7043
SELECT - NULLIF ( + - COUNT ( * ), - 5 * - SUM ( + 46 ) )
----
1

query I rowsort
SELECT + - 80 + 28
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT - ( COUNT( DISTINCT - + 8 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7045
SELECT - ( COUNT ( DISTINCT - + 8 ) ) AS col0
----
-1

query I rowsort
SELECT + 14 * + 10 + + - 26 + + 98
----
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7047
SELECT - 27 DIV COUNT( ALL CAST( - 9 AS SIGNED ) ) + - 38
----
-65

skipif mysql # not compatible
query I rowsort label-7047
SELECT - 27 / COUNT ( ALL CAST ( - 9 AS INTEGER ) ) + - 38
----
-65

query II rowsort
SELECT ALL + 70 AS col1, 19 col2
----
70
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7049
SELECT DISTINCT + + CAST( + + 7 AS SIGNED ) AS col1, - 64
----
7
-64

skipif mysql # not compatible
query II rowsort label-7049
SELECT DISTINCT + + CAST ( + + 7 AS INTEGER ) AS col1, - 64
----
7
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT DISTINCT ( ( 52 ) ) * - 73 / 97 * + 1 + + COUNT( ALL - - 18 ) + + 40 + AVG ( 60 ) * NULLIF ( ( + CASE + 89 WHEN - 98 + - 51 * COUNT( * ) THEN 9 END ) + 64, - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT ( ( 52 ) ) * - 73 / 97 * + 1 + + COUNT ( ALL - - 18 ) + + 40 + AVG ( 60 ) * NULLIF ( ( + CASE + 89 WHEN - 98 + - 51 * COUNT ( * ) THEN 9 END ) + 64, - 28 )
----
NULL

query I rowsort
SELECT ALL 45 * + 35 AS col1
----
1575

onlyif mysql # aggregate syntax: 
query II rowsort label-7052
SELECT DISTINCT - - 34 * + 33 * + 46 - + 44 + - SUM( 71 ) col0, 90
----
51497
90

skipif mysql # not compatible
query II rowsort label-7052
SELECT DISTINCT - - 34 * + 33 * + 46 - + 44 + - SUM ( 71 ) col0, 90
----
51497
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7053
SELECT DISTINCT + CAST( NULL AS SIGNED ) * MAX( + 61 ) * - 70 + + - 63 * + COALESCE ( + 76, - - COUNT( * ) / - - 63, - + COALESCE ( + 15, 25, - 55, MIN( DISTINCT + 63 ) ) * 41 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * MAX ( + 61 ) * - 70 + + - 63 * + COALESCE ( + 76, - - COUNT ( * ) / - - 63, - + COALESCE ( + 15, 25, - 55, MIN ( DISTINCT + 63 ) ) * 41 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL - + 69 * + 70 + + 3 + COUNT( * ) AS col2
----
-4826

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL - + 69 * + 70 + + 3 + COUNT ( * ) AS col2
----
-4826

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT + - MAX( - + 27 ) * - 38 AS col1
----
-1026

skipif mysql # not compatible
query I rowsort label-7055
SELECT + - MAX ( - + 27 ) * - 38 AS col1
----
-1026

onlyif mysql # aggregate syntax: 
query II rowsort label-7056
SELECT + 78 AS col1, 26 + + MAX( DISTINCT - 90 ) col0
----
78
-64

skipif mysql # not compatible
query II rowsort label-7056
SELECT + 78 AS col1, 26 + + MAX ( DISTINCT - 90 ) col0
----
78
-64

query II rowsort
SELECT - 12, + 18 AS col1
----
-12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT MAX( DISTINCT - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7058
SELECT MAX ( DISTINCT - 33 ) AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7059
SELECT ALL - 34 * 46 + + + 87 - 30 * - 21 / + CASE 53 WHEN MAX( ALL CAST( + - 77 AS SIGNED ) ) THEN + 34 END + - 95 * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL - 34 * 46 + + + 87 - 30 * - 21 / + CASE 53 WHEN MAX ( ALL CAST ( + - 77 AS INTEGER ) ) THEN + 34 END + - 95 * + 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7060
SELECT ALL - CAST( - 25 AS SIGNED ) * - COUNT( * ) + - - 24 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL - CAST ( - 25 AS INTEGER ) * - COUNT ( * ) + - - 24 AS col1
----
-1

query I rowsort
SELECT - 29 * - 0 + + + 80 col2
----
80

query I rowsort
SELECT 82 * 37 + + 30
----
3064

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ALL - 57 * - + ( + 11 ) * + - 91 - - COUNT( * ) AS col2
----
-57056

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - 57 * - + ( + 11 ) * + - 91 - - COUNT ( * ) AS col2
----
-57056

query I rowsort
SELECT ALL + ( - 21 ) * - 39
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT SUM( 69 )
----
69

skipif mysql # not compatible
query I rowsort label-7065
SELECT SUM ( 69 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7066
SELECT ALL + COUNT( * ) * + - 61 - SUM( DISTINCT + - 5 ) - - - 1 DIV 42 * 54 * + 7 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL + COUNT ( * ) * + - 61 - SUM ( DISTINCT + - 5 ) - - - 1 / 42 * 54 * + 7 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7067
SELECT ALL - 83 * + + 58 AS col2, CAST( + COALESCE ( 55, 49, - + COALESCE ( - ( 97 ), + 45 ) ) AS SIGNED )
----
-4814
55

skipif mysql # not compatible
query II rowsort label-7067
SELECT ALL - 83 * + + 58 AS col2, CAST ( + COALESCE ( 55, 49, - + COALESCE ( - ( 97 ), + 45 ) ) AS INTEGER )
----
-4814
55

query I rowsort
SELECT - 74 + + + 77 * - 96 AS col2
----
-7466

query II rowsort
SELECT - 9 - - 62 col2, - 86 AS col1
----
53
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7070
SELECT + 20 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT + 20 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 26 + + + 76 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT MIN( + ( 11 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7072
SELECT MIN ( + ( 11 ) ) AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7073
SELECT - CAST( + 72 AS SIGNED ), 28 AS col2
----
-72
28

skipif mysql # not compatible
query II rowsort label-7073
SELECT - CAST ( + 72 AS INTEGER ), 28 AS col2
----
-72
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7074
SELECT ALL COUNT( 25 ) * + + 44, - 53 AS col0
----
44
-53

skipif mysql # not compatible
query II rowsort label-7074
SELECT ALL COUNT ( 25 ) * + + 44, - 53 AS col0
----
44
-53

query II rowsort
SELECT ALL ( 18 ), 27 * - 84 * 73 * + + 89 AS col2
----
18
-14735196

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT DISTINCT + 39 DIV + 13 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT + 39 / + 13 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT DISTINCT CASE + 72 WHEN 53 THEN NULL WHEN + + 56 THEN NULL WHEN CAST( NULL AS SIGNED ) * + 34 + + - 41 THEN NULL ELSE + MIN( 23 ) * 89 / + CAST( NULL AS SIGNED ) + - - COUNT( * ) + - 45 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT CASE + 72 WHEN 53 THEN NULL WHEN + + 56 THEN NULL WHEN CAST ( NULL AS INTEGER ) * + 34 + + - 41 THEN NULL ELSE + MIN ( 23 ) * 89 / + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + - 45 END AS col2
----
NULL

query I rowsort
SELECT ALL + 29 + - 36 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT - MAX( DISTINCT + 82 ) - 17 * + - 2
----
-48

skipif mysql # not compatible
query I rowsort label-7079
SELECT - MAX ( DISTINCT + 82 ) - 17 * + - 2
----
-48

query I rowsort
SELECT - - ( + 28 )
----
28

query II rowsort
SELECT + 37 * + 11 AS col1, 84 AS col0
----
407
84

query I rowsort
SELECT ALL + + 91 + + + 35
----
126

query I rowsort
SELECT - 90 - - 18 - - - 21 + + + 56 * - - 52 * 29 + + 73
----
84428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL ( COUNT( 62 ) ) / + + CAST( NULL AS SIGNED ) / + 15 + - + CASE 43 WHEN - 97 THEN - 99 WHEN - 51 THEN ( - + 15 ) * - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL ( COUNT ( 62 ) ) / + + CAST ( NULL AS INTEGER ) / + 15 + - + CASE 43 WHEN - 97 THEN - 99 WHEN - 51 THEN ( - + 15 ) * - 81 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7085
SELECT ALL + ( - + 16 ) DIV 30 + - 94 - - 62 * + - 62 - ( - 98 ) - + - 6 * + COALESCE ( - + 51, - COALESCE ( COUNT( * ), 45 + 97 * - COUNT( * ) ) ) + 82
----
-4064

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL + ( - + 16 ) / 30 + - 94 - - 62 * + - 62 - ( - 98 ) - + - 6 * + COALESCE ( - + 51, - COALESCE ( COUNT ( * ), 45 + 97 * - COUNT ( * ) ) ) + 82
----
-4064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7086
SELECT ( + - COALESCE ( + - CAST( NULL AS SIGNED ), + 87, - ( - + 88 ) ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-7086
SELECT ( + - COALESCE ( + - CAST ( NULL AS INTEGER ), + 87, - ( - + 88 ) ) ) AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT ALL - + ( MAX( DISTINCT + 31 ) ) * CAST( + + 40 AS SIGNED ) col2
----
-1240

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL - + ( MAX ( DISTINCT + 31 ) ) * CAST ( + + 40 AS INTEGER ) col2
----
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT - - NULLIF ( 12, + 54 * COUNT( * ) + + + 88 ) + 95 * - 4 * - + ( + + 84 ) col0
----
31932

skipif mysql # not compatible
query I rowsort label-7088
SELECT - - NULLIF ( 12, + 54 * COUNT ( * ) + + + 88 ) + 95 * - 4 * - + ( + + 84 ) col0
----
31932

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT 33 * + MIN( ALL + 44 ) + + 53 * + 26 - + COUNT( * )
----
2829

skipif mysql # not compatible
query I rowsort label-7089
SELECT 33 * + MIN ( ALL + 44 ) + + 53 * + 26 - + COUNT ( * )
----
2829

query II rowsort
SELECT DISTINCT - 85 AS col0, + 72 + + 77 AS col2
----
-85
149

query II rowsort
SELECT 96 * 17 + + 46, 95 * - + 9 AS col2
----
1678
-855

query II rowsort
SELECT DISTINCT - 98 AS col2, 7 AS col1
----
-98
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7093
SELECT + 28, - 39 + CASE 40 WHEN - ( 59 ) * 11 + - 94 THEN SUM( ALL - NULLIF ( - ( CAST( - + 92 AS DECIMAL ) ), 85 + COALESCE ( 68, + 31 ) * 58 ) ) END + + 41 * - 45 AS col1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-7093
SELECT + 28, - 39 + CASE 40 WHEN - ( 59 ) * 11 + - 94 THEN SUM ( ALL - NULLIF ( - ( CAST ( - + 92 AS REAL ) ), 85 + COALESCE ( 68, + 31 ) * 58 ) ) END + + 41 * - 45 AS col1
----
28
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7094
SELECT + 87 * 33 + - COUNT( + - 34 ) * + 7 - - - CAST( NULL AS SIGNED ) col1, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-7094
SELECT + 87 * 33 + - COUNT ( + - 34 ) * + 7 - - - CAST ( NULL AS INTEGER ) col1, + 45
----
NULL
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT CAST( - 23 AS SIGNED ) * + + 0 * - + COUNT( * ) * + 94 * + - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7095
SELECT CAST ( - 23 AS INTEGER ) * + + 0 * - + COUNT ( * ) * + 94 * + - 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT ALL - 0 AS col1, COUNT( * ) col2
----
0
1

skipif mysql # not compatible
query II rowsort label-7096
SELECT ALL - 0 AS col1, COUNT ( * ) col2
----
0
1

query II rowsort
SELECT 60, 69 AS col1
----
60
69

query II rowsort
SELECT + 38 AS col0, 83 AS col2
----
38
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT 42 + - ( - COUNT( * ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7099
SELECT 42 + - ( - COUNT ( * ) ) AS col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT ( + COUNT( * ) ) + - 69 DIV 49 col1
----
0

skipif mysql # not compatible
query I rowsort label-7100
SELECT ( + COUNT ( * ) ) + - 69 / 49 col1
----
0

query II rowsort
SELECT ALL 95 col2, + 93
----
95
93

query II rowsort
SELECT ALL 47 col1, - 20 AS col2
----
47
-20

query I rowsort
SELECT ALL + 52 * - 99
----
-5148

query I rowsort
SELECT ALL - 98 * - + 77 AS col0
----
7546

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT 71 DIV - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT 71 / - 84 AS col1
----
0

query I rowsort
SELECT ALL 49 + + + NULLIF ( + 15, 55 / - - 25 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT 42 + - ( - CASE - + 96 WHEN 63 * + 22 THEN - COUNT( * ) + 43 END ) * + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT 42 + - ( - CASE - + 96 WHEN 63 * + 22 THEN - COUNT ( * ) + 43 END ) * + + 58
----
NULL

query I rowsort
SELECT ALL - CASE - 86 WHEN + + 11 THEN NULL ELSE + 65 END * + - 42 AS col0
----
2730

query I rowsort
SELECT 41 + 58 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT - MAX( 9 ) + - 9 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7110
SELECT - MAX ( 9 ) + - 9 AS col1
----
-18

query I rowsort
SELECT ALL 64 + - + 64
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7112
SELECT - 83 AS col1, + CASE + - 26 WHEN - - 88 * - AVG ( - 22 ) + COUNT( * ) THEN - 33 ELSE + + 34 + - 11 + - CASE - ( - 32 ) WHEN - 93 + 68 / + NULLIF ( + CASE + 26 WHEN - 50 THEN SUM( - 87 ) END * - COUNT( * ), 90 ) THEN CASE 44 WHEN - 34 THEN + 13 ELSE NULL END * + NULLIF ( + 52 / - 29, 49 + 49 ) WHEN 87 * - 54 THEN 45 + + NULLIF ( - 64, + 24 ) * 32 WHEN COUNT( * ) * 71 THEN + 3 ELSE NULL END * + CASE COALESCE ( 50, - 89 + - 37 * + COUNT( * ) ) + - 31 * 26 WHEN 39 THEN NULL WHEN SUM( DISTINCT - 41 ) + 51 THEN NULL WHEN CASE + COUNT( * ) WHEN + SUM( DISTINCT + 24 ) + 96 THEN NULL WHEN 13 THEN NULL ELSE + 45 + 74 END THEN COUNT( DISTINCT - 65 ) * + 46 END END
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-7112
SELECT - 83 AS col1, + CASE + - 26 WHEN - - 88 * - AVG ( - 22 ) + COUNT ( * ) THEN - 33 ELSE + + 34 + - 11 + - CASE - ( - 32 ) WHEN - 93 + 68 / + NULLIF ( + CASE + 26 WHEN - 50 THEN SUM ( - 87 ) END * - COUNT ( * ), 90 ) THEN CASE 44 WHEN - 34 THEN + 13 ELSE NULL END * + NULLIF ( + 52 / - 29, 49 + 49 ) WHEN 87 * - 54 THEN 45 + + NULLIF ( - 64, + 24 ) * 32 WHEN COUNT ( * ) * 71 THEN + 3 ELSE NULL END * + CASE COALESCE ( 50, - 89 + - 37 * + COUNT ( * ) ) + - 31 * 26 WHEN 39 THEN NULL WHEN SUM ( DISTINCT - 41 ) + 51 THEN NULL WHEN CASE + COUNT ( * ) WHEN + SUM ( DISTINCT + 24 ) + 96 THEN NULL WHEN 13 THEN NULL ELSE + 45 + 74 END THEN COUNT ( DISTINCT - 65 ) * + 46 END END
----
-83
NULL

query I rowsort
SELECT 30 + + 84 AS col1
----
114

query I rowsort
SELECT ALL 78 + - 66 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7115
SELECT - 48 + COALESCE ( - 47, + 32 DIV + ( 52 ), - + 7 ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-7115
SELECT - 48 + COALESCE ( - 47, + 32 / + ( 52 ), - + 7 ) col0
----
-95

query II rowsort
SELECT + 33, 35 AS col0
----
33
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7117
SELECT DISTINCT + 31 + + + 41 DIV - ( - COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + 31 + + + 41 / - ( - COUNT ( * ) )
----
72

query I rowsort
SELECT 10 + + NULLIF ( + 62, 69 )
----
72

query I rowsort
SELECT ALL - 98 + + 97 AS col1
----
-1

query II rowsort
SELECT + 51, 90 AS col1
----
51
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT + MAX( ALL - 1 ) + - 46 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7121
SELECT + MAX ( ALL - 1 ) + - 46 AS col0
----
-47

query I rowsort
SELECT - 97 * - 98 AS col2
----
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT - 11 + + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-7123
SELECT - 11 + + COUNT ( * )
----
-10

query I rowsort
SELECT 79 + - - 19
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT - 64 * - + COUNT( * ) * + 19 * + - 54 - + 29 + + 96 AS col1
----
-65597

skipif mysql # not compatible
query I rowsort label-7125
SELECT - 64 * - + COUNT ( * ) * + 19 * + - 54 - + 29 + + 96 AS col1
----
-65597

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL + COUNT( * ) - 79 * + + CASE + + 66 WHEN - 34 THEN 13 WHEN + 14 THEN NULL END * + + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL + COUNT ( * ) - 79 * + + CASE + + 66 WHEN - 34 THEN 13 WHEN + 14 THEN NULL END * + + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT DISTINCT - 73 * 60 * + COUNT( * )
----
-4380

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT - 73 * 60 * + COUNT ( * )
----
-4380

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT 36 DIV + ( + ( + + ( + - 38 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7128
SELECT 36 / + ( + ( + + ( + - 38 ) ) )
----
0

query I rowsort
SELECT 10 - + 85 + + + 83 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT + 46 * 28 + + CAST( - - 99 AS SIGNED )
----
1387

skipif mysql # not compatible
query I rowsort label-7130
SELECT + 46 * 28 + + CAST ( - - 99 AS INTEGER )
----
1387

onlyif mysql # aggregate syntax: 
query II rowsort label-7131
SELECT 62 + + 13 AS col0, ( + CASE + ( + 63 ) WHEN ( 47 ) + + COUNT( - CASE + - 54 WHEN CASE - 60 WHEN + 49 * - COALESCE ( 23 + - 65 * 53, 35 - + NULLIF ( 97, 69 ) ) THEN 32 ELSE NULL END THEN 78 * 24 WHEN 67 - + 61 / 53 THEN - 52 ELSE NULL END ) * - ( 99 ) THEN - 71 END )
----
75
NULL

skipif mysql # not compatible
query II rowsort label-7131
SELECT 62 + + 13 AS col0, ( + CASE + ( + 63 ) WHEN ( 47 ) + + COUNT ( - CASE + - 54 WHEN CASE - 60 WHEN + 49 * - COALESCE ( 23 + - 65 * 53, 35 - + NULLIF ( 97, 69 ) ) THEN 32 ELSE NULL END THEN 78 * 24 WHEN 67 - + 61 / 53 THEN - 52 ELSE NULL END ) * - ( 99 ) THEN - 71 END )
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT 36 * - NULLIF ( + - 24, + - COUNT( * ) + 36 )
----
864

skipif mysql # not compatible
query I rowsort label-7132
SELECT 36 * - NULLIF ( + - 24, + - COUNT ( * ) + 36 )
----
864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT - 83 * - - 23 * - CAST( + 3 AS SIGNED ) + - + ( - MAX( 77 ) )
----
5804

skipif mysql # not compatible
query I rowsort label-7133
SELECT - 83 * - - 23 * - CAST ( + 3 AS INTEGER ) + - + ( - MAX ( 77 ) )
----
5804

query I rowsort
SELECT DISTINCT - ( + 61 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7135
SELECT ALL - CAST( 27 AS SIGNED ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - CAST ( 27 AS INTEGER ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ALL MAX( + - 71 ) + - - 24
----
-47

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL MAX ( + - 71 ) + - - 24
----
-47

query I rowsort
SELECT DISTINCT + 48 * - 49
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7138
SELECT ALL - 93 + - COUNT( DISTINCT CAST( 51 AS SIGNED ) )
----
-94

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL - 93 + - COUNT ( DISTINCT CAST ( 51 AS INTEGER ) )
----
-94

onlyif mysql # aggregate syntax: 
query III rowsort label-7139
SELECT DISTINCT + 39 + - ( - + 17 ) * 82, + 16 AS col0, 73 + + 27 * + 97 * COUNT( * ) AS col0
----
1433
16
2692

skipif mysql # not compatible
query III rowsort label-7139
SELECT DISTINCT + 39 + - ( - + 17 ) * 82, + 16 AS col0, 73 + + 27 * + 97 * COUNT ( * ) AS col0
----
1433
16
2692

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT 51 DIV ( - 78 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7140
SELECT 51 / ( - 78 ) AS col0
----
0

query I rowsort
SELECT ALL 43 + 42 + 87 AS col1
----
172

query I rowsort
SELECT DISTINCT CASE ( 68 ) WHEN 76 THEN 90 END + - - 41 AS col2
----
NULL

query I rowsort
SELECT + 45 * + 68 + - 97 AS col0
----
2963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT ALL - COALESCE ( + - 76, - 65 * - CASE 78 WHEN + - 2 THEN - 84 + - 83 WHEN - + 27 * 26 * + 18 * - - 63 THEN + COUNT( ALL - CAST( 33 AS SIGNED ) ) * - 72 WHEN - 38 THEN NULL END - COUNT( * ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL - COALESCE ( + - 76, - 65 * - CASE 78 WHEN + - 2 THEN - 84 + - 83 WHEN - + 27 * 26 * + 18 * - - 63 THEN + COUNT ( ALL - CAST ( 33 AS INTEGER ) ) * - 72 WHEN - 38 THEN NULL END - COUNT ( * ) ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT + ( + COUNT( * ) ) * + - 65 * - MIN( DISTINCT + 3 )
----
195

skipif mysql # not compatible
query I rowsort label-7145
SELECT + ( + COUNT ( * ) ) * + - 65 * - MIN ( DISTINCT + 3 )
----
195

query I rowsort
SELECT ALL ( 88 ) + 45
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-7147
SELECT DISTINCT ( - + 30 ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT ( - + 30 ) / + 99
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7148
SELECT DISTINCT - - 74 * - 59 AS col0, COUNT( * ) + + - 61 col1
----
-4366
-60

skipif mysql # not compatible
query II rowsort label-7148
SELECT DISTINCT - - 74 * - 59 AS col0, COUNT ( * ) + + - 61 col1
----
-4366
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7149
SELECT - 95 * - 11, COUNT( DISTINCT 70 ) AS col1
----
1045
1

skipif mysql # not compatible
query II rowsort label-7149
SELECT - 95 * - 11, COUNT ( DISTINCT 70 ) AS col1
----
1045
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT 4 + + ( 57 ) * - - 20 + 88 - + 15 DIV - 11 AS col1
----
1233

skipif mysql # not compatible
query I rowsort label-7150
SELECT 4 + + ( 57 ) * - - 20 + 88 - + 15 / - 11 AS col1
----
1233

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT - MIN( + + ( - 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-7151
SELECT - MIN ( + + ( - 94 ) )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7152
SELECT ALL + CAST( + 9 AS SIGNED ) - - 5 * + - CASE - 59 WHEN - - 83 * - 37 + + 51 + 74 * - - 77 * 22 + + 62 * 32 THEN + 25 / 50 WHEN - MIN( ALL 89 ) THEN 6 + - 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL + CAST ( + 9 AS INTEGER ) - - 5 * + - CASE - 59 WHEN - - 83 * - 37 + + 51 + 74 * - - 77 * 22 + + 62 * 32 THEN + 25 / 50 WHEN - MIN ( ALL 89 ) THEN 6 + - 74 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7153
SELECT DISTINCT 83 * + 66 * + NULLIF ( + 64, + ( - - CAST( 54 AS SIGNED ) ) + 71 + - MAX( ALL + + 12 ) )
----
350592

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT 83 * + 66 * + NULLIF ( + 64, + ( - - CAST ( 54 AS INTEGER ) ) + 71 + - MAX ( ALL + + 12 ) )
----
350592

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + - NULLIF ( + 77, + COUNT( * ) / 49 * 14 ) - + + 77
----
-154

skipif mysql # not compatible
query I rowsort label-7154
SELECT + - NULLIF ( + 77, + COUNT ( * ) / 49 * 14 ) - + + 77
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT - - 0 * MIN( + 45 ) - 52
----
-52

skipif mysql # not compatible
query I rowsort label-7155
SELECT - - 0 * MIN ( + 45 ) - 52
----
-52

query I rowsort
SELECT DISTINCT + 95 * - - 77 AS col0
----
7315

query I rowsort
SELECT ALL - CASE - ( + AVG ( 95 ) ) WHEN 89 THEN - 42 + - 75 - 17 + - 79 + + 61 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT ALL + COUNT( * ) - - COALESCE ( + CAST( - 95 AS SIGNED ), + 74 - + + 96 + + COUNT( * ) + - 52 + - COUNT( DISTINCT + - 31 ) + + COUNT( * ) + 39 * + 88 * + + 58 * 27 * + 5, - 32 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL + COUNT ( * ) - - COALESCE ( + CAST ( - 95 AS INTEGER ), + 74 - + + 96 + + COUNT ( * ) + - 52 + - COUNT ( DISTINCT + - 31 ) + + COUNT ( * ) + 39 * + 88 * + + 58 * 27 * + 5, - 32 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + - ( - + MAX( - - 88 ) ) + + CASE WHEN - 21 NOT BETWEEN ( NULL ) AND + 8 / + 42 / + 21 - - + 46 THEN 31 END + + - 38 + + 63 + 30 + ( ( - 84 ) + - SUM( 35 ) * 22 ) * ( 97 ) * - NULLIF ( + ( - 83 ) * SUM( DISTINCT 29 + 33 ) + + 0 * - 74, + 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT + - ( - + MAX ( - - 88 ) ) + + CASE WHEN - 21 NOT BETWEEN ( NULL ) AND + 8 / + 42 / + 21 - - + 46 THEN 31 END + + - 38 + + 63 + 30 + ( ( - 84 ) + - SUM ( 35 ) * 22 ) * ( 97 ) * - NULLIF ( + ( - 83 ) * SUM ( DISTINCT 29 + 33 ) + + 0 * - 74, + 28 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT DISTINCT + - MAX( 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT + - MAX ( 41 ) AS col2
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT COALESCE ( - - 45, + + 80 + 34 - - - 91 - - 74 + - 91 * + 15 * + - ( - COALESCE ( 19, + 13 + + 93, + - 98 ) ) DIV + 23 * 7 )
----
45

skipif mysql # not compatible
query I rowsort label-7161
SELECT COALESCE ( - - 45, + + 80 + 34 - - - 91 - - 74 + - 91 * + 15 * + - ( - COALESCE ( 19, + 13 + + 93, + - 98 ) ) / + 23 * 7 )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT 33 DIV - 49 * + - 55 + - ( - 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7162
SELECT 33 / - 49 * + - 55 + - ( - 98 ) AS col1
----
98

query I rowsort
SELECT + 45 * 88 * + 66 AS col1
----
261360

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT + 42 * ( + COUNT( * ) ) - 70 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7164
SELECT + 42 * ( + COUNT ( * ) ) - 70 AS col0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT - 3 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7165
SELECT - 3 / + 94 AS col2
----
0

query I rowsort
SELECT ALL - 24 * - - 26
----
-624

query I rowsort
SELECT - 15 * - 29
----
435

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT DISTINCT 21 DIV - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT 21 / - 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL + COUNT( DISTINCT 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + COUNT ( DISTINCT 99 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7170
SELECT COALESCE ( - 38, + - COUNT( * ) * - 50 + 17 + COUNT( * ) + - 94 * - CAST( NULL AS SIGNED ) + - + COALESCE ( - 7, + + ( 63 ), - - 61, + 73 ) DIV COUNT( DISTINCT 7 ) - 1 )
----
-38

skipif mysql # not compatible
query I rowsort label-7170
SELECT COALESCE ( - 38, + - COUNT ( * ) * - 50 + 17 + COUNT ( * ) + - 94 * - CAST ( NULL AS INTEGER ) + - + COALESCE ( - 7, + + ( 63 ), - - 61, + 73 ) / COUNT ( DISTINCT 7 ) - 1 )
----
-38

query I rowsort
SELECT DISTINCT + 79 * - 55 AS col0
----
-4345

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT ALL + 33 * 32 + 32 DIV + 26 AS col0
----
1057

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + 33 * 32 + 32 / + 26 AS col0
----
1057

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT ALL 16 * - + 83 * - ( - 65 ) + - 98 + + 82 DIV 8
----
-86408

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL 16 * - + 83 * - ( - 65 ) + - 98 + + 82 / 8
----
-86408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7174
SELECT DISTINCT - COUNT( ALL + + 17 ) DIV + 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT - COUNT ( ALL + + 17 ) / + 29 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7175
SELECT + MAX( DISTINCT - 12 ) + ( 76 ) + - 47 DIV + 63 col0
----
64

skipif mysql # not compatible
query I rowsort label-7175
SELECT + MAX ( DISTINCT - 12 ) + ( 76 ) + - 47 / + 63 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT 62 * - - COUNT( * ) + + ( - 49 ) + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-7176
SELECT 62 * - - COUNT ( * ) + + ( - 49 ) + - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT 89 * 85 + ( - COUNT( ALL - + 84 ) ) + + 37 + COUNT( * )
----
7602

skipif mysql # not compatible
query I rowsort label-7177
SELECT 89 * 85 + ( - COUNT ( ALL - + 84 ) ) + + 37 + COUNT ( * )
----
7602

query I rowsort
SELECT ALL + ( - 45 )
----
-45

query I rowsort
SELECT ALL 82 + + 56
----
138

query II rowsort
SELECT ALL 68, 37 AS col0
----
68
37

query II rowsort
SELECT - + 93 col2, - 31
----
-93
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT + - 70 - - SUM( DISTINCT - 25 ) - - 13
----
-82

skipif mysql # not compatible
query I rowsort label-7182
SELECT + - 70 - - SUM ( DISTINCT - 25 ) - - 13
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL - COUNT( * ) * - 78 + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL - COUNT ( * ) * - 78 + COUNT ( * ) AS col2
----
79

query I rowsort
SELECT + - 21 + - 99
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7185
SELECT ALL + 75 AS col0, CAST( 74 AS SIGNED )
----
75
74

skipif mysql # not compatible
query II rowsort label-7185
SELECT ALL + 75 AS col0, CAST ( 74 AS INTEGER )
----
75
74

query I rowsort
SELECT - + 51 * + ( 84 ) AS col1
----
-4284

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT + + 46 + + 65 DIV 45 * + 5 * - 60
----
-254

skipif mysql # not compatible
query I rowsort label-7187
SELECT + + 46 + + 65 / 45 * + 5 * - 60
----
-254

query I rowsort
SELECT - NULLIF ( 49, - 46 * 4 ) + + + NULLIF ( 77, - - 9 ) * - 81 * + - 89 - + 17
----
555027

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT + SUM( DISTINCT 43 ) + - - COUNT( * ) AS col2, + 30 * - - 44 AS col2
----
44
1320

skipif mysql # not compatible
query II rowsort label-7189
SELECT + SUM ( DISTINCT 43 ) + - - COUNT ( * ) AS col2, + 30 * - - 44 AS col2
----
44
1320

query I rowsort
SELECT ALL + 54 - 9 AS col0
----
45

query I rowsort
SELECT ALL + ( - + 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT + COUNT( DISTINCT - + 56 ) + + + 66
----
67

skipif mysql # not compatible
query I rowsort label-7192
SELECT + COUNT ( DISTINCT - + 56 ) + + + 66
----
67

query I rowsort
SELECT ALL 12 - - + 60 * + 39 AS col1
----
2352

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT + - ( 22 ) DIV - - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7194
SELECT + - ( 22 ) / - - 41 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT DISTINCT - 63 DIV - + 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT - 63 / - + 47 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + + 94 * + - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-7196
SELECT + + 94 * + - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7197
SELECT + COUNT( * ) DIV 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-7197
SELECT + COUNT ( * ) / 90 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7198
SELECT ALL CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) / 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) / 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7199
SELECT - - 25 * 42 DIV + + 5
----
210

skipif mysql # not compatible
query I rowsort label-7199
SELECT - - 25 * 42 / + + 5
----
210

query I rowsort
SELECT + 34 + - 63 * - 17 AS col2
----
1105

query II rowsort
SELECT 52 AS col2, 65 * + 65
----
52
4225

query I rowsort
SELECT + 10 + - 74
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT ALL 16 * + - 9 * + 48 DIV + + COUNT( * )
----
-6912

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL 16 * + - 9 * + 48 / + + COUNT ( * )
----
-6912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7204
SELECT + NULLIF ( - + NULLIF ( + + 56, + 83 ), + CAST( NULL AS SIGNED ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7204
SELECT + NULLIF ( - + NULLIF ( + + 56, + 83 ), + CAST ( NULL AS INTEGER ) ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT DISTINCT - 16 DIV - 92 + + 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT - 16 / - 92 + + 32 AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT ALL 94 DIV - - 58 + + 57 * - 63
----
-3590

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL 94 / - - 58 + + 57 * - 63
----
-3590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT CAST( + - 19 AS SIGNED ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7207
SELECT CAST ( + - 19 AS INTEGER ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL 80 * - + CASE COUNT( * ) WHEN - ( - - 70 ) + - 98 THEN NULL WHEN 70 THEN + - 22 END * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL 80 * - + CASE COUNT ( * ) WHEN - ( - - 70 ) + - 98 THEN NULL WHEN 70 THEN + - 22 END * - 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT CAST( 20 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-7209
SELECT CAST ( 20 AS INTEGER ) AS col0
----
20

query I rowsort
SELECT ALL + COALESCE ( - 31, + 42 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7211
SELECT ALL 31 DIV + MAX( - + 89 ) + - + 64 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL 31 / + MAX ( - + 89 ) + - + 64 AS col1
----
-64

query I rowsort
SELECT + 56 * + - 55 AS col2
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT + COUNT( * ) - - - 96 + 36 * - 24 * + 54
----
-46751

skipif mysql # not compatible
query I rowsort label-7213
SELECT + COUNT ( * ) - - - 96 + 36 * - 24 * + 54
----
-46751

query II rowsort
SELECT + 89 AS col1, - 14 AS col1
----
89
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT ALL + COUNT( * ), 40 AS col0
----
1
40

skipif mysql # not compatible
query II rowsort label-7215
SELECT ALL + COUNT ( * ), 40 AS col0
----
1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT - MAX( ALL - + 46 ) * + + 20
----
920

skipif mysql # not compatible
query I rowsort label-7216
SELECT - MAX ( ALL - + 46 ) * + + 20
----
920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7217
SELECT ALL 2 DIV - COUNT( DISTINCT + + 58 )
----
-2

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL 2 / - COUNT ( DISTINCT + + 58 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7218
SELECT + CAST( NULL AS SIGNED ) AS col2, 29
----
NULL
29

skipif mysql # not compatible
query II rowsort label-7218
SELECT + CAST ( NULL AS INTEGER ) AS col2, 29
----
NULL
29

query I rowsort
SELECT + 2 * - 67
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-7220
SELECT ALL 66 DIV 24
----
2

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL 66 / 24
----
2

query II rowsort
SELECT DISTINCT + 18, 84 + + + 29 AS col1
----
18
113

onlyif mysql # aggregate syntax: 
query II rowsort label-7222
SELECT ALL - 10 * + 27 * 85 - - + 7 AS col2, COUNT( * ) * + - 78
----
-22943
-78

skipif mysql # not compatible
query II rowsort label-7222
SELECT ALL - 10 * + 27 * 85 - - + 7 AS col2, COUNT ( * ) * + - 78
----
-22943
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7223
SELECT DISTINCT 65 * - ( - CASE + 3 WHEN CASE 80 WHEN - 68 THEN NULL WHEN CAST( - + 44 AS SIGNED ) THEN + + 48 + 79 ELSE NULL END THEN NULL WHEN + - 99 THEN NULL ELSE COALESCE ( - ( + COALESCE ( + - ( - 92 ), MAX( ALL CAST( 20 AS SIGNED ) ) + 0 * + COUNT( * ), 66 ) ), + MAX( ALL + 84 ) ) - - 58 * + 45 END ) - + SUM( + 89 - 40 ) AS col2
----
163621

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT 65 * - ( - CASE + 3 WHEN CASE 80 WHEN - 68 THEN NULL WHEN CAST ( - + 44 AS INTEGER ) THEN + + 48 + 79 ELSE NULL END THEN NULL WHEN + - 99 THEN NULL ELSE COALESCE ( - ( + COALESCE ( + - ( - 92 ), MAX ( ALL CAST ( 20 AS INTEGER ) ) + 0 * + COUNT ( * ), 66 ) ), + MAX ( ALL + 84 ) ) - - 58 * + 45 END ) - + SUM ( + 89 - 40 ) AS col2
----
163621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7224
SELECT DISTINCT - 77 * - + COALESCE ( - NULLIF ( - COUNT( * ), - NULLIF ( + + 94, + 58 ) ), 35 * - + 69, 13 + + - 80 ) * COUNT( * ) * + ( - CAST( - 17 AS SIGNED ) )
----
1309

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT - 77 * - + COALESCE ( - NULLIF ( - COUNT ( * ), - NULLIF ( + + 94, + 58 ) ), 35 * - + 69, 13 + + - 80 ) * COUNT ( * ) * + ( - CAST ( - 17 AS INTEGER ) )
----
1309

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT DISTINCT - 2 * - + 68 - - CASE + 30 WHEN - CASE - 88 WHEN + ( - + 79 ) * - - 41 + + + ( + MAX( ALL + - 24 ) ) THEN NULL ELSE + 98 END THEN + 73 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT - 2 * - + 68 - - CASE + 30 WHEN - CASE - 88 WHEN + ( - + 79 ) * - - 41 + + + ( + MAX ( ALL + - 24 ) ) THEN NULL ELSE + 98 END THEN + 73 ELSE NULL END col0
----
NULL

query II rowsort
SELECT ALL 47 AS col1, 30 AS col0
----
47
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT + COUNT( * ) * + 46 * 71 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT + COUNT ( * ) * + 46 * 71 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - - 87, 22 AS col0
----
87
22

query II rowsort
SELECT 4, 38 AS col1
----
4
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7230
SELECT ALL + 20 col2, CASE - - 64 WHEN ( - 46 ) + + NULLIF ( - ( + - ( + + COUNT( * ) ) ), + 22 ) THEN - + COUNT( * ) WHEN 40 THEN NULL END * NULLIF ( + + 16, - + 47 ) AS col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-7230
SELECT ALL + 20 col2, CASE - - 64 WHEN ( - 46 ) + + NULLIF ( - ( + - ( + + COUNT ( * ) ) ), + 22 ) THEN - + COUNT ( * ) WHEN 40 THEN NULL END * NULLIF ( + + 16, - + 47 ) AS col1
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT - - MIN( ALL - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7231
SELECT - - MIN ( ALL - 35 ) AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7232
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + 69 AS col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-7232
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + 69 AS col2
----
NULL
69

query I rowsort
SELECT ALL - 34 * + 29 * - 66 AS col0
----
65076

query II rowsort
SELECT - 43, - 7 AS col2
----
-43
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL + ( + MIN( - - 12 ) ) * - + 82 * + - SUM( DISTINCT 26 )
----
25584

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL + ( + MIN ( - - 12 ) ) * - + 82 * + - SUM ( DISTINCT 26 )
----
25584

query I rowsort
SELECT 36 + + + 60 AS col1
----
96

query I rowsort
SELECT + 7 * + - 56 * + 47 * 20 * + - ( + 47 ) AS col1
----
17318560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7238
SELECT MAX( ALL + + 27 ) DIV COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7238
SELECT MAX ( ALL + + 27 ) / COUNT ( * )
----
27

query I rowsort
SELECT ALL 92 + + 65 - 47
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7240
SELECT 36 - 89 + 79 * + + ( - - CAST( 71 AS SIGNED ) ) * 60 AS col0, + 12 + - - CAST( NULL AS SIGNED ) + - - 58 AS col0
----
336487
NULL

skipif mysql # not compatible
query II rowsort label-7240
SELECT 36 - 89 + 79 * + + ( - - CAST ( 71 AS INTEGER ) ) * 60 AS col0, + 12 + - - CAST ( NULL AS INTEGER ) + - - 58 AS col0
----
336487
NULL

query I rowsort
SELECT ALL 69 + - 82
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT COUNT( * ) + + - ( - ( 78 ) ) * + 68 AS col0
----
5305

skipif mysql # not compatible
query I rowsort label-7242
SELECT COUNT ( * ) + + - ( - ( 78 ) ) * + 68 AS col0
----
5305

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT ALL 86 DIV + + 85 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL 86 / + + 85 AS col2
----
1

query II rowsort
SELECT DISTINCT 21 * - 27 col1, - 16
----
-567
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL + 7 + + + 43 * 53 + - ( - COALESCE ( + 23, + - COUNT( * ) ) ) * - 69 * + - 13
----
22917

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + 7 + + + 43 * 53 + - ( - COALESCE ( + 23, + - COUNT ( * ) ) ) * - 69 * + - 13
----
22917

query I rowsort
SELECT DISTINCT 85 * + 69 AS col0
----
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT COUNT( - 33 ) + - COALESCE ( - 73, - 68, + 33 ) + + 32
----
106

skipif mysql # not compatible
query I rowsort label-7247
SELECT COUNT ( - 33 ) + - COALESCE ( - 73, - 68, + 33 ) + + 32
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-7248
SELECT DISTINCT 61 * COUNT( * ) AS col0, - 17
----
61
-17

skipif mysql # not compatible
query II rowsort label-7248
SELECT DISTINCT 61 * COUNT ( * ) AS col0, - 17
----
61
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT SUM( 10 ) + + + 75
----
85

skipif mysql # not compatible
query I rowsort label-7249
SELECT SUM ( 10 ) + + + 75
----
85

query I rowsort
SELECT 70 * + ( - + 92 ) AS col0
----
-6440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7251
SELECT + 38 DIV + + COUNT( * ) + + + MIN( + + 12 )
----
50

skipif mysql # not compatible
query I rowsort label-7251
SELECT + 38 / + + COUNT ( * ) + + + MIN ( + + 12 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT + CAST( NULL AS SIGNED ) * + - 60 * - 28 + + 68 / 80 + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7252
SELECT + CAST ( NULL AS INTEGER ) * + - 60 * - 28 + + 68 / 80 + 77 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT + 92 * + - 88 + COUNT( DISTINCT + 46 ) + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT + 92 * + - 88 + COUNT ( DISTINCT + 46 ) + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7254
SELECT 2 DIV COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7254
SELECT 2 / COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7255
SELECT COUNT( * ) + 95 + CAST( NULL AS SIGNED ) * + 32 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT COUNT ( * ) + 95 + CAST ( NULL AS INTEGER ) * + 32 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7256
SELECT DISTINCT + - 88 * + - COALESCE ( + + NULLIF ( + ( - + NULLIF ( + + 8, - 40 * + 81 ) ), 98 ), + 61 + 68 * + 89 * + MAX( - 51 ) DIV + - SUM( ALL + 63 ) + + COALESCE ( + ( COUNT( * ) ), + 0 ) * - COUNT( * ), 92 * + 48 + + 77 )
----
-704

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + - 88 * + - COALESCE ( + + NULLIF ( + ( - + NULLIF ( + + 8, - 40 * + 81 ) ), 98 ), + 61 + 68 * + 89 * + MAX ( - 51 ) / + - SUM ( ALL + 63 ) + + COALESCE ( + ( COUNT ( * ) ), + 0 ) * - COUNT ( * ), 92 * + 48 + + 77 )
----
-704

query I rowsort
SELECT ( - + 50 ) + 68
----
18

query I rowsort
SELECT ALL - ( - - 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT 2 + + CASE + - 73 WHEN - COUNT( * ) + - + 59 THEN - ( + + 75 ) WHEN + 23 THEN NULL ELSE NULL END * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT 2 + + CASE + - 73 WHEN - COUNT ( * ) + - + 59 THEN - ( + + 75 ) WHEN + 23 THEN NULL ELSE NULL END * - 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT - 21 DIV + 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7260
SELECT - 21 / + 54 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT 48 + + 25 AS col0, COUNT( - 72 ) * 3 AS col2
----
73
3

skipif mysql # not compatible
query II rowsort label-7261
SELECT 48 + + 25 AS col0, COUNT ( - 72 ) * 3 AS col2
----
73
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7262
SELECT 50 * - 74, 79 * COUNT( * ) / 45 - + - CAST( NULL AS SIGNED ) + + 32 AS col1
----
-3700
NULL

skipif mysql # not compatible
query II rowsort label-7262
SELECT 50 * - 74, 79 * COUNT ( * ) / 45 - + - CAST ( NULL AS INTEGER ) + + 32 AS col1
----
-3700
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT - COUNT( * ) + - + 97
----
-98

skipif mysql # not compatible
query I rowsort label-7263
SELECT - COUNT ( * ) + - + 97
----
-98

query I rowsort
SELECT ALL + 22 + 48 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT MIN( 63 ) + - 69 + - COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7265
SELECT MIN ( 63 ) + - 69 + - COUNT ( * ) AS col1
----
-7

query II rowsort
SELECT ALL 8 AS col1, + 37 AS col0
----
8
37

query I rowsort
SELECT 45 + - 15 AS col2
----
30

query I rowsort
SELECT DISTINCT + 93 + - 26 AS col0
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-7269
SELECT ALL 23, - 21 DIV + 98 + - 71 AS col1
----
23
-71

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL 23, - 21 / + 98 + - 71 AS col1
----
23
-71

query II rowsort
SELECT 45 * - 31 * 1 AS col1, - 17 + + ( + 11 )
----
-1395
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7271
SELECT DISTINCT + 94 + + MIN( - 4 ) AS col0, 59 + - SUM( 77 ) + 79 + - 47 + - + 5 * - NULLIF ( - 70, 67 ) * + - 16 * - + 43 AS col1
----
90
-240786

skipif mysql # not compatible
query II rowsort label-7271
SELECT DISTINCT + 94 + + MIN ( - 4 ) AS col0, 59 + - SUM ( 77 ) + 79 + - 47 + - + 5 * - NULLIF ( - 70, 67 ) * + - 16 * - + 43 AS col1
----
90
-240786

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT MAX( ALL 93 )
----
93

skipif mysql # not compatible
query I rowsort label-7272
SELECT MAX ( ALL 93 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT + 28 * + 50 + 15 AS col1, COUNT( 77 ) AS col0
----
1415
1

skipif mysql # not compatible
query II rowsort label-7273
SELECT + 28 * + 50 + 15 AS col1, COUNT ( 77 ) AS col0
----
1415
1

query I rowsort
SELECT ALL + 3 * - + 52 col0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7275
SELECT ALL - COUNT( * ) AS col0, - ( - NULLIF ( + 29, + - COUNT( * ) * - CAST( NULL AS SIGNED ) ) ) DIV + 8 + + 30
----
-1
33

skipif mysql # not compatible
query II rowsort label-7275
SELECT ALL - COUNT ( * ) AS col0, - ( - NULLIF ( + 29, + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) ) / + 8 + + 30
----
-1
33

query I rowsort
SELECT 70 - + + 10 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT COUNT( * ) * - 38 * - ( 50 )
----
1900

skipif mysql # not compatible
query I rowsort label-7277
SELECT COUNT ( * ) * - 38 * - ( 50 )
----
1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7278
SELECT ALL - NULLIF ( + 98, + 50 + - CAST( + 77 AS SIGNED ) * 46 ), 8 + 26 + - - ( + - COUNT( * ) ) AS col1
----
-98
33

skipif mysql # not compatible
query II rowsort label-7278
SELECT ALL - NULLIF ( + 98, + 50 + - CAST ( + 77 AS INTEGER ) * 46 ), 8 + 26 + - - ( + - COUNT ( * ) ) AS col1
----
-98
33

query I rowsort
SELECT 78 * - + 99 AS col2
----
-7722

query I rowsort
SELECT ALL + 3 * - 17 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT - 89 * COUNT( * ) - + + CASE - + 14 WHEN + 32 / - + 47 THEN NULL WHEN - + 38 * + COUNT( * ) THEN + MIN( ( NULLIF ( + - 53, - 68 * - 61 - - + 45 ) ) ) * 87 ELSE NULL END * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT - 89 * COUNT ( * ) - + + CASE - + 14 WHEN + 32 / - + 47 THEN NULL WHEN - + 38 * + COUNT ( * ) THEN + MIN ( ( NULLIF ( + - 53, - 68 * - 61 - - + 45 ) ) ) * 87 ELSE NULL END * + 83
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7282
SELECT + - COUNT( * ) + + 74 + - COUNT( * ) DIV 6
----
73

skipif mysql # not compatible
query I rowsort label-7282
SELECT + - COUNT ( * ) + + 74 + - COUNT ( * ) / 6
----
73

query I rowsort
SELECT ALL - 28 * + 98 col1
----
-2744

query I rowsort
SELECT ALL + COALESCE ( + - 52, 27 ) col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT DISTINCT + - 19 * + NULLIF ( - MIN( 56 ), 50 ) + + - 46 + - 75
----
943

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT + - 19 * + NULLIF ( - MIN ( 56 ), 50 ) + + - 46 + - 75
----
943

query I rowsort
SELECT + + 73 * - 88
----
-6424

query II rowsort
SELECT 2, - 68 AS col1
----
2
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT - - CAST( NULL AS SIGNED ) + - + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT - - CAST ( NULL AS INTEGER ) + - + 34 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7289
SELECT ALL NULLIF ( - 59, + 79 ) + 46 / + CAST( ( 6 ) AS DECIMAL ) + + - CAST( NULL AS SIGNED ) - 22 + - 41 + 89 + CAST( COUNT( * ) AS DECIMAL ) * 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL NULLIF ( - 59, + 79 ) + 46 / + CAST ( ( 6 ) AS REAL ) + + - CAST ( NULL AS INTEGER ) - 22 + - 41 + 89 + CAST ( COUNT ( * ) AS REAL ) * 62 AS col0
----
NULL

query I rowsort
SELECT + 92 * 7 - + 43
----
601

query I rowsort
SELECT + ( + 75 ) * + 52
----
3900

query I rowsort
SELECT DISTINCT - 84 + + 55 * 12
----
576

query I rowsort
SELECT ALL + 26 + 70 * COALESCE ( 90, + + 32 ) AS col0
----
6326

query I rowsort
SELECT + - 46 * + 55 AS col2
----
-2530

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT 7 + - ( CASE - + 91 WHEN NULLIF ( + + 72, - - 28 ) THEN NULL WHEN 69 THEN NULL ELSE + COUNT( * ) + + - 12 END ) col2
----
18

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT 7 + - ( CASE - + 91 WHEN NULLIF ( + + 72, - - 28 ) THEN NULL WHEN 69 THEN NULL ELSE + COUNT ( * ) + + - 12 END ) col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7296
SELECT + 51 DIV - COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7296
SELECT + 51 / - COUNT ( * ) AS col0
----
-51

query I rowsort
SELECT ALL 57 + 21
----
78

query I rowsort
SELECT + 69 * 81 * - 73
----
-407997

onlyif mysql # aggregate syntax: 
query II rowsort label-7299
SELECT DISTINCT NULLIF ( - COUNT( * ), ( + 78 ) / 73 + AVG ( - 21 ) - + MIN( DISTINCT 78 ) ) AS col0, - 42 AS col0
----
-1
-42

skipif mysql # not compatible
query II rowsort label-7299
SELECT DISTINCT NULLIF ( - COUNT ( * ), ( + 78 ) / 73 + AVG ( - 21 ) - + MIN ( DISTINCT 78 ) ) AS col0, - 42 AS col0
----
-1
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT ALL + 7 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL + 7 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 51 * + 21 AS col2
----
1071

onlyif mysql # aggregate syntax: 
query II rowsort label-7302
SELECT + 15 + COUNT( * ), - 17 * 69 + + + 75 AS col1
----
16
-1098

skipif mysql # not compatible
query II rowsort label-7302
SELECT + 15 + COUNT ( * ), - 17 * 69 + + + 75 AS col1
----
16
-1098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7303
SELECT + 33 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT + 33 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 7 - + 52
----
-45

query I rowsort
SELECT ALL NULLIF ( + + 90, - 38 ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7306
SELECT - 85 - - + CAST( NULL AS DECIMAL ) + COUNT( + 77 ) AS col2, 98 + - NULLIF ( - - 12, + - NULLIF ( COUNT( * ), - + 99 ) + + 88 )
----
NULL
86

skipif mysql # not compatible
query II rowsort label-7306
SELECT - 85 - - + CAST ( NULL AS REAL ) + COUNT ( + 77 ) AS col2, 98 + - NULLIF ( - - 12, + - NULLIF ( COUNT ( * ), - + 99 ) + + 88 )
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT DISTINCT MAX( + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT MAX ( + 19 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT + SUM( DISTINCT + ( - 45 ) ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT + SUM ( DISTINCT + ( - 45 ) ) AS col2
----
-45

query I rowsort
SELECT ALL + 72 * 81 AS col1
----
5832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT - CAST( NULL AS SIGNED ) * - - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT - CAST ( NULL AS INTEGER ) * - - 16 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT + 30 DIV - + COALESCE ( + 98, + - 70 + 62 * + 25 + - 95 * 72, + 72 ) + - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7311
SELECT + 30 / - + COALESCE ( + 98, + - 70 + 62 * + 25 + - 95 * 72, + 72 ) + - 40 AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT - 42 * + 66 - + + 58 / - - ( - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT - 42 * + 66 - + + 58 / - - ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT ( - - 67 ) AS col2
----
67

query I rowsort
SELECT DISTINCT + NULLIF ( 34, - 39 ) AS col0
----
34

query II rowsort
SELECT ALL - - 46 * + + 28 AS col2, 93 * - + 22 + 27
----
1288
-2019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT - CAST( + 57 AS SIGNED ) * + + 43 + + ( + + 35 )
----
-2416

skipif mysql # not compatible
query I rowsort label-7316
SELECT - CAST ( + 57 AS INTEGER ) * + + 43 + + ( + + 35 )
----
-2416

query II rowsort
SELECT DISTINCT - + 79 * + 23 AS col1, - 48
----
-1817
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT + 38 * + 83 + 36 + COUNT( * ) + + + 43 + + NULLIF ( + NULLIF ( + 52, + - 87 * - 95 * - - ( - CASE 2 WHEN - 70 + - + ( - COUNT( * ) ) * - - 45 THEN NULL ELSE 98 + - 23 END ) + + 16 ), + 91 ) * COUNT( * )
----
3286

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT + 38 * + 83 + 36 + COUNT ( * ) + + + 43 + + NULLIF ( + NULLIF ( + 52, + - 87 * - 95 * - - ( - CASE 2 WHEN - 70 + - + ( - COUNT ( * ) ) * - - 45 THEN NULL ELSE 98 + - 23 END ) + + 16 ), + 91 ) * COUNT ( * )
----
3286

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT DISTINCT + COUNT( ALL - ( + + 90 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT + COUNT ( ALL - ( + + 90 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT - 67 * + + 25 + + 68 * - + 36 + CAST( NULL AS SIGNED ) - - 7 + - + 93 / - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT - 67 * + + 25 + + 68 * - + 36 + CAST ( NULL AS INTEGER ) - - 7 + - + 93 / - 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT ALL - 47 DIV + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - 47 / + 69 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT - - CAST( NULL AS SIGNED ) + - - 23 + SUM( + 25 ) * 93 + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT - - CAST ( NULL AS INTEGER ) + - - 23 + SUM ( + 25 ) * 93 + + 10
----
NULL

query I rowsort
SELECT + - 36 * + 53 + + 37
----
-1871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7324
SELECT - ( - CAST( NULL AS SIGNED ) ) * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7324
SELECT - ( - CAST ( NULL AS INTEGER ) ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 58 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7325
SELECT + + CASE - - CASE - - 20 WHEN - 28 * + + CAST( NULL AS SIGNED ) THEN - 17 ELSE NULL END WHEN - - 25 + + COUNT( * ) THEN - 17 WHEN + 55 THEN NULL ELSE NULL END * + COUNT( * ) + - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT + + CASE - - CASE - - 20 WHEN - 28 * + + CAST ( NULL AS INTEGER ) THEN - 17 ELSE NULL END WHEN - - 25 + + COUNT ( * ) THEN - 17 WHEN + 55 THEN NULL ELSE NULL END * + COUNT ( * ) + - 21 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7326
SELECT ALL - 97 * + - SUM( DISTINCT 67 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL - 97 * + - SUM ( DISTINCT 67 ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT MAX( ALL - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7327
SELECT MAX ( ALL - 59 ) AS col2
----
-59

query I rowsort
SELECT - 12 + - 92 * 33 AS col0
----
-3048

onlyif mysql # aggregate syntax: 
query II rowsort label-7329
SELECT CASE - 54 WHEN - 99 / + - 33 THEN 98 + + 80 - - COUNT( * ) ELSE - COUNT( + 62 ) + + COUNT( * ) END AS col0, 57 AS col0
----
0
57

skipif mysql # not compatible
query II rowsort label-7329
SELECT CASE - 54 WHEN - 99 / + - 33 THEN 98 + + 80 - - COUNT ( * ) ELSE - COUNT ( + 62 ) + + COUNT ( * ) END AS col0, 57 AS col0
----
0
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT ALL 56 * 29 * - + 89 + ( - 83 ) - - + NULLIF ( 4, - + 92 * 71 + - 84 - + 42 + - 99 + + 39 * + 21 * + + 29 + - - 88 * - - COALESCE ( 7, - 89 * - 36 - + 0 ) + 23 * - CAST( 97 * - 73 AS SIGNED ) ) * 98
----
-144227

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL 56 * 29 * - + 89 + ( - 83 ) - - + NULLIF ( 4, - + 92 * 71 + - 84 - + 42 + - 99 + + 39 * + 21 * + + 29 + - - 88 * - - COALESCE ( 7, - 89 * - 36 - + 0 ) + 23 * - CAST ( 97 * - 73 AS INTEGER ) ) * 98
----
-144227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7331
SELECT + 26 + - 86 col1, CAST( NULL AS SIGNED ) AS col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-7331
SELECT + 26 + - 86 col1, CAST ( NULL AS INTEGER ) AS col0
----
-60
NULL

query I rowsort
SELECT + 39 + 7 col1
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-7333
SELECT ALL + 8 * + + 82 + + 41 + + 81 AS col2, - ( ( - - 35 ) ) * + - 61 * - - 62 + - 33 + + - 53 - - 16 + + 27 DIV + 59 AS col1
----
778
132300

skipif mysql # not compatible
query II rowsort label-7333
SELECT ALL + 8 * + + 82 + + 41 + + 81 AS col2, - ( ( - - 35 ) ) * + - 61 * - - 62 + - 33 + + - 53 - - 16 + + 27 / + 59 AS col1
----
778
132300

query I rowsort
SELECT 48 * - 67 + - 36 AS col2
----
-3252

query I rowsort
SELECT - 39 * + + 45 * - 92
----
161460

query I rowsort
SELECT + 45 + + 98
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT SUM( ALL + 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7337
SELECT SUM ( ALL + 83 ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7338
SELECT - COALESCE ( + 11, - - NULLIF ( - + 33, - 27 * - 44 * COUNT( * ) + 95 ), 58 + 33 + - ( 13 ) * 84 * 4 * - COALESCE ( - 82, COUNT( * ) + + 95, CAST( + + 22 AS SIGNED ) * COALESCE ( + 16 DIV 69, - NULLIF ( - CAST( MIN( - 19 ) AS SIGNED ), + 37 + MIN( - 43 ) ), - COUNT( * ) ), - 8 ) DIV 50 + 45 * + SUM( DISTINCT 37 ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-7338
SELECT - COALESCE ( + 11, - - NULLIF ( - + 33, - 27 * - 44 * COUNT ( * ) + 95 ), 58 + 33 + - ( 13 ) * 84 * 4 * - COALESCE ( - 82, COUNT ( * ) + + 95, CAST ( + + 22 AS INTEGER ) * COALESCE ( + 16 / 69, - NULLIF ( - CAST ( MIN ( - 19 ) AS INTEGER ), + 37 + MIN ( - 43 ) ), - COUNT ( * ) ), - 8 ) / 50 + 45 * + SUM ( DISTINCT 37 ) ) AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7339
SELECT ALL 3 - + 65 + - + 34 DIV + 55 + + - COUNT( * ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL 3 - + 65 + - + 34 / + 55 + + - COUNT ( * ) AS col2
----
-63

query I rowsort
SELECT + 9 * + 75 AS col2
----
675

query I rowsort
SELECT + 15 * + 42
----
630

query I rowsort
SELECT + 74 + 29 * - 55 * 38 AS col1
----
-60536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7343
SELECT DISTINCT 38 - - 6 * - 40, + 8 * CAST( - MAX( 1 ) AS SIGNED ) DIV - - 64 + - - CASE WHEN NOT NULL IS NOT NULL THEN 27 END + + + 1 AS col0
----
-202
28

skipif mysql # not compatible
query II rowsort label-7343
SELECT DISTINCT 38 - - 6 * - 40, + 8 * CAST ( - MAX ( 1 ) AS INTEGER ) / - - 64 + - - CASE WHEN NOT NULL IS NOT NULL THEN 27 END + + + 1 AS col0
----
-202
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT ALL MIN( ALL + + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL MIN ( ALL + + 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7345
SELECT + 79 * CAST( NULL AS SIGNED ) * + 6 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT + 79 * CAST ( NULL AS INTEGER ) * + 6 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7346
SELECT + COUNT( * ) * - 14 * - NULLIF ( + 69, - 21 ) AS col0, COUNT( * )
----
966
1

skipif mysql # not compatible
query II rowsort label-7346
SELECT + COUNT ( * ) * - 14 * - NULLIF ( + 69, - 21 ) AS col0, COUNT ( * )
----
966
1

query I rowsort
SELECT - 8 + - + 32 AS col0
----
-40

query I rowsort
SELECT 24 + - 6 * 6 AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7349
SELECT 31 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT 31 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 4, + 74 col1
----
4
74

query I rowsort
SELECT DISTINCT - + ( - + 14 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7352
SELECT COUNT( * ) / - + CAST( NULL AS SIGNED ) + + 7 * + ( + 93 ) / - - COALESCE ( - 21, + 24 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT COUNT ( * ) / - + CAST ( NULL AS INTEGER ) + + 7 * + ( + 93 ) / - - COALESCE ( - 21, + 24 ) AS col0
----
NULL

query II rowsort
SELECT 50 col0, - 5 * + - 14 col1
----
50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - 99 * - - COUNT( * ) * - ( - ( ( + COALESCE ( - 95, + 93 ) ) ) ) + + + COUNT( * )
----
9406

skipif mysql # not compatible
query I rowsort label-7354
SELECT - 99 * - - COUNT ( * ) * - ( - ( ( + COALESCE ( - 95, + 93 ) ) ) ) + + + COUNT ( * )
----
9406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT ALL - ( + 13 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL - ( + 13 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT COUNT( * ) * + 24 * 19 + + + 43 * - 62 * - - MAX( 7 )
----
-18206

skipif mysql # not compatible
query I rowsort label-7356
SELECT COUNT ( * ) * + 24 * 19 + + + 43 * - 62 * - - MAX ( 7 )
----
-18206

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7357
SELECT + 51 - 59 + - 72 / + + CAST( + ( - 18 ) AS DECIMAL ) + + ( - ( AVG ( DISTINCT CASE - - 78 WHEN + 69 / - 26 + - 30 THEN + 62 WHEN + CASE + - ( - + 77 ) WHEN + + COALESCE ( - 60, 88 ) + + 6 THEN - 63 END THEN NULL END ) ) ) + - ( 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT + 51 - 59 + - 72 / + + CAST ( + ( - 18 ) AS REAL ) + + ( - ( AVG ( DISTINCT CASE - - 78 WHEN + 69 / - 26 + - 30 THEN + 62 WHEN + CASE + - ( - + 77 ) WHEN + + COALESCE ( - 60, 88 ) + + 6 THEN - 63 END THEN NULL END ) ) ) + - ( 62 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7358
SELECT DISTINCT - - 51 + + - 22 + - 33 * + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT - - 51 + + - 22 + - 33 * + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT NULLIF ( + COUNT( * ), - 98 + - COALESCE ( - + 11, + - AVG ( - ( + 25 ) ) + - + MAX( ALL + 64 ) + COUNT( * ) * - 5, + - ( + 13 ) ) / 7 ) * - + 97 - + - 72 * 71 + - 43 + + + 86 + 95 * - 17
----
3443

skipif mysql # not compatible
query I rowsort label-7359
SELECT NULLIF ( + COUNT ( * ), - 98 + - COALESCE ( - + 11, + - AVG ( - ( + 25 ) ) + - + MAX ( ALL + 64 ) + COUNT ( * ) * - 5, + - ( + 13 ) ) / 7 ) * - + 97 - + - 72 * 71 + - 43 + + + 86 + 95 * - 17
----
3443

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT + 35 * + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-7360
SELECT + 35 * + COUNT ( * )
----
35

query I rowsort
SELECT ALL + - 39 + 86 AS col1
----
47

query I rowsort
SELECT DISTINCT - - 76 * + 26
----
1976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT DISTINCT - 57 + + 75 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT - 57 + + 75 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 1 * + 12
----
-12

query I rowsort
SELECT ALL - - NULLIF ( + + 87, + 27 * + 70 / 42 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT DISTINCT + - COUNT( + - 3 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT + - COUNT ( + - 3 ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7367
SELECT + COUNT( * ) AS col0, - 98
----
1
-98

skipif mysql # not compatible
query II rowsort label-7367
SELECT + COUNT ( * ) AS col0, - 98
----
1
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL - COUNT( * ) - - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7369
SELECT COUNT( * ) * + 79 + + + COUNT( * ) AS col2, + 88 * - COUNT( * ) AS col2
----
80
-88

skipif mysql # not compatible
query II rowsort label-7369
SELECT COUNT ( * ) * + 79 + + + COUNT ( * ) AS col2, + 88 * - COUNT ( * ) AS col2
----
80
-88

query I rowsort
SELECT ALL - + ( + ( + + 21 ) )
----
-21

query I rowsort
SELECT + AVG ( DISTINCT - CASE - 48 WHEN + ( 26 ) + + + 17 THEN 54 + + + ( + 21 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT + COUNT( * ) AS col1, + 26
----
1
26

skipif mysql # not compatible
query II rowsort label-7372
SELECT + COUNT ( * ) AS col1, + 26
----
1
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT DISTINCT + 61 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT + 61 / + 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7374
SELECT ALL - 7 - + COUNT( * ) col0, - CAST( NULL AS DECIMAL ) AS col2
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-7374
SELECT ALL - 7 - + COUNT ( * ) col0, - CAST ( NULL AS REAL ) AS col2
----
-8
NULL

query I rowsort
SELECT 55 * - 79 AS col1
----
-4345

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT 61 - SUM( + 51 )
----
10

skipif mysql # not compatible
query I rowsort label-7376
SELECT 61 - SUM ( + 51 )
----
10

query I rowsort
SELECT DISTINCT 21 * - 88
----
-1848

query II rowsort
SELECT - 18 AS col1, + 70 AS col2
----
-18
70

query I rowsort
SELECT DISTINCT - 90 * + 73 AS col2
----
-6570

query I rowsort
SELECT 96 * - - 67
----
6432

query I rowsort
SELECT DISTINCT - 72 * - 54 AS col0
----
3888

query I rowsort
SELECT 70 + + 79
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7383
SELECT ( + - 55 ) - + - COALESCE ( - + 35, 80 ) DIV 65 * - COUNT( * ) - 52 - COUNT( * )
----
-108

skipif mysql # not compatible
query I rowsort label-7383
SELECT ( + - 55 ) - + - COALESCE ( - + 35, 80 ) / 65 * - COUNT ( * ) - 52 - COUNT ( * )
----
-108

query I rowsort
SELECT 79 + - 64 AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT 86 DIV 38 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7385
SELECT 86 / 38 AS col2
----
2

query II rowsort
SELECT 55 col1, 92
----
55
92

query I rowsort
SELECT DISTINCT + 0 + + 36
----
36

query I rowsort
SELECT ALL 42 + + COALESCE ( + 40, - + 31 - + - 36 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT COUNT( * ) + SUM( + 60 ) * + COUNT( ALL - 35 )
----
61

skipif mysql # not compatible
query I rowsort label-7389
SELECT COUNT ( * ) + SUM ( + 60 ) * + COUNT ( ALL - 35 )
----
61

query I rowsort
SELECT - 83 + 55
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7391
SELECT ALL + 91 + + MAX( DISTINCT + 39 ) DIV 19 AS col2, + 9 DIV + 46 AS col1
----
93
0

skipif mysql # not compatible
query II rowsort label-7391
SELECT ALL + 91 + + MAX ( DISTINCT + 39 ) / 19 AS col2, + 9 / + 46 AS col1
----
93
0

query II rowsort
SELECT 84 col2, 57 - + 75 AS col2
----
84
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT - CAST( NULL AS SIGNED ) / 58 * - 7 * + NULLIF ( 86, - - COALESCE ( - - 58, + 59, 56 * + 37 + NULLIF ( + 45, 10 ) + AVG ( - 14 ) * + - 91 ) * MAX( + ( + 18 ) ) + 30 + - 28 * 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT - CAST ( NULL AS INTEGER ) / 58 * - 7 * + NULLIF ( 86, - - COALESCE ( - - 58, + 59, 56 * + 37 + NULLIF ( + 45, 10 ) + AVG ( - 14 ) * + - 91 ) * MAX ( + ( + 18 ) ) + 30 + - 28 * 15 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - COALESCE ( 96, + 99 ) * - 1 * + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7394
SELECT - COALESCE ( 96, + 99 ) * - 1 * + COUNT ( * ) AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7395
SELECT 61 DIV 23 + - 49 * - 89 + - 73 AS col2
----
4290

skipif mysql # not compatible
query I rowsort label-7395
SELECT 61 / 23 + - 49 * - 89 + - 73 AS col2
----
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT DISTINCT - + COALESCE ( + + 77, + COUNT( * ) - 55 - + + 55, + - 13, + 56 )
----
-77

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - + COALESCE ( + + 77, + COUNT ( * ) - 55 - + + 55, + - 13, + 56 )
----
-77

query I rowsort
SELECT ALL - 73 - - 75
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7398
SELECT 81 + - - CAST( NULL AS DECIMAL ) * + - ( + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT 81 + - - CAST ( NULL AS REAL ) * + - ( + 68 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7399
SELECT CAST( NULL AS SIGNED ) * - 51, + 62 + + 94 AS col1
----
NULL
156

skipif mysql # not compatible
query II rowsort label-7399
SELECT CAST ( NULL AS INTEGER ) * - 51, + 62 + + 94 AS col1
----
NULL
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7400
SELECT 23 * + - ( - - 96 ) * - 63 + - CAST( NULL AS SIGNED ) * + COUNT( * ) * - - 58 + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT 23 * + - ( - - 96 ) * - 63 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - - 58 + 23
----
NULL

query II rowsort
SELECT - 14 AS col2, 17
----
-14
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7402
SELECT ALL + 12 - + 29 * - + CAST( 19 AS SIGNED ) + - - 26
----
589

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL + 12 - + 29 * - + CAST ( 19 AS INTEGER ) + - - 26
----
589

query I rowsort
SELECT 75 * + 68 + 83
----
5183

onlyif mysql # aggregate syntax: 
query II rowsort label-7404
SELECT 64 * - - 33 col2, SUM( ALL - + 17 ) + + - COUNT( * )
----
2112
-18

skipif mysql # not compatible
query II rowsort label-7404
SELECT 64 * - - 33 col2, SUM ( ALL - + 17 ) + + - COUNT ( * )
----
2112
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL - COALESCE ( - - COUNT( * ), 61 * 59 + + 76 * + MAX( ALL - - 79 ) + 57 + + - 75 * - - 57 * 83 * + 41 * + - 63 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL - COALESCE ( - - COUNT ( * ), 61 * 59 + + 76 * + MAX ( ALL - - 79 ) + 57 + + - 75 * - - 57 * 83 * + 41 * + - 63 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7406
SELECT 71 + - + 63 AS col1, ( + 50 ) * 26 * + COUNT( * ) + - NULLIF ( + MIN( - 44 ), + 51 )
----
8
1344

skipif mysql # not compatible
query II rowsort label-7406
SELECT 71 + - + 63 AS col1, ( + 50 ) * 26 * + COUNT ( * ) + - NULLIF ( + MIN ( - 44 ), + 51 )
----
8
1344

query II rowsort
SELECT 80 + + + 15 AS col1, 57 * 41
----
95
2337

query I rowsort
SELECT ALL + 58 * - + 66
----
-3828

onlyif mysql # aggregate syntax: 
query II rowsort label-7409
SELECT ALL COALESCE ( - - 30, - ( + 3 ), + COUNT( * ) ), COUNT( * ) + + 65 + - 26 AS col1
----
30
40

skipif mysql # not compatible
query II rowsort label-7409
SELECT ALL COALESCE ( - - 30, - ( + 3 ), + COUNT ( * ) ), COUNT ( * ) + + 65 + - 26 AS col1
----
30
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7410
SELECT DISTINCT MAX( ALL + + 55 ) AS col2, MIN( DISTINCT + 92 ) AS col1
----
55
92

skipif mysql # not compatible
query II rowsort label-7410
SELECT DISTINCT MAX ( ALL + + 55 ) AS col2, MIN ( DISTINCT + 92 ) AS col1
----
55
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7411
SELECT COUNT( * ) / + - CASE WHEN - 57 IS NOT NULL THEN NULL WHEN NOT NULL BETWEEN NULL AND NULL THEN NULL WHEN NOT NULL BETWEEN + + 28 * - 47 + 45 * - + ( - 1 ) AND - NULLIF ( + + 33, CAST( NULL AS DECIMAL ) * - - 47 ) * 21 + + 65 / - 8 + - 51 THEN NULL ELSE - 2 / - ( 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT COUNT ( * ) / + - CASE WHEN - 57 IS NOT NULL THEN NULL WHEN NOT NULL BETWEEN NULL AND NULL THEN NULL WHEN NOT NULL BETWEEN + + 28 * - 47 + 45 * - + ( - 1 ) AND - NULLIF ( + + 33, CAST ( NULL AS REAL ) * - - 47 ) * 21 + + 65 / - 8 + - 51 THEN NULL ELSE - 2 / - ( 40 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT - ( + CAST( NULL AS SIGNED ) ) * - - 5 + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - - 5 + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT - 8 + + CASE - 20 WHEN 73 * 76 + 50 THEN 63 WHEN + COUNT( * ) THEN - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT - 8 + + CASE - 20 WHEN 73 * 76 + 50 THEN 63 WHEN + COUNT ( * ) THEN - 98 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT ALL + 13 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL + 13 / 21
----
0

query I rowsort
SELECT ALL COALESCE ( 12, - 6 + + 57 - - 13 + 8 + 73 + 90 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT - MAX( - 78 ) * CASE WHEN NOT ( 80 IS NOT NULL ) THEN NULL ELSE + COALESCE ( + ( + 81 ), - COUNT( * ) / + 65 + - 74 * CAST( - 85 AS SIGNED ) ) + + + CASE - 2 WHEN + + COUNT( * ) * 78 THEN - + SUM( ALL - 91 ) + - 26 WHEN + CAST( - COUNT( * ) AS SIGNED ) - 49 * 89 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT - MAX ( - 78 ) * CASE WHEN NOT ( 80 IS NOT NULL ) THEN NULL ELSE + COALESCE ( + ( + 81 ), - COUNT ( * ) / + 65 + - 74 * CAST ( - 85 AS INTEGER ) ) + + + CASE - 2 WHEN + + COUNT ( * ) * 78 THEN - + SUM ( ALL - 91 ) + - 26 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) - 49 * 89 THEN NULL END END
----
NULL

query I rowsort
SELECT - 72 * + 96
----
-6912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7418
SELECT ALL + COUNT( * ) DIV - 45 col0
----
0

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL + COUNT ( * ) / - 45 col0
----
0

query I rowsort
SELECT - 49 * + 99
----
-4851

query I rowsort
SELECT ALL CASE 24 WHEN 64 THEN - 72 WHEN - 19 - - 71 + - 70 / - - 67 THEN NULL END * + 95 col1
----
NULL

query I rowsort
SELECT ALL - 20 + 51
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL + - 60 + - - SUM( + - 54 )
----
-114

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + - 60 + - - SUM ( + - 54 )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT - NULLIF ( 64, - - COUNT( * ) ) * + - 51 * - + 34 + 5
----
-110971

skipif mysql # not compatible
query I rowsort label-7423
SELECT - NULLIF ( 64, - - COUNT ( * ) ) * + - 51 * - + 34 + 5
----
-110971

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT - CASE + COUNT( - + 71 ) WHEN - - COUNT( * ) + 71 + + 62 * + COUNT( * ) / + 28 - + 88 + - 31 * - COUNT( * ) THEN NULL WHEN + COUNT( * ) + 74 THEN + 39 * - 91 + - 46 ELSE - 30 * + - 63 END col2
----
-1890

skipif mysql # not compatible
query I rowsort label-7424
SELECT - CASE + COUNT ( - + 71 ) WHEN - - COUNT ( * ) + 71 + + 62 * + COUNT ( * ) / + 28 - + 88 + - 31 * - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + 74 THEN + 39 * - 91 + - 46 ELSE - 30 * + - 63 END col2
----
-1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7425
SELECT ALL + + COALESCE ( - - 86, - 45 + - - MAX( 49 ), - - 81 DIV - 0 + - + 47 + + - 65 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL + + COALESCE ( - - 86, - 45 + - - MAX ( 49 ), - - 81 / - 0 + - + 47 + + - 65 ) AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7426
SELECT + - CAST( NULL AS SIGNED ) / + 95 * 83, 55 AS col0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7426
SELECT + - CAST ( NULL AS INTEGER ) / + 95 * 83, 55 AS col0
----
NULL
55

query II rowsort
SELECT + 92 * + 11 col1, 62 * + 45 * 81 AS col0
----
1012
225990

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT - 74 * + ( - CASE - MIN( DISTINCT - 14 ) WHEN + + 8 * + 28 * - 70 * AVG ( - + 48 ) THEN + 0 END ) * - + 91 * ( + 13 ) * + CASE + 23 WHEN - CASE WHEN 97 <> NULL THEN NULL ELSE COUNT( * ) END * ( + 9 ) / - 69 + - 54 / 97 THEN 50 * - 19 WHEN - COALESCE ( + 59, + 48, + 34 + + COUNT( * ) ) + + 7 * 16 THEN NULL WHEN 51 * - COALESCE ( + 33, 22 ) + + 82 THEN NULL ELSE 20 END * - ( COUNT( * ) ) + - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT - 74 * + ( - CASE - MIN ( DISTINCT - 14 ) WHEN + + 8 * + 28 * - 70 * AVG ( - + 48 ) THEN + 0 END ) * - + 91 * ( + 13 ) * + CASE + 23 WHEN - CASE WHEN 97 <> NULL THEN NULL ELSE COUNT ( * ) END * ( + 9 ) / - 69 + - 54 / 97 THEN 50 * - 19 WHEN - COALESCE ( + 59, + 48, + 34 + + COUNT ( * ) ) + + 7 * 16 THEN NULL WHEN 51 * - COALESCE ( + 33, 22 ) + + 82 THEN NULL ELSE 20 END * - ( COUNT ( * ) ) + - 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + - SUM( ALL 95 ) + + - COALESCE ( + 83, - 51 * 92 * + ( - COALESCE ( + 46, 35 ) ) ) AS col2
----
-178

skipif mysql # not compatible
query I rowsort label-7429
SELECT + - SUM ( ALL 95 ) + + - COALESCE ( + 83, - 51 * 92 * + ( - COALESCE ( + 46, 35 ) ) ) AS col2
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-7430
SELECT ALL 81 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL 81 / + 47
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7431
SELECT DISTINCT + 6 AS col0, COUNT( * ) - + 89
----
6
-88

skipif mysql # not compatible
query II rowsort label-7431
SELECT DISTINCT + 6 AS col0, COUNT ( * ) - + 89
----
6
-88

query I rowsort
SELECT ALL 51 * + + 69
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT DISTINCT + SUM( - 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT + SUM ( - 87 ) AS col0
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-7434
SELECT ALL + 54, + 79 DIV - 69 AS col2
----
54
-1

skipif mysql # not compatible
query II rowsort label-7434
SELECT ALL + 54, + 79 / - 69 AS col2
----
54
-1

query I rowsort
SELECT CASE 91 WHEN - + 14 THEN - 37 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT ALL 15 * + MIN( ALL + 40 ) + + 23 + + + ( + COUNT( * ) ) * + 14 AS col2
----
637

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL 15 * + MIN ( ALL + 40 ) + + 23 + + + ( + COUNT ( * ) ) * + 14 AS col2
----
637

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT MAX( ALL + + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-7437
SELECT MAX ( ALL + + 29 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7438
SELECT ALL + COUNT( * ) * NULLIF ( 90, - ( 52 ) + + ( + CAST( NULL AS SIGNED ) ) / + - 60 ) AS col2, - 20 + + + 34 * - - 75 + + - 11 col2
----
90
2519

skipif mysql # not compatible
query II rowsort label-7438
SELECT ALL + COUNT ( * ) * NULLIF ( 90, - ( 52 ) + + ( + CAST ( NULL AS INTEGER ) ) / + - 60 ) AS col2, - 20 + + + 34 * - - 75 + + - 11 col2
----
90
2519

query I rowsort
SELECT - 73 - - 83 AS col2
----
10

query I rowsort
SELECT ALL 79 + + 84 AS col0
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7441
SELECT ALL COUNT( * ) * COUNT( * ) DIV - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL COUNT ( * ) * COUNT ( * ) / - COUNT ( * ) * COUNT ( * )
----
-1

query I rowsort
SELECT - 49 * + 78 AS col1
----
-3822

query I rowsort
SELECT ALL ( + 88 ) col0
----
88

query I rowsort
SELECT ALL - 55 + 89
----
34

query I rowsort
SELECT + 13 + - 42
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL NULLIF ( + COUNT( DISTINCT + + 11 ), - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL NULLIF ( + COUNT ( DISTINCT + + 11 ), - 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT - ( + SUM( + 77 ) ) + + + 8 + 85
----
16

skipif mysql # not compatible
query I rowsort label-7447
SELECT - ( + SUM ( + 77 ) ) + + + 8 + 85
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT - + COALESCE ( - 56, + CASE - 95 WHEN 96 + + 62 * - SUM( ALL + 13 ) THEN NULL WHEN - 7 THEN NULL WHEN + 92 THEN + 77 ELSE 94 END )
----
56

skipif mysql # not compatible
query I rowsort label-7448
SELECT - + COALESCE ( - 56, + CASE - 95 WHEN 96 + + 62 * - SUM ( ALL + 13 ) THEN NULL WHEN - 7 THEN NULL WHEN + 92 THEN + 77 ELSE 94 END )
----
56

query I rowsort
SELECT - 31 + - 34 AS col2
----
-65

query I rowsort
SELECT + COALESCE ( - - 20, + + 51 )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7451
SELECT ALL + + COUNT( * ) * + ( 90 ) AS col1, - 81 * + - 35 + + + 44
----
90
2879

skipif mysql # not compatible
query II rowsort label-7451
SELECT ALL + + COUNT ( * ) * + ( 90 ) AS col1, - 81 * + - 35 + + + 44
----
90
2879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7452
SELECT DISTINCT - 69 * + - COUNT( * ) * + 42 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT - 69 * + - COUNT ( * ) * + 42 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT - + MAX( DISTINCT + ( + - 31 ) ) + 39 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7453
SELECT - + MAX ( DISTINCT + ( + - 31 ) ) + 39 AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7454
SELECT - 81 + + 34 * + + COUNT( * ) AS col0, 1 AS col1
----
-47
1

skipif mysql # not compatible
query II rowsort label-7454
SELECT - 81 + + 34 * + + COUNT ( * ) AS col0, 1 AS col1
----
-47
1

query I rowsort
SELECT ALL + 78 * 87 AS col1
----
6786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7456
SELECT + + 34, CAST( NULL AS SIGNED ) - - 78 / + - ( + COALESCE ( + 19, - + AVG ( ALL - + 78 ) + 4 * MAX( - 60 ), - 51 * 72 * + COUNT( * ) ) ) * + + 16 col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-7456
SELECT + + 34, CAST ( NULL AS INTEGER ) - - 78 / + - ( + COALESCE ( + 19, - + AVG ( ALL - + 78 ) + 4 * MAX ( - 60 ), - 51 * 72 * + COUNT ( * ) ) ) * + + 16 col2
----
34
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7457
SELECT - 92 AS col1, COUNT( * )
----
-92
1

skipif mysql # not compatible
query II rowsort label-7457
SELECT - 92 AS col1, COUNT ( * )
----
-92
1

query I rowsort
SELECT + + 1 * - 20 * + - ( - 26 )
----
-520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7459
SELECT + COALESCE ( - - 45, - 82 * + COALESCE ( - 61, 6 ) + + 64 * 12, + - COUNT( DISTINCT NULLIF ( + - 45, + CAST( NULL AS SIGNED ) ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-7459
SELECT + COALESCE ( - - 45, - 82 * + COALESCE ( - 61, 6 ) + + 64 * 12, + - COUNT ( DISTINCT NULLIF ( + - 45, + CAST ( NULL AS INTEGER ) ) ) )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7460
SELECT + CAST( + MAX( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT + CAST ( + MAX ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL + + MIN( + 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + + MIN ( + 49 ) AS col1
----
49

query I rowsort
SELECT DISTINCT + NULLIF ( + + 56, - 94 + + 79 ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT DISTINCT 4 DIV ( 1 )
----
4

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT 4 / ( 1 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT 49 * - + 28 - + - COUNT( * )
----
-1371

skipif mysql # not compatible
query I rowsort label-7464
SELECT 49 * - + 28 - + - COUNT ( * )
----
-1371

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT COUNT( * ) + - ( + 79 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT COUNT ( * ) + - ( + 79 ) AS col0
----
-78

query I rowsort
SELECT DISTINCT - 13 * 16
----
-208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7467
SELECT ( - + CASE 20 WHEN COUNT( + 35 ) * + AVG ( ALL + - 71 ) THEN 70 * + 75 * - + 50 WHEN COUNT( * ) + + NULLIF ( + 80, + AVG ( ALL + 47 ) + + + 67 / + + ( + 80 ) ) + - + AVG ( - 31 ) THEN CASE - 13 WHEN CAST( NULL AS SIGNED ) THEN + 48 ELSE NULL END WHEN 15 + + COUNT( * ) THEN 16 * + COUNT( * ) END ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT ( - + CASE 20 WHEN COUNT ( + 35 ) * + AVG ( ALL + - 71 ) THEN 70 * + 75 * - + 50 WHEN COUNT ( * ) + + NULLIF ( + 80, + AVG ( ALL + 47 ) + + + 67 / + + ( + 80 ) ) + - + AVG ( - 31 ) THEN CASE - 13 WHEN CAST ( NULL AS INTEGER ) THEN + 48 ELSE NULL END WHEN 15 + + COUNT ( * ) THEN 16 * + COUNT ( * ) END ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7468
SELECT DISTINCT - COUNT( + 26 ) AS col1, - 79 AS col2
----
-1
-79

skipif mysql # not compatible
query II rowsort label-7468
SELECT DISTINCT - COUNT ( + 26 ) AS col1, - 79 AS col2
----
-1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT 15 + + MAX( - ( - + 39 ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7469
SELECT 15 + + MAX ( - ( - + 39 ) ) AS col0
----
54

query I rowsort
SELECT ALL NULLIF ( + - 36, ( + 50 ) * + 2 + 4 ) + 76
----
40

query I rowsort
SELECT - + ( - - 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ALL + SUM( DISTINCT 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL + SUM ( DISTINCT 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7473
SELECT DISTINCT - 40 * - 14 + MAX( DISTINCT - 98 ) col2, + 59 AS col2
----
462
59

skipif mysql # not compatible
query II rowsort label-7473
SELECT DISTINCT - 40 * - 14 + MAX ( DISTINCT - 98 ) col2, + 59 AS col2
----
462
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7474
SELECT + 74 DIV + 27 + - + 14 * + 32
----
-446

skipif mysql # not compatible
query I rowsort label-7474
SELECT + 74 / + 27 + - + 14 * + 32
----
-446

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7475
SELECT - 41 DIV 63 * + MIN( ALL 6 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7475
SELECT - 41 / 63 * + MIN ( ALL 6 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7476
SELECT ALL - COALESCE ( 69, + COUNT( * ) * - 4 + + 57 - - AVG ( ALL + 51 ) ) DIV - 61 + + 95
----
96

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL - COALESCE ( 69, + COUNT ( * ) * - 4 + + 57 - - AVG ( ALL + 51 ) ) / - 61 + + 95
----
96

query II rowsort
SELECT - 68 - 10 + + ( 90 ) AS col2, - 68 AS col2
----
12
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT ALL - 75 * + CAST( NULL AS SIGNED ) + - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - 75 * + CAST ( NULL AS INTEGER ) + - 72 AS col2
----
NULL

query I rowsort
SELECT + 77 + - ( - 81 ) * 93 AS col1
----
7610

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL - - SUM( - 49 ) + + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - - SUM ( - 49 ) + + COUNT ( * )
----
-48

query I rowsort
SELECT ALL 51 + 55 AS col2
----
106

query I rowsort
SELECT DISTINCT - 44 * - 63 * - - 62 AS col1
----
171864

query II rowsort
SELECT + 58 AS col2, 61 AS col0
----
58
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7484
SELECT - 0 * - - ( + 10 ) * - 74 DIV + + ( + COUNT( * ) ) + - 5 * COUNT( * ) + - ( 61 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7484
SELECT - 0 * - - ( + 10 ) * - 74 / + + ( + COUNT ( * ) ) + - 5 * COUNT ( * ) + - ( 61 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7485
SELECT + 10, COUNT( DISTINCT - 82 ) AS col2
----
10
1

skipif mysql # not compatible
query II rowsort label-7485
SELECT + 10, COUNT ( DISTINCT - 82 ) AS col2
----
10
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7486
SELECT ALL - COALESCE ( - - 57, 1 * - + 82, COUNT( * ) DIV + 58 DIV 0 + - COUNT( * ) + - 3 ) * + 36
----
-2052

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL - COALESCE ( - - 57, 1 * - + 82, COUNT ( * ) / + 58 / 0 + - COUNT ( * ) + - 3 ) * + 36
----
-2052

query I rowsort
SELECT 80 * - 21
----
-1680

query I rowsort
SELECT ALL 50 + 66 AS col0
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-7489
SELECT COUNT( * ) + 40 + + 91 AS col0, - 0
----
132
0

skipif mysql # not compatible
query II rowsort label-7489
SELECT COUNT ( * ) + 40 + + 91 AS col0, - 0
----
132
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT ALL + 55 + 99 - 97 * COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL + 55 + 99 - 97 * COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7491
SELECT 30 * 41 DIV COUNT( * )
----
1230

skipif mysql # not compatible
query I rowsort label-7491
SELECT 30 * 41 / COUNT ( * )
----
1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7492
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7493
SELECT ALL SUM( DISTINCT - 80 ) * CAST( NULL AS SIGNED ) * 72 * + 71 + + + COUNT( * ) + + 69 + + 29 * - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL SUM ( DISTINCT - 80 ) * CAST ( NULL AS INTEGER ) * 72 * + 71 + + + COUNT ( * ) + + 69 + + 29 * - 1 AS col2
----
NULL

query I rowsort
SELECT 20 * - 40 AS col0
----
-800

query I rowsort
SELECT DISTINCT - ( + - 35 ) * + 68
----
2380

onlyif mysql # DIV for integer division: 
query II rowsort label-7496
SELECT ALL - 80 DIV NULLIF ( 33, + - 76 DIV - 78 ) AS col0, 86
----
-2
86

skipif mysql # not compatible
query II rowsort label-7496
SELECT ALL - 80 / NULLIF ( 33, + - 76 / - 78 ) AS col0, 86
----
-2
86

query I rowsort
SELECT 22 * - 29
----
-638

query I rowsort
SELECT - CASE 11 WHEN 65 THEN - - 47 * 34 * - + 55 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7499
SELECT CAST( + AVG ( - 51 ) AS SIGNED ) + + - COUNT( * ) + 7 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7499
SELECT CAST ( + AVG ( - 51 ) AS INTEGER ) + + - COUNT ( * ) + 7 AS col2
----
-45

query I rowsort
SELECT + 72 - - 45
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - - COUNT( ALL - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-7501
SELECT - - COUNT ( ALL - 80 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT + COUNT( * ) AS col1, 86 + + + 8 AS col1
----
1
94

skipif mysql # not compatible
query II rowsort label-7502
SELECT + COUNT ( * ) AS col1, 86 + + + 8 AS col1
----
1
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT ALL 8 * + ( - + CASE - + CAST( - NULLIF ( 20, + + 30 ) AS SIGNED ) WHEN - 16 THEN + 91 + - 59 END ) - - + 33 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL 8 * + ( - + CASE - + CAST ( - NULLIF ( 20, + + 30 ) AS INTEGER ) WHEN - 16 THEN + 91 + - 59 END ) - - + 33 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT DISTINCT COUNT( * ) + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT COUNT ( * ) + - 93
----
-92

query I rowsort
SELECT DISTINCT + 68 + - 85 + ( - 54 ) AS col2
----
-71

query I rowsort
SELECT ALL + ( + + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7507
SELECT ALL - 35 + 11 + + COUNT( * ) DIV + 69 col2
----
-24

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL - 35 + 11 + + COUNT ( * ) / + 69 col2
----
-24

query II rowsort
SELECT - CASE + 20 WHEN + ( 9 ) THEN - 92 / + + 29 + + + 77 WHEN + 83 * + 85 + 42 THEN - 47 END, 64 col0
----
NULL
64

query I rowsort
SELECT DISTINCT - - 47 + - 4
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT 22 * - COUNT( * ) + + 33
----
11

skipif mysql # not compatible
query I rowsort label-7510
SELECT 22 * - COUNT ( * ) + + 33
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT - 92 * + MIN( ALL - + 51 )
----
4692

skipif mysql # not compatible
query I rowsort label-7511
SELECT - 92 * + MIN ( ALL - + 51 )
----
4692

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT - 10 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-7512
SELECT - 10 / + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT - COUNT( * ) * + ( + + 11 ) + - SUM( 2 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT - COUNT ( * ) * + ( + + 11 ) + - SUM ( 2 ) AS col1
----
-13

query I rowsort
SELECT CASE + 39 WHEN - - ( + 62 ) * + 44 + 2 THEN NULL WHEN + 17 * + 57 + + 9 + + - 37 THEN 89 WHEN 56 + - + 77 THEN 71 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL + 73 * - COALESCE ( + 2, 70 * - 29 + - + 90 * + + 17 + + 23, MAX( DISTINCT - 70 ) ) + - ( - COUNT( * ) ) * 80 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL + 73 * - COALESCE ( + 2, 70 * - 29 + - + 90 * + + 17 + + 23, MAX ( DISTINCT - 70 ) ) + - ( - COUNT ( * ) ) * 80 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7516
SELECT - ( - + 56 ) * - - 42 * CASE + + 98 WHEN 62 THEN NULL WHEN - + COUNT( * ) THEN - 10 * ( - CAST( - + 81 AS SIGNED ) ) WHEN - 63 / 48 + 44 THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7516
SELECT - ( - + 56 ) * - - 42 * CASE + + 98 WHEN 62 THEN NULL WHEN - + COUNT ( * ) THEN - 10 * ( - CAST ( - + 81 AS INTEGER ) ) WHEN - 63 / 48 + 44 THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7517
SELECT ALL 62 DIV - + 17 AS col2, 43
----
-3
43

skipif mysql # not compatible
query II rowsort label-7517
SELECT ALL 62 / - + 17 AS col2, 43
----
-3
43

query I rowsort
SELECT - 74 + - 92 AS col1
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7519
SELECT ALL - SUM( ALL - CASE 71 WHEN - - 28 + + - CAST( 92 AS SIGNED ) THEN NULL ELSE - + 5 END ) * + - 41 * + 90
----
18450

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL - SUM ( ALL - CASE 71 WHEN - - 28 + + - CAST ( 92 AS INTEGER ) THEN NULL ELSE - + 5 END ) * + - 41 * + 90
----
18450

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL - MAX( DISTINCT - 13 ) * + NULLIF ( + + ( - COALESCE ( + 46, - 92 + 89 ) ), - + 86 + - 8 * + - COUNT( * ) ) - - 31 * - 81 * NULLIF ( COUNT( * ), 57 ) - - 66 AS col2
----
-3043

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL - MAX ( DISTINCT - 13 ) * + NULLIF ( + + ( - COALESCE ( + 46, - 92 + 89 ) ), - + 86 + - 8 * + - COUNT ( * ) ) - - 31 * - 81 * NULLIF ( COUNT ( * ), 57 ) - - 66 AS col2
----
-3043

onlyif mysql # aggregate syntax: 
query II rowsort label-7521
SELECT + 77, COALESCE ( - + CASE - COUNT( * ) WHEN - + 4 + - + 9 THEN 77 * 5 * - 47 WHEN 90 THEN 69 + + 90 WHEN + 22 THEN NULL END, + ( - 25 ) ) * 19 AS col2
----
77
-475

skipif mysql # not compatible
query II rowsort label-7521
SELECT + 77, COALESCE ( - + CASE - COUNT ( * ) WHEN - + 4 + - + 9 THEN 77 * 5 * - 47 WHEN 90 THEN 69 + + 90 WHEN + 22 THEN NULL END, + ( - 25 ) ) * 19 AS col2
----
77
-475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7522
SELECT + CAST( NULL AS SIGNED ) + - ( 91 ) + - 6 * - COUNT( * ) * - - 14 * + - 44 * + + COUNT( - 62 ) * + - COUNT( * ) / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT + CAST ( NULL AS INTEGER ) + - ( 91 ) + - 6 * - COUNT ( * ) * - - 14 * + - 44 * + + COUNT ( - 62 ) * + - COUNT ( * ) / 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT + SUM( DISTINCT 19 ) * - 18
----
-342

skipif mysql # not compatible
query I rowsort label-7523
SELECT + SUM ( DISTINCT 19 ) * - 18
----
-342

query I rowsort
SELECT - 20 - + 51 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT - CASE + + 28 WHEN + 69 + + COUNT( * ) THEN NULL WHEN - 2 THEN - + COUNT( * ) + + 91 ELSE + + 90 + + - 85 END + - 89 * + + COALESCE ( - - 6, + + 60 )
----
-539

skipif mysql # not compatible
query I rowsort label-7525
SELECT - CASE + + 28 WHEN + 69 + + COUNT ( * ) THEN NULL WHEN - 2 THEN - + COUNT ( * ) + + 91 ELSE + + 90 + + - 85 END + - 89 * + + COALESCE ( - - 6, + + 60 )
----
-539

query I rowsort
SELECT - 66 * 97 AS col2
----
-6402

query I rowsort
SELECT DISTINCT + COALESCE ( + + 56, - + 29 - - 82 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7528
SELECT DISTINCT + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT ALL + 75 AS col2, - 12 + 57
----
75
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT ALL - 51 * + 5 + + 35 + + + SUM( 85 ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL - 51 * + 5 + + 35 + + + SUM ( 85 ) AS col2
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT - 29 * 3 * + ( - - 48 ) + + - ( + + 53 ) + + 0 DIV + - 41 + 30 + 22
----
-4177

skipif mysql # not compatible
query I rowsort label-7531
SELECT - 29 * 3 * + ( - - 48 ) + + - ( + + 53 ) + + 0 / + - 41 + 30 + 22
----
-4177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT - 87 * - + 50 * ( + - 94 ) + - 3 + ( + - 82 ) * + - 57 + - 98 + 95 - ( + CAST( - 27 AS SIGNED ) ) AS col0
----
-404205

skipif mysql # not compatible
query I rowsort label-7532
SELECT - 87 * - + 50 * ( + - 94 ) + - 3 + ( + - 82 ) * + - 57 + - 98 + 95 - ( + CAST ( - 27 AS INTEGER ) ) AS col0
----
-404205

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT - + ( + 26 ) DIV - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7533
SELECT - + ( + 26 ) / - 48 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7534
SELECT ALL 39 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL 39 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + CASE - + COALESCE ( - 45, + 94 + 60 + 76 * - COUNT( + + 93 ) ) WHEN 13 THEN 95 WHEN - 81 THEN - 87 END + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT + CASE - + COALESCE ( - 45, + 94 + 60 + 76 * - COUNT ( + + 93 ) ) WHEN 13 THEN 95 WHEN - 81 THEN - 87 END + 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL - COUNT( * ) + + + 97 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL - COUNT ( * ) + + + 97 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT + 45 + - MIN( + - 15 )
----
60

skipif mysql # not compatible
query I rowsort label-7537
SELECT + 45 + - MIN ( + - 15 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7538
SELECT + + 69 DIV + ( - + COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-7538
SELECT + + 69 / + ( - + COUNT ( * ) )
----
-69

query II rowsort
SELECT ALL + 64 + 66, + 37 AS col2
----
130
37

query I rowsort
SELECT + - 95 * + 68 col1
----
-6460

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT - COALESCE ( 28, + + COUNT( ALL - 97 ) ) - ( - 9 ) - - ( 24 ) * 4 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7541
SELECT - COALESCE ( 28, + + COUNT ( ALL - 97 ) ) - ( - 9 ) - - ( 24 ) * 4 AS col1
----
77

query II rowsort
SELECT - 67, 62 + - 70 AS col2
----
-67
-8

query II rowsort
SELECT ALL 78 AS col0, - 12 AS col1
----
78
-12

query I rowsort
SELECT + 16 - + + 12 AS col1
----
4

query II rowsort
SELECT - 40 AS col0, + 67 AS col1
----
-40
67

query I rowsort
SELECT + + 87 + - 39
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT 16 + + + MIN( + - 39 ) * - + 19
----
757

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT 16 + + + MIN ( + - 39 ) * - + 19
----
757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7548
SELECT ALL COUNT( ( 53 ) ) * - + MIN( DISTINCT + + 63 ) DIV 69 * - 22 - - 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL COUNT ( ( 53 ) ) * - + MIN ( DISTINCT + + 63 ) / 69 * - 22 - - 48 AS col2
----
48

query I rowsort
SELECT ALL 45 + + 92
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7550
SELECT DISTINCT COUNT( * ) * - 43 DIV - + NULLIF ( + - 44, - + 69 * - 46 - COUNT( * ) * + 6 ) * - 95
----
0

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT COUNT ( * ) * - 43 / - + NULLIF ( + - 44, - + 69 * - 46 - COUNT ( * ) * + 6 ) * - 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT DISTINCT 21 * + CAST( - 37 AS SIGNED )
----
-777

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT 21 * + CAST ( - 37 AS INTEGER )
----
-777

query II rowsort
SELECT ALL 38 * + 57 AS col1, 39 + 96
----
2166
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT + CAST( + 71 AS SIGNED ) + + - ( + + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT + CAST ( + 71 AS INTEGER ) + + - ( + + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT - 3 * COALESCE ( - 66, + + 41 + 20 + 18 )
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT + ( - COUNT( ALL 14 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7555
SELECT + ( - COUNT ( ALL 14 ) ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7556
SELECT ALL + NULLIF ( + CASE - COUNT( ALL - + CAST( NULL AS SIGNED ) ) WHEN - - CAST( NULL AS SIGNED ) * - 2 THEN + COALESCE ( - - AVG ( 53 ), + + 54 * + + 58 - - 80 + ( 77 ) ) - - - 42 + - ( + - 18 ) + - - AVG ( + - 18 ) + 43 ELSE + NULLIF ( 98, - 72 ) END, - + ( + COUNT( * ) ) ) DIV + + ( - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL + NULLIF ( + CASE - COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) WHEN - - CAST ( NULL AS INTEGER ) * - 2 THEN + COALESCE ( - - AVG ( 53 ), + + 54 * + + 58 - - 80 + ( 77 ) ) - - - 42 + - ( + - 18 ) + - - AVG ( + - 18 ) + 43 ELSE + NULLIF ( 98, - 72 ) END, - + ( + COUNT ( * ) ) ) / + + ( - 76 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7557
SELECT + 67 * COUNT( * ), + 20 AS col0
----
67
20

skipif mysql # not compatible
query II rowsort label-7557
SELECT + 67 * COUNT ( * ), + 20 AS col0
----
67
20

query I rowsort
SELECT + 43 * 39 * 7 * + 66 AS col0
----
774774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7559
SELECT DISTINCT ( - + COUNT( * ) ) DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT ( - + COUNT ( * ) ) / 57 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT ALL CAST( NULL AS SIGNED ) / - + 74 / - COUNT( * ) * + - 81 * 63 / COUNT( * ) * - 61 * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL CAST ( NULL AS INTEGER ) / - + 74 / - COUNT ( * ) * + - 81 * 63 / COUNT ( * ) * - 61 * + 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7561
SELECT - COALESCE ( + + 95, COUNT( * ) ) * + ( + 30 ) DIV + 30
----
-95

skipif mysql # not compatible
query I rowsort label-7561
SELECT - COALESCE ( + + 95, COUNT ( * ) ) * + ( + 30 ) / + 30
----
-95

query I rowsort
SELECT DISTINCT - 53 * - ( - 37 )
----
-1961

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - CASE - COALESCE ( 35, 11 + - 44, + + 39 ) WHEN MIN( - 97 ) THEN - + CASE + 5 WHEN AVG ( - 50 ) THEN ( + - 6 ) ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT - CASE - COALESCE ( 35, 11 + - 44, + + 39 ) WHEN MIN ( - 97 ) THEN - + CASE + 5 WHEN AVG ( - 50 ) THEN ( + - 6 ) ELSE NULL END END AS col0
----
NULL

query I rowsort
SELECT 14 * - 23 + - + 95 * - - 31 + + 29 AS col0
----
-3238

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL 81 * 8 + + 96 + 53 * - COUNT( * ) AS col0
----
691

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL 81 * 8 + + 96 + 53 * - COUNT ( * ) AS col0
----
691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7566
SELECT ALL + + 61 * - COUNT( * ) * - - CASE + 15 WHEN ( + 79 ) THEN + COUNT( DISTINCT - 21 ) WHEN - 6 THEN NULL END + + CAST( NULL AS SIGNED ) + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL + + 61 * - COUNT ( * ) * - - CASE + 15 WHEN ( + 79 ) THEN + COUNT ( DISTINCT - 21 ) WHEN - 6 THEN NULL END + + CAST ( NULL AS INTEGER ) + 23
----
NULL

query I rowsort
SELECT DISTINCT - CASE 96 WHEN - ( + + COALESCE ( - 66, - 88 + + + 91 + - 61 * + 47 ) ) THEN - - 22 ELSE NULL END
----
NULL

query II rowsort
SELECT - 87 + 18 AS col1, ( + + 47 ) * + 11 + + 23
----
-69
540

query I rowsort
SELECT 0 * - + 54 + + - 88
----
-88

query I rowsort
SELECT 3 + + 98 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT + MAX( - 8 ) - + 29 + 30 * 41 AS col1
----
1193

skipif mysql # not compatible
query I rowsort label-7571
SELECT + MAX ( - 8 ) - + 29 + 30 * 41 AS col1
----
1193

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT 49 + ( + + COUNT( * ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7572
SELECT 49 + ( + + COUNT ( * ) ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT MAX( - 2 ) * + - 83 AS col2
----
166

skipif mysql # not compatible
query I rowsort label-7573
SELECT MAX ( - 2 ) * + - 83 AS col2
----
166

query I rowsort
SELECT DISTINCT - 86 - - 99 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT + COUNT( * ) * + 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT + COUNT ( * ) * + 88 AS col2
----
88

query II rowsort
SELECT ALL 65 AS col1, - 56
----
65
-56

query I rowsort
SELECT 95 + + 88
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT - 17 AS col0, + COUNT( * )
----
-17
1

skipif mysql # not compatible
query II rowsort label-7578
SELECT - 17 AS col0, + COUNT ( * )
----
-17
1

query I rowsort
SELECT 96 * - 73 + + 77 * + 98 * - + 72 AS col0
----
-550320

query II rowsort
SELECT 86 AS col2, + 0 AS col2
----
86
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT DISTINCT CAST( NULL AS SIGNED ) * NULLIF ( - 30, - 7 + - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT CAST ( NULL AS INTEGER ) * NULLIF ( - 30, - 7 + - 83 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT DISTINCT - CAST( + 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT - CAST ( + 47 AS INTEGER )
----
-47

query I rowsort
SELECT ALL 55 * - 59 AS col1
----
-3245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7584
SELECT ( + 65 ) + + COUNT( - 95 ) + + - 64 * + CAST( NULL AS SIGNED ) * 80 + - + 71 * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT ( + 65 ) + + COUNT ( - 95 ) + + - 64 * + CAST ( NULL AS INTEGER ) * 80 + - + 71 * + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7585
SELECT ALL ( - 93 ) * + COUNT( * ) col1, + CASE + + 39 WHEN 61 THEN NULL WHEN + CAST( NULL AS SIGNED ) + - 60 THEN + 68 END * - + COUNT( * ) AS col2
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-7585
SELECT ALL ( - 93 ) * + COUNT ( * ) col1, + CASE + + 39 WHEN 61 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + - 60 THEN + 68 END * - + COUNT ( * ) AS col2
----
-93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL - NULLIF ( - COUNT( * ), - 99 * + COUNT( * ) * + 53 / + 90 * + + 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - NULLIF ( - COUNT ( * ), - 99 * + COUNT ( * ) * + 53 / + 90 * + + 66 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7587
SELECT CAST( 14 AS SIGNED ) * COUNT( * ) * + 76 col0
----
1064

skipif mysql # not compatible
query I rowsort label-7587
SELECT CAST ( 14 AS INTEGER ) * COUNT ( * ) * + 76 col0
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + 74 * MAX( DISTINCT - ( - 49 ) ) - + 9 * COUNT( * ) * - 68 * 91 * 3 AS col2
----
170702

skipif mysql # not compatible
query I rowsort label-7588
SELECT + 74 * MAX ( DISTINCT - ( - 49 ) ) - + 9 * COUNT ( * ) * - 68 * 91 * 3 AS col2
----
170702

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT - + 78 * + SUM( + 53 ) + + 10 + 62
----
-4062

skipif mysql # not compatible
query I rowsort label-7589
SELECT - + 78 * + SUM ( + 53 ) + + 10 + 62
----
-4062

query I rowsort
SELECT + 25 - + 77 + - ( - 96 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL - + CASE + 10 WHEN + - COUNT( * ) * AVG ( DISTINCT + 49 ) - - 15 + 76 THEN + + ( + ( - + COUNT( * ) ) ) WHEN - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - + CASE + 10 WHEN + - COUNT ( * ) * AVG ( DISTINCT + 49 ) - - 15 + 76 THEN + + ( + ( - + COUNT ( * ) ) ) WHEN - COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7592
SELECT + 69 DIV + - 63 - 87 - - + 37 + 61 + - ( 10 ) * COUNT( * ) * - - 5 * + 4 + MIN( ALL - 36 ) DIV + - COUNT( - ( - - 62 ) ) AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-7592
SELECT + 69 / + - 63 - 87 - - + 37 + 61 + - ( 10 ) * COUNT ( * ) * - - 5 * + 4 + MIN ( ALL - 36 ) / + - COUNT ( - ( - - 62 ) ) AS col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT 67 + - 20 + - 67 + - 72 * - MAX( ALL + 77 )
----
5524

skipif mysql # not compatible
query I rowsort label-7593
SELECT 67 + - 20 + - 67 + - 72 * - MAX ( ALL + 77 )
----
5524

query II rowsort
SELECT + + 54 AS col0, 62 AS col1
----
54
62

query II rowsort
SELECT + 61 col2, - 95 + - - 37
----
61
-58

query I rowsort
SELECT ALL + 88 + - 27 AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7597
SELECT DISTINCT + 30 + 14 DIV + 86 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT + 30 + 14 / + 86 AS col2
----
30

query II rowsort
SELECT ALL - 5 AS col2, 30 + 17
----
-5
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7599
SELECT - - 38, - 16 + + COUNT( * ) + + COUNT( * ) AS col1
----
38
-14

skipif mysql # not compatible
query II rowsort label-7599
SELECT - - 38, - 16 + + COUNT ( * ) + + COUNT ( * ) AS col1
----
38
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7600
SELECT + NULLIF ( - CASE 25 WHEN COUNT( * ) * + - 10 + + COUNT( * ) THEN - CASE + 38 WHEN - + 44 * - 51 + CAST( NULL AS SIGNED ) + + - 64 + + 14 * 71 THEN NULL ELSE + + 30 END + + - MAX( + 16 ) + + 64 * - 89 ELSE NULL END, - 17 ) * + 50 * - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT + NULLIF ( - CASE 25 WHEN COUNT ( * ) * + - 10 + + COUNT ( * ) THEN - CASE + 38 WHEN - + 44 * - 51 + CAST ( NULL AS INTEGER ) + + - 64 + + 14 * 71 THEN NULL ELSE + + 30 END + + - MAX ( + 16 ) + + 64 * - 89 ELSE NULL END, - 17 ) * + 50 * - 20 AS col1
----
NULL

query I rowsort
SELECT + 85 * + + 89 AS col1
----
7565

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT 15 + 71 * COUNT( + 62 )
----
86

skipif mysql # not compatible
query I rowsort label-7602
SELECT 15 + 71 * COUNT ( + 62 )
----
86

query I rowsort
SELECT - - COALESCE ( - + 50, - 44 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT - + 48, COUNT( * ) AS col2
----
-48
1

skipif mysql # not compatible
query II rowsort label-7604
SELECT - + 48, COUNT ( * ) AS col2
----
-48
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT NULLIF ( CAST( NULL AS SIGNED ), 30 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT NULLIF ( CAST ( NULL AS INTEGER ), 30 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL - 12 * + AVG ( ALL - CASE 61 WHEN + 87 THEN 82 END ) / + - 0 * + 72 / + 56 + + SUM( + - 17 ) * - + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL - 12 * + AVG ( ALL - CASE 61 WHEN + 87 THEN 82 END ) / + - 0 * + 72 / + 56 + + SUM ( + - 17 ) * - + 69 AS col0
----
NULL

query I rowsort
SELECT ALL 90 * + + ( - 2 )
----
-180

query I rowsort
SELECT 15 + - + 53 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL - 36 * + + 41 * + - COUNT( * ) AS col2
----
1476

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL - 36 * + + 41 * + - COUNT ( * ) AS col2
----
1476

query I rowsort
SELECT 24 * - ( + + 31 )
----
-744

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT 98 - + NULLIF ( 57, + 97 - + - 47 + - 41 - + 16 ) DIV - - 86 * 26 col2
----
98

skipif mysql # not compatible
query I rowsort label-7611
SELECT 98 - + NULLIF ( 57, + 97 - + - 47 + - 41 - + 16 ) / - - 86 * 26 col2
----
98

query I rowsort
SELECT ALL - ( + 52 ) * + - ( + 63 ) AS col0
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT 14 * - + MIN( - 23 )
----
322

skipif mysql # not compatible
query I rowsort label-7613
SELECT 14 * - + MIN ( - 23 )
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL - COUNT( * ) * MIN( + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL - COUNT ( * ) * MIN ( + 13 ) AS col0
----
-13

query I rowsort
SELECT 40 * + NULLIF ( + 15, + + 37 * - + 45 + 69 * 73 ) AS col0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT COUNT( * ) - 6
----
-5

skipif mysql # not compatible
query I rowsort label-7616
SELECT COUNT ( * ) - 6
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT ALL + 74 * MAX( DISTINCT + 29 )
----
2146

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + 74 * MAX ( DISTINCT + 29 )
----
2146

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT 59 DIV + 36
----
1

skipif mysql # not compatible
query I rowsort label-7618
SELECT 59 / + 36
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL - 55 * + - 71 + + MIN( ALL + - 33 )
----
3872

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - 55 * + - 71 + + MIN ( ALL + - 33 )
----
3872

query I rowsort
SELECT 30 * - 40 * 59 * 76 * 16
----
-86092800

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT COUNT( * ) + + - 76 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-7621
SELECT COUNT ( * ) + + - 76 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT + SUM( DISTINCT + 94 ), - ( - 78 ) + 76 AS col1
----
94
154

skipif mysql # not compatible
query II rowsort label-7622
SELECT + SUM ( DISTINCT + 94 ), - ( - 78 ) + 76 AS col1
----
94
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT + 7 * COALESCE ( + ( + - 93 ), + - 26, - 58 * + COUNT( + - 22 ) * + - 84 + - + 61 - + 80, - - COUNT( - 7 ) - - 12 ) * - + 96 + + + MIN( DISTINCT - 92 ) AS col0
----
62404

skipif mysql # not compatible
query I rowsort label-7623
SELECT + 7 * COALESCE ( + ( + - 93 ), + - 26, - 58 * + COUNT ( + - 22 ) * + - 84 + - + 61 - + 80, - - COUNT ( - 7 ) - - 12 ) * - + 96 + + + MIN ( DISTINCT - 92 ) AS col0
----
62404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT DISTINCT 20 * + CAST( NULL AS SIGNED ) * - 51 + - 18 + - 75 * + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT 20 * + CAST ( NULL AS INTEGER ) * - 51 + - 18 + - 75 * + 79 AS col1
----
NULL

query I rowsort
SELECT ALL + 51 + - - ( 58 ) - - + 19 * 4 AS col0
----
185

query I rowsort
SELECT + + 40 * 41 * + - 39 AS col0
----
-63960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT + + 7 * - 1 - - CAST( + - 9 AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7627
SELECT + + 7 * - 1 - - CAST ( + - 9 AS INTEGER ) AS col1
----
-16

query I rowsort
SELECT + 78 * - - 68 col2
----
5304

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT ALL 35 DIV 5 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL 35 / 5 AS col1
----
7

query I rowsort
SELECT + 5 - - 42 AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7631
SELECT + - 80 + - 30 * 60 * - + 16 AS col1, 29 + 4 + + 0 + COUNT( * ) col2
----
28720
34

skipif mysql # not compatible
query II rowsort label-7631
SELECT + - 80 + - 30 * 60 * - + 16 AS col1, 29 + 4 + + 0 + COUNT ( * ) col2
----
28720
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7632
SELECT ALL 16 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL 16 / + 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT - 27 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-7633
SELECT - 27 / + 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT + 98 + + COUNT( * ) + MAX( ALL - ( - + 5 ) ) * COUNT( * ) * + - 19 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT + 98 + + COUNT ( * ) + MAX ( ALL - ( - + 5 ) ) * COUNT ( * ) * + - 19 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 9 * - NULLIF ( + 0, + 16 )
----
0

query I rowsort
SELECT - NULLIF ( + + 18, + 19 )
----
-18

query I rowsort
SELECT + 50 + + 66 AS col2
----
116

query I rowsort
SELECT - 56 - - 66
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL CASE + COUNT( * ) WHEN 54 THEN NULL ELSE - 21 * - 70 + + - 34 END col1
----
1436

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL CASE + COUNT ( * ) WHEN 54 THEN NULL ELSE - 21 * - 70 + + - 34 END col1
----
1436

query I rowsort
SELECT - 44 + + + 9
----
-35

query I rowsort
SELECT DISTINCT 8 + - 71 AS col2
----
-63

query I rowsort
SELECT ALL NULLIF ( + + 85, - 75 ) AS col2
----
85

query I rowsort
SELECT - 37 * + + ( - - 60 ) * 24 col0
----
-53280

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL - COUNT( * ) + + - 54 * + COUNT( * ) * + MAX( ALL - 9 ) AS col0
----
485

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL - COUNT ( * ) + + - 54 * + COUNT ( * ) * + MAX ( ALL - 9 ) AS col0
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL + 79 + + 49 * - NULLIF ( ( - + COUNT( * ) ), - 48 )
----
128

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL + 79 + + 49 * - NULLIF ( ( - + COUNT ( * ) ), - 48 )
----
128

query I rowsort
SELECT + 25 + - 28 AS col1
----
-3

query I rowsort
SELECT - 84 * + - 26 AS col1
----
2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7648
SELECT ALL - 6 DIV - COUNT( DISTINCT - 86 ), + 1 AS col2
----
6
1

skipif mysql # not compatible
query II rowsort label-7648
SELECT ALL - 6 / - COUNT ( DISTINCT - 86 ), + 1 AS col2
----
6
1

query I rowsort
SELECT - 1 + - 80
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - COUNT( * ) * 46 * + - ( + + 17 ) AS col2
----
782

skipif mysql # not compatible
query I rowsort label-7650
SELECT - COUNT ( * ) * 46 * + - ( + + 17 ) AS col2
----
782

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT + NULLIF ( + + 92, + + COALESCE ( - 59, + COUNT( * ) * COUNT( 14 ), ( + 89 ) * MAX( - + 9 ) * + 73 ) * - + 0 + 69 ) * - COUNT( * ) * + 19 * + 45 + 46
----
-78614

skipif mysql # not compatible
query I rowsort label-7651
SELECT + NULLIF ( + + 92, + + COALESCE ( - 59, + COUNT ( * ) * COUNT ( 14 ), ( + 89 ) * MAX ( - + 9 ) * + 73 ) * - + 0 + 69 ) * - COUNT ( * ) * + 19 * + 45 + 46
----
-78614

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT - 28 DIV - 33 + - 7
----
-7

skipif mysql # not compatible
query I rowsort label-7652
SELECT - 28 / - 33 + - 7
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT DISTINCT - 27 * - 66 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT - 27 * - 66 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 32 * + 96
----
-3072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7655
SELECT DISTINCT + - COALESCE ( 45, CAST( NULL AS SIGNED ) + + NULLIF ( + - 62, CASE - 75 WHEN + COUNT( * ) - - 12 THEN - - 51 DIV + 12 * 49 + + 62 END - + + 51 * - - COUNT( * ) ) * 3 + - 32 - - 39 + + NULLIF ( - - 64, + 87 ) DIV + 70, + + 62 * + - 2 DIV - + 46 + + 66 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT + - COALESCE ( 45, CAST ( NULL AS INTEGER ) + + NULLIF ( + - 62, CASE - 75 WHEN + COUNT ( * ) - - 12 THEN - - 51 / + 12 * 49 + + 62 END - + + 51 * - - COUNT ( * ) ) * 3 + - 32 - - 39 + + NULLIF ( - - 64, + 87 ) / + 70, + + 62 * + - 2 / - + 46 + + 66 ) AS col0
----
-45

query I rowsort
SELECT ALL + ( 36 ) AS col0
----
36

query I rowsort
SELECT DISTINCT + 76 * 34 - + 23 + + 69 AS col2
----
2630

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT + SUM( 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7658
SELECT + SUM ( 81 ) AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7659
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( DISTINCT + - 47 ) * - 80 + 7 + 78 * + 25 + + ( CAST( 44 AS SIGNED ) ) ) + 48 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( DISTINCT + - 47 ) * - 80 + 7 + 78 * + 25 + + ( CAST ( 44 AS INTEGER ) ) ) + 48 * - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT - 78 * + ( - 65 ) * - + 28 - COUNT( * ) + + 21 AS col1
----
-141940

skipif mysql # not compatible
query I rowsort label-7660
SELECT - 78 * + ( - 65 ) * - + 28 - COUNT ( * ) + + 21 AS col1
----
-141940

query I rowsort
SELECT DISTINCT + - 79 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-7662
SELECT - 31, - 59 - 78 * + 17 * MIN( ALL + 59 ) col2
----
-31
-78293

skipif mysql # not compatible
query II rowsort label-7662
SELECT - 31, - 59 - 78 * + 17 * MIN ( ALL + 59 ) col2
----
-31
-78293

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL + MAX( ALL + - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + MAX ( ALL + - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT + + COUNT( DISTINCT 16 ) + + - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7664
SELECT + + COUNT ( DISTINCT 16 ) + + - 3 AS col2
----
-2

query I rowsort
SELECT ALL + ( 62 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT ALL + + CAST( + - 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + + CAST ( + - 47 AS INTEGER )
----
-47

query I rowsort
SELECT + - 84 + - - 70
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT ALL 42 * + - MAX( DISTINCT 41 )
----
-1722

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL 42 * + - MAX ( DISTINCT 41 )
----
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ALL + + NULLIF ( + COUNT( * ), + 74 / + - 25 + - 60 / + 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + + NULLIF ( + COUNT ( * ), + 74 / + - 25 + - 60 / + 51 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT - 23 * - ( + ( 63 ) ) + - 64 * + - MAX( 93 )
----
7401

skipif mysql # not compatible
query I rowsort label-7670
SELECT - 23 * - ( + ( 63 ) ) + - 64 * + - MAX ( 93 )
----
7401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT ALL + CAST( - 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + CAST ( - 66 AS INTEGER )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7672
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT + - 35 * - MAX( ALL + 66 )
----
2310

skipif mysql # not compatible
query I rowsort label-7673
SELECT + - 35 * - MAX ( ALL + 66 )
----
2310

query I rowsort
SELECT + 80 + - 16
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7675
SELECT ALL 38 + + 44 + + MAX( - CAST( - 8 AS SIGNED ) ) + - CASE + ( + 6 ) WHEN - - 13 THEN COUNT( * ) ELSE ( 79 ) END AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL 38 + + 44 + + MAX ( - CAST ( - 8 AS INTEGER ) ) + - CASE + ( + 6 ) WHEN - - 13 THEN COUNT ( * ) ELSE ( 79 ) END AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT DISTINCT 67 + - 67 + - + COUNT( * ) * MAX( 27 ) * + 99 * - 82 AS col0
----
219186

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT 67 + - 67 + - + COUNT ( * ) * MAX ( 27 ) * + 99 * - 82 AS col0
----
219186

query I rowsort
SELECT DISTINCT - 19 + + 61 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL 2 + 83 * COALESCE ( + CASE + 17 WHEN - COUNT( * ) THEN - + 62 * + + 45 END, 92 )
----
7638

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL 2 + 83 * COALESCE ( + CASE + 17 WHEN - COUNT ( * ) THEN - + 62 * + + 45 END, 92 )
----
7638

query I rowsort
SELECT + 84 - + 97 + ( - 76 ) * - - 28 col2
----
-2141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN - 32 + - + 44 THEN NULL WHEN + COUNT( * ) * - AVG ( 21 ) + - + 53 + 49 * - + 78 THEN + MAX( DISTINCT - 40 ) ELSE NULL END * + + 78 * 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN - 32 + - + 44 THEN NULL WHEN + COUNT ( * ) * - AVG ( 21 ) + - + 53 + 49 * - + 78 THEN + MAX ( DISTINCT - 40 ) ELSE NULL END * + + 78 * 19 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 55 + 72
----
127

query II rowsort
SELECT 82, 12 AS col0
----
82
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7683
SELECT - MAX( DISTINCT + 23 ) + + CAST( CASE + 82 WHEN + 17 + + 48 + + 82 * COUNT( * ) * 19 THEN NULL ELSE - SUM( ALL 12 ) * + - 88 * - 48 END AS SIGNED ) * 78 * + 12 AS col1, - 27 AS col2
----
-47443991
-27

skipif mysql # not compatible
query II rowsort label-7683
SELECT - MAX ( DISTINCT + 23 ) + + CAST ( CASE + 82 WHEN + 17 + + 48 + + 82 * COUNT ( * ) * 19 THEN NULL ELSE - SUM ( ALL 12 ) * + - 88 * - 48 END AS INTEGER ) * 78 * + 12 AS col1, - 27 AS col2
----
-47443991
-27

query I rowsort
SELECT ALL - 2 + 37 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT DISTINCT COUNT( * ) * 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT COUNT ( * ) * 18 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7686
SELECT ALL - 84 - - COUNT( * ) + COUNT( * ) * 31 * - - CAST( NULL AS DECIMAL ) * + COUNT( - 80 ) * - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL - 84 - - COUNT ( * ) + COUNT ( * ) * 31 * - - CAST ( NULL AS REAL ) * + COUNT ( - 80 ) * - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT + COUNT( * ) * ( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-7687
SELECT + COUNT ( * ) * ( + 4 )
----
4

query I rowsort
SELECT ALL 36 * 53 AS col2
----
1908

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT ALL - CASE - - 87 WHEN 59 * - + 39 * - + 3 + CASE + COUNT( * ) WHEN + + 13 * - 97 THEN + 23 ELSE - 60 - - - 13 END THEN NULL ELSE - - 38 * - 39 END AS col2
----
1482

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL - CASE - - 87 WHEN 59 * - + 39 * - + 3 + CASE + COUNT ( * ) WHEN + + 13 * - 97 THEN + 23 ELSE - 60 - - - 13 END THEN NULL ELSE - - 38 * - 39 END AS col2
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT - + COALESCE ( - NULLIF ( 30, - 61 / - - 90 - - COUNT( * ) ), + 96, + 75 )
----
30

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT - + COALESCE ( - NULLIF ( 30, - 61 / - - 90 - - COUNT ( * ) ), + 96, + 75 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL + + 80 - + + NULLIF ( + - 73, SUM( ALL + 36 ) ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL + + 80 - + + NULLIF ( + - 73, SUM ( ALL + 36 ) ) AS col0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7692
SELECT 0 * CAST( COUNT( * ) AS SIGNED ) * - 35 + 46 + + + 88 + + + 7
----
141

skipif mysql # not compatible
query I rowsort label-7692
SELECT 0 * CAST ( COUNT ( * ) AS INTEGER ) * - 35 + 46 + + + 88 + + + 7
----
141

query I rowsort
SELECT 44 * - 43
----
-1892

query I rowsort
SELECT - + 36 * 94 + 40
----
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + SUM( - + 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7695
SELECT + SUM ( - + 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7696
SELECT - 51 * SUM( - 57 ) + + COUNT( * ), 52 DIV - 82 + + 30 * + - ( 26 ) AS col1
----
2908
-780

skipif mysql # not compatible
query II rowsort label-7696
SELECT - 51 * SUM ( - 57 ) + + COUNT ( * ), 52 / - 82 + + 30 * + - ( 26 ) AS col1
----
2908
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ALL + - ( + 33 ) * + SUM( ALL 34 ) * - + 17 col0
----
19074

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL + - ( + 33 ) * + SUM ( ALL 34 ) * - + 17 col0
----
19074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7698
SELECT ( + - 23 ) DIV + COALESCE ( COUNT( * ), + 53 - - CASE 58 WHEN - - 79 + + 89 THEN ( - 43 ) WHEN + ( MIN( DISTINCT 80 ) ) * + + 99 THEN + 52 + + SUM( DISTINCT - 54 ) + - - 92 + + 51 + - - 38 + 72 ELSE - + COALESCE ( + 16, - - MIN( 90 ) ) * + COUNT( * ) * 50 - + 1 + - + 14 + - 34 * + COALESCE ( ( - 62 ) * 90, 74 ) * + COUNT( * ) END * 91 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7698
SELECT ( + - 23 ) / + COALESCE ( COUNT ( * ), + 53 - - CASE 58 WHEN - - 79 + + 89 THEN ( - 43 ) WHEN + ( MIN ( DISTINCT 80 ) ) * + + 99 THEN + 52 + + SUM ( DISTINCT - 54 ) + - - 92 + + 51 + - - 38 + 72 ELSE - + COALESCE ( + 16, - - MIN ( 90 ) ) * + COUNT ( * ) * 50 - + 1 + - + 14 + - 34 * + COALESCE ( ( - 62 ) * 90, 74 ) * + COUNT ( * ) END * 91 ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT DISTINCT CAST( NULL AS SIGNED ) / + - 3 * + 53 * ( + 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - 3 * + 53 * ( + 9 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7700
SELECT + 78 DIV - 40 + - + 6
----
-7

skipif mysql # not compatible
query I rowsort label-7700
SELECT + 78 / - 40 + - + 6
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL + COUNT( * ) * - NULLIF ( 24, 91 + - - 69 )
----
-24

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + COUNT ( * ) * - NULLIF ( 24, 91 + - - 69 )
----
-24

query I rowsort
SELECT DISTINCT - - CASE - 25 WHEN + 88 THEN NULL WHEN + - 64 * 98 * + 74 * + 28 THEN + + 96 * + 59 ELSE - + 46 END
----
-46

query I rowsort
SELECT ALL + + 63 * 30 + + - 77 AS col2
----
1813

query II rowsort
SELECT ALL - 13 AS col1, 52 * 92 AS col2
----
-13
4784

query I rowsort
SELECT 72 + - 6 * - + 31
----
258

query II rowsort
SELECT 18 + + 15 col2, 15 AS col0
----
33
15

query I rowsort
SELECT 33 - - 37 * - 51 AS col1
----
-1854

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL 56 * - COUNT( * ) * + - 7 AS col2
----
392

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL 56 * - COUNT ( * ) * + - 7 AS col2
----
392

query I rowsort
SELECT ALL - 78 + + 72
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7710
SELECT DISTINCT 91 * + 30 * 4, - COUNT( * ) AS col0
----
10920
-1

skipif mysql # not compatible
query II rowsort label-7710
SELECT DISTINCT 91 * + 30 * 4, - COUNT ( * ) AS col0
----
10920
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT COUNT( ALL - 98 ) + + 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7711
SELECT COUNT ( ALL - 98 ) + + 47 AS col0
----
48

query I rowsort
SELECT ALL + 15 + 31
----
46

query I rowsort
SELECT 23 + - 21
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL ( 30 ) * - COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL ( 30 ) * - COUNT ( * ) AS col0
----
-30

query II rowsort
SELECT DISTINCT 14 + 57 col0, + 6 AS col1
----
71
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7716
SELECT MIN( DISTINCT - + 93 ) + - 41 + + - 0 - + - 9 + - CAST( + - 4 AS SIGNED ) + 79
----
-42

skipif mysql # not compatible
query I rowsort label-7716
SELECT MIN ( DISTINCT - + 93 ) + - 41 + + - 0 - + - 9 + - CAST ( + - 4 AS INTEGER ) + 79
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ( - + COUNT( * ) ) + - 39 col0
----
-40

skipif mysql # not compatible
query I rowsort label-7717
SELECT ( - + COUNT ( * ) ) + - 39 col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT ALL COUNT( * ) DIV 13 * 42
----
0

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL COUNT ( * ) / 13 * 42
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( + + 11, + + 25, - + 28 + + 80 ) * 67 - + 64
----
-801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7720
SELECT 69 DIV + + COALESCE ( + COUNT( * ), - - 47 + - 80, NULLIF ( + 30, + 20 * 24 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7720
SELECT 69 / + + COALESCE ( + COUNT ( * ), - - 47 + - 80, NULLIF ( + 30, + 20 * 24 ) ) AS col2
----
69

query I rowsort
SELECT - 69 * - - 16 AS col1
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ALL + 64 * COUNT( * ) * + - ( + COUNT( * ) ) + 68 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL + 64 * COUNT ( * ) * + - ( + COUNT ( * ) ) + 68 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ( + COUNT( * ) ) + - 72 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7723
SELECT ( + COUNT ( * ) ) + - 72 AS col2
----
-71

query I rowsort
SELECT 59 * + - ( - 90 )
----
5310

query I rowsort
SELECT ALL - 89 * - 61 + 36 + + - 20 AS col1
----
5445

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT COUNT( * ) + 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7726
SELECT COUNT ( * ) + 52 AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7727
SELECT DISTINCT 61 * - 89, COUNT( * ) AS col2
----
-5429
1

skipif mysql # not compatible
query II rowsort label-7727
SELECT DISTINCT 61 * - 89, COUNT ( * ) AS col2
----
-5429
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7728
SELECT ALL - + MAX( DISTINCT 48 ) col2, + ( COUNT( * ) ) * + COUNT( * ) AS col2
----
-48
1

skipif mysql # not compatible
query II rowsort label-7728
SELECT ALL - + MAX ( DISTINCT 48 ) col2, + ( COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-48
1

query I rowsort
SELECT ALL NULLIF ( + 62, + + 38 + + 13 ) * - 50
----
-3100

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT DISTINCT - CASE - 81 WHEN + 83 THEN COUNT( * ) WHEN - + 86 THEN 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - CASE - 81 WHEN + 83 THEN COUNT ( * ) WHEN - + 86 THEN 29 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7731
SELECT + COALESCE ( + + COUNT( * ), + 73, - 0, + 77 DIV - 71 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7731
SELECT + COALESCE ( + + COUNT ( * ), + 73, - 0, + 77 / - 71 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT ALL - MIN( DISTINCT + 95 ) + 84 - - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL - MIN ( DISTINCT + 95 ) + 84 - - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT MAX( ALL - ( 99 ) ) + + 82 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7733
SELECT MAX ( ALL - ( 99 ) ) + + 82 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7734
SELECT - 31 DIV + - CAST( + 33 AS SIGNED ) * 97 + + 77 + - - 77 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-7734
SELECT - 31 / + - CAST ( + 33 AS INTEGER ) * 97 + + 77 + - - 77 AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT 84 + 33 + + COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-7735
SELECT 84 + 33 + + COUNT ( * )
----
118

query I rowsort
SELECT ALL + 96 + - - 17
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ( SUM( 80 ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7737
SELECT ( SUM ( 80 ) ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT + - SUM( - 95 ), COUNT( * ) AS col0
----
95
1

skipif mysql # not compatible
query II rowsort label-7738
SELECT + - SUM ( - 95 ), COUNT ( * ) AS col0
----
95
1

query I rowsort
SELECT - 56 * 4 + 33 + 14 + - 67 + - - 15
----
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL - + 47 + + - 95 * COALESCE ( + - COUNT( * ), + 4 )
----
48

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL - + 47 + + - 95 * COALESCE ( + - COUNT ( * ), + 4 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT - COUNT( - 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT - COUNT ( - 8 ) AS col2
----
-1

query I rowsort
SELECT 43 + - 66 AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT 53 DIV - + 24 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7743
SELECT 53 / - + 24 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT 23 * + COALESCE ( - - COUNT( * ), 2 + - + CASE COUNT( * ) WHEN + - 77 THEN + + 42 END + 60 )
----
23

skipif mysql # not compatible
query I rowsort label-7744
SELECT 23 * + COALESCE ( - - COUNT ( * ), 2 + - + CASE COUNT ( * ) WHEN + - 77 THEN + + 42 END + 60 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT 59 * - 42 * + 28 * + COUNT( * )
----
-69384

skipif mysql # not compatible
query I rowsort label-7745
SELECT 59 * - 42 * + 28 * + COUNT ( * )
----
-69384

query II rowsort
SELECT 37 AS col1, - 73 * + 93
----
37
-6789

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7747
SELECT ALL + CAST( NULL AS DECIMAL ) + 1 + + 15 + + 7 * 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL + CAST ( NULL AS REAL ) + 1 + + 15 + + 7 * 64 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT ALL - 47 DIV + - 41
----
1

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL - 47 / + - 41
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT 49 * - 73 * + ( - 23 ) / 70 * CASE 40 WHEN - + 4 + 18 THEN NULL WHEN + 13 * + 78 THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT 49 * - 73 * + ( - 23 ) / 70 * CASE 40 WHEN - + 4 + 18 THEN NULL WHEN + 13 * + 78 THEN + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT ALL + 84 - - - MAX( DISTINCT - 1 ) + - + 39 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + 84 - - - MAX ( DISTINCT - 1 ) + - + 39 AS col1
----
46

query I rowsort
SELECT 58 * - ( - 61 ) AS col1
----
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT ALL COUNT( ALL - 8 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL COUNT ( ALL - 8 ) col0
----
1

query I rowsort
SELECT ALL CASE 55 WHEN + + 14 + AVG ( ALL - 36 ) + + - 53 THEN + 3 * + 70 ELSE NULL END
----
NULL

query II rowsort
SELECT - 48 + - 39 * - + 7 * - - 14, 71 col1
----
3774
71

query I rowsort
SELECT ALL + 84 - - ( 74 ) col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT DISTINCT NULLIF ( 79, - + NULLIF ( + MIN( - 95 ), 38 ) + - + 61 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT NULLIF ( 79, - + NULLIF ( + MIN ( - 95 ), 38 ) + - + 61 ) AS col1
----
79

query II rowsort
SELECT - 42 AS col1, 86
----
-42
86

query I rowsort
SELECT DISTINCT + 66 * 53
----
3498

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL NULLIF ( - 83, + 86 * - 12 * COUNT( - 5 ) * + 30 + - + ( + 7 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL NULLIF ( - 83, + 86 * - 12 * COUNT ( - 5 ) * + 30 + - + ( + 7 ) ) AS col2
----
-83

query I rowsort
SELECT ALL + - 13 * 30
----
-390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT - + CAST( NULL AS SIGNED ) - - ( 99 ) - + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT - + CAST ( NULL AS INTEGER ) - - ( 99 ) - + + 81
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT + + 24 * + CAST( NULL AS SIGNED ) - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT + + 24 * + CAST ( NULL AS INTEGER ) - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT + 76 + COUNT( * ) + 4 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7763
SELECT + 76 + COUNT ( * ) + 4 AS col0
----
81

query II rowsort
SELECT 84, - NULLIF ( 96, - ( + 84 ) ) - + 86 + + 81 AS col0
----
84
-101

query II rowsort
SELECT + 48 AS col2, 51
----
48
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7766
SELECT + 33 DIV - - 65 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7766
SELECT + 33 / - - 65 + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + - 47 * + 94 AS col1
----
-4418

query I rowsort
SELECT + 47 - + 10 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7769
SELECT DISTINCT CASE 36 WHEN 42 + + - 7 THEN - 27 WHEN - COUNT( * ) THEN 57 * + + ( + ( + 37 ) ) * + CASE - CASE + 83 WHEN - NULLIF ( - - ( + 37 ), + 90 * - - 1 + - 29 + + ( + 17 ) * ( + 19 ) ) THEN + 3 WHEN - + 75 + - 40 THEN + - NULLIF ( + 74, + CASE - - MAX( + 56 ) WHEN + CAST( NULL AS SIGNED ) THEN + - COUNT( * ) WHEN ( 41 ) THEN + ( 8 ) END + ( 58 - + 0 ) * ( + 37 ) ) ELSE 93 END WHEN COUNT( * ) + + 90 THEN 91 END * + 33 WHEN CAST( 28 AS SIGNED ) * 79 THEN - COALESCE ( COALESCE ( + 38, - 6, - 95 ), + ( + 49 ) ) * 82 + + 95 * - 80 ELSE + 27 END + 34 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT CASE 36 WHEN 42 + + - 7 THEN - 27 WHEN - COUNT ( * ) THEN 57 * + + ( + ( + 37 ) ) * + CASE - CASE + 83 WHEN - NULLIF ( - - ( + 37 ), + 90 * - - 1 + - 29 + + ( + 17 ) * ( + 19 ) ) THEN + 3 WHEN - + 75 + - 40 THEN + - NULLIF ( + 74, + CASE - - MAX ( + 56 ) WHEN + CAST ( NULL AS INTEGER ) THEN + - COUNT ( * ) WHEN ( 41 ) THEN + ( 8 ) END + ( 58 - + 0 ) * ( + 37 ) ) ELSE 93 END WHEN COUNT ( * ) + + 90 THEN 91 END * + 33 WHEN CAST ( 28 AS INTEGER ) * 79 THEN - COALESCE ( COALESCE ( + 38, - 6, - 95 ), + ( + 49 ) ) * 82 + + 95 * - 80 ELSE + 27 END + 34 AS col2
----
61

query I rowsort
SELECT - + 86 * + - 18 AS col0
----
1548

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT DISTINCT 48 DIV + - ( + 3 ) + - 68 + - + 43 - + - 3 + - + 49 AS col2
----
-173

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT 48 / + - ( + 3 ) + - 68 + - + 43 - + - 3 + - + 49 AS col2
----
-173

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT + 36 DIV 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-7772
SELECT + 36 / 49 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT + COUNT( * ) * + 68 * ( 17 )
----
1156

skipif mysql # not compatible
query I rowsort label-7773
SELECT + COUNT ( * ) * + 68 * ( 17 )
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL + 67 * - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL + 67 * - COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT - 19 * - + 84 AS col1
----
1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7776
SELECT NULLIF ( + 52, 32 ) AS col1, NULLIF ( + 6, + COUNT( * ) ) * + CAST( - 56 AS SIGNED )
----
52
-336

skipif mysql # not compatible
query II rowsort label-7776
SELECT NULLIF ( + 52, 32 ) AS col1, NULLIF ( + 6, + COUNT ( * ) ) * + CAST ( - 56 AS INTEGER )
----
52
-336

query II rowsort
SELECT + 56, + 48 AS col1
----
56
48

query I rowsort
SELECT ALL - 19 * - + 17 + 32 * + 80 AS col1
----
2883

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT ALL + NULLIF ( ( - 72 ), + + COUNT( * ) + + 92 )
----
-72

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL + NULLIF ( ( - 72 ), + + COUNT ( * ) + + 92 )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7780
SELECT + 21 * + + NULLIF ( - 67, + 73 ) DIV + + 67 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7780
SELECT + 21 * + + NULLIF ( - 67, + 73 ) / + + 67 AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7781
SELECT ALL - 51 * + CAST( NULL AS SIGNED ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - 51 * + CAST ( NULL AS INTEGER ) + + 37
----
NULL

query I rowsort
SELECT - 88 * 2 + 72 + 42 col1
----
-62

query I rowsort
SELECT COALESCE ( - 96, 30 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT COUNT( DISTINCT - 3 ) * + - 71 + - 39
----
-110

skipif mysql # not compatible
query I rowsort label-7784
SELECT COUNT ( DISTINCT - 3 ) * + - 71 + - 39
----
-110

query I rowsort
SELECT - 91 * 50
----
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT + 61 + MIN( ALL 26 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7786
SELECT + 61 + MIN ( ALL 26 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ALL 25 * COUNT( * ) - + - 38 + + COUNT( - 72 ) * - - 65
----
128

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL 25 * COUNT ( * ) - + - 38 + + COUNT ( - 72 ) * - - 65
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT SUM( - - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7788
SELECT SUM ( - - 10 ) AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT + 55 * 48 DIV - - 41
----
64

skipif mysql # not compatible
query I rowsort label-7789
SELECT + 55 * 48 / - - 41
----
64

query I rowsort
SELECT DISTINCT - 43 * - 8 AS col0
----
344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7791
SELECT 89 * + 19 + + - CASE - + CAST( - COUNT( + 73 ) AS SIGNED ) WHEN - COUNT( * ) - - + ( - 34 ) THEN NULL WHEN 32 + - 61 * - 53 THEN NULLIF ( 94, + + 11 + - 49 ) * + 3 * 65 + + - ( + CAST( NULL AS SIGNED ) ) * - CAST( + 93 AS SIGNED ) * - COUNT( * ) + + - 64 * CAST( + 12 AS SIGNED ) + - - 64 + 83 * + 17 WHEN - COUNT( * ) * 68 * + - 47 THEN + + COUNT( DISTINCT + - 38 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT 89 * + 19 + + - CASE - + CAST ( - COUNT ( + 73 ) AS INTEGER ) WHEN - COUNT ( * ) - - + ( - 34 ) THEN NULL WHEN 32 + - 61 * - 53 THEN NULLIF ( 94, + + 11 + - 49 ) * + 3 * 65 + + - ( + CAST ( NULL AS INTEGER ) ) * - CAST ( + 93 AS INTEGER ) * - COUNT ( * ) + + - 64 * CAST ( + 12 AS INTEGER ) + - - 64 + 83 * + 17 WHEN - COUNT ( * ) * 68 * + - 47 THEN + + COUNT ( DISTINCT + - 38 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7792
SELECT ALL - 53 * - - 2 AS col1, COUNT( * ) + - 83
----
-106
-82

skipif mysql # not compatible
query II rowsort label-7792
SELECT ALL - 53 * - - 2 AS col1, COUNT ( * ) + - 83
----
-106
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL CASE 41 WHEN - 35 THEN + ( 51 ) + 28 + + COUNT( * ) - - - 79 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL CASE 41 WHEN - 35 THEN + ( 51 ) + 28 + + COUNT ( * ) - - - 79 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT - COUNT( 37 ) * + + SUM( - 59 ) - - 31
----
90

skipif mysql # not compatible
query I rowsort label-7794
SELECT - COUNT ( 37 ) * + + SUM ( - 59 ) - - 31
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT - 60 * 66 * - - ( COUNT( * ) )
----
-3960

skipif mysql # not compatible
query I rowsort label-7795
SELECT - 60 * 66 * - - ( COUNT ( * ) )
----
-3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7796
SELECT DISTINCT - + 23 DIV + CASE + + 80 WHEN COUNT( * ) THEN NULL ELSE + + COUNT( * ) DIV - 12 - COUNT( - + 39 ) END AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - + 23 / + CASE + + 80 WHEN COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) / - 12 - COUNT ( - + 39 ) END AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7797
SELECT - 4 * + - CAST( NULL AS DECIMAL ) AS col1, - 61 + - COUNT( * ) + - 12 + 68 * 49 * - 10
----
NULL
-33394

skipif mysql # not compatible
query II rowsort label-7797
SELECT - 4 * + - CAST ( NULL AS REAL ) AS col1, - 61 + - COUNT ( * ) + - 12 + 68 * 49 * - 10
----
NULL
-33394

query I rowsort
SELECT - 31 + - NULLIF ( - + 85, + 43 )
----
54

query I rowsort
SELECT - - 1 * - 76 * - 96 AS col0
----
7296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7800
SELECT - + COUNT( * ) + - 35 DIV 55 * 32 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7800
SELECT - + COUNT ( * ) + - 35 / 55 * 32 col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7801
SELECT ALL + - 56 + - + COUNT( * ) col1, + 38
----
-57
38

skipif mysql # not compatible
query II rowsort label-7801
SELECT ALL + - 56 + - + COUNT ( * ) col1, + 38
----
-57
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT - 93 + COUNT( * ) col2, 94 + - - 5 + + + 15 + 92 - + 32 * + COUNT( * ) * - - 92 + + 4 + - 60 * - COALESCE ( - 23, - 64 ) * - CASE - 9 WHEN 59 THEN + COUNT( * ) + NULLIF ( + - 9, - + 67 / - + ( - 41 ) + - - 25 ) WHEN 43 * 38 / + - 95 * - 34 THEN NULL ELSE NULL END * - + 37 + 64
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-7802
SELECT - 93 + COUNT ( * ) col2, 94 + - - 5 + + + 15 + 92 - + 32 * + COUNT ( * ) * - - 92 + + 4 + - 60 * - COALESCE ( - 23, - 64 ) * - CASE - 9 WHEN 59 THEN + COUNT ( * ) + NULLIF ( + - 9, - + 67 / - + ( - 41 ) + - - 25 ) WHEN 43 * 38 / + - 95 * - 34 THEN NULL ELSE NULL END * - + 37 + 64
----
-92
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7803
SELECT CASE - ( + + 38 ) WHEN - 20 THEN NULL WHEN + CAST( NULL AS DECIMAL ) THEN + 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT CASE - ( + + 38 ) WHEN - 20 THEN NULL WHEN + CAST ( NULL AS REAL ) THEN + 28 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7804
SELECT ALL - + 68 + + COUNT( * ) + CASE WHEN NOT 26 NOT IN ( - - COUNT( * ) * - CAST( + 4 AS SIGNED ) + - + 3 - + + 54 ) THEN 19 * - 67 - + - COALESCE ( + - 2, - 57 * - + 93 ) ELSE NULL END + + 97 * + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL - + 68 + + COUNT ( * ) + CASE WHEN NOT 26 NOT IN ( - - COUNT ( * ) * - CAST ( + 4 AS INTEGER ) + - + 3 - + + 54 ) THEN 19 * - 67 - + - COALESCE ( + - 2, - 57 * - + 93 ) ELSE NULL END + + 97 * + + 32
----
NULL

query I rowsort
SELECT - 6 + 85
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + CASE + + 41 WHEN - 10 THEN NULL WHEN ( - 60 ) * 23 THEN - + 11 WHEN - ( + + 36 ) THEN - 48 END * + 49 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT + CASE + + 41 WHEN - 10 THEN NULL WHEN ( - 60 ) * 23 THEN - + 11 WHEN - ( + + 36 ) THEN - 48 END * + 49 + + COUNT ( * )
----
NULL

query I rowsort
SELECT ( - - 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT + ( - - COUNT( DISTINCT - 4 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT + ( - - COUNT ( DISTINCT - 4 ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT DISTINCT - 94 DIV - 8 + - 7 + - 82 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT - 94 / - 8 + - 7 + - 82 AS col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT ALL - - NULLIF ( + - 28, + 22 ) DIV - 86 + + 95 * + 66 AS col0
----
6270

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - - NULLIF ( + - 28, + 22 ) / - 86 + + 95 * + 66 AS col0
----
6270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT + - 99 + MAX( ALL - + CAST( NULL AS SIGNED ) ) + - + 99 - + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT + - 99 + MAX ( ALL - + CAST ( NULL AS INTEGER ) ) + - + 99 - + - 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7812
SELECT ALL + ( - - 2 ) DIV COUNT( 24 ) + + 35, + 22 + - + 0 AS col2
----
37
22

skipif mysql # not compatible
query II rowsort label-7812
SELECT ALL + ( - - 2 ) / COUNT ( 24 ) + + 35, + 22 + - + 0 AS col2
----
37
22

query I rowsort
SELECT ALL + + NULLIF ( + - 45, + + 43 * 40 ) col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT ALL 68 DIV + 91 + - + 64 + + + 51 * - 76 AS col0
----
-3940

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL 68 / + 91 + - + 64 + + + 51 * - 76 AS col0
----
-3940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7815
SELECT DISTINCT COUNT( * ) DIV - + COUNT( + 31 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT COUNT ( * ) / - + COUNT ( + 31 ) col2
----
-1

query I rowsort
SELECT + ( - + 60 ) AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT DISTINCT 32 * ( + 42 ) DIV + 44
----
30

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT 32 * ( + 42 ) / + 44
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT + COUNT( * ) * - NULLIF ( + 63, - + 59 )
----
-63

skipif mysql # not compatible
query I rowsort label-7818
SELECT + COUNT ( * ) * - NULLIF ( + 63, - + 59 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7819
SELECT ALL + MIN( + - 11 ) * 17 + - CAST( NULL AS SIGNED ) * 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL + MIN ( + - 11 ) * 17 + - CAST ( NULL AS INTEGER ) * 77 AS col2
----
NULL

query I rowsort
SELECT ALL 37 * + - 54 AS col0
----
-1998

query II rowsort
SELECT 62, 76 AS col1
----
62
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7822
SELECT AVG ( ALL - - CAST( NULL AS SIGNED ) ) * 7 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT AVG ( ALL - - CAST ( NULL AS INTEGER ) ) * 7 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT - 32 * + COUNT( * ) + - 43 + + 82 + + CASE + 50 WHEN - 63 THEN + + 67 END + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT - 32 * + COUNT ( * ) + - 43 + + 82 + + CASE + 50 WHEN - 63 THEN + + 67 END + - 15
----
NULL

query I rowsort
SELECT 12 + 51 AS col2
----
63

query I rowsort
SELECT ALL 60 * 15
----
900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT SUM( DISTINCT - 15 ) DIV 15 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7826
SELECT SUM ( DISTINCT - 15 ) / 15 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7827
SELECT DISTINCT - COUNT( * ) + + + ( - + 50 ) + + - CAST( NULL AS DECIMAL ) / - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT - COUNT ( * ) + + + ( - + 50 ) + + - CAST ( NULL AS REAL ) / - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL - 10 + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL - 10 + - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7829
SELECT ALL + 52 + COUNT( ALL 65 ) AS col0, 98
----
53
98

skipif mysql # not compatible
query II rowsort label-7829
SELECT ALL + 52 + COUNT ( ALL 65 ) AS col0, 98
----
53
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7830
SELECT ALL + COUNT( * ) * + CAST( - 82 AS SIGNED ) * COALESCE ( - + 86, - 67 + + + NULLIF ( + CAST( + + 46 AS SIGNED ), + 46 ) + + - 8 + + 18, - 38 + 73 ) * + MIN( + - 78 ) - + 90 - - 53 - COALESCE ( - 38, - MIN( + + CAST( + + 58 AS SIGNED ) ) + + COUNT( * ) ) DIV + 29 AS col0
----
-550092

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL + COUNT ( * ) * + CAST ( - 82 AS INTEGER ) * COALESCE ( - + 86, - 67 + + + NULLIF ( + CAST ( + + 46 AS INTEGER ), + 46 ) + + - 8 + + 18, - 38 + 73 ) * + MIN ( + - 78 ) - + 90 - - 53 - COALESCE ( - 38, - MIN ( + + CAST ( + + 58 AS INTEGER ) ) + + COUNT ( * ) ) / + 29 AS col0
----
-550092

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT ALL + - 54 + - 89 DIV 24 DIV + + 59 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL + - 54 + - 89 / 24 / + + 59 AS col2
----
-54

query I rowsort
SELECT - ( + 68 ) - + - 81
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT + 91 DIV - + 76 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7833
SELECT + 91 / - + 76 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7834
SELECT - 95 + + CAST( - COUNT( * ) AS SIGNED ) + - 84 * - + CAST( NULL AS SIGNED ) * + 75 * + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT - 95 + + CAST ( - COUNT ( * ) AS INTEGER ) + - 84 * - + CAST ( NULL AS INTEGER ) * + 75 * + + 2 AS col1
----
NULL

query I rowsort
SELECT - 78 * 76 col1
----
-5928

query I rowsort
SELECT ALL + 25 / + - CASE 79 WHEN 64 THEN + 7 ELSE NULL END + - 16
----
NULL

query I rowsort
SELECT DISTINCT - 23 + + 84 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7838
SELECT DISTINCT + - COUNT( * ) - + 28 - - - 14 DIV 19 * + - 3 col2
----
-29

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + - COUNT ( * ) - + 28 - - - 14 / 19 * + - 3 col2
----
-29

query I rowsort
SELECT ALL - 73 * 34 AS col1
----
-2482

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT 92 * + COUNT( - 96 ) * - 57
----
-5244

skipif mysql # not compatible
query I rowsort label-7840
SELECT 92 * + COUNT ( - 96 ) * - 57
----
-5244

query II rowsort
SELECT + 99 AS col1, - 77 * + 21
----
99
-1617

query II rowsort
SELECT ALL - 4 AS col2, + 63 col0
----
-4
63

onlyif mysql # DIV for integer division: 
query II rowsort label-7843
SELECT + 53 col2, + 59 DIV 68
----
53
0

skipif mysql # not compatible
query II rowsort label-7843
SELECT + 53 col2, + 59 / 68
----
53
0

query I rowsort
SELECT 49 * - 75
----
-3675

query II rowsort
SELECT + 7 AS col1, 6
----
7
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT ALL - 23 col2, - 87 - - COUNT( * ) AS col1
----
-23
-86

skipif mysql # not compatible
query II rowsort label-7846
SELECT ALL - 23 col2, - 87 - - COUNT ( * ) AS col1
----
-23
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7847
SELECT 58 - - 29, - CAST( NULL AS SIGNED ) AS col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-7847
SELECT 58 - - 29, - CAST ( NULL AS INTEGER ) AS col0
----
87
NULL

query II rowsort
SELECT + 64 AS col0, 39
----
64
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7849
SELECT ALL 44 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL 44 / 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT DISTINCT - ( COUNT( + 29 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT - ( COUNT ( + 29 ) )
----
-1

query I rowsort
SELECT 52 * + ( 67 )
----
3484

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT ALL + 25 DIV + 54 * - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL + 25 / + 54 * - 89 AS col0
----
0

query II rowsort
SELECT 67 AS col1, + 81 + 42
----
67
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7854
SELECT NULLIF ( + - 84, - COUNT( * ) * - - 61 + 61 + + 45 ) * - 16 * - 30 * - CAST( NULL AS SIGNED ) * + 19 + + MIN( DISTINCT 64 ) - + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT NULLIF ( + - 84, - COUNT ( * ) * - - 61 + 61 + + 45 ) * - 16 * - 30 * - CAST ( NULL AS INTEGER ) * + 19 + + MIN ( DISTINCT 64 ) - + 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7855
SELECT ALL COUNT( * ) * - + NULLIF ( COALESCE ( - + 97, - - 30 ), - 95 ) * 49, + 44 AS col2
----
4753
44

skipif mysql # not compatible
query II rowsort label-7855
SELECT ALL COUNT ( * ) * - + NULLIF ( COALESCE ( - + 97, - - 30 ), - 95 ) * 49, + 44 AS col2
----
4753
44

onlyif mysql # aggregate syntax: 
query II rowsort label-7856
SELECT ( - COUNT( * ) ) * - + 75 + + 41 AS col2, 40 + - + 79
----
116
-39

skipif mysql # not compatible
query II rowsort label-7856
SELECT ( - COUNT ( * ) ) * - + 75 + + 41 AS col2, 40 + - + 79
----
116
-39

query I rowsort
SELECT DISTINCT 19 * - 98 AS col1
----
-1862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT 87 + - - 87 + - - CASE + COALESCE ( + COUNT( * ), COUNT( * ) + + 81 * - 18 ) WHEN + 81 - 39 / + + 48 THEN - - ( + - COUNT( * ) ) + COUNT( * ) ELSE CAST( NULL AS SIGNED ) * 5 END / 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT 87 + - - 87 + - - CASE + COALESCE ( + COUNT ( * ), COUNT ( * ) + + 81 * - 18 ) WHEN + 81 - 39 / + + 48 THEN - - ( + - COUNT ( * ) ) + COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) * 5 END / 5
----
NULL

query I rowsort
SELECT ALL 36 + + 20 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT 93 + - 41 + - COUNT( * ) - + 11 * + - 94 + + + MIN( - ( - 73 ) ) AS col1
----
1158

skipif mysql # not compatible
query I rowsort label-7860
SELECT 93 + - 41 + - COUNT ( * ) - + 11 * + - 94 + + + MIN ( - ( - 73 ) ) AS col1
----
1158

query I rowsort
SELECT ALL - 81 + - 17 AS col2
----
-98

query I rowsort
SELECT DISTINCT - 12 * 69 AS col2
----
-828

query I rowsort
SELECT DISTINCT + 54 + + - 99 * - 26 AS col1
----
2628

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT ALL COUNT( DISTINCT + 31 ), - 3 * - SUM( ALL - 90 ) AS col1
----
1
-270

skipif mysql # not compatible
query II rowsort label-7864
SELECT ALL COUNT ( DISTINCT + 31 ), - 3 * - SUM ( ALL - 90 ) AS col1
----
1
-270

query I rowsort
SELECT ALL 96 + 51 AS col1
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT - CAST( - 18 AS SIGNED ) + - 56
----
-38

skipif mysql # not compatible
query I rowsort label-7866
SELECT - CAST ( - 18 AS INTEGER ) + - 56
----
-38

query I rowsort
SELECT 28 + 25 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT + SUM( - + 91 ) + - - 71
----
-20

skipif mysql # not compatible
query I rowsort label-7868
SELECT + SUM ( - + 91 ) + - - 71
----
-20

query II rowsort
SELECT ALL - 48, ( - 1 ) AS col1
----
-48
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT 7 * COUNT( * ) * + 19 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-7870
SELECT 7 * COUNT ( * ) * + 19 AS col0
----
133

query II rowsort
SELECT 33 AS col1, + 5 AS col1
----
33
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT - COUNT( * ) + + 36 col1
----
35

skipif mysql # not compatible
query I rowsort label-7872
SELECT - COUNT ( * ) + + 36 col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7873
SELECT - 7 AS col0, + CASE + 77 WHEN CASE CAST( - + 96 AS SIGNED ) WHEN - 27 / COUNT( ALL 12 ) + + + 27 + 22 * - + COUNT( * ) + - 25 + - CAST( NULL AS SIGNED ) + - 98 * - - COUNT( * ) / + 90 THEN + + 67 * MAX( ALL - - 18 ) + + + 96 ELSE - 11 END THEN NULL ELSE + - CASE - 82 WHEN + + CAST( NULL AS SIGNED ) * - + 35 + + 14 THEN - 98 WHEN + 74 THEN NULL ELSE NULL END END * + 85 * + - 5 * + 39
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-7873
SELECT - 7 AS col0, + CASE + 77 WHEN CASE CAST ( - + 96 AS INTEGER ) WHEN - 27 / COUNT ( ALL 12 ) + + + 27 + 22 * - + COUNT ( * ) + - 25 + - CAST ( NULL AS INTEGER ) + - 98 * - - COUNT ( * ) / + 90 THEN + + 67 * MAX ( ALL - - 18 ) + + + 96 ELSE - 11 END THEN NULL ELSE + - CASE - 82 WHEN + + CAST ( NULL AS INTEGER ) * - + 35 + + 14 THEN - 98 WHEN + 74 THEN NULL ELSE NULL END END * + 85 * + - 5 * + 39
----
-7
NULL

query I rowsort
SELECT - 52 * 35
----
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7875
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + + 1 ) + 1 AS col0, - 99
----
2
-99

skipif mysql # not compatible
query II rowsort label-7875
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + + 1 ) + 1 AS col0, - 99
----
2
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7876
SELECT + 8 AS col0, + 46 - COUNT( * ) AS col2
----
8
45

skipif mysql # not compatible
query II rowsort label-7876
SELECT + 8 AS col0, + 46 - COUNT ( * ) AS col2
----
8
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT + 4 + - - CAST( + + 2 AS SIGNED ) + 0
----
6

skipif mysql # not compatible
query I rowsort label-7877
SELECT + 4 + - - CAST ( + + 2 AS INTEGER ) + 0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT DISTINCT - + 96 - COALESCE ( 15, - 42 + + NULLIF ( - 16, CAST( NULL AS SIGNED ) ) )
----
-111

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT - + 96 - COALESCE ( 15, - 42 + + NULLIF ( - 16, CAST ( NULL AS INTEGER ) ) )
----
-111

query I rowsort
SELECT COALESCE ( - - 64, - 98 * - 30 * - 94 ) AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7880
SELECT + 25 DIV + + 33 + 6 + - COUNT( * ) + + 88 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7880
SELECT + 25 / + + 33 + 6 + - COUNT ( * ) + + 88 AS col0
----
93

query I rowsort
SELECT ALL + 30 * 27 AS col0
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT CASE COUNT( + NULLIF ( - + 17, 70 ) ) WHEN + 57 THEN NULL ELSE + 72 END col0
----
72

skipif mysql # not compatible
query I rowsort label-7882
SELECT CASE COUNT ( + NULLIF ( - + 17, 70 ) ) WHEN + 57 THEN NULL ELSE + 72 END col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT CAST( NULL AS SIGNED ) / CAST( - 73 AS SIGNED ) + 77 + + 73 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT CAST ( NULL AS INTEGER ) / CAST ( - 73 AS INTEGER ) + 77 + + 73 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT ALL CAST( + 80 AS SIGNED ) * + MIN( ALL + + 63 ) + COUNT( * )
----
5041

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL CAST ( + 80 AS INTEGER ) * + MIN ( ALL + + 63 ) + COUNT ( * )
----
5041

query I rowsort
SELECT NULLIF ( - 78, - - 3 ) AS col0
----
-78

query I rowsort
SELECT - ( + - 15 ) * + 74 AS col2
----
1110

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT ALL + COUNT( * ) * 72 AS col2, + 50 + 86 AS col0
----
72
136

skipif mysql # not compatible
query II rowsort label-7887
SELECT ALL + COUNT ( * ) * 72 AS col2, + 50 + 86 AS col0
----
72
136

query I rowsort
SELECT DISTINCT 37 * 71 + + 24 AS col2
----
2651

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7889
SELECT - CAST( NULL AS DECIMAL ) * + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT - CAST ( NULL AS REAL ) * + - 2
----
NULL

query I rowsort
SELECT ALL - 11 * + 24 + - 4 * + ( + 63 ) * + 43
----
-11100

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT + COUNT( + ( - 0 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT + COUNT ( + ( - 0 ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT + ( + 93 ) * + 17 + - + 45 * - 16 AS col2
----
2301

query I rowsort
SELECT DISTINCT + ( + 12 ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT ALL + 11 * 14 DIV + 5 + + 44 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + 11 * 14 / + 5 + + 44 AS col0
----
74

query I rowsort
SELECT ALL 62 * - + 72 + 51 AS col2
----
-4413

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT ALL + + SUM( + 63 ) + + 74 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + + SUM ( + 63 ) + + 74 AS col2
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-7897
SELECT + ( 72 ) AS col2, - MIN( - 23 )
----
72
23

skipif mysql # not compatible
query II rowsort label-7897
SELECT + ( 72 ) AS col2, - MIN ( - 23 )
----
72
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT - - SUM( 57 ) DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-7898
SELECT - - SUM ( 57 ) / + 45
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT + + SUM( 40 ) * - 2 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-7899
SELECT + + SUM ( 40 ) * - 2 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT - CASE WHEN NULL BETWEEN - 94 AND NULL THEN - 32 * 62 * + COUNT( * ) WHEN NOT NULL IS NOT NULL THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT - CASE WHEN NULL BETWEEN - 94 AND NULL THEN - 32 * 62 * + COUNT ( * ) WHEN NOT NULL IS NOT NULL THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7901
SELECT + - 89 * - 5 DIV + 1
----
445

skipif mysql # not compatible
query I rowsort label-7901
SELECT + - 89 * - 5 / + 1
----
445

query I rowsort
SELECT ALL 26 * - + 78 AS col2
----
-2028

query II rowsort
SELECT ALL 30 - - - 68 AS col2, 90
----
-38
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT + ( - 6 ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-7904
SELECT + ( - 6 ) / + 81
----
0

query II rowsort
SELECT DISTINCT + 39 * 2 * + 75 col2, 74 + + 89
----
5850
163

query II rowsort
SELECT + 13 * 60, - 37 AS col2
----
780
-37

query I rowsort
SELECT + + 12 + - + 18 col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT ALL 96 - - - CAST( - 44 AS SIGNED ) * - 38
----
-1576

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL 96 - - - CAST ( - 44 AS INTEGER ) * - 38
----
-1576

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7909
SELECT - + 68 + - COALESCE ( 46, + COUNT( * ) ) DIV + 43 AS col2, + COUNT( + 89 ) - - ( + - COUNT( * ) ) + - ( - COUNT( * ) ) * + COUNT( * ) * + + ( - 24 ) - + 34 + 32 AS col2
----
-69
-26

skipif mysql # not compatible
query II rowsort label-7909
SELECT - + 68 + - COALESCE ( 46, + COUNT ( * ) ) / + 43 AS col2, + COUNT ( + 89 ) - - ( + - COUNT ( * ) ) + - ( - COUNT ( * ) ) * + COUNT ( * ) * + + ( - 24 ) - + 34 + 32 AS col2
----
-69
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT + + 62 * - COUNT( * ) AS col0, - 35
----
-62
-35

skipif mysql # not compatible
query II rowsort label-7910
SELECT + + 62 * - COUNT ( * ) AS col0, - 35
----
-62
-35

query I rowsort
SELECT + 72 + 63 + 81 * - 88 * 90 * - + 64 * - ( - - 15 )
----
-615859065

query II rowsort
SELECT - ( + 57 ), 61 col1
----
-57
61

query I rowsort
SELECT ALL 50 * + 98 AS col2
----
4900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7914
SELECT DISTINCT 80 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT 80 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 91 - - + 63
----
154

query I rowsort
SELECT ALL - 98 * - - 13 col2
----
-1274

query I rowsort
SELECT + 9 * + - 80
----
-720

query I rowsort
SELECT ALL 14 + - 14
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7919
SELECT CAST( NULL AS DECIMAL ) col2, + 32 * - COUNT( * )
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-7919
SELECT CAST ( NULL AS REAL ) col2, + 32 * - COUNT ( * )
----
NULL
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT CAST( - 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-7920
SELECT CAST ( - 18 AS INTEGER )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7921
SELECT ALL ( COUNT( DISTINCT + 99 ) ) DIV 83 + - 38 + 73
----
35

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL ( COUNT ( DISTINCT + 99 ) ) / 83 + - 38 + 73
----
35

query I rowsort
SELECT + 73 * - 15
----
-1095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT - 79 * CAST( NULL AS SIGNED ) * - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT - 79 * CAST ( NULL AS INTEGER ) * - 53 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7924
SELECT CAST( NULL AS SIGNED ), SUM( ALL - 89 ) AS col0
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-7924
SELECT CAST ( NULL AS INTEGER ), SUM ( ALL - 89 ) AS col0
----
NULL
-89

query I rowsort
SELECT + COALESCE ( + 96, + - ( - 35 ) ) * + - 39
----
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7926
SELECT + 72, CAST( NULL AS SIGNED ) AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-7926
SELECT + 72, CAST ( NULL AS INTEGER ) AS col1
----
72
NULL

query I rowsort
SELECT DISTINCT 72 * + - COALESCE ( + - 77, - + 74 ) AS col2
----
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-7928
SELECT ALL - 67 DIV + 87 + + 92 * + + 95
----
8740

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL - 67 / + 87 + + 92 * + + 95
----
8740

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT COUNT( * ) * + + 26 - + 80 * 48 * 37
----
-142054

skipif mysql # not compatible
query I rowsort label-7929
SELECT COUNT ( * ) * + + 26 - + 80 * 48 * 37
----
-142054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7930
SELECT ALL + ( - - MAX( 34 ) ) AS col0, CAST( CAST( 0 AS SIGNED ) AS SIGNED ) AS col0
----
34
0

skipif mysql # not compatible
query II rowsort label-7930
SELECT ALL + ( - - MAX ( 34 ) ) AS col0, CAST ( CAST ( 0 AS INTEGER ) AS INTEGER ) AS col0
----
34
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL + COUNT( 49 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL + COUNT ( 49 ) col1
----
1

query I rowsort
SELECT ALL 76 * + - 58 + + 74
----
-4334

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7933
SELECT DISTINCT + CASE + - 81 WHEN + + 43 THEN 57 * + - 9 * + CAST( 86 AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT + CASE + - 81 WHEN + + 43 THEN 57 * + - 9 * + CAST ( 86 AS REAL ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT - 29 * + - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT - 29 * + - COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7935
SELECT - CAST( 46 AS SIGNED ) * - - 26 - - 93 + + ( - COUNT( * ) )
----
-1104

skipif mysql # not compatible
query I rowsort label-7935
SELECT - CAST ( 46 AS INTEGER ) * - - 26 - - 93 + + ( - COUNT ( * ) )
----
-1104

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT ALL - - 18 * 10 DIV - - 48 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - - 18 * 10 / - - 48 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7937
SELECT ALL - 20 * NULLIF ( + - COUNT( * ), 93 * - + 85 * + CAST( 29 AS SIGNED ) / - - 19 ) - - 57 * 3
----
191

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL - 20 * NULLIF ( + - COUNT ( * ), 93 * - + 85 * + CAST ( 29 AS INTEGER ) / - - 19 ) - - 57 * 3
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT - - COUNT( * ) + + 59
----
60

skipif mysql # not compatible
query I rowsort label-7938
SELECT - - COUNT ( * ) + + 59
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT DISTINCT - - SUM( + 72 ) * - - 91 * 24 + SUM( DISTINCT 5 )
----
157253

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT - - SUM ( + 72 ) * - - 91 * 24 + SUM ( DISTINCT 5 )
----
157253

onlyif mysql # aggregate syntax: 
query II rowsort label-7940
SELECT DISTINCT - 19 AS col1, + COUNT( * ) AS col1
----
-19
1

skipif mysql # not compatible
query II rowsort label-7940
SELECT DISTINCT - 19 AS col1, + COUNT ( * ) AS col1
----
-19
1

query II rowsort
SELECT - - 41 * + 33 * + - 60 - - - 60 + - + 56 * + 58 AS col1, - 40 AS col1
----
-84488
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL - COUNT( DISTINCT 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL - COUNT ( DISTINCT 91 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7943
SELECT ALL - 86 DIV 9
----
-9

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - 86 / 9
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT - 73 * - - CAST( + + 94 AS SIGNED ) + - - ( + 52 )
----
-6810

skipif mysql # not compatible
query I rowsort label-7944
SELECT - 73 * - - CAST ( + + 94 AS INTEGER ) + - - ( + 52 )
----
-6810

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT + COUNT( * ) + + + 56
----
57

skipif mysql # not compatible
query I rowsort label-7945
SELECT + COUNT ( * ) + + + 56
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT DISTINCT - - 92 * - 76 + + COUNT( * ) AS col1
----
-6991

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT - - 92 * - 76 + + COUNT ( * ) AS col1
----
-6991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7947
SELECT ALL 30 * COUNT( * ) + 98 - + + 16 DIV + 85
----
128

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL 30 * COUNT ( * ) + 98 - + + 16 / + 85
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7948
SELECT - COUNT( * ) DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7948
SELECT - COUNT ( * ) / 79 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT ALL - - 50 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL - - 50 / + 48
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT ALL CAST( NULL AS SIGNED ) * + + 43 + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL CAST ( NULL AS INTEGER ) * + + 43 + 80
----
NULL

query II rowsort
SELECT DISTINCT - 11 + + 4 AS col1, + 4
----
-7
4

query I rowsort
SELECT DISTINCT + 57 * - 15 AS col1
----
-855

query I rowsort
SELECT DISTINCT 62 + + + 40
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-7954
SELECT 87 * + + 55 col0, 81 * - COUNT( * ) + 74
----
4785
-7

skipif mysql # not compatible
query II rowsort label-7954
SELECT 87 * + + 55 col0, 81 * - COUNT ( * ) + 74
----
4785
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7955
SELECT SUM( - - 18 ) + + COUNT( * ) DIV 67
----
18

skipif mysql # not compatible
query I rowsort label-7955
SELECT SUM ( - - 18 ) + + COUNT ( * ) / 67
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT COALESCE ( + 32, + + MIN( - 47 ), + 97 ) - + + 80 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-7956
SELECT COALESCE ( + 32, + + MIN ( - 47 ), + 97 ) - + + 80 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7957
SELECT 77 + CAST( + + SUM( + 82 ) AS SIGNED ) * + COUNT( + 45 ) * - - 85 AS col2
----
7047

skipif mysql # not compatible
query I rowsort label-7957
SELECT 77 + CAST ( + + SUM ( + 82 ) AS INTEGER ) * + COUNT ( + 45 ) * - - 85 AS col2
----
7047

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL - COUNT( + 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL - COUNT ( + 87 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7959
SELECT - ( - + 4 ) * + - COALESCE ( NULLIF ( - + ( - 56 ), - 64 ), 64, 30 DIV ( - + 72 ), SUM( ALL + 91 ) + - 30 + - - 68 ) + + 77
----
-147

skipif mysql # not compatible
query I rowsort label-7959
SELECT - ( - + 4 ) * + - COALESCE ( NULLIF ( - + ( - 56 ), - 64 ), 64, 30 / ( - + 72 ), SUM ( ALL + 91 ) + - 30 + - - 68 ) + + 77
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7960
SELECT ALL COUNT( * ) + + NULLIF ( - + CAST( NULLIF ( - 48, + + 6 * - 7 * 11 ) AS SIGNED ), - - 91 ) AS col1, 69
----
49
69

skipif mysql # not compatible
query II rowsort label-7960
SELECT ALL COUNT ( * ) + + NULLIF ( - + CAST ( NULLIF ( - 48, + + 6 * - 7 * 11 ) AS INTEGER ), - - 91 ) AS col1, 69
----
49
69

query I rowsort
SELECT DISTINCT 60 * + 80 AS col1
----
4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT 4 / + 18 + CAST( NULL AS SIGNED ) - + - 75 - + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT 4 / + 18 + CAST ( NULL AS INTEGER ) - + - 75 - + 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT 93 DIV - 78 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7963
SELECT 93 / - 78 col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT DISTINCT COUNT( * ) - + ( 86 ) * + + 7 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT COUNT ( * ) - + ( 86 ) * + + 7 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7965
SELECT CASE + CAST( 66 AS SIGNED ) WHEN + - 19 * - 42 / 1 THEN COUNT( * ) WHEN - 86 THEN 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT CASE + CAST ( 66 AS INTEGER ) WHEN + - 19 * - 42 / 1 THEN COUNT ( * ) WHEN - 86 THEN 17 END
----
NULL

query I rowsort
SELECT - 15 + - 7 AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7967
SELECT ALL - 42 - + 74 DIV + COUNT( * )
----
-116

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL - 42 - + 74 / + COUNT ( * )
----
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT + 55 * CAST( + - 11 AS SIGNED )
----
-605

skipif mysql # not compatible
query I rowsort label-7968
SELECT + 55 * CAST ( + - 11 AS INTEGER )
----
-605

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7969
SELECT CAST( NULL AS SIGNED ) * - - 59 AS col1, - 63
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-7969
SELECT CAST ( NULL AS INTEGER ) * - - 59 AS col1, - 63
----
NULL
-63

query I rowsort
SELECT ALL - - 8 col0
----
8

query I rowsort
SELECT ALL + 81 - 27 AS col0
----
54

query I rowsort
SELECT - 4 * + 80 * + 31 AS col0
----
-9920

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL - - COUNT( DISTINCT - 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL - - COUNT ( DISTINCT - 59 ) AS col1
----
1

query I rowsort
SELECT - 48 - - 77
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + 71 * MIN( ALL 26 ) AS col1
----
1846

skipif mysql # not compatible
query I rowsort label-7975
SELECT + 71 * MIN ( ALL 26 ) AS col1
----
1846

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + COUNT( * ) * 79 + - - CASE + - MIN( + 17 ) WHEN - - COALESCE ( + MAX( + 99 ), 89 * + 62 + + 70 * - + 92 ) THEN - + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT + COUNT ( * ) * 79 + - - CASE + - MIN ( + 17 ) WHEN - - COALESCE ( + MAX ( + 99 ), 89 * + 62 + + 70 * - + 92 ) THEN - + 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT - NULLIF ( 17, - - 12 + - SUM( DISTINCT - 19 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-7977
SELECT - NULLIF ( 17, - - 12 + - SUM ( DISTINCT - 19 ) )
----
-17

query I rowsort
SELECT ALL - + 14 + - 78 * - 23 AS col1
----
1780

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT - COUNT( * ) + + ( + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7979
SELECT - COUNT ( * ) + + ( + COUNT ( * ) )
----
0

query II rowsort
SELECT - 47 col0, + 16 * - ( - 22 )
----
-47
352

query I rowsort
SELECT ALL - 98 + + 44 * + + 4 col0
----
78

query I rowsort
SELECT 58 * + 49 AS col2
----
2842

query I rowsort
SELECT 61 + - ( 58 )
----
3

query I rowsort
SELECT 3 + 26 * - 41
----
-1063

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT - COUNT( * ) + - MIN( - + 27 ) * + - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT - COUNT ( * ) + - MIN ( - + 27 ) * + - COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT COUNT( * ) + + 79 * - + 26
----
-2053

skipif mysql # not compatible
query I rowsort label-7986
SELECT COUNT ( * ) + + 79 * - + 26
----
-2053

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL + COUNT( 6 ) + + ( 20 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL + COUNT ( 6 ) + + ( 20 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT MIN( + - 12 ) * - 44 * + - 48 AS col0
----
-25344

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT MIN ( + - 12 ) * - 44 * + - 48 AS col0
----
-25344

query I rowsort
SELECT 96 * 49 AS col2
----
4704

query I rowsort
SELECT ALL + 63 + - + 76 AS col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7991
SELECT DISTINCT ( + + COUNT( * ) ) DIV + 66 + - 84 + + 86 AS col2, - MIN( - ( + CASE 43 WHEN + 77 * - - 11 THEN + 56 WHEN + 99 + + 15 - + 17 + - 87 + + 88 - 23 THEN NULL END ) ) DIV - + 89 AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-7991
SELECT DISTINCT ( + + COUNT ( * ) ) / + 66 + - 84 + + 86 AS col2, - MIN ( - ( + CASE 43 WHEN + 77 * - - 11 THEN + 56 WHEN + 99 + + 15 - + 17 + - 87 + + 88 - 23 THEN NULL END ) ) / - + 89 AS col2
----
2
NULL

query I rowsort
SELECT 83 - 25 AS col1
----
58

query I rowsort
SELECT DISTINCT - 90 * - NULLIF ( 56, - 7 )
----
5040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL - CAST( - CASE - ( - 14 ) WHEN - 41 * - - ( + CASE - 67 WHEN 6 + 96 THEN NULL WHEN 58 THEN NULL WHEN + - 76 THEN - - 62 / 50 + - COUNT( * ) * + COUNT( - - 29 ) / + 75 * + 65 + + 66 ELSE NULL END ) + - - 70 * - 13 + + 17 THEN + COUNT( * ) ELSE NULL END AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - CAST ( - CASE - ( - 14 ) WHEN - 41 * - - ( + CASE - 67 WHEN 6 + 96 THEN NULL WHEN 58 THEN NULL WHEN + - 76 THEN - - 62 / 50 + - COUNT ( * ) * + COUNT ( - - 29 ) / + 75 * + 65 + + 66 ELSE NULL END ) + - - 70 * - 13 + + 17 THEN + COUNT ( * ) ELSE NULL END AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - - 46, - AVG ( - - 37 ) + + 41 ) * - 0 - + - 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT COUNT( + 99 )
----
1

skipif mysql # not compatible
query I rowsort label-7996
SELECT COUNT ( + 99 )
----
1

query I rowsort
SELECT 51 * 45
----
2295

query II rowsort
SELECT ALL - + 13, 14 AS col1
----
-13
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7999
SELECT DISTINCT CASE - COUNT( DISTINCT 85 ) WHEN + 94 THEN NULL WHEN 43 + 71 THEN - 77 ELSE - 74 DIV - - 55 END * - COUNT( * ) AS col2, + 10 - - 90 * + 94
----
1
8470

skipif mysql # not compatible
query II rowsort label-7999
SELECT DISTINCT CASE - COUNT ( DISTINCT 85 ) WHEN + 94 THEN NULL WHEN 43 + 71 THEN - 77 ELSE - 74 / - - 55 END * - COUNT ( * ) AS col2, + 10 - - 90 * + 94
----
1
8470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT ALL - + CAST( - + 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - + CAST ( - + 81 AS INTEGER )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8001
SELECT + 89 DIV - 84 * + - COUNT( * ) + - 96 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-8001
SELECT + 89 / - 84 * + - COUNT ( * ) + - 96 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT DISTINCT + COUNT( * ) * - CAST( 28 AS SIGNED ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT + COUNT ( * ) * - CAST ( 28 AS INTEGER ) col0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8003
SELECT + COUNT( * ) + - + COUNT( * ) DIV - + 43 * 24 + + 58 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8003
SELECT + COUNT ( * ) + - + COUNT ( * ) / - + 43 * 24 + + 58 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT + - ( COALESCE ( + 55, COUNT( * ) ) ) * 44 - - 94
----
-2326

skipif mysql # not compatible
query I rowsort label-8004
SELECT + - ( COALESCE ( + 55, COUNT ( * ) ) ) * 44 - - 94
----
-2326

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT + 55 DIV + - 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8005
SELECT + 55 / + - 42 AS col2
----
-1

query I rowsort
SELECT ALL 8 + + 78 * + 32 * 7
----
17480

query I rowsort
SELECT DISTINCT 47 + 73 + + 31 AS col0
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT DISTINCT + ( + 50 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT + ( + 50 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 9 + 64 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8010
SELECT ALL + COUNT( * ) AS col2, - 95 + - + 68 + - COUNT( * )
----
1
-164

skipif mysql # not compatible
query II rowsort label-8010
SELECT ALL + COUNT ( * ) AS col2, - 95 + - + 68 + - COUNT ( * )
----
1
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT - COALESCE ( + - 20, + + COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-8011
SELECT - COALESCE ( + - 20, + + COUNT ( * ) )
----
20

query I rowsort
SELECT - COALESCE ( + - 75, - 38 * + + 69 * - 64 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT - COALESCE ( + + 58, + SUM( DISTINCT + 45 ) ) AS col0, CASE - 88 WHEN + 18 * - + 55 THEN 90 + - 0 + ( + + 85 ) + + + 78 * - 91 / - 58 END * - 80
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-8013
SELECT - COALESCE ( + + 58, + SUM ( DISTINCT + 45 ) ) AS col0, CASE - 88 WHEN + 18 * - + 55 THEN 90 + - 0 + ( + + 85 ) + + + 78 * - 91 / - 58 END * - 80
----
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL + 76 + - - MAX( + 51 ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL + 76 + - - MAX ( + 51 ) AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8015
SELECT DISTINCT 49 + + 66 + + NULLIF ( 70, + + COUNT( - - CAST( NULL AS DECIMAL ) ) + - - 88 + - 90 + + 49 * 52 ) DIV + 77 - - MAX( DISTINCT + + 95 ) * ( - 2 )
----
-75

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT 49 + + 66 + + NULLIF ( 70, + + COUNT ( - - CAST ( NULL AS REAL ) ) + - - 88 + - 90 + + 49 * 52 ) / + 77 - - MAX ( DISTINCT + + 95 ) * ( - 2 )
----
-75

query I rowsort
SELECT - 20 + - 87
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL + MAX( - 38 ) * + 12 AS col0
----
-456

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL + MAX ( - 38 ) * + 12 AS col0
----
-456

query I rowsort
SELECT + ( - - 97 ) + - 42 + - 71 AS col2
----
-16

query II rowsort
SELECT 97, - ( 71 ) + 73 AS col1
----
97
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL COALESCE ( 24, - COUNT( * ), + 83 - + 98 )
----
24

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL COALESCE ( 24, - COUNT ( * ), + 83 - + 98 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - 84 + + + ( CASE - 3 WHEN + 41 * COUNT( * ) + + COUNT( * ) + - 7 THEN NULL ELSE 98 * - CASE 45 WHEN - 13 - + 90 THEN + 68 END * - - 78 * - + 4 END ) * + 18 * - - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT - 84 + + + ( CASE - 3 WHEN + 41 * COUNT ( * ) + + COUNT ( * ) + - 7 THEN NULL ELSE 98 * - CASE 45 WHEN - 13 - + 90 THEN + 68 END * - - 78 * - + 4 END ) * + 18 * - - 17 AS col0
----
NULL

query I rowsort
SELECT - 90 - 89 AS col2
----
-179

query I rowsort
SELECT - 60 + - 46 AS col0
----
-106

query I rowsort
SELECT - 54 + - - 17 col1
----
-37

query I rowsort
SELECT - 12 * + 18
----
-216

query I rowsort
SELECT ALL + 5 * 53 AS col0
----
265

query I rowsort
SELECT - 30 + 5 AS col2
----
-25

query I rowsort
SELECT ALL + 14 * - 19 + + ( + 5 ) col2
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + 32 * + + 69 + + NULLIF ( 66, 87 * + COUNT( * ) ) * - + 48 * MIN( + 2 ) AS col1
----
-4128

skipif mysql # not compatible
query I rowsort label-8029
SELECT + 32 * + + 69 + + NULLIF ( 66, 87 * + COUNT ( * ) ) * - + 48 * MIN ( + 2 ) AS col1
----
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT DISTINCT + + 98 * + - MAX( - 20 )
----
1960

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT + + 98 * + - MAX ( - 20 )
----
1960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8031
SELECT DISTINCT + COALESCE ( - COUNT( * ), + NULLIF ( - - 49, - 96 * - 36 - + 97 + + + 1 + - + SUM( - 12 ) * + CAST( NULL AS SIGNED ) * + 31 * - 49 * - 70 + - 31 + + - CASE - 58 WHEN - ( + 92 ) THEN 33 * + 22 END + + - 10 * - 98 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + NULLIF ( - - 49, - 96 * - 36 - + 97 + + + 1 + - + SUM ( - 12 ) * + CAST ( NULL AS INTEGER ) * + 31 * - 49 * - 70 + - 31 + + - CASE - 58 WHEN - ( + 92 ) THEN 33 * + 22 END + + - 10 * - 98 ) ) col0
----
-1

query I rowsort
SELECT DISTINCT + 63 * 38 + + 51
----
2445

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8033
SELECT - 61, + CASE - - CAST( - 68 AS SIGNED ) WHEN - 23 THEN - 75 ELSE NULL END + 2 AS col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-8033
SELECT - 61, + CASE - - CAST ( - 68 AS INTEGER ) WHEN - 23 THEN - 75 ELSE NULL END + 2 AS col1
----
-61
NULL

query I rowsort
SELECT ALL + - ( - 83 )
----
83

query II rowsort
SELECT ALL 72 * - 48 + - 29 + + - 12 AS col1, 31 AS col0
----
-3497
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT + 80 * + + 92 * - + COUNT( * ) * CASE - - 42 WHEN + NULLIF ( 42, COALESCE ( + 2, - 61, 41 * - + 27 ) ) THEN - 55 END
----
404800

skipif mysql # not compatible
query I rowsort label-8036
SELECT + 80 * + + 92 * - + COUNT ( * ) * CASE - - 42 WHEN + NULLIF ( 42, COALESCE ( + 2, - 61, 41 * - + 27 ) ) THEN - 55 END
----
404800

query I rowsort
SELECT ALL - 58 * 87
----
-5046

query II rowsort
SELECT - 45, 61 col2
----
-45
61

query I rowsort
SELECT + - ( + 12 ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8040
SELECT + + CAST( - CASE - 53 WHEN + 16 THEN - COUNT( * ) WHEN + 99 THEN NULL END AS SIGNED ) AS col2, + 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8040
SELECT + + CAST ( - CASE - 53 WHEN + 16 THEN - COUNT ( * ) WHEN + 99 THEN NULL END AS INTEGER ) AS col2, + 43
----
NULL
43

query I rowsort
SELECT ALL 81 * - 84 + + 6 AS col0
----
-6798

query I rowsort
SELECT + - 2 * + + 54 AS col0
----
-108

query II rowsort
SELECT + 68, - 24 col1
----
68
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT - COALESCE ( - + 34, + 63 * + + 93 + + + ( + + NULLIF ( - COUNT( * ), NULLIF ( - 55, 0 ) + + 29 ) ) + + NULLIF ( - 15, + - 81 + - - COUNT( * ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-8044
SELECT - COALESCE ( - + 34, + 63 * + + 93 + + + ( + + NULLIF ( - COUNT ( * ), NULLIF ( - 55, 0 ) + + 29 ) ) + + NULLIF ( - 15, + - 81 + - - COUNT ( * ) ) )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8045
SELECT MIN( + 25 ) AS col2, + COUNT( * ) + + 46 AS col2
----
25
47

skipif mysql # not compatible
query II rowsort label-8045
SELECT MIN ( + 25 ) AS col2, + COUNT ( * ) + + 46 AS col2
----
25
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8046
SELECT + 26 * COUNT( * ) DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8046
SELECT + 26 * COUNT ( * ) / - 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL + 7 * - + MAX( DISTINCT - 46 ) - - COUNT( * )
----
323

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL + 7 * - + MAX ( DISTINCT - 46 ) - - COUNT ( * )
----
323

query I rowsort
SELECT - 67 * + ( + - 64 ) * + 49 + + 34 + - 80 + + + 87 + + - 21 + - 51 col2
----
210081

query I rowsort
SELECT + 79 - + 41 AS col0
----
38

query I rowsort
SELECT ALL - ( + 73 ) * - 70 AS col2
----
5110

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT + 96 * + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-8051
SELECT + 96 * + + COUNT ( * )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT ALL 2 DIV 34 * - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL 2 / 34 * - 32 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT + ( - + MIN( + - 15 ) ) * 62 AS col2
----
930

skipif mysql # not compatible
query I rowsort label-8053
SELECT + ( - + MIN ( + - 15 ) ) * 62 AS col2
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT - ( + MIN( - 29 ) )
----
29

skipif mysql # not compatible
query I rowsort label-8054
SELECT - ( + MIN ( - 29 ) )
----
29

query I rowsort
SELECT + 43 + - 22 * - 34
----
791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8056
SELECT DISTINCT + ( - 66 ) * 94 * CASE 23 WHEN - - 15 * + - COUNT( * ) THEN - CASE + COUNT( * ) WHEN - - NULLIF ( - - 62, COUNT( * ) ) THEN NULL WHEN 99 THEN + - ( + 76 ) END WHEN + 25 + + CASE - 2 WHEN - - ( - 69 ) THEN NULL ELSE - SUM( DISTINCT + 35 ) END THEN + CAST( NULL AS SIGNED ) * - 43 + - COUNT( * ) + - + 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT + ( - 66 ) * 94 * CASE 23 WHEN - - 15 * + - COUNT ( * ) THEN - CASE + COUNT ( * ) WHEN - - NULLIF ( - - 62, COUNT ( * ) ) THEN NULL WHEN 99 THEN + - ( + 76 ) END WHEN + 25 + + CASE - 2 WHEN - - ( - 69 ) THEN NULL ELSE - SUM ( DISTINCT + 35 ) END THEN + CAST ( NULL AS INTEGER ) * - 43 + - COUNT ( * ) + - + 10 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( 65 ) col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8058
SELECT DISTINCT ( + - 86 ) AS col0, ( CASE + + 11 WHEN + + 35 + + AVG ( DISTINCT + 9 ) + - + 52 + - - ( - - 91 ) + + COUNT( * ) * - 25 * - AVG ( - - 98 ) + MAX( + - CASE - 4 WHEN + + 68 - 46 - - 35 + + + 93 * - 47 * - ( COALESCE ( - + 67, - + 0, - 61 ) ) THEN - + 88 END ) / 13 * + CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) - - - CAST( 76 AS DECIMAL ) THEN + COALESCE ( 65, + 82, - 40 ) ELSE - ( CAST( + 26 AS SIGNED ) ) * - 38 END ) * 3
----
-86
2964

skipif mysql # not compatible
query II rowsort label-8058
SELECT DISTINCT ( + - 86 ) AS col0, ( CASE + + 11 WHEN + + 35 + + AVG ( DISTINCT + 9 ) + - + 52 + - - ( - - 91 ) + + COUNT ( * ) * - 25 * - AVG ( - - 98 ) + MAX ( + - CASE - 4 WHEN + + 68 - 46 - - 35 + + + 93 * - 47 * - ( COALESCE ( - + 67, - + 0, - 61 ) ) THEN - + 88 END ) / 13 * + CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) - - - CAST ( 76 AS REAL ) THEN + COALESCE ( 65, + 82, - 40 ) ELSE - ( CAST ( + 26 AS INTEGER ) ) * - 38 END ) * 3
----
-86
2964

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8059
SELECT ALL ( + 0 ) * + + 15 - - + 6 - - NULLIF ( - + CAST( 18 AS SIGNED ), - 20 ) * - - 11 * + - ( + 43 ) + - 95 AS col1, - 78
----
8425
-78

skipif mysql # not compatible
query II rowsort label-8059
SELECT ALL ( + 0 ) * + + 15 - - + 6 - - NULLIF ( - + CAST ( 18 AS INTEGER ), - 20 ) * - - 11 * + - ( + 43 ) + - 95 AS col1, - 78
----
8425
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8060
SELECT ALL CAST( + 52 AS SIGNED ) AS col1, + 19 AS col1
----
52
19

skipif mysql # not compatible
query II rowsort label-8060
SELECT ALL CAST ( + 52 AS INTEGER ) AS col1, + 19 AS col1
----
52
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT ALL - SUM( - - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL - SUM ( - - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL - + 96 + + - 49 + + - COUNT( * )
----
-146

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL - + 96 + + - 49 + + - COUNT ( * )
----
-146

onlyif mysql # aggregate syntax: 
query III rowsort label-8063
SELECT + + ( COUNT( * ) ) AS col1, 53, - 66 - 74 * + NULLIF ( - ( COUNT( * ) ), - - 12 + 9 ) AS col2
----
1
53
8

skipif mysql # not compatible
query III rowsort label-8063
SELECT + + ( COUNT ( * ) ) AS col1, 53, - 66 - 74 * + NULLIF ( - ( COUNT ( * ) ), - - 12 + 9 ) AS col2
----
1
53
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8064
SELECT - - COUNT( * ) * CASE - - 79 WHEN - 95 * + - 43 * 53 THEN - 48 END, + 27 + - 46 * 0 AS col0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-8064
SELECT - - COUNT ( * ) * CASE - - 79 WHEN - 95 * + - 43 * 53 THEN - 48 END, + 27 + - 46 * 0 AS col0
----
NULL
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT 13 DIV 96 - + COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8065
SELECT 13 / 96 - + COUNT ( * ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT ALL + COUNT( * ) + + 60 / + + CASE - 19 WHEN 80 THEN + - ( + 78 ) * + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + COUNT ( * ) + + 60 / + + CASE - 19 WHEN 80 THEN + - ( + 78 ) * + - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8067
SELECT ALL - CASE - 76 WHEN + CASE - 45 WHEN + - 88 * 84 * + - 4 - - 89 * + 13 THEN - COUNT( * ) * + ( - 63 ) ELSE + MAX( DISTINCT - - 75 ) END THEN - + 22 DIV 61 ELSE + 94 * 49 END DIV + - 48 + + + 95
----
190

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL - CASE - 76 WHEN + CASE - 45 WHEN + - 88 * 84 * + - 4 - - 89 * + 13 THEN - COUNT ( * ) * + ( - 63 ) ELSE + MAX ( DISTINCT - - 75 ) END THEN - + 22 / 61 ELSE + 94 * 49 END / + - 48 + + + 95
----
190

onlyif mysql # DIV for integer division: 
query II rowsort label-8068
SELECT 37 DIV + 37 AS col1, 46
----
1
46

skipif mysql # not compatible
query II rowsort label-8068
SELECT 37 / + 37 AS col1, 46
----
1
46

query I rowsort
SELECT DISTINCT + 0 + 61
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8070
SELECT DISTINCT - + 83 * + 31 + - - MIN( ALL - 48 ) DIV - + 31 + - 3
----
-2575

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT - + 83 * + 31 + - - MIN ( ALL - 48 ) / - + 31 + - 3
----
-2575

query I rowsort
SELECT ALL + ( - ( + 88 ) ) + + 56 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + COUNT( * ) * + 1 + - 56 - - 7
----
-48

skipif mysql # not compatible
query I rowsort label-8072
SELECT + COUNT ( * ) * + 1 + - 56 - - 7
----
-48

query I rowsort
SELECT ALL - 9 * NULLIF ( + ( - ( + 55 ) ), - 47 + - 23 + + - 13 ) AS col0
----
495

query I rowsort
SELECT DISTINCT - 76 * + 82
----
-6232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8075
SELECT ALL + 17 + - CAST( + 18 AS SIGNED ) + - 2 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + 17 + - CAST ( + 18 AS INTEGER ) + - 2 AS col0
----
-3

query II rowsort
SELECT + ( + - 39 ) col0, - 1
----
-39
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8077
SELECT 85 + + ( - 20 ) + + ( + - NULLIF ( - + 26, + + 58 ) ) AS col0, COUNT( - 97 ) AS col1
----
91
1

skipif mysql # not compatible
query II rowsort label-8077
SELECT 85 + + ( - 20 ) + + ( + - NULLIF ( - + 26, + + 58 ) ) AS col0, COUNT ( - 97 ) AS col1
----
91
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8078
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 72 + - 46 col1
----
NULL
26

skipif mysql # not compatible
query II rowsort label-8078
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 72 + - 46 col1
----
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT - MAX( DISTINCT + 84 ) * - + 9 + - 67 + 12
----
701

skipif mysql # not compatible
query I rowsort label-8079
SELECT - MAX ( DISTINCT + 84 ) * - + 9 + - 67 + 12
----
701

query I rowsort
SELECT ALL 61 * 19 * + 37 AS col2
----
42883

query I rowsort
SELECT 22 * + 91
----
2002

query I rowsort
SELECT 93 + ( 99 ) AS col1
----
192

query I rowsort
SELECT DISTINCT 96 - - 0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT COUNT( * ) + + 87 + 79 + - 82
----
85

skipif mysql # not compatible
query I rowsort label-8084
SELECT COUNT ( * ) + + 87 + 79 + - 82
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8085
SELECT 84 AS col0, COUNT( * ) AS col1
----
84
1

skipif mysql # not compatible
query II rowsort label-8085
SELECT 84 AS col0, COUNT ( * ) AS col1
----
84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT 12 * + SUM( + + 14 )
----
168

skipif mysql # not compatible
query I rowsort label-8086
SELECT 12 * + SUM ( + + 14 )
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT - COUNT( * ) * + 30
----
-30

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - COUNT ( * ) * + 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT NULLIF ( - - 48, + COUNT( * ) / - 12 + 92 ) + + 30 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8088
SELECT NULLIF ( - - 48, + COUNT ( * ) / - 12 + 92 ) + + 30 AS col2
----
78

query II rowsort
SELECT - 30, + ( 63 ) col2
----
-30
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8090
SELECT DISTINCT ( + COUNT( * ) ) + + 74 + - 13 AS col1, + 13 DIV - - 37, + 77 AS col1
----
62
0
77

skipif mysql # not compatible
query III rowsort label-8090
SELECT DISTINCT ( + COUNT ( * ) ) + + 74 + - 13 AS col1, + 13 / - - 37, + 77 AS col1
----
62
0
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8091
SELECT ALL CAST( + 26 AS SIGNED ) + - - 73 AS col0, + 41 AS col1
----
99
41

skipif mysql # not compatible
query II rowsort label-8091
SELECT ALL CAST ( + 26 AS INTEGER ) + - - 73 AS col0, + 41 AS col1
----
99
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8092
SELECT 26 / CAST( NULL AS SIGNED ) * + 48 + + MIN( DISTINCT 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT 26 / CAST ( NULL AS INTEGER ) * + 48 + + MIN ( DISTINCT 36 )
----
NULL

query I rowsort
SELECT 13 + - 64 * 79 + + 3 + 94 * - 16 AS col2
----
-6544

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT 57 - + CASE + ( - 54 ) WHEN 2 / - - 82 + + COUNT( * ) + - - 56 + + - NULLIF ( - 98, - 48 ) + 97 - COUNT( * ) THEN AVG ( - 69 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT 57 - + CASE + ( - 54 ) WHEN 2 / - - 82 + + COUNT ( * ) + - - 56 + + - NULLIF ( - 98, - 48 ) + 97 - COUNT ( * ) THEN AVG ( - 69 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 3 + - NULLIF ( + 28, - 18 ) * - - NULLIF ( + 8, - 0 )
----
-221

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL - - 81 + - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL - - 81 + - COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT - - ( - ( COUNT( + 23 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT - - ( - ( COUNT ( + 23 ) ) )
----
-1

query I rowsort
SELECT DISTINCT 14 + 93 col2
----
107

query II rowsort
SELECT ALL - 16 AS col1, + 77
----
-16
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8100
SELECT + MIN( ALL 26 ) DIV + ( + COUNT( * ) ) + 71
----
97

skipif mysql # not compatible
query I rowsort label-8100
SELECT + MIN ( ALL 26 ) / + ( + COUNT ( * ) ) + 71
----
97

query I rowsort
SELECT 62 * - CASE + 63 WHEN 52 THEN + 32 WHEN ( 16 ) THEN NULL END * 4 + - 63 AS col1
----
NULL

query I rowsort
SELECT 5 * - 25 + - ( + 36 ) AS col2
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL - MIN( DISTINCT 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL - MIN ( DISTINCT 15 )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8104
SELECT - 98 + + - 31 + + - 2 - 26 * COUNT( * ) * + 42 DIV 65 DIV + 25
----
-131

skipif mysql # not compatible
query I rowsort label-8104
SELECT - 98 + + - 31 + + - 2 - 26 * COUNT ( * ) * + 42 / 65 / + 25
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8105
SELECT ALL + + 1 - - 28 * + - CAST( COUNT( * ) AS SIGNED ) - - 78
----
51

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL + + 1 - - 28 * + - CAST ( COUNT ( * ) AS INTEGER ) - - 78
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + MAX( ALL + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8106
SELECT + MAX ( ALL + 41 ) AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL - CAST( + - 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL - CAST ( + - 85 AS INTEGER ) AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8108
SELECT 96 DIV - 44 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8108
SELECT 96 / - 44 AS col0
----
-2

query I rowsort
SELECT ALL - 8 * - 69 AS col1
----
552

query II rowsort
SELECT 3 + + 99 AS col2, - 60
----
102
-60

query I rowsort
SELECT DISTINCT - 35 * - 29 AS col2
----
1015

query I rowsort
SELECT 15 * + 80 * + + 1
----
1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8113
SELECT ALL + COUNT( * ) * 0 * - 44 DIV + + 53
----
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL + COUNT ( * ) * 0 * - 44 / + + 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT 22 DIV - - 8 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8114
SELECT 22 / - - 8 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT 93 * + COUNT( * ) * 43 AS col1
----
3999

skipif mysql # not compatible
query I rowsort label-8115
SELECT 93 * + COUNT ( * ) * 43 AS col1
----
3999

query I rowsort
SELECT 5 - 48
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL COUNT( + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL COUNT ( + 73 )
----
1

query I rowsort
SELECT ALL COALESCE ( + 6, + 92 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8119
SELECT DISTINCT - COUNT( * ) + + 47 + - - 73 * CASE + 60 WHEN - COUNT( * ) * CASE + - NULLIF ( + 76, 28 * + 15 / - - 31 + 73 ) WHEN - CAST( - - 26 AS DECIMAL ) - - - COUNT( * ) THEN NULL WHEN - - CAST( + 65 AS SIGNED ) * - 82 * ( + 60 ) / - + AVG ( ALL 98 ) + + 94 - + + 45 * 34 THEN + 43 + - - 60 * + 13 * 66 END * + 44 + - 66 THEN NULL WHEN - ( COUNT( * ) ) * - 59 + 5 THEN - + 88 * - 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT - COUNT ( * ) + + 47 + - - 73 * CASE + 60 WHEN - COUNT ( * ) * CASE + - NULLIF ( + 76, 28 * + 15 / - - 31 + 73 ) WHEN - CAST ( - - 26 AS REAL ) - - - COUNT ( * ) THEN NULL WHEN - - CAST ( + 65 AS INTEGER ) * - 82 * ( + 60 ) / - + AVG ( ALL 98 ) + + 94 - + + 45 * 34 THEN + 43 + - - 60 * + 13 * 66 END * + 44 + - 66 THEN NULL WHEN - ( COUNT ( * ) ) * - 59 + 5 THEN - + 88 * - 18 END AS col2
----
NULL

query I rowsort
SELECT ALL + 73 + - 18 AS col0
----
55

query I rowsort
SELECT 47 * - - 64
----
3008

query II rowsort
SELECT 18 * + 43 AS col1, - 85 - + 62
----
774
-147

query I rowsort
SELECT DISTINCT - 1 * - - 69 AS col0
----
-69

query I rowsort
SELECT ALL + 2 * - 91 AS col1
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-8125
SELECT - + 97 DIV - 5 + + 97 + + 74 AS col1
----
190

skipif mysql # not compatible
query I rowsort label-8125
SELECT - + 97 / - 5 + + 97 + + 74 AS col1
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8126
SELECT + 57 - - NULLIF ( - MAX( ALL - 69 ), - 94 * + 40 * + + AVG ( + 70 ) * - + CAST( NULL AS SIGNED ) * - CASE + + 14 WHEN - 15 * - 73 + + 32 + + - 48 + - - 12 + + + 50 + + 85 THEN - CAST( NULL AS DECIMAL ) WHEN + 50 THEN - - 88 - - 11 DIV - + 30 WHEN + + 46 * - - COUNT( * ) - + ( 95 ) THEN 58 END + COUNT( * ) + + - 45 * - 8 ) + + 2 DIV 3 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-8126
SELECT + 57 - - NULLIF ( - MAX ( ALL - 69 ), - 94 * + 40 * + + AVG ( + 70 ) * - + CAST ( NULL AS INTEGER ) * - CASE + + 14 WHEN - 15 * - 73 + + 32 + + - 48 + - - 12 + + + 50 + + 85 THEN - CAST ( NULL AS REAL ) WHEN + 50 THEN - - 88 - - 11 / - + 30 WHEN + + 46 * - - COUNT ( * ) - + ( 95 ) THEN 58 END + COUNT ( * ) + + - 45 * - 8 ) + + 2 / 3 AS col2
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT ALL + NULLIF ( - COUNT( * ), ( 22 ) ) * 26 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL + NULLIF ( - COUNT ( * ), ( 22 ) ) * 26 / + 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT + 19 DIV 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8128
SELECT + 19 / 85 AS col2
----
0

query I rowsort
SELECT + COALESCE ( + 16, + + 37 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT MAX( ALL + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT MAX ( ALL + 32 )
----
32

query I rowsort
SELECT - 77 * + - 44 * + 88 col1
----
298144

query I rowsort
SELECT + + 70 - + - 20 + 12 col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT + + MAX( + - 98 ) * - 67 * - 72 - - + 59 * - 34 AS col2
----
-474758

skipif mysql # not compatible
query I rowsort label-8133
SELECT + + MAX ( + - 98 ) * - 67 * - 72 - - + 59 * - 34 AS col2
----
-474758

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT + 59 / CASE - - 16 WHEN + + 46 THEN + + 67 END + - COALESCE ( COUNT( * ), 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT + 59 / CASE - - 16 WHEN + + 46 THEN + + 67 END + - COALESCE ( COUNT ( * ), 58 ) AS col1
----
NULL

query I rowsort
SELECT + - 90 * 62 AS col1
----
-5580

query I rowsort
SELECT + + 21 + 32 + 27 * - 41 AS col0
----
-1054

query I rowsort
SELECT DISTINCT + - ( + 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT ALL - COUNT( * ) * - 49 * + 93 AS col2
----
4557

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL - COUNT ( * ) * - 49 * + 93 AS col2
----
4557

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + COUNT( * ) - + 94
----
-93

skipif mysql # not compatible
query I rowsort label-8139
SELECT + COUNT ( * ) - + 94
----
-93

query I rowsort
SELECT + 65 * + + 93 - - 70 * + - 33 - + 43
----
3692

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT + 80 + + COUNT( * ) + - 65
----
16

skipif mysql # not compatible
query I rowsort label-8141
SELECT + 80 + + COUNT ( * ) + - 65
----
16

query I rowsort
SELECT - 97 * + ( - 75 ) * + 12 AS col0
----
87300

query I rowsort
SELECT - 56 + - + 35 AS col1
----
-91

query I rowsort
SELECT COALESCE ( + + 60, - 23 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - 67 * - NULLIF ( - + 3, + - COUNT( * ) * - 43 + - 64 ) * + 54 * + 65 + - 66 - - COUNT( * )
----
-705575

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 67 * - NULLIF ( - + 3, + - COUNT ( * ) * - 43 + - 64 ) * + 54 * + 65 + - 66 - - COUNT ( * )
----
-705575

query I rowsort
SELECT + 61 * + + 5 AS col2
----
305

query I rowsort
SELECT + 20 + 1
----
21

query I rowsort
SELECT ALL + 86 * + - 64 * - 39 * - 8
----
-1717248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL COUNT( * ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT 87 * 15 * 85 + - COUNT( * ) AS col0
----
110924

skipif mysql # not compatible
query I rowsort label-8150
SELECT 87 * 15 * 85 + - COUNT ( * ) AS col0
----
110924

query I rowsort
SELECT ALL - 14 * - ( + - ( 97 ) )
----
-1358

query I rowsort
SELECT - 16 * + 67 + - 11 AS col2
----
-1083

onlyif mysql # DIV for integer division: 
query II rowsort label-8153
SELECT ALL + 5 * 68 + + 66 AS col1, 16 DIV + + 59 AS col0
----
406
0

skipif mysql # not compatible
query II rowsort label-8153
SELECT ALL + 5 * 68 + + 66 AS col1, 16 / + + 59 AS col0
----
406
0

query II rowsort
SELECT DISTINCT + 69 * 71 * 29 AS col1, + 28
----
142071
28

query I rowsort
SELECT - 30 * 77 * + + 7
----
-16170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT - COALESCE ( - 53, + 98 * + + 28, + + 86 * CAST( - 39 AS SIGNED ) * 44 + - - 3 ) * - COUNT( DISTINCT + 37 )
----
-53

skipif mysql # not compatible
query I rowsort label-8156
SELECT - COALESCE ( - 53, + 98 * + + 28, + + 86 * CAST ( - 39 AS INTEGER ) * 44 + - - 3 ) * - COUNT ( DISTINCT + 37 )
----
-53

query I rowsort
SELECT DISTINCT + 42 + - 88 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT DISTINCT SUM( DISTINCT - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT SUM ( DISTINCT - 27 )
----
-27

query I rowsort
SELECT ALL + 82 + - 95
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT + MAX( - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + MAX ( - 36 ) AS col1
----
-36

query I rowsort
SELECT DISTINCT + ( + + 26 ) AS col0
----
26

query I rowsort
SELECT ALL 47 * - 55
----
-2585

query I rowsort
SELECT - 17 + - 67 + 44 + - 74 + + 30
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8164
SELECT ALL + 80 - + ( 81 ) DIV + ( - - COUNT( DISTINCT - - 15 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + 80 - + ( 81 ) / + ( - - COUNT ( DISTINCT - - 15 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - + COUNT( - 19 ) + 75
----
74

skipif mysql # not compatible
query I rowsort label-8165
SELECT - + COUNT ( - 19 ) + 75
----
74

query I rowsort
SELECT - + 10 + + 36 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL + 30 * MAX( + NULLIF ( - 10, - 8 ) )
----
-300

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL + 30 * MAX ( + NULLIF ( - 10, - 8 ) )
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT - + COUNT( * ) + + 56 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8168
SELECT - + COUNT ( * ) + + 56 AS col1
----
55

query I rowsort
SELECT - COALESCE ( - ( 30 ), - 31 )
----
30

query I rowsort
SELECT + 67 + - + COALESCE ( 37, 73 * 51 + - - 74 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT - + 75 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT - + 75 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT - ( - 56 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT - ( - 56 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8173
SELECT DISTINCT + 55 AS col0, COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-8173
SELECT DISTINCT + 55 AS col0, COUNT ( * )
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT + COUNT( * ) * - COALESCE ( - 88, 86 ) col0
----
88

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( - 88, 86 ) col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8175
SELECT ALL + COUNT( * ) AS col0, + 80 * + COALESCE ( + 59, + 4 ) + - 65 - 70 * ( + 65 ) - - 44
----
1
149

skipif mysql # not compatible
query II rowsort label-8175
SELECT ALL + COUNT ( * ) AS col0, + 80 * + COALESCE ( + 59, + 4 ) + - 65 - 70 * ( + 65 ) - - 44
----
1
149

onlyif mysql # DIV for integer division: 
query I rowsort label-8176
SELECT ALL 77 DIV + 10 + - 98
----
-91

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL 77 / + 10 + - 98
----
-91

query I rowsort
SELECT - - 17 * + 7 * + 74 + + 39 + - + 15 AS col0
----
8830

onlyif mysql # aggregate syntax: 
query II rowsort label-8178
SELECT + + 47 AS col0, + SUM( - 84 )
----
47
-84

skipif mysql # not compatible
query II rowsort label-8178
SELECT + + 47 AS col0, + SUM ( - 84 )
----
47
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT + - CASE - + 20 WHEN - 83 + COUNT( * ) THEN - 20 ELSE NULL END / + + ( + 91 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT + - CASE - + 20 WHEN - 83 + COUNT ( * ) THEN - 20 ELSE NULL END / + + ( + 91 ) col0
----
NULL

query II rowsort
SELECT + + 6 AS col0, + 44 * - 8 * + 54 + - 60
----
6
-19068

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8181
SELECT CAST( NULL AS SIGNED ) AS col1, + 73 - 60 AS col0
----
NULL
13

skipif mysql # not compatible
query II rowsort label-8181
SELECT CAST ( NULL AS INTEGER ) AS col1, + 73 - 60 AS col0
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT + NULLIF ( 70, COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-8182
SELECT + NULLIF ( 70, COUNT ( * ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL COUNT( * ) * + 12 * + 69
----
828

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL COUNT ( * ) * + 12 * + 69
----
828

query I rowsort
SELECT + ( - 13 ) col1
----
-13

query I rowsort
SELECT + ( 66 ) AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8186
SELECT ALL - 72 DIV + 49 + - + 15
----
-16

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - 72 / + 49 + - + 15
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8187
SELECT ALL + COUNT( * ), 55 * + ( - 16 ) AS col1
----
1
-880

skipif mysql # not compatible
query II rowsort label-8187
SELECT ALL + COUNT ( * ), 55 * + ( - 16 ) AS col1
----
1
-880

query I rowsort
SELECT + 8 + + 79 * 9
----
719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8189
SELECT ( + 27 ) AS col0, + CASE - 18 WHEN - CASE + 88 WHEN 92 * 87 THEN NULL ELSE + 73 END * + NULLIF ( CAST( NULL AS SIGNED ), + 85 ) * 72 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - + 2 END
----
27
-2

skipif mysql # not compatible
query II rowsort label-8189
SELECT ( + 27 ) AS col0, + CASE - 18 WHEN - CASE + 88 WHEN 92 * 87 THEN NULL ELSE + 73 END * + NULLIF ( CAST ( NULL AS INTEGER ), + 85 ) * 72 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - + 2 END
----
27
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8190
SELECT + 54 - + 75 * - COALESCE ( - 82, - 97 - 7 * - + 1 + - 32 + + 54 ) - + + 84 + CAST( - 70 AS SIGNED ) AS col0
----
-6250

skipif mysql # not compatible
query I rowsort label-8190
SELECT + 54 - + 75 * - COALESCE ( - 82, - 97 - 7 * - + 1 + - 32 + + 54 ) - + + 84 + CAST ( - 70 AS INTEGER ) AS col0
----
-6250

query II rowsort
SELECT ALL + 92 AS col1, 38 * + 94
----
92
3572

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT COALESCE ( - 20, - 25 * + 94 * + - 54 ) DIV - + 44 + - ( ( 22 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-8192
SELECT COALESCE ( - 20, - 25 * + 94 * + - 54 ) / - + 44 + - ( ( 22 ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT - 10 + + - MAX( DISTINCT + 18 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT - 10 + + - MAX ( DISTINCT + 18 ) AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT ALL + 56 / 30 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL + 56 / 30 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 85 AS col1, - ( + - 19 ) AS col0
----
85
19

query II rowsort
SELECT DISTINCT + 38 * - - 34, 86 AS col2
----
1292
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT DISTINCT + 83 - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT + 83 - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT DISTINCT - - 11 * NULLIF ( 43, + + COUNT( * ) * 18 ) * 10
----
4730

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT - - 11 * NULLIF ( 43, + + COUNT ( * ) * 18 ) * 10
----
4730

query II rowsort
SELECT ALL + 93 AS col0, + 74 + + 35 + - 57 * - 79 AS col0
----
93
4612

query II rowsort
SELECT + 41 AS col2, ( 5 )
----
41
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8201
SELECT + ( + 60 ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-8201
SELECT + ( + 60 ) / 88
----
0

query II rowsort
SELECT ALL - 70 AS col0, - 35 AS col0
----
-70
-35

query II rowsort
SELECT ALL 25, ( + 10 ) AS col0
----
25
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT - COUNT( * ) * - 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8204
SELECT - COUNT ( * ) * - 53 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT - CASE - CASE + COUNT( * ) WHEN - + AVG ( - + 63 ) * COUNT( * ) + 58 THEN + 80 ELSE NULL END WHEN - COUNT( * ) THEN 46 * - AVG ( ALL 3 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT - CASE - CASE + COUNT ( * ) WHEN - + AVG ( - + 63 ) * COUNT ( * ) + 58 THEN + 80 ELSE NULL END WHEN - COUNT ( * ) THEN 46 * - AVG ( ALL 3 ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT + 75 * - 55
----
-4125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8207
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT - 84 + - + 76 * - 49 * 61 AS col2, - 81 - - 0 + 50 + - + 71 + + 93
----
227080
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL - + 15 + + 36 + COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL - + 15 + + 36 + COUNT ( * ) AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8210
SELECT - CAST( NULL AS SIGNED ) / + 6 * - + 41 + + 85 * - CASE - 86 WHEN COALESCE ( - - 62, + COUNT( * ), 36 * + 93 + + 55 ) THEN 67 WHEN + 74 THEN NULL ELSE NULL END - + 40 + - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT - CAST ( NULL AS INTEGER ) / + 6 * - + 41 + + 85 * - CASE - 86 WHEN COALESCE ( - - 62, + COUNT ( * ), 36 * + 93 + + 55 ) THEN 67 WHEN + 74 THEN NULL ELSE NULL END - + 40 + - - 89
----
NULL

query II rowsort
SELECT 6 + 83 AS col2, 0
----
89
0

query I rowsort
SELECT ALL + 86 + 20 + + 7
----
113

query I rowsort
SELECT ALL - 59 + + ( - ( + 42 ) ) AS col0
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8214
SELECT - 59 * ( - 72 ) - + 98 - + + 35 + + CAST( NULL AS SIGNED ) * 90 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT - 59 * ( - 72 ) - + 98 - + + 35 + + CAST ( NULL AS INTEGER ) * 90 + - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - ( - - ( - 46 ) )
----
46

query I rowsort
SELECT - 8 * 58 + + + 30 AS col2
----
-434

query I rowsort
SELECT + 21 * 88 - ( + - 36 ) - ( + 12 ) * - + 19
----
2112

query I rowsort
SELECT 40 + 32 + - 20 + 0 * ( 41 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8219
SELECT DISTINCT 77 * - + CAST( - CASE + + 48 WHEN 16 * + 61 + 30 / + + 29 THEN NULL WHEN + 82 * - 14 * 5 + + + 1 + + COUNT( * ) + + ( - + 2 ) THEN 93 ELSE 19 + - + AVG ( - 45 ) END AS SIGNED ) * 47 AS col1
----
231616

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT 77 * - + CAST ( - CASE + + 48 WHEN 16 * + 61 + 30 / + + 29 THEN NULL WHEN + 82 * - 14 * 5 + + + 1 + + COUNT ( * ) + + ( - + 2 ) THEN 93 ELSE 19 + - + AVG ( - 45 ) END AS INTEGER ) * 47 AS col1
----
231616

query I rowsort
SELECT ALL 12 * + 84 col1
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8221
SELECT DISTINCT CAST( NULL AS SIGNED ) - COUNT( DISTINCT ( 30 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT CAST ( NULL AS INTEGER ) - COUNT ( DISTINCT ( 30 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT + 90 + + 14 - COUNT( * ) * - 25 * MAX( + 6 ) + + - COUNT( * ) * + 29 * - 83
----
2661

skipif mysql # not compatible
query I rowsort label-8222
SELECT + 90 + + 14 - COUNT ( * ) * - 25 * MAX ( + 6 ) + + - COUNT ( * ) * + 29 * - 83
----
2661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) - 46 + + 12 / + 94 * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) - 46 + + 12 / + 94 * 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT ALL 69 * - 15 * + 3 + + - 3 - - - 46 DIV + - 96 * - 3 + + - 95 col2
----
-3203

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL 69 * - 15 * + 3 + + - 3 - - - 46 / + - 96 * - 3 + + - 95 col2
----
-3203

query II rowsort
SELECT 36 + + 61 AS col2, 22
----
97
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT - ( - 11 ) + COUNT( DISTINCT + 67 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8226
SELECT - ( - 11 ) + COUNT ( DISTINCT + 67 ) AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT DISTINCT + ( CAST( 18 AS SIGNED ) )
----
18

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT + ( CAST ( 18 AS INTEGER ) )
----
18

query I rowsort
SELECT - 65 + 22 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT DISTINCT - - 5 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - - 5 / + 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8230
SELECT 5 + - CASE + ( 10 ) WHEN CAST( 87 AS SIGNED ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS col2, + 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-8230
SELECT 5 + - CASE + ( 10 ) WHEN CAST ( 87 AS INTEGER ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col2, + 21
----
NULL
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8231
SELECT + 92 DIV + + 44 + + 87, 57 * + 17 AS col0, + + 62 DIV + ( + CAST( + - 57 AS SIGNED ) ) col2
----
89
969
-1

skipif mysql # not compatible
query III rowsort label-8231
SELECT + 92 / + + 44 + + 87, 57 * + 17 AS col0, + + 62 / + ( + CAST ( + - 57 AS INTEGER ) ) col2
----
89
969
-1

query I rowsort
SELECT ALL - 47 * + 41 col0
----
-1927

query I rowsort
SELECT + 1 + - 83
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT ALL ( - + 93 ) DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL ( - + 93 ) / + 99 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT - 15 + COUNT( * ) * + CASE + 18 WHEN + 88 THEN - - 51 END - + 93 * + 66 - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT - 15 + COUNT ( * ) * + CASE + 18 WHEN + 88 THEN - - 51 END - + 93 * + 66 - - 97
----
NULL

query I rowsort
SELECT 44 + - 31
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8237
SELECT ALL ( + - ( - + 93 ) ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL ( + - ( - + 93 ) ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 68 * + 40 AS col2
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT MAX( ALL + 16 ) + ( + 57 ) * 19
----
1099

skipif mysql # not compatible
query I rowsort label-8239
SELECT MAX ( ALL + 16 ) + ( + 57 ) * 19
----
1099

query II rowsort
SELECT DISTINCT - 54 + + 27, + 38 AS col2
----
-27
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT - COUNT( * ) + + 2 col0
----
1

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT - COUNT ( * ) + + 2 col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT 31 + + 29 DIV - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8242
SELECT 31 + + 29 / - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL - 23 * - 39 + + COUNT( * )
----
898

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL - 23 * - 39 + + COUNT ( * )
----
898

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8244
SELECT - 31 * CASE - COUNT( * ) WHEN + + 62 THEN NULL WHEN - 79 THEN + MIN( ALL - + CAST( NULL AS DECIMAL ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT - 31 * CASE - COUNT ( * ) WHEN + + 62 THEN NULL WHEN - 79 THEN + MIN ( ALL - + CAST ( NULL AS REAL ) ) END
----
NULL

query II rowsort
SELECT - 37 + - 27 - + 33 * 83 + ( 39 ), + 83 AS col0
----
-2764
83

query I rowsort
SELECT ALL - 55 * - 8 col1
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT DISTINCT - 13 * + 76 - + - COUNT( * ) + 5 AS col2
----
-982

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT - 13 * + 76 - + - COUNT ( * ) + 5 AS col2
----
-982

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT ALL + 30 col1, + COUNT( * ) * 79 * - - COUNT( * )
----
30
79

skipif mysql # not compatible
query II rowsort label-8248
SELECT ALL + 30 col1, + COUNT ( * ) * 79 * - - COUNT ( * )
----
30
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT - 65 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-8249
SELECT - 65 / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL + MIN( DISTINCT + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL + MIN ( DISTINCT + 68 )
----
68

query I rowsort
SELECT - 27 - + 60 AS col2
----
-87

query I rowsort
SELECT + 97 * - 31 AS col0
----
-3007

query II rowsort
SELECT + 26 AS col2, 37 AS col2
----
26
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8254
SELECT ALL + NULLIF ( 63, - + 41 ) DIV 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL + NULLIF ( 63, - + 41 ) / 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - + NULLIF ( - 3, + 65 ) * 14 + - + 67 - + + COUNT( * ) * - - COALESCE ( - + 23, + COUNT( * ) * + ( 15 ) ) * - 11
----
-278

skipif mysql # not compatible
query I rowsort label-8255
SELECT - + NULLIF ( - 3, + 65 ) * 14 + - + 67 - + + COUNT ( * ) * - - COALESCE ( - + 23, + COUNT ( * ) * + ( 15 ) ) * - 11
----
-278

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8256
SELECT ALL - - 98 DIV + MAX( + 27 ), 34 + - + CAST( NULL AS DECIMAL ) + - - 51 AS col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8256
SELECT ALL - - 98 / + MAX ( + 27 ), 34 + - + CAST ( NULL AS REAL ) + - - 51 AS col1
----
3
NULL

query I rowsort
SELECT + - 62 * + 98 * + 42 + - + 78
----
-255270

query I rowsort
SELECT ALL 3 * - - 52 AS col2
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT + - COUNT( * ) - + CAST( NULL AS SIGNED ) + + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT + - COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + 48 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 76 ) + - 4 col1
----
-80

query I rowsort
SELECT - + 85 - 70 AS col0
----
-155

query I rowsort
SELECT NULLIF ( + 62, 41 )
----
62

query I rowsort
SELECT ALL 83 + - + 56 + + 98 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT 87 + + CASE + 9 WHEN - 20 THEN 52 * - 11 - + - 44 + - 45 WHEN + + 89 THEN + 22 * 95 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT 87 + + CASE + 9 WHEN - 20 THEN 52 * - 11 - + - 44 + - 45 WHEN + + 89 THEN + 22 * 95 ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + + COUNT( * ) * + 61
----
61

skipif mysql # not compatible
query I rowsort label-8265
SELECT + + COUNT ( * ) * + 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT + + COUNT( * ) * - MAX( 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8266
SELECT + + COUNT ( * ) * - MAX ( 70 ) AS col1
----
-70

query I rowsort
SELECT ALL - 24 + + 96
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL - 55 + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL - 55 + COUNT ( * )
----
-54

query I rowsort
SELECT - - ( 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8270
SELECT ALL 32 + - + ( + - 43 ) AS col1, COALESCE ( - + 66, + COUNT( * ) ) AS col1
----
75
-66

skipif mysql # not compatible
query II rowsort label-8270
SELECT ALL 32 + - + ( + - 43 ) AS col1, COALESCE ( - + 66, + COUNT ( * ) ) AS col1
----
75
-66

query I rowsort
SELECT + 2 * - - 9 col0
----
18

query I rowsort
SELECT - ( - 27 ) AS col2
----
27

query I rowsort
SELECT + 61 + - ( - ( + 8 ) ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8274
SELECT + 79 + CAST( + COUNT( * ) AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-8274
SELECT + 79 + CAST ( + COUNT ( * ) AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT - 85 * + COUNT( DISTINCT - - 45 ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-8275
SELECT - 85 * + COUNT ( DISTINCT - - 45 ) col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8276
SELECT - COUNT( * ) DIV + + ( + - 12 ) * - - 77 + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-8276
SELECT - COUNT ( * ) / + + ( + - 12 ) * - - 77 + - 6
----
-6

query I rowsort
SELECT + 49 * - 99
----
-4851

query I rowsort
SELECT + ( + - 22 ) * 5 + 87 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL + COALESCE ( + - COUNT( * ), ( - 33 ) + - 26, 95 + + + 44 + 56 + - 53 * - 13, - 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL + COALESCE ( + - COUNT ( * ), ( - 33 ) + - 26, 95 + + + 44 + 56 + - 53 * - 13, - 44 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8280
SELECT CASE - 96 WHEN - + 45 THEN NULL WHEN + 18 THEN - - 21 WHEN 70 * + 55 THEN + MAX( NULLIF ( + 28, 86 + + 79 ) ) * + 24 * - COUNT( * ) - + 84 + - + 16 ELSE 4 END DIV - 91 + + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8280
SELECT CASE - 96 WHEN - + 45 THEN NULL WHEN + 18 THEN - - 21 WHEN 70 * + 55 THEN + MAX ( NULLIF ( + 28, 86 + + 79 ) ) * + 24 * - COUNT ( * ) - + 84 + - + 16 ELSE 4 END / - 91 + + 28 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT - ( - + 25 ) + + 81 * + + MAX( + - 26 )
----
-2081

skipif mysql # not compatible
query I rowsort label-8281
SELECT - ( - + 25 ) + + 81 * + + MAX ( + - 26 )
----
-2081

query I rowsort
SELECT ( + 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT - COUNT( * ) * + 51 * + + 70 * ( + 12 ) AS col1
----
-42840

skipif mysql # not compatible
query I rowsort label-8283
SELECT - COUNT ( * ) * + 51 * + + 70 * ( + 12 ) AS col1
----
-42840

query I rowsort
SELECT - + 41 * - - 50 AS col0
----
-2050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT - + 83 + 26 * - - CAST( + + 28 AS SIGNED ) + - 56
----
589

skipif mysql # not compatible
query I rowsort label-8285
SELECT - + 83 + 26 * - - CAST ( + + 28 AS INTEGER ) + - 56
----
589

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT ALL - - 96 DIV 27
----
3

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - - 96 / 27
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8287
SELECT DISTINCT + 69 * 70 * COUNT( CAST( NULL AS DECIMAL ) ) * + 57 + + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + 69 * 70 * COUNT ( CAST ( NULL AS REAL ) ) * + 57 + + 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8288
SELECT - COUNT( * ) * - 11 * - - 85 + 32 AS col2, ( - ( 16 ) )
----
967
-16

skipif mysql # not compatible
query II rowsort label-8288
SELECT - COUNT ( * ) * - 11 * - - 85 + 32 AS col2, ( - ( 16 ) )
----
967
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8289
SELECT - + 39 + - - AVG ( + CAST( NULL AS SIGNED ) ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT - + 39 + - - AVG ( + CAST ( NULL AS INTEGER ) ) * + 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8290
SELECT + COUNT( * ) * + 56 DIV - 69 * - COALESCE ( - - 51, + + 14 * + 33 + - 51, - ( MIN( DISTINCT + 85 ) ) * SUM( - 48 ) * 76 * - 11 + + 66 * + 75, + 16 + - 4 )
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT + COUNT ( * ) * + 56 / - 69 * - COALESCE ( - - 51, + + 14 * + 33 + - 51, - ( MIN ( DISTINCT + 85 ) ) * SUM ( - 48 ) * 76 * - 11 + + 66 * + 75, + 16 + - 4 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8291
SELECT ALL CAST( + 66 AS SIGNED ) AS col2, 69 + + - 28 * - 79
----
66
2281

skipif mysql # not compatible
query II rowsort label-8291
SELECT ALL CAST ( + 66 AS INTEGER ) AS col2, 69 + + - 28 * - 79
----
66
2281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8292
SELECT - + COUNT( DISTINCT - + 75 ) + - - 41 + - + 89 DIV - + 53
----
41

skipif mysql # not compatible
query I rowsort label-8292
SELECT - + COUNT ( DISTINCT - + 75 ) + - - 41 + - + 89 / - + 53
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8293
SELECT DISTINCT 29 * + + 91 - + - COUNT( * ) DIV - - 97 + - 15 + - 60 - COUNT( * )
----
2563

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT 29 * + + 91 - + - COUNT ( * ) / - - 97 + - 15 + - 60 - COUNT ( * )
----
2563

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL ( + - 59 ) + - COUNT( * ) + 88
----
28

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL ( + - 59 ) + - COUNT ( * ) + 88
----
28

query I rowsort
SELECT + 0 + - ( + 29 ) AS col2
----
-29

query I rowsort
SELECT DISTINCT 3 * + + 73
----
219

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8297
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) - 85 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL ( - CAST ( NULL AS REAL ) ) - 85 + + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8298
SELECT MIN( 52 ) + + 87 + + NULLIF ( + COUNT( * ), + 77 - - 45 ) + 9 * + + 21 * COUNT( * ) DIV 20 * + 64
----
716

skipif mysql # not compatible
query I rowsort label-8298
SELECT MIN ( 52 ) + + 87 + + NULLIF ( + COUNT ( * ), + 77 - - 45 ) + 9 * + + 21 * COUNT ( * ) / 20 * + 64
----
716

onlyif mysql # aggregate syntax: 
query II rowsort label-8299
SELECT 21 * - 44 * 26 col0, + COUNT( - 65 ) AS col0
----
-24024
1

skipif mysql # not compatible
query II rowsort label-8299
SELECT 21 * - 44 * 26 col0, + COUNT ( - 65 ) AS col0
----
-24024
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT SUM( DISTINCT - 94 ) + 55 + - - 42 + - - 65
----
68

skipif mysql # not compatible
query I rowsort label-8300
SELECT SUM ( DISTINCT - 94 ) + 55 + - - 42 + - - 65
----
68

query I rowsort
SELECT 66 + 42 col2
----
108

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8302
SELECT DISTINCT 6, CAST( NULL AS DECIMAL ) * + 11 col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-8302
SELECT DISTINCT 6, CAST ( NULL AS REAL ) * + 11 col0
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT - ( + - COUNT( 46 ) ) - NULLIF ( 26, CASE 44 WHEN - - 47 THEN + 65 * + COUNT( * ) ELSE NULL END + - 92 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT - ( + - COUNT ( 46 ) ) - NULLIF ( 26, CASE 44 WHEN - - 47 THEN + 65 * + COUNT ( * ) ELSE NULL END + - 92 ) AS col1
----
-25

query I rowsort
SELECT DISTINCT 54 * + 18 AS col0
----
972

query II rowsort
SELECT ALL - 95 AS col1, ( + 2 )
----
-95
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT DISTINCT 1 DIV 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT 1 / 41 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8307
SELECT CAST( + COUNT( * ) AS SIGNED ) * - ( 59 ) + + - 3 * + 16
----
-107

skipif mysql # not compatible
query I rowsort label-8307
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * - ( 59 ) + + - 3 * + 16
----
-107

query I rowsort
SELECT ALL 53 * - 66 AS col1
----
-3498

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8309
SELECT ( - CASE - - 51 WHEN 6 - - - 71 THEN + - 76 * ( - - COALESCE ( + 69, - 98 / + COUNT( * ), + 72 ) ) WHEN + + 88 THEN NULL ELSE NULL END ) * 60 / - + 95 + - CAST( - 5 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8309
SELECT ( - CASE - - 51 WHEN 6 - - - 71 THEN + - 76 * ( - - COALESCE ( + 69, - 98 / + COUNT ( * ), + 72 ) ) WHEN + + 88 THEN NULL ELSE NULL END ) * 60 / - + 95 + - CAST ( - 5 AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT CAST( 4 AS SIGNED ) * + 39 col1
----
156

skipif mysql # not compatible
query I rowsort label-8310
SELECT CAST ( 4 AS INTEGER ) * + 39 col1
----
156

query I rowsort
SELECT DISTINCT 59 * 8 col0
----
472

query I rowsort
SELECT ALL - NULLIF ( - 12, - 53 ) + 82 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT DISTINCT SUM( 77 ) + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT SUM ( 77 ) + - COUNT ( * )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8314
SELECT 6 + COUNT( * ) DIV 27 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8314
SELECT 6 + COUNT ( * ) / 27 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL 87 + 89 * - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL 87 + 89 * - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL 46 + 91 AS col0
----
137

query I rowsort
SELECT 90 - + 10 AS col2
----
80

query I rowsort
SELECT 35 * 23
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL + 59 + MAX( + 73 ) * 87 col2
----
6410

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + 59 + MAX ( + 73 ) * 87 col2
----
6410

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT DISTINCT COUNT( * ) * + 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT COUNT ( * ) * + 26 AS col1
----
26

query I rowsort
SELECT 25 * - 21 col2
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL + CASE + 99 WHEN + ( COUNT( * ) ) THEN NULL WHEN - 63 THEN 64 + - 35 WHEN 49 + - 72 * ( + 66 * + COUNT( * ) ) THEN NULL END * + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL + CASE + 99 WHEN + ( COUNT ( * ) ) THEN NULL WHEN - 63 THEN 64 + - 35 WHEN 49 + - 72 * ( + 66 * + COUNT ( * ) ) THEN NULL END * + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL + ( COUNT( * ) ) - 36
----
-35

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL + ( COUNT ( * ) ) - 36
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT 12 - - COUNT( * ) * 86
----
98

skipif mysql # not compatible
query I rowsort label-8324
SELECT 12 - - COUNT ( * ) * 86
----
98

query I rowsort
SELECT 15 * 69
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT MIN( DISTINCT 74 ) * 83
----
6142

skipif mysql # not compatible
query I rowsort label-8326
SELECT MIN ( DISTINCT 74 ) * 83
----
6142

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT CASE - 64 WHEN 61 THEN 39 + 66 ELSE 96 END DIV 37
----
2

skipif mysql # not compatible
query I rowsort label-8327
SELECT CASE - 64 WHEN 61 THEN 39 + 66 ELSE 96 END / 37
----
2

query I rowsort
SELECT ALL 20 * - 17
----
-340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8329
SELECT 47 DIV COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8329
SELECT 47 / COUNT ( * ) AS col2
----
47

query I rowsort
SELECT 56 - + 51 AS col1
----
5

query I rowsort
SELECT DISTINCT 13 * 88
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL + 34 * + COUNT( - 28 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL + 34 * + COUNT ( - 28 ) AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8333
SELECT 46 + + CAST( - AVG ( - 98 ) AS SIGNED ) * 45
----
4456

skipif mysql # not compatible
query I rowsort label-8333
SELECT 46 + + CAST ( - AVG ( - 98 ) AS INTEGER ) * 45
----
4456

query I rowsort
SELECT 56 + 80
----
136

query I rowsort
SELECT 91 - + 7 * + 4 AS col1
----
63

query I rowsort
SELECT ALL 4 * - 21 + 57 col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8337
SELECT ( - COALESCE ( 30, - 49 + 62 ) ) * NULLIF ( 77 DIV 56, + CASE + 25 WHEN 26 * 9 THEN NULL WHEN + 34 * + 5 + - CAST( NULL AS SIGNED ) THEN + 19 DIV + CAST( 78 AS SIGNED ) - + 2 END ) + - COUNT( * ) * 73 AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-8337
SELECT ( - COALESCE ( 30, - 49 + 62 ) ) * NULLIF ( 77 / 56, + CASE + 25 WHEN 26 * 9 THEN NULL WHEN + 34 * + 5 + - CAST ( NULL AS INTEGER ) THEN + 19 / + CAST ( 78 AS INTEGER ) - + 2 END ) + - COUNT ( * ) * 73 AS col1
----
-103

query I rowsort
SELECT ALL 47 * - 8 + - 14
----
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8339
SELECT MAX( ALL - COALESCE ( + 89, 68 * + 71 + 10 * 82, ( 61 ) - 67 * CAST( NULL AS SIGNED ) ) ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-8339
SELECT MAX ( ALL - COALESCE ( + 89, 68 * + 71 + 10 * 82, ( 61 ) - 67 * CAST ( NULL AS INTEGER ) ) ) col0
----
-89

query I rowsort
SELECT ALL 41 * 86 + + 28
----
3554

query I rowsort
SELECT ALL + ( 47 ) * 95 AS col2
----
4465

query I rowsort
SELECT ALL + 20 + + 60
----
80

query I rowsort
SELECT 74 * - 39 AS col0
----
-2886

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + MIN( ( - NULLIF ( - 31, + 22 ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-8344
SELECT + MIN ( ( - NULLIF ( - 31, + 22 ) ) )
----
31

query I rowsort
SELECT 67 + 73
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT + COALESCE ( - 60, 48 + CAST( ( 78 ) AS SIGNED ) ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-8346
SELECT + COALESCE ( - 60, 48 + CAST ( ( 78 ) AS INTEGER ) ) col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8347
SELECT DISTINCT - ( - 65 ) + + 58 DIV COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT - ( - 65 ) + + 58 / COUNT ( * )
----
123

query I rowsort
SELECT ALL 76 - 88 col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8349
SELECT + 59 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-8349
SELECT + 59 / - 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8350
SELECT ( CASE + CAST( + 66 AS SIGNED ) WHEN + COUNT( * ) THEN + ( + CASE 99 WHEN + 36 * + COALESCE ( - 68 * - 68, 21 ) THEN NULL WHEN - 74 - + 74 THEN NULL WHEN - 30 THEN NULL WHEN - 4 THEN + 78 ELSE - 25 END ) * - 81 + + 82 ELSE + COUNT( * ) + + COUNT( * ) END )
----
2

skipif mysql # not compatible
query I rowsort label-8350
SELECT ( CASE + CAST ( + 66 AS INTEGER ) WHEN + COUNT ( * ) THEN + ( + CASE 99 WHEN + 36 * + COALESCE ( - 68 * - 68, 21 ) THEN NULL WHEN - 74 - + 74 THEN NULL WHEN - 30 THEN NULL WHEN - 4 THEN + 78 ELSE - 25 END ) * - 81 + + 82 ELSE + COUNT ( * ) + + COUNT ( * ) END )
----
2

query I rowsort
SELECT - 57 * 89 + + 75 * 92 AS col0
----
1827

query I rowsort
SELECT ALL - + NULLIF ( - ( 47 ), 12 / 17 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL - 43 - 24 * + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL - 43 - 24 * + COUNT ( * )
----
-67

query I rowsort
SELECT + 35 + 25
----
60

query I rowsort
SELECT - 19 * - NULLIF ( 71 * - 70, - 65 ) - + 12
----
-94442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT - COALESCE ( - COUNT( * ), 50 * 15 + - 37 DIV 54, - 29 * - 4 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8356
SELECT - COALESCE ( - COUNT ( * ), 50 * 15 + - 37 / 54, - 29 * - 4 ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL COUNT( - + 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL COUNT ( - + 34 ) AS col2
----
1

query I rowsort
SELECT + 32 + 10 AS col0
----
42

query I rowsort
SELECT - NULLIF ( + - 15, 11 ) AS col0
----
15

query I rowsort
SELECT - 26 + - - 70 + + 71
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL CAST( + - 53 AS SIGNED ) * 80 AS col0
----
-4240

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL CAST ( + - 53 AS INTEGER ) * 80 AS col0
----
-4240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8362
SELECT - 2 + + - CASE 15 WHEN - 36 THEN - 53 * 6 WHEN + MAX( NULLIF ( 39, - 58 ) ) - - ( + 48 ) THEN CAST( NULL AS SIGNED ) ELSE NULLIF ( + 21, 54 + + 4 ) END * 45
----
-947

skipif mysql # not compatible
query I rowsort label-8362
SELECT - 2 + + - CASE 15 WHEN - 36 THEN - 53 * 6 WHEN + MAX ( NULLIF ( 39, - 58 ) ) - - ( + 48 ) THEN CAST ( NULL AS INTEGER ) ELSE NULLIF ( + 21, 54 + + 4 ) END * 45
----
-947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT DISTINCT NULLIF ( - 23, COUNT( * ) + CAST( NULL AS SIGNED ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT NULLIF ( - 23, COUNT ( * ) + CAST ( NULL AS INTEGER ) ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT ALL CASE COUNT( * ) WHEN 1 THEN 29 END AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL CASE COUNT ( * ) WHEN 1 THEN 29 END AS col2
----
29

query I rowsort
SELECT - CASE - + ( 83 ) WHEN 57 THEN 9 - - 17 WHEN - 37 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + 49 * + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 49 * + + COUNT ( * )
----
49

query I rowsort
SELECT - 54 + 41
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - ( - COUNT( * ) ) + + 37
----
38

skipif mysql # not compatible
query I rowsort label-8368
SELECT - ( - COUNT ( * ) ) + + 37
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL - 75 + - 0 + 72 * - NULLIF ( MIN( - 26 ), + COUNT( * ) ) col0
----
1797

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - 75 + - 0 + 72 * - NULLIF ( MIN ( - 26 ), + COUNT ( * ) ) col0
----
1797

query I rowsort
SELECT - 19 * + 92 AS col1
----
-1748

query I rowsort
SELECT + 24 + + 12
----
36

query I rowsort
SELECT DISTINCT - 93 + + 25 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL + 2 + - + 30 + COUNT( DISTINCT 63 - 35 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + 2 + - + 30 + COUNT ( DISTINCT 63 - 35 ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT DISTINCT - COUNT( * ) * 32
----
-32

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT - COUNT ( * ) * 32
----
-32

query I rowsort
SELECT ALL - 75 + - 2 * - 22
----
-31

query I rowsort
SELECT ALL 0 * + 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL + ( + - 65 ) * + 33 + + COUNT( * )
----
-2144

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL + ( + - 65 ) * + 33 + + COUNT ( * )
----
-2144

query I rowsort
SELECT - + 29 * - - 86
----
-2494

query I rowsort
SELECT - ( 49 ) * + 68
----
-3332

query I rowsort
SELECT + 63 * + - 68
----
-4284

query I rowsort
SELECT DISTINCT + 95 * - 40 - 40 - 25 * + 59 AS col1
----
-5315

query I rowsort
SELECT ALL + ( 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL + - 43 * + + CASE 46 WHEN - 80 THEN + COUNT( * ) * + COALESCE ( ( ( ( 96 ) ) ), + 43 * - SUM( - 93 ) ) END - 26 * - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + - 43 * + + CASE 46 WHEN - 80 THEN + COUNT ( * ) * + COALESCE ( ( ( ( 96 ) ) ), + 43 * - SUM ( - 93 ) ) END - 26 * - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT + - 2 * + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8384
SELECT + - 2 * + + COUNT ( * )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT - + 15 DIV + 23 + 39 + + 73 * 74 AS col2
----
5441

skipif mysql # not compatible
query I rowsort label-8385
SELECT - + 15 / + 23 + 39 + + 73 * 74 AS col2
----
5441

query I rowsort
SELECT - 96 * NULLIF ( 9, AVG ( DISTINCT 95 ) ) AS col2
----
-864

query I rowsort
SELECT + 66 * + 62
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT + 23 + - - MIN( 97 ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-8388
SELECT + 23 + - - MIN ( 97 ) AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT + 93 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-8389
SELECT + 93 / - + 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT + 92 * - ( 57 ) * + 95 + ( + ( 41 ) ) * - 16 + 66 DIV 16
----
-498832

skipif mysql # not compatible
query I rowsort label-8390
SELECT + 92 * - ( 57 ) * + 95 + ( + ( 41 ) ) * - 16 + 66 / 16
----
-498832

query I rowsort
SELECT DISTINCT + 65 * + 57 * + 2 AS col2
----
7410

query I rowsort
SELECT DISTINCT 56 * + 80
----
4480

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT ALL COUNT( * ), - 34 + + - COUNT( * ) col0
----
1
-35

skipif mysql # not compatible
query II rowsort label-8393
SELECT ALL COUNT ( * ), - 34 + + - COUNT ( * ) col0
----
1
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT + 85 DIV 84
----
1

skipif mysql # not compatible
query I rowsort label-8394
SELECT + 85 / 84
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + ( 27 ) * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + ( 27 ) * + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT COUNT( DISTINCT - - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8396
SELECT COUNT ( DISTINCT - - 96 )
----
1

query I rowsort
SELECT + 66 - - ( + - 92 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - ( SUM( DISTINCT + - 87 ) )
----
87

skipif mysql # not compatible
query I rowsort label-8398
SELECT - ( SUM ( DISTINCT + - 87 ) )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8399
SELECT DISTINCT - 89 + + + COALESCE ( + - 93, - ( 63 ) ) + CAST( + 21 AS SIGNED )
----
-161

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT - 89 + + + COALESCE ( + - 93, - ( 63 ) ) + CAST ( + 21 AS INTEGER )
----
-161

query I rowsort
SELECT + 95 * 47 * - - 83 AS col0
----
370595

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL 1 + + COUNT( - 55 )
----
2

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL 1 + + COUNT ( - 55 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT + 13 - - 53 - 85 + CAST( 92 AS SIGNED ) * + CASE + 73 WHEN 86 THEN NULL ELSE 76 * 56 END
----
391533

skipif mysql # not compatible
query I rowsort label-8402
SELECT + 13 - - 53 - 85 + CAST ( 92 AS INTEGER ) * + CASE + 73 WHEN 86 THEN NULL ELSE 76 * 56 END
----
391533

query I rowsort
SELECT DISTINCT - 62 * COALESCE ( 91, 16 ) col1
----
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL MAX( ALL 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL MAX ( ALL 88 ) AS col1
----
88

query I rowsort
SELECT - 65 * - 84
----
5460

query I rowsort
SELECT ALL 71 + + 74
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT + 77 * 68 * + + MIN( ALL - 77 ) * - NULLIF ( 60, 8 ) AS col2
----
24190320

skipif mysql # not compatible
query I rowsort label-8407
SELECT + 77 * 68 * + + MIN ( ALL - 77 ) * - NULLIF ( 60, 8 ) AS col2
----
24190320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT - CAST( + 65 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-8408
SELECT - CAST ( + 65 AS INTEGER ) AS col2
----
-65

query I rowsort
SELECT + + 72 + - + ( - 32 )
----
104

query I rowsort
SELECT - - 92 - + 8 + 57
----
141

query I rowsort
SELECT - + 23 + - 89 col2
----
-112

query II rowsort
SELECT DISTINCT + + 66 AS col0, + ( + 47 ) AS col2
----
66
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL + SUM( - + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL + SUM ( - + 39 ) AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8414
SELECT - NULLIF ( + - 6, + CAST( + 43 AS SIGNED ) ) DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-8414
SELECT - NULLIF ( + - 6, + CAST ( + 43 AS INTEGER ) ) / 16
----
0

query I rowsort
SELECT ALL + + 36 * 81 * 47
----
137052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8416
SELECT DISTINCT + NULLIF ( - 40, COALESCE ( + 71, - MIN( + CAST( NULL AS SIGNED ) ) * 42 ) * - SUM( - 0 ) ) DIV 7 col0
----
-5

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT + NULLIF ( - 40, COALESCE ( + 71, - MIN ( + CAST ( NULL AS INTEGER ) ) * 42 ) * - SUM ( - 0 ) ) / 7 col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL 71 * + 72 * + + COUNT( * ) * 8 + CASE 5 WHEN + 79 THEN + 10 END * AVG ( + 12 * - 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL 71 * + 72 * + + COUNT ( * ) * 8 + CASE 5 WHEN + 79 THEN + 10 END * AVG ( + 12 * - 64 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8418
SELECT - - ( + COUNT( + 24 ) ) DIV - SUM( + CAST( + 84 AS SIGNED ) ) + - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8418
SELECT - - ( + COUNT ( + 24 ) ) / - SUM ( + CAST ( + 84 AS INTEGER ) ) + - 36 AS col1
----
-36

query I rowsort
SELECT ALL + - 69 - + 88
----
-157

query I rowsort
SELECT + - ( 97 ) AS col0
----
-97

query I rowsort
SELECT - 55 + - 25 AS col0
----
-80

query I rowsort
SELECT 6 * + 63 col0
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL - + COUNT( - + 51 ) * - 2
----
2

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - + COUNT ( - + 51 ) * - 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT + MIN( + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-8424
SELECT + MIN ( + 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT DISTINCT - - COUNT( - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT - - COUNT ( - 94 )
----
1

query I rowsort
SELECT ALL - CASE + 94 WHEN + 45 THEN - 1 * - 17 END
----
NULL

query I rowsort
SELECT - 30 * + 77
----
-2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT DISTINCT - CAST( + 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT - CAST ( + 14 AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL - SUM( - 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL - SUM ( - 16 ) AS col0
----
16

query I rowsort
SELECT 66 * - 37 * + + 4
----
-9768

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL 61 + - - COUNT( 58 ) + - 88
----
-26

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL 61 + - - COUNT ( 58 ) + - 88
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL 37 + - + CASE - NULLIF ( - 65, 83 * - 25 ) WHEN 80 + 61 THEN COUNT( * ) END + 35 * + 32 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL 37 + - + CASE - NULLIF ( - 65, 83 * - 25 ) WHEN 80 + 61 THEN COUNT ( * ) END + 35 * + 32 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT 56 + - 67 AS col2, + COUNT( * ) AS col0
----
-11
1

skipif mysql # not compatible
query II rowsort label-8433
SELECT 56 + - 67 AS col2, + COUNT ( * ) AS col0
----
-11
1

query I rowsort
SELECT CASE - - 56 WHEN + 40 * + - 67 * - 33 - 21 THEN 12 END - 34 AS col0
----
NULL

query I rowsort
SELECT ALL 31 + - 27 + - 21 AS col2
----
-17

query I rowsort
SELECT DISTINCT 60 + + - 36
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8437
SELECT ALL 83 + - CAST( NULL AS SIGNED ) col0, 99 * COUNT( * ) + - 51
----
NULL
48

skipif mysql # not compatible
query II rowsort label-8437
SELECT ALL 83 + - CAST ( NULL AS INTEGER ) col0, 99 * COUNT ( * ) + - 51
----
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT 91 + 71 + + SUM( - + 87 ) + + 5 * 78 col2
----
465

skipif mysql # not compatible
query I rowsort label-8438
SELECT 91 + 71 + + SUM ( - + 87 ) + + 5 * 78 col2
----
465

query I rowsort
SELECT ALL 95 + - 25
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT ( ( + COUNT( * ) ) ) + + 32 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8440
SELECT ( ( + COUNT ( * ) ) ) + + 32 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL 47 - - 15 * - + CASE - 93 WHEN 27 THEN 40 ELSE COUNT( * ) END * 4 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL 47 - - 15 * - + CASE - 93 WHEN 27 THEN 40 ELSE COUNT ( * ) END * 4 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT 81 * - - 30 * COUNT( * )
----
2430

skipif mysql # not compatible
query I rowsort label-8442
SELECT 81 * - - 30 * COUNT ( * )
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT COUNT( * ) * - + 69 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8443
SELECT COUNT ( * ) * - + 69 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT ALL COUNT( * ) - + 44
----
-43

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL COUNT ( * ) - + 44
----
-43

query I rowsort
SELECT 3 * - 33
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT MIN( ALL 84 )
----
84

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT MIN ( ALL 84 )
----
84

query I rowsort
SELECT DISTINCT NULLIF ( + 49, + 57 + - - 66 / + 42 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL + + COUNT( * ) * - 11 + + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL + + COUNT ( * ) * - 11 + + COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8449
SELECT ( CASE 24 WHEN 80 THEN 67 ELSE 58 DIV - 3 + COUNT( * ) END )
----
-18

skipif mysql # not compatible
query I rowsort label-8449
SELECT ( CASE 24 WHEN 80 THEN 67 ELSE 58 / - 3 + COUNT ( * ) END )
----
-18

query I rowsort
SELECT + ( - 93 ) * + 85 * - 77 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL + - 42 * - COUNT( * ) + + 2 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + - 42 * - COUNT ( * ) + + 2 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + ( - - 30 ) - + + 75 + - COUNT( * ) + 79 * 92 * - 51
----
-370714

skipif mysql # not compatible
query I rowsort label-8452
SELECT + ( - - 30 ) - + + 75 + - COUNT ( * ) + 79 * 92 * - 51
----
-370714

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT 19 DIV 6 * - - 2
----
6

skipif mysql # not compatible
query I rowsort label-8453
SELECT 19 / 6 * - - 2
----
6

query I rowsort
SELECT 50 * + 41 * + + ( - + 62 ) - + 67 * 27 AS col1
----
-128909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT DISTINCT CAST( + 62 AS SIGNED ) + 48 + - 16
----
94

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT CAST ( + 62 AS INTEGER ) + 48 + - 16
----
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8456
SELECT ALL + 65 DIV - CAST( + COALESCE ( - 44, + 33 + 39 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL + 65 / - CAST ( + COALESCE ( - 44, + 33 + 39 ) AS INTEGER ) AS col2
----
1

query II rowsort
SELECT ALL 84 + - 35 AS col0, + 51
----
49
51

query I rowsort
SELECT ALL - - NULLIF ( ( - 13 ), - 35 * 85 ) + + ( ( 38 ) + 45 ) AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8459
SELECT ALL + COUNT( * ) + 30 col2, 63 DIV - 84 + 60
----
31
60

skipif mysql # not compatible
query II rowsort label-8459
SELECT ALL + COUNT ( * ) + 30 col2, 63 / - 84 + 60
----
31
60

query I rowsort
SELECT 90 - - 79
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8461
SELECT ALL + 4 DIV + - 90 * - COALESCE ( + 26, 65 + - SUM( 20 ), ( - 38 ) ) * - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + 4 / + - 90 * - COALESCE ( + 26, 65 + - SUM ( 20 ), ( - 38 ) ) * - 47 AS col0
----
0

query I rowsort
SELECT DISTINCT - 24 + - 97
----
-121

query I rowsort
SELECT DISTINCT - ( - - NULLIF ( - 11, + 47 ) ) AS col2
----
11

query I rowsort
SELECT ALL - 6 + + 63 AS col1
----
57

query I rowsort
SELECT ALL + 52 + 66 AS col2
----
118

query I rowsort
SELECT DISTINCT + 34 + + - 25 AS col1
----
9

query I rowsort
SELECT ALL + 79 * + 12 * - 95 col0
----
-90060

query I rowsort
SELECT ALL + 7 + - + 60
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-8469
SELECT + 5 col0, COUNT( - + 49 )
----
5
1

skipif mysql # not compatible
query II rowsort label-8469
SELECT + 5 col0, COUNT ( - + 49 )
----
5
1

query I rowsort
SELECT DISTINCT + 89 + - 0
----
89

query I rowsort
SELECT 91 * - - 27 * 88 AS col0
----
216216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT ALL + 71 - - - COUNT( - 60 ) + - 44 DIV + 11
----
66

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + 71 - - - COUNT ( - 60 ) + - 44 / + 11
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT MAX( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT MAX ( - 4 )
----
-4

query II rowsort
SELECT 61 AS col2, 54
----
61
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT ALL + 44 DIV + 4
----
11

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + 44 / + 4
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT 90 - 86 + + CAST( 29 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-8476
SELECT 90 - 86 + + CAST ( 29 AS INTEGER )
----
33

query II rowsort
SELECT ALL 30 AS col1, + 52 col2
----
30
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT ALL + 45 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL + 45 / + 35
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT DISTINCT + - 28 * 96 * 24 DIV COALESCE ( + 90, + 83 * + 9 + + 67 ) + 36 AS col1
----
-680

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT + - 28 * 96 * 24 / COALESCE ( + 90, + 83 * + 9 + + 67 ) + 36 AS col1
----
-680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT ALL ( + + SUM( ALL CAST( - 76 AS SIGNED ) ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL ( + + SUM ( ALL CAST ( - 76 AS INTEGER ) ) ) AS col2
----
-76

query I rowsort
SELECT 64 - - - 30
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL - 9 * + 99 + - 64 + - - COUNT( * ) - - + 72 + - 71
----
-953

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - 9 * + 99 + - 64 + - - COUNT ( * ) - - + 72 + - 71
----
-953

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL + 51 * COUNT( * ) * 87
----
4437

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + 51 * COUNT ( * ) * 87
----
4437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT - + 46 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT - + 46 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 40 - - 48
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT + + 91 * CAST( + 6 AS SIGNED )
----
546

skipif mysql # not compatible
query I rowsort label-8486
SELECT + + 91 * CAST ( + 6 AS INTEGER )
----
546

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT + 46 - 32 DIV + 38
----
46

skipif mysql # not compatible
query I rowsort label-8487
SELECT + 46 - 32 / + 38
----
46

query I rowsort
SELECT + - 63 * - - 3
----
-189

query I rowsort
SELECT ALL + + 73 * 86 + - ( - + ( - + 27 ) ) + 86
----
6337

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT DISTINCT COUNT( * ) * - COUNT( * ) DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) / 57
----
0

query I rowsort
SELECT - - 74 * + - 97 + 8 * 11
----
-7090

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL + - 74 * - NULLIF ( + - COUNT( * ), - 29 ) + + 2 * ( 28 / + ( - CASE WHEN NOT 87 IS NOT NULL THEN + 97 + + 16 ELSE NULL END * ( + 59 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + - 74 * - NULLIF ( + - COUNT ( * ), - 29 ) + + 2 * ( 28 / + ( - CASE WHEN NOT 87 IS NOT NULL THEN + 97 + + 16 ELSE NULL END * ( + 59 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL + COUNT( - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + COUNT ( - 47 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL 27 * + 79 * - 68 - - CASE - 55 WHEN ( 19 ) + + 45 THEN NULL WHEN + 95 * MIN( ALL 91 ) THEN 58 WHEN 77 THEN + ( 27 ) * + 76 END * 61 + - 97 * - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL 27 * + 79 * - 68 - - CASE - 55 WHEN ( 19 ) + + 45 THEN NULL WHEN + 95 * MIN ( ALL 91 ) THEN 58 WHEN 77 THEN + ( 27 ) * + 76 END * 61 + - 97 * - 52 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 75 * 49 AS col2
----
-3675

query I rowsort
SELECT ALL 97 * + 69 + + 85
----
6778

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT + NULLIF ( + + COALESCE ( + + MIN( DISTINCT 54 ), - 35 ), COUNT( + 51 ) + + SUM( ALL - 88 ) ) col2
----
54

skipif mysql # not compatible
query I rowsort label-8497
SELECT + NULLIF ( + + COALESCE ( + + MIN ( DISTINCT 54 ), - 35 ), COUNT ( + 51 ) + + SUM ( ALL - 88 ) ) col2
----
54

query I rowsort
SELECT NULLIF ( + + 85, 28 ) AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT + NULLIF ( 87, + - 25 - CAST( + NULLIF ( - 66, + COUNT( 67 ) ) AS SIGNED ) + 57 * + COUNT( * ) ) * 82
----
7134

skipif mysql # not compatible
query I rowsort label-8499
SELECT + NULLIF ( 87, + - 25 - CAST ( + NULLIF ( - 66, + COUNT ( 67 ) ) AS INTEGER ) + 57 * + COUNT ( * ) ) * 82
----
7134

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL + NULLIF ( - NULLIF ( - 98, + 10 + + + CASE + 93 WHEN + 5 * - 34 THEN + 37 + + 71 / + 10 ELSE NULL END + 6 ), 24 * + MIN( - 34 ) )
----
98

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL + NULLIF ( - NULLIF ( - 98, + 10 + + + CASE + 93 WHEN + 5 * - 34 THEN + 37 + + 71 / + 10 ELSE NULL END + 6 ), 24 * + MIN ( - 34 ) )
----
98

query I rowsort
SELECT NULLIF ( - 11, - - 47 ) col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL 84 * - - ( - 49 ) + - COUNT( * ) col2
----
-4117

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL 84 * - - ( - 49 ) + - COUNT ( * ) col2
----
-4117

query II rowsort
SELECT - 90 + 94, + 43 AS col0
----
4
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT + ( - + MAX( 13 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-8504
SELECT + ( - + MAX ( 13 ) )
----
-13

query I rowsort
SELECT - 8 * + - ( + - 75 ) + + 40 AS col2
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + 36 * - MAX( 15 )
----
-540

skipif mysql # not compatible
query I rowsort label-8506
SELECT + 36 * - MAX ( 15 )
----
-540

query I rowsort
SELECT - 42 * - ( + 10 ) AS col0
----
420

query I rowsort
SELECT - 54 + + 36
----
-18

query I rowsort
SELECT - ( - 42 ) * - 3 col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT - ( - 15 ) + + CASE - 23 WHEN + + 78 + - + COALESCE ( + 33, - 7, + 4 * SUM( + 16 ) ) + + COUNT( * ) THEN ( COUNT( * ) ) + 52 * - 80 WHEN + COUNT( * ) * - 94 THEN 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT - ( - 15 ) + + CASE - 23 WHEN + + 78 + - + COALESCE ( + 33, - 7, + 4 * SUM ( + 16 ) ) + + COUNT ( * ) THEN ( COUNT ( * ) ) + 52 * - 80 WHEN + COUNT ( * ) * - 94 THEN 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT - 36 - MIN( ALL + - 24 ) * 77 + + - COUNT( * )
----
1811

skipif mysql # not compatible
query I rowsort label-8511
SELECT - 36 - MIN ( ALL + - 24 ) * 77 + + - COUNT ( * )
----
1811

query I rowsort
SELECT DISTINCT + 40 * - - ( ( + 0 ) )
----
0

query I rowsort
SELECT 49 * - + ( + 55 ) + 27 AS col1
----
-2668

query I rowsort
SELECT DISTINCT + 58 - - - ( + - ( + 44 ) ) + + - 82 + + 57 * 95
----
5435

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT - 82 * + - COUNT( ALL + 28 ) col0
----
82

skipif mysql # not compatible
query I rowsort label-8515
SELECT - 82 * + - COUNT ( ALL + 28 ) col0
----
82

query I rowsort
SELECT ALL ( 40 ) col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT - + 78 * + ( - CASE + - 8 WHEN + 30 THEN + + 56 / COALESCE ( 68 * 44 + + 24, - CASE WHEN NULL = 68 THEN - 12 * 39 END * - 73 ) - ( - MAX( + 5 ) ) WHEN - 97 + CASE COUNT( * ) WHEN 34 * 71 THEN - 79 END THEN - 80 * - MIN( ALL 21 ) END ) + 84 + - 78 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT - + 78 * + ( - CASE + - 8 WHEN + 30 THEN + + 56 / COALESCE ( 68 * 44 + + 24, - CASE WHEN NULL = 68 THEN - 12 * 39 END * - 73 ) - ( - MAX ( + 5 ) ) WHEN - 97 + CASE COUNT ( * ) WHEN 34 * 71 THEN - 79 END THEN - 80 * - MIN ( ALL 21 ) END ) + 84 + - 78 * - 86
----
NULL

query I rowsort
SELECT DISTINCT + 13 * - 81 AS col0
----
-1053

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8519
SELECT ALL 9 AS col2, - COUNT( * ) * + - COALESCE ( NULLIF ( + 40, + COUNT( * ) * - 81 ), 92 - - 36 * 56, 81 - - AVG ( + 54 ) ) DIV CASE WHEN - 54 IS NOT NULL THEN + 26 + 3 END - 84
----
9
-83

skipif mysql # not compatible
query II rowsort label-8519
SELECT ALL 9 AS col2, - COUNT ( * ) * + - COALESCE ( NULLIF ( + 40, + COUNT ( * ) * - 81 ), 92 - - 36 * 56, 81 - - AVG ( + 54 ) ) / CASE WHEN - 54 IS NOT NULL THEN + 26 + 3 END - 84
----
9
-83

query I rowsort
SELECT - - 75 * - 84 AS col1
----
-6300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8521
SELECT ALL - + ( - 1 ) + + 79 DIV + + NULLIF ( - COALESCE ( + SUM( 79 ), - 78 + - 31, - 68 + - 2 ), - 89 + + ( MIN( ALL 0 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - + ( - 1 ) + + 79 / + + NULLIF ( - COALESCE ( + SUM ( 79 ), - 78 + - 31, - 68 + - 2 ), - 89 + + ( MIN ( ALL 0 ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT DISTINCT + ( - 99 ) DIV + 18
----
-5

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT + ( - 99 ) / + 18
----
-5

query I rowsort
SELECT DISTINCT 9 + - 8 AS col0
----
1

query I rowsort
SELECT ALL + 48 + + 36
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL + COUNT( DISTINCT - + 30 ) + 78 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL + COUNT ( DISTINCT - + 30 ) + 78 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT - NULLIF ( + 69, + + CASE - 18 WHEN 56 THEN + 52 WHEN + 24 THEN 91 + + CASE + 55 + 38 WHEN + 47 THEN NULL WHEN + 50 - - 21 THEN COUNT( * ) ELSE NULL END / 39 END * - 72 ) + 92
----
23

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT - NULLIF ( + 69, + + CASE - 18 WHEN 56 THEN + 52 WHEN + 24 THEN 91 + + CASE + 55 + 38 WHEN + 47 THEN NULL WHEN + 50 - - 21 THEN COUNT ( * ) ELSE NULL END / 39 END * - 72 ) + 92
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8527
SELECT + COUNT( * ) + - COALESCE ( 12, - + 48 DIV - ( - - 50 ) + 87 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8527
SELECT + COUNT ( * ) + - COALESCE ( 12, - + 48 / - ( - - 50 ) + 87 ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8528
SELECT DISTINCT COUNT( * ) DIV 77 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT COUNT ( * ) / 77 + - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8529
SELECT ALL CAST( - MIN( + + 20 ) AS SIGNED ) DIV - 60 + - SUM( 70 ) + + 28 * 97
----
2646

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL CAST ( - MIN ( + + 20 ) AS INTEGER ) / - 60 + - SUM ( 70 ) + + 28 * 97
----
2646

query I rowsort
SELECT + 37 * ( + 52 ) * - 46 col1
----
-88504

query I rowsort
SELECT - 76 - 26 + 72 + 34 * 36 * + + ( + 51 ) * + 95 - + 71 AS col1
----
5930179

query II rowsort
SELECT + 73 AS col2, 33
----
73
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8533
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col0, MIN( - ( + CAST( NULL AS DECIMAL ) ) ) + - 91
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8533
SELECT ALL + + CAST ( NULL AS REAL ) AS col0, MIN ( - ( + CAST ( NULL AS REAL ) ) ) + - 91
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT 88 * - NULLIF ( COUNT( * ), + 66 + - 88 ) - + 64 + - CAST( NULL AS SIGNED ) - 92 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT 88 * - NULLIF ( COUNT ( * ), + 66 + - 88 ) - + 64 + - CAST ( NULL AS INTEGER ) - 92 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8535
SELECT CAST( 64 AS SIGNED ), 7 AS col0
----
64
7

skipif mysql # not compatible
query II rowsort label-8535
SELECT CAST ( 64 AS INTEGER ), 7 AS col0
----
64
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT + ( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) - - 56 * - ( - - 15 ) + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) - - 56 * - ( - - 15 ) + - 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8537
SELECT ALL CAST( + 71 AS SIGNED ) DIV - + 82 * - 6 + + + 20 - 45
----
-25

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL CAST ( + 71 AS INTEGER ) / - + 82 * - 6 + + + 20 - 45
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8538
SELECT ALL NULLIF ( - + CAST( NULL AS SIGNED ), + COUNT( * ) ) * - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL NULLIF ( - + CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * - 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8539
SELECT ALL ( COUNT( * ) ) DIV - 85 - COUNT( + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL ( COUNT ( * ) ) / - 85 - COUNT ( + 18 )
----
-1

query II rowsort
SELECT + ( 94 ), 56 AS col2
----
94
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT + COUNT( * ) * - - 93 * + COUNT( * ) * 29 + - 95 AS col2
----
2602

skipif mysql # not compatible
query I rowsort label-8541
SELECT + COUNT ( * ) * - - 93 * + COUNT ( * ) * 29 + - 95 AS col2
----
2602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT + 49 - + 31 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 49 - + 31 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8543
SELECT + 60 * + 30, - 16 + - 31 - COUNT( * ) AS col2
----
1800
-48

skipif mysql # not compatible
query II rowsort label-8543
SELECT + 60 * + 30, - 16 + - 31 - COUNT ( * ) AS col2
----
1800
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL 72 * + ( - COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL 72 * + ( - COUNT ( * ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL 17 * - ( + 78 ) - + - COUNT( * ) + + ( - - 88 ) AS col1
----
-1237

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL 17 * - ( + 78 ) - + - COUNT ( * ) + + ( - - 88 ) AS col1
----
-1237

query I rowsort
SELECT ALL 7 * 20 col1
----
140

onlyif mysql # DIV for integer division: 
query II rowsort label-8547
SELECT + 13 DIV - 38, 2 * 13 AS col2
----
0
26

skipif mysql # not compatible
query II rowsort label-8547
SELECT + 13 / - 38, 2 * 13 AS col2
----
0
26

query II rowsort
SELECT - 19 * - 5, - 65 AS col1
----
95
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8549
SELECT ( + COUNT( * ) ) col2, + CASE 65 WHEN - 79 + 61 THEN COUNT( * ) END * CASE + 5 WHEN + 37 THEN + 2 END + + 57 col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8549
SELECT ( + COUNT ( * ) ) col2, + CASE 65 WHEN - 79 + 61 THEN COUNT ( * ) END * CASE + 5 WHEN + 37 THEN + 2 END + + 57 col2
----
1
NULL

query I rowsort
SELECT 44 * + + 92 + + 59 * + 54 + - 21
----
7213

query II rowsort
SELECT ( + 25 ), 14 * + ( - + 71 ) AS col2
----
25
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT CASE MAX( DISTINCT 19 ) WHEN - - 85 THEN + 81 + - MAX( ALL + 95 ) WHEN + 7 THEN NULL ELSE 94 + 76 END AS col1
----
170

skipif mysql # not compatible
query I rowsort label-8552
SELECT CASE MAX ( DISTINCT 19 ) WHEN - - 85 THEN + 81 + - MAX ( ALL + 95 ) WHEN + 7 THEN NULL ELSE 94 + 76 END AS col1
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8553
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) / - 88 - 53 + + CAST( NULL AS DECIMAL ) * ( + 37 ) / COUNT( - ( ( 68 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) / - 88 - 53 + + CAST ( NULL AS REAL ) * ( + 37 ) / COUNT ( - ( ( 68 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL + CASE 6 WHEN 75 + + CASE + COUNT( * ) WHEN - 59 THEN NULL WHEN - 21 THEN - ( 64 ) END * 88 THEN 72 WHEN 82 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL + CASE 6 WHEN 75 + + CASE + COUNT ( * ) WHEN - 59 THEN NULL WHEN - 21 THEN - ( 64 ) END * 88 THEN 72 WHEN 82 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 59 * + + 1 * - - NULLIF ( 85, - + 54 + + 79 ) AS col2
----
-5015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8556
SELECT COUNT( * ) * + 86 AS col0, ( + CAST( NULL AS SIGNED ) ) AS col2
----
86
NULL

skipif mysql # not compatible
query II rowsort label-8556
SELECT COUNT ( * ) * + 86 AS col0, ( + CAST ( NULL AS INTEGER ) ) AS col2
----
86
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8557
SELECT ALL - + COALESCE ( + 89, - - CASE + COUNT( * ) WHEN - 88 - + + 27 + + 28 * + 19 THEN - 18 + - 42 * 57 END ) DIV - MAX( DISTINCT 26 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL - + COALESCE ( + 89, - - CASE + COUNT ( * ) WHEN - 88 - + + 27 + + 28 * + 19 THEN - 18 + - 42 * 57 END ) / - MAX ( DISTINCT 26 ) AS col0
----
3

query II rowsort
SELECT 35 - 98 AS col0, 9 AS col0
----
-63
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8559
SELECT + NULLIF ( + SUM( 45 ), + 3 * - COUNT( * ) * 12 ) - + 8 DIV + 48 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8559
SELECT + NULLIF ( + SUM ( 45 ), + 3 * - COUNT ( * ) * 12 ) - + 8 / + 48 AS col2
----
45

query I rowsort
SELECT DISTINCT + + 98 * - 5 * 31 AS col1
----
-15190

query I rowsort
SELECT 27 + 63
----
90

query I rowsort
SELECT ALL - - ( - + 33 ) * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + CASE + 16 WHEN - ( - + COUNT( * ) ) * - 13 / - 5 THEN NULL WHEN - 53 THEN NULL ELSE + 65 END * 44
----
2860

skipif mysql # not compatible
query I rowsort label-8563
SELECT + CASE + 16 WHEN - ( - + COUNT ( * ) ) * - 13 / - 5 THEN NULL WHEN - 53 THEN NULL ELSE + 65 END * 44
----
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL + 57 + 71 + COUNT( * ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL + 57 + 71 + COUNT ( * ) AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL - + COALESCE ( + - COUNT( + - 66 ), - + 80 ) + NULLIF ( - 84, 73 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - + COALESCE ( + - COUNT ( + - 66 ), - + 80 ) + NULLIF ( - 84, 73 ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT DISTINCT - 41 * 41 + - - 86 DIV + 97 AS col2
----
-1681

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT - 41 * 41 + - - 86 / + 97 AS col2
----
-1681

query II rowsort
SELECT - 81 - + ( - 84 ) AS col0, NULLIF ( + 48, + 77 + - 17 * 88 ) + - 94
----
3
-46

query I rowsort
SELECT ALL - - 56 * 94 AS col2
----
5264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT DISTINCT + - SUM( DISTINCT + - 17 ) + + - CAST( 49 AS SIGNED ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + - SUM ( DISTINCT + - 17 ) + + - CAST ( 49 AS INTEGER ) AS col2
----
-32

query I rowsort
SELECT - 8 + - - 40
----
32

query I rowsort
SELECT ALL + + 43 + - + NULLIF ( + 82, - 62 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-8572
SELECT 75 + + MIN( ALL - 23 ) + + 70 + 16, + COUNT( * ) AS col1
----
138
1

skipif mysql # not compatible
query II rowsort label-8572
SELECT 75 + + MIN ( ALL - 23 ) + + 70 + 16, + COUNT ( * ) AS col1
----
138
1

query I rowsort
SELECT + 30 * + 85
----
2550

query I rowsort
SELECT ( - + 47 ) - + 60 AS col0
----
-107

query I rowsort
SELECT ALL 91 - ( + - 42 ) AS col0
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-8576
SELECT ALL - 48 DIV 82 * + + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL - 48 / 82 * + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT DISTINCT - 30 * + COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT - 30 * + COUNT ( * ) AS col0
----
-30

query I rowsort
SELECT DISTINCT + 75 * - 5
----
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8579
SELECT 65 * + 30 * - - CAST( + - ( 2 ) AS SIGNED ) col2
----
-3900

skipif mysql # not compatible
query I rowsort label-8579
SELECT 65 * + 30 * - - CAST ( + - ( 2 ) AS INTEGER ) col2
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT COUNT( * ) * - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8580
SELECT COUNT ( * ) * - COUNT ( * ) col2
----
-1

query I rowsort
SELECT DISTINCT - COALESCE ( - - 97, - 61, + 81 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL - 57 - - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - 57 - - COUNT ( * ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8583
SELECT + 56 AS col1, CASE - ( - - 28 ) WHEN - - NULLIF ( + 13, + ( - MIN( 31 ) ) ) THEN 33 ELSE NULL END AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-8583
SELECT + 56 AS col1, CASE - ( - - 28 ) WHEN - - NULLIF ( + 13, + ( - MIN ( 31 ) ) ) THEN 33 ELSE NULL END AS col0
----
56
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8584
SELECT 77 AS col0, - ( 1 ) + - 83 * - COUNT( * ) + 99 + + - 24
----
77
157

skipif mysql # not compatible
query II rowsort label-8584
SELECT 77 AS col0, - ( 1 ) + - 83 * - COUNT ( * ) + 99 + + - 24
----
77
157

query I rowsort
SELECT + 0 * + 94 + - 81
----
-81

query I rowsort
SELECT 85 * - 76 + + + 29 AS col0
----
-6431

query I rowsort
SELECT ALL - ( + 51 ) col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT ALL 71 + - CASE WHEN NOT - 32 BETWEEN ( - 74 + - 60 / 76 / - 82 + ( ( + COUNT( * ) ) ) ) AND ( CAST( + 29 AS SIGNED ) + + NULLIF ( 68, - 64 * + COUNT( * ) ) * - AVG ( 5 ) ) THEN 25 ELSE NULL END * - 19 col0
----
546

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL 71 + - CASE WHEN NOT - 32 BETWEEN ( - 74 + - 60 / 76 / - 82 + ( ( + COUNT ( * ) ) ) ) AND ( CAST ( + 29 AS INTEGER ) + + NULLIF ( 68, - 64 * + COUNT ( * ) ) * - AVG ( 5 ) ) THEN 25 ELSE NULL END * - 19 col0
----
546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8589
SELECT 25 + - 48 * - - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8589
SELECT 25 + - 48 * - - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 82 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT - CASE + 12 WHEN + 22 THEN - COUNT( - 91 ) + - 40 ELSE NULL END * AVG ( DISTINCT + 92 ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT - CASE + 12 WHEN + 22 THEN - COUNT ( - 91 ) + - 40 ELSE NULL END * AVG ( DISTINCT + 92 ) + + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT ALL ( 83 ) + COUNT( ALL + + CAST( - + ( 95 ) AS SIGNED ) ) col2
----
84

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL ( 83 ) + COUNT ( ALL + + CAST ( - + ( 95 ) AS INTEGER ) ) col2
----
84

query I rowsort
SELECT - 87 * - ( + - 57 ) + 87 - - 20
----
-4852

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8594
SELECT CAST( NULL AS DECIMAL ) * + 67 + + - 67 * ( + 70 ) - + MAX( - - 55 ) + 27 + 47 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT CAST ( NULL AS REAL ) * + 67 + + - 67 * ( + 70 ) - + MAX ( - - 55 ) + 27 + 47 * - 21
----
NULL

query I rowsort
SELECT DISTINCT 55 * 1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT + ( + COUNT( * ) ) + 65 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8596
SELECT + ( + COUNT ( * ) ) + 65 AS col1
----
66

query I rowsort
SELECT ALL + 3 * 66 * + - ( + 83 ) AS col2
----
-16434

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT ALL 82 + 86 + - - ( - + 66 ) DIV 28 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL 82 + 86 + - - ( - + 66 ) / 28 AS col0
----
166

query I rowsort
SELECT ALL 26 + - + 48 AS col2
----
-22

query I rowsort
SELECT - 65 + 63 AS col1
----
-2

query I rowsort
SELECT ALL + 31 + 71
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT + MAX( ALL + 70 ) + - 46 + 30 * + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8602
SELECT + MAX ( ALL + 70 ) + - 46 + 30 * + COUNT ( * ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT 11 + SUM( 47 ) - - COUNT( * ) * - 16 * - 23
----
426

skipif mysql # not compatible
query I rowsort label-8603
SELECT 11 + SUM ( 47 ) - - COUNT ( * ) * - 16 * - 23
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL - COUNT( * ) + NULLIF ( - COUNT( * ), + - 40 + - 33 + - + 33 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL - COUNT ( * ) + NULLIF ( - COUNT ( * ), + - 40 + - 33 + - + 33 ) AS col2
----
-2

query II rowsort
SELECT - + 98, - 88 AS col1
----
-98
-88

query I rowsort
SELECT + 36 * - + 76
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT - MIN( + COALESCE ( + 29, 37 ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8607
SELECT - MIN ( + COALESCE ( + 29, 37 ) ) AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8608
SELECT - CAST( NULL AS DECIMAL ) * ( + ( + COUNT( * ) ) ) * + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT - CAST ( NULL AS REAL ) * ( + ( + COUNT ( * ) ) ) * + + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL - MAX( ALL - 53 ) * - - COUNT( * ) * - COALESCE ( + 91, - COALESCE ( 98, + 70 ) + + NULLIF ( 44, + COUNT( * ) / - 28 + 66 ) * 97 ) AS col1
----
-4823

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - MAX ( ALL - 53 ) * - - COUNT ( * ) * - COALESCE ( + 91, - COALESCE ( 98, + 70 ) + + NULLIF ( 44, + COUNT ( * ) / - 28 + 66 ) * 97 ) AS col1
----
-4823

query I rowsort
SELECT DISTINCT + ( + 76 ) - + 62 AS col1
----
14

query I rowsort
SELECT ALL + - 16 - - 24 * 5 + + 68
----
172

query I rowsort
SELECT ALL 61 * - 14
----
-854

query I rowsort
SELECT 84 * + 73
----
6132

onlyif mysql # aggregate syntax: 
query II rowsort label-8614
SELECT ALL MIN( - + 43 ) AS col1, - 55 AS col2
----
-43
-55

skipif mysql # not compatible
query II rowsort label-8614
SELECT ALL MIN ( - + 43 ) AS col1, - 55 AS col2
----
-43
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - SUM( DISTINCT + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-8615
SELECT - SUM ( DISTINCT + 30 )
----
-30

query I rowsort
SELECT 0 + - 50 AS col1
----
-50

query I rowsort
SELECT 10 * 59 * 62 AS col2
----
36580

onlyif mysql # aggregate syntax: 
query II rowsort label-8618
SELECT 0 * + 23, - COUNT( * ) * + 77 col0
----
0
-77

skipif mysql # not compatible
query II rowsort label-8618
SELECT 0 * + 23, - COUNT ( * ) * + 77 col0
----
0
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8619
SELECT DISTINCT + 81 * - - 51, - CASE + + 26 WHEN - 52 + - 2 * + - CASE + + 68 WHEN + 67 + NULLIF ( NULLIF ( COUNT( * ), + 92 ), + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - 54 + 46 THEN 24 * MAX( - 25 ) ELSE + COUNT( * ) * + CAST( - 91 AS DECIMAL ) END * CAST( NULL AS SIGNED ) THEN NULL ELSE + MIN( DISTINCT + 7 ) END col1
----
4131
-7

skipif mysql # not compatible
query II rowsort label-8619
SELECT DISTINCT + 81 * - - 51, - CASE + + 26 WHEN - 52 + - 2 * + - CASE + + 68 WHEN + 67 + NULLIF ( NULLIF ( COUNT ( * ), + 92 ), + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - 54 + 46 THEN 24 * MAX ( - 25 ) ELSE + COUNT ( * ) * + CAST ( - 91 AS REAL ) END * CAST ( NULL AS INTEGER ) THEN NULL ELSE + MIN ( DISTINCT + 7 ) END col1
----
4131
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT DISTINCT + 8 / + + 46 / + + ( - CAST( NULL AS SIGNED ) ) * + 65 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT + 8 / + + 46 / + + ( - CAST ( NULL AS INTEGER ) ) * + 65 + + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT DISTINCT COALESCE ( COUNT( * ), + - NULLIF ( + 85, + - NULLIF ( + 52, COUNT( * ) * + 88 ) + + 52 ), 49 ) * 21 + + 81 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT COALESCE ( COUNT ( * ), + - NULLIF ( + 85, + - NULLIF ( + 52, COUNT ( * ) * + 88 ) + + 52 ), 49 ) * 21 + + 81 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL + COUNT( * ) * + CASE - 86 WHEN + COUNT( * ) - - ( - 35 ) THEN NULL WHEN + 18 THEN NULL ELSE - 27 END + - - 44
----
17

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + COUNT ( * ) * + CASE - 86 WHEN + COUNT ( * ) - - ( - 35 ) THEN NULL WHEN + 18 THEN NULL ELSE - 27 END + - - 44
----
17

query I rowsort
SELECT - 77 * 93
----
-7161

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL - 27 * + + 52 * - - COUNT( * ) col2
----
-1404

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL - 27 * + + 52 * - - COUNT ( * ) col2
----
-1404

query I rowsort
SELECT + 53 * + 15
----
795

query I rowsort
SELECT ALL - NULLIF ( - NULLIF ( - 55, + 36 ), + 87 + - 73 / + 36 * 12 ) * 33 + 40 * 81 + + ( + 20 ) AS col0
----
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT + MIN( + + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-8627
SELECT + MIN ( + + 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8628
SELECT ALL - 61 * - - 85 + + NULLIF ( - 37, 95 ) AS col1, 97 + - + 24 + NULLIF ( - - 52, - NULLIF ( + 47, + CASE - COALESCE ( - NULLIF ( 83, MIN( DISTINCT - 12 ) ), 80 ) WHEN MIN( + 13 ) THEN 88 + 53 * + 74 ELSE + MIN( DISTINCT + 35 ) + COUNT( * ) END * + CAST( - CASE 95 WHEN - 99 THEN NULL ELSE MAX( - 60 ) DIV - 50 END AS SIGNED ) + - 99 ) * 73 ) DIV - 35 AS col1
----
-5222
72

skipif mysql # not compatible
query II rowsort label-8628
SELECT ALL - 61 * - - 85 + + NULLIF ( - 37, 95 ) AS col1, 97 + - + 24 + NULLIF ( - - 52, - NULLIF ( + 47, + CASE - COALESCE ( - NULLIF ( 83, MIN ( DISTINCT - 12 ) ), 80 ) WHEN MIN ( + 13 ) THEN 88 + 53 * + 74 ELSE + MIN ( DISTINCT + 35 ) + COUNT ( * ) END * + CAST ( - CASE 95 WHEN - 99 THEN NULL ELSE MAX ( - 60 ) / - 50 END AS INTEGER ) + - 99 ) * 73 ) / - 35 AS col1
----
-5222
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - 41 * - ( COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-8629
SELECT - 41 * - ( COUNT ( * ) )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT - 13 * - - 12 + - ( + - 93 ) AS col1, 55 - - MIN( + + ( - 35 ) ) AS col0
----
-63
20

skipif mysql # not compatible
query II rowsort label-8630
SELECT - 13 * - - 12 + - ( + - 93 ) AS col1, 55 - - MIN ( + + ( - 35 ) ) AS col0
----
-63
20

query I rowsort
SELECT 91 * 43 + - 34 col2
----
3879

query II rowsort
SELECT DISTINCT - + 52 * - + 58 + - - 4 * + + 18, + 13 AS col0
----
3088
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT ALL + ( + 22 ) + - AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL + ( + 22 ) + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT + - 1 + + ( - - 65 ) * - 15 + MIN( - 4 ) * - + 73 AS col2
----
-684

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT + - 1 + + ( - - 65 ) * - 15 + MIN ( - 4 ) * - + 73 AS col2
----
-684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT ALL - COUNT( DISTINCT + - CAST( + - ( - + 79 ) AS SIGNED ) ) * + + 77
----
-77

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL - COUNT ( DISTINCT + - CAST ( + - ( - + 79 ) AS INTEGER ) ) * + + 77
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8636
SELECT - CAST( - 9 AS SIGNED ) AS col0, + 17 + + - 47
----
9
-30

skipif mysql # not compatible
query II rowsort label-8636
SELECT - CAST ( - 9 AS INTEGER ) AS col0, + 17 + + - 47
----
9
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - COALESCE ( 89, COUNT( * ) * - COUNT( * ) - + - 27, - + 51 ) - - + MAX( ALL + 3 )
----
-86

skipif mysql # not compatible
query I rowsort label-8637
SELECT - COALESCE ( 89, COUNT ( * ) * - COUNT ( * ) - + - 27, - + 51 ) - - + MAX ( ALL + 3 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8638
SELECT + 29 + 29 * 44 + + + COUNT( * ) + - 30 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT + 29 + 29 * 44 + + + COUNT ( * ) + - 30 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT + NULLIF ( COUNT( * ), ( - 0 ) + - - ( - 11 ) * - ( - 62 ) ) + - ( + ( - 23 ) ) * + 84 AS col2
----
1933

skipif mysql # not compatible
query I rowsort label-8639
SELECT + NULLIF ( COUNT ( * ), ( - 0 ) + - - ( - 11 ) * - ( - 62 ) ) + - ( + ( - 23 ) ) * + 84 AS col2
----
1933

query II rowsort
SELECT DISTINCT - 98 * 84 AS col0, 93 AS col0
----
-8232
93

query I rowsort
SELECT ALL - CASE - 54 WHEN + 40 THEN + + 20 + - 76 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8642
SELECT + - ( - 19 ) - 38 DIV 84 DIV + + 64 AS col1, - 53
----
19
-53

skipif mysql # not compatible
query II rowsort label-8642
SELECT + - ( - 19 ) - 38 / 84 / + + 64 AS col1, - 53
----
19
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8643
SELECT + COUNT( DISTINCT - 26 ) - + 80 * 5 + - + 45 + - 61 DIV 63
----
-444

skipif mysql # not compatible
query I rowsort label-8643
SELECT + COUNT ( DISTINCT - 26 ) - + 80 * 5 + - + 45 + - 61 / 63
----
-444

query I rowsort
SELECT + 61 * + 66
----
4026

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT - ( + - SUM( DISTINCT + 70 ) ) col0
----
70

skipif mysql # not compatible
query I rowsort label-8645
SELECT - ( + - SUM ( DISTINCT + 70 ) ) col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT - 43 DIV + NULLIF ( - SUM( - + 30 ), - + 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8646
SELECT - 43 / + NULLIF ( - SUM ( - + 30 ), - + 18 ) AS col1
----
-1

query I rowsort
SELECT ALL 13 + - 79 - - CASE + 84 WHEN + - 14 THEN NULL ELSE 98 + - 70 END + - 93 + 24 + + - 93 * - 48 * - 55
----
-245627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT ALL + ( - 16 ) * 82 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + ( - 16 ) * 82 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL 89 * - COUNT( * ) * + ( - 24 ) * + 2 * - 46 - 85 + - ( - 28 )
----
-196569

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL 89 * - COUNT ( * ) * + ( - 24 ) * + 2 * - 46 - 85 + - ( - 28 )
----
-196569

onlyif mysql # DIV for integer division: 
query I rowsort label-8650
SELECT ALL + 94 DIV - COALESCE ( + 52, 28 ) + + - 71 + 91
----
19

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL + 94 / - COALESCE ( + 52, 28 ) + + - 71 + 91
----
19

query I rowsort
SELECT + ( - - 81 ) * - + 12
----
-972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8652
SELECT - 79 DIV NULLIF ( NULLIF ( - 84, COUNT( * ) + - 18 ), + 34 ) + + + 37 col0
----
37

skipif mysql # not compatible
query I rowsort label-8652
SELECT - 79 / NULLIF ( NULLIF ( - 84, COUNT ( * ) + - 18 ), + 34 ) + + + 37 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL + MIN( DISTINCT - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL + MIN ( DISTINCT - 18 )
----
-18

query I rowsort
SELECT - 53 * - 93
----
4929

query I rowsort
SELECT - 12 + + 46 * + - 38 AS col1
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - 41 + - SUM( 37 ) * + ( + ( + ( - + NULLIF ( - ( - MIN( 90 ) ), + COUNT( - 27 ) ) ) ) )
----
3289

skipif mysql # not compatible
query I rowsort label-8656
SELECT - 41 + - SUM ( 37 ) * + ( + ( + ( - + NULLIF ( - ( - MIN ( 90 ) ), + COUNT ( - 27 ) ) ) ) )
----
3289

onlyif mysql # aggregate syntax: 
query II rowsort label-8657
SELECT - 53 * - - 21 + - CASE COUNT( * ) WHEN + 51 THEN + - 6 + - 62 ELSE + 17 END col0, + 30 * + COUNT( * )
----
-1130
30

skipif mysql # not compatible
query II rowsort label-8657
SELECT - 53 * - - 21 + - CASE COUNT ( * ) WHEN + 51 THEN + - 6 + - 62 ELSE + 17 END col0, + 30 * + COUNT ( * )
----
-1130
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8658
SELECT ALL + - 41 AS col0, - COALESCE ( + 20, COUNT( * ), + 77 ) AS col2
----
-41
-20

skipif mysql # not compatible
query II rowsort label-8658
SELECT ALL + - 41 AS col0, - COALESCE ( + 20, COUNT ( * ), + 77 ) AS col2
----
-41
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8659
SELECT 50 / + AVG ( ALL - NULLIF ( 42, - 68 ) ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT 50 / + AVG ( ALL - NULLIF ( 42, - 68 ) ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( 82, - 35 + + 29 ) * + + 94 * 26 AS col2
----
200408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8661
SELECT DISTINCT + - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT + - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT ALL + 65 * + 73 - - 39 + CASE + ( + 18 ) WHEN + 91 * + 53 - + 52 * - - CAST( + 52 AS SIGNED ) THEN 33 + 2 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL + 65 * + 73 - - 39 + CASE + ( + 18 ) WHEN + 91 * + 53 - + 52 * - - CAST ( + 52 AS INTEGER ) THEN 33 + 2 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8663
SELECT DISTINCT + 54 * + CASE - SUM( + 1 ) WHEN + 71 THEN + 47 * COUNT( * ) WHEN 3 * 39 - 10 + + 79 * + COUNT( * ) THEN NULL ELSE + 35 DIV 51 END
----
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT + 54 * + CASE - SUM ( + 1 ) WHEN + 71 THEN + 47 * COUNT ( * ) WHEN 3 * 39 - 10 + + 79 * + COUNT ( * ) THEN NULL ELSE + 35 / 51 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL + + COUNT( + 8 )
----
1

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL + + COUNT ( + 8 )
----
1

query I rowsort
SELECT - 47 + - 40 + + COALESCE ( 33, - 21 )
----
-54

query I rowsort
SELECT ALL + 67 * - + 49 - + + NULLIF ( ( 16 ), + - 50 + + - 39 )
----
-3299

query I rowsort
SELECT ALL + + 49 * + 39
----
1911

query I rowsort
SELECT 98 * 77 + - 95 * + 54
----
2416

onlyif mysql # aggregate syntax: 
query II rowsort label-8669
SELECT DISTINCT + COUNT( * ), 49 AS col0
----
1
49

skipif mysql # not compatible
query II rowsort label-8669
SELECT DISTINCT + COUNT ( * ), 49 AS col0
----
1
49

query I rowsort
SELECT + 20 * + 39 * + 28 - 60 AS col2
----
21780

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT + 88 * + COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8671
SELECT + 88 * + COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT - - 49 + - 52 * - 40 - + 82 * - NULLIF ( - MAX( ALL 45 ), - + 91 + 68 )
----
-1561

skipif mysql # not compatible
query I rowsort label-8672
SELECT - - 49 + - 52 * - 40 - + 82 * - NULLIF ( - MAX ( ALL 45 ), - + 91 + 68 )
----
-1561

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL 24 * - - COUNT( * ) * - 96 - 63
----
-2367

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL 24 * - - COUNT ( * ) * - 96 - 63
----
-2367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8674
SELECT - + CASE - - 62 WHEN - 93 * + 52 + 76 + - 60 + + CAST( + 53 AS SIGNED ) + - + COUNT( * ) THEN + + 4 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT - + CASE - - 62 WHEN - 93 * + 52 + 76 + - 60 + + CAST ( + 53 AS INTEGER ) + - + COUNT ( * ) THEN + + 4 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), - 61 ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), - 61 ) col1
----
-61

query I rowsort
SELECT ALL - 13 * + 26 AS col0
----
-338

query I rowsort
SELECT + 77 + - - 60
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT - COUNT( * ) * - 17 - CASE WHEN NULL BETWEEN - CASE + + 58 WHEN 56 - 92 - - + 55 + - 40 THEN NULL WHEN 45 THEN 92 WHEN + COUNT( ALL 63 ) * COUNT( * ) THEN + 70 END AND 70 / 78 THEN - 21 + + 45 WHEN NULL NOT BETWEEN - 40 - + 64 AND ( 52 ) THEN NULL ELSE 11 END AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8678
SELECT - COUNT ( * ) * - 17 - CASE WHEN NULL BETWEEN - CASE + + 58 WHEN 56 - 92 - - + 55 + - 40 THEN NULL WHEN 45 THEN 92 WHEN + COUNT ( ALL 63 ) * COUNT ( * ) THEN + 70 END AND 70 / 78 THEN - 21 + + 45 WHEN NULL NOT BETWEEN - 40 - + 64 AND ( 52 ) THEN NULL ELSE 11 END AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8679
SELECT - COUNT( * ) AS col1, + 7 * - 76 + + - 65
----
-1
-597

skipif mysql # not compatible
query II rowsort label-8679
SELECT - COUNT ( * ) AS col1, + 7 * - 76 + + - 65
----
-1
-597

onlyif mysql # aggregate syntax: 
query II rowsort label-8680
SELECT DISTINCT 34, + COUNT( - + 61 ) AS col1
----
34
1

skipif mysql # not compatible
query II rowsort label-8680
SELECT DISTINCT 34, + COUNT ( - + 61 ) AS col1
----
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL COUNT( * ) + 42
----
43

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL COUNT ( * ) + 42
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT DISTINCT SUM( DISTINCT - 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT SUM ( DISTINCT - 6 ) AS col1
----
-6

query II rowsort
SELECT + 66 * - 6 * + - 43 * - 11, 99 AS col1
----
-187308
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL COUNT( DISTINCT - 56 ) + ( - COUNT( * ) ) + + + 28 * - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL COUNT ( DISTINCT - 56 ) + ( - COUNT ( * ) ) + + + 28 * - COUNT ( * )
----
-28

query II rowsort
SELECT DISTINCT 49 AS col1, + 74 AS col1
----
49
74

onlyif mysql # aggregate syntax: 
query III rowsort label-8686
SELECT ALL 54 AS col0, 8 AS col1, - COUNT( * ) AS col0
----
54
8
-1

skipif mysql # not compatible
query III rowsort label-8686
SELECT ALL 54 AS col0, 8 AS col1, - COUNT ( * ) AS col0
----
54
8
-1

query I rowsort
SELECT 93 + + 73
----
166

query II rowsort
SELECT ALL 9 AS col0, 68
----
9
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT 35 + ( - COUNT( + + 65 ) ) * 26 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8689
SELECT 35 + ( - COUNT ( + + 65 ) ) * 26 AS col0
----
9

query I rowsort
SELECT DISTINCT 60 + 74 + - + 96
----
38

query I rowsort
SELECT ALL 94 + - - 40 AS col0
----
134

query I rowsort
SELECT 18 - - 33
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT 54 * CASE - COUNT( * ) WHEN COUNT( * ) / - 77 THEN 63 WHEN - COALESCE ( + COUNT( * ), + 24, - - 11 ) * 42 * - 99 THEN - 42 - - 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT 54 * CASE - COUNT ( * ) WHEN COUNT ( * ) / - 77 THEN 63 WHEN - COALESCE ( + COUNT ( * ), + 24, - - 11 ) * 42 * - 99 THEN - 42 - - 89 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT - 49 * - - 76 - + COUNT( * ) AS col2
----
-3725

skipif mysql # not compatible
query I rowsort label-8694
SELECT - 49 * - - 76 - + COUNT ( * ) AS col2
----
-3725

onlyif mysql # aggregate syntax: 
query II rowsort label-8695
SELECT 87 AS col0, + MIN( DISTINCT + 26 ) + - 43 AS col2
----
87
-17

skipif mysql # not compatible
query II rowsort label-8695
SELECT 87 AS col0, + MIN ( DISTINCT + 26 ) + - 43 AS col2
----
87
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8696
SELECT ALL - - COALESCE ( - COUNT( * ), 90 * - + CASE + + 1 WHEN - 99 THEN + ( + - ( + COALESCE ( - - 0, - 87 + 86 ) ) ) WHEN - 27 + COUNT( * ) THEN NULL ELSE ( 5 ) + COALESCE ( + 84, 91 * CAST( + COUNT( * ) AS SIGNED ), 64 ) * - COALESCE ( ( - 12 ), - 46 + + 3 ) END + - 9 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - - COALESCE ( - COUNT ( * ), 90 * - + CASE + + 1 WHEN - 99 THEN + ( + - ( + COALESCE ( - - 0, - 87 + 86 ) ) ) WHEN - 27 + COUNT ( * ) THEN NULL ELSE ( 5 ) + COALESCE ( + 84, 91 * CAST ( + COUNT ( * ) AS INTEGER ), 64 ) * - COALESCE ( ( - 12 ), - 46 + + 3 ) END + - 9 ) AS col1
----
-1

query I rowsort
SELECT ALL + + 14 - - 55 * - 12 + 1 - + + 8 col1
----
-653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT CAST( NULL AS SIGNED ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT CAST ( NULL AS INTEGER ) * - 31
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8699
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * 88
----
88

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * 88
----
88

query I rowsort
SELECT 86 - 16
----
70

query I rowsort
SELECT DISTINCT - NULLIF ( + 81, + 97 )
----
-81

query I rowsort
SELECT ALL - + NULLIF ( 69, 37 ) AS col2
----
-69

query I rowsort
SELECT + + ( + 91 ) col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8704
SELECT 19 * + ( CASE ( - AVG ( ALL 47 ) ) WHEN 96 + 12 - + 9 - + COUNT( * ) * - + COUNT( * ) THEN + CASE ( 57 ) WHEN + 78 THEN CASE - CASE - COUNT( * ) WHEN + NULLIF ( + 92, 31 * + COUNT( * ) ) + + MIN( ALL + 35 - + 47 ) THEN + CAST( NULLIF ( + 3, - 53 + - 32 ) AS SIGNED ) END WHEN 82 THEN + 5 ELSE NULL END + CAST( 53 AS SIGNED ) ELSE 36 END * 2 + 31 ELSE - 67 * 10 + 27 * ( MIN( 23 ) ) END )
----
-931

skipif mysql # not compatible
query I rowsort label-8704
SELECT 19 * + ( CASE ( - AVG ( ALL 47 ) ) WHEN 96 + 12 - + 9 - + COUNT ( * ) * - + COUNT ( * ) THEN + CASE ( 57 ) WHEN + 78 THEN CASE - CASE - COUNT ( * ) WHEN + NULLIF ( + 92, 31 * + COUNT ( * ) ) + + MIN ( ALL + 35 - + 47 ) THEN + CAST ( NULLIF ( + 3, - 53 + - 32 ) AS INTEGER ) END WHEN 82 THEN + 5 ELSE NULL END + CAST ( 53 AS INTEGER ) ELSE 36 END * 2 + 31 ELSE - 67 * 10 + 27 * ( MIN ( 23 ) ) END )
----
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT - 58 * - - COUNT( * ) * + MIN( - 81 ) * - 31 + + + 17 AS col0
----
-145621

skipif mysql # not compatible
query I rowsort label-8705
SELECT - 58 * - - COUNT ( * ) * + MIN ( - 81 ) * - 31 + + + 17 AS col0
----
-145621

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT DISTINCT - ( - ( + COUNT( * ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT - ( - ( + COUNT ( * ) ) ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT ALL - NULLIF ( - 69, + - 9 * - + CAST( NULL AS SIGNED ) ) * + 19 col0
----
1311

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL - NULLIF ( - 69, + - 9 * - + CAST ( NULL AS INTEGER ) ) * + 19 col0
----
1311

query I rowsort
SELECT + 25 * 98 * - + 82
----
-200900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8709
SELECT - COALESCE ( + + 3, - 7 ) - - - COUNT( * ) + + COUNT( * ) DIV SUM( ALL + 29 )
----
-4

skipif mysql # not compatible
query I rowsort label-8709
SELECT - COALESCE ( + + 3, - 7 ) - - - COUNT ( * ) + + COUNT ( * ) / SUM ( ALL + 29 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8710
SELECT + - CAST( + - 15 AS SIGNED ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8710
SELECT + - CAST ( + - 15 AS INTEGER ) AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8711
SELECT COUNT( * ) DIV + - 28 * ( + 83 )
----
0

skipif mysql # not compatible
query I rowsort label-8711
SELECT COUNT ( * ) / + - 28 * ( + 83 )
----
0

query I rowsort
SELECT 65 * - 46 * + - 9
----
26910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8713
SELECT 68 + - CAST( NULL AS SIGNED ) + - COUNT( ALL + + 70 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT 68 + - CAST ( NULL AS INTEGER ) + - COUNT ( ALL + + 70 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL + 57 + MIN( + 45 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + 57 + MIN ( + 45 ) AS col1
----
102

query II rowsort
SELECT - - 14, 63 col0
----
14
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8716
SELECT ALL - - COALESCE ( + - ( + 86 ), - 44, + 74 ) + - 53 col0, CAST( + - 79 AS SIGNED ) * 95 * - 31 * - 0 DIV 94 AS col1
----
-139
0

skipif mysql # not compatible
query II rowsort label-8716
SELECT ALL - - COALESCE ( + - ( + 86 ), - 44, + 74 ) + - 53 col0, CAST ( + - 79 AS INTEGER ) * 95 * - 31 * - 0 / 94 AS col1
----
-139
0

query I rowsort
SELECT 84 + + 62
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-8718
SELECT DISTINCT - 85 + - 57 AS col1, - COUNT( * ) * + 77 col1
----
-142
-77

skipif mysql # not compatible
query II rowsort label-8718
SELECT DISTINCT - 85 + - 57 AS col1, - COUNT ( * ) * + 77 col1
----
-142
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT 3 + - - 9 AS col0, - SUM( ALL - + 26 ) AS col1
----
12
26

skipif mysql # not compatible
query II rowsort label-8719
SELECT 3 + - - 9 AS col0, - SUM ( ALL - + 26 ) AS col1
----
12
26

query II rowsort
SELECT DISTINCT + 13 + - - 49 + + + 85, + 43 * + 63 AS col1
----
147
2709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8721
SELECT DISTINCT MAX( - 8 ) + - NULLIF ( SUM( + - COALESCE ( 47, + NULLIF ( - 84, + CAST( + NULLIF ( - 31, 3 ) AS SIGNED ) ) * 42 ) ), ( NULLIF ( - ( 16 ), + 6 ) ) ) + 66
----
105

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT MAX ( - 8 ) + - NULLIF ( SUM ( + - COALESCE ( 47, + NULLIF ( - 84, + CAST ( + NULLIF ( - 31, 3 ) AS INTEGER ) ) * 42 ) ), ( NULLIF ( - ( 16 ), + 6 ) ) ) + 66
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8722
SELECT ALL CAST( + 60 AS SIGNED ) + - 70 * - COALESCE ( - 84, + + COUNT( * ) ) + + 96 + + 52 * + 19 * + ( 49 ) AS col2
----
42688

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL CAST ( + 60 AS INTEGER ) + - 70 * - COALESCE ( - 84, + + COUNT ( * ) ) + + 96 + + 52 * + 19 * + ( 49 ) AS col2
----
42688

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT 9 * SUM( ALL - + 37 )
----
-333

skipif mysql # not compatible
query I rowsort label-8723
SELECT 9 * SUM ( ALL - + 37 )
----
-333

query I rowsort
SELECT COALESCE ( - 26, 29 ) + + + 83
----
57

query I rowsort
SELECT 18 + + + 22 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8726
SELECT 28 + - - COUNT( * ) + + 30 * + - ( - CASE + 72 WHEN - 94 THEN + - 18 * - + 15 / + ( + 54 ) + - CAST( 81 AS SIGNED ) + COALESCE ( + 29, 15 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT 28 + - - COUNT ( * ) + + 30 * + - ( - CASE + 72 WHEN - 94 THEN + - 18 * - + 15 / + ( + 54 ) + - CAST ( 81 AS INTEGER ) + COALESCE ( + 29, 15 ) END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 50 * + - 79 AS col2
----
3950

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT 53 * MIN( - 65 ) AS col1
----
-3445

skipif mysql # not compatible
query I rowsort label-8728
SELECT 53 * MIN ( - 65 ) AS col1
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT + + NULLIF ( + - CASE - + 8 WHEN 68 - - 43 * + + MIN( ALL - 78 ) THEN NULL WHEN - + COUNT( * ) * + 57 * 85 THEN + 64 + + 50 ELSE NULL END, NULLIF ( - 74, + 31 * 55 ) + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT + + NULLIF ( + - CASE - + 8 WHEN 68 - - 43 * + + MIN ( ALL - 78 ) THEN NULL WHEN - + COUNT ( * ) * + 57 * 85 THEN + 64 + + 50 ELSE NULL END, NULLIF ( - 74, + 31 * 55 ) + 81 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8730
SELECT + - ( 10 ) DIV + + COUNT( * ) + + - 61
----
-71

skipif mysql # not compatible
query I rowsort label-8730
SELECT + - ( 10 ) / + + COUNT ( * ) + + - 61
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT ( ( + 74 ) ) * + ( + + 93 ) * - COUNT( * ) col2
----
-6882

skipif mysql # not compatible
query I rowsort label-8731
SELECT ( ( + 74 ) ) * + ( + + 93 ) * - COUNT ( * ) col2
----
-6882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8732
SELECT DISTINCT - CASE + 54 WHEN - 78 THEN + - 94 ELSE + COUNT( - 11 ) END DIV 96 * 61
----
0

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT - CASE + 54 WHEN - 78 THEN + - 94 ELSE + COUNT ( - 11 ) END / 96 * 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL - - MIN( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - - MIN ( DISTINCT - 75 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT + CAST( NULL AS SIGNED ) + 27 * 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT + CAST ( NULL AS INTEGER ) + 27 * 49 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 10 + - ( + 77 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - ( - - COALESCE ( + ( + 91 ), 37, - + NULLIF ( 7, + COUNT( * ) * - ( + 43 ) ) * + + 2 - + 6 * - COALESCE ( COUNT( * ), 27 * - 72 ) ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8736
SELECT - ( - - COALESCE ( + ( + 91 ), 37, - + NULLIF ( 7, + COUNT ( * ) * - ( + 43 ) ) * + + 2 - + 6 * - COALESCE ( COUNT ( * ), 27 * - 72 ) ) ) AS col2
----
-91

query I rowsort
SELECT + 72 + + + 18 - - 4
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8738
SELECT DISTINCT - + 27 + - 37 DIV - COALESCE ( - - 61, - - 71 ) + - NULLIF ( + 14, - 95 )
----
-41

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT - + 27 + - 37 / - COALESCE ( - - 61, - - 71 ) + - NULLIF ( + 14, - 95 )
----
-41

query I rowsort
SELECT ALL - - 2 + - 25 AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8740
SELECT 59 * 52, 78 * CASE - COUNT( 92 ) WHEN - - 88 DIV + + COUNT( * ) THEN NULL WHEN + 23 * - + MIN( 73 ) THEN - 29 DIV - 6 ELSE 94 END AS col2
----
3068
7332

skipif mysql # not compatible
query II rowsort label-8740
SELECT 59 * 52, 78 * CASE - COUNT ( 92 ) WHEN - - 88 / + + COUNT ( * ) THEN NULL WHEN + 23 * - + MIN ( 73 ) THEN - 29 / - 6 ELSE 94 END AS col2
----
3068
7332

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL SUM( ALL 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL SUM ( ALL 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT - ( + - 43 ) * - COUNT( * ) * + 82 AS col2
----
-3526

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT - ( + - 43 ) * - COUNT ( * ) * + 82 AS col2
----
-3526

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT - 37 + - - SUM( 58 ) - - 23 - + - 5 * 67 AS col0
----
379

skipif mysql # not compatible
query I rowsort label-8743
SELECT - 37 + - - SUM ( 58 ) - - 23 - + - 5 * 67 AS col0
----
379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8744
SELECT - CASE + 28 WHEN - - COUNT( + 42 ) THEN - - 22 WHEN - + CAST( NULL AS SIGNED ) THEN + 55 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT - CASE + 28 WHEN - - COUNT ( + 42 ) THEN - - 22 WHEN - + CAST ( NULL AS INTEGER ) THEN + 55 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL + 36 + + SUM( - + 11 ) * + + 58 AS col0
----
-602

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + 36 + + SUM ( - + 11 ) * + + 58 AS col0
----
-602

query I rowsort
SELECT - 25 * 97 AS col1
----
-2425

query II rowsort
SELECT 42, 34 AS col2
----
42
34

query I rowsort
SELECT - 1 * 98 AS col0
----
-98

query I rowsort
SELECT ALL CASE WHEN NOT ( 29 ) = 23 THEN + - 62 WHEN 71 <= 88 THEN + 52 ELSE - + 93 * + + 74 * + 95 + + 35 END AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - 95 * - COUNT( DISTINCT 52 )
----
95

skipif mysql # not compatible
query I rowsort label-8750
SELECT - 95 * - COUNT ( DISTINCT 52 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT DISTINCT + 91 DIV - 50 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT + 91 / - 50 AS col2
----
-1

query I rowsort
SELECT ALL - 37 - - 0 AS col0
----
-37

query I rowsort
SELECT - 71 * - 79 AS col0
----
5609

onlyif mysql # aggregate syntax: 
query II rowsort label-8754
SELECT ALL COUNT( * ) AS col1, 45
----
1
45

skipif mysql # not compatible
query II rowsort label-8754
SELECT ALL COUNT ( * ) AS col1, 45
----
1
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8755
SELECT 42 AS col1, + COUNT( 41 ) col0
----
42
1

skipif mysql # not compatible
query II rowsort label-8755
SELECT 42 AS col1, + COUNT ( 41 ) col0
----
42
1

query I rowsort
SELECT - 17 + + 36
----
19

query I rowsort
SELECT - 35 * 48
----
-1680

query I rowsort
SELECT + + 97 * 33 AS col0
----
3201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT ALL - + CAST( NULL AS SIGNED ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT - + 53 - - - ( - - COUNT( * ) ) * - + 80 + 53 * + CAST( NULL AS SIGNED ) - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT - + 53 - - - ( - - COUNT ( * ) ) * - + 80 + 53 * + CAST ( NULL AS INTEGER ) - 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT + COUNT( * ) * COUNT( * ) * + 75 * - 45
----
-3375

skipif mysql # not compatible
query I rowsort label-8761
SELECT + COUNT ( * ) * COUNT ( * ) * + 75 * - 45
----
-3375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8762
SELECT ALL CAST( NULL AS SIGNED ) * - - COALESCE ( + + 15, 85, 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL CAST ( NULL AS INTEGER ) * - - COALESCE ( + + 15, 85, 41 ) AS col0
----
NULL

query II rowsort
SELECT - 80 * - NULLIF ( - 80, 72 ) AS col2, 50 - - + 85 AS col1
----
-6400
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL + - SUM( ALL + 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL + - SUM ( ALL + 79 ) AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8765
SELECT ALL + CASE + - 2 WHEN 27 + CAST( NULL AS SIGNED ) + + COUNT( * ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + CASE + - 2 WHEN 27 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8766
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8767
SELECT + - 70 * SUM( - 55 ) * SUM( - + 55 ) + - - COUNT( * ) + CASE + - ( 50 ) WHEN - CAST( NULL AS DECIMAL ) THEN - 96 * + 42 + + 87 - COUNT( * ) ELSE NULL END * - 51 + + AVG ( + 84 ) * + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT + - 70 * SUM ( - 55 ) * SUM ( - + 55 ) + - - COUNT ( * ) + CASE + - ( 50 ) WHEN - CAST ( NULL AS REAL ) THEN - 96 * + 42 + + 87 - COUNT ( * ) ELSE NULL END * - 51 + + AVG ( + 84 ) * + 64 AS col1
----
NULL

query II rowsort
SELECT - 77 AS col1, 74
----
-77
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT + - 20 DIV - 69 * + - 56 DIV + 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8769
SELECT + - 20 / - 69 * + - 56 / + 7 AS col0
----
0

query I rowsort
SELECT + ( - NULLIF ( + - 25, - 94 ) )
----
25

query II rowsort
SELECT + - 76 + 35 * 30 AS col0, ( 76 ) AS col1
----
974
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL COUNT( * ) * + + 10 * - + 35 + - 69 AS col0
----
-419

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL COUNT ( * ) * + + 10 * - + 35 + - 69 AS col0
----
-419

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT + 9 DIV + - 96 - - + 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8773
SELECT + 9 / + - 96 - - + 52 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT ALL + 38 * + + ( + CAST( NULL AS SIGNED ) ) + - MIN( - 5 ) + + - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL + 38 * + + ( + CAST ( NULL AS INTEGER ) ) + - MIN ( - 5 ) + + - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8775
SELECT DISTINCT + 87 col0, COUNT( * ) DIV + 3 + - 36
----
87
-36

skipif mysql # not compatible
query II rowsort label-8775
SELECT DISTINCT + 87 col0, COUNT ( * ) / + 3 + - 36
----
87
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-8776
SELECT + 85 - COUNT( * ), + 93 AS col2
----
84
93

skipif mysql # not compatible
query II rowsort label-8776
SELECT + 85 - COUNT ( * ), + 93 AS col2
----
84
93

query I rowsort
SELECT + ( - + ( - 48 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + COUNT( * ) + 61 + - 52 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8778
SELECT + COUNT ( * ) + 61 + - 52 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL - 57 * 22 - - + COUNT( * ) * - + ( 7 ) * + SUM( 63 ) AS col1
----
-1695

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - 57 * 22 - - + COUNT ( * ) * - + ( 7 ) * + SUM ( 63 ) AS col1
----
-1695

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8780
SELECT + 49 * - 23 DIV COUNT( * ) AS col1
----
-1127

skipif mysql # not compatible
query I rowsort label-8780
SELECT + 49 * - 23 / COUNT ( * ) AS col1
----
-1127

query I rowsort
SELECT + 25 + - 75
----
-50

query I rowsort
SELECT 4 * + 5 + - - 19 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8783
SELECT - 7 - - 10 + + ( - + 38 ) AS col1, - COUNT( * ) + + COUNT( * )
----
-35
0

skipif mysql # not compatible
query II rowsort label-8783
SELECT - 7 - - 10 + + ( - + 38 ) AS col1, - COUNT ( * ) + + COUNT ( * )
----
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL COUNT( - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL COUNT ( - 61 )
----
1

query I rowsort
SELECT ALL COALESCE ( + + 88, - - 72 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8786
SELECT + 77 + - CASE + CAST( + 67 AS SIGNED ) WHEN - COALESCE ( - MAX( - + 31 ), - SUM( + + 64 ), - 28 * - + 38 ) THEN + MAX( ALL 61 ) WHEN - 95 THEN + COUNT( * ) * + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT + 77 + - CASE + CAST ( + 67 AS INTEGER ) WHEN - COALESCE ( - MAX ( - + 31 ), - SUM ( + + 64 ), - 28 * - + 38 ) THEN + MAX ( ALL 61 ) WHEN - 95 THEN + COUNT ( * ) * + 29 END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + ( - 68 ), + + 3 )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8788
SELECT ALL + 5 * + - 54 DIV + COUNT( * )
----
-270

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL + 5 * + - 54 / + COUNT ( * )
----
-270

query I rowsort
SELECT - ( - + 21 ) AS col2
----
21

query I rowsort
SELECT DISTINCT COALESCE ( + + 0, 11 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8791
SELECT + 35 DIV - + 96, 86 AS col2
----
0
86

skipif mysql # not compatible
query II rowsort label-8791
SELECT + 35 / - + 96, 86 AS col2
----
0
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ALL - 42 * - COALESCE ( + + 87, - - 2, - ( - - COUNT( * ) ) * 32 ) * - 39
----
-142506

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL - 42 * - COALESCE ( + + 87, - - 2, - ( - - COUNT ( * ) ) * 32 ) * - 39
----
-142506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8793
SELECT + 11 + - - CAST( COUNT( * ) AS SIGNED ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8793
SELECT + 11 + - - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
12

query I rowsort
SELECT - 17 * - + COALESCE ( - - 12, 11 * - - 96 * 23 ) AS col2
----
204

query II rowsort
SELECT - 55 + 4, 62 AS col2
----
-51
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8796
SELECT - + 65 DIV + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8796
SELECT - + 65 / + 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - - COUNT( ALL - 95 ) * - - 51
----
51

skipif mysql # not compatible
query I rowsort label-8797
SELECT - - COUNT ( ALL - 95 ) * - - 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT - 79 + 27 * - 86 + + COUNT( * ) - - - 96
----
-2496

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT - 79 + 27 * - 86 + + COUNT ( * ) - - - 96
----
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT ALL + 21 DIV 65 * + + 13
----
0

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL + 21 / 65 * + + 13
----
0

query I rowsort
SELECT DISTINCT + - COALESCE ( + 76, - + 25, NULLIF ( - + 43, 15 * + 7 + + - 57 + + 2 ) + + + 41 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT 41 * 13 + 31 - COALESCE ( + + ( + ( + COUNT( * ) ) ), + + 8 )
----
563

skipif mysql # not compatible
query I rowsort label-8801
SELECT 41 * 13 + 31 - COALESCE ( + + ( + ( + COUNT ( * ) ) ), + + 8 )
----
563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8802
SELECT - 44 * - COALESCE ( + NULLIF ( CAST( NULL AS SIGNED ), - 43 ), 53 * - - 57 + - 9 * CASE 32 WHEN 99 - + 20 + - CASE + 30 WHEN ( - 81 ) THEN - ( - COUNT( * ) ) + + 83 * 42 END * ( + 11 * - 48 - COUNT( * ) ) * - 11 THEN - 34 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT - 44 * - COALESCE ( + NULLIF ( CAST ( NULL AS INTEGER ), - 43 ), 53 * - - 57 + - 9 * CASE 32 WHEN 99 - + 20 + - CASE + 30 WHEN ( - 81 ) THEN - ( - COUNT ( * ) ) + + 83 * 42 END * ( + 11 * - 48 - COUNT ( * ) ) * - 11 THEN - 34 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( 1 ) AS col2
----
1

query II rowsort
SELECT - 67 + - - 10 * + 68 + - - 13 + + 37, 59 + - - 85 - - 45 col2
----
663
189

query I rowsort
SELECT + + 49 * + - 99 + + ( - + 7 ) col0
----
-4858

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT - - 63 DIV + + 98 + - 31 * 69 + 58 * + 10 * + - 49 * + 84
----
-2389419

skipif mysql # not compatible
query I rowsort label-8806
SELECT - - 63 / + + 98 + - 31 * 69 + 58 * + 10 * + - 49 * + 84
----
-2389419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8807
SELECT - 16 * CASE - - ( - 95 ) WHEN 78 + CAST( + MAX( DISTINCT - 2 ) AS SIGNED ) THEN NULL WHEN - 81 - + - 63 * + 62 * + MIN( ALL - 38 ) * CAST( NULL AS SIGNED ) THEN - ( + 53 ) DIV 6 ELSE - 18 + SUM( ALL - ( + 89 ) + 40 ) * - 42 END + - 34
----
-32674

skipif mysql # not compatible
query I rowsort label-8807
SELECT - 16 * CASE - - ( - 95 ) WHEN 78 + CAST ( + MAX ( DISTINCT - 2 ) AS INTEGER ) THEN NULL WHEN - 81 - + - 63 * + 62 * + MIN ( ALL - 38 ) * CAST ( NULL AS INTEGER ) THEN - ( + 53 ) / 6 ELSE - 18 + SUM ( ALL - ( + 89 ) + 40 ) * - 42 END + - 34
----
-32674

query I rowsort
SELECT ALL + 36 - + 47 col2
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-8809
SELECT 9 * + MAX( 2 ) * - 70 + + + 13 AS col2, 34
----
-1247
34

skipif mysql # not compatible
query II rowsort label-8809
SELECT 9 * + MAX ( 2 ) * - 70 + + + 13 AS col2, 34
----
-1247
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT DISTINCT ( + 45 ) - 10 * ( + COUNT( * ) ) + - 93
----
-58

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT ( + 45 ) - 10 * ( + COUNT ( * ) ) + - 93
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT COUNT( * ) * + CASE + 75 WHEN - 41 + + 99 - ( 32 ) / + + 61 THEN NULL ELSE + - 25 END
----
-25

skipif mysql # not compatible
query I rowsort label-8811
SELECT COUNT ( * ) * + CASE + 75 WHEN - 41 + + 99 - ( 32 ) / + + 61 THEN NULL ELSE + - 25 END
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT CAST( NULL AS SIGNED ) * + 34 / - AVG ( - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT CAST ( NULL AS INTEGER ) * + 34 / - AVG ( - 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT COUNT( * ) * - - 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8813
SELECT COUNT ( * ) * - - 32 AS col2
----
32

query I rowsort
SELECT 38 * - 45
----
-1710

onlyif mysql # DIV for integer division: 
query I rowsort label-8815
SELECT 44 DIV - 13
----
-3

skipif mysql # not compatible
query I rowsort label-8815
SELECT 44 / - 13
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT COUNT( * ) * + 51 * + - 46 AS col2
----
-2346

skipif mysql # not compatible
query I rowsort label-8816
SELECT COUNT ( * ) * + 51 * + - 46 AS col2
----
-2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8817
SELECT ALL NULLIF ( - 38, ( + CAST( - + 53 AS SIGNED ) ) / - 31 ) * - - ( 36 ) AS col0, + SUM( ALL - + 78 ) col0
----
-1368
-78

skipif mysql # not compatible
query II rowsort label-8817
SELECT ALL NULLIF ( - 38, ( + CAST ( - + 53 AS INTEGER ) ) / - 31 ) * - - ( 36 ) AS col0, + SUM ( ALL - + 78 ) col0
----
-1368
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT COUNT( * ) * - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-8818
SELECT COUNT ( * ) * - 92 AS col2
----
-92

query I rowsort
SELECT DISTINCT 88 * 38
----
3344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8820
SELECT COUNT( * ) * + COALESCE ( ( + 55 ), + 2 * - COALESCE ( CAST( NULL AS SIGNED ), - 95 ) * 98 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8820
SELECT COUNT ( * ) * + COALESCE ( ( + 55 ), + 2 * - COALESCE ( CAST ( NULL AS INTEGER ), - 95 ) * 98 ) AS col0
----
55

query I rowsort
SELECT ALL 82 + + 48
----
130

query II rowsort
SELECT ALL 26 col1, - 50 * 96
----
26
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL 83 + COUNT( * ) * - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL 83 + COUNT ( * ) * - COUNT ( * )
----
82

query I rowsort
SELECT 86 * - + 48 + + 87 + + + 94 AS col2
----
-3947

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT ALL + + 63 DIV + 18 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + + 63 / + 18 AS col2
----
3

query I rowsort
SELECT - - ( + + 37 ) AS col0
----
37

query II rowsort
SELECT - + 63 AS col0, + 56 AS col2
----
-63
56

query I rowsort
SELECT DISTINCT + 23 + 26 AS col0
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-8829
SELECT ALL 72 + - 6 DIV + - 32 AS col0, - 96 AS col2
----
72
-96

skipif mysql # not compatible
query II rowsort label-8829
SELECT ALL 72 + - 6 / + - 32 AS col0, - 96 AS col2
----
72
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT + 31 * 63 - + COUNT( * ) * + 59
----
1894

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT + 31 * 63 - + COUNT ( * ) * + 59
----
1894

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT 19 DIV + - 59 + + 51 + - ( 64 ) + - 27 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-8831
SELECT 19 / + - 59 + + 51 + - ( 64 ) + - 27 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL - MAX( - + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - MAX ( - + 46 )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8833
SELECT ALL - 49 DIV - - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - 49 / - - COUNT ( * )
----
-49

query I rowsort
SELECT ALL + - 8 - - 78
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8835
SELECT 88 * - COUNT( * ) * - COUNT( * ) + - ( 13 ) AS col0, + CAST( - 55 AS SIGNED )
----
75
-55

skipif mysql # not compatible
query II rowsort label-8835
SELECT 88 * - COUNT ( * ) * - COUNT ( * ) + - ( 13 ) AS col0, + CAST ( - 55 AS INTEGER )
----
75
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT DISTINCT + 46 - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT + 46 - - COUNT ( * )
----
47

query II rowsort
SELECT 43 AS col2, - 98
----
43
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8838
SELECT - 74 * 46 DIV 84 DIV + 63 - + COALESCE ( + 69, COUNT( * ), + 95 )
----
-69

skipif mysql # not compatible
query I rowsort label-8838
SELECT - 74 * 46 / 84 / + 63 - + COALESCE ( + 69, COUNT ( * ), + 95 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL - COUNT( DISTINCT + 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL - COUNT ( DISTINCT + 94 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL - CASE + 81 WHEN - + 27 THEN + + 34 * + + 91 + 18 + - - NULLIF ( ( - 97 ), + + SUM( + 48 ) + + + 24 ) * + + SUM( DISTINCT 99 ) * - 18 ELSE NULLIF ( - 95, 8 ) * + COUNT( * ) + 49 END
----
46

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL - CASE + 81 WHEN - + 27 THEN + + 34 * + + 91 + 18 + - - NULLIF ( ( - 97 ), + + SUM ( + 48 ) + + + 24 ) * + + SUM ( DISTINCT 99 ) * - 18 ELSE NULLIF ( - 95, 8 ) * + COUNT ( * ) + 49 END
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8841
SELECT 28 AS col2, + COUNT( * ) * + 47 * ( + CAST( - 23 AS SIGNED ) ) AS col2
----
28
-1081

skipif mysql # not compatible
query II rowsort label-8841
SELECT 28 AS col2, + COUNT ( * ) * + 47 * ( + CAST ( - 23 AS INTEGER ) ) AS col2
----
28
-1081

query II rowsort
SELECT DISTINCT - 12, + 42 * 43 + + - 26 + 95 + - 85 AS col0
----
-12
1790

query I rowsort
SELECT 28 + 54 AS col2
----
82

query II rowsort
SELECT 28 AS col0, + 62
----
28
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT 37 DIV + 49 col0
----
0

skipif mysql # not compatible
query I rowsort label-8845
SELECT 37 / + 49 col0
----
0

query I rowsort
SELECT 73 * 26 * - 39 * - - 97 AS col0
----
-7180134

query I rowsort
SELECT 44 + + 62 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT - COUNT( DISTINCT + 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-8848
SELECT - COUNT ( DISTINCT + 29 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8849
SELECT ALL 82 + - 58 + - SUM( DISTINCT + 51 ) AS col2, 77 + + - 67
----
-27
10

skipif mysql # not compatible
query II rowsort label-8849
SELECT ALL 82 + - 58 + - SUM ( DISTINCT + 51 ) AS col2, 77 + + - 67
----
-27
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + ( + ( + - 96 ) ) * - 96 + NULLIF ( + COUNT( * ), - COALESCE ( + + CASE - - 15 WHEN COUNT( * ) THEN NULL WHEN MIN( + 84 ) THEN + 29 * + 45 ELSE NULL END, - 54 ) + 71 ) + - 81 * 75 AS col2
----
3142

skipif mysql # not compatible
query I rowsort label-8850
SELECT + ( + ( + - 96 ) ) * - 96 + NULLIF ( + COUNT ( * ), - COALESCE ( + + CASE - - 15 WHEN COUNT ( * ) THEN NULL WHEN MIN ( + 84 ) THEN + 29 * + 45 ELSE NULL END, - 54 ) + 71 ) + - 81 * 75 AS col2
----
3142

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL COUNT( ALL - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL COUNT ( ALL - 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8852
SELECT DISTINCT COUNT( * ) AS col1, - 18
----
1
-18

skipif mysql # not compatible
query II rowsort label-8852
SELECT DISTINCT COUNT ( * ) AS col1, - 18
----
1
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT DISTINCT 17 + - - 26 + + ( CAST( NULL AS SIGNED ) ) + + - 47 * - 36 * - 60 / - 42 * - - 23 + + + 94 + + 11 + 68 * 8 - + + 14 * + CAST( NULL AS SIGNED ) - 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT 17 + - - 26 + + ( CAST ( NULL AS INTEGER ) ) + + - 47 * - 36 * - 60 / - 42 * - - 23 + + + 94 + + 11 + 68 * 8 - + + 14 * + CAST ( NULL AS INTEGER ) - 62 col0
----
NULL

query I rowsort
SELECT ALL - 70 + - 90
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL + - 44 + + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL + - 44 + + COUNT ( * )
----
-43

query II rowsort
SELECT + 72, - 50 + - 31 * 24 col1
----
72
-794

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT - + COUNT( * ) AS col2, + 36
----
-1
36

skipif mysql # not compatible
query II rowsort label-8857
SELECT - + COUNT ( * ) AS col2, + 36
----
-1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT COUNT( * ) + - + 24 - - 71 col2
----
48

skipif mysql # not compatible
query I rowsort label-8858
SELECT COUNT ( * ) + - + 24 - - 71 col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-8859
SELECT - 6 AS col0, - COUNT( ALL + 60 )
----
-6
-1

skipif mysql # not compatible
query II rowsort label-8859
SELECT - 6 AS col0, - COUNT ( ALL + 60 )
----
-6
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT - + MIN( 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8860
SELECT - + MIN ( 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ALL + CASE AVG ( + ( - 61 ) ) WHEN + 99 - + 35 THEN - COUNT( * ) ELSE - 93 END + - 95 - + 29 + COUNT( * ) * 67 * - COUNT( * ) + - 21 + COUNT( * ) AS col1
----
-304

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL + CASE AVG ( + ( - 61 ) ) WHEN + 99 - + 35 THEN - COUNT ( * ) ELSE - 93 END + - 95 - + 29 + COUNT ( * ) * 67 * - COUNT ( * ) + - 21 + COUNT ( * ) AS col1
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT 88 + - CASE COUNT( * ) WHEN + - 86 * - 86 + 12 * - + COUNT( * ) * COUNT( * ) THEN NULL WHEN + 35 * - + 34 + + + 92 * - 25 * - 68 / 75 * - 88 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE + 64 + COUNT( * ) * + 82 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT 88 + - CASE COUNT ( * ) WHEN + - 86 * - 86 + 12 * - + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN + 35 * - + 34 + + + 92 * - 25 * - 68 / 75 * - 88 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE + 64 + COUNT ( * ) * + 82 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT + NULLIF ( 34, 19 + - COUNT( * ) / + - MAX( DISTINCT 6 ) + 33 + + 96 )
----
34

skipif mysql # not compatible
query I rowsort label-8863
SELECT + NULLIF ( 34, 19 + - COUNT ( * ) / + - MAX ( DISTINCT 6 ) + 33 + + 96 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8864
SELECT ALL + 36, 74 * - - SUM( ALL + NULLIF ( - CAST( NULL AS SIGNED ), 23 ) ) + 38 col2
----
36
NULL

skipif mysql # not compatible
query II rowsort label-8864
SELECT ALL + 36, 74 * - - SUM ( ALL + NULLIF ( - CAST ( NULL AS INTEGER ), 23 ) ) + 38 col2
----
36
NULL

query I rowsort
SELECT ALL 50 - 98 + 47 * - + 0 - + + 52
----
-100

query I rowsort
SELECT ALL - - 43 * - 12
----
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT - 16 + 25 * + COUNT( ( + 41 ) )
----
9

skipif mysql # not compatible
query I rowsort label-8867
SELECT - 16 + 25 * + COUNT ( ( + 41 ) )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8868
SELECT + + 37 * + 82 AS col1, - COUNT( * ) + + 41 * 20 AS col1
----
3034
819

skipif mysql # not compatible
query II rowsort label-8868
SELECT + + 37 * + 82 AS col1, - COUNT ( * ) + + 41 * 20 AS col1
----
3034
819

query I rowsort
SELECT - + 31 * - + 62 AS col2
----
1922

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT + MAX( 19 ) + + COUNT( * ) + + - 42 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8870
SELECT + MAX ( 19 ) + + COUNT ( * ) + + - 42 AS col1
----
-22

query I rowsort
SELECT COALESCE ( - 62, - 9, 68 )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8872
SELECT + NULLIF ( + + COUNT( * ), + 47 * - - 68 * 13 ) AS col2, ( - COUNT( ALL + 67 ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-8872
SELECT + NULLIF ( + + COUNT ( * ), + 47 * - - 68 * 13 ) AS col2, ( - COUNT ( ALL + 67 ) )
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8873
SELECT 45 * + CASE - 77 WHEN ( COALESCE ( - - ( 30 ), - - 50 + 35 + 72 + - 13 + - 12 / + - 60 / CASE + 55 WHEN + + CAST( 43 AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN 42 * ( NULLIF ( - ( - COUNT( DISTINCT + 92 ) ), 48 - - 68 * - 67 ) * - 10 ) END * CAST( - 65 * - 35 + 20 / 39 AS DECIMAL ) ) ) THEN NULL ELSE 88 * + 20 END * - CASE + 77 * 33 WHEN - ( - COUNT( * ) ) THEN 90 WHEN 32 THEN + 98 * + 11 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT 45 * + CASE - 77 WHEN ( COALESCE ( - - ( 30 ), - - 50 + 35 + 72 + - 13 + - 12 / + - 60 / CASE + 55 WHEN + + CAST ( 43 AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN 42 * ( NULLIF ( - ( - COUNT ( DISTINCT + 92 ) ), 48 - - 68 * - 67 ) * - 10 ) END * CAST ( - 65 * - 35 + 20 / 39 AS REAL ) ) ) THEN NULL ELSE 88 * + 20 END * - CASE + 77 * 33 WHEN - ( - COUNT ( * ) ) THEN 90 WHEN 32 THEN + 98 * + 11 END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8874
SELECT ALL + ( 41 ) AS col2, 37 + NULLIF ( - COUNT( * ), + 1 ) AS col1
----
41
36

skipif mysql # not compatible
query II rowsort label-8874
SELECT ALL + ( 41 ) AS col2, 37 + NULLIF ( - COUNT ( * ), + 1 ) AS col1
----
41
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT COALESCE ( - - 78, - - MAX( - 90 ), - ( COUNT( * ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-8875
SELECT COALESCE ( - - 78, - - MAX ( - 90 ), - ( COUNT ( * ) ) )
----
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8876
SELECT - 31 DIV CAST( + 83 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8876
SELECT - 31 / CAST ( + 83 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT ALL - 46 DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - 46 / - + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT - 48 + ( - + COUNT( * ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8878
SELECT - 48 + ( - + COUNT ( * ) ) AS col0
----
-49

query I rowsort
SELECT + 19 * + + 77
----
1463

query I rowsort
SELECT 46 * + 7 + - 82 AS col1
----
240

query I rowsort
SELECT + ( + 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT + 75 * 39 * + COUNT( * ) + - 25
----
2900

skipif mysql # not compatible
query I rowsort label-8882
SELECT + 75 * 39 * + COUNT ( * ) + - 25
----
2900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8883
SELECT ALL 88 * - 56 * COUNT( * ) * + - 97 * - - 8 + + 51 - + + 96 AS col1, 42 * + CASE - 62 WHEN + 21 * - 0 THEN NULL WHEN + 54 * - + CAST( NULL AS SIGNED ) + 11 * - 22 + 73 + + 39 * + CAST( - 82 AS DECIMAL ) THEN NULL WHEN NULLIF ( 63, + 73 ) THEN 5 + - 60 ELSE COUNT( * ) END
----
3824083
42

skipif mysql # not compatible
query II rowsort label-8883
SELECT ALL 88 * - 56 * COUNT ( * ) * + - 97 * - - 8 + + 51 - + + 96 AS col1, 42 * + CASE - 62 WHEN + 21 * - 0 THEN NULL WHEN + 54 * - + CAST ( NULL AS INTEGER ) + 11 * - 22 + 73 + + 39 * + CAST ( - 82 AS REAL ) THEN NULL WHEN NULLIF ( 63, + 73 ) THEN 5 + - 60 ELSE COUNT ( * ) END
----
3824083
42

query I rowsort
SELECT - 77 * + 53 * 52
----
-212212

query III rowsort
SELECT DISTINCT 62 * - + 66 + - 92 AS col0, - 20 - - - 77 col2, + 81
----
-4184
-97
81

query I rowsort
SELECT ALL - 74 * + 98 col1
----
-7252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8887
SELECT DISTINCT - 38 * + + SUM( ALL - - 73 ) * CAST( NULL AS SIGNED ) + + + 78 AS col2, 87
----
NULL
87

skipif mysql # not compatible
query II rowsort label-8887
SELECT DISTINCT - 38 * + + SUM ( ALL - - 73 ) * CAST ( NULL AS INTEGER ) + + + 78 AS col2, 87
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL + 11 + - 22 + + + 73 + - - MAX( ALL 96 ) + + COUNT( * ) + 31 AS col1
----
190

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL + 11 + - 22 + + + 73 + - - MAX ( ALL 96 ) + + COUNT ( * ) + 31 AS col1
----
190

query I rowsort
SELECT DISTINCT - 56 * 83 AS col1
----
-4648

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8890
SELECT - 58 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT - 58 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - MIN( ALL 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8891
SELECT - MIN ( ALL 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT - - ( NULLIF ( 49, 22 * - + ( + 16 ) / - COUNT( * ) * NULLIF ( - COUNT( * ), - 3 ) * - 19 * - 53 * + 84 + + 56 * AVG ( DISTINCT - 2 ) - 84 * - 27 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8892
SELECT - - ( NULLIF ( 49, 22 * - + ( + 16 ) / - COUNT ( * ) * NULLIF ( - COUNT ( * ), - 3 ) * - 19 * - 53 * + 84 + + 56 * AVG ( DISTINCT - 2 ) - 84 * - 27 ) ) AS col1
----
49

query I rowsort
SELECT - - 68 - + 56 AS col2
----
12

query I rowsort
SELECT DISTINCT 95 * - 37 + + 69
----
-3446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8895
SELECT - 17 + - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT - 17 + - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT + + ( 51 ) + - 6
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8897
SELECT - COALESCE ( + - 84, + + 6, - 5 * - 70 DIV - 61 * 99 * + 81 + - - 12, + CAST( NULL AS SIGNED ) * + 27 ) col1
----
84

skipif mysql # not compatible
query I rowsort label-8897
SELECT - COALESCE ( + - 84, + + 6, - 5 * - 70 / - 61 * 99 * + 81 + - - 12, + CAST ( NULL AS INTEGER ) * + 27 ) col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8898
SELECT ALL - COUNT( ALL 11 ) AS col2, - 18 AS col0
----
-1
-18

skipif mysql # not compatible
query II rowsort label-8898
SELECT ALL - COUNT ( ALL 11 ) AS col2, - 18 AS col0
----
-1
-18

query I rowsort
SELECT + 55 * - 69
----
-3795

query I rowsort
SELECT ALL 66 * + 4 AS col2
----
264

query I rowsort
SELECT + ( + 46 ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT + CAST( - - ( - 89 ) AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-8902
SELECT + CAST ( - - ( - 89 ) AS INTEGER )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT CAST( + - CAST( 43 AS SIGNED ) AS SIGNED ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8903
SELECT CAST ( + - CAST ( 43 AS INTEGER ) AS INTEGER ) AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT + CAST( + 54 AS SIGNED ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8904
SELECT + CAST ( + 54 AS INTEGER ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8905
SELECT + 36 - SUM( ALL - 14 ) + + - 29, 10 + + ( + 0 ) + + + 95 AS col1
----
21
105

skipif mysql # not compatible
query II rowsort label-8905
SELECT + 36 - SUM ( ALL - 14 ) + + - 29, 10 + + ( + 0 ) + + + 95 AS col1
----
21
105

query I rowsort
SELECT ( - ( - 49 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT ALL 15 * + 13 * 77 + + 53 + COUNT( * ) AS col2
----
15069

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL 15 * + 13 * 77 + + 53 + COUNT ( * ) AS col2
----
15069

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT ( SUM( 30 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8908
SELECT ( SUM ( 30 ) ) AS col1
----
30

query I rowsort
SELECT DISTINCT ( + 95 ) * 42
----
3990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT ALL 71 * - + COALESCE ( - 72, - 83 ) * - 47 + + AVG ( DISTINCT 50 ) + - 13 + 8 + - 70 / CAST( NULL AS SIGNED ) / + 46 + - 28 + - 22 * - + 3 * + MAX( 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL 71 * - + COALESCE ( - 72, - 83 ) * - 47 + + AVG ( DISTINCT 50 ) + - 13 + 8 + - 70 / CAST ( NULL AS INTEGER ) / + 46 + - 28 + - 22 * - + 3 * + MAX ( 81 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT COUNT( * ) * - 6 * - 33 * + 75 - + 17 * + 28 AS col2
----
14374

skipif mysql # not compatible
query I rowsort label-8911
SELECT COUNT ( * ) * - 6 * - 33 * + 75 - + 17 * + 28 AS col2
----
14374

query I rowsort
SELECT CASE - 99 WHEN 25 THEN NULL ELSE 56 END
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT + COALESCE ( + 50, 38, - 90 DIV - 4 ) + + + 87 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-8913
SELECT + COALESCE ( + 50, 38, - 90 / - 4 ) + + + 87 AS col0
----
137

query I rowsort
SELECT ALL - 61 * - 33 - + - 10 * + 85
----
2863

query I rowsort
SELECT - 78 * + 56
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT - - MAX( - + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-8916
SELECT - - MAX ( - + 87 )
----
-87

query I rowsort
SELECT DISTINCT - NULLIF ( 0, - 54 * - 96 + + + 1 )
----
0

query I rowsort
SELECT ALL - - 84 * + 59 AS col1
----
4956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8919
SELECT 32 + + 34 + 40 / + - 87 * MIN( + + 81 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT 32 + + 34 + 40 / + - 87 * MIN ( + + 81 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL + NULLIF ( + - 27, NULLIF ( 46, - 31 ) - 56 - - + COUNT( * ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL + NULLIF ( + - 27, NULLIF ( 46, - 31 ) - 56 - - + COUNT ( * ) ) AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8921
SELECT + 71 + - CAST( - ( ( 67 ) ) AS SIGNED ) DIV - 4 + + - 61
----
-6

skipif mysql # not compatible
query I rowsort label-8921
SELECT + 71 + - CAST ( - ( ( 67 ) ) AS INTEGER ) / - 4 + + - 61
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT - 11 * + + COALESCE ( - + COUNT( - - 52 ), COUNT( * ) * + 87 + - 64 * COUNT( * ) * + 73 + - - COUNT( * ) ) + MAX( DISTINCT - COALESCE ( - 79, + - 98 + 90, - 27 + - 32 ) )
----
90

skipif mysql # not compatible
query I rowsort label-8922
SELECT - 11 * + + COALESCE ( - + COUNT ( - - 52 ), COUNT ( * ) * + 87 + - 64 * COUNT ( * ) * + 73 + - - COUNT ( * ) ) + MAX ( DISTINCT - COALESCE ( - 79, + - 98 + 90, - 27 + - 32 ) )
----
90

query I rowsort
SELECT 40 * + 13 * + - 29
----
-15080

query I rowsort
SELECT + 85 + + - 93
----
-8

query II rowsort
SELECT 19 AS col2, 20 - - + 7
----
19
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT COUNT( * ) + - ( - 49 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8926
SELECT COUNT ( * ) + - ( - 49 ) AS col1
----
50

query I rowsort
SELECT COALESCE ( - 20, 43, + 82 ) AS col2
----
-20

query I rowsort
SELECT ALL - COALESCE ( + 31, - 66 + - 45 + - - 26 + - 27, + 53 ) col0
----
-31

query I rowsort
SELECT - + ( 68 ) AS col0
----
-68

query I rowsort
SELECT ALL - 24 + + 48 AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT ALL + 65 DIV 7
----
9

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + 65 / 7
----
9

query I rowsort
SELECT ALL 25 * + 84 col0
----
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT 82 DIV + 72 + 77
----
78

skipif mysql # not compatible
query I rowsort label-8933
SELECT 82 / + 72 + 77
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT 46 * 2 * COUNT( * ) * - 35 + + 68
----
-3152

skipif mysql # not compatible
query I rowsort label-8934
SELECT 46 * 2 * COUNT ( * ) * - 35 + + 68
----
-3152

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8935
SELECT CASE - 55 WHEN 16 / + - 6 * + 13 THEN 14 END * + 64 * + - CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT CASE - 55 WHEN 16 / + - 6 * + 13 THEN 14 END * + 64 * + - CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8936
SELECT 28 DIV 90 * + - MIN( + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-8936
SELECT 28 / 90 * + - MIN ( + 42 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8937
SELECT 44 + + - 96 + + COUNT( + 31 ) + + NULLIF ( + 33, - COUNT( * ) ) / COALESCE ( + 8, 63, + + 5 ) * + - CAST( + MAX( ALL - - 49 ) AS SIGNED ) * - CASE + + ( + + NULLIF ( - 90, - + 38 ) ) WHEN + SUM( ALL 86 ) * - 3 THEN - 54 END + - CASE 87 WHEN - MAX( ALL + 0 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) * + 8 + 3 THEN COALESCE ( + 14, 33 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT 44 + + - 96 + + COUNT ( + 31 ) + + NULLIF ( + 33, - COUNT ( * ) ) / COALESCE ( + 8, 63, + + 5 ) * + - CAST ( + MAX ( ALL - - 49 ) AS INTEGER ) * - CASE + + ( + + NULLIF ( - 90, - + 38 ) ) WHEN + SUM ( ALL 86 ) * - 3 THEN - 54 END + - CASE 87 WHEN - MAX ( ALL + 0 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) * + 8 + 3 THEN COALESCE ( + 14, 33 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT - COUNT( * ) + - COUNT( ALL - + 76 ) + + 93
----
91

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT - COUNT ( * ) + - COUNT ( ALL - + 76 ) + + 93
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8939
SELECT ALL + ( 40 ) + 47 * - 78 col1, + CAST( + - 47 AS SIGNED ) + - COUNT( - 78 ) AS col1
----
-3626
-48

skipif mysql # not compatible
query II rowsort label-8939
SELECT ALL + ( 40 ) + 47 * - 78 col1, + CAST ( + - 47 AS INTEGER ) + - COUNT ( - 78 ) AS col1
----
-3626
-48

query I rowsort
SELECT DISTINCT - 29 + + + 64 * 2 AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8941
SELECT ALL 53 + COUNT( * ) DIV + 82 + + 17 * - 12
----
-151

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL 53 + COUNT ( * ) / + 82 + + 17 * - 12
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT 79 + COALESCE ( - ( + + SUM( DISTINCT - + 58 ) ), - 60 * - 11 ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-8942
SELECT 79 + COALESCE ( - ( + + SUM ( DISTINCT - + 58 ) ), - 60 * - 11 ) AS col2
----
137

query I rowsort
SELECT DISTINCT 58 * + 84 AS col0
----
4872

query I rowsort
SELECT ALL 17 - + ( + - 59 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT CASE WHEN NOT - COUNT( * ) >= ( 28 ) - + 62 THEN 21 + - 41 WHEN ( NULL ) NOT IN ( + 49, SUM( ALL + + ( - - 3 ) ) - + - 10 ) THEN NULL ELSE - 70 END * + 57
----
-3990

skipif mysql # not compatible
query I rowsort label-8945
SELECT CASE WHEN NOT - COUNT ( * ) >= ( 28 ) - + 62 THEN 21 + - 41 WHEN ( NULL ) NOT IN ( + 49, SUM ( ALL + + ( - - 3 ) ) - + - 10 ) THEN NULL ELSE - 70 END * + 57
----
-3990

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8946
SELECT CAST( NULL AS DECIMAL ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT CAST ( NULL AS REAL ) + + 19
----
NULL

query I rowsort
SELECT 6 * - 1 AS col2
----
-6

query I rowsort
SELECT DISTINCT - 15 * 14 * - 1
----
210

query I rowsort
SELECT DISTINCT 71 * 75
----
5325

query I rowsort
SELECT ALL - + 50 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT - COUNT( * ) * - - 37
----
-37

skipif mysql # not compatible
query I rowsort label-8951
SELECT - COUNT ( * ) * - - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT - 86 * - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8952
SELECT - 86 * - COUNT ( * ) AS col2
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-8953
SELECT 65 DIV + - 90 AS col2, ( + - 89 ) - 57 * + 6
----
0
-431

skipif mysql # not compatible
query II rowsort label-8953
SELECT 65 / + - 90 AS col2, ( + - 89 ) - 57 * + 6
----
0
-431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8954
SELECT DISTINCT + 88 DIV ( - - COUNT( * ) )
----
88

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + 88 / ( - - COUNT ( * ) )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8955
SELECT - + COALESCE ( - - 7, - 92 * + 90, - + CASE - 64 WHEN + 98 THEN - 14 + - 44 END + - + ( - 59 ) + + + ( + 14 ) + + 55 - + + 7 DIV MAX( ALL 74 ) DIV 58 DIV 95 )
----
-7

skipif mysql # not compatible
query I rowsort label-8955
SELECT - + COALESCE ( - - 7, - 92 * + 90, - + CASE - 64 WHEN + 98 THEN - 14 + - 44 END + - + ( - 59 ) + + + ( + 14 ) + + 55 - + + 7 / MAX ( ALL 74 ) / 58 / 95 )
----
-7

query I rowsort
SELECT DISTINCT 1 + - - 88 - - 28
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT + 45 * - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT + 45 * - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8958
SELECT DISTINCT 23 * - CAST( + NULLIF ( + COUNT( * ), COUNT( + - 29 ) - + - 46 ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT 23 * - CAST ( + NULLIF ( + COUNT ( * ), COUNT ( + - 29 ) - + - 46 ) AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8959
SELECT 54 + COUNT( * ) + + 23 DIV COUNT( * ) - 17
----
61

skipif mysql # not compatible
query I rowsort label-8959
SELECT 54 + COUNT ( * ) + + 23 / COUNT ( * ) - 17
----
61

query I rowsort
SELECT 57 - - 88 col1
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-8961
SELECT COUNT( ALL 26 ) * - 43 AS col2, + 15 col1
----
-43
15

skipif mysql # not compatible
query II rowsort label-8961
SELECT COUNT ( ALL 26 ) * - 43 AS col2, + 15 col1
----
-43
15

query I rowsort
SELECT 44 * 26
----
1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT ALL + 73 * NULLIF ( 91, + 88 + - CAST( 99 AS SIGNED ) * + 70 ) * - + 32 + CAST( + 21 AS SIGNED ) + - - 94
----
-212461

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + 73 * NULLIF ( 91, + 88 + - CAST ( 99 AS INTEGER ) * + 70 ) * - + 32 + CAST ( + 21 AS INTEGER ) + - - 94
----
-212461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8964
SELECT ALL 19 * 23 * CAST( - 27 AS SIGNED ) * + COUNT( * ) + + 98 + + + 0 + - 42 * + + 90
----
-15481

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL 19 * 23 * CAST ( - 27 AS INTEGER ) * + COUNT ( * ) + + 98 + + + 0 + - 42 * + + 90
----
-15481

query I rowsort
SELECT ALL 94 * - 20 - + 16 * - + 5
----
-1800

query I rowsort
SELECT ALL - 25 * - 95
----
2375

query I rowsort
SELECT DISTINCT - COALESCE ( - - 16, - 91 * 72 * - 60 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT SUM( ALL 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8968
SELECT SUM ( ALL 26 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8969
SELECT CAST( + COUNT( * ) AS SIGNED ) * + 85 * ( - 98 ) - + 70 * + + 40
----
-11130

skipif mysql # not compatible
query I rowsort label-8969
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + 85 * ( - 98 ) - + 70 * + + 40
----
-11130

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT MAX( 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8970
SELECT MAX ( 65 ) AS col1
----
65

query I rowsort
SELECT ALL + 75 * - 9
----
-675

query I rowsort
SELECT ALL + - 43 col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8973
SELECT + - 31 * 27 + + + COUNT( * ) + + + SUM( ALL - 59 ) DIV + COUNT( * ) + ( 27 )
----
-868

skipif mysql # not compatible
query I rowsort label-8973
SELECT + - 31 * 27 + + + COUNT ( * ) + + + SUM ( ALL - 59 ) / + COUNT ( * ) + ( 27 )
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT - 1 * 28 - - + COUNT( * ) * 68
----
40

skipif mysql # not compatible
query I rowsort label-8974
SELECT - 1 * 28 - - + COUNT ( * ) * 68
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL + - COALESCE ( - NULLIF ( - - 19, + COUNT( * ) + - MIN( - ( + + 10 ) ) ), + ( + MAX( DISTINCT ( - 19 ) ) ) * + COUNT( * ) - + - 73 + - 47 * + 72 + COUNT( * ) * 31 )
----
19

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + - COALESCE ( - NULLIF ( - - 19, + COUNT ( * ) + - MIN ( - ( + + 10 ) ) ), + ( + MAX ( DISTINCT ( - 19 ) ) ) * + COUNT ( * ) - + - 73 + - 47 * + 72 + COUNT ( * ) * 31 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT - 84 + COUNT( * ) + + - ( - 64 ) + + + 72
----
53

skipif mysql # not compatible
query I rowsort label-8976
SELECT - 84 + COUNT ( * ) + + - ( - 64 ) + + + 72
----
53

query I rowsort
SELECT ALL + 59 * - 18
----
-1062

onlyif mysql # aggregate syntax: 
query II rowsort label-8978
SELECT CASE + + 48 WHEN - + ( + - MAX( DISTINCT - ( - - 98 ) ) ) * - 13 + + 59 THEN NULL ELSE 36 * + + 92 END AS col1, 68 AS col2
----
3312
68

skipif mysql # not compatible
query II rowsort label-8978
SELECT CASE + + 48 WHEN - + ( + - MAX ( DISTINCT - ( - - 98 ) ) ) * - 13 + + 59 THEN NULL ELSE 36 * + + 92 END AS col1, 68 AS col2
----
3312
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL + 9 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + 9 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 4 + + 89 AS col2
----
93

query I rowsort
SELECT ALL 73 + - 86 + - 15
----
-28

query I rowsort
SELECT ALL ( - 3 ) * - 15
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8983
SELECT + COALESCE ( + ( - 35 ), 89 ) * CAST( NULL AS SIGNED ) AS col1, 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-8983
SELECT + COALESCE ( + ( - 35 ), 89 ) * CAST ( NULL AS INTEGER ) AS col1, 92
----
NULL
92

query I rowsort
SELECT + 69 + + 86 col1
----
155

query II rowsort
SELECT - 76 AS col2, + 25
----
-76
25

query I rowsort
SELECT ALL 90 + ( 60 )
----
150

query I rowsort
SELECT - ( - + 8 ) AS col0
----
8

query I rowsort
SELECT - ( + COALESCE ( - + 63, + 48 ) )
----
63

query I rowsort
SELECT ALL 48 * - 32
----
-1536

query II rowsort
SELECT - 50 AS col1, - 74 AS col1
----
-50
-74

query I rowsort
SELECT + 6 * + - 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8992
SELECT - NULLIF ( ( + 8 ), - + 92 ) + - 5 * 76 + - 13 - - CASE + 63 WHEN + + ( + - 56 ) THEN NULL ELSE + 88 END DIV + + 12 * + COUNT( * )
----
-394

skipif mysql # not compatible
query I rowsort label-8992
SELECT - NULLIF ( ( + 8 ), - + 92 ) + - 5 * 76 + - 13 - - CASE + 63 WHEN + + ( + - 56 ) THEN NULL ELSE + 88 END / + + 12 * + COUNT ( * )
----
-394

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT - 21 DIV + 32 - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8993
SELECT - 21 / + 32 - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ( + 13 ) * + COALESCE ( - MAX( 88 ), - - 14 * + 48 + + 99 * 88 ) + 11 * 49
----
-605

skipif mysql # not compatible
query I rowsort label-8994
SELECT ( + 13 ) * + COALESCE ( - MAX ( 88 ), - - 14 * + 48 + + 99 * 88 ) + 11 * 49
----
-605

query I rowsort
SELECT - - 43 + - 83
----
-40

query I rowsort
SELECT - 15 * + 60
----
-900

query I rowsort
SELECT + COALESCE ( + - 89, 85 )
----
-89

query I rowsort
SELECT - + 68 + - 90
----
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8999
SELECT - + 99 DIV + + COUNT( * ) + - ( - - 49 ) * + 30 + - 57 AS col1, 46 + + MAX( - - 60 ) AS col2
----
-1626
106

skipif mysql # not compatible
query II rowsort label-8999
SELECT - + 99 / + + COUNT ( * ) + - ( - - 49 ) * + 30 + - 57 AS col1, 46 + + MAX ( - - 60 ) AS col2
----
-1626
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT 94 * - + CAST( NULL AS SIGNED ) / - - 34 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT 94 * - + CAST ( NULL AS INTEGER ) / - - 34 + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - - NULLIF ( 29, - + COALESCE ( + - 85, COALESCE ( 24, + 83 ) ) ) * 39 AS col2
----
1131

query I rowsort
SELECT ALL + - 73 * - 31 * + 26 * + + ( + 45 )
----
2647710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT ALL + - COUNT( * ) * 80 + - 21 + + COALESCE ( CAST( - + 48 AS SIGNED ), + 76 ) - + 17 AS col1
----
-166

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL + - COUNT ( * ) * 80 + - 21 + + COALESCE ( CAST ( - + 48 AS INTEGER ), + 76 ) - + 17 AS col1
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9004
SELECT - CAST( NULL AS SIGNED ) * - - COUNT( * ) * + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + 19 AS col0
----
NULL

query I rowsort
SELECT + - 92 * - 13 * - - 4 AS col2
----
4784

query I rowsort
SELECT ALL COALESCE ( + - 14, 20 )
----
-14

query II rowsort
SELECT - 39 col2, + 6 AS col2
----
-39
6

query I rowsort
SELECT + 63 + + - ( + + 95 ) + 72 * + 16 * - 92
----
-106016

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT + 72 - + SUM( ALL + + ( + 64 ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9009
SELECT + 72 - + SUM ( ALL + + ( + 64 ) ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9010
SELECT DISTINCT COUNT( * ) * + 5, + 56 col0
----
5
56

skipif mysql # not compatible
query II rowsort label-9010
SELECT DISTINCT COUNT ( * ) * + 5, + 56 col0
----
5
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9011
SELECT + COUNT( * ) * + - NULLIF ( + CAST( NULL AS SIGNED ), 42 / - + 2 ) * 63 * 79 AS col2, 39 * + 90 + + 95 * 70 * COUNT( * )
----
NULL
10160

skipif mysql # not compatible
query II rowsort label-9011
SELECT + COUNT ( * ) * + - NULLIF ( + CAST ( NULL AS INTEGER ), 42 / - + 2 ) * 63 * 79 AS col2, 39 * + 90 + + 95 * 70 * COUNT ( * )
----
NULL
10160

query I rowsort
SELECT ALL 48 * - 10 AS col2
----
-480

query I rowsort
SELECT DISTINCT 7 * - 12 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT + COUNT( * ) * + 85 col0
----
85

skipif mysql # not compatible
query I rowsort label-9014
SELECT + COUNT ( * ) * + 85 col0
----
85

query I rowsort
SELECT + NULLIF ( - 44, + 10 ) * - 57
----
2508

query I rowsort
SELECT + 83 * + 89 AS col2
----
7387

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT - COUNT( DISTINCT + + 48 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT - COUNT ( DISTINCT + + 48 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT 93 * - COUNT( * ) * 51 AS col2
----
-4743

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT 93 * - COUNT ( * ) * 51 AS col2
----
-4743

onlyif mysql # aggregate syntax: 
query II rowsort label-9019
SELECT + 39 + MIN( - 5 ) + + 85 * 58 AS col2, 58 AS col0
----
4964
58

skipif mysql # not compatible
query II rowsort label-9019
SELECT + 39 + MIN ( - 5 ) + + 85 * 58 AS col2, 58 AS col0
----
4964
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9020
SELECT 84 * 46 + - COUNT( * ) col0, + 59 * + + CAST( NULL AS SIGNED ) + + - MIN( - - 94 ) * - + 20 * + 30
----
3863
NULL

skipif mysql # not compatible
query II rowsort label-9020
SELECT 84 * 46 + - COUNT ( * ) col0, + 59 * + + CAST ( NULL AS INTEGER ) + + - MIN ( - - 94 ) * - + 20 * + 30
----
3863
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL 78 * - ( + COUNT( * ) ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL 78 * - ( + COUNT ( * ) ) AS col0
----
-78

query I rowsort
SELECT - 29 * + + 44 - - 52 * 9 AS col2
----
-808

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT - 35 DIV 37 * 95 + 63 + + - ( COALESCE ( 36, + 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-9023
SELECT - 35 / 37 * 95 + 63 + + - ( COALESCE ( 36, + 27 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL - 42 + + + 39 + - COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL - 42 + + + 39 + - COUNT ( * ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9025
SELECT NULLIF ( - 97, + 66 ) * - 20 * + 39 - CASE - 82 WHEN - 94 * + COUNT( * ) THEN - - NULLIF ( 21, 54 ) DIV + 61 WHEN - - 51 THEN NULL ELSE 98 DIV + 45 END col0
----
75658

skipif mysql # not compatible
query I rowsort label-9025
SELECT NULLIF ( - 97, + 66 ) * - 20 * + 39 - CASE - 82 WHEN - 94 * + COUNT ( * ) THEN - - NULLIF ( 21, 54 ) / + 61 WHEN - - 51 THEN NULL ELSE 98 / + 45 END col0
----
75658

onlyif mysql # aggregate syntax: 
query II rowsort label-9026
SELECT ALL 44 + COUNT( * ) AS col0, - 99
----
45
-99

skipif mysql # not compatible
query II rowsort label-9026
SELECT ALL 44 + COUNT ( * ) AS col0, - 99
----
45
-99

onlyif mysql # aggregate syntax: 
query III rowsort label-9027
SELECT DISTINCT + + COUNT( * ) * - AVG ( + 91 ) + + CASE WHEN ( NULL ) > NULL THEN - 8 ELSE NULL END, 79 AS col2, - 83 AS col0
----
NULL
79
-83

skipif mysql # not compatible
query III rowsort label-9027
SELECT DISTINCT + + COUNT ( * ) * - AVG ( + 91 ) + + CASE WHEN ( NULL ) > NULL THEN - 8 ELSE NULL END, 79 AS col2, - 83 AS col0
----
NULL
79
-83

query I rowsort
SELECT COALESCE ( + 67, + - 5 ) + - 61 * - 37 AS col1
----
2324

query I rowsort
SELECT ALL + - 58 + 51 + - + 24 - + 46
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9030
SELECT - ( + 38 ) * + COALESCE ( - 51, + + 18 * - - 66 + - 18 * - 58 DIV 48, 78 DIV + 68 * + 37 * - COUNT( * ) + 62 )
----
1938

skipif mysql # not compatible
query I rowsort label-9030
SELECT - ( + 38 ) * + COALESCE ( - 51, + + 18 * - - 66 + - 18 * - 58 / 48, 78 / + 68 * + 37 * - COUNT ( * ) + 62 )
----
1938

query I rowsort
SELECT 25 + - 0
----
25

query I rowsort
SELECT ALL - + 45 * - ( - 95 ) + - 62
----
-4337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT - - NULLIF ( + MIN( 14 ), + 89 ) * - + ( - MIN( ALL - CAST( + 80 AS SIGNED ) ) ) + + 40 AS col1
----
-1080

skipif mysql # not compatible
query I rowsort label-9033
SELECT - - NULLIF ( + MIN ( 14 ), + 89 ) * - + ( - MIN ( ALL - CAST ( + 80 AS INTEGER ) ) ) + + 40 AS col1
----
-1080

query II rowsort
SELECT DISTINCT - 97 * 79 AS col2, - 48 * + + 63 col0
----
-7663
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT + 83 - COUNT( * ) * 92 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT + 83 - COUNT ( * ) * 92 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT DISTINCT 78 AS col0, CASE - - 39 WHEN + + SUM( - - 31 ) THEN + 6 END
----
78
NULL

skipif mysql # not compatible
query II rowsort label-9036
SELECT DISTINCT 78 AS col0, CASE - - 39 WHEN + + SUM ( - - 31 ) THEN + 6 END
----
78
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9037
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * 25 DIV + 81 + - 96 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * 25 / + 81 + - 96 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9038
SELECT ALL - 68 * - COUNT( * ) AS col2, 84 * + 65
----
68
5460

skipif mysql # not compatible
query II rowsort label-9038
SELECT ALL - 68 * - COUNT ( * ) AS col2, 84 * + 65
----
68
5460

query I rowsort
SELECT - - 60 AS col1
----
60

query I rowsort
SELECT ALL + 76 - + 95
----
-19

query I rowsort
SELECT DISTINCT ( - 98 )
----
-98

query I rowsort
SELECT ALL - + 38 * - 24 + - - 0 - - 34
----
946

query I rowsort
SELECT ALL + - 95
----
-95

query I rowsort
SELECT ALL + 40 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT ALL 25 * - 35 + - + SUM( - 31 ) - + COUNT( * ) - - + 16 + - ( CAST( 63 AS SIGNED ) ) AS col2
----
-892

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL 25 * - 35 + - + SUM ( - 31 ) - + COUNT ( * ) - - + 16 + - ( CAST ( 63 AS INTEGER ) ) AS col2
----
-892

query I rowsort
SELECT ALL + + ( - - 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - 57 * - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9047
SELECT - 57 * - COUNT ( * )
----
57

query I rowsort
SELECT DISTINCT + - 26
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9049
SELECT - ( - COUNT( * ) ) + + 14 DIV COUNT( * ) col0
----
15

skipif mysql # not compatible
query I rowsort label-9049
SELECT - ( - COUNT ( * ) ) + + 14 / COUNT ( * ) col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT CAST( NULL AS SIGNED ) * 12 + + 42 - - + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT CAST ( NULL AS INTEGER ) * 12 + + 42 - - + 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9051
SELECT + 4 - 92 + - + 32 DIV - + COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9051
SELECT + 4 - 92 + - + 32 / - + COUNT ( * ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ( 30 ) * - 98 * - COUNT( * ) * + 96 * - - 8 + COUNT( * ) * + ( + - MAX( DISTINCT - - 77 ) ) + - 27 * 91 col0
----
2255386

skipif mysql # not compatible
query I rowsort label-9052
SELECT ( 30 ) * - 98 * - COUNT ( * ) * + 96 * - - 8 + COUNT ( * ) * + ( + - MAX ( DISTINCT - - 77 ) ) + - 27 * 91 col0
----
2255386

onlyif mysql # aggregate syntax: 
query II rowsort label-9053
SELECT + 80 - + - MIN( DISTINCT + + 16 ) col1, 56 - 80 * - ( + + ( - COUNT( * ) ) )
----
96
-24

skipif mysql # not compatible
query II rowsort label-9053
SELECT + 80 - + - MIN ( DISTINCT + + 16 ) col1, 56 - 80 * - ( + + ( - COUNT ( * ) ) )
----
96
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT - 92 * + + 88 * NULLIF ( - 3, - COUNT( * ) )
----
24288

skipif mysql # not compatible
query I rowsort label-9054
SELECT - 92 * + + 88 * NULLIF ( - 3, - COUNT ( * ) )
----
24288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9055
SELECT ALL + 74, + CAST( NULL AS SIGNED ) + + 94 + + MAX( + 91 ) + - 70 / 87 * + - 64 * 67 AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-9055
SELECT ALL + 74, + CAST ( NULL AS INTEGER ) + + 94 + + MAX ( + 91 ) + - 70 / 87 * + - 64 * 67 AS col1
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT + 44 + + + ( + COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-9056
SELECT + 44 + + + ( + COUNT ( * ) )
----
45

query I rowsort
SELECT ALL - 89 * + + 71 AS col1
----
-6319

query I rowsort
SELECT + 62 * 45 col0
----
2790

query I rowsort
SELECT DISTINCT 85 * + 41 AS col2
----
3485

query I rowsort
SELECT ALL - 81 * + 56 + 84
----
-4452

query I rowsort
SELECT + 26 + 91 + + 90 - - 48 * + + 94
----
4719

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT COUNT( + - 6 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9062
SELECT COUNT ( + - 6 ) col2
----
1

query I rowsort
SELECT ALL - ( + 42 ) * + 10 * 69 + + 44 * - + 68 + - 49
----
-32021

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT - - ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9064
SELECT - - ( COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT - 74 + - 55
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL + 63 * - + 61 * COUNT( * )
----
-3843

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL + 63 * - + 61 * COUNT ( * )
----
-3843

query I rowsort
SELECT + 2 + 83 * - ( - ( + 82 ) ) col2
----
6808

query I rowsort
SELECT ALL + + 57 + + + CASE 8 WHEN - 21 THEN NULL ELSE - + 36 END - + 67
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9069
SELECT - 16, + 56 * + CAST( NULL AS SIGNED ) * 68 AS col0
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-9069
SELECT - 16, + 56 * + CAST ( NULL AS INTEGER ) * 68 AS col0
----
-16
NULL

query II rowsort
SELECT ALL 39 col2, 73 AS col0
----
39
73

query I rowsort
SELECT + 55 + + - 52 * 25
----
-1245

query I rowsort
SELECT - + 60 - - 60 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT - CAST( NULL AS SIGNED ) * CAST( - - ( - - 56 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT - CAST ( NULL AS INTEGER ) * CAST ( - - ( - - 56 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT ALL MAX( DISTINCT + + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL MAX ( DISTINCT + + 38 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9075
SELECT + 69 + + 75 + + - ( - 36 ) DIV - + 77
----
144

skipif mysql # not compatible
query I rowsort label-9075
SELECT + 69 + + 75 + + - ( - 36 ) / - + 77
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT ALL - 80 - CAST( NULL AS SIGNED ) + + 35 * 73 * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - 80 - CAST ( NULL AS INTEGER ) + + 35 * 73 * + 22 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT - CAST( - 87 AS SIGNED ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9077
SELECT - CAST ( - 87 AS INTEGER ) AS col1
----
87

query II rowsort
SELECT ALL + 19 AS col0, 1 * 10 * 61 + + 20 - + COALESCE ( 82, + + 59 ) + - 22
----
19
526

query II rowsort
SELECT DISTINCT 28, 23 AS col0
----
28
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT - MAX( + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9080
SELECT - MAX ( + 7 )
----
-7

query I rowsort
SELECT ALL + ( - - 45 ) AS col0
----
45

query I rowsort
SELECT - + 50 + - 99 col2
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-9083
SELECT ALL - 86 DIV 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL - 86 / 58 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT - COUNT( * ) + + 40 - + + 76
----
-37

skipif mysql # not compatible
query I rowsort label-9084
SELECT - COUNT ( * ) + + 40 - + + 76
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT - + COUNT( * ), MAX( ALL 69 ) - - + 61 AS col0
----
-1
130

skipif mysql # not compatible
query II rowsort label-9085
SELECT - + COUNT ( * ), MAX ( ALL 69 ) - - + 61 AS col0
----
-1
130

onlyif mysql # aggregate syntax: 
query II rowsort label-9086
SELECT - + 90 AS col2, COUNT( * ) + + ( 31 ) col0
----
-90
32

skipif mysql # not compatible
query II rowsort label-9086
SELECT - + 90 AS col2, COUNT ( * ) + + ( 31 ) col0
----
-90
32

query I rowsort
SELECT DISTINCT - 75 * + + 90 * + 40 AS col2
----
-270000

query I rowsort
SELECT ALL + ( - + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT - MAX( - + 39 ) * + COUNT( * ) * + + 41 AS col1
----
1599

skipif mysql # not compatible
query I rowsort label-9089
SELECT - MAX ( - + 39 ) * + COUNT ( * ) * + + 41 AS col1
----
1599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT 93 DIV - 40 + 16 - - 72 * - 73 * COUNT( + - ( + - 32 ) )
----
-5242

skipif mysql # not compatible
query I rowsort label-9090
SELECT 93 / - 40 + 16 - - 72 * - 73 * COUNT ( + - ( + - 32 ) )
----
-5242

query I rowsort
SELECT DISTINCT + 75 * + 21 col0
----
1575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9092
SELECT ALL - 31 DIV MIN( DISTINCT + - 83 ) + - 89 DIV - - COUNT( * ) + - 23 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL - 31 / MIN ( DISTINCT + - 83 ) + - 89 / - - COUNT ( * ) + - 23 AS col0
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9093
SELECT - 35 * - + 72 - 50 + + 89 - + - 2 + 83 + 28 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT - 35 * - + 72 - 50 + + 89 - + - 2 + 83 + 28 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( ( 58 ) ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9095
SELECT 31 DIV COUNT( + - 66 ) - - 88 + MAX( ALL + + 33 ) * NULLIF ( - + COUNT( * ), 9 * + + COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-9095
SELECT 31 / COUNT ( + - 66 ) - - 88 + MAX ( ALL + + 33 ) * NULLIF ( - + COUNT ( * ), 9 * + + COUNT ( * ) )
----
86

query I rowsort
SELECT + ( + 33 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9097
SELECT + 8 + - COUNT( * ) DIV - + 82 - + - 50 * - 50 AS col2, - COUNT( * ) - - 95
----
-2492
94

skipif mysql # not compatible
query II rowsort label-9097
SELECT + 8 + - COUNT ( * ) / - + 82 - + - 50 * - 50 AS col2, - COUNT ( * ) - - 95
----
-2492
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT ALL CAST( 91 AS SIGNED ) + + CAST( + - 97 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL CAST ( 91 AS INTEGER ) + + CAST ( + - 97 AS INTEGER ) AS col1
----
-6

query I rowsort
SELECT DISTINCT + 13 + ( 72 )
----
85

query I rowsort
SELECT 41 * + - 6
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL + MIN( ALL + 40 ) * SUM( + 1 )
----
40

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL + MIN ( ALL + 40 ) * SUM ( + 1 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT - 34 * - COUNT( * ) + 18 + + - ( - CASE 85 WHEN 64 THEN - 42 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT - 34 * - COUNT ( * ) + 18 + + - ( - CASE 85 WHEN 64 THEN - 42 END )
----
NULL

query II rowsort
SELECT DISTINCT + 70 - - - 47 - + 67 * - 26 * 20 AS col0, - 38 + - 16 + - 3 AS col1
----
34863
-57

query I rowsort
SELECT DISTINCT + ( + 45 )
----
45

query I rowsort
SELECT 21 + - 44 col2
----
-23

query I rowsort
SELECT DISTINCT - 23 col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT DISTINCT + COUNT( * ) - + + 11, - ( - - 60 ) * - 38 + + 1 AS col1
----
-10
2281

skipif mysql # not compatible
query II rowsort label-9107
SELECT DISTINCT + COUNT ( * ) - + + 11, - ( - - 60 ) * - 38 + + 1 AS col1
----
-10
2281

query I rowsort
SELECT ALL + ( 43 ) AS col0
----
43

query I rowsort
SELECT - + 98 AS col1
----
-98

query I rowsort
SELECT 41 + - 7 - 22 + + 85
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT + CAST( 10 AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9111
SELECT + CAST ( 10 AS INTEGER ) AS col1
----
10

query I rowsort
SELECT DISTINCT + 18 AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9113
SELECT DISTINCT + 68 * - 18, - NULLIF ( COUNT( * ), + - 67 + 61 ) * - 85 AS col2
----
-1224
85

skipif mysql # not compatible
query II rowsort label-9113
SELECT DISTINCT + 68 * - 18, - NULLIF ( COUNT ( * ), + - 67 + 61 ) * - 85 AS col2
----
-1224
85

query I rowsort
SELECT ALL COALESCE ( + 83, - 64, + 15 ) AS col0
----
83

query I rowsort
SELECT - 30 * + 13 * 20 * - 66
----
514800

query I rowsort
SELECT - ( - + 17 ) AS col2
----
17

query I rowsort
SELECT + 83 + + 66 col1
----
149

query I rowsort
SELECT 20 * + + 83
----
1660

query I rowsort
SELECT - 94 col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9120
SELECT MIN( + 20 ) * 68, ( 76 ) AS col2
----
1360
76

skipif mysql # not compatible
query II rowsort label-9120
SELECT MIN ( + 20 ) * 68, ( 76 ) AS col2
----
1360
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL - AVG ( - 94 ) + CASE COUNT( * ) WHEN - 70 THEN + 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL - AVG ( - 94 ) + CASE COUNT ( * ) WHEN - 70 THEN + 87 END AS col0
----
NULL

query II rowsort
SELECT ALL 49, - 3 * - - 35 * + 91 AS col2
----
49
-9555

query I rowsort
SELECT 10 - - 61 AS col0
----
71

query I rowsort
SELECT ALL - CASE + 71 WHEN - + 69 THEN + 61 ELSE 78 END * + ( + 69 ) AS col0
----
-5382

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9125
SELECT DISTINCT 68 + + CAST( + 77 AS SIGNED ) col1, - 48
----
145
-48

skipif mysql # not compatible
query II rowsort label-9125
SELECT DISTINCT 68 + + CAST ( + 77 AS INTEGER ) col1, - 48
----
145
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9126
SELECT ALL - MIN( DISTINCT + + CAST( + 2 AS SIGNED ) ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL - MIN ( DISTINCT + + CAST ( + 2 AS INTEGER ) ) col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9127
SELECT ALL 3 + CASE + - 70 WHEN COUNT( * ) * - ( - 59 ) + + + 15 + + 76 + CAST( NULL AS SIGNED ) / - 71 THEN NULL WHEN + COALESCE ( + COUNT( * ), + 43, 98 ) THEN NULL ELSE - 31 END * + 81 - - + 39 AS col0
----
-2469

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL 3 + CASE + - 70 WHEN COUNT ( * ) * - ( - 59 ) + + + 15 + + 76 + CAST ( NULL AS INTEGER ) / - 71 THEN NULL WHEN + COALESCE ( + COUNT ( * ), + 43, 98 ) THEN NULL ELSE - 31 END * + 81 - - + 39 AS col0
----
-2469

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT 0 + - + COUNT( * ) - + 17
----
-18

skipif mysql # not compatible
query I rowsort label-9128
SELECT 0 + - + COUNT ( * ) - + 17
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9129
SELECT ALL + CAST( NULL AS DECIMAL ) * 16 * - - COALESCE ( - 13, + 48 * 64 + + 99 + + 95 - + ( + 29 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL + CAST ( NULL AS REAL ) * 16 * - - COALESCE ( - 13, + 48 * 64 + + 99 + + 95 - + ( + 29 ) ) AS col1
----
NULL

query I rowsort
SELECT 35 + - - 60 * 33
----
2015

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL ( COUNT( * ) ) * + ( + 62 ) + + 15
----
77

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL ( COUNT ( * ) ) * + ( + 62 ) + + 15
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9132
SELECT 44 + ( 58 ) col0, MAX( + 75 ) + - + MAX( 84 )
----
102
-9

skipif mysql # not compatible
query II rowsort label-9132
SELECT 44 + ( 58 ) col0, MAX ( + 75 ) + - + MAX ( 84 )
----
102
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT DISTINCT - CASE 61 WHEN - 92 + - 82 THEN COUNT( DISTINCT + 19 ) WHEN - + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - CASE 61 WHEN - 92 + - 82 THEN COUNT ( DISTINCT + 19 ) WHEN - + 36 THEN NULL END
----
NULL

query I rowsort
SELECT 25 * 66 AS col1
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT 87 * - + COALESCE ( COUNT( * ), - 94, - 56 ) * - COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9135
SELECT 87 * - + COALESCE ( COUNT ( * ), - 94, - 56 ) * - COUNT ( * ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9136
SELECT - - 94 * ( - 66 ) * + + ( COUNT( * ) ) + 86 + - + 41 * + 42 * 29 + - - 68 * + 18 + - ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT - - 94 * ( - 66 ) * + + ( COUNT ( * ) ) + 86 + - + 41 * + 42 * 29 + - - 68 * + 18 + - ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT - - CASE + 95 WHEN NULLIF ( + COUNT( * ), + 1 + 7 ) / COALESCE ( - - 77, COUNT( * ) + + - COUNT( * ), + + 25 + - 81 * + 60 ) * - CASE 83 WHEN + MIN( ALL - + 54 ) + - - 74 THEN 8 ELSE NULL END THEN NULL ELSE + 15 END AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT - - CASE + 95 WHEN NULLIF ( + COUNT ( * ), + 1 + 7 ) / COALESCE ( - - 77, COUNT ( * ) + + - COUNT ( * ), + + 25 + - 81 * + 60 ) * - CASE 83 WHEN + MIN ( ALL - + 54 ) + - - 74 THEN 8 ELSE NULL END THEN NULL ELSE + 15 END AS col0
----
15

query I rowsort
SELECT + 37 + - + 78
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT 66 + 63 * - + 65 * - + 65 * + COUNT( - + 99 )
----
266241

skipif mysql # not compatible
query I rowsort label-9139
SELECT 66 + 63 * - + 65 * - + 65 * + COUNT ( - + 99 )
----
266241

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9140
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + 65 + - + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + 65 + - + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL 4 * - COUNT( * ) * + COUNT( + 23 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL 4 * - COUNT ( * ) * + COUNT ( + 23 ) AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9142
SELECT - 73 + + 19 + - 48 DIV 11 - - + 66 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9142
SELECT - 73 + + 19 + - 48 / 11 - - + 66 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT + + MIN( ALL 79 ) - - COUNT( * ) + - + CASE - 41 WHEN - NULLIF ( + MAX( ALL + 42 ), + + 82 + - 1 ) * - 10 - + + COUNT( * ) + - 86 * + 52 + + MAX( ALL 42 ) THEN NULL WHEN ( - 8 ) * + 24 THEN - 28 END - + 50 / 50 * + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT + + MIN ( ALL 79 ) - - COUNT ( * ) + - + CASE - 41 WHEN - NULLIF ( + MAX ( ALL + 42 ), + + 82 + - 1 ) * - 10 - + + COUNT ( * ) + - 86 * + 52 + + MAX ( ALL 42 ) THEN NULL WHEN ( - 8 ) * + 24 THEN - 28 END - + 50 / 50 * + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL - - 31 * + COUNT( * ) col0
----
31

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL - - 31 * + COUNT ( * ) col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9145
SELECT + 14 * + + 54 + 91 + CASE + 36 WHEN - AVG ( - 85 ) THEN - 39 * - + 21 * 7 + + COUNT( DISTINCT - + 27 ) WHEN - CAST( NULL AS SIGNED ) - + 6 - MIN( - - 25 ) THEN NULL WHEN 19 + CASE 40 WHEN + + CASE + - 22 WHEN 81 THEN NULL WHEN - 34 THEN + 40 ELSE + 15 END + + COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL ELSE + + 36 END THEN NULL END + + 86 - + 0 + + ( + 55 ) * 99 * - 8 * - 40 + 97 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT + 14 * + + 54 + 91 + CASE + 36 WHEN - AVG ( - 85 ) THEN - 39 * - + 21 * 7 + + COUNT ( DISTINCT - + 27 ) WHEN - CAST ( NULL AS INTEGER ) - + 6 - MIN ( - - 25 ) THEN NULL WHEN 19 + CASE 40 WHEN + + CASE + - 22 WHEN 81 THEN NULL WHEN - 34 THEN + 40 ELSE + 15 END + + COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 36 END THEN NULL END + + 86 - + 0 + + ( + 55 ) * 99 * - 8 * - 40 + 97 * 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT DISTINCT - COUNT( DISTINCT 23 ) * + NULLIF ( - MIN( ALL - - 51 ), 63 ) AS col0, - 35
----
51
-35

skipif mysql # not compatible
query II rowsort label-9146
SELECT DISTINCT - COUNT ( DISTINCT 23 ) * + NULLIF ( - MIN ( ALL - - 51 ), 63 ) AS col0, - 35
----
51
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9147
SELECT ALL + + 18 * CAST( - 7 AS SIGNED ), + 96 AS col0
----
-126
96

skipif mysql # not compatible
query II rowsort label-9147
SELECT ALL + + 18 * CAST ( - 7 AS INTEGER ), + 96 AS col0
----
-126
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT + 40 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT + 40 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 53 + + + 95 col0
----
148

query I rowsort
SELECT - 23 - + 5 + - 23
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT COUNT( * ) * 21 + + 39
----
60

skipif mysql # not compatible
query I rowsort label-9151
SELECT COUNT ( * ) * 21 + + 39
----
60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9152
SELECT ( + + 84 ) + - + CAST( NULL AS DECIMAL ) AS col1, + CAST( NULL AS SIGNED ) + + 34
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9152
SELECT ( + + 84 ) + - + CAST ( NULL AS REAL ) AS col1, + CAST ( NULL AS INTEGER ) + + 34
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9153
SELECT - COALESCE ( + 60, COUNT( * ) DIV + + 12 ) + 55 AS col0, + CASE + + 54 WHEN + - 51 * - MIN( + + 39 ) * + COUNT( * ) THEN 54 + + 33 * + + 91 DIV + + 27 * - + 76 WHEN + ( + MIN( + 12 ) ) + - COUNT( ALL + 64 ) THEN NULL WHEN - COUNT( * ) * - + 16 THEN NULL END + + - 26
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-9153
SELECT - COALESCE ( + 60, COUNT ( * ) / + + 12 ) + 55 AS col0, + CASE + + 54 WHEN + - 51 * - MIN ( + + 39 ) * + COUNT ( * ) THEN 54 + + 33 * + + 91 / + + 27 * - + 76 WHEN + ( + MIN ( + 12 ) ) + - COUNT ( ALL + 64 ) THEN NULL WHEN - COUNT ( * ) * - + 16 THEN NULL END + + - 26
----
-5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT DISTINCT - 45 + - 89 / CAST( NULL AS SIGNED ) * + ( - NULLIF ( - 60, + 77 ) ) - 16 - - 4 * - 86 * - 6 + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT - 45 + - 89 / CAST ( NULL AS INTEGER ) * + ( - NULLIF ( - 60, + 77 ) ) - 16 - - 4 * - 86 * - 6 + - 65
----
NULL

query I rowsort
SELECT ALL ( 93 ) + - + 78 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9156
SELECT COALESCE ( - 78, + CAST( NULL AS SIGNED ) DIV 94 ) + + + 86
----
8

skipif mysql # not compatible
query I rowsort label-9156
SELECT COALESCE ( - 78, + CAST ( NULL AS INTEGER ) / 94 ) + + + 86
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL MAX( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL MAX ( DISTINCT 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL NULLIF ( - + 24, COALESCE ( - - 52, + 86, + - ( - CASE + - 20 WHEN + 4 THEN - 50 WHEN COUNT( ALL 23 ) * - - 40 * 14 THEN NULL ELSE - + COUNT( * ) END ), 62 - 1 + 22 ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL NULLIF ( - + 24, COALESCE ( - - 52, + 86, + - ( - CASE + - 20 WHEN + 4 THEN - 50 WHEN COUNT ( ALL 23 ) * - - 40 * 14 THEN NULL ELSE - + COUNT ( * ) END ), 62 - 1 + 22 ) ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query III rowsort label-9159
SELECT ALL 48 AS col2, COUNT( * ) AS col0, - 54
----
48
1
-54

skipif mysql # not compatible
query III rowsort label-9159
SELECT ALL 48 AS col2, COUNT ( * ) AS col0, - 54
----
48
1
-54

query I rowsort
SELECT ALL 15 * 7 * 68 AS col0
----
7140

query I rowsort
SELECT 19 + - - 32
----
51

query I rowsort
SELECT 90 * - 25
----
-2250

query II rowsort
SELECT 83 AS col0, + 40 + 60
----
83
100

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT ALL COUNT( * ) + - 69 + + 27 - + + NULLIF ( 34, - 90 + 95 ) * COALESCE ( - - 25, - 11 + + 53 * + 95 ) * - 84 + + 60 col2, 7 AS col1
----
71419
7

skipif mysql # not compatible
query II rowsort label-9164
SELECT ALL COUNT ( * ) + - 69 + + 27 - + + NULLIF ( 34, - 90 + 95 ) * COALESCE ( - - 25, - 11 + + 53 * + 95 ) * - 84 + + 60 col2, 7 AS col1
----
71419
7

query I rowsort
SELECT DISTINCT 62 + - + 30
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT 9 DIV + + 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9166
SELECT 9 / + + 50 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9167
SELECT COUNT( * ) DIV 39 * + COUNT( * ) + + + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9167
SELECT COUNT ( * ) / 39 * + COUNT ( * ) + + + 95 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT DISTINCT + COUNT( + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + COUNT ( + 5 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9169
SELECT + 55 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9169
SELECT + 55 / 97 AS col0
----
0

query I rowsort
SELECT ALL + 70 col2
----
70

query I rowsort
SELECT ALL + NULLIF ( + 83, + 86 ) AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT + 19 DIV + 3 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9172
SELECT + 19 / + 3 AS col2
----
6

query I rowsort
SELECT - ( - - 60 ) * 14 * + 25 - + - 38
----
-20962

query I rowsort
SELECT - ( + - 66 ) * - 29 AS col0
----
-1914

query I rowsort
SELECT ALL 52 * + + 55 + - 17 AS col1
----
2843

query I rowsort
SELECT + + 20 - - 48
----
68

query II rowsort
SELECT + + 48 AS col1, 4 AS col0
----
48
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9178
SELECT ALL + 91 AS col2, CAST( 43 AS SIGNED ) * + + MAX( + 97 ) col0
----
91
4171

skipif mysql # not compatible
query II rowsort label-9178
SELECT ALL + 91 AS col2, CAST ( 43 AS INTEGER ) * + + MAX ( + 97 ) col0
----
91
4171

onlyif mysql # aggregate syntax: 
query II rowsort label-9179
SELECT DISTINCT + + 14 AS col0, - 38 + + NULLIF ( + - MIN( + 61 ), - 46 ) + - 19 * + 63
----
14
-1296

skipif mysql # not compatible
query II rowsort label-9179
SELECT DISTINCT + + 14 AS col0, - 38 + + NULLIF ( + - MIN ( + 61 ), - 46 ) + - 19 * + 63
----
14
-1296

query I rowsort
SELECT ALL + + ( + 37 )
----
37

query II rowsort
SELECT ALL + 71, ( 11 ) AS col2
----
71
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT COUNT( * ) * - 96 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT COUNT ( * ) * - 96 AS col2
----
-96

query I rowsort
SELECT ALL + ( ( + + COALESCE ( + - 16, + 51 ) ) ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT - - 63 * - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9184
SELECT - - 63 * - COUNT ( * )
----
-63

query II rowsort
SELECT ALL + - 54 col0, 6 * - + 25
----
-54
-150

query II rowsort
SELECT ALL + 63 AS col1, 34
----
63
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9187
SELECT - ( - + CAST( - SUM( - - 71 ) AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-9187
SELECT - ( - + CAST ( - SUM ( - - 71 ) AS INTEGER ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT - MIN( DISTINCT + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9188
SELECT - MIN ( DISTINCT + 52 )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT - 75, COUNT( * ) + + CASE 40 WHEN ( - + 13 ) / + COALESCE ( COUNT( * ), 92 / COUNT( * ) + - 77 + - + 62 ) + - 6 THEN NULL ELSE + 65 * - - 87 END + - 59 * 21 + 17 + - COUNT( * ) AS col0
----
-75
4433

skipif mysql # not compatible
query II rowsort label-9189
SELECT - 75, COUNT ( * ) + + CASE 40 WHEN ( - + 13 ) / + COALESCE ( COUNT ( * ), 92 / COUNT ( * ) + - 77 + - + 62 ) + - 6 THEN NULL ELSE + 65 * - - 87 END + - 59 * 21 + 17 + - COUNT ( * ) AS col0
----
-75
4433

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9190
SELECT ALL - COUNT( * ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL - COUNT ( * ) / 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9191
SELECT - 51 * - COUNT( * ) DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9191
SELECT - 51 * - COUNT ( * ) / - 65 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT - 21 + 92 DIV + 49
----
-20

skipif mysql # not compatible
query I rowsort label-9192
SELECT - 21 + 92 / + 49
----
-20

query I rowsort
SELECT - 25 - 65
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9194
SELECT - - 30 AS col2, - COUNT( * ) + + + 89
----
30
88

skipif mysql # not compatible
query II rowsort label-9194
SELECT - - 30 AS col2, - COUNT ( * ) + + + 89
----
30
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - + MAX( - - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-9195
SELECT - + MAX ( - - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-9196
SELECT ALL + - 91 + + - 9 * + + 32 * + 71 col0, CASE - + 87 WHEN 43 THEN + COUNT( * ) * + COUNT( * ) WHEN + 95 THEN NULL END col2
----
-20539
NULL

skipif mysql # not compatible
query II rowsort label-9196
SELECT ALL + - 91 + + - 9 * + + 32 * + 71 col0, CASE - + 87 WHEN 43 THEN + COUNT ( * ) * + COUNT ( * ) WHEN + 95 THEN NULL END col2
----
-20539
NULL

query II rowsort
SELECT - - 60 AS col0, - 27 AS col0
----
60
-27

query II rowsort
SELECT - 76, ( + + 0 ) * + 53 + + 72 - 74 col2
----
-76
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT - 21 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT - 21 / - 86
----
0

query I rowsort
SELECT + 39 * + 89
----
3471

query I rowsort
SELECT - NULLIF ( - 47, 38 )
----
47

query II rowsort
SELECT ALL ( - 90 ) AS col1, 14
----
-90
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT ALL CAST( + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL CAST ( + 77 AS INTEGER )
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-9204
SELECT - 86 + + - 38 col1, 47 DIV + 98
----
-124
0

skipif mysql # not compatible
query II rowsort label-9204
SELECT - 86 + + - 38 col1, 47 / + 98
----
-124
0

query I rowsort
SELECT - 62 + + 94
----
32

query II rowsort
SELECT - 79 * + 35, + 90 + + ( + - 78 ) + 28 col2
----
-2765
40

query II rowsort
SELECT ALL ( + 96 ) AS col2, + 88 AS col0
----
96
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9208
SELECT + 55 - 70 DIV + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-9208
SELECT + 55 - 70 / + COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT DISTINCT + ( + 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL 43 * - + 66 * - + 27 * COUNT( * ) col2
----
76626

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL 43 * - + 66 * - + 27 * COUNT ( * ) col2
----
76626

onlyif mysql # DIV for integer division: 
query I rowsort label-9211
SELECT - 10 DIV - 44 * - 63 + + 85 + - 93 DIV + 24 * 94 DIV 75
----
82

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 10 / - 44 * - 63 + + 85 + - 93 / + 24 * 94 / 75
----
82

query I rowsort
SELECT + ( - - COALESCE ( + 71, - 37 ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - 96 + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9213
SELECT - 96 + - COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL 7 * - COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL 7 * - COUNT ( * ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9215
SELECT + 13 * 69 AS col2, - COUNT( * ) + + + COUNT( * )
----
897
0

skipif mysql # not compatible
query II rowsort label-9215
SELECT + 13 * 69 AS col2, - COUNT ( * ) + + + COUNT ( * )
----
897
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9216
SELECT DISTINCT 98 * 35 AS col2, - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * + 42 + 43
----
3430
43

skipif mysql # not compatible
query II rowsort label-9216
SELECT DISTINCT 98 * 35 AS col2, - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 42 + 43
----
3430
43

query I rowsort
SELECT DISTINCT + - 25 AS col0
----
-25

query I rowsort
SELECT ALL + + 43
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-9219
SELECT DISTINCT - 70 DIV + 71 + 40 * 96 DIV - 77, + 58 - - + 13 AS col2
----
-49
71

skipif mysql # not compatible
query II rowsort label-9219
SELECT DISTINCT - 70 / + 71 + 40 * 96 / - 77, + 58 - - + 13 AS col2
----
-49
71

query I rowsort
SELECT - 10 + + COALESCE ( 65, 80 * 62 ) * 53 * + 95 + + + 56
----
327321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9221
SELECT ALL - + CAST( NULL AS SIGNED ) * 26 * + 75 + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - + CAST ( NULL AS INTEGER ) * 26 * + 75 + 92
----
NULL

query I rowsort
SELECT - - COALESCE ( - 29, + 64, - 64, + 76 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT ALL - CAST( 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - CAST ( 40 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT 22 * 97 + + - COUNT( * ) AS col1
----
2133

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT 22 * 97 + + - COUNT ( * ) AS col1
----
2133

query I rowsort
SELECT - 99 + 66 + - - 40
----
7

query I rowsort
SELECT + 10 + - - ( - - 41 ) AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9227
SELECT - MAX( DISTINCT CAST( + 13 AS SIGNED ) )
----
-13

skipif mysql # not compatible
query I rowsort label-9227
SELECT - MAX ( DISTINCT CAST ( + 13 AS INTEGER ) )
----
-13

query I rowsort
SELECT ALL + ( + + 0 ) - + CASE - ( + 17 ) WHEN - 28 * NULLIF ( 93, - + 27 ) + + 74 - - 70 THEN - 66 WHEN + + 29 - + 0 THEN NULL END
----
NULL

query I rowsort
SELECT 25 + - 24 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9230
SELECT DISTINCT COUNT( - + 27 ) DIV + 28 col1, + CAST( + 88 AS SIGNED ) * - - 53 * + ( - COUNT( * ) ) AS col0
----
0
-4664

skipif mysql # not compatible
query II rowsort label-9230
SELECT DISTINCT COUNT ( - + 27 ) / + 28 col1, + CAST ( + 88 AS INTEGER ) * - - 53 * + ( - COUNT ( * ) ) AS col0
----
0
-4664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9231
SELECT ALL 9 AS col2, CAST( - 16 AS SIGNED ) * + 96 + + 35
----
9
-1501

skipif mysql # not compatible
query II rowsort label-9231
SELECT ALL 9 AS col2, CAST ( - 16 AS INTEGER ) * + 96 + + 35
----
9
-1501

query I rowsort
SELECT ALL - 95 * - 69 AS col1
----
6555

query I rowsort
SELECT 44 + 21 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT 51 * CAST( + + AVG ( ALL + COALESCE ( 84, + 85 ) ) AS SIGNED ) AS col2
----
4284

skipif mysql # not compatible
query I rowsort label-9234
SELECT 51 * CAST ( + + AVG ( ALL + COALESCE ( 84, + 85 ) ) AS INTEGER ) AS col2
----
4284

query I rowsort
SELECT 60 * 46
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL - SUM( + 18 ) * + 82 col2
----
-1476

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL - SUM ( + 18 ) * + 82 col2
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT AVG ( DISTINCT 38 ) + - - CASE + - 92 WHEN 17 - - - COUNT( * ) + - - 11 THEN - 10 WHEN - 46 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT AVG ( DISTINCT 38 ) + - - CASE + - 92 WHEN 17 - - - COUNT ( * ) + - - 11 THEN - 10 WHEN - 46 THEN NULL END col1
----
NULL

query II rowsort
SELECT ALL 30, 80 col2
----
30
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9239
SELECT ( - - 19 ) DIV + CAST( + + 95 AS SIGNED ) + + 12 * - 58 * + 89 + + + COUNT( + - NULLIF ( + - 25, + 78 ) ) + - 51 * + - 76 AS col2
----
-58067

skipif mysql # not compatible
query I rowsort label-9239
SELECT ( - - 19 ) / + CAST ( + + 95 AS INTEGER ) + + 12 * - 58 * + 89 + + + COUNT ( + - NULLIF ( + - 25, + 78 ) ) + - 51 * + - 76 AS col2
----
-58067

query I rowsort
SELECT 50 * - + 70
----
-3500

query II rowsort
SELECT ALL - 24 AS col2, 11
----
-24
11

query II rowsort
SELECT 38 AS col2, + 55
----
38
55

query I rowsort
SELECT ALL - ( + 72 ) AS col1
----
-72

query I rowsort
SELECT DISTINCT - + 66 AS col1
----
-66

query I rowsort
SELECT ALL 70 * 64
----
4480

query I rowsort
SELECT DISTINCT - - 87 + - NULLIF ( 63, - 86 * + 69 + - + 46 ) * - 9
----
654

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - COUNT( ALL - + 6 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9247
SELECT - COUNT ( ALL - + 6 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT 77 * MAX( 67 ) + 5 - - 98 + - 33 col2
----
5229

skipif mysql # not compatible
query I rowsort label-9248
SELECT 77 * MAX ( 67 ) + 5 - - 98 + - 33 col2
----
5229

query I rowsort
SELECT - 24 + + 34
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT + + CAST( 11 AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9250
SELECT + + CAST ( 11 AS INTEGER ) AS col2
----
11

query I rowsort
SELECT ALL 73 + - CASE - + 2 WHEN - + 38 THEN - 13 WHEN - 45 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL - NULLIF ( - 17, + - 11 * + 52 + - - CASE 61 WHEN + - 78 + - COUNT( * ) THEN NULL WHEN - 60 THEN + 23 + - 54 * + MIN( ALL - + 49 ) ELSE NULL END + - 77 + 37 + - 94 * NULLIF ( - COUNT( * ), + 46 / - COALESCE ( - 57, 28 ) * - + 21 * - 69 + + COUNT( * ) ) - + 60 * + 11 + 47 + 41 ) + + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - NULLIF ( - 17, + - 11 * + 52 + - - CASE 61 WHEN + - 78 + - COUNT ( * ) THEN NULL WHEN - 60 THEN + 23 + - 54 * + MIN ( ALL - + 49 ) ELSE NULL END + - 77 + 37 + - 94 * NULLIF ( - COUNT ( * ), + 46 / - COALESCE ( - 57, 28 ) * - + 21 * - 69 + + COUNT ( * ) ) - + 60 * + 11 + 47 + 41 ) + + COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT - - MIN( ALL - - 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT - - MIN ( ALL - - 69 ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT DISTINCT + 47 + + - 49 * - CASE + + 51 WHEN 56 * - COUNT( * ) + - 63 THEN - 3 ELSE NULL END - - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + 47 + + - 49 * - CASE + + 51 WHEN 56 * - COUNT ( * ) + - 63 THEN - 3 ELSE NULL END - - 70 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT - + 73 * + COUNT( * ) - + MIN( DISTINCT 46 ) + CAST( + ( COUNT( * ) ) AS SIGNED ) AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-9255
SELECT - + 73 * + COUNT ( * ) - + MIN ( DISTINCT 46 ) + CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col2
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT ALL 0 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL 0 / + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL 39 + + ( + MAX( ALL 93 ) )
----
132

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL 39 + + ( + MAX ( ALL 93 ) )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT + MAX( ALL - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-9258
SELECT + MAX ( ALL - 68 )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9259
SELECT + 22 * ( + + 66 ) DIV - 37
----
-39

skipif mysql # not compatible
query I rowsort label-9259
SELECT + 22 * ( + + 66 ) / - 37
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT 38 * + CAST( + + 13 AS SIGNED ) * + 65 + NULLIF ( + 3, SUM( DISTINCT - - 62 ) / 71 * 27 )
----
32113

skipif mysql # not compatible
query I rowsort label-9260
SELECT 38 * + CAST ( + + 13 AS INTEGER ) * + 65 + NULLIF ( + 3, SUM ( DISTINCT - - 62 ) / 71 * 27 )
----
32113

onlyif mysql # DIV for integer division: 
query I rowsort label-9261
SELECT ALL - 64 DIV - 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - 64 / - 43 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL COUNT( + 98 ) - - + 42 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL COUNT ( + 98 ) - - + 42 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT NULLIF ( 18, + 84 ) * + - COUNT( * ) * + ( 70 )
----
-1260

skipif mysql # not compatible
query I rowsort label-9263
SELECT NULLIF ( 18, + 84 ) * + - COUNT ( * ) * + ( 70 )
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL COUNT( * ) * ( MIN( DISTINCT - 85 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL COUNT ( * ) * ( MIN ( DISTINCT - 85 ) )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9265
SELECT 60 DIV COUNT( * ) * + 25 * - 23
----
-34500

skipif mysql # not compatible
query I rowsort label-9265
SELECT 60 / COUNT ( * ) * + 25 * - 23
----
-34500

query I rowsort
SELECT DISTINCT 67 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9267
SELECT 34 + + 41 + 90 DIV + - ( + 70 ) AS col0, 2 - + - COUNT( ALL + 68 ) * + 66 * ( - 68 ) col0
----
74
-4486

skipif mysql # not compatible
query II rowsort label-9267
SELECT 34 + + 41 + 90 / + - ( + 70 ) AS col0, 2 - + - COUNT ( ALL + 68 ) * + 66 * ( - 68 ) col0
----
74
-4486

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT ALL + 37 DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + 37 / - 61 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9269
SELECT CAST( + + 78 AS SIGNED ) DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-9269
SELECT CAST ( + + 78 AS INTEGER ) / 65
----
1

query I rowsort
SELECT DISTINCT 78 col0
----
78

query I rowsort
SELECT DISTINCT 89 + + - 34 * - + 44 AS col0
----
1585

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT 67 * - 10 + + + COUNT( * )
----
-669

skipif mysql # not compatible
query I rowsort label-9272
SELECT 67 * - 10 + + + COUNT ( * )
----
-669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9273
SELECT ALL ( CAST( + - 32 AS SIGNED ) ) * + - CASE - 82 WHEN + 88 + - MIN( + 67 ) + - - COALESCE ( - - 62, - + 7 - + 77 + + COUNT( * ), - 24 ) THEN - 21 + 76 END + + + 54 * - 63 - - 48 - + + COUNT( + + 26 ) + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL ( CAST ( + - 32 AS INTEGER ) ) * + - CASE - 82 WHEN + 88 + - MIN ( + 67 ) + - - COALESCE ( - - 62, - + 7 - + 77 + + COUNT ( * ), - 24 ) THEN - 21 + 76 END + + + 54 * - 63 - - 48 - + + COUNT ( + + 26 ) + 48
----
NULL

query I rowsort
SELECT DISTINCT + - 22 * - 45 * - 15 AS col0
----
-14850

query I rowsort
SELECT ALL 9 * - - 11 + + 52 col0
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT - 93 DIV + 72 - + - 10 + - 29
----
-20

skipif mysql # not compatible
query I rowsort label-9276
SELECT - 93 / + 72 - + - 10 + - 29
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT 31 * + 9 + 71 + + + 21 + - + COUNT( * ) + + + 36 * - + 77 col2
----
-2402

skipif mysql # not compatible
query I rowsort label-9277
SELECT 31 * + 9 + 71 + + + 21 + - + COUNT ( * ) + + + 36 * - + 77 col2
----
-2402

query I rowsort
SELECT DISTINCT - - 5 AS col2
----
5

query I rowsort
SELECT DISTINCT 88 * - + 7 + 48 + + + 85 col0
----
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL + 85 + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + 85 + + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT + - NULLIF ( + COUNT( * ), COALESCE ( + 3, + + 33, + 86 ) + - COUNT( ALL + 63 ) ) * ( 68 ) + + - 41 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-9281
SELECT + - NULLIF ( + COUNT ( * ), COALESCE ( + 3, + + 33, + 86 ) + - COUNT ( ALL + 63 ) ) * ( 68 ) + + - 41 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT + + ( 10 ), + 88 * - - COUNT( * ) AS col1
----
10
88

skipif mysql # not compatible
query II rowsort label-9282
SELECT + + ( 10 ), + 88 * - - COUNT ( * ) AS col1
----
10
88

query I rowsort
SELECT + 12 col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9284
SELECT - NULLIF ( - + 12, 48 ) + - + 14 + CAST( + - 67 AS SIGNED ) + - 28 * + 26 AS col1
----
-797

skipif mysql # not compatible
query I rowsort label-9284
SELECT - NULLIF ( - + 12, 48 ) + - + 14 + CAST ( + - 67 AS INTEGER ) + - 28 * + 26 AS col1
----
-797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT ALL CASE - + 59 WHEN 58 * + 28 * - 49 - - 77 / + + 10 - 2 THEN - + 43 / 15 + + MAX( + 55 ) + + CAST( NULL AS SIGNED ) + - 99 - 40 - AVG ( DISTINCT + 75 ) + ( + 39 ) * + 95 * - 22 / + 66 WHEN - - 27 * 49 * - + ( + COUNT( * ) ) + - 38 * 64 + - 63 THEN COUNT( * ) / 10 + + 7 + - 44 END - - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL CASE - + 59 WHEN 58 * + 28 * - 49 - - 77 / + + 10 - 2 THEN - + 43 / 15 + + MAX ( + 55 ) + + CAST ( NULL AS INTEGER ) + - 99 - 40 - AVG ( DISTINCT + 75 ) + ( + 39 ) * + 95 * - 22 / + 66 WHEN - - 27 * 49 * - + ( + COUNT ( * ) ) + - 38 * 64 + - 63 THEN COUNT ( * ) / 10 + + 7 + - 44 END - - - 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT ALL + 83 AS col2, COUNT( * ) AS col0
----
83
1

skipif mysql # not compatible
query II rowsort label-9286
SELECT ALL + 83 AS col2, COUNT ( * ) AS col0
----
83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ALL + SUM( 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL + SUM ( 68 ) AS col1
----
68

query I rowsort
SELECT + 80 + - 89 + 22 AS col2
----
13

query I rowsort
SELECT + 39 * - 55 * + 64 AS col1
----
-137280

query I rowsort
SELECT DISTINCT COALESCE ( 30, 41 )
----
30

query I rowsort
SELECT ALL CASE 73 WHEN + 49 THEN - 75 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT - 3 DIV 1
----
-3

skipif mysql # not compatible
query I rowsort label-9292
SELECT - 3 / 1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9293
SELECT + 9 + + + 52 * - + MAX( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT + 9 + + + 52 * - + MAX ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 79 * + + 16
----
-1264

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT - MAX( ALL 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9295
SELECT - MAX ( ALL 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT + 61 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT + 61 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + 79 + COALESCE ( COUNT( * ), + 26 )
----
80

skipif mysql # not compatible
query I rowsort label-9297
SELECT + 79 + COALESCE ( COUNT ( * ), + 26 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL 43 * + - NULLIF ( + ( + - NULLIF ( + + 39, - + 99 - - 51 - - 52 / 83 * - + 22 * - + 61 - - 78 ) ), - + ( + 15 ) / - SUM( + ( + 71 ) ) * + - 66 )
----
1677

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL 43 * + - NULLIF ( + ( + - NULLIF ( + + 39, - + 99 - - 51 - - 52 / 83 * - + 22 * - + 61 - - 78 ) ), - + ( + 15 ) / - SUM ( + ( + 71 ) ) * + - 66 )
----
1677

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT + COUNT( * ) * + COALESCE ( + 87, - + 75 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9299
SELECT + COUNT ( * ) * + COALESCE ( + 87, - + 75 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL ( - 22 ) + + MAX( 62 ) * - 29
----
-1820

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL ( - 22 ) + + MAX ( 62 ) * - 29
----
-1820

query I rowsort
SELECT ALL 37 + + 74 AS col2
----
111

query I rowsort
SELECT - COALESCE ( + + 74, - NULLIF ( + + 6, - + 21 ) * - 46 )
----
-74

query I rowsort
SELECT ALL + 14 + 66 * ( + 48 ) col0
----
3182

query I rowsort
SELECT + ( 87 ) * + 58 AS col1
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL MIN( - 93 ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL MIN ( - 93 ) col0
----
-93

query I rowsort
SELECT - ( 27 )
----
-27

query I rowsort
SELECT DISTINCT 42 + + 29
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT - COALESCE ( - COUNT( * ), - 81 * + 10 - 58, - 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9308
SELECT - COALESCE ( - COUNT ( * ), - 81 * + 10 - 58, - 33 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT + ( - COUNT( * ) ) * + 59 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9309
SELECT + ( - COUNT ( * ) ) * + 59 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - 89 + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-9310
SELECT - 89 + COUNT ( * ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT - ( NULLIF ( 7, COUNT( * ) ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9311
SELECT - ( NULLIF ( 7, COUNT ( * ) ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT ALL COUNT( * ) DIV + 57 + 55 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL COUNT ( * ) / + 57 + 55 AS col2
----
55

query I rowsort
SELECT ( 2 )
----
2

query I rowsort
SELECT - 53 * 50
----
-2650

query I rowsort
SELECT ALL - 89 * + 22 - + 41
----
-1999

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - MAX( - CASE 60 WHEN - 67 THEN + 42 END ) * COUNT( * ) + - 99 / 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT - MAX ( - CASE 60 WHEN - 67 THEN + 42 END ) * COUNT ( * ) + - 99 / 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9317
SELECT - 5 DIV COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9317
SELECT - 5 / COUNT ( * )
----
-5

query I rowsort
SELECT + 17 * ( - 61 )
----
-1037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9319
SELECT - 23 * CAST( 97 * CASE 40 WHEN 93 + - 17 / 82 THEN 8 * ( 29 ) ELSE + 30 + + 45 * + MIN( - 84 * ( + 45 ) ) END AS SIGNED )
----
379426170

skipif mysql # not compatible
query I rowsort label-9319
SELECT - 23 * CAST ( 97 * CASE 40 WHEN 93 + - 17 / 82 THEN 8 * ( 29 ) ELSE + 30 + + 45 * + MIN ( - 84 * ( + 45 ) ) END AS INTEGER )
----
379426170

query I rowsort
SELECT ALL - 71 * 21 AS col1
----
-1491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9321
SELECT + CAST( 44 AS SIGNED ) * + COUNT( * ) - + 19
----
25

skipif mysql # not compatible
query I rowsort label-9321
SELECT + CAST ( 44 AS INTEGER ) * + COUNT ( * ) - + 19
----
25

query I rowsort
SELECT ( 65 )
----
65

query I rowsort
SELECT ( 4 )
----
4

query I rowsort
SELECT 17 * + 59 + - 10
----
993

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT - 75 / - CASE + COALESCE ( ( 42 ), + CASE 83 WHEN 95 + 94 THEN + AVG ( 32 ) END, 83, MAX( ALL + 52 ) / 70 ) WHEN + 57 * - 72 THEN 47 * - 71 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT - 75 / - CASE + COALESCE ( ( 42 ), + CASE 83 WHEN 95 + 94 THEN + AVG ( 32 ) END, 83, MAX ( ALL + 52 ) / 70 ) WHEN + 57 * - 72 THEN 47 * - 71 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 87 * 53
----
-4611

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9327
SELECT - 93 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT - 93 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + MIN( ALL + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9328
SELECT + MIN ( ALL + 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL + ( + ( COUNT( 88 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + ( + ( COUNT ( 88 ) ) ) AS col2
----
1

query I rowsort
SELECT - 63 * 99
----
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL + COUNT( * ) * + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + COUNT ( * ) * + 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT NULLIF ( MIN( + 52 ), - 67 + 11 * + ( COALESCE ( COUNT( * ), 19 + + 19 * + 80, 44 ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-9332
SELECT NULLIF ( MIN ( + 52 ), - 67 + 11 * + ( COALESCE ( COUNT ( * ), 19 + + 19 * + 80, 44 ) ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT ALL + MIN( - 50 ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL + MIN ( - 50 ) col0
----
-50

query I rowsort
SELECT - 51 * + 6 - + 93
----
-399

query I rowsort
SELECT ALL + ( 98 ) AS col0
----
98

query I rowsort
SELECT DISTINCT 44 * 9
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT COALESCE ( 2, - COUNT( * ), - 57 * 84 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9337
SELECT COALESCE ( 2, - COUNT ( * ), - 57 * 84 ) AS col1
----
2

query I rowsort
SELECT + 85 * - 95 AS col0
----
-8075

query I rowsort
SELECT - 97 * 1
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT DISTINCT - 36 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT - 36 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT SUM( DISTINCT + ( 76 ) ) col1
----
76

skipif mysql # not compatible
query I rowsort label-9341
SELECT SUM ( DISTINCT + ( 76 ) ) col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT - 49 DIV - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9342
SELECT - 49 / - 61 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9343
SELECT ALL + 26 * 5 + ( CAST( - MAX( ALL + 81 ) AS DECIMAL ) + - 8 ) * - ( CASE MAX( 40 ) WHEN - COALESCE ( 75, 31, - MIN( ALL + 85 ) ) THEN NULL WHEN + 48 THEN NULL WHEN MIN( 34 ) * ( - 98 * - 81 + + ( + 47 ) ) THEN + 40 + CAST( 92 AS SIGNED ) * ( + ( COUNT( * ) ) + + 83 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL + 26 * 5 + ( CAST ( - MAX ( ALL + 81 ) AS REAL ) + - 8 ) * - ( CASE MAX ( 40 ) WHEN - COALESCE ( 75, 31, - MIN ( ALL + 85 ) ) THEN NULL WHEN + 48 THEN NULL WHEN MIN ( 34 ) * ( - 98 * - 81 + + ( + 47 ) ) THEN + 40 + CAST ( 92 AS INTEGER ) * ( + ( COUNT ( * ) ) + + 83 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT + 91 + - 26
----
65

query I rowsort
SELECT ALL 37 + - 9 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT SUM( ALL 63 )
----
63

skipif mysql # not compatible
query I rowsort label-9346
SELECT SUM ( ALL 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL + 73 + CASE MIN( ALL + 12 ) + 89 / - 2 WHEN 23 + + 47 THEN - 63 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + 73 + CASE MIN ( ALL + 12 ) + 89 / - 2 WHEN 23 + + 47 THEN - 63 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9348
SELECT + 19 DIV COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9348
SELECT + 19 / COUNT ( * ) AS col1
----
19

query I rowsort
SELECT - 31 * - 36
----
1116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT + CAST( - 20 AS SIGNED ) * 73
----
-1460

skipif mysql # not compatible
query I rowsort label-9350
SELECT + CAST ( - 20 AS INTEGER ) * 73
----
-1460

query I rowsort
SELECT ALL 1 + 45
----
46

query I rowsort
SELECT - NULLIF ( 55, 68 + + 27 / - CASE 24 WHEN 97 * + 25 + + 46 THEN - 99 + 62 * 84 ELSE NULL END ) + + 94 * 44
----
4081

query I rowsort
SELECT - ( 34 )
----
-34

query I rowsort
SELECT - ( + 17 ) + - 24 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT + COUNT( * ) * - 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9355
SELECT + COUNT ( * ) * - 26 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT ALL CAST( NULL AS SIGNED ) * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL CAST ( NULL AS INTEGER ) * - 37
----
NULL

query I rowsort
SELECT + 77 + - 88 col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT + COUNT( * ) * - 30 col0
----
-30

skipif mysql # not compatible
query I rowsort label-9358
SELECT + COUNT ( * ) * - 30 col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT - + COUNT( ALL + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-9359
SELECT - + COUNT ( ALL + 95 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + ( - COUNT( * ) ) + + 58 * - 24 AS col2
----
-1393

skipif mysql # not compatible
query I rowsort label-9360
SELECT + ( - COUNT ( * ) ) + + 58 * - 24 AS col2
----
-1393

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ALL MAX( ALL 72 )
----
72

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL MAX ( ALL 72 )
----
72

query I rowsort
SELECT ALL - 29 * 5 col1
----
-145

query I rowsort
SELECT + + 23 + 95
----
118

query I rowsort
SELECT ALL + 18 * 40
----
720

query I rowsort
SELECT - 46 * 89 + 43
----
-4051

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9366
SELECT + COUNT( - 77 ) DIV - 5 + - 59 * + 1 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9366
SELECT + COUNT ( - 77 ) / - 5 + - 59 * + 1 AS col2
----
-59

query I rowsort
SELECT ALL + - 10 AS col0
----
-10

query I rowsort
SELECT 88 * 24 col0
----
2112

query I rowsort
SELECT 34 + + 35 * ( 13 )
----
489

query I rowsort
SELECT ( 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT - CAST( 82 AS SIGNED ) + + 55 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9371
SELECT - CAST ( 82 AS INTEGER ) + + 55 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT 67 * SUM( 92 ) AS col0
----
6164

skipif mysql # not compatible
query I rowsort label-9372
SELECT 67 * SUM ( 92 ) AS col0
----
6164

query I rowsort
SELECT DISTINCT - - 94 AS col0
----
94

query I rowsort
SELECT ALL - 53 * - NULLIF ( - 18 * 49, COALESCE ( - 95, 88 + 47 * - 54, 99, 45 ) )
----
-46746

query I rowsort
SELECT + 43 + + 13 AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT ALL 21 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL 21 / 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - 84 * - + 59 * MIN( DISTINCT - 90 ) + - MAX( - 88 ) AS col0
----
-445952

skipif mysql # not compatible
query I rowsort label-9377
SELECT - 84 * - + 59 * MIN ( DISTINCT - 90 ) + - MAX ( - 88 ) AS col0
----
-445952

query I rowsort
SELECT ALL + 77 + - CASE 41 WHEN 89 + - 85 THEN NULLIF ( 80, - NULLIF ( + ( 62 ), - 84 + - 77 ) ) * 25 WHEN 28 THEN NULLIF ( 52, 43 ) END
----
NULL

query I rowsort
SELECT + 65 * - 21 - - 89 AS col2
----
-1276

query I rowsort
SELECT 44 + - - ( + 65 ) col1
----
109

query I rowsort
SELECT DISTINCT - 32 + 75 + - 28 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT ALL + 78 + 62 DIV 74 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL + 78 + 62 / 74 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT DISTINCT - SUM( 71 ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT - SUM ( 71 ) col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT 79 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT 79 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT 88 + CAST( - 49 AS SIGNED ) - - COUNT( * ) * NULLIF ( + NULLIF ( 73, - ( 59 ) + 87 * + 63 ) + + 24, + 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT 88 + CAST ( - 49 AS INTEGER ) - - COUNT ( * ) * NULLIF ( + NULLIF ( 73, - ( 59 ) + 87 * + 63 ) + + 24, + 97 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 15 + + + 93 + 3 AS col0
----
81

query I rowsort
SELECT 95 * - 93 * + 51 AS col1
----
-450585

query I rowsort
SELECT ALL - 88 * 74
----
-6512

query I rowsort
SELECT ( - 34 ) + - 74 AS col0
----
-108

query I rowsort
SELECT 41 * - 70 + - 57
----
-2927

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT - COALESCE ( + NULLIF ( 35, + NULLIF ( 35, COUNT( * ) ) ), - COUNT( * ), ( 39 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9391
SELECT - COALESCE ( + NULLIF ( 35, + NULLIF ( 35, COUNT ( * ) ) ), - COUNT ( * ), ( 39 ) ) AS col1
----
1

query I rowsort
SELECT ALL + 33 - 34 + + 33
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT - 0 - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT - 0 - + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT DISTINCT - SUM( ALL - 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - SUM ( ALL - 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT - SUM( DISTINCT + - 83 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-9395
SELECT - SUM ( DISTINCT + - 83 ) col2
----
83

query I rowsort
SELECT - 24 * - 86 AS col0
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT MAX( + + 30 ) - + 87 col1
----
-57

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT MAX ( + + 30 ) - + 87 col1
----
-57

query I rowsort
SELECT - + CASE - - 35 WHEN - 35 * 81 THEN 75 + - 99 * - 98 ELSE + 40 END
----
-40

query I rowsort
SELECT - - ( - ( - 60 ) )
----
60

query I rowsort
SELECT - - 90 AS col1
----
90

query I rowsort
SELECT + 91 * - 88
----
-8008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9402
SELECT ALL + COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL + COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9403
SELECT + 0 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT + 0 / - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 56 * - 50
----
2800

query I rowsort
SELECT ALL - - 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT DISTINCT - COALESCE ( COUNT( * ), - 36, 26 * + 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT - COALESCE ( COUNT ( * ), - 36, 26 * + 19 )
----
-1

query I rowsort
SELECT DISTINCT + 12 * - + 63 * + 17
----
-12852

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT DISTINCT - 54 + - - 69 DIV 36
----
-53

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - 54 + - - 69 / 36
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9409
SELECT COUNT( * ) DIV + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT COUNT ( * ) / + 39 AS col2
----
0

query I rowsort
SELECT 79 + 77 * + 54 * - 21
----
-87239

query I rowsort
SELECT ALL 62 + - 30 AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9412
SELECT 87 AS col1, - 7 + + MIN( - 6 )
----
87
-13

skipif mysql # not compatible
query II rowsort label-9412
SELECT 87 AS col1, - 7 + + MIN ( - 6 )
----
87
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT 92 * + COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT 92 * + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT DISTINCT 67 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT 67 / 65
----
1

query I rowsort
SELECT ALL 26 + + - 39 AS col2
----
-13

query I rowsort
SELECT 10 * + 68 - - 37
----
717

query I rowsort
SELECT CASE + NULLIF ( + + 23, 99 * 13 ) WHEN 39 + 67 THEN 84 + + 77 END - ( - 92 ) / 44 AS col0
----
NULL

query I rowsort
SELECT 95 * + 78 col1
----
7410

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT 19 * + - 97 * COUNT( * )
----
-1843

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT 19 * + - 97 * COUNT ( * )
----
-1843

query I rowsort
SELECT 4 * - 79 AS col0
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT 7 * COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-9421
SELECT 7 * COUNT ( * )
----
7

query I rowsort
SELECT ALL 66 * + 87 col0
----
5742

query II rowsort
SELECT ALL 6, - 60 + + 46 AS col1
----
6
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT MIN( - 24 ) * + + 68 - 31
----
-1663

skipif mysql # not compatible
query I rowsort label-9424
SELECT MIN ( - 24 ) * + + 68 - 31
----
-1663

onlyif mysql # aggregate syntax: 
query II rowsort label-9425
SELECT ALL 45, MAX( + - 8 ) - + ( + 86 ) col2
----
45
-94

skipif mysql # not compatible
query II rowsort label-9425
SELECT ALL 45, MAX ( + - 8 ) - + ( + 86 ) col2
----
45
-94

query II rowsort
SELECT ALL 90 AS col1, - 93
----
90
-93

query I rowsort
SELECT ALL - 12 * + 44 + 69 AS col0
----
-459

query I rowsort
SELECT ALL COALESCE ( - ( + 67 ), - 95 + 92 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - + COUNT( * ) + 46 * - COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9429
SELECT - + COUNT ( * ) + 46 * - COUNT ( * ) AS col1
----
-47

query I rowsort
SELECT - - 57 * + + 78
----
4446

query I rowsort
SELECT - - 46 + 33 * + 22 * - 20 AS col2
----
-14474

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT - + 41 - COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9432
SELECT - + 41 - COUNT ( * ) AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9433
SELECT - CASE + + 67 WHEN + CAST( NULL AS SIGNED ) * 57 + - 35 THEN NULL WHEN COUNT( DISTINCT 44 ) + 49 THEN 99 + + SUM( DISTINCT 87 ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT - CASE + + 67 WHEN + CAST ( NULL AS INTEGER ) * 57 + - 35 THEN NULL WHEN COUNT ( DISTINCT 44 ) + 49 THEN 99 + + SUM ( DISTINCT 87 ) END * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 8 * + 27 + - - COALESCE ( 1, 63, - 40 * 61 ) + 34
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT - 16 + + 66 + + - 23 + + COUNT( * ) * + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT - 16 + + 66 + + - 23 + + COUNT ( * ) * + COUNT ( * ) AS col1
----
28

query I rowsort
SELECT - 11 + - + 50 + 11 - 44 * + 27
----
-1238

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT ALL COUNT( * ) AS col2, 35
----
1
35

skipif mysql # not compatible
query II rowsort label-9437
SELECT ALL COUNT ( * ) AS col2, 35
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - COUNT( * ) + - 34
----
-35

skipif mysql # not compatible
query I rowsort label-9438
SELECT - COUNT ( * ) + - 34
----
-35

query I rowsort
SELECT ALL + - 3 * + - 6 + - 54 * 58
----
-3114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9440
SELECT + CASE + 98 WHEN + + COUNT( - 6 ) THEN CAST( NULL AS SIGNED ) WHEN + 17 * 73 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT + CASE + 98 WHEN + + COUNT ( - 6 ) THEN CAST ( NULL AS INTEGER ) WHEN + 17 * 73 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9441
SELECT 70, MIN( 99 ) + 70 AS col1
----
70
169

skipif mysql # not compatible
query II rowsort label-9441
SELECT 70, MIN ( 99 ) + 70 AS col1
----
70
169

query I rowsort
SELECT + + NULLIF ( + 53, 49 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL + COUNT( DISTINCT ( + + 49 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL + COUNT ( DISTINCT ( + + 49 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT COALESCE ( - COUNT( * ), + ( - 32 ), ( ( ( 49 ) ) ) * - ( + 88 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9444
SELECT COALESCE ( - COUNT ( * ), + ( - 32 ), ( ( ( 49 ) ) ) * - ( + 88 ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT ( + - 95 ) * 94 + 96
----
-8834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL 13 * ( - COUNT( * ) ) + + - 96 + 32 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL 13 * ( - COUNT ( * ) ) + + - 96 + 32 AS col1
----
-77

query I rowsort
SELECT DISTINCT 79 * + 79 AS col1
----
6241

query I rowsort
SELECT DISTINCT + COALESCE ( 99, ( ( + 98 ) ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT + COUNT( * ) * - 49
----
-49

skipif mysql # not compatible
query I rowsort label-9450
SELECT + COUNT ( * ) * - 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT CASE - + 62 WHEN + 98 THEN - NULLIF ( - COALESCE ( + ( MIN( 41 ) ), 68 - - 55 * + ( - 10 ) ), 25 ) WHEN 22 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT CASE - + 62 WHEN + 98 THEN - NULLIF ( - COALESCE ( + ( MIN ( 41 ) ), 68 - - 55 * + ( - 10 ) ), 25 ) WHEN 22 THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 15 * - 44 + 72 * + - 80 AS col1
----
-6420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9453
SELECT + SUM( ALL 8 ) - - CAST( NULL AS SIGNED ) + - 47 - + 78 / 33 / - 79 * - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT + SUM ( ALL 8 ) - - CAST ( NULL AS INTEGER ) + - 47 - + 78 / 33 / - 79 * - 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9454
SELECT + ( + - COUNT( * ) ) * - 74 DIV + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9454
SELECT + ( + - COUNT ( * ) ) * - 74 / + COUNT ( * ) AS col2
----
74

query I rowsort
SELECT ALL + 33 col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT MAX( + + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-9456
SELECT MAX ( + + 27 )
----
27

query I rowsort
SELECT + 60 + - 97 AS col1
----
-37

query I rowsort
SELECT DISTINCT 93 * 40 - - 10 + + 39
----
3769

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9459
SELECT + CAST( - - 33 AS SIGNED ) + + + 85 + + 52 DIV 47 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-9459
SELECT + CAST ( - - 33 AS INTEGER ) + + + 85 + + 52 / 47 AS col2
----
119

query I rowsort
SELECT + ( - 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9461
SELECT ALL + COUNT( * ) * 33 + - 33 / - COUNT( * ) + MIN( CAST( NULL AS SIGNED ) + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + COUNT ( * ) * 33 + - 33 / - COUNT ( * ) + MIN ( CAST ( NULL AS INTEGER ) + 50 )
----
NULL

query I rowsort
SELECT DISTINCT + 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL + MIN( DISTINCT 96 ) * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + MIN ( DISTINCT 96 ) * COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT - 16 + + + COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-9464
SELECT - 16 + + + COUNT ( * ) AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9465
SELECT + 55 DIV - 39 * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9465
SELECT + 55 / - 39 * COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 37 * - - 79 AS col2
----
2923

query I rowsort
SELECT ALL + 79 * 23
----
1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT DISTINCT CAST( + ( + 45 ) AS SIGNED ) + + 96 + 70 AS col2
----
211

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT CAST ( + ( + 45 ) AS INTEGER ) + + 96 + 70 AS col2
----
211

query I rowsort
SELECT - - 18 * NULLIF ( + 60, + - 9 ) AS col1
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-9470
SELECT DISTINCT - COUNT( DISTINCT + 79 ) col1, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9470
SELECT DISTINCT - COUNT ( DISTINCT + 79 ) col1, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT - + 85 * - 3 AS col0
----
255

query I rowsort
SELECT - + 75 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT - COUNT( * ) * - + 38
----
38

skipif mysql # not compatible
query I rowsort label-9473
SELECT - COUNT ( * ) * - + 38
----
38

query I rowsort
SELECT ALL + NULLIF ( + ( + 9 ), + 25 * 40 * 83 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9475
SELECT DISTINCT 3 DIV - COUNT( 55 ) - - 31 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT 3 / - COUNT ( 55 ) - - 31 AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT + COUNT( * ) AS col2, - 10 AS col0
----
1
-10

skipif mysql # not compatible
query II rowsort label-9476
SELECT + COUNT ( * ) AS col2, - 10 AS col0
----
1
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9477
SELECT CAST( NULL AS SIGNED ) col0, 60 + + COALESCE ( 13, + 56 ) AS col2
----
NULL
73

skipif mysql # not compatible
query II rowsort label-9477
SELECT CAST ( NULL AS INTEGER ) col0, 60 + + COALESCE ( 13, + 56 ) AS col2
----
NULL
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT ALL - 56 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - 56 / - 89
----
0

query II rowsort
SELECT + 13 AS col1, - 98 + + 7 AS col1
----
13
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT + 90 + + - 30 * - CAST( 5 AS SIGNED )
----
240

skipif mysql # not compatible
query I rowsort label-9480
SELECT + 90 + + - 30 * - CAST ( 5 AS INTEGER )
----
240

query I rowsort
SELECT - 14 * + 99 - + - 54 AS col2
----
-1332

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL 31 * COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL 31 * COUNT ( * )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9483
SELECT ALL - 56 DIV - 20 col2
----
2

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL - 56 / - 20 col2
----
2

query I rowsort
SELECT DISTINCT + ( - 78 ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT + CAST( NULL AS SIGNED ) * - ( - ( - 38 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT + CAST ( NULL AS INTEGER ) * - ( - ( - 38 ) ) AS col1
----
NULL

query I rowsort
SELECT ( + - ( 83 ) )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9487
SELECT + ( - CASE + NULLIF ( - 17, - CASE NULLIF ( 88, 67 ) WHEN COUNT( * ) THEN NULL ELSE 74 END + 63 ) WHEN + 34 THEN + 60 - 18 WHEN + 86 THEN - COUNT( * ) + - 41 ELSE 21 * COALESCE ( - ( - 22 ) * 95, - CAST( NULL AS SIGNED ) ) - ( + CASE - 83 WHEN + 43 + 77 * 24 THEN - COUNT( * ) END ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT + ( - CASE + NULLIF ( - 17, - CASE NULLIF ( 88, 67 ) WHEN COUNT ( * ) THEN NULL ELSE 74 END + 63 ) WHEN + 34 THEN + 60 - 18 WHEN + 86 THEN - COUNT ( * ) + - 41 ELSE 21 * COALESCE ( - ( - 22 ) * 95, - CAST ( NULL AS INTEGER ) ) - ( + CASE - 83 WHEN + 43 + 77 * 24 THEN - COUNT ( * ) END ) END )
----
NULL

query I rowsort
SELECT + 70 * + NULLIF ( - - 87, - - 87 ) * 38 - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ( + COUNT( * ) ) * - - 67 + COUNT( * ) + + - 44
----
24

skipif mysql # not compatible
query I rowsort label-9489
SELECT ( + COUNT ( * ) ) * - - 67 + COUNT ( * ) + + - 44
----
24

query I rowsort
SELECT 19 - + + 36 col0
----
-17

query II rowsort
SELECT 7, - NULLIF ( 65, - + ( - 62 ) ) AS col1
----
7
-65

query I rowsort
SELECT - + 65
----
-65

query I rowsort
SELECT - 44 * - 81 AS col2
----
3564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT ALL - CAST( NULL AS SIGNED ) + 50 * - 98 + 22 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - CAST ( NULL AS INTEGER ) + 50 * - 98 + 22 col1
----
NULL

query I rowsort
SELECT - + 42 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT - MAX( 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT - MAX ( 87 ) AS col1
----
-87

query I rowsort
SELECT ALL - 69 + + - 63
----
-132

query I rowsort
SELECT + 80 - + - 87 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL COUNT( * ) + 44 * - 50 + + 73 AS col1
----
-2126

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL COUNT ( * ) + 44 * - 50 + + 73 AS col1
----
-2126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT - + CAST( - 58 AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9500
SELECT - + CAST ( - 58 AS INTEGER ) AS col2
----
58

query I rowsort
SELECT 67 + - 72 AS col2
----
-5

query I rowsort
SELECT DISTINCT 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - 46 + COUNT( * ) + 51 col1
----
6

skipif mysql # not compatible
query I rowsort label-9503
SELECT - 46 + COUNT ( * ) + 51 col1
----
6

query I rowsort
SELECT 57 * + 75
----
4275

query I rowsort
SELECT ALL 90 * 86 AS col1
----
7740

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT - 60 + - 49 + - 16 DIV - 45 + + - 31
----
-140

skipif mysql # not compatible
query I rowsort label-9506
SELECT - 60 + - 49 + - 16 / - 45 + + - 31
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9507
SELECT ( + COUNT ( * ) ) col2
----
1

query I rowsort
SELECT DISTINCT + NULLIF ( + - NULLIF ( 3, - + ( 38 ) ), + 41 )
----
-3

query I rowsort
SELECT ALL - + 23 + ( 89 )
----
66

query I rowsort
SELECT ( 77 ) * + - CASE - ( ( - 5 ) ) WHEN + 15 THEN - 80 + + 16 WHEN 6 * 69 + 27 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL COUNT( ALL + 54 ) * - + 25 - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL COUNT ( ALL + 54 ) * - + 25 - COUNT ( * )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9512
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - 70 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT DISTINCT SUM( - 18 ) - + 91
----
-109

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT SUM ( - 18 ) - + 91
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-9514
SELECT ALL 91, COUNT( + + ( - 66 ) ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-9514
SELECT ALL 91, COUNT ( + + ( - 66 ) ) AS col0
----
91
1

query I rowsort
SELECT 82 + - 74 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9516
SELECT 89 * - - COALESCE ( + 91, - - 37 ), 32 * + COUNT( * ) * - NULLIF ( 49, 72 * 4 ) + SUM( DISTINCT 93 ) DIV + 19 AS col1
----
8099
-1564

skipif mysql # not compatible
query II rowsort label-9516
SELECT 89 * - - COALESCE ( + 91, - - 37 ), 32 * + COUNT ( * ) * - NULLIF ( 49, 72 * 4 ) + SUM ( DISTINCT 93 ) / + 19 AS col1
----
8099
-1564

query II rowsort
SELECT 95 col2, - 5
----
95
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT DISTINCT - NULLIF ( 94, - + 78 - - - MIN( ALL + + NULLIF ( + 2, - 13 ) ) ) * 86 AS col1
----
-8084

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT - NULLIF ( 94, - + 78 - - - MIN ( ALL + + NULLIF ( + 2, - 13 ) ) ) * 86 AS col1
----
-8084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9519
SELECT DISTINCT 2 * + - 42 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT 2 * + - 42 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT 88 DIV 65 + - 5 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9520
SELECT 88 / 65 + - 5 AS col2
----
-4

query I rowsort
SELECT ALL - 52 * 33 AS col2
----
-1716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT ALL - COALESCE ( + 91, + 62, + CAST( NULL AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL - COALESCE ( + 91, + 62, + CAST ( NULL AS INTEGER ) )
----
-91

query I rowsort
SELECT + 47 * 1 + + - 1 AS col2
----
46

query I rowsort
SELECT ALL - NULLIF ( - 86, - + 40 * + 36 ) + + 77 + + + ( 85 ) * + 65 AS col1
----
5688

query I rowsort
SELECT + 70 - + + 82
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9526
SELECT + + COUNT( * ) AS col0, - 51 * - + NULLIF ( + 47, 45 ) AS col2
----
1
2397

skipif mysql # not compatible
query II rowsort label-9526
SELECT + + COUNT ( * ) AS col0, - 51 * - + NULLIF ( + 47, 45 ) AS col2
----
1
2397

query I rowsort
SELECT 33 + - + 54
----
-21

query II rowsort
SELECT ALL - + 54, + 29 col1
----
-54
29

query I rowsort
SELECT DISTINCT - - 93
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9530
SELECT - 37 + - CASE - 10 WHEN CAST( ( 59 ) AS DECIMAL ) / + 72 + 38 THEN 38 * 38 + - CASE 16 WHEN - COUNT( * ) THEN CASE 69 WHEN 24 THEN NULL WHEN - 70 / + 16 + + 91 THEN NULL ELSE - 87 END WHEN 38 + + ( CASE + 86 WHEN MAX( DISTINCT + 9 ) + - ( - 99 ) / - 65 THEN 21 ELSE 2 END ) THEN NULL END WHEN 25 THEN 71 * + ( 82 ) WHEN 31 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT - 37 + - CASE - 10 WHEN CAST ( ( 59 ) AS REAL ) / + 72 + 38 THEN 38 * 38 + - CASE 16 WHEN - COUNT ( * ) THEN CASE 69 WHEN 24 THEN NULL WHEN - 70 / + 16 + + 91 THEN NULL ELSE - 87 END WHEN 38 + + ( CASE + 86 WHEN MAX ( DISTINCT + 9 ) + - ( - 99 ) / - 65 THEN 21 ELSE 2 END ) THEN NULL END WHEN 25 THEN 71 * + ( 82 ) WHEN 31 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT + ( - NULLIF ( + + 17, CAST( NULL AS SIGNED ) + COUNT( * ) ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9531
SELECT + ( - NULLIF ( + + 17, CAST ( NULL AS INTEGER ) + COUNT ( * ) ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT ALL + 78 + - 11 + - ( COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL + 78 + - 11 + - ( COUNT ( * ) ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9533
SELECT DISTINCT + 20 + - 99 + + + MIN( ALL - 33 ) * 54 + + 2 - CASE 47 WHEN - ( 23 ) * + COUNT( * ) THEN NULLIF ( + COUNT( - 41 ), 9 * + 72 + 41 ) + SUM( DISTINCT + 76 + + CAST( 9 AS SIGNED ) * 82 ) DIV 7 WHEN MIN( + 77 ) * NULLIF ( 78, - 92 ) + - CAST( NULL AS SIGNED ) * - 39 THEN - COUNT( * ) DIV - 73 + + COUNT( * ) ELSE + 34 END AS col2
----
-1893

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + 20 + - 99 + + + MIN ( ALL - 33 ) * 54 + + 2 - CASE 47 WHEN - ( 23 ) * + COUNT ( * ) THEN NULLIF ( + COUNT ( - 41 ), 9 * + 72 + 41 ) + SUM ( DISTINCT + 76 + + CAST ( 9 AS INTEGER ) * 82 ) / 7 WHEN MIN ( + 77 ) * NULLIF ( 78, - 92 ) + - CAST ( NULL AS INTEGER ) * - 39 THEN - COUNT ( * ) / - 73 + + COUNT ( * ) ELSE + 34 END AS col2
----
-1893

query II rowsort
SELECT ALL - - 20 AS col2, - ( - - 27 ) * + - 33
----
20
891

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - ( - ( - COALESCE ( COUNT( 3 ), + 32 ) ) ) * + 46 + 57
----
11

skipif mysql # not compatible
query I rowsort label-9535
SELECT - ( - ( - COALESCE ( COUNT ( 3 ), + 32 ) ) ) * + 46 + 57
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL + 87 + + + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + 87 + + + COUNT ( * ) AS col2
----
88

query I rowsort
SELECT ALL - 29 * - - 68 * 11
----
-21692

query I rowsort
SELECT - + 5
----
-5

query I rowsort
SELECT - 78 + - 40
----
-118

query II rowsort
SELECT 46 AS col0, 6 + 2
----
46
8

query I rowsort
SELECT DISTINCT - - COALESCE ( + + 74, - 19, - 78 * - 86 + + 31 * 26 ) * 23
----
1702

query I rowsort
SELECT ALL + 38 + - 91 col0
----
-53

query I rowsort
SELECT + 0 + 73 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9544
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - COUNT( + - 54 ) + MIN( DISTINCT 96 ) * ( - MAX( - 44 ) )
----
NULL
4223

skipif mysql # not compatible
query II rowsort label-9544
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( + - 54 ) + MIN ( DISTINCT 96 ) * ( - MAX ( - 44 ) )
----
NULL
4223

query I rowsort
SELECT - + 59 AS col0
----
-59

query I rowsort
SELECT DISTINCT - 35 * - - 8 * ( 77 )
----
-21560

query I rowsort
SELECT ALL + 77 - - 18 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT - SUM( - 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9548
SELECT - SUM ( - 17 ) AS col1
----
17

query I rowsort
SELECT ALL 9 - - 46
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT 53 DIV - NULLIF ( - - 54, + + AVG ( + - ( ( + - 34 ) ) ) + - NULLIF ( 37 + 32, 32 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9550
SELECT 53 / - NULLIF ( - - 54, + + AVG ( + - ( ( + - 34 ) ) ) + - NULLIF ( 37 + 32, 32 ) )
----
0

query I rowsort
SELECT ( + 21 ) - - - 87 + - + 59
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT 97 * - + MIN( + 67 ) AS col2
----
-6499

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT 97 * - + MIN ( + 67 ) AS col2
----
-6499

query I rowsort
SELECT ALL 67 * - - 16
----
1072

query I rowsort
SELECT DISTINCT 61 * + 60 * + 57 * 29 col1
----
6049980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9555
SELECT 2 DIV NULLIF ( + - 16, + ( - - NULLIF ( - 92, + + COALESCE ( - 62, - 35 * + MIN( DISTINCT 73 ) ) * 85 ) ) ) - COALESCE ( - 30 + - 9 DIV 37, + 73 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9555
SELECT 2 / NULLIF ( + - 16, + ( - - NULLIF ( - 92, + + COALESCE ( - 62, - 35 * + MIN ( DISTINCT 73 ) ) * 85 ) ) ) - COALESCE ( - 30 + - 9 / 37, + 73 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9556
SELECT + 1 * COALESCE ( - 54, + + 73 ) * COALESCE ( - - 52, + 3, 77 DIV - CASE 96 * + 15 WHEN + COUNT( * ) * - 30 THEN + 83 + - 30 END ) + - 21 col0
----
-2829

skipif mysql # not compatible
query I rowsort label-9556
SELECT + 1 * COALESCE ( - 54, + + 73 ) * COALESCE ( - - 52, + 3, 77 / - CASE 96 * + 15 WHEN + COUNT ( * ) * - 30 THEN + 83 + - 30 END ) + - 21 col0
----
-2829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT ALL + ( MAX( - CAST( NULL AS SIGNED ) ) ) * 51 + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL + ( MAX ( - CAST ( NULL AS INTEGER ) ) ) * 51 + + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT + 71 * + CASE COUNT( * ) WHEN + 75 / - - CASE 20 WHEN - 8 + - 33 THEN 44 - 94 WHEN - 73 THEN NULL WHEN + NULLIF ( - 63, - COALESCE ( COALESCE ( - MAX( + 52 ), - 21 ), 13, - 43 * + ( 88 ) - 88 ) ) THEN NULL END THEN 31 * - MAX( ALL + 76 ) - MAX( ALL - ( 58 ) + 95 ) ELSE NULL END * 98 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT + 71 * + CASE COUNT ( * ) WHEN + 75 / - - CASE 20 WHEN - 8 + - 33 THEN 44 - 94 WHEN - 73 THEN NULL WHEN + NULLIF ( - 63, - COALESCE ( COALESCE ( - MAX ( + 52 ), - 21 ), 13, - 43 * + ( 88 ) - 88 ) ) THEN NULL END THEN 31 * - MAX ( ALL + 76 ) - MAX ( ALL - ( 58 ) + 95 ) ELSE NULL END * 98 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL + 85 * + 84 + + COUNT( * ) + - - 27 AS col0
----
7168

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + 85 * + 84 + + COUNT ( * ) + - - 27 AS col0
----
7168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9560
SELECT DISTINCT - - SUM( DISTINCT + - 78 ) * - CAST( NULL AS SIGNED ) + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT - - SUM ( DISTINCT + - 78 ) * - CAST ( NULL AS INTEGER ) + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL - - 14 * 39 - - - 80 - - + COUNT( DISTINCT + - 18 ) * + 12 * - - 6 + 66 + 15
----
619

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - - 14 * 39 - - - 80 - - + COUNT ( DISTINCT + - 18 ) * + 12 * - - 6 + 66 + 15
----
619

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT - 35 * - + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-9562
SELECT - 35 * - + COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT - 6 * + 76 * 13 + SUM( DISTINCT + 11 ) * + 87 * - 25 + 72
----
-29781

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT - 6 * + 76 * 13 + SUM ( DISTINCT + 11 ) * + 87 * - 25 + 72
----
-29781

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT DISTINCT ( + CAST( + 77 AS SIGNED ) ) * SUM( - 31 ) + - CAST( NULL AS SIGNED ) + - NULLIF ( + COUNT( * ), + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT ( + CAST ( + 77 AS INTEGER ) ) * SUM ( - 31 ) + - CAST ( NULL AS INTEGER ) + - NULLIF ( + COUNT ( * ), + 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT DISTINCT + CASE + MAX( ALL - - COALESCE ( + 59, - 56 ) ) WHEN - - 0 THEN - - SUM( COALESCE ( - COALESCE ( - 73, 18 ), ( 0 ), + 92 + + 79 ) ) - 22 WHEN - 28 * + MIN( DISTINCT - 51 ) - + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT + CASE + MAX ( ALL - - COALESCE ( + 59, - 56 ) ) WHEN - - 0 THEN - - SUM ( COALESCE ( - COALESCE ( - 73, 18 ), ( 0 ), + 92 + + 79 ) ) - 22 WHEN - 28 * + MIN ( DISTINCT - 51 ) - + COUNT ( * ) THEN NULL END
----
NULL

query II rowsort
SELECT ( + 68 ) AS col2, 50 * - 74 col2
----
68
-3700

onlyif mysql # DIV for integer division: 
query II rowsort label-9567
SELECT + - COALESCE ( + + 4, + 56 ), 26 DIV 78 AS col1
----
-4
0

skipif mysql # not compatible
query II rowsort label-9567
SELECT + - COALESCE ( + + 4, + 56 ), 26 / 78 AS col1
----
-4
0

query I rowsort
SELECT + - 36 - - 42 + + + 29 AS col2
----
35

query I rowsort
SELECT - - 97 * - 75 * + 71 * 66 AS col2
----
-34090650

query I rowsort
SELECT ALL + ( + - 67 ) - + + 79 AS col2
----
-146

query I rowsort
SELECT - 37 * - + 3 AS col1
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT - ( + 93 ) AS col2, COUNT( * )
----
-93
1

skipif mysql # not compatible
query II rowsort label-9572
SELECT - ( + 93 ) AS col2, COUNT ( * )
----
-93
1

query I rowsort
SELECT DISTINCT + 48 - + 87 AS col1
----
-39

query I rowsort
SELECT - 64 - 64
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT ALL + + 40 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL + + 40 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9576
SELECT - 78 - 79 + COUNT( * ) AS col1, + COUNT( * ) + - 52 AS col1
----
-156
-51

skipif mysql # not compatible
query II rowsort label-9576
SELECT - 78 - 79 + COUNT ( * ) AS col1, + COUNT ( * ) + - 52 AS col1
----
-156
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9577
SELECT - - 34 * 85, COUNT( DISTINCT 14 ) * + 40 AS col0
----
2890
40

skipif mysql # not compatible
query II rowsort label-9577
SELECT - - 34 * 85, COUNT ( DISTINCT 14 ) * + 40 AS col0
----
2890
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT - COUNT( DISTINCT 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-9578
SELECT - COUNT ( DISTINCT 86 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9579
SELECT 58, - COUNT( * ) col0
----
58
-1

skipif mysql # not compatible
query II rowsort label-9579
SELECT 58, - COUNT ( * ) col0
----
58
-1

query I rowsort
SELECT - 68 + - 54 AS col1
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-9581
SELECT - MAX( - 3 ) * - COUNT( 71 ) AS col2, COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-9581
SELECT - MAX ( - 3 ) * - COUNT ( 71 ) AS col2, COUNT ( * )
----
-3
1

query I rowsort
SELECT - ( - - 32 ) + 50 AS col2
----
18

query I rowsort
SELECT + 50 - - 7
----
57

query II rowsort
SELECT ALL 98, 82 - 60 - + 92 + ( + 34 ) + - 54 * 22 * + 58 AS col1
----
98
-68940

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT - SUM( DISTINCT - ( + 76 ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9585
SELECT - SUM ( DISTINCT - ( + 76 ) ) AS col0
----
76

query I rowsort
SELECT ALL NULLIF ( - 5, - + 63 / 89 * + 55 + 43 ) AS col1
----
-5

query I rowsort
SELECT ALL + 70 * - 1 col1
----
-70

query I rowsort
SELECT DISTINCT ( + + 87 ) AS col0
----
87

query II rowsort
SELECT ALL 55 AS col1, 70 + - - 80
----
55
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT ( + ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT ( + ( + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT ALL ( CAST( 58 AS SIGNED ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL ( CAST ( 58 AS INTEGER ) ) AS col1
----
58

query I rowsort
SELECT DISTINCT ( 72 ) AS col2
----
72

query I rowsort
SELECT + 90 + + 66 AS col2
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-9594
SELECT - 64 AS col1, - 66 * + - 69 + + 22 + + 51 + 1 + + COUNT( ALL 28 )
----
-64
4629

skipif mysql # not compatible
query II rowsort label-9594
SELECT - 64 AS col1, - 66 * + - 69 + + 22 + + 51 + 1 + + COUNT ( ALL 28 )
----
-64
4629

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT + 8 DIV + - 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9595
SELECT + 8 / + - 22 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9596
SELECT CAST( NULL AS SIGNED ) AS col1, + 22 + - 83 + - - 52
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-9596
SELECT CAST ( NULL AS INTEGER ) AS col1, + 22 + - 83 + - - 52
----
NULL
-9

query I rowsort
SELECT + ( 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9598
SELECT + ( + - ( - CAST( NULL AS SIGNED ) ) ) AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9598
SELECT + ( + - ( - CAST ( NULL AS INTEGER ) ) ) AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9599
SELECT + 72 + + 2 + + - 95 DIV MIN( ALL 15 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9599
SELECT + 72 + + 2 + + - 95 / MIN ( ALL 15 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT + MAX( - 9 ) * + + 1
----
-9

skipif mysql # not compatible
query I rowsort label-9600
SELECT + MAX ( - 9 ) * + + 1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9601
SELECT ALL - 99 DIV + - 82 DIV + COUNT( * ) + + COUNT( * ) AS col1, COUNT( * ) * 30 AS col1
----
2
30

skipif mysql # not compatible
query II rowsort label-9601
SELECT ALL - 99 / + - 82 / + COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) * 30 AS col1
----
2
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - - 9 * SUM( DISTINCT + 69 ) * 17 + - + 22 * + 18
----
10161

skipif mysql # not compatible
query I rowsort label-9602
SELECT - - 9 * SUM ( DISTINCT + 69 ) * 17 + - + 22 * + 18
----
10161

query I rowsort
SELECT DISTINCT + - ( - 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL - ( - 18 ) * + 44 * + CAST( NULL AS SIGNED ) * + 6 * + COUNT( * ) + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - ( - 18 ) * + 44 * + CAST ( NULL AS INTEGER ) * + 6 * + COUNT ( * ) + + 1
----
NULL

query I rowsort
SELECT + + ( - 46 )
----
-46

query II rowsort
SELECT DISTINCT + - 38 AS col2, 96
----
-38
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT - 0 * - 36 - + ( + SUM( ALL - 99 ) ) * - - COALESCE ( + 57, - 86, ( - 88 ) ) + 55 AS col1
----
5698

skipif mysql # not compatible
query I rowsort label-9607
SELECT - 0 * - 36 - + ( + SUM ( ALL - 99 ) ) * - - COALESCE ( + 57, - 86, ( - 88 ) ) + 55 AS col1
----
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL + COUNT( * ) * 43 * - - 54 * + 31
----
71982

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL + COUNT ( * ) * 43 * - - 54 * + 31
----
71982

query II rowsort
SELECT DISTINCT + 83 col2, + ( 47 ) * - + 72 AS col1
----
83
-3384

query I rowsort
SELECT DISTINCT + 19 * - - 68 AS col1
----
1292

query II rowsort
SELECT ALL + 45 AS col1, + 65 col1
----
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL 23 * - + SUM( DISTINCT - 19 ) AS col1
----
437

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL 23 * - + SUM ( DISTINCT - 19 ) AS col1
----
437

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT + + 64 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-9613
SELECT + + 64 / - 94
----
0

query I rowsort
SELECT - + 37
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT - - ( 0 ) + + NULLIF ( COUNT( * ), CAST( 94 AS SIGNED ) + ( - 79 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9615
SELECT - - ( 0 ) + + NULLIF ( COUNT ( * ), CAST ( 94 AS INTEGER ) + ( - 79 ) ) AS col0
----
1

query II rowsort
SELECT + 46, 3 AS col0
----
46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT - + 25 * - 26 + + - 0 + COALESCE ( ( + 59 ), - 65, SUM( ALL - 30 ) ) / - CASE + 99 WHEN - ( 69 ) + 49 THEN NULL WHEN COUNT( * ) * - 57 THEN 76 * 53 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT - + 25 * - 26 + + - 0 + COALESCE ( ( + 59 ), - 65, SUM ( ALL - 30 ) ) / - CASE + 99 WHEN - ( 69 ) + 49 THEN NULL WHEN COUNT ( * ) * - 57 THEN 76 * 53 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 8 ) col0
----
8

query I rowsort
SELECT ALL ( 51 ) AS col0
----
51

query I rowsort
SELECT - 50 + - 10 col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT - MAX( - 21 ) * 15 * 12 AS col1, COUNT( * ) AS col0
----
3780
1

skipif mysql # not compatible
query II rowsort label-9621
SELECT - MAX ( - 21 ) * 15 * 12 AS col1, COUNT ( * ) AS col0
----
3780
1

query I rowsort
SELECT ALL 26 + + + ( 85 ) AS col1
----
111

query I rowsort
SELECT DISTINCT NULLIF ( + 36, - 61 )
----
36

query I rowsort
SELECT ALL + 38 + 16 AS col1
----
54

query I rowsort
SELECT DISTINCT + 56 + + + 56 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9626
SELECT ALL + COUNT( * ) + - NULLIF ( - 4, 87 DIV ( - + 35 ) + - 8 ) + + 6 DIV COUNT( * ) * 83 + - MIN( + 81 + + CAST( 84 AS SIGNED ) )
----
338

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + COUNT ( * ) + - NULLIF ( - 4, 87 / ( - + 35 ) + - 8 ) + + 6 / COUNT ( * ) * 83 + - MIN ( + 81 + + CAST ( 84 AS INTEGER ) )
----
338

query I rowsort
SELECT 88 - + 68
----
20

query I rowsort
SELECT 97 - - 53 AS col2
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9629
SELECT 7 - 28 + + - 36 + CAST( NULL AS SIGNED ) * - AVG ( ALL - 92 ) * - 90 - 7 - + + 73 + + SUM( 89 ) * 30 * + CAST( + 51 * + 25 + - COUNT( 84 + - 90 ) * + 15 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT 7 - 28 + + - 36 + CAST ( NULL AS INTEGER ) * - AVG ( ALL - 92 ) * - 90 - 7 - + + 73 + + SUM ( 89 ) * 30 * + CAST ( + 51 * + 25 + - COUNT ( 84 + - 90 ) * + 15 AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9630
SELECT ALL + 39 + - 67 + - 52 DIV - + ( 18 ) + 9 + + - ( - + 34 ) + - + COUNT( * ) * - 16
----
33

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + 39 + - 67 + - 52 / - + ( 18 ) + 9 + + - ( - + 34 ) + - + COUNT ( * ) * - 16
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT + COUNT( * ) * + 48
----
48

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT + COUNT ( * ) * + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT 29 + - - 53 * CASE - 55 WHEN - NULLIF ( - + 16, + 92 * + ( + SUM( 50 ) ) ) THEN - 57 WHEN 44 THEN - ( 88 ) / 60 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT 29 + - - 53 * CASE - 55 WHEN - NULLIF ( - + 16, + 92 * + ( + SUM ( 50 ) ) ) THEN - 57 WHEN 44 THEN - ( 88 ) / 60 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 21 col1
----
-21

query I rowsort
SELECT ALL + + ( ( 84 ) ) - 31
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9635
SELECT 1 * + 33 AS col1, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-9635
SELECT 1 * + 33 AS col1, COUNT ( * )
----
33
1

query I rowsort
SELECT + + 34 AS col0
----
34

query I rowsort
SELECT 78 + + + 65
----
143

query I rowsort
SELECT DISTINCT - 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT - NULLIF ( + + 62, - + COALESCE ( + 84, - 94 ) + COUNT( * ) ) * + 80 * - 80 - 68 * 37 AS col1
----
394284

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT - NULLIF ( + + 62, - + COALESCE ( + 84, - 94 ) + COUNT ( * ) ) * + 80 * - 80 - 68 * 37 AS col1
----
394284

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL - ( - 61 ) * CASE - + MAX( - ( + 20 ) ) WHEN + - 15 * + 55 THEN ( 64 ) + - COUNT( * ) WHEN - NULLIF ( + COUNT( * ), 96 ) * - 59 + - 85 THEN 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL - ( - 61 ) * CASE - + MAX ( - ( + 20 ) ) WHEN + - 15 * + 55 THEN ( 64 ) + - COUNT ( * ) WHEN - NULLIF ( + COUNT ( * ), 96 ) * - 59 + - 85 THEN 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT - MIN( - 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9641
SELECT - MIN ( - 45 ) AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT + ( - 15 ) DIV - 18 * - 24 + 22 + + - 7 + + 81
----
96

skipif mysql # not compatible
query I rowsort label-9642
SELECT + ( - 15 ) / - 18 * - 24 + 22 + + - 7 + + 81
----
96

query I rowsort
SELECT DISTINCT - - 12 AS col1
----
12

query I rowsort
SELECT + 41 col1
----
41

query I rowsort
SELECT + + 80 AS col1
----
80

query I rowsort
SELECT ALL - + CASE - 8 WHEN + 10 THEN NULL WHEN 23 + - ( + 4 ) THEN - ( 92 ) / 37 END
----
NULL

query I rowsort
SELECT + 39 * - + 87 + 43 col2
----
-3350

query I rowsort
SELECT - 86 col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT + COUNT( * ) + 15 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + COUNT ( * ) + 15 AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9650
SELECT DISTINCT COUNT( * ) + - 14 + COUNT( ALL + - COALESCE ( + + 45, - NULLIF ( 1, + + 87 ) ) ) DIV + 47 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT COUNT ( * ) + - 14 + COUNT ( ALL + - COALESCE ( + + 45, - NULLIF ( 1, + + 87 ) ) ) / + 47 AS col2
----
-13

query I rowsort
SELECT ALL 97 + - 72 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT 88 + 26 * + 10 * + - ( - COUNT( * ) ) * + + 91 col2
----
23748

skipif mysql # not compatible
query I rowsort label-9652
SELECT 88 + 26 * + 10 * + - ( - COUNT ( * ) ) * + + 91 col2
----
23748

query I rowsort
SELECT ALL 8 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT 33 - ( - 29 ) * MAX( + 33 )
----
990

skipif mysql # not compatible
query I rowsort label-9654
SELECT 33 - ( - 29 ) * MAX ( + 33 )
----
990

query I rowsort
SELECT 7 + 27
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL + 7 + - + COUNT( * ) col0
----
6

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL + 7 + - + COUNT ( * ) col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL - 35 * MIN( 37 )
----
-1295

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - 35 * MIN ( 37 )
----
-1295

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT DISTINCT - 62 DIV 6
----
-10

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - 62 / 6
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9659
SELECT ALL + ( 82 ) - - 27 + - 95 + 77 + - ( - COALESCE ( - ( - + COUNT( * ) ), + CAST( - 94 AS SIGNED ) + + 77, 9 + 65 ) ) * + 48 DIV - 76
----
91

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL + ( 82 ) - - 27 + - 95 + 77 + - ( - COALESCE ( - ( - + COUNT ( * ) ), + CAST ( - 94 AS INTEGER ) + + 77, 9 + 65 ) ) * + 48 / - 76
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL - + ( + MAX( + 62 ) ) - + CASE COALESCE ( - 84, COUNT( * ) ) WHEN 69 + 3 + - - 12 * - 90 THEN NULL WHEN 3 THEN + 16 END + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL - + ( + MAX ( + 62 ) ) - + CASE COALESCE ( - 84, COUNT ( * ) ) WHEN 69 + 3 + - - 12 * - 90 THEN NULL WHEN 3 THEN + 16 END + - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT COUNT( * ) * + 32 + + COALESCE ( + 91, + - 70 ) * - CASE - + 21 WHEN COUNT( * ) / 57 THEN NULL WHEN 90 THEN + 50 END * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT COUNT ( * ) * + 32 + + COALESCE ( + 91, + - 70 ) * - CASE - + 21 WHEN COUNT ( * ) / 57 THEN NULL WHEN 90 THEN + 50 END * 22
----
NULL

query I rowsort
SELECT ALL + + 38 * 35 * + - 99
----
-131670

query I rowsort
SELECT ALL + 68 * + 19
----
1292

query I rowsort
SELECT ALL - ( 68 )
----
-68

query I rowsort
SELECT DISTINCT - 54 col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9666
SELECT DISTINCT - + 96 AS col2, 12 * + - MAX( DISTINCT + 61 )
----
-96
-732

skipif mysql # not compatible
query II rowsort label-9666
SELECT DISTINCT - + 96 AS col2, 12 * + - MAX ( DISTINCT + 61 )
----
-96
-732

query I rowsort
SELECT 74 * + - 5 AS col1
----
-370

query I rowsort
SELECT - 44 + - 1 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9669
SELECT + 64, + COUNT( * ) * - - 48 AS col0
----
64
48

skipif mysql # not compatible
query II rowsort label-9669
SELECT + 64, + COUNT ( * ) * - - 48 AS col0
----
64
48

query I rowsort
SELECT + - 64 col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9671
SELECT ALL 27 + - COUNT( * ) * - + 54 col0, NULLIF ( + CASE WHEN MIN( ALL + 28 ) <= - 37 THEN 80 ELSE NULL END, + 95 ) - - 80 AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-9671
SELECT ALL 27 + - COUNT ( * ) * - + 54 col0, NULLIF ( + CASE WHEN MIN ( ALL + 28 ) <= - 37 THEN 80 ELSE NULL END, + 95 ) - - 80 AS col2
----
81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT + + 77 * - + 65 + + 35 + - 27 DIV 84 * - 33 + - ( 93 ) * - 56 AS col2
----
238

skipif mysql # not compatible
query I rowsort label-9672
SELECT + + 77 * - + 65 + + 35 + - 27 / 84 * - 33 + - ( 93 ) * - 56 AS col2
----
238

query I rowsort
SELECT ALL - 3 * + + 51 AS col2
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9674
SELECT + COALESCE ( 19, + 42 * COUNT( * ) * CASE + COUNT( * ) WHEN CAST( + - 45 AS SIGNED ) DIV - ( 20 ) + - 51 * NULLIF ( + CAST( COUNT( * ) AS SIGNED ) - COUNT( * ) * 16, - 26 + - 49 DIV 6 ) THEN + 14 - + NULLIF ( - 72, COUNT( * ) * 66 + 28 ) DIV CAST( NULLIF ( + 95, 46 * CASE - COUNT( * ) WHEN + 0 DIV + 43 THEN + 95 END ) AS SIGNED ) END + 19 ) * - ( + 68 )
----
-1292

skipif mysql # not compatible
query I rowsort label-9674
SELECT + COALESCE ( 19, + 42 * COUNT ( * ) * CASE + COUNT ( * ) WHEN CAST ( + - 45 AS INTEGER ) / - ( 20 ) + - 51 * NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ) - COUNT ( * ) * 16, - 26 + - 49 / 6 ) THEN + 14 - + NULLIF ( - 72, COUNT ( * ) * 66 + 28 ) / CAST ( NULLIF ( + 95, 46 * CASE - COUNT ( * ) WHEN + 0 / + 43 THEN + 95 END ) AS INTEGER ) END + 19 ) * - ( + 68 )
----
-1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT ALL - - CAST( + 91 AS SIGNED ) + 76 * - 97 col2
----
-7281

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - - CAST ( + 91 AS INTEGER ) + 76 * - 97 col2
----
-7281

query I rowsort
SELECT DISTINCT - - CASE 32 WHEN + - 68 THEN + 26 + - 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9677
SELECT + COUNT( * ) AS col2, 1 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9677
SELECT + COUNT ( * ) AS col2, 1 AS col0
----
1
1

query I rowsort
SELECT DISTINCT + 56 + - + 2 * + 38 AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT ALL 27 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL 27 / - 90 AS col0
----
0

query I rowsort
SELECT ALL ( + + 9 ) + - 49
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL MAX( + - 62 ) + - 79 + 19 + - + 8 * - 15
----
-2

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL MAX ( + - 62 ) + - 79 + 19 + - + 8 * - 15
----
-2

query II rowsort
SELECT 44 AS col0, + ( + 51 )
----
44
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT + 67 DIV + 63 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9683
SELECT + 67 / + 63 AS col2
----
1

query I rowsort
SELECT - NULLIF ( - + 92, - 42 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9685
SELECT ALL 49 + + 80 AS col1, + COUNT( * )
----
129
1

skipif mysql # not compatible
query II rowsort label-9685
SELECT ALL 49 + + 80 AS col1, + COUNT ( * )
----
129
1

query I rowsort
SELECT + 55 * + - 34 AS col0
----
-1870

onlyif mysql # aggregate syntax: 
query II rowsort label-9687
SELECT + 61 + + + 47 - + COUNT( * ) + + 86 * 79 + 68 + + - 46 + + - 55 * - + 52 AS col1, COALESCE ( - 55, 27 * 13 + 61 ) AS col2
----
9783
-55

skipif mysql # not compatible
query II rowsort label-9687
SELECT + 61 + + + 47 - + COUNT ( * ) + + 86 * 79 + 68 + + - 46 + + - 55 * - + 52 AS col1, COALESCE ( - 55, 27 * 13 + 61 ) AS col2
----
9783
-55

query I rowsort
SELECT DISTINCT 84 + ( - 70 ) + + + 77
----
91

query II rowsort
SELECT ALL 62, - 60 * + - 7 AS col1
----
62
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9690
SELECT ALL 19 - - + 10 - - ( + 24 ) DIV + + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL 19 - - + 10 - - ( + 24 ) / + + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT + 25 * 94 * + 96
----
225600

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT 48 - - 93 * - COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT 48 - - 93 * - COUNT ( * ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + COUNT( * ) + - - 86 * - 45 * 22 AS col2
----
-85139

skipif mysql # not compatible
query I rowsort label-9693
SELECT + COUNT ( * ) + - - 86 * - 45 * 22 AS col2
----
-85139

query II rowsort
SELECT DISTINCT 74 AS col1, + 18 + 92
----
74
110

query I rowsort
SELECT ALL 83 - 95 AS col0
----
-12

query I rowsort
SELECT + 89 * + 54
----
4806

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT - 95 * 55 DIV + - 8 AS col2
----
653

skipif mysql # not compatible
query I rowsort label-9697
SELECT - 95 * 55 / + - 8 AS col2
----
653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9698
SELECT + 65 - - 24 * CAST( NULL AS SIGNED ) * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT + 65 - - 24 * CAST ( NULL AS INTEGER ) * COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL - ( + + COALESCE ( 18, + 96 * 13 ) ) col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT CASE - 20 WHEN + 36 + 52 * + COUNT( * ) - + - 88 THEN + 0 WHEN - + 57 * - 17 + - + 6 + 6 * COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT CASE - 20 WHEN + 36 + 52 * + COUNT ( * ) - + - 88 THEN + 0 WHEN - + 57 * - 17 + - + 6 + 6 * COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT - - 14 DIV - 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9701
SELECT - - 14 / - 23 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT ALL 7 AS col2, - SUM( ALL - 39 ) + - 64
----
7
-25

skipif mysql # not compatible
query II rowsort label-9702
SELECT ALL 7 AS col2, - SUM ( ALL - 39 ) + - 64
----
7
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT ALL - 59 DIV - 82 + 55 * + 45 + - + 16 - + 34 * + - 84 AS col1
----
5315

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - 59 / - 82 + 55 * + 45 + - + 16 - + 34 * + - 84 AS col1
----
5315

query II rowsort
SELECT ALL + 7 AS col0, - 86 * ( - - 29 ) AS col2
----
7
-2494

query II rowsort
SELECT DISTINCT + + 67 AS col0, 28 - + 74
----
67
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT DISTINCT + 31 DIV + + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT + 31 / + + 56 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL + + MIN( DISTINCT 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL + + MIN ( DISTINCT 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9708
SELECT - + 87 DIV COUNT( + - COALESCE ( - 23, - 27, - 16, + - 73 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-9708
SELECT - + 87 / COUNT ( + - COALESCE ( - 23, - 27, - 16, + - 73 ) )
----
-87

query I rowsort
SELECT DISTINCT + - 7 col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT - COUNT( CAST( NULL AS SIGNED ) ) + + 73 + 65
----
138

skipif mysql # not compatible
query I rowsort label-9710
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) + + 73 + 65
----
138

query II rowsort
SELECT + 81 AS col1, - 71 AS col1
----
81
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT 68 * + NULLIF ( - + 52, + ( 77 ) ) + + - CASE + + 50 WHEN - MIN( 95 ) THEN - - 46 * + - 89 + - ( 10 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT 68 * + NULLIF ( - + 52, + ( 77 ) ) + + - CASE + + 50 WHEN - MIN ( 95 ) THEN - - 46 * + - 89 + - ( 10 ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9713
SELECT DISTINCT + + 41 * + 36 + + 91 + - 46 - NULLIF ( - 2, 35 * + 37 + - COUNT( * ) + COUNT( + - ( - 28 ) ) - - 97 / 10 ) + - COALESCE ( - 88, COUNT( * ) ) / + 89 * CAST( NULL AS SIGNED ) / - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT + + 41 * + 36 + + 91 + - 46 - NULLIF ( - 2, 35 * + 37 + - COUNT ( * ) + COUNT ( + - ( - 28 ) ) - - 97 / 10 ) + - COALESCE ( - 88, COUNT ( * ) ) / + 89 * CAST ( NULL AS INTEGER ) / - 24
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9714
SELECT - 91 * - CAST( NULL AS DECIMAL ), + 22 AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-9714
SELECT - 91 * - CAST ( NULL AS REAL ), + 22 AS col1
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL 61 * + - 82 + + 74 + - + CASE - - 67 WHEN 70 - + 21 THEN NULL WHEN 89 * + 92 THEN + 26 ELSE + + 56 END * + MIN( - 94 )
----
336

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL 61 * + - 82 + + 74 + - + CASE - - 67 WHEN 70 - + 21 THEN NULL WHEN 89 * + 92 THEN + 26 ELSE + + 56 END * + MIN ( - 94 )
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL - SUM( DISTINCT 9 ) * NULLIF ( 95, ( + 50 ) ) AS col2
----
-855

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL - SUM ( DISTINCT 9 ) * NULLIF ( 95, ( + 50 ) ) AS col2
----
-855

query I rowsort
SELECT 80 * + ( + 49 ) + - - ( - 10 ) AS col0
----
3910

query I rowsort
SELECT ALL - 83 * - 88 - - 87 * + 39
----
10697

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT ALL + 80 * + COUNT( * ) AS col1, 53 col1
----
80
53

skipif mysql # not compatible
query II rowsort label-9719
SELECT ALL + 80 * + COUNT ( * ) AS col1, 53 col1
----
80
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT ALL - 8 * - - 37 * - - CASE + CASE - 92 WHEN + 13 + - 48 THEN 14 * + + 3 ELSE - 25 END WHEN - 45 THEN + + COUNT( * ) + + COUNT( ALL 21 ) WHEN + 6 THEN COUNT( ALL COALESCE ( 47, + 69 ) ) END * ( + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL - 8 * - - 37 * - - CASE + CASE - 92 WHEN + 13 + - 48 THEN 14 * + + 3 ELSE - 25 END WHEN - 45 THEN + + COUNT ( * ) + + COUNT ( ALL 21 ) WHEN + 6 THEN COUNT ( ALL COALESCE ( 47, + 69 ) ) END * ( + 2 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT + SUM( DISTINCT CASE - 78 WHEN - - 66 * - 7 * 74 / - 4 + + 51 THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN - 41 END ) * + - 93 * - 10 - - SUM( ALL 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT + SUM ( DISTINCT CASE - 78 WHEN - - 66 * - 7 * 74 / - 4 + + 51 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN - 41 END ) * + - 93 * - 10 - - SUM ( ALL 72 ) AS col0
----
NULL

query I rowsort
SELECT + 54 + + - 47
----
7

query I rowsort
SELECT - 66 + 69 * + ( 21 ) col1
----
1383

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT + 71 * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9724
SELECT + 71 * COUNT ( * )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9725
SELECT + 42 + 46 + - 69 / 16 * MIN( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT + 42 + 46 + - 69 / 16 * MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT + NULLIF ( + COUNT( * ), + 65 ) - 27
----
-26

skipif mysql # not compatible
query I rowsort label-9726
SELECT + NULLIF ( + COUNT ( * ), + 65 ) - 27
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL MAX( + - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL MAX ( + - 39 ) AS col2
----
-39

query I rowsort
SELECT ALL NULLIF ( - - 61, + 54 )
----
61

query I rowsort
SELECT ALL + 2 * + - 3 * 55 * + + 69 col0
----
-22770

query I rowsort
SELECT + + 91 * + 50 + + 61 col2
----
4611

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT 78 * - + NULLIF ( 68, - CASE WHEN 42 > NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN + NULLIF ( + - 21, - COUNT( * ) ) * + ( - 43 ) - 24 ELSE NULL END ) col0
----
-5304

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT 78 * - + NULLIF ( 68, - CASE WHEN 42 > NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN + NULLIF ( + - 21, - COUNT ( * ) ) * + ( - 43 ) - 24 ELSE NULL END ) col0
----
-5304

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9732
SELECT ALL - CAST( NULL AS DECIMAL ) + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL - CAST ( NULL AS REAL ) + 14 AS col1
----
NULL

query I rowsort
SELECT + 52 + 71 + - - 90 + + - 1 + - 88 + + 13 * + + 50 AS col1
----
774

query I rowsort
SELECT + ( + - 6 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + 66 + 77 + COUNT( * ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-9735
SELECT + 66 + 77 + COUNT ( * ) AS col1
----
144

query I rowsort
SELECT - 35 * 34 * 30 * - 8 + + 48 AS col1
----
285648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9737
SELECT DISTINCT - 12 DIV - CAST( COUNT( * ) AS SIGNED ) + - + 32 col1
----
-20

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT - 12 / - CAST ( COUNT ( * ) AS INTEGER ) + - + 32 col1
----
-20

query I rowsort
SELECT DISTINCT + + 58
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9739
SELECT DISTINCT 24 DIV 82 + + - 99 + - - COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT 24 / 82 + + - 99 + - - COUNT ( * ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT + 82 DIV 49 + + - 13 col1
----
-12

skipif mysql # not compatible
query I rowsort label-9740
SELECT + 82 / 49 + + - 13 col1
----
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-9741
SELECT ALL - 26 DIV + 71, 33 * - 64 AS col0
----
0
-2112

skipif mysql # not compatible
query II rowsort label-9741
SELECT ALL - 26 / + 71, 33 * - 64 AS col0
----
0
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT COUNT( * ) + - - 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9742
SELECT COUNT ( * ) + - - 10 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ( + - 98 ) * COALESCE ( - 76, - 86 ) - + COUNT( * ) AS col2
----
7447

skipif mysql # not compatible
query I rowsort label-9743
SELECT ( + - 98 ) * COALESCE ( - 76, - 86 ) - + COUNT ( * ) AS col2
----
7447

query I rowsort
SELECT DISTINCT + 66 * + ( 92 )
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT COUNT( ALL + 63 ) * + 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9745
SELECT COUNT ( ALL + 63 ) * + 66 AS col2
----
66

query I rowsort
SELECT 26 * 23 * + + 54 * - - 14
----
452088

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9747
SELECT ALL - ( CAST( - 33 AS SIGNED ) ) AS col2, - 86 AS col0
----
33
-86

skipif mysql # not compatible
query II rowsort label-9747
SELECT ALL - ( CAST ( - 33 AS INTEGER ) ) AS col2, - 86 AS col0
----
33
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9748
SELECT ALL - ( - + ( + - COUNT( * ) ) ) AS col1, 4 AS col0
----
-1
4

skipif mysql # not compatible
query II rowsort label-9748
SELECT ALL - ( - + ( + - COUNT ( * ) ) ) AS col1, 4 AS col0
----
-1
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9749
SELECT DISTINCT - COUNT( * ) AS col0, MAX( - 41 ) + + COUNT( ALL 17 ) + - - 95 + - 27 DIV - 28 - 81 + - + 28 DIV - ( - 93 ) + - 53 * 36 * - 25 * ( + 22 * + 82 + - 89 DIV + 4 ) AS col0
----
-1
85001374

skipif mysql # not compatible
query II rowsort label-9749
SELECT DISTINCT - COUNT ( * ) AS col0, MAX ( - 41 ) + + COUNT ( ALL 17 ) + - - 95 + - 27 / - 28 - 81 + - + 28 / - ( - 93 ) + - 53 * 36 * - 25 * ( + 22 * + 82 + - 89 / + 4 ) AS col0
----
-1
85001374

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT 13 * COALESCE ( 20, - 47 DIV - + 78 + - 79 ) AS col2
----
260

skipif mysql # not compatible
query I rowsort label-9750
SELECT 13 * COALESCE ( 20, - 47 / - + 78 + - 79 ) AS col2
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT DISTINCT 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT 55 * + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT DISTINCT - SUM( DISTINCT 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT - SUM ( DISTINCT 74 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT 26 * - COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9753
SELECT 26 * - COUNT ( * ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL - CASE 74 WHEN + COUNT( * ) THEN + + 60 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL - CASE 74 WHEN + COUNT ( * ) THEN + + 60 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9755
SELECT + 11, + 28 * + CAST( - NULLIF ( + 32, 4 * + + 32 * - AVG ( + + 13 ) ) AS SIGNED ) + + 15 col1
----
11
-881

skipif mysql # not compatible
query II rowsort label-9755
SELECT + 11, + 28 * + CAST ( - NULLIF ( + 32, 4 * + + 32 * - AVG ( + + 13 ) ) AS INTEGER ) + + 15 col1
----
11
-881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9756
SELECT 42 + + - COUNT( * ) * + - CAST( NULL AS SIGNED ) * - 16 * 96 * + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT 42 + + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - 16 * 96 * + - 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9757
SELECT DISTINCT 16 AS col0, - MAX( DISTINCT COALESCE ( 21, - + 89 ) ) + - COUNT( * ) + 72 / + CASE 61 WHEN 9 THEN 82 ELSE NULL END / + + 7 + + 27 - + 86 AS col0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-9757
SELECT DISTINCT 16 AS col0, - MAX ( DISTINCT COALESCE ( 21, - + 89 ) ) + - COUNT ( * ) + 72 / + CASE 61 WHEN 9 THEN 82 ELSE NULL END / + + 7 + + 27 - + 86 AS col0
----
16
NULL

query II rowsort
SELECT ALL 67 AS col2, + 76 col1
----
67
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9759
SELECT SUM( ALL + 68 ) DIV + MIN( ALL - ( + 86 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9759
SELECT SUM ( ALL + 68 ) / + MIN ( ALL - ( + 86 ) ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9760
SELECT DISTINCT 27 AS col1, - CASE COUNT( * ) WHEN + CAST( NULL AS DECIMAL ) * 47 THEN + 7 WHEN - COUNT( * ) THEN 61 END
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9760
SELECT DISTINCT 27 AS col1, - CASE COUNT ( * ) WHEN + CAST ( NULL AS REAL ) * 47 THEN + 7 WHEN - COUNT ( * ) THEN 61 END
----
27
NULL

query I rowsort
SELECT ALL 30 * - 57
----
-1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9762
SELECT COUNT( * ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT COUNT ( * ) / 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9763
SELECT ALL + 42 + + 85 + - ( 91 ) + 17 * + COUNT( * ) AS col1, - 6 + + 56 * 39
----
53
2178

skipif mysql # not compatible
query II rowsort label-9763
SELECT ALL + 42 + + 85 + - ( 91 ) + 17 * + COUNT ( * ) AS col1, - 6 + + 56 * 39
----
53
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT + 74 * COUNT( * ) + - 78 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9764
SELECT + 74 * COUNT ( * ) + - 78 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT ALL + COUNT( * ) * + 71 * 88 col1, - 64 * 0
----
6248
0

skipif mysql # not compatible
query II rowsort label-9765
SELECT ALL + COUNT ( * ) * + 71 * 88 col1, - 64 * 0
----
6248
0

query I rowsort
SELECT DISTINCT - 73 * + + 82
----
-5986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9767
SELECT + ( - CASE 84 WHEN - + 21 - ( 36 ) + CAST( + 80 AS DECIMAL ) * + - 48 / 68 + + + 2 * - 41 * + - 36 THEN NULL WHEN ( CASE 66 WHEN 50 * 59 - + 55 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 74 ELSE 63 / 24 END ) THEN CASE 47 WHEN - 42 - - 75 THEN NULL WHEN + COUNT( * ) THEN + 48 END WHEN 12 THEN 26 ELSE 13 + 78 * 78 END )
----
-6097

skipif mysql # not compatible
query I rowsort label-9767
SELECT + ( - CASE 84 WHEN - + 21 - ( 36 ) + CAST ( + 80 AS REAL ) * + - 48 / 68 + + + 2 * - 41 * + - 36 THEN NULL WHEN ( CASE 66 WHEN 50 * 59 - + 55 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 74 ELSE 63 / 24 END ) THEN CASE 47 WHEN - 42 - - 75 THEN NULL WHEN + COUNT ( * ) THEN + 48 END WHEN 12 THEN 26 ELSE 13 + 78 * 78 END )
----
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT CASE 78 WHEN COUNT( * ) THEN NULL WHEN ( + + 72 ) THEN - 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT CASE 78 WHEN COUNT ( * ) THEN NULL WHEN ( + + 72 ) THEN - 77 END
----
NULL

query I rowsort
SELECT ALL 67 + 2 AS col0
----
69

query I rowsort
SELECT - 41 - + 63 + + - ( - 17 ) * + 93 + - 86 + - + 85 + - 41 + 48 * 89 - + 36 AS col0
----
5501

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT 57 DIV + + 59 * - ( - 3 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9771
SELECT 57 / + + 59 * - ( - 3 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9772
SELECT - ( - MIN( + - 49 ) ) - - 39 - - - 15 DIV + 34 * - 75 + 24 + + + 78 AS col1, + 32 col2
----
92
32

skipif mysql # not compatible
query II rowsort label-9772
SELECT - ( - MIN ( + - 49 ) ) - - 39 - - - 15 / + 34 * - 75 + 24 + + + 78 AS col1, + 32 col2
----
92
32

query I rowsort
SELECT ALL 4 col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9774
SELECT - COUNT( * ), COUNT( * ) + + CASE 34 WHEN - + COUNT( * ) - 60 * + + MAX( + - 95 ) THEN NULL WHEN - 90 THEN + - 15 END + - COUNT( * ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9774
SELECT - COUNT ( * ), COUNT ( * ) + + CASE 34 WHEN - + COUNT ( * ) - 60 * + + MAX ( + - 95 ) THEN NULL WHEN - 90 THEN + - 15 END + - COUNT ( * ) AS col1
----
-1
NULL

query I rowsort
SELECT ALL + 79 + - 75
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT 12 * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT 12 * - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL + 99 + - - 39 + SUM( + 97 ) AS col0
----
235

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL + 99 + - - 39 + SUM ( + 97 ) AS col0
----
235

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT DISTINCT 56 + - ( - COUNT( * ) ) AS col0, - 72
----
57
-72

skipif mysql # not compatible
query II rowsort label-9778
SELECT DISTINCT 56 + - ( - COUNT ( * ) ) AS col0, - 72
----
57
-72

query I rowsort
SELECT ALL - 24 * - 11 AS col1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT COALESCE ( - - 8, + COUNT( * ) - 90 - - 0, - 89 ) * COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-9780
SELECT COALESCE ( - - 8, + COUNT ( * ) - 90 - - 0, - 89 ) * COUNT ( * )
----
8

query I rowsort
SELECT DISTINCT AVG ( - 66 ) + + - 39 * + - CASE - + 39 WHEN - + 46 / + 73 THEN + 55 WHEN 89 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 78 * - 11 AS col1
----
-858

onlyif mysql # aggregate syntax: 
query II rowsort label-9783
SELECT + SUM( ALL + 42 ) * + 74 AS col0, 31 + - 44 * + 86 * - + 57 * + 3
----
3108
647095

skipif mysql # not compatible
query II rowsort label-9783
SELECT + SUM ( ALL + 42 ) * + 74 AS col0, 31 + - 44 * + 86 * - + 57 * + 3
----
3108
647095

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL SUM( ALL - 98 ) * - 27 AS col1
----
2646

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL SUM ( ALL - 98 ) * - 27 AS col1
----
2646

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT 5 DIV + 16
----
0

skipif mysql # not compatible
query I rowsort label-9785
SELECT 5 / + 16
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9786
SELECT DISTINCT 68 - 65 AS col1, - CAST( NULL AS SIGNED ) col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9786
SELECT DISTINCT 68 - 65 AS col1, - CAST ( NULL AS INTEGER ) col2
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9787
SELECT ALL COUNT( * ) * + + 20, CAST( - 78 AS SIGNED ) + 88 + - + 17 AS col0
----
20
-7

skipif mysql # not compatible
query II rowsort label-9787
SELECT ALL COUNT ( * ) * + + 20, CAST ( - 78 AS INTEGER ) + 88 + - + 17 AS col0
----
20
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT DISTINCT + NULLIF ( + ( - + 3 ), - - COUNT( * ) ) DIV - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT + NULLIF ( + ( - + 3 ), - - COUNT ( * ) ) / - COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9789
SELECT ALL 8 DIV + 49 * + 49 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL 8 / + 49 * + 49 * COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9790
SELECT 3 DIV - 74 AS col1, 21
----
0
21

skipif mysql # not compatible
query II rowsort label-9790
SELECT 3 / - 74 AS col1, 21
----
0
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - COUNT( * ) * + + 22 + + CASE WHEN ( + 83 ) <> 13 THEN NULL ELSE 17 - - + COUNT( * ) - + 53 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT - COUNT ( * ) * + + 22 + + CASE WHEN ( + 83 ) <> 13 THEN NULL ELSE 17 - - + COUNT ( * ) - + 53 END col0
----
NULL

query I rowsort
SELECT 48 * - + 3 * + - 22
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT 51 * + - MAX( DISTINCT + - 97 )
----
4947

skipif mysql # not compatible
query I rowsort label-9793
SELECT 51 * + - MAX ( DISTINCT + - 97 )
----
4947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL 60 * + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL 60 * + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 61 * 62 * 45 col2
----
170190

query I rowsort
SELECT ( - + 30 ) * + 13
----
-390

query I rowsort
SELECT 54 * 0 + - 25 AS col1
----
-25

query I rowsort
SELECT ALL 24 + + 41 + - 67
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT 51 + - 20 DIV + - 44
----
51

skipif mysql # not compatible
query I rowsort label-9799
SELECT 51 + - 20 / + - 44
----
51

query I rowsort
SELECT ALL ( + 1 ) + - 63 * - - ( + 86 ) AS col0
----
-5417

query I rowsort
SELECT ALL + 18 + - 9 + + + 39
----
48

query I rowsort
SELECT 57 + - 27
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT ALL CAST( NULL AS SIGNED ) * - COALESCE ( - - CAST( NULL AS SIGNED ), + + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( - - CAST ( NULL AS INTEGER ), + + 91 )
----
NULL

query I rowsort
SELECT ALL - + ( - - 44 ) + - 51 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ( 4 ) + - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9805
SELECT ( 4 ) + - COUNT ( * ) AS col1
----
3

query II rowsort
SELECT DISTINCT - ( + - 18 ) AS col2, + 38 AS col0
----
18
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT + 2 * - COUNT( * ) + + - 47 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9807
SELECT + 2 * - COUNT ( * ) + + - 47 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT - 72 + + CAST( + 91 AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9808
SELECT - 72 + + CAST ( + 91 AS INTEGER ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL + - COUNT( + 25 ) + 27 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL + - COUNT ( + 25 ) + 27 AS col1
----
26

query I rowsort
SELECT ALL - + 24 + - 37 + 67 * + 30 AS col0
----
1949

query I rowsort
SELECT 95 + - 16
----
79

query I rowsort
SELECT - + COALESCE ( + 16, 73 * + - 70, + 20 * 58 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT 84 - NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9813
SELECT 84 - NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT - SUM( + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-9814
SELECT - SUM ( + 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9815
SELECT - CAST( - 51 AS DECIMAL ) + CASE + 28 WHEN 27 THEN NULL ELSE - 97 + - 59 - + 81 / + - COUNT( * ) * + 16 END + + + 25 + + - 18 * - COUNT( * ) * 27 / 91 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT - CAST ( - 51 AS REAL ) + CASE + 28 WHEN 27 THEN NULL ELSE - 97 + - 59 - + 81 / + - COUNT ( * ) * + 16 END + + + 25 + + - 18 * - COUNT ( * ) * 27 / 91 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( + 60 ) AS col0
----
-60

query I rowsort
SELECT ALL - 75 + + ( + 91 ) AS col2
----
16

query I rowsort
SELECT ALL - - 19 * 73
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL - 95 - + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - 95 - + COUNT ( * )
----
-96

query I rowsort
SELECT - - 89 + + 54 * COALESCE ( 48, 57 )
----
2681

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL + MAX( 83 ) * - 20
----
-1660

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL + MAX ( 83 ) * - 20
----
-1660

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT - + 69 * - 81 + 6 + - COUNT( * ) + - 48 * - 4 col0
----
5786

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - + 69 * - 81 + 6 + - COUNT ( * ) + - 48 * - 4 col0
----
5786

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL + + COALESCE ( + 13, - 97 * - 95 - - 0 + + 47 * + MAX( DISTINCT 71 ) * ( - 21 ) ) * + + 75 + - + COUNT( * ) * - + 27 + - + COUNT( * ) + - CASE - 9 + - 12 WHEN - 42 THEN 19 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL + + COALESCE ( + 13, - 97 * - 95 - - 0 + + 47 * + MAX ( DISTINCT 71 ) * ( - 21 ) ) * + + 75 + - + COUNT ( * ) * - + 27 + - + COUNT ( * ) + - CASE - 9 + - 12 WHEN - 42 THEN 19 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9824
SELECT - COUNT( * ) * 0, + ( + 15 ) * - 88 AS col2
----
0
-1320

skipif mysql # not compatible
query II rowsort label-9824
SELECT - COUNT ( * ) * 0, + ( + 15 ) * - 88 AS col2
----
0
-1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9825
SELECT - - AVG ( ALL + ( 40 ) ) + + - 50 - - 81 * - 6 + + COUNT( * ) + - CASE + + 13 WHEN COUNT( ALL 88 ) * + COALESCE ( + 40, - 42 * CASE + 72 * + COALESCE ( 36, 84 + COUNT( * ), - 51 * + 28, 88 ) + 21 WHEN 83 THEN + 93 END ) + + CAST( NULL AS SIGNED ) * ( - 39 * - CAST( CASE 0 WHEN 36 THEN 52 WHEN - 5 THEN NULL END * 19 AS SIGNED ) ) THEN COUNT( * ) * - 42 END + 36 * 34 * - 5 * 21 * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT - - AVG ( ALL + ( 40 ) ) + + - 50 - - 81 * - 6 + + COUNT ( * ) + - CASE + + 13 WHEN COUNT ( ALL 88 ) * + COALESCE ( + 40, - 42 * CASE + 72 * + COALESCE ( 36, 84 + COUNT ( * ), - 51 * + 28, 88 ) + 21 WHEN 83 THEN + 93 END ) + + CAST ( NULL AS INTEGER ) * ( - 39 * - CAST ( CASE 0 WHEN 36 THEN 52 WHEN - 5 THEN NULL END * 19 AS INTEGER ) ) THEN COUNT ( * ) * - 42 END + 36 * 34 * - 5 * 21 * 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9826
SELECT - + 12 + 15 AS col2, COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-9826
SELECT - + 12 + 15 AS col2, COUNT ( * )
----
3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT + - CAST( - - 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-9827
SELECT + - CAST ( - - 33 AS INTEGER )
----
-33

query I rowsort
SELECT DISTINCT + ( - - 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT + 9 * - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9829
SELECT + 9 * - COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT ALL CAST( NULL AS SIGNED ) * - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL CAST ( NULL AS INTEGER ) * - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9831
SELECT - 17 * 56 + 52 + - MIN( + 43 ) DIV - 64 * - 74
----
-900

skipif mysql # not compatible
query I rowsort label-9831
SELECT - 17 * 56 + 52 + - MIN ( + 43 ) / - 64 * - 74
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL + COUNT( - - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL + COUNT ( - - 48 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9833
SELECT 48 DIV 29 + + 46 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9833
SELECT 48 / 29 + + 46 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL ( - - COUNT( * ) ) * - 87 + + + 72
----
-15

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL ( - - COUNT ( * ) ) * - 87 + + + 72
----
-15

query I rowsort
SELECT - 73 * 96 * 79
----
-553632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9836
SELECT + COUNT( - 1 ) + 64 + + CAST( - - COUNT( * ) AS SIGNED ) * 28 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9836
SELECT + COUNT ( - 1 ) + 64 + + CAST ( - - COUNT ( * ) AS INTEGER ) * 28 AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT ALL 84 * 56 DIV COUNT( * ) * NULLIF ( + - 84, + 81 + 86 + + - COUNT( * ) + - - 59 DIV - - 7 ) AS col2
----
-395136

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL 84 * 56 / COUNT ( * ) * NULLIF ( + - 84, + 81 + 86 + + - COUNT ( * ) + - - 59 / - - 7 ) AS col2
----
-395136

query I rowsort
SELECT NULLIF ( + 86, + + ( 73 ) - - 32 + + 23 + + 56 * + ( - 8 ) ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT + AVG ( + ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT + AVG ( + ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9840
SELECT + 36 * + 6 * - 93 * 17 + + 11 DIV 14 * 57
----
-341496

skipif mysql # not compatible
query I rowsort label-9840
SELECT + 36 * + 6 * - 93 * 17 + + 11 / 14 * 57
----
-341496

query I rowsort
SELECT DISTINCT + 93 col0
----
93

query I rowsort
SELECT DISTINCT 66 * 77 * - 40 col1
----
-203280

query I rowsort
SELECT DISTINCT 83 * + 48 AS col2
----
3984

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT + 95 DIV + - 27
----
-3

skipif mysql # not compatible
query I rowsort label-9844
SELECT + 95 / + - 27
----
-3

query I rowsort
SELECT + 13 * - + ( 15 )
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT ALL + ( + 69 ) * + - ( + 22 ) + + COALESCE ( - 31, 55 * - 70 + + - ( - 67 ), + + 11 ) + + COALESCE ( + - CAST( NULL AS SIGNED ), 79 * + - COUNT( * ) ) AS col1
----
-1628

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL + ( + 69 ) * + - ( + 22 ) + + COALESCE ( - 31, 55 * - 70 + + - ( - 67 ), + + 11 ) + + COALESCE ( + - CAST ( NULL AS INTEGER ), 79 * + - COUNT ( * ) ) AS col1
----
-1628

query I rowsort
SELECT + ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT SUM( + + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9848
SELECT SUM ( + + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + CASE - - 46 WHEN - + 75 THEN + COUNT( * ) / 57 WHEN 63 THEN NULL WHEN + 34 THEN + COALESCE ( - 83, + ( + + 24 ) ) - + 92 / 93 * + + 54 * + 73 END / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT + CASE - - 46 WHEN - + 75 THEN + COUNT ( * ) / 57 WHEN 63 THEN NULL WHEN + 34 THEN + COALESCE ( - 83, + ( + + 24 ) ) - + 92 / 93 * + + 54 * + 73 END / COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL - 0 * + COUNT( * ) * + 71 + + 96 col1
----
96

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL - 0 * + COUNT ( * ) * + 71 + + 96 col1
----
96

query I rowsort
SELECT + + 9 - - - 77 AS col0
----
-68

query I rowsort
SELECT ALL 40 + - + 53 + 27 * - + 48 + 94 col2
----
-1215

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT + + 60 DIV - + 57
----
-1

skipif mysql # not compatible
query I rowsort label-9853
SELECT + + 60 / - + 57
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9854
SELECT ALL COALESCE ( + 67, + - COUNT( * ) ), ( + + 34 ) DIV 18 AS col1
----
67
1

skipif mysql # not compatible
query II rowsort label-9854
SELECT ALL COALESCE ( + 67, + - COUNT ( * ) ), ( + + 34 ) / 18 AS col1
----
67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT + 90 * SUM( - - 10 ) + - COUNT( * ) * - 64 AS col2
----
964

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + 90 * SUM ( - - 10 ) + - COUNT ( * ) * - 64 AS col2
----
964

query I rowsort
SELECT - COALESCE ( 22, - - 17 * 18 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9857
SELECT ALL + CAST( - 29 AS SIGNED ) - + 30 AS col2, 6
----
-59
6

skipif mysql # not compatible
query II rowsort label-9857
SELECT ALL + CAST ( - 29 AS INTEGER ) - + 30 AS col2, 6
----
-59
6

query I rowsort
SELECT - + 33 col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT + COUNT( * ) * + 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + COUNT ( * ) * + 58 AS col0
----
58

query I rowsort
SELECT + 12 * 98 AS col0
----
1176

query I rowsort
SELECT - - 2 + + CASE - CASE 30 WHEN - 42 THEN 6 END WHEN - - 50 THEN + 63 WHEN - 86 THEN NULL END * + 35 * + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL + COUNT( * ) - 28 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + COUNT ( * ) - 28 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-9863
SELECT - - 58 - COUNT( * ) - - 81 AS col1, 53 AS col1
----
138
53

skipif mysql # not compatible
query II rowsort label-9863
SELECT - - 58 - COUNT ( * ) - - 81 AS col1, 53 AS col1
----
138
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT - - 52 * COUNT( - + 44 ) + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9864
SELECT - - 52 * COUNT ( - + 44 ) + - COUNT ( * )
----
51

query I rowsort
SELECT - 18 + + 36 AS col2
----
18

query I rowsort
SELECT DISTINCT - - 42 * + ( - 1 ) * 42 * + 1 col2
----
-1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9867
SELECT ALL - COUNT( * ) DIV - 2 * - 62
----
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - COUNT ( * ) / - 2 * - 62
----
0

query I rowsort
SELECT ALL - 16 * - 16
----
256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9869
SELECT ALL CAST( - 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL CAST ( - 9 AS INTEGER )
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9870
SELECT DISTINCT CAST( NULL AS SIGNED ), 39 + + CAST( NULL AS DECIMAL ) + + 54
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9870
SELECT DISTINCT CAST ( NULL AS INTEGER ), 39 + + CAST ( NULL AS REAL ) + + 54
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9871
SELECT 62 DIV 9 - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9871
SELECT 62 / 9 - COUNT ( * ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9872
SELECT - 73 DIV - COALESCE ( - - CASE - COUNT( * ) WHEN - + ( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE COUNT( * ) * + + 14 * - + 61 + + 20 * MAX( DISTINCT + 70 ) * - COUNT( * ) END, - + COUNT( * ) DIV - 11 * + 88 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9872
SELECT - 73 / - COALESCE ( - - CASE - COUNT ( * ) WHEN - + ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE COUNT ( * ) * + + 14 * - + 61 + + 20 * MAX ( DISTINCT + 70 ) * - COUNT ( * ) END, - + COUNT ( * ) / - 11 * + 88 ) col2
----
0

query I rowsort
SELECT - 79 * + 11
----
-869

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT ALL + COUNT( 86 ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9874
SELECT ALL + COUNT ( 86 ) AS col0, COUNT ( * )
----
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9875
SELECT 81 DIV + 77 - - + ( 18 ) AS col1, 66 AS col0
----
19
66

skipif mysql # not compatible
query II rowsort label-9875
SELECT 81 / + 77 - - + ( 18 ) AS col1, 66 AS col0
----
19
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT + CASE MAX( - 68 ) WHEN - 63 THEN + 19 * + + 79 + - 42 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT + CASE MAX ( - 68 ) WHEN - 63 THEN + 19 * + + 79 + - 42 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT CAST( + 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-9877
SELECT CAST ( + 12 AS INTEGER )
----
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9878
SELECT ALL - CAST( 87 AS SIGNED ) DIV 86 + - 59 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - CAST ( 87 AS INTEGER ) / 86 + - 59 AS col0
----
-60

query I rowsort
SELECT - 43 * + 13 * + 31
----
-17329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9880
SELECT ALL - 3 DIV 14 + + - COUNT( * ) * ( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL - 3 / 14 + + - COUNT ( * ) * ( - 59 )
----
59

query I rowsort
SELECT ( 61 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9882
SELECT ALL 31 / - CAST( NULL AS SIGNED ) + - 97 * + 24, + 9 + + + ( - 1 ) AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-9882
SELECT ALL 31 / - CAST ( NULL AS INTEGER ) + - 97 * + 24, + 9 + + + ( - 1 ) AS col1
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT + COUNT( * ) - ( + 36 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9883
SELECT + COUNT ( * ) - ( + 36 ) AS col1
----
-35

query I rowsort
SELECT ALL + ( + 92 ) AS col2
----
92

query I rowsort
SELECT + ( ( + - 2 ) )
----
-2

query I rowsort
SELECT - 81 * + 26 + - + 80
----
-2186

query I rowsort
SELECT + ( - + 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + - CASE + 34 WHEN + 32 THEN NULL WHEN - 42 * - - COUNT( * ) THEN + ( + - 53 ) WHEN - 6 THEN NULL ELSE NULL END * 94 + - - ( + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT + - CASE + 34 WHEN + 32 THEN NULL WHEN - 42 * - - COUNT ( * ) THEN + ( + - 53 ) WHEN - 6 THEN NULL ELSE NULL END * 94 + - - ( + 80 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL ( - CASE - + 30 WHEN COUNT( * ) - + 1 THEN + - 12 + 87 ELSE NULL END ) * COALESCE ( - 95, 37 * + COUNT( ALL 29 ) * + NULLIF ( - - 32, + 58 ) * 49 * - ( 69 ) + 94, - 38 ) + - COALESCE ( + 17 + 98 * 64, CASE + 82 WHEN 75 THEN 76 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL ( - CASE - + 30 WHEN COUNT ( * ) - + 1 THEN + - 12 + 87 ELSE NULL END ) * COALESCE ( - 95, 37 * + COUNT ( ALL 29 ) * + NULLIF ( - - 32, + 58 ) * 49 * - ( 69 ) + 94, - 38 ) + - COALESCE ( + 17 + 98 * 64, CASE + 82 WHEN 75 THEN 76 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT DISTINCT + + CAST( + + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT + + CAST ( + + 21 AS INTEGER )
----
21

query I rowsort
SELECT ALL 60 - + + 70 AS col1
----
-10

query I rowsort
SELECT - 43 + - 13
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL COALESCE ( - + COALESCE ( + CAST( NULL AS SIGNED ), - - CAST( NULL AS SIGNED ) + 39 - 92 ), + 51 + 44 + + 29, 66 * COUNT( * ) - COUNT( * ) )
----
124

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL COALESCE ( - + COALESCE ( + CAST ( NULL AS INTEGER ), - - CAST ( NULL AS INTEGER ) + 39 - 92 ), + 51 + 44 + + 29, 66 * COUNT ( * ) - COUNT ( * ) )
----
124

query I rowsort
SELECT - 57 + - 95
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT DISTINCT + 26 DIV 36 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT + 26 / 36 / + - 50
----
0

query I rowsort
SELECT ALL + ( + 3 ) AS col1
----
3

query I rowsort
SELECT + 10 * + 76
----
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT - CAST( + 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-9898
SELECT - CAST ( + 67 AS INTEGER )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9899
SELECT ALL 63 * + + 84, COUNT( * ) * - CAST( + CASE 58 WHEN + CASE - - 97 WHEN + - 93 * 1 THEN COUNT( * ) ELSE + 91 END THEN + + ( - + COUNT( * ) ) END AS SIGNED ) * - NULLIF ( 31, - 72 ) + COUNT( * ) AS col0
----
5292
NULL

skipif mysql # not compatible
query II rowsort label-9899
SELECT ALL 63 * + + 84, COUNT ( * ) * - CAST ( + CASE 58 WHEN + CASE - - 97 WHEN + - 93 * 1 THEN COUNT ( * ) ELSE + 91 END THEN + + ( - + COUNT ( * ) ) END AS INTEGER ) * - NULLIF ( 31, - 72 ) + COUNT ( * ) AS col0
----
5292
NULL

query I rowsort
SELECT 73 + - 7
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL ( - 86 ) + + - COALESCE ( - + 61, COUNT( * ), - 60 - + - COUNT( * ) * 70 + NULLIF ( - COALESCE ( + 1, - 5 ), + 71 * - 90 + - ( - - NULLIF ( NULLIF ( - 40, + 99 ), - 29 * - 0 ) ) * AVG ( - 83 ) + 3 / 52 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL ( - 86 ) + + - COALESCE ( - + 61, COUNT ( * ), - 60 - + - COUNT ( * ) * 70 + NULLIF ( - COALESCE ( + 1, - 5 ), + 71 * - 90 + - ( - - NULLIF ( NULLIF ( - 40, + 99 ), - 29 * - 0 ) ) * AVG ( - 83 ) + 3 / 52 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT COUNT( * ) + + ( - 35 ) + 31 * - 48 AS col2
----
-1522

skipif mysql # not compatible
query I rowsort label-9903
SELECT COUNT ( * ) + + ( - 35 ) + 31 * - 48 AS col2
----
-1522

query I rowsort
SELECT 32 + + 38
----
70

query I rowsort
SELECT ALL ( 24 ) + + 13
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT 86 * + - COUNT( * ) + - 29 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-9906
SELECT 86 * + - COUNT ( * ) + - 29 AS col1
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT ALL + CAST( - 12 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL + CAST ( - 12 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - + 59 ) AS col2
----
59

query I rowsort
SELECT ALL + 86 + 99 - 40 * + - 92
----
3865

query I rowsort
SELECT 76 + - + 43 * + - 6 + + 39
----
373

onlyif mysql # DIV for integer division: 
query I rowsort label-9911
SELECT ALL - 23 + + 3 DIV + + 72
----
-23

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL - 23 + + 3 / + + 72
----
-23

query I rowsort
SELECT DISTINCT + 68 + 79 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL - ( - ( - + MIN( ALL - - 55 ) ) )
----
-55

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL - ( - ( - + MIN ( ALL - - 55 ) ) )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9914
SELECT DISTINCT + 65 - + 63 col1, 48 DIV MAX( ALL ( - 7 ) ) AS col1
----
2
-6

skipif mysql # not compatible
query II rowsort label-9914
SELECT DISTINCT + 65 - + 63 col1, 48 / MAX ( ALL ( - 7 ) ) AS col1
----
2
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL + COUNT( * ) - - - 44 + - 91 AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL + COUNT ( * ) - - - 44 + - 91 AS col2
----
-134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9916
SELECT - CASE + + 57 WHEN - 77 THEN NULL WHEN + - CAST( NULL AS DECIMAL ) THEN + 82 / - 89 + - + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT - CASE + + 57 WHEN - 77 THEN NULL WHEN + - CAST ( NULL AS REAL ) THEN + 82 / - 89 + - + 84 END
----
NULL

query I rowsort
SELECT ALL - - 88 AS col2
----
88

query I rowsort
SELECT 70 * 46
----
3220

onlyif mysql # aggregate syntax: 
query II rowsort label-9919
SELECT ALL + COUNT( * ) * - + COUNT( * ) AS col1, 28 + 21 AS col1
----
-1
49

skipif mysql # not compatible
query II rowsort label-9919
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col1, 28 + 21 AS col1
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT + ( + NULLIF ( + 26, COUNT( * ) - + 86 ) )
----
26

skipif mysql # not compatible
query I rowsort label-9920
SELECT + ( + NULLIF ( + 26, COUNT ( * ) - + 86 ) )
----
26

query II rowsort
SELECT + + ( - + 89 ) col0, + 76
----
-89
76

query I rowsort
SELECT + + 47 col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9923
SELECT CASE + 76 WHEN + 63 + 26 * - ( - CAST( NULL AS DECIMAL ) ) + - 9 + + + 53 - - 4 THEN NULL WHEN + 19 * + 49 - + 18 + - 84 / COALESCE ( 49, COUNT( * ) / 66 * 30, 31 ) THEN NULL ELSE 89 * 46 END
----
4094

skipif mysql # not compatible
query I rowsort label-9923
SELECT CASE + 76 WHEN + 63 + 26 * - ( - CAST ( NULL AS REAL ) ) + - 9 + + + 53 - - 4 THEN NULL WHEN + 19 * + 49 - + 18 + - 84 / COALESCE ( 49, COUNT ( * ) / 66 * 30, 31 ) THEN NULL ELSE 89 * 46 END
----
4094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9924
SELECT ALL + - 25 * + 39 * + NULLIF ( + - 97, + 46 ) * - COUNT( ALL + 9 ) * - CASE + - 73 WHEN + CAST( NULL AS SIGNED ) THEN - CAST( NULL AS DECIMAL ) WHEN NULLIF ( + + 43, + COUNT( * ) * + 24 ) THEN NULL WHEN - ( 31 ) THEN + 75 ELSE NULL END + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + - 25 * + 39 * + NULLIF ( + - 97, + 46 ) * - COUNT ( ALL + 9 ) * - CASE + - 73 WHEN + CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS REAL ) WHEN NULLIF ( + + 43, + COUNT ( * ) * + 24 ) THEN NULL WHEN - ( 31 ) THEN + 75 ELSE NULL END + 2 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 33, + 19 )
----
33

query I rowsort
SELECT DISTINCT - 0 col2
----
0

query I rowsort
SELECT DISTINCT 19 AS col0
----
19

query I rowsort
SELECT DISTINCT - 90 col0
----
-90

query I rowsort
SELECT ALL + + 58 + + 90 + + 70 AS col0
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT - MIN( + - 77 ) + - 37
----
40

skipif mysql # not compatible
query I rowsort label-9930
SELECT - MIN ( + - 77 ) + - 37
----
40

query I rowsort
SELECT DISTINCT 36 + + + 19 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ( + + COUNT( * ) ) * - 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9932
SELECT ( + + COUNT ( * ) ) * - 51 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9933
SELECT ALL ( - 30 ) + 83 AS col1, + COALESCE ( + SUM( + 71 ), CASE - 99 WHEN + COUNT( * ) + 27 THEN NULL WHEN + 46 + 93 THEN + COUNT( * ) ELSE NULL END, 70 * - 53 + - NULLIF ( + 39, + 33 ) + - NULLIF ( NULLIF ( COUNT( * ), 73 + + 71 ), MIN( DISTINCT 75 ) ) ) DIV + 94
----
53
0

skipif mysql # not compatible
query II rowsort label-9933
SELECT ALL ( - 30 ) + 83 AS col1, + COALESCE ( + SUM ( + 71 ), CASE - 99 WHEN + COUNT ( * ) + 27 THEN NULL WHEN + 46 + 93 THEN + COUNT ( * ) ELSE NULL END, 70 * - 53 + - NULLIF ( + 39, + 33 ) + - NULLIF ( NULLIF ( COUNT ( * ), 73 + + 71 ), MIN ( DISTINCT 75 ) ) ) / + 94
----
53
0

query I rowsort
SELECT DISTINCT 34 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9935
SELECT ALL CAST( ( - + 89 ) AS DECIMAL ) + CAST( NULL AS SIGNED ) + - + COUNT( - 44 ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL CAST ( ( - + 89 ) AS REAL ) + CAST ( NULL AS INTEGER ) + - + COUNT ( - 44 ) * 76
----
NULL

query I rowsort
SELECT COALESCE ( - + 53, 46, 89, - 96 ) * + ( + + 11 ) AS col1
----
-583

query II rowsort
SELECT ALL 40 AS col1, + 57 * - 78
----
40
-4446

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT COUNT( * ) * 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9938
SELECT COUNT ( * ) * 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ( 70 ) + - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9939
SELECT ( 70 ) + - - COUNT ( * )
----
71

query II rowsort
SELECT DISTINCT 45 AS col2, 86
----
45
86

query I rowsort
SELECT ALL 31 + - + 50 * + + 36
----
-1769

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT DISTINCT 61 + - 19 + - 53, + 71 * + + COUNT( * ) AS col1
----
-11
71

skipif mysql # not compatible
query II rowsort label-9942
SELECT DISTINCT 61 + - 19 + - 53, + 71 * + + COUNT ( * ) AS col1
----
-11
71

query I rowsort
SELECT DISTINCT NULLIF ( 24, + - 76 * + - 65 ) * + - 75 AS col1
----
-1800

query I rowsort
SELECT COALESCE ( - 52, - - 59, + 8 ) - - 26 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT + CASE - COALESCE ( - - COUNT( * ), + + 0, + COALESCE ( + MIN( ALL 36 ), 51 - + 79, + + 10 ) - 28 / + 89 * - 68 ) WHEN - 87 / + 3 THEN - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT + CASE - COALESCE ( - - COUNT ( * ), + + 0, + COALESCE ( + MIN ( ALL 36 ), 51 - + 79, + + 10 ) - 28 / + 89 * - 68 ) WHEN - 87 / + 3 THEN - 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL 72 * - - 0 - + SUM( 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL 72 * - - 0 - + SUM ( 29 )
----
-29

query II rowsort
SELECT DISTINCT + 8 col0, 90 AS col1
----
8
90

query I rowsort
SELECT ALL + + 29 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT - + 97 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT - + 97 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT ALL + COUNT( ALL + 88 ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + COUNT ( ALL + 88 ) / - 74
----
0

query I rowsort
SELECT DISTINCT + 70 * + 67 AS col0
----
4690

query I rowsort
SELECT 12 * - 61 + + 46 * + 13
----
-134

query I rowsort
SELECT + + 72 col1
----
72

query I rowsort
SELECT + + ( - + ( 51 ) ) * 87
----
-4437

query I rowsort
SELECT - 78 + + 18
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9956
SELECT 15, NULLIF ( 91, + - 69 ) + + + 23 DIV - + ( COUNT( * ) ) AS col0
----
15
68

skipif mysql # not compatible
query II rowsort label-9956
SELECT 15, NULLIF ( 91, + - 69 ) + + + 23 / - + ( COUNT ( * ) ) AS col0
----
15
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9957
SELECT - 81 * + CAST( NULL AS SIGNED ) - + MAX( 8 ) - - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT - 81 * + CAST ( NULL AS INTEGER ) - + MAX ( 8 ) - - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT 71 * - 90 + + ( ( + + COUNT( * ) ) ) * 75 AS col1
----
-6315

skipif mysql # not compatible
query I rowsort label-9958
SELECT 71 * - 90 + + ( ( + + COUNT ( * ) ) ) * 75 AS col1
----
-6315

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT - + 54 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-9959
SELECT - + 54 / + 77
----
0

query I rowsort
SELECT DISTINCT + ( 24 ) AS col0
----
24

query II rowsort
SELECT DISTINCT + 59 AS col2, + 50
----
59
50

query I rowsort
SELECT DISTINCT + 57 + - NULLIF ( + 89, 50 ) AS col1
----
-32

query I rowsort
SELECT ALL + 20 col1
----
20

query I rowsort
SELECT - 55 + 18 AS col1
----
-37

query I rowsort
SELECT ALL + 24 + 72 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + 64 * NULLIF ( - COUNT( DISTINCT + 21 ), - 83 ) + - 99 + 52
----
-111

skipif mysql # not compatible
query I rowsort label-9966
SELECT + 64 * NULLIF ( - COUNT ( DISTINCT + 21 ), - 83 ) + - 99 + 52
----
-111

query I rowsort
SELECT + 68 + CASE - 83 WHEN - 20 THEN NULL WHEN - 52 * 12 THEN NULL WHEN 59 + - - 70 THEN - - 75 ELSE - - 26 END AS col2
----
94

query I rowsort
SELECT DISTINCT + 12 * + 63 * - - 95 AS col2
----
71820

query I rowsort
SELECT ALL ( - 69 ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT - 68 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT - 68 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - CASE - ( - 60 ) WHEN 0 * - 0 THEN - 18 END col2
----
NULL

query I rowsort
SELECT DISTINCT 97 + + 72
----
169

query I rowsort
SELECT DISTINCT 56 + + - 12 col1
----
44

query I rowsort
SELECT DISTINCT + NULLIF ( 40, + 87 / - - 56 ) * + - 96
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT - MIN( ALL 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9975
SELECT - MIN ( ALL 27 ) AS col2
----
-27

query I rowsort
SELECT - 78 + 10
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT DISTINCT 89 DIV + - 70
----
-1

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT 89 / + - 70
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT + MIN( DISTINCT + 46 ) + - COALESCE ( 54, 60 * + - ( - 30 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-9978
SELECT + MIN ( DISTINCT + 46 ) + - COALESCE ( 54, 60 * + - ( - 30 ) )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9979
SELECT + ( 28 ) - 64 - - + 70 / SUM( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT + ( 28 ) - 64 - - + 70 / SUM ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 19 * + 14
----
266

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT + 30 + + - 48 DIV + - COALESCE ( 93, 89 + - + ( - 96 ) + - 10 )
----
30

skipif mysql # not compatible
query I rowsort label-9981
SELECT + 30 + + - 48 / + - COALESCE ( 93, 89 + - + ( - 96 ) + - 10 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9982
SELECT ALL 0 DIV - COUNT( * ) - + - 1 + + 52 * + 40 * COUNT( * ) * - 50 * - + 24 * 52 DIV + COUNT( * )
----
129792001

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL 0 / - COUNT ( * ) - + - 1 + + 52 * + 40 * COUNT ( * ) * - 50 * - + 24 * 52 / + COUNT ( * )
----
129792001

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL COUNT( * ) * + + COALESCE ( COUNT( * ), + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL COUNT ( * ) * + + COALESCE ( COUNT ( * ), + 83 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT + CASE + 30 WHEN - CAST( NULL AS SIGNED ) * COUNT( * ) THEN - - 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT + CASE + 30 WHEN - CAST ( NULL AS INTEGER ) * COUNT ( * ) THEN - - 91 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9985
SELECT + 18 * 56 + 57 DIV - + MIN( + 11 ) col0
----
1003

skipif mysql # not compatible
query I rowsort label-9985
SELECT + 18 * 56 + 57 / - + MIN ( + 11 ) col0
----
1003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9986
SELECT ALL + 68 / 3 - - 80 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + 68 / 3 - - 80 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 79 * - 68
----
-5372

query I rowsort
SELECT ALL + 12 col0
----
12

query I rowsort
SELECT DISTINCT + + 88
----
88

query I rowsort
SELECT + + CASE - - 97 WHEN + 17 THEN - AVG ( ALL + + 63 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + ( + 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT - - COUNT( * ) * + 38 * + 65 * + 18 + - + 0 col2
----
44460

skipif mysql # not compatible
query I rowsort label-9992
SELECT - - COUNT ( * ) * + 38 * + 65 * + 18 + - + 0 col2
----
44460

query I rowsort
SELECT DISTINCT + 3 * - 55 + - 94 + ( 16 )
----
-243

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9994
SELECT ALL + + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL + + ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - 30 * - NULLIF ( 82, 62 ) AS col2
----
2460

query I rowsort
SELECT + - 25 * + + 2 AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT ALL + 17 * + CAST( NULL AS SIGNED ) + - - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL + 17 * + CAST ( NULL AS INTEGER ) + - - 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT + NULLIF ( + - COUNT( * ), + ( + - 69 ) / + AVG ( - 85 ) * + 32 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), + ( + - 69 ) / + AVG ( - 85 ) * + 32 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT DISTINCT - + COUNT( * ) * + 47 + + 90
----
43

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT - + COUNT ( * ) * + 47 + + 90
----
43

