sqllogictest
Artifact Content
Not logged in

Artifact 99656f59b844a4f91fa5d7b6081bb0a715fcbd21:


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 lab