sqllogictest
Artifact Content
Not logged in

Artifact becf0ea5b888736610a77359a28dfd303758aa14:


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)

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT DISTINCT CASE 94 WHEN - ( ( 37 ) ) THEN - 52 WHEN 44 THEN - - COUNT( * ) * - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT CASE 94 WHEN - ( ( 37 ) ) THEN - 52 WHEN 44 THEN - - COUNT ( * ) * - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1
SELECT DISTINCT 15 + - + ( - CAST( NULL AS SIGNED ) ) AS col2, - 16 DIV 74
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1
SELECT DISTINCT 15 + - + ( - CAST ( NULL AS INTEGER ) ) AS col2, - 16 / 74
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT - MIN( ALL + 37 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-2
SELECT - MIN ( ALL + 37 ) col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT - + COUNT( * ) + 83
----
82

skipif mysql # not compatible
query I rowsort label-3
SELECT - + COUNT ( * ) + 83
----
82

query I rowsort
SELECT + 83 * - NULLIF ( 61, 44 + - - 43 * 0 * 83 + ( + COALESCE ( 82, - 70 ) ) )
----
-5063

query II rowsort
SELECT + 65, 48 * - 68 AS col0
----
65
-3264

query I rowsort
SELECT ALL + 91 * + 90 * 77 + - + 88 AS col2
----
630542

query II rowsort
SELECT ALL + 26, + 97 col0
----
26
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT - 10 DIV - - 54 + + - ( - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-8
SELECT - 10 / - - 54 + + - ( - 15 )
----
15

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

skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT - - COUNT ( * ) * + 59 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-10
SELECT DISTINCT - 24 DIV + COALESCE ( 39, - NULLIF ( + 22, + + 45 ) DIV - CASE + 46 WHEN + NULLIF ( - 77, - MAX( - 13 ) DIV + ( - - 6 ) + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 24 THEN NULL ELSE - 85 + AVG ( 22 ) + + MIN( ALL - - 5 ) END * - - 0 * - 98 - + 78 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT - 24 / + COALESCE ( 39, - NULLIF ( + 22, + + 45 ) / - CASE + 46 WHEN + NULLIF ( - 77, - MAX ( - 13 ) / + ( - - 6 ) + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 24 THEN NULL ELSE - 85 + AVG ( 22 ) + + MIN ( ALL - - 5 ) END * - - 0 * - 98 - + 78 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-11
SELECT DISTINCT + - 72 AS col1, - CAST( + - COUNT( * ) AS SIGNED ) + + 53 * - 3
----
-72
-158

skipif mysql # not compatible
query II rowsort label-11
SELECT DISTINCT + - 72 AS col1, - CAST ( + - COUNT ( * ) AS INTEGER ) + + 53 * - 3
----
-72
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-12
SELECT ALL + - 96 AS col0, COUNT( * ) * - 79
----
-96
-79

skipif mysql # not compatible
query II rowsort label-12
SELECT ALL + - 96 AS col0, COUNT ( * ) * - 79
----
-96
-79

query II rowsort
SELECT + - 64, + 77 AS col2
----
-64
77

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT + MAX( ALL - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-14
SELECT + MAX ( ALL - 19 ) AS col2
----
-19

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

query I rowsort
SELECT + 64 * + - 1 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-17
SELECT ALL ( - 51 ) AS col0, - 47 * + COUNT( * )
----
-51
-47

skipif mysql # not compatible
query II rowsort label-17
SELECT ALL ( - 51 ) AS col0, - 47 * + COUNT ( * )
----
-51
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT + NULLIF ( - + 60, + 1 ) - + COUNT( ALL 8 )
----
-61

skipif mysql # not compatible
query I rowsort label-18
SELECT + NULLIF ( - + 60, + 1 ) - + COUNT ( ALL 8 )
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-19
SELECT + 17 - + - 0 * - 58 * + - CAST( NULL AS DECIMAL ) / 17 + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT + 17 - + - 0 * - 58 * + - CAST ( NULL AS REAL ) / 17 + + 25 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-21
SELECT ALL 16 + + + CAST( + 48 AS SIGNED ) + 52 + - 32 * + + 56 * - 55 * 19 * + - 80, - 98 * + 5 AS col1
----
-149811084
-490

skipif mysql # not compatible
query II rowsort label-21
SELECT ALL 16 + + + CAST ( + 48 AS INTEGER ) + 52 + - 32 * + + 56 * - 55 * 19 * + - 80, - 98 * + 5 AS col1
----
-149811084
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL 75 + + - ( - 8 ) - MAX( 33 ) + + 90
----
140

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL 75 + + - ( - 8 ) - MAX ( 33 ) + + 90
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT ALL CAST( - 2 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL CAST ( - 2 AS INTEGER )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-24
SELECT + MAX( ALL + + 67 ) * + + 59 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-24
SELECT + MAX ( ALL + + 67 ) * + + 59 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT 10 + 93 + + - 20 + - MAX( 10 ) + - 53 + + 79 * - 50 * 30 - 63 + - 70 * - + CASE - + 98 WHEN + 54 THEN NULL ELSE + + 11 END * 94
----
-46163

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT 10 + 93 + + - 20 + - MAX ( 10 ) + - 53 + + 79 * - 50 * 30 - 63 + - 70 * - + CASE - + 98 WHEN + 54 THEN NULL ELSE + + 11 END * 94
----
-46163

query I rowsort
SELECT + 74 * + + CASE 86 WHEN + 95 THEN + + 66 WHEN 31 THEN NULL END / + + 6 + + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT ALL 80 + - MIN( ALL - 74 ) + + + 34 * ( - 34 )
----
-1002

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL 80 + - MIN ( ALL - 74 ) + + + 34 * ( - 34 )
----
-1002

query I rowsort
SELECT DISTINCT 3 * - 94
----
-282

query I rowsort
SELECT + ( + 63 ) * - 94 * COALESCE ( 59, + 73 * 59, 69 * - - 98 + 17, + ( - - 21 ) - 15 )
----
-349398

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT - COALESCE ( - CASE - 91 WHEN 45 THEN - 57 * + - COUNT( DISTINCT - ( + 74 ) ) WHEN 13 * + ( - 23 ) THEN NULL ELSE NULL END, + MIN( - 53 ) + + - 62 ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-30
SELECT - COALESCE ( - CASE - 91 WHEN 45 THEN - 57 * + - COUNT ( DISTINCT - ( + 74 ) ) WHEN 13 * + ( - 23 ) THEN NULL ELSE NULL END, + MIN ( - 53 ) + + - 62 ) AS col0
----
115

query I rowsort
SELECT + 44 * 31 AS col0
----
1364

query I rowsort
SELECT ALL 9 * 63 * 3
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT DISTINCT 68 * + + SUM( ALL - + 22 ) AS col0
----
-1496

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT 68 * + + SUM ( ALL - + 22 ) AS col0
----
-1496

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-35
SELECT + - CAST( - - 10 AS SIGNED ) + - 54 * - - 33 + - - SUM( + - 3 ) * 2 AS col2, 45
----
-1798
45

skipif mysql # not compatible
query II rowsort label-35
SELECT + - CAST ( - - 10 AS INTEGER ) + - 54 * - - 33 + - - SUM ( + - 3 ) * 2 AS col2, 45
----
-1798
45

query I rowsort
SELECT ALL - 66 + 51 - + 23 AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-37
SELECT ALL + CAST( CAST( + 27 AS SIGNED ) AS SIGNED ) DIV + ( + CASE + + 95 WHEN + 94 DIV - + 40 DIV AVG ( ( 15 ) ) THEN - 70 * - SUM( + CAST( - + 51 AS SIGNED ) ) + - 26 WHEN SUM( + 47 ) THEN NULL WHEN - 77 DIV + 11 + - 12 DIV - 24 DIV - 23 + + CAST( 68 AS SIGNED ) THEN ( - 58 ) + 9 * - 46 WHEN 73 THEN 89 * - 68 ELSE - COALESCE ( 64, - CAST( NULL AS SIGNED ), - 77, 51 ) END ) - + COUNT( ALL - 43 + - 95 ) DIV + 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL + CAST ( CAST ( + 27 AS INTEGER ) AS INTEGER ) / + ( + CASE + + 95 WHEN + 94 / - + 40 / AVG ( ( 15 ) ) THEN - 70 * - SUM ( + CAST ( - + 51 AS INTEGER ) ) + - 26 WHEN SUM ( + 47 ) THEN NULL WHEN - 77 / + 11 + - 12 / - 24 / - 23 + + CAST ( 68 AS INTEGER ) THEN ( - 58 ) + 9 * - 46 WHEN 73 THEN 89 * - 68 ELSE - COALESCE ( 64, - CAST ( NULL AS INTEGER ), - 77, 51 ) END ) - + COUNT ( ALL - 43 + - 95 ) / + 29 AS col1
----
0

query I rowsort
SELECT DISTINCT + 12 col1
----
12

query I rowsort
SELECT - 92 * ( - 76 ) - - 28 + + - 53 AS col1
----
6967

query I rowsort
SELECT - 30 - 44 AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-41
SELECT + + 50 * + - 67 + + + 1 DIV - 81 + - CAST( + 37 AS SIGNED ) + - ( - + 21 ) + 89 AS col2, - 60 * - + ( 59 ) - + 42 * + ( + + ( - 57 ) )
----
-3277
5934

skipif mysql # not compatible
query II rowsort label-41
SELECT + + 50 * + - 67 + + + 1 / - 81 + - CAST ( + 37 AS INTEGER ) + - ( - + 21 ) + 89 AS col2, - 60 * - + ( 59 ) - + 42 * + ( + + ( - 57 ) )
----
-3277
5934

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT + + 96 + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-44
SELECT + + 96 + + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-45
SELECT ALL - + 53 DIV 65 * - COUNT( * ) + COUNT( * ) - - + 51 + 68 * - 43 * - 98 + + 35 + COUNT( * ) AS col0
----
286640

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL - + 53 / 65 * - COUNT ( * ) + COUNT ( * ) - - + 51 + 68 * - 43 * - 98 + + 35 + COUNT ( * ) AS col0
----
286640

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-46
SELECT 21 * 75 + - 58 + COALESCE ( - - 97, + - 42 ) + - ( 99 ) DIV + 82 AS col2, COUNT( * ) * + 64
----
1613
64

skipif mysql # not compatible
query II rowsort label-46
SELECT 21 * 75 + - 58 + COALESCE ( - - 97, + - 42 ) + - ( 99 ) / + 82 AS col2, COUNT ( * ) * + 64
----
1613
64

query I rowsort
SELECT ALL + - 41 * + 42 col1
----
-1722

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT DISTINCT + 61 DIV 14 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT + 61 / 14 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-49
SELECT COUNT( * ) * + - 56 * + 27 col0, + 57 AS col1
----
-1512
57

skipif mysql # not compatible
query II rowsort label-49
SELECT COUNT ( * ) * + - 56 * + 27 col0, + 57 AS col1
----
-1512
57

onlyif mysql # aggregate syntax: 
query II rowsort label-50
SELECT 32 * NULLIF ( SUM( DISTINCT + 23 ), + 18 ) AS col2, 70
----
736
70

skipif mysql # not compatible
query II rowsort label-50
SELECT 32 * NULLIF ( SUM ( DISTINCT + 23 ), + 18 ) AS col2, 70
----
736
70

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT ALL + 70 DIV 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL + 70 / 54 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT MAX( DISTINCT - + 73 ) DIV + COALESCE ( - 63, - COALESCE ( - 67, - 49 DIV + - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-52
SELECT MAX ( DISTINCT - + 73 ) / + COALESCE ( - 63, - COALESCE ( - 67, - 49 / + - COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT ALL + 61 + - ( - + ( - 50 ) ) * - 41 + 31
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL - 98 + + 87 + COUNT( * ) + + CASE - + 71 WHEN 18 + - + 68 THEN + + 81 * - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL - 98 + + 87 + COUNT ( * ) + + CASE - + 71 WHEN 18 + - + 68 THEN + + 81 * - 45 END
----
NULL

query I rowsort
SELECT DISTINCT - 89 + + + 17
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-56
SELECT DISTINCT - NULLIF ( + CAST( NULL AS SIGNED ), + 1 * + + 75 ) + CASE NULLIF ( - 8, - 88 ) WHEN + 38 + - 95 THEN + 77 + - 19 * - 88 * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT - NULLIF ( + CAST ( NULL AS INTEGER ), + 1 * + + 75 ) + CASE NULLIF ( - 8, - 88 ) WHEN + 38 + - 95 THEN + 77 + - 19 * - 88 * - COUNT ( * ) END AS col2
----
NULL

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

query II rowsort
SELECT ALL 69 * + - ( 81 ) AS col0, - 16 AS col0
----
-5589
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-59
SELECT ALL + 98 + - ( + + ( + - ( COUNT( * ) ) ) ) AS col0, + 87 + SUM( ALL - + ( - 0 ) ) AS col2
----
99
87

skipif mysql # not compatible
query II rowsort label-59
SELECT ALL + 98 + - ( + + ( + - ( COUNT ( * ) ) ) ) AS col0, + 87 + SUM ( ALL - + ( - 0 ) ) AS col2
----
99
87

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT ALL - 44 + + 16 * + + CASE 32 WHEN - ( + COUNT( * ) ) + 8 THEN NULL WHEN + 54 * - 22 - - 36 + - COUNT( * ) + - 9 * - 58 + + 17 * - - 10 * 22 * - - NULLIF ( - 94, - - 10 ) THEN 33 * - + 79 END + + CASE WHEN NOT - 79 < NULL OR ( NULL ) NOT BETWEEN NULL AND + 19 THEN - ( ( 96 ) ) ELSE 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - 44 + + 16 * + + CASE 32 WHEN - ( + COUNT ( * ) ) + 8 THEN NULL WHEN + 54 * - 22 - - 36 + - COUNT ( * ) + - 9 * - 58 + + 17 * - - 10 * 22 * - - NULLIF ( - 94, - - 10 ) THEN 33 * - + 79 END + + CASE WHEN NOT - 79 < NULL OR ( NULL ) NOT BETWEEN NULL AND + 19 THEN - ( ( 96 ) ) ELSE 99 END
----
NULL

query I rowsort
SELECT ALL 63 + + + 58 col0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT 89 + - 19 * 49 DIV - 76 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-62
SELECT 89 + - 19 * 49 / - 76 AS col1
----
101

query I rowsort
SELECT DISTINCT - 26 + + 80
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL + 72 * - CASE 5 WHEN - NULLIF ( - + 9, - 55 * - 62 ) THEN NULL ELSE + MIN( - 43 ) END * - + 66 - - - 90 AS col2
----
-204426

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + 72 * - CASE 5 WHEN - NULLIF ( - + 9, - 55 * - 62 ) THEN NULL ELSE + MIN ( - 43 ) END * - + 66 - - - 90 AS col2
----
-204426

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-65
SELECT - 16 AS col1, 39 * - + CAST( NULL AS SIGNED ) AS col0
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-65
SELECT - 16 AS col1, 39 * - + CAST ( NULL AS INTEGER ) AS col0
----
-16
NULL

query II rowsort
SELECT ALL 27 + + 65 * + 0 col0, 46 + 2
----
27
48

query I rowsort
SELECT 79 + - 74
----
5

query I rowsort
SELECT 82 * - 67 col2
----
-5494

query I rowsort
SELECT ALL + 57 * + - 86 AS col0
----
-4902

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-71
SELECT DISTINCT + NULLIF ( 3, - - 66 ) DIV - 2
----
-1

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT + NULLIF ( 3, - - 66 ) / - 2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL + ( + COUNT( * ) ) - + 22 + - - 59
----
38

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL + ( + COUNT ( * ) ) - + 22 + - - 59
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-73
SELECT ALL CAST( - 17 AS SIGNED ) * + 21 AS col2, 28
----
-357
28

skipif mysql # not compatible
query II rowsort label-73
SELECT ALL CAST ( - 17 AS INTEGER ) * + 21 AS col2, 28
----
-357
28

query I rowsort
SELECT - 58 * + + 86
----
-4988

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-75
SELECT - - ( 66 ) / + 71 + 50 + - CAST( NULL AS SIGNED ) AS col0, 59 * + 33 * 35 AS col2
----
NULL
68145

skipif mysql # not compatible
query II rowsort label-75
SELECT - - ( 66 ) / + 71 + 50 + - CAST ( NULL AS INTEGER ) AS col0, 59 * + 33 * 35 AS col2
----
NULL
68145

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT + 67 DIV + + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-76
SELECT + 67 / + + 73 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-78
SELECT ALL - + 25, 20 - + + NULLIF ( - 46, - 26 ) + + 91 - MAX( DISTINCT + CASE + 30 WHEN - 73 THEN 11 END ) + 52 * 44 / 97 / + 30 col2
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-78
SELECT ALL - + 25, 20 - + + NULLIF ( - 46, - 26 ) + + 91 - MAX ( DISTINCT + CASE + 30 WHEN - 73 THEN 11 END ) + 52 * 44 / 97 / + 30 col2
----
-25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT + - COUNT( - 4 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-79
SELECT + - COUNT ( - 4 ) AS col2
----
-1

query II rowsort
SELECT - 17 * + NULLIF ( + 1, - 20 / + 57 ), 1 AS col1
----
-17
1

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL - - SUM( 29 )
----
29

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - - SUM ( 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT - COALESCE ( 77, 30, - COALESCE ( + MAX( + 53 ), 68, - + COALESCE ( + - ( - 79 ), - - 10 ) * + - MIN( + + 16 ) ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - COALESCE ( 77, 30, - COALESCE ( + MAX ( + 53 ), 68, - + COALESCE ( + - ( - 79 ), - - 10 ) * + - MIN ( + + 16 ) ) ) AS col2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-83
SELECT DISTINCT 82 DIV - 34 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT 82 / - 34 AS col1
----
-2

query I rowsort
SELECT DISTINCT 41 + - 12
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-85
SELECT ALL + 75 + - NULLIF ( - ( + 2 ), 98 * + 52 + - - COALESCE ( - 76, + ( - COUNT( * ) ), - 43 + 25 - CAST( NULL AS DECIMAL ) ) + 22 ) col0, 12 + - COALESCE ( - SUM( DISTINCT + 84 ), + 32 + - + 48, COUNT( ALL + 77 ) - + CAST( - + ( + 84 ) AS SIGNED ) ) + + + ( + 99 ) + 72 * - 26
----
77
-1677

skipif mysql # not compatible
query II rowsort label-85
SELECT ALL + 75 + - NULLIF ( - ( + 2 ), 98 * + 52 + - - COALESCE ( - 76, + ( - COUNT ( * ) ), - 43 + 25 - CAST ( NULL AS REAL ) ) + 22 ) col0, 12 + - COALESCE ( - SUM ( DISTINCT + 84 ), + 32 + - + 48, COUNT ( ALL + 77 ) - + CAST ( - + ( + 84 ) AS INTEGER ) ) + + + ( + 99 ) + 72 * - 26
----
77
-1677

query I rowsort
SELECT ALL - 12 + - 45 * 73 * - NULLIF ( - + 16, 54 )
----
-52572

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT DISTINCT COUNT( * ) + + 18
----
19

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT COUNT ( * ) + + 18
----
19

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

onlyif mysql # DIV for integer division: 
query II rowsort label-89
SELECT 85 AS col2, 20 DIV - 61
----
85
0

skipif mysql # not compatible
query II rowsort label-89
SELECT 85 AS col2, 20 / - 61
----
85
0

query II rowsort
SELECT 92 - 21, 48 + 36 AS col2
----
71
84

onlyif mysql # aggregate syntax: 
query III rowsort label-91
SELECT 1 AS col1, CASE 51 WHEN - + 17 * 31 + - COALESCE ( + 87, + 99 * COUNT( * ) / - 90 ) + 58 * + + 82 + - 44 / - - 78 * - SUM( - 9 ) THEN 59 / + 40 END * COUNT( * ) AS col2, + + 32 AS col0
----
1
NULL
32

skipif mysql # not compatible
query III rowsort label-91
SELECT 1 AS col1, CASE 51 WHEN - + 17 * 31 + - COALESCE ( + 87, + 99 * COUNT ( * ) / - 90 ) + 58 * + + 82 + - 44 / - - 78 * - SUM ( - 9 ) THEN 59 / + 40 END * COUNT ( * ) AS col2, + + 32 AS col0
----
1
NULL
32

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT 82 * + + MIN( - 24 ) * - 59 AS col2
----
116112

skipif mysql # not compatible
query I rowsort label-92
SELECT 82 * + + MIN ( - 24 ) * - 59 AS col2
----
116112

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL + NULLIF ( COUNT( * ), - + 38 ) * + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL + NULLIF ( COUNT ( * ), - + 38 ) * + 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-96
SELECT - 72 AS col0, 78 * - MIN( - 30 )
----
-72
2340

skipif mysql # not compatible
query II rowsort label-96
SELECT - 72 AS col0, 78 * - MIN ( - 30 )
----
-72
2340

query II rowsort
SELECT - - 21 AS col2, - 72 * 69 * + 41 AS col0
----
21
-203688

query I rowsort
SELECT DISTINCT + + 67 * + 19 AS col0
----
1273

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT DISTINCT + ( COALESCE ( - 29, ( + 18 ) + + - 28 - + COUNT( * ) ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT + ( COALESCE ( - 29, ( + 18 ) + + - 28 - + COUNT ( * ) ) ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-100
SELECT ALL COUNT( * ) AS col1, 26 - - COUNT( DISTINCT 64 ) * - 19 AS col2
----
1
7

skipif mysql # not compatible
query II rowsort label-100
SELECT ALL COUNT ( * ) AS col1, 26 - - COUNT ( DISTINCT 64 ) * - 19 AS col2
----
1
7

query I rowsort
SELECT + 56 * 55 AS col2
----
3080

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

skipif mysql # not compatible
query I rowsort label-102
SELECT 90 * + COUNT ( ALL 41 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT - MAX( + 88 ) - 15 - + COUNT( * ) * - - 88
----
-191

skipif mysql # not compatible
query I rowsort label-103
SELECT - MAX ( + 88 ) - 15 - + COUNT ( * ) * - - 88
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT 24 + - 74 * - - SUM( 7 ) + - SUM( ALL - - 96 ) AS col2
----
-590

skipif mysql # not compatible
query I rowsort label-104
SELECT 24 + - 74 * - - SUM ( 7 ) + - SUM ( ALL - - 96 ) AS col2
----
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT ( + COUNT( * ) ) * CASE + - 77 WHEN + - COUNT( * ) + - + 15 THEN + NULLIF ( - 59, ( 20 ) ) ELSE NULL END + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT ( + COUNT ( * ) ) * CASE + - 77 WHEN + - COUNT ( * ) + - + 15 THEN + NULLIF ( - 59, ( 20 ) ) ELSE NULL END + 94 AS col2
----
NULL

query II rowsort
SELECT ALL + 13 AS col2, 3 AS col2
----
13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT SUM( 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-107
SELECT SUM ( 51 ) col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-108
SELECT DISTINCT - 63 * + + ( 47 ) * - COUNT( * ) + - + CAST( ( + 0 ) AS SIGNED ) + 65 AS col1
----
3026

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT - 63 * + + ( 47 ) * - COUNT ( * ) + - + CAST ( ( + 0 ) AS INTEGER ) + 65 AS col1
----
3026

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT + 19 DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-109
SELECT + 19 / + 55 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT + 70 * + COUNT( * ) + + 65
----
135

skipif mysql # not compatible
query I rowsort label-111
SELECT + 70 * + COUNT ( * ) + + 65
----
135

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-113
SELECT 7 DIV + ( - + 26 ) * 99 + 61 - 67 - - SUM( - 50 ) * + + 22 + 33 + 33
----
-1040

skipif mysql # not compatible
query I rowsort label-113
SELECT 7 / + ( - + 26 ) * 99 + 61 - 67 - - SUM ( - 50 ) * + + 22 + 33 + 33
----
-1040

query I rowsort
SELECT + COALESCE ( - 34, 98, + 83 ) AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT + CASE ( - + 29 ) WHEN + 24 / 80 + ( 82 ) THEN - 43 * CASE + - CASE + + COALESCE ( + ( 47 ), + - COUNT( - 83 ) * - - 83 * - 71 * + 55 / + 14 ) WHEN + 23 + CAST( - 41 AS SIGNED ) * 57 THEN - 24 ELSE NULL END WHEN 8 THEN NULL WHEN - 39 * 49 + 8 THEN NULL WHEN COUNT( - 42 ) THEN 77 + - 44 * 58 END + NULLIF ( - 2 + - MIN( DISTINCT - 77 + 51 ), COUNT( * ) * CAST( 1 AS SIGNED ) + 45 ) END + + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT + CASE ( - + 29 ) WHEN + 24 / 80 + ( 82 ) THEN - 43 * CASE + - CASE + + COALESCE ( + ( 47 ), + - COUNT ( - 83 ) * - - 83 * - 71 * + 55 / + 14 ) WHEN + 23 + CAST ( - 41 AS INTEGER ) * 57 THEN - 24 ELSE NULL END WHEN 8 THEN NULL WHEN - 39 * 49 + 8 THEN NULL WHEN COUNT ( - 42 ) THEN 77 + - 44 * 58 END + NULLIF ( - 2 + - MIN ( DISTINCT - 77 + 51 ), COUNT ( * ) * CAST ( 1 AS INTEGER ) + 45 ) END + + 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-116
SELECT COUNT( DISTINCT + 49 ), 96 col2
----
1
96

skipif mysql # not compatible
query II rowsort label-116
SELECT COUNT ( DISTINCT + 49 ), 96 col2
----
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT DISTINCT - ( - + 25 ) * + COUNT( ALL + + 66 ) + - - COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT - ( - + 25 ) * + COUNT ( ALL + + 66 ) + - - COUNT ( * ) AS col2
----
26

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

skipif mysql # not compatible
query I rowsort label-118
SELECT MIN ( ALL + CAST ( - - 6 AS INTEGER ) ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-119
SELECT + NULLIF ( - 83, 41 * COUNT( * ) ) + - CASE 83 WHEN - 62 THEN + + CASE WHEN NOT 78 <> - 98 THEN COUNT( * ) END WHEN 8 THEN - + CASE CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN + + COUNT( * ) * 70 + + - 53 + - ( - + 44 ) + - 86 * + - NULLIF ( - 8, + - 67 / - + 79 / MAX( + 32 ) / COUNT( 63 / 35 ) ) * + 18 + 18 / - 84 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT + NULLIF ( - 83, 41 * COUNT ( * ) ) + - CASE 83 WHEN - 62 THEN + + CASE WHEN NOT 78 <> - 98 THEN COUNT ( * ) END WHEN 8 THEN - + CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN + + COUNT ( * ) * 70 + + - 53 + - ( - + 44 ) + - 86 * + - NULLIF ( - 8, + - 67 / - + 79 / MAX ( + 32 ) / COUNT ( 63 / 35 ) ) * + 18 + 18 / - 84 END END
----
NULL

query I rowsort
SELECT + 16 * + 38 AS col0
----
608

query I rowsort
SELECT ALL 27 * ( + - 14 )
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL 86 - + COUNT( ALL + + 9 ) / - 16 / - CASE + 33 WHEN - 95 THEN + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL 86 - + COUNT ( ALL + + 9 ) / - 16 / - CASE + 33 WHEN - 95 THEN + 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT + 38 * + - SUM( DISTINCT + - ( + + 99 ) ) + 46 * - - 15 * + + COALESCE ( ( - 56 ), + + 63 ) AS col0
----
-34878

skipif mysql # not compatible
query I rowsort label-123
SELECT + 38 * + - SUM ( DISTINCT + - ( + + 99 ) ) + 46 * - - 15 * + + COALESCE ( ( - 56 ), + + 63 ) AS col0
----
-34878

onlyif mysql # DIV for integer division: 
query II rowsort label-124
SELECT + 68 DIV - 46, 3 AS col2
----
-1
3

skipif mysql # not compatible
query II rowsort label-124
SELECT + 68 / - 46, 3 AS col2
----
-1
3

query I rowsort
SELECT ALL - NULLIF ( + 74, - 41 ) * - - 10 col2
----
-740

query I rowsort
SELECT ALL 91 * + COALESCE ( 71, 18 + 21 + + + COALESCE ( + 98, - 24, - 92 ) * - + 12, - - 13 ) AS col0
----
6461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-127
SELECT ALL 50 - - 90, 44 * ( NULLIF ( - 11, 51 * + 85 + 56 ) ) - + - ( NULLIF ( - CAST( NULL AS SIGNED ), - 72 * - - COALESCE ( 57, - - SUM( ALL 56 ), + - 87 + + + 34 ) ) ) * + 97 AS col1
----
140
NULL

skipif mysql # not compatible
query II rowsort label-127
SELECT ALL 50 - - 90, 44 * ( NULLIF ( - 11, 51 * + 85 + 56 ) ) - + - ( NULLIF ( - CAST ( NULL AS INTEGER ), - 72 * - - COALESCE ( 57, - - SUM ( ALL 56 ), + - 87 + + + 34 ) ) ) * + 97 AS col1
----
140
NULL

query I rowsort
SELECT ALL - 40 - + - 75
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT - - 35 DIV 24 * 91
----
91

skipif mysql # not compatible
query I rowsort label-129
SELECT - - 35 / 24 * 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL + COUNT( * ) * - COALESCE ( - 14, - - 20 ) * + ( - + 39 ) * + ( 27 ) * - 86 + + 73 * - + 49
----
1264235

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + COUNT ( * ) * - COALESCE ( - 14, - - 20 ) * + ( - + 39 ) * + ( 27 ) * - 86 + + 73 * - + 49
----
1264235

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT + + 24 * + - 68 * + + 83 * 49 * + - 86 + + - COUNT( * )
----
570811583

skipif mysql # not compatible
query I rowsort label-131
SELECT + + 24 * + - 68 * + + 83 * 49 * + - 86 + + - COUNT ( * )
----
570811583

query I rowsort
SELECT - + COALESCE ( - 61, + - 17, - - 52 ) + + 98 + + + 12
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT - 97 + + + 36 - + - 1 * 5 * + - SUM( DISTINCT + 4 )
----
-81

skipif mysql # not compatible
query I rowsort label-133
SELECT - 97 + + + 36 - + - 1 * 5 * + - SUM ( DISTINCT + 4 )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-134
SELECT + + 74 DIV 74 * - 56 + 76 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-134
SELECT + + 74 / 74 * - 56 + 76 AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-135
SELECT - COALESCE ( - + COUNT( * ), ( - COUNT( * ) ), + COALESCE ( - 74, + + 45 ) ) + + CAST( CASE - + COALESCE ( - 83, + + ( + CASE - 69 WHEN - - 98 THEN NULLIF ( - 85, - 98 ) ELSE NULL END ) + - 16, - + COUNT( * ) * - 36 + + - COUNT( + - 73 ) ) WHEN - COUNT( * ) THEN - + ( - + 90 ) WHEN + COUNT( * ) / + 12 + 48 THEN 60 / + NULLIF ( + COALESCE ( + 94, - 67 / 19 ), 16 * COUNT( * ) ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT - COALESCE ( - + COUNT ( * ), ( - COUNT ( * ) ), + COALESCE ( - 74, + + 45 ) ) + + CAST ( CASE - + COALESCE ( - 83, + + ( + CASE - 69 WHEN - - 98 THEN NULLIF ( - 85, - 98 ) ELSE NULL END ) + - 16, - + COUNT ( * ) * - 36 + + - COUNT ( + - 73 ) ) WHEN - COUNT ( * ) THEN - + ( - + 90 ) WHEN + COUNT ( * ) / + 12 + 48 THEN 60 / + NULLIF ( + COALESCE ( + 94, - 67 / 19 ), 16 * COUNT ( * ) ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-136
SELECT DISTINCT - COUNT( * ) DIV + + 15 * 28 * + 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - COUNT ( * ) / + + 15 * 28 * + 13 AS col1
----
0

query I rowsort
SELECT DISTINCT + 55 + - 93
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT - MAX( + - 7 ) * + + 30 * + + 14 AS col1
----
2940

skipif mysql # not compatible
query I rowsort label-138
SELECT - MAX ( + - 7 ) * + + 30 * + + 14 AS col1
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-139
SELECT ALL - + 14 + 35 AS col2, COUNT( * ) + 56 AS col1
----
21
57

skipif mysql # not compatible
query II rowsort label-139
SELECT ALL - + 14 + 35 AS col2, COUNT ( * ) + 56 AS col1
----
21
57

onlyif mysql # aggregate syntax: 
query II rowsort label-140
SELECT - + 17 + COUNT( * ) col0, + 97 + 27 AS col1
----
-16
124

skipif mysql # not compatible
query II rowsort label-140
SELECT - + 17 + COUNT ( * ) col0, + 97 + 27 AS col1
----
-16
124

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL + CASE - + SUM( - 5 ) WHEN - 78 - + 23 * COUNT( * ) THEN - 46 END + + - 8 + - - ( + 41 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL + CASE - + SUM ( - 5 ) WHEN - 78 - + 23 * COUNT ( * ) THEN - 46 END + + - 8 + - - ( + 41 ) AS col2
----
NULL

query I rowsort
SELECT - - 42 + - 98 AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT ALL - - ( COUNT( * ) ) * - MIN( ALL - 20 ) + - + CAST( - 22 AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL - - ( COUNT ( * ) ) * - MIN ( ALL - 20 ) + - + CAST ( - 22 AS INTEGER ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT - + MAX( ALL 15 ) * - 75
----
1125

skipif mysql # not compatible
query I rowsort label-144
SELECT - + MAX ( ALL 15 ) * - 75
----
1125

onlyif mysql # DIV for integer division: 
query I rowsort label-145
SELECT - 30 DIV 26 + - NULLIF ( + 14, - 79 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-145
SELECT - 30 / 26 + - NULLIF ( + 14, - 79 ) AS col1
----
-15

query I rowsort
SELECT + + 10 col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-147
SELECT ALL - COUNT( * ) / + + COUNT( * ) + CAST( NULL AS SIGNED ) * - + COALESCE ( - 90, 82 ) + - 68 AS col0, 29, - + 6 AS col0
----
NULL
29
-6

skipif mysql # not compatible
query III rowsort label-147
SELECT ALL - COUNT ( * ) / + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - + COALESCE ( - 90, 82 ) + - 68 AS col0, 29, - + 6 AS col0
----
NULL
29
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-148
SELECT DISTINCT 72 DIV - 78 + - 47 + 24 * + 62 + - - 46
----
1487

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT 72 / - 78 + - 47 + 24 * + 62 + - - 46
----
1487

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-152
SELECT ALL 73 DIV 94 + - COUNT( * ) + 79 * - + ( - COUNT( * ) ) * - 57 + - 11 AS col1
----
-4515

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL 73 / 94 + - COUNT ( * ) + 79 * - + ( - COUNT ( * ) ) * - 57 + - 11 AS col1
----
-4515

onlyif mysql # DIV for integer division: 
query I rowsort label-153
SELECT ALL - 39 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL - 39 / - 54
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-154
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 17 * 48 col0
----
NULL
816

skipif mysql # not compatible
query II rowsort label-154
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 17 * 48 col0
----
NULL
816

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT - NULLIF ( - 45, - ( - 22 ) ) + + 52 + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-155
SELECT - NULLIF ( - 45, - ( - 22 ) ) + + 52 + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT - COUNT( * ) * - + 33 col2
----
33

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT - COUNT ( * ) * - + 33 col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT ALL 10 * - 34 - + COUNT( - 99 ) - 93 AS col0
----
-434

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL 10 * - 34 - + COUNT ( - 99 ) - 93 AS col0
----
-434

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

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

query I rowsort
SELECT + 22 * - 84 AS col0
----
-1848

query I rowsort
SELECT ( + CASE 55 WHEN - 63 + - + 9 THEN NULL WHEN + 18 THEN - - 6 END )
----
NULL

query I rowsort
SELECT - 92 - 40 AS col0
----
-132

query I rowsort
SELECT ALL 4 * - 56
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT CASE 56 WHEN - 45 * - 25 * - ( COUNT( * ) ) + - + ( - 36 ) THEN + 45 WHEN 53 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT CASE 56 WHEN - 45 * - 25 * - ( COUNT ( * ) ) + - + ( - 36 ) THEN + 45 WHEN 53 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + 63 AS col2, - 69 * 16
----
63
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT + 44 + - ( + 29 ) + - COUNT( * ) - - - 82 * 2 * 57 * - 3 * + + 38 + 76 AS col2
----
1065762

skipif mysql # not compatible
query I rowsort label-165
SELECT + 44 + - ( + 29 ) + - COUNT ( * ) - - - 82 * 2 * 57 * - 3 * + + 38 + 76 AS col2
----
1065762

query I rowsort
SELECT + 62 * + + 1 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT ALL COUNT( + 13 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL COUNT ( + 13 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT CASE - - CASE - 88 WHEN + ( - + COUNT( ALL 6 ) ) - + - 34 + SUM( DISTINCT - 7 ) THEN NULL ELSE - 55 + - 46 END WHEN - ( 11 ) + - 42 * - COUNT( * ) THEN AVG ( + 77 ) - + COALESCE ( + ( + 41 ), - 39 ) + + ( 69 ) - - ( + - 30 ) * + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT CASE - - CASE - 88 WHEN + ( - + COUNT ( ALL 6 ) ) - + - 34 + SUM ( DISTINCT - 7 ) THEN NULL ELSE - 55 + - 46 END WHEN - ( 11 ) + - 42 * - COUNT ( * ) THEN AVG ( + 77 ) - + COALESCE ( + ( + 41 ), - 39 ) + + ( 69 ) - - ( + - 30 ) * + 37 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT + - COUNT( - ( 62 ) ) - + 66 DIV + 40 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-169
SELECT + - COUNT ( - ( 62 ) ) - + 66 / + 40 AS col0
----
-2

query I rowsort
SELECT + 11 * + 50 AS col0
----
550

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT + ( + 21 ) * 71 DIV 87 * - 81
----
-1377

skipif mysql # not compatible
query I rowsort label-171
SELECT + ( + 21 ) * 71 / 87 * - 81
----
-1377

query II rowsort
SELECT ALL 91, + 82 AS col1
----
91
82

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT ALL + 18 * - MIN( ALL + 36 ) AS col0
----
-648

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + 18 * - MIN ( ALL + 36 ) AS col0
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT + - COUNT( * ) * - - 12 + - 76 - 56 * + MAX( + 62 ) * 89 * - 12 + 90 + + COUNT( * )
----
3708099

skipif mysql # not compatible
query I rowsort label-174
SELECT + - COUNT ( * ) * - - 12 + - 76 - 56 * + MAX ( + 62 ) * 89 * - 12 + 90 + + COUNT ( * )
----
3708099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-175
SELECT ALL - 7 + 20 * + NULLIF ( CAST( NULL AS SIGNED ), 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL - 7 + 20 * + NULLIF ( CAST ( NULL AS INTEGER ), 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-176
SELECT - + COUNT( * ) AS col1, + 23 + 94 col1
----
-1
117

skipif mysql # not compatible
query II rowsort label-176
SELECT - + COUNT ( * ) AS col1, + 23 + 94 col1
----
-1
117

query I rowsort
SELECT ALL - 51 + + 69
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT + 1 * 31 * + - ( - - CASE + + 22 WHEN - + 91 / + 63 THEN + COUNT( * ) / + + COUNT( * ) + + + ( + 51 ) WHEN - COUNT( * ) THEN NULL ELSE NULL END ) * ( - 95 ) / + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-178
SELECT + 1 * 31 * + - ( - - CASE + + 22 WHEN - + 91 / + 63 THEN + COUNT ( * ) / + + COUNT ( * ) + + + ( + 51 ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END ) * ( - 95 ) / + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT 33 + - MAX( DISTINCT - - 64 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-179
SELECT 33 + - MAX ( DISTINCT - - 64 ) AS col2
----
-31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-181
SELECT MIN( DISTINCT - 67 ) - + COUNT( + 95 ) + - CAST( + 39 AS SIGNED ) * + ( - 45 )
----
1687

skipif mysql # not compatible
query I rowsort label-181
SELECT MIN ( DISTINCT - 67 ) - + COUNT ( + 95 ) + - CAST ( + 39 AS INTEGER ) * + ( - 45 )
----
1687

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT COALESCE ( - 88, - 74 - SUM( DISTINCT + - 91 ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-182
SELECT COALESCE ( - 88, - 74 - SUM ( DISTINCT + - 91 ) ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT 9 + - - MIN( DISTINCT 62 ) AS col1, + ( + COUNT( * ) ) * + ( + 20 ) AS col2
----
71
20

skipif mysql # not compatible
query II rowsort label-183
SELECT 9 + - - MIN ( DISTINCT 62 ) AS col1, + ( + COUNT ( * ) ) * + ( + 20 ) AS col2
----
71
20

onlyif mysql # aggregate syntax: 
query II rowsort label-184
SELECT - 21 AS col2, - 57 * 94 * 5 + - 20 + + - 34 * COALESCE ( + 65, 56, - 97 - COUNT( * ) + - 34 ) * + 41
----
-21
-117420

skipif mysql # not compatible
query II rowsort label-184
SELECT - 21 AS col2, - 57 * 94 * 5 + - 20 + + - 34 * COALESCE ( + 65, 56, - 97 - COUNT ( * ) + - 34 ) * + 41
----
-21
-117420

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-185
SELECT ALL + 41 DIV ( + - 90 ) AS col1, + 27 + + + COUNT( * ) AS col1
----
0
28

skipif mysql # not compatible
query II rowsort label-185
SELECT ALL + 41 / ( + - 90 ) AS col1, + 27 + + + COUNT ( * ) AS col1
----
0
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-186
SELECT + MAX( ALL + + 49 ) + + + 60 DIV - ( 47 ) + + - ( + 55 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-186
SELECT + MAX ( ALL + + 49 ) + + + 60 / - ( 47 ) + + - ( + 55 ) AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT ALL + COALESCE ( CASE + + 34 WHEN - MAX( + + 39 ) THEN + 47 + 37 * - + 87 WHEN - + 97 + - - COALESCE ( - + 86, + 29 ) THEN - + CASE - CASE - - 81 WHEN + 38 THEN NULL WHEN + - COALESCE ( + ( - + 50 ), 14, 96 ) / 2 * - + COUNT( * ) THEN - 49 * - + 65 * + 55 * - + COUNT( * ) * - 31 - - 13 END WHEN 5 THEN NULL ELSE + 98 + CAST( - ( AVG ( 30 ) ) AS SIGNED ) END + - 76 ELSE NULL END, 52 ) + MIN( 46 ) col2
----
98

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL + COALESCE ( CASE + + 34 WHEN - MAX ( + + 39 ) THEN + 47 + 37 * - + 87 WHEN - + 97 + - - COALESCE ( - + 86, + 29 ) THEN - + CASE - CASE - - 81 WHEN + 38 THEN NULL WHEN + - COALESCE ( + ( - + 50 ), 14, 96 ) / 2 * - + COUNT ( * ) THEN - 49 * - + 65 * + 55 * - + COUNT ( * ) * - 31 - - 13 END WHEN 5 THEN NULL ELSE + 98 + CAST ( - ( AVG ( 30 ) ) AS INTEGER ) END + - 76 ELSE NULL END, 52 ) + MIN ( 46 ) col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT COUNT( * ) * - 39 + - 17 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-188
SELECT COUNT ( * ) * - 39 + - 17 AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT ALL - 44 - - + ( 16 ) + - CAST( NULL AS SIGNED ) - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL - 44 - - + ( 16 ) + - CAST ( NULL AS INTEGER ) - + 10
----
NULL

query I rowsort
SELECT ALL - 53 * - 40 AS col0
----
2120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-191
SELECT 17 * CAST( - 19 AS SIGNED ) + + COUNT( * ) + + 39 AS col0
----
-283

skipif mysql # not compatible
query I rowsort label-191
SELECT 17 * CAST ( - 19 AS INTEGER ) + + COUNT ( * ) + + 39 AS col0
----
-283

onlyif mysql # DIV for integer division: 
query I rowsort label-192
SELECT 82 + + 37 DIV 65 + - + ( 2 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-192
SELECT 82 + + 37 / 65 + - + ( 2 ) AS col2
----
80

query I rowsort
SELECT 92 + - + 43
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-194
SELECT - 68 * + CAST( NULL AS SIGNED ) * + 48 + + CAST( NULL AS SIGNED ) * + - CAST( + + 48 AS SIGNED ) * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT - 68 * + CAST ( NULL AS INTEGER ) * + 48 + + CAST ( NULL AS INTEGER ) * + - CAST ( + + 48 AS INTEGER ) * 55
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT 8 DIV - - 9 col0
----
0

skipif mysql # not compatible
query I rowsort label-195
SELECT 8 / - - 9 col0
----
0

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

query I rowsort
SELECT 88 + 51 + + + 31 + 95
----
265

onlyif mysql # aggregate syntax: 
query II rowsort label-198
SELECT COUNT( * ) + 16 AS col0, + 47 * + + 33 * ( + 23 )
----
17
35673

skipif mysql # not compatible
query II rowsort label-198
SELECT COUNT ( * ) + 16 AS col0, + 47 * + + 33 * ( + 23 )
----
17
35673

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-199
SELECT 98 DIV - 8 AS col1, COUNT( * ) + + 15 + + ( - 85 ) * - - 30 * - 95 AS col2
----
-12
242266

skipif mysql # not compatible
query II rowsort label-199
SELECT 98 / - 8 AS col1, COUNT ( * ) + + 15 + + ( - 85 ) * - - 30 * - 95 AS col2
----
-12
242266

query I rowsort
SELECT DISTINCT + 73 + - + 17
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT DISTINCT 44 * + + ( 1 ) + COUNT( * ) + 62 + + 50
----
157

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT 44 * + + ( 1 ) + COUNT ( * ) + 62 + + 50
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-202
SELECT DISTINCT 57 * + CASE + - 72 WHEN 51 THEN COUNT( * ) * + 73 * + 0 + + 13 + - - 49 * - COUNT( * ) + NULLIF ( 98, - 79 * - - 96 + - + 42 ) WHEN + CAST( - + 97 AS SIGNED ) * + 87 THEN NULL WHEN 26 * - SUM( + 33 ) - - 20 + 93 THEN - MIN( - ( CAST( - + 80 AS DECIMAL ) ) ) * - COUNT( * ) + - - 22 END * + ( CASE 5 WHEN - 15 + 17 THEN SUM( ALL + 66 ) WHEN 2 THEN NULL END ) - 26 / - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT 57 * + CASE + - 72 WHEN 51 THEN COUNT ( * ) * + 73 * + 0 + + 13 + - - 49 * - COUNT ( * ) + NULLIF ( 98, - 79 * - - 96 + - + 42 ) WHEN + CAST ( - + 97 AS INTEGER ) * + 87 THEN NULL WHEN 26 * - SUM ( + 33 ) - - 20 + 93 THEN - MIN ( - ( CAST ( - + 80 AS REAL ) ) ) * - COUNT ( * ) + - - 22 END * + ( CASE 5 WHEN - 15 + 17 THEN SUM ( ALL + 66 ) WHEN 2 THEN NULL END ) - 26 / - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT ALL - SUM( - 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - SUM ( - 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-204
SELECT - 26 * + COALESCE ( 92, + - 36, - 41 ) + 65 + + COALESCE ( 32, + - COUNT( * ) ) + 3, COUNT( * ) col2
----
-2292
1

skipif mysql # not compatible
query II rowsort label-204
SELECT - 26 * + COALESCE ( 92, + - 36, - 41 ) + 65 + + COALESCE ( 32, + - COUNT ( * ) ) + 3, COUNT ( * ) col2
----
-2292
1

query I rowsort
SELECT DISTINCT + + 18 + 34
----
52

query I rowsort
SELECT 76 + ( 83 ) - - + 53 AS col2
----
212

query I rowsort
SELECT DISTINCT 84 + + - 97
----
-13

query I rowsort
SELECT DISTINCT - + 5 * - + 87 * - 94 AS col1
----
-40890

query I rowsort
SELECT ALL + + 43 + + 20 col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-210
SELECT + 3 - 12, 50 - - COUNT( * ) DIV + 5 AS col0
----
-9
50

skipif mysql # not compatible
query II rowsort label-210
SELECT + 3 - 12, 50 - - COUNT ( * ) / + 5 AS col0
----
-9
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT 55 * - CAST( 14 AS SIGNED ) * - - 45
----
-34650

skipif mysql # not compatible
query I rowsort label-211
SELECT 55 * - CAST ( 14 AS INTEGER ) * - - 45
----
-34650

query I rowsort
SELECT 99 + + 28 AS col0
----
127

query I rowsort
SELECT DISTINCT + 95 + 56
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-214
SELECT COALESCE ( COUNT( * ), + 71 ) + + 12 * + MIN( - CAST( NULL AS SIGNED ) ) - + - 55 AS col0, + 27 * - 64 - - 85 AS col2
----
NULL
-1643

skipif mysql # not compatible
query II rowsort label-214
SELECT COALESCE ( COUNT ( * ), + 71 ) + + 12 * + MIN ( - CAST ( NULL AS INTEGER ) ) - + - 55 AS col0, + 27 * - 64 - - 85 AS col2
----
NULL
-1643

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT ALL - COUNT( * ) DIV + ( - 44 ) * - + 11 - - 39 + 43
----
82

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL - COUNT ( * ) / + ( - 44 ) * - + 11 - - 39 + 43
----
82

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

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

query I rowsort
SELECT DISTINCT 53 * - 11 * - 9 AS col1
----
5247

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT 83 + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-220
SELECT 83 + + COUNT ( * )
----
84

query I rowsort
SELECT ( - 47 ) * + 10
----
-470

query I rowsort
SELECT ALL 34 - 20 AS col0
----
14

query I rowsort
SELECT ( 91 ) * + 6 * + 75 AS col2
----
40950

query I rowsort
SELECT 11 * - + 43 col0
----
-473

onlyif mysql # DIV for integer division: 
query I rowsort label-225
SELECT ALL + 76 DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL + 76 / - 81 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-226
SELECT DISTINCT + 68 DIV 15 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT + 68 / 15 AS col2
----
4

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

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT COUNT ( * ) / + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT DISTINCT - COUNT( - - 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT - COUNT ( - - 35 )
----
-1

query I rowsort
SELECT DISTINCT + 95 * + + 50 AS col2
----
4750

query I rowsort
SELECT 11 * 19 col1
----
209

query I rowsort
SELECT 91 + ( + CASE + 16 WHEN + - COALESCE ( 86, - 10 / + 85 ) THEN + 76 - 74 + - + 85 ELSE - 33 END ) AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT + COALESCE ( - 26, 95 DIV 50 )
----
-26

skipif mysql # not compatible
query I rowsort label-232
SELECT + COALESCE ( - 26, 95 / 50 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-233
SELECT 78 * + - COUNT( * ) + ( CAST( NULL AS SIGNED ) ) + + MAX( DISTINCT 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-233
SELECT 78 * + - COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ) + + MAX ( DISTINCT 78 )
----
NULL

query I rowsort
SELECT 36 * - - 99
----
3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT DISTINCT CAST( 86 AS SIGNED ) + COUNT( ( + - 62 ) )
----
87

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT CAST ( 86 AS INTEGER ) + COUNT ( ( + - 62 ) )
----
87

query II rowsort
SELECT ALL + 55, - 54 AS col1
----
55
-54

query I rowsort
SELECT - + 37 + - 44 * 16 AS col2
----
-741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-238
SELECT DISTINCT + CASE - 45 WHEN - 96 THEN COUNT( DISTINCT + + 74 ) WHEN 50 THEN 64 ELSE + - 9 END DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT + CASE - 45 WHEN - 96 THEN COUNT ( DISTINCT + + 74 ) WHEN 50 THEN 64 ELSE + - 9 END / + 10
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-239
SELECT - + 75 * - CAST( 47 AS SIGNED ) * - - 94 - + + 95 + 52 col1, + NULLIF ( + NULLIF ( + + 39, - ( + ( - CAST( NULL AS SIGNED ) ) ) + + + 87 ), 15 ) * + 0
----
331307
0

skipif mysql # not compatible
query II rowsort label-239
SELECT - + 75 * - CAST ( 47 AS INTEGER ) * - - 94 - + + 95 + 52 col1, + NULLIF ( + NULLIF ( + + 39, - ( + ( - CAST ( NULL AS INTEGER ) ) ) + + + 87 ), 15 ) * + 0
----
331307
0

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT - 56 * SUM( + + 53 )
----
-2968

skipif mysql # not compatible
query I rowsort label-240
SELECT - 56 * SUM ( + + 53 )
----
-2968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT - + COALESCE ( COUNT( * ), + 77, - 30 ) DIV - 86 + + 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-241
SELECT - + COALESCE ( COUNT ( * ), + 77, - 30 ) / - 86 + + 49 AS col0
----
49

query I rowsort
SELECT ALL NULLIF ( - 20, + 27 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-243
SELECT - COUNT( * ) AS col0, - 31 AS col0
----
-1
-31

skipif mysql # not compatible
query II rowsort label-243
SELECT - COUNT ( * ) AS col0, - 31 AS col0
----
-1
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT ALL - 74 * COUNT( * ) * + + CASE 39 WHEN COUNT( * ) + - + 95 / + 53 * 6 THEN NULL WHEN - 81 THEN NULL WHEN 74 + - + NULLIF ( ( - - 75 ), 33 ) THEN + + 17 END * 30 * 87 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - 74 * COUNT ( * ) * + + CASE 39 WHEN COUNT ( * ) + - + 95 / + 53 * 6 THEN NULL WHEN - 81 THEN NULL WHEN 74 + - + NULLIF ( ( - - 75 ), 33 ) THEN + + 17 END * 30 * 87 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT - 32 DIV - 41 * 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-245
SELECT - 32 / - 41 * 44 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT DISTINCT CAST( - COALESCE ( + 87, + CASE - ( + 6 ) WHEN COALESCE ( 67, + + NULLIF ( 70, - + 15 ), 54 ) THEN + 27 END * ( + 41 ) ) AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT CAST ( - COALESCE ( + 87, + CASE - ( + 6 ) WHEN COALESCE ( 67, + + NULLIF ( 70, - + 15 ), 54 ) THEN + 27 END * ( + 41 ) ) AS INTEGER ) AS col2
----
-87

query I rowsort
SELECT ALL 98 - - 77 AS col0
----
175

query II rowsort
SELECT - 72 AS col1, + 61
----
-72
61

query I rowsort
SELECT ALL + - 36 * - 74
----
2664

query I rowsort
SELECT + - 28 * 38 AS col0
----
-1064

query II rowsort
SELECT ALL 22, - 90 AS col2
----
22
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT - CASE - 2 WHEN + 11 * - 59 * 30 * 47 THEN COUNT( * ) ELSE + 31 END
----
-31

skipif mysql # not compatible
query I rowsort label-252
SELECT - CASE - 2 WHEN + 11 * - 59 * 30 * 47 THEN COUNT ( * ) ELSE + 31 END
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - ( - MAX( DISTINCT CASE - 68 WHEN + 73 THEN + 90 END ) ) + + 41 * 67 + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-253
SELECT - ( - MAX ( DISTINCT CASE - 68 WHEN + 73 THEN + 90 END ) ) + + 41 * 67 + + 74
----
NULL

query II rowsort
SELECT 50, + 21 AS col2
----
50
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-255
SELECT + CAST( - COUNT( * ) AS SIGNED ) + + 60 * + 38 * + 80 AS col2
----
182399

skipif mysql # not compatible
query I rowsort label-255
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + 60 * + 38 * + 80 AS col2
----
182399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-256
SELECT DISTINCT AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) / 69 + + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) / 69 + + + 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-257
SELECT + 22 + - CASE 99 WHEN - - 4 THEN 32 WHEN - 63 * + + 47 THEN - + COUNT( * ) * - - CAST( NULL AS SIGNED ) * - 51 + + 95 + 10 / + CAST( NULL AS SIGNED ) * - 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT + 22 + - CASE 99 WHEN - - 4 THEN 32 WHEN - 63 * + + 47 THEN - + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - 51 + + 95 + 10 / + CAST ( NULL AS INTEGER ) * - 96 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-258
SELECT + COUNT( + 88 ), 93 AS col0
----
1
93

skipif mysql # not compatible
query II rowsort label-258
SELECT + COUNT ( + 88 ), 93 AS col0
----
1
93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT + 86 DIV 98 * + + 43
----
0

skipif mysql # not compatible
query I rowsort label-260
SELECT + 86 / 98 * + + 43
----
0

query I rowsort
SELECT + NULLIF ( + + 25, - ( + + 60 ) / + 79 / + + 40 + 50 )
----
25

query II rowsort
SELECT ALL + 52 AS col1, 26
----
52
26

query I rowsort
SELECT ALL + 76 * + 29 + 34
----
2238

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-265
SELECT ALL + - 13 * + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * + + 72 + + 85 / + CAST( - 24 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL + - 13 * + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * + + 72 + + 85 / + CAST ( - 24 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 31 AS col2, 13 + + 64 + + - 17 + 95 * - ( 7 ) * - 49
----
31
32645

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

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

query I rowsort
SELECT ALL + + 88 * - 54
----
-4752

query II rowsort
SELECT 96 AS col2, 85 AS col2
----
96
85

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT - 67 * + CASE - 71 WHEN 43 THEN NULL ELSE - 42 + - + AVG ( - - 17 ) * 79 - - MIN( + + 37 ) END * + 47 + 38 + + CASE SUM( DISTINCT + 8 ) WHEN - + 45 - NULLIF ( + 73, 47 + + 24 ) THEN NULL WHEN + AVG ( + 19 ) * - 41 THEN - 8 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT - 67 * + CASE - 71 WHEN 43 THEN NULL ELSE - 42 + - + AVG ( - - 17 ) * 79 - - MIN ( + + 37 ) END * + 47 + 38 + + CASE SUM ( DISTINCT + 8 ) WHEN - + 45 - NULLIF ( + 73, 47 + + 24 ) THEN NULL WHEN + AVG ( + 19 ) * - 41 THEN - 8 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-271
SELECT DISTINCT - + 63 * + CAST( NULL AS DECIMAL ) * CASE - 1 WHEN - 93 THEN - 3 END * + 63 + + COUNT( * ) - + 1 + - CASE + 32 WHEN 61 + + 9 THEN NULL ELSE + - 57 / 67 / - 65 + - 81 END * - - 44 + - 72 * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT - + 63 * + CAST ( NULL AS REAL ) * CASE - 1 WHEN - 93 THEN - 3 END * + 63 + + COUNT ( * ) - + 1 + - CASE + 32 WHEN 61 + + 9 THEN NULL ELSE + - 57 / 67 / - 65 + - 81 END * - - 44 + - 72 * + 97
----
NULL

query I rowsort
SELECT + - 55 * + 69 + 88 + 22 * 93 col1
----
-1661

query I rowsort
SELECT DISTINCT 63 * - ( + 14 ) - + 57 AS col1
----
-939

query I rowsort
SELECT - ( 30 ) AS col2
----
-30

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

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

query I rowsort
SELECT - 5 + + NULLIF ( 22, + 42 ) AS col1
----
17

query I rowsort
SELECT + 82 + 42 AS col0
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-278
SELECT ALL CAST( + + ( 26 ) AS SIGNED ) AS col0, 56 AS col2
----
26
56

skipif mysql # not compatible
query II rowsort label-278
SELECT ALL CAST ( + + ( 26 ) AS INTEGER ) AS col0, 56 AS col2
----
26
56

query I rowsort
SELECT - 69 * 87 * - - 64
----
-384192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-280
SELECT DISTINCT - COUNT( - 20 ) * - 72 * 10 + - 20 + COALESCE ( - - 76, 99 * + + 36 + 64, - - 59 DIV + 1 + + - NULLIF ( + 97, 89 + + 56 ) DIV + 39 * + 32 * + CASE 54 WHEN - 24 THEN + + 87 * + + 40 ELSE NULL END - COUNT( * ) ) DIV + 89 + + COUNT( DISTINCT CAST( 16 AS SIGNED ) ) + - + 77 DIV - COALESCE ( - NULLIF ( + 60, ( COUNT( * ) ) - + 77 ), 94 ) AS col0
----
700

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT - COUNT ( - 20 ) * - 72 * 10 + - 20 + COALESCE ( - - 76, 99 * + + 36 + 64, - - 59 / + 1 + + - NULLIF ( + 97, 89 + + 56 ) / + 39 * + 32 * + CASE 54 WHEN - 24 THEN + + 87 * + + 40 ELSE NULL END - COUNT ( * ) ) / + 89 + + COUNT ( DISTINCT CAST ( 16 AS INTEGER ) ) + - + 77 / - COALESCE ( - NULLIF ( + 60, ( COUNT ( * ) ) - + 77 ), 94 ) AS col0
----
700

query I rowsort
SELECT ALL + 22 + 4
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT DISTINCT + NULLIF ( COUNT( * ), - 77 + + - 32 ) + - 92 * + 88 AS col0
----
-8095

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT + NULLIF ( COUNT ( * ), - 77 + + - 32 ) + - 92 * + 88 AS col0
----
-8095

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT + 16 * 98 AS col0, COUNT( * ) AS col1
----
1568
1

skipif mysql # not compatible
query II rowsort label-283
SELECT + 16 * 98 AS col0, COUNT ( * ) AS col1
----
1568
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-284
SELECT DISTINCT - COUNT( * ) DIV - 53 + - + ( - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT - COUNT ( * ) / - 53 + - + ( - 47 )
----
47

query I rowsort
SELECT - 3 - + 2 + + 60 AS col0
----
55

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

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

query I rowsort
SELECT + 68 * - 59
----
-4012

query I rowsort
SELECT ALL 74 + + - 19
----
55

query I rowsort
SELECT 17 * - 78 AS col2
----
-1326

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-290
SELECT DISTINCT - CASE - ( + + 86 ) WHEN - COUNT( * ) + + - CAST( NULL AS DECIMAL ) THEN + 16 WHEN + - 22 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT - CASE - ( + + 86 ) WHEN - COUNT ( * ) + + - CAST ( NULL AS REAL ) THEN + 16 WHEN + - 22 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 9 + 85 * - 17
----
-1436

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT 26 * MAX( + 52 )
----
1352

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT 26 * MAX ( + 52 )
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - 53 * + - COUNT( * ) + - 2 * + 88 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-293
SELECT - 53 * + - COUNT ( * ) + - 2 * + 88 AS col2
----
-123

query I rowsort
SELECT + 69 + + - 48 AS col0
----
21

query I rowsort
SELECT + 65 * - 39 + - 0 AS col1
----
-2535

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT DISTINCT - - CASE + 41 WHEN - COUNT( * ) THEN 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT - - CASE + 41 WHEN - COUNT ( * ) THEN 59 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-297
SELECT + 77 * - 22 + - - 18 AS col1, COUNT( * ) + - 2, + ( 84 ) AS col2
----
-1676
-1
84

skipif mysql # not compatible
query III rowsort label-297
SELECT + 77 * - 22 + - - 18 AS col1, COUNT ( * ) + - 2, + ( 84 ) AS col2
----
-1676
-1
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-298
SELECT DISTINCT - COUNT( * ) * - - 21 + + + 43 * + + COUNT( * ) + - - CAST( + - ( ( + + 40 ) ) AS SIGNED ) + MAX( ALL + ( 13 ) ) + + + CASE + 85 WHEN + - COUNT( * ) + - - 74 THEN - + 64 WHEN - COUNT( * ) + + COALESCE ( 92, 94 ) THEN NULL ELSE NULL END * + - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT - COUNT ( * ) * - - 21 + + + 43 * + + COUNT ( * ) + - - CAST ( + - ( ( + + 40 ) ) AS INTEGER ) + MAX ( ALL + ( 13 ) ) + + + CASE + 85 WHEN + - COUNT ( * ) + - - 74 THEN - + 64 WHEN - COUNT ( * ) + + COALESCE ( 92, 94 ) THEN NULL ELSE NULL END * + - 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-299
SELECT DISTINCT - + COUNT( * ) * 29 DIV - 60 * 14 + - + 29 col0, + 2 * + + 78 * - - 99 + - - 12
----
-29
15456

skipif mysql # not compatible
query II rowsort label-299
SELECT DISTINCT - + COUNT ( * ) * 29 / - 60 * 14 + - + 29 col0, + 2 * + + 78 * - - 99 + - - 12
----
-29
15456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-300
SELECT 33 * - 65 * - 92 + + 49 + - ( + 61 ) + - ( - + 48 ) + - COALESCE ( - - 41, + + 80 * - 6 DIV + COUNT( * ) * - 36 - - 74 + - 21 + - 55 * - + 20 * + 51 ) * - 21 * - 50
----
154326

skipif mysql # not compatible
query I rowsort label-300
SELECT 33 * - 65 * - 92 + + 49 + - ( + 61 ) + - ( - + 48 ) + - COALESCE ( - - 41, + + 80 * - 6 / + COUNT ( * ) * - 36 - - 74 + - 21 + - 55 * - + 20 * + 51 ) * - 21 * - 50
----
154326

onlyif mysql # DIV for integer division: 
query II rowsort label-301
SELECT + 55 * 22 DIV 68 + - + 5 DIV - 77 + 60 * - 8 AS col1, - 14 AS col1
----
-463
-14

skipif mysql # not compatible
query II rowsort label-301
SELECT + 55 * 22 / 68 + - + 5 / - 77 + 60 * - 8 AS col1, - 14 AS col1
----
-463
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-302
SELECT ( - CASE - - SUM( ALL + 26 ) WHEN - - 75 - + 32 THEN - + 58 WHEN - 87 THEN + 87 * 64 WHEN COUNT( * ) THEN NULL ELSE NULL END ) + CAST( - 58 AS SIGNED ) AS col1, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-302
SELECT ( - CASE - - SUM ( ALL + 26 ) WHEN - - 75 - + 32 THEN - + 58 WHEN - 87 THEN + 87 * 64 WHEN COUNT ( * ) THEN NULL ELSE NULL END ) + CAST ( - 58 AS INTEGER ) AS col1, 38
----
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-303
SELECT ALL 72, - 49 / + CAST( NULL AS SIGNED ) AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-303
SELECT ALL 72, - 49 / + CAST ( NULL AS INTEGER ) AS col1
----
72
NULL

query I rowsort
SELECT DISTINCT 17 + - 4
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-305
SELECT DISTINCT COUNT( * ) + + CAST( 73 AS SIGNED ), 82 DIV + - 47 col0
----
74
-1

skipif mysql # not compatible
query II rowsort label-305
SELECT DISTINCT COUNT ( * ) + + CAST ( 73 AS INTEGER ), 82 / + - 47 col0
----
74
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT 17 - 61 + + 89 DIV 8 * + - 57 * - 48 AS col0
----
30052

skipif mysql # not compatible
query I rowsort label-307
SELECT 17 - 61 + + 89 / 8 * + - 57 * - 48 AS col0
----
30052

query II rowsort
SELECT ALL 87 AS col1, + 4
----
87
4

query I rowsort
SELECT 27 * - ( + 11 )
----
-297

onlyif mysql # aggregate syntax: 
query II rowsort label-310
SELECT - 42 AS col1, + 88 + - + COUNT( * ) - 50 AS col0
----
-42
37

skipif mysql # not compatible
query II rowsort label-310
SELECT - 42 AS col1, + 88 + - + COUNT ( * ) - 50 AS col0
----
-42
37

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT DISTINCT - 46 + 48 * - 31 * + - NULLIF ( + SUM( + 98 ), - 37 * - + 45 ) + + + 36 + - 94 AS col2
----
145720

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT - 46 + 48 * - 31 * + - NULLIF ( + SUM ( + 98 ), - 37 * - + 45 ) + + + 36 + - 94 AS col2
----
145720

query I rowsort
SELECT 7 + + - CASE + 71 WHEN + 49 THEN - 87 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 46 * - 74
----
-3404

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT - 76 DIV 24 + + 70 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-315
SELECT - 76 / 24 + + 70 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL + 28 + - SUM( - 91 ) * - + 33 * + + 59 AS col1
----
-177149

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + 28 + - SUM ( - 91 ) * - + 33 * + + 59 AS col1
----
-177149

query I rowsort
SELECT 16 * 12 AS col2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL - - MAX( DISTINCT + + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - - MAX ( DISTINCT + + 18 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT 88 + NULLIF ( 20, + + 81 ) + - COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-319
SELECT 88 + NULLIF ( 20, + + 81 ) + - COUNT ( * )
----
107

query I rowsort
SELECT ALL - 78 - + + 87
----
-165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT 24 - + 36 + 77 * MAX( + 94 ) col0
----
7226

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT 24 - + 36 + 77 * MAX ( + 94 ) col0
----
7226

onlyif mysql # DIV for integer division: 
query II rowsort label-323
SELECT ALL - + 29 AS col0, + 5 DIV - 3 + + - 45 * 70
----
-29
-3151

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL - + 29 AS col0, + 5 / - 3 + + - 45 * 70
----
-29
-3151

query I rowsort
SELECT DISTINCT - - 68 col0
----
68

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

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

query I rowsort
SELECT DISTINCT 51 * + - 58 * ( + - 75 )
----
221850

query II rowsort
SELECT DISTINCT - 85 * - - ( - + 6 ), 29 AS col2
----
510
29

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT - + 18 * 65 + - 25 + NULLIF ( + 35, + 67 + - - 96 * + ( + 60 ) ) * ( + COUNT( * ) ) * - 42
----
-2665

skipif mysql # not compatible
query I rowsort label-328
SELECT - + 18 * 65 + - 25 + NULLIF ( + 35, + 67 + - - 96 * + ( + 60 ) ) * ( + COUNT ( * ) ) * - 42
----
-2665

query II rowsort
SELECT ALL 8 * - + ( + - ( 61 ) ) AS col0, + 61
----
488
61

query I rowsort
SELECT - 78 * 3 AS col2
----
-234

query I rowsort
SELECT 68 * + 22 * + 14
----
20944

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - COUNT( ALL + 0 ) + - - COUNT( * ) - 72 + + 51 col2
----
-21

skipif mysql # not compatible
query I rowsort label-332
SELECT - COUNT ( ALL + 0 ) + - - COUNT ( * ) - 72 + + 51 col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-333
SELECT + - 16, - COALESCE ( + 29, + 87 * + - 98 + + CAST( NULL AS SIGNED ), - - 2 ) - + 91 + - 94 AS col2
----
-16
-214

skipif mysql # not compatible
query II rowsort label-333
SELECT + - 16, - COALESCE ( + 29, + 87 * + - 98 + + CAST ( NULL AS INTEGER ), - - 2 ) - + 91 + - 94 AS col2
----
-16
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT + SUM( + + 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-334
SELECT + SUM ( + + 55 ) AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT ( + 4 ) DIV - 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-335
SELECT ( + 4 ) / - 17 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-336
SELECT ALL + COUNT( * ) + - 26 AS col0, 46 + + - 64 + - ( - 59 ) + + + 55
----
-25
96

skipif mysql # not compatible
query II rowsort label-336
SELECT ALL + COUNT ( * ) + - 26 AS col0, 46 + + - 64 + - ( - 59 ) + + + 55
----
-25
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-337
SELECT DISTINCT MIN( DISTINCT 73 ) DIV + 67 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT MIN ( DISTINCT 73 ) / + 67 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT 82 * - MAX( DISTINCT + + 88 ) AS col2
----
-7216

skipif mysql # not compatible
query I rowsort label-338
SELECT 82 * - MAX ( DISTINCT + + 88 ) AS col2
----
-7216

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT - CASE + 44 WHEN - - COUNT( * ) * 63 THEN NULL WHEN - - 94 + - SUM( DISTINCT + 71 ) THEN 19 ELSE - CASE - COALESCE ( - - 37, 6 ) WHEN - 16 THEN + 6 WHEN - COUNT( - 5 ) + 30 + - + 9 THEN NULL ELSE 96 END END
----
96

skipif mysql # not compatible
query I rowsort label-339
SELECT - CASE + 44 WHEN - - COUNT ( * ) * 63 THEN NULL WHEN - - 94 + - SUM ( DISTINCT + 71 ) THEN 19 ELSE - CASE - COALESCE ( - - 37, 6 ) WHEN - 16 THEN + 6 WHEN - COUNT ( - 5 ) + 30 + - + 9 THEN NULL ELSE 96 END END
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT DISTINCT 63 + - 46 DIV + + 62 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT 63 + - 46 / + + 62 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-341
SELECT 36 + + 81 - - COUNT( * ) DIV COUNT( * ) AS col1
----
118

skipif mysql # not compatible
query I rowsort label-341
SELECT 36 + + 81 - - COUNT ( * ) / COUNT ( * ) AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL MIN( ALL - 14 ) + + 34
----
20

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL MIN ( ALL - 14 ) + + 34
----
20

query I rowsort
SELECT + 4 * - 48 AS col0
----
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-344
SELECT DISTINCT COUNT( DISTINCT 37 ), + ( - MIN( ALL + 78 ) ) AS col2
----
1
-78

skipif mysql # not compatible
query II rowsort label-344
SELECT DISTINCT COUNT ( DISTINCT 37 ), + ( - MIN ( ALL + 78 ) ) AS col2
----
1
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL SUM( 79 ) - + 60 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL SUM ( 79 ) - + 60 AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT ALL - 60 - ( + MAX( ALL - + 21 ) ) AS col2, - 88
----
-39
-88

skipif mysql # not compatible
query II rowsort label-346
SELECT ALL - 60 - ( + MAX ( ALL - + 21 ) ) AS col2, - 88
----
-39
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-347
SELECT - CASE + + 69 WHEN - 54 * - 52 THEN - + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) / - 96 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-347
SELECT - CASE + + 69 WHEN - 54 * - 52 THEN - + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) / - 96 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-348
SELECT - COUNT( * ) / - + CAST( NULL AS SIGNED ) * + 21 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-349
SELECT DISTINCT COUNT( ALL + 14 ), - 7 AS col2
----
1
-7

skipif mysql # not compatible
query II rowsort label-349
SELECT DISTINCT COUNT ( ALL + 14 ), - 7 AS col2
----
1
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL + COALESCE ( 70, - - 51 - + 32 ) * MAX( DISTINCT 59 ) AS col2
----
4130

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL + COALESCE ( 70, - - 51 - + 32 ) * MAX ( DISTINCT 59 ) AS col2
----
4130

query I rowsort
SELECT - - 96 * - 51 + - - 31 AS col2
----
-4865

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT + + COALESCE ( - 2, - + 61, + COUNT( * ) * - - 46 )
----
-2

skipif mysql # not compatible
query I rowsort label-352
SELECT + + COALESCE ( - 2, - + 61, + COUNT ( * ) * - - 46 )
----
-2

query I rowsort
SELECT ALL - - 69 * + + 86 * + - ( - NULLIF ( + 72, - 30 ) ) col0
----
427248

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL + 47 * - + 8 * - + CASE - COUNT( * ) WHEN - 27 + - ( + 40 ) + + 17 + - 81 * SUM( DISTINCT ( + 82 ) ) / - 57 * SUM( DISTINCT - + 48 ) THEN NULL WHEN - + 95 / COUNT( * ) THEN 44 WHEN 45 * 91 / ( + COALESCE ( + AVG ( - 20 ), + - 42 * + - 13 * + 29 + + 50 + + + COUNT( * ) ) ) THEN - 11 * - 94 ELSE + 1 END + + 12
----
388

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + 47 * - + 8 * - + CASE - COUNT ( * ) WHEN - 27 + - ( + 40 ) + + 17 + - 81 * SUM ( DISTINCT ( + 82 ) ) / - 57 * SUM ( DISTINCT - + 48 ) THEN NULL WHEN - + 95 / COUNT ( * ) THEN 44 WHEN 45 * 91 / ( + COALESCE ( + AVG ( - 20 ), + - 42 * + - 13 * + 29 + + 50 + + + COUNT ( * ) ) ) THEN - 11 * - 94 ELSE + 1 END + + 12
----
388

query I rowsort
SELECT DISTINCT + + 39 * - + 9 * + + 34 * - ( + 31 ) AS col2
----
369954

query I rowsort
SELECT ALL - 55 * - 41 * 77 AS col0
----
173635

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-357
SELECT + 98 * - 12 - - COUNT( DISTINCT + - 51 ) DIV - COALESCE ( - - 62, + ( - - 45 ) ) * COUNT( * )
----
-1176

skipif mysql # not compatible
query I rowsort label-357
SELECT + 98 * - 12 - - COUNT ( DISTINCT + - 51 ) / - COALESCE ( - - 62, + ( - - 45 ) ) * COUNT ( * )
----
-1176

query II rowsort
SELECT - + 70 + - 62, - ( - 49 ) * + + ( + 8 ) + + 80 AS col0
----
-132
472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-359
SELECT + - COUNT( ALL 25 ) * 83 DIV + ( 86 )
----
0

skipif mysql # not compatible
query I rowsort label-359
SELECT + - COUNT ( ALL 25 ) * 83 / + ( 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL 14 * - + 61 + + - NULLIF ( + SUM( + 43 ), COUNT( * ) * + 43 - + 13 * COUNT( * ) * 0 ) / + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL 14 * - + 61 + + - NULLIF ( + SUM ( + 43 ), COUNT ( * ) * + 43 - + 13 * COUNT ( * ) * 0 ) / + 77
----
NULL

query I rowsort
SELECT + 18 * - 71 * 81 * + 7 * 22 + - 68 AS col2
----
-15941840

query I rowsort
SELECT ALL 42 * 89
----
3738

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - COUNT( * ) * 95 * - + COUNT( + 2 ) + - + 55
----
40

skipif mysql # not compatible
query I rowsort label-363
SELECT - COUNT ( * ) * 95 * - + COUNT ( + 2 ) + - + 55
----
40

query I rowsort
SELECT ALL ( + ( + 59 ) ) * NULLIF ( 94, 12 ) + 37 AS col1
----
5583

query I rowsort
SELECT ALL + COALESCE ( 15, - 97 ) * + NULLIF ( 9, + 50 ) + 91
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-366
SELECT ALL + 63 * + + AVG ( ALL CAST( NULL AS SIGNED ) ), CAST( NULL AS SIGNED ) + - 73 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-366
SELECT ALL + 63 * + + AVG ( ALL CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) + - 73 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-367
SELECT - ( + + NULLIF ( - - 82, + - CASE + 54 WHEN - - 84 THEN NULL WHEN + - ( + 88 ) + - 53 THEN - 38 / + SUM( - 62 ) + + - 32 END ) ) / CAST( 91 AS SIGNED ) * + CASE - + COUNT( * ) WHEN - - COUNT( * ) THEN + COUNT( * ) * - - COUNT( * ) + 96 + + - ( + AVG ( DISTINCT - - 95 ) ) * - - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT - ( + + NULLIF ( - - 82, + - CASE + 54 WHEN - - 84 THEN NULL WHEN + - ( + 88 ) + - 53 THEN - 38 / + SUM ( - 62 ) + + - 32 END ) ) / CAST ( 91 AS INTEGER ) * + CASE - + COUNT ( * ) WHEN - - COUNT ( * ) THEN + COUNT ( * ) * - - COUNT ( * ) + 96 + + - ( + AVG ( DISTINCT - - 95 ) ) * - - 17 END
----
NULL

query I rowsort
SELECT + 40 * + + COALESCE ( + 21, - - 54, 39 )
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT CASE - 46 WHEN - 61 + 31 THEN - - 84 WHEN - - 43 + - + 66 THEN - CASE + + 51 WHEN - - 61 * - - 73 THEN + 15 ELSE 14 END + - COUNT( * ) * - + 84 * - 13 END * - 21 * - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT CASE - 46 WHEN - 61 + 31 THEN - - 84 WHEN - - 43 + - + 66 THEN - CASE + + 51 WHEN - - 61 * - - 73 THEN + 15 ELSE 14 END + - COUNT ( * ) * - + 84 * - 13 END * - 21 * - 34 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-370
SELECT COUNT( * ) AS col0, NULLIF ( - MIN( DISTINCT NULLIF ( - - 39, 57 * + - CAST( NULL AS SIGNED ) ) ), + AVG ( DISTINCT NULLIF ( + + 10, - 10 + - - 2 ) ) * - - 16 + 10 / + CAST( NULL AS SIGNED ) + 62 + - 89 + + - CAST( + + 33 AS SIGNED ) + - 26 + - CAST( + 84 AS SIGNED ) )
----
1
-39

skipif mysql # not compatible
query II rowsort label-370
SELECT COUNT ( * ) AS col0, NULLIF ( - MIN ( DISTINCT NULLIF ( - - 39, 57 * + - CAST ( NULL AS INTEGER ) ) ), + AVG ( DISTINCT NULLIF ( + + 10, - 10 + - - 2 ) ) * - - 16 + 10 / + CAST ( NULL AS INTEGER ) + 62 + - 89 + + - CAST ( + + 33 AS INTEGER ) + - 26 + - CAST ( + 84 AS INTEGER ) )
----
1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT - ( + + ( + MAX( ALL + 16 ) ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-371
SELECT - ( + + ( + MAX ( ALL + 16 ) ) ) AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT - 12 * 49 - - + 59 DIV - 86 AS col1
----
-588

skipif mysql # not compatible
query I rowsort label-372
SELECT - 12 * 49 - - + 59 / - 86 AS col1
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT MAX( 88 ) col2
----
88

skipif mysql # not compatible
query I rowsort label-373
SELECT MAX ( 88 ) col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT + 39 + + 54 + - MAX( + - 46 ) + 67 * + 55 * MAX( DISTINCT + + 28 ) AS col1, 42 AS col2
----
103319
42

skipif mysql # not compatible
query II rowsort label-374
SELECT + 39 + + 54 + - MAX ( + - 46 ) + 67 * + 55 * MAX ( DISTINCT + + 28 ) AS col1, 42 AS col2
----
103319
42

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

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL CAST ( - + ( - + 73 ) AS INTEGER ) / + COUNT ( * )
----
73

query I rowsort
SELECT - CASE - - 41 WHEN + - 89 + 68 THEN - - 73 WHEN + 89 - + 36 THEN NULL WHEN + 80 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-377
SELECT ALL ( COUNT( * ) ) - + + 39 + - COUNT( * ) - + - CAST( NULL AS SIGNED ) + - - MAX( ALL - 4 ) * + 67 + 4 * 10 * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL ( COUNT ( * ) ) - + + 39 + - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + - - MAX ( ALL - 4 ) * + 67 + 4 * 10 * - 78
----
NULL

query I rowsort
SELECT + 50 - + - 51 * 65 + 43
----
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT + 9 * 91 * + SUM( ALL + 64 ) col2
----
52416

skipif mysql # not compatible
query I rowsort label-379
SELECT + 9 * 91 * + SUM ( ALL + 64 ) col2
----
52416

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-380
SELECT ALL 15 DIV - 84 * - 66 * - + CAST( + 65 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL 15 / - 84 * - 66 * - + CAST ( + 65 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-381
SELECT + 21 + - 60 + 7 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-381
SELECT + 21 + - 60 + 7 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 27 - ( + 26 ) + + 85
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT + 97 + + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-383
SELECT + 97 + + COUNT ( * ) AS col1
----
98

query II rowsort
SELECT 94 AS col1, 52
----
94
52

query I rowsort
SELECT + 14 * - 82
----
-1148

query I rowsort
SELECT + 91 + + + 48 AS col1
----
139

query I rowsort
SELECT DISTINCT NULLIF ( - 80, + - 38 ) AS col2
----
-80

query I rowsort
SELECT DISTINCT 45 * 87
----
3915

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-389
SELECT + 85 + - - 66 + 44 AS col2, COALESCE ( + + 4, - + 53, - + 26 ) DIV + 42 + - COUNT( * )
----
195
-1

skipif mysql # not compatible
query II rowsort label-389
SELECT + 85 + - - 66 + 44 AS col2, COALESCE ( + + 4, - + 53, - + 26 ) / + 42 + - COUNT ( * )
----
195
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-390
SELECT ALL + 31 / + + 4 + + CAST( NULL AS SIGNED ) AS col1, - 59 * - - SUM( ALL + 87 ) col1
----
NULL
-5133

skipif mysql # not compatible
query II rowsort label-390
SELECT ALL + 31 / + + 4 + + CAST ( NULL AS INTEGER ) AS col1, - 59 * - - SUM ( ALL + 87 ) col1
----
NULL
-5133

query I rowsort
SELECT - - 15 + - 25
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-392
SELECT + - COUNT( * ) * + + SUM( DISTINCT - + 15 ) * ( + ( + - 16 ) ) DIV - 75 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-392
SELECT + - COUNT ( * ) * + + SUM ( DISTINCT - + 15 ) * ( + ( + - 16 ) ) / - 75 AS col0
----
3

query I rowsort
SELECT + 70 * 98 + 23 + + + 41 * - 57 + - 44 AS col0
----
4502

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL + + MAX( DISTINCT - - 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL + + MAX ( DISTINCT - - 43 ) AS col0
----
43

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-397
SELECT - - MIN( + + 59 ) DIV - 16
----
-3

skipif mysql # not compatible
query I rowsort label-397
SELECT - - MIN ( + + 59 ) / - 16
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT DISTINCT + 95 / + + COUNT( * ) + + COUNT( - 84 ) * + 82 * - 46 + - CAST( NULL AS SIGNED ) * - CASE + - 93 WHEN 83 THEN NULL WHEN - - 92 THEN - 53 * - - 31 / - + 72 * + 8 * COALESCE ( - - 57, - + 70 ) + - SUM( - 77 ) - + 13 * + + 12 + - + COUNT( * ) * 21 + + 49 ELSE - - 5 * + 12 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT + 95 / + + COUNT ( * ) + + COUNT ( - 84 ) * + 82 * - 46 + - CAST ( NULL AS INTEGER ) * - CASE + - 93 WHEN 83 THEN NULL WHEN - - 92 THEN - 53 * - - 31 / - + 72 * + 8 * COALESCE ( - - 57, - + 70 ) + - SUM ( - 77 ) - + 13 * + + 12 + - + COUNT ( * ) * 21 + + 49 ELSE - - 5 * + 12 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-400
SELECT ALL - - COALESCE ( + 46, 4 ) / - + MIN( DISTINCT + + 70 ) + + ( + ( CAST( NULL AS SIGNED ) ) ) + - ( - ( + - 10 ) ) - - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL - - COALESCE ( + 46, 4 ) / - + MIN ( DISTINCT + + 70 ) + + ( + ( CAST ( NULL AS INTEGER ) ) ) + - ( - ( + - 10 ) ) - - 37 AS col1
----
NULL

query I rowsort
SELECT - - 14 * + 65 AS col2
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL - ( + 75 ) * + + MAX( DISTINCT + ( - 30 ) ) AS col0
----
2250

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL - ( + 75 ) * + + MAX ( DISTINCT + ( - 30 ) ) AS col0
----
2250

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

query I rowsort
SELECT ( + + ( 8 ) ) col0
----
8

query I rowsort
SELECT DISTINCT - 5 * 48 * + + 98 + 30 AS col0
----
-23490

query I rowsort
SELECT 11 * - + 6
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-407
SELECT ALL - CAST( 74 AS SIGNED ), - ( - - 62 ) * COUNT( * ) + + 69 * + 32 AS col0
----
-74
2146

skipif mysql # not compatible
query II rowsort label-407
SELECT ALL - CAST ( 74 AS INTEGER ), - ( - - 62 ) * COUNT ( * ) + + 69 * + 32 AS col0
----
-74
2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-408
SELECT - CAST( NULL AS SIGNED ) * MIN( ALL - 94 ) * ( + - 84 ) + + - 95 AS col0, NULLIF ( 14, - 74 + + 26 ) col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-408
SELECT - CAST ( NULL AS INTEGER ) * MIN ( ALL - 94 ) * ( + - 84 ) + + - 95 AS col0, NULLIF ( 14, - 74 + + 26 ) col0
----
NULL
14

query I rowsort
SELECT 26 + + + 81
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS SIGNED ) ) - 1 / - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) - 1 / - 66
----
NULL

query I rowsort
SELECT 26 * + - 58
----
-1508

query I rowsort
SELECT 61 + 40 + + 31
----
132

query I rowsort
SELECT ALL - 97 * - 86
----
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT SUM( ALL - - 49 ) + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-414
SELECT SUM ( ALL - - 49 ) + COUNT ( * ) AS col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT 45 DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-415
SELECT 45 / - 54 AS col0
----
0

query II rowsort
SELECT - 14 AS col1, - ( - - 25 ) AS col0
----
-14
-25

query I rowsort
SELECT ALL - ( + CASE + - 58 WHEN - 33 THEN + 94 WHEN + - 92 THEN NULL ELSE NULL END ) * + 60 * - 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-418
SELECT DISTINCT 52 AS col1, - 81 * + CASE - - COUNT( * ) WHEN + 46 THEN + 35 WHEN + ( + + 77 ) THEN NULL ELSE + + 52 END
----
52
-4212

skipif mysql # not compatible
query II rowsort label-418
SELECT DISTINCT 52 AS col1, - 81 * + CASE - - COUNT ( * ) WHEN + 46 THEN + 35 WHEN + ( + + 77 ) THEN NULL ELSE + + 52 END
----
52
-4212

query II rowsort
SELECT DISTINCT - 94, - 6 + - + 5 col1
----
-94
-11

query I rowsort
SELECT 12 * + 54 AS col2
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT ALL - MAX( ALL + 36 ) + - - 92 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - MAX ( ALL + 36 ) + - - 92 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT DISTINCT COUNT( ALL - 83 ) + - + 7 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT COUNT ( ALL - 83 ) + - + 7 AS col1
----
-6

query II rowsort
SELECT + 97, NULLIF ( + 68, - 96 + NULLIF ( COALESCE ( ( + 59 ), - + 9 ), + 60 ) ) * + 15 col1
----
97
1020

query I rowsort
SELECT ALL 75 + + 50
----
125

query I rowsort
SELECT 92 * 81
----
7452

query II rowsort
SELECT 35 * 15 + - ( - 79 ) * - + ( + 98 ) AS col0, + 11
----
-7217
11

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL - 73 * COUNT( ALL - - 77 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - 73 * COUNT ( ALL - - 77 ) AS col1
----
-73

query I rowsort
SELECT ALL 2 + + 16
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-429
SELECT COUNT( * ) * - 15, + 78 + + ( + 68 ) AS col0
----
-15
146

skipif mysql # not compatible
query II rowsort label-429
SELECT COUNT ( * ) * - 15, + 78 + + ( + 68 ) AS col0
----
-15
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-430
SELECT ALL - ( - 47 ) * + MIN( + 82 ) * 6 + + - 25 + NULLIF ( - 34, + 8 DIV + 83 + + - 26 * - + COUNT( * ) * + 94 * + - 91 * + - 48 * - ( 4 ) + 92 ) DIV - + COUNT( * )
----
23133

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL - ( - 47 ) * + MIN ( + 82 ) * 6 + + - 25 + NULLIF ( - 34, + 8 / + 83 + + - 26 * - + COUNT ( * ) * + 94 * + - 91 * + - 48 * - ( 4 ) + 92 ) / - + COUNT ( * )
----
23133

query I rowsort
SELECT + 47 * + 14 + - - 17 + 70 AS col2
----
745

query I rowsort
SELECT ALL - ( - 69 ) col2
----
69

query I rowsort
SELECT 68 * - 37 - 25
----
-2541

query I rowsort
SELECT ALL - ( - 75 ) * - 74 AS col1
----
-5550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-435
SELECT - 42 * + CAST( NULL AS SIGNED ) / 61 + - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT - 42 * + CAST ( NULL AS INTEGER ) / 61 + - 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT DISTINCT 4 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT 4 / - 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-437
SELECT DISTINCT + ( + COALESCE ( + - 4, COUNT( * ) ) ) * + 32 * - CAST( + 65 AS SIGNED ) * + 62
----
515840

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT + ( + COALESCE ( + - 4, COUNT ( * ) ) ) * + 32 * - CAST ( + 65 AS INTEGER ) * + 62
----
515840

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT DISTINCT - COUNT( ALL - 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT - COUNT ( ALL - 17 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT CAST( NULL AS SIGNED ) * - AVG ( + 37 ) * + 40 + - 57 / + 26 * + ( - 80 ) * + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT CAST ( NULL AS INTEGER ) * - AVG ( + 37 ) * + 40 + - 57 / + 26 * + ( - 80 ) * + + 54
----
NULL

query I rowsort
SELECT 46 * COALESCE ( + 24, 88, + 71 ) AS col0
----
1104

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

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

query I rowsort
SELECT 42 - - + ( - 80 ) + - + ( - 29 ) * - + 1
----
-67

query I rowsort
SELECT DISTINCT 97 * - 97 * - 95 AS col0
----
893855

query I rowsort
SELECT 51 + - 77
----
-26

query I rowsort
SELECT ALL - 66 * + 23
----
-1518

onlyif mysql # aggregate syntax: 
query II rowsort label-446
SELECT ALL + 59 + + SUM( + 56 ) AS col2, + 60 AS col1
----
115
60

skipif mysql # not compatible
query II rowsort label-446
SELECT ALL + 59 + + SUM ( + 56 ) AS col2, + 60 AS col1
----
115
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT 68 + + + NULLIF ( - 13, + - CASE 56 WHEN - ( 44 ) * 32 + ( 98 ) * + + 25 * - 96 THEN - 59 WHEN - - ( - COUNT( * ) ) THEN - 95 WHEN 8 * - COUNT( * ) * + COALESCE ( - - COUNT( ALL + 1 ), + + AVG ( DISTINCT - 10 ) * + 21 ) * 9 - 53 + + CAST( - + 62 AS SIGNED ) THEN NULL ELSE + + 36 * + 48 + + + 87 * - COUNT( * ) + MIN( - 74 ) END + 54 + 81 + - + 5 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-447
SELECT 68 + + + NULLIF ( - 13, + - CASE 56 WHEN - ( 44 ) * 32 + ( 98 ) * + + 25 * - 96 THEN - 59 WHEN - - ( - COUNT ( * ) ) THEN - 95 WHEN 8 * - COUNT ( * ) * + COALESCE ( - - COUNT ( ALL + 1 ), + + AVG ( DISTINCT - 10 ) * + 21 ) * 9 - 53 + + CAST ( - + 62 AS INTEGER ) THEN NULL ELSE + + 36 * + 48 + + + 87 * - COUNT ( * ) + MIN ( - 74 ) END + 54 + 81 + - + 5 ) AS col0
----
55

query I rowsort
SELECT 11 - + 94 * + 64
----
-6005

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT - 20 + - - 49 - NULLIF ( - 29, - COUNT( * ) + + 57 )
----
58

skipif mysql # not compatible
query I rowsort label-449
SELECT - 20 + - - 49 - NULLIF ( - 29, - COUNT ( * ) + + 57 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - MIN( + - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-450
SELECT - MIN ( + - 85 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT - 3 DIV - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-451
SELECT - 3 / - 46 AS col1
----
0

query I rowsort
SELECT DISTINCT + 66 + + 92 + + 6 AS col2
----
164

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

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( ALL 2 )
----
NULL

query I rowsort
SELECT ( - - 50 ) + 92 * - NULLIF ( + 64, - 20 ) AS col1
----
-5838

query I rowsort
SELECT ALL + + 91 + + + 43 + 21 AS col1
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-456
SELECT DISTINCT - MAX( ALL 42 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT - MAX ( ALL 42 ) * CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL COUNT ( * ) + - COUNT ( ALL 50 ) * 7 AS col2
----
-6

query I rowsort
SELECT - 78 * - 74 - + 69 - + 66
----
5637

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT ALL + 1 * + CAST( + - COUNT( * ) AS SIGNED ) + 92
----
91

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL + 1 * + CAST ( + - COUNT ( * ) AS INTEGER ) + 92
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-461
SELECT - COUNT( * ) DIV 99 * + + 9 * + ( 50 ) * + 74 * NULLIF ( + 52, - + NULLIF ( NULLIF ( + - 46, + COUNT( * ) ), + 86 * 43 DIV + COUNT( * ) ) ) * - + 2 - + 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-461
SELECT - COUNT ( * ) / 99 * + + 9 * + ( 50 ) * + 74 * NULLIF ( + 52, - + NULLIF ( NULLIF ( + - 46, + COUNT ( * ) ), + 86 * 43 / + COUNT ( * ) ) ) * - + 2 - + 5 AS col2
----
-5

query I rowsort
SELECT 6 + + 17 + - 30
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT ALL COUNT( + 21 ) DIV + 50 + 76 + - 26
----
50

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL COUNT ( + 21 ) / + 50 + 76 + - 26
----
50

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-465
SELECT ALL + 0 * - 51 DIV + - 82 * 38 * + COUNT( * ) * - 41 col2
----
0

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL + 0 * - 51 / + - 82 * 38 * + COUNT ( * ) * - 41 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT DISTINCT 7 * - 82 - - 92 + 87 * + COUNT( * ) + + 82 AS col0
----
-313

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT 7 * - 82 - - 92 + 87 * + COUNT ( * ) + + 82 AS col0
----
-313

onlyif mysql # DIV for integer division: 
query I rowsort label-467
SELECT - 0 DIV - 34 + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-467
SELECT - 0 / - 34 + 24 AS col2
----
24

query I rowsort
SELECT ALL 46 * - 85 * 12
----
-46920

query I rowsort
SELECT ALL 63 * 5
----
315

query I rowsort
SELECT ALL 98 * - 90 * - - 45
----
-396900

query I rowsort
SELECT + 4 - - 91
----
95

query I rowsort
SELECT + 10 * - 77 col2
----
-770

query I rowsort
SELECT + 22 * - - 8 * ( - + 49 )
----
-8624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-474
SELECT DISTINCT + 87, - CAST( NULL AS SIGNED ) AS col1
----
87
NULL

skipif mysql # not compatible
query II rowsort label-474
SELECT DISTINCT + 87, - CAST ( NULL AS INTEGER ) AS col1
----
87
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT + 74 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-476
SELECT + 74 / 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-477
SELECT + 92 + CAST( NULL AS SIGNED ) + - + CASE 66 WHEN + + 30 THEN + 83 END * - 88 / 10 * - - ( 51 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-477
SELECT + 92 + CAST ( NULL AS INTEGER ) + - + CASE 66 WHEN + + 30 THEN + 83 END * - 88 / 10 * - - ( 51 ) AS col1
----
NULL

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

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

query I rowsort
SELECT - 20 * + 33
----
-660

query I rowsort
SELECT - 38 + - 59
----
-97

query II rowsort
SELECT ALL - - 68 * + 70 * - - 14 AS col2, 74
----
66640
74

query I rowsort
SELECT 28 * - + 86 * - ( + 54 ) + + COALESCE ( - 79, 62, + - 45 ) + 48
----
130001

query I rowsort
SELECT ALL + - 55 + + 81
----
26

query II rowsort
SELECT - 10 AS col2, + 0 + - - 69
----
-10
69

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL - 78 * - - 60 * - MIN( DISTINCT 28 )
----
131040

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL - 78 * - - 60 * - MIN ( DISTINCT 28 )
----
131040

query I rowsort
SELECT ALL + 87 - 72 * 38
----
-2649

query II rowsort
SELECT 41, 9 + - + 24 * + - 99 col0
----
41
2385

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT + NULLIF ( - + 69, - + 41 / + - 7 * - 36 ) - - COUNT( * ) AS col2, 32
----
-68
32

skipif mysql # not compatible
query II rowsort label-488
SELECT + NULLIF ( - + 69, - + 41 / + - 7 * - 36 ) - - COUNT ( * ) AS col2, 32
----
-68
32

query I rowsort
SELECT ALL NULLIF ( - 70, - 68 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-490
SELECT - SUM( - NULLIF ( + 6, CAST( NULL AS SIGNED ) ) ), + MIN( DISTINCT - + 52 ) DIV + 87 AS col0
----
6
0

skipif mysql # not compatible
query II rowsort label-490
SELECT - SUM ( - NULLIF ( + 6, CAST ( NULL AS INTEGER ) ) ), + MIN ( DISTINCT - + 52 ) / + 87 AS col0
----
6
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-491
SELECT - - NULLIF ( + + 47, - + CAST( - + ( + 38 ) AS SIGNED ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-491
SELECT - - NULLIF ( + + 47, - + CAST ( - + ( + 38 ) AS INTEGER ) ) AS col0
----
47

query I rowsort
SELECT - - 40 * - - 27 AS col2
----
1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * 74 + + NULLIF ( + AVG ( DISTINCT + 17 ), - 46 * - + 0 ) - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * 74 + + NULLIF ( + AVG ( DISTINCT + 17 ), - 46 * - + 0 ) - + 29
----
NULL

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

query I rowsort
SELECT DISTINCT + - 9 * - 22 AS col1
----
198

query I rowsort
SELECT - 58 * + 48 AS col0
----
-2784

query I rowsort
SELECT - 33 * + 94 + - 83
----
-3185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT - 81 + + SUM( - 74 ) * 70 DIV + + 51
----
-182

skipif mysql # not compatible
query I rowsort label-498
SELECT - 81 + + SUM ( - 74 ) * 70 / + + 51
----
-182

query I rowsort
SELECT - 98 * + + 97
----
-9506

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

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

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

query I rowsort
SELECT + NULLIF ( + + ( + 38 ), - + COALESCE ( + 11, + 34 / - 0, - 63 ) - + 47 + 12 * - + 7 )
----
38

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

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

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

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

query I rowsort
SELECT + 95 * + 6 + - + 43 col1
----
527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-506
SELECT DISTINCT + CAST( 25 AS SIGNED ) * - COUNT( * ) + - - 68 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT + CAST ( 25 AS INTEGER ) * - COUNT ( * ) + - - 68 AS col2
----
43

query I rowsort
SELECT ALL + 3 * + + 32 + - 66 AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT CASE 27 WHEN - 83 + - 44 THEN + + CAST( + ( COUNT( * ) ) AS SIGNED ) WHEN - 63 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT CASE 27 WHEN - 83 + - 44 THEN + + CAST ( + ( COUNT ( * ) ) AS INTEGER ) WHEN - 63 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 32 + + - NULLIF ( - 49, + 13 + - 37 ) AS col1
----
17

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

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT 44 * + + COUNT ( * ) AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-511
SELECT + 8 + - - 25 * - CAST( - COUNT( * ) AS SIGNED ) * - - 25 + - 69 AS col0
----
564

skipif mysql # not compatible
query I rowsort label-511
SELECT + 8 + - - 25 * - CAST ( - COUNT ( * ) AS INTEGER ) * - - 25 + - 69 AS col0
----
564

query I rowsort
SELECT ALL - 29 * + 69 * ( 20 ) + 2 + 33 * 50 - - 74 * + 19 AS col1
----
-36962

query I rowsort
SELECT + 11 - - - 89
----
-78

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

skipif mysql # not compatible
query I rowsort label-514
SELECT + CAST ( NULL AS INTEGER ) + - - 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-515
SELECT DISTINCT - 74 DIV - NULLIF ( - - 70, + 40 DIV + 18 + 95 ) + 57 * + NULLIF ( - COUNT( * ), 60 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - 74 / - NULLIF ( - - 70, + 40 / + 18 + 95 ) + 57 * + NULLIF ( - COUNT ( * ), 60 ) AS col1
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT + 51 * + MIN( ALL + 80 )
----
4080

skipif mysql # not compatible
query I rowsort label-517
SELECT + 51 * + MIN ( ALL + 80 )
----
4080

query I rowsort
SELECT - - ( + 27 ) - + 84 AS col1
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-519
SELECT + + 61 + - 29 col1, 63 DIV + - 48 + 56
----
32
55

skipif mysql # not compatible
query II rowsort label-519
SELECT + + 61 + - 29 col1, 63 / + - 48 + 56
----
32
55

query I rowsort
SELECT + 18 * + - 62
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT - 40 + 2 + - 70 * - 46 * COUNT( 32 ) * 34 * 97
----
10619522

skipif mysql # not compatible
query I rowsort label-521
SELECT - 40 + 2 + - 70 * - 46 * COUNT ( 32 ) * 34 * 97
----
10619522

query I rowsort
SELECT 36 * - 62
----
-2232

onlyif mysql # DIV for integer division: 
query I rowsort label-523
SELECT 39 + + - 71 + 80 - + 85 * 69 DIV + 54 + 84 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-523
SELECT 39 + + - 71 + 80 - + 85 * 69 / + 54 + 84 AS col1
----
24

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

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

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

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

query I rowsort
SELECT 55 + - 28 col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT 26 DIV - - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-527
SELECT 26 / - - 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT DISTINCT + 69 + 61 + - 88 * 91 + 42 * - - COUNT( * )
----
-7836

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT + 69 + 61 + - 88 * 91 + 42 * - - COUNT ( * )
----
-7836

onlyif mysql # aggregate syntax: 
query II rowsort label-529
SELECT + 31, + 72 + - 78 + - 67 + + MAX( ALL - - 64 ) AS col1
----
31
-9

skipif mysql # not compatible
query II rowsort label-529
SELECT + 31, + 72 + - 78 + - 67 + + MAX ( ALL - - 64 ) AS col1
----
31
-9

query I rowsort
SELECT ALL + 52 + - 98
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-531
SELECT DISTINCT - COUNT( * ), - 89 AS col0
----
-1
-89

skipif mysql # not compatible
query II rowsort label-531
SELECT DISTINCT - COUNT ( * ), - 89 AS col0
----
-1
-89

query I rowsort
SELECT DISTINCT + ( - - 74 ) + - + 68 AS col1
----
6

query II rowsort
SELECT 61 + - - 65 - 49, + 6 AS col2
----
77
6

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL - COALESCE ( - + CASE 42 WHEN - 58 THEN + 30 END, - + 25 + - CASE NULLIF ( + - 5, 45 / 50 + 46 + 0 * + 10 * + 73 ) WHEN - ( - - 13 ) THEN COUNT( ALL - - 93 ) * - COUNT( * ) END ) + + 53 + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL - COALESCE ( - + CASE 42 WHEN - 58 THEN + 30 END, - + 25 + - CASE NULLIF ( + - 5, 45 / 50 + 46 + 0 * + 10 * + 73 ) WHEN - ( - - 13 ) THEN COUNT ( ALL - - 93 ) * - COUNT ( * ) END ) + + 53 + + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ALL + 52 + + + 48 + SUM( ALL + 36 ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + 52 + + + 48 + SUM ( ALL + 36 ) AS col0
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-536
SELECT - 91 * 79 + + - 1 + ( + 2 ) * - MAX( + - 16 ) DIV - + 35 AS col0
----
-7190

skipif mysql # not compatible
query I rowsort label-536
SELECT - 91 * 79 + + - 1 + ( + 2 ) * - MAX ( + - 16 ) / - + 35 AS col0
----
-7190

query I rowsort
SELECT ALL - NULLIF ( + 37, 91 + + 22 ) col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-538
SELECT + 9 * - + 48 + + + 92 + COUNT( * ) + CASE - 12 WHEN AVG ( + 15 ) THEN + 83 WHEN + + 43 - + 10 THEN 81 ELSE ( - 22 ) END * + 47, 32 * + 81 + + - CASE + - 38 WHEN + SUM( DISTINCT - 71 ) THEN - - COUNT( * ) + 9 WHEN + - NULLIF ( + 67, ( 58 ) ) - - NULLIF ( - + 20, - 29 - - COALESCE ( - MIN( DISTINCT - 39 ), - 66 ) ) THEN NULL END / + 9 AS col0
----
-1373
NULL

skipif mysql # not compatible
query II rowsort label-538
SELECT + 9 * - + 48 + + + 92 + COUNT ( * ) + CASE - 12 WHEN AVG ( + 15 ) THEN + 83 WHEN + + 43 - + 10 THEN 81 ELSE ( - 22 ) END * + 47, 32 * + 81 + + - CASE + - 38 WHEN + SUM ( DISTINCT - 71 ) THEN - - COUNT ( * ) + 9 WHEN + - NULLIF ( + 67, ( 58 ) ) - - NULLIF ( - + 20, - 29 - - COALESCE ( - MIN ( DISTINCT - 39 ), - 66 ) ) THEN NULL END / + 9 AS col0
----
-1373
NULL

query I rowsort
SELECT 90 * + 16 col1
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-540
SELECT 30, - COUNT( 53 ) DIV + 94 AS col2
----
30
0

skipif mysql # not compatible
query II rowsort label-540
SELECT 30, - COUNT ( 53 ) / + 94 AS col2
----
30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT 96 + - - 54 + 56 * COUNT( 2 ) * + - 91 + + 86 + 77 AS col1
----
-4783

skipif mysql # not compatible
query I rowsort label-541
SELECT 96 + - - 54 + 56 * COUNT ( 2 ) * + - 91 + + 86 + 77 AS col1
----
-4783

query I rowsort
SELECT ALL 96 + + 70 AS col2
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT + + 17 * - + 42 + - 1 DIV + 21 AS col0
----
-714

skipif mysql # not compatible
query I rowsort label-543
SELECT + + 17 * - + 42 + - 1 / + 21 AS col0
----
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-544
SELECT DISTINCT - MIN( - - 89 ) * + COALESCE ( + 82, 28 * - ( 42 ), + - CASE - 2 WHEN - - 89 THEN - AVG ( DISTINCT + 99 ) DIV - 58 + 68 * - CAST( NULL AS SIGNED ) * - COUNT( * ) ELSE + 24 END ) * + 16 - - 87
----
-116681

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT - MIN ( - - 89 ) * + COALESCE ( + 82, 28 * - ( 42 ), + - CASE - 2 WHEN - - 89 THEN - AVG ( DISTINCT + 99 ) / - 58 + 68 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ELSE + 24 END ) * + 16 - - 87
----
-116681

query I rowsort
SELECT ALL - + 71 - - 38 AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-546
SELECT 66 + - ( CAST( NULL AS SIGNED ) ) AS col2, - 98 + - - 43 AS col0
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-546
SELECT 66 + - ( CAST ( NULL AS INTEGER ) ) AS col2, - 98 + - - 43 AS col0
----
NULL
-55

query I rowsort
SELECT 12 + 44 * - 77
----
-3376

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT DISTINCT + COALESCE ( + 96, + 92 ) DIV 88 DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT + COALESCE ( + 96, + 92 ) / 88 / COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 82 * - 8 AS col2
----
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT MIN( ALL + 81 ) * - 88 AS col2
----
-7128

skipif mysql # not compatible
query I rowsort label-551
SELECT MIN ( ALL + 81 ) * - 88 AS col2
----
-7128

query II rowsort
SELECT DISTINCT 30 * + 85 * - - 56 AS col0, - 18
----
142800
-18

query I rowsort
SELECT + 5 - + 98 AS col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-554
SELECT ALL 76 + + 72 * CAST( + 99 AS SIGNED ) - - 73
----
7277

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL 76 + + 72 * CAST ( + 99 AS INTEGER ) - - 73
----
7277

query I rowsort
SELECT 55 * + 87
----
4785

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT COALESCE ( - COUNT( * ), 33 ) * + 30 * + + 75 AS col2
----
-2250

skipif mysql # not compatible
query I rowsort label-556
SELECT COALESCE ( - COUNT ( * ), 33 ) * + 30 * + + 75 AS col2
----
-2250

query I rowsort
SELECT ALL 69 + + + 87
----
156

query II rowsort
SELECT 83 AS col1, 65 * - 32 AS col1
----
83
-2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-559
SELECT ALL 40 + + - NULLIF ( + 47, + + COALESCE ( + 44, - + ( - + COALESCE ( + 19, ( CASE + - 80 WHEN CAST( 60 AS SIGNED ) THEN - 98 END ) ) ) + + CASE 94 WHEN + 65 * - 9 + - 25 + - 95 * 53 THEN 44 ELSE + ( + 5 ) END ) ) AS col1, - COUNT( * ) * - + 91
----
-7
91

skipif mysql # not compatible
query II rowsort label-559
SELECT ALL 40 + + - NULLIF ( + 47, + + COALESCE ( + 44, - + ( - + COALESCE ( + 19, ( CASE + - 80 WHEN CAST ( 60 AS INTEGER ) THEN - 98 END ) ) ) + + CASE 94 WHEN + 65 * - 9 + - 25 + - 95 * 53 THEN 44 ELSE + ( + 5 ) END ) ) AS col1, - COUNT ( * ) * - + 91
----
-7
91

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

skipif mysql # not compatible
query II rowsort label-560
SELECT ALL - 16 AS col1, - COUNT ( * ) col1
----
-16
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT MAX( DISTINCT 63 )
----
63

skipif mysql # not compatible
query I rowsort label-561
SELECT MAX ( DISTINCT 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT + SUM( + 47 ) * - - 39 + - MAX( + - 93 )
----
1926

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT + SUM ( + 47 ) * - - 39 + - MAX ( + - 93 )
----
1926

query I rowsort
SELECT DISTINCT 12 * - 14 + 23
----
-145

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

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

query I rowsort
SELECT ALL - NULLIF ( 67, 28 ) AS col0
----
-67

query II rowsort
SELECT 86 * 92, 3 * - 37 AS col0
----
7912
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT DISTINCT 49 * COUNT( * ) + - 31
----
18

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT 49 * COUNT ( * ) + - 31
----
18

query II rowsort
SELECT + 53 AS col1, + ( - 37 ) col0
----
53
-37

onlyif mysql # aggregate syntax: 
query III rowsort label-569
SELECT ALL - COUNT( * ) AS col2, - 75, + 9 + + - 1 AS col2
----
-1
-75
8

skipif mysql # not compatible
query III rowsort label-569
SELECT ALL - COUNT ( * ) AS col2, - 75, + 9 + + - 1 AS col2
----
-1
-75
8

query I rowsort
SELECT ALL - 21 - - 39 AS col1
----
18

query I rowsort
SELECT 70 * + 19
----
1330

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT + 42 * + 77 + + COUNT( * ) * - + CAST( NULL AS SIGNED ) + + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT + 42 * + 77 + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + + 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-574
SELECT ALL - - COUNT( * ) AS col2, + 67, - 26 AS col0
----
1
67
-26

skipif mysql # not compatible
query III rowsort label-574
SELECT ALL - - COUNT ( * ) AS col2, + 67, - 26 AS col0
----
1
67
-26

query II rowsort
SELECT DISTINCT - 32 AS col0, + 47
----
-32
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-576
SELECT + 45, 48 * + + COUNT( * ) DIV - - 54 col2
----
45
0

skipif mysql # not compatible
query II rowsort label-576
SELECT + 45, 48 * + + COUNT ( * ) / - - 54 col2
----
45
0

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT - + 30 DIV - - 24 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-577
SELECT - + 30 / - - 24 AS col0
----
-1

query II rowsort
SELECT 35 AS col0, + 48 * - 88
----
35
-4224

onlyif mysql # DIV for integer division: 
query I rowsort label-579
SELECT ALL - 8 DIV 9
----
0

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL - 8 / 9
----
0

query II rowsort
SELECT - + 83 AS col0, - 92 AS col0
----
-83
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL - MAX( + 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL - MAX ( + 17 ) AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT - 48 * 75 DIV 48 * - 55 - + 14
----
4111

skipif mysql # not compatible
query I rowsort label-582
SELECT - 48 * 75 / 48 * - 55 - + 14
----
4111

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT - 0 DIV + - 10 * - 19
----
0

skipif mysql # not compatible
query I rowsort label-583
SELECT - 0 / + - 10 * - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT ALL - + CASE + + 3 WHEN COUNT( * ) THEN - 26 END / + 14 * - - 77 * + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - + CASE + + 3 WHEN COUNT ( * ) THEN - 26 END / + 14 * - - 77 * + + 90
----
NULL

query II rowsort
SELECT - 35 AS col2, 94 AS col1
----
-35
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT ALL + COUNT( DISTINCT + 41 ) * - CAST( NULL AS SIGNED ) * MAX( ALL 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL + COUNT ( DISTINCT + 41 ) * - CAST ( NULL AS INTEGER ) * MAX ( ALL 60 ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL SUM ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT ALL - - 89 + + - 57 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-590
SELECT - CAST( - 49 AS SIGNED ) + - 98 + - 83
----
-132

skipif mysql # not compatible
query I rowsort label-590
SELECT - CAST ( - 49 AS INTEGER ) + - 98 + - 83
----
-132

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

query I rowsort
SELECT ALL 33 + - 30 AS col0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-593
SELECT ALL 69 + - 63 + - 18 AS col1, - 59 DIV 13 * + 49 * + + 39 col0
----
-12
-7644

skipif mysql # not compatible
query II rowsort label-593
SELECT ALL 69 + - 63 + - 18 AS col1, - 59 / 13 * + 49 * + + 39 col0
----
-12
-7644

query I rowsort
SELECT ALL - ( - 14 ) * - 48
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT ALL + COUNT( * ) + + CASE - 16 WHEN - CASE 17 WHEN 1 - - - 48 + + 21 THEN NULL ELSE - + 60 END THEN NULL ELSE + - 54 * + + COUNT( * ) + + COUNT( * ) * CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL + COUNT ( * ) + + CASE - 16 WHEN - CASE 17 WHEN 1 - - - 48 + + 21 THEN NULL ELSE - + 60 END THEN NULL ELSE + - 54 * + + COUNT ( * ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-596
SELECT ALL 22 + + 83 + + 44 * + CAST( COALESCE ( - - 14, CASE + 49 WHEN - + ( - 66 ) - + + COALESCE ( + 95, + 27, + + 11 ) * 28 * + 36 THEN NULL WHEN AVG ( + 64 ) / + - 18 THEN - CAST( + COUNT( * ) AS SIGNED ) + - + 87 ELSE NULL END + - 22 ) AS SIGNED )
----
721

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL 22 + + 83 + + 44 * + CAST ( COALESCE ( - - 14, CASE + 49 WHEN - + ( - 66 ) - + + COALESCE ( + 95, + 27, + + 11 ) * 28 * + 36 THEN NULL WHEN AVG ( + 64 ) / + - 18 THEN - CAST ( + COUNT ( * ) AS INTEGER ) + - + 87 ELSE NULL END + - 22 ) AS INTEGER )
----
721

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT + 28 + - 7 DIV - 52 * - - 15 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-597
SELECT + 28 + - 7 / - 52 * - - 15 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - CASE 40 WHEN + + 61 - - COUNT( * ) + - - SUM( - + 55 ) THEN + + 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT - CASE 40 WHEN + + 61 - - COUNT ( * ) + - - SUM ( - + 55 ) THEN + + 73 END
----
NULL

query I rowsort
SELECT ALL 86 * 83
----
7138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-600
SELECT CAST( 81 AS SIGNED ) DIV + + 19 - + 56 + + 65
----
13

skipif mysql # not compatible
query I rowsort label-600
SELECT CAST ( 81 AS INTEGER ) / + + 19 - + 56 + + 65
----
13

query I rowsort
SELECT + 9 + - 49 * - 31
----
1528

query I rowsort
SELECT + CASE - - 21 WHEN + - ( + 56 ) * - 42 THEN + 6 / + 93 / - 70 END
----
NULL

query I rowsort
SELECT ALL 80 * - - 28 * + 19 * + 92 * - 93 AS col1
----
-364143360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-604
SELECT ( - 61 ) AS col0, - 90 DIV + MAX( DISTINCT + 69 )
----
-61
-1

skipif mysql # not compatible
query II rowsort label-604
SELECT ( - 61 ) AS col0, - 90 / + MAX ( DISTINCT + 69 )
----
-61
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-605
SELECT NULLIF ( + 4, COUNT( * ) ) * - 99 + 71, COUNT( * ) * + ( + 50 ) - COUNT( * ) * 37 DIV - CAST( - - 40 AS SIGNED ) + + 10 col1
----
-325
60

skipif mysql # not compatible
query II rowsort label-605
SELECT NULLIF ( + 4, COUNT ( * ) ) * - 99 + 71, COUNT ( * ) * + ( + 50 ) - COUNT ( * ) * 37 / - CAST ( - - 40 AS INTEGER ) + + 10 col1
----
-325
60

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT + MIN( DISTINCT + ( - 79 ) ) * + - 85 * - 37
----
-248455

skipif mysql # not compatible
query I rowsort label-606
SELECT + MIN ( DISTINCT + ( - 79 ) ) * + - 85 * - 37
----
-248455

query I rowsort
SELECT ALL 67 * - 61
----
-4087

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT DISTINCT 14 * - 66 * - - MIN( DISTINCT 91 ) - + 70 AS col0
----
-84154

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT 14 * - 66 * - - MIN ( DISTINCT 91 ) - + 70 AS col0
----
-84154

query I rowsort
SELECT + 55 + + + 20 + + 40
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL 88 * - 33 - + - COUNT( * ) AS col1
----
-2903

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL 88 * - 33 - + - COUNT ( * ) AS col1
----
-2903

onlyif mysql # aggregate syntax: 
query II rowsort label-611
SELECT + 35 * 97 col1, - COUNT( * ) AS col0
----
3395
-1

skipif mysql # not compatible
query II rowsort label-611
SELECT + 35 * 97 col1, - COUNT ( * ) AS col0
----
3395
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-612
SELECT + MIN( - 43 ) AS col1, 26 AS col0
----
-43
26

skipif mysql # not compatible
query II rowsort label-612
SELECT + MIN ( - 43 ) AS col1, 26 AS col0
----
-43
26

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT + 48 - + SUM( + 51 )
----
-3

skipif mysql # not compatible
query I rowsort label-613
SELECT + 48 - + SUM ( + 51 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-614
SELECT ALL - - 42 * - 38 * + + 94 * + ( - CAST( + 62 AS SIGNED ) )
----
9301488

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - - 42 * - 38 * + + 94 * + ( - CAST ( + 62 AS INTEGER ) )
----
9301488

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT + + MAX( DISTINCT - + 52 ) * - - COUNT( * ) + + 92 col1
----
40

skipif mysql # not compatible
query I rowsort label-615
SELECT + + MAX ( DISTINCT - + 52 ) * - - COUNT ( * ) + + 92 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT - - MAX( + ( - 22 ) ) + + 64
----
42

skipif mysql # not compatible
query I rowsort label-616
SELECT - - MAX ( + ( - 22 ) ) + + 64
----
42

query I rowsort
SELECT DISTINCT - 46 * + + 88 + 92
----
-3956

query I rowsort
SELECT - 7 * + 33 * - 46 AS col1
----
10626

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL - - 51 * 79 + + - ( - SUM( ALL - 37 ) ) * - + COUNT( * ) AS col2
----
4066

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL - - 51 * 79 + + - ( - SUM ( ALL - 37 ) ) * - + COUNT ( * ) AS col2
----
4066

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT ALL + COALESCE ( + 54, - - 6 * - 92 - COUNT( * ) + + COUNT( ALL - COALESCE ( 76, - 62 ) ) - + 14 DIV 90 )
----
54

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + COALESCE ( + 54, - - 6 * - 92 - COUNT ( * ) + + COUNT ( ALL - COALESCE ( 76, - 62 ) ) - + 14 / 90 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL 29 * - COUNT( * ) - + 71 + 49
----
-51

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL 29 * - COUNT ( * ) - + 71 + 49
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-622
SELECT ALL - 0 * - + CAST( NULL AS DECIMAL ) + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL - 0 * - + CAST ( NULL AS REAL ) + - 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-623
SELECT COALESCE ( CAST( 32 AS SIGNED ), - 35 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-623
SELECT COALESCE ( CAST ( 32 AS INTEGER ), - 35 ) AS col0
----
32

query I rowsort
SELECT - - 66 + + 40 * 50
----
2066

query I rowsort
SELECT ALL - 61 + - 69
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-626
SELECT CASE 26 WHEN + CAST( - - 24 AS SIGNED ) THEN + MAX( DISTINCT ( - 5 ) ) WHEN - - MAX( + ( + 47 ) ) * + 6 + + + 94 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-626
SELECT CASE 26 WHEN + CAST ( - - 24 AS INTEGER ) THEN + MAX ( DISTINCT ( - 5 ) ) WHEN - - MAX ( + ( + 47 ) ) * + 6 + + + 94 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-627
SELECT DISTINCT 81 + - + 1 + COALESCE ( + + 79, + 91 DIV + + NULLIF ( + 55, + - 79 ) + 15 - - CAST( NULL AS SIGNED ) ) DIV - 62
----
79

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT 81 + - + 1 + COALESCE ( + + 79, + 91 / + + NULLIF ( + 55, + - 79 ) + 15 - - CAST ( NULL AS INTEGER ) ) / - 62
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT - SUM( 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-628
SELECT - SUM ( 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT DISTINCT ( ( + ( - MIN( ALL - 97 ) ) ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT ( ( + ( - MIN ( ALL - 97 ) ) ) ) AS col2
----
97

query I rowsort
SELECT ALL - 48 * + ( 35 ) AS col1
----
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-631
SELECT ALL CAST( 23 AS SIGNED ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL CAST ( 23 AS INTEGER ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-632
SELECT + MIN( DISTINCT - - 94 ) * - - 11 * - 6 AS col0, 99
----
-6204
99

skipif mysql # not compatible
query II rowsort label-632
SELECT + MIN ( DISTINCT - - 94 ) * - - 11 * - 6 AS col0, 99
----
-6204
99

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT + MIN( ALL - 6 ) + + ( - + 43 )
----
-49

skipif mysql # not compatible
query I rowsort label-633
SELECT + MIN ( ALL - 6 ) + + ( - + 43 )
----
-49

query II rowsort
SELECT 46 AS col0, - 26
----
46
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT DISTINCT CAST( 32 AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT CAST ( 32 AS INTEGER ) AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-636
SELECT ALL + NULLIF ( NULLIF ( - + 37, 43 + - + 88 + + MAX( - 79 ) DIV + 54 ), + 38 + + CAST( + 4 AS SIGNED ) ) col0, COALESCE ( + 96, + - 40 DIV + 13 + 29 ) + + 63
----
-37
159

skipif mysql # not compatible
query II rowsort label-636
SELECT ALL + NULLIF ( NULLIF ( - + 37, 43 + - + 88 + + MAX ( - 79 ) / + 54 ), + 38 + + CAST ( + 4 AS INTEGER ) ) col0, COALESCE ( + 96, + - 40 / + 13 + 29 ) + + 63
----
-37
159

query I rowsort
SELECT + 14 - + 46 + + - 13 + - 77
----
-122

query I rowsort
SELECT DISTINCT + COALESCE ( - - 63, + - 98 ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-639
SELECT + 8 DIV COUNT( + 0 ) * + - 12 DIV + - COUNT( * ) col0
----
96

skipif mysql # not compatible
query I rowsort label-639
SELECT + 8 / COUNT ( + 0 ) * + - 12 / + - COUNT ( * ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL 14 / + CASE - 91 WHEN + ( - - 3 ) THEN MIN( 58 ) END * - COUNT( * ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL 14 / + CASE - 91 WHEN + ( - - 3 ) THEN MIN ( 58 ) END * - COUNT ( * ) * + 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-641
SELECT - COUNT( * ) DIV - COALESCE ( - 20, 50 ) + - 82
----
-82

skipif mysql # not compatible
query I rowsort label-641
SELECT - COUNT ( * ) / - COALESCE ( - 20, 50 ) + - 82
----
-82

query I rowsort
SELECT DISTINCT 81 * + 35 - + 53
----
2782

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL - ( + - 50 ) * - - MIN( 77 ) - + + 89 + 73
----
3834

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - ( + - 50 ) * - - MIN ( 77 ) - + + 89 + 73
----
3834

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

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

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

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

query I rowsort
SELECT ALL 8 + + - 93 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-647
SELECT COUNT( * ), + CASE - + 35 WHEN - + 91 THEN 62 * - - 99 * - 49 - 32 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-647
SELECT COUNT ( * ), + CASE - + 35 WHEN - + 91 THEN 62 * - - 99 * - 49 - 32 END AS col2
----
1
NULL

query I rowsort
SELECT DISTINCT 47 * - 93 * 81 + - 59 col2
----
-354110

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL - - MIN( 89 )
----
89

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - - MIN ( 89 )
----
89

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

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

query I rowsort
SELECT DISTINCT + 25 + + - 88 AS col2
----
-63

query I rowsort
SELECT 89 * 11
----
979

query I rowsort
SELECT ALL - 56 + + 65 * - + 75 * - 82 AS col0
----
399694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-654
SELECT COALESCE ( - 69, 95, - + 68 + + + 87 DIV + 14 * - COUNT( * ), - - 46 )
----
-69

skipif mysql # not compatible
query I rowsort label-654
SELECT COALESCE ( - 69, 95, - + 68 + + + 87 / + 14 * - COUNT ( * ), - - 46 )
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-655
SELECT ALL + ( - 29 ) + + + 42, - 3 / + CAST( NULL AS DECIMAL ) AS col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-655
SELECT ALL + ( - 29 ) + + + 42, - 3 / + CAST ( NULL AS REAL ) AS col0
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT + 41 * - - 46 * + COUNT( * )
----
1886

skipif mysql # not compatible
query I rowsort label-656
SELECT + 41 * - - 46 * + COUNT ( * )
----
1886

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

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

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

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

query II rowsort
SELECT DISTINCT + 33, + 80 AS col1
----
33
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-660
SELECT ALL + - 22 * - - 96 * + 56 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + - 22 * - - 96 * + 56 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 25 * + 20 AS col0
----
500

query I rowsort
SELECT 71 * 9
----
639

query I rowsort
SELECT 45 + + - 26 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-664
SELECT 80 - + 20 DIV MIN( - 28 )
----
80

skipif mysql # not compatible
query I rowsort label-664
SELECT 80 - + 20 / MIN ( - 28 )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-665
SELECT SUM( + 33 ) + + COUNT( * ) * + 43, 16 AS col0
----
76
16

skipif mysql # not compatible
query II rowsort label-665
SELECT SUM ( + 33 ) + + COUNT ( * ) * + 43, 16 AS col0
----
76
16

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ALL + 89 - - + NULLIF ( + 19, 56 * + COUNT( * ) ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL + 89 - - + NULLIF ( + 19, 56 * + COUNT ( * ) ) AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-667
SELECT ALL + 62 * + NULLIF ( 91, - MIN( DISTINCT 91 ) + + + CAST( NULL AS DECIMAL ) ) * + 17
----
95914

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL + 62 * + NULLIF ( 91, - MIN ( DISTINCT 91 ) + + + CAST ( NULL AS REAL ) ) * + 17
----
95914

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT ALL + 89 DIV 21
----
4

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + 89 / 21
----
4

query I rowsort
SELECT 86 * - 55 col1
----
-4730

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT 96 * + SUM( ALL - 1 )
----
-96

skipif mysql # not compatible
query I rowsort label-670
SELECT 96 * + SUM ( ALL - 1 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT 99 + + + 64 / - CASE + + ( + COUNT( * ) ) WHEN + SUM( - 97 ) THEN - + 89 * - COALESCE ( + COUNT( + 14 ), - + COUNT( * ), + CASE - - 40 WHEN - 65 THEN + 95 ELSE NULL END, + + 55 ) + + - MIN( DISTINCT + ( - 6 ) ) END * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-671
SELECT 99 + + + 64 / - CASE + + ( + COUNT ( * ) ) WHEN + SUM ( - 97 ) THEN - + 89 * - COALESCE ( + COUNT ( + 14 ), - + COUNT ( * ), + CASE - - 40 WHEN - 65 THEN + 95 ELSE NULL END, + + 55 ) + + - MIN ( DISTINCT + ( - 6 ) ) END * 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT 76 + - - 93, COUNT( * ) AS col2
----
169
1

skipif mysql # not compatible
query II rowsort label-672
SELECT 76 + - - 93, COUNT ( * ) AS col2
----
169
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-673
SELECT COUNT( * ) + - - MAX( ALL 4 ) + - 61 + - ( + CAST( 74 AS SIGNED ) ) * 20 + 58 AS col0
----
-1478

skipif mysql # not compatible
query I rowsort label-673
SELECT COUNT ( * ) + - - MAX ( ALL 4 ) + - 61 + - ( + CAST ( 74 AS INTEGER ) ) * 20 + 58 AS col0
----
-1478

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-674
SELECT 86 * + 37, CAST( + 51 AS SIGNED ) AS col0
----
3182
51

skipif mysql # not compatible
query II rowsort label-674
SELECT 86 * + 37, CAST ( + 51 AS INTEGER ) AS col0
----
3182
51

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT NULLIF ( SUM( - 58 ), + COUNT( * ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-675
SELECT NULLIF ( SUM ( - 58 ), + COUNT ( * ) ) AS col1
----
-58

query I rowsort
SELECT ALL 78 + + ( 18 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT ALL 92 + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL 92 + - COUNT ( * )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-678
SELECT - + 71 / CAST( NULL AS SIGNED ) + + + AVG ( + 25 ) * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT - + 71 / CAST ( NULL AS INTEGER ) + + + AVG ( + 25 ) * + 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-679
SELECT DISTINCT + - 33 + + 55 + + - 10 + - 66 * - - MAX( + 33 ) + + + 83 * + + CAST( - 31 AS SIGNED ) col1, + COUNT( * )
----
-4739
1

skipif mysql # not compatible
query II rowsort label-679
SELECT DISTINCT + - 33 + + 55 + + - 10 + - 66 * - - MAX ( + 33 ) + + + 83 * + + CAST ( - 31 AS INTEGER ) col1, + COUNT ( * )
----
-4739
1

query I rowsort
SELECT DISTINCT + 18 + + - 93 + - - 4 AS col1
----
-71

query I rowsort
SELECT ALL + 96 * - 40 * - 92 AS col1
----
353280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-682
SELECT - 53 * + + 74 + + 26 + - CAST( - 38 AS SIGNED ) + + 2 * - COUNT( * ) AS col0, - 93 * - 86
----
-3860
7998

skipif mysql # not compatible
query II rowsort label-682
SELECT - 53 * + + 74 + + 26 + - CAST ( - 38 AS INTEGER ) + + 2 * - COUNT ( * ) AS col0, - 93 * - 86
----
-3860
7998

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-684
SELECT ALL + CAST( NULL AS DECIMAL ) * 67 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + CAST ( NULL AS REAL ) * 67 * - 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-685
SELECT + - 70 * - - 15 / - 87 + + - 89 + + - 54 * - - CAST( NULL AS SIGNED ) * 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-685
SELECT + - 70 * - - 15 / - 87 + + - 89 + + - 54 * - - CAST ( NULL AS INTEGER ) * 8 col1
----
NULL

query I rowsort
SELECT DISTINCT + 3 * + 12
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL ( - SUM( ALL - 41 ) ) + 12
----
53

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL ( - SUM ( ALL - 41 ) ) + 12
----
53

query I rowsort
SELECT - 82 * + + 28 AS col1
----
-2296

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT + 91 DIV + + 15
----
6

skipif mysql # not compatible
query I rowsort label-689
SELECT + 91 / + + 15
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL + 59 - 82 * + COALESCE ( - 2, + + COUNT( * ), + + ( 20 ) ) * - + 41
----
-6665

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL + 59 - 82 * + COALESCE ( - 2, + + COUNT ( * ), + + ( 20 ) ) * - + 41
----
-6665

query II rowsort
SELECT ALL 65 * 37 * - - 41 * - 90, + 55 col0
----
-8874450
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-692
SELECT - CASE - 87 WHEN - - 8 * - 68 + + - 2 + + 26 * - + 38 + + ( + - MAX( - 8 ) ) / - 50 + + + 28 / + - NULLIF ( - 12, - - 0 ) THEN + 97 WHEN + CAST( NULL AS SIGNED ) * + - ( - ( - MAX( - - 64 ) ) ) * + 82 * COUNT( * ) + 9 + 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT - CASE - 87 WHEN - - 8 * - 68 + + - 2 + + 26 * - + 38 + + ( + - MAX ( - 8 ) ) / - 50 + + + 28 / + - NULLIF ( - 12, - - 0 ) THEN + 97 WHEN + CAST ( NULL AS INTEGER ) * + - ( - ( - MAX ( - - 64 ) ) ) * + 82 * COUNT ( * ) + 9 + 48 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-693
SELECT ALL - SUM( + 4 ) - + 34 * + 43 AS col0, + MIN( + + 93 )
----
-1466
93

skipif mysql # not compatible
query II rowsort label-693
SELECT ALL - SUM ( + 4 ) - + 34 * + 43 AS col0, + MIN ( + + 93 )
----
-1466
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-694
SELECT DISTINCT - 97 AS col1, CAST( NULL AS SIGNED )
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-694
SELECT DISTINCT - 97 AS col1, CAST ( NULL AS INTEGER )
----
-97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-695
SELECT COUNT( * ) * - + 27 * - 9 AS col2, - 47 * + 70
----
243
-3290

skipif mysql # not compatible
query II rowsort label-695
SELECT COUNT ( * ) * - + 27 * - 9 AS col2, - 47 * + 70
----
243
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT - SUM( DISTINCT 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-696
SELECT - SUM ( DISTINCT 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT 76, 83 * + - COUNT( DISTINCT + 16 ) AS col2
----
76
-83

skipif mysql # not compatible
query II rowsort label-697
SELECT 76, 83 * + - COUNT ( DISTINCT + 16 ) AS col2
----
76
-83

query I rowsort
SELECT ALL 57 * - 61 AS col0
----
-3477

query I rowsort
SELECT DISTINCT 3 * 33
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL SUM( 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL SUM ( 11 ) AS col1
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT + 79 + + + MAX( - 59 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-702
SELECT + 79 + + + MAX ( - 59 ) AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-703
SELECT + 96 DIV 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-703
SELECT + 96 / 59 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT DISTINCT - 40 DIV + 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT - 40 / + 28 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-705
SELECT ALL - + ( - - MIN( DISTINCT + 18 ) ) + - - 61 + + 69 * 12 AS col0, - 5 AS col1
----
871
-5

skipif mysql # not compatible
query II rowsort label-705
SELECT ALL - + ( - - MIN ( DISTINCT + 18 ) ) + - - 61 + + 69 * 12 AS col0, - 5 AS col1
----
871
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-706
SELECT NULLIF ( + + 13, - - NULLIF ( + 82, + CAST( 96 AS SIGNED ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-706
SELECT NULLIF ( + + 13, - - NULLIF ( + 82, + CAST ( 96 AS INTEGER ) ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL + 17 + - COUNT( - 4 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + 17 + - COUNT ( - 4 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT - + 11 - + ( - MIN( ALL 54 ) )
----
43

skipif mysql # not compatible
query I rowsort label-708
SELECT - + 11 - + ( - MIN ( ALL 54 ) )
----
43

query I rowsort
SELECT ALL + + ( + 8 ) col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT - + CASE + + ( + COUNT( * ) ) WHEN 27 * 30 * + COUNT( * ) - - 52 THEN NULL WHEN + - 40 * - + 64 + - COUNT( * ) + + 27 * + 43 THEN NULL WHEN - - 59 + + AVG ( + 46 ) + - 96 * 14 THEN - 71 END * + 95 * CASE - - ( ( 31 ) ) WHEN + 83 THEN + 82 / - - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT - + CASE + + ( + COUNT ( * ) ) WHEN 27 * 30 * + COUNT ( * ) - - 52 THEN NULL WHEN + - 40 * - + 64 + - COUNT ( * ) + + 27 * + 43 THEN NULL WHEN - - 59 + + AVG ( + 46 ) + - 96 * 14 THEN - 71 END * + 95 * CASE - - ( ( 31 ) ) WHEN + 83 THEN + 82 / - - 75 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-711
SELECT DISTINCT - 52 * - 74 + - 29 * - + 65 + + + 44 + + + 37 * + CAST( + - 91 AS SIGNED ) - 46 + - 21 + - 40 + COALESCE ( 28, + 94 ) - - 91 * + CAST( NULL AS DECIMAL ) * + 43 * + 50 * 12 + - COUNT( * ) AS col1, 96
----
NULL
96

skipif mysql # not compatible
query II rowsort label-711
SELECT DISTINCT - 52 * - 74 + - 29 * - + 65 + + + 44 + + + 37 * + CAST ( + - 91 AS INTEGER ) - 46 + - 21 + - 40 + COALESCE ( 28, + 94 ) - - 91 * + CAST ( NULL AS REAL ) * + 43 * + 50 * 12 + - COUNT ( * ) AS col1, 96
----
NULL
96

query I rowsort
SELECT + NULLIF ( - 11, 98 )
----
-11

query I rowsort
SELECT ALL - 45 * - 38 * - 30 + - 72
----
-51372

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL + COUNT( * ) * + 24 + - 84 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + COUNT ( * ) * + 24 + - 84 AS col1
----
-60

query I rowsort
SELECT - 47 * - - 81 + - - ( + 89 ) AS col0
----
-3718

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT 76 DIV - 71 + + - 97 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-716
SELECT 76 / - 71 + + - 97 AS col0
----
-98

query I rowsort
SELECT DISTINCT + + 80 * + 99
----
7920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-718
SELECT + - ( + - 98 ) DIV 71 + + SUM( + 91 ) - SUM( + 92 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-718
SELECT + - ( + - 98 ) / 71 + + SUM ( + 91 ) - SUM ( + 92 ) AS col0
----
0

query II rowsort
SELECT ALL + 39 AS col1, 4 AS col1
----
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT DISTINCT 80 * - 19 - - COUNT( * ) - 25
----
-1544

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT 80 * - 19 - - COUNT ( * ) - 25
----
-1544

query I rowsort
SELECT ALL + ( - 5 ) AS col0
----
-5

query I rowsort
SELECT - 42 + + 12 col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-723
SELECT + - 1 * + - ( + 61 ) + - 12 + 35 + + + 84 * + 34 * CAST( - 93 AS SIGNED ) * - 24 * - 0 + - 35 - 91
----
-42

skipif mysql # not compatible
query I rowsort label-723
SELECT + - 1 * + - ( + 61 ) + - 12 + 35 + + + 84 * + 34 * CAST ( - 93 AS INTEGER ) * - 24 * - 0 + - 35 - 91
----
-42

query I rowsort
SELECT - 93 + + + 87
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-725
SELECT ALL 48 * - 33 - 29 + - + 13 * + + CASE + + 69 WHEN - + 71 THEN - - 91 + 31 + + - 13 + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) * - - 32 / - + 23 END * - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL 48 * - 33 - 29 + - + 13 * + + CASE + + 69 WHEN - + 71 THEN - - 91 + 31 + + - 13 + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) * - - 32 / - + 23 END * - - 24
----
NULL

query II rowsort
SELECT ALL + 19 AS col0, - 57 AS col0
----
19
-57

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

skipif mysql # not compatible
query I rowsort label-727
SELECT SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-728
SELECT - 45 * 87 * + 48 * + 91 AS col0, + 50 * + + MAX( ALL - 54 ) AS col2
----
-17100720
-2700

skipif mysql # not compatible
query II rowsort label-728
SELECT - 45 * 87 * + 48 * + 91 AS col0, + 50 * + + MAX ( ALL - 54 ) AS col2
----
-17100720
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-729
SELECT COALESCE ( - 15, - + 17 DIV - + 4 * 80 DIV - - MIN( + - 13 ) + + CAST( NULL AS SIGNED ), + 12 * - - NULLIF ( - 41, - CAST( NULL AS DECIMAL ) ) * + + 26 ) * + 49 * + - 79 + MAX( 7 ) AS col2
----
58072

skipif mysql # not compatible
query I rowsort label-729
SELECT COALESCE ( - 15, - + 17 / - + 4 * 80 / - - MIN ( + - 13 ) + + CAST ( NULL AS INTEGER ), + 12 * - - NULLIF ( - 41, - CAST ( NULL AS REAL ) ) * + + 26 ) * + 49 * + - 79 + MAX ( 7 ) AS col2
----
58072

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

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

query I rowsort
SELECT ALL - 71 * + + 71 * + 39
----
-196599

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT ALL 9 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL 9 / 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-733
SELECT 56, CASE - - 77 WHEN - 83 * + - 3 * - - 16 - - COUNT( 22 ) * + 25 THEN 45 WHEN + 58 THEN 39 END / + + 20 + - CAST( + + 80 AS SIGNED ) * - COALESCE ( 44, + + CAST( - COUNT( * ) AS SIGNED ) ) * - - 17 AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-733
SELECT 56, CASE - - 77 WHEN - 83 * + - 3 * - - 16 - - COUNT ( 22 ) * + 25 THEN 45 WHEN + 58 THEN 39 END / + + 20 + - CAST ( + + 80 AS INTEGER ) * - COALESCE ( 44, + + CAST ( - COUNT ( * ) AS INTEGER ) ) * - - 17 AS col0
----
56
NULL

query I rowsort
SELECT + 85 + 99 + - 72 AS col0
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-735
SELECT 61, + COUNT( * ) + - CASE - 62 WHEN 32 - - COUNT( * ) THEN + 22 * - COUNT( * ) * + 47 + + 72 END + - - 17 AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-735
SELECT 61, + COUNT ( * ) + - CASE - 62 WHEN 32 - - COUNT ( * ) THEN + 22 * - COUNT ( * ) * + 47 + + 72 END + - - 17 AS col0
----
61
NULL

query I rowsort
SELECT DISTINCT 85 + 46 + + 78 + + - 9 * - 98 AS col2
----
1091

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

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL COUNT ( * ) + - - 9 AS col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-738
SELECT + 49 + - COUNT( ALL 80 ) * - 33, - 41 col0
----
82
-41

skipif mysql # not compatible
query II rowsort label-738
SELECT + 49 + - COUNT ( ALL 80 ) * - 33, - 41 col0
----
82
-41

query I rowsort
SELECT ALL 14 + + - 38 * + 3 + - + 42 col1
----
-142

query I rowsort
SELECT + - 40 + + + 26
----
-14

query I rowsort
SELECT ALL - 29 * - + 88
----
2552

query II rowsort
SELECT 21 col1, 65
----
21
65

query I rowsort
SELECT + + 63 + - 86
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-744
SELECT DISTINCT + 47 AS col1, ( - NULLIF ( SUM( DISTINCT - - NULLIF ( + 85, - + 98 ) ), 34 ) )
----
47
-85

skipif mysql # not compatible
query II rowsort label-744
SELECT DISTINCT + 47 AS col1, ( - NULLIF ( SUM ( DISTINCT - - NULLIF ( + 85, - + 98 ) ), 34 ) )
----
47
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT ALL - - 90 DIV - - 40 + + 40 * - 10 * 45 AS col1
----
-17998

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL - - 90 / - - 40 + + 40 * - 10 * 45 AS col1
----
-17998

query II rowsort
SELECT DISTINCT + 26, - 97 AS col0
----
26
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-747
SELECT - + 64 DIV NULLIF ( + 14, + - 59 ) + 67 * + 65, - 12 AS col0
----
4351
-12

skipif mysql # not compatible
query II rowsort label-747
SELECT - + 64 / NULLIF ( + 14, + - 59 ) + 67 * + 65, - 12 AS col0
----
4351
-12

query I rowsort
SELECT ALL - - 15 * - + 25
----
-375

query I rowsort
SELECT - 73 + + 94 AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-750
SELECT ALL - COUNT( * ) DIV + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - COUNT ( * ) / + 7 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-751
SELECT ALL + COUNT( * ) DIV 7 - - COUNT( * ) * - 43 * 61 AS col2
----
-2623

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL + COUNT ( * ) / 7 - - COUNT ( * ) * - 43 * 61 AS col2
----
-2623

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT + SUM( 17 )
----
17

skipif mysql # not compatible
query I rowsort label-752
SELECT + SUM ( 17 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-753
SELECT + - 36, COUNT( DISTINCT 57 ) AS col1
----
-36
1

skipif mysql # not compatible
query II rowsort label-753
SELECT + - 36, COUNT ( DISTINCT 57 ) AS col1
----
-36
1

query I rowsort
SELECT + - 39 * - 66 + 89
----
2663

query I rowsort
SELECT ALL - - 36 * - 83 * ( - 94 ) AS col1
----
280872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT ( CAST( NULL AS SIGNED ) ) / + - COUNT( * ) + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT ( CAST ( NULL AS INTEGER ) ) / + - COUNT ( * ) + + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT - 22 * + CASE + COALESCE ( 26, - 89, - + 17 * + - 32 / - - 19 ) WHEN COUNT( * ) THEN + + 11 END * - + 28 + - - 91 * NULLIF ( 19, + - 57 / + 76 - + 17 * + NULLIF ( 32, - 93 ) ) + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT - 22 * + CASE + COALESCE ( 26, - 89, - + 17 * + - 32 / - - 19 ) WHEN COUNT ( * ) THEN + + 11 END * - + 28 + - - 91 * NULLIF ( 19, + - 57 / + 76 - + 17 * + NULLIF ( 32, - 93 ) ) + - 97 AS col2
----
NULL

query I rowsort
SELECT 70 * + 36
----
2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-759
SELECT DISTINCT - 58 DIV + - COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT - 58 / + - COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ALL + COUNT( * ) + - - 21 col2
----
22

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + COUNT ( * ) + - - 21 col2
----
22

query I rowsort
SELECT ALL 67 + + 6 AS col1
----
73

query I rowsort
SELECT 5 - - - 60
----
-55

query I rowsort
SELECT ALL + 41 * - 86 * + + 61
----
-215086

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT DISTINCT - MIN( ALL + 98 ) + + + 54
----
-44

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT - MIN ( ALL + 98 ) + + + 54
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-765
SELECT DISTINCT - CASE 22 WHEN + 0 * + NULLIF ( - - 31, + COUNT( * ) ) - 92 + 25 + 60 THEN - MIN( 81 ) ELSE - 1 + + - CAST( NULL AS SIGNED ) + + ( + 50 ) + - + COALESCE ( + 76, + + 73 * + - CAST( - 64 AS SIGNED ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT - CASE 22 WHEN + 0 * + NULLIF ( - - 31, + COUNT ( * ) ) - 92 + 25 + 60 THEN - MIN ( 81 ) ELSE - 1 + + - CAST ( NULL AS INTEGER ) + + ( + 50 ) + - + COALESCE ( + 76, + + 73 * + - CAST ( - 64 AS INTEGER ) ) END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-766
SELECT - COALESCE ( - - 65, 25 DIV + COUNT( * ) * - 25 )
----
-65

skipif mysql # not compatible
query I rowsort label-766
SELECT - COALESCE ( - - 65, 25 / + COUNT ( * ) * - 25 )
----
-65

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

skipif mysql # not compatible
query I rowsort label-767
SELECT 13 + + + COUNT ( * ) * - 35 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-768
SELECT + MAX( DISTINCT - 54 ) * - CAST( + SUM( ALL + 46 ) AS SIGNED ) * - 94 + 94 + + MIN( - 17 ) DIV - 2 + + 8 + + COALESCE ( + + 3, + 91 * - ( - 11 ) + - CASE + COUNT( DISTINCT 53 ) WHEN - + 97 THEN NULL WHEN + - CAST( NULL AS SIGNED ) * + - 37 + + 1 THEN - - 19 + COUNT( * ) END - 19, 75 + - 59 + 96 ) AS col2
----
-233383

skipif mysql # not compatible
query I rowsort label-768
SELECT + MAX ( DISTINCT - 54 ) * - CAST ( + SUM ( ALL + 46 ) AS INTEGER ) * - 94 + 94 + + MIN ( - 17 ) / - 2 + + 8 + + COALESCE ( + + 3, + 91 * - ( - 11 ) + - CASE + COUNT ( DISTINCT 53 ) WHEN - + 97 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) * + - 37 + + 1 THEN - - 19 + COUNT ( * ) END - 19, 75 + - 59 + 96 ) AS col2
----
-233383

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-770
SELECT + CAST( + COALESCE ( - - 27, + - CASE + - ( + COUNT( * ) ) WHEN - + 27 * + COALESCE ( - + 75, - + CASE COUNT( * ) WHEN - 2 THEN NULL WHEN + ( + 23 ) THEN NULL ELSE + - 7 * - ( - 91 ) * - + 65 + ( - 2 ) END, 30 ) * MIN( DISTINCT + + 5 ) + - 64 + - COUNT( * ) - + 30 + + - 31 * + ( - 67 ) / 66 THEN - ( + + 68 ) + - + 26 WHEN COUNT( * ) * + ( - + 39 ) + NULLIF ( + 39, 7 + + + 51 ) + + + 14 - - 1 * 92 THEN NULL END ) AS SIGNED ) + 69 - - SUM( + - 10 ) + + 51 + + 24 * 99
----
2513

skipif mysql # not compatible
query I rowsort label-770
SELECT + CAST ( + COALESCE ( - - 27, + - CASE + - ( + COUNT ( * ) ) WHEN - + 27 * + COALESCE ( - + 75, - + CASE COUNT ( * ) WHEN - 2 THEN NULL WHEN + ( + 23 ) THEN NULL ELSE + - 7 * - ( - 91 ) * - + 65 + ( - 2 ) END, 30 ) * MIN ( DISTINCT + + 5 ) + - 64 + - COUNT ( * ) - + 30 + + - 31 * + ( - 67 ) / 66 THEN - ( + + 68 ) + - + 26 WHEN COUNT ( * ) * + ( - + 39 ) + NULLIF ( + 39, 7 + + + 51 ) + + + 14 - - 1 * 92 THEN NULL END ) AS INTEGER ) + 69 - - SUM ( + - 10 ) + + 51 + + 24 * 99
----
2513

query I rowsort
SELECT ALL - 48 - - 76
----
28

onlyif mysql # aggregate syntax: 
query III rowsort label-772
SELECT + 35 * + + 2 AS col1, COUNT( * ) + + 4 * - 95, + + NULLIF ( 80, - 62 * - 63 - - MAX( DISTINCT + + 98 ) ) - + 62 AS col1
----
70
-379
18

skipif mysql # not compatible
query III rowsort label-772
SELECT + 35 * + + 2 AS col1, COUNT ( * ) + + 4 * - 95, + + NULLIF ( 80, - 62 * - 63 - - MAX ( DISTINCT + + 98 ) ) - + 62 AS col1
----
70
-379
18

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL 74 * + - SUM( ALL + + 10 )
----
-740

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL 74 * + - SUM ( ALL + + 10 )
----
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT 82 + - + COUNT( * ) * - 33 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-774
SELECT 82 + - + COUNT ( * ) * - 33 AS col1
----
115

query I rowsort
SELECT ALL ( + - 75 ) * - NULLIF ( + - 30, - 41 ) AS col0
----
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + + ( CASE + - 14 WHEN + 71 THEN - 53 * 62 WHEN SUM( ALL 92 ) THEN NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-776
SELECT + + ( CASE + - 14 WHEN + 71 THEN - 53 * 62 WHEN SUM ( ALL 92 ) THEN NULL END ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-777
SELECT + CASE 39 WHEN - 3 / - 92 THEN 15 WHEN + - 72 THEN - COALESCE ( + CAST( + + ( - 12 ) AS SIGNED ), 11 + 38 * - COUNT( * ) / - 47 + - CAST( + 66 AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT + CASE 39 WHEN - 3 / - 92 THEN 15 WHEN + - 72 THEN - COALESCE ( + CAST ( + + ( - 12 ) AS INTEGER ), 11 + 38 * - COUNT ( * ) / - 47 + - CAST ( + 66 AS INTEGER ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT + COUNT( * ) * - NULLIF ( + 99, - - 94 ) + - ( ( - - 95 ) )
----
-194

skipif mysql # not compatible
query I rowsort label-778
SELECT + COUNT ( * ) * - NULLIF ( + 99, - - 94 ) + - ( ( - - 95 ) )
----
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-779
SELECT + 17 DIV CAST( COUNT( * ) AS SIGNED ) + + - ( + + 84 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-779
SELECT + 17 / CAST ( COUNT ( * ) AS INTEGER ) + + - ( + + 84 ) AS col1
----
-67

query II rowsort
SELECT - ( - 30 ) AS col0, 41 col1
----
30
41

query I rowsort
SELECT 70 - + 46 * 35
----
-1540

query I rowsort
SELECT ALL + 35 + - 59 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-783
SELECT 80 * - COALESCE ( 93, + - 66 * - ( 25 ) * 95 + - - COUNT( ALL 19 ) + 97 * - 9 + + - 96, - + 98 + 12 ) * + 73 * MAX( + CAST( + 17 AS SIGNED ) ) AS col2, + 93 + + + CAST( 33 AS SIGNED )
----
-9233040
126

skipif mysql # not compatible
query II rowsort label-783
SELECT 80 * - COALESCE ( 93, + - 66 * - ( 25 ) * 95 + - - COUNT ( ALL 19 ) + 97 * - 9 + + - 96, - + 98 + 12 ) * + 73 * MAX ( + CAST ( + 17 AS INTEGER ) ) AS col2, + 93 + + + CAST ( 33 AS INTEGER )
----
-9233040
126

query I rowsort
SELECT 89 * - 80 AS col2
----
-7120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-785
SELECT ALL 22 + + + 35 - 83 + + COALESCE ( - COUNT( * ), - 17 DIV + NULLIF ( COUNT( * ), - 48 * - - COALESCE ( + - 17, 80 + - 53, - - 96 ) - CAST( NULL AS DECIMAL ) * + COUNT( * ) + - + 22 ) ) * - 28 * 19 - + 89 - 71 DIV - ( 22 ) + + NULLIF ( - + 5, - - 15 * + + 25 + - 95 - + - 60 + 58 * + ( 92 ) * COUNT( * ) - + SUM( ALL + 56 ) ) * - + 77
----
805

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL 22 + + + 35 - 83 + + COALESCE ( - COUNT ( * ), - 17 / + NULLIF ( COUNT ( * ), - 48 * - - COALESCE ( + - 17, 80 + - 53, - - 96 ) - CAST ( NULL AS REAL ) * + COUNT ( * ) + - + 22 ) ) * - 28 * 19 - + 89 - 71 / - ( 22 ) + + NULLIF ( - + 5, - - 15 * + + 25 + - 95 - + - 60 + 58 * + ( 92 ) * COUNT ( * ) - + SUM ( ALL + 56 ) ) * - + 77
----
805

query I rowsort
SELECT ALL - 62 + - - ( + ( - 91 ) ) - 29
----
-182

onlyif mysql # aggregate syntax: 
query II rowsort label-787
SELECT DISTINCT - 31, 33 + + + MAX( + 65 ) col0
----
-31
98

skipif mysql # not compatible
query II rowsort label-787
SELECT DISTINCT - 31, 33 + + + MAX ( + 65 ) col0
----
-31
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT ALL - SUM( - 10 ) + - 85 * 60
----
-5090

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL - SUM ( - 10 ) + - 85 * 60
----
-5090

query I rowsort
SELECT ( + 34 ) * + 4 + 46 + 38
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL 38 * - + MIN( 74 ) * 21
----
-59052

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL 38 * - + MIN ( 74 ) * 21
----
-59052

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

query I rowsort
SELECT ALL + 0 + + - 81 col0
----
-81

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

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL COUNT ( ALL + 97 ) AS col2
----
1

query I rowsort
SELECT 24 + 32 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL NULLIF ( + MIN( DISTINCT + 27 ), - 87 + 85 ) - - + COUNT( * ) * + - 78
----
-51

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL NULLIF ( + MIN ( DISTINCT + 27 ), - 87 + 85 ) - - + COUNT ( * ) * + - 78
----
-51

query I rowsort
SELECT 30 * 40 AS col2
----
1200

query I rowsort
SELECT 33 + 35 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT - - CASE COUNT( * ) WHEN 14 THEN + ( 11 ) ELSE - + 86 END AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-799
SELECT - - CASE COUNT ( * ) WHEN 14 THEN + ( 11 ) ELSE - + 86 END AS col2
----
-86

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

query I rowsort
SELECT DISTINCT - 10 - - 68
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT - 92 * COALESCE ( + 43, + MAX( ALL + 64 ) ) * - 13 + - COUNT( * ) * + + 8 AS col2
----
51420

skipif mysql # not compatible
query I rowsort label-802
SELECT - 92 * COALESCE ( + 43, + MAX ( ALL + 64 ) ) * - 13 + - COUNT ( * ) * + + 8 AS col2
----
51420

query II rowsort
SELECT - 50, - 89 AS col1
----
-50
-89

query I rowsort
SELECT + CASE + - 21 WHEN AVG ( - - 50 ) THEN NULL WHEN - 54 THEN NULL ELSE 39 - - + 54 END + - 58 AS col2
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-805
SELECT ALL - - 36 - - 81 * + 1 + 7 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL - - 36 - - 81 * + 1 + 7 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-806
SELECT DISTINCT + 19 * - + COUNT( * ) * - 60 DIV 47 DIV + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT + 19 * - + COUNT ( * ) * - 60 / 47 / + 59 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT ALL + 8 DIV - 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL + 8 / - 35 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-808
SELECT ALL - + 44 * - 19 * 2 + + + COALESCE ( - + 15, - 92 + - CAST( NULL AS SIGNED ) * - COUNT( * ), + + 87 * - 38 - + 61 ), + 87 col1
----
1657
87

skipif mysql # not compatible
query II rowsort label-808
SELECT ALL - + 44 * - 19 * 2 + + + COALESCE ( - + 15, - 92 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ), + + 87 * - 38 - + 61 ), + 87 col1
----
1657
87

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT - COALESCE ( + + COUNT( * ), - - 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-809
SELECT - COALESCE ( + + COUNT ( * ), - - 97 )
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT COALESCE ( 53, - 18 ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-811
SELECT COALESCE ( 53, - 18 ) / - 85
----
0

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

query I rowsort
SELECT - 8 + - + 78 AS col0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-814
SELECT - - CASE + 1 WHEN + 66 THEN + + CAST( - 38 AS SIGNED ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT - - CASE + 1 WHEN + 66 THEN + + CAST ( - 38 AS INTEGER ) ELSE NULL END col0
----
NULL

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

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

query I rowsort
SELECT ALL 5 * - - 59 AS col0
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT + ( - SUM( DISTINCT 38 ) ) + - 47 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-817
SELECT + ( - SUM ( DISTINCT 38 ) ) + - 47 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT DISTINCT - SUM( + + 70 ) * - 32 + - 87 + 15 + 29
----
2197

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT - SUM ( + + 70 ) * - 32 + - 87 + 15 + 29
----
2197

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT + COALESCE ( + 53, - 18, - 60 * - MAX( DISTINCT 26 ), + + NULLIF ( - 25, 67 ) * MAX( + - ( + 53 ) ) )
----
53

skipif mysql # not compatible
query I rowsort label-819
SELECT + COALESCE ( + 53, - 18, - 60 * - MAX ( DISTINCT 26 ), + + NULLIF ( - 25, 67 ) * MAX ( + - ( + 53 ) ) )
----
53

query I rowsort
SELECT + 10 + + - 1 + - + 75 col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-821
SELECT + ( + 61 ) DIV - + 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-821
SELECT + ( + 61 ) / - + 42 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT - ( - + COUNT( * ) ) * - - 32 - - 0 + + 7 + - - 20 + + - 24 AS col1, + 3 * - 18 AS col0
----
35
-54

skipif mysql # not compatible
query II rowsort label-822
SELECT - ( - + COUNT ( * ) ) * - - 32 - - 0 + + 7 + - - 20 + + - 24 AS col1, + 3 * - 18 AS col0
----
35
-54

query I rowsort
SELECT ALL + 20 * - 52 + + + 68
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT MAX( DISTINCT + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-824
SELECT MAX ( DISTINCT + 47 ) AS col0
----
47

query I rowsort
SELECT - 62 + - + 65
----
-127

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-827
SELECT MAX( - 41 ), - COUNT( * ) + - - 15 AS col1
----
-41
14

skipif mysql # not compatible
query II rowsort label-827
SELECT MAX ( - 41 ), - COUNT ( * ) + - - 15 AS col1
----
-41
14

onlyif mysql # DIV for integer division: 
query I rowsort label-828
SELECT ALL CASE + 36 WHEN + 94 THEN NULL ELSE - 31 + + 54 END DIV + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL CASE + 36 WHEN + 94 THEN NULL ELSE - 31 + + 54 END / + - 5
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT DISTINCT + MIN( 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT + MIN ( 59 ) AS col1
----
59

query I rowsort
SELECT ALL + 68 - 23 * + - 25
----
643

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-831
SELECT - COUNT( * ) * ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT - COUNT ( * ) * ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT DISTINCT 26 DIV - - 1 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT 26 / - - 1 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT - CASE + 69 WHEN 56 / - COUNT( * ) - - - SUM( + 12 ) + - - 10 THEN ( 85 ) * - 83 ELSE + + 40 END
----
-40

skipif mysql # not compatible
query I rowsort label-833
SELECT - CASE + 69 WHEN 56 / - COUNT ( * ) - - - SUM ( + 12 ) + - - 10 THEN ( 85 ) * - 83 ELSE + + 40 END
----
-40

query I rowsort
SELECT - 96 * - + 56
----
5376

query I rowsort
SELECT DISTINCT + 23 * + + ( - NULLIF ( + + 37, - 89 ) )
----
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT - - SUM( DISTINCT - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-836
SELECT - - SUM ( DISTINCT - 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT - 90 * ( + 91 ) + - - 64 + + COUNT( * ) + - 28
----
-8153

skipif mysql # not compatible
query I rowsort label-837
SELECT - 90 * ( + 91 ) + - - 64 + + COUNT ( * ) + - 28
----
-8153

query I rowsort
SELECT DISTINCT + NULLIF ( - 49, + - 35 * 4 + - 20 ) AS col1
----
-49

query I rowsort
SELECT DISTINCT + 79 * - + 19
----
-1501

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

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

query I rowsort
SELECT - - 2 * 18
----
36

query I rowsort
SELECT - 97 + + 63
----
-34

query I rowsort
SELECT + + 94 + - ( + - 85 ) - - 60 AS col1
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT + 80 * - 30 * - COUNT( * )
----
2400

skipif mysql # not compatible
query I rowsort label-844
SELECT + 80 * - 30 * - COUNT ( * )
----
2400

onlyif mysql # aggregate syntax: 
query II rowsort label-845
SELECT ALL + 14 + 70, NULLIF ( 1, + ( + - 4 ) * - 19 * - COUNT( * ) ) * - 97 AS col2
----
84
-97

skipif mysql # not compatible
query II rowsort label-845
SELECT ALL + 14 + 70, NULLIF ( 1, + ( + - 4 ) * - 19 * - COUNT ( * ) ) * - 97 AS col2
----
84
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL + COUNT( * ) + + 54 + + + 10
----
65

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + COUNT ( * ) + + 54 + + + 10
----
65

query I rowsort
SELECT DISTINCT ( + + 41 ) + - 91 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT - + 75 + - ( - - COUNT( * ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-848
SELECT - + 75 + - ( - - COUNT ( * ) ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT ALL - 70 * 51 * - - COUNT( * ) AS col0
----
-3570

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL - 70 * 51 * - - COUNT ( * ) AS col0
----
-3570

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT - NULLIF ( 13, - MAX( DISTINCT - NULLIF ( - 27, NULLIF ( 66, 78 * 14 * - - 69 + 68 / 21 ) * - + 89 ) ) * - MIN( ALL 81 ) ) + + - 41 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-851
SELECT - NULLIF ( 13, - MAX ( DISTINCT - NULLIF ( - 27, NULLIF ( 66, 78 * 14 * - - 69 + 68 / 21 ) * - + 89 ) ) * - MIN ( ALL 81 ) ) + + - 41 AS col2
----
-54

query I rowsort
SELECT - 63 * + + 50 AS col1
----
-3150

query I rowsort
SELECT + 69 * 27
----
1863

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT DISTINCT 88 DIV + - 24 + + 61 col0
----
58

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT 88 / + - 24 + + 61 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT + COUNT( ALL CASE - - 60 WHEN 96 * 62 + 36 * - 17 - 89 THEN NULL ELSE - 10 END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-855
SELECT + COUNT ( ALL CASE - - 60 WHEN 96 * 62 + 36 * - 17 - 89 THEN NULL ELSE - 10 END ) AS col1
----
1

query II rowsort
SELECT DISTINCT + 66 AS col1, 70
----
66
70

query II rowsort
SELECT ALL + 69, + ( ( - - 64 ) ) + + - 23 AS col2
----
69
41

query I rowsort
SELECT + 50 - - + 25
----
75

query I rowsort
SELECT DISTINCT 94 * + - 86 - + + 7 + - 84 * + + COALESCE ( + 95, - 77 ) col2
----
-16071

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL ( 39 ) * + MAX( DISTINCT 23 ) - - 61
----
958

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL ( 39 ) * + MAX ( DISTINCT 23 ) - - 61
----
958

onlyif mysql # DIV for integer division: 
query II rowsort label-861
SELECT ( - ( + 80 ) ), + 16 * 53 DIV - + 51 AS col0
----
-80
-16

skipif mysql # not compatible
query II rowsort label-861
SELECT ( - ( + 80 ) ), + 16 * 53 / - + 51 AS col0
----
-80
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT - COUNT( * ) + + 74 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-863
SELECT - COUNT ( * ) + + 74 AS col2
----
73

query II rowsort
SELECT ALL ( - - 81 ) * 42, - 95 * 14 - 62 AS col0
----
3402
-1392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-865
SELECT - COUNT( * ) * - NULLIF ( - 85, + 70 / + + CAST( 10 AS SIGNED ) ) - 95 col0
----
-180

skipif mysql # not compatible
query I rowsort label-865
SELECT - COUNT ( * ) * - NULLIF ( - 85, + 70 / + + CAST ( 10 AS INTEGER ) ) - 95 col0
----
-180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL + 34 * SUM( - 72 ) - + COUNT( * )
----
-2449

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL + 34 * SUM ( - 72 ) - + COUNT ( * )
----
-2449

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT ALL - 47 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL - 47 / + 86 AS col2
----
0

query I rowsort
SELECT + 13 + + 73 AS col1
----
86

query I rowsort
SELECT ALL - 38 * 41 AS col0
----
-1558

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT DISTINCT 36 DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT 36 / - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL COUNT( * ) * 25 + 44 col1
----
69

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL COUNT ( * ) * 25 + 44 col1
----
69

query I rowsort
SELECT + 77 * 67 AS col1
----
5159

query I rowsort
SELECT - 83 + 14 col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-875
SELECT - ( - CAST( + COUNT( ALL - 65 ) AS SIGNED ) ) + 98 DIV - 14 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-875
SELECT - ( - CAST ( + COUNT ( ALL - 65 ) AS INTEGER ) ) + 98 / - 14 AS col0
----
-6

query I rowsort
SELECT ALL + 75 * + 34 AS col0
----
2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-877
SELECT - CAST( 67 AS DECIMAL ) * - MAX( + CAST( NULL AS SIGNED ) * + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-877
SELECT - CAST ( 67 AS REAL ) * - MAX ( + CAST ( NULL AS INTEGER ) * + 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT - COUNT( * ) + 65 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-878
SELECT - COUNT ( * ) + 65 AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-879
SELECT ALL - 2 + MAX( DISTINCT - 25 ) DIV COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL - 2 + MAX ( DISTINCT - 25 ) / COUNT ( * ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL + 48 + - 33 * - SUM( - ( 86 ) ) AS col1
----
-2790

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL + 48 + - 33 * - SUM ( - ( 86 ) ) AS col1
----
-2790

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

skipif mysql # not compatible
query I rowsort label-881
SELECT - CAST ( NULL AS INTEGER ) * 62 AS col0
----
NULL

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

query I rowsort
SELECT ALL + 3 + + 75 * 33
----
2478

query I rowsort
SELECT 64 * - 15 AS col0
----
-960

query I rowsort
SELECT 70 + + COALESCE ( - 8, 57 )
----
62

query I rowsort
SELECT 15 + - 21 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT ALL - 13 DIV - CASE AVG ( ALL - 24 ) WHEN - 15 THEN NULL ELSE + 16 END
----
0

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - 13 / - CASE AVG ( ALL - 24 ) WHEN - 15 THEN NULL ELSE + 16 END
----
0

query I rowsort
SELECT ALL 22 - + 52 * 84
----
-4346

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT - ( COUNT( ALL - ( 41 ) ) ) * + 58 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT - ( COUNT ( ALL - ( 41 ) ) ) * + 58 AS col2
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - 8 * 61 + + ( - 50 ) * COUNT( * )
----
-538

skipif mysql # not compatible
query I rowsort label-891
SELECT - 8 * 61 + + ( - 50 ) * COUNT ( * )
----
-538

query I rowsort
SELECT DISTINCT + 68 - - COALESCE ( + 79, 1, + 63 )
----
147

query I rowsort
SELECT ALL - 13 * + 97
----
-1261

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-894
SELECT 41 DIV ( 29 * CASE + 9 WHEN 18 THEN NULL ELSE - 5 END ) + CAST( + 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-894
SELECT 41 / ( 29 * CASE + 9 WHEN 18 THEN NULL ELSE - 5 END ) + CAST ( + 29 AS INTEGER )
----
29

query I rowsort
SELECT 18 * + 77 AS col0
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT DISTINCT - SUM( - 7 ) * 34 col0
----
238

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT - SUM ( - 7 ) * 34 col0
----
238

onlyif mysql # DIV for integer division: 
query I rowsort label-897
SELECT 98 DIV + 10
----
9

skipif mysql # not compatible
query I rowsort label-897
SELECT 98 / + 10
----
9

query I rowsort
SELECT 34 * - 54 AS col1
----
-1836

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

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT - CAST ( + 24 AS INTEGER ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-900
SELECT ALL - CASE ( + 14 ) WHEN CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - SUM( DISTINCT 81 ) / - 18 THEN 21 * - 58 - + 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - CASE ( + 14 ) WHEN CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT 81 ) / - 18 THEN 21 * - 58 - + 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT MIN( DISTINCT + 35 ) + 56
----
91

skipif mysql # not compatible
query I rowsort label-901
SELECT MIN ( DISTINCT + 35 ) + 56
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT 33 * SUM( ALL + ( - 77 ) )
----
-2541

skipif mysql # not compatible
query I rowsort label-902
SELECT 33 * SUM ( ALL + ( - 77 ) )
----
-2541

query I rowsort
SELECT 2 * - 52
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL - COUNT( * ) + CASE - 75 + 40 WHEN 93 - 7 * 70 THEN 14 * - COUNT( * ) - + 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL - COUNT ( * ) + CASE - 75 + 40 WHEN 93 - 7 * 70 THEN 14 * - COUNT ( * ) - + 97 ELSE NULL END
----
NULL

query I rowsort
SELECT 89 - 62 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-906
SELECT - 41 * - COALESCE ( 47, 78 * COUNT( DISTINCT 66 ) + - 55 ) - 73 * - CAST( COUNT( * ) AS SIGNED )
----
2000

skipif mysql # not compatible
query I rowsort label-906
SELECT - 41 * - COALESCE ( 47, 78 * COUNT ( DISTINCT 66 ) + - 55 ) - 73 * - CAST ( COUNT ( * ) AS INTEGER )
----
2000

query I rowsort
SELECT + 35 * - 37 AS col1
----
-1295

query I rowsort
SELECT ALL - 63 + 1 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - MAX( DISTINCT - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-909
SELECT - MAX ( DISTINCT - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL + + CASE 79 WHEN + 11 THEN - MIN( DISTINCT 23 ) - 57 ELSE + COUNT( * ) + + CASE WHEN + 45 IS NOT NULL THEN NULL ELSE 48 + + 44 END END + 21 * + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL + + CASE 79 WHEN + 11 THEN - MIN ( DISTINCT 23 ) - 57 ELSE + COUNT ( * ) + + CASE WHEN + 45 IS NOT NULL THEN NULL ELSE 48 + + 44 END END + 21 * + 84 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT DISTINCT - COALESCE ( - 28, 93, 37 DIV - ( 17 ) ) + - 79
----
-51

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT - COALESCE ( - 28, 93, 37 / - ( 17 ) ) + - 79
----
-51

query I rowsort
SELECT - 2 - 15
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-913
SELECT DISTINCT + CAST( 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT + CAST ( 45 AS INTEGER )
----
45

query I rowsort
SELECT DISTINCT - 81 + 10 AS col1
----
-71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT - ( + 53 ) DIV + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-916
SELECT - ( + 53 ) / + 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL MIN( ALL - 70 ) + 82 * - 52 AS col0
----
-4334

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL MIN ( ALL - 70 ) + 82 * - 52 AS col0
----
-4334

query I rowsort
SELECT - ( 63 ) + 87 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT NULLIF ( - 38, - COUNT( * ) + - 29 * 75 ) * - 59
----
2242

skipif mysql # not compatible
query I rowsort label-919
SELECT NULLIF ( - 38, - COUNT ( * ) + - 29 * 75 ) * - 59
----
2242

query I rowsort
SELECT ALL 12 + - COALESCE ( 47 + 80 * 91, - 43 ) * + 67 AS col0
----
-490897

query I rowsort
SELECT 30 + - 38 * - ( - 99 ) AS col1
----
-3732

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

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

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

query I rowsort
SELECT DISTINCT 10 * 97 col0
----
970

query I rowsort
SELECT 99 * + 91 * + 43 AS col0
----
387387

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

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

query I rowsort
SELECT ( - 44 ) + 60 AS col0
----
16

query I rowsort
SELECT DISTINCT 74 * - ( - 30 ) AS col2
----
2220

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT + 66 DIV - 37 + - 32
----
-33

skipif mysql # not compatible
query I rowsort label-933
SELECT + 66 / - 37 + - 32
----
-33

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

onlyif mysql # DIV for integer division: 
query I rowsort label-935
SELECT - NULLIF ( + + 73, 79 ) DIV 14 - - 79
----
74

skipif mysql # not compatible
query I rowsort label-935
SELECT - NULLIF ( + + 73, 79 ) / 14 - - 79
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT - CASE - + 70 WHEN 55 THEN - 53 ELSE - COUNT( ALL - 54 ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT - CASE - + 70 WHEN 55 THEN - 53 ELSE - COUNT ( ALL - 54 ) END AS col0
----
1

query I rowsort
SELECT ALL - 46 + - 44 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT 39 - + COUNT( * ) + + 37 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-938
SELECT 39 - + COUNT ( * ) + + 37 AS col0
----
75

query I rowsort
SELECT DISTINCT + 37 * + + 93
----
3441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-940
SELECT - SUM( - 95 ) DIV 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-940
SELECT - SUM ( - 95 ) / 38 AS col0
----
2

query I rowsort
SELECT ( - + 51 ) + + 45 AS col1
----
-6

query I rowsort
SELECT 17 * + - 11
----
-187

query I rowsort
SELECT 4 + + 58 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT COUNT( * ) - + SUM( 1 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-944
SELECT COUNT ( * ) - + SUM ( 1 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-945
SELECT ALL - COALESCE ( CAST( NULL AS SIGNED ), NULLIF ( 17, COUNT( * ) ) + + 90 DIV 55, 36 + COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), NULLIF ( 17, COUNT ( * ) ) + + 90 / 55, 36 + COUNT ( * ) )
----
-18

query I rowsort
SELECT - + 36 * - 50 + 21 col1
----
1821

query I rowsort
SELECT DISTINCT + ( - - 6 ) + + NULLIF ( 69, 32 ) AS col0
----
75

query I rowsort
SELECT ALL - + 10 + + - 22
----
-32

query I rowsort
SELECT - 1 * - 36 * 36 + - 34 AS col2
----
1262

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL - - NULLIF ( - - 23, 82 * + 58 + - COUNT( * ) ) col2
----
23

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL - - NULLIF ( - - 23, 82 * + 58 + - COUNT ( * ) ) col2
----
23

query I rowsort
SELECT ALL 16 + + 3 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL COALESCE ( + COUNT( * ), 3 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL COALESCE ( + COUNT ( * ), 3 ) col0
----
1

query I rowsort
SELECT DISTINCT + - 80 + 62 AS col1
----
-18

query I rowsort
SELECT ALL + 51 * + 55 * 58
----
162690

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT - ( + NULLIF ( + COUNT( * ), - 39 - - 61 * 50 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-955
SELECT - ( + NULLIF ( + COUNT ( * ), - 39 - - 61 * 50 ) )
----
-1

query I rowsort
SELECT ALL + 82 - 39
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT DISTINCT - 24 * - - MAX( DISTINCT 64 ) AS col2
----
-1536

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT - 24 * - - MAX ( DISTINCT 64 ) AS col2
----
-1536

query I rowsort
SELECT + + 13 + 84 + 49 * + 73
----
3674

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

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

query I rowsort
SELECT + + 96 + + - 1 + - 5
----
90

query I rowsort
SELECT ALL 5 * - + AVG ( 54 ) - CASE + 57 WHEN + 82 * 40 THEN + 57 + 64 / 68 WHEN ( ( 20 ) ) THEN NULL ELSE NULL END / + 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT + + NULLIF ( 57, - COUNT( * ) ) + + 59 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-962
SELECT + + NULLIF ( 57, - COUNT ( * ) ) + + 59 AS col1
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-963
SELECT DISTINCT CAST( 87 AS SIGNED ) col0
----
87

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT CAST ( 87 AS INTEGER ) col0
----
87

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

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

query I rowsort
SELECT + ( ( + + 41 ) ) * 73
----
2993

query II rowsort
SELECT ALL 15 AS col1, 21 col2
----
15
21

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT + 28 + 91 * COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-967
SELECT + 28 + 91 * COUNT ( * )
----
119

query I rowsort
SELECT ALL ( + 81 ) * + 94 + + 90
----
7704

query I rowsort
SELECT + 80 * + 34 * 46 AS col2
----
125120

query I rowsort
SELECT + 92 + + 14 - - 69 AS col0
----
175

query I rowsort
SELECT + 50 - + NULLIF ( + + 12, + 2 ) - + 96
----
-58

query II rowsort
SELECT 95 AS col2, 14
----
95
14

query I rowsort
SELECT ALL ( - ( + - 35 ) ) * - 19 AS col0
----
-665

query I rowsort
SELECT + 68 * 26 col1
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-975
SELECT - SUM( - + 18 ) + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT - SUM ( - + 18 ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 44 * - - 58
----
2552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-977
SELECT ALL + MIN( ALL CAST( NULL AS SIGNED ) ) * - + 99 * ( 82 ) + - ( - ( 4 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL + MIN ( ALL CAST ( NULL AS INTEGER ) ) * - + 99 * ( 82 ) + - ( - ( 4 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT + CASE + + MIN( DISTINCT 40 ) WHEN - 9 - + 89 * 38 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT + CASE + + MIN ( DISTINCT 40 ) WHEN - 9 - + 89 * 38 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 55 * + - 58 * 19 + 84
----
-60526

query I rowsort
SELECT + 14 + + 27 + + ( - 93 )
----
-52

query II rowsort
SELECT ALL + 23 col0, + 81 AS col0
----
23
81

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT CASE COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + 81 ELSE 51 + COALESCE ( - 26 - - 11, + 91 ) END
----
81

skipif mysql # not compatible
query I rowsort label-982
SELECT CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + 81 ELSE 51 + COALESCE ( - 26 - - 11, + 91 ) END
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + + CASE + - COUNT( ALL 92 ) WHEN 6 THEN 79 ELSE 41 END
----
41

skipif mysql # not compatible
query I rowsort label-983
SELECT + + CASE + - COUNT ( ALL 92 ) WHEN 6 THEN 79 ELSE 41 END
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT + ( - 64 ) * + 57 * + COALESCE ( SUM( 74 ), - ( 49 ), - COUNT( * ) )
----
-269952

skipif mysql # not compatible
query I rowsort label-984
SELECT + ( - 64 ) * + 57 * + COALESCE ( SUM ( 74 ), - ( 49 ), - COUNT ( * ) )
----
-269952

query I rowsort
SELECT + 54 * + 72 + 18 * 94 + 67 AS col0
----
5647

query II rowsort
SELECT + 15, - 33 AS col0
----
15
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT + 3 * ( + COUNT( * ) ) + 13
----
16

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT + 3 * ( + COUNT ( * ) ) + 13
----
16

query II rowsort
SELECT + 87 AS col2, - ( - ( 34 ) ) + ( ( + 43 ) ) AS col0
----
87
77

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL + MIN( DISTINCT - ( + - 89 ) ) * 2 + - 92
----
86

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + MIN ( DISTINCT - ( + - 89 ) ) * 2 + - 92
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-990
SELECT - - COALESCE ( + 31, + 67 DIV ( - 60 ), 12 ) * COUNT( * ) col1
----
31

skipif mysql # not compatible
query I rowsort label-990
SELECT - - COALESCE ( + 31, + 67 / ( - 60 ), 12 ) * COUNT ( * ) col1
----
31

query II rowsort
SELECT + 38, 91 AS col1
----
38
91

onlyif mysql # aggregate syntax: 
query II rowsort label-992
SELECT - COUNT( * ) col2, - MAX( - - 15 ) + COUNT( * ) * 38 AS col1
----
-1
23

skipif mysql # not compatible
query II rowsort label-992
SELECT - COUNT ( * ) col2, - MAX ( - - 15 ) + COUNT ( * ) * 38 AS col1
----
-1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT ALL + MAX( 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL + MAX ( 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT + ( + - MAX( 58 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-994
SELECT + ( + - MAX ( 58 ) ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-995
SELECT - 82 * - CAST( + 33 AS SIGNED ) - 63
----
2643

skipif mysql # not compatible
query I rowsort label-995
SELECT - 82 * - CAST ( + 33 AS INTEGER ) - 63
----
2643

query I rowsort
SELECT DISTINCT - 95 * + 55
----
-5225

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT - 20 DIV 1 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-997
SELECT - 20 / 1 AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-998
SELECT - 77 * - - 14 DIV COUNT( * ) * 48 col2
----
-51744

skipif mysql # not compatible
query I rowsort label-998
SELECT - 77 * - - 14 / COUNT ( * ) * 48 col2
----
-51744

onlyif mysql # aggregate syntax: 
query II rowsort label-999
SELECT - 78 col2, - 3 - COUNT( * )
----
-78
-4

skipif mysql # not compatible
query II rowsort label-999
SELECT - 78 col2, - 3 - COUNT ( * )
----
-78
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL CASE - 84 WHEN - COUNT( * ) / - COALESCE ( + NULLIF ( 75, 35 + + 91 * 63 ) * - 65, + 40 - 90, - 54 * 93 ) + 84 * 67 THEN 27 * 11 WHEN + 76 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL CASE - 84 WHEN - COUNT ( * ) / - COALESCE ( + NULLIF ( 75, 35 + + 91 * 63 ) * - 65, + 40 - 90, - 54 * 93 ) + 84 * 67 THEN 27 * 11 WHEN + 76 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1001
SELECT - 10 - - COALESCE ( + CAST( - 84 AS SIGNED ), + SUM( + 3 ) DIV 97 + - 9, 86 )
----
-94

skipif mysql # not compatible
query I rowsort label-1001
SELECT - 10 - - COALESCE ( + CAST ( - 84 AS INTEGER ), + SUM ( + 3 ) / 97 + - 9, 86 )
----
-94

query I rowsort
SELECT ALL COALESCE ( + + 15, 19 * + 83 * - 61 - 89 ) * 35 col1
----
525

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT - ( - - MAX( ALL - 82 ) ) + + + 38 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-1004
SELECT - ( - - MAX ( ALL - 82 ) ) + + + 38 AS col1
----
120

query I rowsort
SELECT + 80 * 69
----
5520

query I rowsort
SELECT ALL + ( 47 ) * + 32 + - 14 + - 96
----
1394

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT - 92 * - COUNT( * ) * - 48 AS col1
----
-4416

skipif mysql # not compatible
query I rowsort label-1007
SELECT - 92 * - COUNT ( * ) * - 48 AS col1
----
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT - 51 + ( 91 ) + + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-1008
SELECT - 51 + ( 91 ) + + - COUNT ( * )
----
39

query I rowsort
SELECT - NULLIF ( 78, + - 19 * + - 69 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1010
SELECT DISTINCT ( - 94 ) + + CAST( + 46 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT ( - 94 ) + + CAST ( + 46 AS INTEGER )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT - 27 + - - 33 - - + CAST( - 63 AS SIGNED ) * 69 AS col2
----
-4341

skipif mysql # not compatible
query I rowsort label-1011
SELECT - 27 + - - 33 - - + CAST ( - 63 AS INTEGER ) * 69 AS col2
----
-4341

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT + COUNT( * ) - + - 51 + + + 65 + ( + 77 ) AS col0
----
194

skipif mysql # not compatible
query I rowsort label-1012
SELECT + COUNT ( * ) - + - 51 + + + 65 + ( + 77 ) AS col0
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT - 44 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-1013
SELECT - 44 / - 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1014
SELECT DISTINCT + ( - 16 ) + - MIN( DISTINCT + 32 ) + CAST( NULL AS SIGNED ) / - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT + ( - 16 ) + - MIN ( DISTINCT + 32 ) + CAST ( NULL AS INTEGER ) / - 45 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT + COUNT( DISTINCT + - 76 ) + + ( COUNT( * ) ) / ( ( - COALESCE ( - 97, 37 + 45 / - 95 ) ) * + 48 + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT + COUNT ( DISTINCT + - 76 ) + + ( COUNT ( * ) ) / ( ( - COALESCE ( - 97, 37 + 45 / - 95 ) ) * + 48 + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1016
SELECT ALL 8 DIV 30 AS col1, 10
----
0
10

skipif mysql # not compatible
query II rowsort label-1016
SELECT ALL 8 / 30 AS col1, 10
----
0
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1017
SELECT + COALESCE ( - 21, - 11 ) DIV - 80 * 96 + + COUNT( ALL 80 )
----
1

skipif mysql # not compatible
query I rowsort label-1017
SELECT + COALESCE ( - 21, - 11 ) / - 80 * 96 + + COUNT ( ALL 80 )
----
1

query I rowsort
SELECT ALL + 47 + 51 AS col1
----
98

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

query I rowsort
SELECT - 2 + + + 3 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1022
SELECT ALL 72 DIV - 56 * + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL 72 / - 56 * + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1023
SELECT MAX( - 13 ) * + + COUNT( * ) / + + 86 * 60 + 94 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT MAX ( - 13 ) * + + COUNT ( * ) / + + 86 * 60 + 94 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 56 * 23 + - - 78 * - + 4 col2
----
-1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1025
SELECT ALL + 13 DIV - COUNT( * ) * COUNT( * ) + - 9
----
-22

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL + 13 / - COUNT ( * ) * COUNT ( * ) + - 9
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1026
SELECT ALL NULLIF ( + COUNT( DISTINCT + - 3 ), 5 ) DIV - 44 + + 0
----
0

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL NULLIF ( + COUNT ( DISTINCT + - 3 ), 5 ) / - 44 + + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT - CASE - 74 WHEN - 27 THEN NULL WHEN + - 67 THEN - COALESCE ( 28, - 36 * - 32 ) * + 63 + - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT - CASE - 74 WHEN - 27 THEN NULL WHEN + - 67 THEN - COALESCE ( 28, - 36 * - 32 ) * + 63 + - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + 92 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1028
SELECT + 54 + COUNT( * ) * + - 42 + + CAST( + 90 AS SIGNED ) col0
----
102

skipif mysql # not compatible
query I rowsort label-1028
SELECT + 54 + COUNT ( * ) * + - 42 + + CAST ( + 90 AS INTEGER ) col0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT + 47 * - 63 * 52 + 90 DIV + 43
----
-153970

skipif mysql # not compatible
query I rowsort label-1029
SELECT + 47 * - 63 * 52 + 90 / + 43
----
-153970

query II rowsort
SELECT ALL 38 - + - 66 AS col1, 94
----
104
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT DISTINCT - 57 * - COUNT( * ) - + SUM( - 62 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT - 57 * - COUNT ( * ) - + SUM ( - 62 ) AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT - NULLIF ( - COUNT( * ), - + COUNT( DISTINCT + 47 ) ) + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT - NULLIF ( - COUNT ( * ), - + COUNT ( DISTINCT + 47 ) ) + 79
----
NULL

query I rowsort
SELECT 34 * - 99
----
-3366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL - - CAST( + + 47 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - - CAST ( + + 47 AS INTEGER ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT 36 + - SUM( + 37 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1035
SELECT 36 + - SUM ( + 37 ) AS col0
----
-1

query I rowsort
SELECT - 4 - + 62 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT + - ( COUNT( * ) ) * - - 92 + - + 86 + 58
----
-120

skipif mysql # not compatible
query I rowsort label-1037
SELECT + - ( COUNT ( * ) ) * - - 92 + - + 86 + 58
----
-120

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT DISTINCT - CAST( + ( 80 ) AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT - CAST ( + ( 80 ) AS INTEGER ) AS col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1040
SELECT MIN( - 12 ) * COUNT( * ) DIV + 22 + 73 * - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-1040
SELECT MIN ( - 12 ) * COUNT ( * ) / + 22 + 73 * - COUNT ( * )
----
-73

query II rowsort
SELECT ALL - 8 * + - 50, - 71 + 88 AS col2
----
400
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT - SUM( ALL 25 ) * - + 65
----
1625

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - SUM ( ALL 25 ) * - + 65
----
1625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1043
SELECT 95 * + - COUNT( * ) * + - CASE + CAST( NULL AS SIGNED ) WHEN + 23 THEN NULL WHEN + 4 * 84 THEN 43 * + COALESCE ( - 25 * - 45, 44 ) + 75 END + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT 95 * + - COUNT ( * ) * + - CASE + CAST ( NULL AS INTEGER ) WHEN + 23 THEN NULL WHEN + 4 * 84 THEN 43 * + COALESCE ( - 25 * - 45, 44 ) + 75 END + 14
----
NULL

query I rowsort
SELECT 17 * - 5
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL + 60 + + 33 + + - SUM( ALL + ( - 32 ) ) + - 18 * + 84 AS col2
----
-1387

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL + 60 + + 33 + + - SUM ( ALL + ( - 32 ) ) + - 18 * + 84 AS col2
----
-1387

query I rowsort
SELECT ALL + 51 + + 35 AS col2
----
86

query I rowsort
SELECT 49 + - 0 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT SUM( DISTINCT + 83 ) * + - 14 col0
----
-1162

skipif mysql # not compatible
query I rowsort label-1048
SELECT SUM ( DISTINCT + 83 ) * + - 14 col0
----
-1162

query I rowsort
SELECT DISTINCT + 33 + - 72 AS col1
----
-39

query I rowsort
SELECT 84 + + 46
----
130

query I rowsort
SELECT DISTINCT - 16 + + 59 * - - 81 AS col0
----
4763

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT DISTINCT - ( + MAX( + 53 ) ) * + - ( + 18 ) - - COUNT( * ) AS col0
----
955

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT - ( + MAX ( + 53 ) ) * + - ( + 18 ) - - COUNT ( * ) AS col0
----
955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT + 82 * + - 23 - + CASE COUNT( * ) WHEN - - 30 + 5 THEN NULL ELSE + COUNT( * ) * 20 END + 81 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT + 82 * + - 23 - + CASE COUNT ( * ) WHEN - - 30 + 5 THEN NULL ELSE + COUNT ( * ) * 20 END + 81 * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 30 * - ( 61 )
----
-1830

query I rowsort
SELECT ALL - - 86 - - + 78 AS col1
----
164

query I rowsort
SELECT ALL 92 - + 6 * + 48 * - - 71
----
-20356

query I rowsort
SELECT - 96 * - 89 col2
----
8544

query I rowsort
SELECT 71 * + 84
----
5964

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

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

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

query I rowsort
SELECT ALL - 3 * 45 col2
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT 82 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-1062
SELECT 82 / 50
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT + 59 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT + 59 / + 73
----
0

query I rowsort
SELECT ALL - - ( + 44 ) col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1065
SELECT DISTINCT - CAST( + 6 AS SIGNED ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT - CAST ( + 6 AS INTEGER ) AS col0
----
-6

query II rowsort
SELECT 95 AS col1, + 38
----
95
38

query II rowsort
SELECT 37 * 36, - 88 AS col0
----
1332
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL 45 + 84 + + 37 * + COUNT( * ) * + ( 90 )
----
3459

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL 45 + 84 + + 37 * + COUNT ( * ) * + ( 90 )
----
3459

query I rowsort
SELECT 8 + - COALESCE ( 98, - 58 * + 4 + + 18 * + 89 ) + 55
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1070
SELECT NULLIF ( 34, - - 97 ) + - + 60 * ( 91 ) DIV ( - COUNT( * ) ) AS col2
----
5494

skipif mysql # not compatible
query I rowsort label-1070
SELECT NULLIF ( 34, - - 97 ) + - + 60 * ( 91 ) / ( - COUNT ( * ) ) AS col2
----
5494

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT DISTINCT 98 DIV + 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT 98 / + 40 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1072
SELECT 27 DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-1072
SELECT 27 / + 29
----
0

query III rowsort
SELECT ALL - 19 * 45 AS col0, + 22 + 32 AS col0, + 31
----
-855
54
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT CAST( NULL AS SIGNED ) - + + 17 + COUNT( * ) + + - NULLIF ( 22, + 83 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT CAST ( NULL AS INTEGER ) - + + 17 + COUNT ( * ) + + - NULLIF ( 22, + 83 ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 1 + - + 62 AS col1
----
-63

query I rowsort
SELECT 52 - - 26 * + 99 AS col1
----
2626

query I rowsort
SELECT 23 * + + 52
----
1196

query II rowsort
SELECT - 33 col1, - 52 AS col1
----
-33
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT - MAX( ALL - NULLIF ( - 71, + + 23 * - + 63 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-1080
SELECT - MAX ( ALL - NULLIF ( - 71, + + 23 * - + 63 ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT COUNT( * ) + + - 55 - - ( + SUM( 9 ) ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-1081
SELECT COUNT ( * ) + + - 55 - - ( + SUM ( 9 ) ) col1
----
-45

query I rowsort
SELECT 78 - + 46
----
32

query I rowsort
SELECT - NULLIF ( - 28, - 37 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ALL MAX( + + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL MAX ( + + 55 )
----
55

query II rowsort
SELECT DISTINCT 51 AS col2, 99 AS col2
----
51
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1086
SELECT - COUNT( * ) DIV + 70 AS col1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1087
SELECT - COUNT( * ) + + 91 / + 48 * CAST( + CASE + NULLIF ( COUNT( * ), CAST( NULL AS DECIMAL ) * + ( 32 ) ) WHEN 12 THEN + 51 / - 37 + - 85 * - 20 ELSE NULL END AS SIGNED ) * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT - COUNT ( * ) + + 91 / + 48 * CAST ( + CASE + NULLIF ( COUNT ( * ), CAST ( NULL AS REAL ) * + ( 32 ) ) WHEN 12 THEN + 51 / - 37 + - 85 * - 20 ELSE NULL END AS INTEGER ) * - 1
----
NULL

query II rowsort
SELECT DISTINCT 34 AS col1, 49 AS col1
----
34
49

query I rowsort
SELECT - + 93 + - + ( + 18 ) AS col2
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1090
SELECT 18 * + + 6 / - - 61 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1090
SELECT 18 * + + 6 / - - 61 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 4 col1, + 1 AS col0
----
4
1

query I rowsort
SELECT ALL - 74 * - 83
----
6142

query I rowsort
SELECT - - 69 * - 12
----
-828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1094
SELECT ALL - 63 * - + 57 * 89 - - - 93 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL - 63 * - + 57 * 89 - - - 93 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT - COALESCE ( + - 76, - COUNT( * ) * + + 70 - CAST( NULL AS SIGNED ) + 39 + 29 * 37 * 25 ) - + CAST( - 41 + + ( + 27 ) AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-1095
SELECT - COALESCE ( + - 76, - COUNT ( * ) * + + 70 - CAST ( NULL AS INTEGER ) + 39 + 29 * 37 * 25 ) - + CAST ( - 41 + + ( + 27 ) AS INTEGER )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL - + ( - - ( + + COUNT( * ) ) ) * - 7 + - - 86 col1
----
93

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL - + ( - - ( + + COUNT ( * ) ) ) * - 7 + - - 86 col1
----
93

query I rowsort
SELECT ( - 27 ) * - 21 + - 21 AS col2
----
546

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT + 83 DIV - 95 + - - 15 + + 34 DIV + + 59 * 51
----
15

skipif mysql # not compatible
query I rowsort label-1098
SELECT + 83 / - 95 + - - 15 + + 34 / + + 59 * 51
----
15

query II rowsort
SELECT + 86 AS col0, 58 AS col1
----
86
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT + - COALESCE ( - 91, - COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1100
SELECT + - COALESCE ( - 91, - COUNT ( * ) ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1101
SELECT ALL + 32 * - CASE WHEN NOT ( NOT + + 53 IS NULL ) THEN 53 * COUNT( * ) + 59 END * - CAST( NULL AS DECIMAL ) + 43 * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL + 32 * - CASE WHEN NOT ( NOT + + 53 IS NULL ) THEN 53 * COUNT ( * ) + 59 END * - CAST ( NULL AS REAL ) + 43 * + 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1102
SELECT - - 17 + - - ( + NULLIF ( + 40, + 43 ) ) DIV 5 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1102
SELECT - - 17 + - - ( + NULLIF ( + 40, + 43 ) ) / 5 AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1103
SELECT 59, 53 DIV - - 46 + - COUNT( DISTINCT - 16 ) - 76 AS col2
----
59
-76

skipif mysql # not compatible
query II rowsort label-1103
SELECT 59, 53 / - - 46 + - COUNT ( DISTINCT - 16 ) - 76 AS col2
----
59
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT - - 67 * + - 53 * - 0 * - + COUNT( * ) + - 78 + + + 67
----
-11

skipif mysql # not compatible
query I rowsort label-1104
SELECT - - 67 * + - 53 * - 0 * - + COUNT ( * ) + - 78 + + + 67
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1105
SELECT ALL CASE - + 42 WHEN + ( + 95 ) THEN + - 12 / - 17 - - + ( + CAST( - 63 AS SIGNED ) ) WHEN 76 THEN NULL END / + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL CASE - + 42 WHEN + ( + 95 ) THEN + - 12 / - 17 - - + ( + CAST ( - 63 AS INTEGER ) ) WHEN 76 THEN NULL END / + 32 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1106
SELECT 32 * - + 50 + - + 29 DIV - 91 * + 69 AS col2, - 64
----
-1600
-64

skipif mysql # not compatible
query II rowsort label-1106
SELECT 32 * - + 50 + - + 29 / - 91 * + 69 AS col2, - 64
----
-1600
-64

query II rowsort
SELECT + 34 + 60 AS col1, 48 AS col2
----
94
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT CASE - 48 WHEN + 86 * COUNT( ALL NULLIF ( - 32, - 8 ) ) THEN ( NULLIF ( 98, COALESCE ( - COUNT( * ), - 43 ) ) ) - + 99 ELSE NULL END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT CASE - 48 WHEN + 86 * COUNT ( ALL NULLIF ( - 32, - 8 ) ) THEN ( NULLIF ( 98, COALESCE ( - COUNT ( * ), - 43 ) ) ) - + 99 ELSE NULL END * - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT SUM( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-1109
SELECT SUM ( + 51 )
----
51

query I rowsort
SELECT ALL - 81 * 3 + + 77
----
-166

query I rowsort
SELECT + 98 + - + 45 * 35 col0
----
-1477

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT MAX( + + ( + 24 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1112
SELECT MAX ( + + ( + 24 ) ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT + MAX( - 54 ) + + - ( - 71 )
----
17

skipif mysql # not compatible
query I rowsort label-1113
SELECT + MAX ( - 54 ) + + - ( - 71 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT - MAX( DISTINCT 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-1114
SELECT - MAX ( DISTINCT 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT MIN( ALL + - 32 ) * + 74 + - 92 AS col2
----
-2460

skipif mysql # not compatible
query I rowsort label-1115
SELECT MIN ( ALL + - 32 ) * + 74 + - 92 AS col2
----
-2460

query I rowsort
SELECT + 79 + + 65 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT - CASE - 29 WHEN 43 THEN - COUNT( * ) WHEN + 53 / + 42 THEN NULLIF ( + 22, ( 6 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT - CASE - 29 WHEN 43 THEN - COUNT ( * ) WHEN + 53 / + 42 THEN NULLIF ( + 22, ( 6 ) ) END AS col0
----
NULL

query I rowsort
SELECT + ( 21 ) + 44
----
65

query I rowsort
SELECT + 32 * - - ( - CASE 43 WHEN + 60 - + - 41 THEN NULL WHEN - + 86 THEN 10 - 77 * - 0 END ) * 40 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 16 - 28 + 20 col0
----
-24

query I rowsort
SELECT + - 8 + 47
----
39

query II rowsort
SELECT - + ( + + 21 ) AS col2, + 82 AS col0
----
-21
82

query I rowsort
SELECT ALL - 69 * + 11 * 51
----
-38709

query I rowsort
SELECT + - 64 - + 58 - - 32
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1125
SELECT - - 58 DIV + + NULLIF ( + + CASE + 72 WHEN - 64 DIV + - COUNT( * ) * - 59 DIV 56 THEN + 4 WHEN - 18 * + 23 + - 24 THEN 16 * - NULLIF ( 72, + 2 + + 93 ) ELSE MAX( - 7 ) * 55 END, - 25 * - 46 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1125
SELECT - - 58 / + + NULLIF ( + + CASE + 72 WHEN - 64 / + - COUNT ( * ) * - 59 / 56 THEN + 4 WHEN - 18 * + 23 + - 24 THEN 16 * - NULLIF ( 72, + 2 + + 93 ) ELSE MAX ( - 7 ) * 55 END, - 25 * - 46 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT + MIN( 17 ) * - + 26 + - 85 + - 90
----
-617

skipif mysql # not compatible
query I rowsort label-1126
SELECT + MIN ( 17 ) * - + 26 + - 85 + - 90
----
-617

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - 70 + - + 89 + + COUNT( * )
----
-158

skipif mysql # not compatible
query I rowsort label-1128
SELECT - 70 + - + 89 + + COUNT ( * )
----
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT + 14 DIV + + 3
----
4

skipif mysql # not compatible
query I rowsort label-1129
SELECT + 14 / + + 3
----
4

query I rowsort
SELECT - 41 - 64 * + - ( - 49 ) AS col2
----
-3177

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

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

query I rowsort
SELECT - + 57 * - - 92 * 62
----
-325128

query I rowsort
SELECT + ( + - 11 ) * + 76 + - 85 AS col0
----
-921

query I rowsort
SELECT ALL + - 56 col1
----
-56

query I rowsort
SELECT ALL + - 89 * + 74 - - 23
----
-6563

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT + 0 + + 91 * ( + COUNT( + 34 ) ) - + 56 + - + COUNT( * ) * 43
----
-8

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 0 + + 91 * ( + COUNT ( + 34 ) ) - + 56 + - + COUNT ( * ) * 43
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT ALL - COUNT( * ) * - 76 * - COUNT( * ) * - 49 + + ( 61 )
----
3785

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL - COUNT ( * ) * - 76 * - COUNT ( * ) * - 49 + + ( 61 )
----
3785

query I rowsort
SELECT - 86 - - 14 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT NULLIF ( + + 75, - ( - SUM( DISTINCT - - 56 ) ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1139
SELECT NULLIF ( + + 75, - ( - SUM ( DISTINCT - - 56 ) ) ) AS col1
----
75

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

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL + ( COUNT ( DISTINCT + ( 78 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT - COUNT( * ) * 50 * - COUNT( ALL - 32 ) * + + 37 + - - ( + 85 ) + + 65 * 66 - 19
----
6206

skipif mysql # not compatible
query I rowsort label-1141
SELECT - COUNT ( * ) * 50 * - COUNT ( ALL - 32 ) * + + 37 + - - ( + 85 ) + + 65 * 66 - 19
----
6206

query I rowsort
SELECT - 38 + - - 60 + + - 87
----
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT - NULLIF ( + 79, 20 + 42 * 18 + - ( CASE + 74 WHEN COUNT( * ) + - ( + MIN( - 62 ) + 42 / + 46 ) THEN 97 + 20 ELSE NULL END ) ) + 83 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1144
SELECT - NULLIF ( + 79, 20 + 42 * 18 + - ( CASE + 74 WHEN COUNT ( * ) + - ( + MIN ( - 62 ) + 42 / + 46 ) THEN 97 + 20 ELSE NULL END ) ) + 83 AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1145
SELECT ALL CAST( 72 AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL CAST ( 72 AS INTEGER ) AS col1
----
72

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

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT 44 * + + COUNT ( * ) AS col1
----
44

query I rowsort
SELECT ALL 2 * 5 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ( - COUNT( * ) ) - NULLIF ( 13, 44 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-1148
SELECT ( - COUNT ( * ) ) - NULLIF ( 13, 44 ) col0
----
-14

query I rowsort
SELECT DISTINCT - 12 * ( - 27 ) * - 85 * COALESCE ( + 54, + 54 )
----
-1487160

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT SUM( 45 ) + - COUNT( * ) + - 39, MAX( DISTINCT 29 ) + - 43 * - 83 AS col1
----
5
3598

skipif mysql # not compatible
query II rowsort label-1150
SELECT SUM ( 45 ) + - COUNT ( * ) + - 39, MAX ( DISTINCT 29 ) + - 43 * - 83 AS col1
----
5
3598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT + 55 * - - COUNT( * ) * - 62 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT + 55 * - - COUNT ( * ) * - 62 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 42 + 46 AS col2
----
88

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

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

query I rowsort
SELECT 95 + + 56
----
151

query I rowsort
SELECT ALL + CASE - 54 WHEN - 34 + - - 41 * + 33 / - 1 THEN + 87 WHEN + - 58 + NULLIF ( - 45, 42 ) THEN COALESCE ( 25, + 24 * - 74 ) END
----
NULL

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

query I rowsort
SELECT NULLIF ( 86, + - 53 ) AS col0
----
86

query I rowsort
SELECT DISTINCT + 64 * + - 51 + - 5 AS col2
----
-3269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1159
SELECT - - 51 DIV - - 9 + + - SUM( DISTINCT - 8 ) * - 54 + + 47 * + + 72 - COUNT( * ) AS col1
----
2956

skipif mysql # not compatible
query I rowsort label-1159
SELECT - - 51 / - - 9 + + - SUM ( DISTINCT - 8 ) * - 54 + + 47 * + + 72 - COUNT ( * ) AS col1
----
2956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT ALL - CAST( NULL AS SIGNED ) + - CASE - - 63 WHEN - 4 / - 58 + - - 56 + - + 87 THEN NULL ELSE COUNT( * ) - - 83 END + - 55 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL - CAST ( NULL AS INTEGER ) + - CASE - - 63 WHEN - 4 / - 58 + - - 56 + - + 87 THEN NULL ELSE COUNT ( * ) - - 83 END + - 55 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL + ( - - 42 ) + SUM( 92 ) + - + 65 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + ( - - 42 ) + SUM ( 92 ) + - + 65 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + 37 + + NULLIF ( - 82, - 25 ) + - - MAX( + 64 ) + - 4
----
15

skipif mysql # not compatible
query I rowsort label-1162
SELECT + 37 + + NULLIF ( - 82, - 25 ) + - - MAX ( + 64 ) + - 4
----
15

query I rowsort
SELECT ALL 7 * 64
----
448

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT ALL - 60 DIV 64 * - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL - 60 / 64 * - 73 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1165
SELECT - CAST( NULL AS SIGNED ) / - 9 + - - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1165
SELECT - CAST ( NULL AS INTEGER ) / - 9 + - - 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT 62 + + MAX( DISTINCT - + 94 ) + + 90 * 16 + 8
----
1416

skipif mysql # not compatible
query I rowsort label-1166
SELECT 62 + + MAX ( DISTINCT - + 94 ) + + 90 * 16 + 8
----
1416

query I rowsort
SELECT 33 + 69 + - 54 AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1168
SELECT CASE - 70 WHEN + + ( + CAST( NULL AS SIGNED ) ) THEN - + 43 WHEN + - AVG ( ALL 62 ) - 13 - + 34 THEN + 27 ELSE NULL END * 56 - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT CASE - 70 WHEN + + ( + CAST ( NULL AS INTEGER ) ) THEN - + 43 WHEN + - AVG ( ALL 62 ) - 13 - + 34 THEN + 27 ELSE NULL END * 56 - + 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT - 38 * CASE + - 0 WHEN COUNT( * ) DIV - 61 THEN NULL ELSE - NULLIF ( + + AVG ( DISTINCT + + 91 ), - + 17 * 69 ) END + SUM( + 98 + - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT - 38 * CASE + - 0 WHEN COUNT ( * ) / - 61 THEN NULL ELSE - NULLIF ( + + AVG ( DISTINCT + + 91 ), - + 17 * 69 ) END + SUM ( + 98 + - 38 )
----
NULL

query I rowsort
SELECT 78 + + - 22
----
56

query I rowsort
SELECT 49 * + 15 AS col2
----
735

query I rowsort
SELECT 61 * - 58 * 79
----
-279502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1173
SELECT 77 + + + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) - - 57 - - COUNT( * ) * - 21 + + - 91 + - 22 * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1173
SELECT 77 + + + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) - - 57 - - COUNT ( * ) * - 21 + + - 91 + - 22 * 86
----
NULL

query I rowsort
SELECT + 99 * - 33 + + + 43
----
-3224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT SUM( ALL + 0 ) DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1175
SELECT SUM ( ALL + 0 ) / + 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT 74 + + + COALESCE ( - 14, 83 ) * - COUNT( * ) * + 87 AS col0
----
1292

skipif mysql # not compatible
query I rowsort label-1176
SELECT 74 + + + COALESCE ( - 14, 83 ) * - COUNT ( * ) * + 87 AS col0
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT - 30 + - 56 * - SUM( - ( - 98 ) ) AS col0
----
5458

skipif mysql # not compatible
query I rowsort label-1177
SELECT - 30 + - 56 * - SUM ( - ( - 98 ) ) AS col0
----
5458

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT + 69 DIV 6 * 72
----
792

skipif mysql # not compatible
query I rowsort label-1178
SELECT + 69 / 6 * 72
----
792

query I rowsort
SELECT ALL + - 73 + + + 83 * - 39 * + - 63 * + 31 AS col0
----
6321788

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL - 87 + + 4 + + 84 * - - MAX( DISTINCT - - 34 )
----
2773

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL - 87 + + 4 + + 84 * - - MAX ( DISTINCT - - 34 )
----
2773

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT DISTINCT + + 22 + 76 + + 66 DIV + + 78 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT + + 22 + 76 + + 66 / + + 78 AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT - 19 + + 58 DIV + 23 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-1183
SELECT - 19 + + 58 / + 23 AS col0
----
-17

query I rowsort
SELECT ALL - NULLIF ( - 10, - 7 + + 45 ) + - 15 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1185
SELECT - + COALESCE ( + 83, - - SUM( DISTINCT - ( - - CAST( + - 39 AS SIGNED ) ) ) * 22 + + 92 + 28 * 75 )
----
-83

skipif mysql # not compatible
query I rowsort label-1185
SELECT - + COALESCE ( + 83, - - SUM ( DISTINCT - ( - - CAST ( + - 39 AS INTEGER ) ) ) * 22 + + 92 + 28 * 75 )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1186
SELECT ALL - 43 + + 94 DIV + 73 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - 43 + + 94 / + 73 AS col1
----
-42

query I rowsort
SELECT - ( - 47 ) * - 68
----
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1188
SELECT DISTINCT CAST( + 34 AS DECIMAL ) * - - ( + 63 ) * + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT CAST ( + 34 AS REAL ) * - - ( + 63 ) * + ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 69 * - 64
----
-4416

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT ALL 81 DIV 79 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL 81 / 79 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT SUM( DISTINCT 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1191
SELECT SUM ( DISTINCT 51 ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1192
SELECT 72 * CAST( NULL AS SIGNED ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT 72 * CAST ( NULL AS INTEGER ) * 66
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT SUM( ALL - - 62 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-1194
SELECT SUM ( ALL - - 62 ) col1
----
62

query I rowsort
SELECT ALL 97 * + 49 AS col0
----
4753

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT + COALESCE ( + 79, - 50 * - MAX( DISTINCT - 80 ) * - COUNT( * ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1196
SELECT + COALESCE ( + 79, - 50 * - MAX ( DISTINCT - 80 ) * - COUNT ( * ) ) AS col1
----
79

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

skipif mysql # not compatible
query I rowsort label-1197
SELECT - CAST ( NULL AS INTEGER ) * 13 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT - SUM( - - CAST( + + ( - - 78 ) AS SIGNED ) ) * 37 * - COUNT( 23 ) * + 2 + 64
----
5836

skipif mysql # not compatible
query I rowsort label-1198
SELECT - SUM ( - - CAST ( + + ( - - 78 ) AS INTEGER ) ) * 37 * - COUNT ( 23 ) * + 2 + 64
----
5836

query I rowsort
SELECT + 73 - + 37 AS col1
----
36

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

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

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

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

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

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

query I rowsort
SELECT - 1 + 24 AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT - 36, COUNT( DISTINCT - 59 ) + - - 76 + 5 + + COUNT( * ) AS col1
----
-36
83

skipif mysql # not compatible
query II rowsort label-1204
SELECT - 36, COUNT ( DISTINCT - 59 ) + - - 76 + 5 + + COUNT ( * ) AS col1
----
-36
83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1206
SELECT ALL + COUNT( * ) + MIN( - ( 39 ) ) * - 1 * + 86 AS col2, 51 * 60 + + 24 * - COUNT( * )
----
3355
3036

skipif mysql # not compatible
query II rowsort label-1206
SELECT ALL + COUNT ( * ) + MIN ( - ( 39 ) ) * - 1 * + 86 AS col2, 51 * 60 + + 24 * - COUNT ( * )
----
3355
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT DISTINCT + MAX( - 13 ) + - + COUNT( * ) - + 50 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT + MAX ( - 13 ) + - + COUNT ( * ) - + 50 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT - ( + 47 ) + - 24 * - COALESCE ( COUNT( * ), 12 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1208
SELECT - ( + 47 ) + - 24 * - COALESCE ( COUNT ( * ), 12 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT - + 69 * + MIN( DISTINCT - - 2 ) + - 27
----
-165

skipif mysql # not compatible
query I rowsort label-1209
SELECT - + 69 * + MIN ( DISTINCT - - 2 ) + - 27
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT - 39 DIV - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1210
SELECT - 39 / - 85 AS col2
----
0

query I rowsort
SELECT + - 95 - - 63 * - ( + - 21 ) * + 71
----
93838

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT - 6 / - CASE - 29 WHEN 60 + 72 + 8 THEN - 34 + - + COUNT( * ) * 58 * + 56 WHEN 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT - 6 / - CASE - 29 WHEN 60 + 72 + 8 THEN - 34 + - + COUNT ( * ) * 58 * + 56 WHEN 91 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1213
SELECT - 24 + + COUNT ( * ) * - 28 AS col2
----
-52

query I rowsort
SELECT - 63 * 51
----
-3213

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT - SUM( ALL ( + 49 ) ) * + - 85
----
4165

skipif mysql # not compatible
query I rowsort label-1215
SELECT - SUM ( ALL ( + 49 ) ) * + - 85
----
4165

query II rowsort
SELECT 60, - 22 AS col1
----
60
-22

query I rowsort
SELECT 69 * - ( + - 83 ) * - 36 + - - 61
----
-206111

query I rowsort
SELECT + 69 - + 75
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1219
SELECT ( + 98 ), + SUM( - + 79 ) col1
----
98
-79

skipif mysql # not compatible
query II rowsort label-1219
SELECT ( + 98 ), + SUM ( - + 79 ) col1
----
98
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1220
SELECT + COALESCE ( - 21, COALESCE ( - 98, - + CAST( NULL AS SIGNED ) ) * + COUNT( * ), - + CAST( NULL AS SIGNED ) * + 16 * - COUNT( * ) + - 60 + 89 ) + + 23
----
2

skipif mysql # not compatible
query I rowsort label-1220
SELECT + COALESCE ( - 21, COALESCE ( - 98, - + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ), - + CAST ( NULL AS INTEGER ) * + 16 * - COUNT ( * ) + - 60 + 89 ) + + 23
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1221
SELECT ALL 79 * + CAST( 65 AS SIGNED ) * 60 AS col0
----
308100

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL 79 * + CAST ( 65 AS INTEGER ) * 60 AS col0
----
308100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1222
SELECT ( 97 ) * - + 9 + - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT ( 97 ) * - + 9 + - - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 26 * - 38
----
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + COUNT( * ) + + + 20 * + ( 43 ) - + CASE ( + COUNT( * ) ) WHEN + 35 THEN NULL ELSE + 98 END
----
763

skipif mysql # not compatible
query I rowsort label-1224
SELECT + COUNT ( * ) + + + 20 * + ( 43 ) - + CASE ( + COUNT ( * ) ) WHEN + 35 THEN NULL ELSE + 98 END
----
763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT + 49 * - NULLIF ( - - 22, + 76 * 70 * - COALESCE ( MIN( ALL + 53 ), + CAST( NULL AS SIGNED ) ) + 29 ) AS col1
----
-1078

skipif mysql # not compatible
query I rowsort label-1225
SELECT + 49 * - NULLIF ( - - 22, + 76 * 70 * - COALESCE ( MIN ( ALL + 53 ), + CAST ( NULL AS INTEGER ) ) + 29 ) AS col1
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT + CASE COUNT( * ) WHEN - 98 * + 46 THEN 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT + CASE COUNT ( * ) WHEN - 98 * + 46 THEN 70 END
----
NULL

query I rowsort
SELECT + 31 + + 50 - 26 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT DISTINCT COALESCE ( 91, 3, + 77 ) * 41 * - 35 * - 32 + + COUNT( * )
----
4178721

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT COALESCE ( 91, 3, + 77 ) * 41 * - 35 * - 32 + + COUNT ( * )
----
4178721

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT ALL - 81 * + + ( COUNT( * ) ) + + - 39
----
-120

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL - 81 * + + ( COUNT ( * ) ) + + - 39
----
-120

query I rowsort
SELECT ALL + NULLIF ( + 52, 33 ) AS col2
----
52

query I rowsort
SELECT ALL + 54 * - 45 + - 97 AS col1
----
-2527

query II rowsort
SELECT + 78 + - - 2 AS col0, - ( + CASE - 8 WHEN + 60 THEN - - AVG ( DISTINCT + 9 ) END ) AS col0
----
80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT - + ( - + CAST( - 11 AS SIGNED ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1233
SELECT - + ( - + CAST ( - 11 AS INTEGER ) ) AS col2
----
-11

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

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

query I rowsort
SELECT + 54 + + NULLIF ( 6, 36 ) - 5 * - 4 AS col1
----
80

query I rowsort
SELECT + + 29 * 71 + + 99 AS col1
----
2158

query I rowsort
SELECT ALL + 43 - - 55 AS col2
----
98

query I rowsort
SELECT DISTINCT CASE 6 WHEN - 60 THEN 88 END * - + 62 + 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1239
SELECT - - 47 + - CAST( 79 AS SIGNED ) + - CAST( NULL AS DECIMAL ) AS col2, + ( + + 5 ) AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-1239
SELECT - - 47 + - CAST ( 79 AS INTEGER ) + - CAST ( NULL AS REAL ) AS col2, + ( + + 5 ) AS col2
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT DISTINCT - 41 * - COUNT( * ) * + - 39
----
-1599

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT - 41 * - COUNT ( * ) * + - 39
----
-1599

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT - - CASE 57 WHEN + + 64 + 39 THEN - + MAX( + + 94 ) ELSE - SUM( ALL - + 34 ) END AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1241
SELECT - - CASE 57 WHEN + + 64 + 39 THEN - + MAX ( + + 94 ) ELSE - SUM ( ALL - + 34 ) END AS col0
----
34

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

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

query I rowsort
SELECT + - 3 * - 45 * - + 44 AS col1
----
-5940

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT ALL + 16, + COUNT( * ) * - + CASE WHEN NOT COUNT( * ) <= + - 44 - - COUNT( - 55 ) THEN 6 * - 60 * - 60 END AS col0
----
16
-21600

skipif mysql # not compatible
query II rowsort label-1244
SELECT ALL + 16, + COUNT ( * ) * - + CASE WHEN NOT COUNT ( * ) <= + - 44 - - COUNT ( - 55 ) THEN 6 * - 60 * - 60 END AS col0
----
16
-21600

query I rowsort
SELECT - 40 + + 67 col0
----
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1247
SELECT 52 * - COUNT( * ), - 79 col2
----
-52
-79

skipif mysql # not compatible
query II rowsort label-1247
SELECT 52 * - COUNT ( * ), - 79 col2
----
-52
-79

query I rowsort
SELECT 62 * - + 38
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT DISTINCT + 56 + + + COUNT( * ) - + 77
----
-20

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT + 56 + + + COUNT ( * ) - + 77
----
-20

query I rowsort
SELECT 77 * + + ( + + 31 )
----
2387

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT ALL + 39 + - COUNT( * ) AS col1, 20
----
38
20

skipif mysql # not compatible
query II rowsort label-1251
SELECT ALL + 39 + - COUNT ( * ) AS col1, 20
----
38
20

query I rowsort
SELECT 87 * - + ( + 79 )
----
-6873

query I rowsort
SELECT DISTINCT - 66 * 18
----
-1188

query II rowsort
SELECT ALL + 12 + - 95 col0, + 65 * + 26 - - 77 AS col2
----
-83
1767

query II rowsort
SELECT ALL 37 + + 49 AS col1, 87
----
86
87

query I rowsort
SELECT DISTINCT - 67 * - 40 col1
----
2680

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL + 12 + + CASE - NULLIF ( + 50, + - 5 ) WHEN - ( + 98 ) THEN - COUNT( * ) WHEN + 10 THEN NULL ELSE NULL END + - 68 / 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL + 12 + + CASE - NULLIF ( + 50, + - 5 ) WHEN - ( + 98 ) THEN - COUNT ( * ) WHEN + 10 THEN NULL ELSE NULL END + - 68 / 72 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 94 + - - 14 AS col1
----
108

query I rowsort
SELECT DISTINCT 97 + + + 15 col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT + MIN( + 52 ) col0, - 72 * - 86
----
52
6192

skipif mysql # not compatible
query II rowsort label-1260
SELECT + MIN ( + 52 ) col0, - 72 * - 86
----
52
6192

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT + 82 * MIN( ALL + 91 ) + + COUNT( * ) + - SUM( + 89 ) * + 25 * + + 94 AS col1
----
-201687

skipif mysql # not compatible
query I rowsort label-1261
SELECT + 82 * MIN ( ALL + 91 ) + + COUNT ( * ) + - SUM ( + 89 ) * + 25 * + + 94 AS col1
----
-201687

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1262
SELECT 46 * - + 26 + 89 + + + ( + COALESCE ( + 27, + 22, + - COUNT( - 59 ), + - ( + 47 ) + - 49 ) ) DIV 82
----
-1107

skipif mysql # not compatible
query I rowsort label-1262
SELECT 46 * - + 26 + 89 + + + ( + COALESCE ( + 27, + 22, + - COUNT ( - 59 ), + - ( + 47 ) + - 49 ) ) / 82
----
-1107

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL COUNT( ALL - 46 ) * - - 66
----
66

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL COUNT ( ALL - 46 ) * - - 66
----
66

query I rowsort
SELECT - 95 * 40 + 15
----
-3785

query I rowsort
SELECT - 43 + + 7 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL MIN( DISTINCT 85 ) * + + 92 + + 65 * + MIN( + - 72 ) AS col0
----
3140

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL MIN ( DISTINCT 85 ) * + + 92 + + 65 * + MIN ( + - 72 ) AS col0
----
3140

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT COUNT( * ) * - - 62 * 54 AS col0
----
3348

skipif mysql # not compatible
query I rowsort label-1267
SELECT COUNT ( * ) * - - 62 * 54 AS col0
----
3348

query I rowsort
SELECT ALL + + 74 * + - 97
----
-7178

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

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

query I rowsort
SELECT DISTINCT 39 * + 39
----
1521

query II rowsort
SELECT 49 * + - 82 + - COALESCE ( - ( + - 30 ), + 99 ) + - 48 AS col1, + ( - 96 ) AS col0
----
-4096
-96

query I rowsort
SELECT + 92 + - 75 + - 31 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1273
SELECT + 32 * ( + + 67 ) / + + COUNT( * ) - CASE - CAST( NULL AS SIGNED ) WHEN 42 / 72 * - + AVG ( + 7 ) + + - ( - 81 ) THEN AVG ( + ( - 15 ) ) WHEN 16 THEN 84 WHEN 62 THEN NULL END * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT + 32 * ( + + 67 ) / + + COUNT ( * ) - CASE - CAST ( NULL AS INTEGER ) WHEN 42 / 72 * - + AVG ( + 7 ) + + - ( - 81 ) THEN AVG ( + ( - 15 ) ) WHEN 16 THEN 84 WHEN 62 THEN NULL END * + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT - 59 + + + SUM( - 81 ) AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-1274
SELECT - 59 + + + SUM ( - 81 ) AS col2
----
-140

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

query I rowsort
SELECT ALL 22 + 64 AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1277
SELECT 93 col0, CAST( - 73 AS SIGNED ) * 76 - + 56 AS col2
----
93
-5604

skipif mysql # not compatible
query II rowsort label-1277
SELECT 93 col0, CAST ( - 73 AS INTEGER ) * 76 - + 56 AS col2
----
93
-5604

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT ALL + 43 + - 16 DIV - 85 - + 11
----
32

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + 43 + - 16 / - 85 - + 11
----
32

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

query I rowsort
SELECT DISTINCT + 25 + + 80 AS col1
----
105

query I rowsort
SELECT ALL 50 * + 92
----
4600

query II rowsort
SELECT 79 AS col0, + 48 AS col2
----
79
48

query I rowsort
SELECT 87 * + 10
----
870

query I rowsort
SELECT ALL + 43 + + 85 AS col2
----
128

query I rowsort
SELECT ( + - 21 ) + + 73
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1286
SELECT - 21 AS col0, COUNT( * ) AS col0
----
-21
1

skipif mysql # not compatible
query II rowsort label-1286
SELECT - 21 AS col0, COUNT ( * ) AS col0
----
-21
1

query II rowsort
SELECT 23, 30 col0
----
23
30

query II rowsort
SELECT ALL - 80 + - + ( + 96 ), - 88 AS col1
----
-176
-88

query I rowsort
SELECT + 46 / + 51 + + 14 + - 87 * + + ( - CASE + 86 WHEN 98 THEN - 14 * - 80 END )
----
NULL

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

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

query I rowsort
SELECT DISTINCT 67 + + 55
----
122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT 2 + - - 32 + - 25 * - 75 + + ( + ( - + CASE + - 25 WHEN + + COUNT( * ) THEN NULL WHEN + - 47 * + COUNT( * ) THEN NULL ELSE + SUM( ALL - 5 ) * - CASE 60 + - 91 * + 24 WHEN + 76 * 60 THEN NULLIF ( + 52, COUNT( * ) ) * 37 WHEN + 17 THEN NULL END + - 18 * 20 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1293
SELECT 2 + - - 32 + - 25 * - 75 + + ( + ( - + CASE + - 25 WHEN + + COUNT ( * ) THEN NULL WHEN + - 47 * + COUNT ( * ) THEN NULL ELSE + SUM ( ALL - 5 ) * - CASE 60 + - 91 * + 24 WHEN + 76 * 60 THEN NULLIF ( + 52, COUNT ( * ) ) * 37 WHEN + 17 THEN NULL END + - 18 * 20 END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT ALL + 8 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + 8 / 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1295
SELECT 71 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-1295
SELECT 71 / 97
----
0

query I rowsort
SELECT - 74 + - + 32 * + + COALESCE ( 41, + + 54 * 24, + - 47 - 85 ) AS col0
----
-1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL + SUM( 50 ) * - 91 * - CAST( - - 40 AS SIGNED ) AS col0
----
182000

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + SUM ( 50 ) * - 91 * - CAST ( - - 40 AS INTEGER ) AS col0
----
182000

query I rowsort
SELECT DISTINCT - NULLIF ( + 75, + ( + 93 ) ) - - 55 * - 69
----
-3870

query II rowsort
SELECT + 97 + - 24 * + 52, - ( 75 ) AS col0
----
-1151
-75

query II rowsort
SELECT ALL - + 6 AS col2, 2
----
-6
2

query I rowsort
SELECT ALL + 7 * + - 9 AS col0
----
-63

query I rowsort
SELECT DISTINCT - + 9 - + 40 * + - 39 AS col2
----
1551

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

query I rowsort
SELECT DISTINCT - + 37 col1
----
-37

query II rowsort
SELECT 20 * 26 * - - 22, - 60 col1
----
11440
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT COUNT( 21 ) * - - 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1306
SELECT COUNT ( 21 ) * - - 74 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1307
SELECT ALL 24, + COALESCE ( - - ( - 95 ), + - 12 + + COUNT( * ), 81 * + 31 * - - COUNT( ALL + + CAST( NULL AS SIGNED ) ) * - COALESCE ( - COUNT( * ), + - 51, - 30 ) DIV + 6 ) AS col0
----
24
-95

skipif mysql # not compatible
query II rowsort label-1307
SELECT ALL 24, + COALESCE ( - - ( - 95 ), + - 12 + + COUNT ( * ), 81 * + 31 * - - COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) * - COALESCE ( - COUNT ( * ), + - 51, - 30 ) / + 6 ) AS col0
----
24
-95

query II rowsort
SELECT - - 10 AS col2, + 53
----
10
53

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

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

query I rowsort
SELECT - - 69 * + 91 + + 65 AS col1
----
6344

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1311
SELECT ALL + - 4 + ( + 14 ) * - 60 + 65 + - - NULLIF ( 24, - + CAST( NULL AS SIGNED ) DIV - - 30 ) DIV 94 * - 77
----
-779

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL + - 4 + ( + 14 ) * - 60 + 65 + - - NULLIF ( 24, - + CAST ( NULL AS INTEGER ) / - - 30 ) / 94 * - 77
----
-779

query II rowsort
SELECT - + 35 AS col1, 60
----
-35
60

query II rowsort
SELECT ALL 4 + 70, + 2 col0
----
74
2

query I rowsort
SELECT + 10 + + 43
----
53

query I rowsort
SELECT DISTINCT 16 + - 35 + CASE - 56 WHEN + - 91 * ( + + 30 ) + - + 17 THEN 98 * + + 89 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT DISTINCT 33 + - COUNT( * ) + - - 68 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT 33 + - COUNT ( * ) + - - 68 AS col1
----
100

query II rowsort
SELECT + 45 * + 3 AS col1, - 15 + 81
----
135
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1319
SELECT ALL 68 + - 54 + + COUNT( * ) * - + 9, - 86 * + COALESCE ( 16, - 61 * - 96 - + + ( - 53 ) - + 60, + 24 + - 87 * + 15 ) + - 76 * 43 AS col2
----
5
-4644

skipif mysql # not compatible
query II rowsort label-1319
SELECT ALL 68 + - 54 + + COUNT ( * ) * - + 9, - 86 * + COALESCE ( 16, - 61 * - 96 - + + ( - 53 ) - + 60, + 24 + - 87 * + 15 ) + - 76 * 43 AS col2
----
5
-4644

query I rowsort
SELECT + 74 * + - 30
----
-2220

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT + CASE - CASE + 38 WHEN + - 13 THEN + - 84 + - 80 - - - 99 + + - ( - - 47 ) WHEN + - 29 THEN - + 62 * - - COUNT( DISTINCT + 10 ) - + 76 + + 82 / - 78 ELSE NULL END WHEN - COUNT( * ) * + 67 + + 30 THEN - 60 / - 90 + 14 WHEN + COALESCE ( 75, + 83, 96 + 24 ) THEN NULL WHEN + 31 THEN + NULLIF ( COUNT( * ), + 79 + + COUNT( * ) ) * 68 WHEN - COALESCE ( - 45, - 87 ) THEN NULL END * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT + CASE - CASE + 38 WHEN + - 13 THEN + - 84 + - 80 - - - 99 + + - ( - - 47 ) WHEN + - 29 THEN - + 62 * - - COUNT ( DISTINCT + 10 ) - + 76 + + 82 / - 78 ELSE NULL END WHEN - COUNT ( * ) * + 67 + + 30 THEN - 60 / - 90 + 14 WHEN + COALESCE ( 75, + 83, 96 + 24 ) THEN NULL WHEN + 31 THEN + NULLIF ( COUNT ( * ), + 79 + + COUNT ( * ) ) * 68 WHEN - COALESCE ( - 45, - 87 ) THEN NULL END * 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1322
SELECT + 56 + MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) * 8 * - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT + 56 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) * 8 * - 59 AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( + 18, + + 27 )
----
-18

query I rowsort
SELECT ALL 35 * + 61 - + - 16 + + 99 AS col1
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL MAX( 46 ) * + 68
----
3128

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL MAX ( 46 ) * + 68
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ( MIN( - 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-1326
SELECT ( MIN ( - 83 ) )
----
-83

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

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

query I rowsort
SELECT COALESCE ( + 12, 59 * 85 ) * + - 43 - 7 + - 13
----
-536

onlyif mysql # aggregate syntax: 
query II rowsort label-1329
SELECT ( - + 67 ), COUNT( * ) + + 92 + + - 94 AS col1
----
-67
-1

skipif mysql # not compatible
query II rowsort label-1329
SELECT ( - + 67 ), COUNT ( * ) + + 92 + + - 94 AS col1
----
-67
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1331
SELECT DISTINCT - - 48 DIV + ( - MIN( - 2 ) ) + - CAST( + - 33 AS SIGNED ) + + 59 DIV - MAX( 89 )
----
57

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT - - 48 / + ( - MIN ( - 2 ) ) + - CAST ( + - 33 AS INTEGER ) + + 59 / - MAX ( 89 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1332
SELECT - + 42 * 60 + + - 99 + COUNT( * ) DIV + ( - 39 ) * - - 40 + CAST( + + 47 AS SIGNED )
----
-2572

skipif mysql # not compatible
query I rowsort label-1332
SELECT - + 42 * 60 + + - 99 + COUNT ( * ) / + ( - 39 ) * - - 40 + CAST ( + + 47 AS INTEGER )
----
-2572

onlyif mysql # DIV for integer division: 
query I rowsort label-1333
SELECT - 34 DIV 13 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1333
SELECT - 34 / 13 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1334
SELECT DISTINCT - - 56 DIV 98 DIV 74 * - CAST( + COUNT( - 93 ) AS SIGNED ) * + 53 DIV + 68 + 38 + - 4
----
34

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT - - 56 / 98 / 74 * - CAST ( + COUNT ( - 93 ) AS INTEGER ) * + 53 / + 68 + 38 + - 4
----
34

query I rowsort
SELECT - 61 * - 20
----
1220

query I rowsort
SELECT - 35 * - 33 + 71 AS col1
----
1226

query I rowsort
SELECT 15 * 21 + - 69 - - 98 + 33 AS col2
----
377

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT - + 10 - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-1338
SELECT - + 10 - COUNT ( * )
----
-11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT - + 40 + - 72 + + MIN( ALL - 75 ) + + COUNT( * ) * - - COUNT( * ) + 61 + + 58 - - COUNT( * ) * 56 * + 16 * + COUNT( * ) + + COUNT( * ) + - - 91 * COUNT( * ) col2
----
921

skipif mysql # not compatible
query I rowsort label-1340
SELECT - + 40 + - 72 + + MIN ( ALL - 75 ) + + COUNT ( * ) * - - COUNT ( * ) + 61 + + 58 - - COUNT ( * ) * 56 * + 16 * + COUNT ( * ) + + COUNT ( * ) + - - 91 * COUNT ( * ) col2
----
921

query I rowsort
SELECT ALL - 11 * - NULLIF ( + 13, - 53 * - + 80 + - CASE + - 6 WHEN - - 69 THEN + 97 + 93 END ) + + 71 AS col1
----
214

query I rowsort
SELECT DISTINCT 18 * + - 16 * 62 + + - 95 * + - 90 + - 53 AS col0
----
-9359

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT DISTINCT - 68 * CASE - 17 WHEN + + 40 * 79 * + 19 + + 72 THEN NULL WHEN + 29 THEN COUNT( * ) ELSE NULL END / 7 + - - 45 - - ( - 22 ) + - - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - 68 * CASE - 17 WHEN + + 40 * 79 * + 19 + + 72 THEN NULL WHEN + 29 THEN COUNT ( * ) ELSE NULL END / 7 + - - 45 - - ( - 22 ) + - - 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT - 77 + + 90 - COUNT( * ) * + 5 * + 19
----
-82

skipif mysql # not compatible
query I rowsort label-1344
SELECT - 77 + + 90 - COUNT ( * ) * + 5 * + 19
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1345
SELECT - 86 * + + CAST( + 95 AS SIGNED ) * - 68 col2
----
555560

skipif mysql # not compatible
query I rowsort label-1345
SELECT - 86 * + + CAST ( + 95 AS INTEGER ) * - 68 col2
----
555560

onlyif mysql # aggregate syntax: 
query II rowsort label-1346
SELECT COUNT( * ) AS col1, + 18 + - 39 * - 94
----
1
3684

skipif mysql # not compatible
query II rowsort label-1346
SELECT COUNT ( * ) AS col1, + 18 + - 39 * - 94
----
1
3684

query I rowsort
SELECT ALL + 80 + + + 12 AS col2
----
92

query I rowsort
SELECT - 33 * + + 16
----
-528

query I rowsort
SELECT + 56 * - 90
----
-5040

query I rowsort
SELECT DISTINCT 62 + + 45 + + 78
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT ALL - 26 + + - 41 + + 58 DIV 85 * + 23 * - ( + COUNT( * ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL - 26 + + - 41 + + 58 / 85 * + 23 * - ( + COUNT ( * ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT DISTINCT + 62 - COUNT( * ) + + + 0 * + - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT + 62 - COUNT ( * ) + + + 0 * + - COUNT ( * ) AS col0
----
61

query I rowsort
SELECT DISTINCT - 8 * - 97
----
776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT ALL CAST( 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL CAST ( 62 AS INTEGER )
----
62

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

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

query I rowsort
SELECT + 55 * + 37
----
2035

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT ALL - 90 * 15 DIV ( - 64 )
----
21

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL - 90 * 15 / ( - 64 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1358
SELECT - 84 + + + 64 + + - CASE 88 WHEN + 93 THEN - + 76 WHEN + 64 THEN NULL END + - 35 + - + CAST( NULL AS SIGNED ) * - 96 + + + SUM( - 41 ) * + 88 * - + ( 47 ) + + 27 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT - 84 + + + 64 + + - CASE 88 WHEN + 93 THEN - + 76 WHEN + 64 THEN NULL END + - 35 + - + CAST ( NULL AS INTEGER ) * - 96 + + + SUM ( - 41 ) * + 88 * - + ( 47 ) + + 27 * + 83
----
NULL

query II rowsort
SELECT ALL 87 AS col2, + ( 43 )
----
87
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT - CAST( + - 33 AS SIGNED ) + 40
----
73

skipif mysql # not compatible
query I rowsort label-1360
SELECT - CAST ( + - 33 AS INTEGER ) + 40
----
73

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

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

query I rowsort
SELECT + 25 * + + 8
----
200

query I rowsort
SELECT + 43 - + + 60
----
-17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1365
SELECT - 99 DIV - + 49 * - + COUNT( * ) + + - 85
----
-87

skipif mysql # not compatible
query I rowsort label-1365
SELECT - 99 / - + 49 * - + COUNT ( * ) + + - 85
----
-87

query I rowsort
SELECT DISTINCT - 18 * + 40
----
-720

query II rowsort
SELECT ALL + 34, 65 col0
----
34
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1368
SELECT ALL + COALESCE ( - 83, 29, - COALESCE ( 39, COUNT( - - 78 ) + + 54, + - 64 ) + - 90 DIV 26 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL + COALESCE ( - 83, 29, - COALESCE ( 39, COUNT ( - - 78 ) + + 54, + - 64 ) + - 90 / 26 ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT + 31 + - 68 DIV + + 98
----
31

skipif mysql # not compatible
query I rowsort label-1369
SELECT + 31 + - 68 / + + 98
----
31

query I rowsort
SELECT ALL - 69 * - 70 * - + 86
----
-415380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1371
SELECT DISTINCT - COUNT( * ) DIV + 22 * 91 * + + SUM( + - 79 ) + 90 + 66 + - COUNT( * ) DIV 76 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT - COUNT ( * ) / + 22 * 91 * + + SUM ( + - 79 ) + 90 + 66 + - COUNT ( * ) / 76 AS col1
----
156

query I rowsort
SELECT + 89 * + 15 AS col1
----
1335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT 30 / + 4 + - + 80 / CASE NULLIF ( COALESCE ( - 21, - - 17 * + + 7 * 15, ( + - ( + 42 ) ) + - 61 ), 99 + + COUNT( * ) * + 91 ) WHEN CAST( 9 AS SIGNED ) + ( + 10 ) * 32 THEN - 49 * 37 WHEN 2 THEN NULL ELSE NULL END + - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT 30 / + 4 + - + 80 / CASE NULLIF ( COALESCE ( - 21, - - 17 * + + 7 * 15, ( + - ( + 42 ) ) + - 61 ), 99 + + COUNT ( * ) * + 91 ) WHEN CAST ( 9 AS INTEGER ) + ( + 10 ) * 32 THEN - 49 * 37 WHEN 2 THEN NULL ELSE NULL END + - 82 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT ALL - 86 DIV + 26 + + 3 * + ( + 70 ) * + 17
----
3567

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL - 86 / + 26 + + 3 * + ( + 70 ) * + 17
----
3567

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

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

query I rowsort
SELECT 93 + 71 AS col1
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1377
SELECT + COALESCE ( - - 63, + - 97 * + 97 DIV + 5 + - COUNT( + ( 51 ) ), + 63 ) * 44 AS col0, 83 AS col0
----
2772
83

skipif mysql # not compatible
query II rowsort label-1377
SELECT + COALESCE ( - - 63, + - 97 * + 97 / + 5 + - COUNT ( + ( 51 ) ), + 63 ) * 44 AS col0, 83 AS col0
----
2772
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT - ( - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT - 42 + + + COUNT( ALL + 2 ) + 57
----
16

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT - 42 + + + COUNT ( ALL + 2 ) + 57
----
16

query I rowsort
SELECT DISTINCT 22 + 13 AS col0
----
35

query I rowsort
SELECT - 61 * + 55 AS col0
----
-3355

query I rowsort
SELECT ALL - 92 * CASE - + 39 WHEN - - ( + 7 ) * + CASE + 9 WHEN + + 47 THEN 22 * - 52 * 27 * 60 WHEN - + 56 THEN NULL END * - 26 * - 22 THEN NULL ELSE + 98 END AS col0
----
-9016

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT DISTINCT - COUNT( DISTINCT - 13 ) + + + 92
----
91

skipif mysql # not compatible
query I rowsort label-1384
SELECT DISTINCT - COUNT ( DISTINCT - 13 ) + + + 92
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1385
SELECT - + ( + - NULLIF ( - - 67, + MIN( DISTINCT + 71 ) ) ), NULLIF ( + 10, - 18 + + NULLIF ( + - 99, + + 36 ) ) * 60 AS col2
----
67
600

skipif mysql # not compatible
query II rowsort label-1385
SELECT - + ( + - NULLIF ( - - 67, + MIN ( DISTINCT + 71 ) ) ), NULLIF ( + 10, - 18 + + NULLIF ( + - 99, + + 36 ) ) * 60 AS col2
----
67
600

query I rowsort
SELECT 97 * - 79 AS col2
----
-7663

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

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

query I rowsort
SELECT 68 + 1 AS col1
----
69

query I rowsort
SELECT 71 * 92 AS col1
----
6532

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL - 21 * - COUNT( * ) * + + 57
----
1197

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - 21 * - COUNT ( * ) * + + 57
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL 92 - ( - COUNT( * ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 92 - ( - COUNT ( * ) ) AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1392
SELECT DISTINCT 50 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT 50 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 96 * + 52 * - - 62 AS col1
----
309504

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL - 21 * - SUM( DISTINCT - 14 )
----
-294

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL - 21 * - SUM ( DISTINCT - 14 )
----
-294

query II rowsort
SELECT DISTINCT 70, ( + 81 ) AS col2
----
70
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1396
SELECT ALL 76, + 91 + - COUNT( * ) col2
----
76
90

skipif mysql # not compatible
query II rowsort label-1396
SELECT ALL 76, + 91 + - COUNT ( * ) col2
----
76
90

query I rowsort
SELECT 22 * 19
----
418

query II rowsort
SELECT - 32 AS col0, + ( + + 56 )
----
-32
56

query II rowsort
SELECT ALL 85 AS col0, 11 col1
----
85
11

query I rowsort
SELECT NULLIF ( - 15, + - 32 ) + + 98
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT 41 DIV NULLIF ( 50, 29 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1401
SELECT 41 / NULLIF ( 50, 29 ) AS col0
----
0

query I rowsort
SELECT ALL - 59 * - 13 col1
----
767

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT ALL - 86 DIV 78 * - 66
----
66

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL - 86 / 78 * - 66
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT DISTINCT - 77 DIV + + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT - 77 / + + 80 AS col0
----
0

query II rowsort
SELECT DISTINCT 41 col0, + 19
----
41
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1406
SELECT ALL + - 65 * + CAST( 21 AS SIGNED ) * - 64 * 84 AS col1
----
7338240

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + - 65 * + CAST ( 21 AS INTEGER ) * - 64 * 84 AS col1
----
7338240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT DISTINCT - - COALESCE ( NULLIF ( + + 70, - + 72 ), - 72, CAST( NULL AS SIGNED ) * + 52 ) + 9
----
79

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT - - COALESCE ( NULLIF ( + + 70, - + 72 ), - 72, CAST ( NULL AS INTEGER ) * + 52 ) + 9
----
79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1409
SELECT - 44 * + - 11 - - 51 - + - 24 + - 56 * 51 + + - 99 + + + MAX( DISTINCT + ( 29 ) ) - + 61 / - + ( COALESCE ( 31, - 43 * - 51 + 57 ) ) * + ( - 29 ) - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT - 44 * + - 11 - - 51 - + - 24 + - 56 * 51 + + - 99 + + + MAX ( DISTINCT + ( 29 ) ) - + 61 / - + ( COALESCE ( 31, - 43 * - 51 + 57 ) ) * + ( - 29 ) - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT - + 75 * - 17 - - - COUNT( * ) AS col0
----
1274

skipif mysql # not compatible
query I rowsort label-1410
SELECT - + 75 * - 17 - - - COUNT ( * ) AS col0
----
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT ALL 22 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL 22 / + 37
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1412
SELECT ALL COUNT( * ) + + 63 * - + 64 + 12 col2, 55 DIV - - 99 AS col2
----
-4019
0

skipif mysql # not compatible
query II rowsort label-1412
SELECT ALL COUNT ( * ) + + 63 * - + 64 + 12 col2, 55 / - - 99 AS col2
----
-4019
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT 18 - - - 71 / + 30 * - 66 + - CASE - 67 WHEN + SUM( ALL - + 22 ) * - + 40 + COALESCE ( + CASE + 14 WHEN + - COUNT( * ) THEN 49 - COUNT( + 58 ) * + 10 END, - 7 * 85 ) * + 41 THEN + 56 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT 18 - - - 71 / + 30 * - 66 + - CASE - 67 WHEN + SUM ( ALL - + 22 ) * - + 40 + COALESCE ( + CASE + 14 WHEN + - COUNT ( * ) THEN 49 - COUNT ( + 58 ) * + 10 END, - 7 * 85 ) * + 41 THEN + 56 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT ALL 40 DIV 85 * + 37 DIV - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL 40 / 85 * + 37 / - 47 AS col0
----
0

query I rowsort
SELECT ALL + 93 + + + 23 + - + 49
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1416
SELECT - COUNT( * ) AS col1, 48 - + 76
----
-1
-28

skipif mysql # not compatible
query II rowsort label-1416
SELECT - COUNT ( * ) AS col1, 48 - + 76
----
-1
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT - 68 * - 6 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 68 * - 6 - - + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT + MIN( DISTINCT 32 ) * - - ( + COALESCE ( - - 21, - 65 ) ) * + COUNT( * ) + + + 0 + + + 69
----
741

skipif mysql # not compatible
query I rowsort label-1419
SELECT + MIN ( DISTINCT 32 ) * - - ( + COALESCE ( - - 21, - 65 ) ) * + COUNT ( * ) + + + 0 + + + 69
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL + 52 + + MIN( ALL - 74 )
----
-22

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + 52 + + MIN ( ALL - 74 )
----
-22

query II rowsort
SELECT - 71, + 9 AS col0
----
-71
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1422
SELECT + - CASE - 37 WHEN + 45 * - - COUNT( * ) THEN - + CAST( - COUNT( * ) AS SIGNED ) + - NULLIF ( + + 73, + 68 ) + + AVG ( - 28 ) - + - AVG ( - 50 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1422
SELECT + - CASE - 37 WHEN + 45 * - - COUNT ( * ) THEN - + CAST ( - COUNT ( * ) AS INTEGER ) + - NULLIF ( + + 73, + 68 ) + + AVG ( - 28 ) - + - AVG ( - 50 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT - 30 * 28 DIV ( + - 4 ) - - - 87
----
123

skipif mysql # not compatible
query I rowsort label-1423
SELECT - 30 * 28 / ( + - 4 ) - - - 87
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT 80 + - + 58 DIV - - 63 + - 75 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1424
SELECT 80 + - + 58 / - - 63 + - 75 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT 62 * + CAST( NULL AS SIGNED ) + ( + 78 ) * - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT 62 * + CAST ( NULL AS INTEGER ) + ( + 78 ) * - - 56
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1426
SELECT 15 + - CAST( NULL AS SIGNED ), - 75 AS col1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-1426
SELECT 15 + - CAST ( NULL AS INTEGER ), - 75 AS col1
----
NULL
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL COUNT( * ) - + 36 * - CAST( + 11 AS SIGNED ) AS col2
----
397

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL COUNT ( * ) - + 36 * - CAST ( + 11 AS INTEGER ) AS col2
----
397

query I rowsort
SELECT 22 * + + 74 * 57 AS col1
----
92796

query I rowsort
SELECT ( 75 ) + + 86
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT ALL - 90 * 27 DIV + 14 AS col0
----
-173

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL - 90 * 27 / + 14 AS col0
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT COUNT( * ) + 28 + - 34
----
-5

skipif mysql # not compatible
query I rowsort label-1431
SELECT COUNT ( * ) + 28 + - 34
----
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1433
SELECT 21 * - 19 * COALESCE ( 94, - 30 * - 82 * + 75 + - - 12 - - 31 * + ( - - 53 ) * + 22 - 94 * - 32, 50 * - 12 + 62 DIV 29 ) * CASE - CAST( 43 AS SIGNED ) * + 13 WHEN - 66 THEN NULL ELSE 17 END
----
-637602

skipif mysql # not compatible
query I rowsort label-1433
SELECT 21 * - 19 * COALESCE ( 94, - 30 * - 82 * + 75 + - - 12 - - 31 * + ( - - 53 ) * + 22 - 94 * - 32, 50 * - 12 + 62 / 29 ) * CASE - CAST ( 43 AS INTEGER ) * + 13 WHEN - 66 THEN NULL ELSE 17 END
----
-637602

query I rowsort
SELECT ALL 96 * + 14
----
1344

query I rowsort
SELECT 27 - + - 35 AS col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1436
SELECT DISTINCT - 73 + + 21 + COUNT( * ) * + COUNT( * ) - - 44, + COUNT( * ) AS col0
----
-7
1

skipif mysql # not compatible
query II rowsort label-1436
SELECT DISTINCT - 73 + + 21 + COUNT ( * ) * + COUNT ( * ) - - 44, + COUNT ( * ) AS col0
----
-7
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1437
SELECT CAST( + - CAST( - 43 AS SIGNED ) AS SIGNED ) * - CASE + 77 WHEN + + 11 THEN + - 69 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT CAST ( + - CAST ( - 43 AS INTEGER ) AS INTEGER ) * - CASE + 77 WHEN + + 11 THEN + - 69 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 14 * - 85 * 82 AS col2, 20 * - 13 * + 34
----
97580
-8840

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - 66 + 51 - + + ( COUNT( * ) ) + 24
----
8

skipif mysql # not compatible
query I rowsort label-1439
SELECT - 66 + 51 - + + ( COUNT ( * ) ) + 24
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT ALL + - 37 + 9 DIV + 67 - 45 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + - 37 + 9 / + 67 - 45 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT - 80 + 58 - MAX( ALL + 25 )
----
-47

skipif mysql # not compatible
query I rowsort label-1441
SELECT - 80 + 58 - MAX ( ALL + 25 )
----
-47

query III rowsort
SELECT + - 97 - + 15, 94 AS col1, - + 45 AS col2
----
-112
94
-45

query I rowsort
SELECT DISTINCT + - 62 * + - 37 * 97 AS col1
----
222518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1444
SELECT ALL + - 76 * - 65 + AVG ( ALL + 58 ) + - CASE + 71 WHEN COUNT( * ) THEN + COUNT( * ) * - 1 ELSE NULL END + - CAST( NULL AS SIGNED ) * - + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL + - 76 * - 65 + AVG ( ALL + 58 ) + - CASE + 71 WHEN COUNT ( * ) THEN + COUNT ( * ) * - 1 ELSE NULL END + - CAST ( NULL AS INTEGER ) * - + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1445
SELECT - - 36 + - COUNT( * ) + + + COALESCE ( - 43, 29 + + 43, - + 28 DIV + 35 * + NULLIF ( - - 53, + 31 ) ) + - 15 DIV + - 92 * - + 98 col0
----
-8

skipif mysql # not compatible
query I rowsort label-1445
SELECT - - 36 + - COUNT ( * ) + + + COALESCE ( - 43, 29 + + 43, - + 28 / + 35 * + NULLIF ( - - 53, + 31 ) ) + - 15 / + - 92 * - + 98 col0
----
-8

query I rowsort
SELECT DISTINCT + 98 * + 72 - + - 5 + + 63 + + + 40 + + 0 * + - 66 + + 93
----
7257

query I rowsort
SELECT ALL + 63 * - 60 - 62 + + 26 + 55
----
-3761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1448
SELECT ALL 45 * - + 23 + 69 - + CAST( SUM( 15 ) AS SIGNED ) + - COUNT( * )
----
-982

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL 45 * - + 23 + 69 - + CAST ( SUM ( 15 ) AS INTEGER ) + - COUNT ( * )
----
-982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1449
SELECT - ( - + ( + 77 ) ) * - + SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1449
SELECT - ( - + ( + 77 ) ) * - + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1450
SELECT + 52 * - - COUNT( * ) AS col0, - COUNT( * ) * + - 35 + + 68 AS col1
----
52
103

skipif mysql # not compatible
query II rowsort label-1450
SELECT + 52 * - - COUNT ( * ) AS col0, - COUNT ( * ) * + - 35 + + 68 AS col1
----
52
103

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT - 96 * + 59 + + 68 * - COUNT( * ) + - 16
----
-5748

skipif mysql # not compatible
query I rowsort label-1452
SELECT - 96 * + 59 + + 68 * - COUNT ( * ) + - 16
----
-5748

onlyif mysql # DIV for integer division: 
query I rowsort label-1453
SELECT ALL 40 DIV - 57 * - 46
----
0

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL 40 / - 57 * - 46
----
0

query I rowsort
SELECT DISTINCT - 5 * + 59 - + 69 AS col2
----
-364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT ALL + CAST( NULL AS SIGNED ) * 65 - - + ( 28 ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + CAST ( NULL AS INTEGER ) * 65 - - + ( 28 ) + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT ALL + 67 AS col0, - ( + COUNT( * ) ) * - + 95 + - COUNT( * ) + + ( - MAX( ALL - + 34 ) ) - - + 33
----
67
161

skipif mysql # not compatible
query II rowsort label-1456
SELECT ALL + 67 AS col0, - ( + COUNT ( * ) ) * - + 95 + - COUNT ( * ) + + ( - MAX ( ALL - + 34 ) ) - - + 33
----
67
161

query II rowsort
SELECT + 26 * + - ( - 53 ) AS col1, - 53 * - 74
----
1378
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL COUNT( ALL - - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL COUNT ( ALL - - 15 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT DISTINCT + 14 DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT + 14 / 63 AS col2
----
0

query I rowsort
SELECT + 72 * + + 30
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT DISTINCT + MIN( DISTINCT - NULLIF ( - 64, 3 / 21 + - 56 ) ) * - 58
----
-3712

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT + MIN ( DISTINCT - NULLIF ( - 64, 3 / 21 + - 56 ) ) * - 58
----
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL - COALESCE ( 56, + 97, + 27 ) + ( - CASE - COUNT( * ) WHEN 12 THEN - COUNT( * ) WHEN - 70 * + 99 * + 37 * + 21 THEN NULL END ) + - - COUNT( ALL - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL - COALESCE ( 56, + 97, + 27 ) + ( - CASE - COUNT ( * ) WHEN 12 THEN - COUNT ( * ) WHEN - 70 * + 99 * + 37 * + 21 THEN NULL END ) + - - COUNT ( ALL - 10 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT - - 1 + - - SUM( ALL - 18 ) + + ( - 83 ) * 65 * 79 AS col0
----
-426222

skipif mysql # not compatible
query I rowsort label-1463
SELECT - - 1 + - - SUM ( ALL - 18 ) + + ( - 83 ) * 65 * 79 AS col0
----
-426222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT + + COUNT( * ) DIV + 16 AS col1
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL - - 72 + + 13 - + 61 + 57 + 91 * 63 + COUNT( DISTINCT NULLIF ( - 9, - 50 + + 73 ) ) * - 97
----
5717

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL - - 72 + + 13 - + 61 + 57 + 91 * 63 + COUNT ( DISTINCT NULLIF ( - 9, - 50 + + 73 ) ) * - 97
----
5717

query I rowsort
SELECT ALL + 46 + - + 28 AS col1
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1469
SELECT DISTINCT + 18 + MIN( ALL 56 ) + 6 * + - 99 * + + 75 + + 58 / CAST( NULL AS SIGNED ) / + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT + 18 + MIN ( ALL 56 ) + 6 * + - 99 * + + 75 + + 58 / CAST ( NULL AS INTEGER ) / + 57
----
NULL

query I rowsort
SELECT + ( - NULLIF ( - 82, - 15 ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - 14 * - - 82 + + COUNT( * ) AS col0
----
-1147

skipif mysql # not compatible
query I rowsort label-1471
SELECT - 14 * - - 82 + + COUNT ( * ) AS col0
----
-1147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1472
SELECT ALL + CAST( NULL AS SIGNED ) / - NULLIF ( - CAST( NULL AS SIGNED ), ( + 75 ) ) * + COUNT( * ) + - COUNT( * ) - + - 52 / - - COUNT( * ) * + - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL + CAST ( NULL AS INTEGER ) / - NULLIF ( - CAST ( NULL AS INTEGER ), ( + 75 ) ) * + COUNT ( * ) + - COUNT ( * ) - + - 52 / - - COUNT ( * ) * + - 96 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT CAST( + 29 AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1473
SELECT CAST ( + 29 AS INTEGER ) AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1474
SELECT COUNT( * ) * - + 13 * - + 42 * + + 45 * - 69 DIV - + COUNT( 44 ) - + NULLIF ( + 95, - + 70 )
----
1695235

skipif mysql # not compatible
query I rowsort label-1474
SELECT COUNT ( * ) * - + 13 * - + 42 * + + 45 * - 69 / - + COUNT ( 44 ) - + NULLIF ( + 95, - + 70 )
----
1695235

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

query II rowsort
SELECT DISTINCT + + 6 AS col1, 56 * + 33 AS col0
----
6
1848

onlyif mysql # DIV for integer division: 
query I rowsort label-1477
SELECT + 9 DIV 64 - 68
----
-68

skipif mysql # not compatible
query I rowsort label-1477
SELECT + 9 / 64 - 68
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1478
SELECT - - CASE + 51 WHEN 76 THEN + + 2 WHEN - + 50 + + 86 THEN NULL WHEN + ( + - 69 ) THEN NULLIF ( + 29, + - 26 ) ELSE + CAST( + + 26 AS SIGNED ) * + CASE 55 WHEN - - 8 THEN NULL ELSE - 48 + + + 46 + + 38 * 44 END + + CAST( 85 + + 57 AS SIGNED ) END + - COUNT( * ) * - MAX( DISTINCT 76 + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT - - CASE + 51 WHEN 76 THEN + + 2 WHEN - + 50 + + 86 THEN NULL WHEN + ( + - 69 ) THEN NULLIF ( + 29, + - 26 ) ELSE + CAST ( + + 26 AS INTEGER ) * + CASE 55 WHEN - - 8 THEN NULL ELSE - 48 + + + 46 + + 38 * 44 END + + CAST ( 85 + + 57 AS INTEGER ) END + - COUNT ( * ) * - MAX ( DISTINCT 76 + - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT - 16 * - 69
----
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT ALL + ( - 10 ) DIV 90 + 47 * + - 74 AS col2
----
-3478

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + ( - 10 ) / 90 + 47 * + - 74 AS col2
----
-3478

query II rowsort
SELECT DISTINCT + 80 * + 58, + 61 AS col1
----
4640
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT 99 * 51 - COUNT( * )
----
5048

skipif mysql # not compatible
query I rowsort label-1483
SELECT 99 * 51 - COUNT ( * )
----
5048

query I rowsort
SELECT ALL - 62 * 19
----
-1178

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT - 68 DIV 8 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1485
SELECT - 68 / 8 AS col0
----
-8

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

query I rowsort
SELECT 99 * - 39 + + 20 AS col2
----
-3841

query I rowsort
SELECT CASE - - 53 WHEN - 61 + - 23 THEN NULL ELSE + 44 + + 67 * + - 82 END AS col2
----
-5450

query I rowsort
SELECT - 38 * - 96
----
3648

query I rowsort
SELECT - 97 + - 84
----
-181

query I rowsort
SELECT - 14 * - 0
----
0

query I rowsort
SELECT ALL 85 * + 38 * + 48
----
155040

query I rowsort
SELECT NULLIF ( - 3, + 62 ) AS col0
----
-3

query I rowsort
SELECT ALL 45 * + 92 + + 1 AS col1
----
4141

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT + COUNT( ALL + 93 ) * + 68 * - 99 AS col0, 67 * 59
----
-6732
3953

skipif mysql # not compatible
query II rowsort label-1495
SELECT + COUNT ( ALL + 93 ) * + 68 * - 99 AS col0, 67 * 59
----
-6732
3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1496
SELECT DISTINCT ( + 60 ) * - + ( + - 29 ) AS col1, CAST( NULL AS SIGNED ) + 62 / - + 18 + - COUNT( * ) AS col1
----
1740
NULL

skipif mysql # not compatible
query II rowsort label-1496
SELECT DISTINCT ( + 60 ) * - + ( + - 29 ) AS col1, CAST ( NULL AS INTEGER ) + 62 / - + 18 + - COUNT ( * ) AS col1
----
1740
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1498
SELECT DISTINCT 88 + - + 57 + - - 44 + + COUNT( * ) AS col0, + 63 * + 72 * + 36 - - - 38 DIV 79 AS col2
----
76
163296

skipif mysql # not compatible
query II rowsort label-1498
SELECT DISTINCT 88 + - + 57 + - - 44 + + COUNT ( * ) AS col0, + 63 * + 72 * + 36 - - - 38 / 79 AS col2
----
76
163296

query II rowsort
SELECT ALL - ( 89 ) AS col1, 45
----
-89
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT DISTINCT COUNT( DISTINCT + + COALESCE ( 86, - - 49 * 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT COUNT ( DISTINCT + + COALESCE ( 86, - - 49 * 47 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT ALL - - 70 DIV - 9 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL - - 70 / - 9 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT 93 + - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1503
SELECT 93 + - COUNT ( * ) AS col1
----
92

query I rowsort
SELECT ALL - 14 - - + ( - + 56 )
----
-70

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

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

query I rowsort
SELECT COALESCE ( - + 19, - 94 - 50 * + + 14 ) * + + 46 AS col0
----
-874

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1507
SELECT - 34 - + - 43 * - + 42 * - 64 - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT - 34 - + - 43 * - + 42 * - 64 - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT - 78 + 15 + + + 41 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT - 78 + 15 + + + 41 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT 62 - + - 25 + 17 * + NULLIF ( - + 21, + COUNT( DISTINCT - 21 ) * - 15 ) AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-1509
SELECT 62 - + - 25 + 17 * + NULLIF ( - + 21, + COUNT ( DISTINCT - 21 ) * - 15 ) AS col1
----
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1510
SELECT ( COALESCE ( 73, + 7, - 16 ) ) / COALESCE ( + 83, - 79 ) + + - 32 + - 67 / + 78 / + CAST( NULL AS DECIMAL ) + + + COUNT( * ) - - 76 / + 87 * - - COALESCE ( - CAST( NULL AS SIGNED ), 18, 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT ( COALESCE ( 73, + 7, - 16 ) ) / COALESCE ( + 83, - 79 ) + + - 32 + - 67 / + 78 / + CAST ( NULL AS REAL ) + + + COUNT ( * ) - - 76 / + 87 * - - COALESCE ( - CAST ( NULL AS INTEGER ), 18, 46 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1511
SELECT - ( - 25 ) DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-1511
SELECT - ( - 25 ) / - 58
----
0

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

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

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

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

query II rowsort
SELECT + 49 col2, + 85 + - + 55 AS col0
----
49
30

query II rowsort
SELECT 16 AS col1, 47 AS col2
----
16
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT 3 * - + MAX( ALL + 12 ) + - 15
----
-51

skipif mysql # not compatible
query I rowsort label-1516
SELECT 3 * - + MAX ( ALL + 12 ) + - 15
----
-51

query I rowsort
SELECT 22 * + + 36 AS col1
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1518
SELECT 25 + + 13 + 94 + 89 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT 25 + + 13 + 94 + 89 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 97 AS col2, - 93 AS col2
----
97
-93

query I rowsort
SELECT 2 + + 20
----
22

query I rowsort
SELECT 5 * - 34 AS col0
----
-170

query I rowsort
SELECT ALL - 31 * 88 * + 63
----
-171864

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT - COUNT( * ) * - - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT - COUNT ( * ) * - - 92 AS col2
----
-92

query I rowsort
SELECT ALL + 59 + + 89
----
148

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1525
SELECT ALL - COALESCE ( ( + + ( 66 ) ), - ( - CASE 66 WHEN - + 61 THEN + 27 + + 93 WHEN 66 THEN - ( + 2 ) ELSE NULL END ), 39 + + - ( + + 54 ) ) * - CASE + 11 WHEN - NULLIF ( 23, - 58 - - CAST( NULL AS SIGNED ) ) * COALESCE ( - 5 + + 23, + 0 ) THEN 12 WHEN 73 THEN 63 WHEN - 13 * - 54 THEN + CAST( NULL AS DECIMAL ) + 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL - COALESCE ( ( + + ( 66 ) ), - ( - CASE 66 WHEN - + 61 THEN + 27 + + 93 WHEN 66 THEN - ( + 2 ) ELSE NULL END ), 39 + + - ( + + 54 ) ) * - CASE + 11 WHEN - NULLIF ( 23, - 58 - - CAST ( NULL AS INTEGER ) ) * COALESCE ( - 5 + + 23, + 0 ) THEN 12 WHEN 73 THEN 63 WHEN - 13 * - 54 THEN + CAST ( NULL AS REAL ) + 73 ELSE NULL END
----
NULL

query I rowsort
SELECT 37 + + + 20 * 6 AS col0
----
157

query I rowsort
SELECT ALL - CASE 69 WHEN - - 88 THEN + 56 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 14 * + 86 AS col2
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL + CASE + 91 WHEN + SUM( ALL - 59 ) * - ( + SUM( + 42 ) ) * - - COUNT( * ) THEN + 26 WHEN - - 57 - - 39 * - + 34 * + 90 THEN NULL END + + + 1 * CASE + - MAX( DISTINCT - 70 ) WHEN 46 - + 88 + - - 74 / COUNT( * ) THEN NULL WHEN ( COUNT( * ) ) THEN NULL WHEN + 8 + - ( - 78 ) * COUNT( * ) THEN 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL + CASE + 91 WHEN + SUM ( ALL - 59 ) * - ( + SUM ( + 42 ) ) * - - COUNT ( * ) THEN + 26 WHEN - - 57 - - 39 * - + 34 * + 90 THEN NULL END + + + 1 * CASE + - MAX ( DISTINCT - 70 ) WHEN 46 - + 88 + - - 74 / COUNT ( * ) THEN NULL WHEN ( COUNT ( * ) ) THEN NULL WHEN + 8 + - ( - 78 ) * COUNT ( * ) THEN 41 END
----
NULL

query I rowsort
SELECT 21 * 30 AS col0
----
630

query I rowsort
SELECT 60 * + 96 + - 13 AS col1
----
5747

query I rowsort
SELECT 30 - - 91 col1
----
121

query II rowsort
SELECT + 41 * - 55 + 67 AS col1, + 80 + - + 92 * - 68
----
-2188
6336

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT ALL - 69 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - 69 / 71
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT DISTINCT + 77 DIV - + 4 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT + 77 / - + 4 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL 4 - - 30 * - 69 + - COUNT( * ) AS col1
----
-2067

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL 4 - - 30 * - 69 + - COUNT ( * ) AS col1
----
-2067

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT + MIN( - + 0 ) + 36 col2
----
36

skipif mysql # not compatible
query I rowsort label-1538
SELECT + MIN ( - + 0 ) + 36 col2
----
36

query I rowsort
SELECT - COALESCE ( + - 48, - 14 ) col2
----
48

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

skipif mysql # not compatible
query II rowsort label-1540
SELECT - COUNT ( * ), + 12 AS col1
----
-1
12

query I rowsort
SELECT DISTINCT + 36 * + - 7 AS col1
----
-252

query II rowsort
SELECT DISTINCT 6, - 35 AS col2
----
6
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-1543
SELECT - 32 + + - 43 + - + 92, + MIN( DISTINCT + + 66 ) AS col1
----
-167
66

skipif mysql # not compatible
query II rowsort label-1543
SELECT - 32 + + - 43 + - + 92, + MIN ( DISTINCT + + 66 ) AS col1
----
-167
66

query I rowsort
SELECT 79 * + COALESCE ( + 96, - + 92 ) AS col1
----
7584

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL - MAX( DISTINCT + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - MAX ( DISTINCT + 34 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1546
SELECT - + COALESCE ( + 54, + 38 * - 84 + - + 6 - - CAST( NULL AS SIGNED ) + + COALESCE ( - 70, + 10 ) * + SUM( CAST( NULL AS SIGNED ) ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-1546
SELECT - + COALESCE ( + 54, + 38 * - 84 + - + 6 - - CAST ( NULL AS INTEGER ) + + COALESCE ( - 70, + 10 ) * + SUM ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-1547
SELECT DISTINCT - COUNT( * ) AS col1, 27 * + + NULLIF ( - 31, + COUNT( * ) ) - - COUNT( * ) - 0
----
-1
-836

skipif mysql # not compatible
query II rowsort label-1547
SELECT DISTINCT - COUNT ( * ) AS col1, 27 * + + NULLIF ( - 31, + COUNT ( * ) ) - - COUNT ( * ) - 0
----
-1
-836

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

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

query I rowsort
SELECT ALL - 30 * - 78 * 40 + - 21
----
93579

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1550
SELECT 36 DIV + COUNT( * ) - + 23 * - 67
----
1577

skipif mysql # not compatible
query I rowsort label-1550
SELECT 36 / + COUNT ( * ) - + 23 * - 67
----
1577

query II rowsort
SELECT ALL - 67, - 33 * + 13 col1
----
-67
-429

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1552
SELECT COUNT( * ) + + - ( 35 ) DIV - - 67 * - 53 * + 91 + + + ( + 63 ) - - - 61 + - ( + 74 ) + + 93 + 44 * - 5 AS col2
----
-198

skipif mysql # not compatible
query I rowsort label-1552
SELECT COUNT ( * ) + + - ( 35 ) / - - 67 * - 53 * + 91 + + + ( + 63 ) - - - 61 + - ( + 74 ) + + 93 + 44 * - 5 AS col2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT ALL COALESCE ( + + 38, - + COUNT( * ) * - 55 + + - COALESCE ( SUM( ALL ( 20 ) ), 46, + COUNT( * ) + + ( + 30 ), + SUM( - - 72 ) ), + 6 + + + 50 ) * 33 + + 60 * + ( + + 86 )
----
6414

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL COALESCE ( + + 38, - + COUNT ( * ) * - 55 + + - COALESCE ( SUM ( ALL ( 20 ) ), 46, + COUNT ( * ) + + ( + 30 ), + SUM ( - - 72 ) ), + 6 + + + 50 ) * 33 + + 60 * + ( + + 86 )
----
6414

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1554
SELECT 15 * - + CASE + CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) - + 83 THEN NULL ELSE - COUNT( * ) END
----
15

skipif mysql # not compatible
query I rowsort label-1554
SELECT 15 * - + CASE + CAST ( NULL AS REAL ) WHEN - COUNT ( * ) - + 83 THEN NULL ELSE - COUNT ( * ) END
----
15

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

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT COUNT ( * ) * + 94 / ( + 59 ) * - + 27
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1556
SELECT DISTINCT - 98 * 93 * + CAST( + ( - 20 ) AS SIGNED ) + - + 66 AS col1
----
182214

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT - 98 * 93 * + CAST ( + ( - 20 ) AS INTEGER ) + - + 66 AS col1
----
182214

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL + COALESCE ( - - COUNT( * ), - + 64 ) * - - 90 + 11
----
101

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL + COALESCE ( - - COUNT ( * ), - + 64 ) * - - 90 + 11
----
101

query II rowsort
SELECT ALL - 66 AS col1, + 32 AS col2
----
-66
32

query I rowsort
SELECT DISTINCT 32 * 49
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT MAX( + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-1560
SELECT MAX ( + 13 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1561
SELECT - COUNT( * ) + - 24 + - - 60 * 39 + + CAST( NULL AS SIGNED ) + - - NULLIF ( 26, COUNT( * ) ) * - 26 + + CAST( NULL AS SIGNED ) * + - 76 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT - COUNT ( * ) + - 24 + - - 60 * 39 + + CAST ( NULL AS INTEGER ) + - - NULLIF ( 26, COUNT ( * ) ) * - 26 + + CAST ( NULL AS INTEGER ) * + - 76 col1
----
NULL

query I rowsort
SELECT ALL - 38 * 3 + + - 89
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT 73 * + 82 + + MIN( DISTINCT + ( 96 ) )
----
6082

skipif mysql # not compatible
query I rowsort label-1563
SELECT 73 * + 82 + + MIN ( DISTINCT + ( 96 ) )
----
6082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1564
SELECT - 13 * CAST( NULL AS SIGNED ) * - - 78 / - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1564
SELECT - 13 * CAST ( NULL AS INTEGER ) * - - 78 / - 56
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1565
SELECT + AVG ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1566
SELECT COUNT( * ) AS col0, 20 + 49 AS col1
----
1
69

skipif mysql # not compatible
query II rowsort label-1566
SELECT COUNT ( * ) AS col0, 20 + 49 AS col1
----
1
69

query I rowsort
SELECT ALL + ( + - 15 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1568
SELECT DISTINCT + MAX( ALL - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

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

query I rowsort
SELECT ALL + + 15 - + 56
----
-41

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

query I rowsort
SELECT DISTINCT + 31 * - 7 * 14 AS col0
----
-3038

query I rowsort
SELECT + 19 * + 92 + - 23
----
1725

query I rowsort
SELECT + 10 * + 62 * 51 AS col1
----
31620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1574
SELECT - CASE + SUM( ALL 39 ) WHEN + 39 + - 97 THEN NULL ELSE - 40 - + - 42 + 45 DIV + 96 DIV 80 * - 83 END * + 43 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-1574
SELECT - CASE + SUM ( ALL 39 ) WHEN + 39 + - 97 THEN NULL ELSE - 40 - + - 42 + 45 / + 96 / 80 * - 83 END * + 43 AS col0
----
-86

query II rowsort
SELECT - 6 AS col0, 90 * + 73
----
-6
6570

query I rowsort
SELECT - 33 + - 79 + 25
----
-87

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

query II rowsort
SELECT ALL 79, 89 AS col2
----
79
89

query II rowsort
SELECT - + 43 + - 18 col0, ( 69 ) AS col2
----
-61
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1580
SELECT ALL COALESCE ( SUM( DISTINCT 4 ), - ( CAST( - ( - - AVG ( ALL - + 77 ) ) AS SIGNED ) ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL COALESCE ( SUM ( DISTINCT 4 ), - ( CAST ( - ( - - AVG ( ALL - + 77 ) ) AS INTEGER ) ) ) AS col2
----
4

query I rowsort
SELECT - - 68 + 65
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1582
SELECT - + 51 - - CAST( NULL AS SIGNED ) / - COUNT( * ) * - 37 * - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT - + 51 - - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * - 37 * - - 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1583
SELECT DISTINCT 85 AS col2, + 16 * + MAX( ALL + + CAST( ( - + 53 ) AS SIGNED ) ) * + - 74 AS col0
----
85
62752

skipif mysql # not compatible
query II rowsort label-1583
SELECT DISTINCT 85 AS col2, + 16 * + MAX ( ALL + + CAST ( ( - + 53 ) AS INTEGER ) ) * + - 74 AS col0
----
85
62752

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1584
SELECT ALL - 82 + - 45 AS col0, CAST( NULL AS DECIMAL )
----
-127
NULL

skipif mysql # not compatible
query II rowsort label-1584
SELECT ALL - 82 + - 45 AS col0, CAST ( NULL AS REAL )
----
-127
NULL

query I rowsort
SELECT - 83 + + - 90 - 22 AS col0
----
-195

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

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT + + MIN ( DISTINCT - 3 ) + COUNT ( * ) AS col1
----
-2

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

skipif mysql # not compatible
query II rowsort label-1587
SELECT - - COUNT ( * ), + 22 AS col1
----
1
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1588
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) + - - 37 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + - - 37 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT ALL + 21 + + + 60 - - 0 + CAST( + - 43 AS SIGNED ) + + 17 * - - 2 * 53
----
1840

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL + 21 + + + 60 - - 0 + CAST ( + - 43 AS INTEGER ) + + 17 * - - 2 * 53
----
1840

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

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

query I rowsort
SELECT + 23 * - + 21 * + 35 AS col0
----
-16905

query I rowsort
SELECT - 63 + - 21
----
-84

query I rowsort
SELECT + 27 - - 33 * + 37 * + - 9 col0
----
-10962

onlyif mysql # aggregate syntax: 
query II rowsort label-1594
SELECT ALL COUNT( * ) * 57 AS col2, + 40 AS col0
----
57
40

skipif mysql # not compatible
query II rowsort label-1594
SELECT ALL COUNT ( * ) * 57 AS col2, + 40 AS col0
----
57
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1595
SELECT ALL ( + ( - 53 ) ) + + 21 + CAST( + 49 AS SIGNED ) + - 47 * 65 DIV + NULLIF ( + 14, + 38 - 17 + + 60 * COALESCE ( + 14, 89 + - 64 * - - 95, + 38 + + + 1 ) * - 12 ) AS col1
----
-201

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL ( + ( - 53 ) ) + + 21 + CAST ( + 49 AS INTEGER ) + - 47 * 65 / + NULLIF ( + 14, + 38 - 17 + + 60 * COALESCE ( + 14, 89 + - 64 * - - 95, + 38 + + + 1 ) * - 12 ) AS col1
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1596
SELECT ALL - 4 + - - ( - CAST( + + 27 AS SIGNED ) ) + - 64 + 92 * - 96
----
-8927

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - 4 + - - ( - CAST ( + + 27 AS INTEGER ) ) + - 64 + 92 * - 96
----
-8927

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT ALL + 20 DIV - - 77 + + - ( - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL + 20 / - - 77 + + - ( - 3 )
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL + NULLIF ( - COUNT( * ), + 68 / + 1 * + 47 ) * 71
----
-71

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL + NULLIF ( - COUNT ( * ), + 68 / + 1 * + 47 ) * 71
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1600
SELECT ALL + MAX( - 39 ) DIV + 25 - - 67 + + 52 + + 19 + + - 16 col1
----
121

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + MAX ( - 39 ) / + 25 - - 67 + + 52 + + 19 + + - 16 col1
----
121

query I rowsort
SELECT + 68 + + 0 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT + COUNT( * ) * 2 + + 31
----
33

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT + COUNT ( * ) * 2 + + 31
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ( + CASE + 49 WHEN + 65 * + 34 THEN NULL WHEN - + 96 / 23 THEN NULL ELSE + + 82 + - 93 * ( ( - COUNT( 62 ) ) ) + - + ( + ( - + 34 ) ) * - + 78 - COUNT( * ) END ) AS col2
----
-2478

skipif mysql # not compatible
query I rowsort label-1603
SELECT ( + CASE + 49 WHEN + 65 * + 34 THEN NULL WHEN - + 96 / 23 THEN NULL ELSE + + 82 + - 93 * ( ( - COUNT ( 62 ) ) ) + - + ( + ( - + 34 ) ) * - + 78 - COUNT ( * ) END ) AS col2
----
-2478

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT 78 DIV - 27 + + 16 + + 57
----
71

skipif mysql # not compatible
query I rowsort label-1604
SELECT 78 / - 27 + + 16 + + 57
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT ALL - 93 * - 13 * + COALESCE ( - - 91, - ( - ( + - MAX( + 5 ) ) ) ) - 10 AS col0
----
110009

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL - 93 * - 13 * + COALESCE ( - - 91, - ( - ( + - MAX ( + 5 ) ) ) ) - 10 AS col0
----
110009

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

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT ( COUNT ( - - 99 ) ) / + 91 * - - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1607
SELECT + 8 DIV 72 DIV - 38 * + CASE 8 WHEN 14 THEN NULL ELSE + 69 END AS col2, 4
----
0
4

skipif mysql # not compatible
query II rowsort label-1607
SELECT + 8 / 72 / - 38 * + CASE 8 WHEN 14 THEN NULL ELSE + 69 END AS col2, 4
----
0
4

query I rowsort
SELECT ALL 19 * + 24
----
456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT DISTINCT ( - + CASE 42 WHEN - CASE + COUNT( * ) WHEN 73 THEN NULL WHEN + 76 / - 41 * 38 + + MIN( DISTINCT 51 ) * + 44 THEN + - 25 END * - CAST( + CASE + 62 WHEN + 85 * - 45 + + 49 + 47 THEN NULL WHEN - 93 THEN NULL ELSE + - 52 * 75 END AS SIGNED ) THEN - 31 END ) / - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT ( - + CASE 42 WHEN - CASE + COUNT ( * ) WHEN 73 THEN NULL WHEN + 76 / - 41 * 38 + + MIN ( DISTINCT 51 ) * + 44 THEN + - 25 END * - CAST ( + CASE + 62 WHEN + 85 * - 45 + + 49 + 47 THEN NULL WHEN - 93 THEN NULL ELSE + - 52 * 75 END AS INTEGER ) THEN - 31 END ) / - 28
----
NULL

query I rowsort
SELECT ALL + 16 * + + 75 - ( + + 26 )
----
1174

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT DISTINCT 13 * - - 94 * + COUNT( * ) AS col0
----
1222

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT 13 * - - 94 * + COUNT ( * ) AS col0
----
1222

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ALL 60 * SUM( 94 )
----
5640

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL 60 * SUM ( 94 )
----
5640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT + CAST( 15 AS SIGNED ) + CASE - 6 WHEN + - 24 * - + COUNT( * ) THEN NULL WHEN - COALESCE ( 95, + ( 64 ) + CASE 79 WHEN + - 57 - + 59 THEN + + NULLIF ( - 24, - COUNT( * ) + - 37 * + 78 + COUNT( * ) + + 42 * + + 84 * 21 ) ELSE + 99 * + COALESCE ( - 37 * 40, 85, - 32 ) END ) THEN NULL ELSE SUM( ( - 14 ) ) END + 81
----
82

skipif mysql # not compatible
query I rowsort label-1615
SELECT + CAST ( 15 AS INTEGER ) + CASE - 6 WHEN + - 24 * - + COUNT ( * ) THEN NULL WHEN - COALESCE ( 95, + ( 64 ) + CASE 79 WHEN + - 57 - + 59 THEN + + NULLIF ( - 24, - COUNT ( * ) + - 37 * + 78 + COUNT ( * ) + + 42 * + + 84 * 21 ) ELSE + 99 * + COALESCE ( - 37 * 40, 85, - 32 ) END ) THEN NULL ELSE SUM ( ( - 14 ) ) END + 81
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT + COUNT( * ) * + 80 - - 69 + + 48 * + COUNT( * ) * - 76
----
-3499

skipif mysql # not compatible
query I rowsort label-1616
SELECT + COUNT ( * ) * + 80 - - 69 + + 48 * + COUNT ( * ) * - 76
----
-3499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT - + CAST( - ( + + 45 ) AS SIGNED ) * + 75 col0
----
3375

skipif mysql # not compatible
query I rowsort label-1617
SELECT - + CAST ( - ( + + 45 ) AS INTEGER ) * + 75 col0
----
3375

onlyif mysql # DIV for integer division: 
query I rowsort label-1618
SELECT + 22 - 82 DIV - 49 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1618
SELECT + 22 - 82 / - 49 AS col2
----
23

query II rowsort
SELECT - ( 10 ), - 5 AS col0
----
-10
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT ALL + CASE COUNT( * ) WHEN + - 13 THEN - CAST( + 62 AS SIGNED ) * + + 66 WHEN 1 - - 81 + + - 14 + + + 86 + AVG ( + + COALESCE ( + 0, - + 80 ) ) + - 9 + + 37 / - MIN( 67 ) + - SUM( DISTINCT + + COALESCE ( + 96, - 42 ) ) * 81 * + 6 * + 64 THEN NULL ELSE 46 END AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL + CASE COUNT ( * ) WHEN + - 13 THEN - CAST ( + 62 AS INTEGER ) * + + 66 WHEN 1 - - 81 + + - 14 + + + 86 + AVG ( + + COALESCE ( + 0, - + 80 ) ) + - 9 + + 37 / - MIN ( 67 ) + - SUM ( DISTINCT + + COALESCE ( + 96, - 42 ) ) * 81 * + 6 * + 64 THEN NULL ELSE 46 END AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT + + SUM( + 42 ) * COALESCE ( 6, 26 * + - COUNT( * ) ) AS col0
----
252

skipif mysql # not compatible
query I rowsort label-1621
SELECT + + SUM ( + 42 ) * COALESCE ( 6, 26 * + - COUNT ( * ) ) AS col0
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-1622
SELECT ALL COUNT( * ) + + 68, - ( MIN( ALL + 12 ) ) * + 16 + - - 3 + 16 AS col0
----
69
-173

skipif mysql # not compatible
query II rowsort label-1622
SELECT ALL COUNT ( * ) + + 68, - ( MIN ( ALL + 12 ) ) * + 16 + - - 3 + 16 AS col0
----
69
-173

query I rowsort
SELECT ALL + 36 + + ( + - 48 ) + - - 68 + - 71 * - 50
----
3606

query I rowsort
SELECT ALL + 25 + - 82 * + 5
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL - + MIN( - 5 ) + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL - + MIN ( - 5 ) + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT + ( - 33 ) + + 44 * NULLIF ( + - COUNT( * ), 95 / + - 5 + - 64 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT + ( - 33 ) + + 44 * NULLIF ( + - COUNT ( * ), 95 / + - 5 + - 64 ) AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1627
SELECT - + 65 + + + 77 AS col0, SUM( DISTINCT + 1 ) + + COUNT( * ) + + 87 DIV + 23 - + - 0 + - 8 + - MAX( ALL - - 24 ) * - + 8
----
12
189

skipif mysql # not compatible
query II rowsort label-1627
SELECT - + 65 + + + 77 AS col0, SUM ( DISTINCT + 1 ) + + COUNT ( * ) + + 87 / + 23 - + - 0 + - 8 + - MAX ( ALL - - 24 ) * - + 8
----
12
189

query I rowsort
SELECT ALL - 90 + + + 64 AS col1
----
-26

query I rowsort
SELECT DISTINCT CASE 38 WHEN + + 43 THEN - 61 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT - 92 * 61 DIV + + 96
----
-58

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 92 * 61 / + + 96
----
-58

query I rowsort
SELECT - 68 * - + 47
----
3196

query I rowsort
SELECT - 38 + - + 46 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL - MIN( ALL + - 23 ) - - - 43 + 28 * - 53 * + COUNT( * ) * - 33 AS col0
----
48952

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - MIN ( ALL + - 23 ) - - - 43 + 28 * - 53 * + COUNT ( * ) * - 33 AS col0
----
48952

query I rowsort
SELECT ALL + 9 - + - 64
----
73

query II rowsort
SELECT ALL - 1, 97 * - 81 AS col1
----
-1
-7857

query I rowsort
SELECT ALL 78 * + 4
----
312

query I rowsort
SELECT 40 + + 53 * - 82 * - 82 * 6 col1
----
2138272

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT COUNT( + 6 ) * + 81 + - MAX( + 39 ) * + 92 * - 54 + + + 55 * + COUNT( * ) * - 44
----
191413

skipif mysql # not compatible
query I rowsort label-1638
SELECT COUNT ( + 6 ) * + 81 + - MAX ( + 39 ) * + 92 * - 54 + + + 55 * + COUNT ( * ) * - 44
----
191413

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1639
SELECT 50, 68 + - 47 - 39 + - CAST( NULL AS SIGNED ) - + 73 + + 2 + NULLIF ( 65, + - 47 ) / + 37 + + 78 AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1639
SELECT 50, 68 + - 47 - 39 + - CAST ( NULL AS INTEGER ) - + 73 + + 2 + NULLIF ( 65, + - 47 ) / + 37 + + 78 AS col0
----
50
NULL

query I rowsort
SELECT + 29 * - 21 - 40 AS col1
----
-649

query I rowsort
SELECT ( - + 74 ) * + 46
----
-3404

query II rowsort
SELECT ALL - 72, 30 AS col1
----
-72
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT + 62 DIV - + 67 - - + 70
----
70

skipif mysql # not compatible
query I rowsort label-1643
SELECT + 62 / - + 67 - - + 70
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1644
SELECT ALL - 81 / CAST( 88 AS SIGNED ) * + 76 * MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL - 81 / CAST ( 88 AS INTEGER ) * + 76 * MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 47 * 3 * - 50 AS col1
----
-7050

query I rowsort
SELECT + - 30 * 98 + - 27
----
-2967

query II rowsort
SELECT + 2 AS col0, COALESCE ( + 65, 36 ) AS col0
----
2
65

query I rowsort
SELECT + 20 + 94 AS col1
----
114

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1650
SELECT ALL 68 + 7 + - 91, + 61 * - MIN( ALL + + 38 ) - CASE CAST( NULL AS SIGNED ) WHEN 41 - 62 + - 61 + 53 * + 16 * + - 87 * + - 24 THEN CASE - - 88 WHEN 80 + - 66 * - + ( + ( + 95 ) ) / - 75 THEN + COUNT( * ) * + 0 WHEN 36 THEN NULL END - - 63 END + + ( 72 ) AS col2
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-1650
SELECT ALL 68 + 7 + - 91, + 61 * - MIN ( ALL + + 38 ) - CASE CAST ( NULL AS INTEGER ) WHEN 41 - 62 + - 61 + 53 * + 16 * + - 87 * + - 24 THEN CASE - - 88 WHEN 80 + - 66 * - + ( + ( + 95 ) ) / - 75 THEN + COUNT ( * ) * + 0 WHEN 36 THEN NULL END - - 63 END + + ( 72 ) AS col2
----
-16
NULL

query I rowsort
SELECT ALL 12 + + ( - 65 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1652
SELECT DISTINCT 16 + + SUM( 22 ) DIV CAST( + + 49 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT 16 + + SUM ( 22 ) / CAST ( + + 49 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - ( - COUNT( DISTINCT + 16 ) ) * + + 29 + 33 * + COUNT( * ) * - + 72 AS col0
----
-2347

skipif mysql # not compatible
query I rowsort label-1653
SELECT - ( - COUNT ( DISTINCT + 16 ) ) * + + 29 + 33 * + COUNT ( * ) * - + 72 AS col0
----
-2347

onlyif mysql # aggregate syntax: 
query II rowsort label-1654
SELECT CASE + 63 WHEN - + 90 THEN + 33 + 65 ELSE NULL END / + 62 AS col2, 69 + - CASE + 2 WHEN - 6 THEN + 96 WHEN 53 THEN + 21 * 38 + 4 + - - 66 WHEN - MIN( ALL + + 0 ) THEN + SUM( DISTINCT - 60 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1654
SELECT CASE + 63 WHEN - + 90 THEN + 33 + 65 ELSE NULL END / + 62 AS col2, 69 + - CASE + 2 WHEN - 6 THEN + 96 WHEN 53 THEN + 21 * 38 + 4 + - - 66 WHEN - MIN ( ALL + + 0 ) THEN + SUM ( DISTINCT - 60 ) END
----
NULL
NULL

query I rowsort
SELECT ALL + 54 + - 34
----
20

query I rowsort
SELECT + 78 * - + 10
----
-780

query I rowsort
SELECT 41 + 89
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL + + 39 + COUNT( * ) col0
----
40

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + + 39 + COUNT ( * ) col0
----
40

query I rowsort
SELECT 34 + - 10 AS col1
----
24

query I rowsort
SELECT ALL - 39 + + 31 AS col0
----
-8

query I rowsort
SELECT DISTINCT - 68 * - 97
----
6596

onlyif mysql # aggregate syntax: 
query II rowsort label-1662
SELECT DISTINCT 91 * - 70 AS col2, + 92 * - COUNT( 90 ) AS col1
----
-6370
-92

skipif mysql # not compatible
query II rowsort label-1662
SELECT DISTINCT 91 * - 70 AS col2, + 92 * - COUNT ( 90 ) AS col1
----
-6370
-92

query I rowsort
SELECT DISTINCT 9 * - - 47
----
423

query I rowsort
SELECT 15 * + 77 * + 8
----
9240

query II rowsort
SELECT 50 + + 8, 20 AS col2
----
58
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ( - COUNT( * ) ) + - - 74
----
73

skipif mysql # not compatible
query I rowsort label-1666
SELECT ( - COUNT ( * ) ) + - - 74
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT 66 - - NULLIF ( - - 44, 40 * - 80 * - COUNT( * ) ) + + - 48 + + - 24 * - 29
----
758

skipif mysql # not compatible
query I rowsort label-1667
SELECT 66 - - NULLIF ( - - 44, 40 * - 80 * - COUNT ( * ) ) + + - 48 + + - 24 * - 29
----
758

query I rowsort
SELECT ALL - 42 - - + 15 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT 46 DIV - 45 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1669
SELECT 46 / - 45 AS col2
----
-1

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

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

query I rowsort
SELECT ALL - 6 * + + 8 * 37 AS col2
----
-1776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT + 62 * SUM( 16 ) + + CAST( 20 AS SIGNED ) AS col1
----
1012

skipif mysql # not compatible
query I rowsort label-1673
SELECT + 62 * SUM ( 16 ) + + CAST ( 20 AS INTEGER ) AS col1
----
1012

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT MIN( - 73 ) * + COUNT( * ) + - - 53, 10 AS col2
----
-20
10

skipif mysql # not compatible
query II rowsort label-1674
SELECT MIN ( - 73 ) * + COUNT ( * ) + - - 53, 10 AS col2
----
-20
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1675
SELECT 52 DIV + - COALESCE ( + 14, COUNT( * ), 83 ) + - - 61 + - + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-1675
SELECT 52 / + - COALESCE ( + 14, COUNT ( * ), 83 ) + - - 61 + - + COUNT ( * )
----
57

query II rowsort
SELECT DISTINCT + 61 * 36 AS col2, + 36 + + 65 AS col0
----
2196
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1677
SELECT ALL + 52 + - 28 + + SUM( ALL 86 ) * ( + ( ( - CAST( - - 53 AS SIGNED ) ) ) ) * + 54 + + + COUNT( * ) * + MIN( ALL + 45 ) * + 52
----
-243768

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + 52 + - 28 + + SUM ( ALL 86 ) * ( + ( ( - CAST ( - - 53 AS INTEGER ) ) ) ) * + 54 + + + COUNT ( * ) * + MIN ( ALL + 45 ) * + 52
----
-243768

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

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

query I rowsort
SELECT ALL 57 + + 68 AS col1
----
125

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT DISTINCT - 58 + + + 61 + 34 * + 56 * - COALESCE ( - + 19, 67 * - + CAST( + 1 AS SIGNED ), - COUNT( * ) ) * ( ( - COUNT( DISTINCT + + 81 ) ) ) + 43
----
-36130

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT - 58 + + + 61 + 34 * + 56 * - COALESCE ( - + 19, 67 * - + CAST ( + 1 AS INTEGER ), - COUNT ( * ) ) * ( ( - COUNT ( DISTINCT + + 81 ) ) ) + 43
----
-36130

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT COUNT( * ) + - 11 * + COUNT( * ) * - + NULLIF ( + 97, - 73 + + 96 + ( + 89 ) + + 53 + + 15 * - 40 * ( + ( 27 ) ) * 87 * 93 * - + 1 ) AS col2
----
1068

skipif mysql # not compatible
query I rowsort label-1682
SELECT COUNT ( * ) + - 11 * + COUNT ( * ) * - + NULLIF ( + 97, - 73 + + 96 + ( + 89 ) + + 53 + + 15 * - 40 * ( + ( 27 ) ) * 87 * 93 * - + 1 ) AS col2
----
1068

query I rowsort
SELECT + 54 * ( + + 11 ) AS col1
----
594

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT DISTINCT 41 DIV + + 46 * + - 23 DIV COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT 41 / + + 46 * + - 23 / COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT DISTINCT + MIN( + 80 ) + - 17 + 85
----
148

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT + MIN ( + 80 ) + - 17 + 85
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-1687
SELECT + 20 - 74 + 95 * 54 AS col1, COUNT( * ) AS col1
----
5076
1

skipif mysql # not compatible
query II rowsort label-1687
SELECT + 20 - 74 + 95 * 54 AS col1, COUNT ( * ) AS col1
----
5076
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1688
SELECT 69 * + 93 AS col0, - 50 DIV + + COUNT( * )
----
6417
-50

skipif mysql # not compatible
query II rowsort label-1688
SELECT 69 * + 93 AS col0, - 50 / + + COUNT ( * )
----
6417
-50

query I rowsort
SELECT NULLIF ( 9, + 6 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT ALL - COUNT( * ) - + 20 * - - 55 + + CAST( + 26 AS SIGNED )
----
-1075

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - COUNT ( * ) - + 20 * - - 55 + + CAST ( + 26 AS INTEGER )
----
-1075

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT DISTINCT - - 82 DIV - 49 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - - 82 / - 49 AS col2
----
-1

query I rowsort
SELECT ALL + 82 - - 85
----
167

query I rowsort
SELECT + 56 - + 62 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - MAX( - 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1694
SELECT - MAX ( - 24 ) AS col2
----
24

query I rowsort
SELECT + 91 * + - 53 AS col1
----
-4823

query I rowsort
SELECT + 79 - - 57 - - - ( + 38 )
----
98

query I rowsort
SELECT + 25 + ( 86 )
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT - 31 * + + SUM( DISTINCT 51 )
----
-1581

skipif mysql # not compatible
query I rowsort label-1698
SELECT - 31 * + + SUM ( DISTINCT 51 )
----
-1581

onlyif mysql # aggregate syntax: 
query II rowsort label-1699
SELECT DISTINCT + COUNT( * ) col2, - 50 + - - ( + - 13 ) AS col2
----
1
-63

skipif mysql # not compatible
query II rowsort label-1699
SELECT DISTINCT + COUNT ( * ) col2, - 50 + - - ( + - 13 ) AS col2
----
1
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ( - MAX( ALL ( + + 29 ) ) )
----
-29

skipif mysql # not compatible
query I rowsort label-1700
SELECT ( - MAX ( ALL ( + + 29 ) ) )
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL 14 * + + 74 * + + COUNT( * ) * - + ( + ( ( - 96 ) ) ) + - + 91 col2
----
99365

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL 14 * + + 74 * + + COUNT ( * ) * - + ( + ( ( - 96 ) ) ) + - + 91 col2
----
99365

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT + 95 + + COALESCE ( - NULLIF ( 23, + 18 ), - + COUNT( * ) ) + + 70 col2
----
142

skipif mysql # not compatible
query I rowsort label-1703
SELECT + 95 + + COALESCE ( - NULLIF ( 23, + 18 ), - + COUNT ( * ) ) + + 70 col2
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1704
SELECT + COUNT( * ) DIV + CAST( + AVG ( 90 ) AS SIGNED ) * - SUM( - + 6 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1704
SELECT + COUNT ( * ) / + CAST ( + AVG ( 90 ) AS INTEGER ) * - SUM ( - + 6 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1705
SELECT ALL + COUNT( * ), - 5 AS col1
----
1
-5

skipif mysql # not compatible
query II rowsort label-1705
SELECT ALL + COUNT ( * ), - 5 AS col1
----
1
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL 85 * - - 75 * 91 * + + CASE 82 WHEN + + 85 THEN 61 * 90 WHEN - 91 THEN NULL END * 43 + - - MIN( ALL - ( - - 5 ) ) + 95 - 71 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL 85 * - - 75 * 91 * + + CASE 82 WHEN + + 85 THEN 61 * 90 WHEN - 91 THEN NULL END * 43 + - - MIN ( ALL - ( - - 5 ) ) + 95 - 71 + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 81 * + 71 - 46 - - - 67
----
5638

query I rowsort
SELECT - - 60 + + 81
----
141

query I rowsort
SELECT + 77 * + 14 AS col1
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL + - NULLIF ( + COUNT( * ), + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + - NULLIF ( + COUNT ( * ), + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1711
SELECT + 88, - 23 * MAX( ALL 78 ) AS col2
----
88
-1794

skipif mysql # not compatible
query II rowsort label-1711
SELECT + 88, - 23 * MAX ( ALL 78 ) AS col2
----
88
-1794

onlyif mysql # aggregate syntax: 
query II rowsort label-1712
SELECT ALL - 63 * + 15 + + + COUNT( * ) + + 71 + COUNT( * ) AS col2, MIN( + 41 )
----
-872
41

skipif mysql # not compatible
query II rowsort label-1712
SELECT ALL - 63 * + 15 + + + COUNT ( * ) + + 71 + COUNT ( * ) AS col2, MIN ( + 41 )
----
-872
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT + COALESCE ( - NULLIF ( + COUNT( * ), - 53 ), - + 31, ( 58 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1713
SELECT + COALESCE ( - NULLIF ( + COUNT ( * ), - 53 ), - + 31, ( 58 ) )
----
-1

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

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

query I rowsort
SELECT + - NULLIF ( - 73, + 34 ) col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT - + 49 * - + COUNT( * ) * + COUNT( * ) - - 30 * - 63 col2
----
-1841

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - + 49 * - + COUNT ( * ) * + COUNT ( * ) - - 30 * - 63 col2
----
-1841

query I rowsort
SELECT ALL - 13 * + + 13 - 8
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT MAX( ALL - 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1718
SELECT MAX ( ALL - 36 ) AS col0
----
-36

query I rowsort
SELECT ALL - 2 * + 42 * + 64
----
-5376

query I rowsort
SELECT + + NULLIF ( - 0, + + 40 * - 96 * - + 71 - - 35 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT NULLIF ( + MAX( DISTINCT - 58 ), MIN( DISTINCT + + 51 ) * 16 )
----
-58

skipif mysql # not compatible
query I rowsort label-1721
SELECT NULLIF ( + MAX ( DISTINCT - 58 ), MIN ( DISTINCT + + 51 ) * 16 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - 93 + + 12 * COALESCE ( + 8, 58 - + ( MIN( 49 ) ), - 26 )
----
3

skipif mysql # not compatible
query I rowsort label-1722
SELECT - 93 + + 12 * COALESCE ( + 8, 58 - + ( MIN ( 49 ) ), - 26 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT ALL CAST( - 34 AS SIGNED ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL CAST ( - 34 AS INTEGER ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - 33 + ( - 36 ) + NULLIF ( + 20, - COUNT( ALL - 26 ) ) * + NULLIF ( + - 99, - - NULLIF ( + 17, + 99 ) / MIN( NULLIF ( 83, - - 10 ) ) - + - ( - 17 ) ) AS col0
----
-2049

skipif mysql # not compatible
query I rowsort label-1724
SELECT - 33 + ( - 36 ) + NULLIF ( + 20, - COUNT ( ALL - 26 ) ) * + NULLIF ( + - 99, - - NULLIF ( + 17, + 99 ) / MIN ( NULLIF ( 83, - - 10 ) ) - + - ( - 17 ) ) AS col0
----
-2049

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1725
SELECT - 92 DIV - COUNT( * ), - 26 AS col0
----
92
-26

skipif mysql # not compatible
query II rowsort label-1725
SELECT - 92 / - COUNT ( * ), - 26 AS col0
----
92
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1726
SELECT + COUNT( 2 ) * COALESCE ( + 5, + - COALESCE ( - 64, 35 DIV - 2 ) ) * 4 + + 80 - 94 + + 3 * - MIN( 65 ) AS col0, 8
----
-189
8

skipif mysql # not compatible
query II rowsort label-1726
SELECT + COUNT ( 2 ) * COALESCE ( + 5, + - COALESCE ( - 64, 35 / - 2 ) ) * 4 + + 80 - 94 + + 3 * - MIN ( 65 ) AS col0, 8
----
-189
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1727
SELECT DISTINCT 21 * - COUNT( DISTINCT - CAST( - 65 AS SIGNED ) ) * + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT 21 * - COUNT ( DISTINCT - CAST ( - 65 AS INTEGER ) ) * + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT + SUM( 8 ) + - 47
----
-39

skipif mysql # not compatible
query I rowsort label-1728
SELECT + SUM ( 8 ) + - 47
----
-39

query I rowsort
SELECT ALL 49 + 15 * - 35
----
-476

query II rowsort
SELECT + 55 + - - 76 AS col2, 51 AS col2
----
131
51

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

skipif mysql # not compatible
query II rowsort label-1731
SELECT - COUNT ( * ), + 30 AS col1
----
-1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - MIN( - + NULLIF ( + 97, + 52 ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-1732
SELECT - MIN ( - + NULLIF ( + 97, + 52 ) ) AS col2
----
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT DISTINCT 55 + + + CAST( - ( - + ( + 13 ) ) AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT 55 + + + CAST ( - ( - + ( + 13 ) ) AS INTEGER )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT ALL 13 + + - 23 + + - NULLIF ( - 64, 97 * - + CAST( NULL AS SIGNED ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL 13 + + - 23 + + - NULLIF ( - 64, 97 * - + CAST ( NULL AS INTEGER ) ) AS col1
----
54

query I rowsort
SELECT + 1 + 26 AS col1
----
27

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

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

query I rowsort
SELECT DISTINCT 19 + - 90 AS col0
----
-71

query I rowsort
SELECT ALL 83 + 41
----
124

query I rowsort
SELECT + ( - COALESCE ( - + 96, + 32 - - 50 ) ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1741
SELECT 64 * - 9 + + ( - ( 1 ) ) * ( - - 40 ) * + 57 + - ( + - 37 ) + - + COUNT( * ), + 14 + 98 + + 54 + + + 71 * 14 AS col0
----
-2820
1160

skipif mysql # not compatible
query II rowsort label-1741
SELECT 64 * - 9 + + ( - ( 1 ) ) * ( - - 40 ) * + 57 + - ( + - 37 ) + - + COUNT ( * ), + 14 + 98 + + 54 + + + 71 * 14 AS col0
----
-2820
1160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1742
SELECT ALL 78 / - CAST( NULL AS SIGNED ) AS col2, SUM( ALL - 62 ) * - 13
----
NULL
806

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL 78 / - CAST ( NULL AS INTEGER ) AS col2, SUM ( ALL - 62 ) * - 13
----
NULL
806

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT + + CASE + 98 WHEN - COUNT( * ) + - 91 + - 63 / COUNT( * ) THEN 92 * - - ( - 47 ) + 79 * 2 + + 20 ELSE - 17 END
----
-17

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + + CASE + 98 WHEN - COUNT ( * ) + - 91 + - 63 / COUNT ( * ) THEN 92 * - - ( - 47 ) + 79 * 2 + + 20 ELSE - 17 END
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1744
SELECT + 53 * - 89 + CAST( - + 74 AS SIGNED ) AS col0, - COUNT( * ) AS col2
----
-4791
-1

skipif mysql # not compatible
query II rowsort label-1744
SELECT + 53 * - 89 + CAST ( - + 74 AS INTEGER ) AS col0, - COUNT ( * ) AS col2
----
-4791
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT ALL - 3 DIV 56 - - - ( 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL - 3 / 56 - - - ( 38 ) AS col0
----
-38

query I rowsort
SELECT + 75 * + 27
----
2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1747
SELECT + + CASE 33 WHEN - - 43 THEN NULL ELSE - + 16 * 18 + + 95 + + 30 - SUM( + - 8 ) + - - COUNT( * ) + MAX( ALL - - CAST( - 11 AS SIGNED ) ) END AS col2
----
-165

skipif mysql # not compatible
query I rowsort label-1747
SELECT + + CASE 33 WHEN - - 43 THEN NULL ELSE - + 16 * 18 + + 95 + + 30 - SUM ( + - 8 ) + - - COUNT ( * ) + MAX ( ALL - - CAST ( - 11 AS INTEGER ) ) END AS col2
----
-165

query II rowsort
SELECT ALL + 37 AS col0, + 27
----
37
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT + + 37 * MAX( 20 ) + 87
----
827

skipif mysql # not compatible
query I rowsort label-1750
SELECT + + 37 * MAX ( 20 ) + 87
----
827

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT ALL + 26 DIV + 33 * + - 7
----
0

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL + 26 / + 33 * + - 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL - - MIN( 52 ) col2
----
52

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - - MIN ( 52 ) col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT ALL ( 89 ) DIV 87 * ( - 14 ) - - 72 * - COUNT( * ) DIV - + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL ( 89 ) / 87 * ( - 14 ) - - 72 * - COUNT ( * ) / - + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT 19 * + COUNT( * ) * - 33 AS col1
----
-627

skipif mysql # not compatible
query I rowsort label-1754
SELECT 19 * + COUNT ( * ) * - 33 AS col1
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT - 47 + - COUNT( * ) + - - 60 * + - 91
----
-5508

skipif mysql # not compatible
query I rowsort label-1755
SELECT - 47 + - COUNT ( * ) + - - 60 * + - 91
----
-5508

onlyif mysql # DIV for integer division: 
query II rowsort label-1756
SELECT + 28 AS col2, 40 DIV 42 * 14 * - + 69 AS col1
----
28
0

skipif mysql # not compatible
query II rowsort label-1756
SELECT + 28 AS col2, 40 / 42 * 14 * - + 69 AS col1
----
28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL - MAX( + 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - MAX ( + 9 ) AS col0
----
-9

query I rowsort
SELECT 34 - + ( + ( 3 ) ) AS col0
----
31

query I rowsort
SELECT ALL - 55 * + + 25
----
-1375

query I rowsort
SELECT 40 * - 46 AS col0
----
-1840

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT ALL 50 + 79 + - COUNT( * ) col0, 2
----
128
2

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL 50 + 79 + - COUNT ( * ) col0, 2
----
128
2

query II rowsort
SELECT 65 * + + 95 AS col0, 78 AS col2
----
6175
78

query I rowsort
SELECT DISTINCT + 38 + - 44 * + 88 col2
----
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT 46 - + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1764
SELECT 46 - + COUNT ( * ) AS col2
----
45

query I rowsort
SELECT ALL + 20 + COALESCE ( + 27, - + 3 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1766
SELECT DISTINCT + 2 + - 63 * - NULLIF ( - 28, - - 66 / CASE + MIN( - 41 ) WHEN - CASE - CAST( NULL AS SIGNED ) WHEN - + 55 + 94 + 18 THEN - - 74 * 44 + 72 ELSE NULL END / + 74 * + 79 * + MAX( ALL - ( + 45 ) ) THEN - 88 * 87 END * 81 - - 89 ) AS col1
----
-1762

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT + 2 + - 63 * - NULLIF ( - 28, - - 66 / CASE + MIN ( - 41 ) WHEN - CASE - CAST ( NULL AS INTEGER ) WHEN - + 55 + 94 + 18 THEN - - 74 * 44 + 72 ELSE NULL END / + 74 * + 79 * + MAX ( ALL - ( + 45 ) ) THEN - 88 * 87 END * 81 - - 89 ) AS col1
----
-1762

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL COUNT( ALL - 3 ) * - 11
----
-11

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL COUNT ( ALL - 3 ) * - 11
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1768
SELECT SUM( DISTINCT - 21 ) DIV + ( - 88 ) * + 60 col1, 4 col2
----
0
4

skipif mysql # not compatible
query II rowsort label-1768
SELECT SUM ( DISTINCT - 21 ) / + ( - 88 ) * + 60 col1, 4 col2
----
0
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1769
SELECT ALL 60 + + 97 AS col2, - CAST( - + COUNT( + 57 ) AS SIGNED )
----
157
1

skipif mysql # not compatible
query II rowsort label-1769
SELECT ALL 60 + + 97 AS col2, - CAST ( - + COUNT ( + 57 ) AS INTEGER )
----
157
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT 90 - + - COUNT( * ) + - - 83 * - 51
----
-4142

skipif mysql # not compatible
query I rowsort label-1770
SELECT 90 - + - COUNT ( * ) + - - 83 * - 51
----
-4142

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL ( - 89 ) + + - MAX( DISTINCT + 92 ) AS col0
----
-181

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL ( - 89 ) + + - MAX ( DISTINCT + 92 ) AS col0
----
-181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1772
SELECT 6 / + - 41 * 99 * + NULLIF ( CASE 60 WHEN + 98 THEN + 59 ELSE NULL END, - - COUNT( * ) - + 42 * - SUM( COALESCE ( + 72, + 50 ) ) + COUNT( * ) + MAX( - + COALESCE ( + 39, - - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ), + + 11 ) ) * MIN( 69 ) ) col1, + 95
----
NULL
95

skipif mysql # not compatible
query II rowsort label-1772
SELECT 6 / + - 41 * 99 * + NULLIF ( CASE 60 WHEN + 98 THEN + 59 ELSE NULL END, - - COUNT ( * ) - + 42 * - SUM ( COALESCE ( + 72, + 50 ) ) + COUNT ( * ) + MAX ( - + COALESCE ( + 39, - - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ), + + 11 ) ) * MIN ( 69 ) ) col1, + 95
----
NULL
95

query I rowsort
SELECT ( + 57 ) * - 87 - - - 42 AS col0
----
-5001

onlyif mysql # aggregate syntax: 
query II rowsort label-1774
SELECT - 37 + + - ( MAX( ALL + 57 ) ) - + + COUNT( * ) AS col1, 8
----
-95
8

skipif mysql # not compatible
query II rowsort label-1774
SELECT - 37 + + - ( MAX ( ALL + 57 ) ) - + + COUNT ( * ) AS col1, 8
----
-95
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - 6 * + COUNT( * ) * + 85
----
-510

skipif mysql # not compatible
query I rowsort label-1775
SELECT - 6 * + COUNT ( * ) * + 85
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL - + MAX( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL - + MAX ( 93 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1777
SELECT + 9 / - + 99 * 83 + + 26 + + 67 + COUNT( * ) + - 66 * + 44 / + CAST( NULL AS SIGNED ) * 90, - COUNT( * ) * 88 + + COALESCE ( + COUNT( * ), 69, + 32 * + + MAX( - + ( 20 ) ) ) + - COUNT( * ) col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-1777
SELECT + 9 / - + 99 * 83 + + 26 + + 67 + COUNT ( * ) + - 66 * + 44 / + CAST ( NULL AS INTEGER ) * 90, - COUNT ( * ) * 88 + + COALESCE ( + COUNT ( * ), 69, + 32 * + + MAX ( - + ( 20 ) ) ) + - COUNT ( * ) col0
----
NULL
-88

query I rowsort
SELECT + 73 + - 59 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ( - COUNT( * ) ) * + 38 + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-1779
SELECT ( - COUNT ( * ) ) * + 38 + - COUNT ( * )
----
-39

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

query I rowsort
SELECT ALL 39 * - 94 * 24
----
-87984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1782
SELECT 17 / - COUNT( * ) + + 72 * + - 19 * 24 / + - CAST( NULL AS SIGNED ) + - 23 + + + 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT 17 / - COUNT ( * ) + + 72 * + - 19 * 24 / + - CAST ( NULL AS INTEGER ) + - 23 + + + 82 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT MIN( DISTINCT + COALESCE ( 99, + 28, + + 20 ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1783
SELECT MIN ( DISTINCT + COALESCE ( 99, + 28, + + 20 ) ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT + MAX( + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-1784
SELECT + MAX ( + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT 34 * - 75 * + 23 * + COUNT( * )
----
-58650

skipif mysql # not compatible
query I rowsort label-1785
SELECT 34 * - 75 * + 23 * + COUNT ( * )
----
-58650

query I rowsort
SELECT + 45 * - 80
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT + COALESCE ( - 0, - ( + + MAX( + 29 ) ) ) * + + 14 + NULLIF ( - + 14, + 31 )
----
-14

skipif mysql # not compatible
query I rowsort label-1787
SELECT + COALESCE ( - 0, - ( + + MAX ( + 29 ) ) ) * + + 14 + NULLIF ( - + 14, + 31 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT ALL CAST( - 0 AS SIGNED ) + - 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL CAST ( - 0 AS INTEGER ) + - 24 AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1789
SELECT + 34 * + + CAST( NULL AS DECIMAL ) * - - 61 + 77 + - + CAST( COALESCE ( 36, + 89 + - 55 + - 53, + NULLIF ( 59, - 30 ) + + + 16 ) AS SIGNED ) * + 85 * - COALESCE ( 94, 15 * 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT + 34 * + + CAST ( NULL AS REAL ) * - - 61 + 77 + - + CAST ( COALESCE ( 36, + 89 + - 55 + - 53, + NULLIF ( 59, - 30 ) + + + 16 ) AS INTEGER ) * + 85 * - COALESCE ( 94, 15 * 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT DISTINCT 79 + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT 79 + + COUNT ( * )
----
80

query I rowsort
SELECT ALL 38 + ( - 86 ) * - 43
----
3736

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT NULLIF ( 98, 77 * 99 ) + - COALESCE ( + 85, + + 80 * + SUM( + 87 ) + - - 76, - 97 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1792
SELECT NULLIF ( 98, 77 * 99 ) + - COALESCE ( + 85, + + 80 * + SUM ( + 87 ) + - - 76, - 97 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT 15 * 84 - NULLIF ( + 52, + MIN( DISTINCT 27 ) + 82 + - ( 25 ) / SUM( ALL - 94 ) * 8 )
----
1208

skipif mysql # not compatible
query I rowsort label-1793
SELECT 15 * 84 - NULLIF ( + 52, + MIN ( DISTINCT 27 ) + 82 + - ( 25 ) / SUM ( ALL - 94 ) * 8 )
----
1208

query I rowsort
SELECT ( 94 ) + + + 76 + 91 AS col1
----
261

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1795
SELECT ALL COUNT( * ), - MIN( + + 18 ) DIV 68 - - COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1795
SELECT ALL COUNT ( * ), - MIN ( + + 18 ) / 68 - - COUNT ( * )
----
1
1

query I rowsort
SELECT 75 + 46 + + 12 + + 42 * - + 81
----
-3269

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

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL 78 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT DISTINCT 37 + - CAST( + - 56 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT 37 + - CAST ( + - 56 AS INTEGER )
----
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT 90 + 11 + + 87 * - CAST( NULL AS SIGNED ) * - - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT 90 + 11 + + 87 * - CAST ( NULL AS INTEGER ) * - - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL + 16 * + + 36 * - COUNT( ALL 73 ) AS col2
----
-576

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + 16 * + + 36 * - COUNT ( ALL 73 ) AS col2
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT - COALESCE ( + COUNT( * ), 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-1802
SELECT - COALESCE ( + COUNT ( * ), 4 )
----
-1

query I rowsort
SELECT ALL + + 66 - - 7 AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1804
SELECT + 30 * + 29 * - 11 AS col2, ( + + 79 ) * - + 84 * ( - 89 ) + + + 7 + + COUNT( - 57 ) col1
----
-9570
590612

skipif mysql # not compatible
query II rowsort label-1804
SELECT + 30 * + 29 * - 11 AS col2, ( + + 79 ) * - + 84 * ( - 89 ) + + + 7 + + COUNT ( - 57 ) col1
----
-9570
590612

query I rowsort
SELECT 51 * 25 * - - 48 * 73
----
4467600

query II rowsort
SELECT ALL 78, 76 AS col0
----
78
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1807
SELECT - - 0 col0, - MAX( DISTINCT + 55 ) DIV + - 54
----
0
1

skipif mysql # not compatible
query II rowsort label-1807
SELECT - - 0 col0, - MAX ( DISTINCT + 55 ) / + - 54
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1808
SELECT 31 * + + 49 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT 31 * + + 49 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1809
SELECT DISTINCT - - 24 DIV - 47 + + + 48, - 85 AS col0
----
48
-85

skipif mysql # not compatible
query II rowsort label-1809
SELECT DISTINCT - - 24 / - 47 + + + 48, - 85 AS col0
----
48
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL 23 * - CASE - 77 WHEN - SUM( DISTINCT + + 17 ) THEN NULL WHEN - 41 THEN NULL ELSE - 96 END
----
2208

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL 23 * - CASE - 77 WHEN - SUM ( DISTINCT + + 17 ) THEN NULL WHEN - 41 THEN NULL ELSE - 96 END
----
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT - - 21 DIV - - 88 + - - 34
----
34

skipif mysql # not compatible
query I rowsort label-1811
SELECT - - 21 / - - 88 + - - 34
----
34

query I rowsort
SELECT ALL - + 73 * - 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1813
SELECT DISTINCT + 82 AS col1, CASE - 72 WHEN + 4 * + 41 + - 71 + - - 65 THEN NULL ELSE + - CAST( NULL AS DECIMAL ) - + COUNT( * ) + - - 63 * - + 43 * - 58 * + COUNT( * ) + 47 / 55 END
----
82
NULL

skipif mysql # not compatible
query II rowsort label-1813
SELECT DISTINCT + 82 AS col1, CASE - 72 WHEN + 4 * + 41 + - 71 + - - 65 THEN NULL ELSE + - CAST ( NULL AS REAL ) - + COUNT ( * ) + - - 63 * - + 43 * - 58 * + COUNT ( * ) + 47 / 55 END
----
82
NULL

query I rowsort
SELECT - - 35 * - 85 AS col1
----
-2975

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT + COUNT( * ) * - 29 + 20 + + 4 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + COUNT ( * ) * - 29 + 20 + + 4 AS col0
----
-5

query I rowsort
SELECT ALL - + ( + 24 ) * + 98 + - 38 col1
----
-2390

query II rowsort
SELECT + + 92, ( 23 ) AS col1
----
92
23

query II rowsort
SELECT ALL + - 12 col0, NULLIF ( - - 17, + AVG ( + - 85 ) )
----
-12
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT - SUM( ALL - - 11 ) + + - 63
----
-74

skipif mysql # not compatible
query I rowsort label-1819
SELECT - SUM ( ALL - - 11 ) + + - 63
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1820
SELECT COALESCE ( - 5, 98 + - + CASE + 10 WHEN - - 1 THEN 58 * + + COUNT( * ) ELSE - 61 * - - 86 END, + 60 DIV + 77 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1820
SELECT COALESCE ( - 5, 98 + - + CASE + 10 WHEN - - 1 THEN 58 * + + COUNT ( * ) ELSE - 61 * - - 86 END, + 60 / + 77 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT DISTINCT AVG ( DISTINCT - - 78 ) * + - CASE NULLIF ( - 73, + - 12 + + + 11 ) WHEN + COUNT( * ) THEN - 46 WHEN + 78 THEN NULL ELSE NULL END + + - 68 + + 13 * + - 59 * + AVG ( ALL 29 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT AVG ( DISTINCT - - 78 ) * + - CASE NULLIF ( - 73, + - 12 + + + 11 ) WHEN + COUNT ( * ) THEN - 46 WHEN + 78 THEN NULL ELSE NULL END + + - 68 + + 13 * + - 59 * + AVG ( ALL 29 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL 74 * + + COUNT( * ) + - 79
----
-5

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL 74 * + + COUNT ( * ) + - 79
----
-5

query I rowsort
SELECT ALL 43 * + 36 + - + 71 AS col2
----
1477

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT MIN( ALL - ( - 13 ) )
----
13

skipif mysql # not compatible
query I rowsort label-1824
SELECT MIN ( ALL - ( - 13 ) )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT DISTINCT - 25 * + CAST( NULL AS SIGNED ) + + COALESCE ( + - COALESCE ( 23, + COUNT( * ), + 21 - - 47 - + 87 ), - 4 ) * + 97 * COALESCE ( 99, - 28 + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT - 25 * + CAST ( NULL AS INTEGER ) + + COALESCE ( + - COALESCE ( 23, + COUNT ( * ), + 21 - - 47 - + 87 ), - 4 ) * + 97 * COALESCE ( 99, - 28 + + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1826
SELECT ALL ( 60 ) * + + 35 + - CAST( + 41 AS SIGNED ) AS col2, 4 / + + 95 + - - COUNT( * ) * CAST( NULL AS SIGNED )
----
2059
NULL

skipif mysql # not compatible
query II rowsort label-1826
SELECT ALL ( 60 ) * + + 35 + - CAST ( + 41 AS INTEGER ) AS col2, 4 / + + 95 + - - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
2059
NULL

query I rowsort
SELECT + 79 * + ( + - 88 )
----
-6952

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT + 96 DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT + 96 / - 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT + 66 DIV 27 * 3 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1829
SELECT + 66 / 27 * 3 AS col1
----
6

query II rowsort
SELECT + 13 * - 49 AS col1, + 41 * - - 55
----
-637
2255

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT ALL 24 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL 24 / - 84
----
0

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

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

query II rowsort
SELECT - 97 * - + 38, - 50 AS col1
----
3686
-50

query I rowsort
SELECT ALL NULLIF ( - - 62, - 72 ) AS col2
----
62

query I rowsort
SELECT ALL - - 51 * 61
----
3111

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT + SUM( - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-1836
SELECT + SUM ( - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT - - COUNT( * ) * - COUNT( * ) + - 81 col1
----
-82

skipif mysql # not compatible
query I rowsort label-1837
SELECT - - COUNT ( * ) * - COUNT ( * ) + - 81 col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - SUM( DISTINCT + ( - + 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-1838
SELECT - SUM ( DISTINCT + ( - + 62 ) )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1839
SELECT ALL ( 9 ) AS col1, COUNT( * ) * 77
----
9
77

skipif mysql # not compatible
query II rowsort label-1839
SELECT ALL ( 9 ) AS col1, COUNT ( * ) * 77
----
9
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT - + CAST( - 84 AS SIGNED ) - + 18 * + + 77
----
-1302

skipif mysql # not compatible
query I rowsort label-1840
SELECT - + CAST ( - 84 AS INTEGER ) - + 18 * + + 77
----
-1302

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL - 86 * + SUM( - 77 )
----
6622

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - 86 * + SUM ( - 77 )
----
6622

query I rowsort
SELECT + 30 * - + 77
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT - COALESCE ( + 78, - - 82, - 93 + + + 0 + + 6 * + + 95 ) * COUNT( ALL + 43 )
----
-78

skipif mysql # not compatible
query I rowsort label-1843
SELECT - COALESCE ( + 78, - - 82, - 93 + + + 0 + + 6 * + + 95 ) * COUNT ( ALL + 43 )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-1844
SELECT ALL + COALESCE ( + 3, - 17 + COUNT( * ) ) AS col2, 68
----
3
68

skipif mysql # not compatible
query II rowsort label-1844
SELECT ALL + COALESCE ( + 3, - 17 + COUNT ( * ) ) AS col2, 68
----
3
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT - - MAX( ALL - 18 ) * + + MAX( - 24 ) AS col1
----
432

skipif mysql # not compatible
query I rowsort label-1845
SELECT - - MAX ( ALL - 18 ) * + + MAX ( - 24 ) AS col1
----
432

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT DISTINCT - 24 DIV - 87 DIV 6 * - + ( + 12 ) + - - 58 + 80
----
138

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT - 24 / - 87 / 6 * - + ( + 12 ) + - - 58 + 80
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT ALL + 89 DIV - 25 + 33 * 87 AS col0
----
2868

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + 89 / - 25 + 33 * 87 AS col0
----
2868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1848
SELECT ALL - COUNT( * ) DIV 3 + + + 52 DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - COUNT ( * ) / 3 + + + 52 / + 41
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1850
SELECT + CAST( 71 AS SIGNED ) AS col1, + 68 DIV SUM( DISTINCT - - 41 ) * - 38 + - + COUNT( * )
----
71
-39

skipif mysql # not compatible
query II rowsort label-1850
SELECT + CAST ( 71 AS INTEGER ) AS col1, + 68 / SUM ( DISTINCT - - 41 ) * - 38 + - + COUNT ( * )
----
71
-39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1851
SELECT DISTINCT - 81 / CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + ( CAST( + 27 AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT - 81 / CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + ( CAST ( + 27 AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT - 9 DIV + - 6 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1852
SELECT - 9 / + - 6 AS col2
----
1

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

query I rowsort
SELECT + COALESCE ( 5, + 6, 67 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - MAX( + ( + 7 ) ) * + 67 AS col1
----
-469

skipif mysql # not compatible
query I rowsort label-1855
SELECT - MAX ( + ( + 7 ) ) * + 67 AS col1
----
-469

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

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

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

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

query I rowsort
SELECT NULLIF ( - - 94, + 41 * - 89 + - 53 - - - 60 / + - 40 ) AS col2
----
94

query II rowsort
SELECT DISTINCT + 16 AS col1, + 50 col2
----
16
50

query I rowsort
SELECT + ( - 27 ) - - - 79 col2
----
-106

query I rowsort
SELECT + 25 * - 88
----
-2200

query I rowsort
SELECT 62 * 58 * + 70 + ( 75 ) + 65 AS col1
----
251860

query I rowsort
SELECT + 43 - - 59 AS col2
----
102

query I rowsort
SELECT COALESCE ( 11, 94 * + 37 * + - 59 + - 95 + - 1 - + - 47 ) col2
----
11

query I rowsort
SELECT - ( + 95 ) + + + 56 + - 94 AS col2
----
-133

query I rowsort
SELECT - 89 * 48
----
-4272

query I rowsort
SELECT + 95 * - 98 AS col0
----
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT + 13 - - COALESCE ( + + COUNT( * ), + 75, 37 * 94 + + NULLIF ( + 78, 54 ) ) + + 50 * - 78 AS col0
----
-3886

skipif mysql # not compatible
query I rowsort label-1868
SELECT + 13 - - COALESCE ( + + COUNT ( * ), + 75, 37 * 94 + + NULLIF ( + 78, 54 ) ) + + 50 * - 78 AS col0
----
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT COUNT( + - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-1869
SELECT COUNT ( + - 96 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT COALESCE ( + - MAX( ALL + + 41 ), 21 * + + 17 ) * - 88 AS col1
----
3608

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT COALESCE ( + - MAX ( ALL + + 41 ), 21 * + + 17 ) * - 88 AS col1
----
3608

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT - 75 + 70 + + ( + COALESCE ( + 36, + ( + 72 ), 89 + ( 22 ) * + COUNT( * ) * + + 13 ) )
----
31

skipif mysql # not compatible
query I rowsort label-1871
SELECT - 75 + 70 + + ( + COALESCE ( + 36, + ( + 72 ), 89 + ( 22 ) * + COUNT ( * ) * + + 13 ) )
----
31

query I rowsort
SELECT 52 + 18 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT DISTINCT 63 DIV + + 13 col2
----
4

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT 63 / + + 13 col2
----
4

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

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

query I rowsort
SELECT + 42 * 29 * + 3 * + - 60
----
-219240

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT ALL - + ( NULLIF ( 71, + COUNT( - 55 ) * + 5 + - 43 ) ) + - 85 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL - + ( NULLIF ( 71, + COUNT ( - 55 ) * + 5 + - 43 ) ) + - 85 AS col2
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1877
SELECT - - COALESCE ( - - 21, 41 - - + COUNT( * ) DIV 86 * + 45 ) AS col2, ( - - 67 )
----
21
67

skipif mysql # not compatible
query II rowsort label-1877
SELECT - - COALESCE ( - - 21, 41 - - + COUNT ( * ) / 86 * + 45 ) AS col2, ( - - 67 )
----
21
67

query I rowsort
SELECT ALL + 63 + + 60
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1879
SELECT 66, + 82 * + CAST( - - CASE - - 56 WHEN 54 + + 85 - - 78 THEN 28 END AS SIGNED ) + + - COUNT( * ) AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-1879
SELECT 66, + 82 * + CAST ( - - CASE - - 56 WHEN 54 + + 85 - - 78 THEN 28 END AS INTEGER ) + + - COUNT ( * ) AS col1
----
66
NULL

query I rowsort
SELECT ALL + 83 + 38
----
121

query I rowsort
SELECT DISTINCT - + 68 * + 66 AS col0
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL + COUNT( * ) + + ( CASE + 2 WHEN - 98 + 87 + + 92 THEN 18 ELSE + 1 + 66 * COUNT( * ) END ) + - + 90
----
-22

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + COUNT ( * ) + + ( CASE + 2 WHEN - 98 + 87 + + 92 THEN 18 ELSE + 1 + 66 * COUNT ( * ) END ) + - + 90
----
-22

query I rowsort
SELECT NULLIF ( 76, + ( + - 85 ) / + 40 )
----
76

query II rowsort
SELECT + 45 AS col1, 83 AS col2
----
45
83

query I rowsort
SELECT 59 - + + 18 + 31
----
72

query II rowsort
SELECT 37 col1, 18
----
37
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT 68 DIV - + 57
----
-1

skipif mysql # not compatible
query I rowsort label-1887
SELECT 68 / - + 57
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1888
SELECT + 55 AS col2, COUNT( * ) + - 17 * 11
----
55
-186

skipif mysql # not compatible
query II rowsort label-1888
SELECT + 55 AS col2, COUNT ( * ) + - 17 * 11
----
55
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT DISTINCT + 48 * - MIN( 19 ) AS col0
----
-912

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT + 48 * - MIN ( 19 ) AS col0
----
-912

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT DISTINCT + 75 DIV - - 59
----
1

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + 75 / - - 59
----
1

query I rowsort
SELECT 94 * + ( - + 41 ) * + - 37 AS col0
----
142598

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT 0 + - + COUNT( * ) * + + 52 - - - COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1892
SELECT 0 + - + COUNT ( * ) * + + 52 - - - COUNT ( * ) AS col2
----
-53

query I rowsort
SELECT ALL + 57 * - 23 AS col2
----
-1311

query II rowsort
SELECT + 21 AS col1, + 79 + 81 AS col2
----
21
160

query I rowsort
SELECT 10 + + + ( + - 37 ) AS col0
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL - ( MIN( DISTINCT - 80 ) )
----
80

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL - ( MIN ( DISTINCT - 80 ) )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1898
SELECT DISTINCT - CAST( NULLIF ( - 17, - 64 ) AS SIGNED ) col0, + COUNT( + 67 ) col1
----
17
1

skipif mysql # not compatible
query II rowsort label-1898
SELECT DISTINCT - CAST ( NULLIF ( - 17, - 64 ) AS INTEGER ) col0, + COUNT ( + 67 ) col1
----
17
1

query II rowsort
SELECT ALL 35 col0, - 1
----
35
-1

query I rowsort
SELECT DISTINCT - 85 * + 36 * - + 71
----
217260

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

skipif mysql # not compatible
query I rowsort label-1901
SELECT COALESCE ( 38, + COUNT ( * ) + + - 83 ) AS col1
----
38

query I rowsort
SELECT 98 * 41 AS col1
----
4018

query I rowsort
SELECT ALL - - 79 + - + NULLIF ( 9, + 81 )
----
70

query II rowsort
SELECT 45 AS col1, 80 + + 37 + - + 25 AS col0
----
45
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT 70 col0, COALESCE ( + - 39, + 76 - + 11 * + ( + 74 ) * NULLIF ( - 75, + - 73 ) * - ( - NULLIF ( - 99, 61 * - 38 * - COUNT( * ) + 19 ) ) + - - COUNT( * ) + + - 27 + 56 ) AS col2
----
70
-39

skipif mysql # not compatible
query II rowsort label-1905
SELECT 70 col0, COALESCE ( + - 39, + 76 - + 11 * + ( + 74 ) * NULLIF ( - 75, + - 73 ) * - ( - NULLIF ( - 99, 61 * - 38 * - COUNT ( * ) + 19 ) ) + - - COUNT ( * ) + + - 27 + 56 ) AS col2
----
70
-39

query I rowsort
SELECT + 73 * + ( 88 ) AS col1
----
6424

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1907
SELECT + 12 - - 57 * - 34 + - 37 + - - CASE - - COALESCE ( + 32, + + ( + - 6 ) / 17 * + 3 + 75 + + 82 * + 49 + - MAX( 5 ) ) WHEN - COUNT( * ) + + 94 * - 50 * - 93 THEN NULL WHEN + COUNT( * ) THEN + - 41 WHEN 48 THEN NULL WHEN - 13 - 54 THEN - - CAST( NULL AS DECIMAL ) END * + 81 / + 87 * - 4 * 17 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT + 12 - - 57 * - 34 + - 37 + - - CASE - - COALESCE ( + 32, + + ( + - 6 ) / 17 * + 3 + 75 + + 82 * + 49 + - MAX ( 5 ) ) WHEN - COUNT ( * ) + + 94 * - 50 * - 93 THEN NULL WHEN + COUNT ( * ) THEN + - 41 WHEN 48 THEN NULL WHEN - 13 - 54 THEN - - CAST ( NULL AS REAL ) END * + 81 / + 87 * - 4 * 17 * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( 81, - 40 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT CASE 19 WHEN COUNT( * ) THEN NULL ELSE - 27 * - COUNT( ALL + 16 ) END * - 74
----
-1998

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT CASE 19 WHEN COUNT ( * ) THEN NULL ELSE - 27 * - COUNT ( ALL + 16 ) END * - 74
----
-1998

onlyif mysql # aggregate syntax: 
query II rowsort label-1910
SELECT ( + - 44 ) - - COUNT( * ) + + NULLIF ( + - COUNT( * ), + COUNT( * ) ) * 20, 82 AS col2
----
-63
82

skipif mysql # not compatible
query II rowsort label-1910
SELECT ( + - 44 ) - - COUNT ( * ) + + NULLIF ( + - COUNT ( * ), + COUNT ( * ) ) * 20, 82 AS col2
----
-63
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT ALL + 9 DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + 9 / 13
----
0

query I rowsort
SELECT + 39 * + + 37 + + 36 AS col2
----
1479

query I rowsort
SELECT DISTINCT + + 62 * 65 * - + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1914
SELECT + COUNT( * ) AS col2, COUNT( * ) DIV + 29
----
1
0

skipif mysql # not compatible
query II rowsort label-1914
SELECT + COUNT ( * ) AS col2, COUNT ( * ) / + 29
----
1
0

query II rowsort
SELECT - + NULLIF ( - 42, + 61 + + AVG ( + 15 ) * + 11 ), 38 AS col0
----
42
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT - 89 - - 17 + + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-1916
SELECT - 89 - - 17 + + - COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ( CASE - 41 WHEN - COUNT( * ) THEN + 94 ELSE 62 END ) * - + 91 AS col1
----
-5642

skipif mysql # not compatible
query I rowsort label-1917
SELECT ( CASE - 41 WHEN - COUNT ( * ) THEN + 94 ELSE 62 END ) * - + 91 AS col1
----
-5642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1918
SELECT CASE + AVG ( + 23 ) WHEN 90 THEN - 56 + - - 77 + MIN( DISTINCT - + COALESCE ( - - 87, + - 81 ) ) - + + 15 * + 16 * - AVG ( + 41 ) ELSE + 42 END / + CAST( NULL AS SIGNED ) + - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT CASE + AVG ( + 23 ) WHEN 90 THEN - 56 + - - 77 + MIN ( DISTINCT - + COALESCE ( - - 87, + - 81 ) ) - + + 15 * + 16 * - AVG ( + 41 ) ELSE + 42 END / + CAST ( NULL AS INTEGER ) + - + 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1919
SELECT CAST( - NULLIF ( + 26, 99 ) AS SIGNED ) + - + 45 * + ( + - 62 ) + - - 41 * COALESCE ( + 83, + 78 * - ( + 75 ) )
----
6167

skipif mysql # not compatible
query I rowsort label-1919
SELECT CAST ( - NULLIF ( + 26, 99 ) AS INTEGER ) + - + 45 * + ( + - 62 ) + - - 41 * COALESCE ( + 83, + 78 * - ( + 75 ) )
----
6167

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT ALL MAX( - + 74 ) * - ( 65 )
----
4810

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL MAX ( - + 74 ) * - ( 65 )
----
4810

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL + MIN( DISTINCT + - 19 ) * - 60 + + - 76 * 0 - - 34 + + - 98 + ( - 45 ) + 12 * + 73 + - 85
----
1822

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL + MIN ( DISTINCT + - 19 ) * - 60 + + - 76 * 0 - - 34 + + - 98 + ( - 45 ) + 12 * + 73 + - 85
----
1822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1922
SELECT DISTINCT ( - + 19 ) * - MAX( - + 83 ) - - ( NULLIF ( + 40, - CAST( + - 3 AS SIGNED ) - - COUNT( * ) + 97 + + - 43 * + 91 * - - ( + COUNT( * ) ) ) ) AS col2, 76 + + - 22
----
-1537
54

skipif mysql # not compatible
query II rowsort label-1922
SELECT DISTINCT ( - + 19 ) * - MAX ( - + 83 ) - - ( NULLIF ( + 40, - CAST ( + - 3 AS INTEGER ) - - COUNT ( * ) + 97 + + - 43 * + 91 * - - ( + COUNT ( * ) ) ) ) AS col2, 76 + + - 22
----
-1537
54

query II rowsort
SELECT 10 * 43 AS col0, - 31 AS col1
----
430
-31

query II rowsort
SELECT 90 + 90, - 55 + + 38 AS col0
----
180
-17

query I rowsort
SELECT ALL 72 * + 59
----
4248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT - CAST( NULL AS SIGNED ) * - - ( 63 ) * + 78 * + 17 + - 38 * + 37 * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT - CAST ( NULL AS INTEGER ) * - - ( 63 ) * + 78 * + 17 + - 38 * + 37 * - 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT ALL 66 + - ( - SUM( + - 75 ) ) * - 58, + 87 AS col0
----
4416
87

skipif mysql # not compatible
query II rowsort label-1927
SELECT ALL 66 + - ( - SUM ( + - 75 ) ) * - 58, + 87 AS col0
----
4416
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1928
SELECT - 36 DIV - ( - CAST( + 33 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1928
SELECT - 36 / - ( - CAST ( + 33 AS INTEGER ) )
----
-1

query I rowsort
SELECT - 53 - 88 * + 73
----
-6477

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

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT + COUNT ( * ) / + - ( 10 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT 68 * + SUM( - 46 ) + + - 26 + + + 96 + - 66
----
-3124

skipif mysql # not compatible
query I rowsort label-1931
SELECT 68 * + SUM ( - 46 ) + + - 26 + + + 96 + - 66
----
-3124

onlyif mysql # aggregate syntax: 
query II rowsort label-1932
SELECT - - 62 + + COUNT( * ) AS col0, 55 AS col0
----
63
55

skipif mysql # not compatible
query II rowsort label-1932
SELECT - - 62 + + COUNT ( * ) AS col0, 55 AS col0
----
63
55

query I rowsort
SELECT ALL + 99 * - 31 + - - 29 - + 19 * + - 11 * + 70 + + 0 AS col2
----
11590

query II rowsort
SELECT + ( 54 ), - 85 AS col2
----
54
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ALL + COUNT( * ) + + 35 + - + ( + + 22 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL + COUNT ( * ) + + 35 + - + ( + + 22 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT + COUNT( + - 34 ) - + - 7
----
8

skipif mysql # not compatible
query I rowsort label-1936
SELECT + COUNT ( + - 34 ) - + - 7
----
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + + 93 + CAST( NULL AS SIGNED ) + - 81 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + + 93 + CAST ( NULL AS INTEGER ) + - 81 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1939
SELECT - 37 + - - 78 - 42 * 39 * + 17, - 67 * - 6 + - COALESCE ( 91, 40 ) DIV 71 AS col2
----
-27805
401

skipif mysql # not compatible
query II rowsort label-1939
SELECT - 37 + - - 78 - 42 * 39 * + 17, - 67 * - 6 + - COALESCE ( 91, 40 ) / 71 AS col2
----
-27805
401

query I rowsort
SELECT ALL + 47 + + 35 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT - - COUNT( ALL + + COALESCE ( - 50, + 21 + - + 91 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1941
SELECT - - COUNT ( ALL + + COALESCE ( - 50, + 21 + - + 91 ) ) AS col0
----
1

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

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

query II rowsort
SELECT - + 75 * + 79, 37 AS col2
----
-5925
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1944
SELECT + - CAST( NULL AS DECIMAL ) + - 55 * COALESCE ( + 28, + - 19 ) * + AVG ( + 54 ) - COALESCE ( + 32, + - ( 34 ) ) * + 16 + - - AVG ( ALL CASE + 11 WHEN - - 77 THEN 59 * ( - 21 ) END ) + - 49 + - CASE - - 47 WHEN - - COUNT( * ) * + - 96 THEN NULL ELSE + 29 * + + SUM( + 58 ) * - COUNT( ALL + - 81 ) END * 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT + - CAST ( NULL AS REAL ) + - 55 * COALESCE ( + 28, + - 19 ) * + AVG ( + 54 ) - COALESCE ( + 32, + - ( 34 ) ) * + 16 + - - AVG ( ALL CASE + 11 WHEN - - 77 THEN 59 * ( - 21 ) END ) + - 49 + - CASE - - 47 WHEN - - COUNT ( * ) * + - 96 THEN NULL ELSE + 29 * + + SUM ( + 58 ) * - COUNT ( ALL + - 81 ) END * 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL + COALESCE ( 25, 50 * + COUNT( * ) * 39 * - + ( + 35 ) + 40 + + - 53 * 9 * COUNT( * ) * 89, + 71 ) * - + 19 * - - 29
----
-13775

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL + COALESCE ( 25, 50 * + COUNT ( * ) * 39 * - + ( + 35 ) + 40 + + - 53 * 9 * COUNT ( * ) * 89, + 71 ) * - + 19 * - - 29
----
-13775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1946
SELECT - 40 * - COUNT( + + 58 ) + - MIN( ALL - + 75 ) DIV - 46
----
39

skipif mysql # not compatible
query I rowsort label-1946
SELECT - 40 * - COUNT ( + + 58 ) + - MIN ( ALL - + 75 ) / - 46
----
39

query II rowsort
SELECT - 49 + - 49 AS col2, - 92 AS col0
----
-98
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1948
SELECT DISTINCT + 93 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT + 93 / - 58
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT - COUNT( * ) AS col1, 7 + 0 AS col0
----
-1
7

skipif mysql # not compatible
query II rowsort label-1949
SELECT - COUNT ( * ) AS col1, 7 + 0 AS col0
----
-1
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT ALL + 75 * + NULLIF ( - - 52, + - COALESCE ( - CASE + + COUNT( * ) WHEN - 34 THEN - 59 * + - 39 / - 57 + - + 55 END, - 47 * + ( CAST( NULL AS SIGNED ) ) ) ) AS col2
----
3900

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL + 75 * + NULLIF ( - - 52, + - COALESCE ( - CASE + + COUNT ( * ) WHEN - 34 THEN - 59 * + - 39 / - 57 + - + 55 END, - 47 * + ( CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
3900

query I rowsort
SELECT ( + - 66 ) col2
----
-66

query I rowsort
SELECT + 44 + - 67 AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT - 14 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-1953
SELECT - 14 / + 63
----
0

query I rowsort
SELECT + 20 * - + 59
----
-1180

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

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

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

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

query I rowsort
SELECT ( 15 ) * + ( + - 42 ) - 93 col0
----
-723

query II rowsort
SELECT DISTINCT + 32, ( + 13 ) + - - 69 AS col0
----
32
82

query I rowsort
SELECT ALL 56 * + - 80 + + 92 AS col0
----
-4388

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1961
SELECT + 60 * + ( + 51 ) DIV COUNT( * ) * - - 49
----
149940

skipif mysql # not compatible
query I rowsort label-1961
SELECT + 60 * + ( + 51 ) / COUNT ( * ) * - - 49
----
149940

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ALL CASE 46 WHEN - + 17 * + CASE - + 19 WHEN - 76 THEN NULL ELSE - 61 + + + SUM( + 57 ) * - + 9 * - + 19 - CASE + - 97 WHEN - 39 THEN NULL WHEN - ( - 55 ) * - 80 + + CASE + 58 WHEN - 94 THEN + 67 + + COUNT( * ) ELSE NULL END + + 33 THEN + 39 END END THEN NULL WHEN 1 THEN 0 * + + 62 END * + 33 + + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL CASE 46 WHEN - + 17 * + CASE - + 19 WHEN - 76 THEN NULL ELSE - 61 + + + SUM ( + 57 ) * - + 9 * - + 19 - CASE + - 97 WHEN - 39 THEN NULL WHEN - ( - 55 ) * - 80 + + CASE + 58 WHEN - 94 THEN + 67 + + COUNT ( * ) ELSE NULL END + + 33 THEN + 39 END END THEN NULL WHEN 1 THEN 0 * + + 62 END * + 33 + + 83 AS col2
----
NULL

query I rowsort
SELECT ALL 31 * - 30 + + - 53 + - 76 AS col2
----
-1059

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT DISTINCT + 30 * COUNT( * ) + - 80
----
-50

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT + 30 * COUNT ( * ) + - 80
----
-50

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

skipif mysql # not compatible
query I rowsort label-1965
SELECT + CAST ( NULL AS INTEGER ) * + - 65
----
NULL

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

query I rowsort
SELECT ALL - 1 * 41 + + 28
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1968
SELECT + - 4 AS col1, + ( - 85 ) * - ( + 83 ) + + + 53 + 66 + - + COUNT( * ) * - 24 * - - 36 * - ( + + CASE 5 WHEN 84 / 95 * - 98 THEN NULL WHEN - 59 THEN - CAST( NULL AS SIGNED ) * - MAX( ALL + - 96 ) + 15 WHEN - 18 * ( CASE - + 3 WHEN - CASE 73 WHEN - - 86 - 59 THEN - 28 WHEN 97 THEN - + 79 - 44 END THEN - 70 * - ( - 64 ) WHEN + 92 THEN + 89 END ) THEN NULL END )
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-1968
SELECT + - 4 AS col1, + ( - 85 ) * - ( + 83 ) + + + 53 + 66 + - + COUNT ( * ) * - 24 * - - 36 * - ( + + CASE 5 WHEN 84 / 95 * - 98 THEN NULL WHEN - 59 THEN - CAST ( NULL AS INTEGER ) * - MAX ( ALL + - 96 ) + 15 WHEN - 18 * ( CASE - + 3 WHEN - CASE 73 WHEN - - 86 - 59 THEN - 28 WHEN 97 THEN - + 79 - 44 END THEN - 70 * - ( - 64 ) WHEN + 92 THEN + 89 END ) THEN NULL END )
----
-4
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1969
SELECT + 95 * - COALESCE ( COUNT( * ), 66 ) - + NULLIF ( + 2, + 19 * ( - + ( - 22 ) ) ) + + + COALESCE ( + 61, - 70 + - - 80 + + + 10 - 31 + + - 91 + 33 + + 14 DIV + CAST( + 82 AS SIGNED ) * - 91 + 59 * + + NULLIF ( - + 77, + - 71 ), - - 95 ) DIV - + 94 col1
----
-97

skipif mysql # not compatible
query I rowsort label-1969
SELECT + 95 * - COALESCE ( COUNT ( * ), 66 ) - + NULLIF ( + 2, + 19 * ( - + ( - 22 ) ) ) + + + COALESCE ( + 61, - 70 + - - 80 + + + 10 - 31 + + - 91 + 33 + + 14 / + CAST ( + 82 AS INTEGER ) * - 91 + 59 * + + NULLIF ( - + 77, + - 71 ), - - 95 ) / - + 94 col1
----
-97

query II rowsort
SELECT ALL + - 69 AS col1, + 26
----
-69
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT ALL + + 26 * + 91 + - - COALESCE ( + 98, - + ( - - 19 ) * ( - 50 ) + 2 + 51, - - MIN( 41 ), + + ( ( + ( + COUNT( * ) ) ) ) ) + - 81 + + 18 + + - 10 + + COUNT( * ) AS col0
----
2392

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + + 26 * + 91 + - - COALESCE ( + 98, - + ( - - 19 ) * ( - 50 ) + 2 + 51, - - MIN ( 41 ), + + ( ( + ( + COUNT ( * ) ) ) ) ) + - 81 + + 18 + + - 10 + + COUNT ( * ) AS col0
----
2392

onlyif mysql # aggregate syntax: 
query II rowsort label-1972
SELECT DISTINCT - 56 AS col1, COUNT( * ) - + 97
----
-56
-96

skipif mysql # not compatible
query II rowsort label-1972
SELECT DISTINCT - 56 AS col1, COUNT ( * ) - + 97
----
-56
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT DISTINCT - - 61 * - SUM( ALL + - 23 ) * 58 * + 16 - + 63
----
1301921

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT - - 61 * - SUM ( ALL + - 23 ) * 58 * + 16 - + 63
----
1301921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1974
SELECT ALL - 26 DIV MIN( - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL - 26 / MIN ( - 23 )
----
1

query II rowsort
SELECT 86, + 39 * - + 61 AS col1
----
86
-2379

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT + CASE ( 57 ) WHEN + 84 THEN + 98 * 20 - NULLIF ( - MIN( DISTINCT 67 ), + 3 ) + - - 60 * + - MAX( DISTINCT + ( 25 ) ) * + + 77 + + - 71 ELSE NULL END * + - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT + CASE ( 57 ) WHEN + 84 THEN + 98 * 20 - NULLIF ( - MIN ( DISTINCT 67 ), + 3 ) + - - 60 * + - MAX ( DISTINCT + ( 25 ) ) * + + 77 + + - 71 ELSE NULL END * + - 58 AS col1
----
NULL

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

query II rowsort
SELECT - 11 AS col0, - ( 12 )
----
-11
-12

query I rowsort
SELECT - 85 * + ( 93 ) * - 60 AS col0
----
474300

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT DISTINCT - + 3 * - + COUNT( DISTINCT + 16 ) AS col0, + 9 + SUM( - 33 )
----
3
-24

skipif mysql # not compatible
query II rowsort label-1980
SELECT DISTINCT - + 3 * - + COUNT ( DISTINCT + 16 ) AS col0, + 9 + SUM ( - 33 )
----
3
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT ALL + 74 * CAST( - + 94 AS SIGNED ) * 40 + 74
----
-278166

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL + 74 * CAST ( - + 94 AS INTEGER ) * 40 + 74
----
-278166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1982
SELECT - AVG ( DISTINCT 41 ) * - CAST( NULL AS SIGNED ) + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT - AVG ( DISTINCT 41 ) * - CAST ( NULL AS INTEGER ) + + 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL NULLIF ( - 36, COUNT( * ) * 29 * 97 )
----
-36

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL NULLIF ( - 36, COUNT ( * ) * 29 * 97 )
----
-36

query I rowsort
SELECT DISTINCT + 88 * + 24 AS col0
----
2112

query I rowsort
SELECT - ( 77 ) * + + 61
----
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT - COUNT( DISTINCT - - 24 ) + - - 52 + - 88 * - COUNT( * ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-1986
SELECT - COUNT ( DISTINCT - - 24 ) + - - 52 + - 88 * - COUNT ( * ) AS col1
----
139

query I rowsort
SELECT - 3 - - - 0 * - 90
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1988
SELECT DISTINCT CAST( + + 2 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT CAST ( + + 2 AS INTEGER ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1989
SELECT + 96 * - 12, - 81 * - 11 / - CAST( NULL AS SIGNED ) AS col0
----
-1152
NULL

skipif mysql # not compatible
query II rowsort label-1989
SELECT + 96 * - 12, - 81 * - 11 / - CAST ( NULL AS INTEGER ) AS col0
----
-1152
NULL

query I rowsort
SELECT ALL - 44 + + - 69 * 6
----
-458

query I rowsort
SELECT ALL 72 + + 83 AS col2
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT 45 * + - 86 + 51 + - + COUNT( 65 )
----
-3820

skipif mysql # not compatible
query I rowsort label-1992
SELECT 45 * + - 86 + 51 + - + COUNT ( 65 )
----
-3820

query I rowsort
SELECT ALL - 8 * - 66 AS col0
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ( - - COUNT( ALL - 97 ) ) + 83 - + - 64 * - 30 + - + 57 + + 98 * + COALESCE ( + 86, - 99, - - COALESCE ( - 7, - COALESCE ( + - 97, - NULLIF ( - COUNT( * ), - 38 ) ) ) ) * COUNT( * ) + - + 43 + - ( - + 78 ) * - + COUNT( * ) * - 57 * - - 86 - - - MIN( ALL - 34 ) AS col1
----
388882

skipif mysql # not compatible
query I rowsort label-1994
SELECT ( - - COUNT ( ALL - 97 ) ) + 83 - + - 64 * - 30 + - + 57 + + 98 * + COALESCE ( + 86, - 99, - - COALESCE ( - 7, - COALESCE ( + - 97, - NULLIF ( - COUNT ( * ), - 38 ) ) ) ) * COUNT ( * ) + - + 43 + - ( - + 78 ) * - + COUNT ( * ) * - 57 * - - 86 - - - MIN ( ALL - 34 ) AS col1
----
388882

query I rowsort
SELECT ALL ( - 83 ) + - 1 * + 59 col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT COUNT( * ) + + + 42 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1996
SELECT COUNT ( * ) + + + 42 AS col0
----
43

query I rowsort
SELECT 18 * - + COALESCE ( + 85, 68 * + 24 * - 5 * - 88 + - 88 ) AS col1
----
-1530

onlyif mysql # DIV for integer division: 
query I rowsort label-1998
SELECT DISTINCT + 49 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT + 49 / + 52
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT - CAST( 64 AS SIGNED ) * 39 * - - 78 + CAST( + 89 AS SIGNED ) + + - COUNT( * ) AS col2
----
-194600

skipif mysql # not compatible
query I rowsort label-1999
SELECT - CAST ( 64 AS INTEGER ) * 39 * - - 78 + CAST ( + 89 AS INTEGER ) + + - COUNT ( * ) AS col2
----
-194600

query I rowsort
SELECT DISTINCT 41 * - - 25 * - 41
----
-42025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2001
SELECT ALL COUNT( * ) - + NULLIF ( + 31, + - NULLIF ( - + 59, + 55 ) - + - 86 * + + 27 * + + CAST( + - 85 AS SIGNED ) * + SUM( DISTINCT 62 ) ) DIV + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL COUNT ( * ) - + NULLIF ( + 31, + - NULLIF ( - + 59, + 55 ) - + - 86 * + + 27 * + + CAST ( + - 85 AS INTEGER ) * + SUM ( DISTINCT 62 ) ) / + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-30

query I rowsort
SELECT 29 + + - 47
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT + + NULLIF ( - + COUNT( * ), + 69 * + 50 * + 10 + 8 - + COUNT( * ) * + - 15 - 60 * - + 93 * - - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2003
SELECT + + NULLIF ( - + COUNT ( * ), + 69 * + 50 * + 10 + 8 - + COUNT ( * ) * + - 15 - 60 * - + 93 * - - COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT DISTINCT + 97 * 87 + - 88
----
8351

query I rowsort
SELECT 69 * - 84 + + - 63
----
-5859

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL COUNT( * ) * + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL COUNT ( * ) * + + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT COUNT( * ) + + COUNT( DISTINCT 36 ) * + 13 + - + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2007
SELECT COUNT ( * ) + + COUNT ( DISTINCT 36 ) * + 13 + - + COUNT ( * ) AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2008
SELECT + 8 + - MIN( + 44 ) DIV 83 + - + 15
----
-7

skipif mysql # not compatible
query I rowsort label-2008
SELECT + 8 + - MIN ( + 44 ) / 83 + - + 15
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2009
SELECT COUNT( * ) + + 3, - COUNT( * ) DIV 97 DIV 11 AS col1
----
4
0

skipif mysql # not compatible
query II rowsort label-2009
SELECT COUNT ( * ) + + 3, - COUNT ( * ) / 97 / 11 AS col1
----
4
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT ALL + COALESCE ( 82, - CAST( NULL AS SIGNED ) * 8 * + - SUM( ALL 74 ), - - 96 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + COALESCE ( 82, - CAST ( NULL AS INTEGER ) * 8 * + - SUM ( ALL 74 ), - - 96 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT + COALESCE ( - - 8, + 72 - + + SUM( ALL + 64 ) + - - 35 * 66 + - 42 + - 36 + - 42 + + 1 * - + 89 * - + 24 * + MIN( DISTINCT - 24 ) ) * + 18
----
144

skipif mysql # not compatible
query I rowsort label-2011
SELECT + COALESCE ( - - 8, + 72 - + + SUM ( ALL + 64 ) + - - 35 * 66 + - 42 + - 36 + - 42 + + 1 * - + 89 * - + 24 * + MIN ( DISTINCT - 24 ) ) * + 18
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT 94 + CASE 7 WHEN - - 57 THEN + COUNT( * ) * - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT 94 + CASE 7 WHEN - - 57 THEN + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 13 + NULLIF ( 44, - 42 ) - 6 * 77 * - 73 AS col2
----
33783

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL - COUNT( * ) + + + 46
----
45

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL - COUNT ( * ) + + + 46
----
45

query I rowsort
SELECT DISTINCT 14 + + 80
----
94

query I rowsort
SELECT 0 + + 47 + 77
----
124

query I rowsort
SELECT DISTINCT 90 + - 32
----
58

query I rowsort
SELECT DISTINCT 8 * - - 91
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT + ( COUNT( * ) ) + + 91
----
92

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT + ( COUNT ( * ) ) + + 91
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2020
SELECT ALL - 13 + MAX( - 4 ) + + 12 DIV - + 47
----
-17

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - 13 + MAX ( - 4 ) + + 12 / - + 47
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT + 4 DIV + 59 * - 66 - - 47 + - 81 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2021
SELECT + 4 / + 59 * - 66 - - 47 + - 81 AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT 35 + + 53 + NULLIF ( - 76, - CAST( - 92 AS SIGNED ) ) * - 65 AS col0
----
5028

skipif mysql # not compatible
query I rowsort label-2022
SELECT 35 + + 53 + NULLIF ( - 76, - CAST ( - 92 AS INTEGER ) ) * - 65 AS col0
----
5028

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL - 20 * + COUNT( * ) - NULLIF ( 72, - ( + COUNT( * ) ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - 20 * + COUNT ( * ) - NULLIF ( 72, - ( + COUNT ( * ) ) ) AS col0
----
-92

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

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

query I rowsort
SELECT ALL + - 66 - + + 79 AS col2
----
-145

query I rowsort
SELECT DISTINCT - - COALESCE ( - - 60, + - 8 + + + 59 * - 1 + COALESCE ( - 0, + 97 ), + 80 ) * - - 5 + - 59
----
241

query I rowsort
SELECT 67 * - 27 + 72
----
-1737

query I rowsort
SELECT 44 + 76 AS col0
----
120

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

skipif mysql # not compatible
query I rowsort label-2030
SELECT COUNT ( * ) * - COUNT ( * ) + CAST ( + - 85 AS INTEGER )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2031
SELECT + CAST( NULL AS DECIMAL ) * + COUNT( * ) * - 29 * 47 * 5 AS col1, CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2031
SELECT + CAST ( NULL AS REAL ) * + COUNT ( * ) * - 29 * 47 * 5 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2032
SELECT ALL - 43 / - - COALESCE ( + COUNT( * ), ( + + COUNT( * ) ) * + 78 + - 22 ) * + + CAST( NULL AS SIGNED ) + + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - 43 / - - COALESCE ( + COUNT ( * ), ( + + COUNT ( * ) ) * + 78 + - 22 ) * + + CAST ( NULL AS INTEGER ) + + 11 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT + 6 * + CAST( NULL AS SIGNED ) * ( + - 63 ) + - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT + 6 * + CAST ( NULL AS INTEGER ) * ( + - 63 ) + - - 66
----
NULL

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

query I rowsort
SELECT ALL 59 * + + 18 * + 65
----
69030

query I rowsort
SELECT DISTINCT - 94 * - 26 AS col2
----
2444

query I rowsort
SELECT ALL 3 * + + 84
----
252

query I rowsort
SELECT - 72 + - 90 * + 22 + + 2 + + + 17 * - 94 * - COALESCE ( + 44, 85 ) AS col2
----
68262

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT COUNT( 15 ) + + + 27 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-2039
SELECT COUNT ( 15 ) + + + 27 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2040
SELECT 51 AS col2, - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
51
1

skipif mysql # not compatible
query II rowsort label-2040
SELECT 51 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL 9 + MAX( + 1 )
----
10

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL 9 + MAX ( + 1 )
----
10

query II rowsort
SELECT 99 AS col0, - 53 AS col1
----
99
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT + 43 + + - NULLIF ( + 78, 49 + COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-2044
SELECT + 43 + + - NULLIF ( + 78, 49 + COUNT ( * ) )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT ALL 49 + - + CAST( + - 93 AS SIGNED )
----
142

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL 49 + - + CAST ( + - 93 AS INTEGER )
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT ALL 61 AS col1, 19 * COUNT( * )
----
61
19

skipif mysql # not compatible
query II rowsort label-2046
SELECT ALL 61 AS col1, 19 * COUNT ( * )
----
61
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT + 8 + - + CAST( + + 43 AS SIGNED ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-2047
SELECT + 8 + - + CAST ( + + 43 AS INTEGER ) col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT - 13 - + COUNT( * ) * + - CAST( NULL AS SIGNED ) * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT - 13 - + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - 75
----
NULL

query II rowsort
SELECT 72, + 77 col0
----
72
77

query I rowsort
SELECT - 90 - - - 9
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2051
SELECT + 1 * COALESCE ( + CASE 79 WHEN - 30 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) - - 77 + - 72 - + - CASE - + CAST( NULL AS DECIMAL ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 29 * + ( 61 ) THEN + + 2 END - + + MAX( - 91 ) DIV + 86 * + CASE - ( + ( - 97 ) ) WHEN + - 17 * - 59 DIV 59 THEN NULL WHEN CASE + + ( - + 93 ) WHEN - 72 THEN - COUNT( - - 55 ) * + 58 + + - 24 ELSE NULL END + + 78 THEN NULLIF ( + 8, 10 * CAST( + 87 AS DECIMAL ) + + 15 * + 60 ) END * + 15 THEN NULL WHEN + 83 - + 96 THEN 92 END, - CASE WHEN NOT ( - 65 ) <= - 4 THEN NULL ELSE 57 * + 3 + 85 END DIV + 48 ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-2051
SELECT + 1 * COALESCE ( + CASE 79 WHEN - 30 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) - - 77 + - 72 - + - CASE - + CAST ( NULL AS REAL ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 29 * + ( 61 ) THEN + + 2 END - + + MAX ( - 91 ) / + 86 * + CASE - ( + ( - 97 ) ) WHEN + - 17 * - 59 / 59 THEN NULL WHEN CASE + + ( - + 93 ) WHEN - 72 THEN - COUNT ( - - 55 ) * + 58 + + - 24 ELSE NULL END + + 78 THEN NULLIF ( + 8, 10 * CAST ( + 87 AS REAL ) + + 15 * + 60 ) END * + 15 THEN NULL WHEN + 83 - + 96 THEN 92 END, - CASE WHEN NOT ( - 65 ) <= - 4 THEN NULL ELSE 57 * + 3 + 85 END / + 48 ) col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT + 77 + - 10 DIV + - 48 * - ( + COALESCE ( ( - 28 ), - + ( 70 ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-2052
SELECT + 77 + - 10 / + - 48 * - ( + COALESCE ( ( - 28 ), - + ( 70 ) ) )
----
77

query II rowsort
SELECT 23, 29 col1
----
23
29

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

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

query I rowsort
SELECT + NULLIF ( - 83, + 68 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL CASE - + 95 WHEN - 37 * + COUNT( * ) + + MIN( ALL + 57 ) THEN + 36 WHEN - - 74 THEN + - 65 WHEN - + 20 - + 21 + - - CASE NULLIF ( - 73, + - CASE - - ( - + MAX( 40 ) ) WHEN + 97 THEN 85 END * + 6 * - 74 ) WHEN - 71 THEN - 97 END THEN NULL END * + 62 * + - 56 + - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL CASE - + 95 WHEN - 37 * + COUNT ( * ) + + MIN ( ALL + 57 ) THEN + 36 WHEN - - 74 THEN + - 65 WHEN - + 20 - + 21 + - - CASE NULLIF ( - 73, + - CASE - - ( - + MAX ( 40 ) ) WHEN + 97 THEN 85 END * + 6 * - 74 ) WHEN - 71 THEN - 97 END THEN NULL END * + 62 * + - 56 + - + 39
----
NULL

query I rowsort
SELECT 55 * - 18 + 91
----
-899

query I rowsort
SELECT ALL 44 * - 5 AS col1
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2059
SELECT - 5 DIV 76 + - + 40 + + - COUNT( * ) + 62 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2059
SELECT - 5 / 76 + - + 40 + + - COUNT ( * ) + 62 AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT - COALESCE ( + 62, + 80, + 18 DIV - + 33 )
----
-62

skipif mysql # not compatible
query I rowsort label-2060
SELECT - COALESCE ( + 62, + 80, + 18 / - + 33 )
----
-62

query I rowsort
SELECT + + 8 + - + 41
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2062
SELECT ALL + + 80 AS col1, + COALESCE ( - 99, - - COUNT( * ) ) AS col0
----
80
-99

skipif mysql # not compatible
query II rowsort label-2062
SELECT ALL + + 80 AS col1, + COALESCE ( - 99, - - COUNT ( * ) ) AS col0
----
80
-99

query II rowsort
SELECT ALL + 72 AS col2, 82 AS col2
----
72
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT CAST( - 97 AS SIGNED ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2064
SELECT CAST ( - 97 AS INTEGER ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2065
SELECT + COUNT( * ) AS col0, 99 * 4 * 53
----
1
20988

skipif mysql # not compatible
query II rowsort label-2065
SELECT + COUNT ( * ) AS col0, 99 * 4 * 53
----
1
20988

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - + MIN( + 81 ) * + 49
----
-3969

skipif mysql # not compatible
query I rowsort label-2066
SELECT - + MIN ( + 81 ) * + 49
----
-3969

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL + 47 * ( - 17 ) * CASE - 22 WHEN 42 / 56 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + 47 * ( - 17 ) * CASE - 22 WHEN 42 / 56 THEN - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + + 45 * - 26 + + 76 + - 94 AS col2
----
-1188

query II rowsort
SELECT ALL + - 30 AS col1, + 20 * 48
----
-30
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT - 4 * - CAST( - + ( MIN( DISTINCT 36 ) ) AS SIGNED )
----
-144

skipif mysql # not compatible
query I rowsort label-2070
SELECT - 4 * - CAST ( - + ( MIN ( DISTINCT 36 ) ) AS INTEGER )
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - + 76 - - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-2071
SELECT - + 76 - - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL + 65 * + NULLIF ( - - 83, 22 * - 47 ) + + - COUNT( * ) + + NULLIF ( COUNT( * ), - 64 ) * - + 98 AS col1
----
5296

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL + 65 * + NULLIF ( - - 83, 22 * - 47 ) + + - COUNT ( * ) + + NULLIF ( COUNT ( * ), - 64 ) * - + 98 AS col1
----
5296

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

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

query I rowsort
SELECT - - 1 + 38
----
39

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

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

query I rowsort
SELECT ALL - 86 * 5 + - 79
----
-509

query I rowsort
SELECT DISTINCT + CASE + 75 WHEN - 42 * + AVG ( CASE - + 49 WHEN + - 42 THEN 61 WHEN - 28 THEN - - 66 * - 97 + - - 27 ELSE NULL END ) + + 95 THEN NULL ELSE 45 + 83 END AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT + - MIN( - 77 ) + + + SUM( ALL + + 34 ) + - 37 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2078
SELECT + - MIN ( - 77 ) + + + SUM ( ALL + + 34 ) + - 37 AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT - NULLIF ( - ( 49 ), CAST( - 28 AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-2079
SELECT - NULLIF ( - ( 49 ), CAST ( - 28 AS INTEGER ) )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2080
SELECT COUNT( + 97 ) col1, + COUNT( + + 79 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-2080
SELECT COUNT ( + 97 ) col1, + COUNT ( + + 79 ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL + 12 + - COUNT( * ) + + NULLIF ( - COUNT( * ), + - AVG ( + + 11 ) )
----
10

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + 12 + - COUNT ( * ) + + NULLIF ( - COUNT ( * ), + - AVG ( + + 11 ) )
----
10

query II rowsort
SELECT DISTINCT ( 87 ) AS col1, + 30
----
87
30

query I rowsort
SELECT 85 * - 47 + 73 * - + 89
----
-10492

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT - COUNT( + 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-2086
SELECT - COUNT ( + 33 )
----
-1

query I rowsort
SELECT ALL 96 - - 83 * + - 32 * 34
----
-90208

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT + MAX( DISTINCT - - 62 ) + + + COUNT( DISTINCT 93 )
----
63

skipif mysql # not compatible
query I rowsort label-2088
SELECT + MAX ( DISTINCT - - 62 ) + + + COUNT ( DISTINCT 93 )
----
63

query II rowsort
SELECT + 78 * - + 38, 84 + + NULLIF ( - 32, - + 68 ) - - 26 AS col1
----
-2964
78

onlyif mysql # DIV for integer division: 
query II rowsort label-2090
SELECT - ( - - 18 ) AS col1, 60 + - 83 DIV - 76 + + ( - 90 ) - + 24
----
-18
-53

skipif mysql # not compatible
query II rowsort label-2090
SELECT - ( - - 18 ) AS col1, 60 + - 83 / - 76 + + ( - 90 ) - + 24
----
-18
-53

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

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

query I rowsort
SELECT DISTINCT + 32 * 88
----
2816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2093
SELECT - ( - + CAST( + ( - MIN( DISTINCT + + ( 30 ) ) ) AS SIGNED ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2093
SELECT - ( - + CAST ( + ( - MIN ( DISTINCT + + ( 30 ) ) ) AS INTEGER ) ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT - MAX( ALL - 98 ) + + + 17
----
115

skipif mysql # not compatible
query I rowsort label-2094
SELECT - MAX ( ALL - 98 ) + + + 17
----
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT + COUNT( * ) * - ( - 79 ) + + + 47 col2
----
126

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT + COUNT ( * ) * - ( - 79 ) + + + 47 col2
----
126

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

skipif mysql # not compatible
query I rowsort label-2097
SELECT - COUNT ( * ) / + ( - + COUNT ( ALL + 95 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT ALL + 65 DIV - - 74 + 72
----
72

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + 65 / - - 74 + 72
----
72

query I rowsort
SELECT DISTINCT - 49 * 12
----
-588

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT ALL + 19 DIV + 30 + + - ( - - 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL + 19 / + 30 + + - ( - - 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2101
SELECT DISTINCT COUNT( * ) DIV - - 56 - - 37 + + + 41
----
78

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT COUNT ( * ) / - - 56 - - 37 + + + 41
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2102
SELECT ALL + + CAST( - - 4 AS SIGNED ), NULLIF ( - - 28, + + AVG ( + 73 ) + + 98 ) * - - 57 * + 47 * - 35 col2
----
4
-2625420

skipif mysql # not compatible
query II rowsort label-2102
SELECT ALL + + CAST ( - - 4 AS INTEGER ), NULLIF ( - - 28, + + AVG ( + 73 ) + + 98 ) * - - 57 * + 47 * - 35 col2
----
4
-2625420

query I rowsort
SELECT - 77 * + 8 * - 81 * - 13 AS col1
----
-648648

query I rowsort
SELECT COALESCE ( + ( + 9 ), - + 16 )
----
9

query I rowsort
SELECT ALL - NULLIF ( + 71, + - 5 / 49 )
----
-71

query II rowsort
SELECT 19 AS col1, - 64
----
19
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL + SUM( 44 ) + 28 + 83
----
155

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + SUM ( 44 ) + 28 + 83
----
155

query II rowsort
SELECT 35 AS col0, + ( 51 ) + + 29
----
35
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2109
SELECT 93 + - ( COUNT( * ) ) + + + 85 DIV - 3 + + 32 * + 37
----
1248

skipif mysql # not compatible
query I rowsort label-2109
SELECT 93 + - ( COUNT ( * ) ) + + + 85 / - 3 + + 32 * + 37
----
1248

query I rowsort
SELECT ALL - 81 - - 23 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT 12 * - 38 / + CASE WHEN NOT AVG ( + 36 ) > - MIN( - 72 ) THEN NULL ELSE 70 END * + 34 + + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT 12 * - 38 / + CASE WHEN NOT AVG ( + 36 ) > - MIN ( - 72 ) THEN NULL ELSE 70 END * + 34 + + - 28
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT 54 * + + COALESCE ( COUNT( * ), NULLIF ( - COALESCE ( - 25, - NULLIF ( + 39, + COUNT( * ) ) DIV 47 + - ( 85 ), - 68 ), + 7 * 22 * + - 38 + - 96 + + + 94 * - ( + 52 ) + - 89 * 22 - - + 75 ), ( + 15 ) * + CASE + 74 WHEN 96 + - - 27 * 53 + - 98 * - 38 + + - 3 THEN 43 WHEN + MAX( ALL - - 41 ) * NULLIF ( + 96, 81 + - 49 DIV + 74 ) * 73 THEN NULL END + - 34 ) * 36
----
1944

skipif mysql # not compatible
query I rowsort label-2113
SELECT 54 * + + COALESCE ( COUNT ( * ), NULLIF ( - COALESCE ( - 25, - NULLIF ( + 39, + COUNT ( * ) ) / 47 + - ( 85 ), - 68 ), + 7 * 22 * + - 38 + - 96 + + + 94 * - ( + 52 ) + - 89 * 22 - - + 75 ), ( + 15 ) * + CASE + 74 WHEN 96 + - - 27 * 53 + - 98 * - 38 + + - 3 THEN 43 WHEN + MAX ( ALL - - 41 ) * NULLIF ( + 96, 81 + - 49 / + 74 ) * 73 THEN NULL END + - 34 ) * 36
----
1944

query I rowsort
SELECT 28 + - 7 + - + NULLIF ( - 11, - + 38 )
----
32

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

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

query I rowsort
SELECT ALL 42 - + + 3 AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2117
SELECT 44 DIV 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2117
SELECT 44 / 52 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT DISTINCT - ( 16 ) DIV - 4 + + ( 3 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT - ( 16 ) / - 4 + + ( 3 ) AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2119
SELECT 27 + - 95 + COUNT( * ) DIV 27
----
-68

skipif mysql # not compatible
query I rowsort label-2119
SELECT 27 + - 95 + COUNT ( * ) / 27
----
-68

query I rowsort
SELECT 63 - + 60
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2121
SELECT 34 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-2121
SELECT 34 / 23
----
1

query I rowsort
SELECT ALL + 80 * - ( + - 16 ) AS col1
----
1280

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

skipif mysql # not compatible
query I rowsort label-2123
SELECT - 50 + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + + 67 * 10
----
670

onlyif mysql # aggregate syntax: 
query II rowsort label-2125
SELECT + ( + + 49 ) * 5, CASE - - 32 WHEN - COUNT( * ) THEN - - 48 END col2
----
245
NULL

skipif mysql # not compatible
query II rowsort label-2125
SELECT + ( + + 49 ) * 5, CASE - - 32 WHEN - COUNT ( * ) THEN - - 48 END col2
----
245
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2127
SELECT 65 DIV - + 69 DIV - + COUNT( ALL 3 ) + 37 col2
----
37

skipif mysql # not compatible
query I rowsort label-2127
SELECT 65 / - + 69 / - + COUNT ( ALL 3 ) + 37 col2
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2128
SELECT 98 * + - 8 / + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT 98 * + - 8 / + - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + MIN( + ( - + 64 ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2130
SELECT + MIN ( + ( - + 64 ) ) AS col2
----
-64

query I rowsort
SELECT 78 + - 63 + - 75 * + 66 * 20 * + - 44
----
4356015

query II rowsort
SELECT + + 93 AS col2, - 16 AS col1
----
93
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT + 70 * COUNT( * ) + - ( 47 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2133
SELECT + 70 * COUNT ( * ) + - ( 47 ) AS col1
----
23

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

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

query I rowsort
SELECT ALL - 43 + 94 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL - CASE 3 WHEN 24 * - CASE WHEN 68 IS NOT NULL THEN - ( - - 66 ) END * 10 THEN NULL WHEN ( + 63 ) * - 52 + COUNT( DISTINCT - 81 ) THEN + + COUNT( * ) * - - 88 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL - CASE 3 WHEN 24 * - CASE WHEN 68 IS NOT NULL THEN - ( - - 66 ) END * 10 THEN NULL WHEN ( + 63 ) * - 52 + COUNT ( DISTINCT - 81 ) THEN + + COUNT ( * ) * - - 88 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT 28 + NULLIF ( COALESCE ( + COUNT( ALL + 33 ), 81 * + + 72 + 55 ), - 61 ) - 61
----
-32

skipif mysql # not compatible
query I rowsort label-2137
SELECT 28 + NULLIF ( COALESCE ( + COUNT ( ALL + 33 ), 81 * + + 72 + 55 ), - 61 ) - 61
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL COUNT( * ) - - 39 - - 77 + - 64 * + - 52
----
3445

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL COUNT ( * ) - - 39 - - 77 + - 64 * + - 52
----
3445

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT MAX( + ( + 80 ) ) * COUNT( * ) + + - 68 - - 59 + 34 - COUNT( * ) + - 15 + + - 41
----
48

skipif mysql # not compatible
query I rowsort label-2139
SELECT MAX ( + ( + 80 ) ) * COUNT ( * ) + + - 68 - - 59 + 34 - COUNT ( * ) + - 15 + + - 41
----
48

query I rowsort
SELECT - 32 * 73 + - - 95
----
-2241

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2141
SELECT 9 * + CAST( NULL AS SIGNED ) AS col2, 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-2141
SELECT 9 * + CAST ( NULL AS INTEGER ) AS col2, 27
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT 48 + + + 34 * MIN( + 89 ) col2
----
3074

skipif mysql # not compatible
query I rowsort label-2142
SELECT 48 + + + 34 * MIN ( + 89 ) col2
----
3074

query I rowsort
SELECT 28 + - - 60 AS col1
----
88

query I rowsort
SELECT DISTINCT - 32 * - 45 AS col2
----
1440

query I rowsort
SELECT 47 * 62
----
2914

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT 53 + - NULLIF ( - 28, - COUNT( * ) * + + 17 ) + + 4 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2147
SELECT 53 + - NULLIF ( - 28, - COUNT ( * ) * + + 17 ) + + 4 AS col1
----
85

query I rowsort
SELECT 24 * + ( + - 73 )
----
-1752

onlyif mysql # aggregate syntax: 
query II rowsort label-2149
SELECT - MAX( DISTINCT 26 ), - 36 + 34 AS col0
----
-26
-2

skipif mysql # not compatible
query II rowsort label-2149
SELECT - MAX ( DISTINCT 26 ), - 36 + 34 AS col0
----
-26
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2150
SELECT DISTINCT - 33 * 84 AS col0, - COUNT( * ) DIV ( 80 )
----
-2772
0

skipif mysql # not compatible
query II rowsort label-2150
SELECT DISTINCT - 33 * 84 AS col0, - COUNT ( * ) / ( 80 )
----
-2772
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2151
SELECT 72 + - 52 * - 74 * + 63 AS col2, CAST( NULL AS SIGNED ) - - COUNT( * )
----
242496
NULL

skipif mysql # not compatible
query II rowsort label-2151
SELECT 72 + - 52 * - 74 * + 63 AS col2, CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
242496
NULL

query II rowsort
SELECT ALL + 51 + + 1 AS col0, + 97 + + 46
----
52
143

query I rowsort
SELECT ALL + COALESCE ( 2, - 90 ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT DISTINCT - - CAST( + 94 AS SIGNED ) + - 27 + + - 64 + - 88 + + - 35 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT - - CAST ( + 94 AS INTEGER ) + - 27 + + - 64 + - 88 + + - 35 AS col2
----
-120

query I rowsort
SELECT + 34 * - 68 * + - 60
----
138720

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT ALL - 60 DIV - NULLIF ( + + ( - 17 ), - 76 * - 45 + - - 63 + - ( + 52 ) + - 28 * - - 43 * - 70 + - + 14 )
----
-3

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL - 60 / - NULLIF ( + + ( - 17 ), - 76 * - 45 + - - 63 + - ( + 52 ) + - 28 * - - 43 * - 70 + - + 14 )
----
-3

query II rowsort
SELECT ALL - 49 + 8 AS col0, ( - NULLIF ( + 26, + - 52 ) ) * 51 AS col0
----
-41
-1326

query I rowsort
SELECT ALL + - 39 + 65 * + 86 * + 78 AS col0
----
435981

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

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT + ( 46 ) * - COUNT ( * ) AS col0
----
-46

query II rowsort
SELECT ALL 96 + - 76 AS col2, 5 + - + 7 AS col0
----
20
-2

query I rowsort
SELECT DISTINCT - 58 + - 16 * 37 * 58 col1
----
-34394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2162
SELECT ALL + MAX( - 93 ) DIV + + 2 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + MAX ( - 93 ) / + + 2 AS col2
----
-46

query I rowsort
SELECT DISTINCT + 66 * + + 83
----
5478

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT + + CASE + 57 WHEN - + 11 - + COUNT( * ) - ( - 78 ) + - COUNT( * ) * 46 * + 93 THEN - 66 ELSE - COUNT( * ) + - COALESCE ( + 69, - + 94, 19, + 97 ) END AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2164
SELECT + + CASE + 57 WHEN - + 11 - + COUNT ( * ) - ( - 78 ) + - COUNT ( * ) * 46 * + 93 THEN - 66 ELSE - COUNT ( * ) + - COALESCE ( + 69, - + 94, 19, + 97 ) END AS col0
----
-70

query I rowsort
SELECT ALL - 64 * + COALESCE ( - 37, + 6 ) + - + 51 col0
----
2317

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + COALESCE ( - SUM( + 25 ), ( + 47 ) - + 38 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-2166
SELECT + COALESCE ( - SUM ( + 25 ), ( + 47 ) - + 38 ) AS col2
----
-25

query II rowsort
SELECT DISTINCT + - 55 * + - ( - 88 ) - 91 AS col2, + 48 AS col2
----
-4931
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT - 52 * COUNT( * ) + + 1 - + - COALESCE ( + + SUM( + 71 ), 42, + 99 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT - 52 * COUNT ( * ) + + 1 - + - COALESCE ( + + SUM ( + 71 ), 42, + 99 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT DISTINCT + MAX( ALL - NULLIF ( 58, - 93 ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT + MAX ( ALL - NULLIF ( 58, - 93 ) ) AS col2
----
-58

query I rowsort
SELECT + 95 * - - 55 AS col1
----
5225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT COUNT( 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2173
SELECT COUNT ( 89 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT + 85 * COUNT( * ) * - ( - + 96 ) * - MIN( ALL - - 72 ) * 62 + - 12 + + 73 AS col2
----
-36426179

skipif mysql # not compatible
query I rowsort label-2174
SELECT + 85 * COUNT ( * ) * - ( - + 96 ) * - MIN ( ALL - - 72 ) * 62 + - 12 + + 73 AS col2
----
-36426179

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + - 42, + 70 * - - 36 ) * 65 col2
----
-2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2177
SELECT ALL COUNT( * ) DIV + - 13 * - 21 AS col1, + 39 * COUNT( * )
----
0
39

skipif mysql # not compatible
query II rowsort label-2177
SELECT ALL COUNT ( * ) / + - 13 * - 21 AS col1, + 39 * COUNT ( * )
----
0
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT MIN( + + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-2178
SELECT MIN ( + + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ALL CASE + 52 WHEN + + COUNT( * ) THEN 18 WHEN - 54 + + 30 + + CASE - MIN( 80 ) WHEN 17 - - + COALESCE ( + 29, - 45 * + COALESCE ( - 59, - + 73 + + 40 ), + NULLIF ( 37, + - 70 ), - AVG ( DISTINCT 24 ) ) * COUNT( * ) + 6 THEN - + 83 END / + 75 * + 71 - - 84 * 95 * + 34 THEN NULL END * + 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL CASE + 52 WHEN + + COUNT ( * ) THEN 18 WHEN - 54 + + 30 + + CASE - MIN ( 80 ) WHEN 17 - - + COALESCE ( + 29, - 45 * + COALESCE ( - 59, - + 73 + + 40 ), + NULLIF ( 37, + - 70 ), - AVG ( DISTINCT 24 ) ) * COUNT ( * ) + 6 THEN - + 83 END / + 75 * + 71 - - 84 * 95 * + 34 THEN NULL END * + 0 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT + NULLIF ( + 61, + COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-2180
SELECT + NULLIF ( + 61, + COUNT ( * ) )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2181
SELECT + COUNT( * ) DIV - - 65 AS col1
----
0

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

query I rowsort
SELECT + 95 + - 21 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT + 71 + ( 16 ) + + COUNT( ALL - 43 )
----
88

skipif mysql # not compatible
query I rowsort label-2183
SELECT + 71 + ( 16 ) + + COUNT ( ALL - 43 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL 83 + + MIN( 3 ) + 81 + - ( + 36 ) * - + 74 AS col0
----
2831

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL 83 + + MIN ( 3 ) + 81 + - ( + 36 ) * - + 74 AS col0
----
2831

query II rowsort
SELECT 16 col0, + 32 * - 29
----
16
-928

onlyif mysql # DIV for integer division: 
query II rowsort label-2186
SELECT ALL - 28 + + + 35 + + - 22 DIV - ( - + NULLIF ( - + 27, - 56 ) ) * 73, 17 AS col0
----
7
17

skipif mysql # not compatible
query II rowsort label-2186
SELECT ALL - 28 + + + 35 + + - 22 / - ( - + NULLIF ( - + 27, - 56 ) ) * 73, 17 AS col0
----
7
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2187
SELECT + 65 + 77 + - - CAST( NULL AS SIGNED ) - COUNT( DISTINCT - - 12 ) - + - 76 / + + 60 - + 62 * - + NULLIF ( - 79, - COALESCE ( + + 56, 13 + 74 + 15 ) / 9 + COUNT( * ) ) + 10 + COUNT( - 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 65 + 77 + - - CAST ( NULL AS INTEGER ) - COUNT ( DISTINCT - - 12 ) - + - 76 / + + 60 - + 62 * - + NULLIF ( - 79, - COALESCE ( + + 56, 13 + 74 + 15 ) / 9 + COUNT ( * ) ) + 10 + COUNT ( - 29 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2188
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 6 * + 87 - + 0 + COUNT( * ) + - + 6 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 6 * + 87 - + 0 + COUNT ( * ) + - + 6 * 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT - + 16 * 48 - - MIN( + - 56 ) + 95 + + - 78 + + 99 + + + ( 21 ) * 49 AS col0
----
321

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT - + 16 * 48 - - MIN ( + - 56 ) + 95 + + - 78 + + 99 + + + ( 21 ) * 49 AS col0
----
321

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL 1 + SUM( ALL 9 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL 1 + SUM ( ALL 9 ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT - - CAST( + COUNT( * ) AS SIGNED ) + + 82 * 68
----
5577

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS INTEGER ) + + 82 * 68
----
5577

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL + + COUNT( * ) + + CASE WHEN NOT 45 <> AVG ( - 35 ) THEN - 38 WHEN NOT NULL IS NOT NULL THEN - 36 * NULLIF ( - 63, + - 17 ) - 20 + + MAX( - + 66 ) ELSE NULL END * + 24 * + COUNT( * )
----
52369

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + + COUNT ( * ) + + CASE WHEN NOT 45 <> AVG ( - 35 ) THEN - 38 WHEN NOT NULL IS NOT NULL THEN - 36 * NULLIF ( - 63, + - 17 ) - 20 + + MAX ( - + 66 ) ELSE NULL END * + 24 * + COUNT ( * )
----
52369

query I rowsort
SELECT DISTINCT + 70 * ( + 65 ) AS col1
----
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + CASE - - 74 WHEN - 39 THEN + 15 / + MAX( ALL + 2 ) * 66 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT + CASE - - 74 WHEN - 39 THEN + 15 / + MAX ( ALL + 2 ) * 66 END AS col2
----
NULL

query I rowsort
SELECT ALL + - 74 + 16
----
-58

query I rowsort
SELECT ALL - 79 + 74 col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT CASE + - 51 WHEN + 24 THEN - - 87 WHEN + 65 * + 58 - + - COUNT( * ) THEN + 77 / - 81 - 49 WHEN 36 THEN + 16 * + 57 * + + CAST( NULL AS SIGNED ) ELSE COUNT( ALL 91 ) END
----
1

skipif mysql # not compatible
query I rowsort label-2197
SELECT CASE + - 51 WHEN + 24 THEN - - 87 WHEN + 65 * + 58 - + - COUNT ( * ) THEN + 77 / - 81 - 49 WHEN 36 THEN + 16 * + 57 * + + CAST ( NULL AS INTEGER ) ELSE COUNT ( ALL 91 ) END
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2198
SELECT ALL + + 24 - CASE + + CAST( - 70 AS SIGNED ) WHEN + 71 + 18 THEN 16 / + 83 - - 74 * + CAST( NULL AS SIGNED ) * + 56 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL + + 24 - CASE + + CAST ( - 70 AS INTEGER ) WHEN + 71 + 18 THEN 16 / + 83 - - 74 * + CAST ( NULL AS INTEGER ) * + 56 * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - + 98 + 41
----
-57

query I rowsort
SELECT ALL ( + 91 ) * - 76
----
-6916

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT - - COUNT( * ) + - 22 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2201
SELECT - - COUNT ( * ) + - 22 AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2202
SELECT DISTINCT + + NULLIF ( - + 27, + 32 ) / MAX( CAST( NULL AS DECIMAL ) ) / + ( + - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + + NULLIF ( - + 27, + 32 ) / MAX ( CAST ( NULL AS REAL ) ) / + ( + - 57 )
----
NULL

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

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

query I rowsort
SELECT ALL - 21 * + 18
----
-378

query I rowsort
SELECT - - ( + 2 ) - - - 78 AS col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2206
SELECT + 11 DIV + 14 + - 43 + - COALESCE ( - + ( - - 98 ), + 98 * + COALESCE ( - + 21, + - 3 ) )
----
55

skipif mysql # not compatible
query I rowsort label-2206
SELECT + 11 / + 14 + - 43 + - COALESCE ( - + ( - - 98 ), + 98 * + COALESCE ( - + 21, + - 3 ) )
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2207
SELECT + MIN( ALL - 83 ) * - COUNT( * ) * - CASE - ( CAST( + 61 AS DECIMAL ) ) WHEN + 6 THEN + - 98 * COUNT( * ) - + 95 + - - 39 END * 31 / - 40 + - COALESCE ( - - 16, + 73 ) + + - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2207
SELECT + MIN ( ALL - 83 ) * - COUNT ( * ) * - CASE - ( CAST ( + 61 AS REAL ) ) WHEN + 6 THEN + - 98 * COUNT ( * ) - + 95 + - - 39 END * 31 / - 40 + - COALESCE ( - - 16, + 73 ) + + - 17 AS col1
----
NULL

query I rowsort
SELECT - 3 + + + 49
----
46

query I rowsort
SELECT DISTINCT - 77 * + 68 * + 4 AS col1
----
-20944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2210
SELECT ALL + CAST( 59 AS SIGNED ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL + CAST ( 59 AS INTEGER ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT + 31 + + COALESCE ( - NULLIF ( + 14, - 71 * + 52 ), + 86 * - - 20 + - 7 * 10 * - + MAX( 62 ) + 68 * - - 58 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2211
SELECT + 31 + + COALESCE ( - NULLIF ( + 14, - 71 * + 52 ), + 86 * - - 20 + - 7 * 10 * - + MAX ( 62 ) + 68 * - - 58 ) AS col2
----
17

query I rowsort
SELECT ALL + 59 * 29
----
1711

query II rowsort
SELECT DISTINCT + 76 AS col1, 13 + - 91
----
76
-78

query I rowsort
SELECT ALL 61 * - 71 + + 21 AS col0
----
-4310

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + 25 + + MAX( ALL + ( 95 ) ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-2215
SELECT + 25 + + MAX ( ALL + ( 95 ) ) AS col2
----
120

query II rowsort
SELECT ALL + 89, 73 AS col0
----
89
73

query I rowsort
SELECT - 95 * + 24 * 21 AS col1
----
-47880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT + COUNT( * ) + - 11 * 40 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT + COUNT ( * ) + - 11 * 40 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT NULLIF ( 76, + + 59 + - 65 / MAX( ( + 32 ) ) )
----
76

skipif mysql # not compatible
query I rowsort label-2219
SELECT NULLIF ( 76, + + 59 + - 65 / MAX ( ( + 32 ) ) )
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2220
SELECT + CAST( NULL AS DECIMAL ) AS col0, 77 - MAX( - 82 ) - - - 30
----
NULL
129

skipif mysql # not compatible
query II rowsort label-2220
SELECT + CAST ( NULL AS REAL ) AS col0, 77 - MAX ( - 82 ) - - - 30
----
NULL
129

query I rowsort
SELECT + ( - 31 ) + - 51 AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT + SUM( + 56 ) * + CAST( NULL AS SIGNED ) * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT + SUM ( + 56 ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL 10 * - 83 + - - 59 + + SUM( 19 ) AS col0
----
-752

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL 10 * - 83 + - - 59 + + SUM ( 19 ) AS col0
----
-752

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT DISTINCT - 56 col1, COUNT( * )
----
-56
1

skipif mysql # not compatible
query II rowsort label-2226
SELECT DISTINCT - 56 col1, COUNT ( * )
----
-56
1

query I rowsort
SELECT - COALESCE ( 16, - + 93, - - 18 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT + + ( - + 22 ) DIV + CASE WHEN + 73 IS NOT NULL THEN + ( MAX( 78 ) ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2228
SELECT + + ( - + 22 ) / + CASE WHEN + 73 IS NOT NULL THEN + ( MAX ( 78 ) ) END AS col1
----
0

query I rowsort
SELECT + + 88 + - 48 + + + 22
----
62

query II rowsort
SELECT 15, 47 col1
----
15
47

query I rowsort
SELECT + 28 + 90
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT ALL CAST( NULL AS SIGNED ) - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL CAST ( NULL AS INTEGER ) - - 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT DISTINCT + NULLIF ( MAX( 98 ), 82 + - 56 + 82 ) * 9 * 37 + + 99 - - COUNT( * ) + + COUNT( * ) DIV + 1
----
32735

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + NULLIF ( MAX ( 98 ), 82 + - 56 + 82 ) * 9 * 37 + + 99 - - COUNT ( * ) + + COUNT ( * ) / + 1
----
32735

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT + 68 * + MIN( ALL - + 49 ) * - 16 - - 60
----
53372

skipif mysql # not compatible
query I rowsort label-2235
SELECT + 68 * + MIN ( ALL - + 49 ) * - 16 - - 60
----
53372

query I rowsort
SELECT ALL - 81 * + - 65 AS col2
----
5265

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT 55 * COUNT( * ) + COUNT( * ) * - COUNT( * ) * + - 33 * - + 18 AS col0
----
-539

skipif mysql # not compatible
query I rowsort label-2237
SELECT 55 * COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) * + - 33 * - + 18 AS col0
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT - SUM( DISTINCT + 25 ) + + 42 + - 33 + - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-2238
SELECT - SUM ( DISTINCT + 25 ) + + 42 + - 33 + - COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT + - COUNT( DISTINCT 22 ) * ( - 25 ) - - 20 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT + - COUNT ( DISTINCT 22 ) * ( - 25 ) - - 20 AS col0
----
45

query I rowsort
SELECT ALL + 32 * + 9 * - - 78
----
22464

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2244
SELECT ALL - CAST( NULL AS DECIMAL ) / - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL - CAST ( NULL AS REAL ) / - 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2245
SELECT 63 * - 21 DIV - COUNT( * )
----
1323

skipif mysql # not compatible
query I rowsort label-2245
SELECT 63 * - 21 / - COUNT ( * )
----
1323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2246
SELECT ALL - 91 + - 55 - + + CAST( + - 85 AS SIGNED ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL - 91 + - 55 - + + CAST ( + - 85 AS INTEGER ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT SUM( ALL 27 ) * COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2247
SELECT SUM ( ALL 27 ) * COUNT ( * ) AS col2
----
27

query I rowsort
SELECT 62 * + 27 AS col0
----
1674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT ALL + COALESCE ( - MAX( ALL + 81 ), - COUNT( * ) * - + NULLIF ( - + CAST( - 13 AS SIGNED ), + + 1 / - COUNT( * ) - - + CAST( + 16 AS SIGNED ) + - 81 * - + CAST( + - 68 AS SIGNED ) ) * - + 18 * + 38 ) + - - 92 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + COALESCE ( - MAX ( ALL + 81 ), - COUNT ( * ) * - + NULLIF ( - + CAST ( - 13 AS INTEGER ), + + 1 / - COUNT ( * ) - - + CAST ( + 16 AS INTEGER ) + - 81 * - + CAST ( + - 68 AS INTEGER ) ) * - + 18 * + 38 ) + - - 92 AS col2
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + SUM( ALL CASE - 53 WHEN - - 7 THEN NULL WHEN + 82 THEN - - 19 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT + SUM ( ALL CASE - 53 WHEN - - 7 THEN NULL WHEN + 82 THEN - - 19 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT ALL 20 - COUNT( * ) - + + COUNT( * ) + + + COUNT( * ) DIV - + COUNT( - 6 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL 20 - COUNT ( * ) - + + COUNT ( * ) + + + COUNT ( * ) / - + COUNT ( - 6 ) col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2253
SELECT - 59 * - ( + 96 ) AS col2, COUNT( * ) AS col0
----
5664
1

skipif mysql # not compatible
query II rowsort label-2253
SELECT - 59 * - ( + 96 ) AS col2, COUNT ( * ) AS col0
----
5664
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT ALL + 21 DIV ( 82 ) DIV 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL + 21 / ( 82 ) / 92 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2256
SELECT ALL 47 * + + 33 * - CASE - COUNT( * ) WHEN - + 78 THEN NULL WHEN + - MAX( 59 ) * + 16 THEN NULL ELSE + 29 - - 45 END, + 86 AS col1
----
-114774
86

skipif mysql # not compatible
query II rowsort label-2256
SELECT ALL 47 * + + 33 * - CASE - COUNT ( * ) WHEN - + 78 THEN NULL WHEN + - MAX ( 59 ) * + 16 THEN NULL ELSE + 29 - - 45 END, + 86 AS col1
----
-114774
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT 14 + - ( 72 ) + + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-2257
SELECT 14 + - ( 72 ) + + COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT + 25 * - + MIN( ( 64 ) ) + - COUNT( * ) + ( + + 20 ) * 52 AS col2
----
-561

skipif mysql # not compatible
query I rowsort label-2258
SELECT + 25 * - + MIN ( ( 64 ) ) + - COUNT ( * ) + ( + + 20 ) * 52 AS col2
----
-561

query I rowsort
SELECT ALL - 27 * + - ( + 51 ) AS col1
----
1377

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2260
SELECT + 52 + - 21 + - CAST( NULL AS SIGNED ) * + 4 / ( + - ( + + COALESCE ( 36, 4, + - 52 ) ) ) AS col2, - 5 col2
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-2260
SELECT + 52 + - 21 + - CAST ( NULL AS INTEGER ) * + 4 / ( + - ( + + COALESCE ( 36, 4, + - 52 ) ) ) AS col2, - 5 col2
----
NULL
-5

query I rowsort
SELECT - 92 * 21 col2
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - ( + COUNT( * ) ) * + 40 * + - 67
----
2680

skipif mysql # not compatible
query I rowsort label-2262
SELECT - ( + COUNT ( * ) ) * + 40 * + - 67
----
2680

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2263
SELECT 83 + + 80 + ( - SUM( DISTINCT - 28 ) ) AS col1, - CAST( NULL AS DECIMAL ) AS col1
----
191
NULL

skipif mysql # not compatible
query II rowsort label-2263
SELECT 83 + + 80 + ( - SUM ( DISTINCT - 28 ) ) AS col1, - CAST ( NULL AS REAL ) AS col1
----
191
NULL

query I rowsort
SELECT 70 * 94 AS col2
----
6580

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

skipif mysql # not compatible
query I rowsort label-2265
SELECT 29 + + + ( COUNT ( * ) ) * + 61 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT DISTINCT CASE + + COALESCE ( - 56, + 25 * + COUNT( * ) ) WHEN 1 * - COALESCE ( + 80, - COUNT( * ) * - + 57 * - 37 - SUM( - + 66 ) ) + - 61 + 90 / - 88 + - MAX( - + 48 ) - + - 28 - + 53 + - 18 + 16 THEN - ( + ( 76 ) ) WHEN + - 72 THEN - 40 * + + 28 / - 16 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT CASE + + COALESCE ( - 56, + 25 * + COUNT ( * ) ) WHEN 1 * - COALESCE ( + 80, - COUNT ( * ) * - + 57 * - 37 - SUM ( - + 66 ) ) + - 61 + 90 / - 88 + - MAX ( - + 48 ) - + - 28 - + 53 + - 18 + 16 THEN - ( + ( 76 ) ) WHEN + - 72 THEN - 40 * + + 28 / - 16 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2267
SELECT ALL - 44 DIV CAST( - 72 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL - 44 / CAST ( - 72 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT + 28 * - 83
----
-2324

query I rowsort
SELECT 62 + - 22
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2270
SELECT DISTINCT - CASE - 67 WHEN - COUNT( * ) THEN 36 WHEN 48 THEN NULL ELSE + + 75 END AS col2, + 68
----
-75
68

skipif mysql # not compatible
query II rowsort label-2270
SELECT DISTINCT - CASE - 67 WHEN - COUNT ( * ) THEN 36 WHEN 48 THEN NULL ELSE + + 75 END AS col2, + 68
----
-75
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT MAX( + - 48 ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-2271
SELECT MAX ( + - 48 ) col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2272
SELECT ALL 9 * COUNT( * ) + + + CAST( 81 AS SIGNED ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL 9 * COUNT ( * ) + + + CAST ( 81 AS INTEGER ) AS col1
----
90

query I rowsort
SELECT ALL + 5 * + 6 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT COUNT( - ( - 29 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2274
SELECT COUNT ( - ( - 29 ) ) col2
----
1

query I rowsort
SELECT ALL - 80 * + 49 * - + 82 + + 92
----
321532

query I rowsort
SELECT 54 - NULLIF ( - 88, 17 ) col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT COUNT( * ) + - CASE + 23 WHEN + - 99 THEN NULL WHEN + 57 THEN + 49 - - - 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT COUNT ( * ) + - CASE + 23 WHEN + - 99 THEN NULL WHEN + 57 THEN + 49 - - - 51 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL - 64 * + 93 + + CASE - 22 WHEN 88 THEN + 17 WHEN - 29 * - 48 * + 56 * + 55 + - 61 THEN NULL ELSE NULL END * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - 64 * + 93 + + CASE - 22 WHEN 88 THEN + 17 WHEN - 29 * - 48 * + 56 * + 55 + - 61 THEN NULL ELSE NULL END * - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 66 * + ( - 75 ) AS col2
----
-4950

onlyif mysql # aggregate syntax: 
query II rowsort label-2280
SELECT 73 * - MAX( DISTINCT + + 41 ), - NULLIF ( + SUM( ALL - 52 ), 71 / + 88 + 4 ) AS col2
----
-2993
52

skipif mysql # not compatible
query II rowsort label-2280
SELECT 73 * - MAX ( DISTINCT + + 41 ), - NULLIF ( + SUM ( ALL - 52 ), 71 / + 88 + 4 ) AS col2
----
-2993
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT ALL - 60 + - - 96 + ( - CAST( + ( + 38 ) AS SIGNED ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL - 60 + - - 96 + ( - CAST ( + ( + 38 ) AS INTEGER ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT 72 + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2283
SELECT 72 + + COUNT ( * )
----
73

query I rowsort
SELECT ALL + 97 - 43 AS col2
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT + COALESCE ( NULLIF ( - + 60, + - COUNT( * ) ), + + 31, - 61 )
----
-60

skipif mysql # not compatible
query I rowsort label-2286
SELECT + COALESCE ( NULLIF ( - + 60, + - COUNT ( * ) ), + + 31, - 61 )
----
-60

query I rowsort
SELECT 88 + - 88 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2288
SELECT ALL + 41 - + COUNT( * ) * 97 * - - 12 - + SUM( DISTINCT 12 ) DIV - MIN( + 95 ) AS col0
----
-1123

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL + 41 - + COUNT ( * ) * 97 * - - 12 - + SUM ( DISTINCT 12 ) / - MIN ( + 95 ) AS col0
----
-1123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2289
SELECT DISTINCT - 83 * 24 * - 13, 9 DIV - MIN( ALL 60 ) * - ( 90 ) AS col0
----
25896
0

skipif mysql # not compatible
query II rowsort label-2289
SELECT DISTINCT - 83 * 24 * - 13, 9 / - MIN ( ALL 60 ) * - ( 90 ) AS col0
----
25896
0

query I rowsort
SELECT 59 * + 44
----
2596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2291
SELECT - + 55 DIV + - SUM( - 34 ) - + + 34 DIV COUNT( ALL 44 ) * 17
----
-579

skipif mysql # not compatible
query I rowsort label-2291
SELECT - + 55 / + - SUM ( - 34 ) - + + 34 / COUNT ( ALL 44 ) * 17
----
-579

onlyif mysql # aggregate syntax: 
query II rowsort label-2292
SELECT DISTINCT - 50 * - 26 + + + 44 * - 83 AS col0, COUNT( * ) + 20 * + 62 AS col1
----
-2352
1241

skipif mysql # not compatible
query II rowsort label-2292
SELECT DISTINCT - 50 * - 26 + + + 44 * - 83 AS col0, COUNT ( * ) + 20 * + 62 AS col1
----
-2352
1241

onlyif mysql # aggregate syntax: 
query II rowsort label-2293
SELECT ALL + 91 * - MIN( + 4 ) * 96, + COUNT( * ) AS col0
----
-34944
1

skipif mysql # not compatible
query II rowsort label-2293
SELECT ALL + 91 * - MIN ( + 4 ) * 96, + COUNT ( * ) AS col0
----
-34944
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL MAX( ALL CASE - 14 WHEN - + 88 THEN - 45 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL MAX ( ALL CASE - 14 WHEN - + 88 THEN - 45 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2296
SELECT ALL - - 88 * + + SUM( 62 ), 73 AS col2
----
5456
73

skipif mysql # not compatible
query II rowsort label-2296
SELECT ALL - - 88 * + + SUM ( 62 ), 73 AS col2
----
5456
73

query II rowsort
SELECT - + 62 AS col2, 16 * + + 15
----
-62
240

query II rowsort
SELECT - - 8 AS col1, ( + - 18 ) + - - 91 * 24 AS col0
----
8
2166

query II rowsort
SELECT - + 51 AS col0, 75 * + + 10 * - + 95
----
-51
-71250

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL - MAX( ALL - 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL - MAX ( ALL - 59 ) AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2301
SELECT + - CASE + 33 WHEN 79 THEN NULL ELSE + - 57 * + COALESCE ( + 26, 40, 8 ) + 59 END * - - 44 + + 2 * + + ( - CASE + 89 WHEN 47 THEN NULL WHEN + ( + - CAST( NULL AS SIGNED ) ) THEN 79 + + COUNT( * ) * - ( - 66 ) WHEN ( - CASE - 86 WHEN COALESCE ( 30, + 72 * 90 / CASE - - 23 WHEN + 56 THEN + - 64 + + + 51 WHEN + MAX( + + ( - 92 ) ) THEN + - 95 * + 17 + 69 ELSE + 22 * + ( + CAST( 10 AS SIGNED ) ) END + 11, 96 / ( 73 ) ) * + 43 THEN NULL ELSE - CAST( NULL AS SIGNED ) * 51 END ) + 39 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT + - CASE + 33 WHEN 79 THEN NULL ELSE + - 57 * + COALESCE ( + 26, 40, 8 ) + 59 END * - - 44 + + 2 * + + ( - CASE + 89 WHEN 47 THEN NULL WHEN + ( + - CAST ( NULL AS INTEGER ) ) THEN 79 + + COUNT ( * ) * - ( - 66 ) WHEN ( - CASE - 86 WHEN COALESCE ( 30, + 72 * 90 / CASE - - 23 WHEN + 56 THEN + - 64 + + + 51 WHEN + MAX ( + + ( - 92 ) ) THEN + - 95 * + 17 + 69 ELSE + 22 * + ( + CAST ( 10 AS INTEGER ) ) END + 11, 96 / ( 73 ) ) * + 43 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * 51 END ) + 39 THEN NULL END )
----
NULL

query II rowsort
SELECT - - 98 AS col2, 25 AS col0
----
98
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ALL + CASE - COALESCE ( - COUNT( * ), + 84 ) WHEN - COUNT( * ) THEN NULL ELSE - - 0 END
----
0

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL + CASE - COALESCE ( - COUNT ( * ), + 84 ) WHEN - COUNT ( * ) THEN NULL ELSE - - 0 END
----
0

query I rowsort
SELECT - 12 + + 63 * - + ( - 42 ) AS col1
----
2634

query I rowsort
SELECT DISTINCT - 40 + - CASE - - ( 24 ) WHEN + 97 THEN + 32 END AS col0
----
NULL

query II rowsort
SELECT - 41 AS col1, + 36
----
-41
36

query I rowsort
SELECT ALL + - 33 + + 20
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL SUM( ALL 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL SUM ( ALL 20 )
----
20

query I rowsort
SELECT ALL + 64 + - + 16 AS col2
----
48

query I rowsort
SELECT ALL 3 + 97 AS col1
----
100

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

skipif mysql # not compatible
query II rowsort label-2311
SELECT ALL COUNT ( * ) * 11 AS col0, - COUNT ( * )
----
11
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT - 20 DIV - 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2312
SELECT - 20 / - 36 AS col0
----
0

query I rowsort
SELECT + 26 + + - 21
----
5

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

skipif mysql # not compatible
query I rowsort label-2314
SELECT - MAX ( ALL 81 )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT + ( + COUNT( CAST( - ( 15 ) AS SIGNED ) ) ) + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-2315
SELECT + ( + COUNT ( CAST ( - ( 15 ) AS INTEGER ) ) ) + - 56
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2316
SELECT + 90 DIV - ( + COALESCE ( - 96, + + 27 * - COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2316
SELECT + 90 / - ( + COALESCE ( - 96, + + 27 * - COUNT ( * ) ) )
----
0

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

query I rowsort
SELECT + 66 * + + 67 * - 9 AS col1
----
-39798

query I rowsort
SELECT ALL + 43 * - 28 + - 45 col2
----
-1249

query I rowsort
SELECT ( CASE 22 WHEN + + 78 + + 72 THEN NULL WHEN + NULLIF ( - ( - AVG ( DISTINCT - - 39 ) ), 21 ) + 54 THEN - - 29 WHEN + 24 * 81 THEN NULL ELSE NULL END )
----
NULL

query III rowsort
SELECT ALL 29 * + ( + 29 ) - + 16 col0, - 61 AS col1, + 74
----
825
-61
74

query I rowsort
SELECT + 36 * 41 AS col2
----
1476

query I rowsort
SELECT ALL ( - 87 ) * - 31 - + 92 * + 80
----
-4663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT DISTINCT 12 * - - CASE 32 WHEN - + 44 * - 75 + - 98 THEN + + 40 * + ( - - COUNT( * ) ) WHEN - 69 THEN ( MIN( CAST( NULL AS SIGNED ) ) ) WHEN + 41 / + 90 + + 7 - - 67 * 39 THEN NULL ELSE + CAST( NULL AS SIGNED ) END * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT 12 * - - CASE 32 WHEN - + 44 * - 75 + - 98 THEN + + 40 * + ( - - COUNT ( * ) ) WHEN - 69 THEN ( MIN ( CAST ( NULL AS INTEGER ) ) ) WHEN + 41 / + 90 + + 7 - - 67 * 39 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END * 79
----
NULL

query I rowsort
SELECT + + 15 - ( - 71 ) col1
----
86

query I rowsort
SELECT ALL 41 * + 67 + - + 77 AS col0
----
2670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2327
SELECT ALL + CAST( - 54 AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + CAST ( - 54 AS INTEGER ) AS col1
----
-54

query II rowsort
SELECT + 65 + 57 AS col0, 4
----
122
4

query I rowsort
SELECT - - 99 * + - ( + 47 ) AS col1
----
-4653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT ALL + 94 DIV + - ( - 55 ) * + COUNT( * ) - + 91 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL + 94 / + - ( - 55 ) * + COUNT ( * ) - + 91 AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2331
SELECT DISTINCT + COUNT( * ) * + 77 + 38 + 21 + - - CAST( 28 AS SIGNED ) * ( + 39 )
----
1228

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT + COUNT ( * ) * + 77 + 38 + 21 + - - CAST ( 28 AS INTEGER ) * ( + 39 )
----
1228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT NULLIF ( - 26, - CAST( + CAST( + - 22 AS SIGNED ) AS SIGNED ) ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-2332
SELECT NULLIF ( - 26, - CAST ( + CAST ( + - 22 AS INTEGER ) AS INTEGER ) ) col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT ALL - 2 + - CAST( 47 AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - 2 + - CAST ( 47 AS INTEGER ) AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT ALL + 44 + - 17 DIV - 62
----
44

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL + 44 + - 17 / - 62
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL + - 81 * + MAX( ALL + 58 )
----
-4698

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL + - 81 * + MAX ( ALL + 58 )
----
-4698

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT MIN( DISTINCT 89 ) col0
----
89

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT MIN ( DISTINCT 89 ) col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - COALESCE ( + 88, COUNT( * ) ) + - + COUNT( ALL 97 )
----
-89

skipif mysql # not compatible
query I rowsort label-2338
SELECT - COALESCE ( + 88, COUNT ( * ) ) + - + COUNT ( ALL 97 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT - ( 20 ) + - MIN( DISTINCT 53 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT - ( 20 ) + - MIN ( DISTINCT 53 ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2340
SELECT + 2 * - CAST( NULL AS SIGNED ) * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT + 2 * - CAST ( NULL AS INTEGER ) * + 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT ALL CAST( - - 54 AS SIGNED ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL CAST ( - - 54 AS INTEGER ) AS col0
----
54

query I rowsort
SELECT - 49 * 26
----
-1274

onlyif mysql # DIV for integer division: 
query I rowsort label-2343
SELECT ALL 61 DIV - + 93
----
0

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL 61 / - + 93
----
0

query I rowsort
SELECT - 66 + + - 31
----
-97

query I rowsort
SELECT ALL 13 * - 68 AS col0
----
-884

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT ALL + 70 DIV + + 48
----
1

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL + 70 / + + 48
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2347
SELECT DISTINCT 19 / 19 - + CASE + - 8 WHEN - CAST( NULL AS SIGNED ) * - 59 THEN + 39 WHEN 9 THEN - 39 / 45 + ( - COUNT( * ) ) * - + 44 - 30 + + + 98 - - ( - - 26 ) WHEN + CAST( NULL AS SIGNED ) + + 51 + - - 99 THEN 61 WHEN - - CAST( NULL AS SIGNED ) + 97 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT 19 / 19 - + CASE + - 8 WHEN - CAST ( NULL AS INTEGER ) * - 59 THEN + 39 WHEN 9 THEN - 39 / 45 + ( - COUNT ( * ) ) * - + 44 - 30 + + + 98 - - ( - - 26 ) WHEN + CAST ( NULL AS INTEGER ) + + 51 + - - 99 THEN 61 WHEN - - CAST ( NULL AS INTEGER ) + 97 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2348
SELECT 70 DIV + + COUNT( * ) + 84
----
154

skipif mysql # not compatible
query I rowsort label-2348
SELECT 70 / + + COUNT ( * ) + 84
----
154

query I rowsort
SELECT ALL 77 * 87
----
6699

onlyif mysql # aggregate syntax: 
query II rowsort label-2350
SELECT ALL - 43 AS col2, 50 + COUNT( * ) AS col1
----
-43
51

skipif mysql # not compatible
query II rowsort label-2350
SELECT ALL - 43 AS col2, 50 + COUNT ( * ) AS col1
----
-43
51

query I rowsort
SELECT 78 + 85
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2352
SELECT + COUNT( * ) * - CAST( - 50 AS SIGNED ) + - 79 + 42 * - CAST( + 95 AS SIGNED ) col0
----
-4019

skipif mysql # not compatible
query I rowsort label-2352
SELECT + COUNT ( * ) * - CAST ( - 50 AS INTEGER ) + - 79 + 42 * - CAST ( + 95 AS INTEGER ) col0
----
-4019

query II rowsort
SELECT + 78 * - 55 * - 92 AS col2, 31 + - 63 AS col0
----
394680
-32

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

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

query I rowsort
SELECT - 96 * COALESCE ( + 36, + + 10 ) + 57
----
-3399

onlyif mysql # aggregate syntax: 
query II rowsort label-2356
SELECT DISTINCT 70 + + - 40 + - 94 + + 21 * COUNT( * ) AS col2, - 69 + + 81
----
-43
12

skipif mysql # not compatible
query II rowsort label-2356
SELECT DISTINCT 70 + + - 40 + - 94 + + 21 * COUNT ( * ) AS col2, - 69 + + 81
----
-43
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT - 45 * - + CASE - 7 WHEN + MIN( 23 ) * - COUNT( * ) * - - 39 THEN + 3 - + - 67 + 18 END - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT - 45 * - + CASE - 7 WHEN + MIN ( 23 ) * - COUNT ( * ) * - - 39 THEN + 3 - + - 67 + 18 END - - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT + MIN( + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2359
SELECT + MIN ( + 42 ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2360
SELECT + 63 * + MAX( - 65 ), - AVG ( DISTINCT + 86 ) + - + 14 - - 71 + - + AVG ( ALL 87 ) * - COUNT( * ) + - - SUM( - 44 ) / - 66 + + ( + - CAST( NULL AS SIGNED ) ) AS col0
----
-4095
NULL

skipif mysql # not compatible
query II rowsort label-2360
SELECT + 63 * + MAX ( - 65 ), - AVG ( DISTINCT + 86 ) + - + 14 - - 71 + - + AVG ( ALL 87 ) * - COUNT ( * ) + - - SUM ( - 44 ) / - 66 + + ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
-4095
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT 35 + + CASE WHEN 96 IS NULL THEN - NULLIF ( + 77, + COUNT( * ) / + 36 - - 70 + 43 ) / + - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT 35 + + CASE WHEN 96 IS NULL THEN - NULLIF ( + 77, + COUNT ( * ) / + 36 - - 70 + 43 ) / + - 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL COUNT( * ) + + 70
----
71

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL COUNT ( * ) + + 70
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT COALESCE ( - 4, + CAST( - + 94 AS SIGNED ), - 43 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2363
SELECT COALESCE ( - 4, + CAST ( - + 94 AS INTEGER ), - 43 ) AS col1
----
-4

query II rowsort
SELECT - 3 col1, - 45
----
-3
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT 59 * + 51 + COUNT( * ) + + - 16 + - 51 - - - 53 * - 59 + COUNT( * ) + 39 * + - ( + + 63 ) AS col0
----
3614

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT 59 * + 51 + COUNT ( * ) + + - 16 + - 51 - - - 53 * - 59 + COUNT ( * ) + 39 * + - ( + + 63 ) AS col0
----
3614

query I rowsort
SELECT DISTINCT - 46 + - - 67 + 22 AS col2
----
43

query I rowsort
SELECT DISTINCT + 65 + 6 - - + 37
----
108

query I rowsort
SELECT DISTINCT 86 + - 16
----
70

query II rowsort
SELECT ( + 0 ) * - - 84 AS col0, + ( + 78 ) AS col0
----
0
78

query I rowsort
SELECT 63 + 64 AS col0
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-2371
SELECT - 36, COUNT( * ) + + + 15 AS col1
----
-36
16

skipif mysql # not compatible
query II rowsort label-2371
SELECT - 36, COUNT ( * ) + + + 15 AS col1
----
-36
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT 30 AS col2, ( 4 ) * + + 79 * - COUNT( * ) - + 17 AS col1
----
30
-333

skipif mysql # not compatible
query II rowsort label-2372
SELECT 30 AS col2, ( 4 ) * + + 79 * - COUNT ( * ) - + 17 AS col1
----
30
-333

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

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

query I rowsort
SELECT 53 + - - 45 AS col0
----
98

query II rowsort
SELECT DISTINCT 52, + 0 AS col1
----
52
0

query I rowsort
SELECT 88 + + 59
----
147

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT 98 + + 75 * - + 60 * 31 * - CASE - 31 WHEN CAST( NULL AS SIGNED ) * + 14 * - - AVG ( - 68 ) THEN - 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT 98 + + 75 * - + 60 * 31 * - CASE - 31 WHEN CAST ( NULL AS INTEGER ) * + 14 * - - AVG ( - 68 ) THEN - 49 END AS col2
----
NULL

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

query III rowsort
SELECT 24, 64 AS col2, - 95 AS col2
----
24
64
-95

query I rowsort
SELECT ALL NULLIF ( + + 50, - NULLIF ( - 3, - 27 * ( - 90 ) + - 30 + + 70 ) * - 58 * + + 49 ) * + 36 + 12
----
1812

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT MAX( DISTINCT 40 ) * - 62
----
-2480

skipif mysql # not compatible
query I rowsort label-2382
SELECT MAX ( DISTINCT 40 ) * - 62
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL - 13 + MIN( - 41 )
----
-54

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL - 13 + MIN ( - 41 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT + NULLIF ( + 96, - 42 * + 45 ) * + - 0 - + - ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2384
SELECT + NULLIF ( + 96, - 42 * + 45 ) * + - 0 - + - ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL + + 81 * - 40 AS col0
----
-3240

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT 38 AS col1, 54 + - CASE + ( - ( - 50 ) ) WHEN 22 * - - SUM( ALL 74 ) * - - 65 + 38 + - 42 - ( + + 61 ) + + NULLIF ( - 42, 80 + - 10 + - + 15 + + COALESCE ( 30, 10 ) + - + 97 + - AVG ( DISTINCT + 97 ) + 79 ) * + - 38 * + + AVG ( ALL - 32 ) * COUNT( DISTINCT + - 26 ) THEN + 14 WHEN ( - 46 ) + + 86 + 59 * + + 65 + - 7 THEN NULL ELSE + - COUNT( * ) + 63 * 9 + + 2 * + 84 - + ( + 85 ) - + 52 END AS col1
----
38
-543

skipif mysql # not compatible
query II rowsort label-2387
SELECT 38 AS col1, 54 + - CASE + ( - ( - 50 ) ) WHEN 22 * - - SUM ( ALL 74 ) * - - 65 + 38 + - 42 - ( + + 61 ) + + NULLIF ( - 42, 80 + - 10 + - + 15 + + COALESCE ( 30, 10 ) + - + 97 + - AVG ( DISTINCT + 97 ) + 79 ) * + - 38 * + + AVG ( ALL - 32 ) * COUNT ( DISTINCT + - 26 ) THEN + 14 WHEN ( - 46 ) + + 86 + 59 * + + 65 + - 7 THEN NULL ELSE + - COUNT ( * ) + 63 * 9 + + 2 * + 84 - + ( + 85 ) - + 52 END AS col1
----
38
-543

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2388
SELECT + 75 AS col0, + 41 DIV + - ( - COUNT( * ) ) col1
----
75
41

skipif mysql # not compatible
query II rowsort label-2388
SELECT + 75 AS col0, + 41 / + - ( - COUNT ( * ) ) col1
----
75
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT 3 DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-2389
SELECT 3 / + 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL CASE - 8 WHEN ( - COUNT( * ) ) THEN NULL WHEN - 12 THEN + 27 ELSE + 31 END + - 22 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL CASE - 8 WHEN ( - COUNT ( * ) ) THEN NULL WHEN - 12 THEN + 27 ELSE + 31 END + - 22 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2391
SELECT ALL - 66 * + + 76 AS col1, - 45 + - 14 + + - CAST( NULL AS SIGNED ) + - 24 + - COUNT( ALL - + 13 ) + 68 + + 94 * - + COALESCE ( 49, + 94, + - 2 + - 45 ) * - + 76 * - 47 - 59 / - 68
----
-5016
NULL

skipif mysql # not compatible
query II rowsort label-2391
SELECT ALL - 66 * + + 76 AS col1, - 45 + - 14 + + - CAST ( NULL AS INTEGER ) + - 24 + - COUNT ( ALL - + 13 ) + 68 + + 94 * - + COALESCE ( 49, + 94, + - 2 + - 45 ) * - + 76 * - 47 - 59 / - 68
----
-5016
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2392
SELECT ALL - ( + - 21 ) AS col1, COUNT( * ) - - 53
----
21
54

skipif mysql # not compatible
query II rowsort label-2392
SELECT ALL - ( + - 21 ) AS col1, COUNT ( * ) - - 53
----
21
54

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

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

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

skipif mysql # not compatible
query I rowsort label-2394
SELECT 83 / - 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2395
SELECT DISTINCT - + COUNT( * ) AS col1, 3
----
-1
3

skipif mysql # not compatible
query II rowsort label-2395
SELECT DISTINCT - + COUNT ( * ) AS col1, 3
----
-1
3

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

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

query II rowsort
SELECT + 93 AS col0, 3 AS col0
----
93
3

query I rowsort
SELECT DISTINCT + ( 60 ) * + 41 col2
----
2460

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2399
SELECT - 63 + - + ( + - CAST( NULL AS DECIMAL ) ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT - 63 + - + ( + - CAST ( NULL AS REAL ) ) * - 46
----
NULL

query I rowsort
SELECT 52 - + 97 AS col0
----
-45

query II rowsort
SELECT + 27 AS col0, 4 + + + 50 * - + 31
----
27
-1546

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT ALL 44 - - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL 44 - - - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT 47 + + - MAX( - 15 ) * - 68
----
-973

skipif mysql # not compatible
query I rowsort label-2403
SELECT 47 + + - MAX ( - 15 ) * - 68
----
-973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2404
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col0, 6 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-2404
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col0, 6 AS col1
----
NULL
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2405
SELECT 82 DIV + - SUM( + 76 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2405
SELECT 82 / + - SUM ( + 76 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2406
SELECT DISTINCT 36 DIV CAST( + 99 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT 36 / CAST ( + 99 AS INTEGER )
----
0

query I rowsort
SELECT - 48 + - 11
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2408
SELECT + 60 DIV - + 90, + 82 * - 77 + 29 + + + COUNT( * ) * + + 38 AS col1
----
0
-6247

skipif mysql # not compatible
query II rowsort label-2408
SELECT + 60 / - + 90, + 82 * - 77 + 29 + + + COUNT ( * ) * + + 38 AS col1
----
0
-6247

query I rowsort
SELECT - 66 * 20 * 28
----
-36960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT + COUNT( * ) * + 32 * - + 70 * - - 25 * + + 21
----
-1176000

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT + COUNT ( * ) * + 32 * - + 70 * - - 25 * + + 21
----
-1176000

query I rowsort
SELECT ALL - 80 * + 21
----
-1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2413
SELECT - 30 DIV MIN( ALL + - 24 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2413
SELECT - 30 / MIN ( ALL + - 24 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2414
SELECT ( + 42 ) * + 14 + + 71 - + 34 DIV - - 76 AS col1
----
659

skipif mysql # not compatible
query I rowsort label-2414
SELECT ( + 42 ) * + 14 + + 71 - + 34 / - - 76 AS col1
----
659

query I rowsort
SELECT ALL + + 52 * + 49 + + 34 * + 86 AS col2
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT - - 76 + + SUM( - ( - 69 ) ) * - 32
----
-2132

skipif mysql # not compatible
query I rowsort label-2416
SELECT - - 76 + + SUM ( - ( - 69 ) ) * - 32
----
-2132

query I rowsort
SELECT ALL + - 53 * + 36 + + + 85
----
-1823

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL + NULLIF ( + 33, 50 * + + 52 + COUNT( * ) - + 40 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + NULLIF ( + 33, 50 * + + 52 + COUNT ( * ) - + 40 ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT + 40 * + - 77 + CASE CAST( 57 AS SIGNED ) WHEN + 48 * + + 63 / - + 10 * + 42 / + CASE + 79 WHEN - COUNT( * ) / + + 47 THEN NULL WHEN - - COUNT( * ) THEN - + 37 END + + 67 THEN + 66 + + NULLIF ( CAST( NULL AS SIGNED ), - + AVG ( DISTINCT - 47 ) + 92 * 4 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + 40 * + - 77 + CASE CAST ( 57 AS INTEGER ) WHEN + 48 * + + 63 / - + 10 * + 42 / + CASE + 79 WHEN - COUNT ( * ) / + + 47 THEN NULL WHEN - - COUNT ( * ) THEN - + 37 END + + 67 THEN + 66 + + NULLIF ( CAST ( NULL AS INTEGER ), - + AVG ( DISTINCT - 47 ) + 92 * 4 ) END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2420
SELECT ALL - NULLIF ( + 2, 77 * - + COUNT( * ) ) * + 29 - 7 + + 21 + + + 12 * - - CAST( NULL AS SIGNED ) * 66 * + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - NULLIF ( + 2, 77 * - + COUNT ( * ) ) * + 29 - 7 + + 21 + + + 12 * - - CAST ( NULL AS INTEGER ) * 66 * + + 36 AS col2
----
NULL

query I rowsort
SELECT - 90 + 20 - + 86 * - 50 AS col0
----
4230

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

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

query II rowsort
SELECT ALL + 3 * 11 - - + 58 - + 47 * - + 72 AS col1, ( 84 ) AS col2
----
3475
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT + ( NULLIF ( + 56, + + 89 / + COALESCE ( 20, + NULLIF ( + 74, + 69 ) * + 8 / + 69 - - ( 98 ) ) * + 74 - 52 * 89 + COUNT( * ) ) ) * 15
----
840

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT + ( NULLIF ( + 56, + + 89 / + COALESCE ( 20, + NULLIF ( + 74, + 69 ) * + 8 / + 69 - - ( 98 ) ) * + 74 - 52 * 89 + COUNT ( * ) ) ) * 15
----
840

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT ALL 38 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL 38 / 74
----
0

query I rowsort
SELECT + 44 + + COALESCE ( 94, - 73, + 24 )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT - SUM( - + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-2427
SELECT - SUM ( - + 88 )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT - 90 - + 40 + - - MAX( DISTINCT ( 8 ) ) + 92 AS col0, 4 col1
----
-30
4

skipif mysql # not compatible
query II rowsort label-2428
SELECT - 90 - + 40 + - - MAX ( DISTINCT ( 8 ) ) + 92 AS col0, 4 col1
----
-30
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2429
SELECT 68, MIN( + 64 ) AS col2
----
68
64

skipif mysql # not compatible
query II rowsort label-2429
SELECT 68, MIN ( + 64 ) AS col2
----
68
64

query II rowsort
SELECT - 84 * 95 * - 22 AS col1, - 69 * + 84
----
175560
-5796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2431
SELECT + 90 + - 23 - 33 + + 82 * 84 * + 21 * + ( + 82 ) + - 65 * + COALESCE ( + + COALESCE ( - COUNT( * ), - - 34 ), - 51 ) + COUNT( * ) + + 61 DIV + - 75 AS col2
----
11861236

skipif mysql # not compatible
query I rowsort label-2431
SELECT + 90 + - 23 - 33 + + 82 * 84 * + 21 * + ( + 82 ) + - 65 * + COALESCE ( + + COALESCE ( - COUNT ( * ), - - 34 ), - 51 ) + COUNT ( * ) + + 61 / + - 75 AS col2
----
11861236

query I rowsort
SELECT DISTINCT 95 * + 49 AS col0
----
4655

query II rowsort
SELECT ALL 54, + 14 AS col1
----
54
14

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

query I rowsort
SELECT ALL 48 * 25 AS col0
----
1200

query I rowsort
SELECT + 54 + 56 AS col0
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT DISTINCT 60 + - CAST( + 33 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT 60 + - CAST ( + 33 AS INTEGER )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL SUM( - 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL SUM ( - 74 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT NULLIF ( - + 75, 99 * - 96 - + 68 * - 94 + SUM( - 7 ) * 43 ) + 15 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT NULLIF ( - + 75, 99 * - 96 - + 68 * - 94 + SUM ( - 7 ) * 43 ) + 15 AS col1
----
-60

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

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

query I rowsort
SELECT + ( - - 39 ) + 11 * - 37 * + 11 + + 82
----
-4356

query II rowsort
SELECT ALL 76 AS col1, 70 AS col1
----
76
70

query II rowsort
SELECT 62 col0, + 94 AS col0
----
62
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT + 0 + + 19 * - NULLIF ( - CASE + ( + 27 ) WHEN 19 DIV - 51 THEN - 36 ELSE + + 8 * - 77 DIV COUNT( * ) END, 15 ) * + 5 * - 21
----
1228920

skipif mysql # not compatible
query I rowsort label-2444
SELECT + 0 + + 19 * - NULLIF ( - CASE + ( + 27 ) WHEN 19 / - 51 THEN - 36 ELSE + + 8 * - 77 / COUNT ( * ) END, 15 ) * + 5 * - 21
----
1228920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT COUNT( ALL 46 )
----
1

skipif mysql # not compatible
query I rowsort label-2446
SELECT COUNT ( ALL 46 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2447
SELECT DISTINCT - + 10 DIV 86 - + 75 + - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT - + 10 / 86 - + 75 + - COUNT ( * )
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT ALL - 50 DIV + COALESCE ( - 67, 44 ) + + + ( 57 ) + 48 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - 50 / + COALESCE ( - 67, 44 ) + + + ( 57 ) + 48 AS col1
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2449
SELECT + COALESCE ( + COUNT( * ), - COALESCE ( - COUNT( ALL + - 28 ), + 56 * - 75 ) * - 64 + - 35 DIV - 28 + 87 ) + + 20 * + - 44 AS col2, 70
----
-879
70

skipif mysql # not compatible
query II rowsort label-2449
SELECT + COALESCE ( + COUNT ( * ), - COALESCE ( - COUNT ( ALL + - 28 ), + 56 * - 75 ) * - 64 + - 35 / - 28 + 87 ) + + 20 * + - 44 AS col2, 70
----
-879
70

query I rowsort
SELECT ALL - 25 * - - ( - 50 ) + - 40 * 55 * + 75
----
-163750

query I rowsort
SELECT + + 3 * 35 AS col1
----
105

query II rowsort
SELECT + + NULLIF ( - 92, - 75 ) AS col2, - 67 * - + 57 * + - 2 AS col1
----
-92
-7638

query II rowsort
SELECT DISTINCT + - 75 AS col1, 69
----
-75
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT - - SUM( DISTINCT + CASE WHEN NOT NULL <= NULL THEN 7 END ) * CASE 64 WHEN 29 THEN 74 ELSE - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT - - SUM ( DISTINCT + CASE WHEN NOT NULL <= NULL THEN 7 END ) * CASE 64 WHEN 29 THEN 74 ELSE - 29 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2455
SELECT - COUNT( 31 ) * + CAST( NULL AS SIGNED ) * - + 85 * - 27 + + - 37 - - - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT - COUNT ( 31 ) * + CAST ( NULL AS INTEGER ) * - + 85 * - 27 + + - 37 - - - 1 AS col0
----
NULL

query II rowsort
SELECT ALL + 10 AS col2, - 44
----
10
-44

query II rowsort
SELECT ALL + + 98 AS col0, 29 * - NULLIF ( - 27, - - 31 )
----
98
783

query I rowsort
SELECT - 68 - + 20 * + 74 * - 10
----
14732

query I rowsort
SELECT ALL - + 84 * + 62 col0
----
-5208

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT - 20 * - + COUNT( * ) DIV - SUM( - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT - 20 * - + COUNT ( * ) / - SUM ( - 85 )
----
0

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

skipif mysql # not compatible
query I rowsort label-2462
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) + - 57 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2463
SELECT + COUNT ( ALL + 47 ) AS col2
----
1

query I rowsort
SELECT ALL - 24 * 63 * - + 62 AS col2
----
93744

query I rowsort
SELECT 98 * - 56 AS col2
----
-5488

onlyif mysql # aggregate syntax: 
query II rowsort label-2466
SELECT DISTINCT - COUNT( * ) + 66, COUNT( * ) AS col0
----
65
1

skipif mysql # not compatible
query II rowsort label-2466
SELECT DISTINCT - COUNT ( * ) + 66, COUNT ( * ) AS col0
----
65
1

query I rowsort
SELECT ( + 41 ) * 25
----
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT COUNT( * ) * 69 col2
----
69

skipif mysql # not compatible
query I rowsort label-2468
SELECT COUNT ( * ) * 69 col2
----
69

query I rowsort
SELECT 81 + - + 70 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT + 7 + + + MIN( ALL - 17 ) * 12 - + 74 AS col0
----
-271

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT + 7 + + + MIN ( ALL - 17 ) * 12 - + 74 AS col0
----
-271

query I rowsort
SELECT 97 * ( 15 )
----
1455

query I rowsort
SELECT DISTINCT 42 + 34 + - 63 AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2473
SELECT ALL COALESCE ( - 65, CAST( NULL AS SIGNED ) * COALESCE ( + 76, - + 75 DIV 30 ) + - + 85, - 32, CAST( NULL AS SIGNED ) * 89 + + - 0 - + 93 ) DIV + + 34 col1, + CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2473
SELECT ALL COALESCE ( - 65, CAST ( NULL AS INTEGER ) * COALESCE ( + 76, - + 75 / 30 ) + - + 85, - 32, CAST ( NULL AS INTEGER ) * 89 + + - 0 - + 93 ) / + + 34 col1, + CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT 87 + + 83 DIV - - 98 * - MIN( DISTINCT - 80 ) * + + 99 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2474
SELECT 87 + + 83 / - - 98 * - MIN ( DISTINCT - 80 ) * + + 99 AS col1
----
87

query I rowsort
SELECT 23 * 89
----
2047

query II rowsort
SELECT DISTINCT 6 + + + 5, - 33 col0
----
11
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2477
SELECT ALL 41 + - 47 / + - 46 * - CASE - - 50 WHEN + 27 THEN - 51 END, + 28 + + - COUNT( * ) AS col0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-2477
SELECT ALL 41 + - 47 / + - 46 * - CASE - - 50 WHEN + 27 THEN - 51 END, + 28 + + - COUNT ( * ) AS col0
----
NULL
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2478
SELECT DISTINCT + - 33 + + 97 + 99 + 57 col2, - ( + ( - CASE COUNT( * ) WHEN - COUNT( * ) THEN 55 WHEN 61 * - + COUNT( * ) + - + 52 THEN NULL END ) )
----
220
NULL

skipif mysql # not compatible
query II rowsort label-2478
SELECT DISTINCT + - 33 + + 97 + 99 + 57 col2, - ( + ( - CASE COUNT ( * ) WHEN - COUNT ( * ) THEN 55 WHEN 61 * - + COUNT ( * ) + - + 52 THEN NULL END ) )
----
220
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2479
SELECT DISTINCT + COUNT( * ) * - + 29 * + CAST( NULL AS SIGNED ) + - - 88 - CAST( 24 AS DECIMAL ) / + MAX( ALL + 13 ) * - COUNT( 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT + COUNT ( * ) * - + 29 * + CAST ( NULL AS INTEGER ) + - - 88 - CAST ( 24 AS REAL ) / + MAX ( ALL + 13 ) * - COUNT ( 44 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2480
SELECT - 22 + - CAST( COUNT( * ) AS SIGNED ) - - 46 DIV + 47 + - MAX( + + 66 ) + - - 25
----
-64

skipif mysql # not compatible
query I rowsort label-2480
SELECT - 22 + - CAST ( COUNT ( * ) AS INTEGER ) - - 46 / + 47 + - MAX ( + + 66 ) + - - 25
----
-64

query I rowsort
SELECT ALL - - 20 * - ( + 37 )
----
-740

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT - 99 * 74 * - - 28 + ( - 58 ) DIV 76
----
-205128

skipif mysql # not compatible
query I rowsort label-2483
SELECT - 99 * 74 * - - 28 + ( - 58 ) / 76
----
-205128

query I rowsort
SELECT + ( + 44 ) * - 48 * + 68 + + 18 * + 45
----
-142806

onlyif mysql # DIV for integer division: 
query I rowsort label-2485
SELECT - - 16 DIV - ( 69 ) + - ( - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-2485
SELECT - - 16 / - ( 69 ) + - ( - 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT MIN( - ( - 69 ) )
----
69

skipif mysql # not compatible
query I rowsort label-2486
SELECT MIN ( - ( - 69 ) )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT + ( - 23 ) DIV + + 7 + + 8 DIV 54
----
-3

skipif mysql # not compatible
query I rowsort label-2487
SELECT + ( - 23 ) / + + 7 + + 8 / 54
----
-3

query I rowsort
SELECT 45 + - + 34 AS col1
----
11

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

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

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

skipif mysql # not compatible
query I rowsort label-2490
SELECT - 99 * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + ( + ( + 33 ) ) ) * - ( + 36 ) * ( + 10 )
----
-11880

query I rowsort
SELECT ALL - - ( - - 39 )
----
39

query I rowsort
SELECT - 24 * 90 + + 3
----
-2157

onlyif mysql # DIV for integer division: 
query II rowsort label-2494
SELECT DISTINCT + 11 * - 62 * - - 16 - + - 27, + 26 DIV + + 13 AS col2
----
-10885
2

skipif mysql # not compatible
query II rowsort label-2494
SELECT DISTINCT + 11 * - 62 * - - 16 - + - 27, + 26 / + + 13 AS col2
----
-10885
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2495
SELECT ALL + MIN( ALL + - 21 ) * 11 DIV - + COUNT( * ) col1
----
231

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL + MIN ( ALL + - 21 ) * 11 / - + COUNT ( * ) col1
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT 82 + + 73 DIV - 33
----
80

skipif mysql # not compatible
query I rowsort label-2496
SELECT 82 + + 73 / - 33
----
80

query I rowsort
SELECT DISTINCT 20 + - - 17 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2498
SELECT ALL - COALESCE ( - - 47, - 36 - + 92 + + + COUNT( * ) + - + 80 * + - 53 - + CAST( - 41 AS SIGNED ) + + COUNT( * ) - 29 DIV + 11 - + + 82 + - + 63 * + 90 * + 64, + 51, + + CASE - COUNT( * ) WHEN 16 + + 72 * - + 65 + - + 94 THEN NULL ELSE - CAST( + 97 AS SIGNED ) + - - 68 END )
----
-47

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - COALESCE ( - - 47, - 36 - + 92 + + + COUNT ( * ) + - + 80 * + - 53 - + CAST ( - 41 AS INTEGER ) + + COUNT ( * ) - 29 / + 11 - + + 82 + - + 63 * + 90 * + 64, + 51, + + CASE - COUNT ( * ) WHEN 16 + + 72 * - + 65 + - + 94 THEN NULL ELSE - CAST ( + 97 AS INTEGER ) + - - 68 END )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT + 87 AS col0, + SUM( - + 46 ) * + 66 * 11
----
87
-33396

skipif mysql # not compatible
query II rowsort label-2499
SELECT + 87 AS col0, + SUM ( - + 46 ) * + 66 * 11
----
87
-33396

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT MIN( DISTINCT - + 10 ) * + 0 * 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2500
SELECT MIN ( DISTINCT - + 10 ) * + 0 * 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT 56 * - 22 * + - COALESCE ( - 83, - - CASE + 99 WHEN + 55 - - CASE - COUNT( * ) WHEN + COUNT( * ) * 60 THEN - + COUNT( * ) ELSE NULL END + + 98 + COUNT( * ) + 51 + 12 THEN - 73 + + 3 ELSE - 65 END * - 95 * + 66 * 21 ) + + 10 * + - 60 AS col1
----
-102856

skipif mysql # not compatible
query I rowsort label-2501
SELECT 56 * - 22 * + - COALESCE ( - 83, - - CASE + 99 WHEN + 55 - - CASE - COUNT ( * ) WHEN + COUNT ( * ) * 60 THEN - + COUNT ( * ) ELSE NULL END + + 98 + COUNT ( * ) + 51 + 12 THEN - 73 + + 3 ELSE - 65 END * - 95 * + 66 * 21 ) + + 10 * + - 60 AS col1
----
-102856

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT DISTINCT - NULLIF ( NULLIF ( + + 84, 21 * - + COUNT( * ) ), - 45 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT - NULLIF ( NULLIF ( + + 84, 21 * - + COUNT ( * ) ), - 45 ) AS col0
----
-84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT DISTINCT 84 + - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT 84 + - COUNT ( * ) AS col2
----
83

query I rowsort
SELECT ALL - ( - 40 ) col0
----
40

query I rowsort
SELECT ALL + 93 + - 32
----
61

query I rowsort
SELECT 91 * - CASE + 18 WHEN 24 THEN NULL WHEN + - 71 - - - 47 THEN - - 10 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 19 + + + 54 AS col0
----
73

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

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

query II rowsort
SELECT ( - 64 ) - 41 AS col2, - 84 AS col2
----
-105
-84

query I rowsort
SELECT 16 * - + 92 AS col1
----
-1472

query I rowsort
SELECT 23 + 95 AS col1
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT DISTINCT + 76 + 59 + 21 DIV - 84 + + 91 * + - 65
----
-5780

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT + 76 + 59 + 21 / - 84 + + 91 * + - 65
----
-5780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2514
SELECT COUNT( * ) / + 63 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT COUNT ( * ) / + 63 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT 6 * + 23 * - CAST( + 28 AS SIGNED ) AS col2
----
-3864

skipif mysql # not compatible
query I rowsort label-2515
SELECT 6 * + 23 * - CAST ( + 28 AS INTEGER ) AS col2
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL SUM( ALL 57 )
----
57

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL SUM ( ALL 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT + SUM( 16 ) - - 30
----
46

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT + SUM ( 16 ) - - 30
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2518
SELECT 25 - 89 DIV - COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-2518
SELECT 25 - 89 / - COUNT ( * )
----
114

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT ALL 29 DIV COALESCE ( CASE - 45 WHEN - 4 - 56 THEN 47 * - 95 + 75 END DIV 52, 23 * 36 + 95 DIV 62 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL 29 / COALESCE ( CASE - 45 WHEN - 4 - 56 THEN 47 * - 95 + 75 END / 52, 23 * 36 + 95 / 62 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT DISTINCT 46 DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT 46 / 75 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT 15 + CAST( 65 AS SIGNED ) * - 94
----
-6095

skipif mysql # not compatible
query I rowsort label-2522
SELECT 15 + CAST ( 65 AS INTEGER ) * - 94
----
-6095

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL COUNT( ALL - 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL COUNT ( ALL - 75 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL COUNT( DISTINCT - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL COUNT ( DISTINCT - 70 )
----
1

query I rowsort
SELECT NULLIF ( 97, 28 - + 32 )
----
97

query I rowsort
SELECT ALL 21 * 62 AS col0
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT CASE SUM( - 67 ) WHEN + 14 - + 51 THEN NULL ELSE - 83 + 62 END AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2527
SELECT CASE SUM ( - 67 ) WHEN + 14 - + 51 THEN NULL ELSE - 83 + 62 END AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL 83 * - 0 + 27 * + SUM( NULLIF ( 31, 93 - + 17 ) ) AS col2
----
837

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL 83 * - 0 + 27 * + SUM ( NULLIF ( 31, 93 - + 17 ) ) AS col2
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT MAX( DISTINCT 67 )
----
67

skipif mysql # not compatible
query I rowsort label-2529
SELECT MAX ( DISTINCT 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT COUNT( * ) * 16 + 76 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2530
SELECT COUNT ( * ) * 16 + 76 AS col0
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT MAX( DISTINCT + 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2532
SELECT MAX ( DISTINCT + 49 ) AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT + COALESCE ( 51, 98, 69 + 16 * ( 17 + - 16 ) ) DIV 45 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2533
SELECT + COALESCE ( 51, 98, 69 + 16 * ( 17 + - 16 ) ) / 45 AS col0
----
1

query I rowsort
SELECT + 49 * 21 AS col2
----
1029

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT + SUM( DISTINCT + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-2535
SELECT + SUM ( DISTINCT + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT COUNT( 96 )
----
1

skipif mysql # not compatible
query I rowsort label-2536
SELECT COUNT ( 96 )
----
1

query I rowsort
SELECT ALL 39 * 41 + 75
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT MIN( 76 ) * + 73 - 8 AS col0
----
5540

skipif mysql # not compatible
query I rowsort label-2538
SELECT MIN ( 76 ) * + 73 - 8 AS col0
----
5540

query I rowsort
SELECT ALL - 86 * + 96 + - 12 col0
----
-8268

query I rowsort
SELECT ALL ( 24 ) * + 78 AS col0
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT COUNT( ALL ( + 99 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2541
SELECT COUNT ( ALL ( + 99 ) ) col0
----
1

query I rowsort
SELECT ALL + 89 + - 99 * + 49
----
-4762

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT MIN( + 85 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-2543
SELECT MIN ( + 85 ) col0
----
85

query I rowsort
SELECT ALL 72 + - 7 * 66 AS col0
----
-390

query I rowsort
SELECT + 77 + 0
----
77

query I rowsort
SELECT 89 * 2 - + ( - 99 ) AS col2
----
277

query I rowsort
SELECT - 59 - + 29
----
-88

query I rowsort
SELECT - 36 + 45
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT - NULLIF ( - 66, 22 * CAST( NULL AS SIGNED ) )
----
66

skipif mysql # not compatible
query I rowsort label-2549
SELECT - NULLIF ( - 66, 22 * CAST ( NULL AS INTEGER ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - 50 * MAX( 94 ) + + 57 AS col0
----
-4643

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 50 * MAX ( 94 ) + + 57 AS col0
----
-4643

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

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

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

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

query I rowsort
SELECT ALL COALESCE ( 94, - 33 ) AS col2
----
94

query I rowsort
SELECT - - 93 * 27 AS col1
----
2511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2555
SELECT + COUNT( + ( 22 ) ) + MAX( ALL CAST( NULL AS SIGNED ) - - 76 ) / - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT + COUNT ( + ( 22 ) ) + MAX ( ALL CAST ( NULL AS INTEGER ) - - 76 ) / - 12 AS col2
----
NULL

query I rowsort
SELECT + 71 + 5 AS col2
----
76

query I rowsort
SELECT - 45 + 30
----
-15

query I rowsort
SELECT ALL + - 53 * - 6 AS col2
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT - MAX( 24 ) * + 82 AS col2
----
-1968

skipif mysql # not compatible
query I rowsort label-2559
SELECT - MAX ( 24 ) * + 82 AS col2
----
-1968

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT - - 41 + + MIN( DISTINCT 38 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2561
SELECT - - 41 + + MIN ( DISTINCT 38 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT DISTINCT + CASE + 21 WHEN - 95 THEN 98 + 94 WHEN + 43 THEN NULL ELSE + COALESCE ( COUNT( * ), + 50 ) END
----
1

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT + CASE + 21 WHEN - 95 THEN 98 + 94 WHEN + 43 THEN NULL ELSE + COALESCE ( COUNT ( * ), + 50 ) END
----
1

query I rowsort
SELECT ALL - + ( 38 ) * 83
----
-3154

query I rowsort
SELECT - + 66 + + 68
----
2

query I rowsort
SELECT - - 91 + + 43 AS col1
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2566
SELECT ALL + + 48 + - ( 88 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + + 48 + - ( 88 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT ALL + 22 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL + 22 / + 91
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2569
SELECT COALESCE ( CASE + CAST( ( + 12 ) AS SIGNED ) WHEN - 26 + 52 * CAST( 25 AS SIGNED ) THEN 91 WHEN - 64 * 35 + - 13 THEN NULL ELSE CAST( NULL AS SIGNED ) * 53 - COUNT( * ) END, + 83 DIV - 19 ) * 20 + - 52
----
-132

skipif mysql # not compatible
query I rowsort label-2569
SELECT COALESCE ( CASE + CAST ( ( + 12 ) AS INTEGER ) WHEN - 26 + 52 * CAST ( 25 AS INTEGER ) THEN 91 WHEN - 64 * 35 + - 13 THEN NULL ELSE CAST ( NULL AS INTEGER ) * 53 - COUNT ( * ) END, + 83 / - 19 ) * 20 + - 52
----
-132

query I rowsort
SELECT - 0 * CASE + 13 * 82 WHEN + 30 * 13 THEN NULL WHEN 72 THEN - 17 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT DISTINCT 23 DIV - 75 + - 18
----
-18

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT 23 / - 75 + - 18
----
-18

query I rowsort
SELECT - 61 + + 26 col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + NULLIF ( - - COUNT( * ), COALESCE ( - 17, + 41 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2573
SELECT + NULLIF ( - - COUNT ( * ), COALESCE ( - 17, + 41 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL COUNT( DISTINCT + ( + ( + 74 ) ) ) * 98 + - 75 * + 46
----
-3352

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL COUNT ( DISTINCT + ( + ( + 74 ) ) ) * 98 + - 75 * + 46
----
-3352

query I rowsort
SELECT + 78 * 46 * 8 + - 86 * 6
----
28188

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

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

query I rowsort
SELECT + COALESCE ( + 57, 38, 12 )
----
57

query I rowsort
SELECT + 7 * 88 * + 68
----
41888

query I rowsort
SELECT DISTINCT 78 * - - 22 - + 51 AS col2
----
1665

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

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

query I rowsort
SELECT 94 * + 59 + 94 AS col1
----
5640

query I rowsort
SELECT - 46 * + 43 + 59
----
-1919

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

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL 18 / 59 / - COUNT ( * )
----
0

query I rowsort
SELECT + 41 + - + ( - 29 ) + - 61
----
9

query I rowsort
SELECT DISTINCT 53 * + 33
----
1749

query I rowsort
SELECT DISTINCT 70 * 3
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT MAX( - - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-2587
SELECT MAX ( - - 30 )
----
30

query I rowsort
SELECT ALL 82 * + ( - 5 ) * - 26
----
10660

onlyif mysql # DIV for integer division: 
query I rowsort label-2589
SELECT + 94 DIV - + 50
----
-1

skipif mysql # not compatible
query I rowsort label-2589
SELECT + 94 / - + 50
----
-1

query I rowsort
SELECT + - 11 * + - 20 AS col1
----
220

query I rowsort
SELECT + 46 - 48
----
-2

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

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

query I rowsort
SELECT ALL 85 * + 17 * 99
----
143055

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT - - MIN( - - 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2594
SELECT - - MIN ( - - 8 ) AS col0
----
8

query I rowsort
SELECT DISTINCT 3 * 80 + - 0 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT SUM( DISTINCT + + 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2596
SELECT SUM ( DISTINCT + + 25 ) AS col2
----
25

query I rowsort
SELECT NULLIF ( 23, - 91 ) AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT DISTINCT - COALESCE ( + 44, CAST( 55 AS SIGNED ) + + ( 17 ) ) + - 30
----
-74

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT - COALESCE ( + 44, CAST ( 55 AS INTEGER ) + + ( 17 ) ) + - 30
----
-74

query I rowsort
SELECT - 18 * 20 AS col2
----
-360

query I rowsort
SELECT ALL 88 + - 73
----
15

query I rowsort
SELECT DISTINCT 92 + - 0 col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT - + CASE 42 WHEN 71 + CAST( NULL AS SIGNED ) THEN - 43 WHEN + ( 11 ) THEN - 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT - + CASE 42 WHEN 71 + CAST ( NULL AS INTEGER ) THEN - 43 WHEN + ( 11 ) THEN - 20 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL - 65 * - NULLIF ( ( + COUNT( * ) ), + 21 ) col0
----
65

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - 65 * - NULLIF ( ( + COUNT ( * ) ), + 21 ) col0
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2604
SELECT + 85 DIV - + CAST( + 12 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 85 / - + CAST ( + 12 AS INTEGER )
----
-7

query I rowsort
SELECT 12 * + 92 * 6
----
6624

query I rowsort
SELECT DISTINCT - + 83 * - 48 AS col2
----
3984

query I rowsort
SELECT ALL + - 21 + 27
----
6

query I rowsort
SELECT 92 * 10 AS col1
----
920

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT DISTINCT + 7 - + 20 DIV - 14 + 78
----
86

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT + 7 - + 20 / - 14 + 78
----
86

query I rowsort
SELECT 81 + 40 * - + COALESCE ( 83, 41 * - 11 ) AS col0
----
-3239

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT COUNT( * ) * - 64 * ( 83 )
----
-5312

skipif mysql # not compatible
query I rowsort label-2613
SELECT COUNT ( * ) * - 64 * ( 83 )
----
-5312

query I rowsort
SELECT 16 + - 80 AS col2
----
-64

query I rowsort
SELECT 32 * - 81 AS col0
----
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT - COUNT( * ) * - 75 col0
----
75

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT - COUNT ( * ) * - 75 col0
----
75

query I rowsort
SELECT 15 + + 96 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT SUM( + + 50 ) * 11 * + 39 - - 53
----
21503

skipif mysql # not compatible
query I rowsort label-2618
SELECT SUM ( + + 50 ) * 11 * + 39 - - 53
----
21503

query I rowsort
SELECT + 39 * + + 26
----
1014

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

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

query II rowsort
SELECT 91 AS col2, 24 AS col2
----
91
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2622
SELECT ALL CAST( + 56 AS SIGNED ) + + + 86 + - 29 * - 37 AS col0
----
1215

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL CAST ( + 56 AS INTEGER ) + + + 86 + - 29 * - 37 AS col0
----
1215

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

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

skipif mysql # not compatible
query I rowsort label-2624
SELECT - COUNT ( ALL + 37 ) * + - 48 AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT DISTINCT - 77 + - - CAST( + 63 AS SIGNED ) + 93 col1
----
79

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT - 77 + - - CAST ( + 63 AS INTEGER ) + 93 col1
----
79

query I rowsort
SELECT ALL 33 * + - 57 * 22 * + 50
----
-2069100

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT 58 DIV + 35 + 49 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2627
SELECT 58 / + 35 + 49 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT - - MIN( DISTINCT - 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2628
SELECT - - MIN ( DISTINCT - 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT MAX( - 74 ) * - 85 * 39 AS col0
----
245310

skipif mysql # not compatible
query I rowsort label-2629
SELECT MAX ( - 74 ) * - 85 * 39 AS col0
----
245310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT ( 58 ) + + - 36 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT ( 58 ) + + - 36 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2631
SELECT + CAST( NULL AS DECIMAL ) / MAX( + + 81 ) * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT + CAST ( NULL AS REAL ) / MAX ( + + 81 ) * 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT - 91 + - 41 / + + CASE - 3 WHEN - 38 * 7 THEN NULL WHEN COUNT( * ) THEN 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT - 91 + - 41 / + + CASE - 3 WHEN - 38 * 7 THEN NULL WHEN COUNT ( * ) THEN 26 END
----
NULL

query I rowsort
SELECT - 5 + + 79
----
74

query I rowsort
SELECT 76 * - 26 AS col1
----
-1976

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT DISTINCT - COALESCE ( 61, - - 78, + 62 DIV - 88 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT - COALESCE ( 61, - - 78, + 62 / - 88 ) col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT ALL + COALESCE ( - 32, - MIN( - 69 ) - + 71 ) - + AVG ( - CASE 75 WHEN 1 + ( - 62 ) THEN + 45 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL + COALESCE ( - 32, - MIN ( - 69 ) - + 71 ) - + AVG ( - CASE 75 WHEN 1 + ( - 62 ) THEN + 45 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2637
SELECT CAST( NULL AS DECIMAL ) + - ( - COUNT( + 18 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT CAST ( NULL AS REAL ) + - ( - COUNT ( + 18 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL + 93 - COUNT( * ) + - 56 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + 93 - COUNT ( * ) + - 56 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT 7 + - ( + COUNT( * ) ) + - 72
----
-66

skipif mysql # not compatible
query I rowsort label-2639
SELECT 7 + - ( + COUNT ( * ) ) + - 72
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2640
SELECT ALL - MIN( - 54 ) AS col2, + 49 AS col1
----
54
49

skipif mysql # not compatible
query II rowsort label-2640
SELECT ALL - MIN ( - 54 ) AS col2, + 49 AS col1
----
54
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - 95 * + - MIN( + 0 ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 95 * + - MIN ( + 0 ) + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT + COUNT( DISTINCT + - NULLIF ( - 54, + 79 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2642
SELECT + COUNT ( DISTINCT + - NULLIF ( - 54, + 79 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL - COUNT( * ) * 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - COUNT ( * ) * 81 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2644
SELECT NULLIF ( + COUNT( * ), + CASE 24 WHEN - 76 THEN + COUNT( * ) END ) DIV CAST( 14 * + 18 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT NULLIF ( + COUNT ( * ), + CASE 24 WHEN - 76 THEN + COUNT ( * ) END ) / CAST ( 14 * + 18 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT ALL 54 DIV - - 15 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL 54 / - - 15 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT ALL COUNT( * ) * - 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL COUNT ( * ) * - 24 AS col0
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-2647
SELECT 32 DIV + 4 AS col2, - 1
----
8
-1

skipif mysql # not compatible
query II rowsort label-2647
SELECT 32 / + 4 AS col2, - 1
----
8
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT DISTINCT - MIN( - 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT - MIN ( - 15 ) AS col0
----
15

query I rowsort
SELECT 51 + + - 62
----
-11

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

skipif mysql # not compatible
query I rowsort label-2650
SELECT 22 / + - COUNT ( * ) AS col0
----
-22

query I rowsort
SELECT 67 * + 74 AS col2
----
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT + 54 * - COUNT( DISTINCT + + 56 ) * - + 1 + + 50 * + 91
----
4604

skipif mysql # not compatible
query I rowsort label-2652
SELECT + 54 * - COUNT ( DISTINCT + + 56 ) * - + 1 + + 50 * + 91
----
4604

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT - 81 + COUNT( * ) + + 23 col1
----
-57

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - 81 + COUNT ( * ) + + 23 col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT DISTINCT - - 17 + + 3 * - 32 + 80 + CAST( 71 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - - 17 + + 3 * - 32 + 80 + CAST ( 71 AS INTEGER )
----
72

query I rowsort
SELECT ALL - - ( 30 ) * - 59 AS col1
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT - - COUNT( * ) + - 10 * NULLIF ( - 37, SUM( DISTINCT - 37 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT - - COUNT ( * ) + - 10 * NULLIF ( - 37, SUM ( DISTINCT - 37 ) )
----
NULL

query II rowsort
SELECT + ( + 23 ) AS col1, 9
----
23
9

query I rowsort
SELECT DISTINCT COALESCE ( - 10, - 52 + + + ( + ( + ( 56 ) ) ) ) col1
----
-10

query I rowsort
SELECT DISTINCT - + 29 + + ( + 14 ) AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL 10 + - 85 - ( + + CASE WHEN NOT ( 35 ) IS NULL THEN ( - ( - CAST( - 69 AS SIGNED ) ) ) ELSE NULL END ) + + 55 * 74 AS col1
----
4064

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL 10 + - 85 - ( + + CASE WHEN NOT ( 35 ) IS NULL THEN ( - ( - CAST ( - 69 AS INTEGER ) ) ) ELSE NULL END ) + + 55 * 74 AS col1
----
4064

query I rowsort
SELECT ALL - 83 * + - 11
----
913

query I rowsort
SELECT ALL NULLIF ( - 50, 70 )
----
-50

query I rowsort
SELECT ALL - 13 - - 58
----
45

query I rowsort
SELECT - - NULLIF ( + + 48, 89 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - ( NULLIF ( - 54, + COUNT( * ) ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2666
SELECT - ( NULLIF ( - 54, + COUNT ( * ) ) ) AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2667
SELECT - ( - CASE COUNT( * ) WHEN + 46 * - 89 - - NULLIF ( 62 + - COUNT( * ), NULLIF ( + 63, 31 + + CAST( 9 + + 2 DIV 60 AS DECIMAL ) ) ) THEN - 53 DIV 45 + - 7 WHEN ( - 15 ) THEN COALESCE ( - 48, + 50 ) * - COUNT( * ) WHEN COUNT( * ) THEN - 79 * + 29 ELSE NULL END ) DIV + 84
----
-27

skipif mysql # not compatible
query I rowsort label-2667
SELECT - ( - CASE COUNT ( * ) WHEN + 46 * - 89 - - NULLIF ( 62 + - COUNT ( * ), NULLIF ( + 63, 31 + + CAST ( 9 + + 2 / 60 AS REAL ) ) ) THEN - 53 / 45 + - 7 WHEN ( - 15 ) THEN COALESCE ( - 48, + 50 ) * - COUNT ( * ) WHEN COUNT ( * ) THEN - 79 * + 29 ELSE NULL END ) / + 84
----
-27

query I rowsort
SELECT + 67 * + - 54
----
-3618

query I rowsort
SELECT - CASE 50 WHEN - 99 THEN + COALESCE ( - 73, - 27 ) * 61 END AS col0
----
NULL

query I rowsort
SELECT + 43 * + 86
----
3698

query I rowsort
SELECT + 31 * - - NULLIF ( - 70, + - 33 * - 73 + 94 * + 76 ) * 50
----
-108500

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

query I rowsort
SELECT + 48 - - 42 + + + 96 * - 23 * - 87 + 39 AS col0
----
192225

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

query I rowsort
SELECT + 77 * + NULLIF ( - 22, + 26 ) AS col2
----
-1694

query I rowsort
SELECT + 65 + + 7 + - - 71 AS col1
----
143

query I rowsort
SELECT CASE + 80 WHEN + 48 * 44 THEN + 23 END AS col2
----
NULL

query I rowsort
SELECT CASE + 40 WHEN - + 70 THEN NULL ELSE + ( + 4 ) END AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL + 84 * + ( 0 ) + + COUNT( * ) + 23 * - CASE MIN( ALL - 63 ) WHEN - 73 * + 36 THEN 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL + 84 * + ( 0 ) + + COUNT ( * ) + 23 * - CASE MIN ( ALL - 63 ) WHEN - 73 * + 36 THEN 56 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2680
SELECT DISTINCT + COUNT( * ) * + 76 + COALESCE ( + COUNT( * ), - 95 DIV COUNT( * ) ) + CAST( - 53 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + COUNT ( * ) * + 76 + COALESCE ( + COUNT ( * ), - 95 / COUNT ( * ) ) + CAST ( - 53 AS INTEGER )
----
24

query I rowsort
SELECT ALL 31 * 55 * - + 16 + + 92 + 29 AS col2
----
-27159

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT - - COUNT( * ) + 38
----
39

skipif mysql # not compatible
query I rowsort label-2682
SELECT - - COUNT ( * ) + 38
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL + 5 * - NULLIF ( + 1, 12 * - + 81 ) * - 8 + COALESCE ( - 23, - COUNT( * ) - + 81 )
----
17

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + 5 * - NULLIF ( + 1, 12 * - + 81 ) * - 8 + COALESCE ( - 23, - COUNT ( * ) - + 81 )
----
17

query I rowsort
SELECT DISTINCT 36 * + 72 AS col1
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT + COUNT( * ) * - 54 - 99 * - COUNT( * ) + COALESCE ( MIN( 20 ), 44 + 60 * COUNT( * ) ) + 21 * 40 AS col0
----
905

skipif mysql # not compatible
query I rowsort label-2685
SELECT + COUNT ( * ) * - 54 - 99 * - COUNT ( * ) + COALESCE ( MIN ( 20 ), 44 + 60 * COUNT ( * ) ) + 21 * 40 AS col0
----
905

query I rowsort
SELECT - - 41 * - ( + + 40 ) + - 55
----
-1695

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + 28 + COUNT( * ) + 96
----
125

skipif mysql # not compatible
query I rowsort label-2688
SELECT + 28 + COUNT ( * ) + 96
----
125

query I rowsort
SELECT + 42 + 45 * 62 AS col0
----
2832

query I rowsort
SELECT - 12 + + - 2 AS col1
----
-14

query I rowsort
SELECT - 51 * - 11 + - - ( - 54 )
----
507

onlyif mysql # aggregate syntax: 
query II rowsort label-2692
SELECT ALL 71 AS col1, 58 - + - COUNT( * ) col0
----
71
59

skipif mysql # not compatible
query II rowsort label-2692
SELECT ALL 71 AS col1, 58 - + - COUNT ( * ) col0
----
71
59

query I rowsort
SELECT DISTINCT + 76 - - 50 AS col1
----
126

query I rowsort
SELECT - ( - NULLIF ( - ( 77 ), + 61 ) ) AS col1
----
-77

query I rowsort
SELECT DISTINCT - 95 - - 14 AS col2
----
-81

query II rowsort
SELECT DISTINCT 22, + 1 * - 99 AS col2
----
22
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT - 53 + CAST( - 71 AS SIGNED )
----
-124

skipif mysql # not compatible
query I rowsort label-2697
SELECT - 53 + CAST ( - 71 AS INTEGER )
----
-124

query II rowsort
SELECT - 43 * - - 30, 19 AS col1
----
-1290
19

query I rowsort
SELECT - ( + - 69 ) + - 39 AS col1
----
30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT - 8 DIV - - 61
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT - 8 / - - 61
----
0

query II rowsort
SELECT ALL 89 AS col2, - ( 64 ) * + 48 AS col0
----
89
-3072

query I rowsort
SELECT - 25 + 53 * 27
----
1406

query II rowsort
SELECT - 1 + 36 AS col2, 51
----
35
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT DISTINCT CAST( + + 7 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT CAST ( + + 7 AS INTEGER ) AS col0
----
7

query I rowsort
SELECT - 89 * - 52 AS col0
----
4628

query I rowsort
SELECT + 95 + + 15 AS col1
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT ALL + 46 DIV - - 84 * 27 + + - 71
----
-71

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL + 46 / - - 84 * 27 + + - 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2709
SELECT COUNT( * ) DIV - 33 * CAST( - - COALESCE ( 96, - 59, 29 ) AS SIGNED ) + CASE + COUNT( * ) WHEN ( + 7 ) * COUNT( * ) THEN - 69 * CASE - COALESCE ( 84, 34 ) * - 12 WHEN 11 THEN NULL WHEN - 86 THEN 16 END WHEN - AVG ( DISTINCT 9 ) THEN NULL ELSE + 65 * - 23 + + 48 END
----
-1447

skipif mysql # not compatible
query I rowsort label-2709
SELECT COUNT ( * ) / - 33 * CAST ( - - COALESCE ( 96, - 59, 29 ) AS INTEGER ) + CASE + COUNT ( * ) WHEN ( + 7 ) * COUNT ( * ) THEN - 69 * CASE - COALESCE ( 84, 34 ) * - 12 WHEN 11 THEN NULL WHEN - 86 THEN 16 END WHEN - AVG ( DISTINCT 9 ) THEN NULL ELSE + 65 * - 23 + + 48 END
----
-1447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2710
SELECT ALL + COUNT( * ) DIV - ( + ( 78 ) ) * - CAST( - CAST( - 36 AS SIGNED ) AS SIGNED ) * - 77 + + 91
----
91

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL + COUNT ( * ) / - ( + ( 78 ) ) * - CAST ( - CAST ( - 36 AS INTEGER ) AS INTEGER ) * - 77 + + 91
----
91

query I rowsort
SELECT + NULLIF ( - 98, - 47 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT ALL - ( - ( - ( 74 ) ) ) DIV 97 + 45 - 11 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - ( - ( - ( 74 ) ) ) / 97 + 45 - 11 AS col1
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-2713
SELECT ALL - - 86, 42 DIV - 59 + + + 70 + - + COALESCE ( + - 77, 42 + 96 ) + 42 AS col2
----
86
189

skipif mysql # not compatible
query II rowsort label-2713
SELECT ALL - - 86, 42 / - 59 + + + 70 + - + COALESCE ( + - 77, 42 + 96 ) + 42 AS col2
----
86
189

query II rowsort
SELECT 22 col2, ( - 24 ) * + 46
----
22
-1104

query II rowsort
SELECT ALL - - 43 AS col0, ( - 25 ) AS col2
----
43
-25

query I rowsort
SELECT 12 * + 41 - + + 65 AS col0
----
427

query I rowsort
SELECT 56 * + + 77 AS col2
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL + COUNT( * ) - - + 0 * - 32
----
1

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + COUNT ( * ) - - + 0 * - 32
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT DISTINCT 14 - - ( - 84 ) * 16 * - + 73 + - CASE 63 WHEN 69 THEN - MAX( ALL 43 ) + + 86 * AVG ( 10 ) WHEN CAST( 37 AS SIGNED ) * 73 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT 14 - - ( - 84 ) * 16 * - + 73 + - CASE 63 WHEN 69 THEN - MAX ( ALL 43 ) + + 86 * AVG ( 10 ) WHEN CAST ( 37 AS INTEGER ) * 73 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 27 * 6 + 5 * - 47 + NULLIF ( + 97, 41 ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2721
SELECT ALL - 25, CAST( COUNT( * ) AS SIGNED ) AS col1
----
-25
1

skipif mysql # not compatible
query II rowsort label-2721
SELECT ALL - 25, CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-25
1

query I rowsort
SELECT 12 + - 57 AS col0
----
-45

query II rowsort
SELECT ALL 54 * + + 67, - 22 AS col2
----
3618
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT 61 + + SUM( DISTINCT + 83 ) + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-2724
SELECT 61 + + SUM ( DISTINCT + 83 ) + COUNT ( * )
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT + 56 AS col2, - NULLIF ( MIN( ALL - - 53 ), + - 90 + - ( 5 ) * + 94 ) AS col2
----
56
-53

skipif mysql # not compatible
query II rowsort label-2725
SELECT + 56 AS col2, - NULLIF ( MIN ( ALL - - 53 ), + - 90 + - ( 5 ) * + 94 ) AS col2
----
56
-53

query I rowsort
SELECT - 78 * + 87 + 99 col2
----
-6687

query I rowsort
SELECT + 51 * - ( ( - 89 ) ) - - 49 AS col2
----
4588

query I rowsort
SELECT 81 + - 86 AS col2
----
-5

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

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

query II rowsort
SELECT 36 + + 96 AS col0, - 16 * 85
----
132
-1360

query II rowsort
SELECT DISTINCT + ( - - 69 ) * + 77 AS col1, + 77 col1
----
5313
77

query I rowsort
SELECT 26 * 84
----
2184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2733
SELECT ALL + 99 * + 87 AS col1, - COUNT( * ) * - 15 + + 45 + - + CAST( NULL AS SIGNED ) AS col0
----
8613
NULL

skipif mysql # not compatible
query II rowsort label-2733
SELECT ALL + 99 * + 87 AS col1, - COUNT ( * ) * - 15 + + 45 + - + CAST ( NULL AS INTEGER ) AS col0
----
8613
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT + 26 * - + MAX( DISTINCT 48 ) AS col1
----
-1248

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT + 26 * - + MAX ( DISTINCT 48 ) AS col1
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL - ( - 2 ) + + 21 * + COUNT( * )
----
23

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

query I rowsort
SELECT 16 * + + 70 * - 13 AS col0
----
-14560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2737
SELECT 51 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT 51 * - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 9 + + 7 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT DISTINCT 65 + - - 69 + 19 + + - 21 + 13 * - 39 + - 37 * CASE WHEN NOT 16 * 61 IS NOT NULL THEN COUNT( * ) - 87 END * - COALESCE ( COUNT( * ) + + SUM( ALL 97 + 75 ) * + 93, 56 + 42, 7 * + 35, + ( + 67 ) + + ( + 78 + + 54 ) / - 52 ) * + 88 * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT 65 + - - 69 + 19 + + - 21 + 13 * - 39 + - 37 * CASE WHEN NOT 16 * 61 IS NOT NULL THEN COUNT ( * ) - 87 END * - COALESCE ( COUNT ( * ) + + SUM ( ALL 97 + 75 ) * + 93, 56 + 42, 7 * + 35, + ( + 67 ) + + ( + 78 + + 54 ) / - 52 ) * + 88 * 66
----
NULL

query II rowsort
SELECT 66 * 83, - 17 AS col0
----
5478
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT DISTINCT - 64 DIV + 9 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT - 64 / + 9 AS col1
----
-7

query I rowsort
SELECT + 83 + - + 55 * + 6
----
-247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT COUNT( - 4 ) + + COALESCE ( + - COUNT( * ), - COUNT( * ) * - 40 * - 80 ) + CAST( NULL AS SIGNED ) * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT COUNT ( - 4 ) + + COALESCE ( + - COUNT ( * ), - COUNT ( * ) * - 40 * - 80 ) + CAST ( NULL AS INTEGER ) * + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2744
SELECT ALL - + 35 * 21 DIV MAX( DISTINCT + 62 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - + 35 * 21 / MAX ( DISTINCT + 62 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT + MIN( - + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-2745
SELECT + MIN ( - + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT DISTINCT MAX( + 78 ) * 75
----
5850

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT MAX ( + 78 ) * 75
----
5850

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT DISTINCT + COUNT( * ) - + 13 AS col1, 40 + COUNT( ALL + - 46 ) + + - 59
----
-12
-18

skipif mysql # not compatible
query II rowsort label-2747
SELECT DISTINCT + COUNT ( * ) - + 13 AS col1, 40 + COUNT ( ALL + - 46 ) + + - 59
----
-12
-18

query I rowsort
SELECT ALL - 50 * 49 - + 38 + + 4
----
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL - COALESCE ( 88, - ( - COUNT( * ) ), 42 )
----
-88

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - COALESCE ( 88, - ( - COUNT ( * ) ), 42 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT 50 + + COUNT( ALL - 86 ) * + 74
----
124

skipif mysql # not compatible
query I rowsort label-2750
SELECT 50 + + COUNT ( ALL - 86 ) * + 74
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT ALL + + 55 - 46 + - + ( + ( + COUNT( * ) ) ) * + - 80 DIV - 84 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + + 55 - 46 + - + ( + ( + COUNT ( * ) ) ) * + - 80 / - 84 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL - MAX( ALL 18 ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - MAX ( ALL 18 ) col1
----
-18

query I rowsort
SELECT + ( 81 ) * + + 15 + + CASE + ( + 22 ) WHEN + - 86 THEN 67 + + ( + 50 + + 55 ) * + 64 ELSE NULL END + 15 * + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT 60 * + MIN( ALL 51 )
----
3060

skipif mysql # not compatible
query I rowsort label-2754
SELECT 60 * + MIN ( ALL 51 )
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL 88 + ( 47 ) + 93 * - ( - NULLIF ( - COUNT( * ), - CASE 28 WHEN + 12 THEN 11 WHEN - MAX( - 44 ) / 61 + - 80 * + 69 THEN NULL WHEN + 6 THEN - 8 END ) ) * 18 + 42 * 8 AS col1
----
-1203

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL 88 + ( 47 ) + 93 * - ( - NULLIF ( - COUNT ( * ), - CASE 28 WHEN + 12 THEN 11 WHEN - MAX ( - 44 ) / 61 + - 80 * + 69 THEN NULL WHEN + 6 THEN - 8 END ) ) * 18 + 42 * 8 AS col1
----
-1203

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT 19 + + 72 * 86 - + - MIN( DISTINCT 94 )
----
6305

skipif mysql # not compatible
query I rowsort label-2756
SELECT 19 + + 72 * 86 - + - MIN ( DISTINCT 94 )
----
6305

query II rowsort
SELECT ALL 90 * 57 * - + 18 AS col1, - ( - 18 ) col1
----
-92340
18

query I rowsort
SELECT 26 * - 17 * + + 85
----
-37570

query II rowsort
SELECT 96 AS col2, - 71
----
96
-71

query I rowsort
SELECT ALL ( - 96 ) + + - 90 + 25 AS col1
----
-161

query I rowsort
SELECT ( 20 ) + - 9 AS col2
----
11

query I rowsort
SELECT 9 * 73
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT COUNT( * ) + + 47 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-2763
SELECT COUNT ( * ) + + 47 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT 61 * COUNT( * ) col0
----
61

skipif mysql # not compatible
query I rowsort label-2764
SELECT 61 * COUNT ( * ) col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT 31 + - 83 * 69 * - 78 * - - 9 * - - 45 + + 20 - COUNT( * ) + - 15 * 54
----
180915170

skipif mysql # not compatible
query I rowsort label-2765
SELECT 31 + - 83 * 69 * - 78 * - - 9 * - - 45 + + 20 - COUNT ( * ) + - 15 * 54
----
180915170

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT NULLIF ( + + COUNT( * ), - 37 ) + + 63 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2766
SELECT NULLIF ( + + COUNT ( * ), - 37 ) + + 63 AS col0
----
64

query I rowsort
SELECT 51 + - 93
----
-42

query I rowsort
SELECT ALL ( - ( - + 53 ) ) - + 60 AS col0
----
-7

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

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

query I rowsort
SELECT ALL - 78 * + 94
----
-7332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT + 76 * CAST( - 73 AS SIGNED ) AS col0
----
-5548

skipif mysql # not compatible
query I rowsort label-2771
SELECT + 76 * CAST ( - 73 AS INTEGER ) AS col0
----
-5548

query I rowsort
SELECT - 82 + - 38 AS col2
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-2773
SELECT + + 49 AS col2, + 4 * + ( COUNT( * ) ) + + - 59 * - COUNT( * )
----
49
63

skipif mysql # not compatible
query II rowsort label-2773
SELECT + + 49 AS col2, + 4 * + ( COUNT ( * ) ) + + - 59 * - COUNT ( * )
----
49
63

query I rowsort
SELECT + + 14 * + NULLIF ( - 38, + 28 ) * - 32 + - 39 + CASE - 52 WHEN 44 THEN 84 WHEN 29 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2775
SELECT ALL + 37, - COUNT( * ) DIV 33 AS col1
----
37
0

skipif mysql # not compatible
query II rowsort label-2775
SELECT ALL + 37, - COUNT ( * ) / 33 AS col1
----
37
0

query I rowsort
SELECT ALL - + 33 * + ( - 58 ) AS col2
----
1914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2777
SELECT + NULLIF ( + - 82, + 88 ) AS col0, - CAST( COUNT( * ) AS SIGNED ) * + 60 + 89 - 85 * - 61 - 37
----
-82
5177

skipif mysql # not compatible
query II rowsort label-2777
SELECT + NULLIF ( + - 82, + 88 ) AS col0, - CAST ( COUNT ( * ) AS INTEGER ) * + 60 + 89 - 85 * - 61 - 37
----
-82
5177

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT - - SUM( ALL 54 ) * 62 + 10
----
3358

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT - - SUM ( ALL 54 ) * 62 + 10
----
3358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2779
SELECT ALL - 99 DIV - COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL - 99 / - COUNT ( * ) AS col0
----
99

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

skipif mysql # not compatible
query I rowsort label-2780
SELECT - - 61 * - COUNT ( * )
----
-61

query I rowsort
SELECT + + 48 * - 59 - + 53 + + 26 * + 39 * - + 54 + + 68 AS col0
----
-57573

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT MIN( - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-2782
SELECT MIN ( - 21 )
----
-21

query I rowsort
SELECT - 6 * + 79 AS col1
----
-474

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2784
SELECT ALL + 31 AS col0, 94 * - 64 + + CAST( 15 AS SIGNED )
----
31
-6001

skipif mysql # not compatible
query II rowsort label-2784
SELECT ALL + 31 AS col0, 94 * - 64 + + CAST ( 15 AS INTEGER )
----
31
-6001

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT NULLIF ( - + COUNT( * ), 41 + - - 49 * + - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-2785
SELECT NULLIF ( - + COUNT ( * ), 41 + - - 49 * + - 8 )
----
-1

query I rowsort
SELECT + 94 * - + 62 AS col1
----
-5828

query I rowsort
SELECT ALL - + 59 * - - 19 + - 97 - - 77
----
-1141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2788
SELECT ALL - - 92 * - - CAST( NULL AS SIGNED ) + - - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL - - 92 * - - CAST ( NULL AS INTEGER ) + - - 7 AS col2
----
NULL

query I rowsort
SELECT - 47 - + 20
----
-67

query II rowsort
SELECT ALL - 3 * - 6 - - + 0 AS col0, 42
----
18
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2791
SELECT DISTINCT 73 * - 33 + + 51 AS col1, + COUNT( * ) AS col1
----
-2358
1

skipif mysql # not compatible
query II rowsort label-2791
SELECT DISTINCT 73 * - 33 + + 51 AS col1, + COUNT ( * ) AS col1
----
-2358
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2792
SELECT + - 13 AS col1, + 73 + 56 + + 32 + - 77 * - COUNT( * ) AS col1
----
-13
238

skipif mysql # not compatible
query II rowsort label-2792
SELECT + - 13 AS col1, + 73 + 56 + + 32 + - 77 * - COUNT ( * ) AS col1
----
-13
238

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2794
SELECT ALL + 30 * 80 * ( - 16 ) + + 80 + - CAST( 30 AS SIGNED ) DIV 86 col0
----
-38320

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL + 30 * 80 * ( - 16 ) + + 80 + - CAST ( 30 AS INTEGER ) / 86 col0
----
-38320

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

query I rowsort
SELECT - 90 * - 87 AS col2
----
7830

query I rowsort
SELECT + 31 - + + 42
----
-11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2799
SELECT - CASE - - 35 WHEN COUNT( * ) / - 7 THEN - ( CAST( NULL AS SIGNED ) ) - - 5 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT - CASE - - 35 WHEN COUNT ( * ) / - 7 THEN - ( CAST ( NULL AS INTEGER ) ) - - 5 END AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL COUNT ( * ) / - + 24
----
0

query I rowsort
SELECT DISTINCT 24 * 79
----
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT DISTINCT COALESCE ( COUNT( * ), - 26 ) * + 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT COALESCE ( COUNT ( * ), - 26 ) * + 48 AS col0
----
48

query I rowsort
SELECT + 59 * + 45
----
2655

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2805
SELECT + 76 - 67 + + - 2 * - CAST( NULL AS SIGNED ) AS col1, - 71
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-2805
SELECT + 76 - 67 + + - 2 * - CAST ( NULL AS INTEGER ) AS col1, - 71
----
NULL
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + COALESCE ( - 96, - 31 * - + 81, COUNT( * ) - 92 ) * - + 47 + + 80 + 76 AS col1
----
4668

skipif mysql # not compatible
query I rowsort label-2806
SELECT + COALESCE ( - 96, - 31 * - + 81, COUNT ( * ) - 92 ) * - + 47 + + 80 + 76 AS col1
----
4668

onlyif mysql # DIV for integer division: 
query I rowsort label-2807
SELECT ALL 76 DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL 76 / - - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + COUNT( 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2808
SELECT + COUNT ( 49 ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT - COUNT( * ) * 5 AS col1, + 14 AS col1
----
-5
14

skipif mysql # not compatible
query II rowsort label-2810
SELECT - COUNT ( * ) * 5 AS col1, + 14 AS col1
----
-5
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2811
SELECT + - CASE + - CAST( - 27 AS SIGNED ) WHEN - ( - - 32 ) * - COUNT( * ) - 18 / - - 59 * + - 4 + + 81 * + 15 THEN NULL ELSE + 36 END
----
-36

skipif mysql # not compatible
query I rowsort label-2811
SELECT + - CASE + - CAST ( - 27 AS INTEGER ) WHEN - ( - - 32 ) * - COUNT ( * ) - 18 / - - 59 * + - 4 + + 81 * + 15 THEN NULL ELSE + 36 END
----
-36

query I rowsort
SELECT + ( + COALESCE ( + ( 92 ), + - 61 ) ) + 46 + 40 * + 60
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT - MAX( + 97 ) * - - 56 - - COUNT( + 4 )
----
-5431

skipif mysql # not compatible
query I rowsort label-2813
SELECT - MAX ( + 97 ) * - - 56 - - COUNT ( + 4 )
----
-5431

query I rowsort
SELECT 4 * 37 + - + 75 col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2815
SELECT + MIN( - + 15 ) AS col1, COUNT( * ) AS col2
----
-15
1

skipif mysql # not compatible
query II rowsort label-2815
SELECT + MIN ( - + 15 ) AS col1, COUNT ( * ) AS col2
----
-15
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT ALL - - 15 DIV + + 43 + + 42
----
42

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - - 15 / + + 43 + + 42
----
42

query I rowsort
SELECT ALL + 32 * - - 33 - + 89 col1
----
967

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT DISTINCT - 72 * + - 78 * - + 28 + - COUNT( * )
----
-157249

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - 72 * + - 78 * - + 28 + - COUNT ( * )
----
-157249

query I rowsort
SELECT DISTINCT + + 17 * + 90 + CASE + + 2 WHEN - COALESCE ( + 98, 73 * 21 + - 43 ) / ( + 72 ) THEN 66 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT - COUNT( * ) * - 36 * 79 + - 82
----
2762

skipif mysql # not compatible
query I rowsort label-2820
SELECT - COUNT ( * ) * - 36 * 79 + - 82
----
2762

query II rowsort
SELECT + 30, + 78 col2
----
30
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2822
SELECT + COALESCE ( 42, + 52 + 91, - + 0 ) + + 65 - + 79 * - 82 AS col1, SUM( 25 ) * - CAST( 13 AS SIGNED )
----
6585
-325

skipif mysql # not compatible
query II rowsort label-2822
SELECT + COALESCE ( 42, + 52 + 91, - + 0 ) + + 65 - + 79 * - 82 AS col1, SUM ( 25 ) * - CAST ( 13 AS INTEGER )
----
6585
-325

query I rowsort
SELECT COALESCE ( + 27, + 94 ) AS col0
----
27

query I rowsort
SELECT ALL ( - 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT - 36 + - + CAST( NULL AS SIGNED ) * - - 65 * 21 * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT - 36 + - + CAST ( NULL AS INTEGER ) * - - 65 * 21 * - 43
----
NULL

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

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

query I rowsort
SELECT ALL + 50 * - 14
----
-700

query I rowsort
SELECT ALL + 41 - 38
----
3

query I rowsort
SELECT 41 + 44 * 5 col2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT 76 - - - COUNT( * ) * - 41 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-2830
SELECT 76 - - - COUNT ( * ) * - 41 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT MIN( ALL - 79 ) * + NULLIF ( ( + + 95 ), - - SUM( ALL - - 86 ) ) * 96
----
-720480

skipif mysql # not compatible
query I rowsort label-2831
SELECT MIN ( ALL - 79 ) * + NULLIF ( ( + + 95 ), - - SUM ( ALL - - 86 ) ) * 96
----
-720480

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT 50 + 96 + - + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-2832
SELECT 50 + 96 + - + COUNT ( * )
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT CASE + 36 WHEN - MIN( ALL ( - 92 ) ) THEN - 59 WHEN - 51 * + 0 + - COALESCE ( 76, - 18 * + COALESCE ( - MIN( 43 ), + MAX( ALL + ( - ( - 11 ) ) ) - ( + ( + 90 ) ) ) + 17 ) THEN NULL ELSE NULL END - 12 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT CASE + 36 WHEN - MIN ( ALL ( - 92 ) ) THEN - 59 WHEN - 51 * + 0 + - COALESCE ( 76, - 18 * + COALESCE ( - MIN ( 43 ), + MAX ( ALL + ( - ( - 11 ) ) ) - ( + ( + 90 ) ) ) + 17 ) THEN NULL ELSE NULL END - 12 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + 86 + + - COUNT( - - ( - 5 ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-2834
SELECT + 86 + + - COUNT ( - - ( - 5 ) ) AS col2
----
85

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

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

query I rowsort
SELECT DISTINCT COALESCE ( 99, + COALESCE ( - 82, NULLIF ( + 28, 23 * 90 * + 53 ) ), + + 8 )
----
99

query I rowsort
SELECT DISTINCT 92 * - 40
----
-3680

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

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL COUNT ( * ) + + 85 AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2839
SELECT - CAST( - - MAX( DISTINCT + 72 ) AS SIGNED ) * - 88
----
6336

skipif mysql # not compatible
query I rowsort label-2839
SELECT - CAST ( - - MAX ( DISTINCT + 72 ) AS INTEGER ) * - 88
----
6336

query I rowsort
SELECT ALL + 47 + + 54 AS col2
----
101

query I rowsort
SELECT ALL - 78 + - 87 * + - 31 + - + 37 AS col2
----
2582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT ALL - + COUNT( * ) DIV 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - + COUNT ( * ) / 41 AS col1
----
0

query II rowsort
SELECT + 14 AS col1, + 58 + + - 6 AS col1
----
14
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT CASE - 25 WHEN COUNT( * ) + - - COUNT( * ) THEN NULL WHEN 85 * - + 38 * - 56 + - ( + - 37 ) THEN + SUM( + 66 ) + 20 ELSE + 56 END AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2844
SELECT CASE - 25 WHEN COUNT ( * ) + - - COUNT ( * ) THEN NULL WHEN 85 * - + 38 * - 56 + - ( + - 37 ) THEN + SUM ( + 66 ) + 20 ELSE + 56 END AS col1
----
56

query I rowsort
SELECT 84 - - - 26
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL - MAX( DISTINCT + + 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL - MAX ( DISTINCT + + 92 ) AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT ALL - 20 * + MIN( + CAST( NULL AS SIGNED ) ) - + + 12 / + + 44 - - 98 - 73 / - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - 20 * + MIN ( + CAST ( NULL AS INTEGER ) ) - + + 12 / + + 44 - - 98 - 73 / - - 40
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 96 AS col0, - 42 * + + 77
----
-96
-3234

query I rowsort
SELECT ALL + 54 - + 73 + - 50 AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2851
SELECT CAST( NULL AS SIGNED ) * - + ( + 55 ) * + 17 * ( 72 ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT CAST ( NULL AS INTEGER ) * - + ( + 55 ) * + 17 * ( 72 ) + + 34
----
NULL

query I rowsort
SELECT ALL ( 27 ) * - 26
----
-702

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2853
SELECT 44 - - 74 - 88 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT 44 - - 74 - 88 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + ( + - 31 ) * - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + ( + - 31 ) * - + 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2855
SELECT + ( - CASE - - CAST( NULL AS SIGNED ) WHEN - 20 * + CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) + - - 34 THEN + 81 WHEN 56 + 93 THEN NULL END ) * + COUNT( + 45 ) - + AVG ( + ( 95 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT + ( - CASE - - CAST ( NULL AS INTEGER ) WHEN - 20 * + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) + - - 34 THEN + 81 WHEN 56 + 93 THEN NULL END ) * + COUNT ( + 45 ) - + AVG ( + ( 95 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2856
SELECT DISTINCT + 10 DIV + 20 * 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT + 10 / + 20 * 98 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2857
SELECT 79 / 73 * CAST( NULL AS DECIMAL ) * 58 * - NULLIF ( - - 66, + + 40 ) * - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT 79 / 73 * CAST ( NULL AS REAL ) * 58 * - NULLIF ( - - 66, + + 40 ) * - + 51
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT ALL - 19 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL - 19 / + - 98
----
0

query I rowsort
SELECT 86 + - - 0
----
86

query I rowsort
SELECT 89 - 77
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT MAX( DISTINCT 7 ) + 8
----
15

skipif mysql # not compatible
query I rowsort label-2861
SELECT MAX ( DISTINCT 7 ) + 8
----
15

query I rowsort
SELECT ALL - 92 * + - 4 AS col0
----
368

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2863
SELECT 69 DIV COUNT( * ) * - + 92 * 74 * - 70 * + - 22 col0, + 30 col1, COUNT( * ) + - ( - COUNT( * ) )
----
-723418080
30
2

skipif mysql # not compatible
query III rowsort label-2863
SELECT 69 / COUNT ( * ) * - + 92 * 74 * - 70 * + - 22 col0, + 30 col1, COUNT ( * ) + - ( - COUNT ( * ) )
----
-723418080
30
2

onlyif mysql # DIV for integer division: 
query II rowsort label-2864
SELECT ALL - 20 DIV - 81, 34 DIV + 96
----
0
0

skipif mysql # not compatible
query II rowsort label-2864
SELECT ALL - 20 / - 81, 34 / + 96
----
0
0

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

query II rowsort
SELECT ALL 70 AS col0, + 97 AS col2
----
70
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL - NULLIF ( 85, + + 8 + + CASE + CAST( 76 AS SIGNED ) WHEN - + NULLIF ( - + 95, 42 + + 99 ) / + 57 * COUNT( * ) + + 42 * 40 THEN 28 * - NULLIF ( - ( COUNT( * ) ), - 99 + - 35 ) END ) * 43 AS col2
----
-3655

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - NULLIF ( 85, + + 8 + + CASE + CAST ( 76 AS INTEGER ) WHEN - + NULLIF ( - + 95, 42 + + 99 ) / + 57 * COUNT ( * ) + + 42 * 40 THEN 28 * - NULLIF ( - ( COUNT ( * ) ), - 99 + - 35 ) END ) * 43 AS col2
----
-3655

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT DISTINCT - 70 + - 89 + COUNT( * )
----
-158

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT - 70 + - 89 + COUNT ( * )
----
-158

query I rowsort
SELECT 58 - - 55 - 75 + ( - 19 ) AS col0
----
19

query II rowsort
SELECT 64 AS col0, + 13 AS col0
----
64
13

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

query I rowsort
SELECT + 50 - + 92 + - + 22 * + 22
----
-526

query I rowsort
SELECT ALL - 68 + - + 71
----
-139

query II rowsort
SELECT - 52 AS col0, 79
----
-52
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2875
SELECT SUM( ALL - - CAST( - 49 AS SIGNED ) )
----
-49

skipif mysql # not compatible
query I rowsort label-2875
SELECT SUM ( ALL - - CAST ( - 49 AS INTEGER ) )
----
-49

query I rowsort
SELECT ALL + 51 + - ( - 34 )
----
85

query I rowsort
SELECT + 77 * - ( + - CASE + 45 WHEN + - 1 THEN - 26 END ) * + 48 + 19 + - - 65 - + 85 * + 18 * 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT 27 - COUNT( * ) * + 54 + - COALESCE ( - ( 17 ), + 50 * - 41 * + 67, + 5, - 27 * - 88 - 15 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2878
SELECT 27 - COUNT ( * ) * + 54 + - COALESCE ( - ( 17 ), + 50 * - 41 * + 67, + 5, - 27 * - 88 - 15 ) AS col0
----
-10

query I rowsort
SELECT ALL - + 42 + - 61
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2880
SELECT DISTINCT + - SUM( CAST( 80 AS SIGNED ) ) + - 92 AS col0, 92 + 94
----
-172
186

skipif mysql # not compatible
query II rowsort label-2880
SELECT DISTINCT + - SUM ( CAST ( 80 AS INTEGER ) ) + - 92 AS col0, 92 + 94
----
-172
186

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL 43 * + MAX( + - 49 ) AS col2
----
-2107

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL 43 * + MAX ( + - 49 ) AS col2
----
-2107

query I rowsort
SELECT 19 - - 58 + - - 76 * 36 AS col2
----
2813

onlyif mysql # aggregate syntax: 
query III rowsort label-2883
SELECT DISTINCT - 78 AS col2, COALESCE ( + + 58, - - COUNT( * ) * + 6 + 2 ) + + COUNT( * ) AS col0, - 45
----
-78
59
-45

skipif mysql # not compatible
query III rowsort label-2883
SELECT DISTINCT - 78 AS col2, COALESCE ( + + 58, - - COUNT ( * ) * + 6 + 2 ) + + COUNT ( * ) AS col0, - 45
----
-78
59
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2884
SELECT - + 64 DIV - ( + COALESCE ( - + COUNT( * ), - COALESCE ( 60, - + COALESCE ( + - 40, - 20 ) ) * + 24 * 59 * 1 ) ) + 42
----
-22

skipif mysql # not compatible
query I rowsort label-2884
SELECT - + 64 / - ( + COALESCE ( - + COUNT ( * ), - COALESCE ( 60, - + COALESCE ( + - 40, - 20 ) ) * + 24 * 59 * 1 ) ) + 42
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2885
SELECT + COUNT( * ), + MIN( + 25 ) DIV - ( 29 ) + + + 58 AS col2
----
1
58

skipif mysql # not compatible
query II rowsort label-2885
SELECT + COUNT ( * ), + MIN ( + 25 ) / - ( 29 ) + + + 58 AS col2
----
1
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2886
SELECT ALL 10 * + MAX( - 93 ) * - 16 + + 79 + + 56 * - 33 * - 26 - + 29, + 40 AS col0
----
62978
40

skipif mysql # not compatible
query II rowsort label-2886
SELECT ALL 10 * + MAX ( - 93 ) * - 16 + + 79 + + 56 * - 33 * - 26 - + 29, + 40 AS col0
----
62978
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT COUNT( ALL - + 3 ) + - + 64 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2887
SELECT COUNT ( ALL - + 3 ) + - + 64 AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2888
SELECT - 37 DIV - 63 + ( 44 ) - + COUNT( * ) * - + 98 + - COUNT( * )
----
141

skipif mysql # not compatible
query I rowsort label-2888
SELECT - 37 / - 63 + ( 44 ) - + COUNT ( * ) * - + 98 + - COUNT ( * )
----
141

query II rowsort
SELECT ALL - + 23 AS col1, - 11 + + 26
----
-23
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT - CAST( + 93 AS SIGNED ) * - 16 * 95 * + CASE + - ( + 10 ) WHEN + ( COUNT( * ) ) * + 56 THEN + 98 / + 17 END + + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT - CAST ( + 93 AS INTEGER ) * - 16 * 95 * + CASE + - ( + 10 ) WHEN + ( COUNT ( * ) ) * + 56 THEN + 98 / + 17 END + + 63 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT MAX( ALL 82 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-2892
SELECT MAX ( ALL 82 ) col1
----
82

query I rowsort
SELECT ALL - 83 * - - ( 38 ) - - 40
----
-3114

query I rowsort
SELECT DISTINCT - 38 * + 73 - + 86
----
-2860

query I rowsort
SELECT + 72 + - 94 AS col2
----
-22

query I rowsort
SELECT + 89 * + ( + 41 )
----
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + NULLIF ( COALESCE ( + MIN( 92 ), + COUNT( * ) ), - COUNT( * ) ) * 17 + 48
----
1612

skipif mysql # not compatible
query I rowsort label-2897
SELECT + NULLIF ( COALESCE ( + MIN ( 92 ), + COUNT ( * ) ), - COUNT ( * ) ) * 17 + 48
----
1612

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT + MAX( + 82 ) * - 50
----
-4100

skipif mysql # not compatible
query I rowsort label-2898
SELECT + MAX ( + 82 ) * - 50
----
-4100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT - 86 * + CAST( NULL AS SIGNED ) + - 39 + 21 * + + 56 + + + COUNT( * ) + 16 + 68 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT - 86 * + CAST ( NULL AS INTEGER ) + - 39 + 21 * + + 56 + + + COUNT ( * ) + 16 + 68 * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT MIN( + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2900
SELECT MIN ( + 19 ) AS col0
----
19

query II rowsort
SELECT ALL 24 * + 23, + 40 AS col1
----
552
40

query I rowsort
SELECT + 30 * + - CASE + 23 WHEN 55 THEN - + 5 + 59 + 23 + 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT - ( COALESCE ( - - COUNT( * ), - 22 + - ( - 99 ), + 45 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2903
SELECT - ( COALESCE ( - - COUNT ( * ), - 22 + - ( - 99 ), + 45 ) ) AS col1
----
-1

query I rowsort
SELECT 52 * + 17 + 18
----
902

query I rowsort
SELECT ALL 5 + 47 AS col1
----
52

query I rowsort
SELECT + + 66 + 58 AS col2
----
124

query II rowsort
SELECT - + 61 - + 69 * - 87 AS col2, - 88 AS col2
----
5942
-88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT - 17 + 59 DIV - 88 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2909
SELECT - 17 + 59 / - 88 AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT ALL - 22 * ( + 89 ) DIV 56
----
-34

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - 22 * ( + 89 ) / 56
----
-34

query I rowsort
SELECT - 31 + + - 66
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2912
SELECT DISTINCT - 89 * - MIN( ( - 47 ) ) * - 42 + 70 * + + MAX( + 73 ) * - 55 + + 48 DIV - 95 AS col0
----
-105364

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT - 89 * - MIN ( ( - 47 ) ) * - 42 + 70 * + + MAX ( + 73 ) * - 55 + + 48 / - 95 AS col0
----
-105364

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT DISTINCT - MAX( - ( + 37 ) ) + - NULLIF ( ( - + COUNT( * ) ), 0 ) + ( 90 ) * + 29 - ( 47 ) + 63 * - 41
----
18

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT - MAX ( - ( + 37 ) ) + - NULLIF ( ( - + COUNT ( * ) ), 0 ) + ( 90 ) * + 29 - ( 47 ) + 63 * - 41
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2914
SELECT ALL + + 77 + MAX( + 8 ) - + + 99 * - 21 AS col1, - 67 DIV - NULLIF ( COUNT( * ), + SUM( 58 ) * + 64 * + + 36 DIV 30 ) + - MAX( 60 + 16 * - 30 )
----
2164
487

skipif mysql # not compatible
query II rowsort label-2914
SELECT ALL + + 77 + MAX ( + 8 ) - + + 99 * - 21 AS col1, - 67 / - NULLIF ( COUNT ( * ), + SUM ( 58 ) * + 64 * + + 36 / 30 ) + - MAX ( 60 + 16 * - 30 )
----
2164
487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - AVG ( DISTINCT - 76 ) * - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - AVG ( DISTINCT - 76 ) * - 63 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2916
SELECT DISTINCT + MAX( + CAST( NULL AS SIGNED ) ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + MAX ( + CAST ( NULL AS INTEGER ) ) * - 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT DISTINCT COALESCE ( NULLIF ( + 84, + CAST( NULL AS SIGNED ) ), + 39 * + 83 - + - 83 + 86, - ( + ( - 42 ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT COALESCE ( NULLIF ( + 84, + CAST ( NULL AS INTEGER ) ), + 39 * + 83 - + - 83 + 86, - ( + ( - 42 ) ) )
----
84

query I rowsort
SELECT - + 65 * - + 94 + 12
----
6122

onlyif mysql # aggregate syntax: 
query II rowsort label-2919
SELECT + - 84 + + ( - 86 ) * - - 63 + + - 53, 54 + MIN( ALL - - 23 ) AS col0
----
-5555
77

skipif mysql # not compatible
query II rowsort label-2919
SELECT + - 84 + + ( - 86 ) * - - 63 + + - 53, 54 + MIN ( ALL - - 23 ) AS col0
----
-5555
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT + 10 * + 47 + + 16 * + ( COUNT( * ) ) * + 17 AS col0
----
742

skipif mysql # not compatible
query I rowsort label-2920
SELECT + 10 * + 47 + + 16 * + ( COUNT ( * ) ) * + 17 AS col0
----
742

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT 82 * - 45 + COUNT( * ) - + - COUNT( * ) + - SUM( ALL + ( - - 15 ) ) * + - 61
----
-2773

skipif mysql # not compatible
query I rowsort label-2922
SELECT 82 * - 45 + COUNT ( * ) - + - COUNT ( * ) + - SUM ( ALL + ( - - 15 ) ) * + - 61
----
-2773

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2925
SELECT ALL 72 * - CASE + - NULLIF ( - + 0, + CASE 56 WHEN - - 40 + - + 92 + - + 9 * 28 THEN - - 62 END ) WHEN + - MIN( DISTINCT + ( 21 ) ) * + 43 THEN - 50 / COALESCE ( - 6, 99, - SUM( CAST( 42 AS SIGNED ) ) ) WHEN - 4 * COALESCE ( - 37, 10, - 77, MAX( DISTINCT + 44 ) ) - NULLIF ( - ( + 72 ), - 25 ) / - 98 THEN ( + 8 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL 72 * - CASE + - NULLIF ( - + 0, + CASE 56 WHEN - - 40 + - + 92 + - + 9 * 28 THEN - - 62 END ) WHEN + - MIN ( DISTINCT + ( 21 ) ) * + 43 THEN - 50 / COALESCE ( - 6, 99, - SUM ( CAST ( 42 AS INTEGER ) ) ) WHEN - 4 * COALESCE ( - 37, 10, - 77, MAX ( DISTINCT + 44 ) ) - NULLIF ( - ( + 72 ), - 25 ) / - 98 THEN ( + 8 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT - 78 * - + COUNT( * ) * + + NULLIF ( - 58, - 93 ) AS col0
----
-4524

skipif mysql # not compatible
query I rowsort label-2926
SELECT - 78 * - + COUNT ( * ) * + + NULLIF ( - 58, - 93 ) AS col0
----
-4524

onlyif mysql # aggregate syntax: 
query II rowsort label-2927
SELECT DISTINCT + 21 AS col0, - 27 + ( - - COUNT( * ) ) - - ( + + COALESCE ( - 1, + - 26 ) ) AS col2
----
21
-27

skipif mysql # not compatible
query II rowsort label-2927
SELECT DISTINCT + 21 AS col0, - 27 + ( - - COUNT ( * ) ) - - ( + + COALESCE ( - 1, + - 26 ) ) AS col2
----
21
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT + 30 DIV - ( + - 89 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2928
SELECT + 30 / - ( + - 89 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL 57 * + 11 + - COUNT( ALL + 59 ) + - 61 col2
----
565

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL 57 * + 11 + - COUNT ( ALL + 59 ) + - 61 col2
----
565

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2930
SELECT + 24 + - 43 * - - COUNT( * ) - + ( - + 26 ) + 92 + 41 * - 81 / - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT + 24 + - 43 * - - COUNT ( * ) - + ( - + 26 ) + 92 + 41 * - 81 / - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT DISTINCT 82 * + 12 + + + COUNT( * ) * 33 AS col2
----
1017

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT 82 * + 12 + + + COUNT ( * ) * 33 AS col2
----
1017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2932
SELECT CASE + 39 WHEN - COUNT( * ) THEN + NULLIF ( + CASE + AVG ( ALL + 35 ) WHEN - 87 THEN + + 78 END, - + COUNT( * ) + - 82 + - 44 * 73 ) WHEN - CAST( - COALESCE ( + 42, 84, 84 * - CAST( NULL AS DECIMAL ) ) AS SIGNED ) * - NULLIF ( - 27, COALESCE ( 3, 90 * 77 + 61, - 9 * 42 ) ) THEN CAST( + 41 AS SIGNED ) * + 11 ELSE NULL END * 62 - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT CASE + 39 WHEN - COUNT ( * ) THEN + NULLIF ( + CASE + AVG ( ALL + 35 ) WHEN - 87 THEN + + 78 END, - + COUNT ( * ) + - 82 + - 44 * 73 ) WHEN - CAST ( - COALESCE ( + 42, 84, 84 * - CAST ( NULL AS REAL ) ) AS INTEGER ) * - NULLIF ( - 27, COALESCE ( 3, 90 * 77 + 61, - 9 * 42 ) ) THEN CAST ( + 41 AS INTEGER ) * + 11 ELSE NULL END * 62 - 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT DISTINCT 23 DIV - + 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT 23 / - + 27 AS col1
----
0

query I rowsort
SELECT + COALESCE ( 99, 94 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT CASE COUNT( - 93 ) WHEN - 71 THEN + 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT CASE COUNT ( - 93 ) WHEN - 71 THEN + 76 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2936
SELECT ALL COUNT( * ) * 8 + - 78 + - + CAST( - 19 AS SIGNED ) * 54 AS col1, - 14 AS col0
----
956
-14

skipif mysql # not compatible
query II rowsort label-2936
SELECT ALL COUNT ( * ) * 8 + - 78 + - + CAST ( - 19 AS INTEGER ) * 54 AS col1, - 14 AS col0
----
956
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT SUM( DISTINCT - + COALESCE ( + 69, - CAST( NULL AS SIGNED ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-2937
SELECT SUM ( DISTINCT - + COALESCE ( + 69, - CAST ( NULL AS INTEGER ) ) )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2938
SELECT - 2 + COALESCE ( - 84, - 28 ) AS col1, CAST( + 6 AS SIGNED ) * - - 76
----
-86
456

skipif mysql # not compatible
query II rowsort label-2938
SELECT - 2 + COALESCE ( - 84, - 28 ) AS col1, CAST ( + 6 AS INTEGER ) * - - 76
----
-86
456

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT DISTINCT - 93 * + 21 + - 12 + - - COUNT( * ) * + COUNT( 55 ) AS col2
----
-1964

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT - 93 * + 21 + - 12 + - - COUNT ( * ) * + COUNT ( 55 ) AS col2
----
-1964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT DISTINCT - CAST( - 13 AS SIGNED ) * - 33 * + - 50 + + 90 AS col0
----
21540

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT - CAST ( - 13 AS INTEGER ) * - 33 * + - 50 + + 90 AS col0
----
21540

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL SUM( DISTINCT 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL SUM ( DISTINCT 87 ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2942
SELECT + + 54 * CASE + 31 WHEN ( + 84 ) THEN NULL WHEN 54 THEN + - 61 * + - 67 + - - 68 * - CAST( + - 56 AS DECIMAL ) + MIN( - 44 ) END - - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT + + 54 * CASE + 31 WHEN ( + 84 ) THEN NULL WHEN 54 THEN + - 61 * + - 67 + - - 68 * - CAST ( + - 56 AS REAL ) + MIN ( - 44 ) END - - 0 AS col1
----
NULL

query II rowsort
SELECT ALL - 49 + - + ( 70 ) AS col2, - ( - - 96 ) AS col1
----
-119
-96

query I rowsort
SELECT ALL + - 41 - + 52 * CASE - 19 WHEN + - 85 + + 3 THEN 90 ELSE + + 55 END AS col1
----
-2901

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2945
SELECT DISTINCT 93, 55 / - - ( + ( 37 ) ) * - + 87 * + + 48 + - 91 + CAST( NULL AS DECIMAL ) * + + COUNT( ALL - - 71 ) AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-2945
SELECT DISTINCT 93, 55 / - - ( + ( 37 ) ) * - + 87 * + + 48 + - 91 + CAST ( NULL AS REAL ) * + + COUNT ( ALL - - 71 ) AS col1
----
93
NULL

query I rowsort
SELECT + 35 - - - 90 * 74
----
-6625

query I rowsort
SELECT + 48 + + 8 + + 13 * + 58 AS col1
----
810

query I rowsort
SELECT - + 55 * + + 27
----
-1485

query I rowsort
SELECT ALL + 33 - - + NULLIF ( - - ( + + 45 ), 41 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL SUM( 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL SUM ( 90 ) AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2951
SELECT DISTINCT 49 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT 49 / - 75
----
0

query I rowsort
SELECT DISTINCT - 42 * + 63
----
-2646

query I rowsort
SELECT ALL + 83 * - + 32 AS col1
----
-2656

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT DISTINCT + SUM( + 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT + SUM ( + 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT + COUNT( * ) * - + MIN( DISTINCT + + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT + COUNT ( * ) * - + MIN ( DISTINCT + + 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT CASE - 94 WHEN - COUNT( * ) THEN NULL WHEN - 51 THEN - 66 END - - + 84 + + - 82 * 42 + - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT CASE - 94 WHEN - COUNT ( * ) THEN NULL WHEN - 51 THEN - 66 END - - + 84 + + - 82 * 42 + - + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT + 51 + - + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT + 51 + - + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2959
SELECT ALL 18 + + - 7 DIV - + 75 + 91 AS col0, AVG ( - 63 ) + NULLIF ( - CASE - 43 WHEN + + 34 THEN + + ( NULLIF ( 19, 94 * + 24 ) ) * + AVG ( + 81 ) END, - 77 ) * - ( - COUNT( * ) * + 81 )
----
109
NULL

skipif mysql # not compatible
query II rowsort label-2959
SELECT ALL 18 + + - 7 / - + 75 + 91 AS col0, AVG ( - 63 ) + NULLIF ( - CASE - 43 WHEN + + 34 THEN + + ( NULLIF ( 19, 94 * + 24 ) ) * + AVG ( + 81 ) END, - 77 ) * - ( - COUNT ( * ) * + 81 )
----
109
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT COUNT( DISTINCT + 38 ) + - + ( 11 ) * + ( + ( 21 ) )
----
-230

skipif mysql # not compatible
query I rowsort label-2960
SELECT COUNT ( DISTINCT + 38 ) + - + ( 11 ) * + ( + ( 21 ) )
----
-230

query I rowsort
SELECT DISTINCT + 6 + - 36 AS col1
----
-30

query I rowsort
SELECT 88 + + 93
----
181

query I rowsort
SELECT ALL + 88 + - 2
----
86

query I rowsort
SELECT ALL - 34 + - 93
----
-127

query I rowsort
SELECT 78 * 88 AS col0
----
6864

query I rowsort
SELECT 85 + 3
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT NULLIF ( 14, - COALESCE ( 14, - + 46 ) ) DIV + ( - + 28 )
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT NULLIF ( 14, - COALESCE ( 14, - + 46 ) ) / + ( - + 28 )
----
0

query II rowsort
SELECT 23 + 72, - 61 AS col1
----
95
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL - COALESCE ( 53, - 87 * + - COALESCE ( + 31, + 11 * + + 90 + - COUNT( * ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL - COALESCE ( 53, - 87 * + - COALESCE ( + 31, + 11 * + + 90 + - COUNT ( * ) ) )
----
-53

query I rowsort
SELECT DISTINCT - 53 * + 97
----
-5141

query I rowsort
SELECT DISTINCT + - 97 - - - 7 AS col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT 9 * - COUNT( * ) + 86
----
77

skipif mysql # not compatible
query I rowsort label-2972
SELECT 9 * - COUNT ( * ) + 86
----
77

query I rowsort
SELECT ALL - 39 * 58 AS col0
----
-2262

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT ALL 49 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL 49 / - 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2975
SELECT - NULLIF ( + 94, - NULLIF ( - 34, + + 86 ) * - 59 + - MIN( + 21 ) ) + + + 69 * - 60 * COALESCE ( - 31, + 3 ) - COUNT( * ) DIV 10
----
128246

skipif mysql # not compatible
query I rowsort label-2975
SELECT - NULLIF ( + 94, - NULLIF ( - 34, + + 86 ) * - 59 + - MIN ( + 21 ) ) + + + 69 * - 60 * COALESCE ( - 31, + 3 ) - COUNT ( * ) / 10
----
128246

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT - 88 - + MAX( ALL - 38 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2976
SELECT - 88 - + MAX ( ALL - 38 ) AS col2
----
-50

query I rowsort
SELECT 4 + + 48
----
52

query I rowsort
SELECT 97 * + - 8 * + 96 + - ( + COALESCE ( + + 4, - + 19 ) )
----
-74500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2979
SELECT ALL + CAST( + 89 AS SIGNED ) * - 24 + - - 19
----
-2117

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + CAST ( + 89 AS INTEGER ) * - 24 + - - 19
----
-2117

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + 68 + ( - 88 ) + COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2980
SELECT + 68 + ( - 88 ) + COUNT ( * ) AS col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2981
SELECT ALL COALESCE ( + COUNT( * ), + ( + 7 ) + + - COALESCE ( + 35, 54, - 21 DIV - 18 + + 65 ) ) * - 65 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL COALESCE ( + COUNT ( * ), + ( + 7 ) + + - COALESCE ( + 35, 54, - 21 / - 18 + + 65 ) ) * - 65 AS col0
----
-65

query I rowsort
SELECT 73 + + ( + 7 ) AS col1
----
80

query I rowsort
SELECT 73 * ( + 96 ) col1
----
7008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT 79 + CAST( NULL AS SIGNED ) + + AVG ( DISTINCT - COALESCE ( 69, 12 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT 79 + CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT - COALESCE ( 69, 12 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT + COUNT( * ) AS col2, - 8 + - 4 AS col0
----
1
-12

skipif mysql # not compatible
query II rowsort label-2985
SELECT + COUNT ( * ) AS col2, - 8 + - 4 AS col0
----
1
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2986
SELECT CAST( - 12 AS SIGNED ) DIV - ( - 90 ) * + 73
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT CAST ( - 12 AS INTEGER ) / - ( - 90 ) * + 73
----
0

query I rowsort
SELECT ALL + 65 + - + 61 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT COUNT( ALL 85 )
----
1

skipif mysql # not compatible
query I rowsort label-2988
SELECT COUNT ( ALL 85 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT ALL 13 DIV + - 43
----
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL 13 / + - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT + 47 + - ( + + COUNT( * ) ) + + - 30 * MAX( DISTINCT - 69 ) * - - 75 col2
----
155296

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT + 47 + - ( + + COUNT ( * ) ) + + - 30 * MAX ( DISTINCT - 69 ) * - - 75 col2
----
155296

onlyif mysql # aggregate syntax: 
query II rowsort label-2991
SELECT DISTINCT 6 + 91 + ( MIN( 8 ) ) col1, COUNT( ( + 20 ) ) * + 21
----
105
21

skipif mysql # not compatible
query II rowsort label-2991
SELECT DISTINCT 6 + 91 + ( MIN ( 8 ) ) col1, COUNT ( ( + 20 ) ) * + 21
----
105
21

query I rowsort
SELECT ALL - 56 * - 3
----
168

query I rowsort
SELECT ALL + 2 + 74 col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT + COUNT( * ) * - 74 - - + 31 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2994
SELECT + COUNT ( * ) * - 74 - - + 31 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT 2 * 27 DIV + + 15 - - - 31
----
-28

skipif mysql # not compatible
query I rowsort label-2995
SELECT 2 * 27 / + + 15 - - - 31
----
-28

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

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

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

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

query I rowsort
SELECT ( - ( 2 ) )
----
-2

query I rowsort
SELECT DISTINCT + 60 * 9 - ( - - 18 ) AS col0
----
522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3000
SELECT ALL - - 11, - CAST( NULL AS SIGNED ) * - 80 * 17 - COUNT( * ) col2
----
11
NULL

skipif mysql # not compatible
query II rowsort label-3000
SELECT ALL - - 11, - CAST ( NULL AS INTEGER ) * - 80 * 17 - COUNT ( * ) col2
----
11
NULL

query I rowsort
SELECT ALL 80 * 76
----
6080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT CASE 16 WHEN - + 47 / - 17 * - 95 - - 66 THEN + ( + COALESCE ( - - 53, + - 12 + - ( + + 32 ) / - + CASE 78 WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN - 90 * + AVG ( ALL CAST( NULL AS SIGNED ) ) THEN NULL ELSE + COALESCE ( 73, - COALESCE ( - COUNT( * ), - SUM( DISTINCT - 33 ) ) / - AVG ( ( + 46 ) / 20 ), - 41 + 96 ) END ) ) WHEN - 30 + NULLIF ( COUNT( * ), + 82 ) THEN - 22 WHEN - 56 THEN + 99 WHEN 75 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT CASE 16 WHEN - + 47 / - 17 * - 95 - - 66 THEN + ( + COALESCE ( - - 53, + - 12 + - ( + + 32 ) / - + CASE 78 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 90 * + AVG ( ALL CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + COALESCE ( 73, - COALESCE ( - COUNT ( * ), - SUM ( DISTINCT - 33 ) ) / - AVG ( ( + 46 ) / 20 ), - 41 + 96 ) END ) ) WHEN - 30 + NULLIF ( COUNT ( * ), + 82 ) THEN - 22 WHEN - 56 THEN + 99 WHEN 75 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT - CASE 11 WHEN + 12 * + CAST( NULL AS SIGNED ) THEN NULL WHEN + ( 83 ) THEN NULL ELSE - - ( - 3 ) + + 13 END * + - 18 * - - 56 - 95 - - 63
----
10048

skipif mysql # not compatible
query I rowsort label-3003
SELECT - CASE 11 WHEN + 12 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( 83 ) THEN NULL ELSE - - ( - 3 ) + + 13 END * + - 18 * - - 56 - 95 - - 63
----
10048

query I rowsort
SELECT DISTINCT + ( - 86 ) * + - 76 col0
----
6536

onlyif mysql # aggregate syntax: 
query II rowsort label-3005
SELECT + 80 * - - COUNT( * ) + + 87 AS col2, + 86 col1
----
167
86

skipif mysql # not compatible
query II rowsort label-3005
SELECT + 80 * - - COUNT ( * ) + + 87 AS col2, + 86 col1
----
167
86

query I rowsort
SELECT - COALESCE ( - - 28, 55 ) * 19 * + 95 col2
----
-50540

query II rowsort
SELECT + 93 * - 53 * + 64 AS col1, 47 AS col1
----
-315456
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL ( 82 ) + + + MAX( - 16 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL ( 82 ) + + + MAX ( - 16 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - + 76 + + 4 + + 91 * - + SUM( ALL - 2 )
----
110

skipif mysql # not compatible
query I rowsort label-3009
SELECT - + 76 + + 4 + + 91 * - + SUM ( ALL - 2 )
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT + 7 DIV - 35 * 16
----
0

skipif mysql # not compatible
query I rowsort label-3010
SELECT + 7 / - 35 * 16
----
0

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

skipif mysql # not compatible
query I rowsort label-3011
SELECT - 37 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( + 74, 21, - 39 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3013
SELECT ALL 22, 49 * - 82 + + COUNT( * ) col0
----
22
-4017

skipif mysql # not compatible
query II rowsort label-3013
SELECT ALL 22, 49 * - 82 + + COUNT ( * ) col0
----
22
-4017

onlyif mysql # aggregate syntax: 
query II rowsort label-3014
SELECT - COUNT( * ) AS col2, + 71 + + 20 * - NULLIF ( 9, - 65 ) * - 65
----
-1
11771

skipif mysql # not compatible
query II rowsort label-3014
SELECT - COUNT ( * ) AS col2, + 71 + + 20 * - NULLIF ( 9, - 65 ) * - 65
----
-1
11771

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

query I rowsort
SELECT + 7 - + 18
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3017
SELECT ALL 72 * - 77, - NULLIF ( SUM( DISTINCT - 13 ), + 38 + 22 + - COUNT( * ) * + 69 ) AS col2
----
-5544
13

skipif mysql # not compatible
query II rowsort label-3017
SELECT ALL 72 * - 77, - NULLIF ( SUM ( DISTINCT - 13 ), + 38 + 22 + - COUNT ( * ) * + 69 ) AS col2
----
-5544
13

query I rowsort
SELECT + ( + + 15 ) - 28 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3019
SELECT ALL COUNT( * ) AS col0, COUNT( * ) + - + ( - 23 ) AS col2
----
1
24

skipif mysql # not compatible
query II rowsort label-3019
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) + - + ( - 23 ) AS col2
----
1
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT + SUM( + CAST( - 36 AS SIGNED ) ) + - + 61
----
-97

skipif mysql # not compatible
query I rowsort label-3020
SELECT + SUM ( + CAST ( - 36 AS INTEGER ) ) + - + 61
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3021
SELECT ALL 38 * - 24 + + - CAST( NULL AS SIGNED ) * + 86 - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL 38 * - 24 + + - CAST ( NULL AS INTEGER ) * + 86 - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3022
SELECT ALL COUNT( * ) * SUM( + + CAST( + - 10 AS SIGNED ) ) + + 42
----
32

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL COUNT ( * ) * SUM ( + + CAST ( + - 10 AS INTEGER ) ) + + 42
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT - 75 DIV 34 - - 84
----
82

skipif mysql # not compatible
query I rowsort label-3023
SELECT - 75 / 34 - - 84
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT DISTINCT 94 DIV + 94 col2
----
1

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT 94 / + 94 col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3025
SELECT DISTINCT + 27 AS col2, 22 + - - COUNT( * ) AS col2
----
27
23

skipif mysql # not compatible
query II rowsort label-3025
SELECT DISTINCT + 27 AS col2, 22 + - - COUNT ( * ) AS col2
----
27
23

query I rowsort
SELECT ALL - 25 * ( - - 82 )
----
-2050

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL + 21 * 36 - SUM( DISTINCT - - 2 ) AS col1
----
754

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + 21 * 36 - SUM ( DISTINCT - - 2 ) AS col1
----
754

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT DISTINCT 58 DIV 90 * - - 70 * - + 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT 58 / 90 * - - 70 * - + 41 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3029
SELECT - 70 + - + CASE 89 WHEN - CAST( 42 AS SIGNED ) THEN + COUNT( * ) + 0 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT - 70 + - + CASE 89 WHEN - CAST ( 42 AS INTEGER ) THEN + COUNT ( * ) + 0 END col1
----
NULL

query I rowsort
SELECT ALL - 61 * - ( - + 98 )
----
-5978

query I rowsort
SELECT - + 93 * + 50 + + + ( - 26 )
----
-4676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3032
SELECT + - 23 DIV + SUM( DISTINCT 62 ) DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT + - 23 / + SUM ( DISTINCT 62 ) / + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT 6 * 20 + - 87 + + + 23 - + + COUNT( * ) * + 54 + COUNT( * ) + NULLIF ( + 26, + - 74 + + 85 + - - COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-3033
SELECT 6 * 20 + - 87 + + + 23 - + + COUNT ( * ) * + 54 + COUNT ( * ) + NULLIF ( + 26, + - 74 + + 85 + - - COUNT ( * ) )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3034
SELECT 62 AS col1, - COALESCE ( CAST( NULL AS SIGNED ), NULLIF ( + COUNT( * ), - + CAST( - - ( + 27 ) AS DECIMAL ) * + + 10 - + 90 ) ) AS col2
----
62
-1

skipif mysql # not compatible
query II rowsort label-3034
SELECT 62 AS col1, - COALESCE ( CAST ( NULL AS INTEGER ), NULLIF ( + COUNT ( * ), - + CAST ( - - ( + 27 ) AS REAL ) * + + 10 - + 90 ) ) AS col2
----
62
-1

query I rowsort
SELECT - + 42 * + 49 + + - 2 - - 88 * 85 AS col2
----
5420

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT - + 31 + - - COUNT( * ) - + 83 * + 30 * - 94 * + 8
----
1872450

skipif mysql # not compatible
query I rowsort label-3036
SELECT - + 31 + - - COUNT ( * ) - + 83 * + 30 * - 94 * + 8
----
1872450

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT - - COUNT( DISTINCT - 37 ) + ( - + NULLIF ( - + COUNT( * ), ( - + 79 ) + - 16 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3037
SELECT - - COUNT ( DISTINCT - 37 ) + ( - + NULLIF ( - + COUNT ( * ), ( - + 79 ) + - 16 ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3038
SELECT ALL + - 67, + ( - 94 ) / - - CASE + COUNT( * ) WHEN COUNT( + - 36 ) * - - 99 + 22 THEN - + 10 WHEN - COUNT( * ) + - + 30 + + 81 THEN NULL ELSE NULL END * + + 95 * CASE - + 90 WHEN + 49 - 57 THEN 60 * 76 WHEN - 20 THEN NULL ELSE NULL END * 63 - CAST( 27 + 37 AS SIGNED ) - 56 AS col0
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-3038
SELECT ALL + - 67, + ( - 94 ) / - - CASE + COUNT ( * ) WHEN COUNT ( + - 36 ) * - - 99 + 22 THEN - + 10 WHEN - COUNT ( * ) + - + 30 + + 81 THEN NULL ELSE NULL END * + + 95 * CASE - + 90 WHEN + 49 - 57 THEN 60 * 76 WHEN - 20 THEN NULL ELSE NULL END * 63 - CAST ( 27 + 37 AS INTEGER ) - 56 AS col0
----
-67
NULL

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

query I rowsort
SELECT DISTINCT - 63 * - + 79 * + + 81 + - 85
----
403052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT DISTINCT COUNT( * ) * - 13 + + 0 DIV - - SUM( ALL - 36 ) + + 1 - 76 + + 16 DIV - 17
----
-88

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT COUNT ( * ) * - 13 + + 0 / - - SUM ( ALL - 36 ) + + 1 - 76 + + 16 / - 17
----
-88

query I rowsort
SELECT - - 16 + + 2 - - 33 * - 21
----
-675

query I rowsort
SELECT ALL + + 88 + 23
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3044
SELECT + 0 + + NULLIF ( - ( - + 72 ), + + MIN( ALL + + 60 ) * 84 + + CAST( NULL AS SIGNED ) + 10 )
----
72

skipif mysql # not compatible
query I rowsort label-3044
SELECT + 0 + + NULLIF ( - ( - + 72 ), + + MIN ( ALL + + 60 ) * 84 + + CAST ( NULL AS INTEGER ) + 10 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3045
SELECT - - COUNT( - + 63 ) DIV + - CAST( + 75 AS SIGNED ) + + 31 + + ( + - 77 ) * - 65
----
5036

skipif mysql # not compatible
query I rowsort label-3045
SELECT - - COUNT ( - + 63 ) / + - CAST ( + 75 AS INTEGER ) + + 31 + + ( + - 77 ) * - 65
----
5036

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT + 19 + - - COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3046
SELECT + 19 + - - COUNT ( * ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT ALL - 64 + + + 97 + + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL - 64 + + + 97 + + + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT - MIN( DISTINCT - + 35 ) * + 24 * - COUNT( * ) * - 1
----
840

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - MIN ( DISTINCT - + 35 ) * + 24 * - COUNT ( * ) * - 1
----
840

query I rowsort
SELECT - COALESCE ( + 7, + + 82 ) + 88
----
81

query I rowsort
SELECT ALL - 74 * ( - 14 )
----
1036

query I rowsort
SELECT ALL + 2 + + + 45
----
47

query I rowsort
SELECT + 53 * + + 39 AS col1
----
2067

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT ALL 59 DIV 69 * + 94
----
0

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL 59 / 69 * + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT - SUM( - 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3054
SELECT - SUM ( - 29 ) AS col0
----
29

query III rowsort
SELECT + 30 + + 33 AS col0, 56 AS col0, - - 15 AS col0
----
63
56
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - COUNT( - 84 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3056
SELECT - COUNT ( - 84 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 53 * + - ( - 26 )
----
1378

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT ALL - 27 DIV - - 98 - + 68
----
-68

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL - 27 / - - 98 - + 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL + NULLIF ( + - COUNT( 54 ), + 64 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL + NULLIF ( + - COUNT ( 54 ), + 64 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT ALL 88 * - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL 88 * - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 94 * 55 * + 76
----
392920

query I rowsort
SELECT ALL - 66 * - - 40
----
-2640

onlyif mysql # aggregate syntax: 
query II rowsort label-3063
SELECT DISTINCT 17 * + - COUNT( + 72 ) * + 60 - - ( - 90 ) + + COUNT( * ) * - 7 col1, 9
----
-1117
9

skipif mysql # not compatible
query II rowsort label-3063
SELECT DISTINCT 17 * + - COUNT ( + 72 ) * + 60 - - ( - 90 ) + + COUNT ( * ) * - 7 col1, 9
----
-1117
9

query I rowsort
SELECT - 83 * - 15 * - - 53 + - 42 AS col1
----
65943

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

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

query II rowsort
SELECT - 58 * 99 AS col0, 35 AS col0
----
-5742
35

query I rowsort
SELECT - + 3 * 88 + 40 + - - 84 - 38 AS col1
----
-178

query I rowsort
SELECT ALL + - NULLIF ( - 95, + 84 ) AS col0
----
95

query I rowsort
SELECT + 99 * - 38 * - 43
----
161766

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT - 68 + + 8 + + 5 * - + COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3070
SELECT - 68 + + 8 + + 5 * - + COUNT ( * ) AS col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT DISTINCT + 50 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT + 50 / + 60
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( - 85, + + 29 )
----
85

query I rowsort
SELECT ALL - - 28 + - ( + + 7 ) * ( - 61 ) AS col1
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT DISTINCT + 89 + - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT + 89 + - COUNT ( * )
----
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT ALL - 64 * 91 DIV + - 52
----
112

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - 64 * 91 / + - 52
----
112

query I rowsort
SELECT - 15 * - 74 AS col2
----
1110

query I rowsort
SELECT DISTINCT - 31 + + + 17 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT ALL + 73 + + 87 + 70 DIV - ( - 94 ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + 73 + + 87 + 70 / - ( - 94 ) AS col2
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-3080
SELECT - ( + 13 ) col0, CASE + 50 WHEN + 44 * - + 99 + + ( + 24 ) * + + 21 * COUNT( * ) THEN NULL WHEN 0 * - 13 - + 5 + - 2 * + - 25 THEN NULL WHEN + - 31 THEN 81 ELSE 49 + + 13 END
----
-13
62

skipif mysql # not compatible
query II rowsort label-3080
SELECT - ( + 13 ) col0, CASE + 50 WHEN + 44 * - + 99 + + ( + 24 ) * + + 21 * COUNT ( * ) THEN NULL WHEN 0 * - 13 - + 5 + - 2 * + - 25 THEN NULL WHEN + - 31 THEN 81 ELSE 49 + + 13 END
----
-13
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3081
SELECT ALL 11 * 10 AS col2, + 11 DIV - COUNT( DISTINCT 98 )
----
110
-11

skipif mysql # not compatible
query II rowsort label-3081
SELECT ALL 11 * 10 AS col2, + 11 / - COUNT ( DISTINCT 98 )
----
110
-11

query I rowsort
SELECT 70 * + 89 AS col1
----
6230

query I rowsort
SELECT DISTINCT 31 + - 26
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL - COUNT( * ) * + 52 * - + 23
----
1196

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL - COUNT ( * ) * + 52 * - + 23
----
1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT DISTINCT + 88 + - - 24 * 70 * - + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT + 88 + - - 24 * 70 * - + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT SUM( 95 ) + COUNT( + 15 ) + - + 51 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3086
SELECT SUM ( 95 ) + COUNT ( + 15 ) + - + 51 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3087
SELECT 95 * + NULLIF ( + 17, + - NULLIF ( + CAST( NULL AS SIGNED ), COUNT( ALL + 36 ) ) ) * + NULLIF ( - COUNT( * ), 56 ) + 98 * SUM( - 31 ) * - + MAX( DISTINCT + 35 ) AS col2
----
104715

skipif mysql # not compatible
query I rowsort label-3087
SELECT 95 * + NULLIF ( + 17, + - NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( ALL + 36 ) ) ) * + NULLIF ( - COUNT ( * ), 56 ) + 98 * SUM ( - 31 ) * - + MAX ( DISTINCT + 35 ) AS col2
----
104715

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3088
SELECT DISTINCT 32, COALESCE ( 24, + COUNT( * ) * - COUNT( + 31 ) + + + 84 + 43 + + - 89 * + 29 * + 77 DIV + ( 24 ) ) * - - ( + - 58 ) + - 66 AS col1, + NULLIF ( - 38, COUNT( * ) ) AS col1
----
32
-1458
-38

skipif mysql # not compatible
query III rowsort label-3088
SELECT DISTINCT 32, COALESCE ( 24, + COUNT ( * ) * - COUNT ( + 31 ) + + + 84 + 43 + + - 89 * + 29 * + 77 / + ( 24 ) ) * - - ( + - 58 ) + - 66 AS col1, + NULLIF ( - 38, COUNT ( * ) ) AS col1
----
32
-1458
-38

query I rowsort
SELECT 69 + - - ( - - 30 ) + + 44 * 29 + 10 * 27 * - + 5
----
25

query I rowsort
SELECT 79 + + 85
----
164

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3091
SELECT 14 DIV COALESCE ( - ( - CAST( NULL AS SIGNED ) ), + 7 )
----
2

skipif mysql # not compatible
query I rowsort label-3091
SELECT 14 / COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), + 7 )
----
2

query I rowsort
SELECT 88 + + 70 AS col1
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT - 96 AS col1, - 51 * 15 * + 7 * + - COUNT( * ) * + - 79 * + - 86 + 42 + + 72
----
-96
36381984

skipif mysql # not compatible
query II rowsort label-3093
SELECT - 96 AS col1, - 51 * 15 * + 7 * + - COUNT ( * ) * + - 79 * + - 86 + 42 + + 72
----
-96
36381984

query I rowsort
SELECT 98 * + + 40 * - 60 AS col2
----
-235200

query II rowsort
SELECT ALL - 43 * - ( - 23 ) AS col2, - ( + 16 )
----
-989
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3096
SELECT ALL 3, + 49 * - 61 * - 8 + - 17 + + COUNT( * ) AS col0
----
3
23896

skipif mysql # not compatible
query II rowsort label-3096
SELECT ALL 3, + 49 * - 61 * - 8 + - 17 + + COUNT ( * ) AS col0
----
3
23896

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT ALL COALESCE ( 27, - - 12 * + 81, - - 93 ) DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL COALESCE ( 27, - - 12 * + 81, - - 93 ) / - 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT COUNT( * ) + - - 47 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3098
SELECT COUNT ( * ) + - - 47 AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT ALL - CASE - COALESCE ( + - 63, 31 * + 38 * + - 20 * - 23 ) WHEN - 92 * + - 27 THEN - - 64 ELSE - + CAST( NULL AS SIGNED ) * 82 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - CASE - COALESCE ( + - 63, 31 * + 38 * + - 20 * - 23 ) WHEN - 92 * + - 27 THEN - - 64 ELSE - + CAST ( NULL AS INTEGER ) * 82 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL - CASE WHEN NOT MIN( - 57 ) NOT IN ( - + COUNT( * ), 99, - - 83, 98, + 96 ) THEN AVG ( - - 95 ) / + 30 * + + COUNT( * ) + + 48 + 56 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL - CASE WHEN NOT MIN ( - 57 ) NOT IN ( - + COUNT ( * ), 99, - - 83, 98, + 96 ) THEN AVG ( - - 95 ) / + 30 * + + COUNT ( * ) + + 48 + 56 END AS col1
----
NULL

query I rowsort
SELECT 3 + - 61
----
-58

query II rowsort
SELECT ALL - 35, 5 AS col2
----
-35
5

query II rowsort
SELECT + + 79 AS col2, - 94 col0
----
79
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT - + 42 * 2 + - - COUNT( * ) + 57
----
-26

skipif mysql # not compatible
query I rowsort label-3105
SELECT - + 42 * 2 + - - COUNT ( * ) + 57
----
-26

query I rowsort
SELECT 38 - + + 3
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3107
SELECT 25 DIV + 94 + - 43 + - 66 + + 32
----
-77

skipif mysql # not compatible
query I rowsort label-3107
SELECT 25 / + 94 + - 43 + - 66 + + 32
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3108
SELECT + 53 DIV + + 23 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3108
SELECT + 53 / + + 23 AS col2
----
2

query I rowsort
SELECT ALL 27 * - 65
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL + - COUNT( * ) + - + 42
----
-43

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + - COUNT ( * ) + - + 42
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3111
SELECT DISTINCT 45 * + CAST( - 20 AS SIGNED ), + 79 AS col2
----
-900
79

skipif mysql # not compatible
query II rowsort label-3111
SELECT DISTINCT 45 * + CAST ( - 20 AS INTEGER ), + 79 AS col2
----
-900
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3112
SELECT ALL - 29 + + 49 + - 92 * + - 26 AS col1, - CAST( + 82 AS SIGNED ) + - 57
----
2412
-139

skipif mysql # not compatible
query II rowsort label-3112
SELECT ALL - 29 + + 49 + - 92 * + - 26 AS col1, - CAST ( + 82 AS INTEGER ) + - 57
----
2412
-139

query I rowsort
SELECT DISTINCT - 71 + - 94 AS col2
----
-165

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

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - 85 + + COUNT ( * ) AS col0
----
-84

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

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

query II rowsort
SELECT - + 47 * 11 + + 18 AS col2, - 59 AS col2
----
-499
-59

query I rowsort
SELECT 17 * + - 96 - - ( + 2 ) col1
----
-1630

query I rowsort
SELECT + 12 + + 94 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL + 2 + + 23 + ( - COUNT( * ) ) - + 53 + + ( COUNT( * ) ) * - 89 * - + 21 + - - 91 - 76 AS col0
----
1855

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + 2 + + 23 + ( - COUNT ( * ) ) - + 53 + + ( COUNT ( * ) ) * - 89 * - + 21 + - - 91 - 76 AS col0
----
1855

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

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

query I rowsort
SELECT DISTINCT 0 + 54 * + 81
----
4374

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

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

query I rowsort
SELECT - 12 * - - 38 + - 88 * - + 86
----
7112

onlyif mysql # DIV for integer division: 
query II rowsort label-3124
SELECT ALL 90 - - 80 AS col2, - 41 DIV 86
----
170
0

skipif mysql # not compatible
query II rowsort label-3124
SELECT ALL 90 - - 80 AS col2, - 41 / 86
----
170
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3125
SELECT ALL 49 DIV - 16 AS col2, CASE - - NULLIF ( + COUNT( * ), 15 ) WHEN - + 62 * + - CASE - MIN( + 85 ) WHEN + + COUNT( * ) * - + 47 THEN NULL WHEN - 89 * + 94 * - - COUNT( * ) * - 44 + - 39 - ( + COUNT( * ) ) DIV + 72 THEN + COUNT( * ) END + - 97 DIV + 66 + + 40 THEN NULL WHEN COALESCE ( - 0, 46 - 35 * + 60 ) THEN 86 END
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3125
SELECT ALL 49 / - 16 AS col2, CASE - - NULLIF ( + COUNT ( * ), 15 ) WHEN - + 62 * + - CASE - MIN ( + 85 ) WHEN + + COUNT ( * ) * - + 47 THEN NULL WHEN - 89 * + 94 * - - COUNT ( * ) * - 44 + - 39 - ( + COUNT ( * ) ) / + 72 THEN + COUNT ( * ) END + - 97 / + 66 + + 40 THEN NULL WHEN COALESCE ( - 0, 46 - 35 * + 60 ) THEN 86 END
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ( + - 36 ) + - 30 + 70 * + + MAX( DISTINCT + 72 ) - + - 22 - + 47
----
4949

skipif mysql # not compatible
query I rowsort label-3126
SELECT ( + - 36 ) + - 30 + 70 * + + MAX ( DISTINCT + 72 ) - + - 22 - + 47
----
4949

query II rowsort
SELECT DISTINCT 84 * + 21 AS col1, - 24
----
1764
-24

query I rowsort
SELECT ALL 42 * - 85 * - 88 * - 15 AS col1
----
-4712400

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT 8 * 58 * COUNT( * )
----
464

skipif mysql # not compatible
query I rowsort label-3129
SELECT 8 * 58 * COUNT ( * )
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT - SUM( - 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3130
SELECT - SUM ( - 91 ) AS col1
----
91

query I rowsort
SELECT 14 + + + 39
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3132
SELECT ALL COUNT( * ) - + - 69 AS col0, CAST( NULL AS SIGNED ) AS col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-3132
SELECT ALL COUNT ( * ) - + - 69 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT - COUNT( ALL - - 97 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3133
SELECT - COUNT ( ALL - - 97 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT SUM( - 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT SUM ( - 48 ) AS col2
----
-48

query I rowsort
SELECT 33 * 9 AS col0
----
297

query I rowsort
SELECT 10 * + - 52
----
-520

query II rowsort
SELECT - ( - + 23 ) AS col0, 32 AS col1
----
23
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3138
SELECT ALL 36 * + + 65 * + 47 - + AVG ( - 52 ) + + 50 + + COALESCE ( - 97, - 4 * 34 * - 27 * - 3 / 64 + SUM( ALL 26 ) ) * - SUM( ALL + 90 ) - 59 + 9 * 23 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL 36 * + + 65 * + 47 - + AVG ( - 52 ) + + 50 + + COALESCE ( - 97, - 4 * 34 * - 27 * - 3 / 64 + SUM ( ALL 26 ) ) * - SUM ( ALL + 90 ) - 59 + 9 * 23 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT - 3 + - 51 + MIN( 77 ) - - 69 * - MAX( ALL - 35 ) + + + 24
----
2462

skipif mysql # not compatible
query I rowsort label-3139
SELECT - 3 + - 51 + MIN ( 77 ) - - 69 * - MAX ( ALL - 35 ) + + + 24
----
2462

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3144
SELECT + 44 * SUM( ALL + - 76 ) DIV - 7 AS col0
----
477

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 44 * SUM ( ALL + - 76 ) / - 7 AS col0
----
477

query II rowsort
SELECT + - 37 + + 46, 16 AS col2
----
9
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT + ( + 11 ) AS col2, NULLIF ( COUNT( DISTINCT + ( 7 ) ), 94 * - + 25 * 75 )
----
11
1

skipif mysql # not compatible
query II rowsort label-3146
SELECT + ( + 11 ) AS col2, NULLIF ( COUNT ( DISTINCT + ( 7 ) ), 94 * - + 25 * 75 )
----
11
1

query I rowsort
SELECT ALL 63 * + - 32 AS col2
----
-2016

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

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

query I rowsort
SELECT - NULLIF ( + 93, - 56 ) * - 50 + - 53 + + 42 + - 32 * 44 * COALESCE ( 84, - 61, 27 )
----
-113633

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT + CASE 54 WHEN 6 - - 28 + - 59 * - MIN( + 42 ) THEN 34 + COUNT( * ) WHEN + 33 THEN - ( + 32 ) * + - NULLIF ( MIN( ALL - 34 ), 37 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT + CASE 54 WHEN 6 - - 28 + - 59 * - MIN ( + 42 ) THEN 34 + COUNT ( * ) WHEN + 33 THEN - ( + 32 ) * + - NULLIF ( MIN ( ALL - 34 ), 37 ) END AS col2
----
NULL

query I rowsort
SELECT ALL 43 * 27
----
1161

query I rowsort
SELECT + 54 * + - 10 AS col1
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT MAX( - - ( ( - 65 ) ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3153
SELECT MAX ( - - ( ( - 65 ) ) ) AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3154
SELECT + CAST( NULL AS DECIMAL ) * + COUNT( + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT + CAST ( NULL AS REAL ) * + COUNT ( + 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3155
SELECT ALL ( - MIN( + 0 ) ), 69 - - - 74 + - 13 AS col1
----
0
-18

skipif mysql # not compatible
query II rowsort label-3155
SELECT ALL ( - MIN ( + 0 ) ), 69 - - - 74 + - 13 AS col1
----
0
-18

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

skipif mysql # not compatible
query I rowsort label-3156
SELECT + 53 / + 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT ALL CAST( + 61 AS SIGNED ) * 8 AS col2
----
488

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL CAST ( + 61 AS INTEGER ) * 8 AS col2
----
488

query I rowsort
SELECT + CASE 28 WHEN + - 9 + + 95 THEN + + 23 END + + 6 + ( - 67 ) AS col0
----
NULL

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

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

query I rowsort
SELECT + 35 + 42
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3161
SELECT + 11 + 63 * + COALESCE ( + NULLIF ( + 25, + CASE - COUNT( DISTINCT + 59 ) WHEN - COUNT( * ) + - 51 + 67 - - 27 * 98 THEN - 86 * + + 31 ELSE NULLIF ( - + 25, - CAST( NULL AS DECIMAL ) ) * 26 END ), + 79 ) AS col0
----
1586

skipif mysql # not compatible
query I rowsort label-3161
SELECT + 11 + 63 * + COALESCE ( + NULLIF ( + 25, + CASE - COUNT ( DISTINCT + 59 ) WHEN - COUNT ( * ) + - 51 + 67 - - 27 * 98 THEN - 86 * + + 31 ELSE NULLIF ( - + 25, - CAST ( NULL AS REAL ) ) * 26 END ), + 79 ) AS col0
----
1586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3162
SELECT 7 AS col1, - 18 * + - 63 * + CAST( COUNT( * ) AS SIGNED )
----
7
1134

skipif mysql # not compatible
query II rowsort label-3162
SELECT 7 AS col1, - 18 * + - 63 * + CAST ( COUNT ( * ) AS INTEGER )
----
7
1134

query I rowsort
SELECT + 87 + 37 + + 32 AS col1
----
156

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

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT COUNT ( DISTINCT + - 68 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - + 96 + + 83
----
-13

query I rowsort
SELECT ALL + 4 + + 6 + 63 - - 2 col2
----
75

query I rowsort
SELECT + 78 + - 8
----
70

query I rowsort
SELECT ALL - + 46 + 69 * + 63
----
4301

query I rowsort
SELECT - 92 + + 91
----
-1

query I rowsort
SELECT + CASE - ( - 85 ) WHEN + - 53 + + + 51 THEN NULL WHEN - AVG ( 95 ) THEN - + ( + - 49 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT DISTINCT - NULLIF ( 41, COUNT( * ) - + COUNT( * ) * - 39 / 80 ) + + 87 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT - NULLIF ( 41, COUNT ( * ) - + COUNT ( * ) * - 39 / 80 ) + + 87 AS col1
----
46

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3173
SELECT - - MIN( - 37 ) + - + 71 + COALESCE ( + 18, + 0 * + 33, + COUNT( * ) ) + + 13 DIV - 88 * + 75 * - 85 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3173
SELECT - - MIN ( - 37 ) + - + 71 + COALESCE ( + 18, + 0 * + 33, + COUNT ( * ) ) + + 13 / - 88 * + 75 * - 85 AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT ALL + - 41 * - - ( - + COUNT( + CAST( + + 53 AS SIGNED ) ) )
----
41

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + - 41 * - - ( - + COUNT ( + CAST ( + + 53 AS INTEGER ) ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3175
SELECT ALL 51 / - AVG ( - 25 ) * 45 * - COALESCE ( - 89, 13 ) + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL 51 / - AVG ( - 25 ) * 45 * - COALESCE ( - 89, 13 ) + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3176
SELECT ALL 66 DIV - COUNT( * ) DIV COUNT( * ) - MAX( 96 ) DIV 74
----
-67

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL 66 / - COUNT ( * ) / COUNT ( * ) - MAX ( 96 ) / 74
----
-67

query I rowsort
SELECT ALL - + 49 * + - 31 + - ( + 71 ) AS col0
----
1448

query I rowsort
SELECT DISTINCT + - 52 col0
----
-52

query I rowsort
SELECT - 22 + - 3 * 33
----
-121

query I rowsort
SELECT ALL + + NULLIF ( + 43, + NULLIF ( 28, - 15 ) + + - ( + 19 ) )
----
43

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

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT - 2 / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT + CASE - 71 WHEN + COUNT( * ) * - COUNT( * ) THEN + ( 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT + CASE - 71 WHEN + COUNT ( * ) * - COUNT ( * ) THEN + ( 20 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3183
SELECT ALL + ( - - CASE - 15 WHEN 10 * - 34 THEN CAST( NULL AS DECIMAL ) WHEN - - COUNT( * ) * + 95 * - + 76 / - 51 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL + ( - - CASE - 15 WHEN 10 * - 34 THEN CAST ( NULL AS REAL ) WHEN - - COUNT ( * ) * + 95 * - + 76 / - 51 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL - CASE + 90 WHEN - - 27 + + - 90 THEN + 32 END * + 18 * + + COUNT( ALL + - 81 ) - + 27 + 67 + - 1 / + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - CASE + 90 WHEN - - 27 + + - 90 THEN + 32 END * + 18 * + + COUNT ( ALL + - 81 ) - + 27 + 67 + - 1 / + 96 AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3186
SELECT ALL - 11 DIV 97 DIV 16 * + CAST( 19 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - 11 / 97 / 16 * + CAST ( 19 AS INTEGER ) AS col0
----
0

query II rowsort
SELECT DISTINCT + COALESCE ( - 81, 44 * + 13 ), 57 * 81 + + + 97 AS col1
----
-81
4714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT - CAST( 40 AS SIGNED ) * + 92
----
-3680

skipif mysql # not compatible
query I rowsort label-3188
SELECT - CAST ( 40 AS INTEGER ) * + 92
----
-3680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT - 95 + - 13 * - CAST( 26 AS SIGNED )
----
243

skipif mysql # not compatible
query I rowsort label-3189
SELECT - 95 + - 13 * - CAST ( 26 AS INTEGER )
----
243

query I rowsort
SELECT 12 * + 2 + + + 14 AS col1
----
38

query II rowsort
SELECT + 47 + 87 AS col1, - 92 AS col2
----
134
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL + 24 * - 17 + + 48 - - SUM( 35 ) * 22 * - 51 AS col1
----
-39630

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + 24 * - 17 + + 48 - - SUM ( 35 ) * 22 * - 51 AS col1
----
-39630

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3194
SELECT 13 * CAST( - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT 13 * CAST ( - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT 49 + - ( - 71 ) AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT 40 + + 25 + NULLIF ( + 27, COUNT( DISTINCT + 0 ) ) * 76
----
2117

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT 40 + + 25 + NULLIF ( + 27, COUNT ( DISTINCT + 0 ) ) * 76
----
2117

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT - COUNT( + 62 ) + - + 77
----
-78

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - COUNT ( + 62 ) + - + 77
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3198
SELECT 38 * - CAST( - NULLIF ( + ( - 25 ), + 69 * + + CAST( NULL AS SIGNED ) + - + 81 + + 75 ) AS SIGNED ) AS col2, - 64 * - 47
----
-950
3008

skipif mysql # not compatible
query II rowsort label-3198
SELECT 38 * - CAST ( - NULLIF ( + ( - 25 ), + 69 * + + CAST ( NULL AS INTEGER ) + - + 81 + + 75 ) AS INTEGER ) AS col2, - 64 * - 47
----
-950
3008

query II rowsort
SELECT ALL 15 col1, 58 * 11
----
15
638

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT 11 + - MAX( - + 88 )
----
99

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT 11 + - MAX ( - + 88 )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3201
SELECT - - COALESCE ( - - ( - 62 ), - 28 + - + COUNT( * ), - - 74 + 74 DIV - 39 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3201
SELECT - - COALESCE ( - - ( - 62 ), - 28 + - + COUNT ( * ), - - 74 + 74 / - 39 ) AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT + 90 DIV - 9 + - 33
----
-43

skipif mysql # not compatible
query I rowsort label-3202
SELECT + 90 / - 9 + - 33
----
-43

query II rowsort
SELECT - 21 AS col0, + 25 col2
----
-21
25

query I rowsort
SELECT ALL 82 * + 79 AS col2
----
6478

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

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 26 / COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3206
SELECT + 27, MIN( ALL + + 98 ) * COUNT( * ) AS col0
----
27
98

skipif mysql # not compatible
query II rowsort label-3206
SELECT + 27, MIN ( ALL + + 98 ) * COUNT ( * ) AS col0
----
27
98

query II rowsort
SELECT ALL - 38 col0, - 28
----
-38
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT - 42 * 85 DIV + 22 AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-3208
SELECT - 42 * 85 / + 22 AS col0
----
-162

query I rowsort
SELECT - 81 * - + 75 + + 14 col0
----
6089

query I rowsort
SELECT 18 + + 17 + - - 74 * - 10 * 57 AS col0
----
-42145

onlyif mysql # aggregate syntax: 
query II rowsort label-3211
SELECT + + 33 AS col1, + COUNT( * ) * + 38 - + 73 AS col1
----
33
-35

skipif mysql # not compatible
query II rowsort label-3211
SELECT + + 33 AS col1, + COUNT ( * ) * + 38 - + 73 AS col1
----
33
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL - ( + 85 ) + 45 - - SUM( 21 ) * - - 81 - - 46 * + 57 AS col0
----
4283

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - ( + 85 ) + 45 - - SUM ( 21 ) * - - 81 - - 46 * + 57 AS col0
----
4283

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3214
SELECT DISTINCT 19 + 15 - + - MIN( ALL - CAST( NULL AS DECIMAL ) ) + + + 71 * - 90 + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT 19 + 15 - + - MIN ( ALL - CAST ( NULL AS REAL ) ) + + + 71 * - 90 + 88 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT DISTINCT - CAST( - - NULLIF ( + 0, - NULLIF ( - CASE + - 52 WHEN - 98 + 47 THEN - SUM( + 44 ) / - + MIN( DISTINCT - 87 ) * - 51 * + 55 ELSE NULL END, - + 15 ) ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT - CAST ( - - NULLIF ( + 0, - NULLIF ( - CASE + - 52 WHEN - 98 + 47 THEN - SUM ( + 44 ) / - + MIN ( DISTINCT - 87 ) * - 51 * + 55 ELSE NULL END, - + 15 ) ) AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3216
SELECT 23 DIV 46 * + 26 * + MAX( 40 )
----
0

skipif mysql # not compatible
query I rowsort label-3216
SELECT 23 / 46 * + 26 * + MAX ( 40 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT 13 DIV 89 * - COUNT( * ) * + - 24
----
0

skipif mysql # not compatible
query I rowsort label-3217
SELECT 13 / 89 * - COUNT ( * ) * + - 24
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT 49 * - 4 AS col1, COUNT( * ) * - - ( - NULLIF ( - 32, + 50 ) ) * - 67 * - COUNT( * )
----
-196
2144

skipif mysql # not compatible
query II rowsort label-3218
SELECT 49 * - 4 AS col1, COUNT ( * ) * - - ( - NULLIF ( - 32, + 50 ) ) * - 67 * - COUNT ( * )
----
-196
2144

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT DISTINCT + COUNT( * ) + - + COALESCE ( + 0, + 39 * - 44, 92 ) * - 45 col2, - 45 * + 8
----
1
-360

skipif mysql # not compatible
query II rowsort label-3219
SELECT DISTINCT + COUNT ( * ) + - + COALESCE ( + 0, + 39 * - 44, 92 ) * - 45 col2, - 45 * + 8
----
1
-360

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3220
SELECT 39 - - + 52 DIV - 76 + - + ( CAST( 7 AS SIGNED ) )
----
32

skipif mysql # not compatible
query I rowsort label-3220
SELECT 39 - - + 52 / - 76 + - + ( CAST ( 7 AS INTEGER ) )
----
32

query I rowsort
SELECT 48 * - + 3 AS col0
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT - COUNT( * ) + - 96 * - - COUNT( * ) * + CAST( + + COUNT( * ) AS SIGNED ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3222
SELECT - COUNT ( * ) + - 96 * - - COUNT ( * ) * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3223
SELECT 17 + - + 97, CAST( NULL AS DECIMAL ) * 11 + + CASE + 33 WHEN + CAST( NULL AS SIGNED ) + + + 20 THEN - 13 END + + 78 col1
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-3223
SELECT 17 + - + 97, CAST ( NULL AS REAL ) * 11 + + CASE + 33 WHEN + CAST ( NULL AS INTEGER ) + + + 20 THEN - 13 END + + 78 col1
----
-80
NULL

query I rowsort
SELECT - 97 - 48 col1
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3225
SELECT - COUNT( * ) + - 57 + + 62 * NULLIF ( 72, - + CAST( NULL AS SIGNED ) )
----
4406

skipif mysql # not compatible
query I rowsort label-3225
SELECT - COUNT ( * ) + - 57 + + 62 * NULLIF ( 72, - + CAST ( NULL AS INTEGER ) )
----
4406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT - COUNT( ALL - + CAST( - + 92 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3226
SELECT - COUNT ( ALL - + CAST ( - + 92 AS INTEGER ) )
----
-1

query I rowsort
SELECT - 54 + + + 72 * 85 AS col0
----
6066

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL - MAX( DISTINCT + - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - MAX ( DISTINCT + - 29 )
----
29

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

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

query I rowsort
SELECT 63 * + 67
----
4221

onlyif mysql # DIV for integer division: 
query II rowsort label-3231
SELECT COALESCE ( 71, - - 27 DIV - - 82, 26 ) * ( + 27 ) AS col1, + 25
----
1917
25

skipif mysql # not compatible
query II rowsort label-3231
SELECT COALESCE ( 71, - - 27 / - - 82, 26 ) * ( + 27 ) AS col1, + 25
----
1917
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3232
SELECT 86 * + 64 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT 86 * + 64 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL - SUM( - 49 ) * - - 41 + + 43 * + + 48 + - NULLIF ( + - CAST( - 75 AS SIGNED ), - 74 / - 79 )
----
3998

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL - SUM ( - 49 ) * - - 41 + + 43 * + + 48 + - NULLIF ( + - CAST ( - 75 AS INTEGER ), - 74 / - 79 )
----
3998

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3234
SELECT DISTINCT 25 * - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT 25 * - COUNT ( * ) * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3235
SELECT ALL - 33 col0, - CAST( NULL AS SIGNED ) col2
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-3235
SELECT ALL - 33 col0, - CAST ( NULL AS INTEGER ) col2
----
-33
NULL

query I rowsort
SELECT - 4 * NULLIF ( + 55, - - 66 + + + 68 ) * NULLIF ( + + 73, - ( NULLIF ( - + 55, - + AVG ( DISTINCT 0 ) ) ) * - - 63 ) - + + CASE + 24 WHEN 93 * + 59 THEN - 72 + - 64 END - 23 + + - 78 * - 34
----
NULL

query I rowsort
SELECT 14 * - + 21 AS col2
----
-294

query I rowsort
SELECT ALL 22 * + 13 * 93 * + 13 + + ( + 56 ) AS col1
----
345830

onlyif mysql # aggregate syntax: 
query II rowsort label-3239
SELECT + COUNT( * ) AS col0, + ( - CASE + - 31 WHEN + COALESCE ( - 39, + + 18 + - 71 ) THEN NULL ELSE 25 END ) * - 27 * + 78 AS col0
----
1
52650

skipif mysql # not compatible
query II rowsort label-3239
SELECT + COUNT ( * ) AS col0, + ( - CASE + - 31 WHEN + COALESCE ( - 39, + + 18 + - 71 ) THEN NULL ELSE 25 END ) * - 27 * + 78 AS col0
----
1
52650

query I rowsort
SELECT - 42 - 43
----
-85

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3243
SELECT - 66 * + 68 - 15 - + - COUNT( * ) AS col0, - 5
----
-4502
-5

skipif mysql # not compatible
query II rowsort label-3243
SELECT - 66 * + 68 - 15 - + - COUNT ( * ) AS col0, - 5
----
-4502
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT - 77 + + 28 + + SUM( DISTINCT 15 ) + + 51 * - - 42 - + 1
----
2107

skipif mysql # not compatible
query I rowsort label-3244
SELECT - 77 + + 28 + + SUM ( DISTINCT 15 ) + + 51 * - - 42 - + 1
----
2107

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT MIN( + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3245
SELECT MIN ( + 77 ) AS col1
----
77

query I rowsort
SELECT ALL - 49 + - 51
----
-100

query I rowsort
SELECT + 6 + - NULLIF ( + CASE + AVG ( DISTINCT 94 ) WHEN + 39 * + - 48 THEN NULL ELSE + 34 * + 54 END, AVG ( ALL - - 56 ) * 48 )
----
-1830

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT COUNT( * ) * - - 73 * + COUNT( ALL + 33 ) * + 16 + + + 97 + 31 - 5
----
1291

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT COUNT ( * ) * - - 73 * + COUNT ( ALL + 33 ) * + 16 + + + 97 + 31 - 5
----
1291

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT - 82 + + CASE - COUNT( * ) WHEN + MIN( DISTINCT - 46 ) THEN NULL ELSE 0 + + COUNT( * ) END
----
-81

skipif mysql # not compatible
query I rowsort label-3249
SELECT - 82 + + CASE - COUNT ( * ) WHEN + MIN ( DISTINCT - 46 ) THEN NULL ELSE 0 + + COUNT ( * ) END
----
-81

query I rowsort
SELECT - 41 * + 79 AS col2
----
-3239

onlyif mysql # aggregate syntax: 
query II rowsort label-3251
SELECT ALL + COUNT( * ) AS col0, 85 AS col0
----
1
85

skipif mysql # not compatible
query II rowsort label-3251
SELECT ALL + COUNT ( * ) AS col0, 85 AS col0
----
1
85

query I rowsort
SELECT ALL CASE 21 WHEN 64 + - 25 THEN - - 73 ELSE NULL END - - 81 col2
----
NULL

query I rowsort
SELECT - NULLIF ( - ( - ( - NULLIF ( + 72, - 98 ) ) ), + - AVG ( 29 ) )
----
72

query I rowsort
SELECT - 34 + + 80
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT - COALESCE ( 68, - + CAST( NULL AS SIGNED ) * 7 * 49 + + - 39 - 7 ) * 29
----
-1972

skipif mysql # not compatible
query I rowsort label-3255
SELECT - COALESCE ( 68, - + CAST ( NULL AS INTEGER ) * 7 * 49 + + - 39 - 7 ) * 29
----
-1972

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

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

query I rowsort
SELECT - + 45 + + 6
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL + + ( + 24 ) * - - 57 * NULLIF ( + MIN( + 45 ), - ( - 76 ) + COUNT( * ) ) AS col1
----
61560

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL + + ( + 24 ) * - - 57 * NULLIF ( + MIN ( + 45 ), - ( - 76 ) + COUNT ( * ) ) AS col1
----
61560

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT ALL + 79 DIV 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL + 79 / 43 AS col0
----
1

query II rowsort
SELECT ALL - - 22 * 53 / CASE + 1 WHEN + 83 THEN 51 END AS col2, - 16 AS col2
----
NULL
-16

query II rowsort
SELECT ALL ( - ( 7 ) ) AS col2, 92
----
-7
92

onlyif mysql # DIV for integer division: 
query II rowsort label-3263
SELECT - 40, - 69 DIV - - 72 AS col1
----
-40
0

skipif mysql # not compatible
query II rowsort label-3263
SELECT - 40, - 69 / - - 72 AS col1
----
-40
0

query I rowsort
SELECT - 27 - 58 col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3265
SELECT - + CAST( NULL AS SIGNED ) * + 50 + CAST( NULL AS SIGNED ) AS col0, + 86 * - 64 * 42 * 12
----
NULL
-2774016

skipif mysql # not compatible
query II rowsort label-3265
SELECT - + CAST ( NULL AS INTEGER ) * + 50 + CAST ( NULL AS INTEGER ) AS col0, + 86 * - 64 * 42 * 12
----
NULL
-2774016

query I rowsort
SELECT ALL - - 30 * 17
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT DISTINCT + + 80 + + MIN( - + 19 ) + - - COUNT( * ) * + + 37
----
98

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT + + 80 + + MIN ( - + 19 ) + - - COUNT ( * ) * + + 37
----
98

query I rowsort
SELECT ALL - 13 + + - 9 + 68 + + 59 * ( + - NULLIF ( + + 26, + 1 ) ) * - 80
----
122766

query II rowsort
SELECT ALL + - 47, 13 AS col2
----
-47
13

query I rowsort
SELECT ALL CASE 26 WHEN - 91 THEN + 83 END * 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - 37 * + 12 + 20 * - 66 + + 85 + + COUNT( * ) * 76 * 94
----
5465

skipif mysql # not compatible
query I rowsort label-3271
SELECT - 37 * + 12 + 20 * - 66 + + 85 + + COUNT ( * ) * 76 * 94
----
5465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT DISTINCT ( 66 ) / + - 63 - + + 45 + - ( 76 ) - - - CAST( NULL AS SIGNED ) + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT ( 66 ) / + - 63 - + + 45 + - ( 76 ) - - - CAST ( NULL AS INTEGER ) + 78
----
NULL

query I rowsort
SELECT ALL - 58 * + 94 * - 7 + - - ( + 42 ) AS col1
----
38206

onlyif mysql # aggregate syntax: 
query II rowsort label-3274
SELECT + NULLIF ( COUNT( * ), - - 24 * + + 98 ) AS col1, COALESCE ( 25, ( - 92 ) ) AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-3274
SELECT + NULLIF ( COUNT ( * ), - - 24 * + + 98 ) AS col1, COALESCE ( 25, ( - 92 ) ) AS col2
----
1
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT - CAST( NULL AS SIGNED ) * 61 * 74 / + 32 * - 9 * 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT - CAST ( NULL AS INTEGER ) * 61 * 74 / + 32 * - 9 * 98 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( + 37 ) * 93
----
3441

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT DISTINCT - 26 * - - COUNT( * ) + + MAX( 1 ) AS col2, 47 * - 9 col1
----
-25
-423

skipif mysql # not compatible
query II rowsort label-3278
SELECT DISTINCT - 26 * - - COUNT ( * ) + + MAX ( 1 ) AS col2, 47 * - 9 col1
----
-25
-423

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT DISTINCT + MAX( + 70 ) col0, - 72 * 77
----
70
-5544

skipif mysql # not compatible
query II rowsort label-3279
SELECT DISTINCT + MAX ( + 70 ) col0, - 72 * 77
----
70
-5544

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT + 6 DIV - - 64
----
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 6 / - - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT CASE + CASE - MAX( 94 ) WHEN + + 68 THEN + - 63 WHEN + + 49 THEN NULL END WHEN 41 THEN ( - 9 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT CASE + CASE - MAX ( 94 ) WHEN + + 68 THEN + - 63 WHEN + + 49 THEN NULL END WHEN 41 THEN ( - 9 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL COUNT( 44 ) * - - 90
----
90

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL COUNT ( 44 ) * - - 90
----
90

query II rowsort
SELECT + 82 * 30 AS col1, 81
----
2460
81

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

skipif mysql # not compatible
query I rowsort label-3284
SELECT + COUNT ( * ) / + ( + + 73 ) col2
----
0

query I rowsort
SELECT ALL + COALESCE ( 3, - 98 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT ALL + 99 * - CASE + 21 WHEN 56 + - ( - 74 ) + 58 THEN NULL ELSE - - AVG ( 91 ) * - 53 * SUM( DISTINCT + - 70 ) END * + CAST( NULL AS SIGNED ) - + 75 + + + 67 - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + 99 * - CASE + 21 WHEN 56 + - ( - 74 ) + 58 THEN NULL ELSE - - AVG ( 91 ) * - 53 * SUM ( DISTINCT + - 70 ) END * + CAST ( NULL AS INTEGER ) - + 75 + + + 67 - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT 81 * - 95 - + + ( - + ( COUNT( * ) ) )
----
-7694

skipif mysql # not compatible
query I rowsort label-3287
SELECT 81 * - 95 - + + ( - + ( COUNT ( * ) ) )
----
-7694

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT CASE + + 98 WHEN + ( + COUNT( * ) ) / + 82 - COUNT( * ) THEN NULL ELSE + COALESCE ( + 65, 31 * 32 + - - 44 + + - 20 * - 86 ) + + 73 * + 0 END AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3288
SELECT CASE + + 98 WHEN + ( + COUNT ( * ) ) / + 82 - COUNT ( * ) THEN NULL ELSE + COALESCE ( + 65, 31 * 32 + - - 44 + + - 20 * - 86 ) + + 73 * + 0 END AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3289
SELECT - 67 * - CAST( - - 12 AS SIGNED ) - - + 97, - CAST( - COALESCE ( MAX( ALL + 74 ), - 34, + 71 + - 95 + 44 ) AS SIGNED ) AS col1, 7 AS col1
----
901
74
7

skipif mysql # not compatible
query III rowsort label-3289
SELECT - 67 * - CAST ( - - 12 AS INTEGER ) - - + 97, - CAST ( - COALESCE ( MAX ( ALL + 74 ), - 34, + 71 + - 95 + 44 ) AS INTEGER ) AS col1, 7 AS col1
----
901
74
7

query I rowsort
SELECT + 22 - + + 67 - 54 * + 19
----
-1071

query II rowsort
SELECT - ( - 89 ) AS col2, 30 * + - 22 AS col1
----
89
-660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3292
SELECT - CASE + 72 WHEN - COUNT( * ) THEN 32 WHEN 47 THEN NULL WHEN - 46 * - - 31 + + 31 * + CAST( + + 95 AS SIGNED ) THEN + ( - 5 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT - CASE + 72 WHEN - COUNT ( * ) THEN 32 WHEN 47 THEN NULL WHEN - 46 * - - 31 + + 31 * + CAST ( + + 95 AS INTEGER ) THEN + ( - 5 ) END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + + MAX( ALL - 46 ) * + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-3294
SELECT + + MAX ( ALL - 46 ) * + COUNT ( * )
----
-46

query I rowsort
SELECT ALL 6 * - 0 * - 96 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3296
SELECT DISTINCT + COALESCE ( + + 42, + - COUNT( + 60 ), 24 * 82 + - - 17 ), ( + - CAST( - 4 AS SIGNED ) ) AS col1
----
42
4

skipif mysql # not compatible
query II rowsort label-3296
SELECT DISTINCT + COALESCE ( + + 42, + - COUNT ( + 60 ), 24 * 82 + - - 17 ), ( + - CAST ( - 4 AS INTEGER ) ) AS col1
----
42
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT - - COUNT( DISTINCT + 44 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3297
SELECT - - COUNT ( DISTINCT + 44 ) col2
----
1

query I rowsort
SELECT + - 78 + + 0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-3299
SELECT ( - 72 ), COUNT( * ) AS col0
----
-72
1

skipif mysql # not compatible
query II rowsort label-3299
SELECT ( - 72 ), COUNT ( * ) AS col0
----
-72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL - - 28 + + + COUNT( * ) + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL - - 28 + + + COUNT ( * ) + + COUNT ( * )
----
30

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3303
SELECT + - COUNT ( * ) + + 13 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT ALL + ( - 6 ) DIV - + 1 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL + ( - 6 ) / - + 1 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL NULLIF ( 89, - 54 * + + 50 ) + - 18 + + 5 + + + COUNT( * ) - + 74
----
3

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL NULLIF ( 89, - 54 * + + 50 ) + - 18 + + 5 + + + COUNT ( * ) - + 74
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT - SUM( + 92 ) * + 58 AS col1
----
-5336

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT - SUM ( + 92 ) * + 58 AS col1
----
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT + 15 + - 29 * - 37 + - - COUNT( ALL + - 3 ) + 23 AS col0
----
1112

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT + 15 + - 29 * - 37 + - - COUNT ( ALL + - 3 ) + 23 AS col0
----
1112

query I rowsort
SELECT ALL - - 15 * - + 11
----
-165

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

skipif mysql # not compatible
query I rowsort label-3309
SELECT - + COUNT ( * ) / COUNT ( * ) * - 96 AS col1
----
96

query I rowsort
SELECT - 88 + + 72 * - - ( 40 )
----
2792

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - 7 + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-3311
SELECT - 7 + - COUNT ( * )
----
-8

query II rowsort
SELECT - 19 AS col1, 0
----
-19
0

query I rowsort
SELECT 7 * - 16
----
-112

query I rowsort
SELECT DISTINCT + 49 - - - 82 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT DISTINCT + 76 * - - 30 DIV COUNT( * )
----
2280

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT + 76 * - - 30 / COUNT ( * )
----
2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT ALL CAST( + + 78 AS SIGNED ) - - CASE + + 15 WHEN - 5 * + 93 + ( 82 ) + - 76 + - - 98 * CAST( NULL AS SIGNED ) * 73 * - CASE + - 35 WHEN - + ( - 76 ) * 91 + - + 61 THEN NULL ELSE 97 END THEN + 94 END + - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL CAST ( + + 78 AS INTEGER ) - - CASE + + 15 WHEN - 5 * + 93 + ( 82 ) + - 76 + - - 98 * CAST ( NULL AS INTEGER ) * 73 * - CASE + - 35 WHEN - + ( - 76 ) * 91 + - + 61 THEN NULL ELSE 97 END THEN + 94 END + - - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3317
SELECT COUNT( * ) * + 50 * - 25 col0, COUNT( * ) + + - COUNT( 15 ) + + 36 - + NULLIF ( - + 20, + 99 * + + 38 ) + - 89 + - 46 / + 91 / CAST( NULL AS SIGNED ) * - - CAST( - - 46 AS SIGNED ) * - COUNT( - CAST( 23 AS SIGNED ) ) * + 5 * - - 26 * - SUM( ALL - 81 )
----
-1250
NULL

skipif mysql # not compatible
query II rowsort label-3317
SELECT COUNT ( * ) * + 50 * - 25 col0, COUNT ( * ) + + - COUNT ( 15 ) + + 36 - + NULLIF ( - + 20, + 99 * + + 38 ) + - 89 + - 46 / + 91 / CAST ( NULL AS INTEGER ) * - - CAST ( - - 46 AS INTEGER ) * - COUNT ( - CAST ( 23 AS INTEGER ) ) * + 5 * - - 26 * - SUM ( ALL - 81 )
----
-1250
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3318
SELECT DISTINCT + ( + COUNT( * ) ) - + 89 + + + 24 - COUNT( ( - CAST( NULL AS SIGNED ) ) ) * + MIN( DISTINCT + 38 ) * + 76, 84 * - 83 * + 79 col0
----
-64
-550788

skipif mysql # not compatible
query II rowsort label-3318
SELECT DISTINCT + ( + COUNT ( * ) ) - + 89 + + + 24 - COUNT ( ( - CAST ( NULL AS INTEGER ) ) ) * + MIN ( DISTINCT + 38 ) * + 76, 84 * - 83 * + 79 col0
----
-64
-550788

onlyif mysql # aggregate syntax: 
query II rowsort label-3319
SELECT MAX( ALL - + 75 ) - + 88, 76 col2
----
-163
76

skipif mysql # not compatible
query II rowsort label-3319
SELECT MAX ( ALL - + 75 ) - + 88, 76 col2
----
-163
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3320
SELECT 23 * + 71 + 46 + + + SUM( - 35 ) DIV COUNT( * ) * - 61 + + - 23, + 73 * - 36 * + 6 - - + 46 AS col0
----
3791
-15722

skipif mysql # not compatible
query II rowsort label-3320
SELECT 23 * + 71 + 46 + + + SUM ( - 35 ) / COUNT ( * ) * - 61 + + - 23, + 73 * - 36 * + 6 - - + 46 AS col0
----
3791
-15722

query I rowsort
SELECT ALL 11 * - 19
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL - CASE + + COUNT( - + 70 ) WHEN + 94 + + 70 THEN 57 * + 92 ELSE - + 63 END AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL - CASE + + COUNT ( - + 70 ) WHEN + 94 + + 70 THEN 57 * + 92 ELSE - + 63 END AS col0
----
63

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

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

query I rowsort
SELECT DISTINCT + 20 * 59 AS col2
----
1180

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

skipif mysql # not compatible
query I rowsort label-3325
SELECT 30 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL - COUNT( * ) + + 2 * + 73 col1
----
145

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - COUNT ( * ) + + 2 * + 73 col1
----
145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT DISTINCT - CASE - COUNT( * ) WHEN 61 + + - COUNT( * ) THEN NULL WHEN + 60 + + 76 THEN - 62 / - + 59 / + + 19 + - 29 END * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT - CASE - COUNT ( * ) WHEN 61 + + - COUNT ( * ) THEN NULL WHEN + 60 + + 76 THEN - 62 / - + 59 / + + 19 + - 29 END * - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT ALL 6 + 11 DIV 4
----
8

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL 6 + 11 / 4
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT + 73 * - 9 * - COUNT( * ) AS col1
----
657

skipif mysql # not compatible
query I rowsort label-3330
SELECT + 73 * - 9 * - COUNT ( * ) AS col1
----
657

onlyif mysql # aggregate syntax: 
query II rowsort label-3331
SELECT ( + ( MIN( - - 51 ) ) ) * - 10, - 21 - + 49 AS col2
----
-510
-70

skipif mysql # not compatible
query II rowsort label-3331
SELECT ( + ( MIN ( - - 51 ) ) ) * - 10, - 21 - + 49 AS col2
----
-510
-70

query I rowsort
SELECT ALL 51 * + - 47
----
-2397

query I rowsort
SELECT + 25 - - + 72 - + 98 col0
----
-1

query II rowsort
SELECT ALL 16 AS col2, + 20
----
16
20

query I rowsort
SELECT 42 * 68 * - 27 AS col2
----
-77112

query I rowsort
SELECT 49 + + ( + + COALESCE ( 45, - 70 ) )
----
94

query III rowsort
SELECT ALL 73 col0, 26 col2, - 41 * + - 87 + + 7 col2
----
73
26
3574

query II rowsort
SELECT 96 AS col0, 20 AS col2
----
96
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3339
SELECT ALL 75 col1, + CASE + - 5 WHEN + - 2 THEN + 19 / - 61 ELSE NULL END + - 1 AS col1, + MIN( DISTINCT - 43 ) + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
75
NULL
NULL

skipif mysql # not compatible
query III rowsort label-3339
SELECT ALL 75 col1, + CASE + - 5 WHEN + - 2 THEN + 19 / - 61 ELSE NULL END + - 1 AS col1, + MIN ( DISTINCT - 43 ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
75
NULL
NULL

query II rowsort
SELECT ALL 27 AS col0, + NULLIF ( + + 27, - 74 + 46 ) AS col2
----
27
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3341
SELECT 32 DIV + - 10, - COUNT( * ) + - - 10 AS col0
----
-3
9

skipif mysql # not compatible
query II rowsort label-3341
SELECT 32 / + - 10, - COUNT ( * ) + - - 10 AS col0
----
-3
9

query I rowsort
SELECT 39 + + + 85 + - 35 * - 6
----
334

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT MIN( + ( + + 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-3343
SELECT MIN ( + ( + + 63 ) )
----
63

query II rowsort
SELECT + 41 AS col2, 3 AS col0
----
41
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT COUNT( * ) * - - 99 * CAST( NULL AS SIGNED ) * - 16 + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT COUNT ( * ) * - - 99 * CAST ( NULL AS INTEGER ) * - 16 + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3347
SELECT COUNT( * ), CAST( NULL AS DECIMAL ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3347
SELECT COUNT ( * ), CAST ( NULL AS REAL ) AS col0
----
1
NULL

query II rowsort
SELECT + 51, + 94 col1
----
51
94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT DISTINCT 48 DIV + 9 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT 48 / + 9 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT 38 * + 78 + - CAST( - 27 AS SIGNED ) + + 58 + - + 31 + + 1
----
3019

skipif mysql # not compatible
query I rowsort label-3351
SELECT 38 * + 78 + - CAST ( - 27 AS INTEGER ) + + 58 + - + 31 + + 1
----
3019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT + 15 * - - CASE 64 WHEN ( + 84 ) * COUNT( * ) + - CAST( - 50 AS SIGNED ) THEN - + 12 + + - 9 + - 48 + 46 + - COALESCE ( + + 14, COUNT( * ) / - - 8 + - COUNT( - 79 ) + - 60 + 35 / + + 40 + + - 29 ) WHEN - COUNT( * ) * 21 + - 25 * 33 THEN NULL END - 12 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT + 15 * - - CASE 64 WHEN ( + 84 ) * COUNT ( * ) + - CAST ( - 50 AS INTEGER ) THEN - + 12 + + - 9 + - 48 + 46 + - COALESCE ( + + 14, COUNT ( * ) / - - 8 + - COUNT ( - 79 ) + - 60 + 35 / + + 40 + + - 29 ) WHEN - COUNT ( * ) * 21 + - 25 * 33 THEN NULL END - 12 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + ( - + 55 ), 10 * 59 AS col0
----
-55
590

query I rowsort
SELECT ALL + 42 + 57 + - 10 - 43 * - 2
----
175

query I rowsort
SELECT - 80 - - 76 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3356
SELECT 1 col2, CASE 28 WHEN CASE 88 WHEN - 76 / - COUNT( * ) * 36 THEN NULL WHEN - 14 THEN + 10 * CAST( - 3 AS SIGNED ) * - 13 + + 44 + 14 * - COUNT( * ) / - 73 - COALESCE ( + 76, - 73, + 80 * + 46 ) END THEN 14 WHEN 92 THEN - ( - 14 ) * + 12 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3356
SELECT 1 col2, CASE 28 WHEN CASE 88 WHEN - 76 / - COUNT ( * ) * 36 THEN NULL WHEN - 14 THEN + 10 * CAST ( - 3 AS INTEGER ) * - 13 + + 44 + 14 * - COUNT ( * ) / - 73 - COALESCE ( + 76, - 73, + 80 * + 46 ) END THEN 14 WHEN 92 THEN - ( - 14 ) * + 12 END AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT - 63 * - 43 - 96 + - 77 DIV ( + + 72 ) DIV 37 AS col0
----
2613

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 63 * - 43 - 96 + - 77 / ( + + 72 ) / 37 AS col0
----
2613

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

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

query I rowsort
SELECT ALL + 26 + + - 29
----
-3

query I rowsort
SELECT + 57 + + 44 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT - MAX( + 98 ) * - - 26 * - 14
----
35672

skipif mysql # not compatible
query I rowsort label-3361
SELECT - MAX ( + 98 ) * - - 26 * - 14
----
35672

query II rowsort
SELECT - 65, - 11 + + 20 AS col0
----
-65
9

query I rowsort
SELECT ALL ( - 20 ) + + + 44 AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3364
SELECT - COUNT( * ) + + + 8 * + - 0 - - - COUNT( * ) AS col2, COUNT( * )
----
-2
1

skipif mysql # not compatible
query II rowsort label-3364
SELECT - COUNT ( * ) + + + 8 * + - 0 - - - COUNT ( * ) AS col2, COUNT ( * )
----
-2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT - SUM( DISTINCT - 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3365
SELECT - SUM ( DISTINCT - 2 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3366
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) * - + SUM( + 55 ) AS col2, COUNT( - - 64 ) + - NULLIF ( + + 23, 26 + - 65 + - ( - 44 ) ) - + 31 AS col2
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-3366
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - + SUM ( + 55 ) AS col2, COUNT ( - - 64 ) + - NULLIF ( + + 23, 26 + - 65 + - ( - 44 ) ) - + 31 AS col2
----
NULL
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + 93 - + COUNT( * ) * + - 87 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-3367
SELECT + 93 - + COUNT ( * ) * + - 87 AS col1
----
180

query I rowsort
SELECT ALL CASE - 55 WHEN 17 THEN NULL WHEN + - 39 THEN - 81 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT + 89 * + COUNT( * ) * - 76
----
-6764

skipif mysql # not compatible
query I rowsort label-3369
SELECT + 89 * + COUNT ( * ) * - 76
----
-6764

query I rowsort
SELECT DISTINCT 13 - - + 28
----
41

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

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

query I rowsort
SELECT ALL 48 * - 37 * + 11
----
-19536

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT + COUNT( * ) + + 88 + + 28
----
117

skipif mysql # not compatible
query I rowsort label-3373
SELECT + COUNT ( * ) + + 88 + + 28
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT - 12 DIV + 3 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3374
SELECT - 12 / + 3 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT 59 DIV + 87 * - 71 + 11 - 61
----
-50

skipif mysql # not compatible
query I rowsort label-3375
SELECT 59 / + 87 * - 71 + 11 - 61
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT ( - COUNT( * ) ) AS col0, + 83 - 82 * - 95
----
-1
7873

skipif mysql # not compatible
query II rowsort label-3376
SELECT ( - COUNT ( * ) ) AS col0, + 83 - 82 * - 95
----
-1
7873

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT ALL 34 DIV + - 45 * + 71 * - - 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL 34 / + - 45 * + 71 * - - 7 AS col1
----
0

query I rowsort
SELECT DISTINCT 60 * 3 + NULLIF ( - + 65, 29 )
----
115

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

query I rowsort
SELECT - 25 * - 95 AS col2
----
2375

query I rowsort
SELECT - + 60 - + ( + 40 ) * - + 47
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT + + 2 * 78 - + 54 + + COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-3382
SELECT + + 2 * 78 - + 54 + + COUNT ( * )
----
103

query I rowsort
SELECT ALL 83 * - + 50 * - 17 + - 1 * 55
----
70495

query I rowsort
SELECT ALL + 73 * 29 + + - 61 + 3 AS col0
----
2059

query II rowsort
SELECT 49 * 16 + 23, 15 * - + COALESCE ( + - 37, 41 ) AS col0
----
807
555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3386
SELECT ALL - 38 DIV + - 63 * 13 + + - 0 + 48 DIV + - 24 + - COUNT( * ) DIV + + 63
----
-2

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL - 38 / + - 63 * 13 + + - 0 + 48 / + - 24 + - COUNT ( * ) / + + 63
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT ALL - 94 DIV 47 + + + 36
----
34

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - 94 / 47 + + + 36
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT - 94 DIV - - 26 - + 39
----
-42

skipif mysql # not compatible
query I rowsort label-3388
SELECT - 94 / - - 26 - + 39
----
-42

query I rowsort
SELECT - - CASE + 32 WHEN 9 * + - 10 THEN NULL WHEN + 36 THEN - 78 ELSE + 19 END AS col2
----
19

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT ALL NULLIF ( - + 92, + 64 ), - CASE 10 WHEN - 23 THEN + COUNT( * ) WHEN - COALESCE ( - MIN( - 66 ), - 40, - 68 ) + - + 99 + 79 THEN NULL ELSE + 23 * + 21 - - ( - 52 ) * 54 + + ( - - COUNT( * ) ) - - 82 END * - COUNT( * ) * - ( + 79 ) - - - 34 AS col0
----
-92
177084

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL NULLIF ( - + 92, + 64 ), - CASE 10 WHEN - 23 THEN + COUNT ( * ) WHEN - COALESCE ( - MIN ( - 66 ), - 40, - 68 ) + - + 99 + 79 THEN NULL ELSE + 23 * + 21 - - ( - 52 ) * 54 + + ( - - COUNT ( * ) ) - - 82 END * - COUNT ( * ) * - ( + 79 ) - - - 34 AS col0
----
-92
177084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3392
SELECT ALL + - COUNT( * ) DIV 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + - COUNT ( * ) / 42 AS col1
----
0

query I rowsort
SELECT - + 23 * - 10 + 60 + CASE WHEN ( - 85 ) BETWEEN - 73 AND NULL THEN - 27 * - - 93 END * + COALESCE ( + 9, + - 47, - + 54 )
----
NULL

query I rowsort
SELECT DISTINCT + 17 * + 56
----
952

query I rowsort
SELECT ALL ( 51 ) AS col1
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT + MAX( + 72 ) + - 75 * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-3397
SELECT + MAX ( + 72 ) + - 75 * + COUNT ( * )
----
-3

query I rowsort
SELECT - 30 * - 10 col2
----
300

query II rowsort
SELECT ALL 80 AS col0, 30 AS col2
----
80
30

query I rowsort
SELECT - 6 - - 46 AS col2
----
40

query I rowsort
SELECT - 82 - 42 * 12 + - 80
----
-666

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

query I rowsort
SELECT ALL - 27 + + 86
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3404
SELECT 59 AS col0, CASE 99 WHEN 82 * 98 / + 90 + SUM( ALL + 10 ) * - AVG ( + 38 ) * COUNT( * ) * 11 / - + 43 + - 88 + - + 41 THEN + + ( + 82 ) + - 1 + 45 + 24 - - 86 * - - 11 + - - 95 END col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-3404
SELECT 59 AS col0, CASE 99 WHEN 82 * 98 / + 90 + SUM ( ALL + 10 ) * - AVG ( + 38 ) * COUNT ( * ) * 11 / - + 43 + - 88 + - + 41 THEN + + ( + 82 ) + - 1 + 45 + 24 - - 86 * - - 11 + - - 95 END col1
----
59
NULL

query I rowsort
SELECT ALL 88 + - + 60 + + 29 * + 61 * - 74 AS col1
----
-130878

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL 46 + 88 + + - 23 * - - 28 * 87 * - MIN( ALL - 48 ) AS col1
----
-2689210

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL 46 + 88 + + - 23 * - - 28 * 87 * - MIN ( ALL - 48 ) AS col1
----
-2689210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3407
SELECT 73 / 58 / COUNT( * ) * CAST( NULL AS SIGNED ) - + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT 73 / 58 / COUNT ( * ) * CAST ( NULL AS INTEGER ) - + - 7 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3408
SELECT DISTINCT CAST( - - 39 AS DECIMAL ) / + 78 + CASE 87 WHEN + 18 + + 92 * - SUM( ALL - 7 ) * + 31 / 50 THEN + COUNT( * ) + 4 END - + CAST( - COUNT( * ) AS SIGNED ) - COUNT( * ) + + 78 + + 15 + - 84 * + 88 / + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT CAST ( - - 39 AS REAL ) / + 78 + CASE 87 WHEN + 18 + + 92 * - SUM ( ALL - 7 ) * + 31 / 50 THEN + COUNT ( * ) + 4 END - + CAST ( - COUNT ( * ) AS INTEGER ) - COUNT ( * ) + + 78 + + 15 + - 84 * + 88 / + + 52
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3410
SELECT + COUNT ( * ) * + 13 * 60 AS col1
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT SUM( 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3411
SELECT SUM ( 30 ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT - CASE + 3 WHEN + 50 / + CAST( NULL AS SIGNED ) * + 11 THEN + COUNT( * ) * 45 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT - CASE + 3 WHEN + 50 / + CAST ( NULL AS INTEGER ) * + 11 THEN + COUNT ( * ) * 45 END AS col1
----
NULL

query I rowsort
SELECT - - 14 + 29 + - ( + 74 ) * - 5
----
413

query II rowsort
SELECT ALL + 26, 26 col1
----
26
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT ALL 65 DIV - - 7 + - + 74 + - NULLIF ( - + 81, 4 * + - 88 * - MIN( + - 52 ) ) DIV - + 51 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL 65 / - - 7 + - + 74 + - NULLIF ( - + 81, 4 * + - 88 * - MIN ( + - 52 ) ) / - + 51 AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3416
SELECT DISTINCT COUNT( * ) DIV + 62 + 48 + - 75 + - 76 * - - COUNT( * ) + 52 + 7
----
-44

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT COUNT ( * ) / + 62 + 48 + - 75 + - 76 * - - COUNT ( * ) + 52 + 7
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3417
SELECT + CAST( NULL AS DECIMAL ) / - - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT + CAST ( NULL AS REAL ) / - - 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT + + MIN( + 12 ) * ( + + 2 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + + MIN ( + 12 ) * ( + + 2 ) AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT DISTINCT - ( - + 73 ) DIV + - 8 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT - ( - + 73 ) / + - 8 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT COUNT( * ) + - 67 * - + 25
----
1676

skipif mysql # not compatible
query I rowsort label-3420
SELECT COUNT ( * ) + - 67 * - + 25
----
1676

query II rowsort
SELECT 92 AS col1, 36 - 34
----
92
2

query I rowsort
SELECT DISTINCT - 5 - + 66
----
-71

query I rowsort
SELECT + 19 * - - 85
----
1615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3424
SELECT ALL CAST( 74 AS SIGNED ) * 9 + - 87 AS col0
----
579

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL CAST ( 74 AS INTEGER ) * 9 + - 87 AS col0
----
579

query I rowsort
SELECT 42 - 50 AS col1
----
-8

query I rowsort
SELECT 52 + 53 AS col0
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3427
SELECT 58 DIV - COUNT( * ) col0, COALESCE ( + COUNT( ALL ( - + ( 74 ) ) ), COUNT( * ), 69 ) AS col2
----
-58
1

skipif mysql # not compatible
query II rowsort label-3427
SELECT 58 / - COUNT ( * ) col0, COALESCE ( + COUNT ( ALL ( - + ( 74 ) ) ), COUNT ( * ), 69 ) AS col2
----
-58
1

query I rowsort
SELECT 32 + + + 49
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT 41 + + 6 * - 3 + - 90 - 48 DIV 36 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3429
SELECT 41 + + 6 * - 3 + - 90 - 48 / 36 AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3430
SELECT COUNT( ( - 21 ) ) - + 42 - - CAST( - CAST( + + COALESCE ( - - 74, - 0, - 28 ) AS DECIMAL ) AS SIGNED )
----
-115

skipif mysql # not compatible
query I rowsort label-3430
SELECT COUNT ( ( - 21 ) ) - + 42 - - CAST ( - CAST ( + + COALESCE ( - - 74, - 0, - 28 ) AS REAL ) AS INTEGER )
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT 48 DIV 17
----
2

skipif mysql # not compatible
query I rowsort label-3431
SELECT 48 / 17
----
2

query I rowsort
SELECT ALL - COALESCE ( 62, + 82 + - + 95 + - - 12 ) + - + 23
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT DISTINCT + 87 DIV + + 5
----
17

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT + 87 / + + 5
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL COUNT( * ) + 76 - - 47
----
124

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL COUNT ( * ) + 76 - - 47
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT MIN( 37 ) + - 86 + + 26, MAX( ALL - 27 ) * - 15 col1
----
-23
405

skipif mysql # not compatible
query II rowsort label-3435
SELECT MIN ( 37 ) + - 86 + + 26, MAX ( ALL - 27 ) * - 15 col1
----
-23
405

query I rowsort
SELECT ALL + 69 * 73
----
5037

query I rowsort
SELECT DISTINCT - 14 + - + CASE + 47 WHEN - - 47 THEN - 15 ELSE NULL END
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT 76 + 61 - + 4 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT 76 + 61 - + 4 + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL + 96 + + + COUNT ( * ) AS col0
----
97

query I rowsort
SELECT 57 * 73
----
4161

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + 8 / + CASE AVG ( 2 ) WHEN 32 THEN NULL WHEN COUNT( * ) THEN 67 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT + 8 / + CASE AVG ( 2 ) WHEN 32 THEN NULL WHEN COUNT ( * ) THEN 67 ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3442
SELECT NULLIF ( 91, CASE - COUNT( - 92 ) WHEN - + NULLIF ( 61, - - ( + - COUNT( ALL - - 87 ) ) ) + ( - COUNT( * ) ) + - + ( 51 ) + + + CAST( - - CASE - - 74 WHEN - 91 * - 78 THEN NULL WHEN + - COALESCE ( NULLIF ( 93, + 57 * + - 97 * - 54 + + + 82 ), + + 5 + ( + 61 ) - - COUNT( * ), - COALESCE ( + 48, - 25 * - 8 ) ) THEN 92 WHEN + 35 THEN NULL END AS SIGNED ) + 5 * 84 THEN - COUNT( * ) WHEN + 50 THEN COUNT( * ) ELSE NULL END ) * 92 AS col2
----
8372

skipif mysql # not compatible
query I rowsort label-3442
SELECT NULLIF ( 91, CASE - COUNT ( - 92 ) WHEN - + NULLIF ( 61, - - ( + - COUNT ( ALL - - 87 ) ) ) + ( - COUNT ( * ) ) + - + ( 51 ) + + + CAST ( - - CASE - - 74 WHEN - 91 * - 78 THEN NULL WHEN + - COALESCE ( NULLIF ( 93, + 57 * + - 97 * - 54 + + + 82 ), + + 5 + ( + 61 ) - - COUNT ( * ), - COALESCE ( + 48, - 25 * - 8 ) ) THEN 92 WHEN + 35 THEN NULL END AS INTEGER ) + 5 * 84 THEN - COUNT ( * ) WHEN + 50 THEN COUNT ( * ) ELSE NULL END ) * 92 AS col2
----
8372

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

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

skipif mysql # not compatible
query I rowsort label-3444
SELECT - SUM ( - 26 ) + - + 40 * + COUNT ( * ) AS col2
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3445
SELECT + ( + - 53 ) * + 8 / - 99 * + 19 - - ( + CAST( NULL AS DECIMAL ) ) + + 65 * + 21 AS col2, 14 * - + 4
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-3445
SELECT + ( + - 53 ) * + 8 / - 99 * + 19 - - ( + CAST ( NULL AS REAL ) ) + + 65 * + 21 AS col2, 14 * - + 4
----
NULL
-56

query I rowsort
SELECT DISTINCT - 72 * - 93 AS col0
----
6696

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - COUNT( * ) * - 94 + - 84 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3447
SELECT - COUNT ( * ) * - 94 + - 84 AS col2
----
10

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

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

query II rowsort
SELECT + 49 + - COALESCE ( - 6, 62 ) AS col1, - 36
----
55
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3450
SELECT - NULLIF ( + 59, - 31 ) - + MAX( - 47 ) + 38 + 40 + - COUNT( * ) DIV - 5
----
66

skipif mysql # not compatible
query I rowsort label-3450
SELECT - NULLIF ( + 59, - 31 ) - + MAX ( - 47 ) + 38 + 40 + - COUNT ( * ) / - 5
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3451
SELECT - COUNT( * ) * - COUNT( * ) * - + 39 + - + 54 AS col0, 87 * - 10 AS col0
----
-93
-870

skipif mysql # not compatible
query II rowsort label-3451
SELECT - COUNT ( * ) * - COUNT ( * ) * - + 39 + - + 54 AS col0, 87 * - 10 AS col0
----
-93
-870

query I rowsort
SELECT 79 * 66 AS col1
----
5214

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3453
SELECT DISTINCT CAST( - 51 AS SIGNED ) DIV - CAST( + 82 AS SIGNED ) AS col1, - ( 93 )
----
0
-93

skipif mysql # not compatible
query II rowsort label-3453
SELECT DISTINCT CAST ( - 51 AS INTEGER ) / - CAST ( + 82 AS INTEGER ) AS col1, - ( 93 )
----
0
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3454
SELECT 58 DIV + COUNT( * ), + 31 col0
----
58
31

skipif mysql # not compatible
query II rowsort label-3454
SELECT 58 / + COUNT ( * ), + 31 col0
----
58
31

query I rowsort
SELECT 52 + - - 98 AS col0
----
150

query I rowsort
SELECT 61 * - + 36 AS col0
----
-2196

query I rowsort
SELECT ALL 18 * + 6 AS col0
----
108

query I rowsort
SELECT ALL 77 + 8 * 11
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-3459
SELECT 77 + 54 - - ( 89 ) * 66 * + + MAX( ALL - + 0 ) * - COUNT( * ) * 76 * + 48 + - 44 - + + 3 * + 10 * - MAX( ALL - + 59 ) col2, 68 AS col1
----
-1683
68

skipif mysql # not compatible
query II rowsort label-3459
SELECT 77 + 54 - - ( 89 ) * 66 * + + MAX ( ALL - + 0 ) * - COUNT ( * ) * 76 * + 48 + - 44 - + + 3 * + 10 * - MAX ( ALL - + 59 ) col2, 68 AS col1
----
-1683
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3460
SELECT CAST( + 89 AS SIGNED ) * - + CAST( - 20 AS SIGNED ) * ( - + 9 ) - + 4 + + 68 - - COALESCE ( - COALESCE ( + - 3, + + 52 ), - 93 + + 55 * + MAX( ALL - CAST( NULL AS SIGNED ) ) DIV + + 27 + + MAX( - 98 ) ) * - + 68 * 55 * 34
----
-397436

skipif mysql # not compatible
query I rowsort label-3460
SELECT CAST ( + 89 AS INTEGER ) * - + CAST ( - 20 AS INTEGER ) * ( - + 9 ) - + 4 + + 68 - - COALESCE ( - COALESCE ( + - 3, + + 52 ), - 93 + + 55 * + MAX ( ALL - CAST ( NULL AS INTEGER ) ) / + + 27 + + MAX ( - 98 ) ) * - + 68 * 55 * 34
----
-397436

query I rowsort
SELECT ALL + 73 + - 66
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT MAX( - - ( - 13 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT MAX ( - - ( - 13 ) )
----
-13

query I rowsort
SELECT DISTINCT 76 + 84
----
160

query II rowsort
SELECT 84 AS col1, + 30 + + 48
----
84
78

query I rowsort
SELECT 66 - + 80 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT 2 * + - 70 DIV - ( 32 )
----
4

skipif mysql # not compatible
query I rowsort label-3467
SELECT 2 * + - 70 / - ( 32 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT ALL - 38 DIV 71 * - ( - 33 )
----
0

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - 38 / 71 * - ( - 33 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT DISTINCT MIN( DISTINCT NULLIF ( - - 71, - + 74 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT MIN ( DISTINCT NULLIF ( - - 71, - + 74 ) ) AS col1
----
71

query I rowsort
SELECT 76 - 34 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT DISTINCT MIN( DISTINCT - 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT MIN ( DISTINCT - 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL - COUNT( * ) - 20 * - 44 + 18 + 83
----
980

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - COUNT ( * ) - 20 * - 44 + 18 + 83
----
980

query I rowsort
SELECT - 58 * ( 25 )
----
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL - 23 * + + COUNT( * ) * - - 92
----
-2116

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - 23 * + + COUNT ( * ) * - - 92
----
-2116

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

query I rowsort
SELECT DISTINCT + + 85 * + 87 AS col0
----
7395

query I rowsort
SELECT ALL + + 95 * 1 - - - ( + 77 ) AS col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3478
SELECT - - ( + 22 ) DIV + + 25 + - 13 + - 90 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-3478
SELECT - - ( + 22 ) / + + 25 + - 13 + - 90 AS col2
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-3479
SELECT + 21 DIV + 50 * 17
----
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT + 21 / + 50 * 17
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3480
SELECT DISTINCT + ( - COALESCE ( 30, 33 * - - COUNT( * ) DIV - - 61, - 40 DIV + 89 * + 15, + - 92 ) ), - 97 AS col2
----
-30
-97

skipif mysql # not compatible
query II rowsort label-3480
SELECT DISTINCT + ( - COALESCE ( 30, 33 * - - COUNT ( * ) / - - 61, - 40 / + 89 * + 15, + - 92 ) ), - 97 AS col2
----
-30
-97

query I rowsort
SELECT DISTINCT + + 39 col0
----
39

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

query II rowsort
SELECT DISTINCT + 7 col0, - 33 AS col1
----
7
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL - MAX( ALL - - 30 ) * 84 * + 86 + 43 + 75 * 28 + - 64 AS col2
----
-214641

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - MAX ( ALL - - 30 ) * 84 * + 86 + 43 + 75 * 28 + - 64 AS col2
----
-214641

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT - + 95 * - NULLIF ( - ( + - 67 ), - COUNT( * ) ) - - 67 AS col1
----
6432

skipif mysql # not compatible
query I rowsort label-3486
SELECT - + 95 * - NULLIF ( - ( + - 67 ), - COUNT ( * ) ) - - 67 AS col1
----
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT CASE 82 WHEN + - 42 + + 7 THEN 28 ELSE + COUNT( * ) + - 5 * 22 END AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-3487
SELECT CASE 82 WHEN + - 42 + + 7 THEN 28 ELSE + COUNT ( * ) + - 5 * 22 END AS col1
----
-109

query I rowsort
SELECT + 37 * 79 col1
----
2923

query I rowsort
SELECT - 7 + - 55 AS col1
----
-62

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

query I rowsort
SELECT ALL 21 * 63 + + + 77 AS col1
----
1400

query I rowsort
SELECT + 83 + + 87 + 65 + - 31
----
204

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

query II rowsort
SELECT ALL 71 + + + 30 col2, 91
----
101
91

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

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

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

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

query I rowsort
SELECT DISTINCT 0 + - 63
----
-63

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

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

query I rowsort
SELECT ALL 24 + + COALESCE ( + - 45, - 30, 76 ) + + 18 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT + 29 + - MIN( 45 ) + + - 42 + + 46 * + CAST( NULL AS SIGNED ) * + ( - 43 ) / - MAX( - + 21 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT + 29 + - MIN ( 45 ) + + - 42 + + 46 * + CAST ( NULL AS INTEGER ) * + ( - 43 ) / - MAX ( - + 21 ) AS col0
----
NULL

query I rowsort
SELECT ALL 35 + 69 AS col0
----
104

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

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

query II rowsort
SELECT 88, 68 * 23 * + 65 AS col0
----
88
101660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3504
SELECT + CAST( NULL AS SIGNED ) + + - 56 + - 55 * - COUNT( DISTINCT + - 90 ) / 11 + 94 * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT + CAST ( NULL AS INTEGER ) + + - 56 + - 55 * - COUNT ( DISTINCT + - 90 ) / 11 + 94 * 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT + SUM( + ( - 59 ) ) + 15 * + 8 + + 59 + + - 60
----
60

skipif mysql # not compatible
query I rowsort label-3505
SELECT + SUM ( + ( - 59 ) ) + 15 * + 8 + + 59 + + - 60
----
60

query I rowsort
SELECT - 99 * 45 AS col2
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL MIN( 34 ) * - - COUNT( * ) * 65
----
2210

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL MIN ( 34 ) * - - COUNT ( * ) * 65
----
2210

query I rowsort
SELECT ALL 93 * + 83 AS col2
----
7719

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL + SUM( + 3 ) - - - 56
----
-53

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + SUM ( + 3 ) - - - 56
----
-53

query II rowsort
SELECT DISTINCT COALESCE ( - - COALESCE ( 58, 11 ), + 85, + 21 ) AS col1, 57 + - 97 col1
----
58
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT DISTINCT 87 - CAST( 26 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT 87 - CAST ( 26 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT SUM( ALL - 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT SUM ( ALL - 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT - + 8 + - ( - COUNT( * ) ) - ( + 71 ) + - + 43 * + + SUM( DISTINCT + 17 ) + + - 86 + + + 25
----
-870

skipif mysql # not compatible
query I rowsort label-3513
SELECT - + 8 + - ( - COUNT ( * ) ) - ( + 71 ) + - + 43 * + + SUM ( DISTINCT + 17 ) + + - 86 + + + 25
----
-870

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3515
SELECT 24 AS col1, 76 * + MAX( 90 ) AS col2
----
24
6840

skipif mysql # not compatible
query II rowsort label-3515
SELECT 24 AS col1, 76 * + MAX ( 90 ) AS col2
----
24
6840

onlyif mysql # aggregate syntax: 
query II rowsort label-3516
SELECT - + COUNT( * ), MIN( - 26 ) AS col0
----
-1
-26

skipif mysql # not compatible
query II rowsort label-3516
SELECT - + COUNT ( * ), MIN ( - 26 ) AS col0
----
-1
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + COALESCE ( 27, - + MAX( ALL 86 ) * - 32 + + COUNT( ALL - 70 ) )
----
27

skipif mysql # not compatible
query I rowsort label-3517
SELECT + COALESCE ( 27, - + MAX ( ALL 86 ) * - 32 + + COUNT ( ALL - 70 ) )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL + 50 DIV + - 23
----
-2

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL + 50 / + - 23
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3519
SELECT DISTINCT - 48 DIV - 75 + MAX( + 95 ) * 79 * - 8
----
-60040

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT - 48 / - 75 + MAX ( + 95 ) * 79 * - 8
----
-60040

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL - + 35 DIV + - 11 + - 75 - + 22 * + - 13 col0
----
214

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - + 35 / + - 11 + - 75 - + 22 * + - 13 col0
----
214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT ALL + COUNT( * ) * MIN( 89 ) + - CAST( NULL AS SIGNED ) - - + 52 / ( - + COUNT( * ) ) * CAST( NULL AS SIGNED ) + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + COUNT ( * ) * MIN ( 89 ) + - CAST ( NULL AS INTEGER ) - - + 52 / ( - + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) + - 71 AS col0
----
NULL

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

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

query I rowsort
SELECT - 8 + - 19 + - - 76
----
49

query I rowsort
SELECT - 47 + 65
----
18

query II rowsort
SELECT + - 23 + 32 + 5 * - 8 AS col1, + 87 * - 67 AS col2
----
-31
-5829

query I rowsort
SELECT - + 54 * NULLIF ( - 57, - + 53 ) AS col2
----
3078

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL + COUNT( * ) * 63 + 72
----
135

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL + COUNT ( * ) * 63 + 72
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3528
SELECT DISTINCT - 3 * + CASE + 45 WHEN 39 + + - COALESCE ( - 97, + 14, + CAST( - - CASE 17 WHEN 32 THEN + - 55 + + 75 + COUNT( * ) + - ( - MIN( - 76 ) ) * 29 * + + 16 + - - 52 * + + 6 WHEN CASE + COUNT( * ) WHEN + CAST( + 87 AS SIGNED ) - + 64 + - - 38 THEN + ( - 13 ) + + ( 39 ) + + 75 WHEN + 76 THEN COUNT( * ) * - 65 END THEN 37 - 60 * + COUNT( * ) END AS SIGNED ) ) THEN 84 WHEN + 55 * 55 + - 71 THEN NULL END + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT - 3 * + CASE + 45 WHEN 39 + + - COALESCE ( - 97, + 14, + CAST ( - - CASE 17 WHEN 32 THEN + - 55 + + 75 + COUNT ( * ) + - ( - MIN ( - 76 ) ) * 29 * + + 16 + - - 52 * + + 6 WHEN CASE + COUNT ( * ) WHEN + CAST ( + 87 AS INTEGER ) - + 64 + - - 38 THEN + ( - 13 ) + + ( 39 ) + + 75 WHEN + 76 THEN COUNT ( * ) * - 65 END THEN 37 - 60 * + COUNT ( * ) END AS INTEGER ) ) THEN 84 WHEN + 55 * 55 + - 71 THEN NULL END + + 97
----
NULL

query I rowsort
SELECT + 16 * + - 3 + + 65 - + 83
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ALL 28 * - - MAX( - - 70 ) + - 80 AS col1
----
1880

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL 28 * - - MAX ( - - 70 ) + - 80 AS col1
----
1880

query I rowsort
SELECT COALESCE ( + + 47, 65, ( 48 ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT CASE 78 WHEN - 6 + + MIN( ALL + 52 ) + 96 - - 95 * - 60 THEN + - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT CASE 78 WHEN - 6 + + MIN ( ALL + 52 ) + 96 - - 95 * - 60 THEN + - 14 END
----
NULL

query I rowsort
SELECT - 18 * 77 AS col0
----
-1386

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3536
SELECT - SUM( + 69 ) col0, 3
----
-69
3

skipif mysql # not compatible
query II rowsort label-3536
SELECT - SUM ( + 69 ) col0, 3
----
-69
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT DISTINCT CAST( + + 38 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT CAST ( + + 38 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL - 38 * COUNT( * ) * - 83
----
3154

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - 38 * COUNT ( * ) * - 83
----
3154

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT COUNT( DISTINCT - - 22 ), - 24 AS col1
----
1
-24

skipif mysql # not compatible
query II rowsort label-3539
SELECT COUNT ( DISTINCT - - 22 ), - 24 AS col1
----
1
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT + 40 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-3540
SELECT + 40 / 49
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT COUNT( * ) + 4 AS col2, 55
----
5
55

skipif mysql # not compatible
query II rowsort label-3541
SELECT COUNT ( * ) + 4 AS col2, 55
----
5
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT - 73 DIV - 99 + - ( + 1 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - 73 / - 99 + - ( + 1 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT 29 * + COUNT( - 17 ) + + - 28
----
1

skipif mysql # not compatible
query I rowsort label-3543
SELECT 29 * + COUNT ( - 17 ) + + - 28
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3544
SELECT 59 DIV - - 36 AS col2, + 7 AS col0
----
1
7

skipif mysql # not compatible
query II rowsort label-3544
SELECT 59 / - - 36 AS col2, + 7 AS col0
----
1
7

query II rowsort
SELECT 46 * 34 AS col0, + 27 AS col0
----
1564
27

query I rowsort
SELECT + 20 - 33 * 56 * - + 56
----
103508

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT MIN( 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3547
SELECT MIN ( 90 ) AS col0
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-3548
SELECT - + ( + + 73 ) col1, 32 DIV + COALESCE ( + 6, + 11 ) AS col1
----
-73
5

skipif mysql # not compatible
query II rowsort label-3548
SELECT - + ( + + 73 ) col1, 32 / + COALESCE ( + 6, + 11 ) AS col1
----
-73
5

query I rowsort
SELECT NULLIF ( - 76, 27 ) + - 82
----
-158

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

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL COUNT ( * ) + 99 AS col1
----
100

query I rowsort
SELECT DISTINCT - 88 * ( - 7 ) + ( - + 71 ) AS col2
----
545

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT + MIN( + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3552
SELECT + MIN ( + 82 ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT ALL + CAST( - - ( + 63 ) AS SIGNED ) + - - ( - - 47 ) - 42 + 30 * CAST( NULL AS SIGNED ) + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + CAST ( - - ( + 63 ) AS INTEGER ) + - - ( - - 47 ) - 42 + 30 * CAST ( NULL AS INTEGER ) + 29
----
NULL

query I rowsort
SELECT DISTINCT + - 0 + - 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT - - 43 * - - COUNT( * ) + ( + 19 ) + 66 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-3555
SELECT - - 43 * - - COUNT ( * ) + ( + 19 ) + 66 AS col2
----
128

query I rowsort
SELECT + NULLIF ( - - 46, - - 26 ) col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3557
SELECT 87 DIV + - 11 + ( COUNT( * ) ) + 49 * + + 5 + - - COUNT( - ( + 6 ) ) AS col2
----
240

skipif mysql # not compatible
query I rowsort label-3557
SELECT 87 / + - 11 + ( COUNT ( * ) ) + 49 * + + 5 + - - COUNT ( - ( + 6 ) ) AS col2
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT ALL + + CAST( + - COUNT( * ) AS SIGNED ) + + + COUNT( * ) * + 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + + CAST ( + - COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) * + 0 AS col2
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT ALL CAST( NULL AS SIGNED ) + + - 27 + - 45 + - 76 + - CAST( - - 45 AS SIGNED ) / - 4 * + 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL CAST ( NULL AS INTEGER ) + + - 27 + - 45 + - 76 + - CAST ( - - 45 AS INTEGER ) / - 4 * + 90 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT COALESCE ( ( + + 0 ), - 36 - + 40 * - + ( - 53 ) + NULLIF ( - - 50, CASE COUNT( * ) WHEN - 89 THEN - - 14 * - 60 * 34 + - + MIN( + - 30 ) * - - 54 ELSE + MAX( ALL - ( + 35 ) ) * + COUNT( * ) END * + + 52 ), + - 35 ) + 20 * - 22
----
-440

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT COALESCE ( ( + + 0 ), - 36 - + 40 * - + ( - 53 ) + NULLIF ( - - 50, CASE COUNT ( * ) WHEN - 89 THEN - - 14 * - 60 * 34 + - + MIN ( + - 30 ) * - - 54 ELSE + MAX ( ALL - ( + 35 ) ) * + COUNT ( * ) END * + + 52 ), + - 35 ) + 20 * - 22
----
-440

query I rowsort
SELECT ALL + 14 + - - 71
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3563
SELECT 67 DIV + ( + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-3563
SELECT 67 / + ( + 95 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3564
SELECT ALL 60 + + ( - 8 ) col0, - COUNT( * )
----
52
-1

skipif mysql # not compatible
query II rowsort label-3564
SELECT ALL 60 + + ( - 8 ) col0, - COUNT ( * )
----
52
-1

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

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

query II rowsort
SELECT ( + + 91 ) * - 47 AS col0, + 99 + - 9
----
-4277
90

query II rowsort
SELECT 38, 31 AS col2
----
38
31

query I rowsort
SELECT 67 + - 51 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT 76 + + - 84 * 27 * - COUNT( * ) col1
----
2344

skipif mysql # not compatible
query I rowsort label-3569
SELECT 76 + + - 84 * 27 * - COUNT ( * ) col1
----
2344

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT - MIN( - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT - MIN ( - 97 )
----
97

query II rowsort
SELECT ALL - 21 AS col1, - 26 * 95 - + 47
----
-21
-2517

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT DISTINCT 45 AS col1, COUNT( * ) * COUNT( * ) + - 59 - 20
----
45
-78

skipif mysql # not compatible
query II rowsort label-3572
SELECT DISTINCT 45 AS col1, COUNT ( * ) * COUNT ( * ) + - 59 - 20
----
45
-78

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

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

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

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

query I rowsort
SELECT 82 * - 42 * - - 85 AS col2
----
-292740

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT 17 * CASE + + 87 WHEN - MAX( - ( + 88 ) ) + + 63 * + + 86 - - 30 + + 78 + - + ( - 5 ) * + + 62 * + 3 THEN NULL WHEN - - 38 THEN + - 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT 17 * CASE + + 87 WHEN - MAX ( - ( + 88 ) ) + + 63 * + + 86 - - 30 + + 78 + - + ( - 5 ) * + + 62 * + 3 THEN NULL WHEN - - 38 THEN + - 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL + + 28 * + + 57 + - + COUNT( * ) * + + 78 * 72
----
-4020

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL + + 28 * + + 57 + - + COUNT ( * ) * + + 78 * 72
----
-4020

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT + COUNT( * ) + - SUM( ALL 25 )
----
-24

skipif mysql # not compatible
query I rowsort label-3578
SELECT + COUNT ( * ) + - SUM ( ALL 25 )
----
-24

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT CASE - - COUNT( * ) WHEN 11 THEN - - 28 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT CASE - - COUNT ( * ) WHEN 11 THEN - - 28 ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT ALL + 50 + - 38 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3583
SELECT DISTINCT - 82, - 56 * + + COUNT( * ) AS col2
----
-82
-56

skipif mysql # not compatible
query II rowsort label-3583
SELECT DISTINCT - 82, - 56 * + + COUNT ( * ) AS col2
----
-82
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3584
SELECT ALL SUM( 3 ) + - + 60, 52 AS col1
----
-57
52

skipif mysql # not compatible
query II rowsort label-3584
SELECT ALL SUM ( 3 ) + - + 60, 52 AS col1
----
-57
52

query I rowsort
SELECT - 54 + + 73 AS col0
----
19

query I rowsort
SELECT ALL + 9 + 23
----
32

query II rowsort
SELECT - - 23 AS col1, - 19 * - 58 AS col1
----
23
1102

query I rowsort
SELECT 10 + + 28 AS col0
----
38

query II rowsort
SELECT - 48 col0, - 94
----
-48
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + NULLIF ( - COUNT( * ), - 11 ) * - 31 * + 63
----
1953

skipif mysql # not compatible
query I rowsort label-3590
SELECT + NULLIF ( - COUNT ( * ), - 11 ) * - 31 * + 63
----
1953

query I rowsort
SELECT ALL 86 * 96
----
8256

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT - COUNT( DISTINCT 11 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT - COUNT ( DISTINCT 11 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3593
SELECT DISTINCT - COALESCE ( 97, - 32 + - NULLIF ( - - 67, 21 / 9 / 27 * - 45 * - 37 * + CASE 65 WHEN 38 THEN - - 4 ELSE ( - - COUNT( ALL ( - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) ) ) END * - - 79 ) + - 3, - 15 * + 70 + - - CAST( + 62 AS SIGNED ) ) * - + 16 * + MAX( ALL + - 55 ) * + 33 - - - 4 - - + 59 AS col2, 71 AS col0
----
-2816825
71

skipif mysql # not compatible
query II rowsort label-3593
SELECT DISTINCT - COALESCE ( 97, - 32 + - NULLIF ( - - 67, 21 / 9 / 27 * - 45 * - 37 * + CASE 65 WHEN 38 THEN - - 4 ELSE ( - - COUNT ( ALL ( - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) ) ) END * - - 79 ) + - 3, - 15 * + 70 + - - CAST ( + 62 AS INTEGER ) ) * - + 16 * + MAX ( ALL + - 55 ) * + 33 - - - 4 - - + 59 AS col2, 71 AS col0
----
-2816825
71

query I rowsort
SELECT DISTINCT + 16 * 69 * + 90
----
99360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3595
SELECT ALL 77 * - COUNT( * ) - COALESCE ( - + 26, - - 88 ) + + + COALESCE ( + 7, + 85 - + 76 + - + SUM( DISTINCT + 92 ) * - 78 * - - 85, 57 ) DIV - 70 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL 77 * - COUNT ( * ) - COALESCE ( - + 26, - - 88 ) + + + COALESCE ( + 7, + 85 - + 76 + - + SUM ( DISTINCT + 92 ) * - 78 * - - 85, 57 ) / - 70 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL 19 * - + COUNT( * ) * - 6 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL 19 * - + COUNT ( * ) * - 6 AS col0
----
114

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

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

query I rowsort
SELECT 86 + - 96
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT CASE WHEN - 87 IS NOT NULL THEN + 66 ELSE + - 25 * + 69 + + CASE 76 WHEN - 86 * COALESCE ( + NULLIF ( - 42, + 16 ), + ( + 45 ) * - 39 + - NULLIF ( + - 15, COUNT( - 22 ) * + 50 + - - COUNT( * ) + - 98 ) + - - 17 - - 27 * - 51 * - - 69 / COUNT( * ) * COALESCE ( + 57, - 13 * - 7 ) - 69 ) THEN NULL WHEN + - 59 / - COUNT( 36 * 21 ) THEN NULL ELSE + 75 END * - COALESCE ( 9, 87 * COUNT( * ) ) END * + ( 67 ) AS col1
----
4422

skipif mysql # not compatible
query I rowsort label-3600
SELECT CASE WHEN - 87 IS NOT NULL THEN + 66 ELSE + - 25 * + 69 + + CASE 76 WHEN - 86 * COALESCE ( + NULLIF ( - 42, + 16 ), + ( + 45 ) * - 39 + - NULLIF ( + - 15, COUNT ( - 22 ) * + 50 + - - COUNT ( * ) + - 98 ) + - - 17 - - 27 * - 51 * - - 69 / COUNT ( * ) * COALESCE ( + 57, - 13 * - 7 ) - 69 ) THEN NULL WHEN + - 59 / - COUNT ( 36 * 21 ) THEN NULL ELSE + 75 END * - COALESCE ( 9, 87 * COUNT ( * ) ) END * + ( 67 ) AS col1
----
4422

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + SUM( DISTINCT - ( + 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-3601
SELECT + SUM ( DISTINCT - ( + 25 ) )
----
-25

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3603
SELECT + COALESCE ( - 15, - + 68 DIV - 41 * + 10 * - SUM( ALL + + 31 ) * - COALESCE ( + ( + 2 ), MAX( ALL - 72 ) * - 70 + + + 22 + COUNT( - 79 ) * - + COUNT( DISTINCT + + 31 ), - 64 * COUNT( * ) ) * - 19 DIV - 67 * + 45 + 71, + + 43 ) AS col1, ( 22 ) AS col0, - + COALESCE ( + - 58, - 71 ) AS col1
----
-15
22
58

skipif mysql # not compatible
query III rowsort label-3603
SELECT + COALESCE ( - 15, - + 68 / - 41 * + 10 * - SUM ( ALL + + 31 ) * - COALESCE ( + ( + 2 ), MAX ( ALL - 72 ) * - 70 + + + 22 + COUNT ( - 79 ) * - + COUNT ( DISTINCT + + 31 ), - 64 * COUNT ( * ) ) * - 19 / - 67 * + 45 + 71, + + 43 ) AS col1, ( 22 ) AS col0, - + COALESCE ( + - 58, - 71 ) AS col1
----
-15
22
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3604
SELECT ALL 70 DIV + 88 * - 41
----
0

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL 70 / + 88 * - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL - MAX( + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - MAX ( + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL COUNT( * ) * - - 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL COUNT ( * ) * - - 12 AS col0
----
12

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

skipif mysql # not compatible
query I rowsort label-3607
SELECT + CAST ( NULL AS INTEGER ) * - MAX ( ALL 14 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT - 34 DIV - 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 34 / - 65 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT - 69 DIV + + ( + 20 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 69 / + + ( + 20 ) AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT - 81 * + 99 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT - 81 * + 99 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL 71 + - + 87 + - - ( 63 ) + + + 67 - + - 67 * COUNT( * ) * - 8
----
-422

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL 71 + - + 87 + - - ( 63 ) + + + 67 - + - 67 * COUNT ( * ) * - 8
----
-422

query I rowsort
SELECT DISTINCT + + 50 + 93
----
143

query II rowsort
SELECT DISTINCT + + 34 + + + 92, - 26 + 34 AS col2
----
126
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3614
SELECT ALL + 99 + + 35 col0, - COUNT( + 44 ) AS col0
----
134
-1

skipif mysql # not compatible
query II rowsort label-3614
SELECT ALL + 99 + + 35 col0, - COUNT ( + 44 ) AS col0
----
134
-1

query I rowsort
SELECT - + CASE - 9 WHEN 4 THEN - - 65 END + 67 + 72
----
NULL

query I rowsort
SELECT DISTINCT + - 59 + + 20
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT - + 33 * + 19 * + - CASE + 18 WHEN + + 72 * 91 * + COUNT( ALL - + 19 ) THEN - 64 ELSE - 60 END AS col0
----
-37620

skipif mysql # not compatible
query I rowsort label-3617
SELECT - + 33 * + 19 * + - CASE + 18 WHEN + + 72 * 91 * + COUNT ( ALL - + 19 ) THEN - 64 ELSE - 60 END AS col0
----
-37620

query I rowsort
SELECT - 18 + 13
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL + + 16 - + CASE COUNT( * ) WHEN + 28 * - + 63 THEN + 80 + + 65 END + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL + + 16 - + CASE COUNT ( * ) WHEN + 28 * - + 63 THEN + 80 + + 65 END + + 95
----
NULL

query I rowsort
SELECT DISTINCT - 3 - - 95
----
92

query I rowsort
SELECT DISTINCT - 45 * - + 9 * + ( + 97 )
----
39285

query I rowsort
SELECT DISTINCT 98 - - - 59
----
39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT - COALESCE ( - CAST( 85 AS SIGNED ), COUNT( ALL + 30 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3624
SELECT - COALESCE ( - CAST ( 85 AS INTEGER ), COUNT ( ALL + 30 ) ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + CASE - 87 WHEN 2 THEN NULL WHEN + - MIN( DISTINCT - - 38 ) THEN NULL ELSE 81 + - 50 + 63 END
----
94

skipif mysql # not compatible
query I rowsort label-3625
SELECT + CASE - 87 WHEN 2 THEN NULL WHEN + - MIN ( DISTINCT - - 38 ) THEN NULL ELSE 81 + - 50 + 63 END
----
94

query I rowsort
SELECT DISTINCT ( - 32 ) * + + 62 - - 68 col0
----
-1916

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT - 77 DIV + 21
----
-3

skipif mysql # not compatible
query I rowsort label-3627
SELECT - 77 / + 21
----
-3

query I rowsort
SELECT DISTINCT 6 * + - 92 col1
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT + SUM( DISTINCT 89 )
----
89

skipif mysql # not compatible
query I rowsort label-3629
SELECT + SUM ( DISTINCT 89 )
----
89

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

query I rowsort
SELECT + 47 * 2 * - 91 AS col1
----
-8554

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

skipif mysql # not compatible
query I rowsort label-3632
SELECT + CAST ( NULL AS INTEGER ) * 87
----
NULL

query I rowsort
SELECT ALL 29 * 39
----
1131

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3635
SELECT 25 * + - 95 + - 75 AS col1, COUNT( * ) * - - 48 DIV COUNT( * )
----
-2450
48

skipif mysql # not compatible
query II rowsort label-3635
SELECT 25 * + - 95 + - 75 AS col1, COUNT ( * ) * - - 48 / COUNT ( * )
----
-2450
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT + 81 + + 21 + 43 DIV + + 30
----
103

skipif mysql # not compatible
query I rowsort label-3636
SELECT + 81 + + 21 + 43 / + + 30
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT - NULLIF ( + 93, - 37 ) * - + 10 * - COUNT( * ) * + 98 - + + 36
----
-91176

skipif mysql # not compatible
query I rowsort label-3637
SELECT - NULLIF ( + 93, - 37 ) * - + 10 * - COUNT ( * ) * + 98 - + + 36
----
-91176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3638
SELECT CASE - - 47 WHEN SUM( - 49 ) + - + 55 + + + 22 * 7 THEN COALESCE ( - ( - + 78 ), - - 34 + + COUNT( * ) * ( + COUNT( ALL 21 ) ) ) ELSE + COUNT( * ) - - 67 DIV - ( - 50 ) - - + 92 - - - COALESCE ( + COUNT( * ), - 13 ) END
----
93

skipif mysql # not compatible
query I rowsort label-3638
SELECT CASE - - 47 WHEN SUM ( - 49 ) + - + 55 + + + 22 * 7 THEN COALESCE ( - ( - + 78 ), - - 34 + + COUNT ( * ) * ( + COUNT ( ALL 21 ) ) ) ELSE + COUNT ( * ) - - 67 / - ( - 50 ) - - + 92 - - - COALESCE ( + COUNT ( * ), - 13 ) END
----
93

query I rowsort
SELECT DISTINCT 84 * - + 61 + + - 63 + - 79
----
-5266

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

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

query I rowsort
SELECT ALL - - 91 * + 97 + 24
----
8851

query I rowsort
SELECT - + 23 + + - 13 col1
----
-36

query II rowsort
SELECT DISTINCT + 96 AS col0, + 36 + 78 AS col1
----
96
114

query I rowsort
SELECT - 49 + + 87 * 96 AS col2
----
8303

query I rowsort
SELECT - 58 * + + 53 AS col2
----
-3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT - NULLIF ( - 28, + 14 / 52 + - ( CAST( NULL AS SIGNED ) ) * 54 )
----
28

skipif mysql # not compatible
query I rowsort label-3646
SELECT - NULLIF ( - 28, + 14 / 52 + - ( CAST ( NULL AS INTEGER ) ) * 54 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT + COUNT( * ) + - SUM( DISTINCT - + 90 ) * + - 73 AS col1
----
-6569

skipif mysql # not compatible
query I rowsort label-3647
SELECT + COUNT ( * ) + - SUM ( DISTINCT - + 90 ) * + - 73 AS col1
----
-6569

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - MAX( ALL - 20 ) * 54
----
1080

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - MAX ( ALL - 20 ) * 54
----
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3649
SELECT ALL - COALESCE ( 51, + - COUNT( * ) ) - - COUNT( ALL - 35 ) AS col1, 98 DIV + 57 AS col0
----
-50
1

skipif mysql # not compatible
query II rowsort label-3649
SELECT ALL - COALESCE ( 51, + - COUNT ( * ) ) - - COUNT ( ALL - 35 ) AS col1, 98 / + 57 AS col0
----
-50
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT DISTINCT 43 AS col0, COUNT( * )
----
43
1

skipif mysql # not compatible
query II rowsort label-3650
SELECT DISTINCT 43 AS col0, COUNT ( * )
----
43
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT ALL + - 81 - + CAST( + AVG ( DISTINCT - 60 ) AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL + - 81 - + CAST ( + AVG ( DISTINCT - 60 ) AS INTEGER )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3652
SELECT - + 46 + + 69 + + + 1 DIV 82 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3652
SELECT - + 46 + + 69 + + + 1 / 82 AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3653
SELECT 13 AS col1, ( + - 20 ) + + + SUM( - + ( + 18 ) )
----
13
-38

skipif mysql # not compatible
query II rowsort label-3653
SELECT 13 AS col1, ( + - 20 ) + + + SUM ( - + ( + 18 ) )
----
13
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL - 66 - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL - 66 - COUNT ( * )
----
-67

query I rowsort
SELECT - + 44 + + 52 * 35 AS col0
----
1776

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT - 10 * + - COUNT( * ) col0
----
10

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT - 10 * + - COUNT ( * ) col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL CAST( + CAST( - 31 AS SIGNED ) AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL CAST ( + CAST ( - 31 AS INTEGER ) AS INTEGER ) AS col2
----
-31

query I rowsort
SELECT + 1 - + + 56 * - 10
----
561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT - 71 + 20 - + ( - 30 ) * - CAST( 46 AS SIGNED ) - - - ( + 31 )
----
-1462

skipif mysql # not compatible
query I rowsort label-3659
SELECT - 71 + 20 - + ( - 30 ) * - CAST ( 46 AS INTEGER ) - - - ( + 31 )
----
-1462

query I rowsort
SELECT ALL - 19 * + - 82 * - 83 AS col0
----
-129314

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL + NULLIF ( CASE - COALESCE ( + 24, 11 * - SUM( + 63 ) * + - 97 ) WHEN + 62 THEN 20 / + 0 + - 17 WHEN + 75 THEN NULL END, - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL + NULLIF ( CASE - COALESCE ( + 24, 11 * - SUM ( + 63 ) * + - 97 ) WHEN + 62 THEN 20 / + 0 + - 17 WHEN + 75 THEN NULL END, - 96 )
----
NULL

query I rowsort
SELECT DISTINCT - 10 * 75
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT + NULLIF ( + ( - 76 ), 72 * MAX( - 98 ) ) * + + 62 + + - 44 * ( + - 26 )
----
-3568

skipif mysql # not compatible
query I rowsort label-3663
SELECT + NULLIF ( + ( - 76 ), 72 * MAX ( - 98 ) ) * + + 62 + + - 44 * ( + - 26 )
----
-3568

query I rowsort
SELECT DISTINCT - COALESCE ( + - 16, - - 61 )
----
16

query I rowsort
SELECT ALL - 93 * + - 2 * - 79
----
-14694

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT DISTINCT - 75 + + + COUNT( * ), 13 AS col2
----
-74
13

skipif mysql # not compatible
query II rowsort label-3666
SELECT DISTINCT - 75 + + + COUNT ( * ), 13 AS col2
----
-74
13

query II rowsort
SELECT 24 AS col2, - 59 AS col1
----
24
-59

query II rowsort
SELECT + 36 AS col0, 46 AS col2
----
36
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 21 + 51 DIV + - ( 90 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-3669
SELECT 21 + 51 / + - ( 90 ) col0
----
21

query I rowsort
SELECT 92 * ( + 34 )
----
3128

query I rowsort
SELECT ALL ( + - 5 ) + + 18 * - 47 + 69 + + 93 + + 88 * - 13 AS col0
----
-1833

query II rowsort
SELECT + 94, - COALESCE ( + - 33, - + 1 ) AS col1
----
94
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3673
SELECT - 74 * + 5 + + COALESCE ( - + 28, - 94 + + NULLIF ( - COUNT( * ), 51 ) + - - 24 + + + COUNT( * ) DIV + + 59 + + 87 ) + - 92
----
-490

skipif mysql # not compatible
query I rowsort label-3673
SELECT - 74 * + 5 + + COALESCE ( - + 28, - 94 + + NULLIF ( - COUNT ( * ), 51 ) + - - 24 + + + COUNT ( * ) / + + 59 + + 87 ) + - 92
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL MAX( ALL 73 ) * 75 AS col0
----
5475

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL MAX ( ALL 73 ) * 75 AS col0
----
5475

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT 11 DIV + 69 * + - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3675
SELECT 11 / + 69 * + - 86 AS col2
----
0

query I rowsort
SELECT ALL 45 + 52 * 28 AS col1
----
1501

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL - MAX( - - 61 ) * - 12 * + + 17 AS col2
----
12444

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL - MAX ( - - 61 ) * - 12 * + + 17 AS col2
----
12444

query I rowsort
SELECT DISTINCT - 5 + - 82 AS col1
----
-87

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

query I rowsort
SELECT ALL 90 + + 46
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-3681
SELECT + 48 AS col1, - COALESCE ( + 30, NULLIF ( + 20, - - NULLIF ( - + 44, + 9 ) ) ) * - COUNT( * )
----
48
30

skipif mysql # not compatible
query II rowsort label-3681
SELECT + 48 AS col1, - COALESCE ( + 30, NULLIF ( + 20, - - NULLIF ( - + 44, + 9 ) ) ) * - COUNT ( * )
----
48
30

query I rowsort
SELECT + ( 88 ) - + 79 AS col2
----
9

query I rowsort
SELECT ALL ( - CASE - 42 WHEN + + 74 * AVG ( ALL - - 61 ) THEN NULL ELSE - 77 END ) AS col1
----
77

query II rowsort
SELECT + 86 * 61, 13 - + + 15 AS col0
----
5246
-2

query I rowsort
SELECT + 56 * + 82 * - 28 * ( + 5 )
----
-642880

query II rowsort
SELECT ALL + 51 AS col2, 92 * + - 46 col0
----
51
-4232

query I rowsort
SELECT ALL - 56 - - 9 * - 73
----
-713

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

skipif mysql # not compatible
query II rowsort label-3688
SELECT DISTINCT - COUNT ( * ) col1, + ( + 99 )
----
-1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3689
SELECT DISTINCT ( CASE - 4 WHEN + 47 - + 1 THEN NULL WHEN - 44 THEN + + NULLIF ( + 45, - 44 ) ELSE + - ( + ( MIN( DISTINCT + CAST( 94 AS SIGNED ) ) ) ) * - - 50 END )
----
-4700

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT ( CASE - 4 WHEN + 47 - + 1 THEN NULL WHEN - 44 THEN + + NULLIF ( + 45, - 44 ) ELSE + - ( + ( MIN ( DISTINCT + CAST ( 94 AS INTEGER ) ) ) ) * - - 50 END )
----
-4700

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT DISTINCT - 28 DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT - 28 / - 60 AS col2
----
0

query I rowsort
SELECT + 45 + - + 55
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT SUM( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT SUM ( 35 )
----
35

query I rowsort
SELECT ALL ( 48 ) * - + 44
----
-2112

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT - 89 DIV - 31 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3694
SELECT - 89 / - 31 AS col0
----
2

query I rowsort
SELECT + 2 + 43
----
45

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

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - MIN ( - 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT DISTINCT COUNT( - COALESCE ( NULLIF ( - 41, - + 89 * - + 67 ), 46 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT COUNT ( - COALESCE ( NULLIF ( - 41, - + 89 * - + 67 ), 46 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT NULLIF ( 80, - COUNT( * ) + - 51 ) + - 26 * - 40
----
1120

skipif mysql # not compatible
query I rowsort label-3698
SELECT NULLIF ( 80, - COUNT ( * ) + - 51 ) + - 26 * - 40
----
1120

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT 86 * 18 col2, - ( COUNT( * ) ) * - 61 + - 95 AS col0
----
1548
-34

skipif mysql # not compatible
query II rowsort label-3699
SELECT 86 * 18 col2, - ( COUNT ( * ) ) * - 61 + - 95 AS col0
----
1548
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT ALL + 33 DIV - 55 * + 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + 33 / - 55 * + 42 AS col1
----
0

query II rowsort
SELECT DISTINCT 88 + 93 AS col1, + 2 AS col0
----
181
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3702
SELECT 76 * + 14 / - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT 76 * + 14 / - CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT 11 * + 64 AS col2, 37 * - CASE - 30 WHEN - + CASE + - 33 WHEN - 80 * + + NULLIF ( ( 84 ), - + 77 ) * + + 21 + - - 85 + COALESCE ( + 12, 2, - 52 ) - + 99 THEN NULL WHEN 9 THEN 42 END + + + 72 THEN NULL WHEN AVG ( ALL 26 ) * 96 + 55 THEN + 22 END * - 6 - - 75 * 66 AS col2
----
704
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT 52 DIV - 4 - 54 - 83
----
-150

skipif mysql # not compatible
query I rowsort label-3704
SELECT 52 / - 4 - 54 - 83
----
-150

query I rowsort
SELECT 92 - + 89 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT - ( COUNT( - 14 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - ( COUNT ( - 14 ) )
----
-1

query I rowsort
SELECT 1 * - 44
----
-44

query I rowsort
SELECT 37 * + 33
----
1221

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL - NULLIF ( + + 81, + 76 + + NULLIF ( - COUNT( * ), + 80 ) ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL - NULLIF ( + + 81, + 76 + + NULLIF ( - COUNT ( * ), + 80 ) ) AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT ALL + ( 46 ) + - 11 DIV 21 DIV - 93 DIV + + COUNT( DISTINCT ( + 11 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + ( 46 ) + - 11 / 21 / - 93 / + + COUNT ( DISTINCT ( + 11 ) ) AS col1
----
46

query I rowsort
SELECT DISTINCT - CASE + 55 WHEN - 33 THEN + 92 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3712
SELECT 89 DIV 14 * - + 22 - - SUM( + ( - 65 ) ) AS col0
----
-197

skipif mysql # not compatible
query I rowsort label-3712
SELECT 89 / 14 * - + 22 - - SUM ( + ( - 65 ) ) AS col0
----
-197

query I rowsort
SELECT DISTINCT + COALESCE ( + 71, - - 17 ) + + - 6
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT + MAX( + 23 ), 10 col1
----
23
10

skipif mysql # not compatible
query II rowsort label-3714
SELECT + MAX ( + 23 ), 10 col1
----
23
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT + 44 * + + 16 - + COUNT( * ) AS col1
----
703

skipif mysql # not compatible
query I rowsort label-3715
SELECT + 44 * + + 16 - + COUNT ( * ) AS col1
----
703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT 53 + + - 56 - - + SUM( - 32 ) DIV + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-3716
SELECT 53 + + - 56 - - + SUM ( - 32 ) / + COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3717
SELECT + + MAX( + + 81 ) AS col0, 40 DIV - + 9 + - + COUNT( * )
----
81
-5

skipif mysql # not compatible
query II rowsort label-3717
SELECT + + MAX ( + + 81 ) AS col0, 40 / - + 9 + - + COUNT ( * )
----
81
-5

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3719
SELECT ALL + + 2 DIV 58, + 96 + + COALESCE ( - - 26, - 16 + + 98 * 74 + + + 98 ) + - CASE 14 WHEN - 2 THEN ( 56 ) + + 43 END + 79 * - + 2 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3719
SELECT ALL + + 2 / 58, + 96 + + COALESCE ( - - 26, - 16 + + 98 * 74 + + + 98 ) + - CASE 14 WHEN - 2 THEN ( 56 ) + + 43 END + 79 * - + 2 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT + 71 + 28 * - MIN( DISTINCT 43 ) * 0 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3720
SELECT + 71 + 28 * - MIN ( DISTINCT 43 ) * 0 AS col2
----
71

query I rowsort
SELECT - 80 * 92 col2
----
-7360

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL 24 - - COUNT( * ) + + 19 * + 82 - - 43 * - - 60 * 56
----
146063

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL 24 - - COUNT ( * ) + + 19 * + 82 - - 43 * - - 60 * 56
----
146063

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT CAST( NULLIF ( - 45, CAST( - 53 AS SIGNED ) ) AS SIGNED ) + + + 19 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3724
SELECT CAST ( NULLIF ( - 45, CAST ( - 53 AS INTEGER ) ) AS INTEGER ) + + + 19 AS col1
----
-26

query I rowsort
SELECT DISTINCT + CASE - 54 WHEN 14 THEN 9 * 62 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT 15 + 17 + - - NULLIF ( COUNT( * ), + 4 )
----
33

skipif mysql # not compatible
query I rowsort label-3726
SELECT 15 + 17 + - - NULLIF ( COUNT ( * ), + 4 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT COUNT( * ) * - 30 - - 85 col1
----
55

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT COUNT ( * ) * - 30 - - 85 col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3728
SELECT + CASE COUNT( * ) WHEN ( - 42 ) THEN - 74 * + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT + CASE COUNT ( * ) WHEN ( - 42 ) THEN - 74 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 56 ELSE NULL END
----
NULL

query I rowsort
SELECT - 96 * - 25 - - 90 col1
----
2490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL + COALESCE ( 14, + - 67 * + CAST( NULL AS SIGNED ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL + COALESCE ( 14, + - 67 * + CAST ( NULL AS INTEGER ) ) AS col1
----
14

query I rowsort
SELECT DISTINCT 49 + - + 35 * 38 AS col2
----
-1281

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT - COUNT( - - 83 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3732
SELECT - COUNT ( - - 83 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT DISTINCT 13 + - COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT 13 + - COUNT ( * ) AS col0
----
12

query II rowsort
SELECT ALL 36 + + 42 * - 47 AS col1, 15 * 17
----
-1938
255

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT 47 + MIN( + 95 )
----
142

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT 47 + MIN ( + 95 )
----
142

query I rowsort
SELECT ALL 6 * + 41 AS col2
----
246

query I rowsort
SELECT ALL 82 + + 56 AS col1
----
138

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

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT COUNT ( * ) * + 46 AS col0
----
46

query I rowsort
SELECT + 6 + + 58
----
64

query I rowsort
SELECT + 82 + + - 8 AS col1
----
74

query I rowsort
SELECT DISTINCT ( - 43 ) + + ( - 58 )
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT COUNT( * ) * 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT COUNT ( * ) * 23 AS col1
----
23

query I rowsort
SELECT ALL + 48 * 64 + 64 - - 11 + - 70
----
3077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3744
SELECT ALL + 3 DIV + NULLIF ( + + COUNT( * ), + CASE - 51 WHEN 64 + - - 55 + + COUNT( * ) * - 61 THEN NULL WHEN + 52 - + - 88 THEN - 53 ELSE + 72 DIV COUNT( * ) - + - 47 END DIV + MIN( DISTINCT - 21 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL + 3 / + NULLIF ( + + COUNT ( * ), + CASE - 51 WHEN 64 + - - 55 + + COUNT ( * ) * - 61 THEN NULL WHEN + 52 - + - 88 THEN - 53 ELSE + 72 / COUNT ( * ) - + - 47 END / + MIN ( DISTINCT - 21 ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT + 4 * + COUNT( * ) + + NULLIF ( - + 53, + + COUNT( * ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT + 4 * + COUNT ( * ) + + NULLIF ( - + 53, + + COUNT ( * ) ) AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3746
SELECT DISTINCT + ( - 42 ) DIV - - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT + ( - 42 ) / - - 93 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT ( - 85 ) DIV - 38
----
2

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT ( - 85 ) / - 38
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL - CASE COUNT( * ) WHEN 16 THEN NULL WHEN + + COUNT( * ) / + AVG ( ALL - 70 ) + - + 50 THEN - 61 WHEN + + 11 * 54 THEN + 59 / - 43 WHEN - CAST( NULL AS SIGNED ) THEN NULL END * - 58 * 27 - - 67 - - - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL - CASE COUNT ( * ) WHEN 16 THEN NULL WHEN + + COUNT ( * ) / + AVG ( ALL - 70 ) + - + 50 THEN - 61 WHEN + + 11 * 54 THEN + 59 / - 43 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END * - 58 * 27 - - 67 - - - 91 AS col1
----
NULL

query I rowsort
SELECT - 4 + 89 - - 90
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT CASE + 56 WHEN COUNT( * ) + - + 71 / - 36 + + CASE 30 WHEN + + 33 THEN NULL ELSE + - 19 END - + - 6 THEN - ( 69 ) WHEN - + 85 - - + 62 THEN - 44 + + - COUNT( * ) WHEN + MAX( 90 ) + + 28 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT CASE + 56 WHEN COUNT ( * ) + - + 71 / - 36 + + CASE 30 WHEN + + 33 THEN NULL ELSE + - 19 END - + - 6 THEN - ( 69 ) WHEN - + 85 - - + 62 THEN - 44 + + - COUNT ( * ) WHEN + MAX ( 90 ) + + 28 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - SUM( DISTINCT + 42 ) + - - 15 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3751
SELECT - SUM ( DISTINCT + 42 ) + - - 15 AS col2
----
-27

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

query II rowsort
SELECT + 41 * ( - + 34 ), - 71 AS col1
----
-1394
-71

query I rowsort
SELECT - ( 13 ) * + 56 * - 51 * - 37 - ( ( - 89 ) ) * 61 + - - ( + + 21 ) + - 0 AS col2
----
-1368286

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

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

query I rowsort
SELECT ALL + 89 * 73 * 21 - + 76 * - - NULLIF ( + 80, + 26 ) col2
----
130357

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT - - 23 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-3757
SELECT - - 23 / + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + CASE - + 2 WHEN - - ( + 35 ) THEN NULL WHEN - 56 * + 44 * - - 72 THEN + - 29 / - COALESCE ( + 73, - 32 / + + 63 * - 57, - 86 + + 91 * - 10 + + - MIN( 6 ) ) * ( + 97 ) * + + 81 - + 75 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT + CASE - + 2 WHEN - - ( + 35 ) THEN NULL WHEN - 56 * + 44 * - - 72 THEN + - 29 / - COALESCE ( + 73, - 32 / + + 63 * - 57, - 86 + + 91 * - 10 + + - MIN ( 6 ) ) * ( + 97 ) * + + 81 - + 75 ELSE NULL END col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + + COUNT ( - 26 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3760
SELECT - 71 - - 46 * 29 DIV - COALESCE ( ( COALESCE ( 77, - COUNT( * ) DIV - 0, - 75 ) ), + COUNT( * ) ) + MIN( ALL + 47 )
----
-41

skipif mysql # not compatible
query I rowsort label-3760
SELECT - 71 - - 46 * 29 / - COALESCE ( ( COALESCE ( 77, - COUNT ( * ) / - 0, - 75 ) ), + COUNT ( * ) ) + MIN ( ALL + 47 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT - MIN( + 11 ) * - - 37 * + 95
----
-38665

skipif mysql # not compatible
query I rowsort label-3761
SELECT - MIN ( + 11 ) * - - 37 * + 95
----
-38665

query I rowsort
SELECT - + 63 col2
----
-63

query II rowsort
SELECT ALL + 50, + 96 + + 7 + 86 AS col2
----
50
189

query I rowsort
SELECT ALL - 76 + - 14 col2
----
-90

query I rowsort
SELECT ALL ( - 36 ) * - + 58 - - ( - + 78 ) AS col1
----
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT - CASE - 51 WHEN 43 + - MIN( DISTINCT 26 ) + SUM( ALL + 72 ) / - 44 / - 8 + + + 18 * + 11 / - 85 THEN NULL WHEN 60 + 66 * + 50 * + + 72 THEN COALESCE ( - 93, - CASE 33 WHEN + + MIN( + - 72 ) THEN 49 + - 97 WHEN - 11 THEN NULL END, NULLIF ( 62, 59 ) + + 25 + 12 * 40 + - + 63 ) * 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT - CASE - 51 WHEN 43 + - MIN ( DISTINCT 26 ) + SUM ( ALL + 72 ) / - 44 / - 8 + + + 18 * + 11 / - 85 THEN NULL WHEN 60 + 66 * + 50 * + + 72 THEN COALESCE ( - 93, - CASE 33 WHEN + + MIN ( + - 72 ) THEN 49 + - 97 WHEN - 11 THEN NULL END, NULLIF ( 62, 59 ) + + 25 + 12 * 40 + - + 63 ) * 91 END
----
NULL

query I rowsort
SELECT ALL - + 65 + 20 AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT ALL + 96 + CAST( 60 AS SIGNED ) * 89 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL + 96 + CAST ( 60 AS INTEGER ) * 89 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 85 + - + ( + 12 ), - 52 AS col0
----
-97
-52

query I rowsort
SELECT + 42 + - 55
----
-13

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

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + 88 + + MIN ( DISTINCT + + 1 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT + MIN( - 69 ) * + - 17
----
1173

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT + MIN ( - 69 ) * + - 17
----
1173

query II rowsort
SELECT + 77 * - 58 * + 40 * - + 98 AS col0, - 4 + - 34 + 22
----
17506720
-16

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

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

query I rowsort
SELECT + 11 * + ( + - 50 )
----
-550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT ALL 22 * + - COALESCE ( 53, ( + COALESCE ( + 98, - CAST( + 64 AS SIGNED ) * + COUNT( * ) ) ) ) * - ( 87 )
----
101442

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL 22 * + - COALESCE ( 53, ( + COALESCE ( + 98, - CAST ( + 64 AS INTEGER ) * + COUNT ( * ) ) ) ) * - ( 87 )
----
101442

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL ( - COUNT( * ) ) - 25 * 86
----
-2151

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL ( - COUNT ( * ) ) - 25 * 86
----
-2151

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT 26 DIV + 46 - 4
----
-4

skipif mysql # not compatible
query I rowsort label-3778
SELECT 26 / + 46 - 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT + 75 * + MIN( DISTINCT + - 58 )
----
-4350

skipif mysql # not compatible
query I rowsort label-3779
SELECT + 75 * + MIN ( DISTINCT + - 58 )
----
-4350

query I rowsort
SELECT + 92 - - 79
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-3781
SELECT + 98 DIV + 21 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3781
SELECT + 98 / + 21 AS col2
----
4

query I rowsort
SELECT DISTINCT - 82 * - - ( + 93 ) AS col2
----
-7626

query I rowsort
SELECT ALL + 23 * + 79 col1
----
1817

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

skipif mysql # not compatible
query I rowsort label-3784
SELECT - MAX ( DISTINCT - 37 )
----
37

query I rowsort
SELECT ALL - + 34 * + ( + 98 )
----
-3332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT - + 63 - - CAST( 14 AS SIGNED ) + - 45 * 83 * + 42 * + ( - CAST( + - 74 AS SIGNED ) ) + - - 44 + + - 28
----
-11608413

skipif mysql # not compatible
query I rowsort label-3786
SELECT - + 63 - - CAST ( 14 AS INTEGER ) + - 45 * 83 * + 42 * + ( - CAST ( + - 74 AS INTEGER ) ) + - - 44 + + - 28
----
-11608413

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3787
SELECT ALL MIN( - + 53 ) DIV + - MIN( + 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL MIN ( - + 53 ) / + - MIN ( + 32 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT - COUNT( * ) DIV 49 + - + 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3788
SELECT - COUNT ( * ) / 49 + - + 21 AS col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT ALL 42 * - + MIN( ALL - 20 ) * 28 - - COUNT( * ) * 57 + + 83 + - 1 DIV + 59 AS col0
----
23660

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL 42 * - + MIN ( ALL - 20 ) * 28 - - COUNT ( * ) * 57 + + 83 + - 1 / + 59 AS col0
----
23660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT + CAST( + 84 AS SIGNED ) + 18
----
102

skipif mysql # not compatible
query I rowsort label-3790
SELECT + CAST ( + 84 AS INTEGER ) + 18
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT ALL + - 30 * - 51 * - - 4 + + 57, 83 + + COUNT( * ) AS col1
----
6177
84

skipif mysql # not compatible
query II rowsort label-3791
SELECT ALL + - 30 * - 51 * - - 4 + + 57, 83 + + COUNT ( * ) AS col1
----
6177
84

query II rowsort
SELECT DISTINCT 67 * - + 70 + - 89 + 57 AS col1, 66 AS col1
----
-4722
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL - 47 + - + 95 * - + 7 + COUNT( * ) col2
----
619

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - 47 + - + 95 * - + 7 + COUNT ( * ) col2
----
619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT + NULLIF ( SUM( ALL 56 ), - CAST( NULL AS SIGNED ) * - 81 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3794
SELECT + NULLIF ( SUM ( ALL 56 ), - CAST ( NULL AS INTEGER ) * - 81 ) AS col2
----
56

query I rowsort
SELECT DISTINCT - + 17 + - 87 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT ALL + - 55 + - 49 AS col1, - ( + COUNT( * ) ) + NULLIF ( - + 55, + 97 * - - 49 - + 61 ) + COUNT( * ) * COUNT( * ) col2
----
-104
-55

skipif mysql # not compatible
query II rowsort label-3796
SELECT ALL + - 55 + - 49 AS col1, - ( + COUNT ( * ) ) + NULLIF ( - + 55, + 97 * - - 49 - + 61 ) + COUNT ( * ) * COUNT ( * ) col2
----
-104
-55

query I rowsort
SELECT + 46 * 46 + + 49 AS col2
----
2165

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL - + COUNT( * ) * + - COUNT( * ) + 26
----
27

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - + COUNT ( * ) * + - COUNT ( * ) + 26
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT COUNT( * ) + - + 26
----
-25

skipif mysql # not compatible
query I rowsort label-3799
SELECT COUNT ( * ) + - + 26
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT + 93 + - 64 * 45 * + + COALESCE ( - COUNT( * ), - - 45 ) * - ( 51 ) + + - COUNT( * ) AS col1
----
-146788

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT + 93 + - 64 * 45 * + + COALESCE ( - COUNT ( * ), - - 45 ) * - ( 51 ) + + - COUNT ( * ) AS col1
----
-146788

query I rowsort
SELECT 85 * - 44 AS col2
----
-3740

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT DISTINCT - 20 DIV + 20 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT - 20 / + 20 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3803
SELECT 4 DIV + 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3803
SELECT 4 / + 46 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT 88 * - 17 AS col2
----
-1496

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT DISTINCT - ( + - 16 ) DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - ( + - 16 ) / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ALL COUNT( * ) - + + SUM( + - 39 ) + 16 * - COUNT( * ) * - 72 * + 12
----
13864

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL COUNT ( * ) - + + SUM ( + - 39 ) + 16 * - COUNT ( * ) * - 72 * + 12
----
13864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT 30 / ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT 30 / ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 3 * + 31 AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT 36 + + ( - + CAST( NULL AS SIGNED ) ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT 36 + + ( - + CAST ( NULL AS INTEGER ) ) + - 91
----
NULL

query I rowsort
SELECT COALESCE ( - 77, ( + 53 ) ) * + 20
----
-1540

query I rowsort
SELECT ALL + ( 74 ) * + 16
----
1184

query I rowsort
SELECT 17 + - 37
----
-20

query I rowsort
SELECT 26 + + 22 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT COUNT( DISTINCT + + 82 ) - + 52
----
-51

skipif mysql # not compatible
query I rowsort label-3815
SELECT COUNT ( DISTINCT + + 82 ) - + 52
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3816
SELECT ALL 2, 70 * 43 + CAST( NULL AS SIGNED ) * + + 42 AS col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-3816
SELECT ALL 2, 70 * 43 + CAST ( NULL AS INTEGER ) * + + 42 AS col0
----
2
NULL

query I rowsort
SELECT - 46 + 28 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT MIN( DISTINCT ( + 56 ) ) * 15 col1
----
840

skipif mysql # not compatible
query I rowsort label-3818
SELECT MIN ( DISTINCT ( + 56 ) ) * 15 col1
----
840

query I rowsort
SELECT ALL ( - + 54 ) * 55
----
-2970

query I rowsort
SELECT ALL 47 * - 81
----
-3807

query I rowsort
SELECT 77 * - 80 AS col2
----
-6160

query I rowsort
SELECT 21 + - - 23
----
44

query I rowsort
SELECT ALL ( 85 ) + + 74
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-3824
SELECT - ( + COUNT( + 65 ) ) AS col0, 13 * - + 95
----
-1
-1235

skipif mysql # not compatible
query II rowsort label-3824
SELECT - ( + COUNT ( + 65 ) ) AS col0, 13 * - + 95
----
-1
-1235

query I rowsort
SELECT ALL 70 + 79 col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + + MAX( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-3826
SELECT + + MAX ( - 55 )
----
-55

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3828
SELECT + + 31 AS col0, COUNT( ALL 85 ) * 72 AS col1
----
31
72

skipif mysql # not compatible
query II rowsort label-3828
SELECT + + 31 AS col0, COUNT ( ALL 85 ) * 72 AS col1
----
31
72

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

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

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

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

query I rowsort
SELECT DISTINCT + 18 + + + 0 * - 94 - - COALESCE ( 81, - 83 ) - + 91
----
8

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

query I rowsort
SELECT ALL - 96 + - 81 AS col1
----
-177

query II rowsort
SELECT ALL - 67 col1, + 62 * - 51 AS col2
----
-67
-3162

query II rowsort
SELECT 26 * 3 * + 37 col1, + 78
----
2886
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT DISTINCT 77 DIV - + 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT 77 / - + 40 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT ALL MAX( - - NULLIF ( + 81, - 41 ) ) + + + 39
----
120

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL MAX ( - - NULLIF ( + 81, - 41 ) ) + + + 39
----
120

query II rowsort
SELECT 8 AS col1, ( - ( - - ( 93 ) ) )
----
8
-93

query I rowsort
SELECT ALL 59 - - 70 + 82
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ( - 23 ) * - 13 - - 93 + - 78 * - 33 - - - 66 + + + COUNT( * ) - 88 * + 51 AS col2
----
-1587

skipif mysql # not compatible
query I rowsort label-3840
SELECT ( - 23 ) * - 13 - - 93 + - 78 * - 33 - - - 66 + + + COUNT ( * ) - 88 * + 51 AS col2
----
-1587

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL - COALESCE ( 95, 31 + - + 1 + + 69 * - 85 * COUNT( * ) * - + 87, + ( + 48 ) * + 1 + - + 56 ) * + 30 AS col1
----
-2850

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL - COALESCE ( 95, 31 + - + 1 + + 69 * - 85 * COUNT ( * ) * - + 87, + ( + 48 ) * + 1 + - + 56 ) * + 30 AS col1
----
-2850

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

skipif mysql # not compatible
query II rowsort label-3842
SELECT ALL 65 AS col2, 75 * - COUNT ( * )
----
65
-75

query I rowsort
SELECT 20 * 72
----
1440

query II rowsort
SELECT ALL 23 AS col1, - 79
----
23
-79

query II rowsort
SELECT ALL 74 AS col0, - 14 * ( + 30 ) AS col2
----
74
-420

query I rowsort
SELECT - AVG ( + CASE - - 15 WHEN - + 85 * - 36 / - 9 - 56 THEN - 20 * + 50 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT 39 - - + COUNT( * ) * + NULLIF ( + 95, + + 52 ) + - 44 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3847
SELECT 39 - - + COUNT ( * ) * + NULLIF ( + 95, + + 52 ) + - 44 AS col2
----
90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT 46 * 72 DIV - 68 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3849
SELECT 46 * 72 / - 68 AS col1
----
-48

query II rowsort
SELECT ALL 34 AS col2, 62 * + 5 * 71 * + 43 AS col2
----
34
946430

query I rowsort
SELECT 29 + + 69 + - + 42
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3852
SELECT ALL - 72 / + CASE - 89 WHEN - - 36 * + CASE 34 WHEN + 63 + - + 39 THEN - CAST( NULL AS SIGNED ) * COUNT( * ) - + 88 WHEN + - 2 + - 15 + 22 * + 72 * - + 82 * + + ( + ( - + 54 ) ) + COALESCE ( - + 35, - 17 ) THEN + - NULLIF ( + 41, 94 ) * + - 32 * - 49 ELSE 52 END THEN + 49 END AS col1, - 49 * + - 12 AS col2
----
NULL
588

skipif mysql # not compatible
query II rowsort label-3852
SELECT ALL - 72 / + CASE - 89 WHEN - - 36 * + CASE 34 WHEN + 63 + - + 39 THEN - CAST ( NULL AS INTEGER ) * COUNT ( * ) - + 88 WHEN + - 2 + - 15 + 22 * + 72 * - + 82 * + + ( + ( - + 54 ) ) + COALESCE ( - + 35, - 17 ) THEN + - NULLIF ( + 41, 94 ) * + - 32 * - 49 ELSE 52 END THEN + 49 END AS col1, - 49 * + - 12 AS col2
----
NULL
588

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT 36 * - - COALESCE ( + 52, 68 * + 36 * ( - + COUNT( + 92 ) ) ) AS col2
----
1872

skipif mysql # not compatible
query I rowsort label-3853
SELECT 36 * - - COALESCE ( + 52, 68 * + 36 * ( - + COUNT ( + 92 ) ) ) AS col2
----
1872

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT DISTINCT + 81 DIV + - 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT + 81 / + - 41 AS col1
----
-1

query II rowsort
SELECT DISTINCT 2 AS col1, - 95 * - 36
----
2
3420

query I rowsort
SELECT ALL + 36 + + - 18 AS col2
----
18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3858
SELECT 46 DIV 73 * COUNT( * ) + - COALESCE ( + COUNT( * ), 41, 97 ) * + 52 * - MAX( ALL 87 )
----
4524

skipif mysql # not compatible
query I rowsort label-3858
SELECT 46 / 73 * COUNT ( * ) + - COALESCE ( + COUNT ( * ), 41, 97 ) * + 52 * - MAX ( ALL 87 )
----
4524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT ALL 51 * - 72 * + CAST( + COUNT( * ) AS SIGNED ) + - 34 + - CAST( - 29 AS SIGNED ) * 54
----
-2140

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL 51 * - 72 * + CAST ( + COUNT ( * ) AS INTEGER ) + - 34 + - CAST ( - 29 AS INTEGER ) * 54
----
-2140

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3860
SELECT + - 41 DIV 38 + 81 DIV - - 2 - 23 * - COALESCE ( + - 31, - AVG ( DISTINCT - 55 ) DIV + CAST( NULL AS SIGNED ) )
----
-674

skipif mysql # not compatible
query I rowsort label-3860
SELECT + - 41 / 38 + 81 / - - 2 - 23 * - COALESCE ( + - 31, - AVG ( DISTINCT - 55 ) / + CAST ( NULL AS INTEGER ) )
----
-674

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL 59 * - 10 * + + 53 + COUNT( * ) + - - ( + COUNT( * ) ) * 10
----
-31259

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL 59 * - 10 * + + 53 + COUNT ( * ) + - - ( + COUNT ( * ) ) * 10
----
-31259

query I rowsort
SELECT DISTINCT + 40 * - 74 + + 82 * + 93 AS col2
----
4666

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT + + COALESCE ( 51, - + 73 - + + COUNT( * ), - + COUNT( * ) * + - COUNT( * ), - NULLIF ( - 70, - COALESCE ( - 29, - - 49 + - COALESCE ( 48, 19 ) ) ) )
----
51

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + + COALESCE ( 51, - + 73 - + + COUNT ( * ), - + COUNT ( * ) * + - COUNT ( * ), - NULLIF ( - 70, - COALESCE ( - 29, - - 49 + - COALESCE ( 48, 19 ) ) ) )
----
51

query I rowsort
SELECT ALL - 97 * - 31 * + 51 + + ( - 16 ) col1
----
153341

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

skipif mysql # not compatible
query I rowsort label-3866
SELECT + CAST ( 10 AS INTEGER ) - + + COUNT ( * )
----
9

query II rowsort
SELECT ALL + 51, 26 AS col2
----
51
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT 50 * + 80 + + + NULLIF ( + + 73, COUNT( * ) / - - 95 ) AS col2
----
4073

skipif mysql # not compatible
query I rowsort label-3868
SELECT 50 * + 80 + + + NULLIF ( + + 73, COUNT ( * ) / - - 95 ) AS col2
----
4073

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT + - COUNT( * ) - + 79 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3869
SELECT + - COUNT ( * ) - + 79 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - + 34 * - SUM( ALL 69 )
----
2346

skipif mysql # not compatible
query I rowsort label-3870
SELECT - + 34 * - SUM ( ALL 69 )
----
2346

query II rowsort
SELECT 88 col0, + 42 * + 21
----
88
882

query I rowsort
SELECT DISTINCT 66 * + 36 * 78 col0
----
185328

query II rowsort
SELECT + - 15, - 26 - 2 col0
----
-15
-28

query I rowsort
SELECT + + 84 + - - 88 AS col0
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3875
SELECT + COALESCE ( ( - - 23 ), ( AVG ( 75 ) ) * + 65 DIV 43, + 99 * 48 + - COUNT( * ) - + - 12 + + 31 ) * 88 - + 21 + 14 * - + 99 * + + 28
----
-36805

skipif mysql # not compatible
query I rowsort label-3875
SELECT + COALESCE ( ( - - 23 ), ( AVG ( 75 ) ) * + 65 / 43, + 99 * 48 + - COUNT ( * ) - + - 12 + + 31 ) * 88 - + 21 + 14 * - + 99 * + + 28
----
-36805

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT MIN( + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3876
SELECT MIN ( + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT 11 * - + 73 + + SUM( DISTINCT + 16 )
----
-787

skipif mysql # not compatible
query I rowsort label-3877
SELECT 11 * - + 73 + + SUM ( DISTINCT + 16 )
----
-787

query I rowsort
SELECT - 0 * - - 29 + + + 32 AS col2
----
32

query I rowsort
SELECT ALL - 88 * - 55 * - 43 - 98 + - + 38
----
-208256

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT + 35 DIV 97 * - 44 * - - 32 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-3880
SELECT + 35 / 97 * - 44 * - - 32 / 88
----
0

query I rowsort
SELECT + 12 + + 57 + 59 + - 53 * - - 31 * 91 AS col1
----
-149385

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT MAX( - 54 ) AS col0, + 95
----
-54
95

skipif mysql # not compatible
query II rowsort label-3882
SELECT MAX ( - 54 ) AS col0, + 95
----
-54
95

query I rowsort
SELECT - NULLIF ( ( + - 66 ), + - 39 * + 90 + 13 ) col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT + AVG ( + 17 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT + AVG ( + 17 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3885
SELECT + 0 DIV + MAX( + ( - 8 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT + 0 / + MAX ( + ( - 8 ) )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT ALL ( - - 12 ) DIV + + ( - + 60 ) * 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL ( - - 12 ) / + + ( - + 60 ) * 20 AS col2
----
0

query I rowsort
SELECT + 76 * + 86 * + + 77
----
503272

query I rowsort
SELECT - 82 * + 54
----
-4428

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

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

query I rowsort
SELECT - NULLIF ( - + 22, + 1 )
----
22

query II rowsort
SELECT + 46 * 11 col2, 98 AS col1
----
506
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - ( 47 ) + - MIN( + + 94 ) + 21
----
-120

skipif mysql # not compatible
query I rowsort label-3893
SELECT - ( 47 ) + - MIN ( + + 94 ) + 21
----
-120

query I rowsort
SELECT + 10 * + 99 * - + 20
----
-19800

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - 70 + + + MAX( DISTINCT - 44 )
----
-114

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - 70 + + + MAX ( DISTINCT - 44 )
----
-114

query I rowsort
SELECT + 94 + + 64 + + 2 AS col1
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3898
SELECT + ( + 51 ) + + COUNT( CAST( NULL AS SIGNED ) ) + + 34
----
85

skipif mysql # not compatible
query I rowsort label-3898
SELECT + ( + 51 ) + + COUNT ( CAST ( NULL AS INTEGER ) ) + + 34
----
85

query I rowsort
SELECT - 78 - + 31 col1
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT ALL - - 41 / + COUNT( * ) + - CASE WHEN ( NULL ) = + 16 THEN - 29 + 61 + - 92 + 62 * 89 ELSE - + ( 94 ) * 54 END + + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - - 41 / + COUNT ( * ) + - CASE WHEN ( NULL ) = + 16 THEN - 29 + 61 + - 92 + 62 * 89 ELSE - + ( 94 ) * 54 END + + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3901
SELECT - + 23 + 66, COUNT( * ) AS col1
----
43
1

skipif mysql # not compatible
query II rowsort label-3901
SELECT - + 23 + 66, COUNT ( * ) AS col1
----
43
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3902
SELECT DISTINCT + 18 DIV COUNT( * ) AS col1, 14 AS col2
----
18
14

skipif mysql # not compatible
query II rowsort label-3902
SELECT DISTINCT + 18 / COUNT ( * ) AS col1, 14 AS col2
----
18
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3903
SELECT + CASE - 31 WHEN - - 38 * - 82 + + + 1 * - 37 / - - 23 THEN + - 86 + 40 + + - MAX( - 30 ) * + NULLIF ( + 19, - 19 ) * CAST( NULL AS SIGNED ) + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT + CASE - 31 WHEN - - 38 * - 82 + + + 1 * - 37 / - - 23 THEN + - 86 + 40 + + - MAX ( - 30 ) * + NULLIF ( + 19, - 19 ) * CAST ( NULL AS INTEGER ) + + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT ALL - 21 DIV - 70 - 75 + - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - 21 / - 70 - 75 + - COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL - + NULLIF ( COALESCE ( 25, - - 29, 19 + + + 19 ), + - 32 ) * COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - + NULLIF ( COALESCE ( 25, - - 29, 19 + + + 19 ), + - 32 ) * COUNT ( * ) AS col1
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT - - NULLIF ( - + ( - + 82 ), + COUNT( * ) - 7 + + 92 * - 40 + - CASE - + ( 26 ) WHEN 78 THEN - ( - ( - - 5 ) ) * + 19 END ) * + - 12 col0
----
-984

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT - - NULLIF ( - + ( - + 82 ), + COUNT ( * ) - 7 + + 92 * - 40 + - CASE - + ( 26 ) WHEN 78 THEN - ( - ( - - 5 ) ) * + 19 END ) * + - 12 col0
----
-984

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - - COUNT( * ) * 5 + - 34
----
-29

skipif mysql # not compatible
query I rowsort label-3908
SELECT - - COUNT ( * ) * 5 + - 34
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3909
SELECT DISTINCT + 82 col0, + COUNT( * ) + + NULLIF ( - 14, COALESCE ( - ( - + 48 ), + NULLIF ( 88, CAST( - 22 AS SIGNED ) + 98 ) ) ) AS col0
----
82
-13

skipif mysql # not compatible
query II rowsort label-3909
SELECT DISTINCT + 82 col0, + COUNT ( * ) + + NULLIF ( - 14, COALESCE ( - ( - + 48 ), + NULLIF ( 88, CAST ( - 22 AS INTEGER ) + 98 ) ) ) AS col0
----
82
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL + CASE + 90 WHEN 0 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + CASE + 90 WHEN 0 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 24 * + 57
----
-1368

query II rowsort
SELECT NULLIF ( - - 98, - 53 * - 57 * + 6 - + ( + 55 ) * 2 ) col0, + 88 * 1 * + 91 * - + ( 67 )
----
98
-536536

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT + NULLIF ( 25, + COUNT( + 97 ) )
----
25

skipif mysql # not compatible
query I rowsort label-3913
SELECT + NULLIF ( 25, + COUNT ( + 97 ) )
----
25

query I rowsort
SELECT NULLIF ( - - 72, 11 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + NULLIF ( 8, COALESCE ( + - 84, 70, + 45 + - SUM( DISTINCT - - 97 ) ) )
----
8

skipif mysql # not compatible
query I rowsort label-3915
SELECT + NULLIF ( 8, COALESCE ( + - 84, 70, + 45 + - SUM ( DISTINCT - - 97 ) ) )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT ALL ( - + 70 ) * - CAST( - 7 AS SIGNED )
----
-490

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL ( - + 70 ) * - CAST ( - 7 AS INTEGER )
----
-490

onlyif mysql # aggregate syntax: 
query II rowsort label-3917
SELECT ALL ( - + COUNT( * ) ) * - 64 * + - 87 * + 91 + + - 75 AS col0, + COUNT( * ) AS col1
----
-506763
1

skipif mysql # not compatible
query II rowsort label-3917
SELECT ALL ( - + COUNT ( * ) ) * - 64 * + - 87 * + 91 + + - 75 AS col0, + COUNT ( * ) AS col1
----
-506763
1

query I rowsort
SELECT - NULLIF ( - - NULLIF ( - ( + - 86 ), + 74 * - 22 - + + 10 ), + 34 + + + 69 )
----
-86

query I rowsort
SELECT ALL + 81 * + 4 AS col2
----
324

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT DISTINCT MAX( ALL + 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT MAX ( ALL + 60 ) AS col2
----
60

query I rowsort
SELECT + ( - 44 ) - - + 50 * - 67 * - 21 * - 18 * - 26
----
32923756

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT - CAST( 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-3924
SELECT - CAST ( 55 AS INTEGER )
----
-55

query I rowsort
SELECT + 83 * - 75 AS col1
----
-6225

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT - - COUNT( * ), 64 col2
----
1
64

skipif mysql # not compatible
query II rowsort label-3926
SELECT - - COUNT ( * ), 64 col2
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL + COUNT( * ) + + 72 col1
----
73

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL + COUNT ( * ) + + 72 col1
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3928
SELECT ALL - 58 + - COALESCE ( - 57, - 65 * - 2 * - CAST( NULL AS SIGNED ) ) DIV - 47
----
-59

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - 58 + - COALESCE ( - 57, - 65 * - 2 * - CAST ( NULL AS INTEGER ) ) / - 47
----
-59

query II rowsort
SELECT ALL + 89 * + 27 + - 83, 48 * - 50 AS col1
----
2320
-2400

query I rowsort
SELECT DISTINCT + CASE 99 WHEN 33 * 88 THEN 30 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3931
SELECT ALL 25 - 5 DIV + + CASE - 17 WHEN + + MAX( ALL 28 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - - 2 * - 41 * + - 99 + 24 END + ( + 11 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL 25 - 5 / + + CASE - 17 WHEN + + MAX ( ALL 28 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - - 2 * - 41 * + - 99 + 24 END + ( + 11 ) AS col1
----
36

query I rowsort
SELECT ALL + 39 * + 14 AS col1
----
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT + CAST( ( - 8 ) AS SIGNED ) * 76 AS col0
----
-608

skipif mysql # not compatible
query I rowsort label-3933
SELECT + CAST ( ( - 8 ) AS INTEGER ) * 76 AS col0
----
-608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3934
SELECT ALL + MAX( 80 ) DIV - 75 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL + MAX ( 80 ) / - 75 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT - CAST( - 60 AS SIGNED ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT - CAST ( - 60 AS INTEGER ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT 93 * - + COALESCE ( - COUNT( - + 84 ), + 96 * + - MAX( DISTINCT + + 75 ) ) * 66 * + COUNT( * ) + + 36
----
6174

skipif mysql # not compatible
query I rowsort label-3936
SELECT 93 * - + COALESCE ( - COUNT ( - + 84 ), + 96 * + - MAX ( DISTINCT + + 75 ) ) * 66 * + COUNT ( * ) + + 36
----
6174

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT - MIN( + + 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - MIN ( + + 62 ) AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3938
SELECT 1 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3938
SELECT 1 / 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT - ( 82 ) * - + 2 + MIN( - 94 ) * 8 AS col0
----
-588

skipif mysql # not compatible
query I rowsort label-3939
SELECT - ( 82 ) * - + 2 + MIN ( - 94 ) * 8 AS col0
----
-588

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

skipif mysql # not compatible
query I rowsort label-3940
SELECT 40 + + 89 * - COUNT ( ( - + 22 ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL - COUNT( 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL - COUNT ( 19 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT DISTINCT - COUNT( - 63 ) * + 29
----
-29

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT - COUNT ( - 63 ) * + 29
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT 14 DIV - + 41
----
0

skipif mysql # not compatible
query I rowsort label-3943
SELECT 14 / - + 41
----
0

query I rowsort
SELECT 29 + ( 85 ) AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT 86 * + ( 7 ) * - - 37 * + + 45 + + COALESCE ( - COUNT( * ), + 82 ) AS col0
----
1002329

skipif mysql # not compatible
query I rowsort label-3945
SELECT 86 * + ( 7 ) * - - 37 * + + 45 + + COALESCE ( - COUNT ( * ), + 82 ) AS col0
----
1002329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT ALL - COUNT( * ) + - CAST( - 20 AS SIGNED ) col2
----
19

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL - COUNT ( * ) + - CAST ( - 20 AS INTEGER ) col2
----
19

query I rowsort
SELECT ALL + 50 + 18 * + 79 + - + 64
----
1408

query II rowsort
SELECT DISTINCT - 5 + + 10, + 79 * + + 97 AS col0
----
5
7663

query I rowsort
SELECT ALL + 50 + 86 + + 15 AS col1
----
151

query I rowsort
SELECT DISTINCT + 32 * - + 60 AS col1
----
-1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT - COUNT( ALL + 80 ) * - COUNT( * ) * 18 + + 49 - + 98 * 91 * NULLIF ( + ( + - 77 ), - + 92 + + AVG ( ALL + 46 ) - - 1 + + 75 * + 29 + - 73 * 37 * 8 + 96 ) DIV - - 52 col1
----
13272

skipif mysql # not compatible
query I rowsort label-3951
SELECT - COUNT ( ALL + 80 ) * - COUNT ( * ) * 18 + + 49 - + 98 * 91 * NULLIF ( + ( + - 77 ), - + 92 + + AVG ( ALL + 46 ) - - 1 + + 75 * + 29 + - 73 * 37 * 8 + 96 ) / - - 52 col1
----
13272

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT ALL SUM( - - 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL SUM ( - - 98 ) AS col2
----
98

query I rowsort
SELECT ALL - 29 - + 64 + + + 86 + 72 AS col1
----
65

query I rowsort
SELECT + 17 * 15 + + + 82 AS col1
----
337

query I rowsort
SELECT 98 + + 76 + 56 - - 77 - 8
----
299

query I rowsort
SELECT DISTINCT - - 39 - - 18 + 49
----
106

query I rowsort
SELECT - 40 + + - 82 col1
----
-122

query I rowsort
SELECT - 84 * + - 34 AS col2
----
2856

query I rowsort
SELECT 90 + + - 84 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3960
SELECT - 97 * + CASE + CAST( NULL AS SIGNED ) WHEN 24 + + ( - 30 ) THEN NULL ELSE COUNT( * ) + + 77 * - + 69 END
----
515264

skipif mysql # not compatible
query I rowsort label-3960
SELECT - 97 * + CASE + CAST ( NULL AS INTEGER ) WHEN 24 + + ( - 30 ) THEN NULL ELSE COUNT ( * ) + + 77 * - + 69 END
----
515264

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3962
SELECT ALL - SUM( DISTINCT + 63 ) col0, 35 AS col0
----
-63
35

skipif mysql # not compatible
query II rowsort label-3962
SELECT ALL - SUM ( DISTINCT + 63 ) col0, 35 AS col0
----
-63
35

query I rowsort
SELECT + 33 * 63 * 18
----
37422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT DISTINCT + - CAST( CAST( - 66 AS SIGNED ) AS SIGNED ) * - + 16 * 92 + - 21
----
-97173

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT + - CAST ( CAST ( - 66 AS INTEGER ) AS INTEGER ) * - + 16 * 92 + - 21
----
-97173

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT COUNT( * ) DIV COUNT( * ) * - 33 + + 20
----
-13

skipif mysql # not compatible
query I rowsort label-3966
SELECT COUNT ( * ) / COUNT ( * ) * - 33 + + 20
----
-13

query I rowsort
SELECT DISTINCT - ( - 63 ) * 85 + + - 32 AS col1
----
5323

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT + MAX( DISTINCT - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-3968
SELECT + MAX ( DISTINCT - 50 ) AS col2
----
-50

query I rowsort
SELECT 59 * - 32 AS col0
----
-1888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3970
SELECT ALL - SUM( ALL + 89 ) * + + CAST( + + COALESCE ( - 92, + + MAX( ( CAST( - + 33 AS SIGNED ) ) ) * 9 * + 94 * - 59, + - COUNT( * ) ) AS SIGNED ) + + 34
----
8222

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL - SUM ( ALL + 89 ) * + + CAST ( + + COALESCE ( - 92, + + MAX ( ( CAST ( - + 33 AS INTEGER ) ) ) * 9 * + 94 * - 59, + - COUNT ( * ) ) AS INTEGER ) + + 34
----
8222

query I rowsort
SELECT 30 * - - 26 AS col0
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL + ( - COUNT( * ) ) * - + 29 + - 50
----
-21

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + ( - COUNT ( * ) ) * - + 29 + - 50
----
-21

query I rowsort
SELECT ALL + 81 + 69 - + 59 - ( 70 ) * 47 + - 16 AS col2
----
-3215

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT SUM( - 40 ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-3974
SELECT SUM ( - 40 ) col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL 11 + COUNT( * ) * - - 52 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL 11 + COUNT ( * ) * - - 52 AS col0
----
63

query I rowsort
SELECT 55 * - 80
----
-4400

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL - 9 * - MIN( ALL 17 )
----
153

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - 9 * - MIN ( ALL 17 )
----
153

query I rowsort
SELECT ALL + 54 + + 69
----
123

query II rowsort
SELECT + 81 AS col0, 60
----
81
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT 74 DIV + - 43
----
-1

skipif mysql # not compatible
query I rowsort label-3980
SELECT 74 / + - 43
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT COUNT( * ) * + - ( + + CASE - 46 WHEN + COALESCE ( + - 85, - 57, - 47 ) THEN 78 * 27 * + 83 + - ( - 88 ) - 53 WHEN + - 25 * - 58 / 40 * MIN( DISTINCT - 61 ) THEN - 3 + + 66 WHEN + 36 + - ( + NULLIF ( 36, + + 92 ) ) * 87 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT COUNT ( * ) * + - ( + + CASE - 46 WHEN + COALESCE ( + - 85, - 57, - 47 ) THEN 78 * 27 * + 83 + - ( - 88 ) - 53 WHEN + - 25 * - 58 / 40 * MIN ( DISTINCT - 61 ) THEN - 3 + + 66 WHEN + 36 + - ( + NULLIF ( 36, + + 92 ) ) * 87 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL + 46 * - - 13
----
598

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

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

query I rowsort
SELECT ALL + COALESCE ( 75, 29 * - 53 )
----
75

query I rowsort
SELECT - 28 - - 65 AS col1
----
37

query II rowsort
SELECT + 5, + 35 AS col2
----
5
35

query I rowsort
SELECT + + 12 * 41
----
492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( - - 78 ) + 73 + ( + 67 ) * CASE WHEN - 19 = 97 THEN + 60 * - - 28 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( - - 78 ) + 73 + ( + 67 ) * CASE WHEN - 19 = 97 THEN + 60 * - - 28 ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL - 45 * 61 AS col2
----
-2745

query I rowsort
SELECT ALL 70 + + ( - + 67 ) AS col1
----
3

query I rowsort
SELECT - 84 + + + CASE 86 WHEN + 91 THEN + 89 WHEN - - 61 * + 13 THEN NULL END * 90 * - - 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - + 16 * - MIN( + 33 ) + 88 AS col2
----
616

skipif mysql # not compatible
query I rowsort label-3992
SELECT - + 16 * - MIN ( + 33 ) + 88 AS col2
----
616

query I rowsort
SELECT + 65 * + 96 * + - 86
----
-536640

query I rowsort
SELECT ALL 71 + CASE WHEN - 83 IS NULL THEN NULL ELSE - 94 END * + - 97 + 74
----
9263

query I rowsort
SELECT - 77 + - 41 + - 91 * 57 * + 5 AS col0
----
-26053

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

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

query I rowsort
SELECT ALL - 36 * 49 + + 52
----
-1712

query II rowsort
SELECT ALL + 0 AS col2, - 79 col2
----
0
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT + 91 * + + 62 + 34 - - COUNT( * ) AS col2
----
5677

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT + 91 * + + 62 + 34 - - COUNT ( * ) AS col2
----
5677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL 27 * 5 + + ( - CASE - - 12 WHEN 34 * CAST( + 55 AS SIGNED ) * - CAST( - + 98 AS SIGNED ) - - 67 + - 32 * + 6 + - 44 * - + 71 THEN - 88 + - + 32 ELSE - 90 * - COUNT( * ) + - 16 END ) col1
----
61

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL 27 * 5 + + ( - CASE - - 12 WHEN 34 * CAST ( + 55 AS INTEGER ) * - CAST ( - + 98 AS INTEGER ) - - 67 + - 32 * + 6 + - 44 * - + 71 THEN - 88 + - + 32 ELSE - 90 * - COUNT ( * ) + - 16 END ) col1
----
61

query I rowsort
SELECT + NULLIF ( 45, - + 22 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT + COUNT( * ) + 36 + + - 5
----
32

skipif mysql # not compatible
query I rowsort label-4002
SELECT + COUNT ( * ) + 36 + + - 5
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4003
SELECT DISTINCT + COUNT( * ), 27 * + + 23 + 44 DIV + 38 AS col1
----
1
622

skipif mysql # not compatible
query II rowsort label-4003
SELECT DISTINCT + COUNT ( * ), 27 * + + 23 + 44 / + 38 AS col1
----
1
622

query I rowsort
SELECT 22 * - 75 + - + 61
----
-1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4005
SELECT ALL 5 * + - CAST( NULL AS SIGNED ), + SUM( ALL - 37 ) AS col1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-4005
SELECT ALL 5 * + - CAST ( NULL AS INTEGER ), + SUM ( ALL - 37 ) AS col1
----
NULL
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + MAX( DISTINCT - 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4006
SELECT + MAX ( DISTINCT - 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT + 57 * - + NULLIF ( + CASE + 55 WHEN - 90 * + 42 THEN + 37 + - 5 WHEN COUNT( + 4 ) THEN - ( - - 20 ) END, + + 33 + + 96 + + - 43 ) * + 20 + - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT + 57 * - + NULLIF ( + CASE + 55 WHEN - 90 * + 42 THEN + 37 + - 5 WHEN COUNT ( + 4 ) THEN - ( - - 20 ) END, + + 33 + + 96 + + - 43 ) * + 20 + - - 34
----
NULL

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

query I rowsort
SELECT ALL 76 * + 15 - - 67 AS col1
----
1207

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT + 63 + - 86 DIV + 22 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4010
SELECT + 63 + - 86 / + 22 AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4011
SELECT - MIN( + CAST( NULL AS SIGNED ) ) * - - 40 * AVG ( DISTINCT - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) * - - 40 * AVG ( DISTINCT - 94 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4012
SELECT ALL + COUNT( * ), - 29 DIV 79 + + 70 * - 90 col0
----
1
-6300

skipif mysql # not compatible
query II rowsort label-4012
SELECT ALL + COUNT ( * ), - 29 / 79 + + 70 * - 90 col0
----
1
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + COALESCE ( + ( + 70 ), + COUNT( * ) * + + COUNT( * ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + COALESCE ( + ( + 70 ), + COUNT ( * ) * + + COUNT ( * ) ) AS col1
----
70

query I rowsort
SELECT CASE WHEN NOT 65 IS NULL THEN + 55 - 50 * + 68 * + 16 + - + 46 ELSE NULL END AS col2
----
-54391

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT ALL - 87 DIV - 67
----
1

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - 87 / - 67
----
1

query I rowsort
SELECT DISTINCT + 78 * - 57
----
-4446

query I rowsort
SELECT DISTINCT 88 * 17 - + 83
----
1413

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL + MAX( DISTINCT + 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + MAX ( DISTINCT + 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + - 96 * - - COUNT( + + 76 )
----
-96

skipif mysql # not compatible
query I rowsort label-4019
SELECT + - 96 * - - COUNT ( + + 76 )
----
-96

query I rowsort
SELECT - - 90 * + 65 AS col2
----
5850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4021
SELECT - - 32 + + CAST( + 49 AS SIGNED ) + 99
----
180

skipif mysql # not compatible
query I rowsort label-4021
SELECT - - 32 + + CAST ( + 49 AS INTEGER ) + 99
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4022
SELECT + + NULLIF ( 77, - - NULLIF ( + + 16, - + 52 * + MAX( DISTINCT - + 71 ) ) ) * - - 40 DIV + COUNT( * ) AS col0
----
3080

skipif mysql # not compatible
query I rowsort label-4022
SELECT + + NULLIF ( 77, - - NULLIF ( + + 16, - + 52 * + MAX ( DISTINCT - + 71 ) ) ) * - - 40 / + COUNT ( * ) AS col0
----
3080

query I rowsort
SELECT ALL - + 85 * - - 23 + - 70
----
-2025

query I rowsort
SELECT + 61 + 4
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4025
SELECT + 12, MIN( - 50 ) AS col1
----
12
-50

skipif mysql # not compatible
query II rowsort label-4025
SELECT + 12, MIN ( - 50 ) AS col1
----
12
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT - 35 DIV 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4026
SELECT - 35 / 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + + 33 * - 78 * + COUNT( * ) + 84 + + 74
----
-2416

skipif mysql # not compatible
query I rowsort label-4027
SELECT + + 33 * - 78 * + COUNT ( * ) + 84 + + 74
----
-2416

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

query I rowsort
SELECT ALL 58 * 94 + + 98 AS col2
----
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT DISTINCT + NULLIF ( 48, 27 + COALESCE ( + SUM( + - 27 ), - ( + + 55 ) * + 46 + + MIN( ALL + - 34 ) + + - 31 / NULLIF ( 54, + + 53 ) * - - ( - + 1 ) + + 22 + 44 * + - 13 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT + NULLIF ( 48, 27 + COALESCE ( + SUM ( + - 27 ), - ( + + 55 ) * + 46 + + MIN ( ALL + - 34 ) + + - 31 / NULLIF ( 54, + + 53 ) * - - ( - + 1 ) + + 22 + 44 * + - 13 ) ) AS col0
----
48

query I rowsort
SELECT - + 64 + 18 * - + 69
----
-1306

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT MAX( DISTINCT 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT MAX ( DISTINCT 73 )
----
73

query I rowsort
SELECT - - 89 + - 68
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT NULLIF ( - 3, COUNT( * ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4034
SELECT NULLIF ( - 3, COUNT ( * ) ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4035
SELECT - + COUNT( * ) + - + ( + CAST( + 37 AS SIGNED ) ) AS col1, + 69 AS col1
----
-38
69

skipif mysql # not compatible
query II rowsort label-4035
SELECT - + COUNT ( * ) + - + ( + CAST ( + 37 AS INTEGER ) ) AS col1, + 69 AS col1
----
-38
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4036
SELECT 11, 63 * - 93 * COUNT( * ) AS col0
----
11
-5859

skipif mysql # not compatible
query II rowsort label-4036
SELECT 11, 63 * - 93 * COUNT ( * ) AS col0
----
11
-5859

query II rowsort
SELECT - - 78 AS col2, + 99 - - - 23 AS col2
----
78
76

query I rowsort
SELECT - - 39 + - + ( + + 76 ) AS col0
----
-37

query I rowsort
SELECT ALL - 34 + - - 87 AS col1
----
53

query I rowsort
SELECT - 91 * + 46 * + + 63 * - 75 * + 85 AS col0
----
1681202250

query II rowsort
SELECT 86 AS col2, - 35 * - + 43 AS col2
----
86
1505

query I rowsort
SELECT ALL + 26 * - 65 * + - 7
----
11830

query I rowsort
SELECT - 47 * + 89
----
-4183

query II rowsort
SELECT ALL 18 + - 59, - 78 AS col1
----
-41
-78

query II rowsort
SELECT - 11 * - 31 AS col0, + 56 + - - 36 AS col0
----
341
92

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

query I rowsort
SELECT + ( - - NULLIF ( 35, - 97 / - 99 / - + AVG ( DISTINCT + + 4 ) + + - 24 ) ) AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT ALL 58 DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL 58 / - - 96
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4050
SELECT DISTINCT 86 * 52 DIV + - CAST( - + 85 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT 86 * 52 / + - CAST ( - + 85 AS INTEGER )
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT COUNT( - 41 ) + - 11 * 66 col0
----
-725

skipif mysql # not compatible
query I rowsort label-4052
SELECT COUNT ( - 41 ) + - 11 * 66 col0
----
-725

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4053
SELECT + MIN( DISTINCT + ( - 47 ) ) * - - COUNT( * ) * + 78 + 2 - + COALESCE ( 47, + 98 DIV + - 4 DIV 70 + COUNT( * ) ) col2, + COUNT( * ) AS col0
----
-3711
1

skipif mysql # not compatible
query II rowsort label-4053
SELECT + MIN ( DISTINCT + ( - 47 ) ) * - - COUNT ( * ) * + 78 + 2 - + COALESCE ( 47, + 98 / + - 4 / 70 + COUNT ( * ) ) col2, + COUNT ( * ) AS col0
----
-3711
1

query I rowsort
SELECT DISTINCT + + 3 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT SUM( DISTINCT 13 ) * 16 AS col0
----
208

skipif mysql # not compatible
query I rowsort label-4055
SELECT SUM ( DISTINCT 13 ) * 16 AS col0
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL + 79 + - MAX( - 77 ) - + COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL + 79 + - MAX ( - 77 ) - + COUNT ( * )
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4057
SELECT ALL - 98 + - CAST( NULL AS SIGNED ) AS col1, - ( + - COUNT( * ) ) * 94 + + - NULLIF ( - 31, + COUNT( * ) ) + + ( + 36 ) + - 48 - + 35 col1
----
NULL
78

skipif mysql # not compatible
query II rowsort label-4057
SELECT ALL - 98 + - CAST ( NULL AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * 94 + + - NULLIF ( - 31, + COUNT ( * ) ) + + ( + 36 ) + - 48 - + 35 col1
----
NULL
78

query I rowsort
SELECT ALL + 40 + + 74 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL CASE + + 39 WHEN + - 48 * - ( - 56 ) + SUM( + 93 ) THEN ( - 42 ) * + + 70 ELSE + + 79 + + - 55 END col1
----
24

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL CASE + + 39 WHEN + - 48 * - ( - 56 ) + SUM ( + 93 ) THEN ( - 42 ) * + + 70 ELSE + + 79 + + - 55 END col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT ( 61 ) DIV - 22
----
-2

skipif mysql # not compatible
query I rowsort label-4060
SELECT ( 61 ) / - 22
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT - CAST( NULL AS SIGNED ) * + 32 / + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT - CAST ( NULL AS INTEGER ) * + 32 / + 15 AS col1
----
NULL

query I rowsort
SELECT 13 - + - ( + 25 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4063
SELECT DISTINCT - ( 65 ) + - CASE + 61 WHEN - - 25 * - 38 * + - 15 - - - 51 THEN 8 / + 23 ELSE NULL END AS col0, COUNT( * ) * + NULLIF ( - 46, 39 + 82 * + + MIN( DISTINCT - 25 ) * - 64 + + 75 + 58 * - - CAST( - ( - 12 ) AS SIGNED ) * 84 * CAST( - - 69 AS SIGNED ) / 68 ) col1
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-4063
SELECT DISTINCT - ( 65 ) + - CASE + 61 WHEN - - 25 * - 38 * + - 15 - - - 51 THEN 8 / + 23 ELSE NULL END AS col0, COUNT ( * ) * + NULLIF ( - 46, 39 + 82 * + + MIN ( DISTINCT - 25 ) * - 64 + + 75 + 58 * - - CAST ( - ( - 12 ) AS INTEGER ) * 84 * CAST ( - - 69 AS INTEGER ) / 68 ) col1
----
NULL
-46

query I rowsort
SELECT - 75 * + 81 + - 80 col0
----
-6155

query II rowsort
SELECT DISTINCT + 35 + 21 AS col1, + 21 AS col0
----
56
21

query I rowsort
SELECT DISTINCT - - 65 + - - 40 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL MAX( - + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL MAX ( - + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT + 55 + 50 - + 22 - + COUNT( * ) * - 98 * 62 AS col1
----
6159

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT + 55 + 50 - + 22 - + COUNT ( * ) * - 98 * 62 AS col1
----
6159

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT SUM( 7 ) + + 23
----
30

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT SUM ( 7 ) + + 23
----
30

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

skipif mysql # not compatible
query II rowsort label-4070
SELECT 6 AS col2, - COUNT ( * ) AS col1
----
6
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4071
SELECT ALL + 22 + + COUNT( * ) DIV 26 * + 81 + + + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL + 22 + + COUNT ( * ) / 26 * + 81 + + + COUNT ( * ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT 55 * + COUNT( * ) * - - 82 * + 43, COUNT( * ) AS col0
----
193930
1

skipif mysql # not compatible
query II rowsort label-4072
SELECT 55 * + COUNT ( * ) * - - 82 * + 43, COUNT ( * ) AS col0
----
193930
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT 29 + - 60 * - ( 10 ) * 52 + - + COUNT( * ) DIV - 40 col0
----
31229

skipif mysql # not compatible
query I rowsort label-4074
SELECT 29 + - 60 * - ( 10 ) * 52 + - + COUNT ( * ) / - 40 col0
----
31229

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ( 68 ) + - MIN( DISTINCT + 86 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4075
SELECT ( 68 ) + - MIN ( DISTINCT + 86 ) AS col0
----
-18

query I rowsort
SELECT 55 + 21 + 18
----
94

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

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL - MAX ( - 74 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4078
SELECT DISTINCT - 96 col0, - AVG ( - 68 ) - - COUNT( ALL + 24 ) / + - CASE SUM( ALL - CASE + 48 WHEN - 26 * 74 * - 5 THEN NULL ELSE + - 46 - - 18 END ) WHEN + 68 + + 5 THEN - COALESCE ( + ( - 1 ), + - 92 ) + + 46 / + ( ( + - 96 ) ) WHEN - 47 / 38 THEN NULL ELSE NULL END * - 53 * + - COUNT( * ) AS col2
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-4078
SELECT DISTINCT - 96 col0, - AVG ( - 68 ) - - COUNT ( ALL + 24 ) / + - CASE SUM ( ALL - CASE + 48 WHEN - 26 * 74 * - 5 THEN NULL ELSE + - 46 - - 18 END ) WHEN + 68 + + 5 THEN - COALESCE ( + ( - 1 ), + - 92 ) + + 46 / + ( ( + - 96 ) ) WHEN - 47 / 38 THEN NULL ELSE NULL END * - 53 * + - COUNT ( * ) AS col2
----
-96
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4079
SELECT 96 DIV + 87 + + 70, 78 - - 43 + + + 99 - - CAST( NULL AS SIGNED ) AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-4079
SELECT 96 / + 87 + + 70, 78 - - 43 + + + 99 - - CAST ( NULL AS INTEGER ) AS col1
----
71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT DISTINCT + 5 * - COALESCE ( - + 54, + - 89 * + - CAST( NULL AS SIGNED ) + + + 77 )
----
270

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT + 5 * - COALESCE ( - + 54, + - 89 * + - CAST ( NULL AS INTEGER ) + + + 77 )
----
270

query I rowsort
SELECT 83 + - 72 AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT ALL - 54, COUNT( * ) + - 58 + - COUNT( DISTINCT - + 11 ) AS col2
----
-54
-58

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL - 54, COUNT ( * ) + - 58 + - COUNT ( DISTINCT - + 11 ) AS col2
----
-54
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT + 99 DIV - 80 + + 55 * - 59 + - - 32 AS col1
----
-3214

skipif mysql # not compatible
query I rowsort label-4083
SELECT + 99 / - 80 + + 55 * - 59 + - - 32 AS col1
----
-3214

query I rowsort
SELECT 60 * - 79 AS col0
----
-4740

query II rowsort
SELECT + 43 col2, 90 AS col2
----
43
90

query I rowsort
SELECT 99 + + 73 * + 21 * 71
----
108942

query I rowsort
SELECT 73 * - - 71
----
5183

query I rowsort
SELECT - + 11 * 53 + + - 56
----
-639

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT + 57 DIV 48 * + 32
----
32

skipif mysql # not compatible
query I rowsort label-4089
SELECT + 57 / 48 * + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT - + COUNT( ALL + + 30 ) * + 96 + + - SUM( + - 5 ) + ( - COUNT( * ) ) + + 40 * + 75 * + 54 * - + 44
----
-7128092

skipif mysql # not compatible
query I rowsort label-4090
SELECT - + COUNT ( ALL + + 30 ) * + 96 + + - SUM ( + - 5 ) + ( - COUNT ( * ) ) + + 40 * + 75 * + 54 * - + 44
----
-7128092

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL + 49 + + - COUNT( * ) + - + 80 + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL + 49 + + - COUNT ( * ) + - + 80 + + COUNT ( * )
----
-31

query I rowsort
SELECT ALL ( + 63 ) + + 65 * + 43 col1
----
2858

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4093
SELECT ALL + 69 + + 50 * + 6 * - CAST( NULL AS SIGNED ) AS col1, + 22 * + 93 * - 10
----
NULL
-20460

skipif mysql # not compatible
query II rowsort label-4093
SELECT ALL + 69 + + 50 * + 6 * - CAST ( NULL AS INTEGER ) AS col1, + 22 * + 93 * - 10
----
NULL
-20460

query II rowsort
SELECT + + 36 AS col0, 41
----
36
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT - 23 + - + ( CASE - 66 WHEN COUNT( * ) THEN + - 40 ELSE + COUNT( * ) END )
----
-24

skipif mysql # not compatible
query I rowsort label-4095
SELECT - 23 + - + ( CASE - 66 WHEN COUNT ( * ) THEN + - 40 ELSE + COUNT ( * ) END )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT - 6 * - - SUM( 92 ), 54 * + + 28 AS col0
----
-552
1512

skipif mysql # not compatible
query II rowsort label-4096
SELECT - 6 * - - SUM ( 92 ), 54 * + + 28 AS col0
----
-552
1512

query I rowsort
SELECT ALL 80 + + 76
----
156

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

skipif mysql # not compatible
query I rowsort label-4098
SELECT + COUNT ( - 40 ) + - ( - - 37 ) * + 38 AS col2
----
-1405

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL + 6 + - - COUNT( + - 82 ) + 68
----
75

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + 6 + - - COUNT ( + - 82 ) + 68
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4100
SELECT COALESCE ( + 55, + 89 + + 14 * - - CASE + - 77 WHEN + 40 * + 25 - - 80 * + COUNT( * ) THEN NULL WHEN - 70 / - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - 81 THEN - 92 WHEN + + 93 THEN NULL END ) + - + 69 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4100
SELECT COALESCE ( + 55, + 89 + + 14 * - - CASE + - 77 WHEN + 40 * + 25 - - 80 * + COUNT ( * ) THEN NULL WHEN - 70 / - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - 81 THEN - 92 WHEN + + 93 THEN NULL END ) + - + 69 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL 26 - + NULLIF ( + 68, COUNT( * ) ) + + - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL 26 - + NULLIF ( + 68, COUNT ( * ) ) + + - COUNT ( * )
----
-43

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

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

query II rowsort
SELECT 55 + 50 AS col0, 14
----
105
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT 39 * + + COUNT( - 67 ) * 43 AS col0
----
1677

skipif mysql # not compatible
query I rowsort label-4104
SELECT 39 * + + COUNT ( - 67 ) * 43 AS col0
----
1677

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT 74 + + SUM( DISTINCT - 82 )
----
-8

skipif mysql # not compatible
query I rowsort label-4105
SELECT 74 + + SUM ( DISTINCT - 82 )
----
-8

query I rowsort
SELECT ALL 82 * + - 92 AS col1
----
-7544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT - ( - 84 ) + - 35 * MIN( - 57 ) - + - 6
----
2085

skipif mysql # not compatible
query I rowsort label-4108
SELECT - ( - 84 ) + - 35 * MIN ( - 57 ) - + - 6
----
2085

query I rowsort
SELECT DISTINCT 76 * - 31 AS col0
----
-2356

query II rowsort
SELECT ALL 35 * + - 62 col0, 9
----
-2170
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT - COALESCE ( + 19, - + 68 DIV - 84 * + + 54 - 72 * + + 10 DIV 22 DIV - 76 + + 30 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4111
SELECT - COALESCE ( + 19, - + 68 / - 84 * + + 54 - 72 * + + 10 / 22 / - 76 + + 30 ) AS col0
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL MIN( 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL MIN ( 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT + ( 88 ) * + 88 + 27 + 29 * - - COUNT( ALL 37 ) * - + 94 * - CASE 49 WHEN + - 98 THEN NULL WHEN - + 87 THEN - 18 - - 15 * 53 * MAX( + 5 ) END * + - 17 + + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT + ( 88 ) * + 88 + 27 + 29 * - - COUNT ( ALL 37 ) * - + 94 * - CASE 49 WHEN + - 98 THEN NULL WHEN - + 87 THEN - 18 - - 15 * 53 * MAX ( + 5 ) END * + - 17 + + 76 AS col2
----
NULL

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

query I rowsort
SELECT NULLIF ( 88, + 25 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4117
SELECT ALL - 23 * - - 91 - - MAX( DISTINCT - 32 ) AS col2, COUNT( * ) * - + 52 * - 82
----
-2125
4264

skipif mysql # not compatible
query II rowsort label-4117
SELECT ALL - 23 * - - 91 - - MAX ( DISTINCT - 32 ) AS col2, COUNT ( * ) * - + 52 * - 82
----
-2125
4264

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

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

query I rowsort
SELECT DISTINCT + CASE - - 3 WHEN + + 4 + + - 13 THEN + 94 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT + COUNT( - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4120
SELECT + COUNT ( - 61 )
----
1

query I rowsort
SELECT - 12 + + 58
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4122
SELECT CAST( 38 AS SIGNED ) AS col0, 72 AS col2
----
38
72

skipif mysql # not compatible
query II rowsort label-4122
SELECT CAST ( 38 AS INTEGER ) AS col0, 72 AS col2
----
38
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4123
SELECT ALL - - COUNT( * ) DIV - 17 * + 36 + + ( + ( - + 79 ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - - COUNT ( * ) / - 17 * + 36 + + ( + ( - + 79 ) ) AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT ALL 14 * - - 59 * + COUNT( * ) * + - CAST( - - 60 AS SIGNED )
----
-49560

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL 14 * - - 59 * + COUNT ( * ) * + - CAST ( - - 60 AS INTEGER )
----
-49560

query I rowsort
SELECT + 98 * - NULLIF ( + ( + + 53 ), - + 22 )
----
-5194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4126
SELECT 31 AS col0, - CASE + - 68 WHEN + - 29 + + 41 + - 3 * + 10 * + CAST( NULL AS SIGNED ) THEN 22 WHEN 16 * 88 + - + COUNT( 12 ) THEN + - 42 * + 6 WHEN + 36 * + + ( - 40 ) THEN NULL END
----
31
NULL

skipif mysql # not compatible
query II rowsort label-4126
SELECT 31 AS col0, - CASE + - 68 WHEN + - 29 + + 41 + - 3 * + 10 * + CAST ( NULL AS INTEGER ) THEN 22 WHEN 16 * 88 + - + COUNT ( 12 ) THEN + - 42 * + 6 WHEN + 36 * + + ( - 40 ) THEN NULL END
----
31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT - MIN( + - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-4127
SELECT - MIN ( + - 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - SUM( - + ( 16 ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4128
SELECT - SUM ( - + ( 16 ) ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL - 5 * + NULLIF ( - 63, - 50 / COUNT( DISTINCT - 87 ) )
----
315

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - 5 * + NULLIF ( - 63, - 50 / COUNT ( DISTINCT - 87 ) )
----
315

query I rowsort
SELECT + 17 * - 82 AS col1
----
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT - COALESCE ( + 10, + COUNT( - COALESCE ( + 29, + + 39, + 38 ) ) ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-4131
SELECT - COALESCE ( + 10, + COUNT ( - COALESCE ( + 29, + + 39, + 38 ) ) ) col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT ALL 93 DIV + 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL 93 / + 59 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT - COALESCE ( - - 12, - COUNT( * ) ), COUNT( * ) * + 38 AS col0
----
-12
38

skipif mysql # not compatible
query II rowsort label-4133
SELECT - COALESCE ( - - 12, - COUNT ( * ) ), COUNT ( * ) * + 38 AS col0
----
-12
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + ( - + COUNT( + - 80 ) ) + - 87
----
-88

skipif mysql # not compatible
query I rowsort label-4135
SELECT + ( - + COUNT ( + - 80 ) ) + - 87
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT + COUNT( ALL + ( - + 48 ) ) + + 18
----
19

skipif mysql # not compatible
query I rowsort label-4136
SELECT + COUNT ( ALL + ( - + 48 ) ) + + 18
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + 3 * + CASE - ( + 49 ) WHEN + - 57 THEN + 90 / + + 97 WHEN + 49 * + + 69 / - 86 THEN - + 77 - 75 ELSE NULL END * + + 81 + COUNT( * ) + MIN( 86 ) + - 69 + - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT + 3 * + CASE - ( + 49 ) WHEN + - 57 THEN + 90 / + + 97 WHEN + 49 * + + 69 / - 86 THEN - + 77 - 75 ELSE NULL END * + + 81 + COUNT ( * ) + MIN ( 86 ) + - 69 + - 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT ALL COUNT( * ) DIV + 98 + + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL COUNT ( * ) / + 98 + + 15 AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT DISTINCT 92 * CAST( + CASE - 10 WHEN + 27 * - + 82 + + 58 + + - 22 THEN - + NULLIF ( 9, + - 36 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT 92 * CAST ( + CASE - 10 WHEN + 27 * - + 82 + + 58 + + - 22 THEN - + NULLIF ( 9, + - 36 ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4140
SELECT - 9 DIV COUNT( * ) + 18 * 57 col0
----
1017

skipif mysql # not compatible
query I rowsort label-4140
SELECT - 9 / COUNT ( * ) + 18 * 57 col0
----
1017

query I rowsort
SELECT + 21 * - 39 AS col2
----
-819

query I rowsort
SELECT + 79 + - 92 AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT ALL + 97 DIV - 9 + 3
----
-7

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL + 97 / - 9 + 3
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT CAST( COALESCE ( 49, 86 ) AS SIGNED ) col0
----
49

skipif mysql # not compatible
query I rowsort label-4144
SELECT CAST ( COALESCE ( 49, 86 ) AS INTEGER ) col0
----
49

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

query I rowsort
SELECT + 61 * + 19 AS col2
----
1159

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

skipif mysql # not compatible
query I rowsort label-4147
SELECT ( + COUNT ( DISTINCT + 64 ) ) AS col2
----
1

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

query I rowsort
SELECT 72 * 46 + + 15 AS col2
----
3327

query I rowsort
SELECT ALL - 54 * - 94 - + 82 * 47
----
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT + SUM( DISTINCT - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT + SUM ( DISTINCT - 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT DISTINCT - 81 * COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - 81 * COUNT ( * ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT - 83 * COUNT( 65 )
----
-83

skipif mysql # not compatible
query I rowsort label-4153
SELECT - 83 * COUNT ( 65 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT + 95 + MAX( + NULLIF ( - CAST( NULL AS SIGNED ), - 24 ) ) * 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT + 95 + MAX ( + NULLIF ( - CAST ( NULL AS INTEGER ), - 24 ) ) * 22 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 90 * 61
----
-5490

query I rowsort
SELECT COALESCE ( 87, - ( + 56 ) * 36 ) AS col2
----
87

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

skipif mysql # not compatible
query I rowsort label-4157
SELECT 48 / COUNT ( * )
----
48

query I rowsort
SELECT 64 + 71 col2
----
135

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT COUNT( DISTINCT + 41 ) + + 24 * 86
----
2065

skipif mysql # not compatible
query I rowsort label-4161
SELECT COUNT ( DISTINCT + 41 ) + + 24 * 86
----
2065

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

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + COUNT ( * ) + 59 / 25
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ALL - 74 * + CASE + 44 WHEN 0 * - MAX( 56 ) + 34 THEN NULL WHEN + 22 THEN NULL WHEN 7 THEN 45 + + 48 * ( - 58 ) ELSE 89 END
----
-6586

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - 74 * + CASE + 44 WHEN 0 * - MAX ( 56 ) + 34 THEN NULL WHEN + 22 THEN NULL WHEN 7 THEN 45 + + 48 * ( - 58 ) ELSE 89 END
----
-6586

query I rowsort
SELECT 73 * - 96 AS col0
----
-7008

query I rowsort
SELECT 9 + - 78
----
-69

query I rowsort
SELECT DISTINCT 87 * - 13 AS col0
----
-1131

query I rowsort
SELECT ALL + 29 + COALESCE ( - 75 + 24 * - 99, 66 * 84 ) AS col1
----
-2422

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4168
SELECT DISTINCT - 57 * + CAST( AVG ( - CAST( NULL AS DECIMAL ) ) * 64 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - 57 * + CAST ( AVG ( - CAST ( NULL AS REAL ) ) * 64 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 71 + 60 AS col2
----
-11

query I rowsort
SELECT - 3 * - 69
----
207

query I rowsort
SELECT 65 * + 91
----
5915

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

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

query I rowsort
SELECT 67 * 4
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + + CASE + 69 WHEN AVG ( ALL - 29 ) THEN NULL WHEN + COUNT( * ) / 87 + ( - NULLIF ( COUNT( * ), + 28 + 77 ) ) THEN 29 - + 59 * + 7 ELSE 86 END
----
86

skipif mysql # not compatible
query I rowsort label-4174
SELECT + + CASE + 69 WHEN AVG ( ALL - 29 ) THEN NULL WHEN + COUNT ( * ) / 87 + ( - NULLIF ( COUNT ( * ), + 28 + 77 ) ) THEN 29 - + 59 * + 7 ELSE 86 END
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT DISTINCT - CASE + 86 WHEN - 45 + - 26 THEN NULL WHEN + CASE + 5 WHEN - 58 THEN 35 WHEN 26 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END + - 31 THEN COUNT( * ) * 68 END - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT - CASE + 86 WHEN - 45 + - 26 THEN NULL WHEN + CASE + 5 WHEN - 58 THEN 35 WHEN 26 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + - 31 THEN COUNT ( * ) * 68 END - - 59
----
NULL

query I rowsort
SELECT 44 * 25 col0
----
1100

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT + CAST( + 14 AS SIGNED ) * + 40 AS col0
----
560

skipif mysql # not compatible
query I rowsort label-4178
SELECT + CAST ( + 14 AS INTEGER ) * + 40 AS col0
----
560

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

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

query I rowsort
SELECT 13 * + 42 AS col1
----
546

query I rowsort
SELECT 41 * + 73 + 70
----
3063

query I rowsort
SELECT 67 + + 59
----
126

query I rowsort
SELECT ALL 23 + 79
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL + 33 + + + 17 * - COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL + 33 + + + 17 * - COUNT ( * ) AS col1
----
16

query I rowsort
SELECT ALL + 42 * + 35 AS col2
----
1470

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

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - 88 + - 68 + + ( - 4 - + 67 ) * COUNT ( * )
----
-227

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4187
SELECT + CAST( NULL AS DECIMAL ) * + COUNT( + 86 ) * 75 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT + CAST ( NULL AS REAL ) * + COUNT ( + 86 ) * 75 - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 70 + - 38 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT 89 - - + COUNT( 77 )
----
90

skipif mysql # not compatible
query I rowsort label-4189
SELECT 89 - - + COUNT ( 77 )
----
90

query I rowsort
SELECT ALL + 97 + - 95
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL - 70 + + - 35 * COUNT( * ) col2
----
-105

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - 70 + + - 35 * COUNT ( * ) col2
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT ALL CAST( + 23 AS SIGNED ) + - 79 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL CAST ( + 23 AS INTEGER ) + - 79 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT COUNT( * ) - 10 * 74 AS col2
----
-739

skipif mysql # not compatible
query I rowsort label-4193
SELECT COUNT ( * ) - 10 * 74 AS col2
----
-739

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

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

query I rowsort
SELECT 13 + - 25 AS col1
----
-12

query I rowsort
SELECT - NULLIF ( + 11, ( 23 ) + - 10 ) * + 27
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - 74 * + - NULLIF ( COUNT( * ), ( 39 ) + CASE + COUNT( * ) + 47 * + 34 WHEN + 14 THEN 9 WHEN 31 THEN 89 ELSE NULL END * + 90 )
----
74

skipif mysql # not compatible
query I rowsort label-4197
SELECT - 74 * + - NULLIF ( COUNT ( * ), ( 39 ) + CASE + COUNT ( * ) + 47 * + 34 WHEN + 14 THEN 9 WHEN 31 THEN 89 ELSE NULL END * + 90 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4198
SELECT ALL + + 16 * CASE CAST( + 76 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN 53 * - COUNT( * ) + - 69 WHEN - MIN( ALL 40 ) + - COUNT( + NULLIF ( + 60, + 2 + - 65 * 50 ) + 89 * 21 ) * 80 THEN MIN( - 13 ) ELSE 23 END * 56
----
20608

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL + + 16 * CASE CAST ( + 76 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN 53 * - COUNT ( * ) + - 69 WHEN - MIN ( ALL 40 ) + - COUNT ( + NULLIF ( + 60, + 2 + - 65 * 50 ) + 89 * 21 ) * 80 THEN MIN ( - 13 ) ELSE 23 END * 56
----
20608

query I rowsort
SELECT + 1 + - - ( + 17 ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4200
SELECT ALL + NULLIF ( - COUNT( * ), 61 + - 12 ) - ( 21 ) DIV + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + NULLIF ( - COUNT ( * ), 61 + - 12 ) - ( 21 ) / + COUNT ( * )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT DISTINCT - + CAST( ( 68 ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT - + CAST ( ( 68 ) AS INTEGER )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT - 33 DIV - 90 * + 84 + - 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 33 / - 90 * + 84 + - 31 AS col1
----
-31

query I rowsort
SELECT ALL + ( - 80 ) * + 39 AS col1
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT MAX( ALL + 31 ) * 70
----
2170

skipif mysql # not compatible
query I rowsort label-4204
SELECT MAX ( ALL + 31 ) * 70
----
2170

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT 51 + 70 + - COALESCE ( CASE 45 WHEN - 36 THEN + 78 * 48 END, + 29 + - 26, - CAST( - 34 AS SIGNED ) + 82 * 52 ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-4207
SELECT 51 + 70 + - COALESCE ( CASE 45 WHEN - 36 THEN + 78 * 48 END, + 29 + - 26, - CAST ( - 34 AS INTEGER ) + 82 * 52 ) AS col0
----
118

query I rowsort
SELECT + ( - - 67 ) * - 68
----
-4556

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT DISTINCT + 7 DIV - + 22 * + 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT + 7 / - + 22 * + 66 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT ALL + + 32 DIV + 87 - 41 * + 49 AS col0
----
-2009

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL + + 32 / + 87 - 41 * + 49 AS col0
----
-2009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4211
SELECT + + 52 DIV + SUM( 79 )
----
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT + + 52 / + SUM ( 79 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4212
SELECT DISTINCT 7 * - - 35 * + 98 - 6 * + CAST( + COUNT( * ) + + 29 AS SIGNED ) + + 17
----
23847

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT 7 * - - 35 * + 98 - 6 * + CAST ( + COUNT ( * ) + + 29 AS INTEGER ) + + 17
----
23847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT ALL 12 * + + 99 DIV - 95 * COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL 12 * + + 99 / - 95 * COUNT ( * ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL SUM( ALL + - 76 ) * 64 * COUNT( * ) + 36
----
-4828

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL SUM ( ALL + - 76 ) * 64 * COUNT ( * ) + 36
----
-4828

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + COALESCE ( - MAX( ALL 57 ), - 13 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4215
SELECT + COALESCE ( - MAX ( ALL 57 ), - 13 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT 64 * 95 * 39 - - 56 * COUNT( * )
----
237176

skipif mysql # not compatible
query I rowsort label-4216
SELECT 64 * 95 * 39 - - 56 * COUNT ( * )
----
237176

query I rowsort
SELECT DISTINCT 17 + 45 col0
----
62

query I rowsort
SELECT ALL 76 * - 92
----
-6992

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT + ( - COALESCE ( - + 91, + ( - COUNT( * ) ) ) ) * 94 AS col1
----
8554

skipif mysql # not compatible
query I rowsort label-4219
SELECT + ( - COALESCE ( - + 91, + ( - COUNT ( * ) ) ) ) * 94 AS col1
----
8554

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4221
SELECT - CASE + + 49 WHEN - + COUNT( * ) * - 97 - CAST( - 85 AS SIGNED ) * 67 THEN NULL WHEN 68 THEN NULL ELSE 76 END AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4221
SELECT - CASE + + 49 WHEN - + COUNT ( * ) * - 97 - CAST ( - 85 AS INTEGER ) * 67 THEN NULL WHEN 68 THEN NULL ELSE 76 END AS col2
----
-76

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

skipif mysql # not compatible
query I rowsort label-4222
SELECT + 79 * ( 32 ) + + COUNT ( * ) * - 0 AS col1
----
2528

query I rowsort
SELECT + 11 - - 4 col0
----
15

query I rowsort
SELECT ALL 34 + - - 98 AS col2
----
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4225
SELECT ALL + CAST( NULL AS DECIMAL ) * - SUM( 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + CAST ( NULL AS REAL ) * - SUM ( 6 ) AS col0
----
NULL

query I rowsort
SELECT - 98 + + + 69
----
-29

query I rowsort
SELECT - 57 * + 85 AS col0
----
-4845

query I rowsort
SELECT ALL ( - 36 ) * 49 AS col1
----
-1764

query I rowsort
SELECT + 86 * + 22
----
1892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4230
SELECT DISTINCT + CAST( + 62 AS SIGNED ) * + COALESCE ( COUNT( * ), 43, - 80 )
----
62

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT + CAST ( + 62 AS INTEGER ) * + COALESCE ( COUNT ( * ), 43, - 80 )
----
62

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

query I rowsort
SELECT + NULLIF ( - 64, + 2 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT - - 85 * - 56 - + COUNT( * )
----
-4761

skipif mysql # not compatible
query I rowsort label-4233
SELECT - - 85 * - 56 - + COUNT ( * )
----
-4761

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL SUM( ALL 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL SUM ( ALL 76 ) AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT ALL - + 1 DIV 26 + 87 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - + 1 / 26 + 87 AS col2
----
87

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT DISTINCT - ( - - CAST( + - 62 AS SIGNED ) )
----
62

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT - ( - - CAST ( + - 62 AS INTEGER ) )
----
62

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4239
SELECT + + 50 AS col0, 24 * - - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
50
NULL

skipif mysql # not compatible
query II rowsort label-4239
SELECT + + 50 AS col0, 24 * - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
50
NULL

query I rowsort
SELECT ALL + - 97 * 83 AS col2
----
-8051

query I rowsort
SELECT - - ( + ( 12 ) ) * + 5 - 96 AS col2
----
-36

query I rowsort
SELECT DISTINCT + NULLIF ( + 1, + - 57 + - 32 * + NULLIF ( - 43, 77 ) ) * 23 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT DISTINCT + COALESCE ( 18, + 22 + - 36 ) * - 93 + + ( + 23 + 41 DIV 22 )
----
-1650

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + COALESCE ( 18, + 22 + - 36 ) * - 93 + + ( + 23 + 41 / 22 )
----
-1650

query I rowsort
SELECT ALL + 2 * + 57 + - ( 66 )
----
48

query II rowsort
SELECT + 2 AS col2, - 19 * 44 * 55
----
2
-45980

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT + ( - SUM( ALL 38 ) ) * 62 + 19
----
-2337

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + ( - SUM ( ALL 38 ) ) * 62 + 19
----
-2337

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT DISTINCT + 60 * - + MIN( ALL 37 ) * - 47 * 58 + 77 AS col0
----
6051797

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT + 60 * - + MIN ( ALL 37 ) * - 47 * 58 + 77 AS col0
----
6051797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT DISTINCT + NULLIF ( - 90, + + 82 * - CAST( + COUNT( * ) AS SIGNED ) * 41 + 55 + + 98 )
----
-90

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + NULLIF ( - 90, + + 82 * - CAST ( + COUNT ( * ) AS INTEGER ) * 41 + 55 + + 98 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT ALL 56 * COALESCE ( + 12, 77 ) + - CAST( NULL AS SIGNED ) * - SUM( DISTINCT 98 * ( 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL 56 * COALESCE ( + 12, 77 ) + - CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT 98 * ( 52 ) )
----
NULL

query I rowsort
SELECT - 35 * + 46
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT CASE COUNT( * ) WHEN - 19 / 85 + - 39 THEN NULL WHEN 38 * COUNT( * ) + 51 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT CASE COUNT ( * ) WHEN - 19 / 85 + - 39 THEN NULL WHEN 38 * COUNT ( * ) + 51 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 75 * + - 18 + 21 AS col0
----
-1329

query I rowsort
SELECT ALL 93 * - 60 - 55
----
-5635

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

skipif mysql # not compatible
query I rowsort label-4254
SELECT + NULLIF ( - + COUNT ( DISTINCT + 82 ), + 83 )
----
-1

query I rowsort
SELECT DISTINCT 28 * + - 12 AS col1
----
-336

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT + 57 DIV 62 * - 45
----
0

skipif mysql # not compatible
query I rowsort label-4257
SELECT + 57 / 62 * - 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT - MIN( DISTINCT 34 ) * COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4258
SELECT - MIN ( DISTINCT 34 ) * COUNT ( * ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT MAX( + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4259
SELECT MAX ( + 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT COUNT( 21 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4260
SELECT COUNT ( 21 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT + 62 - + - 4 DIV + + 75 - - 67
----
129

skipif mysql # not compatible
query I rowsort label-4261
SELECT + 62 - + - 4 / + + 75 - - 67
----
129

query I rowsort
SELECT + 69 - - CASE - ( + 86 ) WHEN - 55 THEN 64 - 31 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4263
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ), 16 + + 2 AS col1
----
1
18

skipif mysql # not compatible
query II rowsort label-4263
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ), 16 + + 2 AS col1
----
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT - 1 * - + CASE WHEN NOT + COUNT( - 6 ) NOT BETWEEN ( + COUNT( * ) * 84 ) AND + 17 THEN 84 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT - 1 * - + CASE WHEN NOT + COUNT ( - 6 ) NOT BETWEEN ( + COUNT ( * ) * 84 ) AND + 17 THEN 84 ELSE NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 40, + + 15 ) AS col2
----
-40

query I rowsort
SELECT + 10 * + 34 AS col0
----
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4267
SELECT + - 51 DIV 28 * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4267
SELECT + - 51 / 28 * - COUNT ( * )
----
1

query I rowsort
SELECT + 63 + + 72 - 12 * 90 * 47 AS col2
----
-50625

query II rowsort
SELECT - + ( - 15 ) AS col0, + ( - + 89 )
----
15
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT + 46 * - MIN( - + 2 )
----
92

skipif mysql # not compatible
query I rowsort label-4270
SELECT + 46 * - MIN ( - + 2 )
----
92

query I rowsort
SELECT ALL - 7 + - 24 + - ( + + ( 58 ) ) - 21 * + ( 29 * 46 ) * + 25 * 37 AS col0
----
-25913039

query I rowsort
SELECT 22 + 90
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT ALL + COALESCE ( 97, - 7 * 59 + CAST( NULL AS SIGNED ) * + COUNT( * ) ) + 51 AS col2
----
148

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + COALESCE ( 97, - 7 * 59 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) + 51 AS col2
----
148

query I rowsort
SELECT DISTINCT ( - 78 ) + - ( 14 )
----
-92

query I rowsort
SELECT 98 * - 71 * 56 AS col1
----
-389648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4276
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + + - 76 + + COUNT( * ) * CAST( 10 AS SIGNED ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + + - 76 + + COUNT ( * ) * CAST ( 10 AS INTEGER ) AS col0
----
-68

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT + - ( - 35 ) DIV + + 58 + 78 - + 3
----
75

skipif mysql # not compatible
query I rowsort label-4279
SELECT + - ( - 35 ) / + + 58 + 78 - + 3
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4280
SELECT ALL + - CASE - - COUNT( * ) WHEN 27 + + 68 - + ( - 74 ) THEN NULL WHEN + 18 THEN NULL WHEN ( 17 ) THEN - 70 - CAST( + NULLIF ( + 20, - 92 ) AS DECIMAL ) ELSE NULL END + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL + - CASE - - COUNT ( * ) WHEN 27 + + 68 - + ( - 74 ) THEN NULL WHEN + 18 THEN NULL WHEN ( 17 ) THEN - 70 - CAST ( + NULLIF ( + 20, - 92 ) AS REAL ) ELSE NULL END + 88 AS col1
----
NULL

query I rowsort
SELECT 78 + - ( 72 ) * + - 58 AS col1
----
4254

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

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

query II rowsort
SELECT 94, - 58 * - 65 col1
----
94
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT + COUNT( * ) + + 80
----
81

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT + COUNT ( * ) + + 80
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT - 71 * - + SUM( ( 38 ) ) + - + 60 * 77 AS col1
----
-1922

skipif mysql # not compatible
query I rowsort label-4285
SELECT - 71 * - + SUM ( ( 38 ) ) + - + 60 * 77 AS col1
----
-1922

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT ALL + 83 + NULLIF ( - + 66, - + 80 ) + + 75 DIV ( - 87 ) * 96 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL + 83 + NULLIF ( - + 66, - + 80 ) + + 75 / ( - 87 ) * 96 AS col1
----
17

query II rowsort
SELECT DISTINCT - 22 AS col0, 26 - - 58 - + 49 AS col1
----
-22
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT DISTINCT + 1 - + - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT + 1 - + - COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT ALL - 11 * + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL - 11 * + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 29 * - + 14
----
406

query I rowsort
SELECT ALL 75 - - 43 - 12 - + 39 AS col1
----
67

query I rowsort
SELECT 18 * - - 17 * 74 col1
----
22644

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

skipif mysql # not compatible
query I rowsort label-4294
SELECT 89 + - 15 + COUNT ( * ) / - COUNT ( * )
----
73

query I rowsort
SELECT 39 * + 97 * 8 + - + 26 * + 41
----
29198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT COALESCE ( + + 28, + 71 + 63 * - MAX( DISTINCT - 71 ) * + COUNT( * ), - 82, + 2 - SUM( 88 ), 58 DIV - NULLIF ( + COUNT( * ) DIV 65, 99 + 62 ) ) + - 59 * 23 AS col2
----
-1329

skipif mysql # not compatible
query I rowsort label-4296
SELECT COALESCE ( + + 28, + 71 + 63 * - MAX ( DISTINCT - 71 ) * + COUNT ( * ), - 82, + 2 - SUM ( 88 ), 58 / - NULLIF ( + COUNT ( * ) / 65, 99 + 62 ) ) + - 59 * 23 AS col2
----
-1329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL - CAST( + + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - CAST ( + + 34 AS INTEGER ) AS col2
----
-34

query I rowsort
SELECT 8 * 80 * - - 85 * + 63 AS col0
----
3427200

query I rowsort
SELECT 43 * - 14
----
-602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4300
SELECT - COUNT( * ) * - + COUNT( * ) DIV - 81 * - SUM( - 17 ) + + 46
----
46

skipif mysql # not compatible
query I rowsort label-4300
SELECT - COUNT ( * ) * - + COUNT ( * ) / - 81 * - SUM ( - 17 ) + + 46
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4301
SELECT ALL 93 AS col1, SUM( ALL - - 83 ) * CAST( - 21 AS SIGNED ) - 19 col2
----
93
-1762

skipif mysql # not compatible
query II rowsort label-4301
SELECT ALL 93 AS col1, SUM ( ALL - - 83 ) * CAST ( - 21 AS INTEGER ) - 19 col2
----
93
-1762

query I rowsort
SELECT ALL NULLIF ( 82, 51 * + 36 / 72 - NULLIF ( 68 + + 78, + ( - 91 ) ) ) * - 46
----
-3772

query I rowsort
SELECT 65 + + 22 * + + 85
----
1935

query I rowsort
SELECT + 3 + + 93
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT CAST( NULL AS SIGNED ) * CAST( + - 61 AS SIGNED ) * 3 + - + 42 + 66 * - AVG ( DISTINCT 81 * + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT CAST ( NULL AS INTEGER ) * CAST ( + - 61 AS INTEGER ) * 3 + - + 42 + 66 * - AVG ( DISTINCT 81 * + 23 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT 57 + - COALESCE ( 59, - COUNT( * ) * + 18 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT 57 + - COALESCE ( 59, - COUNT ( * ) * + 18 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT - 30 + + MIN( DISTINCT + 63 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4307
SELECT - 30 + + MIN ( DISTINCT + 63 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT + 78 + 58 + - - MAX( + 23 ) * - - 77
----
1907

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT + 78 + 58 + - - MAX ( + 23 ) * - - 77
----
1907

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT DISTINCT + COUNT( * ) + + 83
----
84

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT + COUNT ( * ) + + 83
----
84

query I rowsort
SELECT ALL - CASE - 17 WHEN + 42 THEN NULL ELSE - 94 END + - 86
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL - - NULLIF ( 93, - - 16 / COALESCE ( + - COUNT( * ), 41 + 72 / - 61 ) + 23 ) + 98
----
191

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL - - NULLIF ( 93, - - 16 / COALESCE ( + - COUNT ( * ), 41 + 72 / - 61 ) + 23 ) + 98
----
191

query II rowsort
SELECT + 63 - ( 68 ) col0, + 35
----
-5
35

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

skipif mysql # not compatible
query II rowsort label-4313
SELECT - - 93 AS col1, + COUNT ( * )
----
93
1

query I rowsort
SELECT ALL - 0 * - 15 + - 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT MIN( ALL - 66 ) * - 21 AS col0
----
1386

skipif mysql # not compatible
query I rowsort label-4315
SELECT MIN ( ALL - 66 ) * - 21 AS col0
----
1386

query I rowsort
SELECT DISTINCT 0 * + 71
----
0

query II rowsort
SELECT DISTINCT - 25 col2, - COALESCE ( - 3, + + 71 ) AS col2
----
-25
3

query I rowsort
SELECT ALL 17 * + 13 * 22
----
4862

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + COUNT( - 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4319
SELECT + COUNT ( - 45 ) AS col1
----
1

query I rowsort
SELECT ALL 93 - + 66 AS col0
----
27

query II rowsort
SELECT ALL - 44, + 64 AS col1
----
-44
64

query I rowsort
SELECT ALL + ( 0 ) - - - ( + - 92 ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT 18 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT 18 / - 67
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4325
SELECT + COUNT( * ) col0, NULLIF ( - ( + 97 ), - 80 )
----
1
-97

skipif mysql # not compatible
query II rowsort label-4325
SELECT + COUNT ( * ) col0, NULLIF ( - ( + 97 ), - 80 )
----
1
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4326
SELECT ALL - 69 AS col0, + COUNT( * ) * + 65 * - + 3
----
-69
-195

skipif mysql # not compatible
query II rowsort label-4326
SELECT ALL - 69 AS col0, + COUNT ( * ) * + 65 * - + 3
----
-69
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-4327
SELECT SUM( + 93 ), 11 + + 48 AS col1
----
93
59

skipif mysql # not compatible
query II rowsort label-4327
SELECT SUM ( + 93 ), 11 + + 48 AS col1
----
93
59

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL - MIN( 40 ) * CASE WHEN NOT ( COUNT( * ) ) IS NULL THEN 27 - 55 END
----
1120

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL - MIN ( 40 ) * CASE WHEN NOT ( COUNT ( * ) ) IS NULL THEN 27 - 55 END
----
1120

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4332
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, CASE - 34 WHEN + - 70 THEN 97 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4332
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, CASE - 34 WHEN + - 70 THEN 97 ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT - CASE 4 WHEN + + NULLIF ( + - NULLIF ( + ( - 24 ), ( 96 ) + 19 * - COUNT( * ) ), 71 ) THEN NULL WHEN 1 * + 68 + + 11 * - NULLIF ( - 81 * - 75, + 11 + - 23 * - 26 ) THEN NULL ELSE + 25 END AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT - CASE 4 WHEN + + NULLIF ( + - NULLIF ( + ( - 24 ), ( 96 ) + 19 * - COUNT ( * ) ), 71 ) THEN NULL WHEN 1 * + 68 + + 11 * - NULLIF ( - 81 * - 75, + 11 + - 23 * - 26 ) THEN NULL ELSE + 25 END AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT ALL - CAST( + 29 AS SIGNED ) + 24
----
-5

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - CAST ( + 29 AS INTEGER ) + 24
----
-5

query I rowsort
SELECT - 18 + + - 6 col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4336
SELECT + 13 AS col1, - CAST( 46 AS SIGNED ) * - 14
----
13
644

skipif mysql # not compatible
query II rowsort label-4336
SELECT + 13 AS col1, - CAST ( 46 AS INTEGER ) * - 14
----
13
644

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4337
SELECT ALL - 23 AS col2, 55 / CAST( NULL AS SIGNED )
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-4337
SELECT ALL - 23 AS col2, 55 / CAST ( NULL AS INTEGER )
----
-23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4338
SELECT ALL + + SUM( DISTINCT + 65 ) + - - 59 * - + CASE + - ( - 54 ) WHEN 10 / 7 + + 60 * + 12 THEN + 54 WHEN NULLIF ( 67, - 23 + COUNT( DISTINCT - 8 ) ) THEN COUNT( * ) + 9 ELSE NULL END + COALESCE ( + COUNT( * ), + CAST( NULL AS SIGNED ) ) / CAST( - NULLIF ( 85, 55 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL + + SUM ( DISTINCT + 65 ) + - - 59 * - + CASE + - ( - 54 ) WHEN 10 / 7 + + 60 * + 12 THEN + 54 WHEN NULLIF ( 67, - 23 + COUNT ( DISTINCT - 8 ) ) THEN COUNT ( * ) + 9 ELSE NULL END + COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) / CAST ( - NULLIF ( 85, 55 ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 40 - ( - 58 )
----
18

query I rowsort
SELECT DISTINCT + COALESCE ( 14, + 7, NULLIF ( + - 20, - 78 ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - + 85 + - COUNT( 47 )
----
-86

skipif mysql # not compatible
query I rowsort label-4341
SELECT - + 85 + - COUNT ( 47 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL + - MIN( DISTINCT - 9 ) + + - 49
----
-40

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + - MIN ( DISTINCT - 9 ) + + - 49
----
-40

query II rowsort
SELECT - 36 AS col2, 72
----
-36
72

query I rowsort
SELECT + 3 - - 66 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL - ( ( - + 44 ) ) * - 99 + - MAX( ( 0 ) )
----
-4356

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - ( ( - + 44 ) ) * - 99 + - MAX ( ( 0 ) )
----
-4356

query I rowsort
SELECT - 47 + + 64
----
17

query I rowsort
SELECT + NULLIF ( + + 43, + 45 ) - - + 2 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL - - MIN( - 42 ) * - 57
----
2394

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL - - MIN ( - 42 ) * - 57
----
2394

query II rowsort
SELECT + 31 + 76, + 43 AS col1
----
107
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4350
SELECT ALL 0 - 50 * + + SUM( + + CAST( NULL AS SIGNED ) ) * + + 49 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL 0 - 50 * + + SUM ( + + CAST ( NULL AS INTEGER ) ) * + + 49 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - 70 * + MAX( - 20 ) AS col0
----
1400

skipif mysql # not compatible
query I rowsort label-4351
SELECT - 70 * + MAX ( - 20 ) AS col0
----
1400

query I rowsort
SELECT + + 53 * - ( + 52 )
----
-2756

onlyif mysql # aggregate syntax: 
query II rowsort label-4353
SELECT - 71 AS col0, - NULLIF ( - + 65, + CASE - - COALESCE ( - 66, - 11 + + AVG ( - 5 ) ) WHEN 49 * + 94 THEN - 52 + + COUNT( * ) END )
----
-71
65

skipif mysql # not compatible
query II rowsort label-4353
SELECT - 71 AS col0, - NULLIF ( - + 65, + CASE - - COALESCE ( - 66, - 11 + + AVG ( - 5 ) ) WHEN 49 * + 94 THEN - 52 + + COUNT ( * ) END )
----
-71
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT - + CASE - 99 WHEN 32 / AVG ( + + 37 ) - + 58 + 73 THEN + 88 END + - CASE + 29 + 34 WHEN + 96 THEN NULL WHEN - 13 + 77 * - COUNT( DISTINCT + ( 27 ) * ( 31 ) ) THEN - 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT - + CASE - 99 WHEN 32 / AVG ( + + 37 ) - + 58 + 73 THEN + 88 END + - CASE + 29 + 34 WHEN + 96 THEN NULL WHEN - 13 + 77 * - COUNT ( DISTINCT + ( 27 ) * ( 31 ) ) THEN - 74 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT ALL - 83 - 14 * NULLIF ( - ( 49 ), - - CAST( NULL AS SIGNED ) * 88 ) * + 9
----
6091

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - 83 - 14 * NULLIF ( - ( 49 ), - - CAST ( NULL AS INTEGER ) * 88 ) * + 9
----
6091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4356
SELECT ( + CAST( - 20 AS SIGNED ) ) AS col0, COUNT( - 30 )
----
-20
1

skipif mysql # not compatible
query II rowsort label-4356
SELECT ( + CAST ( - 20 AS INTEGER ) ) AS col0, COUNT ( - 30 )
----
-20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT - CASE + - 51 WHEN COUNT( * ) * - - 19 + - 37 THEN + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN 26 END / + 28 + 36 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT - CASE + - 51 WHEN COUNT ( * ) * - - 19 + - 37 THEN + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN 26 END / + 28 + 36 * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 5 * 89 AS col2
----
445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT + NULLIF ( - 83, 21 * COALESCE ( + 54, 54 ) + - CAST( 82 AS SIGNED ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4359
SELECT + NULLIF ( - 83, 21 * COALESCE ( + 54, 54 ) + - CAST ( 82 AS INTEGER ) )
----
-83

query I rowsort
SELECT - 93 + + 23 AS col0
----
-70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT + 58 + + AVG ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT + 58 + + AVG ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL COUNT ( + 55 ) * - 11 AS col2
----
-11

query I rowsort
SELECT + 75 * 23 * + + 66 AS col0
----
113850

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT 57 * - 90 * 91 + COUNT( * ) + + - 24 AS col0, - SUM( ALL - 20 ) * 74
----
-466853
1480

skipif mysql # not compatible
query II rowsort label-4365
SELECT 57 * - 90 * 91 + COUNT ( * ) + + - 24 AS col0, - SUM ( ALL - 20 ) * 74
----
-466853
1480

query I rowsort
SELECT NULLIF ( - 73, + - 38 * - - 87 + - + 1 + ( 66 ) + - 83 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT - 87 DIV + 83 + - - ( + - 77 ) * + 67 + 41 AS col1
----
-5119

skipif mysql # not compatible
query I rowsort label-4367
SELECT - 87 / + 83 + - - ( + - 77 ) * + 67 + 41 AS col1
----
-5119

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT DISTINCT COALESCE ( - 59, + 84, + + 11 DIV + + CASE + 24 WHEN + 14 THEN NULL WHEN 27 THEN 57 ELSE + 81 + 87 END - 21 ) * 47
----
-2773

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT COALESCE ( - 59, + 84, + + 11 / + + CASE + 24 WHEN + 14 THEN NULL WHEN 27 THEN 57 ELSE + 81 + 87 END - 21 ) * 47
----
-2773

query I rowsort
SELECT DISTINCT CASE + + 35 WHEN - 81 THEN 49 + + - 13 WHEN + 18 THEN NULL ELSE NULL END * + 75 * + 30 AS col2
----
NULL

query I rowsort
SELECT ALL + 96 * 88 + - 72
----
8376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 90 + COUNT( * ) + CAST( - - COUNT( * ) AS SIGNED ) * - - 9
----
NULL

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

query I rowsort
SELECT + 80 * - 90 AS col0
----
-7200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4373
SELECT - COUNT( * ) * - CASE 40 WHEN 90 THEN - 19 * 71 DIV + - 99 ELSE 9 END + + 81
----
90

skipif mysql # not compatible
query I rowsort label-4373
SELECT - COUNT ( * ) * - CASE 40 WHEN 90 THEN - 19 * 71 / + - 99 ELSE 9 END + + 81
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4374
SELECT ALL 46 DIV + - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL 46 / + - 81 AS col2
----
0

query I rowsort
SELECT NULLIF ( - 47, COALESCE ( - CASE + + 48 WHEN 32 THEN + - 76 END, 42 ) ) AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT - 85 + - 21 + + CAST( NULL AS SIGNED ) + - 3 / - + 23 * - CAST( NULL AS SIGNED ) - - ( - NULLIF ( CASE - 89 WHEN + ( + NULLIF ( - 27, - CASE + 50 WHEN + 31 / + 41 THEN + 68 + COUNT( * ) * 9 WHEN - MIN( ALL COALESCE ( - 30, - 39 ) ) THEN NULL WHEN + 91 THEN 57 + - 91 END + CAST( COUNT( * ) + - 78 AS SIGNED ) * + 20 ) ) + - 22 THEN NULL WHEN - CAST( NULL AS SIGNED ) * - 51 + 13 THEN + 29 + 3 ELSE NULL END, 38 ) ) * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT - 85 + - 21 + + CAST ( NULL AS INTEGER ) + - 3 / - + 23 * - CAST ( NULL AS INTEGER ) - - ( - NULLIF ( CASE - 89 WHEN + ( + NULLIF ( - 27, - CASE + 50 WHEN + 31 / + 41 THEN + 68 + COUNT ( * ) * 9 WHEN - MIN ( ALL COALESCE ( - 30, - 39 ) ) THEN NULL WHEN + 91 THEN 57 + - 91 END + CAST ( COUNT ( * ) + - 78 AS INTEGER ) * + 20 ) ) + - 22 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - 51 + 13 THEN + 29 + 3 ELSE NULL END, 38 ) ) * - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4377
SELECT DISTINCT - + COUNT( * ) * + + 39 DIV + NULLIF ( - 79, - 43 ) * + 50
----
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - + COUNT ( * ) * + + 39 / + NULLIF ( - 79, - 43 ) * + 50
----
0

query I rowsort
SELECT + + 89 + - + 24
----
65

query I rowsort
SELECT DISTINCT + 0 * + 81 + 28 + + 98 AS col0
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT COUNT( * ) * + NULLIF ( 96, - 11 ) + - 15 + 97 + 17 * + 98
----
1844

skipif mysql # not compatible
query I rowsort label-4381
SELECT COUNT ( * ) * + NULLIF ( 96, - 11 ) + - 15 + 97 + 17 * + 98
----
1844

query I rowsort
SELECT ALL + NULLIF ( + 62, 9 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4383
SELECT - CAST( - 37 AS SIGNED ), + MAX( - 83 ) col0
----
37
-83

skipif mysql # not compatible
query II rowsort label-4383
SELECT - CAST ( - 37 AS INTEGER ), + MAX ( - 83 ) col0
----
37
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-4384
SELECT - - SUM( DISTINCT + - 23 ) AS col0, + 97
----
-23
97

skipif mysql # not compatible
query II rowsort label-4384
SELECT - - SUM ( DISTINCT + - 23 ) AS col0, + 97
----
-23
97

query I rowsort
SELECT DISTINCT + - 96 - - 56 AS col2
----
-40

query I rowsort
SELECT - - 62 * + 45 AS col0
----
2790

query I rowsort
SELECT - ( + 84 ) + + 66
----
-18

query I rowsort
SELECT - 59 * 19 - - 21 * 1
----
-1100

query II rowsort
SELECT - - 23 + - 33 col2, 77
----
-10
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT - - 12 DIV - - 87 * - ( + 66 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4390
SELECT - - 12 / - - 87 * - ( + 66 ) AS col0
----
0

query II rowsort
SELECT - 46 AS col0, - 6 AS col2
----
-46
-6

query II rowsort
SELECT 34 AS col0, 85 * + + 58 + + 0 AS col1
----
34
4930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4393
SELECT ALL CAST( NULL AS SIGNED ) - + COUNT( * ) + + - AVG ( DISTINCT ( - COALESCE ( 53, + - 40 ) ) ) * + CAST( 57 AS SIGNED ) * 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + - AVG ( DISTINCT ( - COALESCE ( 53, + - 40 ) ) ) * + CAST ( 57 AS INTEGER ) * 71 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4394
SELECT - 6 DIV 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4394
SELECT - 6 / 12 AS col0
----
0

query I rowsort
SELECT ALL - 79 * + 83 AS col0
----
-6557

query I rowsort
SELECT DISTINCT - 70 * - 73 col1
----
5110

query II rowsort
SELECT - 57 col1, - 8 AS col2
----
-57
-8

query I rowsort
SELECT - 52 + + 77
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4399
SELECT - NULLIF ( - ( + + COALESCE ( MAX( DISTINCT + 69 ), ( + - ( - + 65 ) ), - 70 - - 75 DIV ( - 0 * COUNT( * ) + - COUNT( ALL 10 - + 80 ) ), 7 ) ), 68 + 8 * + NULLIF ( - ( NULLIF ( ( COALESCE ( ( - ( + 77 ) ), 44 * - 60 + 78 ) ), 82 DIV + 73 ) ), - COUNT( * ) * ( 98 ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-4399
SELECT - NULLIF ( - ( + + COALESCE ( MAX ( DISTINCT + 69 ), ( + - ( - + 65 ) ), - 70 - - 75 / ( - 0 * COUNT ( * ) + - COUNT ( ALL 10 - + 80 ) ), 7 ) ), 68 + 8 * + NULLIF ( - ( NULLIF ( ( COALESCE ( ( - ( + 77 ) ), 44 * - 60 + 78 ) ), 82 / + 73 ) ), - COUNT ( * ) * ( 98 ) ) )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT - 70 DIV + 12 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4400
SELECT - 70 / + 12 AS col1
----
-5

query I rowsort
SELECT + 11 * + 85 AS col0
----
935

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4402
SELECT - 83 DIV + - 25 - - 12 AS col2, CAST( 86 AS SIGNED ) + 25 * - 25 * + - 61
----
15
38211

skipif mysql # not compatible
query II rowsort label-4402
SELECT - 83 / + - 25 - - 12 AS col2, CAST ( 86 AS INTEGER ) + 25 * - 25 * + - 61
----
15
38211

query I rowsort
SELECT + 16 * 63
----
1008

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT ALL - 2 DIV - 11 * 31 + 9 DIV + NULLIF ( + + 52, - 20 * 78 + 8 + 44 * 21 )
----
0

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - 2 / - 11 * 31 + 9 / + NULLIF ( + + 52, - 20 * 78 + 8 + 44 * 21 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4405
SELECT ALL + 7 AS col0, COUNT( + - ( - 76 ) ) + + 57 AS col2
----
7
58

skipif mysql # not compatible
query II rowsort label-4405
SELECT ALL + 7 AS col0, COUNT ( + - ( - 76 ) ) + + 57 AS col2
----
7
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4406
SELECT ALL + 52 DIV - - COUNT( ( + 90 ) ) + 67 * + 7 AS col1
----
521

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL + 52 / - - COUNT ( ( + 90 ) ) + 67 * + 7 AS col1
----
521

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4407
SELECT ALL + 69 DIV - - 73 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL + 69 / - - 73 + - COUNT ( * ) AS col0
----
-1

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

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

query I rowsort
SELECT DISTINCT 9 * - 6
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT - CAST( - 95 AS SIGNED ) - - MAX( - + 50 ) + + 23 * - - 13 * - - 88 AS col2
----
26357

skipif mysql # not compatible
query I rowsort label-4410
SELECT - CAST ( - 95 AS INTEGER ) - - MAX ( - + 50 ) + + 23 * - - 13 * - - 88 AS col2
----
26357

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - NULLIF ( - + 72, - - 95 + - 85 + + 14 * + NULLIF ( 74, - 27 - + COUNT( * ) ) ) * - 75
----
-5400

skipif mysql # not compatible
query I rowsort label-4412
SELECT - NULLIF ( - + 72, - - 95 + - 85 + + 14 * + NULLIF ( 74, - 27 - + COUNT ( * ) ) ) * - 75
----
-5400

query I rowsort
SELECT DISTINCT - - 82 + 15 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - + MIN( + 81 ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - + MIN ( + 81 ) col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT - 90 + - - 71 + - NULLIF ( - 34, COUNT( * ) ) + 18
----
33

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - 90 + - - 71 + - NULLIF ( - 34, COUNT ( * ) ) + 18
----
33

query I rowsort
SELECT DISTINCT 75 + + - 79 AS col0
----
-4

query I rowsort
SELECT ALL 19 * - - 59 AS col2
----
1121

query II rowsort
SELECT + 98, 11 AS col1
----
98
11

query I rowsort
SELECT 81 * - + 44 col2
----
-3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT + NULLIF ( - - NULLIF ( - + 31, 75 ), 14 - - - NULLIF ( + 59, - + CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) / CAST( - 36 + - 28 / - NULLIF ( - 88, COUNT( * ) ) AS SIGNED ) ) ) + + 50 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4420
SELECT + NULLIF ( - - NULLIF ( - + 31, 75 ), 14 - - - NULLIF ( + 59, - + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) / CAST ( - 36 + - 28 / - NULLIF ( - 88, COUNT ( * ) ) AS INTEGER ) ) ) + + 50 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4421
SELECT CASE + 72 WHEN + COALESCE ( + 9, + MAX( DISTINCT + 39 ) / + - ( - ( - CAST( NULL AS DECIMAL ) ) ) - - 20 ) THEN COUNT( 4 ) ELSE NULL END * 3 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT CASE + 72 WHEN + COALESCE ( + 9, + MAX ( DISTINCT + 39 ) / + - ( - ( - CAST ( NULL AS REAL ) ) ) - - 20 ) THEN COUNT ( 4 ) ELSE NULL END * 3 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL - - COUNT( * ) * + 5 + + - 27 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL - - COUNT ( * ) * + 5 + + - 27 AS col1
----
-22

query II rowsort
SELECT ALL 33 AS col1, CASE 59 WHEN - 44 THEN + 67 WHEN 95 THEN NULL END AS col2
----
33
NULL

query I rowsort
SELECT ALL + - 18 * - - 2
----
-36

query I rowsort
SELECT DISTINCT - 45 * 56 AS col1
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT 12 * - MIN( + 73 )
----
-876

skipif mysql # not compatible
query I rowsort label-4426
SELECT 12 * - MIN ( + 73 )
----
-876

query II rowsort
SELECT 18 - + - 28 AS col0, ( - + 37 )
----
46
-37

query I rowsort
SELECT ALL + CASE 43 WHEN + 66 * + 27 THEN 20 END * - 85
----
NULL

query I rowsort
SELECT 37 + + - ( + 14 ) col2
----
23

query I rowsort
SELECT ALL + 93 + + + 97 * - 82 AS col1
----
-7861

query I rowsort
SELECT DISTINCT - 48 + - 42 * 64 + - 30
----
-2766

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4432
SELECT ALL + ( 71 ) + 65 + + SUM( + 22 ) + - + 4 * - + 98 - + COUNT( * ) * - 28 DIV - 78 + - 13
----
537

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + ( 71 ) + 65 + + SUM ( + 22 ) + - + 4 * - + 98 - + COUNT ( * ) * - 28 / - 78 + - 13
----
537

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT 45 * - COUNT( * ) * + 60
----
-2700

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT 45 * - COUNT ( * ) * + 60
----
-2700

query I rowsort
SELECT 17 * + 99
----
1683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT 52 * + AVG ( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT 52 * + AVG ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL - ( COUNT( * ) ) * + 94 + - 88 AS col1
----
-182

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL - ( COUNT ( * ) ) * + 94 + - 88 AS col1
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT 23 + - 42 DIV + 92 col0
----
23

skipif mysql # not compatible
query I rowsort label-4437
SELECT 23 + - 42 / + 92 col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4438
SELECT MIN( DISTINCT - 61 ) + + + 14 + 61 * - CAST( - + 3 AS SIGNED )
----
136

skipif mysql # not compatible
query I rowsort label-4438
SELECT MIN ( DISTINCT - 61 ) + + + 14 + 61 * - CAST ( - + 3 AS INTEGER )
----
136

query I rowsort
SELECT DISTINCT - 4 * 84
----
-336

query I rowsort
SELECT ALL + 49 + - + 37
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4441
SELECT 42 * + 68 AS col2, COUNT( * )
----
2856
1

skipif mysql # not compatible
query II rowsort label-4441
SELECT 42 * + 68 AS col2, COUNT ( * )
----
2856
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT 50 * - 11 + + - 2 - + + 11 + + ( - - 68 ) * + 56 * 36 DIV NULLIF ( - 16, 36 ) * 8 AS col1
----
-69107

skipif mysql # not compatible
query I rowsort label-4442
SELECT 50 * - 11 + + - 2 - + + 11 + + ( - - 68 ) * + 56 * 36 / NULLIF ( - 16, 36 ) * 8 AS col1
----
-69107

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

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + 83 * + COUNT ( ALL + 25 ) AS col0
----
83

query I rowsort
SELECT DISTINCT + ( - 38 ) - + 29 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT 57 + 51 + + COUNT( * ) + - SUM( 60 ) * + + 83 AS col1
----
-4871

skipif mysql # not compatible
query I rowsort label-4445
SELECT 57 + 51 + + COUNT ( * ) + - SUM ( 60 ) * + + 83 AS col1
----
-4871

query II rowsort
SELECT + + ( - COALESCE ( + 16, 25 ) ) AS col0, 31 AS col0
----
-16
31

query I rowsort
SELECT ALL + 67 * 75 col0
----
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + ( - 28 ) * - - MAX( DISTINCT - 55 )
----
1540

skipif mysql # not compatible
query I rowsort label-4448
SELECT + ( - 28 ) * - - MAX ( DISTINCT - 55 )
----
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4449
SELECT - 23 + - 7, - COUNT( * ) DIV - - 68 * - 49 * + COUNT( 45 ) + MIN( + 94 ) + + 95 AS col0
----
-30
189

skipif mysql # not compatible
query II rowsort label-4449
SELECT - 23 + - 7, - COUNT ( * ) / - - 68 * - 49 * + COUNT ( 45 ) + MIN ( + 94 ) + + 95 AS col0
----
-30
189

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4450
SELECT - 97 + - 24 DIV CAST( - 99 AS SIGNED ) + + - 43 DIV - 96 + - 54 DIV 21 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4450
SELECT - 97 + - 24 / CAST ( - 99 AS INTEGER ) + + - 43 / - 96 + - 54 / 21 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT + - ( 96 ) * - 62 + - - COUNT( * ) + - 32 * + + MIN( + 27 ), + 80 AS col0
----
5089
80

skipif mysql # not compatible
query II rowsort label-4451
SELECT + - ( 96 ) * - 62 + - - COUNT ( * ) + - 32 * + + MIN ( + 27 ), + 80 AS col0
----
5089
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT 75 DIV 18 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4452
SELECT 75 / 18 AS col0
----
4

query I rowsort
SELECT ALL - - 12 * - 2
----
-24

query I rowsort
SELECT 5 + - NULLIF ( 83, + 9 ) * - 62 AS col2
----
5151

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT DISTINCT + 74 * + + 60 + 73 + + COUNT( * ) + - - 17 * - - COALESCE ( + - 98, + 8, + + ( + 34 ) )
----
2848

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT + 74 * + + 60 + 73 + + COUNT ( * ) + - - 17 * - - COALESCE ( + - 98, + 8, + + ( + 34 ) )
----
2848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4456
SELECT ALL - MAX( - - 70 ), 37 * - 34 - + CAST( NULL AS SIGNED ) AS col1
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-4456
SELECT ALL - MAX ( - - 70 ), 37 * - 34 - + CAST ( NULL AS INTEGER ) AS col1
----
-70
NULL

query I rowsort
SELECT + 77 * 83 AS col1
----
6391

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT 85 * 15 * - MIN( ALL - 17 ) AS col2
----
21675

skipif mysql # not compatible
query I rowsort label-4458
SELECT 85 * 15 * - MIN ( ALL - 17 ) AS col2
----
21675

query I rowsort
SELECT + 86 + 17 AS col2
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT COUNT( * ) * + 42 AS col1, - 83
----
42
-83

skipif mysql # not compatible
query II rowsort label-4460
SELECT COUNT ( * ) * + 42 AS col1, - 83
----
42
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4461
SELECT ALL 94 AS col2, + COUNT( * ) DIV + - 76
----
94
0

skipif mysql # not compatible
query II rowsort label-4461
SELECT ALL 94 AS col2, + COUNT ( * ) / + - 76
----
94
0

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

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

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

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( * ) / 68 AS col1
----
0

query I rowsort
SELECT 37 + 38 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL COUNT( * ) + + 0 + COALESCE ( + 52, - 23, + + CASE WHEN NOT ( NULL ) <> NULL THEN NULL ELSE CAST( NULL AS SIGNED ) END, + COUNT( * ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL COUNT ( * ) + + 0 + COALESCE ( + 52, - 23, + + CASE WHEN NOT ( NULL ) <> NULL THEN NULL ELSE CAST ( NULL AS INTEGER ) END, + COUNT ( * ) ) AS col2
----
53

query I rowsort
SELECT ALL 17 + 5 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT CASE 81 WHEN - 17 THEN - 56 * + - 28 WHEN 65 THEN 31 ELSE NULL END + + - 55 + + 62 * 19 * 34 + CASE 91 WHEN 41 + CASE 78 - - 20 WHEN 40 + 16 THEN 61 - + 27 * 98 END THEN NULL ELSE COALESCE ( - ( 74 ), + 91 ) END * - 60 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT CASE 81 WHEN - 17 THEN - 56 * + - 28 WHEN 65 THEN 31 ELSE NULL END + + - 55 + + 62 * 19 * 34 + CASE 91 WHEN 41 + CASE 78 - - 20 WHEN 40 + 16 THEN 61 - + 27 * 98 END THEN NULL ELSE COALESCE ( - ( 74 ), + 91 ) END * - 60 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT - CASE 17 WHEN 26 THEN - 33 WHEN CASE + + 81 WHEN + 38 THEN 51 WHEN 9 * + 54 - SUM( DISTINCT - 92 ) THEN NULL WHEN 6 * + CASE - 32 WHEN - 68 / + CAST( NULL AS SIGNED ) THEN MAX( ALL 78 ) END THEN 94 * + SUM( ALL 40 ) ELSE - 72 * - 36 END * 33 THEN - 19 / 90 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT - CASE 17 WHEN 26 THEN - 33 WHEN CASE + + 81 WHEN + 38 THEN 51 WHEN 9 * + 54 - SUM ( DISTINCT - 92 ) THEN NULL WHEN 6 * + CASE - 32 WHEN - 68 / + CAST ( NULL AS INTEGER ) THEN MAX ( ALL 78 ) END THEN 94 * + SUM ( ALL 40 ) ELSE - 72 * - 36 END * 33 THEN - 19 / 90 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT DISTINCT NULLIF ( + - 33, - - 26 ) + + SUM( DISTINCT + 55 ) * - 30 * + 82 * + CASE 55 WHEN - - 11 * 38 + + 4 THEN COUNT( * ) + + 20 WHEN NULLIF ( AVG ( DISTINCT + ( 20 ) ), 58 ) * + 62 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT NULLIF ( + - 33, - - 26 ) + + SUM ( DISTINCT + 55 ) * - 30 * + 82 * + CASE 55 WHEN - - 11 * 38 + + 4 THEN COUNT ( * ) + + 20 WHEN NULLIF ( AVG ( DISTINCT + ( 20 ) ), 58 ) * + 62 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4470
SELECT ALL 81 + - CAST( NULL AS SIGNED ) * - COALESCE ( 92, - + 86 * COUNT( * ) * 18 - - 94 ) - - CAST( + ( + 28 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL 81 + - CAST ( NULL AS INTEGER ) * - COALESCE ( 92, - + 86 * COUNT ( * ) * 18 - - 94 ) - - CAST ( + ( + 28 ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 17 + - NULLIF ( + - 94, 52 )
----
77

query I rowsort
SELECT + 63 - 23 * - 49
----
1190

query I rowsort
SELECT - 45 * + 94 AS col2
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT CASE + COUNT( * ) WHEN - - 85 + + - 20 THEN - 8 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT CASE + COUNT ( * ) WHEN - - 85 + + - 20 THEN - 8 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 17 * - COALESCE ( - 19, - 19 + - 24 ) - + NULLIF ( 43, + 89 + 54 ) AS col2
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT ALL - 91 / + CASE + 47 WHEN - CAST( NULL AS SIGNED ) THEN + - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - 91 / + CASE + 47 WHEN - CAST ( NULL AS INTEGER ) THEN + - 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - ( NULLIF ( + 4, 68 ) ) - + COUNT( - + 90 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4477
SELECT - ( NULLIF ( + 4, 68 ) ) - + COUNT ( - + 90 ) AS col0
----
-5

query I rowsort
SELECT + ( + - 40 ) col0
----
-40

query II rowsort
SELECT ALL + + CASE + 89 WHEN + 77 THEN - - 53 ELSE 59 END AS col0, ( + 30 ) AS col1
----
59
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4480
SELECT + + NULLIF ( - 82, CAST( NULL AS SIGNED ) * - COALESCE ( - - 47, - - 11 + - + 91, + 23, 11 ) * 36 + + NULLIF ( + 51, + COUNT( * ) ) * 67 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4480
SELECT + + NULLIF ( - 82, CAST ( NULL AS INTEGER ) * - COALESCE ( - - 47, - - 11 + - + 91, + 23, 11 ) * 36 + + NULLIF ( + 51, + COUNT ( * ) ) * 67 ) AS col0
----
-82

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL + - MAX( DISTINCT - 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + - MAX ( DISTINCT - 33 ) AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT ALL + - 64 DIV 31
----
-2

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + - 64 / 31
----
-2

query I rowsort
SELECT - - 50 * + 41 AS col2
----
2050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4486
SELECT DISTINCT + 79, - 87 / + - CAST( NULL AS SIGNED ) * COUNT( * ) + + + 12 * - 86 + + + ( 15 ) + + + 3 - - 78 AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-4486
SELECT DISTINCT + 79, - 87 / + - CAST ( NULL AS INTEGER ) * COUNT ( * ) + + + 12 * - 86 + + + ( 15 ) + + + 3 - - 78 AS col1
----
79
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT - COALESCE ( COUNT( * ), + COUNT( * ) DIV + - 19 * 28 + NULLIF ( - ( + 43 ), + + COUNT( * ) * - 19 DIV 33 ) ) + - 67
----
-68

skipif mysql # not compatible
query I rowsort label-4488
SELECT - COALESCE ( COUNT ( * ), + COUNT ( * ) / + - 19 * 28 + NULLIF ( - ( + 43 ), + + COUNT ( * ) * - 19 / 33 ) ) + - 67
----
-68

query I rowsort
SELECT NULLIF ( - - 52, - 80 ) AS col0
----
52

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4491
SELECT + 84 * + - 99 * 27 * + + CAST( NULL AS DECIMAL ) * + COUNT( * ) + - 70, COALESCE ( 67, - 27 * 81 + COUNT( * ) * - COUNT( * ) ) DIV 46 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4491
SELECT + 84 * + - 99 * 27 * + + CAST ( NULL AS REAL ) * + COUNT ( * ) + - 70, COALESCE ( 67, - 27 * 81 + COUNT ( * ) * - COUNT ( * ) ) / 46 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4492
SELECT ALL ( - 58 ) + - 25 * + 93 AS col1, + COUNT( * ) col1
----
-2383
1

skipif mysql # not compatible
query II rowsort label-4492
SELECT ALL ( - 58 ) + - 25 * + 93 AS col1, + COUNT ( * ) col1
----
-2383
1

query I rowsort
SELECT - 52 * - 82 * - 35 - - ( + 71 )
----
-149169

query I rowsort
SELECT ALL - 66 + - ( - - 91 )
----
-157

query I rowsort
SELECT ALL 93 + + + 43 - - 86 + - + 74 * 68 * - ( + - 6 )
----
-29970

query I rowsort
SELECT + 99 + - 2 + + 83
----
180

query I rowsort
SELECT ALL - 94 + - 77
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT + 75 + + + COALESCE ( - 84, + 59 + + - 31, 9 ) * + - 5 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT + 75 + + + COALESCE ( - 84, + 59 + + - 31, 9 ) * + - 5 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT 40 + - 73 * + NULLIF ( + COUNT( * ), + + 88 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT 40 + - 73 * + NULLIF ( + COUNT ( * ), + + 88 ) AS col1
----
-33

query I rowsort
SELECT - 63 + - 51 AS col0
----
-114

query II rowsort
SELECT ALL 18 AS col0, 66 - 83 col1
----
18
-17

query II rowsort
SELECT ALL 70 AS col2, - 96 AS col2
----
70
-96

query I rowsort
SELECT + 40 + + 4 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT + NULLIF ( 33, - COUNT( * ) ) + 90 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-4504
SELECT + NULLIF ( 33, - COUNT ( * ) ) + 90 AS col1
----
123

query I rowsort
SELECT + 57 * - 5 * - 19
----
5415

query II rowsort
SELECT 93 AS col0, 87 * 99 - 8 AS col0
----
93
8605

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL 27 - - MIN( - + 97 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL 27 - - MIN ( - + 97 ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4508
SELECT + NULLIF ( 34, + 23 * - 58 + - - COALESCE ( CAST( NULL AS DECIMAL ), + - 51 ) / - COUNT( * ) ) + + 72
----
106

skipif mysql # not compatible
query I rowsort label-4508
SELECT + NULLIF ( 34, + 23 * - 58 + - - COALESCE ( CAST ( NULL AS REAL ), + - 51 ) / - COUNT ( * ) ) + + 72
----
106

query I rowsort
SELECT ALL 21 * + + NULLIF ( 32, + 4 ) AS col2
----
672

query II rowsort
SELECT 79 AS col0, 76 AS col0
----
79
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 21 * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 21 * 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL MAX( DISTINCT 34 ) - + 94 * - 55 + + - 68
----
5136

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL MAX ( DISTINCT 34 ) - + 94 * - 55 + + - 68
----
5136

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT + 69 DIV - 15 + + - 92 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-4513
SELECT + 69 / - 15 + + - 92 AS col2
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-4514
SELECT ALL + 7 col1, - 67 DIV + + 5 AS col2
----
7
-13

skipif mysql # not compatible
query II rowsort label-4514
SELECT ALL + 7 col1, - 67 / + + 5 AS col2
----
7
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4515
SELECT DISTINCT + COALESCE ( + 31, CASE + 45 WHEN - 71 * 13 THEN - - 81 * - + 19 + 57 DIV - - MIN( ( 40 ) ) * CASE 20 WHEN - 89 THEN NULL ELSE 4 * - 17 END + - 8 ELSE 33 + + 5 END * + COUNT( * ) ) * 74 AS col0
----
2294

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + COALESCE ( + 31, CASE + 45 WHEN - 71 * 13 THEN - - 81 * - + 19 + 57 / - - MIN ( ( 40 ) ) * CASE 20 WHEN - 89 THEN NULL ELSE 4 * - 17 END + - 8 ELSE 33 + + 5 END * + COUNT ( * ) ) * 74 AS col0
----
2294

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

query I rowsort
SELECT - 29 * 76
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT + COUNT( 17 ) + - - 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4518
SELECT + COUNT ( 17 ) + - - 72 AS col2
----
73

query II rowsort
SELECT + - 17, - 93 * 98 AS col2
----
-17
-9114

query I rowsort
SELECT DISTINCT + 84 * + 15 + 13 AS col0
----
1273

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

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

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

skipif mysql # not compatible
query I rowsort label-4522
SELECT - + 40 * + 71 * - + COUNT ( * ) AS col0
----
2840

query II rowsort
SELECT DISTINCT + 25 AS col2, 9 col2
----
25
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4524
SELECT DISTINCT + 1 DIV - - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT + 1 / - - 85 AS col0
----
0

query II rowsort
SELECT ALL + + 92 AS col1, 0 * - ( - 73 ) col2
----
92
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - + MAX( ALL - + 38 ) + + + 41
----
79

skipif mysql # not compatible
query I rowsort label-4526
SELECT - + MAX ( ALL - + 38 ) + + + 41
----
79

query I rowsort
SELECT + NULLIF ( + + ( + - 45 ), + 81 ) * 71 * 64 + + 81 + - 96 AS col2
----
-204495

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT COUNT( * ) AS col0, - 93 - - 59 + - + 30 + 70 col1
----
1
6

skipif mysql # not compatible
query II rowsort label-4528
SELECT COUNT ( * ) AS col0, - 93 - - 59 + - + 30 + 70 col1
----
1
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT + ( + 57 ) DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT + ( + 57 ) / - 63 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4531
SELECT - 28 * + MAX( - 83 ) DIV - 81 + - + CAST( 53 AS SIGNED ) - + COALESCE ( - + ( 91 ), + ( + + NULLIF ( 14, - 1 * COUNT( * ) ) ) )
----
10

skipif mysql # not compatible
query I rowsort label-4531
SELECT - 28 * + MAX ( - 83 ) / - 81 + - + CAST ( 53 AS INTEGER ) - + COALESCE ( - + ( 91 ), + ( + + NULLIF ( 14, - 1 * COUNT ( * ) ) ) )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT ALL - - 95 * - - 90 + 9 + + 9 DIV - + 54 + 95 AS col0
----
8654

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - - 95 * - - 90 + 9 + + 9 / - + 54 + 95 AS col0
----
8654

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + SUM( 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4533
SELECT + SUM ( 31 ) AS col0
----
31

query I rowsort
SELECT ALL - 64 * + 94 * - 70
----
421120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4535
SELECT DISTINCT + 25 * - MAX( + - 40 ) * - SUM( DISTINCT - 8 ) * - 23 DIV + + COUNT( 34 ) + 86 + + 17 AS col2
----
-183897

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT + 25 * - MAX ( + - 40 ) * - SUM ( DISTINCT - 8 ) * - 23 / + + COUNT ( 34 ) + 86 + + 17 AS col2
----
-183897

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT - 75 * - COUNT( * ) + 98 * - 22 AS col2
----
-2081

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT - 75 * - COUNT ( * ) + 98 * - 22 AS col2
----
-2081

query I rowsort
SELECT NULLIF ( + 54, + 6 ) AS col1
----
54

query I rowsort
SELECT ALL 87 + + + 76 AS col0
----
163

query I rowsort
SELECT 17 * + 67 AS col1
----
1139

query I rowsort
SELECT ALL 28 - + + 64 * 49 AS col1
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT 43 * + COUNT( * ) col2
----
43

skipif mysql # not compatible
query I rowsort label-4541
SELECT 43 * + COUNT ( * ) col2
----
43

query I rowsort
SELECT DISTINCT 45 * - 62 * 39 AS col2
----
-108810

query I rowsort
SELECT ALL 80 * + - 33 AS col0
----
-2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4544
SELECT CASE + 95 WHEN - - CAST( - - COALESCE ( 24, - 81 * - 93 + COUNT( * ) ) AS SIGNED ) THEN 43 / 39 + - + CAST( NULL AS SIGNED ) WHEN + ( 12 ) + + COUNT( * ) THEN NULL END * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT CASE + 95 WHEN - - CAST ( - - COALESCE ( 24, - 81 * - 93 + COUNT ( * ) ) AS INTEGER ) THEN 43 / 39 + - + CAST ( NULL AS INTEGER ) WHEN + ( 12 ) + + COUNT ( * ) THEN NULL END * + 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT MIN( - 27 ) + + 74 + + 47 + - + 83 AS col2, 71 - COALESCE ( + 48, + 29, + 95 + - + 6 ) AS col1
----
11
23

skipif mysql # not compatible
query II rowsort label-4545
SELECT MIN ( - 27 ) + + 74 + + 47 + - + 83 AS col2, 71 - COALESCE ( + 48, + 29, + 95 + - + 6 ) AS col1
----
11
23

query II rowsort
SELECT ( - 35 ) * + 59 AS col0, - 90 + - 18 col0
----
-2065
-108

query I rowsort
SELECT - 57 + + 2 AS col0
----
-55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT NULLIF ( - 93, COUNT( * ) / - 39 + + 31 ) + - - 71 col1
----
-22

skipif mysql # not compatible
query I rowsort label-4549
SELECT NULLIF ( - 93, COUNT ( * ) / - 39 + + 31 ) + - - 71 col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT + COUNT( * ) * - - 17 AS col2, - 59 AS col0
----
17
-59

skipif mysql # not compatible
query II rowsort label-4550
SELECT + COUNT ( * ) * - - 17 AS col2, - 59 AS col0
----
17
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT ALL 19 DIV + + 33
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL 19 / + + 33
----
0

query I rowsort
SELECT - 89 * + - 62 AS col1
----
5518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4553
SELECT ALL - - COALESCE ( + 97, 90, + 20 * 72 + - + CASE + - 91 WHEN + + COALESCE ( + 91, 7 + + + COUNT( * ), 81 * - 82, NULLIF ( 26, 42 ) ) THEN CAST( NULL AS SIGNED ) + 15 WHEN - 60 THEN 44 END + + 60 * - 11 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - - COALESCE ( + 97, 90, + 20 * 72 + - + CASE + - 91 WHEN + + COALESCE ( + 91, 7 + + + COUNT ( * ), 81 * - 82, NULLIF ( 26, 42 ) ) THEN CAST ( NULL AS INTEGER ) + 15 WHEN - 60 THEN 44 END + + 60 * - 11 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT 11 * COUNT( * ) + - 50 * - 54 col0
----
2711

skipif mysql # not compatible
query I rowsort label-4554
SELECT 11 * COUNT ( * ) + - 50 * - 54 col0
----
2711

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL + + 9 * + + ( 67 ) - - MAX( - 33 ) * + - 68 AS col2
----
2847

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + + 9 * + + ( 67 ) - - MAX ( - 33 ) * + - 68 AS col2
----
2847

query I rowsort
SELECT ALL CASE + 19 WHEN + 78 + + 15 THEN + 84 / + 31 END + + 11 AS col0
----
NULL

query I rowsort
SELECT 91 * - - 13 * + - 48
----
-56784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4558
SELECT CAST( - 98 AS SIGNED ), 40 AS col0
----
-98
40

skipif mysql # not compatible
query II rowsort label-4558
SELECT CAST ( - 98 AS INTEGER ), 40 AS col0
----
-98
40

query II rowsort
SELECT DISTINCT 17 + - 38 * - - 25 col2, - 50 col0
----
-933
-50

query I rowsort
SELECT - 5 - 36 * - + 95
----
3415

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL - - COALESCE ( + COUNT( * ), + 52 ) + - 68
----
-67

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - - COALESCE ( + COUNT ( * ), + 52 ) + - 68
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL 88 + - 90 / + - 84 + + + 68 + + - CASE - 22 WHEN + + COUNT( * ) THEN - ( + 15 ) * - 21 ELSE NULL END * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL 88 + - 90 / + - 84 + + + 68 + + - CASE - 22 WHEN + + COUNT ( * ) THEN - ( + 15 ) * - 21 ELSE NULL END * + 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4563
SELECT DISTINCT - MAX( + - ( + CAST( - + 71 AS SIGNED ) ) )
----
-71

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT - MAX ( + - ( + CAST ( - + 71 AS INTEGER ) ) )
----
-71

query I rowsort
SELECT ALL - 30 - + 40
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT ALL 58 DIV - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL 58 / - 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT 17 + + - 86 * + + COUNT( * ) * + - CASE + COUNT( * ) WHEN - - 66 THEN 94 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT 17 + + - 86 * + + COUNT ( * ) * + - CASE + COUNT ( * ) WHEN - - 66 THEN 94 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT 53 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-4567
SELECT 53 / - 79
----
0

query II rowsort
SELECT - 56 AS col1, + 47 + + COALESCE ( - 97, 20 ) - 94
----
-56
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-4569
SELECT ALL + COALESCE ( + - 96, + 31 ) - - 30, 72 + + + COUNT( * ) + - 16 AS col0
----
-66
57

skipif mysql # not compatible
query II rowsort label-4569
SELECT ALL + COALESCE ( + - 96, + 31 ) - - 30, 72 + + + COUNT ( * ) + - 16 AS col0
----
-66
57

query I rowsort
SELECT 36 + + + ( + 83 ) AS col0
----
119

query I rowsort
SELECT 43 + 68 AS col2
----
111

query I rowsort
SELECT DISTINCT 57 * + + 3 col2
----
171

query I rowsort
SELECT ALL ( 82 ) - - 76 AS col0
----
158

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4574
SELECT 62 + CASE - 18 WHEN CAST( + 7 AS DECIMAL ) THEN NULL ELSE - + ( 92 ) END
----
-30

skipif mysql # not compatible
query I rowsort label-4574
SELECT 62 + CASE - 18 WHEN CAST ( + 7 AS REAL ) THEN NULL ELSE - + ( 92 ) END
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT + 13 * - 48 * COUNT( * )
----
-624

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + 13 * - 48 * COUNT ( * )
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT 71 + + NULLIF ( - - 16, - + COUNT( * ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4576
SELECT 71 + + NULLIF ( - - 16, - + COUNT ( * ) ) AS col2
----
87

query II rowsort
SELECT 77 * - 29 * - 7 AS col0, - 84 * 26 * 33 AS col0
----
15631
-72072

query I rowsort
SELECT 52 + - - 75 col0
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4579
SELECT 87 + 92 + - CAST( 71 AS SIGNED ) + - 76 * - + COUNT( DISTINCT + 81 ) * 31
----
2464

skipif mysql # not compatible
query I rowsort label-4579
SELECT 87 + 92 + - CAST ( 71 AS INTEGER ) + - 76 * - + COUNT ( DISTINCT + 81 ) * 31
----
2464

query II rowsort
SELECT 12, 21 AS col1
----
12
21

query I rowsort
SELECT 57 * + - 17 col1
----
-969

query I rowsort
SELECT 16 + + - 5 AS col2
----
11

query I rowsort
SELECT ALL + 34 + + 32
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4584
SELECT 49 + + - COUNT( - 67 ), CAST( 77 AS SIGNED ) col2
----
48
77

skipif mysql # not compatible
query II rowsort label-4584
SELECT 49 + + - COUNT ( - 67 ), CAST ( 77 AS INTEGER ) col2
----
48
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL - COALESCE ( 70, + 85, + 78 ) * + + COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - COALESCE ( 70, + 85, + 78 ) * + + COUNT ( * ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT 95 + + 95 * - 51 * COALESCE ( - + COUNT( DISTINCT + 28 ), + 68 * - COALESCE ( + - 78, - CAST( NULL AS SIGNED ) * + COUNT( * ) + - - 68, - 37 + 21 ) )
----
4940

skipif mysql # not compatible
query I rowsort label-4586
SELECT 95 + + 95 * - 51 * COALESCE ( - + COUNT ( DISTINCT + 28 ), + 68 * - COALESCE ( + - 78, - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - - 68, - 37 + 21 ) )
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL + MAX( + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + MAX ( + 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL + + 40 + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL + + 40 + COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4589
SELECT ALL + COALESCE ( + - 64, + 84, - 35 ) * + 27 - + ( 35 ) + + - COUNT( + 26 ) / CAST( NULL AS DECIMAL ) + 64 + 16 * 91 * 49 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL + COALESCE ( + - 64, + 84, - 35 ) * + 27 - + ( 35 ) + + - COUNT ( + 26 ) / CAST ( NULL AS REAL ) + 64 + 16 * 91 * 49 + 96
----
NULL

query II rowsort
SELECT + + 72, + 68 + + - NULLIF ( + 88, + + 88 ) col2
----
72
NULL

query I rowsort
SELECT ALL - 57 * - - 63
----
-3591

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

query II rowsort
SELECT 3, 86 AS col2
----
3
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4594
SELECT - 56 DIV - + 18 - - - 52 + - + 40 * - + COALESCE ( + 71, + 21 )
----
2791

skipif mysql # not compatible
query I rowsort label-4594
SELECT - 56 / - + 18 - - - 52 + - + 40 * - + COALESCE ( + 71, + 21 )
----
2791

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT - - 20 * - 17 + - 78 + - SUM( ALL - 1 ) AS col1
----
-417

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT - - 20 * - 17 + - 78 + - SUM ( ALL - 1 ) AS col1
----
-417

onlyif mysql # aggregate syntax: 
query II rowsort label-4596
SELECT DISTINCT - - 10 * - 12 - 2 + + COUNT( ALL 51 ) * 48 AS col2, COUNT( * )
----
-74
1

skipif mysql # not compatible
query II rowsort label-4596
SELECT DISTINCT - - 10 * - 12 - 2 + + COUNT ( ALL 51 ) * 48 AS col2, COUNT ( * )
----
-74
1

query I rowsort
SELECT ALL 60 * + 87
----
5220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4598
SELECT MIN( + NULLIF ( 65, + - 31 ) ) AS col1, CAST( NULL AS SIGNED )
----
65
NULL

skipif mysql # not compatible
query II rowsort label-4598
SELECT MIN ( + NULLIF ( 65, + - 31 ) ) AS col1, CAST ( NULL AS INTEGER )
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT COUNT( - 67 ) * + - 80 + - + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-4599
SELECT COUNT ( - 67 ) * + - 80 + - + COUNT ( * )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4600
SELECT DISTINCT + 38 * + COALESCE ( + 95, + COUNT( * ) + CAST( - + 59 AS SIGNED ) * + 16 ) - COUNT( * ) AS col1
----
3609

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT + 38 * + COALESCE ( + 95, + COUNT ( * ) + CAST ( - + 59 AS INTEGER ) * + 16 ) - COUNT ( * ) AS col1
----
3609

query I rowsort
SELECT ALL 52 * - - ( 15 ) AS col1
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT + MAX( + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-4602
SELECT + MAX ( + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT - COUNT( * ) + 88 - - 98 + - 52 + + 84 AS col0
----
217

skipif mysql # not compatible
query I rowsort label-4603
SELECT - COUNT ( * ) + 88 - - 98 + - 52 + + 84 AS col0
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + COALESCE ( + 97, 16, - + 57 + MIN( DISTINCT - 61 ) )
----
97

skipif mysql # not compatible
query I rowsort label-4604
SELECT + COALESCE ( + 97, 16, - + 57 + MIN ( DISTINCT - 61 ) )
----
97

query I rowsort
SELECT ALL 16 * + + 88
----
1408

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT DISTINCT - 54 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT - 54 / 88
----
0

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

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL MAX ( ALL - - 25 )
----
25

query I rowsort
SELECT + 63 * - 58
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - CASE + - ( + - 96 ) WHEN 91 - + - COUNT( * ) - + + 52 - COUNT( * ) / - + 60 * - ( + + 75 ) + + - 19 - 81 * + 92 / + 49 THEN NULL ELSE - 57 END
----
57

skipif mysql # not compatible
query I rowsort label-4609
SELECT - CASE + - ( + - 96 ) WHEN 91 - + - COUNT ( * ) - + + 52 - COUNT ( * ) / - + 60 * - ( + + 75 ) + + - 19 - 81 * + 92 / + 49 THEN NULL ELSE - 57 END
----
57

query I rowsort
SELECT + 27 * 65
----
1755

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - ( - - MIN( DISTINCT + + 61 ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4613
SELECT - ( - - MIN ( DISTINCT + + 61 ) ) AS col0
----
-61

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

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - ( - 9 ) + 2 + - + ( COUNT ( * ) )
----
10

query I rowsort
SELECT DISTINCT + + 67 + 97 - + 18 AS col1
----
146

query I rowsort
SELECT DISTINCT ( - - 80 ) * - - 82
----
6560

query I rowsort
SELECT DISTINCT + 30 + - 8 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4618
SELECT - + 8 / 8 * + 78 + - CAST( NULL AS SIGNED ), - ( - + ( COALESCE ( + 54, + 14 ) ) ) * - COALESCE ( - 38, - - 23 * - 12 * 6 * 91 + 76, 27 * 78 ) + NULLIF ( + 2 + + CAST( + COALESCE ( + SUM( 54 ), + ( 18 ) ) + - AVG ( ALL + 18 ) * - 95 AS SIGNED ), + 63 + 36 ) AS col2
----
NULL
3818

skipif mysql # not compatible
query II rowsort label-4618
SELECT - + 8 / 8 * + 78 + - CAST ( NULL AS INTEGER ), - ( - + ( COALESCE ( + 54, + 14 ) ) ) * - COALESCE ( - 38, - - 23 * - 12 * 6 * 91 + 76, 27 * 78 ) + NULLIF ( + 2 + + CAST ( + COALESCE ( + SUM ( 54 ), + ( 18 ) ) + - AVG ( ALL + 18 ) * - 95 AS INTEGER ), + 63 + 36 ) AS col2
----
NULL
3818

query I rowsort
SELECT + + 97 + 28 AS col2
----
125

query I rowsort
SELECT ALL - 28 + + 99
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT - - 23 + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4621
SELECT - - 23 + COUNT ( * ) AS col1
----
24

query II rowsort
SELECT - 21 + 54 AS col1, - 89 AS col2
----
33
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4623
SELECT + COUNT( * ) * + CASE - - COALESCE ( ( 56 ), - COUNT( DISTINCT 21 ) * 13, + + 26 ) WHEN + - NULLIF ( - CAST( NULL AS SIGNED ), - 16 + + - 37 ) THEN - 26 / 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT + COUNT ( * ) * + CASE - - COALESCE ( ( 56 ), - COUNT ( DISTINCT 21 ) * 13, + + 26 ) WHEN + - NULLIF ( - CAST ( NULL AS INTEGER ), - 16 + + - 37 ) THEN - 26 / 70 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4624
SELECT - CAST ( + - COUNT ( ALL 66 ) AS INTEGER ) / - - 65 + - - 8 AS col0
----
8

query I rowsort
SELECT DISTINCT - COALESCE ( 76, + 85 + - 53 + + 54 - - - 13 + - 4 * - + 93, - 20 ) * 94 AS col2
----
-7144

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT COUNT( ALL - - 39 )
----
1

skipif mysql # not compatible
query I rowsort label-4626
SELECT COUNT ( ALL - - 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL - 85 * COUNT( * ) * - - 19
----
-1615

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL - 85 * COUNT ( * ) * - - 19
----
-1615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4628
SELECT - + 54 * - CASE - 62 WHEN + COUNT( * ) + + - ( - 72 ) / + - COUNT( * ) THEN NULL ELSE + 7 END + COUNT( * ) AS col2, 97 / + CASE + + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) * 66 THEN - 67 * + 15 - + 3 ELSE NULL END
----
379
NULL

skipif mysql # not compatible
query II rowsort label-4628
SELECT - + 54 * - CASE - 62 WHEN + COUNT ( * ) + + - ( - 72 ) / + - COUNT ( * ) THEN NULL ELSE + 7 END + COUNT ( * ) AS col2, 97 / + CASE + + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) * 66 THEN - 67 * + 15 - + 3 ELSE NULL END
----
379
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4629
SELECT MIN( - 96 ), 47 * + CAST( + 25 AS SIGNED ) AS col2
----
-96
1175

skipif mysql # not compatible
query II rowsort label-4629
SELECT MIN ( - 96 ), 47 * + CAST ( + 25 AS INTEGER ) AS col2
----
-96
1175

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4630
SELECT DISTINCT + 94 * SUM( DISTINCT - ( - 44 ) ) - + 12, - 65 + 75 DIV + ( - 24 ) AS col1
----
4124
-68

skipif mysql # not compatible
query II rowsort label-4630
SELECT DISTINCT + 94 * SUM ( DISTINCT - ( - 44 ) ) - + 12, - 65 + 75 / + ( - 24 ) AS col1
----
4124
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL + MAX( ALL - 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + MAX ( ALL - 2 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - 41 * - 15 * + 11 * + COUNT( * ) * + 71 AS col2
----
480315

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 41 * - 15 * + 11 * + COUNT ( * ) * + 71 AS col2
----
480315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT + COALESCE ( - 86, + 27 DIV + + 3 + MIN( 14 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-4633
SELECT + COALESCE ( - 86, + 27 / + + 3 + MIN ( 14 ) )
----
-86

query I rowsort
SELECT + ( + 68 ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT - 93 DIV + 27 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4635
SELECT - 93 / + 27 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT ALL 5 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL 5 / + 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4637
SELECT ALL 98 * + + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ), MIN( DISTINCT - 59 ) AS col0
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-4637
SELECT ALL 98 * + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ), MIN ( DISTINCT - 59 ) AS col0
----
NULL
-59

query I rowsort
SELECT ALL 57 * 19 AS col1
----
1083

query I rowsort
SELECT ALL 69 * 97
----
6693

query II rowsort
SELECT DISTINCT + 10, 78 col2
----
10
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + 39 * ( + ( COUNT( * ) ) )
----
39

skipif mysql # not compatible
query I rowsort label-4641
SELECT + 39 * ( + ( COUNT ( * ) ) )
----
39

query I rowsort
SELECT ALL 63 * - - 25 AS col2
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT + 3 * + MAX( ALL 72 ) AS col2
----
216

skipif mysql # not compatible
query I rowsort label-4643
SELECT + 3 * + MAX ( ALL 72 ) AS col2
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT + 9 * - + NULLIF ( - 64, - + 67 ) DIV 59 col0
----
9

skipif mysql # not compatible
query I rowsort label-4644
SELECT + 9 * - + NULLIF ( - 64, - + 67 ) / 59 col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT ALL 47 * + - CAST( + - 79 AS SIGNED ) + - - 62 * - 62
----
-131

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL 47 * + - CAST ( + - 79 AS INTEGER ) + - - 62 * - 62
----
-131

query I rowsort
SELECT + 21 + - + 26 AS col1
----
-5

query I rowsort
SELECT ALL 27 * + - 55 AS col2
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL + COUNT( * ) * - COUNT( * ) + 80 col1
----
79

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + 80 col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4649
SELECT + CAST( + 44 AS SIGNED ) + 24 * - 71 + + CAST( NULL AS SIGNED ) * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT + CAST ( + 44 AS INTEGER ) + 24 * - 71 + + CAST ( NULL AS INTEGER ) * + 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL MIN( + 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL MIN ( + 80 ) col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT DISTINCT COUNT( * ) + 46 col0
----
47

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT COUNT ( * ) + 46 col0
----
47

query II rowsort
SELECT DISTINCT - 7, + 92 AS col0
----
-7
92

query I rowsort
SELECT DISTINCT - 74 + + - 5
----
-79

query I rowsort
SELECT + 26 * - - 29
----
754

query I rowsort
SELECT ALL 66 * - 64 AS col1
----
-4224

query II rowsort
SELECT DISTINCT 26, + 17 + + + 28 + - 41 * 3 AS col1
----
26
-78

query I rowsort
SELECT - 9 + - 14 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4658
SELECT - COALESCE ( + 49, + + 64 * + - 44 * + 95 * - 4 DIV + - 16 ) + + - 94 + + + SUM( - - 34 ) * 5 AS col2, CAST( NULL AS SIGNED ) AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4658
SELECT - COALESCE ( + 49, + + 64 * + - 44 * + 95 * - 4 / + - 16 ) + + - 94 + + + SUM ( - - 34 ) * 5 AS col2, CAST ( NULL AS INTEGER ) AS col2
----
27
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT ALL + CAST( - 61 AS SIGNED ) - 54 AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + CAST ( - 61 AS INTEGER ) - 54 AS col2
----
-115

query I rowsort
SELECT + + ( + 78 ) * 93
----
7254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT ALL - CAST( - 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL - CAST ( - 40 AS INTEGER )
----
40

query I rowsort
SELECT ALL 55 * + + 74 AS col1
----
4070

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT ALL + 25 DIV 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + 25 / 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT 58 * - COUNT( * ) * + 81 AS col2
----
-4698

skipif mysql # not compatible
query I rowsort label-4664
SELECT 58 * - COUNT ( * ) * + 81 AS col2
----
-4698

query I rowsort
SELECT - ( - + 89 ) * + COALESCE ( - - 57, + 96 ) AS col1
----
5073

query I rowsort
SELECT 4 * + 6 * + 64 * - NULLIF ( 48, - 97 + + 55 ) AS col1
----
-73728

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT 28 DIV + + 25 - - - 57 col2
----
-56

skipif mysql # not compatible
query I rowsort label-4667
SELECT 28 / + + 25 - - - 57 col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT - + MAX( ALL - 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - + MAX ( ALL - 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT - COUNT( - 20 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4669
SELECT - COUNT ( - 20 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 17 * + 33 * - MIN( DISTINCT 19 ) + + 77 AS col1
----
-10582

skipif mysql # not compatible
query I rowsort label-4670
SELECT 17 * + 33 * - MIN ( DISTINCT 19 ) + + 77 AS col1
----
-10582

query I rowsort
SELECT 36 * + 60
----
2160

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT 72 * 56, - ( + 55 ) * + 31 + COUNT( * ) AS col2
----
4032
-1704

skipif mysql # not compatible
query II rowsort label-4672
SELECT 72 * 56, - ( + 55 ) * + 31 + COUNT ( * ) AS col2
----
4032
-1704

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT ALL - COUNT( * ), 72 AS col2
----
-1
72

skipif mysql # not compatible
query II rowsort label-4673
SELECT ALL - COUNT ( * ), 72 AS col2
----
-1
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT 35 * + COUNT( * ) * - + 31 + + 90 * + 96 + + COUNT( * )
----
7556

skipif mysql # not compatible
query I rowsort label-4674
SELECT 35 * + COUNT ( * ) * - + 31 + + 90 * + 96 + + COUNT ( * )
----
7556

query II rowsort
SELECT 15 AS col2, 29
----
15
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT ALL - CASE ( + 70 ) WHEN + + 19 + CASE 16 WHEN CAST( + 7 AS SIGNED ) THEN - - 5 * 87 WHEN - - 78 / - CAST( NULL AS SIGNED ) THEN NULL WHEN 2 THEN NULL END THEN NULL ELSE + 45 + - ( + + ( + 50 ) ) END
----
5

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - CASE ( + 70 ) WHEN + + 19 + CASE 16 WHEN CAST ( + 7 AS INTEGER ) THEN - - 5 * 87 WHEN - - 78 / - CAST ( NULL AS INTEGER ) THEN NULL WHEN 2 THEN NULL END THEN NULL ELSE + 45 + - ( + + ( + 50 ) ) END
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT 72 DIV - 39 + 79 - + 61 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4677
SELECT 72 / - 39 + 79 - + 61 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL + 45 * + - MAX( 36 )
----
-1620

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + 45 * + - MAX ( 36 )
----
-1620

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4679
SELECT 78 + - 44 + - CAST( NULL AS DECIMAL ) + - + 91 * + 34 / 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT 78 + - 44 + - CAST ( NULL AS REAL ) + - + 91 * + 34 / 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4680
SELECT + COUNT( * ) * - - CAST( NULL AS DECIMAL ) + - + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT + COUNT ( * ) * - - CAST ( NULL AS REAL ) + - + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL - ( - - ( COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - ( - - ( COUNT ( * ) ) ) AS col1
----
-1

query II rowsort
SELECT ALL - 26, 35 AS col1
----
-26
35

query II rowsort
SELECT + 75 AS col1, 54 + - NULLIF ( - 81, + 19 * ( 37 ) * 12 - + - 3 * + - 18 * - 2 )
----
75
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT NULLIF ( + ( CAST( NULL AS SIGNED ) ), + 15 ) + - 27 - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT NULLIF ( + ( CAST ( NULL AS INTEGER ) ), + 15 ) + - 27 - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4685
SELECT ALL COUNT( * ) + + CAST( - 98 AS SIGNED ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL COUNT ( * ) + + CAST ( - 98 AS INTEGER ) AS col2
----
-97

query I rowsort
SELECT ALL - NULLIF ( - + 70, 81 ) AS col1
----
70

query III rowsort
SELECT ALL - 16 col1, 38 col2, 44 * - 73
----
-16
38
-3212

query I rowsort
SELECT ALL + 10 + - 99 AS col0
----
-89

query II rowsort
SELECT - + 47 AS col2, 0
----
-47
0

query I rowsort
SELECT ALL - + 59 + - 69 AS col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - CASE - - COUNT( * ) WHEN 91 + - 0 + 70 * - 64 THEN 32 END * + + 50 - + - 55 + - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT - CASE - - COUNT ( * ) WHEN 91 + - 0 + 70 * - 64 THEN 32 END * + + 50 - + - 55 + - + 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT NULLIF ( + + ( + 91 ), - 20 + + + COUNT( - + 83 ) ) col0, 42 col1
----
91
42

skipif mysql # not compatible
query II rowsort label-4692
SELECT NULLIF ( + + ( + 91 ), - 20 + + + COUNT ( - + 83 ) ) col0, 42 col1
----
91
42

query II rowsort
SELECT - 20 col2, - 64 AS col2
----
-20
-64

query II rowsort
SELECT - 43 AS col1, 64
----
-43
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4695
SELECT - 54, + COUNT( * ) * - + 39 + 40 * + - 93 AS col2
----
-54
-3759

skipif mysql # not compatible
query II rowsort label-4695
SELECT - 54, + COUNT ( * ) * - + 39 + 40 * + - 93 AS col2
----
-54
-3759

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL CASE - - 34 WHEN - COUNT( * ) * + + 20 * + 29 / 88 - 89 + - - 43 * + 86 * + 60 / + COALESCE ( - + 66, + 49, + ( + 42 ) - 27 / + 14 ) * 18 THEN - 61 / + 97 + 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL CASE - - 34 WHEN - COUNT ( * ) * + + 20 * + 29 / 88 - 89 + - - 43 * + 86 * + 60 / + COALESCE ( - + 66, + 49, + ( + 42 ) - 27 / + 14 ) * 18 THEN - 61 / + 97 + 67 END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4697
SELECT 70 * - 30 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT 70 * - 30 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ( NULLIF ( - - COUNT( * ), - 0 ) ) - 91 + + + 26 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4698
SELECT ( NULLIF ( - - COUNT ( * ), - 0 ) ) - 91 + + + 26 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT + 51 * + 1 + - 11 - 32 * - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT + 51 * + 1 + - 11 - 32 * - COUNT ( * ) AS col1
----
72

query I rowsort
SELECT DISTINCT 95 - + 27 AS col0
----
68

query II rowsort
SELECT ( + - 22 ) AS col0, 62 AS col2
----
-22
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT 29 + - - NULLIF ( CASE + 79 WHEN + + COUNT( * ) + 11 * CASE + - 99 WHEN + 85 THEN - COALESCE ( + ( + 42 ), 25, + ( - 65 ) ) WHEN - 44 + + ( - CASE - 19 WHEN ( 42 ) + - 48 * 93 THEN - COUNT( * ) ELSE NULL END + + 86 ) THEN NULL END * 5 + 33 THEN - 85 * 4 ELSE ( 8 ) * 57 - 23 * - CAST( NULL AS SIGNED ) END, ( 2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT 29 + - - NULLIF ( CASE + 79 WHEN + + COUNT ( * ) + 11 * CASE + - 99 WHEN + 85 THEN - COALESCE ( + ( + 42 ), 25, + ( - 65 ) ) WHEN - 44 + + ( - CASE - 19 WHEN ( 42 ) + - 48 * 93 THEN - COUNT ( * ) ELSE NULL END + + 86 ) THEN NULL END * 5 + 33 THEN - 85 * 4 ELSE ( 8 ) * 57 - 23 * - CAST ( NULL AS INTEGER ) END, ( 2 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4703
SELECT CASE + 92 WHEN CAST( + + NULLIF ( - 8, 7 ) AS SIGNED ) / + + CAST( + 47 AS SIGNED ) * + 9 THEN + COUNT( * ) + - 33 END * - 59 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT CASE + 92 WHEN CAST ( + + NULLIF ( - 8, 7 ) AS INTEGER ) / + + CAST ( + 47 AS INTEGER ) * + 9 THEN + COUNT ( * ) + - 33 END * - 59 - + COUNT ( * )
----
NULL

query I rowsort
SELECT - 40 + - 2
----
-42

query I rowsort
SELECT 19 - + 78 AS col2
----
-59

query I rowsort
SELECT - NULLIF ( + 52, 50 ) AS col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT ( + - 39 ) DIV 97 * 36 * - 55
----
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT ( + - 39 ) / 97 * 36 * - 55
----
0

query I rowsort
SELECT ALL 88 * + 16
----
1408

query I rowsort
SELECT DISTINCT + 31 * 17
----
527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT CAST( - - 20 AS SIGNED ) * + 41 * + 39 * 32 - 82
----
1023278

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT CAST ( - - 20 AS INTEGER ) * + 41 * + 39 * 32 - 82
----
1023278

onlyif mysql # DIV for integer division: 
query I rowsort label-4711
SELECT + ( + 78 ) DIV 60 + - 30 col1
----
-29

skipif mysql # not compatible
query I rowsort label-4711
SELECT + ( + 78 ) / 60 + - 30 col1
----
-29

query II rowsort
SELECT ALL 93 + 45 AS col0, + 34 * + 16 * + 36
----
138
19584

query I rowsort
SELECT ALL 52 * - + 3 * 2 AS col1
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT COUNT( * ) - + - 34
----
35

skipif mysql # not compatible
query I rowsort label-4714
SELECT COUNT ( * ) - + - 34
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL 46 + COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL 46 + COUNT ( * ) AS col2
----
47

query I rowsort
SELECT 97 * 79
----
7663

query I rowsort
SELECT ALL + 41 + - + 7
----
34

query I rowsort
SELECT ALL - 78 + ( 34 ) col0
----
-44

query I rowsort
SELECT 77 - 93 + 29 * - 72 AS col0
----
-2104

query I rowsort
SELECT DISTINCT + 5 * - ( + - ( + 38 ) )
----
190

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4721
SELECT 77 + NULLIF ( + 90, + 17 * - + MIN( DISTINCT 17 ) ) - CAST( NULL AS DECIMAL ) * - + 53 + + 42 DIV 23 + MIN( ALL + 8 ) AS col2, - 17 DIV + - 31 * - COUNT( * ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4721
SELECT 77 + NULLIF ( + 90, + 17 * - + MIN ( DISTINCT 17 ) ) - CAST ( NULL AS REAL ) * - + 53 + + 42 / 23 + MIN ( ALL + 8 ) AS col2, - 17 / + - 31 * - COUNT ( * ) AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - MIN( + - 12 ) * + 93 - 79 - + + 90 + + + 7 AS col2
----
954

skipif mysql # not compatible
query I rowsort label-4722
SELECT - MIN ( + - 12 ) * + 93 - 79 - + + 90 + + + 7 AS col2
----
954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4723
SELECT ALL + COUNT( * ) * + COALESCE ( 68, - 97 ) DIV + - 48 + + 64
----
63

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + COUNT ( * ) * + COALESCE ( 68, - 97 ) / + - 48 + + 64
----
63

query I rowsort
SELECT ALL COALESCE ( + 70, + 98 ) AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT ALL + + 19 - + + 26 * + CASE + - COUNT( * ) WHEN + - 85 + CAST( - 28 AS SIGNED ) * 91 THEN NULL WHEN 6 * 62 + + 68 THEN - + NULLIF ( CAST( COUNT( * ) AS SIGNED ), + 54 ) * + 31 + ( - 24 ) ELSE NULL END * + 73 + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL + + 19 - + + 26 * + CASE + - COUNT ( * ) WHEN + - 85 + CAST ( - 28 AS INTEGER ) * 91 THEN NULL WHEN 6 * 62 + + 68 THEN - + NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), + 54 ) * + 31 + ( - 24 ) ELSE NULL END * + 73 + 87 AS col1
----
NULL

query I rowsort
SELECT 70 * - NULLIF ( 11, - 64 )
----
-770

query I rowsort
SELECT ALL + ( + + 60 ) col0
----
60

query I rowsort
SELECT ALL 84 * - - 99 col1
----
8316

query I rowsort
SELECT - - 52 * + 28 AS col0
----
1456

query I rowsort
SELECT - 58 + - 63 * 53
----
-3397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT DISTINCT - - 77 DIV 48 + - 29 - 42 + + MIN( - - 3 )
----
-67

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT - - 77 / 48 + - 29 - 42 + + MIN ( - - 3 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4732
SELECT + + CAST( NULL AS SIGNED ) + - - 48 - + 69 AS col2, COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4732
SELECT + + CAST ( NULL AS INTEGER ) + - - 48 - + 69 AS col2, COUNT ( * ) col1
----
NULL
1

query III rowsort
SELECT - + 17 * 30, + 59 AS col2, + 55 * - 51 AS col2
----
-510
59
-2805

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4734
SELECT + 3 * - COUNT( * ) AS col2, 97 DIV 61 + + 9 + ( + - 83 ) DIV 47 * - - 3 DIV 83
----
-3
10

skipif mysql # not compatible
query II rowsort label-4734
SELECT + 3 * - COUNT ( * ) AS col2, 97 / 61 + + 9 + ( + - 83 ) / 47 * - - 3 / 83
----
-3
10

query I rowsort
SELECT DISTINCT - 4 + - 59
----
-63

query II rowsort
SELECT ALL 41, ( + + 94 ) * - 11 + - + 48 AS col1
----
41
-1082

query II rowsort
SELECT 67, + 14 * - - COALESCE ( + 19, + 69 * + 30 ) AS col2
----
67
266

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT - 34 - + - COUNT( * ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-4738
SELECT - 34 - + - COUNT ( * ) col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT + 52 + MIN( - - 1 ) * - 29 - + SUM( ALL - 49 ) + 82 + - - 57 * 90 * + 14 + + 53 * 95
----
77009

skipif mysql # not compatible
query I rowsort label-4739
SELECT + 52 + MIN ( - - 1 ) * - 29 - + SUM ( ALL - 49 ) + 82 + - - 57 * 90 * + 14 + + 53 * 95
----
77009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4740
SELECT + 4 DIV COUNT( + CAST( - 83 AS SIGNED ) ) + + 35
----
39

skipif mysql # not compatible
query I rowsort label-4740
SELECT + 4 / COUNT ( + CAST ( - 83 AS INTEGER ) ) + + 35
----
39

query I rowsort
SELECT + 41 * 96 + + 8
----
3944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4742
SELECT + 80 * - - NULLIF ( - - 68, + 2 ) DIV + COUNT( * ) AS col0
----
5440

skipif mysql # not compatible
query I rowsort label-4742
SELECT + 80 * - - NULLIF ( - - 68, + 2 ) / + COUNT ( * ) AS col0
----
5440

query I rowsort
SELECT ALL 92 * - + 52
----
-4784

query I rowsort
SELECT + 98 + + - 36 - - + 76 + 67 + - - 45 col1
----
250

query II rowsort
SELECT ALL 60 * - 49 + - + 23, 29 * - - 51 AS col2
----
-2963
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL + SUM( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + SUM ( - 55 )
----
-55

query I rowsort
SELECT ALL + 54 * 18 * - 70 * - 17 - 94 * 72 AS col0
----
1149912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4748
SELECT DISTINCT MAX( + + 95 ) * + + CASE COUNT( * ) WHEN - 27 / + 95 THEN NULL WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN + + CAST( NULL AS SIGNED ) WHEN - 41 + - - COUNT( * ) THEN + 10 * - - 68 * + - 0 END * 82 - 96 AS col0, 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-4748
SELECT DISTINCT MAX ( + + 95 ) * + + CASE COUNT ( * ) WHEN - 27 / + 95 THEN NULL WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN + + CAST ( NULL AS INTEGER ) WHEN - 41 + - - COUNT ( * ) THEN + 10 * - - 68 * + - 0 END * 82 - 96 AS col0, 58
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT 10 * - COUNT( * ) + 82 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4749
SELECT 10 * - COUNT ( * ) + 82 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL + MAX( - - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + MAX ( - - 67 )
----
67

query I rowsort
SELECT - 3 * + - 98 + + ( + 38 )
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT - 62 + 57 * + 36 + + COUNT( * ) + SUM( - 66 ) + - 66 * - 45 * ( + + 39 ) + + 13 * + 93 + - 70 - - + 2 AS col0
----
118896

skipif mysql # not compatible
query I rowsort label-4752
SELECT - 62 + 57 * + 36 + + COUNT ( * ) + SUM ( - 66 ) + - 66 * - 45 * ( + + 39 ) + + 13 * + 93 + - 70 - - + 2 AS col0
----
118896

query I rowsort
SELECT DISTINCT + 62 * + + 42 AS col1
----
2604

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT ALL + COUNT( * ) col0, 78
----
1
78

skipif mysql # not compatible
query II rowsort label-4754
SELECT ALL + COUNT ( * ) col0, 78
----
1
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4755
SELECT ALL - + 16 * - CAST( - 32 AS SIGNED ) AS col1, + 30 AS col2
----
-512
30

skipif mysql # not compatible
query II rowsort label-4755
SELECT ALL - + 16 * - CAST ( - 32 AS INTEGER ) AS col1, + 30 AS col2
----
-512
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - - COUNT( * ) * + - ( - 11 ) + + 60
----
71

skipif mysql # not compatible
query I rowsort label-4756
SELECT - - COUNT ( * ) * + - ( - 11 ) + + 60
----
71

query I rowsort
SELECT DISTINCT - 1 * - - 77
----
-77

query I rowsort
SELECT - - ( - ( + - 79 ) )
----
79

query I rowsort
SELECT - - 63 * 6
----
378

query II rowsort
SELECT - 23 AS col0, + ( - + 3 ) AS col2
----
-23
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4761
SELECT - 18 DIV + 28 + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4761
SELECT - 18 / + 28 + - COUNT ( * ) col2
----
-1

query I rowsort
SELECT - CASE 67 WHEN 50 * + 98 THEN 88 + + 56 WHEN + - 84 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4763
SELECT DISTINCT - 61 AS col2, CAST( NULL AS SIGNED ) * + 3 col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-4763
SELECT DISTINCT - 61 AS col2, CAST ( NULL AS INTEGER ) * + 3 col0
----
-61
NULL

query I rowsort
SELECT ALL - 8 + - - 62 AS col1
----
54

query I rowsort
SELECT - 45 - 80 AS col1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL + - 36 + - MAX( 4 ) + + 62 * + 45 AS col0
----
2750

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL + - 36 + - MAX ( 4 ) + + 62 * + 45 AS col0
----
2750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT - - 5 * 90 DIV - 25 + - 71 * - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-4767
SELECT - - 5 * 90 / - 25 + - 71 * - COUNT ( * )
----
53

query I rowsort
SELECT ALL 58 * + 83 AS col2
----
4814

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT ALL - 13 DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL - 13 / 18
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT - 76 DIV - - ( + 56 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4770
SELECT - 76 / - - ( + 56 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4771
SELECT - NULLIF ( + 79, + COUNT( * ) ) + - - 99 DIV 26 + - - CAST( - + COUNT( * ) AS SIGNED ) - - + 65 + - - 44
----
32

skipif mysql # not compatible
query I rowsort label-4771
SELECT - NULLIF ( + 79, + COUNT ( * ) ) + - - 99 / 26 + - - CAST ( - + COUNT ( * ) AS INTEGER ) - - + 65 + - - 44
----
32

query I rowsort
SELECT DISTINCT - 95 + + ( 23 ) * 60 * 64 + + + 3 AS col1
----
88228

query I rowsort
SELECT + NULLIF ( 11, + + 84 - 26 + 75 / + 10 * 99 / 47 + - 82 ) - 4 AS col2
----
7

query I rowsort
SELECT - ( + 45 ) col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL 40 + + - 84 * - 77 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL 40 + + - 84 * - 77 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 96 + 49 AS col1
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT ALL 87 DIV - 52 - - + 44 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL 87 / - 52 - - + 44 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT ALL - 24 * + CASE 13 WHEN 85 THEN - + 69 / - 74 ELSE + CAST( NULL AS SIGNED ) + 53 + + + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL - 24 * + CASE 13 WHEN 85 THEN - + 69 / - 74 ELSE + CAST ( NULL AS INTEGER ) + 53 + + + COUNT ( * ) END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT ALL + 10 DIV - 52 - - 89 * + 46 col1
----
4094

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + 10 / - 52 - - 89 * + 46 col1
----
4094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT + 12 * - 58 + - CAST( 83 AS SIGNED ) col0
----
-779

skipif mysql # not compatible
query I rowsort label-4780
SELECT + 12 * - 58 + - CAST ( 83 AS INTEGER ) col0
----
-779

query I rowsort
SELECT + 27 * + 14
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT + COALESCE ( + - 51, + + 29 * - CAST( NULL AS SIGNED ), - ( - 82 ) + + CAST( NULL AS SIGNED ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4782
SELECT + COALESCE ( + - 51, + + 29 * - CAST ( NULL AS INTEGER ), - ( - 82 ) + + CAST ( NULL AS INTEGER ) ) AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4783
SELECT ALL + COUNT( * ) DIV - - 44 - - + ( - 92 ) * - COUNT( * ) + CASE 13 WHEN 71 DIV - MIN( - + 54 ) THEN + 29 WHEN + COALESCE ( - 0, - 88, - 76 ) THEN NULL WHEN - + 29 + + + COUNT( DISTINCT - 97 ) THEN 62 * COUNT( DISTINCT + 80 ) ELSE COUNT( * ) + + COUNT( * ) END * 50 AS col1
----
192

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL + COUNT ( * ) / - - 44 - - + ( - 92 ) * - COUNT ( * ) + CASE 13 WHEN 71 / - MIN ( - + 54 ) THEN + 29 WHEN + COALESCE ( - 0, - 88, - 76 ) THEN NULL WHEN - + 29 + + + COUNT ( DISTINCT - 97 ) THEN 62 * COUNT ( DISTINCT + 80 ) ELSE COUNT ( * ) + + COUNT ( * ) END * 50 AS col1
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT CAST( - SUM( ALL 89 ) AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-4784
SELECT CAST ( - SUM ( ALL 89 ) AS INTEGER )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4785
SELECT ALL - 13 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - 13 / - 85
----
0

query I rowsort
SELECT + - 2 - + 12
----
-14

query I rowsort
SELECT - - 12 * 90 + + CASE - 9 WHEN - 78 * + 3 * 14 THEN 70 + 40 * 2 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL - 63 * - + NULLIF ( + 5, + COUNT( * ) )
----
315

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - 63 * - + NULLIF ( + 5, + COUNT ( * ) )
----
315

query I rowsort
SELECT + 26 * + 36
----
936

query I rowsort
SELECT + 70 * + + 55 col1
----
3850

query I rowsort
SELECT - 79 + 34 + - 64 * + + 99 * - + 34
----
215379

query I rowsort
SELECT 78 - - + 28 + + 72
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT - + ( + ( - 62 ) ) * - ( + - CASE + ( - 71 ) WHEN - COUNT( * ) + + 95 + - 88 + 65 / - 14 THEN NULL WHEN 61 * + 55 THEN - 70 * + 84 WHEN 32 THEN + ( - + COUNT( * ) ) * - 61 END ) * + 27 + AVG ( - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT - + ( + ( - 62 ) ) * - ( + - CASE + ( - 71 ) WHEN - COUNT ( * ) + + 95 + - 88 + 65 / - 14 THEN NULL WHEN 61 * + 55 THEN - 70 * + 84 WHEN 32 THEN + ( - + COUNT ( * ) ) * - 61 END ) * + 27 + AVG ( - 74 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + NULLIF ( - 31, - 29 * COUNT( * ) / - 14 )
----
-31

skipif mysql # not compatible
query I rowsort label-4794
SELECT + NULLIF ( - 31, - 29 * COUNT ( * ) / - 14 )
----
-31

query I rowsort
SELECT 27 + + 3 col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4796
SELECT ALL 46 + + + 45 + - - MAX( 12 ) + + ( - + SUM( + 17 ) ) DIV + COUNT( DISTINCT + + 61 ) + ( - ( - 25 ) ) * + - 27 * + 56 * COUNT( * )
----
-37714

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL 46 + + + 45 + - - MAX ( 12 ) + + ( - + SUM ( + 17 ) ) / + COUNT ( DISTINCT + + 61 ) + ( - ( - 25 ) ) * + - 27 * + 56 * COUNT ( * )
----
-37714

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT SUM( - - 24 ) + + + 38 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT SUM ( - - 24 ) + + + 38 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT ALL + 45 + + CAST( + 53 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + 45 + + CAST ( + 53 AS INTEGER ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT 96 + - COUNT( * ) * - 42 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-4799
SELECT 96 + - COUNT ( * ) * - 42 AS col0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT ALL + CAST( + 56 AS SIGNED ) + + - 75 * - 21 + + + 39
----
1670

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + CAST ( + 56 AS INTEGER ) + + - 75 * - 21 + + + 39
----
1670

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL - + COUNT( * ) + + ( MAX( ALL + + 80 ) ) + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - + COUNT ( * ) + + ( MAX ( ALL + + 80 ) ) + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT - 9 * + - MIN( DISTINCT - 7 )
----
-63

skipif mysql # not compatible
query I rowsort label-4802
SELECT - 9 * + - MIN ( DISTINCT - 7 )
----
-63

query I rowsort
SELECT 81 * + 56 * + ( 45 )
----
204120

query II rowsort
SELECT DISTINCT - 9 + + 33 + - - 16 AS col2, 57 - + 44
----
40
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT ALL - MIN( ALL CAST( - 3 AS SIGNED ) ) + + 82 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL - MIN ( ALL CAST ( - 3 AS INTEGER ) ) + + 82 AS col2
----
85

query I rowsort
SELECT 71 * 67
----
4757

query I rowsort
SELECT DISTINCT 28 - - - 5 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4808
SELECT ALL 6 AS col2, - COALESCE ( 52, + - ( - CAST( + COUNT( * ) AS SIGNED ) ) + 63 + - 51 + + 30 * 83 * - + CAST( NULL AS SIGNED ) * - 99, + 67 + + - 22, - ( - COUNT( * ) ), + 3 ) + 12 AS col0
----
6
-40

skipif mysql # not compatible
query II rowsort label-4808
SELECT ALL 6 AS col2, - COALESCE ( 52, + - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) + 63 + - 51 + + 30 * 83 * - + CAST ( NULL AS INTEGER ) * - 99, + 67 + + - 22, - ( - COUNT ( * ) ), + 3 ) + 12 AS col0
----
6
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT 90 DIV - - 83 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4809
SELECT 90 / - - 83 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT 96 * - + COUNT( * ) * + + 42, - 38 + 96 AS col2
----
-4032
58

skipif mysql # not compatible
query II rowsort label-4810
SELECT 96 * - + COUNT ( * ) * + + 42, - 38 + 96 AS col2
----
-4032
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4811
SELECT DISTINCT CASE + 57 WHEN + CAST( + 49 AS DECIMAL ) THEN 75 * 28 END * + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT CASE + 57 WHEN + CAST ( + 49 AS REAL ) THEN 75 * 28 END * + 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT 77 + - CASE + + 72 WHEN - 57 * + COUNT( * ) * - 20 THEN 39 END * + + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT 77 + - CASE + + 72 WHEN - 57 * + COUNT ( * ) * - 20 THEN 39 END * + + 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT DISTINCT + COUNT( * ) * + - 2 DIV 82 * - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT + COUNT ( * ) * + - 2 / 82 * - 83 AS col2
----
0

query I rowsort
SELECT ALL - 93 * 64
----
-5952

query I rowsort
SELECT DISTINCT - ( 20 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT 24 + 25 * + COUNT( * ) + + 24 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4816
SELECT 24 + 25 * + COUNT ( * ) + + 24 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT - + 83 * - CASE - 70 WHEN 94 THEN + 97 * - + 0 ELSE + + CAST( NULL AS SIGNED ) END * + + 0 * - - COALESCE ( COALESCE ( - NULLIF ( + 36, - ( - 99 ) + - 1 ), 91 - - + 35 - + SUM( - CAST( + 1 AS SIGNED ) ), 38 ), 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT - + 83 * - CASE - 70 WHEN 94 THEN + 97 * - + 0 ELSE + + CAST ( NULL AS INTEGER ) END * + + 0 * - - COALESCE ( COALESCE ( - NULLIF ( + 36, - ( - 99 ) + - 1 ), 91 - - + 35 - + SUM ( - CAST ( + 1 AS INTEGER ) ), 38 ), 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT ALL - - 50 AS col0, COUNT( ALL - 81 ) * + + 5
----
50
5

skipif mysql # not compatible
query II rowsort label-4818
SELECT ALL - - 50 AS col0, COUNT ( ALL - 81 ) * + + 5
----
50
5

query I rowsort
SELECT - 24 * + 49 col0
----
-1176

query I rowsort
SELECT ALL - + 32 + - 38 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT 4 * + + MAX( DISTINCT 68 )
----
272

skipif mysql # not compatible
query I rowsort label-4821
SELECT 4 * + + MAX ( DISTINCT 68 )
----
272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4822
SELECT ALL COUNT( * ) DIV + - 66
----
0

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL COUNT ( * ) / + - 66
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4823
SELECT + CAST( - 97 AS SIGNED ) DIV - 82
----
1

skipif mysql # not compatible
query I rowsort label-4823
SELECT + CAST ( - 97 AS INTEGER ) / - 82
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT + MIN( - 88 ) + - + 50 + 21 DIV - 79
----
-138

skipif mysql # not compatible
query I rowsort label-4824
SELECT + MIN ( - 88 ) + - + 50 + 21 / - 79
----
-138

query I rowsort
SELECT DISTINCT 39 * + 42
----
1638

query II rowsort
SELECT + 27 * - - ( - + 20 ) AS col2, ( - 34 ) * + 95
----
-540
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT + COUNT( - + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-4827
SELECT + COUNT ( - + 55 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL 24 + + NULLIF ( + 62, 89 * 71 * + 93 + - - 44 + - 90 ) - 7 - - + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL 24 + + NULLIF ( + 62, 89 * 71 * + 93 + - - 44 + - 90 ) - 7 - - + COUNT ( * )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4829
SELECT - + 99 * - - 99 * - 40 / + MAX( + + 84 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT - + 99 * - - 99 * - 40 / + MAX ( + + 84 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT - + NULLIF ( 33, - 19 * + + COUNT( * ) - 34 + - 83 )
----
-33

skipif mysql # not compatible
query I rowsort label-4830
SELECT - + NULLIF ( 33, - 19 * + + COUNT ( * ) - 34 + - 83 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - COUNT( * ) * - 64 + + COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-4831
SELECT - COUNT ( * ) * - 64 + + COUNT ( * ) col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - SUM( ALL + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-4832
SELECT - SUM ( ALL + 23 )
----
-23

query II rowsort
SELECT 7 AS col2, 55 + + - 75
----
7
-20

query II rowsort
SELECT 77 AS col0, + 49 AS col2
----
77
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT COUNT( DISTINCT 91 ) - + NULLIF ( - COUNT( - 82 ), - ( - 32 ) ) DIV - - 70 * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4835
SELECT COUNT ( DISTINCT 91 ) - + NULLIF ( - COUNT ( - 82 ), - ( - 32 ) ) / - - 70 * COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT - COUNT( DISTINCT + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-4836
SELECT - COUNT ( DISTINCT + 78 )
----
-1

query I rowsort
SELECT - COALESCE ( + 42, 92, - ( - 80 ) ) col0
----
-42

query II rowsort
SELECT ALL 6, 18 * - 11 AS col1
----
6
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT MIN( ALL - + 19 ) * + - 47 AS col0
----
893

skipif mysql # not compatible
query I rowsort label-4839
SELECT MIN ( ALL - + 19 ) * + - 47 AS col0
----
893

query I rowsort
SELECT 80 + 14 - + 64
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ( - COUNT( * ) ) * + + 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4841
SELECT ( - COUNT ( * ) ) * + + 77 AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4842
SELECT 31 * COUNT( * ) col2, 68 DIV 64 * + 36 DIV - 31 AS col0
----
31
-1

skipif mysql # not compatible
query II rowsort label-4842
SELECT 31 * COUNT ( * ) col2, 68 / 64 * + 36 / - 31 AS col0
----
31
-1

query I rowsort
SELECT 34 - - - ( + - 67 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT SUM( ALL + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT SUM ( ALL + 90 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4845
SELECT - ( + NULLIF ( + - ( 7 ), 4 DIV 41 + - 84 + + - 4 * 48 DIV - 16 * - COUNT( * ) * 86 * - 47 * + COALESCE ( - 64, + 44 ) * - 68 - + 83 + - - 11 - SUM( - 31 ) DIV 22 * 13 * 52 + - COUNT( * ) * 39 ) ) DIV - 14 + 87
----
87

skipif mysql # not compatible
query I rowsort label-4845
SELECT - ( + NULLIF ( + - ( 7 ), 4 / 41 + - 84 + + - 4 * 48 / - 16 * - COUNT ( * ) * 86 * - 47 * + COALESCE ( - 64, + 44 ) * - 68 - + 83 + - - 11 - SUM ( - 31 ) / 22 * 13 * 52 + - COUNT ( * ) * 39 ) ) / - 14 + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL + - COUNT( * ) * - 77 + - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL + - COUNT ( * ) * - 77 + - COUNT ( * ) AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT - 9 DIV + ( - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-4847
SELECT - 9 / + ( - 42 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - - 75 * 96 + + COUNT( * ) + 23 col1
----
7224

skipif mysql # not compatible
query I rowsort label-4848
SELECT - - 75 * 96 + + COUNT ( * ) + 23 col1
----
7224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4849
SELECT - - 19 * - CASE WHEN NULL IS NULL THEN - COUNT( * ) ELSE - 51 + COUNT( * ) + + - 9 END * + - 52 DIV - COUNT( * ) DIV + COUNT( * )
----
988

skipif mysql # not compatible
query I rowsort label-4849
SELECT - - 19 * - CASE WHEN NULL IS NULL THEN - COUNT ( * ) ELSE - 51 + COUNT ( * ) + + - 9 END * + - 52 / - COUNT ( * ) / + COUNT ( * )
----
988

onlyif mysql # DIV for integer division: 
query II rowsort label-4850
SELECT DISTINCT + + 68 DIV - + COALESCE ( - + 26, - ( + + 59 ), + + 67, + - 63 DIV + + 38 DIV 18 ) col2, + 78 * 48 + - 65 - - 77 DIV 87 DIV + 77 + - - 14 - - 13 + + - COALESCE ( + - 54, - ( + - 72 ) ) + 45 DIV 17 * 77 DIV 90 * + 67 col1
----
2
3827

skipif mysql # not compatible
query II rowsort label-4850
SELECT DISTINCT + + 68 / - + COALESCE ( - + 26, - ( + + 59 ), + + 67, + - 63 / + + 38 / 18 ) col2, + 78 * 48 + - 65 - - 77 / 87 / + 77 + - - 14 - - 13 + + - COALESCE ( + - 54, - ( + - 72 ) ) + 45 / 17 * 77 / 90 * + 67 col1
----
2
3827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4851
SELECT - SUM( - 92 ) DIV - 55 + + 30 + 5 col0
----
34

skipif mysql # not compatible
query I rowsort label-4851
SELECT - SUM ( - 92 ) / - 55 + + 30 + 5 col0
----
34

query I rowsort
SELECT ALL - 81 * + 57 AS col1
----
-4617

onlyif mysql # DIV for integer division: 
query I rowsort label-4853
SELECT + - 70 DIV - 15
----
4

skipif mysql # not compatible
query I rowsort label-4853
SELECT + - 70 / - 15
----
4

query I rowsort
SELECT DISTINCT + 67 * - 19 + 95
----
-1178

query I rowsort
SELECT + 9 * + 45 + - + 72 + - 0
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT ALL + + ( COALESCE ( - 3, - - 69 + COUNT( * ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL + + ( COALESCE ( - 3, - - 69 + COUNT ( * ) ) )
----
-3

query II rowsort
SELECT DISTINCT + + 90 AS col1, 96
----
90
96

query I rowsort
SELECT - - 23 + - 30
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT - + NULLIF ( - COUNT( * ), + 82 ) + + - CASE WHEN NOT - 20 >= ( - + 89 ) THEN 66 WHEN - 30 * 75 * 11 + - + CASE + COUNT( * ) WHEN + 4 THEN NULL WHEN 98 * + MAX( DISTINCT - 72 ) THEN NULL WHEN + 37 * - 86 THEN - 10 * ( - 68 * - AVG ( 88 * - 78 ) + + 8 ) ELSE + 1 * 7 + - ( + 50 + - ( SUM( - 64 ) ) ) END + - 16 * + ( + 99 ) IS NOT NULL THEN - 1 + 99 END AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4859
SELECT - + NULLIF ( - COUNT ( * ), + 82 ) + + - CASE WHEN NOT - 20 >= ( - + 89 ) THEN 66 WHEN - 30 * 75 * 11 + - + CASE + COUNT ( * ) WHEN + 4 THEN NULL WHEN 98 * + MAX ( DISTINCT - 72 ) THEN NULL WHEN + 37 * - 86 THEN - 10 * ( - 68 * - AVG ( 88 * - 78 ) + + 8 ) ELSE + 1 * 7 + - ( + 50 + - ( SUM ( - 64 ) ) ) END + - 16 * + ( + 99 ) IS NOT NULL THEN - 1 + 99 END AS col2
----
-97

query I rowsort
SELECT + + 43 - + 94
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT - COUNT( * ) * - - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4861
SELECT - COUNT ( * ) * - - 21 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4862
SELECT DISTINCT COUNT( * ) DIV CAST( 18 AS SIGNED ) + ( + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT COUNT ( * ) / CAST ( 18 AS INTEGER ) + ( + 68 ) AS col1
----
68

query I rowsort
SELECT DISTINCT + 35 - 94
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT + CAST( + COALESCE ( - 1, + COUNT( * ) ) AS SIGNED ) + - CASE SUM( DISTINCT 20 ) WHEN 46 * - CASE 1 WHEN - 89 + + ( + 72 ) THEN 38 ELSE 40 * - CAST( + + 67 AS SIGNED ) * + 64 + + 27 + 44 * - + 65 - COUNT( * ) END THEN - COALESCE ( COUNT( * ), ( + MIN( ALL + 71 ) ), 69, 70 ) + 79 ELSE COALESCE ( 35, 67 ) END + + 64 * COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4864
SELECT + CAST ( + COALESCE ( - 1, + COUNT ( * ) ) AS INTEGER ) + - CASE SUM ( DISTINCT 20 ) WHEN 46 * - CASE 1 WHEN - 89 + + ( + 72 ) THEN 38 ELSE 40 * - CAST ( + + 67 AS INTEGER ) * + 64 + + 27 + 44 * - + 65 - COUNT ( * ) END THEN - COALESCE ( COUNT ( * ), ( + MIN ( ALL + 71 ) ), 69, 70 ) + 79 ELSE COALESCE ( 35, 67 ) END + + 64 * COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4865
SELECT ALL + 91 DIV COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + 91 / COUNT ( * ) AS col2
----
91

query I rowsort
SELECT DISTINCT ( + - 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT + SUM( 62 ) + CASE + 67 WHEN + + COUNT( * ) * + COUNT( * ) THEN + 29 END + - COUNT( * ) * + + COUNT( ALL + 53 ) * - - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + SUM ( 62 ) + CASE + 67 WHEN + + COUNT ( * ) * + COUNT ( * ) THEN + 29 END + - COUNT ( * ) * + + COUNT ( ALL + 53 ) * - - 52 AS col0
----
NULL

query II rowsort
SELECT + 34 + - - 12 AS col2, - 64 AS col1
----
46
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-4869
SELECT ALL 40 * - COUNT( * ) AS col0, + ( - COUNT( * ) )
----
-40
-1

skipif mysql # not compatible
query II rowsort label-4869
SELECT ALL 40 * - COUNT ( * ) AS col0, + ( - COUNT ( * ) )
----
-40
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT - 46 DIV 30 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4870
SELECT - 46 / 30 col1
----
-1

query II rowsort
SELECT - ( - + 53 ) col2, - 43 AS col0
----
53
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + 4 + + + COUNT( ( - 39 ) ) * + MIN( DISTINCT + 15 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4872
SELECT + 4 + + + COUNT ( ( - 39 ) ) * + MIN ( DISTINCT + 15 ) AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT + 16 DIV - MIN( DISTINCT - 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT + 16 / - MIN ( DISTINCT - 95 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4874
SELECT ALL 27 DIV - 24, 13 AS col1
----
-1
13

skipif mysql # not compatible
query II rowsort label-4874
SELECT ALL 27 / - 24, 13 AS col1
----
-1
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4875
SELECT - CASE 88 WHEN + 18 / + + 53 - + 63 + + 90 * - - ( COUNT( ALL - ( 21 ) ) ) / + + 25 + - 15 * + + 3 * COUNT( * ) * + + 92 + 91 THEN NULL WHEN + + 83 THEN - - COALESCE ( - COUNT( * ), + 18 + + 74 * - 40 - 83, - ( CAST( 88 AS SIGNED ) ) * 48 ) + + 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT - CASE 88 WHEN + 18 / + + 53 - + 63 + + 90 * - - ( COUNT ( ALL - ( 21 ) ) ) / + + 25 + - 15 * + + 3 * COUNT ( * ) * + + 92 + 91 THEN NULL WHEN + + 83 THEN - - COALESCE ( - COUNT ( * ), + 18 + + 74 * - 40 - 83, - ( CAST ( 88 AS INTEGER ) ) * 48 ) + + 65 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4876
SELECT DISTINCT COUNT( - 0 ) AS col1, CAST( + 70 AS SIGNED )
----
1
70

skipif mysql # not compatible
query II rowsort label-4876
SELECT DISTINCT COUNT ( - 0 ) AS col1, CAST ( + 70 AS INTEGER )
----
1
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4877
SELECT DISTINCT COUNT( * ) + COUNT( * ) + - 26 DIV - + 4
----
8

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + - 26 / - + 4
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + 62 * + COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4878
SELECT + 62 * + COUNT ( * ) AS col2
----
62

query II rowsort
SELECT ALL CASE + 63 WHEN 57 THEN - 62 END + - 16 AS col0, 35 * 64 AS col1
----
NULL
2240

query I rowsort
SELECT + + 54 + - 48 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL - SUM( DISTINCT 98 ) * + COUNT( * ) + - 26 col0
----
-124

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - SUM ( DISTINCT 98 ) * + COUNT ( * ) + - 26 col0
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4882
SELECT + 49 DIV - - 11 + + COUNT( * ) + + 82 DIV + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4882
SELECT + 49 / - - 11 + + COUNT ( * ) + + 82 / + COUNT ( * ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT + - NULLIF ( - + 74, + COUNT( * ) ) * - COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT + - NULLIF ( - + 74, + COUNT ( * ) ) * - COUNT ( * ) AS col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4884
SELECT ALL - + 90 / - CAST( NULL AS SIGNED ), + NULLIF ( + 50, - + COALESCE ( - 53, + - ( 47 ) + + 25 ) ) AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-4884
SELECT ALL - + 90 / - CAST ( NULL AS INTEGER ), + NULLIF ( + 50, - + COALESCE ( - 53, + - ( 47 ) + + 25 ) ) AS col2
----
NULL
50

query I rowsort
SELECT - - 47 * - + 83 + - 33
----
-3934

onlyif mysql # aggregate syntax: 
query II rowsort label-4886
SELECT + NULLIF ( - + 99, + COUNT( * ) ), + 37 + - 23 AS col0
----
-99
14

skipif mysql # not compatible
query II rowsort label-4886
SELECT + NULLIF ( - + 99, + COUNT ( * ) ), + 37 + - 23 AS col0
----
-99
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT MIN( 71 ) col0
----
71

skipif mysql # not compatible
query I rowsort label-4887
SELECT MIN ( 71 ) col0
----
71

query I rowsort
SELECT + - COALESCE ( + + 29, 97 ) * + + 94 * - 53 + + 91 * + - 64
----
138654

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - + COUNT( * ) * + ( + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-4889
SELECT - + COUNT ( * ) * + ( + 16 )
----
-16

query I rowsort
SELECT ALL - - 98 * 96
----
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - COUNT( ALL + - 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-4891
SELECT - COUNT ( ALL + - 83 )
----
-1

query I rowsort
SELECT - 84 * + + 12 AS col0
----
-1008

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT DISTINCT - 75 * - COUNT( - ( - 33 ) ) + - 37 AS col1, 53 col1
----
38
53

skipif mysql # not compatible
query II rowsort label-4893
SELECT DISTINCT - 75 * - COUNT ( - ( - 33 ) ) + - 37 AS col1, 53 col1
----
38
53

query I rowsort
SELECT ALL + - 85 * + 87 AS col0
----
-7395

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + COUNT( + NULLIF ( + 62, + 67 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + COUNT ( + NULLIF ( + 62, + 67 ) ) AS col0
----
1

query II rowsort
SELECT NULLIF ( - 76, 31 ), 56 AS col0
----
-76
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT NULLIF ( 68, + CASE - + 25 WHEN 89 / + - COUNT( * ) * + 20 THEN NULL WHEN + 79 THEN + + 6 - - 77 + - + 45 END ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4897
SELECT NULLIF ( 68, + CASE - + 25 WHEN 89 / + - COUNT ( * ) * + 20 THEN NULL WHEN + 79 THEN + + 6 - - 77 + - + 45 END ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - 22 - + COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4898
SELECT - 22 - + COUNT ( * ) AS col2
----
-23

query II rowsort
SELECT - NULLIF ( + - 38, + + 86 ) AS col1, + 30 AS col1
----
38
30

query I rowsort
SELECT - 40 * + 63 AS col0
----
-2520

query I rowsort
SELECT + 22 + + 75 AS col2
----
97

query I rowsort
SELECT ALL 86 * 34
----
2924

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT COUNT( * ) - 79 - + COUNT( - 52 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4903
SELECT COUNT ( * ) - 79 - + COUNT ( - 52 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4904
SELECT DISTINCT + CASE - - 43 WHEN 83 THEN + 90 + - - 57 * - 32 END + - + 91 * COUNT( * ) * + 82 col0, + ( 71 )
----
NULL
71

skipif mysql # not compatible
query II rowsort label-4904
SELECT DISTINCT + CASE - - 43 WHEN 83 THEN + 90 + - - 57 * - 32 END + - + 91 * COUNT ( * ) * + 82 col0, + ( 71 )
----
NULL
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 56 * - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 56 * - 18 AS col0
----
NULL

query I rowsort
SELECT 5 + - 36 AS col0
----
-31

query I rowsort
SELECT 14 + + 21
----
35

query I rowsort
SELECT 50 * ( + 95 ) * 91
----
432250

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT - 4 - + CASE + - COUNT( + + 64 ) WHEN + AVG ( - 37 ) * + 11 + - - 40 THEN - 86 ELSE NULL END + + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT - 4 - + CASE + - COUNT ( + + 64 ) WHEN + AVG ( - 37 ) * + 11 + - - 40 THEN - 86 ELSE NULL END + + 15 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT ALL + CAST( NULL AS SIGNED ) + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + CAST ( NULL AS INTEGER ) + + 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL 87 + 44 + - CASE + 48 WHEN - AVG ( DISTINCT + 78 ) THEN ( - CASE 31 WHEN - 49 THEN + 80 + 52 WHEN + - 52 THEN NULL END ) END + + ( 51 ) * + 32 * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL 87 + 44 + - CASE + 48 WHEN - AVG ( DISTINCT + 78 ) THEN ( - CASE 31 WHEN - 49 THEN + 80 + 52 WHEN + - 52 THEN NULL END ) END + + ( 51 ) * + 32 * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT COUNT( * ) * + - 26
----
-26

skipif mysql # not compatible
query I rowsort label-4912
SELECT COUNT ( * ) * + - 26
----
-26

query II rowsort
SELECT ALL - + COALESCE ( + 5, 3 ) AS col0, - 67 * - + 58
----
-5
3886

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4914
SELECT ALL + MAX( + 56 ) - - 51 + + + SUM( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + MAX ( + 56 ) - - 51 + + + SUM ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4915
SELECT ALL - 27, - COUNT( * ) col2
----
-27
-1

skipif mysql # not compatible
query II rowsort label-4915
SELECT ALL - 27, - COUNT ( * ) col2
----
-27
-1

query I rowsort
SELECT DISTINCT - 40 * + + COALESCE ( - + 70, - + 51 * + 77 * 3 ) - - ( + - 8 )
----
2792

query I rowsort
SELECT 58 + - ( - - 5 ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4918
SELECT + NULLIF ( 44, COUNT( * ) * 57 ) * + 41 + + - 24 AS col1, + COALESCE ( - - 86, - SUM( ALL + + ( - 35 ) ) * - COUNT( * ) ) + CASE - - 87 WHEN + 93 THEN 53 + 78 WHEN + 60 + 79 * + COUNT( ALL - - 18 ) + - + 34 + 47 * ( + CAST( NULL AS DECIMAL ) + 50 * + MAX( DISTINCT - 98 ) ) THEN NULL ELSE NULL END + 36 AS col2
----
1780
NULL

skipif mysql # not compatible
query II rowsort label-4918
SELECT + NULLIF ( 44, COUNT ( * ) * 57 ) * + 41 + + - 24 AS col1, + COALESCE ( - - 86, - SUM ( ALL + + ( - 35 ) ) * - COUNT ( * ) ) + CASE - - 87 WHEN + 93 THEN 53 + 78 WHEN + 60 + 79 * + COUNT ( ALL - - 18 ) + - + 34 + 47 * ( + CAST ( NULL AS REAL ) + 50 * + MAX ( DISTINCT - 98 ) ) THEN NULL ELSE NULL END + 36 AS col2
----
1780
NULL

query I rowsort
SELECT 48 * 46 col2
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL - MIN( DISTINCT - - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL - MIN ( DISTINCT - - 40 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4921
SELECT + ( - + ( + + CASE + ( - 12 ) WHEN NULLIF ( - AVG ( ALL + 45 ), AVG ( DISTINCT - - 45 ) ) THEN NULL WHEN - + COUNT( * ) + - 10 - + 71 THEN NULL ELSE NULLIF ( 2, + - 62 * + 92 ) / - + 84 + + 7 + 65 END ) ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT + ( - + ( + + CASE + ( - 12 ) WHEN NULLIF ( - AVG ( ALL + 45 ), AVG ( DISTINCT - - 45 ) ) THEN NULL WHEN - + COUNT ( * ) + - 10 - + 71 THEN NULL ELSE NULLIF ( 2, + - 62 * + 92 ) / - + 84 + + 7 + 65 END ) ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT 91 * - COUNT( * ) - - 36 + + - 22 + + + 99 * + - 99 * - + ( + - 85 ) AS col1
----
-833162

skipif mysql # not compatible
query I rowsort label-4922
SELECT 91 * - COUNT ( * ) - - 36 + + - 22 + + + 99 * + - 99 * - + ( + - 85 ) AS col1
----
-833162

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL - + COUNT( DISTINCT + 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL - + COUNT ( DISTINCT + 50 )
----
-1

query I rowsort
SELECT - 86 * + - 40 + - 27
----
3413

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT 16 - - 80, + SUM( DISTINCT + 15 ) * - + 28 - + - CASE + 19 WHEN + 10 THEN 44 WHEN - 0 + + - 19 THEN NULL END + + 18 * + 29 AS col2
----
96
NULL

skipif mysql # not compatible
query II rowsort label-4925
SELECT 16 - - 80, + SUM ( DISTINCT + 15 ) * - + 28 - + - CASE + 19 WHEN + 10 THEN 44 WHEN - 0 + + - 19 THEN NULL END + + 18 * + 29 AS col2
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT + COUNT( * ) * 11 * - 55 + - - 14
----
-591

skipif mysql # not compatible
query I rowsort label-4926
SELECT + COUNT ( * ) * 11 * - 55 + - - 14
----
-591

onlyif mysql # aggregate syntax: 
query II rowsort label-4927
SELECT COUNT( * ) + - 65 col1, + 1
----
-64
1

skipif mysql # not compatible
query II rowsort label-4927
SELECT COUNT ( * ) + - 65 col1, + 1
----
-64
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4928
SELECT ALL + ( + 52 ) + + SUM( + 1 ) + - 91 * + 21 + - + COUNT( * ) * - 11 / - + CAST( NULL AS SIGNED ) / - + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL + ( + 52 ) + + SUM ( + 1 ) + - 91 * + 21 + - + COUNT ( * ) * - 11 / - + CAST ( NULL AS INTEGER ) / - + 25 AS col1
----
NULL

query I rowsort
SELECT 6 + 30 * - 72 AS col0
----
-2154

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL 57 + - 15 * COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL 57 + - 15 * COUNT ( * ) AS col0
----
42

query I rowsort
SELECT 15 + - 96 AS col1
----
-81

query I rowsort
SELECT 21 * + 86 * - 75 * + - 74
----
10023300

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT 75 * - - COUNT( ALL - 89 ) + - + 39 + + + NULLIF ( + 35, - - 26 / + - 53 )
----
71

skipif mysql # not compatible
query I rowsort label-4933
SELECT 75 * - - COUNT ( ALL - 89 ) + - + 39 + + + NULLIF ( + 35, - - 26 / + - 53 )
----
71

query I rowsort
SELECT 24 * + - 3 col1
----
-72

query I rowsort
SELECT 60 + + - 77 * - 50
----
3910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4936
SELECT DISTINCT CASE - - 73 WHEN NULLIF ( ( - - 94 ), COUNT( ALL - 18 ) ) * + 66 + - 41 * + 27 * 31 + COUNT( * ) THEN NULL WHEN + 30 * - AVG ( ALL + - 58 ) THEN + ( + COALESCE ( + 59, - - 91 * - - 22 ) ) * + + 63 + - + COUNT( * ) + + 88 WHEN 0 * 50 THEN 42 DIV - COUNT( * ) ELSE 20 END * 25
----
500

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT CASE - - 73 WHEN NULLIF ( ( - - 94 ), COUNT ( ALL - 18 ) ) * + 66 + - 41 * + 27 * 31 + COUNT ( * ) THEN NULL WHEN + 30 * - AVG ( ALL + - 58 ) THEN + ( + COALESCE ( + 59, - - 91 * - - 22 ) ) * + + 63 + - + COUNT ( * ) + + 88 WHEN 0 * 50 THEN 42 / - COUNT ( * ) ELSE 20 END * 25
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ( - 42 ) * + + 25 * + MIN( ALL - 20 ) * 98 + + 1 * 26 AS col0
----
2058026

skipif mysql # not compatible
query I rowsort label-4937
SELECT ( - 42 ) * + + 25 * + MIN ( ALL - 20 ) * 98 + + 1 * 26 AS col0
----
2058026

query I rowsort
SELECT 93 + - - 24 * 96 col2
----
2397

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT ALL - 91 DIV + 70 + - ( 24 ) + - 26 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - 91 / + 70 + - ( 24 ) + - 26 AS col0
----
-51

query I rowsort
SELECT ALL + + 19 - + 95
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT - MAX( + 47 ) + 0 * - - 21
----
-47

skipif mysql # not compatible
query I rowsort label-4941
SELECT - MAX ( + 47 ) + 0 * - - 21
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4942
SELECT 85 * - 38 AS col0, COUNT( 25 ) * - - COUNT( * ) - + 59
----
-3230
-58

skipif mysql # not compatible
query II rowsort label-4942
SELECT 85 * - 38 AS col0, COUNT ( 25 ) * - - COUNT ( * ) - + 59
----
-3230
-58

query I rowsort
SELECT + 0 + 56
----
56

query I rowsort
SELECT 62 + + ( 93 ) AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT MIN( ALL - + 28 ) * - 74
----
2072

skipif mysql # not compatible
query I rowsort label-4945
SELECT MIN ( ALL - + 28 ) * - 74
----
2072

query II rowsort
SELECT ALL + - 14 * - 72, 82 + 28 - - 94 col0
----
1008
204

onlyif mysql # aggregate syntax: 
query II rowsort label-4947
SELECT 34 * + 60 AS col1, - 56 * + ( MIN( - - 28 ) ) AS col2
----
2040
-1568

skipif mysql # not compatible
query II rowsort label-4947
SELECT 34 * + 60 AS col1, - 56 * + ( MIN ( - - 28 ) ) AS col2
----
2040
-1568

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4948
SELECT CASE + 99 WHEN - + NULLIF ( - 59, - 5 ) * - CAST( + 14 AS DECIMAL ) + - 17 * 43 * COUNT( * ) - + 37 THEN NULL WHEN 52 + 28 + + - 63 / + 42 * - ( - SUM( ALL + ( 43 ) ) ) THEN - + 24 + + - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT CASE + 99 WHEN - + NULLIF ( - 59, - 5 ) * - CAST ( + 14 AS REAL ) + - 17 * 43 * COUNT ( * ) - + 37 THEN NULL WHEN 52 + 28 + + - 63 / + 42 * - ( - SUM ( ALL + ( 43 ) ) ) THEN - + 24 + + - 42 END
----
NULL

query I rowsort
SELECT ALL 32 * 10 + - 43
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT COUNT( ALL - 82 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4950
SELECT COUNT ( ALL - 82 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4951
SELECT - 57 * + ( COALESCE ( - 34, + 15 DIV CAST( NULL AS SIGNED ) ) ) + + + 57 * - 46 AS col1
----
-684

skipif mysql # not compatible
query I rowsort label-4951
SELECT - 57 * + ( COALESCE ( - 34, + 15 / CAST ( NULL AS INTEGER ) ) ) + + + 57 * - 46 AS col1
----
-684

query I rowsort
SELECT 90 * - - 22
----
1980

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT 25 + + + CASE - 73 WHEN AVG ( + - 56 ) + - - AVG ( 97 ) THEN COUNT( * ) + 8 - - + 96 END, 67 AS col1
----
NULL
67

skipif mysql # not compatible
query II rowsort label-4953
SELECT 25 + + + CASE - 73 WHEN AVG ( + - 56 ) + - - AVG ( 97 ) THEN COUNT ( * ) + 8 - - + 96 END, 67 AS col1
----
NULL
67

query I rowsort
SELECT ALL - 85 * + ( + 53 ) + 47 * - 4
----
-4693

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT MIN( ALL - + 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4955
SELECT MIN ( ALL - + 23 ) AS col1
----
-23

query I rowsort
SELECT ALL 57 + - + 85 AS col2
----
-28

query I rowsort
SELECT DISTINCT 16 + + + 3 + - 81 * + 53
----
-4274

onlyif mysql # aggregate syntax: 
query II rowsort label-4958
SELECT ALL - COUNT( * ) + 57 * COUNT( * ) AS col0, 16 * - - CASE 73 WHEN + 36 THEN NULL ELSE COALESCE ( - 33, MAX( DISTINCT - 5 ) ) + - 78 END
----
56
-1776

skipif mysql # not compatible
query II rowsort label-4958
SELECT ALL - COUNT ( * ) + 57 * COUNT ( * ) AS col0, 16 * - - CASE 73 WHEN + 36 THEN NULL ELSE COALESCE ( - 33, MAX ( DISTINCT - 5 ) ) + - 78 END
----
56
-1776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT - 21 DIV + COUNT( * ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-4959
SELECT - 21 / + COUNT ( * ) col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT - 37 * COUNT( * ) - 97 + - COUNT( * ) DIV 69 * - + 19
----
-134

skipif mysql # not compatible
query I rowsort label-4960
SELECT - 37 * COUNT ( * ) - 97 + - COUNT ( * ) / 69 * - + 19
----
-134

query I rowsort
SELECT + 9 + + 50 - + 94 * 14
----
-1257

query I rowsort
SELECT - NULLIF ( + - 23, + - CASE 99 WHEN + + 88 THEN 84 END )
----
23

query I rowsort
SELECT + 3 * + 84 AS col2
----
252

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4964
SELECT ALL COALESCE ( + 80, + CAST( NULL AS SIGNED ) + + + 85 + + 35 ) DIV - 12 + - - 95
----
89

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL COALESCE ( + 80, + CAST ( NULL AS INTEGER ) + + + 85 + + 35 ) / - 12 + - - 95
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT ALL 29 AS col2, + COUNT( * ) + + - COUNT( * ) AS col2
----
29
0

skipif mysql # not compatible
query II rowsort label-4965
SELECT ALL 29 AS col2, + COUNT ( * ) + + - COUNT ( * ) AS col2
----
29
0

query II rowsort
SELECT - 31, 63 AS col2
----
-31
63

query I rowsort
SELECT ALL - 99 * 23
----
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT COUNT( * ) - - 72 + - 5 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT COUNT ( * ) - - 72 + - 5 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - + MIN( 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4969
SELECT - + MIN ( 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT - 53 + - - 68 * - SUM( + 44 ) + - 79 * + 60 * - + 9
----
39615

skipif mysql # not compatible
query I rowsort label-4970
SELECT - 53 + - - 68 * - SUM ( + 44 ) + - 79 * + 60 * - + 9
----
39615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4971
SELECT ALL - 62 - + 71 - + - 51 * + 13 + - 52 DIV 39 * - COALESCE ( + SUM( - CAST( NULL AS SIGNED ) ), - + 29, + ( + - CAST( + + 83 AS SIGNED ) ) * + 91 + - - 57 ) col0
----
501

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - 62 - + 71 - + - 51 * + 13 + - 52 / 39 * - COALESCE ( + SUM ( - CAST ( NULL AS INTEGER ) ), - + 29, + ( + - CAST ( + + 83 AS INTEGER ) ) * + 91 + - - 57 ) col0
----
501

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT SUM( ALL + + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4972
SELECT SUM ( ALL + + 71 )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT + 5 + - 16 DIV 83 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4973
SELECT + 5 + - 16 / 83 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - MIN( DISTINCT + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-4974
SELECT - MIN ( DISTINCT + 2 )
----
-2

query II rowsort
SELECT ALL 0 AS col2, + 0
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4976
SELECT - COALESCE ( 31, - + 45 DIV + + MAX( 77 ) + CAST( - + 59 AS SIGNED ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4976
SELECT - COALESCE ( 31, - + 45 / + + MAX ( 77 ) + CAST ( - + 59 AS INTEGER ) )
----
-31

query II rowsort
SELECT ALL - 90 AS col2, 49 * 8 AS col0
----
-90
392

query I rowsort
SELECT - - 66 + + - 89
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4979
SELECT ALL + - NULLIF ( + 74, + CAST( NULL AS SIGNED ) + + - 14 ) * + 8, CAST( NULL AS SIGNED ) AS col2
----
-592
NULL

skipif mysql # not compatible
query II rowsort label-4979
SELECT ALL + - NULLIF ( + 74, + CAST ( NULL AS INTEGER ) + + - 14 ) * + 8, CAST ( NULL AS INTEGER ) AS col2
----
-592
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - 91 * + 25 * - MIN( ALL 32 )
----
72800

skipif mysql # not compatible
query I rowsort label-4980
SELECT - 91 * + 25 * - MIN ( ALL 32 )
----
72800

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT + 5 * COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4981
SELECT + 5 * COUNT ( * ) AS col2
----
5

query I rowsort
SELECT ALL - 41 * + ( + 41 ) + + + NULLIF ( - + 7, - 0 * - 40 + + - 61 + + - 72 / 63 )
----
-1688

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT + 29 * + COUNT( ALL - + ( + 34 ) ) * - 75
----
-2175

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + 29 * + COUNT ( ALL - + ( + 34 ) ) * - 75
----
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT ALL ( CASE - - 63 WHEN - + 60 THEN 42 * 46 + COUNT( * ) * COALESCE ( 11, - - MIN( DISTINCT - 28 ) - 13 + NULLIF ( - COUNT( * ), - - 80 * - 72 ) / - ( - COUNT( * ) ) ) * + 15 / + 68 + - MAX( ALL + 31 ) ELSE NULL END ) * 77 + - 93 + 40 + - 67 * - MAX( DISTINCT 78 ) * 49 + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL ( CASE - - 63 WHEN - + 60 THEN 42 * 46 + COUNT ( * ) * COALESCE ( 11, - - MIN ( DISTINCT - 28 ) - 13 + NULLIF ( - COUNT ( * ), - - 80 * - 72 ) / - ( - COUNT ( * ) ) ) * + 15 / + 68 + - MAX ( ALL + 31 ) ELSE NULL END ) * 77 + - 93 + 40 + - 67 * - MAX ( DISTINCT 78 ) * 49 + + 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL + 41 * - COUNT( * ) + COUNT( * ) * COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + 41 * - COUNT ( * ) + COUNT ( * ) * COUNT ( * ) AS col1
----
-40

query II rowsort
SELECT + 69 + - + COALESCE ( 99, + 81 + + 67 ) + - 89 AS col1, 76 + + 68
----
-119
144

query I rowsort
SELECT ALL + 64 * 4 * 49 * - 60 + - 72 AS col1
----
-752712

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT - COUNT( * ) * + 40 + + + COUNT( * ) + - 10 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4988
SELECT - COUNT ( * ) * + 40 + + + COUNT ( * ) + - 10 AS col2
----
-49

query I rowsort
SELECT + 22 + + - COALESCE ( 79, + 35, - + 48 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT - 33 + + COUNT( * ) + 98 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4990
SELECT - 33 + + COUNT ( * ) + 98 AS col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4991
SELECT + ( - - COUNT( * ) ) AS col0, COUNT( * ) * + 49 AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-4991
SELECT + ( - - COUNT ( * ) ) AS col0, COUNT ( * ) * + 49 AS col1
----
1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT + COUNT( * ) - 22
----
-21

skipif mysql # not compatible
query I rowsort label-4992
SELECT + COUNT ( * ) - 22
----
-21

query II rowsort
SELECT + NULLIF ( - + ( + 8 ), + 80 ) AS col2, + 20 * 33 + + 96 AS col2
----
-8
756

query I rowsort
SELECT ALL + 98 * - - 17 - - - 46 AS col0
----
1620

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT + NULLIF ( - - COUNT( * ), COUNT( * ) + + - 41 ) AS col2, + 88
----
1
88

skipif mysql # not compatible
query II rowsort label-4995
SELECT + NULLIF ( - - COUNT ( * ), COUNT ( * ) + + - 41 ) AS col2, + 88
----
1
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL CASE + + MIN( DISTINCT 39 ) WHEN + 3 THEN NULL WHEN + 51 THEN 88 END * - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL CASE + + MIN ( DISTINCT 39 ) WHEN + 3 THEN NULL WHEN + 51 THEN 88 END * - 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT MAX( DISTINCT - 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4997
SELECT MAX ( DISTINCT - 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + + MAX( ALL - 83 ) * - - 57 - CASE - + 5 WHEN 43 THEN NULL ELSE - ( - - COUNT( * ) ) * + - 68 END + - 28 + 63 * 57 + 21 * + ( + 76 ) * - 68 + + 73 * + 21 AS col0
----
-108231

skipif mysql # not compatible
query I rowsort label-4998
SELECT + + MAX ( ALL - 83 ) * - - 57 - CASE - + 5 WHEN 43 THEN NULL ELSE - ( - - COUNT ( * ) ) * + - 68 END + - 28 + 63 * 57 + 21 * + ( + 76 ) * - 68 + + 73 * + 21 AS col0
----
-108231

query I rowsort
SELECT + 99 + + 92
----
191

query I rowsort
SELECT - - ( + 44 )
----
44

query I rowsort
SELECT - + NULLIF ( 44, - COALESCE ( + + 49, - + 97 ) ) + 54 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5002
SELECT - 82 * COALESCE ( MAX( DISTINCT - 66 ), + ( 30 ) + 17 ) DIV + 96 + - 0
----
56

skipif mysql # not compatible
query I rowsort label-5002
SELECT - 82 * COALESCE ( MAX ( DISTINCT - 66 ), + ( 30 ) + 17 ) / + 96 + - 0
----
56

query I rowsort
SELECT - - 56 + - - 1 * + 80
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5004
SELECT DISTINCT ( - CAST( + ( + + MIN( DISTINCT + 24 ) ) AS SIGNED ) )
----
-24

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT ( - CAST ( + ( + + MIN ( DISTINCT + 24 ) ) AS INTEGER ) )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT - + MAX( DISTINCT - 50 ) + CAST( NULL AS SIGNED ) + - - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT - + MAX ( DISTINCT - 50 ) + CAST ( NULL AS INTEGER ) + - - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL MAX( - 74 ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL MAX ( - 74 ) col2
----
-74

query I rowsort
SELECT - - 78 + - 5
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-5008
SELECT ALL - - NULLIF ( 84, ( - 49 ) ) + + + 67 * + - 62, + 95 - - 40 DIV - 68 AS col2
----
-4070
95

skipif mysql # not compatible
query II rowsort label-5008
SELECT ALL - - NULLIF ( 84, ( - 49 ) ) + + + 67 * + - 62, + 95 - - 40 / - 68 AS col2
----
-4070
95

query I rowsort
SELECT + - 18 * - 32 + - 20
----
556

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT - 98 + - COUNT( + 79 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5010
SELECT - 98 + - COUNT ( + 79 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT + ( - - 40 ) + + 99 + + COUNT( * ) / - 53 * ( - CASE + 60 WHEN - 1 THEN + + 12 WHEN - - COUNT( ALL + 8 ) THEN + 41 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT + ( - - 40 ) + + 99 + + COUNT ( * ) / - 53 * ( - CASE + 60 WHEN - 1 THEN + + 12 WHEN - - COUNT ( ALL + 8 ) THEN + 41 END ) AS col2
----
NULL

query I rowsort
SELECT 94 + + + 81 AS col2
----
175

query II rowsort
SELECT + + 97 col0, - 27 AS col0
----
97
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL MIN( - 64 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL MIN ( - 64 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT DISTINCT - 88 + 15 * - - 23 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - 88 + 15 * - - 23 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5016
SELECT ALL - SUM( - - 31 ) AS col0, ( + 89 ) - - + NULLIF ( - 60, + + 25 ) AS col1
----
-31
29

skipif mysql # not compatible
query II rowsort label-5016
SELECT ALL - SUM ( - - 31 ) AS col0, ( + 89 ) - - + NULLIF ( - 60, + + 25 ) AS col1
----
-31
29

query I rowsort
SELECT DISTINCT + 88 + - 65 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT COUNT( * ) * - + ( - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5018
SELECT COUNT ( * ) * - + ( - 26 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5019
SELECT ALL - MAX( + 57 ) col1, 62 col0
----
-57
62

skipif mysql # not compatible
query II rowsort label-5019
SELECT ALL - MAX ( + 57 ) col1, 62 col0
----
-57
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT + COALESCE ( 31, 19 * ( - 95 ) + 97 + - COUNT( * ) * + - 95 * CASE + + AVG ( DISTINCT - 28 ) WHEN + + 43 * 84 + - 30 DIV + 47 + - 30 + - - NULLIF ( - 41, 27 ) THEN + ( + - 77 ) END + COUNT( * ) ) - + 68 + - + 4 + - 68 DIV ( 51 ) + 81
----
39

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT + COALESCE ( 31, 19 * ( - 95 ) + 97 + - COUNT ( * ) * + - 95 * CASE + + AVG ( DISTINCT - 28 ) WHEN + + 43 * 84 + - 30 / + 47 + - 30 + - - NULLIF ( - 41, 27 ) THEN + ( + - 77 ) END + COUNT ( * ) ) - + 68 + - + 4 + - 68 / ( 51 ) + 81
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT COUNT( + 76 ) + + ( - - 66 ) + + CASE + 61 WHEN + 63 * - 47 + + COUNT( * ) + 95 * - + 53 / COUNT( * ) THEN NULL WHEN - - NULLIF ( - 32, - + MIN( DISTINCT - 81 ) ) * MAX( ALL - - 73 ) THEN NULL ELSE 85 END * + - 15 - - ( 71 ) * - ( + + 4 ) - - 36 + 89 - + 71 * CASE + 36 WHEN - 29 THEN NULL ELSE - COUNT( * ) * - 70 END * 62 AS col0
----
-309507

skipif mysql # not compatible
query I rowsort label-5021
SELECT COUNT ( + 76 ) + + ( - - 66 ) + + CASE + 61 WHEN + 63 * - 47 + + COUNT ( * ) + 95 * - + 53 / COUNT ( * ) THEN NULL WHEN - - NULLIF ( - 32, - + MIN ( DISTINCT - 81 ) ) * MAX ( ALL - - 73 ) THEN NULL ELSE 85 END * + - 15 - - ( 71 ) * - ( + + 4 ) - - 36 + 89 - + 71 * CASE + 36 WHEN - 29 THEN NULL ELSE - COUNT ( * ) * - 70 END * 62 AS col0
----
-309507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5022
SELECT ALL - CASE - COALESCE ( COUNT( * ), + 41, - 16 ) WHEN - 11 * - 55 THEN NULL WHEN - - COUNT( * ) THEN + + CASE 50 WHEN - ( + - 72 ) THEN 81 + - CAST( + 33 AS SIGNED ) * 63 END * NULLIF ( - MIN( - ( + ( + + 30 ) ) ), COUNT( * ) ) WHEN - 43 THEN - + 94 + 26 DIV + 23 WHEN SUM( ALL 59 ) THEN - 95 DIV CAST( + 13 * ( - ( 93 ) ) AS SIGNED ) + 31 * 5 ELSE COUNT( * ) END * + 36
----
-36

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL - CASE - COALESCE ( COUNT ( * ), + 41, - 16 ) WHEN - 11 * - 55 THEN NULL WHEN - - COUNT ( * ) THEN + + CASE 50 WHEN - ( + - 72 ) THEN 81 + - CAST ( + 33 AS INTEGER ) * 63 END * NULLIF ( - MIN ( - ( + ( + + 30 ) ) ), COUNT ( * ) ) WHEN - 43 THEN - + 94 + 26 / + 23 WHEN SUM ( ALL 59 ) THEN - 95 / CAST ( + 13 * ( - ( 93 ) ) AS INTEGER ) + 31 * 5 ELSE COUNT ( * ) END * + 36
----
-36

query II rowsort
SELECT DISTINCT + 26 * - 78, + 39 AS col2
----
-2028
39

onlyif mysql # DIV for integer division: 
query II rowsort label-5024
SELECT DISTINCT 9 DIV 12 col0, 11 AS col0
----
0
11

skipif mysql # not compatible
query II rowsort label-5024
SELECT DISTINCT 9 / 12 col0, 11 AS col0
----
0
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5025
SELECT 78 * - 60 AS col1, + COUNT( * )
----
-4680
1

skipif mysql # not compatible
query II rowsort label-5025
SELECT 78 * - 60 AS col1, + COUNT ( * )
----
-4680
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT + SUM( + 88 ) + 1 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5026
SELECT + SUM ( + 88 ) + 1 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT SUM( + 68 ) + - 6
----
62

skipif mysql # not compatible
query I rowsort label-5027
SELECT SUM ( + 68 ) + - 6
----
62

query II rowsort
SELECT 71 * 89 AS col2, - 35 * + 44 AS col1
----
6319
-1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5029
SELECT ALL - COUNT( DISTINCT - 53 ) + - 28 DIV 26 DIV + SUM( - + ( + + 80 ) ) AS col2, 20 AS col1
----
-1
20

skipif mysql # not compatible
query II rowsort label-5029
SELECT ALL - COUNT ( DISTINCT - 53 ) + - 28 / 26 / + SUM ( - + ( + + 80 ) ) AS col2, 20 AS col1
----
-1
20

query I rowsort
SELECT ALL 67 + + 73
----
140

query I rowsort
SELECT + 37 - - 58 AS col0
----
95

query I rowsort
SELECT ALL - 19 * 36 AS col1
----
-684

query I rowsort
SELECT COALESCE ( + 82, + + 79 ) + - 30 AS col0
---