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
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT - COUNT( ALL - - 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5034
SELECT - COUNT ( ALL - - 8 ) AS col2
----
-1

query I rowsort
SELECT ALL 29 + + 61 - - - 35 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT DISTINCT - MIN( 1 ) + COUNT( * ) - - - 65 DIV 75 + + 97 * + ( + 39 )
----
3783

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT - MIN ( 1 ) + COUNT ( * ) - - - 65 / 75 + + 97 * + ( + 39 )
----
3783

onlyif mysql # aggregate syntax: 
query II rowsort label-5037
SELECT COUNT( * ) * - 66 AS col0, - 76 * - 80 AS col2
----
-66
6080

skipif mysql # not compatible
query II rowsort label-5037
SELECT COUNT ( * ) * - 66 AS col0, - 76 * - 80 AS col2
----
-66
6080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5038
SELECT DISTINCT - COUNT( * ) + - ( + + 34 ) DIV + 37 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT - COUNT ( * ) + - ( + + 34 ) / + 37 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT 96 DIV + 35 col1
----
2

skipif mysql # not compatible
query I rowsort label-5039
SELECT 96 / + 35 col1
----
2

query I rowsort
SELECT DISTINCT - 75 + - 7 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT + ( - - 16 ) * ( COUNT( * ) ) + + - 35
----
-19

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT + ( - - 16 ) * ( COUNT ( * ) ) + + - 35
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT MIN( 96 ) + - + 47 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5042
SELECT MIN ( 96 ) + - + 47 AS col1
----
49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5044
SELECT COUNT( * ) AS col1, - 19 * - 90 AS col1
----
1
1710

skipif mysql # not compatible
query II rowsort label-5044
SELECT COUNT ( * ) AS col1, - 19 * - 90 AS col1
----
1
1710

query II rowsort
SELECT ALL ( + + 60 ) * 70, 45 + 5 AS col1
----
4200
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - 19 * - 0 + + - COUNT( * ) * - 25
----
25

skipif mysql # not compatible
query I rowsort label-5046
SELECT - 19 * - 0 + + - COUNT ( * ) * - 25
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - 25 * - 52 + + + 99 + + COUNT( * ) - - 61 AS col2
----
1461

skipif mysql # not compatible
query I rowsort label-5048
SELECT - 25 * - 52 + + + 99 + + COUNT ( * ) - - 61 AS col2
----
1461

query I rowsort
SELECT ALL + 39 - + 65 AS col1
----
-26

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

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

query I rowsort
SELECT ALL - COALESCE ( 92, ( NULLIF ( - 34, 59 ) ), 34 ) AS col1
----
-92

query I rowsort
SELECT 40 + + 75 * - 58 * 21
----
-91310

query I rowsort
SELECT ALL - CASE - + ( 90 ) WHEN 45 THEN + 64 END col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT - 85 * + 73 * COUNT( * ) AS col2, 77 AS col1
----
-6205
77

skipif mysql # not compatible
query II rowsort label-5055
SELECT - 85 * + 73 * COUNT ( * ) AS col2, 77 AS col1
----
-6205
77

query I rowsort
SELECT DISTINCT - 92 + - 4
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5057
SELECT DISTINCT - - COALESCE ( + CAST( - COUNT( * ) AS SIGNED ), - ( + + 53 ) * + + 78 ) + - NULLIF ( + 4, - 59 ) AS col2, 50 * - 5 + 9
----
-5
-241

skipif mysql # not compatible
query II rowsort label-5057
SELECT DISTINCT - - COALESCE ( + CAST ( - COUNT ( * ) AS INTEGER ), - ( + + 53 ) * + + 78 ) + - NULLIF ( + 4, - 59 ) AS col2, 50 * - 5 + 9
----
-5
-241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT + 21 + + 68 * - 56 * - - AVG ( ALL CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT + 21 + + 68 * - 56 * - - AVG ( ALL CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT ALL 61 DIV 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL 61 / 7 AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT 62 DIV + 31
----
2

skipif mysql # not compatible
query I rowsort label-5060
SELECT 62 / + 31
----
2

query I rowsort
SELECT ALL + 31 + + 30
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5062
SELECT ALL - 73 + + + 79 DIV CASE 47 WHEN 6 THEN NULL WHEN COUNT( * ) THEN NULL ELSE 65 * - 47 + + 96 END + - COUNT( * ) + + 64
----
-10

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - 73 + + + 79 / CASE 47 WHEN 6 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 65 * - 47 + + 96 END + - COUNT ( * ) + + 64
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT + CASE - 69 WHEN + - 18 + 47 + - 88 + + 21 * 33 * - 49 + - 39 THEN + - 72 * + 96 + + NULLIF ( ( - COUNT( * ) ), - CAST( NULL AS SIGNED ) * + COUNT( * ) + ( 81 ) ) - 50 * + 18 * + + 9 + - ( 5 ) END * COUNT( 28 ) / - 26 + + MIN( + 43 ) + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT + CASE - 69 WHEN + - 18 + 47 + - 88 + + 21 * 33 * - 49 + - 39 THEN + - 72 * + 96 + + NULLIF ( ( - COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + ( 81 ) ) - 50 * + 18 * + + 9 + - ( 5 ) END * COUNT ( 28 ) / - 26 + + MIN ( + 43 ) + 92 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT 42 + - 0 DIV - 79
----
42

skipif mysql # not compatible
query I rowsort label-5064
SELECT 42 + - 0 / - 79
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT - 47 AS col1, + COALESCE ( 60, - 8, + SUM( ALL - + 63 ) * 74, - - 89 ) AS col1
----
-47
60

skipif mysql # not compatible
query II rowsort label-5065
SELECT - 47 AS col1, + COALESCE ( 60, - 8, + SUM ( ALL - + 63 ) * 74, - - 89 ) AS col1
----
-47
60

query I rowsort
SELECT + 71 + 43 col0
----
114

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5067
SELECT 72 AS col2, + CAST( + - 44 AS SIGNED ) DIV - 48
----
72
0

skipif mysql # not compatible
query II rowsort label-5067
SELECT 72 AS col2, + CAST ( + - 44 AS INTEGER ) / - 48
----
72
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL + COUNT( * ) + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL + COUNT ( * ) + - 99
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT ALL - COALESCE ( 73, - + COUNT( * ), - - 7 + + MIN( + + 75 ) ) AS col2, - 22
----
-73
-22

skipif mysql # not compatible
query II rowsort label-5069
SELECT ALL - COALESCE ( 73, - + COUNT ( * ), - - 7 + + MIN ( + + 75 ) ) AS col2, - 22
----
-73
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT + NULLIF ( ( - COUNT( * ) ), + - 2 ) + - - 69 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5070
SELECT + NULLIF ( ( - COUNT ( * ) ), + - 2 ) + - - 69 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5071
SELECT ALL - - 0 * + - COUNT( * ) * - + COUNT( + 50 ) AS col1, 77
----
0
77

skipif mysql # not compatible
query II rowsort label-5071
SELECT ALL - - 0 * + - COUNT ( * ) * - + COUNT ( + 50 ) AS col1, 77
----
0
77

query I rowsort
SELECT + 47 + + 87 AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT MAX( ALL + 52 ) - 26 col2
----
26

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT MAX ( ALL + 52 ) - 26 col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5074
SELECT ALL 60, - COUNT( * ) DIV + ( 45 ) * 23 + - - CAST( 56 AS SIGNED ) + + 18 col1
----
60
74

skipif mysql # not compatible
query II rowsort label-5074
SELECT ALL 60, - COUNT ( * ) / + ( 45 ) * 23 + - - CAST ( 56 AS INTEGER ) + + 18 col1
----
60
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5076
SELECT + 40 + - 46 + + 44 + - 95 + - 89 + + CASE ( - 27 ) WHEN + + ( - 86 ) THEN ( 25 ) * 1 END + + 49 * + 21 * - 45 / + - COALESCE ( + 9, + 80 * - COALESCE ( + - 12, 26 * CASE - - CAST( 90 AS SIGNED ) WHEN - 16 THEN 64 END, + 87 + - 86 - + 33 ) * - 88 + + CAST( + 36 + 30 AS SIGNED ) + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT + 40 + - 46 + + 44 + - 95 + - 89 + + CASE ( - 27 ) WHEN + + ( - 86 ) THEN ( 25 ) * 1 END + + 49 * + 21 * - 45 / + - COALESCE ( + 9, + 80 * - COALESCE ( + - 12, 26 * CASE - - CAST ( 90 AS INTEGER ) WHEN - 16 THEN 64 END, + 87 + - 86 - + 33 ) * - 88 + + CAST ( + 36 + 30 AS INTEGER ) + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT + 75 DIV - 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5077
SELECT + 75 / - 61 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT ALL MIN( + 2 ) DIV - - CASE - 82 WHEN + 92 THEN NULL ELSE - - 95 * 39 + + + COUNT( * ) - - 66 * 30 DIV - 59 + + 42 - + SUM( - 18 ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL MIN ( + 2 ) / - - CASE - 82 WHEN + 92 THEN NULL ELSE - - 95 * 39 + + + COUNT ( * ) - - 66 * 30 / - 59 + + 42 - + SUM ( - 18 ) END AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT + 4 DIV 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5079
SELECT + 4 / 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT + NULLIF ( + COUNT( * ), + COALESCE ( 84, - 76 * - 18 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5080
SELECT + NULLIF ( + COUNT ( * ), + COALESCE ( 84, - 76 * - 18 ) )
----
1

query I rowsort
SELECT + NULLIF ( - 74, - - 79 ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5082
SELECT CASE + 34 WHEN + 95 * + 77 * 88 + + 20 + - - 67 * ( 73 ) - + 56 - - + CAST( + 69 AS SIGNED ) THEN NULL WHEN + ( - 13 ) THEN NULL ELSE - - COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5082
SELECT CASE + 34 WHEN + 95 * + 77 * 88 + + 20 + - - 67 * ( 73 ) - + 56 - - + CAST ( + 69 AS INTEGER ) THEN NULL WHEN + ( - 13 ) THEN NULL ELSE - - COUNT ( * ) END AS col0
----
1

query I rowsort
SELECT ALL - 53 * 42 AS col2
----
-2226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5084
SELECT CASE + + CAST( + - 54 AS DECIMAL ) WHEN - 33 THEN + 10 / - 65 * - AVG ( 36 ) * - - 63 - - 96 WHEN + CAST( CASE - 23 WHEN - 27 THEN - + 83 + + 58 + + 59 * + 55 WHEN + 18 THEN - 90 - 54 END AS SIGNED ) + - + 53 / + MAX( - 57 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT CASE + + CAST ( + - 54 AS REAL ) WHEN - 33 THEN + 10 / - 65 * - AVG ( 36 ) * - - 63 - - 96 WHEN + CAST ( CASE - 23 WHEN - 27 THEN - + 83 + + 58 + + 59 * + 55 WHEN + 18 THEN - 90 - 54 END AS INTEGER ) + - + 53 / + MAX ( - 57 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT 44 * CAST( NULL AS SIGNED ) - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT 44 * CAST ( NULL AS INTEGER ) - + 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT - 50 * 85 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT - 50 * 85 / + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT 3 * - + MIN( DISTINCT + + 13 ) + + + 9 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT 3 * - + MIN ( DISTINCT + + 13 ) + + + 9 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT DISTINCT - - 77 * ( - COUNT( * ) ) * 79 + - ( + 23 ) AS col2
----
-6106

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT - - 77 * ( - COUNT ( * ) ) * 79 + - ( + 23 ) AS col2
----
-6106

query II rowsort
SELECT + 59 * - + 44 col1, 28 AS col1
----
-2596
28

query I rowsort
SELECT + 57 * - + 64 + 42 + + - 86
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT - CASE - 93 WHEN 93 THEN NULLIF ( + NULLIF ( + + 14, + - COUNT( * ) ), 45 * 72 + 43 * + + 29 * 31 ) * 55 + + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT - CASE - 93 WHEN 93 THEN NULLIF ( + NULLIF ( + + 14, + - COUNT ( * ) ), 45 * 72 + 43 * + + 29 * 31 ) * 55 + + 60 END
----
NULL

query I rowsort
SELECT - - 47 + 46 AS col2
----
93

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

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

query I rowsort
SELECT - 64 + - 86 AS col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT + - 11 * - COUNT( * ) + 46
----
57

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT + - 11 * - COUNT ( * ) + 46
----
57

query I rowsort
SELECT ALL + 86 - 82 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5098
SELECT DISTINCT + - 36 - + - 36 col2, + CASE - 93 WHEN + + COUNT( * ) THEN + 61 END - - COUNT( * ) + - 50 + - - 99 - - COUNT( * ) * - + 48 * 43 * COUNT( * ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5098
SELECT DISTINCT + - 36 - + - 36 col2, + CASE - 93 WHEN + + COUNT ( * ) THEN + 61 END - - COUNT ( * ) + - 50 + - - 99 - - COUNT ( * ) * - + 48 * 43 * COUNT ( * ) AS col0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 3 + - + ( 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 3 + - + ( 41 )
----
NULL

query I rowsort
SELECT ALL + + 85 - - 52 col1
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5101
SELECT 20 AS col0, CAST( NULL AS SIGNED ) * + 90
----
20
NULL

skipif mysql # not compatible
query II rowsort label-5101
SELECT 20 AS col0, CAST ( NULL AS INTEGER ) * + 90
----
20
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT COUNT( * ) * - 8
----
-8

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT COUNT ( * ) * - 8
----
-8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL ( - - COUNT( - - 47 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL ( - - COUNT ( - - 47 ) ) col2
----
1

query I rowsort
SELECT - 81 - - 65
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT DISTINCT + 67 * - COALESCE ( - + COUNT( * ), + 82, 2 - - 5 * - ( - COUNT( * ) ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT + 67 * - COALESCE ( - + COUNT ( * ), + 82, 2 - - 5 * - ( - COUNT ( * ) ) ) AS col2
----
67

query I rowsort
SELECT - 45 + 45 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5110
SELECT DISTINCT + 1 AS col0, + SUM( DISTINCT 92 )
----
1
92

skipif mysql # not compatible
query II rowsort label-5110
SELECT DISTINCT + 1 AS col0, + SUM ( DISTINCT 92 )
----
1
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT 49 * + 30 + - - 37 - + NULLIF ( 52, - 26 * + 3 / - 17 + CAST( 82 AS SIGNED ) ) / + 11 + ( CAST( NULL AS SIGNED ) ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT 49 * + 30 + - - 37 - + NULLIF ( 52, - 26 * + 3 / - 17 + CAST ( 82 AS INTEGER ) ) / + 11 + ( CAST ( NULL AS INTEGER ) ) * - 12
----
NULL

query I rowsort
SELECT + 27 - + ( - + 14 ) AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5113
SELECT - CAST( 68 AS SIGNED ) DIV 47 + - 50 + - 95
----
-146

skipif mysql # not compatible
query I rowsort label-5113
SELECT - CAST ( 68 AS INTEGER ) / 47 + - 50 + - 95
----
-146

query I rowsort
SELECT + ( - ( 99 ) ) * + + 41
----
-4059

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT + 73 + - 80 + + CASE - 56 WHEN - + COUNT( * ) THEN - ( + 13 ) * 83 ELSE - - 81 * - - ( ( + 78 ) ) END * + - 16 + - + 62 * ( - ( - - COUNT( * ) ) ) AS col0
----
-101033

skipif mysql # not compatible
query I rowsort label-5115
SELECT + 73 + - 80 + + CASE - 56 WHEN - + COUNT ( * ) THEN - ( + 13 ) * 83 ELSE - - 81 * - - ( ( + 78 ) ) END * + - 16 + - + 62 * ( - ( - - COUNT ( * ) ) ) AS col0
----
-101033

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT ALL COUNT( * ) DIV - + 19 + - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL COUNT ( * ) / - + 19 + - 67 AS col2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT ALL 3 DIV - 82 + + COALESCE ( - ( ( + - 64 ) ), 20 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL 3 / - 82 + + COALESCE ( - ( ( + - 64 ) ), 20 ) AS col0
----
64

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5119
SELECT DISTINCT + COUNT( * ) DIV 67 DIV COALESCE ( + 21, - 2 ) + - 16
----
-16

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT + COUNT ( * ) / 67 / COALESCE ( + 21, - 2 ) + - 16
----
-16

query I rowsort
SELECT + NULLIF ( + 45, + 98 )
----
45

query I rowsort
SELECT + + 26 * - 36
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + + 20 * + 48 * + COUNT( * )
----
960

skipif mysql # not compatible
query I rowsort label-5122
SELECT + + 20 * + 48 * + COUNT ( * )
----
960

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

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

query I rowsort
SELECT + - 51 * 99 - - 10 AS col1
----
-5039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5125
SELECT ALL - COUNT( * ) * - NULLIF ( + - CAST( NULL AS SIGNED ), 22 / + ( - 89 ) * + COUNT( DISTINCT - 97 ) + + - 47 ) + - 49 * + - 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL - COUNT ( * ) * - NULLIF ( + - CAST ( NULL AS INTEGER ), 22 / + ( - 89 ) * + COUNT ( DISTINCT - 97 ) + + - 47 ) + - 49 * + - 48 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + NULLIF ( + + 65, + COUNT( - 13 ) )
----
65

skipif mysql # not compatible
query I rowsort label-5127
SELECT + NULLIF ( + + 65, + COUNT ( - 13 ) )
----
65

query I rowsort
SELECT ALL + 90 - 34
----
56

query I rowsort
SELECT ALL 89 - 54 AS col1
----
35

query I rowsort
SELECT ( 40 ) * - - 33 AS col1
----
1320

query I rowsort
SELECT - COALESCE ( 15, - - 93 ) AS col0
----
-15

query II rowsort
SELECT ALL 44 AS col0, 3 AS col1
----
44
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5133
SELECT - 81 + + CAST( NULL AS SIGNED ) + 32 AS col1, 90 + 45
----
NULL
135

skipif mysql # not compatible
query II rowsort label-5133
SELECT - 81 + + CAST ( NULL AS INTEGER ) + 32 AS col1, 90 + 45
----
NULL
135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5134
SELECT + CAST( + ( + 46 ) AS SIGNED ) DIV 7 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5134
SELECT + CAST ( + ( + 46 ) AS INTEGER ) / 7 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT 50 + COUNT( * ) col0
----
51

skipif mysql # not compatible
query I rowsort label-5135
SELECT 50 + COUNT ( * ) col0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-5136
SELECT 35, 12 * - + 71 DIV 66 col1
----
35
-12

skipif mysql # not compatible
query II rowsort label-5136
SELECT 35, 12 * - + 71 / 66 col1
----
35
-12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5138
SELECT ALL 46, 37 * + 5 - - CAST( + 95 AS SIGNED ) * - 90 * + - 3 col2
----
46
25835

skipif mysql # not compatible
query II rowsort label-5138
SELECT ALL 46, 37 * + 5 - - CAST ( + 95 AS INTEGER ) * - 90 * + - 3 col2
----
46
25835

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT 50 + + MAX( - NULLIF ( 87, + - 5 ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5139
SELECT 50 + + MAX ( - NULLIF ( 87, + - 5 ) ) AS col0
----
-37

query II rowsort
SELECT 8 AS col0, 2 + + - 0 * + 29 + + 23 + + 96 + - 64 * 64 * + 69 * + 19 * + 73 + + + 84
----
8
-391999283

query I rowsort
SELECT 69 * + CASE 55 WHEN - - 71 THEN - 89 + + AVG ( ALL - 1 ) + + - AVG ( + + 97 ) * - 83 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT MAX( ALL - 98 ) + - 67 * 34
----
-2376

skipif mysql # not compatible
query I rowsort label-5142
SELECT MAX ( ALL - 98 ) + - 67 * 34
----
-2376

query I rowsort
SELECT ALL - 90 + + - 31 * + 65
----
-2105

query I rowsort
SELECT 85 + 76
----
161

query II rowsort
SELECT 59 * + NULLIF ( 4, 56 ), 84 AS col2
----
236
84

query II rowsort
SELECT DISTINCT - COALESCE ( - 95, - - 49 * + + 82 ) AS col1, 84 AS col1
----
95
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5147
SELECT - ( - - NULLIF ( 50, 37 * - 47 + - NULLIF ( - NULLIF ( 26, + - 80 ), + COALESCE ( 29, + 63, - CAST( - NULLIF ( + 99, + 71 ) AS SIGNED ) ) * + + 64 + CASE 93 WHEN CASE + - 58 WHEN 30 THEN NULL WHEN 95 * + 70 + + 94 THEN + CASE + - 66 WHEN + CAST( NULL AS SIGNED ) + + 24 + - 1 + - ( + 99 ) * 28 * - COUNT( * ) THEN NULL ELSE + 83 END WHEN + 79 THEN NULL WHEN 45 THEN NULL END * 56 THEN + MIN( 35 ) ELSE 15 / 36 + - ( 97 ) * - 95 END ) ) ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-5147
SELECT - ( - - NULLIF ( 50, 37 * - 47 + - NULLIF ( - NULLIF ( 26, + - 80 ), + COALESCE ( 29, + 63, - CAST ( - NULLIF ( + 99, + 71 ) AS INTEGER ) ) * + + 64 + CASE 93 WHEN CASE + - 58 WHEN 30 THEN NULL WHEN 95 * + 70 + + 94 THEN + CASE + - 66 WHEN + CAST ( NULL AS INTEGER ) + + 24 + - 1 + - ( + 99 ) * 28 * - COUNT ( * ) THEN NULL ELSE + 83 END WHEN + 79 THEN NULL WHEN 45 THEN NULL END * 56 THEN + MIN ( 35 ) ELSE 15 / 36 + - ( 97 ) * - 95 END ) ) ) col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT + 41 * + 34 + - + 91 + - 95 + - NULLIF ( + CASE + 52 WHEN - + 61 + - + 37 THEN + - 27 - + - 74 / MAX( ALL + 70 ) WHEN - 37 THEN NULL WHEN + 66 THEN NULL WHEN + ( + MIN( DISTINCT 35 ) ) + + 29 * - 72 THEN - MIN( DISTINCT + - ( - 20 ) ) * - + 53 END, - COALESCE ( + 84, + 10 + + - 84 * 65 ) / 21 + - - 73 * - 50 + - 42 ) * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT + 41 * + 34 + - + 91 + - 95 + - NULLIF ( + CASE + 52 WHEN - + 61 + - + 37 THEN + - 27 - + - 74 / MAX ( ALL + 70 ) WHEN - 37 THEN NULL WHEN + 66 THEN NULL WHEN + ( + MIN ( DISTINCT 35 ) ) + + 29 * - 72 THEN - MIN ( DISTINCT + - ( - 20 ) ) * - + 53 END, - COALESCE ( + 84, + 10 + + - 84 * 65 ) / 21 + - - 73 * - 50 + - 42 ) * + 76
----
NULL

query I rowsort
SELECT 60 * 61 + - 7 AS col1
----
3653

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT - COUNT( DISTINCT - 99 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5150
SELECT - COUNT ( DISTINCT - 99 ) col1
----
-1

query II rowsort
SELECT ALL - 99 AS col1, - 87 col0
----
-99
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5152
SELECT DISTINCT - 92 DIV - COUNT( - 89 )
----
92

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT - 92 / - COUNT ( - 89 )
----
92

query I rowsort
SELECT ALL - + NULLIF ( 24, - + COALESCE ( 14, 21 ) - + 6 * + 27 ) col1
----
-24

query II rowsort
SELECT DISTINCT - 91 AS col1, 84
----
-91
84

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

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

query I rowsort
SELECT 4 * - 36 + 94
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT - MIN( DISTINCT + 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5157
SELECT - MIN ( DISTINCT + 45 ) AS col0
----
-45

query II rowsort
SELECT - + 1 AS col1, + ( 71 ) + - + 0
----
-1
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5159
SELECT 88 * - - 93 + - - 50 + + 18 + 92 + + 92 DIV - COUNT( * ) AS col2, 9 + - + 38 AS col2
----
8252
-29

skipif mysql # not compatible
query II rowsort label-5159
SELECT 88 * - - 93 + - - 50 + + 18 + 92 + + 92 / - COUNT ( * ) AS col2, 9 + - + 38 AS col2
----
8252
-29

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

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

query I rowsort
SELECT DISTINCT ( + 85 ) + - 21 - + 6
----
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT COUNT( * ) - - COALESCE ( + 86, + + 60, 73 ) col1, - NULLIF ( + - 23, + 47 * + + 16 + - + 6 )
----
87
23

skipif mysql # not compatible
query II rowsort label-5163
SELECT COUNT ( * ) - - COALESCE ( + 86, + + 60, 73 ) col1, - NULLIF ( + - 23, + 47 * + + 16 + - + 6 )
----
87
23

query II rowsort
SELECT ALL 16 + - - 15 AS col1, 30 * + 51 * - 69 - + NULLIF ( - + 49, ( - 98 ) * - + 30 ) AS col2
----
31
-105521

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT 40 + + 76 + 70 DIV - - 33
----
118

skipif mysql # not compatible
query I rowsort label-5165
SELECT 40 + + 76 + 70 / - - 33
----
118

query I rowsort
SELECT 75 * + ( 51 )
----
3825

query I rowsort
SELECT ALL + 49 + 83 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL - 95 * COALESCE ( 26, - COUNT( * ) + 64 - - 98 )
----
-2470

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - 95 * COALESCE ( 26, - COUNT ( * ) + 64 - - 98 )
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT 65 - ( - + 98 ) * + NULLIF ( + MIN( 50 ), - CASE - + COUNT( * ) WHEN + - NULLIF ( 28, + COUNT( * ) ) THEN - 25 + - + 24 END + 40 )
----
4965

skipif mysql # not compatible
query I rowsort label-5169
SELECT 65 - ( - + 98 ) * + NULLIF ( + MIN ( 50 ), - CASE - + COUNT ( * ) WHEN + - NULLIF ( 28, + COUNT ( * ) ) THEN - 25 + - + 24 END + 40 )
----
4965

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT 84 DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-5170
SELECT 84 / + 33
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT CAST( CAST( - 26 AS SIGNED ) AS SIGNED ) + - + 46 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-5171
SELECT CAST ( CAST ( - 26 AS INTEGER ) AS INTEGER ) + - + 46 AS col1
----
-72

query II rowsort
SELECT - 86 * 9, - 11 * + 25 * - 64 AS col1
----
-774
17600

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT ALL - 15 DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - 15 / 55 AS col1
----
0

query I rowsort
SELECT - 95 - + 54
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT - - 27 * 37 - + + 9 - - + 76 DIV 50 AS col2
----
991

skipif mysql # not compatible
query I rowsort label-5175
SELECT - - 27 * 37 - + + 9 - - + 76 / 50 AS col2
----
991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5176
SELECT ALL + + ( 43 ), 24 * + CASE + - 89 WHEN CAST( NULL AS SIGNED ) * 5 THEN + + 10 - - + 42 * + CAST( - COALESCE ( - + 45, + NULLIF ( 4, - - 75 ) + 81 / - COUNT( * ) ) AS SIGNED ) + - 2 WHEN - CASE - 86 WHEN - 23 THEN NULL WHEN + 99 * + + COUNT( * ) THEN 87 END + 39 + - + 86 * - + CAST( - 54 AS SIGNED ) THEN NULL WHEN ( 40 ) + - COUNT( * ) + + - CAST( + 77 AS SIGNED ) * - COUNT( * ) * 76 THEN ( - NULLIF ( + 96, 36 ) ) ELSE NULL END AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-5176
SELECT ALL + + ( 43 ), 24 * + CASE + - 89 WHEN CAST ( NULL AS INTEGER ) * 5 THEN + + 10 - - + 42 * + CAST ( - COALESCE ( - + 45, + NULLIF ( 4, - - 75 ) + 81 / - COUNT ( * ) ) AS INTEGER ) + - 2 WHEN - CASE - 86 WHEN - 23 THEN NULL WHEN + 99 * + + COUNT ( * ) THEN 87 END + 39 + - + 86 * - + CAST ( - 54 AS INTEGER ) THEN NULL WHEN ( 40 ) + - COUNT ( * ) + + - CAST ( + 77 AS INTEGER ) * - COUNT ( * ) * 76 THEN ( - NULLIF ( + 96, 36 ) ) ELSE NULL END AS col1
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT - - MIN( DISTINCT - - ( + 43 ) ) + + 73
----
116

skipif mysql # not compatible
query I rowsort label-5177
SELECT - - MIN ( DISTINCT - - ( + 43 ) ) + + 73
----
116

query I rowsort
SELECT DISTINCT - + 91 * - - 55
----
-5005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT + COUNT( * ) * - CAST( 21 AS SIGNED ) * + + 83 AS col0
----
-1743

skipif mysql # not compatible
query I rowsort label-5179
SELECT + COUNT ( * ) * - CAST ( 21 AS INTEGER ) * + + 83 AS col0
----
-1743

query I rowsort
SELECT - 68 * + - 96 + 46 col0
----
6574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5181
SELECT - + COALESCE ( - CAST( NULL AS SIGNED ), 42 * 48 + - + COUNT( * ) DIV + - CASE + 42 WHEN - - 38 THEN NULL WHEN + 88 THEN - - 10 END, - 47 ) DIV + 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5181
SELECT - + COALESCE ( - CAST ( NULL AS INTEGER ), 42 * 48 + - + COUNT ( * ) / + - CASE + 42 WHEN - - 38 THEN NULL WHEN + 88 THEN - - 10 END, - 47 ) / + 52 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT DISTINCT 25 / CAST( NULL AS SIGNED ) * + + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT 25 / CAST ( NULL AS INTEGER ) * + + 67 AS col0
----
NULL

query II rowsort
SELECT ALL - 56 + - 87, - 25 col1
----
-143
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5184
SELECT ALL - COUNT( * ) / + - 16 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL - COUNT ( * ) / + - 16 * + CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5185
SELECT + 58 / - + 71
----
0

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

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

query I rowsort
SELECT - 4 * - - 12
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - MIN( DISTINCT - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-5188
SELECT - MIN ( DISTINCT - 55 )
----
55

query I rowsort
SELECT + 4 + - ( 63 ) * - 74 AS col2
----
4666

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT DISTINCT 10 + + - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT 10 + + - COUNT ( * )
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-5191
SELECT ALL 53, 27 DIV - 86 AS col0
----
53
0

skipif mysql # not compatible
query II rowsort label-5191
SELECT ALL 53, 27 / - 86 AS col0
----
53
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5192
SELECT - CASE + CASE CASE + COUNT( * ) WHEN + 45 * + 97 - - 24 * - + 27 THEN NULL WHEN 90 THEN - - 8 * + + 10 - - 39 + - 45 END WHEN - 36 THEN + 99 + - - 4 + 76 * - 58 WHEN + COUNT( * ) + - CAST( NULL AS SIGNED ) * + 86 THEN - CAST( + + 66 AS SIGNED ) END WHEN + 67 + - CAST( NULL AS SIGNED ) * - 81 - - - 1 + 49 * + 42 + 17 THEN + - MAX( ALL - 25 ) WHEN + COUNT( * ) + 51 THEN + AVG ( ALL - 40 ) * 98 WHEN 53 THEN 41 - + 76 * COUNT( DISTINCT 26 / - CAST( 82 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT - CASE + CASE CASE + COUNT ( * ) WHEN + 45 * + 97 - - 24 * - + 27 THEN NULL WHEN 90 THEN - - 8 * + + 10 - - 39 + - 45 END WHEN - 36 THEN + 99 + - - 4 + 76 * - 58 WHEN + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 86 THEN - CAST ( + + 66 AS INTEGER ) END WHEN + 67 + - CAST ( NULL AS INTEGER ) * - 81 - - - 1 + 49 * + 42 + 17 THEN + - MAX ( ALL - 25 ) WHEN + COUNT ( * ) + 51 THEN + AVG ( ALL - 40 ) * 98 WHEN 53 THEN 41 - + 76 * COUNT ( DISTINCT 26 / - CAST ( 82 AS INTEGER ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT ALL 55 col2, 52 - - COUNT( ALL + 79 )
----
55
53

skipif mysql # not compatible
query II rowsort label-5193
SELECT ALL 55 col2, 52 - - COUNT ( ALL + 79 )
----
55
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT 39 + - MIN( ALL ( 16 ) )
----
23

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT 39 + - MIN ( ALL ( 16 ) )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5195
SELECT ALL COUNT( * ), 85 + - + 38 AS col1
----
1
47

skipif mysql # not compatible
query II rowsort label-5195
SELECT ALL COUNT ( * ), 85 + - + 38 AS col1
----
1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT + 68 + + MIN( ALL - + 24 )
----
44

skipif mysql # not compatible
query I rowsort label-5196
SELECT + 68 + + MIN ( ALL - + 24 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT - COALESCE ( - + 67, + SUM( + 23 ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5197
SELECT - COALESCE ( - + 67, + SUM ( + 23 ) ) AS col1
----
67

query I rowsort
SELECT + 32 * - - 78 AS col0
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5199
SELECT - 38 * - 98 * + 38 AS col2, COUNT( * ) + 44 DIV COALESCE ( + CASE 85 WHEN + - 90 THEN NULL WHEN + 20 + + 15 * - 45 THEN - COUNT( * ) WHEN 15 - + NULLIF ( + - 61, COUNT( ALL + 54 ) ) THEN + - 69 DIV - COUNT( + 78 ) ELSE NULL END, - NULLIF ( + 8, - - 67 + + 94 ) ) + + 32 AS col2
----
141512
28

skipif mysql # not compatible
query II rowsort label-5199
SELECT - 38 * - 98 * + 38 AS col2, COUNT ( * ) + 44 / COALESCE ( + CASE 85 WHEN + - 90 THEN NULL WHEN + 20 + + 15 * - 45 THEN - COUNT ( * ) WHEN 15 - + NULLIF ( + - 61, COUNT ( ALL + 54 ) ) THEN + - 69 / - COUNT ( + 78 ) ELSE NULL END, - NULLIF ( + 8, - - 67 + + 94 ) ) + + 32 AS col2
----
141512
28

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

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

query II rowsort
SELECT 76 AS col2, + 90 + - 47
----
76
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT - 14 + - - 89 - 55 + + 21 * - 68 * 42 + 5 - + - CAST( - 55 AS SIGNED ) + + + 55 - - + 99 + - - COUNT( * ) + - ( - - 70 ) * - - 46
----
-63071

skipif mysql # not compatible
query I rowsort label-5202
SELECT - 14 + - - 89 - 55 + + 21 * - 68 * 42 + 5 - + - CAST ( - 55 AS INTEGER ) + + + 55 - - + 99 + - - COUNT ( * ) + - ( - - 70 ) * - - 46
----
-63071

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL MIN( 64 )
----
64

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL MIN ( 64 )
----
64

query I rowsort
SELECT + + 47 * + 58
----
2726

query I rowsort
SELECT DISTINCT ( + - 77 ) / - - CASE 37 WHEN - 54 THEN NULL WHEN - 30 THEN - 85 END + 41 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT DISTINCT - - 69 * 69 DIV - 11 + - 85
----
-517

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - - 69 * 69 / - 11 + - 85
----
-517

query I rowsort
SELECT DISTINCT 10 * - 82 * - 82
----
67240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5208
SELECT ALL + CASE 21 WHEN + CAST( + 35 AS SIGNED ) THEN NULL ELSE + ( + - COUNT( * ) ) END AS col1, - 20 AS col1
----
-1
-20

skipif mysql # not compatible
query II rowsort label-5208
SELECT ALL + CASE 21 WHEN + CAST ( + 35 AS INTEGER ) THEN NULL ELSE + ( + - COUNT ( * ) ) END AS col1, - 20 AS col1
----
-1
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5209
SELECT ALL - 86 DIV - - 96 * - 27 * - - 61 - + - SUM( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - 86 / - - 96 * - 27 * - - 61 - + - SUM ( DISTINCT + 70 )
----
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5211
SELECT DISTINCT + NULLIF ( 33, CAST( - 14 AS SIGNED ) - - COUNT( * ) / - 38 * - ( - 79 ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT + NULLIF ( 33, CAST ( - 14 AS INTEGER ) - - COUNT ( * ) / - 38 * - ( - 79 ) ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT + 18 * 18 - + COUNT( DISTINCT 7 ) - + COUNT( * ) AS col0
----
322

skipif mysql # not compatible
query I rowsort label-5212
SELECT + 18 * 18 - + COUNT ( DISTINCT 7 ) - + COUNT ( * ) AS col0
----
322

query I rowsort
SELECT - 99 * - - 60 AS col0
----
-5940

query I rowsort
SELECT - - 62 - + - 53 AS col1
----
115

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT - + CASE + - ( + 55 ) WHEN - 31 THEN + - COALESCE ( - + 41, + 63 * 57 ) WHEN - + 58 THEN + COUNT( * ) / + COUNT( * ) - - - 21 ELSE - - 60 * - 23 END * - CAST( NULL AS SIGNED ) * - + 25 + 45 - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT - + CASE + - ( + 55 ) WHEN - 31 THEN + - COALESCE ( - + 41, + 63 * 57 ) WHEN - + 58 THEN + COUNT ( * ) / + COUNT ( * ) - - - 21 ELSE - - 60 * - 23 END * - CAST ( NULL AS INTEGER ) * - + 25 + 45 - + 6
----
NULL

query I rowsort
SELECT CASE - + 27 WHEN 19 THEN + 64 ELSE + + 21 END AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT - - 12 * + + COUNT( * ) - - - 42 AS col0, - 99
----
-30
-99

skipif mysql # not compatible
query II rowsort label-5218
SELECT - - 12 * + + COUNT ( * ) - - - 42 AS col0, - 99
----
-30
-99

query I rowsort
SELECT ALL - 71 * - - 30 + - 92 + + ( 84 ) * 59 AS col0
----
2734

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT - + MAX( DISTINCT - + ( - 35 ) ) * - MAX( - 85 )
----
-2975

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT - + MAX ( DISTINCT - + ( - 35 ) ) * - MAX ( - 85 )
----
-2975

query I rowsort
SELECT NULLIF ( - 46, 5 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT NULLIF ( - COUNT( * ), - 93 * 84 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5222
SELECT NULLIF ( - COUNT ( * ), - 93 * 84 ) AS col2
----
-1

query I rowsort
SELECT ALL + 36 * + + 94 + + - 71 AS col1
----
3313

query I rowsort
SELECT - 44 * - 33 + + 63
----
1515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5225
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) * - 21 * SUM( - 20 ) + 66 - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) * - 21 * SUM ( - 20 ) + 66 - + 10
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5226
SELECT + COUNT( * ) + 7 AS col1, ( - + 1 )
----
8
-1

skipif mysql # not compatible
query II rowsort label-5226
SELECT + COUNT ( * ) + 7 AS col1, ( - + 1 )
----
8
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT - MAX( - + ( + - 9 ) ) * - 56 AS col0
----
504

skipif mysql # not compatible
query I rowsort label-5227
SELECT - MAX ( - + ( + - 9 ) ) * - 56 AS col0
----
504

query I rowsort
SELECT ALL 62 * - ( 37 ) AS col1
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT MIN( DISTINCT 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5229
SELECT MIN ( DISTINCT 44 ) AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT DISTINCT + 77 DIV - - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT + 77 / - - 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT 56 - - COUNT( * ) + + ( 25 ) * - + 54 AS col0
----
-1293

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT 56 - - COUNT ( * ) + + ( 25 ) * - + 54 AS col0
----
-1293

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

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

query I rowsort
SELECT ALL 26 * + - 39
----
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT 65 - + + 13 + - - COUNT( DISTINCT + 42 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5234
SELECT 65 - + + 13 + - - COUNT ( DISTINCT + 42 ) AS col0
----
53

query I rowsort
SELECT 74 + - + 53 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5236
SELECT DISTINCT 20 * - 35, + NULLIF ( 9, + 42 + + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - COUNT( * ) ) AS col0
----
-700
9

skipif mysql # not compatible
query II rowsort label-5236
SELECT DISTINCT 20 * - 35, + NULLIF ( 9, + 42 + + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - COUNT ( * ) ) AS col0
----
-700
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT COUNT( DISTINCT + 22 ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-5237
SELECT COUNT ( DISTINCT + 22 ) * 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT DISTINCT SUM( DISTINCT 89 )
----
89

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT SUM ( DISTINCT 89 )
----
89

query I rowsort
SELECT - 43 - - 43
----
0

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

query I rowsort
SELECT ( 95 ) + + + 17
----
112

query I rowsort
SELECT + 84 * + 85 AS col1
----
7140

query II rowsort
SELECT - 91 * - - 58 + + - 82 + - 59, + 40 AS col0
----
-5419
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5244
SELECT + 93 - 15 DIV - - COUNT( - + 19 ) + + 81 DIV - 33
----
76

skipif mysql # not compatible
query I rowsort label-5244
SELECT + 93 - 15 / - - COUNT ( - + 19 ) + + 81 / - 33
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5245
SELECT ALL 62 * + COUNT( * ) + - COALESCE ( CAST( + CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ), - 23 * + 31 - + 6, - 19 + + 18 * - - 21 ) + 12 * - COUNT( * ) * 6 DIV - 85 + - - 73 DIV - + COUNT( * ) + 92 + - 11 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL 62 * + COUNT ( * ) + - COALESCE ( CAST ( + CAST ( COUNT ( * ) AS REAL ) AS INTEGER ), - 23 * + 31 - + 6, - 19 + + 18 * - - 21 ) + 12 * - COUNT ( * ) * 6 / - 85 + - - 73 / - + COUNT ( * ) + 92 + - 11 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT 16 / 4 + - - CAST( NULL AS SIGNED ) * - 55 * - + 30 * + 95 * - + 15 * - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT 16 / 4 + - - CAST ( NULL AS INTEGER ) * - 55 * - + 30 * + 95 * - + 15 * - 64 AS col2
----
NULL

query I rowsort
SELECT - 95 * - 28 - - + 8 AS col1
----
2668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT + + COUNT( * ) * - 45 DIV + + 88 * + + 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT + + COUNT ( * ) * - 45 / + + 88 * + + 53 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5249
SELECT + 50 DIV + SUM( 24 )
----
2

skipif mysql # not compatible
query I rowsort label-5249
SELECT + 50 / + SUM ( 24 )
----
2

query I rowsort
SELECT ALL 20 + - - 28 AS col0
----
48

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

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

query I rowsort
SELECT ALL - - 11 + 92 col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - ( + COUNT( DISTINCT + 61 ) ) + + + 16 * - - 57
----
911

skipif mysql # not compatible
query I rowsort label-5253
SELECT - ( + COUNT ( DISTINCT + 61 ) ) + + + 16 * - - 57
----
911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5254
SELECT DISTINCT - COUNT( * ) + - CAST( 4 AS SIGNED ) + - 69 AS col1, - SUM( DISTINCT + 28 ) AS col0
----
-74
-28

skipif mysql # not compatible
query II rowsort label-5254
SELECT DISTINCT - COUNT ( * ) + - CAST ( 4 AS INTEGER ) + - 69 AS col1, - SUM ( DISTINCT + 28 ) AS col0
----
-74
-28

query II rowsort
SELECT + 26 * + - 77, + 7 AS col1
----
-2002
7

query I rowsort
SELECT ALL - - ( 9 ) + - 46
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT CAST( NULL AS SIGNED ) / + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT CAST ( NULL AS INTEGER ) / + 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5258
SELECT 79 + - - 60 DIV - 64 * - 8 + - COUNT( * ) + - 58
----
20

skipif mysql # not compatible
query I rowsort label-5258
SELECT 79 + - - 60 / - 64 * - 8 + - COUNT ( * ) + - 58
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT ALL + 63 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + 63 / 55
----
1

query I rowsort
SELECT 53 * + 63 * + 22
----
73458

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

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

query I rowsort
SELECT ALL + 36 - - - 4
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5263
SELECT ALL - COALESCE ( + 46, - COALESCE ( + COUNT( - + 76 ), + - 19 + 2 * + ( + CAST( + - 7 AS SIGNED ) ) ), - - 36 ), - COUNT( * ) AS col0
----
-46
-1

skipif mysql # not compatible
query II rowsort label-5263
SELECT ALL - COALESCE ( + 46, - COALESCE ( + COUNT ( - + 76 ), + - 19 + 2 * + ( + CAST ( + - 7 AS INTEGER ) ) ), - - 36 ), - COUNT ( * ) AS col0
----
-46
-1

query I rowsort
SELECT 78 * 30
----
2340

query I rowsort
SELECT 84 + + - 50
----
34

query I rowsort
SELECT ALL + 91 * + 44 AS col2
----
4004

query I rowsort
SELECT 91 * + 44 * + 92 * 70 + - + 87 * - 65 AS col0
----
25791415

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5268
SELECT 68 * - 54 * - - 62 AS col2, 32 DIV - COUNT( * )
----
-227664
-32

skipif mysql # not compatible
query II rowsort label-5268
SELECT 68 * - 54 * - - 62 AS col2, 32 / - COUNT ( * )
----
-227664
-32

query I rowsort
SELECT 3 * - 4
----
-12

query I rowsort
SELECT DISTINCT + 55 - - 41 AS col1
----
96

query I rowsort
SELECT 19 + + 54 + - + 45
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL + 74 * + + 2 * + MAX( + 93 )
----
13764

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL + 74 * + + 2 * + MAX ( + 93 )
----
13764

query I rowsort
SELECT 93 * - 84 AS col2
----
-7812

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT COALESCE ( 94, COUNT( * ) ) * - 28 AS col1
----
-2632

skipif mysql # not compatible
query I rowsort label-5274
SELECT COALESCE ( 94, COUNT ( * ) ) * - 28 AS col1
----
-2632

query I rowsort
SELECT ALL - + 47 + + - 4 AS col1
----
-51

query II rowsort
SELECT - 1, + 13 AS col2
----
-1
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5277
SELECT - 63 + + CASE AVG ( ALL CAST( NULL AS SIGNED ) ) WHEN - 71 THEN NULL WHEN - + 40 * AVG ( DISTINCT + 39 ) - + COUNT( * ) - 39 THEN + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT - 63 + + CASE AVG ( ALL CAST ( NULL AS INTEGER ) ) WHEN - 71 THEN NULL WHEN - + 40 * AVG ( DISTINCT + 39 ) - + COUNT ( * ) - 39 THEN + 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT - NULLIF ( + - MAX( ALL - - 43 ), 63 ) * + 11 - - COUNT( * ) * - - 70 AS col1
----
543

skipif mysql # not compatible
query I rowsort label-5278
SELECT - NULLIF ( + - MAX ( ALL - - 43 ), 63 ) * + 11 - - COUNT ( * ) * - - 70 AS col1
----
543

query I rowsort
SELECT 30 + - 30 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5280
SELECT ALL CAST( - - 94 AS SIGNED ) * + 48 AS col0
----
4512

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL CAST ( - - 94 AS INTEGER ) * + 48 AS col0
----
4512

query I rowsort
SELECT 32 * 45 AS col2
----
1440

query I rowsort
SELECT - 90 + COALESCE ( + - 0, 44 + 12, + + 34 ) AS col1
----
-90

query I rowsort
SELECT DISTINCT - - 81 * - 34 + + 5 * + 17
----
-2669

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

skipif mysql # not compatible
query I rowsort label-5284
SELECT + - NULLIF ( + 62, COUNT ( * ) + + + COUNT ( * ) - - 97 ) AS col0
----
-62

query I rowsort
SELECT ALL + 90 * - - 29 AS col0
----
2610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5286
SELECT - 71 DIV + 82 - + - 87 * + + COUNT( * ) + - 69 + + 89 - - COUNT( - + 52 ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-5286
SELECT - 71 / + 82 - + - 87 * + + COUNT ( * ) + - 69 + + 89 - - COUNT ( - + 52 ) AS col0
----
108

query I rowsort
SELECT 81 - + 16 - + + 25 AS col2
----
40

query I rowsort
SELECT DISTINCT 87 * + 47 * 70 AS col2
----
286230

query I rowsort
SELECT ALL 45 - 99 col1
----
-54

query I rowsort
SELECT DISTINCT + 50 * 43 AS col1
----
2150

query I rowsort
SELECT DISTINCT 16 * - ( - 23 ) AS col2
----
368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT + 61 * + 46 DIV + COUNT( * ) - + NULLIF ( - 81, - 48 ) * - 58 * 53 + 12 AS col1
----
-246176

skipif mysql # not compatible
query I rowsort label-5292
SELECT + 61 * + 46 / + COUNT ( * ) - + NULLIF ( - 81, - 48 ) * - 58 * 53 + 12 AS col1
----
-246176

query II rowsort
SELECT ALL 9 - - 4 AS col2, NULLIF ( + - 78, + 62 ) AS col2
----
13
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT + MIN( - 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5294
SELECT + MIN ( - 60 ) AS col1
----
-60

query II rowsort
SELECT ALL + 33 AS col0, - 48 AS col2
----
33
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5296
SELECT - 97 DIV - + 75 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5296
SELECT - 97 / - + 75 AS col1
----
1

query I rowsort
SELECT + 9 * - + 35 col2
----
-315

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5299
SELECT - 61 DIV - 64 DIV COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5299
SELECT - 61 / - 64 / COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT ALL COUNT( * ) col2, + 60 * + - 18 + - - 60
----
1
-1020

skipif mysql # not compatible
query II rowsort label-5300
SELECT ALL COUNT ( * ) col2, + 60 * + - 18 + - - 60
----
1
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL SUM( - 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL SUM ( - 26 ) AS col0
----
-26

query II rowsort
SELECT ALL 72, + 17 col1
----
72
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT DISTINCT 2 + 58 + 96 DIV 52
----
61

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT 2 + 58 + 96 / 52
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT 42 * + 76 + - CAST( NULL AS SIGNED ) * + + ( + + 93 ) * + CAST( NULL AS SIGNED ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT 42 * + 76 + - CAST ( NULL AS INTEGER ) * + + ( + + 93 ) * + CAST ( NULL AS INTEGER ) + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL - - 95 + + COUNT( * ) - + 8 * + + ( NULLIF ( + 30, 66 ) ) + - - 67 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL - - 95 + + COUNT ( * ) - + 8 * + + ( NULLIF ( + 30, 66 ) ) + - - 67 AS col1
----
-77

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

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + COUNT ( * ) * 8 - - + 3 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - 39 * SUM( - 11 ) * - 90 AS col2
----
-38610

skipif mysql # not compatible
query I rowsort label-5307
SELECT - 39 * SUM ( - 11 ) * - 90 AS col2
----
-38610

query I rowsort
SELECT + 78 + + 48
----
126

query I rowsort
SELECT DISTINCT + + 82 * + 18
----
1476

query I rowsort
SELECT ALL - - 20 + + - 93 + - 79 col0
----
-152

query I rowsort
SELECT - 92 + ( - 77 )
----
-169

query II rowsort
SELECT ALL - 57, 28 AS col2
----
-57
28

onlyif mysql # DIV for integer division: 
query II rowsort label-5313
SELECT - 5 DIV - 66 AS col0, - 95 AS col0
----
0
-95

skipif mysql # not compatible
query II rowsort label-5313
SELECT - 5 / - 66 AS col0, - 95 AS col0
----
0
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT - + 53 + + COUNT( * ) * + + 81 + 76 * + - 90 * - 80 * + 91 AS col0
----
49795228

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - + 53 + + COUNT ( * ) * + + 81 + 76 * + - 90 * - 80 * + 91 AS col0
----
49795228

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

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

query I rowsort
SELECT DISTINCT + + 78 + + + 66
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT - - COUNT( * ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-5317
SELECT - - COUNT ( * ) + + 24
----
25

query I rowsort
SELECT ALL + - 28 + 18 + + 95
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT - MAX( 24 ) + - COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-5319
SELECT - MAX ( 24 ) + - COUNT ( * ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT COUNT( DISTINCT - ( + 91 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5320
SELECT COUNT ( DISTINCT - ( + 91 ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT + 92, - MAX( DISTINCT - - 80 ) AS col2
----
92
-80

skipif mysql # not compatible
query II rowsort label-5321
SELECT + 92, - MAX ( DISTINCT - - 80 ) AS col2
----
92
-80

query I rowsort
SELECT 48 * + 44 * + COALESCE ( + 35, NULLIF ( + 52, + + 76 ), 63, 46 ) + 96
----
74016

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL - NULLIF ( - 39, - 15 * COUNT( * ) - - - AVG ( DISTINCT - 20 ) / + SUM( ALL + 8 ) * - COALESCE ( 25, 64 ) * - - 69 ) * + 97 AS col0
----
3783

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL - NULLIF ( - 39, - 15 * COUNT ( * ) - - - AVG ( DISTINCT - 20 ) / + SUM ( ALL + 8 ) * - COALESCE ( 25, 64 ) * - - 69 ) * + 97 AS col0
----
3783

query I rowsort
SELECT - 44 * - 95 * + 86 + + - 78
----
359402

query I rowsort
SELECT ALL 65 * + 49 + 12 AS col2
----
3197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT ALL - CAST( 25 AS SIGNED ) * - - 92 AS col1
----
-2300

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL - CAST ( 25 AS INTEGER ) * - - 92 AS col1
----
-2300

query I rowsort
SELECT + ( - 44 ) + - + 29 + + + 30 * 47 * 44 + + 85 * - 58 * 66 AS col2
----
-263413

query II rowsort
SELECT ALL + 0 * - + 2 AS col2, 34 AS col0
----
0
34

query I rowsort
SELECT DISTINCT + 91 * 57
----
5187

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5331
SELECT - NULLIF ( - - CAST( NULL AS DECIMAL ), - ( CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) + 23 - ( 92 ) + + 86 + - + COALESCE ( + 73, ( + - COUNT( * ) ) ) * + + SUM( DISTINCT 61 ) / 54 * + - 7 * 1 THEN + 30 END ) ) * - 68 + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT - NULLIF ( - - CAST ( NULL AS REAL ), - ( CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) + 23 - ( 92 ) + + 86 + - + COALESCE ( + 73, ( + - COUNT ( * ) ) ) * + + SUM ( DISTINCT 61 ) / 54 * + - 7 * 1 THEN + 30 END ) ) * - 68 + + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT NULLIF ( - 63, - - NULLIF ( 80, - COUNT( * ) + 43 ) + + - 2 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-5332
SELECT NULLIF ( - 63, - - NULLIF ( 80, - COUNT ( * ) + 43 ) + + - 2 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT + COUNT( * ) + 46 * + 21
----
967

skipif mysql # not compatible
query I rowsort label-5333
SELECT + COUNT ( * ) + 46 * + 21
----
967

onlyif mysql # aggregate syntax: 
query II rowsort label-5334
SELECT + COALESCE ( + 33, - + 33 + + 18 + + ( - COUNT( * ) ) * 71 + 54 ) col0, - 87
----
33
-87

skipif mysql # not compatible
query II rowsort label-5334
SELECT + COALESCE ( + 33, - + 33 + + 18 + + ( - COUNT ( * ) ) * 71 + 54 ) col0, - 87
----
33
-87

query II rowsort
SELECT + 74 + 50, - 63 * + - 76 AS col2
----
124
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT + 85 * 10 * SUM( ALL 57 )
----
48450

skipif mysql # not compatible
query I rowsort label-5336
SELECT + 85 * 10 * SUM ( ALL 57 )
----
48450

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT + CASE 93 WHEN + AVG ( COALESCE ( + + 20, 35 ) ) / + 86 + - 65 + - 73 * - 16 + - + 11 * - - MIN( + + 87 ) + 39 THEN 7 * + 13 * - - COUNT( * ) WHEN + COUNT( * ) / - + 15 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT + CASE 93 WHEN + AVG ( COALESCE ( + + 20, 35 ) ) / + 86 + - 65 + - 73 * - 16 + - + 11 * - - MIN ( + + 87 ) + 39 THEN 7 * + 13 * - - COUNT ( * ) WHEN + COUNT ( * ) / - + 15 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 32 * COALESCE ( - 49, - 52 ) AS col2
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT CASE - - 75 WHEN + 38 * + + ( + ( - SUM( - ( 36 ) ) ) ) * + 15 + - - MIN( - 2 ) - - 28 + 71 + - - 43 THEN - 4 * - 81 * 92 ELSE - ( 58 ) * + 60 + COUNT( * ) + - + COUNT( * ) - - 55 END col1
----
-3425

skipif mysql # not compatible
query I rowsort label-5339
SELECT CASE - - 75 WHEN + 38 * + + ( + ( - SUM ( - ( 36 ) ) ) ) * + 15 + - - MIN ( - 2 ) - - 28 + 71 + - - 43 THEN - 4 * - 81 * 92 ELSE - ( 58 ) * + 60 + COUNT ( * ) + - + COUNT ( * ) - - 55 END col1
----
-3425

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

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

query I rowsort
SELECT + 55 + + + 52 AS col1
----
107

query I rowsort
SELECT DISTINCT 31 * + 21 + 10 AS col1
----
661

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL CASE COALESCE ( + + ( + + 22 ), 12 ) WHEN + COUNT( * ) THEN + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL CASE COALESCE ( + + ( + + 22 ), 12 ) WHEN + COUNT ( * ) THEN + 44 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 52 * + + 93 * 1 + + 35 AS col0
----
-4801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5345
SELECT + 67 - + - COUNT( - 5 ) DIV + 32
----
67

skipif mysql # not compatible
query I rowsort label-5345
SELECT + 67 - + - COUNT ( - 5 ) / + 32
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT - + SUM( - 43 ) + + ( + 52 )
----
95

skipif mysql # not compatible
query I rowsort label-5346
SELECT - + SUM ( - 43 ) + + ( + 52 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT - CAST( NULLIF ( + + 12, - + COUNT( * ) ) AS SIGNED ) * + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5347
SELECT - CAST ( NULLIF ( + + 12, - + COUNT ( * ) ) AS INTEGER ) * + COUNT ( * ) AS col0
----
-12

query II rowsort
SELECT DISTINCT + 51 + - 46, - 27 AS col2
----
5
-27

query I rowsort
SELECT ALL - 93 + 62 * - - 63
----
3813

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT DISTINCT + 1 * + + ( + MIN( + 19 ) ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT + 1 * + + ( + MIN ( + 19 ) ) AS col2
----
19

query I rowsort
SELECT ALL - 57 - 39 + - - 3 + - - 14 * 95 * + 51 AS col0
----
67737

query I rowsort
SELECT ALL - 8 * + ( 40 ) AS col2
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - + CASE - - COUNT( * ) WHEN 56 * - - 4 THEN - 92 WHEN 96 + + 58 THEN - 21 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT - + CASE - - COUNT ( * ) WHEN 56 * - - 4 THEN - 92 WHEN 96 + + 58 THEN - 21 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5355
SELECT - - 52 * SUM( DISTINCT - COALESCE ( + 37, 84 ) ) AS col0, - COUNT( * ) * + - 0 col2
----
-1924
0

skipif mysql # not compatible
query II rowsort label-5355
SELECT - - 52 * SUM ( DISTINCT - COALESCE ( + 37, 84 ) ) AS col0, - COUNT ( * ) * + - 0 col2
----
-1924
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5356
SELECT DISTINCT - 31 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT - 31 / + 70
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5357
SELECT ALL + NULLIF ( - - 69, + ( - COUNT( * ) ) ) AS col0, + NULLIF ( + 69, ( ( + ( + 28 ) ) ) )
----
69
69

skipif mysql # not compatible
query II rowsort label-5357
SELECT ALL + NULLIF ( - - 69, + ( - COUNT ( * ) ) ) AS col0, + NULLIF ( + 69, ( ( + ( + 28 ) ) ) )
----
69
69

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

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL - 41 / 41
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5360
SELECT DISTINCT - 32 DIV - 74 * 27
----
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT - 32 / - 74 * 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5361
SELECT + MAX( ALL - 51 ) DIV - 43 + ( + 84 ) - - 51
----
136

skipif mysql # not compatible
query I rowsort label-5361
SELECT + MAX ( ALL - 51 ) / - 43 + ( + 84 ) - - 51
----
136

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

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

query I rowsort
SELECT 78 + - 1 * + 4
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT 84 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-5364
SELECT 84 / + 51
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL 56 * SUM( DISTINCT - 83 ) * 61 * - - 15 - - - 39
----
-4252959

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL 56 * SUM ( DISTINCT - 83 ) * 61 * - - 15 - - - 39
----
-4252959

query I rowsort
SELECT - 8 * 71 - - 39 AS col1
----
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5367
SELECT ALL CASE - 98 WHEN - + 83 / 8 * + 92 * + 2 * 60 THEN 1 - + 96 * - CAST( - 90 AS SIGNED ) END + CAST( 56 AS SIGNED ) + - MAX( + 79 ) - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ), MIN( - 28 ) col1
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-5367
SELECT ALL CASE - 98 WHEN - + 83 / 8 * + 92 * + 2 * 60 THEN 1 - + 96 * - CAST ( - 90 AS INTEGER ) END + CAST ( 56 AS INTEGER ) + - MAX ( + 79 ) - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ), MIN ( - 28 ) col1
----
NULL
-28

query I rowsort
SELECT ALL 9 + - + 47
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT 13 - - COUNT( * ) + + 44 * 75 AS col2
----
3314

skipif mysql # not compatible
query I rowsort label-5369
SELECT 13 - - COUNT ( * ) + + 44 * 75 AS col2
----
3314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT ALL - 42 * CAST( + - 86 AS SIGNED ) * - 88 AS col2
----
-317856

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL - 42 * CAST ( + - 86 AS INTEGER ) * - 88 AS col2
----
-317856

query I rowsort
SELECT 19 * + 22
----
418

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT COUNT( * ) - - 42
----
43

skipif mysql # not compatible
query I rowsort label-5372
SELECT COUNT ( * ) - - 42
----
43

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

query II rowsort
SELECT 38 AS col1, + 25 AS col2
----
38
25

query I rowsort
SELECT 79 * + 87 + - 87 * + 62 + + + 30 * + - ( + + 4 )
----
1359

query II rowsort
SELECT ALL - 73 AS col0, - 46
----
-73
-46

query I rowsort
SELECT 9 * + 77 * + + 58 col2
----
40194

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT 35 * - 4 / + - ( + CASE COUNT( * ) WHEN + 98 * - 53 + COUNT( * ) THEN + MAX( DISTINCT + 88 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT 35 * - 4 / + - ( + CASE COUNT ( * ) WHEN + 98 * - 53 + COUNT ( * ) THEN + MAX ( DISTINCT + 88 ) END )
----
NULL

query I rowsort
SELECT ALL 13 + + 54
----
67

query I rowsort
SELECT ALL - 63 * + + 81 AS col0
----
-5103

query II rowsort
SELECT 1, 66 * 13 AS col1
----
1
858

query II rowsort
SELECT ALL - 28 AS col1, + ( 30 ) AS col0
----
-28
30

query I rowsort
SELECT DISTINCT - 94 + + 75 + - + 31
----
-50

query I rowsort
SELECT DISTINCT + 30 * - 81 AS col1
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT DISTINCT 45 - - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT 45 - - COUNT ( * ) AS col0
----
46

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

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

query II rowsort
SELECT ALL 15 AS col1, - ( - - 70 ) * - 5 + - 6
----
15
344

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

query I rowsort
SELECT ALL - NULLIF ( - 17, + 62 ) col1
----
17

query II rowsort
SELECT ( - 19 ) + - 3 AS col1, - 87
----
-22
-87

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

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

query I rowsort
SELECT 33 + + - 5
----
28

query I rowsort
SELECT 63 * 71
----
4473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5394
SELECT + ( + 22 ) * - CAST( + CASE - SUM( ALL + 53 ) WHEN + ( - + CAST( + 58 AS DECIMAL ) ) + + - 51 - - AVG ( - - 28 ) THEN - 88 ELSE - - 0 + 12 END AS SIGNED ) AS col0
----
-264

skipif mysql # not compatible
query I rowsort label-5394
SELECT + ( + 22 ) * - CAST ( + CASE - SUM ( ALL + 53 ) WHEN + ( - + CAST ( + 58 AS REAL ) ) + + - 51 - - AVG ( - - 28 ) THEN - 88 ELSE - - 0 + 12 END AS INTEGER ) AS col0
----
-264

query II rowsort
SELECT ALL 89, 93 AS col0
----
89
93

query I rowsort
SELECT - 26 - + 47 * - 4
----
162

query II rowsort
SELECT ALL - - ( + - 25 ) * + ( + 87 ), - 61 AS col0
----
-2175
-61

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

skipif mysql # not compatible
query I rowsort label-5398
SELECT 56 + 34 + 0 * - - COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL COUNT( - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL COUNT ( - 68 )
----
1

query II rowsort
SELECT 88 + - 70, + 4 AS col1
----
18
4

query I rowsort
SELECT ( + - 28 ) + ( - 94 ) * - 54
----
5048

onlyif mysql # aggregate syntax: 
query II rowsort label-5402
SELECT 97 * + 27 AS col2, + COUNT( * ) AS col0
----
2619
1

skipif mysql # not compatible
query II rowsort label-5402
SELECT 97 * + 27 AS col2, + COUNT ( * ) AS col0
----
2619
1

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

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

query I rowsort
SELECT ALL + 82 + 18
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5405
SELECT + MAX( ALL 11 ) DIV - - 94 + + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5405
SELECT + MAX ( ALL 11 ) / - - 94 + + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 98 * - 73 * 73 - + 80
----
522162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5407
SELECT DISTINCT - CAST( - 44 AS SIGNED ), 9 + + - COUNT( * ) * 3 * MAX( - 63 ) AS col2, 7 AS col1
----
44
198
7

skipif mysql # not compatible
query III rowsort label-5407
SELECT DISTINCT - CAST ( - 44 AS INTEGER ), 9 + + - COUNT ( * ) * 3 * MAX ( - 63 ) AS col2, 7 AS col1
----
44
198
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT DISTINCT 86 + - ( + MAX( - 69 ) ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT 86 + - ( + MAX ( - 69 ) ) AS col0
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5409
SELECT ALL + 83 + - 11 AS col1, CAST( NULL AS SIGNED ) - - 14 + CAST( NULL AS SIGNED ) * + CASE - + 84 WHEN COALESCE ( - COUNT( * ), - COUNT( * ) + - - CAST( NULL AS SIGNED ) ) THEN + 24 * - COUNT( * ) ELSE 6 * 58 * - - 44 END
----
72
NULL

skipif mysql # not compatible
query II rowsort label-5409
SELECT ALL + 83 + - 11 AS col1, CAST ( NULL AS INTEGER ) - - 14 + CAST ( NULL AS INTEGER ) * + CASE - + 84 WHEN COALESCE ( - COUNT ( * ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) ) THEN + 24 * - COUNT ( * ) ELSE 6 * 58 * - - 44 END
----
72
NULL

query I rowsort
SELECT - 41 * + 77 + 6
----
-3151

query I rowsort
SELECT ALL + 10 + - + 26
----
-16

query I rowsort
SELECT 83 * ( + 64 ) + 67
----
5379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5413
SELECT DISTINCT + MAX( DISTINCT + - 60 ) DIV 7
----
-8

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + MAX ( DISTINCT + - 60 ) / 7
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL + CASE + COALESCE ( 0, - - 66 - + - 58 ) WHEN - 72 THEN NULL WHEN + 88 THEN - - 10 + - - 49 * 36 * 16 WHEN COUNT( * ) THEN NULL ELSE NULL END + + MIN( - 76 ) + - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + CASE + COALESCE ( 0, - - 66 - + - 58 ) WHEN - 72 THEN NULL WHEN + 88 THEN - - 10 + - - 49 * 36 * 16 WHEN COUNT ( * ) THEN NULL ELSE NULL END + + MIN ( - 76 ) + - - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT 3 * - - SUM( ALL - 25 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5415
SELECT 3 * - - SUM ( ALL - 25 ) AS col2
----
-75

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

skipif mysql # not compatible
query I rowsort label-5416
SELECT COUNT ( * ) * - 47
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT + 66 + 24 + + 5 * - 97 * - - COUNT( 12 ) * + 47 * + 69
----
-1572765

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + 66 + 24 + + 5 * - 97 * - - COUNT ( 12 ) * + 47 * + 69
----
-1572765

query I rowsort
SELECT ALL + - 25 + - - ( + - 81 )
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT 53 * + ( - NULLIF ( - COALESCE ( 15, 53 * - 53 + - 68, - ( + 65 ) * 90 * - ( + 10 ) - 69 + COUNT( * ) + - - 27 ), 35 ) )
----
795

skipif mysql # not compatible
query I rowsort label-5419
SELECT 53 * + ( - NULLIF ( - COALESCE ( 15, 53 * - 53 + - 68, - ( + 65 ) * 90 * - ( + 10 ) - 69 + COUNT ( * ) + - - 27 ), 35 ) )
----
795

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL - NULLIF ( + + 31, + COALESCE ( 17, 29 ) * ( - 53 ) * - 10 * + - 41 * + + CASE WHEN NOT 95 IS NULL THEN + COUNT( * ) + + + 50 ELSE NULL END + MAX( 97 ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL - NULLIF ( + + 31, + COALESCE ( 17, 29 ) * ( - 53 ) * - 10 * + - 41 * + + CASE WHEN NOT 95 IS NULL THEN + COUNT ( * ) + + + 50 ELSE NULL END + MAX ( 97 ) ) AS col1
----
-31

query I rowsort
SELECT DISTINCT + 65 - + 99 * - 67
----
6698

query II rowsort
SELECT COALESCE ( - 71, - 45 ) + - + 70 AS col2, - 51
----
-141
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5424
SELECT + 7 + + - 34 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT + 7 + + - 34 - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - - NULLIF ( - 98, - + 46 * + + 13 ), 62 AS col1
----
-98
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT ALL CAST( - + CAST( + + 5 AS SIGNED ) AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL CAST ( - + CAST ( + + 5 AS INTEGER ) AS INTEGER ) AS col2
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT + 65 - 82 * + 12 + + + MAX( 64 ) - + 95 + - 18 * COUNT( * ) + - 46 col2
----
-1014

skipif mysql # not compatible
query I rowsort label-5428
SELECT + 65 - 82 * + 12 + + + MAX ( 64 ) - + 95 + - 18 * COUNT ( * ) + - 46 col2
----
-1014

query II rowsort
SELECT ( 62 ) AS col2, + 77
----
62
77

query I rowsort
SELECT CASE - 20 WHEN + 26 THEN + AVG ( DISTINCT + 98 ) ELSE NULL END * + - NULLIF ( + 36, - 65 ) + - 74 + - 54 + - 89 + - + CASE ( - 82 ) WHEN - ( AVG ( DISTINCT + 98 ) ) THEN 81 ELSE NULL END + AVG ( 50 ) + + - 17 * + - 50 - - - 16 + + + COALESCE ( - 45, 34 ) AS col2
----
NULL

query I rowsort
SELECT + 48 * + 70 * + 50 col0
----
168000

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT 1 * + MIN( ALL 64 )
----
64

skipif mysql # not compatible
query I rowsort label-5432
SELECT 1 * + MIN ( ALL 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT - 58 * + 45 * + COUNT( * ) col0
----
-2610

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT - 58 * + 45 * + COUNT ( * ) col0
----
-2610

query I rowsort
SELECT + - 19 + + 43 AS col2
----
24

query I rowsort
SELECT DISTINCT ( + 93 ) * + + 29 AS col0
----
2697

query I rowsort
SELECT ALL 87 + - 68 AS col0
----
19

query I rowsort
SELECT + 99 + - 69
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT 69, CASE + MIN( + ( 25 ) ) WHEN + 29 * + + 61 * + + COUNT( * ) THEN NULL ELSE + 52 * + 55 END AS col2
----
69
2860

skipif mysql # not compatible
query II rowsort label-5438
SELECT 69, CASE + MIN ( + ( 25 ) ) WHEN + 29 * + + 61 * + + COUNT ( * ) THEN NULL ELSE + 52 * + 55 END AS col2
----
69
2860

query I rowsort
SELECT DISTINCT 92 + + 4 * - 34 col0
----
-44

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

onlyif mysql # aggregate syntax: 
query III rowsort label-5441
SELECT DISTINCT 42 AS col0, 55 + - COALESCE ( - COUNT( * ), - 27 * 20 ) AS col1, + 64 AS col1
----
42
56
64

skipif mysql # not compatible
query III rowsort label-5441
SELECT DISTINCT 42 AS col0, 55 + - COALESCE ( - COUNT ( * ), - 27 * 20 ) AS col1, + 64 AS col1
----
42
56
64

query I rowsort
SELECT - COALESCE ( + 26, + 17 )
----
-26

query I rowsort
SELECT ALL - 13 * 75 * - 20 + 9
----
19509

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT + NULLIF ( + 99, - ( - + CASE - 26 WHEN - NULLIF ( - 33, 97 ) / + + 88 - + 42 THEN NULL WHEN + 71 THEN - 36 ELSE + 20 END ) * - - COALESCE ( + COUNT( * ), - 40 ) + + 35 + 5 / - - 3 * + COALESCE ( 82, 5, - + 36 ) * - 52 * + - ( + - 68 ) * - 84 - + - 95 / + - COUNT( * ) * + 98 + - COUNT( * ) - COUNT( * ) )
----
99

skipif mysql # not compatible
query I rowsort label-5444
SELECT + NULLIF ( + 99, - ( - + CASE - 26 WHEN - NULLIF ( - 33, 97 ) / + + 88 - + 42 THEN NULL WHEN + 71 THEN - 36 ELSE + 20 END ) * - - COALESCE ( + COUNT ( * ), - 40 ) + + 35 + 5 / - - 3 * + COALESCE ( 82, 5, - + 36 ) * - 52 * + - ( + - 68 ) * - 84 - + - 95 / + - COUNT ( * ) * + 98 + - COUNT ( * ) - COUNT ( * ) )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT CASE - MIN( DISTINCT + 50 ) WHEN + COUNT( * ) THEN NULL WHEN + - 17 THEN - - 1 END, + 81 * 9 * COUNT( * ) + COUNT( * ) AS col0
----
NULL
730

skipif mysql # not compatible
query II rowsort label-5445
SELECT CASE - MIN ( DISTINCT + 50 ) WHEN + COUNT ( * ) THEN NULL WHEN + - 17 THEN - - 1 END, + 81 * 9 * COUNT ( * ) + COUNT ( * ) AS col0
----
NULL
730

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

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

query I rowsort
SELECT - 91 * + 33 * - 47 AS col1
----
141141

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT + 0 * 32 * + 29 - - - COUNT( * ) + - + 56 * - - 18 + - 21
----
-1030

skipif mysql # not compatible
query I rowsort label-5448
SELECT + 0 * 32 * + 29 - - - COUNT ( * ) + - + 56 * - - 18 + - 21
----
-1030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5449
SELECT COALESCE ( + - COUNT( + 85 ), + 1 * - - 79, 95 * 53 * + 92 * - 48 * COUNT( * ) DIV + + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-5449
SELECT COALESCE ( + - COUNT ( + 85 ), + 1 * - - 79, 95 * 53 * + 92 * - 48 * COUNT ( * ) / + + 3 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5450
SELECT 15 DIV - 68 - NULLIF ( 34, - 23 ) + + 78 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5450
SELECT 15 / - 68 - NULLIF ( 34, - 23 ) + + 78 AS col0
----
44

query II rowsort
SELECT + 12, + ( - 80 ) + - 66 AS col0
----
12
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT + NULLIF ( CASE - - COUNT( * ) WHEN 43 * + + 43 + - + 84 + + 90 + + 67 * - 62 THEN - - 15 ELSE - + ( + 97 ) END, + 30 / + ( + ( + 51 ) ) ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-5452
SELECT + NULLIF ( CASE - - COUNT ( * ) WHEN 43 * + + 43 + - + 84 + + 90 + + 67 * - 62 THEN - - 15 ELSE - + ( + 97 ) END, + 30 / + ( + ( + 51 ) ) ) col2
----
-97

query I rowsort
SELECT + 55 + + 39 AS col1
----
94

query I rowsort
SELECT CASE 64 WHEN - - 97 + 79 THEN 20 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5455
SELECT NULLIF ( - 38, + 16 ), 9 DIV - - 67 AS col2
----
-38
0

skipif mysql # not compatible
query II rowsort label-5455
SELECT NULLIF ( - 38, + 16 ), 9 / - - 67 AS col2
----
-38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - + COUNT( * ) * - + 99 - - - 22
----
77

skipif mysql # not compatible
query I rowsort label-5456
SELECT - + COUNT ( * ) * - + 99 - - - 22
----
77

query II rowsort
SELECT ALL + + 13 AS col1, 92 AS col0
----
13
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5458
SELECT - - 67 - - CAST( - - 1 AS DECIMAL ) - + - CASE - 9 WHEN + 29 * - - MAX( DISTINCT - - ( + ( + - 96 ) ) ) THEN 10 END + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT - - 67 - - CAST ( - - 1 AS REAL ) - + - CASE - 9 WHEN + 29 * - - MAX ( DISTINCT - - ( + ( + - 96 ) ) ) THEN 10 END + 25 AS col0
----
NULL

query II rowsort
SELECT 92 AS col1, - 29 + - + 79 + 69
----
92
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT + - 81 DIV + - 55
----
1

skipif mysql # not compatible
query I rowsort label-5460
SELECT + - 81 / + - 55
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT - 5 * + + 67 * - + 57 * COUNT( ALL - CASE WHEN 27 IS NULL THEN NULL ELSE + - 21 - 73 END ) AS col1
----
19095

skipif mysql # not compatible
query I rowsort label-5461
SELECT - 5 * + + 67 * - + 57 * COUNT ( ALL - CASE WHEN 27 IS NULL THEN NULL ELSE + - 21 - 73 END ) AS col1
----
19095

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT + 10 * - COUNT( * ) + - 17
----
-27

skipif mysql # not compatible
query I rowsort label-5462
SELECT + 10 * - COUNT ( * ) + - 17
----
-27

query I rowsort
SELECT DISTINCT + + 98 col2
----
98

query I rowsort
SELECT ALL + 20 * + 37 AS col1
----
740

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - 72 * SUM( DISTINCT 35 ) - COALESCE ( 96, + - 29 ) + - COALESCE ( - - COUNT( * ), - COUNT( * ) + + 84, + + 47, - + 98 * + + COUNT( * ) + + 60 + + - 69 + ( + + 10 ) ) AS col1
----
-2617

skipif mysql # not compatible
query I rowsort label-5465
SELECT - 72 * SUM ( DISTINCT 35 ) - COALESCE ( 96, + - 29 ) + - COALESCE ( - - COUNT ( * ), - COUNT ( * ) + + 84, + + 47, - + 98 * + + COUNT ( * ) + + 60 + + - 69 + ( + + 10 ) ) AS col1
----
-2617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5466
SELECT - + 40 * 58 DIV COUNT( * ) * + 72 AS col1
----
-167040

skipif mysql # not compatible
query I rowsort label-5466
SELECT - + 40 * 58 / COUNT ( * ) * + 72 AS col1
----
-167040

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL - - COUNT( * ) * + 70 + + 97 * - 76
----
-7302

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - - COUNT ( * ) * + 70 + + 97 * - 76
----
-7302

query I rowsort
SELECT - 61 + 98 * + 10
----
919

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5470
SELECT + 74 AS col0, - 62 * - COUNT( * ) - + 3 AS col2
----
74
59

skipif mysql # not compatible
query II rowsort label-5470
SELECT + 74 AS col0, - 62 * - COUNT ( * ) - + 3 AS col2
----
74
59

query I rowsort
SELECT ALL - - 14 + + NULLIF ( - 27, 81 ) + 61
----
48

query I rowsort
SELECT - ( - 77 ) + 66 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT + 75 * 12 * - ( + COALESCE ( + + 41, 6 + 9 ) ) * - ( + 57 ) * + - CASE - + 40 WHEN - 27 THEN NULL WHEN - + COUNT( * ) THEN - - MIN( DISTINCT + 27 ) ELSE NULL END * - AVG ( 3 ) * 59 / + 37 * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT + 75 * 12 * - ( + COALESCE ( + + 41, 6 + 9 ) ) * - ( + 57 ) * + - CASE - + 40 WHEN - 27 THEN NULL WHEN - + COUNT ( * ) THEN - - MIN ( DISTINCT + 27 ) ELSE NULL END * - AVG ( 3 ) * 59 / + 37 * 14 AS col2
----
NULL

query I rowsort
SELECT ALL - 82 + 77
----
-5

query I rowsort
SELECT DISTINCT + 28 + - 7 + 54
----
75

query II rowsort
SELECT 49 AS col1, + 83
----
49
83

query I rowsort
SELECT ALL ( + 32 ) + 36 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5478
SELECT ALL CAST( NULL AS SIGNED ) AS col0, MAX( 2 ) * COUNT( DISTINCT + - 16 ) * + - 40 AS col2
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-5478
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, MAX ( 2 ) * COUNT ( DISTINCT + - 16 ) * + - 40 AS col2
----
NULL
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5479
SELECT + 15 + - CAST( NULL AS SIGNED ) / 8 / + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT + 15 + - CAST ( NULL AS INTEGER ) / 8 / + 64
----
NULL

query II rowsort
SELECT - 46 AS col0, + 18
----
-46
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5481
SELECT DISTINCT 48 AS col1, + 82 * - - 82 * - - 94 * - 44 + 15 + - COUNT( * ) DIV + 57 * + 74 AS col1, + - 68
----
48
-27810449
-68

skipif mysql # not compatible
query III rowsort label-5481
SELECT DISTINCT 48 AS col1, + 82 * - - 82 * - - 94 * - 44 + 15 + - COUNT ( * ) / + 57 * + 74 AS col1, + - 68
----
48
-27810449
-68

query I rowsort
SELECT ALL ( 34 ) + + 80
----
114

query I rowsort
SELECT - 3 + - 37 AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5484
SELECT + 68 + + NULLIF ( + 51, + CAST( - COUNT( * ) AS SIGNED ) ) + - - 12 + + - 97 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5484
SELECT + 68 + + NULLIF ( + 51, + CAST ( - COUNT ( * ) AS INTEGER ) ) + - - 12 + + - 97 AS col1
----
34

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

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

query I rowsort
SELECT 20 / - 44 + CASE ( + + ( - + 34 ) ) WHEN + - 29 THEN - 60 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT MIN( + + 35 ) * + 38 + + + 15
----
1345

skipif mysql # not compatible
query I rowsort label-5487
SELECT MIN ( + + 35 ) * + 38 + + + 15
----
1345

query I rowsort
SELECT + 73 * 72
----
5256

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT DISTINCT 85 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT 85 / 50
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT DISTINCT + 82 DIV - 94 * - 94 - - - CASE COALESCE ( + + 90, + 50 ) WHEN + - 76 THEN NULLIF ( - 85, + - ( 95 ) ) WHEN + 71 * + - 19 THEN + 26 ELSE + + 74 + - 81 END AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT + 82 / - 94 * - 94 - - - CASE COALESCE ( + + 90, + 50 ) WHEN + - 76 THEN NULLIF ( - 85, + - ( 95 ) ) WHEN + 71 * + - 19 THEN + 26 ELSE + + 74 + - 81 END AS col0
----
7

query II rowsort
SELECT ALL + 99 AS col0, 42 * - 81
----
99
-3402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5492
SELECT + 25 + + COUNT( * ) DIV + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5492
SELECT + 25 + + COUNT ( * ) / + COUNT ( * ) AS col1
----
26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5494
SELECT - 95 * + - 51 + + 14 DIV - - SUM( + + 8 )
----
4846

skipif mysql # not compatible
query I rowsort label-5494
SELECT - 95 * + - 51 + + 14 / - - SUM ( + + 8 )
----
4846

query II rowsort
SELECT - 22, 58 AS col0
----
-22
58

query I rowsort
SELECT + + 93 + - NULLIF ( - - 84, - 22 ) AS col0
----
9

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

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

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

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

query I rowsort
SELECT + + NULLIF ( 35, + 36 * - - NULLIF ( + + 51, - 38 ) + + 95 - + ( + 37 ) ) AS col2
----
35

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

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL + + CAST ( + 89 AS INTEGER ) AS col1
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT + ( + MAX( - 54 ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5502
SELECT + ( + MAX ( - 54 ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL - COUNT( * ) * 63 + 78 col0
----
15

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL - COUNT ( * ) * 63 + 78 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT - COUNT( * ) * + 26 + 90 + - + 65 * 88
----
-5656

skipif mysql # not compatible
query I rowsort label-5504
SELECT - COUNT ( * ) * + 26 + 90 + - + 65 * 88
----
-5656

onlyif mysql # DIV for integer division: 
query II rowsort label-5505
SELECT ALL - - 53 AS col0, COALESCE ( - 43, + - 15 * 55 ) DIV + 20 + 95
----
53
93

skipif mysql # not compatible
query II rowsort label-5505
SELECT ALL - - 53 AS col0, COALESCE ( - 43, + - 15 * 55 ) / + 20 + 95
----
53
93

query I rowsort
SELECT + 45 * + 45
----
2025

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

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

query II rowsort
SELECT 43 AS col1, - 74 AS col0
----
43
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT + 72 DIV - 10
----
-7

skipif mysql # not compatible
query I rowsort label-5509
SELECT + 72 / - 10
----
-7

query II rowsort
SELECT ALL 41 AS col2, + 68 + + - 58 AS col1
----
41
10

query I rowsort
SELECT DISTINCT - CASE 74 WHEN - ( 19 ) THEN + + 17 END * - 0 col1
----
NULL

query II rowsort
SELECT ALL - 51 + - 12 - + 92, - 93 * - 20 col0
----
-155
1860

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5513
SELECT 3 DIV ( - + 4 ) AS col0, ( SUM( - 66 ) ) * 23 + - 53
----
0
-1571

skipif mysql # not compatible
query II rowsort label-5513
SELECT 3 / ( - + 4 ) AS col0, ( SUM ( - 66 ) ) * 23 + - 53
----
0
-1571

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT - SUM( DISTINCT 57 ) * 87 AS col0
----
-4959

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - SUM ( DISTINCT 57 ) * 87 AS col0
----
-4959

query I rowsort
SELECT ALL 44 * + 98 * + 91
----
392392

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT 79 - + - COUNT( * ) + ( 64 ) col1
----
144

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT 79 - + - COUNT ( * ) + ( 64 ) col1
----
144

query I rowsort
SELECT DISTINCT - ( 7 ) * - + ( + 10 ) AS col1
----
70

query I rowsort
SELECT 18 * - 76
----
-1368

query I rowsort
SELECT 53 * - 70 * 42
----
-155820

query I rowsort
SELECT - - 69 * - 79 - + 2
----
-5453

query I rowsort
SELECT + 18 + + 8 AS col0
----
26

query I rowsort
SELECT ALL + 84 * 75 - - 88
----
6388

query I rowsort
SELECT 7 * - 49 * - 21 AS col1
----
7203

query I rowsort
SELECT DISTINCT ( - 57 ) + - 69 AS col0
----
-126

query II rowsort
SELECT + + 68 * 14 + 61 - + + 23 * + 10 * - 68 + 76 AS col1, - 6 AS col2
----
16729
-6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5527
SELECT + MAX( - 47 ) AS col2, 46
----
-47
46

skipif mysql # not compatible
query II rowsort label-5527
SELECT + MAX ( - 47 ) AS col2, 46
----
-47
46

query I rowsort
SELECT + 43 * + 59
----
2537

onlyif mysql # aggregate syntax: 
query II rowsort label-5529
SELECT + - CASE + 53 WHEN - COUNT( * ) * + 74 THEN NULL WHEN + 87 - 84 * + - 16 * + 8 THEN NULL WHEN NULLIF ( + 53, + 7 * + 22 * + 26 + - - 95 ) * - COALESCE ( - 47, - - 65 * + + 53 ) * 94 THEN 78 END AS col0, + 37 AS col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-5529
SELECT + - CASE + 53 WHEN - COUNT ( * ) * + 74 THEN NULL WHEN + 87 - 84 * + - 16 * + 8 THEN NULL WHEN NULLIF ( + 53, + 7 * + 22 * + 26 + - - 95 ) * - COALESCE ( - 47, - - 65 * + + 53 ) * 94 THEN 78 END AS col0, + 37 AS col0
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL + 7 + + + ( + COUNT( * ) ) + - ( + + 77 ) + 0 * - COUNT( ALL + - 57 ) * 68 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL + 7 + + + ( + COUNT ( * ) ) + - ( + + 77 ) + 0 * - COUNT ( ALL + - 57 ) * 68 AS col1
----
-69

query I rowsort
SELECT ALL - 85 + - - 20
----
-65

query II rowsort
SELECT ALL + 27 + + 35 AS col1, + 85 AS col0
----
62
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT 47 * + - MIN( DISTINCT - 66 ) + + AVG ( + CASE + ( + - 38 ) WHEN + 85 - - 24 * - 22 THEN NULL WHEN + + 65 THEN + ( - - 37 ) END ) * - + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT 47 * + - MIN ( DISTINCT - 66 ) + + AVG ( + CASE + ( + - 38 ) WHEN + 85 - - 24 * - 22 THEN NULL WHEN + + 65 THEN + ( - - 37 ) END ) * - + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5534
SELECT 74 col2, - ( - - CASE WHEN ( + 34 ) NOT BETWEEN NULL AND + 52 THEN NULL WHEN - 74 IS NULL THEN + 23 ELSE 14 END ) * + 43 + + 60 + + SUM( DISTINCT 91 ) + + 68 AS col1, + MAX( ALL - 83 ) + 1 + + + 38
----
74
-383
-44

skipif mysql # not compatible
query III rowsort label-5534
SELECT 74 col2, - ( - - CASE WHEN ( + 34 ) NOT BETWEEN NULL AND + 52 THEN NULL WHEN - 74 IS NULL THEN + 23 ELSE 14 END ) * + 43 + + 60 + + SUM ( DISTINCT 91 ) + + 68 AS col1, + MAX ( ALL - 83 ) + 1 + + + 38
----
74
-383
-44

query II rowsort
SELECT 9 AS col1, 26 + + - 48 AS col0
----
9
-22

query I rowsort
SELECT ( + + 41 ) + 7 * - 86 AS col2
----
-561

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT 32 * + + COUNT( * ) col1
----
32

skipif mysql # not compatible
query I rowsort label-5537
SELECT 32 * + + COUNT ( * ) col1
----
32

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

skipif mysql # not compatible
query I rowsort label-5538
SELECT 38 - 96 / - 4 + COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5539
SELECT ALL - ( - - COUNT( * ) ) DIV - NULLIF ( - + 72, + + 79 )
----
0

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - ( - - COUNT ( * ) ) / - NULLIF ( - + 72, + + 79 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5540
SELECT DISTINCT 21 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT 21 / + 37
----
0

query I rowsort
SELECT 22 + + 46 + 45 AS col0
----
113

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT 28 + 2 * - 45 / - 52 + - + CASE - 60 WHEN - COALESCE ( + 45, + + 2 ) * - 53 THEN NULL ELSE - + 88 / - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT 28 + 2 * - 45 / - 52 + - + CASE - 60 WHEN - COALESCE ( + 45, + + 2 ) * - 53 THEN NULL ELSE - + 88 / - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT 38 + ( 12 ) + - 99 col0
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-5545
SELECT ( - 0 ) DIV + + 16 AS col2, 22 AS col1
----
0
22

skipif mysql # not compatible
query II rowsort label-5545
SELECT ( - 0 ) / + + 16 AS col2, 22 AS col1
----
0
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5546
SELECT 54 DIV 65 col0
----
0

skipif mysql # not compatible
query I rowsort label-5546
SELECT 54 / 65 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT 57 + - + 34 - + 47 - 86 / - 37 / + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + 45 / 50 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT 57 + - + 34 - + 47 - 86 / - 37 / + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + 45 / 50 * + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT DISTINCT COUNT( - 58 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT COUNT ( - 58 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5549
SELECT ALL COUNT( * ) AS col0, + NULLIF ( - COUNT( * ), 82 ) * 76
----
1
-76

skipif mysql # not compatible
query II rowsort label-5549
SELECT ALL COUNT ( * ) AS col0, + NULLIF ( - COUNT ( * ), 82 ) * 76
----
1
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT COUNT( * ) + + 77 * - 49
----
-3772

skipif mysql # not compatible
query I rowsort label-5550
SELECT COUNT ( * ) + + 77 * - 49
----
-3772

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL 12 * - 34 + 19 * + 45 + COUNT( * ) AS col0
----
448

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL 12 * - 34 + 19 * + 45 + COUNT ( * ) AS col0
----
448

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5553
SELECT ALL - - CAST( - SUM( ALL - 20 ) AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL - - CAST ( - SUM ( ALL - 20 ) AS INTEGER )
----
20

query I rowsort
SELECT DISTINCT + ( - 13 ) * + 68
----
-884

query I rowsort
SELECT - 52 + - 46
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT DISTINCT 70 * - 86 + 30 col2, 36 + + + MIN( ALL - + 99 )
----
-5990
-63

skipif mysql # not compatible
query II rowsort label-5556
SELECT DISTINCT 70 * - 86 + 30 col2, 36 + + + MIN ( ALL - + 99 )
----
-5990
-63

query I rowsort
SELECT ALL - 50 * - 73 + + 45 AS col2
----
3695

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT + - NULLIF ( 19, - + 99 ) * + - CAST( - 74 AS SIGNED ) col1
----
-1406

skipif mysql # not compatible
query I rowsort label-5559
SELECT + - NULLIF ( 19, - + 99 ) * + - CAST ( - 74 AS INTEGER ) col1
----
-1406

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + - CASE + + SUM( ALL - 23 ) WHEN 55 + - 83 THEN NULL WHEN 51 THEN NULLIF ( + + 92, + + COUNT( * ) + + - CASE - - NULLIF ( + 59, + 59 ) WHEN + COUNT( * ) + NULLIF ( + CASE COUNT( * ) WHEN - 81 THEN NULL WHEN - NULLIF ( - ( + 52 ), - 71 * - 75 ) THEN NULL ELSE 86 - + 77 * AVG ( ALL 47 ) - 85 * + 46 END, 76 / - - 55 * + 19 * + 55 - - COALESCE ( 38, + ( 97 ) ) ) THEN - 16 END ) * - COUNT( + 97 ) * + 74 / 63 / 74 - - 18 WHEN + 87 THEN NULL WHEN 69 * 45 + - 23 THEN NULL END * 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + - CASE + + SUM ( ALL - 23 ) WHEN 55 + - 83 THEN NULL WHEN 51 THEN NULLIF ( + + 92, + + COUNT ( * ) + + - CASE - - NULLIF ( + 59, + 59 ) WHEN + COUNT ( * ) + NULLIF ( + CASE COUNT ( * ) WHEN - 81 THEN NULL WHEN - NULLIF ( - ( + 52 ), - 71 * - 75 ) THEN NULL ELSE 86 - + 77 * AVG ( ALL 47 ) - 85 * + 46 END, 76 / - - 55 * + 19 * + 55 - - COALESCE ( 38, + ( 97 ) ) ) THEN - 16 END ) * - COUNT ( + 97 ) * + 74 / 63 / 74 - - 18 WHEN + 87 THEN NULL WHEN 69 * 45 + - 23 THEN NULL END * 69 col0
----
NULL

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

query II rowsort
SELECT - 15, 49 AS col1
----
-15
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT COUNT( * ) * - - COUNT( * ) - + 29 + 26
----
-2

skipif mysql # not compatible
query I rowsort label-5563
SELECT COUNT ( * ) * - - COUNT ( * ) - + 29 + 26
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL + 65 * - MAX( + + 94 )
----
-6110

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + 65 * - MAX ( + + 94 )
----
-6110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5565
SELECT + 16 + + + CAST( ( + COUNT( * ) ) AS SIGNED ) DIV 67 * 27 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5565
SELECT + 16 + + + CAST ( ( + COUNT ( * ) ) AS INTEGER ) / 67 * 27 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL COUNT( * ) / + CASE - 91 WHEN - - 92 * - + 2 THEN 14 WHEN - 27 + 62 / + 70 * + 94 * 58 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL COUNT ( * ) / + CASE - 91 WHEN - - 92 * - + 2 THEN 14 WHEN - 27 + 62 / + 70 * + 94 * 58 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 92 + 84
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5568
SELECT COUNT( DISTINCT CAST( 93 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5568
SELECT COUNT ( DISTINCT CAST ( 93 AS INTEGER ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL MIN( + + 51 ) * 61 + + - CASE - - CAST( + 2 AS SIGNED ) WHEN NULLIF ( NULLIF ( + 59, - + 95 ), - + SUM( + 32 ) ) * + CASE 75 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 68 THEN 83 END THEN 3 + ( - 42 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL MIN ( + + 51 ) * 61 + + - CASE - - CAST ( + 2 AS INTEGER ) WHEN NULLIF ( NULLIF ( + 59, - + 95 ), - + SUM ( + 32 ) ) * + CASE 75 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 68 THEN 83 END THEN 3 + ( - 42 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 80 * + - 35 AS col0
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL COUNT( - 77 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL COUNT ( - 77 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT + 9 * - + CASE + MIN( DISTINCT - 90 ) WHEN + + COALESCE ( + MIN( - 85 ), + COUNT( * ) * + 27 ) THEN - - 96 + - + 28 END / + 22 + - 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT + 9 * - + CASE + MIN ( DISTINCT - 90 ) WHEN + + COALESCE ( + MIN ( - 85 ), + COUNT ( * ) * + 27 ) THEN - - 96 + - + 28 END / + 22 + - 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL COUNT( * ) * - - 46 * - + 55
----
-2530

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL COUNT ( * ) * - - 46 * - + 55
----
-2530

query II rowsort
SELECT + 73 * + - COALESCE ( + 44, + - 94 + - - 6 ) col1, 97
----
-3212
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT - SUM( ALL 25 ) * COALESCE ( + 68, 3 + - 56, - 27 * 9 * + - 99 + + + 44 - - - 1 )
----
-1700

skipif mysql # not compatible
query I rowsort label-5575
SELECT - SUM ( ALL 25 ) * COALESCE ( + 68, 3 + - 56, - 27 * 9 * + - 99 + + + 44 - - - 1 )
----
-1700

query II rowsort
SELECT + 90 - - 63, 76 * + 66 + + + 66 * + 19 * - 19 col1
----
153
-18810

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

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT COUNT ( - + 41 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5578
SELECT ALL 61 + - 15 AS col1, + CAST( + + ( - COUNT( * ) ) AS SIGNED ) * - COUNT( * ) AS col1
----
46
1

skipif mysql # not compatible
query II rowsort label-5578
SELECT ALL 61 + - 15 AS col1, + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) * - COUNT ( * ) AS col1
----
46
1

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

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

query I rowsort
SELECT ALL + 90 * 42
----
3780

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5581
SELECT DISTINCT + ( + 81 ) + - 26 * - 6 AS col0, - CASE - 46 WHEN - - 13 * + 88 THEN NULL WHEN - 10 THEN - 69 + - 72 WHEN + ( 23 ) THEN NULL END + - 91 + + - CASE - COUNT( * ) WHEN + + CASE 70 WHEN - COUNT( * ) THEN NULL WHEN ( + - 12 ) THEN NULL WHEN CAST( NULL AS DECIMAL ) * 49 + - 78 THEN NULL WHEN + 78 THEN 27 + AVG ( + ( - 76 ) ) END THEN NULL WHEN + 98 + 31 THEN - + 78 END AS col1
----
237
NULL

skipif mysql # not compatible
query II rowsort label-5581
SELECT DISTINCT + ( + 81 ) + - 26 * - 6 AS col0, - CASE - 46 WHEN - - 13 * + 88 THEN NULL WHEN - 10 THEN - 69 + - 72 WHEN + ( 23 ) THEN NULL END + - 91 + + - CASE - COUNT ( * ) WHEN + + CASE 70 WHEN - COUNT ( * ) THEN NULL WHEN ( + - 12 ) THEN NULL WHEN CAST ( NULL AS REAL ) * 49 + - 78 THEN NULL WHEN + 78 THEN 27 + AVG ( + ( - 76 ) ) END THEN NULL WHEN + 98 + 31 THEN - + 78 END AS col1
----
237
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5582
SELECT ALL - 62 + COALESCE ( - SUM( ALL - 17 ), COUNT( * ) DIV - + 62 )
----
-45

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL - 62 + COALESCE ( - SUM ( ALL - 17 ), COUNT ( * ) / - + 62 )
----
-45

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

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

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

skipif mysql # not compatible
query I rowsort label-5584
SELECT - - COUNT ( * ) * + + MIN ( DISTINCT - 49 ) AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5585
SELECT - + 32 DIV - - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5585
SELECT - + 32 / - - 46 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5586
SELECT + 72 / COUNT( * ) * 56 + + 85 + + 60 + - - ( CAST( NULL AS DECIMAL ) ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT + 72 / COUNT ( * ) * 56 + + 85 + + 60 + - - ( CAST ( NULL AS REAL ) ) + 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5587
SELECT - SUM( ALL + 88 ) * - MIN( ALL - + 80 ) + - CAST( NULL AS SIGNED ) + - 10 - 81 AS col0, - 55
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-5587
SELECT - SUM ( ALL + 88 ) * - MIN ( ALL - + 80 ) + - CAST ( NULL AS INTEGER ) + - 10 - 81 AS col0, - 55
----
NULL
-55

query I rowsort
SELECT - 96 * ( NULLIF ( + 22, - 16 ) ) + + + 43 + + 41 AS col1
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - + CASE COUNT( * ) WHEN - 21 * + - 2 THEN NULL ELSE + COUNT( * ) END * - ( - + ( + COUNT( 10 ) ) ) + 71 + - + 75 * + 76 AS col1
----
-5630

skipif mysql # not compatible
query I rowsort label-5589
SELECT - + CASE COUNT ( * ) WHEN - 21 * + - 2 THEN NULL ELSE + COUNT ( * ) END * - ( - + ( + COUNT ( 10 ) ) ) + 71 + - + 75 * + 76 AS col1
----
-5630

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

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

query I rowsort
SELECT ALL + 66 * + 31 - - 53
----
2099

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

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

query I rowsort
SELECT - 88 * + 42 * + - 58 + + - 32
----
214336

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT CASE + 67 WHEN - 60 THEN 86 * + + COUNT( * ) + + 17 + - COUNT( * ) WHEN + 24 * - ( + 27 ) * + 69 THEN - 77 + - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT CASE + 67 WHEN - 60 THEN 86 * + + COUNT ( * ) + + 17 + - COUNT ( * ) WHEN + 24 * - ( + 27 ) * + 69 THEN - 77 + - 14 END
----
NULL

query II rowsort
SELECT ALL + 67 AS col1, + 8 * 49
----
67
392

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT DISTINCT + 38 * + - CASE ( + 56 ) WHEN - 5 THEN 14 WHEN COUNT( * ) THEN + + 42 ELSE + 23 END AS col2
----
-874

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT + 38 * + - CASE ( + 56 ) WHEN - 5 THEN 14 WHEN COUNT ( * ) THEN + + 42 ELSE + 23 END AS col2
----
-874

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

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

query I rowsort
SELECT - 57 * - - 5 col2
----
-285

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

query I rowsort
SELECT - 50 - 57 + - 78 AS col1
----
-185

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

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

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

skipif mysql # not compatible
query II rowsort label-5602
SELECT + COUNT ( * ) * + - COUNT ( * ) / - 21 AS col2, - COUNT ( * ) * + 61
----
0
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5603
SELECT ALL CAST( + ( 47 ) AS SIGNED ) AS col2, 38
----
47
38

skipif mysql # not compatible
query II rowsort label-5603
SELECT ALL CAST ( + ( 47 ) AS INTEGER ) AS col2, 38
----
47
38

query I rowsort
SELECT - 97 + + 12
----
-85

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

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL 67 / 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT - 73 DIV + ( + + 15 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5606
SELECT - 73 / + ( + + 15 ) AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5607
SELECT + 79 DIV 67
----
1

skipif mysql # not compatible
query I rowsort label-5607
SELECT + 79 / 67
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5608
SELECT - 91 + + CAST( - - CAST( + - NULLIF ( - 54, + - AVG ( 89 ) ) AS DECIMAL ) AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-5608
SELECT - 91 + + CAST ( - - CAST ( + - NULLIF ( - 54, + - AVG ( 89 ) ) AS REAL ) AS INTEGER )
----
-37

query I rowsort
SELECT ALL 61 + + 18
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT + 67 + + - CAST( - - 68 AS SIGNED ) * + - 2 AS col0
----
203

skipif mysql # not compatible
query I rowsort label-5610
SELECT + 67 + + - CAST ( - - 68 AS INTEGER ) * + - 2 AS col0
----
203

onlyif mysql # aggregate syntax: 
query II rowsort label-5611
SELECT + 43 + + + MAX( DISTINCT + - ( + 21 ) ) + 26 + + 2, 73 AS col1
----
50
73

skipif mysql # not compatible
query II rowsort label-5611
SELECT + 43 + + + MAX ( DISTINCT + - ( + 21 ) ) + 26 + + 2, 73 AS col1
----
50
73

query I rowsort
SELECT DISTINCT 13 * 59
----
767

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT + COUNT( * ) + - - 57 * + 32 AS col2
----
1825

skipif mysql # not compatible
query I rowsort label-5613
SELECT + COUNT ( * ) + - - 57 * + 32 AS col2
----
1825

query I rowsort
SELECT DISTINCT 85 + + 40 * + + 63 AS col2
----
2605

query I rowsort
SELECT 51 + 77 col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT - MAX( + - 97 ) * + + 42
----
4074

skipif mysql # not compatible
query I rowsort label-5616
SELECT - MAX ( + - 97 ) * + + 42
----
4074

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT DISTINCT NULLIF ( - - 84, COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT NULLIF ( - - 84, COUNT ( * ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5618
SELECT COUNT( * ) DIV 79 + 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5618
SELECT COUNT ( * ) / 79 + 52 AS col0
----
52

query I rowsort
SELECT + 70 + - 19 AS col2
----
51

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

skipif mysql # not compatible
query II rowsort label-5620
SELECT + COUNT ( * ) AS col1, - 91
----
1
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5621
SELECT + CASE + CAST( + 7 AS SIGNED ) WHEN - 70 THEN NULL ELSE NULLIF ( + 43, - 81 / - COUNT( * ) ) END AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5621
SELECT + CASE + CAST ( + 7 AS INTEGER ) WHEN - 70 THEN NULL ELSE NULLIF ( + 43, - 81 / - COUNT ( * ) ) END AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + 36 * + COUNT( ALL - 0 ) + + 72 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-5622
SELECT + 36 * + COUNT ( ALL - 0 ) + + 72 AS col0
----
108

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT - 86 * + 57 + - COUNT( * ) + + + 20 * + COUNT( * ) * + 36 AS col0
----
-4183

skipif mysql # not compatible
query I rowsort label-5625
SELECT - 86 * + 57 + - COUNT ( * ) + + + 20 * + COUNT ( * ) * + 36 AS col0
----
-4183

onlyif mysql # DIV for integer division: 
query II rowsort label-5626
SELECT + 24, 80 DIV + + 52 col2
----
24
1

skipif mysql # not compatible
query II rowsort label-5626
SELECT + 24, 80 / + + 52 col2
----
24
1

query I rowsort
SELECT ALL - ( + 77 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5628
SELECT DISTINCT - 90 AS col1, COUNT( * ) * 21 * - - 26 + - ( 4 )
----
-90
542

skipif mysql # not compatible
query II rowsort label-5628
SELECT DISTINCT - 90 AS col1, COUNT ( * ) * 21 * - - 26 + - ( 4 )
----
-90
542

query I rowsort
SELECT ALL - 61 + - 34
----
-95

query I rowsort
SELECT 38 + + 56 AS col1
----
94

query I rowsort
SELECT ALL - ( ( 65 ) ) AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5632
SELECT COUNT( * ) + + 41, CAST( NULL AS SIGNED ) col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-5632
SELECT COUNT ( * ) + + 41, CAST ( NULL AS INTEGER ) col0
----
42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT ALL - CAST( - 37 AS SIGNED ) + - + ( - 32 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL - CAST ( - 37 AS INTEGER ) + - + ( - 32 ) AS col0
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-5634
SELECT 63 + - 27 DIV 39 + - - 62 AS col0, 3
----
125
3

skipif mysql # not compatible
query II rowsort label-5634
SELECT 63 + - 27 / 39 + - - 62 AS col0, 3
----
125
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT 37 * + + SUM( - 61 )
----
-2257

skipif mysql # not compatible
query I rowsort label-5635
SELECT 37 * + + SUM ( - 61 )
----
-2257

query I rowsort
SELECT ALL - 89 * - - 4 * - + 89
----
31684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 84 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5638
SELECT - 14 AS col2, + 14 * - SUM( + 7 ) * + 46 AS col1
----
-14
-4508

skipif mysql # not compatible
query II rowsort label-5638
SELECT - 14 AS col2, + 14 * - SUM ( + 7 ) * + 46 AS col1
----
-14
-4508

query I rowsort
SELECT ALL - 99 + - 50
----
-149

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5641
SELECT 43 col2, - COALESCE ( 84, + - 40 * - 63, 28 + CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
43
-84

skipif mysql # not compatible
query II rowsort label-5641
SELECT 43 col2, - COALESCE ( 84, + - 40 * - 63, 28 + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
43
-84

query I rowsort
SELECT ALL 7 + - - ( - - 88 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5643
SELECT - 18 DIV + 8 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5643
SELECT - 18 / + 8 AS col0
----
-2

query I rowsort
SELECT 7 * + - 45
----
-315

query I rowsort
SELECT ALL 1 + - - 82
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - 45 * + 99 * COUNT( * )
----
-4455

skipif mysql # not compatible
query I rowsort label-5646
SELECT - 45 * + 99 * COUNT ( * )
----
-4455

onlyif mysql # DIV for integer division: 
query II rowsort label-5647
SELECT DISTINCT + 74 col2, 15 DIV 2 AS col1
----
74
7

skipif mysql # not compatible
query II rowsort label-5647
SELECT DISTINCT + 74 col2, 15 / 2 AS col1
----
74
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT 76 * + COUNT( * ) * 99 AS col2
----
7524

skipif mysql # not compatible
query I rowsort label-5648
SELECT 76 * + COUNT ( * ) * 99 AS col2
----
7524

query I rowsort
SELECT - ( NULLIF ( 91, - - 26 ) )
----
-91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT DISTINCT + + CAST( + 41 AS SIGNED ) - - ( - - 37 )
----
78

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT + + CAST ( + 41 AS INTEGER ) - - ( - - 37 )
----
78

query I rowsort
SELECT 68 - + 3 AS col0
----
65

query I rowsort
SELECT 56 * + 61 * 43
----
146888

query I rowsort
SELECT + ( + 8 ) * 22 AS col2
----
176

query II rowsort
SELECT + + 2 AS col0, + 33 - - - 48 + - ( 5 ) * - + ( - 58 ) AS col0
----
2
-305

query II rowsort
SELECT + + 61 AS col0, + 3 * - 11 * + 64
----
61
-2112

query I rowsort
SELECT + ( - 98 ) * + 20 AS col0
----
-1960

query I rowsort
SELECT 94 + 90 + + 12 + 18 * + 2 * - - 89
----
3400

onlyif mysql # DIV for integer division: 
query I rowsort label-5659
SELECT - 29 DIV 32 - + - NULLIF ( + 15, - 61 )
----
15

skipif mysql # not compatible
query I rowsort label-5659
SELECT - 29 / 32 - + - NULLIF ( + 15, - 61 )
----
15

query II rowsort
SELECT DISTINCT - 53 AS col2, 85 AS col2
----
-53
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5661
SELECT 22 DIV 86 * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5661
SELECT 22 / 86 * - COUNT ( * ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5662
SELECT ALL - MAX( 98 ) + + 11 + CAST( NULL AS SIGNED ) * + 16, - 46 col1
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-5662
SELECT ALL - MAX ( 98 ) + + 11 + CAST ( NULL AS INTEGER ) * + 16, - 46 col1
----
NULL
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5663
SELECT DISTINCT 57 DIV CAST( 6 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT 57 / CAST ( 6 AS INTEGER )
----
9

query I rowsort
SELECT ALL 92 * - 61 AS col2
----
-5612

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT 12 DIV + - 28
----
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT 12 / + - 28
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT 47 DIV + 11 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5666
SELECT 47 / + 11 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5667
SELECT + MAX( ALL - 70 ), 38 AS col0
----
-70
38

skipif mysql # not compatible
query II rowsort label-5667
SELECT + MAX ( ALL - 70 ), 38 AS col0
----
-70
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5668
SELECT CAST( NULL AS DECIMAL ) - - + 51 - + ( - 33 ) + + 71 / - COALESCE ( 96, - + ( + 1 ) * - - 24 * + COUNT( * ), + + 59 * + 2 * - 20 - - 67 + 20 ) / + 49 + + CAST( - - 55 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT CAST ( NULL AS REAL ) - - + 51 - + ( - 33 ) + + 71 / - COALESCE ( 96, - + ( + 1 ) * - - 24 * + COUNT ( * ), + + 59 * + 2 * - 20 - - 67 + 20 ) / + 49 + + CAST ( - - 55 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT 73 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-5669
SELECT 73 / + 81
----
0

query I rowsort
SELECT ALL 50 + 78 AS col1
----
128

query II rowsort
SELECT ALL + 31 + - + 82 AS col2, - COALESCE ( - ( + 54 ), + NULLIF ( - - 24, - 24 ) )
----
-51
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT - COUNT( * ) - - 6 * + - 76 * + COUNT( * ) col2
----
-457

skipif mysql # not compatible
query I rowsort label-5672
SELECT - COUNT ( * ) - - 6 * + - 76 * + COUNT ( * ) col2
----
-457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5673
SELECT + COUNT( * ) + 76 + + 84 DIV + 15 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5673
SELECT + COUNT ( * ) + 76 + + 84 / + 15 AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT ALL - ( - 44 ) * - 47 - + - CAST( + AVG ( + + 10 ) AS SIGNED )
----
-2058

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL - ( - 44 ) * - 47 - + - CAST ( + AVG ( + + 10 ) AS INTEGER )
----
-2058

query I rowsort
SELECT - - COALESCE ( + 72, + 47 + - + 17 ) + + 58
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT - 38 - 95 AS col2, COUNT( * ) * + + ( + 0 ) + CASE - COUNT( * ) WHEN - 99 THEN NULL WHEN COUNT( * ) THEN + - ( + + 8 ) ELSE NULL END AS col1
----
-133
NULL

skipif mysql # not compatible
query II rowsort label-5676
SELECT - 38 - 95 AS col2, COUNT ( * ) * + + ( + 0 ) + CASE - COUNT ( * ) WHEN - 99 THEN NULL WHEN COUNT ( * ) THEN + - ( + + 8 ) ELSE NULL END AS col1
----
-133
NULL

query I rowsort
SELECT ALL CASE 31 WHEN 79 THEN + 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT + - 18 + + + COUNT( * ) * - 95 AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-5678
SELECT + - 18 + + + COUNT ( * ) * - 95 AS col1
----
-113

query I rowsort
SELECT + + 1 * + ( - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT + + 43 + - COUNT( DISTINCT 46 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5680
SELECT + + 43 + - COUNT ( DISTINCT 46 ) AS col2
----
42

query I rowsort
SELECT - 94 + + ( - + 19 ) + - 79 AS col0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT - SUM( ALL - 91 ) * + SUM( 6 ) + - CASE - COUNT( * ) WHEN + + 5 THEN + 68 * - 62 ELSE NULL END + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT - SUM ( ALL - 91 ) * + SUM ( 6 ) + - CASE - COUNT ( * ) WHEN + + 5 THEN + 68 * - 62 ELSE NULL END + 3
----
NULL

query II rowsort
SELECT ALL 64 * + 65 + 45 - + ( + ( - - 12 ) ) - 24, - 95 AS col2
----
4169
-95

query I rowsort
SELECT + 28 + - 29 + - 91 * + - ( - + 8 ) AS col2
----
-729

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5686
SELECT ALL - ( - 68 ) * + 48 + - 92 + + 3 - 52 AS col2, + COUNT( * ) col0
----
3123
1

skipif mysql # not compatible
query II rowsort label-5686
SELECT ALL - ( - 68 ) * + 48 + - 92 + + 3 - 52 AS col2, + COUNT ( * ) col0
----
3123
1

query I rowsort
SELECT ( - 77 ) AS col1
----
-77

query I rowsort
SELECT + 50 - - 26 AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5689
SELECT + COUNT( + 19 ) + + + 35 DIV - + 99 + + 2
----
3

skipif mysql # not compatible
query I rowsort label-5689
SELECT + COUNT ( + 19 ) + + + 35 / - + 99 + + 2
----
3

query I rowsort
SELECT + NULLIF ( - 48, + 2 + 85 - - - 30 + + AVG ( DISTINCT 95 ) * 25 ) * - 14 + - 40 AS col0
----
632

onlyif mysql # DIV for integer division: 
query I rowsort label-5691
SELECT ALL 38 DIV - 79 * - + ( 24 )
----
0

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL 38 / - 79 * - + ( 24 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5692
SELECT + NULLIF ( COUNT( * ), + 10 ) AS col2, + 30
----
1
30

skipif mysql # not compatible
query II rowsort label-5692
SELECT + NULLIF ( COUNT ( * ), + 10 ) AS col2, + 30
----
1
30

query I rowsort
SELECT ALL - 81 * ( + 68 ) + + + 22
----
-5486

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT + COALESCE ( + 91, 96, - COUNT( * ) * 81 + + COALESCE ( + SUM( DISTINCT ( - ( - - 94 ) ) ), - 17 ) * - + 87 + - COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5694
SELECT + COALESCE ( + 91, 96, - COUNT ( * ) * 81 + + COALESCE ( + SUM ( DISTINCT ( - ( - - 94 ) ) ), - 17 ) * - + 87 + - COUNT ( * ) ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL MAX( + 78 ) * 1 * - 61 * 25 + + 21 * + 20
----
-118530

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL MAX ( + 78 ) * 1 * - 61 * 25 + + 21 * + 20
----
-118530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5696
SELECT 63 * - 0 DIV - - 85 * + 33 + + + MAX( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5696
SELECT 63 * - 0 / - - 85 * + 33 + + + MAX ( - 24 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT + AVG ( + 67 ) * + 79 * + AVG ( - 11 ) + + CASE - + 37 WHEN - 80 + - 65 - - ( + COUNT( ALL + + 3 ) ) * - - 24 THEN + CASE WHEN NOT - 43 IS NOT NULL THEN + 14 / + 79 * + + 50 + MAX( DISTINCT + 24 ) ELSE NULL END + 1 * - CAST( + - 94 AS SIGNED ) END * - 23 * + 2 * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT + AVG ( + 67 ) * + 79 * + AVG ( - 11 ) + + CASE - + 37 WHEN - 80 + - 65 - - ( + COUNT ( ALL + + 3 ) ) * - - 24 THEN + CASE WHEN NOT - 43 IS NOT NULL THEN + 14 / + 79 * + + 50 + MAX ( DISTINCT + 24 ) ELSE NULL END + 1 * - CAST ( + - 94 AS INTEGER ) END * - 23 * + 2 * - 55
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT ALL 2 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL 2 / + 96
----
0

query I rowsort
SELECT + 73 - 94
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5700
SELECT + NULLIF ( + MIN( - + 78 ), + CASE CAST( NULL AS SIGNED ) WHEN + + 28 THEN + 22 END * - COUNT( * ) * 34 + 76 )
----
-78

skipif mysql # not compatible
query I rowsort label-5700
SELECT + NULLIF ( + MIN ( - + 78 ), + CASE CAST ( NULL AS INTEGER ) WHEN + + 28 THEN + 22 END * - COUNT ( * ) * 34 + 76 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT + 90 + COUNT( * ) + + 35 * + COUNT( * ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-5701
SELECT + 90 + COUNT ( * ) + + 35 * + COUNT ( * ) AS col0
----
126

query I rowsort
SELECT + 2 * - 69
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT - ( ( - - 6 ) ) * + 66 - - - ( - MAX( + - 35 ) ) + - - COUNT( * ) * + 8
----
-423

skipif mysql # not compatible
query I rowsort label-5703
SELECT - ( ( - - 6 ) ) * + 66 - - - ( - MAX ( + - 35 ) ) + - - COUNT ( * ) * + 8
----
-423

query I rowsort
SELECT - ( COALESCE ( 87, + 84 ) )
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT + 17 * + - COUNT( * ) * + 22 * + 6 + 6 - 88 + COALESCE ( + 51, - 50 ) AS col2
----
-2275

skipif mysql # not compatible
query I rowsort label-5706
SELECT + 17 * + - COUNT ( * ) * + 22 * + 6 + 6 - 88 + COALESCE ( + 51, - 50 ) AS col2
----
-2275

query I rowsort
SELECT DISTINCT 41 - 13 + + 81
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5708
SELECT + 80 * 27 * COUNT( * ) + + + 88 + + + 6 DIV COUNT( * )
----
2254

skipif mysql # not compatible
query I rowsort label-5708
SELECT + 80 * 27 * COUNT ( * ) + + + 88 + + + 6 / COUNT ( * )
----
2254

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

query I rowsort
SELECT + 55 - - 95
----
150

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

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

query I rowsort
SELECT + ( - 26 ) - - - 37 AS col0
----
-63

query I rowsort
SELECT - 82 * + + 86 AS col2
----
-7052

onlyif mysql # DIV for integer division: 
query II rowsort label-5714
SELECT - + ( + 53 ) DIV + CASE - + 83 WHEN 69 THEN NULL ELSE - + 7 END, 96 * + NULLIF ( + + 76, + + 98 ) * - 56 AS col2
----
7
-408576

skipif mysql # not compatible
query II rowsort label-5714
SELECT - + ( + 53 ) / + CASE - + 83 WHEN 69 THEN NULL ELSE - + 7 END, 96 * + NULLIF ( + + 76, + + 98 ) * - 56 AS col2
----
7
-408576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5715
SELECT DISTINCT + - 16 + + 94 * - + CAST( NULL AS SIGNED ) + + + COALESCE ( + 12, - + CASE - 94 WHEN - 58 + - COUNT( * ) THEN NULL ELSE 92 END * + COUNT( * ) + 16 - + 8, + 88, - + 54 ) + + 54 AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5715
SELECT DISTINCT + - 16 + + 94 * - + CAST ( NULL AS INTEGER ) + + + COALESCE ( + 12, - + CASE - 94 WHEN - 58 + - COUNT ( * ) THEN NULL ELSE 92 END * + COUNT ( * ) + 16 - + 8, + 88, - + 54 ) + + 54 AS col0, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT DISTINCT + - SUM( + 57 ) * + 99 + 93
----
-5550

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT + - SUM ( + 57 ) * + 99 + 93
----
-5550

query I rowsort
SELECT ALL + 26 + + - ( + + 59 ) AS col0
----
-33

query I rowsort
SELECT - + 20 - 12 * + + 85 col2
----
-1040

onlyif mysql # DIV for integer division: 
query I rowsort label-5719
SELECT DISTINCT - 47 DIV - 22 + - 14 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - 47 / - 22 + - 14 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5720
SELECT ALL + CAST( - - COUNT( - CAST( NULL AS SIGNED ) ) AS SIGNED ) DIV - 16 * 7 * + - 8 + + + 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + CAST ( - - COUNT ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) / - 16 * 7 * + - 8 + + + 9 AS col2
----
9

query I rowsort
SELECT - 74 * + CASE WHEN NOT 7 IS NULL THEN 6 * - CASE + + NULLIF ( - - 95, 13 ) WHEN + + 73 * - + 76 + - 74 THEN 68 ELSE NULL END * - 92 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5722
SELECT 75 / + 49 / + AVG ( ALL + 26 ) * - - CAST( NULL AS DECIMAL ) + 99 + + 16 + + - 88 * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT 75 / + 49 / + AVG ( ALL + 26 ) * - - CAST ( NULL AS REAL ) + 99 + + 16 + + - 88 * 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT + COALESCE ( + - 80, - - COUNT( * ) + + + COUNT( ALL - 77 ), - 97 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5723
SELECT + COALESCE ( + - 80, - - COUNT ( * ) + + + COUNT ( ALL - 77 ), - 97 ) AS col2
----
-80

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

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT 97 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 85 * - + 39
----
-3315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5726
SELECT ALL 96 * - - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) * + - 14 AS col0
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL 96 * - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * + - 14 AS col0
----
NULL
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT ALL 55 - - ( - 33 ) + + COUNT( * ) + - 77
----
-54

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL 55 - - ( - 33 ) + + COUNT ( * ) + - 77
----
-54

query I rowsort
SELECT + 64 * 10 * 56
----
35840

query I rowsort
SELECT + 73 - + + 75 + + 74 + - 6 * + 1
----
66

query I rowsort
SELECT ALL + ( - - 46 ) col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5731
SELECT DISTINCT 52 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT 52 / + 95
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT 20 * - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5733
SELECT 20 * - COUNT ( * ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL MAX( + 42 ) + + 24
----
66

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL MAX ( + 42 ) + + 24
----
66

query I rowsort
SELECT ALL + 10 + 48 - + 89 AS col1
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5736
SELECT DISTINCT 41 * - COUNT( * ) DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT 41 * - COUNT ( * ) / - 83 AS col0
----
0

query I rowsort
SELECT 23 + + 25
----
48

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

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL - SUM ( ALL 99 )
----
-99

query II rowsort
SELECT - 30 + 86 AS col1, 98
----
56
98

query I rowsort
SELECT ALL 69 + 77 + + 28 AS col0
----
174

query I rowsort
SELECT DISTINCT + 89 * - 23
----
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT 60 + COUNT( * ) + + 61 * - 85
----
-5124

skipif mysql # not compatible
query I rowsort label-5742
SELECT 60 + COUNT ( * ) + + 61 * - 85
----
-5124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5743
SELECT ( + 13 ) * COALESCE ( + COUNT( * ), + CAST( + 32 AS SIGNED ), + COUNT( * ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5743
SELECT ( + 13 ) * COALESCE ( + COUNT ( * ), + CAST ( + 32 AS INTEGER ), + COUNT ( * ) ) AS col2
----
13

query I rowsort
SELECT ALL + 71 * - + 33
----
-2343

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5746
SELECT DISTINCT ( + - 65 ) DIV COALESCE ( 62, - + ( - NULLIF ( - 10, - + 1 + + + 78 + - 19 * ( - ( + ( + - 89 ) ) ) ) ) + + - CAST( NULL AS SIGNED ) ), ( - 29 ) * + 36 AS col1
----
-1
-1044

skipif mysql # not compatible
query II rowsort label-5746
SELECT DISTINCT ( + - 65 ) / COALESCE ( 62, - + ( - NULLIF ( - 10, - + 1 + + + 78 + - 19 * ( - ( + ( + - 89 ) ) ) ) ) + + - CAST ( NULL AS INTEGER ) ), ( - 29 ) * + 36 AS col1
----
-1
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL 33 - COUNT( + 17 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL 33 - COUNT ( + 17 ) AS col2
----
32

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

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

query I rowsort
SELECT ALL + 44 - - 83 AS col2
----
127

query I rowsort
SELECT 56 * 14 AS col1
----
784

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT 21, - CASE 68 WHEN - ( + COUNT( * ) ) THEN COUNT( * ) + + + 76 + 5 * - 89 * + COUNT( * ) ELSE NULL END AS col1
----
21
NULL

skipif mysql # not compatible
query II rowsort label-5751
SELECT 21, - CASE 68 WHEN - ( + COUNT ( * ) ) THEN COUNT ( * ) + + + 76 + 5 * - 89 * + COUNT ( * ) ELSE NULL END AS col1
----
21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT - COALESCE ( MIN( ALL 3 ), + 6 )
----
-3

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - COALESCE ( MIN ( ALL 3 ), + 6 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT 76 DIV + + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT 76 / + + 89 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5754
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 23 + + MAX( + 55 ) * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 23 + + MAX ( + 55 ) * + 53 AS col2
----
NULL

query I rowsort
SELECT ALL + 81 - - + 10 AS col1
----
91

query I rowsort
SELECT 62 + - 10 AS col1
----
52

query I rowsort
SELECT 81 * + 5 - + ( + 32 )
----
373

query I rowsort
SELECT 72 * + NULLIF ( 22, + - 50 * 94 + - 10 )
----
1584

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT ALL - 36 DIV + 26 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL - 36 / + 26 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT DISTINCT - 27 DIV NULLIF ( - - 94, - 13 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT - 27 / NULLIF ( - - 94, - 13 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5761
SELECT ALL + 36 * CAST( + - CAST( 58 AS SIGNED ) AS SIGNED ) col0
----
-2088

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL + 36 * CAST ( + - CAST ( 58 AS INTEGER ) AS INTEGER ) col0
----
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT 37 * 57 + MIN( DISTINCT 90 ) AS col1
----
2199

skipif mysql # not compatible
query I rowsort label-5762
SELECT 37 * 57 + MIN ( DISTINCT 90 ) AS col1
----
2199

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5763
SELECT DISTINCT - 91 + 38 * COALESCE ( - 3, + 16, - CASE 1 WHEN COUNT( * ) * + COUNT( * ) + - 30 * COALESCE ( + 74 * - COALESCE ( 21 * CAST( + AVG ( ALL + ( 52 ) ) AS DECIMAL ), - 27 * + 21 ), + 17 ) THEN 29 END )
----
-205

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT - 91 + 38 * COALESCE ( - 3, + 16, - CASE 1 WHEN COUNT ( * ) * + COUNT ( * ) + - 30 * COALESCE ( + 74 * - COALESCE ( 21 * CAST ( + AVG ( ALL + ( 52 ) ) AS REAL ), - 27 * + 21 ), + 17 ) THEN 29 END )
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL + 37 * ( 54 * + MAX( - ( - 34 ) * 49 ) ) AS col2
----
3328668

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL + 37 * ( 54 * + MAX ( - ( - 34 ) * 49 ) ) AS col2
----
3328668

query I rowsort
SELECT 16 + 84
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT SUM( DISTINCT + ( 86 ) ) * 37 AS col1
----
3182

skipif mysql # not compatible
query I rowsort label-5766
SELECT SUM ( DISTINCT + ( 86 ) ) * 37 AS col1
----
3182

query I rowsort
SELECT ( - 19 ) + 14 AS col1
----
-5

query I rowsort
SELECT DISTINCT ( + 9 ) + 28
----
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5770
SELECT 6 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-5770
SELECT 6 / - 94
----
0

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

skipif mysql # not compatible
query I rowsort label-5771
SELECT 41 / - 37
----
-1

query I rowsort
SELECT ALL 93 + ( 27 )
----
120

query I rowsort
SELECT 12 * - 25
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT COUNT( * ) - + 54 * 82
----
-4427

skipif mysql # not compatible
query I rowsort label-5774
SELECT COUNT ( * ) - + 54 * 82
----
-4427

query I rowsort
SELECT DISTINCT ( - 92 ) * - 60 col0
----
5520

query I rowsort
SELECT 31 - - 43 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT + COUNT( * ) + + 16 * - NULLIF ( COUNT( * ), - 88 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5777
SELECT + COUNT ( * ) + + 16 * - NULLIF ( COUNT ( * ), - 88 ) AS col2
----
-15

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

query I rowsort
SELECT DISTINCT 92 * + 55
----
5060

query I rowsort
SELECT ALL 15 - + 6
----
9

query I rowsort
SELECT + ( 53 ) - - 72 * 55 AS col1
----
4013

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + MIN( ( 14 ) ) - - 4
----
18

skipif mysql # not compatible
query I rowsort label-5782
SELECT + MIN ( ( 14 ) ) - - 4
----
18

query I rowsort
SELECT NULLIF ( - 74, - 17 * - 98 + + 74 ) col2
----
-74

query I rowsort
SELECT COALESCE ( - 38, 67 * 93 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5785
SELECT + CASE 10 WHEN 10 THEN + COUNT( * ) * - NULLIF ( - CAST( 86 AS SIGNED ), 81 ) + - MIN( DISTINCT 99 ) END * 34 AS col2
----
-442

skipif mysql # not compatible
query I rowsort label-5785
SELECT + CASE 10 WHEN 10 THEN + COUNT ( * ) * - NULLIF ( - CAST ( 86 AS INTEGER ), 81 ) + - MIN ( DISTINCT 99 ) END * 34 AS col2
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL 73 * ( COUNT( * ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL 73 * ( COUNT ( * ) ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + COUNT( * ) + + 67 * COALESCE ( + 9 * 3 + - 9, 35, + 8 + 35 * + 62 ) AS col1
----
1207

skipif mysql # not compatible
query I rowsort label-5787
SELECT + COUNT ( * ) + + 67 * COALESCE ( + 9 * 3 + - 9, 35, + 8 + 35 * + 62 ) AS col1
----
1207

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT + CASE - 12 WHEN 87 THEN NULL WHEN ( - 30 ) THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT + CASE - 12 WHEN 87 THEN NULL WHEN ( - 30 ) THEN COUNT ( * ) END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 20 * + 80 AS col1
----
1600

query I rowsort
SELECT + 31 * - ( 86 ) AS col0
----
-2666

query I rowsort
SELECT ALL 37 * 32 AS col2
----
1184

query I rowsort
SELECT DISTINCT 97 * + 60 + + 56 AS col0
----
5876

query I rowsort
SELECT + 86 + 2
----
88

query I rowsort
SELECT - - 9 * 26
----
234

query I rowsort
SELECT ALL - 94 * + 78 + - 3
----
-7335

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT + + 23 + + COALESCE ( + 95, - 68 DIV 90 ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-5797
SELECT + + 23 + + COALESCE ( + 95, - 68 / 90 ) AS col0
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5798
SELECT ALL + + 97 * 27 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL + + 97 * 27 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 91 * 75
----
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT + MIN( DISTINCT - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5800
SELECT + MIN ( DISTINCT - 1 ) AS col0
----
-1

query I rowsort
SELECT ALL + + 65 * 85 + - 75 * 65 AS col0
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT + NULLIF ( - 37, 41 ) * + COUNT( ALL 64 + - 53 ) + - COUNT( * ) * 22
----
-59

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT + NULLIF ( - 37, 41 ) * + COUNT ( ALL 64 + - 53 ) + - COUNT ( * ) * 22
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT - + 33 + + SUM( DISTINCT + 64 )
----
31

skipif mysql # not compatible
query I rowsort label-5803
SELECT - + 33 + + SUM ( DISTINCT + 64 )
----
31

query I rowsort
SELECT ALL + + 42 + - 84 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT - - CAST( 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-5805
SELECT - - CAST ( 91 AS INTEGER )
----
91

query I rowsort
SELECT - - 47 + 85 AS col0
----
132

query I rowsort
SELECT + 21 - + 53 * - 76 AS col2
----
4049

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

query I rowsort
SELECT DISTINCT 74 * - 72 AS col2
----
-5328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT DISTINCT CAST( + 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT CAST ( + 16 AS INTEGER ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT + ( 21 ) + COALESCE ( - 91, 58, - ( - COUNT( * ) ) * - 37 )
----
-70

skipif mysql # not compatible
query I rowsort label-5811
SELECT + ( 21 ) + COALESCE ( - 91, 58, - ( - COUNT ( * ) ) * - 37 )
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT + MIN( DISTINCT 73 ) + + 11
----
84

skipif mysql # not compatible
query I rowsort label-5813
SELECT + MIN ( DISTINCT 73 ) + + 11
----
84

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT - CASE + + 36 WHEN MAX( 84 ) * MIN( - 93 ) THEN NULL WHEN + 80 THEN 33 ELSE + 65 * 51 END AS col2
----
-3315

skipif mysql # not compatible
query I rowsort label-5816
SELECT - CASE + + 36 WHEN MAX ( 84 ) * MIN ( - 93 ) THEN NULL WHEN + 80 THEN 33 ELSE + 65 * 51 END AS col2
----
-3315

query I rowsort
SELECT DISTINCT - 27 * + - 6
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + COUNT( * ) * - CASE - ( COUNT( ALL - 41 ) ) WHEN + COUNT( * ) * - 39 THEN NULL WHEN - 63 + 54 * 88 THEN + 33 WHEN + 94 THEN - 30 + - 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT + COUNT ( * ) * - CASE - ( COUNT ( ALL - 41 ) ) WHEN + COUNT ( * ) * - 39 THEN NULL WHEN - 63 + 54 * 88 THEN + 33 WHEN + 94 THEN - 30 + - 19 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5820
SELECT ALL COALESCE ( + 51, 32, COALESCE ( + 43, MIN( - 20 ), - COUNT( * ) ) DIV + 56 ) DIV 78 + - 62 * 34
----
-2108

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL COALESCE ( + 51, 32, COALESCE ( + 43, MIN ( - 20 ), - COUNT ( * ) ) / + 56 ) / 78 + - 62 * 34
----
-2108

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT ALL - 7 DIV + 46 + - 46 * 55
----
-2530

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL - 7 / + 46 + - 46 * 55
----
-2530

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5822
SELECT DISTINCT 93 DIV 67 + CAST( 4 AS SIGNED ) * 98 AS col2
----
393

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT 93 / 67 + CAST ( 4 AS INTEGER ) * 98 AS col2
----
393

query I rowsort
SELECT + 1 + + 16 AS col1
----
17

query I rowsort
SELECT + COALESCE ( + + ( 96 ), 63 )
----
96

query I rowsort
SELECT 46 * - 56 * + 48 + 92 col0
----
-123556

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5827
SELECT ALL + CAST( NULL AS SIGNED ) / 5 * CAST( NULL AS DECIMAL ) + - ( 25 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + CAST ( NULL AS INTEGER ) / 5 * CAST ( NULL AS REAL ) + - ( 25 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + COALESCE ( 58, CASE - 40 WHEN - COUNT( * ) + 16 * 27 THEN 6 * 86 END ) + + 67 col2
----
125

skipif mysql # not compatible
query I rowsort label-5828
SELECT + COALESCE ( 58, CASE - 40 WHEN - COUNT ( * ) + 16 * 27 THEN 6 * 86 END ) + + 67 col2
----
125

query I rowsort
SELECT 19 * - 64 - - 47
----
-1169

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT - 99 * + - 24 + + COUNT( * ) + + COUNT( - 30 ) * + 29
----
2406

skipif mysql # not compatible
query I rowsort label-5830
SELECT - 99 * + - 24 + + COUNT ( * ) + + COUNT ( - 30 ) * + 29
----
2406

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

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

query I rowsort
SELECT + + 92 * - 31
----
-2852

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT + 22 DIV - - 18 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5833
SELECT + 22 / - - 18 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5834
SELECT - 92 * + 16 DIV 2 + COUNT( DISTINCT 17 ) AS col0
----
-735

skipif mysql # not compatible
query I rowsort label-5834
SELECT - 92 * + 16 / 2 + COUNT ( DISTINCT 17 ) AS col0
----
-735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5835
SELECT DISTINCT - - COUNT( * ) * 37 * 19 - 8 - - 29 DIV SUM( ALL + 15 - 19 * 9 ) AS col2
----
695

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - - COUNT ( * ) * 37 * 19 - 8 - - 29 / SUM ( ALL + 15 - 19 * 9 ) AS col2
----
695

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT - 10 * + 52 * + COUNT( * ) AS col0
----
-520

skipif mysql # not compatible
query I rowsort label-5836
SELECT - 10 * + 52 * + COUNT ( * ) AS col0
----
-520

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5838
SELECT + 58 DIV + 22 col0
----
2

skipif mysql # not compatible
query I rowsort label-5838
SELECT + 58 / + 22 col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5839
SELECT DISTINCT - 4 DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT - 4 / - 95 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5840
SELECT DISTINCT + - MAX( DISTINCT - - 56 ) DIV 32
----
-1

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT + - MAX ( DISTINCT - - 56 ) / 32
----
-1

query II rowsort
SELECT ALL 72, 31 AS col2
----
72
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL - 58 * + + MAX( DISTINCT + 66 ) * 14 AS col2
----
-53592

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL - 58 * + + MAX ( DISTINCT + 66 ) * 14 AS col2
----
-53592

query I rowsort
SELECT 40 + + - 51
----
-11

query I rowsort
SELECT 47 * - - 59
----
2773

query I rowsort
SELECT 82 * + - 27
----
-2214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5846
SELECT DISTINCT - 40 * + COUNT( * ) * - - CAST( 85 AS SIGNED ) AS col2
----
-3400

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT - 40 * + COUNT ( * ) * - - CAST ( 85 AS INTEGER ) AS col2
----
-3400

query I rowsort
SELECT 56 - 63 AS col0
----
-7

query I rowsort
SELECT DISTINCT - 41 + + 44 * - 83 AS col0
----
-3693

query II rowsort
SELECT 37 AS col0, + 1
----
37
1

query I rowsort
SELECT ALL + 77 + + 74
----
151

query I rowsort
SELECT ALL - 23 + + + 17 + 15
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5852
SELECT ALL COUNT( * ) + ( - 90 ) DIV CASE 62 WHEN 59 THEN NULL ELSE 42 + CAST( + 81 AS SIGNED ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL COUNT ( * ) + ( - 90 ) / CASE 62 WHEN 59 THEN NULL ELSE 42 + CAST ( + 81 AS INTEGER ) END AS col0
----
1

query I rowsort
SELECT ALL 78 + + - 55 + 76
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT 1 - + 62 DIV 85 + 37 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5854
SELECT 1 - + 62 / 85 + 37 AS col2
----
38

query II rowsort
SELECT ALL 6, 91 * - 57 * + 10 + + ( + 24 ) col0
----
6
-51846

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

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

query I rowsort
SELECT + 90 * 63
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT 43 + - + COUNT( * ) * - - 39 + 81
----
85

skipif mysql # not compatible
query I rowsort label-5858
SELECT 43 + - + COUNT ( * ) * - - 39 + 81
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5859
SELECT DISTINCT - 2 AS col2, + 58 + 4 - + COUNT( * ) DIV - 40
----
-2
62

skipif mysql # not compatible
query II rowsort label-5859
SELECT DISTINCT - 2 AS col2, + 58 + 4 - + COUNT ( * ) / - 40
----
-2
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5860
SELECT ALL + 26 + - COUNT( * ) + COUNT( * ) * + CAST( + 7 AS SIGNED ) col1
----
32

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL + 26 + - COUNT ( * ) + COUNT ( * ) * + CAST ( + 7 AS INTEGER ) col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5861
SELECT ALL - + COUNT( * ) AS col1, 70 + + MIN( DISTINCT 42 ) - 14 AS col1
----
-1
98

skipif mysql # not compatible
query II rowsort label-5861
SELECT ALL - + COUNT ( * ) AS col1, 70 + + MIN ( DISTINCT 42 ) - 14 AS col1
----
-1
98

query II rowsort
SELECT DISTINCT - 92 AS col0, 80 * - 23 + - 56 AS col0
----
-92
-1896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5863
SELECT ALL - SUM( ALL + 11 ) DIV - - NULLIF ( 13, COUNT( * ) + - ( 26 ) ) + 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL - SUM ( ALL + 11 ) / - - NULLIF ( 13, COUNT ( * ) + - ( 26 ) ) + 99 AS col0
----
99

query I rowsort
SELECT DISTINCT 9 - + 42 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT - 84 + - 22 DIV - 41 * + 54 + 31 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5865
SELECT - 84 + - 22 / - 41 * + 54 + 31 AS col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5866
SELECT NULLIF ( 37, CAST( 88 AS SIGNED ) )
----
37

skipif mysql # not compatible
query I rowsort label-5866
SELECT NULLIF ( 37, CAST ( 88 AS INTEGER ) )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT - COUNT( * ) + + - 20
----
-21

skipif mysql # not compatible
query I rowsort label-5867
SELECT - COUNT ( * ) + + - 20
----
-21

query I rowsort
SELECT - 79 * + 75 + - 39 AS col1
----
-5964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5869
SELECT + COALESCE ( - NULLIF ( COUNT( ALL 28 ), CAST( - 16 AS SIGNED ) ), + 15, 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-5869
SELECT + COALESCE ( - NULLIF ( COUNT ( ALL 28 ), CAST ( - 16 AS INTEGER ) ), + 15, 63 )
----
-1

query I rowsort
SELECT DISTINCT - 19 * + + 45
----
-855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT ALL - NULLIF ( - 91, ( 57 ) + + CAST( + NULLIF ( - 16, + 23 + + 47 ) AS SIGNED ) )
----
91

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL - NULLIF ( - 91, ( 57 ) + + CAST ( + NULLIF ( - 16, + 23 + + 47 ) AS INTEGER ) )
----
91

query I rowsort
SELECT + 56 - + 20 * 1 + + ( 50 ) col1
----
86

query I rowsort
SELECT 92 + + 16 * 20 AS col0
----
412

query II rowsort
SELECT ALL 0, 47 AS col2
----
0
47

query I rowsort
SELECT ALL 63 * 77 AS col0
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT + COUNT( * ) * + 55 + 81 + 78 AS col2
----
214

skipif mysql # not compatible
query I rowsort label-5876
SELECT + COUNT ( * ) * + 55 + 81 + 78 AS col2
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT 85 + + 23 * 25 - + - MAX( - 14 ) * - MAX( 5 * + 94 )
----
7240

skipif mysql # not compatible
query I rowsort label-5877
SELECT 85 + + 23 * 25 - + - MAX ( - 14 ) * - MAX ( 5 * + 94 )
----
7240

query I rowsort
SELECT 56 + + 82
----
138

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

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

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

query I rowsort
SELECT DISTINCT 62 + 87 AS col2
----
149

query I rowsort
SELECT ALL 21 + 55 * - 89 AS col0
----
-4874

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT + MIN( DISTINCT - + 12 ) * + 80
----
-960

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + MIN ( DISTINCT - + 12 ) * + 80
----
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT 85 DIV - 38 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5884
SELECT 85 / - 38 AS col2
----
-2

query I rowsort
SELECT DISTINCT 55 + + - 21 AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5886
SELECT ALL 14 DIV - - COUNT( * ) * + COUNT( DISTINCT - - NULLIF ( 41, + 30 ) )
----
14

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL 14 / - - COUNT ( * ) * + COUNT ( DISTINCT - - NULLIF ( 41, + 30 ) )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5887
SELECT 20 + COALESCE ( + CAST( ( + 26 ) AS SIGNED ), - 72 * 94, 1 * - 68 ) + - 75 * + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5887
SELECT 20 + COALESCE ( + CAST ( ( + 26 ) AS INTEGER ), - 72 * 94, 1 * - 68 ) + - 75 * + COUNT ( * ) AS col2
----
-29

query I rowsort
SELECT 97 + - 80 - + CASE WHEN NOT 27 IS NOT NULL THEN 47 * 60 + 56 END col0
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 51 WHEN - 2 * 25 THEN 71 * - 80 ELSE + 91 * 16 END + 71
----
1527

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL + - ( - COUNT( ALL + 84 ) ) - 55
----
-54

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL + - ( - COUNT ( ALL + 84 ) ) - 55
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL + - COUNT( - 81 ) * 84 * + + COUNT( DISTINCT 90 ) * COUNT( * ) - - 51
----
-33

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL + - COUNT ( - 81 ) * 84 * + + COUNT ( DISTINCT 90 ) * COUNT ( * ) - - 51
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5893
SELECT - 29 * - CASE + - NULLIF ( - 16, + NULLIF ( 98, - 63 + - 97 ) + COALESCE ( COUNT( * ) + COUNT( + ( + 61 ) + - 66 ), - 75 * + CAST( + 20 AS SIGNED ) ) ) WHEN COUNT( * ) THEN + AVG ( + 55 ) + 40 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT - 29 * - CASE + - NULLIF ( - 16, + NULLIF ( 98, - 63 + - 97 ) + COALESCE ( COUNT ( * ) + COUNT ( + ( + 61 ) + - 66 ), - 75 * + CAST ( + 20 AS INTEGER ) ) ) WHEN COUNT ( * ) THEN + AVG ( + 55 ) + 40 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 15 / + CASE - 15 WHEN - + 61 * + 28 + 51 THEN - 95 END / 46 AS col0
----
NULL

query I rowsort
SELECT + 44 * - - 40 + 61
----
1821

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL + 81 * + + 15 + CASE - + 35 WHEN CASE 31 WHEN MAX( DISTINCT 5 ) THEN - 25 WHEN 18 * 51 THEN + 59 * + 98 WHEN + ( - 77 ) + ( - COUNT( * ) ) THEN NULL WHEN 26 THEN NULL ELSE NULL END / 28 + + 67 THEN - 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL + 81 * + + 15 + CASE - + 35 WHEN CASE 31 WHEN MAX ( DISTINCT 5 ) THEN - 25 WHEN 18 * 51 THEN + 59 * + 98 WHEN + ( - 77 ) + ( - COUNT ( * ) ) THEN NULL WHEN 26 THEN NULL ELSE NULL END / 28 + + 67 THEN - 9 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5897
SELECT - 95 DIV + 92 AS col0, + 27 * - COUNT( DISTINCT 58 )
----
-1
-27

skipif mysql # not compatible
query II rowsort label-5897
SELECT - 95 / + 92 AS col0, + 27 * - COUNT ( DISTINCT 58 )
----
-1
-27

query I rowsort
SELECT + 65 * + 10
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT CASE WHEN ( 96 ) >= 29 THEN + 44 + + COALESCE ( 35, 23 + ( + COUNT( * ) ), 9 + - 84, 62 ) WHEN ( COUNT( * ) ) >= ( COUNT( * ) ) THEN COUNT( * ) ELSE + 80 END AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5899
SELECT CASE WHEN ( 96 ) >= 29 THEN + 44 + + COALESCE ( 35, 23 + ( + COUNT ( * ) ), 9 + - 84, 62 ) WHEN ( COUNT ( * ) ) >= ( COUNT ( * ) ) THEN COUNT ( * ) ELSE + 80 END AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT ( + ( NULLIF ( + + COUNT( * ), - 23 - 92 ) ) ) * - 41
----
-41

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT ( + ( NULLIF ( + + COUNT ( * ), - 23 - 92 ) ) ) * - 41
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT + + 10 * - MAX( ALL + CAST( 58 AS SIGNED ) ) * 34 AS col0
----
-19720

skipif mysql # not compatible
query I rowsort label-5901
SELECT + + 10 * - MAX ( ALL + CAST ( 58 AS INTEGER ) ) * 34 AS col0
----
-19720

query I rowsort
SELECT DISTINCT + - 93 * 65 col2
----
-6045

query I rowsort
SELECT + - 35 * - + 58 AS col1
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL + 29 * + 37 + + + ( - NULLIF ( + MAX( ALL - 42 ), + 77 - + CASE - 22 WHEN 14 THEN + 47 WHEN - ( 86 ) THEN - 11 - MIN( 26 ) * ( - 49 ) ELSE NULL END * + ( 80 ) ) ) AS col1
----
1115

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + 29 * + 37 + + + ( - NULLIF ( + MAX ( ALL - 42 ), + 77 - + CASE - 22 WHEN 14 THEN + 47 WHEN - ( 86 ) THEN - 11 - MIN ( 26 ) * ( - 49 ) ELSE NULL END * + ( 80 ) ) ) AS col1
----
1115

query I rowsort
SELECT + + 36 * + 51 + + 81
----
1917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5906
SELECT DISTINCT COUNT( * ) * + 53 + + + CAST( + 10 AS SIGNED ) * + ( 71 * + ( CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT COUNT ( * ) * + 53 + + + CAST ( + 10 AS INTEGER ) * + ( 71 * + ( CAST ( NULL AS REAL ) ) )
----
NULL

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

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

query I rowsort
SELECT ALL 57 + + + 48 AS col1
----
105

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5911
SELECT ALL COUNT( * ) + - - ( + COUNT( * ) ) + - 88 DIV 47 * + 29 - 15 * + 82 AS col1
----
-1257

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL COUNT ( * ) + - - ( + COUNT ( * ) ) + - 88 / 47 * + 29 - 15 * + 82 AS col1
----
-1257

query I rowsort
SELECT + ( 58 ) * + 2
----
116

query I rowsort
SELECT ALL 21 + + ( - 76 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5914
SELECT DISTINCT 33, CAST( NULLIF ( + 23, - 70 * CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
33
23

skipif mysql # not compatible
query II rowsort label-5914
SELECT DISTINCT 33, CAST ( NULLIF ( + 23, - 70 * CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
33
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT - COALESCE ( - 3, - 53 - - 44 + MAX( ALL 18 ) * ( - 41 * + COALESCE ( 68, + 27 * 99, MAX( 24 ) + - 13 DIV 81 ) ) DIV 80 )
----
3

skipif mysql # not compatible
query I rowsort label-5915
SELECT - COALESCE ( - 3, - 53 - - 44 + MAX ( ALL 18 ) * ( - 41 * + COALESCE ( 68, + 27 * 99, MAX ( 24 ) + - 13 / 81 ) ) / 80 )
----
3

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

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL 3 + - ( - + COUNT ( * ) ) AS col2
----
4

query I rowsort
SELECT - COALESCE ( - 76, - 98 )
----
76

query I rowsort
SELECT ALL 73 * - 3
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT + 85 * 3 * CAST( + 13 AS SIGNED ) AS col0
----
3315

skipif mysql # not compatible
query I rowsort label-5919
SELECT + 85 * 3 * CAST ( + 13 AS INTEGER ) AS col0
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT ALL 67 + - 21 + COUNT( * ) + - MIN( + 57 ) + ( 98 )
----
88

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL 67 + - 21 + COUNT ( * ) + - MIN ( + 57 ) + ( 98 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT - COALESCE ( - ( - MAX( + + 66 ) ), - 96 * + 76 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-5921
SELECT - COALESCE ( - ( - MAX ( + + 66 ) ), - 96 * + 76 ) AS col0
----
-66

query II rowsort
SELECT 5 AS col1, + 51 * 55 + 48
----
5
2853

query I rowsort
SELECT + 49 - - 29 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT - 55 * + - CASE + 91 WHEN - COUNT( ALL + 6 ) THEN NULL WHEN 9 THEN + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT - 55 * + - CASE + 91 WHEN - COUNT ( ALL + 6 ) THEN NULL WHEN 9 THEN + 70 ELSE NULL END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT + 1 + - 25 / CASE + 47 WHEN + + 74 THEN NULL WHEN + 87 THEN 23 / - 43 + - 65 / + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5927
SELECT + 1 + - 25 / CASE + 47 WHEN + + 74 THEN NULL WHEN + 87 THEN 23 / - 43 + - 65 / + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 15 * + 55
----
-825

query II rowsort
SELECT - - 4 AS col2, 14 * 20 * + - 43 + - 59 + + 92 * + 30 AS col2
----
4
-9339

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT DISTINCT 73 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT 73 / - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT - COUNT( * ) - + + ( + COUNT( * ) ) + - 38 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5931
SELECT - COUNT ( * ) - + + ( + COUNT ( * ) ) + - 38 AS col0
----
-40

query I rowsort
SELECT + + 55 * + 11 + + ( + 3 ) + + 36 + 65
----
709

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + - CASE + COUNT( * ) WHEN + + 67 THEN - + COUNT( * ) / - - 31 END * 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT + - CASE + COUNT ( * ) WHEN + + 67 THEN - + COUNT ( * ) / - - 31 END * 62 AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT + - 71 * - - 28 + + - 89
----
-2077

query I rowsort
SELECT - 2 * - 60 AS col1
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-5938
SELECT ALL + + ( MAX( DISTINCT + 98 ) ) AS col2, - 53 AS col2
----
98
-53

skipif mysql # not compatible
query II rowsort label-5938
SELECT ALL + + ( MAX ( DISTINCT + 98 ) ) AS col2, - 53 AS col2
----
98
-53

query II rowsort
SELECT - 51 AS col0, + 71 * + - 18
----
-51
-1278

query I rowsort
SELECT - - 78 + - 46 - - + 28
----
60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5942
SELECT ALL 16 * CAST( NULL AS SIGNED ) + - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL 16 * CAST ( NULL AS INTEGER ) + - 64 AS col2
----
NULL

query I rowsort
SELECT - + ( + 22 ) + - 27 * - - 69 * + 65 * 23 + - 76 * - 85
----
-2778747

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT + SUM( ALL 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5944
SELECT + SUM ( ALL 9 ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT + - 98 DIV 45 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5945
SELECT + - 98 / 45 AS col1
----
-2

query I rowsort
SELECT - - 87 + + - 50 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL 91 * - - 86 + + + SUM( + 30 ) AS col2
----
7856

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL 91 * - - 86 + + + SUM ( + 30 ) AS col2
----
7856

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

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

query I rowsort
SELECT ALL 16 * + + COALESCE ( + 73, + 54 ) + - 55 * - - 41 * - 84 AS col0
----
190588

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

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

query I rowsort
SELECT - 15 + 33
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5952
SELECT ALL 22 * + COALESCE ( - COUNT( * ), + - 49, + + COUNT( * ) DIV 43 ) + - 9 DIV + 70 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL 22 * + COALESCE ( - COUNT ( * ), + - 49, + + COUNT ( * ) / 43 ) + - 9 / + 70 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT - 82 * + MAX( DISTINCT + + 67 )
----
-5494

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - 82 * + MAX ( DISTINCT + + 67 )
----
-5494

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5955
SELECT ALL + 18 * - COUNT( * ) AS col0, 35 AS col0
----
-18
35

skipif mysql # not compatible
query II rowsort label-5955
SELECT ALL + 18 * - COUNT ( * ) AS col0, 35 AS col0
----
-18
35

query I rowsort
SELECT - 97 * - 51 AS col1
----
4947

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT COUNT( * ) AS col1, - NULLIF ( 58, CASE - - 35 WHEN + 71 THEN 8 ELSE NULL END )
----
1
-58

skipif mysql # not compatible
query II rowsort label-5957
SELECT COUNT ( * ) AS col1, - NULLIF ( 58, CASE - - 35 WHEN + 71 THEN 8 ELSE NULL END )
----
1
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5958
SELECT - 65 * ( COUNT( * ) ) * - - 36 * - 90 / + 29 + CAST( NULL AS SIGNED ) * 85 + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT - 65 * ( COUNT ( * ) ) * - - 36 * - 90 / + 29 + CAST ( NULL AS INTEGER ) * 85 + 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5959
SELECT COUNT( * ) col1, + 68 + - 58 + 92
----
1
102

skipif mysql # not compatible
query II rowsort label-5959
SELECT COUNT ( * ) col1, + 68 + - 58 + 92
----
1
102

query II rowsort
SELECT + 38 + - - 31 * - 72 * + 45, 0 col2
----
-100402
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT - COALESCE ( - COUNT( * ), 92 ) + + 58
----
59

skipif mysql # not compatible
query I rowsort label-5961
SELECT - COALESCE ( - COUNT ( * ), 92 ) + + 58
----
59

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

skipif mysql # not compatible
query I rowsort label-5962
SELECT MIN ( 85 ) col2
----
85

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

skipif mysql # not compatible
query I rowsort label-5963
SELECT + COUNT ( * ) + 49 col0
----
50

query I rowsort
SELECT + 25 + 9 AS col1
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-5965
SELECT ALL 55 AS col2, 81 + 41 DIV NULLIF ( 99, - NULLIF ( - 31, + 73 ) )
----
55
81

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL 55 AS col2, 81 + 41 / NULLIF ( 99, - NULLIF ( - 31, + 73 ) )
----
55
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT MIN( + - ( - ( - CASE - - 69 WHEN ( - 81 ) THEN 31 END ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5966
SELECT MIN ( + - ( - ( - CASE - - 69 WHEN ( - 81 ) THEN 31 END ) ) )
----
NULL

query II rowsort
SELECT DISTINCT 8, 20 AS col2
----
8
20

query II rowsort
SELECT ALL 90 * + 5, 51 * CASE + 47 WHEN - + 59 THEN NULL WHEN 35 THEN + 22 ELSE 82 + - 75 END AS col0
----
450
357

query I rowsort
SELECT + 95 * + CASE - 19 WHEN + 40 THEN - 33 ELSE + NULLIF ( - 88, 37 / 46 ) END * + 97
----
-810920

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5970
SELECT ALL 1 * + - 92 * CAST( - 66 AS SIGNED ) DIV - + 46 + - - 81
----
-51

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL 1 * + - 92 * CAST ( - 66 AS INTEGER ) / - + 46 + - - 81
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5971
SELECT ALL 66 AS col0, 18 * + NULLIF ( 35, 60 + - + ( 88 ) ) + + COUNT( * ) AS col2
----
66
631

skipif mysql # not compatible
query II rowsort label-5971
SELECT ALL 66 AS col0, 18 * + NULLIF ( 35, 60 + - + ( 88 ) ) + + COUNT ( * ) AS col2
----
66
631

query I rowsort
SELECT - CASE 51 WHEN 35 + 89 THEN 52 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5973
SELECT + - 95 + + 57 + - ( - 44 ) DIV - 91 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5973
SELECT + - 95 + + 57 + - ( - 44 ) / - 91 AS col1
----
-38

query II rowsort
SELECT 95 AS col2, 33 * + 88 AS col1
----
95
2904

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5975
SELECT DISTINCT + 93 AS col2, 25 + + + 67 - SUM( ALL + 55 ) DIV - 21
----
93
94

skipif mysql # not compatible
query II rowsort label-5975
SELECT DISTINCT + 93 AS col2, 25 + + + 67 - SUM ( ALL + 55 ) / - 21
----
93
94

query I rowsort
SELECT ALL + 15 * + + CASE 49 WHEN - + 43 THEN NULL ELSE + 80 + - 10 END + 46 * 70
----
4270

onlyif mysql # DIV for integer division: 
query I rowsort label-5977
SELECT + + 9 DIV - ( - ( - - 60 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5977
SELECT + + 9 / - ( - ( - - 60 ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5978
SELECT + 20 * - 27 * + COALESCE ( + + ( - 34 ), - 24 DIV 65, + NULLIF ( + 74, - 9 * + 74 ) ) AS col0
----
18360

skipif mysql # not compatible
query I rowsort label-5978
SELECT + 20 * - 27 * + COALESCE ( + + ( - 34 ), - 24 / 65, + NULLIF ( + 74, - 9 * + 74 ) ) AS col0
----
18360

query I rowsort
SELECT 29 + - - 80
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT + MIN( - - 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT + MIN ( - - 43 ) AS col1
----
43

query I rowsort
SELECT - 86 + ( + ( - 82 ) )
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT DISTINCT - 32 DIV - - 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT - 32 / - - 33 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL - 99 * - MIN( 98 ) + - COALESCE ( + 38, - - 80 * - 99, CASE + MAX( - 36 ) WHEN + 19 + + 77 THEN + 45 * - 91 END * CASE WHEN NULL IS NOT NULL THEN 19 WHEN + 19 + 88 * - 92 IS NOT NULL THEN 83 - + 22 ELSE NULL END )
----
9664

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - 99 * - MIN ( 98 ) + - COALESCE ( + 38, - - 80 * - 99, CASE + MAX ( - 36 ) WHEN + 19 + + 77 THEN + 45 * - 91 END * CASE WHEN NULL IS NOT NULL THEN 19 WHEN + 19 + 88 * - 92 IS NOT NULL THEN 83 - + 22 ELSE NULL END )
----
9664

query I rowsort
SELECT DISTINCT 87 + 28
----
115

query II rowsort
SELECT - 46, + 63 AS col2
----
-46
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT + - 14 * 82 DIV + 47 * + COUNT( * ) + - + COUNT( * ) + + + 45
----
20

skipif mysql # not compatible
query I rowsort label-5986
SELECT + - 14 * 82 / + 47 * + COUNT ( * ) + - + COUNT ( * ) + + + 45
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5987
SELECT - ( - 46 ) AS col0, + COUNT( * ) * + - 99
----
46
-99

skipif mysql # not compatible
query II rowsort label-5987
SELECT - ( - 46 ) AS col0, + COUNT ( * ) * + - 99
----
46
-99

query II rowsort
SELECT + 8, - 47 * 32 AS col0
----
8
-1504

query I rowsort
SELECT ALL - 47 * + ( - - 45 ) AS col2
----
-2115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5990
SELECT DISTINCT - COUNT( ALL - 4 ) + 8 - - - CAST( - 95 AS SIGNED ) DIV + + MAX( + 30 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - COUNT ( ALL - 4 ) + 8 - - - CAST ( - 95 AS INTEGER ) / + + MAX ( + 30 ) AS col1
----
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT DISTINCT - 50 / - CASE - 50 WHEN - - 94 * 57 - + 86 + - + 89 * - CAST( + 67 AS SIGNED ) THEN 92 / 76 WHEN + 95 * 22 THEN NULL ELSE NULL END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT - 50 / - CASE - 50 WHEN - - 94 * 57 - + 86 + - + 89 * - CAST ( + 67 AS INTEGER ) THEN 92 / 76 WHEN + 95 * 22 THEN NULL ELSE NULL END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT DISTINCT - 77 + 78 col1, + COUNT( * ) + - + 73
----
1
-72

skipif mysql # not compatible
query II rowsort label-5993
SELECT DISTINCT - 77 + 78 col1, + COUNT ( * ) + - + 73
----
1
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5994
SELECT DISTINCT - CAST( - - 35 AS SIGNED ) AS col1, 89
----
-35
89

skipif mysql # not compatible
query II rowsort label-5994
SELECT DISTINCT - CAST ( - - 35 AS INTEGER ) AS col1, 89
----
-35
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL - 33 * + ( 44 ) * - + 36 * COUNT( * ) - 29 AS col1
----
52243

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL - 33 * + ( 44 ) * - + 36 * COUNT ( * ) - 29 AS col1
----
52243

query I rowsort
SELECT ALL - 60 - - - 49 * + 51
----
-2559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT ALL 14 - + 89 * 6 * CAST( NULL AS SIGNED ) + + - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL 14 - + 89 * 6 * CAST ( NULL AS INTEGER ) + + - 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5998
SELECT ALL + COALESCE ( - 72, - + COUNT( * ) * + 17 * - CASE + 92 WHEN - 72 / + 84 THEN 47 * 42 + - 25 WHEN + AVG ( ALL 38 ) * 29 THEN NULL WHEN + COALESCE ( - 15, - CAST( + COUNT( * ) AS SIGNED ) ) + + 12 * - 32 THEN 79 * 39 END + + 9 * MAX( NULLIF ( 2, - 84 / 44 ) ) ) * 20
----
-1440

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL + COALESCE ( - 72, - + COUNT ( * ) * + 17 * - CASE + 92 WHEN - 72 / + 84 THEN 47 * 42 + - 25 WHEN + AVG ( ALL 38 ) * 29 THEN NULL WHEN + COALESCE ( - 15, - CAST ( + COUNT ( * ) AS INTEGER ) ) + + 12 * - 32 THEN 79 * 39 END + + 9 * MAX ( NULLIF ( 2, - 84 / 44 ) ) ) * 20
----
-1440

query I rowsort
SELECT 26 - + ( + 88 ) - 98 * + 68
----
-6726

query I rowsort
SELECT 6 * - 5 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT 9 + - COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-6001
SELECT 9 + - COUNT ( * ) col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6002
SELECT COUNT( * ) * - COUNT( * ) AS col1, 80 - - 44 AS col2
----
-1
124

skipif mysql # not compatible
query II rowsort label-6002
SELECT COUNT ( * ) * - COUNT ( * ) AS col1, 80 - - 44 AS col2
----
-1
124

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6004
SELECT - ( + + 4 ) + 75 - + MAX( 94 ) DIV 92 col0
----
70

skipif mysql # not compatible
query I rowsort label-6004
SELECT - ( + + 4 ) + 75 - + MAX ( 94 ) / 92 col0
----
70

query I rowsort
SELECT ALL - 3 * - + 92 + 60
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT - COALESCE ( 76, 34, - + 60, + SUM( CASE - + 70 WHEN + 51 * + 63 THEN COALESCE ( 62, ( 1 ) * + 81 ) * + 33 ELSE + 59 END ) )
----
-76

skipif mysql # not compatible
query I rowsort label-6006
SELECT - COALESCE ( 76, 34, - + 60, + SUM ( CASE - + 70 WHEN + 51 * + 63 THEN COALESCE ( 62, ( 1 ) * + 81 ) * + 33 ELSE + 59 END ) )
----
-76

query I rowsort
SELECT ALL 37 + - 33 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + 41 + - 61 + + + 60 * 13 * + COUNT( * ) * + - 45 * - 84
----
2948380

skipif mysql # not compatible
query I rowsort label-6008
SELECT + 41 + - 61 + + + 60 * 13 * + COUNT ( * ) * + - 45 * - 84
----
2948380

query I rowsort
SELECT ALL - 42 * + - 83 + 82 + - 83
----
3485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6010
SELECT COALESCE ( - 3, - 93 * - 15 + - CASE + - 8 WHEN - - CAST( NULL AS SIGNED ) / + CAST( - 73 / - 70 AS SIGNED ) + 60 THEN NULL WHEN 85 THEN 15 * 62 + 45 ELSE + NULLIF ( - 4, 65 + + 91 ) END + + COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-6010
SELECT COALESCE ( - 3, - 93 * - 15 + - CASE + - 8 WHEN - - CAST ( NULL AS INTEGER ) / + CAST ( - 73 / - 70 AS INTEGER ) + 60 THEN NULL WHEN 85 THEN 15 * 62 + 45 ELSE + NULLIF ( - 4, 65 + + 91 ) END + + COUNT ( * ) )
----
-3

query I rowsort
SELECT + 24 + + 61 * - 83 * + 48 col0
----
-243000

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL ( - - MIN( 91 ) ) + - + 59
----
32

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL ( - - MIN ( 91 ) ) + - + 59
----
32

query I rowsort
SELECT + NULLIF ( - COALESCE ( + 21, - 24 ), 95 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6014
SELECT + + ( + - 15 ) DIV - COALESCE ( 64, - - 61 ) + + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6014
SELECT + + ( + - 15 ) / - COALESCE ( 64, - - 61 ) + + 39 AS col0
----
39

query I rowsort
SELECT DISTINCT - 59 + 6 - + 89
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT DISTINCT 57 + 76 + - - 95 AS col0, - 58 + 37 + - COUNT( DISTINCT 16 )
----
228
-22

skipif mysql # not compatible
query II rowsort label-6016
SELECT DISTINCT 57 + 76 + - - 95 AS col0, - 58 + 37 + - COUNT ( DISTINCT 16 )
----
228
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT DISTINCT + 18 * - COUNT( * ) * + 91 AS col0
----
-1638

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT + 18 * - COUNT ( * ) * + 91 AS col0
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT 1 * - SUM( ALL + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-6018
SELECT 1 * - SUM ( ALL + 77 )
----
-77

query I rowsort
SELECT 4 + + 69 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ( + 77 ) + + + 10 - + 2 * - - 48 + CASE 6 WHEN 68 THEN 13 ELSE MAX( 92 ) * - 20 END * 68
----
-125129

skipif mysql # not compatible
query I rowsort label-6020
SELECT ( + 77 ) + + + 10 - + 2 * - - 48 + CASE 6 WHEN 68 THEN 13 ELSE MAX ( 92 ) * - 20 END * 68
----
-125129

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT DISTINCT - COUNT( + COALESCE ( + + 46, + + 88 - - + 80 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT - COUNT ( + COALESCE ( + + 46, + + 88 - - + 80 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6022
SELECT - 57 * CAST( NULL AS SIGNED ) / + ( COUNT( * ) ) + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT - 57 * CAST ( NULL AS INTEGER ) / + ( COUNT ( * ) ) + 78 AS col2
----
NULL

query I rowsort
SELECT 10 + + 76
----
86

query I rowsort
SELECT 16 * 29
----
464

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

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

query I rowsort
SELECT 26 + - 51 AS col0
----
-25

query I rowsort
SELECT 35 + + - 40 + + 47 * - 39 AS col0
----
-1838

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL SUM( ALL + - 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL SUM ( ALL + - 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT COALESCE ( + 50, - - COUNT( * ) * + 26 ) * 12 col0
----
600

skipif mysql # not compatible
query I rowsort label-6029
SELECT COALESCE ( + 50, - - COUNT ( * ) * + 26 ) * 12 col0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT 2 * - 7 * + - COUNT( * ) + + 68 * 40 + + ( - MAX( ALL - + 46 ) ) + + 32 * 30 AS col0
----
3740

skipif mysql # not compatible
query I rowsort label-6030
SELECT 2 * - 7 * + - COUNT ( * ) + + 68 * 40 + + ( - MAX ( ALL - + 46 ) ) + + 32 * 30 AS col0
----
3740

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT DISTINCT + 11 DIV - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT + 11 / - 47 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL + 2 * 55 * - COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + 2 * 55 * - COUNT ( * )
----
-110

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

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL - - 27 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT DISTINCT + 54 DIV 91 + + COUNT( * ) + + + 10 + ( + - 62 ) * + 16 * + 30
----
-29749

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + 54 / 91 + + COUNT ( * ) + + + 10 + ( + - 62 ) * + 16 * + 30
----
-29749

query I rowsort
SELECT ALL ( - 31 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT - MIN( ALL - 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6037
SELECT - MIN ( ALL - 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL + - 97 + + NULLIF ( - 17, - - 85 + 27 ) + - 31 * - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + - 97 + + NULLIF ( - 17, - - 85 + 27 ) + - 31 * - COUNT ( * ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6039
SELECT DISTINCT 7 + + CASE + 27 WHEN - 62 * + - COALESCE ( + AVG ( CAST( 38 AS SIGNED ) ), MIN( DISTINCT - ( - 54 ) ) + 26, + 18 ) + COUNT( * ) - + COUNT( * ) THEN NULL ELSE + 41 END
----
48

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT 7 + + CASE + 27 WHEN - 62 * + - COALESCE ( + AVG ( CAST ( 38 AS INTEGER ) ), MIN ( DISTINCT - ( - 54 ) ) + 26, + 18 ) + COUNT ( * ) - + COUNT ( * ) THEN NULL ELSE + 41 END
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT DISTINCT + 4 + 96 + - - 3 * + - ( + MAX( - 62 ) ) col2
----
286

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT + 4 + 96 + - - 3 * + - ( + MAX ( - 62 ) ) col2
----
286

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT + COALESCE ( + - 46, 2, + + CAST( NULL AS SIGNED ) * - 88 )
----
-46

skipif mysql # not compatible
query I rowsort label-6042
SELECT + COALESCE ( + - 46, 2, + + CAST ( NULL AS INTEGER ) * - 88 )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-6043
SELECT + COUNT( * ) + - 88 - + ( 56 ) - - 87 - + 1 AS col0, COUNT( * ) AS col2
----
-57
1

skipif mysql # not compatible
query II rowsort label-6043
SELECT + COUNT ( * ) + - 88 - + ( 56 ) - - 87 - + 1 AS col0, COUNT ( * ) AS col2
----
-57
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT - COUNT( 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-6044
SELECT - COUNT ( 4 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6045
SELECT ALL + CASE WHEN NOT 33 IS NOT NULL THEN NULL WHEN NOT NULL BETWEEN - - 4 AND - COUNT( * ) * + - CAST( + 37 AS SIGNED ) + 81 AND NOT 22 * - ( - COUNT( * ) ) IN ( AVG ( DISTINCT + 89 ) / + CASE 68 + + 68 WHEN - 95 + 8 THEN CAST( NULL AS SIGNED ) WHEN 33 THEN COUNT( * ) ELSE NULL END ) THEN + 27 * 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL + CASE WHEN NOT 33 IS NOT NULL THEN NULL WHEN NOT NULL BETWEEN - - 4 AND - COUNT ( * ) * + - CAST ( + 37 AS INTEGER ) + 81 AND NOT 22 * - ( - COUNT ( * ) ) IN ( AVG ( DISTINCT + 89 ) / + CASE 68 + + 68 WHEN - 95 + 8 THEN CAST ( NULL AS INTEGER ) WHEN 33 THEN COUNT ( * ) ELSE NULL END ) THEN + 27 * 74 END AS col2
----
NULL

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

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

query I rowsort
SELECT - + ( + COALESCE ( + 68, - + 35, 31 ) ) * + 93
----
-6324

query I rowsort
SELECT DISTINCT + + 72 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT DISTINCT 5 * SUM( ALL - + 70 ) - + COALESCE ( + + 49, - COUNT( * ) * + 83 + + COUNT( DISTINCT + 8 ) ) + 38 col0
----
-361

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT 5 * SUM ( ALL - + 70 ) - + COALESCE ( + + 49, - COUNT ( * ) * + 83 + + COUNT ( DISTINCT + 8 ) ) + 38 col0
----
-361

query I rowsort
SELECT + 86 + + 67 * - 25 col2
----
-1589

query I rowsort
SELECT - ( - 63 ) * - 5 * - 23 * + 19 * ( 26 )
----
3579030

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL - 22 * - COUNT( * ) - + + 42 + - 17 * - 55 + 80 * 14 + - - 59 - - 21 * + 54 AS col0
----
3228

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL - 22 * - COUNT ( * ) - + + 42 + - 17 * - 55 + 80 * 14 + - - 59 - - 21 * + 54 AS col0
----
3228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6054
SELECT + 20 DIV - COALESCE ( COUNT( * ), + - ( - CAST( NULL AS SIGNED ) ) * + 41 DIV + 35 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6054
SELECT + 20 / - COALESCE ( COUNT ( * ), + - ( - CAST ( NULL AS INTEGER ) ) * + 41 / + 35 ) AS col0
----
-20

query I rowsort
SELECT + NULLIF ( NULLIF ( 57, + 42 + + 94 ), + 55 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6056
SELECT DISTINCT NULLIF ( + 86, - 20 ) DIV + ( + - 69 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT NULLIF ( + 86, - 20 ) / + ( + - 69 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT + 55 DIV 36 * - - 13
----
13

skipif mysql # not compatible
query I rowsort label-6057
SELECT + 55 / 36 * - - 13
----
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6058
SELECT + 67 * - - NULLIF ( - + 30, + + CASE + 56 WHEN ( - 39 ) THEN + - 41 WHEN 78 THEN + CAST( NULL AS SIGNED ) ELSE NULL END ) DIV + NULLIF ( + 2, AVG ( 96 ) )
----
-1005

skipif mysql # not compatible
query I rowsort label-6058
SELECT + 67 * - - NULLIF ( - + 30, + + CASE + 56 WHEN ( - 39 ) THEN + - 41 WHEN 78 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END ) / + NULLIF ( + 2, AVG ( 96 ) )
----
-1005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6059
SELECT ALL 78 DIV + - CASE + + 59 WHEN + 58 THEN NULL WHEN + MIN( ALL + - 83 ) + - COUNT( * ) * 18 THEN NULL ELSE + 45 DIV - 42 END AS col2
----
78

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL 78 / + - CASE + + 59 WHEN + 58 THEN NULL WHEN + MIN ( ALL + - 83 ) + - COUNT ( * ) * 18 THEN NULL ELSE + 45 / - 42 END AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT CASE + + 81 WHEN ( + 43 ) * + COUNT( * ) + 5 + + 69 THEN AVG ( + 63 ) * + ( 41 + - COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT CASE + + 81 WHEN ( + 43 ) * + COUNT ( * ) + 5 + + 69 THEN AVG ( + 63 ) * + ( 41 + - COUNT ( * ) ) END AS col2
----
NULL

query I rowsort
SELECT + 43 * 84
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT COALESCE ( + 71, + COUNT( ALL - 44 ) )
----
71

skipif mysql # not compatible
query I rowsort label-6062
SELECT COALESCE ( + 71, + COUNT ( ALL - 44 ) )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6063
SELECT DISTINCT CASE 28 WHEN - - ( + ( 97 ) ) + - - 86 THEN - - 16 + ( + - 70 ) * COUNT( * ) WHEN 18 THEN + 92 + - ( + 20 ) * + CAST( NULL AS SIGNED ) ELSE 51 END * + 8
----
408

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT CASE 28 WHEN - - ( + ( 97 ) ) + - - 86 THEN - - 16 + ( + - 70 ) * COUNT ( * ) WHEN 18 THEN + 92 + - ( + 20 ) * + CAST ( NULL AS INTEGER ) ELSE 51 END * + 8
----
408

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT ALL + CAST( 51 AS SIGNED ) * - COUNT( * ) + + 39 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL + CAST ( 51 AS INTEGER ) * - COUNT ( * ) + + 39 AS col0
----
-12

query I rowsort
SELECT - - COALESCE ( + 67, + - 22 ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT ALL + - CAST( - MAX( + + 23 ) AS SIGNED ) + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL + - CAST ( - MAX ( + + 23 ) AS INTEGER ) + COUNT ( * ) AS col0
----
24

query I rowsort
SELECT + 10 + - 31
----
-21

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

query I rowsort
SELECT - + ( + - 52 ) col2
----
52

query I rowsort
SELECT + - 20 * - 98 AS col1
----
1960

onlyif mysql # aggregate syntax: 
query II rowsort label-6072
SELECT ALL - + COUNT( * ) + - 70 - - COUNT( * ) * - 82 AS col0, 33 * 44 * + MAX( + + 39 ) + + 13 + 56 AS col2
----
-153
56697

skipif mysql # not compatible
query II rowsort label-6072
SELECT ALL - + COUNT ( * ) + - 70 - - COUNT ( * ) * - 82 AS col0, 33 * 44 * + MAX ( + + 39 ) + + 13 + 56 AS col2
----
-153
56697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6073
SELECT - + COALESCE ( - 55, + - 54 DIV - + 18 ) + + COUNT( * ) + + 62 * - SUM( - - 44 ) * + + 52 DIV + COUNT( * ) + + 50
----
-141750

skipif mysql # not compatible
query I rowsort label-6073
SELECT - + COALESCE ( - 55, + - 54 / - + 18 ) + + COUNT ( * ) + + 62 * - SUM ( - - 44 ) * + + 52 / + COUNT ( * ) + + 50
----
-141750

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6074
SELECT - MIN( 26 ), COALESCE ( + - 67, - COUNT( * ), - 8 * 0 DIV + 67 ) AS col1
----
-26
-67

skipif mysql # not compatible
query II rowsort label-6074
SELECT - MIN ( 26 ), COALESCE ( + - 67, - COUNT ( * ), - 8 * 0 / + 67 ) AS col1
----
-26
-67

query I rowsort
SELECT - - 70 + - 91
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL + COUNT( DISTINCT - + 37 ) * - 66
----
-66

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL + COUNT ( DISTINCT - + 37 ) * - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL - - 78 * + + NULLIF ( 35, + + 56 / - - MAX( ALL - 73 ) )
----
2730

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - - 78 * + + NULLIF ( 35, + + 56 / - - MAX ( ALL - 73 ) )
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT - NULLIF ( + 65, + - 81 * + + 10 / + COUNT( * ) + - 43 ) * - 20 col1
----
1300

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - NULLIF ( + 65, + - 81 * + + 10 / + COUNT ( * ) + - 43 ) * - 20 col1
----
1300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6079
SELECT ALL - 10 - + COALESCE ( - - 50, + ( - 60 ) * + 97 + + - 70 DIV + 99 * + 51 * 25, 34 * - 50 + + COUNT( * ) ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL - 10 - + COALESCE ( - - 50, + ( - 60 ) * + 97 + + - 70 / + 99 * + 51 * 25, 34 * - 50 + + COUNT ( * ) ) AS col2
----
-60

query I rowsort
SELECT ALL - - ( 76 ) * 2 col2
----
152

query I rowsort
SELECT - + 93 * + + 20 + - - 74 + 15 AS col2
----
-1771

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6082
SELECT - 9 + 88, CAST( NULL AS SIGNED ) AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-6082
SELECT - 9 + 88, CAST ( NULL AS INTEGER ) AS col1
----
79
NULL

query I rowsort
SELECT + 39 * 45
----
1755

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT ALL - 1 DIV + - 43
----
0

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - 1 / + - 43
----
0

query I rowsort
SELECT CASE + 72 WHEN + 91 THEN + 62 - + 2 WHEN + 28 THEN + 39 END * + 40 - + + 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6086
SELECT + 74 DIV + ( - - 90 ) + MIN( DISTINCT - 66 ) + + + COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-6086
SELECT + 74 / + ( - - 90 ) + MIN ( DISTINCT - 66 ) + + + COUNT ( * ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL + NULLIF ( - - 36, - COUNT( * ) + - COUNT( * ) * + 62 + + 37 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL + NULLIF ( - - 36, - COUNT ( * ) + - COUNT ( * ) * + 62 + + 37 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6088
SELECT DISTINCT ( 59 ) * + + 61 AS col0, COUNT( * ) AS col0
----
3599
1

skipif mysql # not compatible
query II rowsort label-6088
SELECT DISTINCT ( 59 ) * + + 61 AS col0, COUNT ( * ) AS col0
----
3599
1

query I rowsort
SELECT - 79 * - 84
----
6636

query I rowsort
SELECT + 97 - - 47 * - + 32 AS col2
----
-1407

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

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

query I rowsort
SELECT - 67 + - 55 AS col2
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ALL ( - 17 ) * - COUNT( * ) * CASE - - 22 WHEN 83 THEN 8 * CASE 41 WHEN + - 98 THEN NULL WHEN - 54 THEN 31 END + + 91 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL ( - 17 ) * - COUNT ( * ) * CASE - - 22 WHEN 83 THEN 8 * CASE 41 WHEN + - 98 THEN NULL WHEN - 54 THEN 31 END + + 91 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6094
SELECT COUNT( * ) * 26 DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6094
SELECT COUNT ( * ) * 26 / - 73 AS col2
----
0

query I rowsort
SELECT ( + 35 ) * + 87 * + 79
----
240555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6096
SELECT ALL CAST( 91 AS SIGNED ) + + - 45
----
46

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL CAST ( 91 AS INTEGER ) + + - 45
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT COUNT( * ) + - 57 * COUNT( * ) * + - CAST( NULL AS SIGNED ) + + - 16 * - COALESCE ( + 62, 12 * - - 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT COUNT ( * ) + - 57 * COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + + - 16 * - COALESCE ( + 62, 12 * - - 36 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL NULLIF ( + COUNT( * ), - + ( - COUNT( * ) ) ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL NULLIF ( + COUNT ( * ), - + ( - COUNT ( * ) ) ) + - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT ALL - 11 * + 83 * - - 47 * + NULLIF ( + 29, + COUNT( * ) / + + 86 ) AS col2
----
-1244419

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - 11 * + 83 * - - 47 * + NULLIF ( + 29, + COUNT ( * ) / + + 86 ) AS col2
----
-1244419

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT + MIN( + 23 ) + 38 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT + MIN ( + 23 ) + 38 AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-6101
SELECT DISTINCT - 77, - 33 + CASE - 47 WHEN - 67 THEN NULL WHEN 47 THEN - + 27 ELSE NULL END + 78 + - + CASE 10 WHEN - 37 * 99 + 32 * 61 THEN - COALESCE ( 55, 84 ) * COUNT( * ) WHEN 29 * + 21 THEN NULL END * 23 * + 68 col2
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-6101
SELECT DISTINCT - 77, - 33 + CASE - 47 WHEN - 67 THEN NULL WHEN 47 THEN - + 27 ELSE NULL END + 78 + - + CASE 10 WHEN - 37 * 99 + 32 * 61 THEN - COALESCE ( 55, 84 ) * COUNT ( * ) WHEN 29 * + 21 THEN NULL END * 23 * + 68 col2
----
-77
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT DISTINCT 54 + 32 DIV 34 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT 54 + 32 / 34 AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6103
SELECT DISTINCT - + 76 AS col0, + NULLIF ( - SUM( 77 ), + 11 * 29 - - + 82 + - 28 )
----
-76
-77

skipif mysql # not compatible
query II rowsort label-6103
SELECT DISTINCT - + 76 AS col0, + NULLIF ( - SUM ( 77 ), + 11 * 29 - - + 82 + - 28 )
----
-76
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT + MIN( ALL - - 3 ) * + + ( - 40 )
----
-120

skipif mysql # not compatible
query I rowsort label-6104
SELECT + MIN ( ALL - - 3 ) * + + ( - 40 )
----
-120

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

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

query I rowsort
SELECT ( + 12 ) * + 31
----
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6107
SELECT CAST( - 28 AS SIGNED ) + - - NULLIF ( + 54, - - 37 * - - COUNT( * ) * - 63 * + 33 + - + 50 - + CAST( 51 AS DECIMAL ) * ( + CASE COUNT( * ) WHEN 23 / - ( 70 * - 36 ) - 6 THEN 70 WHEN + COUNT( * ) * ( + 17 ) THEN - 80 ELSE COUNT( 38 ) + 37 END + 57 ) ) * - 9
----
-514

skipif mysql # not compatible
query I rowsort label-6107
SELECT CAST ( - 28 AS INTEGER ) + - - NULLIF ( + 54, - - 37 * - - COUNT ( * ) * - 63 * + 33 + - + 50 - + CAST ( 51 AS REAL ) * ( + CASE COUNT ( * ) WHEN 23 / - ( 70 * - 36 ) - 6 THEN 70 WHEN + COUNT ( * ) * ( + 17 ) THEN - 80 ELSE COUNT ( 38 ) + 37 END + 57 ) ) * - 9
----
-514

query I rowsort
SELECT ALL 69 * - - 28 AS col1
----
1932

query II rowsort
SELECT - 54 AS col1, + 96 + - 56
----
-54
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6110
SELECT SUM( - 19 ) * + 83 AS col0, COALESCE ( - NULLIF ( ( + 97 ), - 74 - + COALESCE ( - - 14, - 85 ) ), + 0, - COUNT( * ) ) AS col0
----
-1577
-97

skipif mysql # not compatible
query II rowsort label-6110
SELECT SUM ( - 19 ) * + 83 AS col0, COALESCE ( - NULLIF ( ( + 97 ), - 74 - + COALESCE ( - - 14, - 85 ) ), + 0, - COUNT ( * ) ) AS col0
----
-1577
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6111
SELECT ( - - 33 ) * + 80 + + 94 DIV - 86 + - 53 * - 45 AS col1
----
5024

skipif mysql # not compatible
query I rowsort label-6111
SELECT ( - - 33 ) * + 80 + + 94 / - 86 + - 53 * - 45 AS col1
----
5024

query II rowsort
SELECT 94 - + ( 3 ) + + 60, - 29 AS col1
----
151
-29

query II rowsort
SELECT 0 + - 61 AS col0, - 31 col1
----
-61
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6114
SELECT ALL 73 AS col0, COUNT( * ) - + CAST( NULL AS SIGNED ) * 12 * - 12
----
73
NULL

skipif mysql # not compatible
query II rowsort label-6114
SELECT ALL 73 AS col0, COUNT ( * ) - + CAST ( NULL AS INTEGER ) * 12 * - 12
----
73
NULL

query I rowsort
SELECT ALL 68 * 72 * - 96 AS col2
----
-470016

query I rowsort
SELECT DISTINCT - 97 * - 52
----
5044

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT 9 DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT 9 / + 29
----
0

query I rowsort
SELECT 6 * - 93 + - 9 - + 50 AS col1
----
-617

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL - CASE 33 WHEN 79 THEN 62 + - 64 + - 94 * + COUNT( * ) END + + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL - CASE 33 WHEN 79 THEN 62 + - 64 + - 94 * + COUNT ( * ) END + + - 53 AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-6120
SELECT 12 AS col2, COUNT ( * ) AS col1
----
12
1

query II rowsort
SELECT + 95 AS col0, + ( - 17 ) AS col0
----
95
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6122
SELECT DISTINCT - CAST( 17 AS SIGNED ) + - COUNT( * ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT - CAST ( 17 AS INTEGER ) + - COUNT ( * ) col1
----
-18

query II rowsort
SELECT 26 AS col0, 69 AS col2
----
26
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL + 70 + 43 + 80 * + + MIN( ALL + - 56 ) + + 87 + + + 31 * - - 22
----
-3598

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL + 70 + 43 + 80 * + + MIN ( ALL + - 56 ) + + 87 + + + 31 * - - 22
----
-3598

onlyif mysql # aggregate syntax: 
query III rowsort label-6125
SELECT ALL - 9 AS col0, COUNT( DISTINCT - + 29 ) * + 33, - - 92 - + - 89 - + 36 AS col0
----
-9
33
145

skipif mysql # not compatible
query III rowsort label-6125
SELECT ALL - 9 AS col0, COUNT ( DISTINCT - + 29 ) * + 33, - - 92 - + - 89 - + 36 AS col0
----
-9
33
145

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT ALL 1 + - - 36 - + - 67 * + COUNT( DISTINCT - ( + 91 ) ) * - 3
----
-164

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL 1 + - - 36 - + - 67 * + COUNT ( DISTINCT - ( + 91 ) ) * - 3
----
-164

query II rowsort
SELECT + 9 AS col2, + 28 AS col0
----
9
28

query II rowsort
SELECT DISTINCT - 86, ( 1 ) * 75 col0
----
-86
75

query II rowsort
SELECT ALL 77 + + + 40 AS col0, - ( + + 12 ) * - 48
----
117
576

query II rowsort
SELECT ALL - 54, 89 AS col2
----
-54
89

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6133
SELECT + ( + + CAST( + 65 AS SIGNED ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6133
SELECT + ( + + CAST ( + 65 AS INTEGER ) ) AS col2
----
65

query I rowsort
SELECT + NULLIF ( - 67, - 40 * + 42 - - 62 ) AS col0
----
-67

query I rowsort
SELECT ALL + 84 - - + CASE - 30 WHEN - 24 THEN - - 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT + - 0 * - COUNT( * ) - + - 78
----
78

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

query I rowsort
SELECT 36 - ( + 58 ) + - 25
----
-47

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

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

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

query I rowsort
SELECT + 50 * + 14
----
700

query I rowsort
SELECT + 8 + - 35 * 71
----
-2477

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT - 17 DIV - - 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6142
SELECT - 17 / - - 29 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT 82 * + 58 DIV - + COUNT( * ) col2
----
-4756

skipif mysql # not compatible
query I rowsort label-6143
SELECT 82 * + 58 / - + COUNT ( * ) col2
----
-4756

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT + COUNT( * ) * + 49 * + MIN( ALL 25 ) * - 94 + - + 68 + - 34 * ( - 68 )
----
-112906

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + COUNT ( * ) * + 49 * + MIN ( ALL 25 ) * - 94 + - + 68 + - 34 * ( - 68 )
----
-112906

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

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

query II rowsort
SELECT - 67 AS col0, + 7 AS col2
----
-67
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6147
SELECT 4 + + + MAX( ALL 17 ) + + - COUNT( * ) DIV - SUM( - 7 ) + - 50
----
-29

skipif mysql # not compatible
query I rowsort label-6147
SELECT 4 + + + MAX ( ALL 17 ) + + - COUNT ( * ) / - SUM ( - 7 ) + - 50
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6148
SELECT ALL 92 * CASE - 38 WHEN - 92 THEN - 45 + - 82 WHEN + ( - 17 ) * - CAST( 53 AS SIGNED ) * - 53 + - COUNT( * ) - 38 THEN + COALESCE ( - 43, + 17 + + 91 * - 94 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL 92 * CASE - 38 WHEN - 92 THEN - 45 + - 82 WHEN + ( - 17 ) * - CAST ( 53 AS INTEGER ) * - 53 + - COUNT ( * ) - 38 THEN + COALESCE ( - 43, + 17 + + 91 * - 94 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT 10 * - MAX( + - 7 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6149
SELECT 10 * - MAX ( + - 7 ) AS col1
----
70

query I rowsort
SELECT DISTINCT 15 + - ( + 51 )
----
-36

query I rowsort
SELECT DISTINCT 27 * - 57 * + 69 col1
----
-106191

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL - CASE + + 11 WHEN + MAX( ALL + 61 ) * - NULLIF ( + + COUNT( * ), 23 / - - 39 ) * + MIN( - COALESCE ( 92, - - 17, 81 + + 52 * 42 ) ) - - 98 * - 48 THEN NULL WHEN - COUNT( * ) * 0 THEN - AVG ( DISTINCT 39 ) END + - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - CASE + + 11 WHEN + MAX ( ALL + 61 ) * - NULLIF ( + + COUNT ( * ), 23 / - - 39 ) * + MIN ( - COALESCE ( 92, - - 17, 81 + + 52 * 42 ) ) - - 98 * - 48 THEN NULL WHEN - COUNT ( * ) * 0 THEN - AVG ( DISTINCT 39 ) END + - 80 AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( + 49, + + 77 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT 35 * - - COUNT( * ) col0
----
35

skipif mysql # not compatible
query I rowsort label-6154
SELECT 35 * - - COUNT ( * ) col0
----
35

query I rowsort
SELECT ALL ( + 6 ) + - - 38 AS col2
----
44

query II rowsort
SELECT + 61 - - 31 + + 57 col1, 22
----
149
22

query II rowsort
SELECT 38 * + - 67 + - 22 * ( + 3 ), 79 AS col0
----
-2612
79

query I rowsort
SELECT CASE + 77 WHEN + - 77 * 68 THEN - 27 + + 46 ELSE - 48 - 35 + + - 0 + - - 46 * + 51 END
----
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + CASE 50 WHEN + + ( 97 ) * - 63 * + - 96 THEN - 84 WHEN 71 THEN - 80 / - - 48 + + COUNT( * ) * + 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT + CASE 50 WHEN + + ( 97 ) * - 63 * + - 96 THEN - 84 WHEN 71 THEN - 80 / - - 48 + + COUNT ( * ) * + 26 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6160
SELECT ALL - COUNT( * ) * + - 75 + 69 AS col1, CAST( - + 18 AS SIGNED ) * AVG ( ALL - 15 ) * + CASE - 70 WHEN - COUNT( * ) THEN - - AVG ( 0 ) - - 69 END
----
144
NULL

skipif mysql # not compatible
query II rowsort label-6160
SELECT ALL - COUNT ( * ) * + - 75 + 69 AS col1, CAST ( - + 18 AS INTEGER ) * AVG ( ALL - 15 ) * + CASE - 70 WHEN - COUNT ( * ) THEN - - AVG ( 0 ) - - 69 END
----
144
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6161
SELECT ALL COUNT( - + 63 ) DIV - - 21
----
0

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL COUNT ( - + 63 ) / - - 21
----
0

query I rowsort
SELECT ALL 96 * + 73 + + 20
----
7028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6163
SELECT - 7 - + 74 AS col2, - CASE + NULLIF ( - 82, 66 * - CAST( NULL AS SIGNED ) * + COUNT( * ) + - ( - COUNT( * ) ) + + 25 * - 88 * - 48 ) WHEN + 69 * 15 THEN NULL ELSE - 47 END + - COUNT( * ) AS col1
----
-81
46

skipif mysql # not compatible
query II rowsort label-6163
SELECT - 7 - + 74 AS col2, - CASE + NULLIF ( - 82, 66 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - ( - COUNT ( * ) ) + + 25 * - 88 * - 48 ) WHEN + 69 * 15 THEN NULL ELSE - 47 END + - COUNT ( * ) AS col1
----
-81
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT NULLIF ( + 39, - 84 ) * - COUNT( DISTINCT + 54 ) * 76 * + - COUNT( * ) * + ( + 17 ) * + + CASE + - 19 WHEN + - 25 THEN + 7 * + NULLIF ( - 55, 96 ) + ( - 50 ) ELSE NULL END * 19 - 39 - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT NULLIF ( + 39, - 84 ) * - COUNT ( DISTINCT + 54 ) * 76 * + - COUNT ( * ) * + ( + 17 ) * + + CASE + - 19 WHEN + - 25 THEN + 7 * + NULLIF ( - 55, 96 ) + ( - 50 ) ELSE NULL END * 19 - 39 - - 87
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6165
SELECT - COUNT( * ) * + - 69 AS col2, 83 col2
----
69
83

skipif mysql # not compatible
query II rowsort label-6165
SELECT - COUNT ( * ) * + - 69 AS col2, 83 col2
----
69
83

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

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

query I rowsort
SELECT + NULLIF ( - 61, + + 64 ) * + + 20 * 88 + - + CASE + + 37 WHEN - 61 THEN - ( + - 16 ) ELSE NULL END + - 29 + - 64 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT ALL 33 * + 28 * 41 - + MAX( + 23 ) + + - CAST( 97 AS SIGNED ) AS col1
----
37764

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL 33 * + 28 * 41 - + MAX ( + 23 ) + + - CAST ( 97 AS INTEGER ) AS col1
----
37764

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6169
SELECT + 71 * + COUNT( * ), + ( + + 5 ) - 17 + - 19 * 9 DIV + NULLIF ( - 4, 95 * - 61 - - + 4 DIV + COUNT( * ) ) col1
----
71
30

skipif mysql # not compatible
query II rowsort label-6169
SELECT + 71 * + COUNT ( * ), + ( + + 5 ) - 17 + - 19 * 9 / + NULLIF ( - 4, 95 * - 61 - - + 4 / + COUNT ( * ) ) col1
----
71
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6170
SELECT + - ( - - 18 ) AS col0, + ( - 38 ) / 3 / - - 89 + CASE - 6 WHEN - - 45 THEN - ( + CAST( NULL AS SIGNED ) ) WHEN + + CASE 86 WHEN + 43 THEN NULL WHEN 99 * 14 THEN COUNT( * ) / 8 END THEN NULL END / CASE 71 + 53 / 43 WHEN - 5 THEN 85 - 78 WHEN COUNT( * ) THEN NULL END AS col2
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-6170
SELECT + - ( - - 18 ) AS col0, + ( - 38 ) / 3 / - - 89 + CASE - 6 WHEN - - 45 THEN - ( + CAST ( NULL AS INTEGER ) ) WHEN + + CASE 86 WHEN + 43 THEN NULL WHEN 99 * 14 THEN COUNT ( * ) / 8 END THEN NULL END / CASE 71 + 53 / 43 WHEN - 5 THEN 85 - 78 WHEN COUNT ( * ) THEN NULL END AS col2
----
-18
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6171
SELECT + MAX( ALL + 35 ) * 79 + - - 30 * CASE + 73 WHEN + - 42 THEN COALESCE ( 99, + + 84 - - 14, + 74 + MIN( 53 ) ) / + MIN( DISTINCT + 65 + 72 ) + 17 ELSE - CASE + COUNT( * ) WHEN + CASE - 95 WHEN + 42 THEN NULL WHEN + 57 THEN 28 / ( - 70 ) END / + ( - 13 ) THEN - CASE - 22 WHEN CAST( - 82 AS DECIMAL ) THEN - 94 * + 45 + + COUNT( * ) WHEN + 80 THEN + 19 END * COUNT( * ) WHEN + 77 THEN + 54 + 29 * + MAX( ALL - 92 + 28 ) END + 51 * 1 END * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT + MAX ( ALL + 35 ) * 79 + - - 30 * CASE + 73 WHEN + - 42 THEN COALESCE ( 99, + + 84 - - 14, + 74 + MIN ( 53 ) ) / + MIN ( DISTINCT + 65 + 72 ) + 17 ELSE - CASE + COUNT ( * ) WHEN + CASE - 95 WHEN + 42 THEN NULL WHEN + 57 THEN 28 / ( - 70 ) END / + ( - 13 ) THEN - CASE - 22 WHEN CAST ( - 82 AS REAL ) THEN - 94 * + 45 + + COUNT ( * ) WHEN + 80 THEN + 19 END * COUNT ( * ) WHEN + 77 THEN + 54 + 29 * + MAX ( ALL - 92 + 28 ) END + 51 * 1 END * 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT ALL + + 63 DIV - 13 + + - 85 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL + + 63 / - 13 + + - 85 AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6173
SELECT + 92 * 94 + - 28 / - COUNT( * ) + CAST( NULL AS SIGNED ) / - 28 + ( - + 36 ) - 12 + - - COUNT( * ), COUNT( * ) + - NULLIF ( - CASE 71 WHEN + 12 THEN 82 END, - CAST( NULL AS SIGNED ) * MAX( + 77 ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6173
SELECT + 92 * 94 + - 28 / - COUNT ( * ) + CAST ( NULL AS INTEGER ) / - 28 + ( - + 36 ) - 12 + - - COUNT ( * ), COUNT ( * ) + - NULLIF ( - CASE 71 WHEN + 12 THEN 82 END, - CAST ( NULL AS INTEGER ) * MAX ( + 77 ) )
----
NULL
NULL

query I rowsort
SELECT - 21 * - 95 + - 59 col2
----
1936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT - - 83 + + 53 + + ( 41 ) * CASE 19 WHEN + 30 * SUM( - - 41 ) * 52 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN 70 * - 46 WHEN - COUNT( * ) + 69 THEN NULL ELSE 31 * - COUNT( * ) + 1 END AS col1
----
-1094

skipif mysql # not compatible
query I rowsort label-6175
SELECT - - 83 + + 53 + + ( 41 ) * CASE 19 WHEN + 30 * SUM ( - - 41 ) * 52 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN 70 * - 46 WHEN - COUNT ( * ) + 69 THEN NULL ELSE 31 * - COUNT ( * ) + 1 END AS col1
----
-1094

query I rowsort
SELECT - + 8 * 72 AS col1
----
-576

query I rowsort
SELECT DISTINCT - - 58 * - 0
----
0

query I rowsort
SELECT - 6 * - 74
----
444

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT + 75 + - COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-6179
SELECT + 75 + - COUNT ( * ) AS col1
----
74

query I rowsort
SELECT ALL + - 83 * 59 AS col2
----
-4897

query I rowsort
SELECT DISTINCT + - 66 * + 6 + - 11 AS col0
----
-407

query II rowsort
SELECT - - 81 * - 62 AS col0, + 42
----
-5022
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ALL + + 16 * MIN( 45 ) * + + 24 AS col1
----
17280

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL + + 16 * MIN ( 45 ) * + + 24 AS col1
----
17280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6184
SELECT - + COUNT( - 25 ) DIV - + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6184
SELECT - + COUNT ( - 25 ) / - + 20 AS col1
----
0

query I rowsort
SELECT ALL 74 + + 22 - 18 col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT - ( + 82 ) * + - 60 * + 12 + - 27 * + - 21 + + - COALESCE ( + 66, ( + + 43 ), 35 DIV + 88 * + 64 ) * + 77
----
54525

skipif mysql # not compatible
query I rowsort label-6186
SELECT - ( + 82 ) * + - 60 * + 12 + - 27 * + - 21 + + - COALESCE ( + 66, ( + + 43 ), 35 / + 88 * + 64 ) * + 77
----
54525

query I rowsort
SELECT DISTINCT 21 + 23
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT CASE + 21 WHEN + 92 * 83 + 8 + + - SUM( DISTINCT 98 ) THEN 85 + + 62 END + + ( - 85 ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT CASE + 21 WHEN + 92 * 83 + 8 + + - SUM ( DISTINCT 98 ) THEN 85 + + 62 END + + ( - 85 ) * + 99
----
NULL

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

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

query I rowsort
SELECT - ( - - 26 )
----
-26

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

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

query I rowsort
SELECT + 38 + - 48 + + - 30 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT DISTINCT 67 + + - COALESCE ( + 60, 28 * + + 53 + + 31 + - 59 * 99 + + 87 + - + COUNT( * ) + - 20 + - 70 * 20 + - 1 )
----
7

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT 67 + + - COALESCE ( + 60, 28 * + + 53 + + 31 + - 59 * 99 + + 87 + - + COUNT ( * ) + - 20 + - 70 * 20 + - 1 )
----
7

query I rowsort
SELECT DISTINCT 26 + - 24
----
2

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

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

query I rowsort
SELECT ALL 2 + + 76 AS col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT + 41 DIV 65 + 25
----
25

skipif mysql # not compatible
query I rowsort label-6197
SELECT + 41 / 65 + 25
----
25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6198
SELECT + NULLIF ( 42, - CAST( + - 14 AS SIGNED ) + CAST( - + 7 AS DECIMAL ) * 5 / + 58 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6198
SELECT + NULLIF ( 42, - CAST ( + - 14 AS INTEGER ) + CAST ( - + 7 AS REAL ) * 5 / + 58 ) AS col1
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - SUM( DISTINCT + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-6200
SELECT - SUM ( DISTINCT + 26 )
----
-26

query I rowsort
SELECT ALL + 92 * - + 90 AS col2
----
-8280

query II rowsort
SELECT + - 96, ( - 52 ) AS col0
----
-96
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6203
SELECT - 24 * - 40 + - 79 * 85 + + + 28 * + CAST( NULL AS SIGNED ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT - 24 * - 40 + - 79 * 85 + + + 28 * + CAST ( NULL AS INTEGER ) * + 57
----
NULL

query I rowsort
SELECT ALL 93 * - 21
----
-1953

query I rowsort
SELECT + ( + 1 ) + 60 + + - 87 AS col2
----
-26

query II rowsort
SELECT + 11, 61 + + 81 AS col1
----
11
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT + - COUNT( 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-6207
SELECT + - COUNT ( 76 )
----
-1

query I rowsort
SELECT - - ( - 19 ) * - 9 AS col0
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6209
SELECT ALL - CAST( NULL AS SIGNED ) * 78 + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL - CAST ( NULL AS INTEGER ) * 78 + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT - - 85 - - COUNT( * ) * 10 + 68 - 33 col0
----
130

skipif mysql # not compatible
query I rowsort label-6210
SELECT - - 85 - - COUNT ( * ) * 10 + 68 - 33 col0
----
130

query I rowsort
SELECT ALL + 80 * + - 98
----
-7840

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6213
SELECT - + 11 * - CASE - + 49 WHEN - + CAST( 85 AS SIGNED ) THEN - 94 * - 97 WHEN + 21 THEN NULL WHEN - 92 * + - 74 THEN NULL END + - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT - + 11 * - CASE - + 49 WHEN - + CAST ( 85 AS INTEGER ) THEN - 94 * - 97 WHEN + 21 THEN NULL WHEN - 92 * + - 74 THEN NULL END + - + 29
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 15, + ( 20 ) ) * 11 + + 64
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT ALL + - MAX( ALL 49 ) * 76 * + NULLIF ( + - 21, + COALESCE ( - 25, + 86 * 12 ) / COUNT( DISTINCT - 59 ) ) + CASE 42 WHEN - 67 THEN - 86 * 2 WHEN 82 THEN NULL END * COUNT( DISTINCT - 55 + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL + - MAX ( ALL 49 ) * 76 * + NULLIF ( + - 21, + COALESCE ( - 25, + 86 * 12 ) / COUNT ( DISTINCT - 59 ) ) + CASE 42 WHEN - 67 THEN - 86 * 2 WHEN 82 THEN NULL END * COUNT ( DISTINCT - 55 + 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT + 51 + MIN( 29 ) - + + 20 + + COUNT( * ) * + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6216
SELECT + 51 + MIN ( 29 ) - + + 20 + + COUNT ( * ) * + COUNT ( * ) AS col0
----
61

query I rowsort
SELECT 83 * + 88 - - - 56
----
7248

query I rowsort
SELECT 3 + 38
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6219
SELECT ALL + MIN( ALL - CAST( + NULLIF ( 66, - 59 * + 36 ) AS SIGNED ) ) + - 42
----
-108

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL + MIN ( ALL - CAST ( + NULLIF ( 66, - 59 * + 36 ) AS INTEGER ) ) + - 42
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT DISTINCT + ( - COUNT( ALL + - 62 ) ) * + 35 * + 87
----
-3045

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT + ( - COUNT ( ALL + - 62 ) ) * + 35 * + 87
----
-3045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT ALL + CAST( 10 AS SIGNED ) + - 12
----
-2

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL + CAST ( 10 AS INTEGER ) + - 12
----
-2

query I rowsort
SELECT ALL + 84 * - + 24
----
-2016

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

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

query I rowsort
SELECT 73 + 65
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6225
SELECT ALL 25 DIV - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL 25 / - COUNT ( * ) AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6226
SELECT 44 * 0 * - 84 * + + COALESCE ( - 63, - 67, 14 ) AS col1, + 44 + + + 77 + - CAST( NULL AS SIGNED ) + 36 * - + CASE ( COUNT( * ) ) WHEN + 61 * - 29 + CASE MAX( 96 ) WHEN - 89 + - 6 * 41 THEN + 54 * - CASE 45 WHEN + 49 / - 52 THEN + 23 * + 73 + 68 ELSE NULL END ELSE NULLIF ( 18, 32 ) END / + 36 THEN + 44 * 48 WHEN + 57 + + COALESCE ( 61 + 8, + 96 * + 91 ) * COUNT( * ) THEN 93 ELSE NULL END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6226
SELECT 44 * 0 * - 84 * + + COALESCE ( - 63, - 67, 14 ) AS col1, + 44 + + + 77 + - CAST ( NULL AS INTEGER ) + 36 * - + CASE ( COUNT ( * ) ) WHEN + 61 * - 29 + CASE MAX ( 96 ) WHEN - 89 + - 6 * 41 THEN + 54 * - CASE 45 WHEN + 49 / - 52 THEN + 23 * + 73 + 68 ELSE NULL END ELSE NULLIF ( 18, 32 ) END / + 36 THEN + 44 * 48 WHEN + 57 + + COALESCE ( 61 + 8, + 96 * + 91 ) * COUNT ( * ) THEN 93 ELSE NULL END AS col0
----
0
NULL

query I rowsort
SELECT 79 * 52
----
4108

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT 50 - + 4 + + 39 * MIN( DISTINCT + 1 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6228
SELECT 50 - + 4 + + 39 * MIN ( DISTINCT + 1 ) AS col0
----
85

query II rowsort
SELECT 53 * - 51, + 94 * + 2 AS col1
----
-2703
188

onlyif mysql # DIV for integer division: 
query I rowsort label-6230
SELECT + 12 DIV 71 + 90 * + ( - + 85 ) AS col0
----
-7650

skipif mysql # not compatible
query I rowsort label-6230
SELECT + 12 / 71 + 90 * + ( - + 85 ) AS col0
----
-7650

query I rowsort
SELECT 87 * - - 69
----
6003

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6233
SELECT - 94 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT - 94 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6234
SELECT ALL CASE 37 WHEN + 90 THEN 40 * + + 12 DIV + 86 WHEN - 66 - - ( + - COUNT( * ) ) + - 20 * COUNT( * ) DIV - AVG ( DISTINCT - - 36 ) THEN NULL WHEN + 34 DIV + 68 THEN 25 DIV + 35 WHEN 53 + - 77 DIV - 71 THEN - 22 ELSE 65 * - 82 END * 92
----
-490360

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL CASE 37 WHEN + 90 THEN 40 * + + 12 / + 86 WHEN - 66 - - ( + - COUNT ( * ) ) + - 20 * COUNT ( * ) / - AVG ( DISTINCT - - 36 ) THEN NULL WHEN + 34 / + 68 THEN 25 / + 35 WHEN 53 + - 77 / - 71 THEN - 22 ELSE 65 * - 82 END * 92
----
-490360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6235
SELECT + NULLIF ( + 62, - + COUNT( * ) ) - - 15 + - - CAST( + - NULLIF ( 51, + 73 ) AS SIGNED ) - - 84
----
110

skipif mysql # not compatible
query I rowsort label-6235
SELECT + NULLIF ( + 62, - + COUNT ( * ) ) - - 15 + - - CAST ( + - NULLIF ( 51, + 73 ) AS INTEGER ) - - 84
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6236
SELECT MAX( ALL - 44 ) DIV 41 + - - 47 AS col1, + 16 col0
----
46
16

skipif mysql # not compatible
query II rowsort label-6236
SELECT MAX ( ALL - 44 ) / 41 + - - 47 AS col1, + 16 col0
----
46
16

query II rowsort
SELECT - - 30 * - - 22 + + 35 + + 7 AS col1, + 82 AS col0
----
702
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT DISTINCT 9 + - + CASE - + 53 WHEN - 78 * - 27 THEN - NULLIF ( - + CAST( NULL AS SIGNED ), + + 88 - COALESCE ( 6, + - 87, + 82 + - 1, - 88 * 36 ) ) + + MAX( DISTINCT ( 74 ) + 55 ) END * + MIN( DISTINCT 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT 9 + - + CASE - + 53 WHEN - 78 * - 27 THEN - NULLIF ( - + CAST ( NULL AS INTEGER ), + + 88 - COALESCE ( 6, + - 87, + 82 + - 1, - 88 * 36 ) ) + + MAX ( DISTINCT ( 74 ) + 55 ) END * + MIN ( DISTINCT 0 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6239
SELECT 90 + + + COALESCE ( 3, + - 12 ) DIV + - ( COUNT( * ) ) + ( - MIN( ALL - + 55 ) ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-6239
SELECT 90 + + + COALESCE ( 3, + - 12 ) / + - ( COUNT ( * ) ) + ( - MIN ( ALL - + 55 ) ) AS col1
----
142

query II rowsort
SELECT ( - 65 ) * + ( - + 40 ), + 70 + - + 84 AS col2
----
2600
-14

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT + 45 * + 99 * - 33 + - 39 DIV + 74 col1
----
-147015

skipif mysql # not compatible
query I rowsort label-6243
SELECT + 45 * + 99 * - 33 + - 39 / + 74 col1
----
-147015

query I rowsort
SELECT ALL - + 28 + + + 12 - - 39 * + 25 * + - 43 AS col2
----
-41941

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT 28 + + 92 + + 63 + - 19 * - - CASE SUM( ALL - CASE - 38 WHEN - + 77 THEN NULL WHEN 63 / 62 * + - 35 * - 31 * - 8 THEN ( + 9 ) * ( 8 ) ELSE 51 + - 95 END ) WHEN 0 THEN + 40 + COALESCE ( 10, 18 * COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT 28 + + 92 + + 63 + - 19 * - - CASE SUM ( ALL - CASE - 38 WHEN - + 77 THEN NULL WHEN 63 / 62 * + - 35 * - 31 * - 8 THEN ( + 9 ) * ( 8 ) ELSE 51 + - 95 END ) WHEN 0 THEN + 40 + COALESCE ( 10, 18 * COUNT ( * ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL 94 + - MIN( DISTINCT + 23 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL 94 + - MIN ( DISTINCT + 23 ) AS col1
----
71

query I rowsort
SELECT 59 * + 62 AS col1
----
3658

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT 8 DIV - 44 + + 89 + 4 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6249
SELECT 8 / - 44 + + 89 + 4 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL 39 + 76 + 91 + + 99 * - MAX( - ( - 51 ) ) * + 87 + COUNT( * )
----
-439056

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL 39 + 76 + 91 + + 99 * - MAX ( - ( - 51 ) ) * + 87 + COUNT ( * )
----
-439056

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT 48 + + - COUNT( * ) - + 57 + + + 83 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-6251
SELECT 48 + + - COUNT ( * ) - + 57 + + + 83 AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT 29 DIV + NULLIF ( + + 76, - 69 + - 46 * + 13 + - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-6252
SELECT 29 / + NULLIF ( + + 76, - 69 + - 46 * + 13 + - 69 )
----
0

query II rowsort
SELECT ALL 24 AS col0, 75 AS col1
----
24
75

query I rowsort
SELECT DISTINCT - 7 - + 46 AS col2
----
-53

query I rowsort
SELECT DISTINCT + 34 * 70
----
2380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6256
SELECT CAST( NULL AS SIGNED ) - - - CAST( - - 17 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT CAST ( NULL AS INTEGER ) - - - CAST ( - - 17 AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT SUM( ALL 8 ) + - 28 + 11 col2
----
-9

skipif mysql # not compatible
query I rowsort label-6258
SELECT SUM ( ALL 8 ) + - 28 + 11 col2
----
-9

query I rowsort
SELECT ALL - 89 - + 83 AS col1
----
-172

query I rowsort
SELECT DISTINCT + 35 * - - 90 col0
----
3150

query I rowsort
SELECT 54 * - ( + 15 ) * - 36
----
29160

query I rowsort
SELECT ALL - 17 * - 31 AS col2
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT 60 + + COUNT( - 68 )
----
61

skipif mysql # not compatible
query I rowsort label-6263
SELECT 60 + + COUNT ( - 68 )
----
61

query I rowsort
SELECT 63 - - ( 80 ) AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT DISTINCT - 35 * - CASE SUM( DISTINCT + + 23 ) WHEN + - 51 THEN COUNT( * ) WHEN - MIN( ALL 2 ) * - - 14 * - 93 - + + COUNT( DISTINCT 44 ) * + 50 * + 37 + - + 27 + 14 THEN 63 WHEN + ( + 78 ) * + 59 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT - 35 * - CASE SUM ( DISTINCT + + 23 ) WHEN + - 51 THEN COUNT ( * ) WHEN - MIN ( ALL 2 ) * - - 14 * - 93 - + + COUNT ( DISTINCT 44 ) * + 50 * + 37 + - + 27 + 14 THEN 63 WHEN + ( + 78 ) * + 59 THEN NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6266
SELECT ALL 11, 90 DIV ( + 25 ) AS col2
----
11
3

skipif mysql # not compatible
query II rowsort label-6266
SELECT ALL 11, 90 / ( + 25 ) AS col2
----
11
3

query I rowsort
SELECT ALL - 65 * - 60 * + + 54 col2
----
210600

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT COUNT( * ) + 83 * + - 80 AS col2
----
-6639

skipif mysql # not compatible
query I rowsort label-6268
SELECT COUNT ( * ) + 83 * + - 80 AS col2
----
-6639

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + ( - + NULLIF ( 69, - 84 ) ) + + COUNT( * ) + + 31 * 6
----
118

skipif mysql # not compatible
query I rowsort label-6269
SELECT + ( - + NULLIF ( 69, - 84 ) ) + + COUNT ( * ) + + 31 * 6
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT + 45 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-6270
SELECT + 45 / - 84
----
0

query I rowsort
SELECT 25 + + + 48 AS col1
----
73

query II rowsort
SELECT ALL 89 * 45 + + 81 col2, - 26 AS col0
----
4086
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-6273
SELECT + 7 AS col2, 42 + COALESCE ( + 41, + + ( + 63 ) + + 73 * - COALESCE ( - + 10, ( 10 ) * - - 71 ), - NULLIF ( 77, + + COUNT( * ) ) * 71 ) + 50
----
7
133

skipif mysql # not compatible
query II rowsort label-6273
SELECT + 7 AS col2, 42 + COALESCE ( + 41, + + ( + 63 ) + + 73 * - COALESCE ( - + 10, ( 10 ) * - - 71 ), - NULLIF ( 77, + + COUNT ( * ) ) * 71 ) + 50
----
7
133

onlyif mysql # aggregate syntax: 
query II rowsort label-6274
SELECT ALL - 4 * COALESCE ( + 55, 18, + 9 ) - 85 + COUNT( * ) + 63 col1, - ( - 65 ) AS col2
----
-241
65

skipif mysql # not compatible
query II rowsort label-6274
SELECT ALL - 4 * COALESCE ( + 55, 18, + 9 ) - 85 + COUNT ( * ) + 63 col1, - ( - 65 ) AS col2
----
-241
65

query I rowsort
SELECT 5 * - - 83 + + 84 AS col1
----
499

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL + 33 * - - COUNT( * ) * + 25 + ( + 26 ) + - - 34
----
885

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + 33 * - - COUNT ( * ) * + 25 + ( + 26 ) + - - 34
----
885

query I rowsort
SELECT - - 8 + + + 16 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT + - 3 * + 42 * + MAX( - 39 ) * + COUNT( * ) * 14 - - 39 + - 89 + - 6 AS col1
----
68740

skipif mysql # not compatible
query I rowsort label-6278
SELECT + - 3 * + 42 * + MAX ( - 39 ) * + COUNT ( * ) * 14 - - 39 + - 89 + - 6 AS col1
----
68740

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6279
SELECT ALL 0 * + 71 + - 97 AS col1, + COUNT( * ) DIV + 83
----
-97
0

skipif mysql # not compatible
query II rowsort label-6279
SELECT ALL 0 * + 71 + - 97 AS col1, + COUNT ( * ) / + 83
----
-97
0

query I rowsort
SELECT ALL + NULLIF ( - + 37, - 12 * - - 13 ) AS col2
----
-37

query II rowsort
SELECT ALL 27 - + ( + 63 ), 42 * + 35 + + 58 AS col2
----
-36
1528

query I rowsort
SELECT + 97 - 85
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT SUM( 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6283
SELECT SUM ( 88 ) AS col1
----
88

query I rowsort
SELECT ALL 85 * - 44
----
-3740

query I rowsort
SELECT + 91 * + 11 col1
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT 14 - ( + COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT 14 - ( + COUNT ( * ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL COUNT( * ) * 5 col2
----
5

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL COUNT ( * ) * 5 col2
----
5

query I rowsort
SELECT + 55 * - 54 AS col0
----
-2970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6289
SELECT - ( + COUNT( * ) ) - - 0 + CASE + - 83 WHEN - CASE + AVG ( + 3 ) WHEN - + 88 THEN NULL WHEN - 61 THEN NULL ELSE + CAST( + + 46 AS SIGNED ) END THEN + 17 + + 34 WHEN - + 40 - + - 29 + 78 THEN CAST( - 24 AS SIGNED ) * ( - 75 ) + - CAST( 29 AS SIGNED ) END / 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT - ( + COUNT ( * ) ) - - 0 + CASE + - 83 WHEN - CASE + AVG ( + 3 ) WHEN - + 88 THEN NULL WHEN - 61 THEN NULL ELSE + CAST ( + + 46 AS INTEGER ) END THEN + 17 + + 34 WHEN - + 40 - + - 29 + 78 THEN CAST ( - 24 AS INTEGER ) * ( - 75 ) + - CAST ( 29 AS INTEGER ) END / 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - CASE - 11 WHEN - + 79 * + 87 * - - COUNT( * ) THEN + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT - CASE - 11 WHEN - + 79 * + 87 * - - COUNT ( * ) THEN + 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6291
SELECT 10 AS col2, ( - COUNT( * ) ) * + 8 AS col2
----
10
-8

skipif mysql # not compatible
query II rowsort label-6291
SELECT 10 AS col2, ( - COUNT ( * ) ) * + 8 AS col2
----
10
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT + 7 + + COUNT( - - 69 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6292
SELECT + 7 + + COUNT ( - - 69 ) AS col1
----
8

query I rowsort
SELECT + 25 * 64 col1
----
1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6294
SELECT ALL + SUM( - + ( - 44 ) ) DIV + - 89 AS col1, - CAST( + 99 AS SIGNED ) + SUM( - 21 ) * - CAST( NULL AS SIGNED ) + + + 72 + + 72 + + 41 * + 5 * + 96 * - - 6 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6294
SELECT ALL + SUM ( - + ( - 44 ) ) / + - 89 AS col1, - CAST ( + 99 AS INTEGER ) + SUM ( - 21 ) * - CAST ( NULL AS INTEGER ) + + + 72 + + 72 + + 41 * + 5 * + 96 * - - 6 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL + NULLIF ( - + 52, 13 ) + + 46 - COUNT( * ) + + + 75 - CASE + + 1 WHEN + 59 * + 4 THEN - + 43 + - - 50 + - - 7 ELSE NULL END + + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + NULLIF ( - + 52, 13 ) + + 46 - COUNT ( * ) + + + 75 - CASE + + 1 WHEN + 59 * + 4 THEN - + 43 + - - 50 + - - 7 ELSE NULL END + + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT MAX( - 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT MAX ( - 87 ) AS col0
----
-87

query I rowsort
SELECT + 16 + - 16 AS col2
----
0

query II rowsort
SELECT - + 48 AS col0, - ( 18 ) + + ( - 10 ) * + + 93
----
-48
-948

query I rowsort
SELECT - + ( - 25 ) + + 13
----
38

query II rowsort
SELECT - 79 AS col1, + NULLIF ( + - ( + 22 ), - 82 )
----
-79
-22

query I rowsort
SELECT - 12 * + - 28 * + - ( + 15 )
----
-5040

query I rowsort
SELECT ALL - + COALESCE ( + 26, + 26 ) + + 49 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - + 48 + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-6303
SELECT - + 48 + COUNT ( * )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6304
SELECT - + 98 + + + 5 + + - CAST( NULL AS SIGNED ) * - CASE - 37 WHEN 58 * 69 * - ( + 20 ) * + + NULLIF ( ( - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ), + 64 * - + 27 * COUNT( * ) * - 57 + - 95 * 71 ) * - 16 THEN NULL WHEN 64 + 61 THEN 31 + - 64 WHEN + COUNT( * ) - - 58 THEN 33 * - 15 ELSE 65 END - + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT - + 98 + + + 5 + + - CAST ( NULL AS INTEGER ) * - CASE - 37 WHEN 58 * 69 * - ( + 20 ) * + + NULLIF ( ( - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ), + 64 * - + 27 * COUNT ( * ) * - 57 + - 95 * 71 ) * - 16 THEN NULL WHEN 64 + 61 THEN 31 + - 64 WHEN + COUNT ( * ) - - 58 THEN 33 * - 15 ELSE 65 END - + 47 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( 15, - 11 ) - + 98
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6306
SELECT + CAST( + ( - 85 ) AS SIGNED ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6306
SELECT + CAST ( + ( - 85 ) AS INTEGER ) AS col2
----
-85

query I rowsort
SELECT - 65 * + 22 + + 51 AS col1
----
-1379

onlyif mysql # aggregate syntax: 
query II rowsort label-6308
SELECT 14, - 88 + + NULLIF ( - - MAX( ALL + + 32 ), - 8 ) AS col0
----
14
-56

skipif mysql # not compatible
query II rowsort label-6308
SELECT 14, - 88 + + NULLIF ( - - MAX ( ALL + + 32 ), - 8 ) AS col0
----
14
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-6309
SELECT 52 col1, - CASE 15 WHEN + - ( - 55 ) * - 52 THEN NULL WHEN - - 17 THEN NULL ELSE - ( COUNT( * ) ) END AS col0
----
52
1

skipif mysql # not compatible
query II rowsort label-6309
SELECT 52 col1, - CASE 15 WHEN + - ( - 55 ) * - 52 THEN NULL WHEN - - 17 THEN NULL ELSE - ( COUNT ( * ) ) END AS col0
----
52
1

query II rowsort
SELECT 33 AS col2, + 4 * + - ( 7 ) * - 29
----
33
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6311
SELECT ALL + 77 DIV - NULLIF ( + 10, + 28 DIV + 70 ) * + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL + 77 / - NULLIF ( + 10, + 28 / + 70 ) * + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6312
SELECT - - 71 + + + COUNT( * ) * - - ( COUNT( * ) ) AS col2, 48 * - 3
----
72
-144

skipif mysql # not compatible
query II rowsort label-6312
SELECT - - 71 + + + COUNT ( * ) * - - ( COUNT ( * ) ) AS col2, 48 * - 3
----
72
-144

query I rowsort
SELECT ALL 9 * + - 36
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - 74 + + COUNT( * ) * 0 col2
----
-74

skipif mysql # not compatible
query I rowsort label-6314
SELECT - 74 + + COUNT ( * ) * 0 col2
----
-74

query I rowsort
SELECT ALL + ( + 21 ) * - - 78
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT CASE - 86 WHEN + 46 / + COALESCE ( + + ( + 19 ), ( - + 70 ) * + 95, + - MAX( - 3 ) * + 77 * 64 * - + NULLIF ( + COUNT( * ), - 78 + 99 ) ) THEN NULL WHEN 46 THEN NULL ELSE + 23 END col1
----
23

skipif mysql # not compatible
query I rowsort label-6316
SELECT CASE - 86 WHEN + 46 / + COALESCE ( + + ( + 19 ), ( - + 70 ) * + 95, + - MAX ( - 3 ) * + 77 * 64 * - + NULLIF ( + COUNT ( * ), - 78 + 99 ) ) THEN NULL WHEN 46 THEN NULL ELSE + 23 END col1
----
23

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6318
SELECT ALL - ( - CASE - CAST( + COUNT( * ) AS SIGNED ) WHEN + + ( + 72 ) THEN ( - 24 ) ELSE + MIN( - CAST( NULL AS SIGNED ) ) * - 57 * - 87 * - MIN( DISTINCT 81 ) * + - 20 * + MAX( 3 ) * COUNT( * ) END ) * - ( CASE 82 WHEN - 77 THEN NULL ELSE - 92 * - 50 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - ( - CASE - CAST ( + COUNT ( * ) AS INTEGER ) WHEN + + ( + 72 ) THEN ( - 24 ) ELSE + MIN ( - CAST ( NULL AS INTEGER ) ) * - 57 * - 87 * - MIN ( DISTINCT 81 ) * + - 20 * + MAX ( 3 ) * COUNT ( * ) END ) * - ( CASE 82 WHEN - 77 THEN NULL ELSE - 92 * - 50 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT - 79 + COUNT( * ) + - 27 col1
----
-105

skipif mysql # not compatible
query I rowsort label-6319
SELECT - 79 + COUNT ( * ) + - 27 col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + NULLIF ( + - 42, - 87 ) + 42 - + 88 * COUNT( * ) * + + 47 * 99
----
-409464

skipif mysql # not compatible
query I rowsort label-6320
SELECT + NULLIF ( + - 42, - 87 ) + 42 - + 88 * COUNT ( * ) * + + 47 * 99
----
-409464

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT 62 * 44 * + SUM( DISTINCT + 58 ) + - + COUNT( - + 54 ) AS col2
----
158223

skipif mysql # not compatible
query I rowsort label-6321
SELECT 62 * 44 * + SUM ( DISTINCT + 58 ) + - + COUNT ( - + 54 ) AS col2
----
158223

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT + 37 * + 46 * + 52 * + - COUNT( * ) AS col2
----
-88504

skipif mysql # not compatible
query I rowsort label-6322
SELECT + 37 * + 46 * + 52 * + - COUNT ( * ) AS col2
----
-88504

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT + ( - + 88 ) + + MIN( DISTINCT 93 )
----
5

skipif mysql # not compatible
query I rowsort label-6323
SELECT + ( - + 88 ) + + MIN ( DISTINCT 93 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT COUNT( ALL - - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6324
SELECT COUNT ( ALL - - 22 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6325
SELECT - COALESCE ( 21, + 73 + - CAST( NULL AS SIGNED ) + + ( + SUM( ALL + 53 ) ) * - + 44 + + NULLIF ( - 3, - 97 * + 45 + - 96 - CAST( NULL AS SIGNED ) ) * + + ( + 3 ), + + 69 )
----
-21

skipif mysql # not compatible
query I rowsort label-6325
SELECT - COALESCE ( 21, + 73 + - CAST ( NULL AS INTEGER ) + + ( + SUM ( ALL + 53 ) ) * - + 44 + + NULLIF ( - 3, - 97 * + 45 + - 96 - CAST ( NULL AS INTEGER ) ) * + + ( + 3 ), + + 69 )
----
-21

query II rowsort
SELECT ALL 96 * + 78 AS col2, 23 AS col1
----
7488
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6327
SELECT + COUNT( * ) + + - 4, + 73 AS col2
----
-3
73

skipif mysql # not compatible
query II rowsort label-6327
SELECT + COUNT ( * ) + + - 4, + 73 AS col2
----
-3
73

query II rowsort
SELECT - ( + 5 ) AS col2, + 77
----
-5
77

query I rowsort
SELECT ALL 89 + ( 16 ) col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL 48 + - + 8 + + COALESCE ( - COUNT( * ), 99 - 80 )
----
39

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL 48 + - + 8 + + COALESCE ( - COUNT ( * ), 99 - 80 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT MIN( DISTINCT - + 51 ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-6331
SELECT MIN ( DISTINCT - + 51 ) col2
----
-51

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

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

query I rowsort
SELECT - COALESCE ( - 49, - 22 * + - 21 - + ( - ( + 82 ) ) - - NULLIF ( + 8, - + 31 ) )
----
49

query I rowsort
SELECT ALL + 57 + + 13
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6335
SELECT - + 88 + + COALESCE ( + + 52, - 38 * + - 16 DIV - 39 + - COUNT( * ) ) + - - 55 + + 51 DIV - 39
----
18

skipif mysql # not compatible
query I rowsort label-6335
SELECT - + 88 + + COALESCE ( + + 52, - 38 * + - 16 / - 39 + - COUNT ( * ) ) + - - 55 + + 51 / - 39
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6336
SELECT + - AVG ( + - CAST( NULL AS SIGNED ) ) + - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT + - AVG ( + - CAST ( NULL AS INTEGER ) ) + - 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT COALESCE ( + 64, - - SUM( 90 ) ) * - 36
----
-2304

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT COALESCE ( + 64, - - SUM ( 90 ) ) * - 36
----
-2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6338
SELECT ALL + COUNT( * ) / + 19 * 31 * + CAST( NULL AS SIGNED ) + - 89 - - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL + COUNT ( * ) / + 19 * 31 * + CAST ( NULL AS INTEGER ) + - 89 - - 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6339
SELECT ALL - 63 + + - COUNT( * ) AS col0, COUNT( * ) AS col2
----
-64
1

skipif mysql # not compatible
query II rowsort label-6339
SELECT ALL - 63 + + - COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
-64
1

query I rowsort
SELECT ALL - - 22 + + 82 AS col0
----
104

query I rowsort
SELECT 65 + 85 AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT 86 * MIN( - 17 ) + + - COUNT( * ) * - + 98 * - 31 AS col2
----
-4500

skipif mysql # not compatible
query I rowsort label-6342
SELECT 86 * MIN ( - 17 ) + + - COUNT ( * ) * - + 98 * - 31 AS col2
----
-4500

query II rowsort
SELECT ALL - 81 - + + 72 AS col1, + 0 col0
----
-153
0

query I rowsort
SELECT 44 * + - 9 * + 68 * + - ( 65 ) AS col0
----
1750320

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

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT + COUNT ( * ) * - COUNT ( DISTINCT 96 ) / - MIN ( + 17 ) AS col2
----
0

query II rowsort
SELECT + 65 AS col1, - 95 * + + 0 AS col0
----
65
0

query I rowsort
SELECT 28 + + 82 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT 38 * - CASE - - 77 WHEN 83 - + 38 + ( 1 ) * - 62 THEN NULL ELSE MIN( ALL + 28 ) END
----
-1064

skipif mysql # not compatible
query I rowsort label-6348
SELECT 38 * - CASE - - 77 WHEN 83 - + 38 + ( 1 ) * - 62 THEN NULL ELSE MIN ( ALL + 28 ) END
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT MAX( - 75 ) * - 46 AS col1
----
3450

skipif mysql # not compatible
query I rowsort label-6349
SELECT MAX ( - 75 ) * - 46 AS col1
----
3450

query I rowsort
SELECT 94 * - - 1 - - 52 AS col2
----
146

query I rowsort
SELECT DISTINCT - CASE + + 26 WHEN + 71 * + - 19 THEN + 15 * + 31 - - 8 WHEN - 94 THEN NULL ELSE - 16 END
----
16

query I rowsort
SELECT 63 + + - 53 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6353
SELECT 73 + - COUNT( * ) - - NULLIF ( + CAST( + COUNT( * ) AS SIGNED ), 56 ) * - + 89 - + ( + - 46 ) * 21
----
949

skipif mysql # not compatible
query I rowsort label-6353
SELECT 73 + - COUNT ( * ) - - NULLIF ( + CAST ( + COUNT ( * ) AS INTEGER ), 56 ) * - + 89 - + ( + - 46 ) * 21
----
949

query I rowsort
SELECT ALL - 31 + 89 + + - 8
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL NULLIF ( - + 31, - 5 ) + MIN( - + 70 ) col0
----
-101

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL NULLIF ( - + 31, - 5 ) + MIN ( - + 70 ) col0
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6356
SELECT ALL + 59 * - - COALESCE ( 79, 88 ) * 54 DIV NULLIF ( COUNT( * ), + + ( + 46 ) + 50 * - 16 ) AS col2
----
251694

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL + 59 * - - COALESCE ( 79, 88 ) * 54 / NULLIF ( COUNT ( * ), + + ( + 46 ) + 50 * - 16 ) AS col2
----
251694

query I rowsort
SELECT DISTINCT + 4 + 11 AS col1
----
15

query I rowsort
SELECT 63 + - 44
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT MAX( + + 99 ) - + + 19 + - 66 * - - 22 * + - 11 AS col2
----
16052

skipif mysql # not compatible
query I rowsort label-6359
SELECT MAX ( + + 99 ) - + + 19 + - 66 * - - 22 * + - 11 AS col2
----
16052

query II rowsort
SELECT 29 AS col1, 77 - - + 69 * - ( - - 52 )
----
29
-3511

query II rowsort
SELECT DISTINCT + 86 + - 13 + - 92 AS col2, - 84
----
-19
-84

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6363
SELECT CAST( - 93 AS SIGNED ) + 82 DIV 21 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6363
SELECT CAST ( - 93 AS INTEGER ) + 82 / 21 AS col1
----
-90

query I rowsort
SELECT COALESCE ( + - 5, + - CASE - 69 WHEN - 9 THEN + + 62 ELSE NULL END )
----
-5

query I rowsort
SELECT ALL - 70 * + ( + + 55 )
----
-3850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT + COUNT( * ) + - 95 / + CAST( NULL AS SIGNED ) + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT + COUNT ( * ) + - 95 / + CAST ( NULL AS INTEGER ) + - 14 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6367
SELECT + COUNT ( * ) + + 89 AS col0
----
90

query I rowsort
SELECT ALL + COALESCE ( - - 77, + + 42 ) * - 64
----
-4928

query I rowsort
SELECT - 36 + - - NULLIF ( - - 84, 9 - + 6 )
----
48

query I rowsort
SELECT 59 + + 77
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT + SUM( + 68 ) DIV + ( COUNT( * ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6371
SELECT + SUM ( + 68 ) / + ( COUNT ( * ) ) AS col1
----
68

query I rowsort
SELECT DISTINCT CASE + + 51 WHEN - 95 + 15 THEN NULL ELSE - 52 + + 69 END
----
17

query I rowsort
SELECT - 77 + - 92
----
-169

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT 97 DIV - 1
----
-97

skipif mysql # not compatible
query I rowsort label-6374
SELECT 97 / - 1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT + 74 * + + 3 + - - COUNT( * ) AS col2
----
223

skipif mysql # not compatible
query I rowsort label-6375
SELECT + 74 * + + 3 + - - COUNT ( * ) AS col2
----
223

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

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

query I rowsort
SELECT + 11 * + + 74 + 58
----
872

query I rowsort
SELECT ALL + 90 * 32 AS col1
----
2880

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT ALL - 35 + - + 56 + 38 + + 71 DIV + 63 + - 64 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - 35 + - + 56 + 38 + + 71 / + 63 + - 64 AS col2
----
-116

query I rowsort
SELECT ALL + 72 + - 62 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT 73 + - 23 + - + COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6381
SELECT 73 + - 23 + - + COUNT ( * ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT ALL + MIN( + 84 ) + 0 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL + MIN ( + 84 ) + 0 AS col0
----
84

query I rowsort
SELECT 89 + 63 * + 93 AS col2
----
5948

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL - NULLIF ( 67, - 62 + - COALESCE ( + COUNT( * ), - + 14 + - 90, 16 - - 62 + + 56 + - - COUNT( * ) ) + 20 - 32 + MIN( DISTINCT + 5 ) * 85 * NULLIF ( - + 20, - - 80 ) * + 57 )
----
-67

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL - NULLIF ( 67, - 62 + - COALESCE ( + COUNT ( * ), - + 14 + - 90, 16 - - 62 + + 56 + - - COUNT ( * ) ) + 20 - 32 + MIN ( DISTINCT + 5 ) * 85 * NULLIF ( - + 20, - - 80 ) * + 57 )
----
-67

query I rowsort
SELECT + 73 * 64 + 68
----
4740

query I rowsort
SELECT + CASE 65 WHEN 86 THEN NULL ELSE - - 10 - + + 56 + + 7 END AS col1
----
-39

query I rowsort
SELECT - 79 * - 68 + + 63 AS col2
----
5435

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT ALL + 0 + + + 24 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL + 0 + + + 24 / 68
----
0

query I rowsort
SELECT 88 * - + 56 AS col2
----
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT ALL - 27 * CAST( - + 98 AS SIGNED )
----
2646

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL - 27 * CAST ( - + 98 AS INTEGER )
----
2646

query I rowsort
SELECT 94 + + 8 + 87
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT DISTINCT + - NULLIF ( - - ( 83 ), + 96 ) - + - MIN( + 45 )
----
-38

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT + - NULLIF ( - - ( 83 ), + 96 ) - + - MIN ( + 45 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL 75 * + COUNT( * ) + - 81
----
-6

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL 75 * + COUNT ( * ) + - 81
----
-6

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

skipif mysql # not compatible
query I rowsort label-6394
SELECT - + COUNT ( * ) * - + 54 * + + 38 + + COUNT ( * ) * + + 93 AS col2
----
2145

query I rowsort
SELECT ALL - - 50 * + 74
----
3700

onlyif mysql # aggregate syntax: 
query II rowsort label-6396
SELECT - - ( 97 ) - + 24 + - COUNT( * ) col2, + 61
----
72
61

skipif mysql # not compatible
query II rowsort label-6396
SELECT - - ( 97 ) - + 24 + - COUNT ( * ) col2, + 61
----
72
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT - - 36 * - + NULLIF ( - + ( + + COUNT( 33 ) ), - 32 * 18 * + 43 ) + + 55 - + 74
----
17

skipif mysql # not compatible
query I rowsort label-6397
SELECT - - 36 * - + NULLIF ( - + ( + + COUNT ( 33 ) ), - 32 * 18 * + 43 ) + + 55 - + 74
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6398
SELECT - - COALESCE ( COUNT( * ), + NULLIF ( - + NULLIF ( + NULLIF ( + COUNT( * ), - - CASE WHEN NOT ( NULL ) <= NULL THEN - + NULLIF ( 5, + - 14 * - - 96 + + 19 - + 63 + - 89 * 89 + COALESCE ( + COUNT( * ), 91 ) * COUNT( * ) * CAST( 7 * COUNT( * ) AS DECIMAL ) * + 61 ) ELSE COUNT( * ) + + 22 END ), + 21 ), 81 + + COUNT( * ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6398
SELECT - - COALESCE ( COUNT ( * ), + NULLIF ( - + NULLIF ( + NULLIF ( + COUNT ( * ), - - CASE WHEN NOT ( NULL ) <= NULL THEN - + NULLIF ( 5, + - 14 * - - 96 + + 19 - + 63 + - 89 * 89 + COALESCE ( + COUNT ( * ), 91 ) * COUNT ( * ) * CAST ( 7 * COUNT ( * ) AS REAL ) * + 61 ) ELSE COUNT ( * ) + + 22 END ), + 21 ), 81 + + COUNT ( * ) ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT DISTINCT + + 38 * - - SUM( DISTINCT - 51 ) * + 8
----
-15504

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT + + 38 * - - SUM ( DISTINCT - 51 ) * + 8
----
-15504

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

query I rowsort
SELECT + 81 + 48 + ( + - 91 ) - + 57
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT ALL + COUNT( + 60 ) - + 74 col1
----
-73

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL + COUNT ( + 60 ) - + 74 col1
----
-73

query I rowsort
SELECT - COALESCE ( - + 83, 42 * - 52 ) * + 33 AS col2
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - + ( MIN( 98 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-6404
SELECT - + ( MIN ( 98 ) ) AS col1
----
-98

query I rowsort
SELECT - - 48 * + ( 24 )
----
1152

query I rowsort
SELECT + 97 * - ( - 39 )
----
3783

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL MAX( ALL 71 ) * - - 92
----
6532

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL MAX ( ALL 71 ) * - - 92
----
6532

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT + MAX( - + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-6408
SELECT + MAX ( - + 29 )
----
-29

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

skipif mysql # not compatible
query I rowsort label-6409
SELECT + MIN ( + + 16 )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT + 97 DIV - 40 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6410
SELECT + 97 / - 40 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + + 26 col1
----
25

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + + 26 col1
----
25

query I rowsort
SELECT DISTINCT 49 * - 48
----
-2352

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT + 61 DIV 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6413
SELECT + 61 / 89 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT ALL 76 * - - 19 * + ( - + CAST( + ( - + 65 ) AS SIGNED ) ) * - + 15 + - - 23 * 30
----
-1407210

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL 76 * - - 19 * + ( - + CAST ( + ( - + 65 ) AS INTEGER ) ) * - + 15 + - - 23 * 30
----
-1407210

query I rowsort
SELECT + 79 * + + CASE - + 85 WHEN + + ( + 69 ) / + 58 + + + 12 + + 77 + - 21 THEN 46 + - 24 END
----
NULL

query II rowsort
SELECT ALL + 15 AS col2, 55 AS col2
----
15
55

query I rowsort
SELECT ALL 69 * + 65 + + - CASE - - 97 WHEN 71 THEN NULL WHEN + - ( - 76 ) THEN - 16 END
----
NULL

query I rowsort
SELECT + COALESCE ( + 96, - 10 ) + - 78 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6419
SELECT 4 * + 24 + 67 + + + CASE 42 WHEN + ( 40 ) THEN NULL ELSE - 76 END AS col0, + CAST( 28 AS SIGNED )
----
87
28

skipif mysql # not compatible
query II rowsort label-6419
SELECT 4 * + 24 + 67 + + + CASE 42 WHEN + ( 40 ) THEN NULL ELSE - 76 END AS col0, + CAST ( 28 AS INTEGER )
----
87
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6420
SELECT + COUNT( * ) / - CASE + 92 WHEN + 10 THEN COUNT( * ) END AS col0, - 98 AS col0
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-6420
SELECT + COUNT ( * ) / - CASE + 92 WHEN + 10 THEN COUNT ( * ) END AS col0, - 98 AS col0
----
NULL
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT CASE + 22 WHEN - 57 * - 55 * 33 THEN + MAX( - + 40 ) * - 77 ELSE + 25 END
----
25

skipif mysql # not compatible
query I rowsort label-6421
SELECT CASE + 22 WHEN - 57 * - 55 * 33 THEN + MAX ( - + 40 ) * - 77 ELSE + 25 END
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT NULLIF ( - - 47, COUNT( * ) * COUNT( * ) - - 32 * + ( 4 ) * 16 + + 4 * + COUNT( * ) * - - 18 * 45 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6422
SELECT NULLIF ( - - 47, COUNT ( * ) * COUNT ( * ) - - 32 * + ( 4 ) * 16 + + 4 * + COUNT ( * ) * - - 18 * 45 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - 7 * + COUNT( + COALESCE ( - + 55, - 12 + - ( - - 31 ) / + ( 59 ) ) ) * - + 69
----
483

skipif mysql # not compatible
query I rowsort label-6423
SELECT - 7 * + COUNT ( + COALESCE ( - + 55, - 12 + - ( - - 31 ) / + ( 59 ) ) ) * - + 69
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT COALESCE ( SUM( + 82 ), COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-6424
SELECT COALESCE ( SUM ( + 82 ), COUNT ( * ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL COALESCE ( - 2, 74 * 67 * + - SUM( + 72 ), - 60 - - 98 + - 51 - 94 * - 79 * + 33 + - 24 * + - 8 + - + ( - 80 ) ) * - + 57 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL COALESCE ( - 2, 74 * 67 * + - SUM ( + 72 ), - 60 - - 98 + - 51 - 94 * - 79 * + 33 + - 24 * + - 8 + - + ( - 80 ) ) * - + 57 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT DISTINCT COUNT( + 92 ) * + 27 - 79 * 37
----
-2896

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT COUNT ( + 92 ) * + 27 - 79 * 37
----
-2896

query I rowsort
SELECT + 71 + + 77 AS col0
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6428
SELECT - 49 * 56 + + 16 + - 88 * CAST( NULL AS SIGNED ) * + 62, 41 col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-6428
SELECT - 49 * 56 + + 16 + - 88 * CAST ( NULL AS INTEGER ) * + 62, 41 col0
----
NULL
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6429
SELECT ALL + - 20 * - 37 - + COUNT( ALL + CAST( NULL AS DECIMAL ) )
----
740

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL + - 20 * - 37 - + COUNT ( ALL + CAST ( NULL AS REAL ) )
----
740

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT ALL + 76 * + MAX( ALL + 15 ) AS col1
----
1140

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL + 76 * + MAX ( ALL + 15 ) AS col1
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT - + MAX( ALL NULLIF ( 85, - - 13 + - 25 * + 59 / ( + - 25 ) ) ) * + + 75 * 17 + 69 + - + 88 * 57 AS col1
----
-113322

skipif mysql # not compatible
query I rowsort label-6431
SELECT - + MAX ( ALL NULLIF ( 85, - - 13 + - 25 * + 59 / ( + - 25 ) ) ) * + + 75 * 17 + 69 + - + 88 * 57 AS col1
----
-113322

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + 82 * - 77 + + COUNT( * )
----
-6313

skipif mysql # not compatible
query I rowsort label-6432
SELECT + 82 * - 77 + + COUNT ( * )
----
-6313

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6433
SELECT + - CAST( 19 AS SIGNED ) + - CAST( NULL AS SIGNED ) - - + 11 / - - 91 AS col2, + 72 AS col2
----
NULL
72

skipif mysql # not compatible
query II rowsort label-6433
SELECT + - CAST ( 19 AS INTEGER ) + - CAST ( NULL AS INTEGER ) - - + 11 / - - 91 AS col2, + 72 AS col2
----
NULL
72

query I rowsort
SELECT - ( - 6 ) + - 40
----
-34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT ALL - 93 DIV + 30
----
-3

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL - 93 / + 30
----
-3

query I rowsort
SELECT DISTINCT - 60 * + + 23 col1
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT - 36 + - 96 * - COUNT( - 41 )
----
60

skipif mysql # not compatible
query I rowsort label-6438
SELECT - 36 + - 96 * - COUNT ( - 41 )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT ALL - 49 DIV + + 4 + + + 84 * 55
----
4608

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - 49 / + + 4 + + + 84 * 55
----
4608

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL + + ( + 29 ) * + + 42 + 57 - - COUNT( * )
----
1276

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + + ( + 29 ) * + + 42 + 57 - - COUNT ( * )
----
1276

query I rowsort
SELECT - + 63 * - - 45
----
-2835

query I rowsort
SELECT - 98 + + 15
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT - COALESCE ( - 23, - COUNT( - + ( + 14 ) ), - 32 ) + COUNT( - - 62 ) + SUM( ALL 98 ) * - 71 + - 58 * + MIN( DISTINCT 0 )
----
-6934

skipif mysql # not compatible
query I rowsort label-6444
SELECT - COALESCE ( - 23, - COUNT ( - + ( + 14 ) ), - 32 ) + COUNT ( - - 62 ) + SUM ( ALL 98 ) * - 71 + - 58 * + MIN ( DISTINCT 0 )
----
-6934

query I rowsort
SELECT - 82 * - 47 col0
----
3854

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL - COUNT( * ) * + + COUNT( ALL - ( + - 16 ) ) * - + ( - - 91 ) + - + ( + 32 )
----
59

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL - COUNT ( * ) * + + COUNT ( ALL - ( + - 16 ) ) * - + ( - - 91 ) + - + ( + 32 )
----
59

query I rowsort
SELECT - 25 * 85
----
-2125

query I rowsort
SELECT + 95 * + - 49 AS col0
----
-4655

query I rowsort
SELECT - + 86 + + 19
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT - COUNT( * ) + - 18 * + 72
----
-1297

skipif mysql # not compatible
query I rowsort label-6451
SELECT - COUNT ( * ) + - 18 * + 72
----
-1297

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

query I rowsort
SELECT - 85 + - ( - 82 ) col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT ALL ( + 26 ) DIV - - 5 + + 95
----
100

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL ( + 26 ) / - - 5 + + 95
----
100

query I rowsort
SELECT DISTINCT 32 * + 97
----
3104

onlyif mysql # aggregate syntax: 
query III rowsort label-6456
SELECT + COALESCE ( + + 95, - 88 + + ( - 86 ), - + 70 ) AS col0, - 48, - ( - MAX( ALL + 80 ) ) col0
----
95
-48
80

skipif mysql # not compatible
query III rowsort label-6456
SELECT + COALESCE ( + + 95, - 88 + + ( - 86 ), - + 70 ) AS col0, - 48, - ( - MAX ( ALL + 80 ) ) col0
----
95
-48
80

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

skipif mysql # not compatible
query I rowsort label-6457
SELECT - 49 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6458
SELECT ALL 40 DIV 43 * + 34 DIV + + COUNT( * ) + - - 1 * 55 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL 40 / 43 * + 34 / + + COUNT ( * ) + - - 1 * 55 AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6459
SELECT + SUM( + 69 ) AS col2, - 44 col0
----
69
-44

skipif mysql # not compatible
query II rowsort label-6459
SELECT + SUM ( + 69 ) AS col2, - 44 col0
----
69
-44

query I rowsort
SELECT + 8 + + + 56 AS col2
----
64

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

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

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

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

query I rowsort
SELECT DISTINCT - 55 * 77 * 87 * + 54 AS col1
----
-19896030

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT ( + - 96 ) * + ( + + 14 ) + + 8 DIV 76 + 71 * - - 20 + + + 24
----
100

skipif mysql # not compatible
query I rowsort label-6464
SELECT ( + - 96 ) * + ( + + 14 ) + + 8 / 76 + 71 * - - 20 + + + 24
----
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6465
SELECT DISTINCT - 82 * - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT - 82 * - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6466
SELECT DISTINCT COALESCE ( - COUNT( * ), - CAST( - 25 AS SIGNED ) ) DIV - + NULLIF ( - - 42, 62 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT COALESCE ( - COUNT ( * ), - CAST ( - 25 AS INTEGER ) ) / - + NULLIF ( - - 42, 62 ) col2
----
0

query I rowsort
SELECT 55 + - + 42
----
13

query I rowsort
SELECT - 67 * + 12 * + + 51 AS col0
----
-41004

query I rowsort
SELECT 47 + - 5
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL CASE SUM( 72 ) WHEN + 69 THEN 50 + + + 89 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL CASE SUM ( 72 ) WHEN + 69 THEN 50 + + + 89 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6471
SELECT - 16 + - 15 + + 73 DIV COUNT( * ) + + 82 * 72 + + + 22
----
5968

skipif mysql # not compatible
query I rowsort label-6471
SELECT - 16 + - 15 + + 73 / COUNT ( * ) + + 82 * 72 + + + 22
----
5968

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6473
SELECT DISTINCT 57 AS col1, - MAX( ALL - 79 )
----
57
79

skipif mysql # not compatible
query II rowsort label-6473
SELECT DISTINCT 57 AS col1, - MAX ( ALL - 79 )
----
57
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6474
SELECT COALESCE ( + 36, - CASE COUNT( * ) WHEN + CASE 34 WHEN 71 THEN NULL WHEN - - 43 + + CAST( NULL AS SIGNED ) THEN - COUNT( * ) END THEN NULL ELSE + MIN( ALL + 88 ) END * - - 33 + - 62 * + 24 * - - 25 ) + - 70 + - - CASE + COALESCE ( - 67, - CAST( NULL AS SIGNED ), - 76 ) WHEN COALESCE ( + 23, COUNT( * ) * 90, - COUNT( - 28 ) ) THEN 51 END * + 12 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6474
SELECT COALESCE ( + 36, - CASE COUNT ( * ) WHEN + CASE 34 WHEN 71 THEN NULL WHEN - - 43 + + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) END THEN NULL ELSE + MIN ( ALL + 88 ) END * - - 33 + - 62 * + 24 * - - 25 ) + - 70 + - - CASE + COALESCE ( - 67, - CAST ( NULL AS INTEGER ), - 76 ) WHEN COALESCE ( + 23, COUNT ( * ) * 90, - COUNT ( - 28 ) ) THEN 51 END * + 12 * 33
----
NULL

query I rowsort
SELECT DISTINCT + 70 * - + 21 AS col2
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT + 66 + + - 0 + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-6476
SELECT + 66 + + - 0 + + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6477
SELECT - 52 AS col1, - COUNT( ALL 10 ) + + 19 AS col0
----
-52
18

skipif mysql # not compatible
query II rowsort label-6477
SELECT - 52 AS col1, - COUNT ( ALL 10 ) + + 19 AS col0
----
-52
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL MAX( + 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL MAX ( + 80 ) AS col0
----
80

query II rowsort
SELECT - 74 AS col0, 24 AS col1
----
-74
24

query I rowsort
SELECT COALESCE ( + 64, + 81 ) + 62
----
126

query II rowsort
SELECT 13 * 90, 19 AS col0
----
1170
19

query I rowsort
SELECT ( 24 ) col0
----
24

query II rowsort
SELECT - - 72 AS col2, - 34
----
72
-34

query I rowsort
SELECT ALL - 46 + + 19 + 73 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6485
SELECT - ( - + CASE + 81 WHEN 39 + - 80 - + - CASE - 9 WHEN COUNT( * ) THEN + 84 + ( - + 27 ) END / - + CASE 13 WHEN - CAST( 32 AS SIGNED ) THEN + MAX( ALL - 78 ) WHEN + 85 THEN - COUNT( * ) WHEN AVG ( DISTINCT + 73 ) + COALESCE ( - MIN( ALL + 50 ) - 36, + 45 / - COALESCE ( - 97, 2 ) ) * - COUNT( * ) THEN NULL WHEN 17 THEN 74 * 98 + 50 * COALESCE ( - COUNT( * ) / + CAST( + COUNT( * ) AS SIGNED ), - 79 - - ( - 0 ) * 76, + 91 * COALESCE ( + CAST( + 41 AS SIGNED ) * + 27, + CAST( + 51 AS DECIMAL ) * 13 + - 18, 38 + + NULLIF ( + 51, 68 ) * - 20 ) ) END * + 46 THEN NULL WHEN + 86 THEN NULL ELSE - 81 END )
----
-81

skipif mysql # not compatible
query I rowsort label-6485
SELECT - ( - + CASE + 81 WHEN 39 + - 80 - + - CASE - 9 WHEN COUNT ( * ) THEN + 84 + ( - + 27 ) END / - + CASE 13 WHEN - CAST ( 32 AS INTEGER ) THEN + MAX ( ALL - 78 ) WHEN + 85 THEN - COUNT ( * ) WHEN AVG ( DISTINCT + 73 ) + COALESCE ( - MIN ( ALL + 50 ) - 36, + 45 / - COALESCE ( - 97, 2 ) ) * - COUNT ( * ) THEN NULL WHEN 17 THEN 74 * 98 + 50 * COALESCE ( - COUNT ( * ) / + CAST ( + COUNT ( * ) AS INTEGER ), - 79 - - ( - 0 ) * 76, + 91 * COALESCE ( + CAST ( + 41 AS INTEGER ) * + 27, + CAST ( + 51 AS REAL ) * 13 + - 18, 38 + + NULLIF ( + 51, 68 ) * - 20 ) ) END * + 46 THEN NULL WHEN + 86 THEN NULL ELSE - 81 END )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL 2 + - 44 * + 30 * + MIN( ALL 90 ) + + - CASE COUNT( * ) WHEN - - AVG ( DISTINCT - 10 ) THEN + 15 ELSE NULL END * - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL 2 + - 44 * + 30 * + MIN ( ALL 90 ) + + - CASE COUNT ( * ) WHEN - - AVG ( DISTINCT - 10 ) THEN + 15 ELSE NULL END * - 9 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6487
SELECT 63 DIV - - 36 AS col1, - 55
----
1
-55

skipif mysql # not compatible
query II rowsort label-6487
SELECT 63 / - - 36 AS col1, - 55
----
1
-55

query II rowsort
SELECT ALL - 3 + - 75, 17 col0
----
-78
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6489
SELECT ( - - 5 ) DIV + + COALESCE ( - - 26, - - 25 + - - ( - 81 ) * - - COALESCE ( + ( - - 64 ), - COALESCE ( + + MIN( DISTINCT - 34 ), - NULLIF ( COUNT( * ), + COALESCE ( - ( - - CAST( - - COUNT( * ) AS DECIMAL ) ), - 92 + - 91 ) ), 42 * + CAST( - 54 AS SIGNED ) - 86 ) ) * COUNT( * ) ) * 81 - + 6
----
-6

skipif mysql # not compatible
query I rowsort label-6489
SELECT ( - - 5 ) / + + COALESCE ( - - 26, - - 25 + - - ( - 81 ) * - - COALESCE ( + ( - - 64 ), - COALESCE ( + + MIN ( DISTINCT - 34 ), - NULLIF ( COUNT ( * ), + COALESCE ( - ( - - CAST ( - - COUNT ( * ) AS REAL ) ), - 92 + - 91 ) ), 42 * + CAST ( - 54 AS INTEGER ) - 86 ) ) * COUNT ( * ) ) * 81 - + 6
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6490
SELECT 89 DIV + - 46 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6490
SELECT 89 / + - 46 col0
----
-1

query I rowsort
SELECT ALL + 31 * + 80 AS col2
----
2480

query II rowsort
SELECT ALL - ( 75 ) AS col0, 79
----
-75
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6493
SELECT + 86 DIV - + ( - - 83 ) - - 99 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6493
SELECT + 86 / - + ( - - 83 ) - - 99 AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6494
SELECT ALL - COUNT( 47 ) AS col2, - 16 * - - 73 col1
----
-1
-1168

skipif mysql # not compatible
query II rowsort label-6494
SELECT ALL - COUNT ( 47 ) AS col2, - 16 * - - 73 col1
----
-1
-1168

query I rowsort
SELECT ALL - 68 - - + 82 AS col1
----
14

query I rowsort
SELECT + 41 * 37 * + 1 + + 68 AS col2
----
1585

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL + 93 + - 2 * - + 53 * + COUNT( * )
----
199

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL + 93 + - 2 * - + 53 * + COUNT ( * )
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT 80 * + 22 + COUNT( * ) * + + 94 + 34 * 92 AS col1
----
4982

skipif mysql # not compatible
query I rowsort label-6498
SELECT 80 * + 22 + COUNT ( * ) * + + 94 + 34 * 92 AS col1
----
4982

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT - MIN( DISTINCT - + 58 ) + - + COUNT( * ) + + - ( - - ( 68 ) ) + - 55 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6499
SELECT - MIN ( DISTINCT - + 58 ) + - + COUNT ( * ) + + - ( - - ( 68 ) ) + - 55 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6500
SELECT COUNT( - 64 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6500
SELECT COUNT ( - 64 ), COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT CAST( NULL AS SIGNED ) * - + 7 * + AVG ( 45 ) + - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6501
SELECT CAST ( NULL AS INTEGER ) * - + 7 * + AVG ( 45 ) + - + 92
----
NULL

query I rowsort
SELECT + 55 + + 34 / CASE 63 WHEN - + 3 / - 15 * + 29 + - 86 THEN 84 * - 44 WHEN 60 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 33 + + - 31 col0, - 14 AS col2
----
2
-14

query I rowsort
SELECT 28 * 10 + + 81 + - + 92 * + 55 AS col1
----
-4699

query I rowsort
SELECT + 21 + + 16
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6506
SELECT ALL 0 + - + 38 + + 63 * 46 * + 15 * NULLIF ( + ( + - SUM( ALL - + 65 ) ), + CASE - - 26 WHEN 34 THEN + 50 * + + 96 WHEN + - CASE - 58 WHEN - COUNT( * ) + + 77 * COUNT( * ) + CAST( + 50 AS SIGNED ) + COUNT( * ) THEN + 26 * + 5 ELSE NULL END THEN NULL ELSE + 82 / 20 + NULLIF ( + 73, - 76 * + 2 ) END ) AS col1
----
2825512

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL 0 + - + 38 + + 63 * 46 * + 15 * NULLIF ( + ( + - SUM ( ALL - + 65 ) ), + CASE - - 26 WHEN 34 THEN + 50 * + + 96 WHEN + - CASE - 58 WHEN - COUNT ( * ) + + 77 * COUNT ( * ) + CAST ( + 50 AS INTEGER ) + COUNT ( * ) THEN + 26 * + 5 ELSE NULL END THEN NULL ELSE + 82 / 20 + NULLIF ( + 73, - 76 * + 2 ) END ) AS col1
----
2825512

query I rowsort
SELECT ALL 74 * 2 * + 77
----
11396

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

skipif mysql # not compatible
query II rowsort label-6508
SELECT - COUNT ( * ) AS col1, + 57
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT 89 - + COUNT( * ) + + - COUNT( * ) + + 16
----
103

skipif mysql # not compatible
query I rowsort label-6509
SELECT 89 - + COUNT ( * ) + + - COUNT ( * ) + + 16
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6510
SELECT DISTINCT 62 - + CAST( NULL AS SIGNED ) / - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT 62 - + CAST ( NULL AS INTEGER ) / - - 89
----
NULL

query I rowsort
SELECT ALL 20 * - 93 AS col2
----
-1860

query I rowsort
SELECT 79 + + 71 AS col0
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-6513
SELECT ( - + COUNT( * ) ) * 0 AS col0, 61 - + 40 AS col0
----
0
21

skipif mysql # not compatible
query II rowsort label-6513
SELECT ( - + COUNT ( * ) ) * 0 AS col0, 61 - + 40 AS col0
----
0
21

query I rowsort
SELECT - 48 + - 38
----
-86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6515
SELECT + COALESCE ( ( - COUNT( DISTINCT + 35 ) ), - CASE - 57 WHEN - - 61 THEN - COUNT( * ) WHEN + CAST( NULL AS DECIMAL ) THEN NULL END * - 83, - MIN( - 84 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6515
SELECT + COALESCE ( ( - COUNT ( DISTINCT + 35 ) ), - CASE - 57 WHEN - - 61 THEN - COUNT ( * ) WHEN + CAST ( NULL AS REAL ) THEN NULL END * - 83, - MIN ( - 84 ) ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6516
SELECT + CASE + MAX( + 21 ) WHEN + 33 * 10 + + 23 + 32 + + 41 THEN + CAST( NULL AS SIGNED ) / - - ( - - 15 ) WHEN 38 + - ( 93 ) THEN NULL WHEN - + COUNT( * ) * - - COUNT( * ) THEN + 44 ELSE NULL END * COALESCE ( - - 96, + 56 * - 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT + CASE + MAX ( + 21 ) WHEN + 33 * 10 + + 23 + 32 + + 41 THEN + CAST ( NULL AS INTEGER ) / - - ( - - 15 ) WHEN 38 + - ( 93 ) THEN NULL WHEN - + COUNT ( * ) * - - COUNT ( * ) THEN + 44 ELSE NULL END * COALESCE ( - - 96, + 56 * - 35 ) AS col0
----
NULL

query I rowsort
SELECT + 12 * 57 * - 42 * - 90
----
2585520

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6519
SELECT NULLIF ( - 83, 99 ) AS col1, - CAST( NULL AS SIGNED ) * COUNT( * )
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-6519
SELECT NULLIF ( - 83, 99 ) AS col1, - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
-83
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6520
SELECT - 36 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6520
SELECT - 36 / - 90 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6522
SELECT ALL 32 * - - 91 * 3 AS col1, + SUM( DISTINCT NULLIF ( CAST( NULL AS SIGNED ), - + 67 * + - ( + 41 ) + - 68 + - - 61 ) ) + + + ( 94 )
----
8736
NULL

skipif mysql # not compatible
query II rowsort label-6522
SELECT ALL 32 * - - 91 * 3 AS col1, + SUM ( DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), - + 67 * + - ( + 41 ) + - 68 + - - 61 ) ) + + + ( 94 )
----
8736
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL + 70 * + COUNT( * ) + - ( + ( ( + 9 ) ) ) * 0 + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + 70 * + COUNT ( * ) + - ( + ( ( + 9 ) ) ) * 0 + - COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT DISTINCT + + COUNT( * ) col0, MAX( ALL + 80 ) + + 1
----
1
81

skipif mysql # not compatible
query II rowsort label-6524
SELECT DISTINCT + + COUNT ( * ) col0, MAX ( ALL + 80 ) + + 1
----
1
81

query I rowsort
SELECT DISTINCT + + 62 * + 59 + 30 AS col0
----
3688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6526
SELECT DISTINCT - + 16 * + 98 / + + 31 * + 66 * + + 91 + - CAST( NULL AS SIGNED ) AS col1, SUM( DISTINCT 86 ) - 14
----
NULL
72

skipif mysql # not compatible
query II rowsort label-6526
SELECT DISTINCT - + 16 * + 98 / + + 31 * + 66 * + + 91 + - CAST ( NULL AS INTEGER ) AS col1, SUM ( DISTINCT 86 ) - 14
----
NULL
72

query I rowsort
SELECT - + 40 + 21
----
-19

query I rowsort
SELECT - - 81 * - - 49 AS col1
----
3969

query I rowsort
SELECT + 34 * - 89 - + - 78 AS col2
----
-2948

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT - 57 * - 16 + - COUNT( * ) + 1 * - 99 + 66 * - - 27 * - 5 AS col1
----
-8098

skipif mysql # not compatible
query I rowsort label-6530
SELECT - 57 * - 16 + - COUNT ( * ) + 1 * - 99 + 66 * - - 27 * - 5 AS col1
----
-8098

onlyif mysql # aggregate syntax: 
query II rowsort label-6531
SELECT + 97 AS col0, COUNT( * ) + 67
----
97
68

skipif mysql # not compatible
query II rowsort label-6531
SELECT + 97 AS col0, COUNT ( * ) + 67
----
97
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL 24 * COUNT( - 49 ) * - + 79 + 23 + ( + - 32 ) + + - 94 * + 17 + - 0
----
-3503

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL 24 * COUNT ( - 49 ) * - + 79 + 23 + ( + - 32 ) + + - 94 * + 17 + - 0
----
-3503

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL 61 * - + COUNT( * ) + - - 99
----
38

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL 61 * - + COUNT ( * ) + - - 99
----
38

query I rowsort
SELECT - 92 * - 86 AS col1
----
7912

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6536
SELECT DISTINCT - ( MIN( + 13 ) ) AS col1, 91
----
-13
91

skipif mysql # not compatible
query II rowsort label-6536
SELECT DISTINCT - ( MIN ( + 13 ) ) AS col1, 91
----
-13
91

query II rowsort
SELECT DISTINCT + ( + 51 ) * - 20, 16 AS col2
----
-1020
16

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

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

query I rowsort
SELECT ALL - 60 - - 27 * + 39 * 66
----
69438

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT - + CASE - 44 WHEN 23 THEN - 7 * - 47 + - 53 - 19 WHEN + - 88 THEN NULL WHEN 27 * - + COUNT( * ) - + - 39 + + COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT - + CASE - 44 WHEN 23 THEN - 7 * - 47 + - 53 - 19 WHEN + - 88 THEN NULL WHEN 27 * - + COUNT ( * ) - + - 39 + + COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT + 15 DIV 26 * 73 * + 61 DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6541
SELECT + 15 / 26 * 73 * + 61 / 70 AS col2
----
0

query I rowsort
SELECT + 32 + + 30 AS col2
----
62

query I rowsort
SELECT + 91 * + - 11 col1
----
-1001

query I rowsort
SELECT + 8 + + - 48 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6545
SELECT - SUM( - + 9 ) AS col1, - 58 + 7 AS col0
----
9
-51

skipif mysql # not compatible
query II rowsort label-6545
SELECT - SUM ( - + 9 ) AS col1, - 58 + 7 AS col0
----
9
-51

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT - CAST( + + NULLIF ( 59, + 84 * - 49 ) AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6548
SELECT - CAST ( + + NULLIF ( 59, + 84 * - 49 ) AS INTEGER ) AS col0
----
-59

query I rowsort
SELECT + NULLIF ( 47, 87 )
----
47

query I rowsort
SELECT + 89 * - 3
----
-267

query II rowsort
SELECT - 95 * 3 AS col0, - 59
----
-285
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-6552
SELECT ALL - 23 DIV + NULLIF ( + - 83, 68 * - 99 DIV 51 ) * - - 59 + - 57 + + 55 * 10 * + 7 * - 43 AS col0, 56 AS col2
----
-165607
56

skipif mysql # not compatible
query II rowsort label-6552
SELECT ALL - 23 / + NULLIF ( + - 83, 68 * - 99 / 51 ) * - - 59 + - 57 + + 55 * 10 * + 7 * - 43 AS col0, 56 AS col2
----
-165607
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6553
SELECT 42 DIV - 23 - - SUM( - NULLIF ( + + 73, 54 * - 85 - 23 - 16 * + + 4 ) ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-6553
SELECT 42 / - 23 - - SUM ( - NULLIF ( + + 73, 54 * - 85 - 23 - 16 * + + 4 ) ) col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT ALL 12 * SUM( ALL 69 ) AS col0
----
828

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL 12 * SUM ( ALL 69 ) AS col0
----
828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6555
SELECT ALL + 62 DIV - - COUNT( * ) + + - 12 * + + 76 + + ( + 73 )
----
-777

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + 62 / - - COUNT ( * ) + + - 12 * + + 76 + + ( + 73 )
----
-777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6556
SELECT ALL + 51 / - + 93 + SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1, + 53 + + 85 * + 58 AS col2
----
NULL
4983

skipif mysql # not compatible
query II rowsort label-6556
SELECT ALL + 51 / - + 93 + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1, + 53 + + 85 * + 58 AS col2
----
NULL
4983

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6557
SELECT ALL + ( 3 ) DIV + - 56 * + + CAST( - + COUNT( * ) AS SIGNED ) + + 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL + ( 3 ) / + - 56 * + + CAST ( - + COUNT ( * ) AS INTEGER ) + + 35 AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT ALL - 72 DIV + 2 + - + 12
----
-48

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - 72 / + 2 + - + 12
----
-48

query I rowsort
SELECT + + 10 + + - 92
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT + 5 DIV 47 - - 41 - - NULLIF ( - 20, - + 32 + + 50 ) * 48
----
-919

skipif mysql # not compatible
query I rowsort label-6560
SELECT + 5 / 47 - - 41 - - NULLIF ( - 20, - + 32 + + 50 ) * 48
----
-919

query I rowsort
SELECT - + 57 * + + 79 + + 73
----
-4430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT - COUNT( * ) DIV - 34 + COUNT( * ) * + 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6562
SELECT - COUNT ( * ) / - 34 + COUNT ( * ) * + 53 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6563
SELECT - COUNT( * ) * - - CAST( NULL AS SIGNED ) + + COALESCE ( - MAX( + 80 ), - 18 ) + + COALESCE ( - 34, - + 27 / - AVG ( + 80 ), COUNT( * ) ) - + ( - 94 ) / + ( - 6 ) + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + + COALESCE ( - MAX ( + 80 ), - 18 ) + + COALESCE ( - 34, - + 27 / - AVG ( + 80 ), COUNT ( * ) ) - + ( - 94 ) / + ( - 6 ) + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL - COUNT( * ) * 35 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL - COUNT ( * ) * 35 AS col2
----
-35

query I rowsort
SELECT DISTINCT 50 * - + 84 + 92 AS col0
----
-4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6566
SELECT ALL + 7 * + CASE + + 29 WHEN - COUNT( * ) * 22 THEN CAST( NULL AS SIGNED ) ELSE + + SUM( ALL 35 ) * + 6 END + 59 - - CASE + 77 WHEN ( + + 88 ) * - MIN( ALL 81 ) * - 73 + + COUNT( * ) THEN - + 23 ELSE NULL END - + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + 7 * + CASE + + 29 WHEN - COUNT ( * ) * 22 THEN CAST ( NULL AS INTEGER ) ELSE + + SUM ( ALL 35 ) * + 6 END + 59 - - CASE + 77 WHEN ( + + 88 ) * - MIN ( ALL 81 ) * - 73 + + COUNT ( * ) THEN - + 23 ELSE NULL END - + 91 AS col0
----
NULL

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

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

query I rowsort
SELECT - NULLIF ( - 55, + 42 )
----
55

query I rowsort
SELECT + 9 * 74 col0
----
666

query I rowsort
SELECT DISTINCT - 0 * + - 87 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6571
SELECT DISTINCT - 27 DIV + 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT - 27 / + 72 col1
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6573
SELECT 17 DIV + 93 * - 88 AS col0, + 53
----
0
53

skipif mysql # not compatible
query II rowsort label-6573
SELECT 17 / + 93 * - 88 AS col0, + 53
----
0
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT 88 + MIN( ALL - 11 ) + - - 31 + - - CASE 49 WHEN - MIN( + 31 ) THEN + + SUM( ALL - COALESCE ( - 72, + + 28 ) ) ELSE NULL END * 60 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT 88 + MIN ( ALL - 11 ) + - - 31 + - - CASE 49 WHEN - MIN ( + 31 ) THEN + + SUM ( ALL - COALESCE ( - 72, + + 28 ) ) ELSE NULL END * 60 col1
----
NULL

query I rowsort
SELECT 23 - 41 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL ( CASE + - NULLIF ( + - 75, 25 / - + 85 - - - 94 ) WHEN - - 67 THEN COUNT( * ) * COUNT( * ) / + 0 - 4 + - + 10 ELSE NULL END ) + - - 89 - + + 62 * + + CASE 58 WHEN + SUM( ALL + 44 ) THEN NULL WHEN + COUNT( * ) * 61 + - ( 61 ) THEN + + CASE - 33 WHEN 1 THEN ( SUM( DISTINCT 10 ) ) + AVG ( ALL - 29 ) END ELSE NULL END * + AVG ( ALL + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL ( CASE + - NULLIF ( + - 75, 25 / - + 85 - - - 94 ) WHEN - - 67 THEN COUNT ( * ) * COUNT ( * ) / + 0 - 4 + - + 10 ELSE NULL END ) + - - 89 - + + 62 * + + CASE 58 WHEN + SUM ( ALL + 44 ) THEN NULL WHEN + COUNT ( * ) * 61 + - ( 61 ) THEN + + CASE - 33 WHEN 1 THEN ( SUM ( DISTINCT 10 ) ) + AVG ( ALL - 29 ) END ELSE NULL END * + AVG ( ALL + 1 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6577
SELECT COUNT ( * ) / + + 49 AS col0
----
0

query I rowsort
SELECT 13 + + - 4 AS col0
----
9

query I rowsort
SELECT DISTINCT - 65 + - - 50
----
-15

query II rowsort
SELECT + + 32 AS col2, - 70 * 49 * 31 AS col2
----
32
-106330

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

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

query II rowsort
SELECT ALL - 37 AS col2, 85
----
-37
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6583
SELECT + MIN( ALL 33 ) * 35 + + COUNT( * ) + - 29 DIV - 81
----
1156

skipif mysql # not compatible
query I rowsort label-6583
SELECT + MIN ( ALL 33 ) * 35 + + COUNT ( * ) + - 29 / - 81
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT + NULLIF ( - COUNT( * ), + ( - 28 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6584
SELECT + NULLIF ( - COUNT ( * ), + ( - 28 ) ) AS col2
----
-1

query I rowsort
SELECT 16 + - 99 AS col2
----
-83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL - SUM( ALL 82 ) - + 94 AS col1
----
-176

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL - SUM ( ALL 82 ) - + 94 AS col1
----
-176

query I rowsort
SELECT DISTINCT - + 44 * 82
----
-3608

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6590
SELECT 72 DIV - MIN( ALL - - 6 ) AS col2, SUM( ALL + - 80 ) + + + MAX( - 19 )
----
-12
-99

skipif mysql # not compatible
query II rowsort label-6590
SELECT 72 / - MIN ( ALL - - 6 ) AS col2, SUM ( ALL + - 80 ) + + + MAX ( - 19 )
----
-12
-99

query I rowsort
SELECT - NULLIF ( + + 86, 11 )
----
-86

query I rowsort
SELECT ALL + 77 * + 76 col1
----
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT CASE + 22 WHEN + 6 THEN NULL WHEN + + COUNT( * ) * 68 THEN - - 94 END * - 73 / + COALESCE ( - 71, - - 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT CASE + 22 WHEN + 6 THEN NULL WHEN + + COUNT ( * ) * 68 THEN - - 94 END * - 73 / + COALESCE ( - 71, - - 9 ) AS col1
----
NULL

query II rowsort
SELECT ALL - 53 AS col0, + 63 - - NULLIF ( + 64, + 82 + - 38 )
----
-53
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6595
SELECT DISTINCT 3 * + NULLIF ( NULLIF ( - 44, + ( 1 ) ), - NULLIF ( - CAST( NULL AS SIGNED ), CASE 27 WHEN - + COUNT( * ) THEN COUNT( * ) ELSE + - 10 END ) * + - 31 * + COALESCE ( - 93, - + 38 ) ) * ( - + 36 ) + + + 75 + MIN( + + 18 ) * 96
----
6555

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT 3 * + NULLIF ( NULLIF ( - 44, + ( 1 ) ), - NULLIF ( - CAST ( NULL AS INTEGER ), CASE 27 WHEN - + COUNT ( * ) THEN COUNT ( * ) ELSE + - 10 END ) * + - 31 * + COALESCE ( - 93, - + 38 ) ) * ( - + 36 ) + + + 75 + MIN ( + + 18 ) * 96
----
6555

query II rowsort
SELECT - 66 AS col0, COALESCE ( - 98, + + 27 * - 96 )
----
-66
-98

query I rowsort
SELECT ALL 38 * 0 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL - 14 + + - COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT 97 * + 58 AS col2
----
5626

query I rowsort
SELECT 33 + + 59 AS col2
----
92

query II rowsort
SELECT 23 * - 28 col0, - 64
----
-644
-64

query II rowsort
SELECT - 98, - COALESCE ( - 15, - 23 ) col1
----
-98
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6603
SELECT ALL 71 + + 13, + 67 + - 68 - - 89 - - ( + 13 ) + 68 - - - 49 * + 52 DIV + CAST( - COUNT( * ) AS SIGNED ) col0
----
84
2717

skipif mysql # not compatible
query II rowsort label-6603
SELECT ALL 71 + + 13, + 67 + - 68 - - 89 - - ( + 13 ) + 68 - - - 49 * + 52 / + CAST ( - COUNT ( * ) AS INTEGER ) col0
----
84
2717

onlyif mysql # aggregate syntax: 
query II rowsort label-6604
SELECT 13 - 8, 74 * - COUNT( * ) AS col0
----
5
-74

skipif mysql # not compatible
query II rowsort label-6604
SELECT 13 - 8, 74 * - COUNT ( * ) AS col0
----
5
-74

query II rowsort
SELECT 48 * + 98 AS col1, - ( + 49 ) AS col0
----
4704
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT - COALESCE ( MAX( DISTINCT 7 ), - - 75 ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-6606
SELECT - COALESCE ( MAX ( DISTINCT 7 ), - - 75 ) col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6607
SELECT - COUNT( * ), NULLIF ( + + 28, + - 5 / 56 + 55 - - 66 * - 63 * - NULLIF ( COUNT( * ), - 33 * 1 - - - 85 + + ( + - CAST( - - 54 AS SIGNED ) ) + AVG ( + 99 ) * + 4 ) / - 19 * + 65 + - 42 ) col2
----
-1
28

skipif mysql # not compatible
query II rowsort label-6607
SELECT - COUNT ( * ), NULLIF ( + + 28, + - 5 / 56 + 55 - - 66 * - 63 * - NULLIF ( COUNT ( * ), - 33 * 1 - - - 85 + + ( + - CAST ( - - 54 AS INTEGER ) ) + AVG ( + 99 ) * + 4 ) / - 19 * + 65 + - 42 ) col2
----
-1
28

query I rowsort
SELECT + 31 * - ( - 6 ) + 27
----
213

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT DISTINCT - NULLIF ( + COUNT( * ), + 3 ) * + 59 / + CAST( NULL AS SIGNED ) + 52 - 25 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT - NULLIF ( + COUNT ( * ), + 3 ) * + 59 / + CAST ( NULL AS INTEGER ) + 52 - 25 + + 89
----
NULL

query I rowsort
SELECT + 58 - + + 67
----
-9

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

skipif mysql # not compatible
query II rowsort label-6612
SELECT + 4 AS col1, COUNT ( * )
----
4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ALL - 41 * + COUNT( * ) * - + 83 - - 33
----
3436

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL - 41 * + COUNT ( * ) * - + 83 - - 33
----
3436

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT - MAX( 1 ) * - - MIN( DISTINCT - 74 ) * + 76
----
5624

skipif mysql # not compatible
query I rowsort label-6614
SELECT - MAX ( 1 ) * - - MIN ( DISTINCT - 74 ) * + 76
----
5624

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL - - SUM( DISTINCT - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - - SUM ( DISTINCT - - 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6616
SELECT - CAST( NULL AS SIGNED ) + + - AVG ( 83 ) + SUM( DISTINCT 2 ) * - 84 * - ( 39 ) * + MAX( - 35 ) / + + COUNT( * ), - 94 col1
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-6616
SELECT - CAST ( NULL AS INTEGER ) + + - AVG ( 83 ) + SUM ( DISTINCT 2 ) * - 84 * - ( 39 ) * + MAX ( - 35 ) / + + COUNT ( * ), - 94 col1
----
NULL
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT 92 * - 0 + - COUNT( * ) + + - 17
----
-18

skipif mysql # not compatible
query I rowsort label-6617
SELECT 92 * - 0 + - COUNT ( * ) + + - 17
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6618
SELECT + COUNT( * ) - + 14 + + 24 + - SUM( CAST( 22 AS SIGNED ) ) * - 25 * COUNT( * ) AS col1
----
561

skipif mysql # not compatible
query I rowsort label-6618
SELECT + COUNT ( * ) - + 14 + + 24 + - SUM ( CAST ( 22 AS INTEGER ) ) * - 25 * COUNT ( * ) AS col1
----
561

query I rowsort
SELECT ALL + 81 * - 86
----
-6966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6620
SELECT + COALESCE ( 30, SUM( - 2 ) DIV 49, - 4 DIV SUM( - NULLIF ( - 46, + + 15 ) ) + 63 * - - CASE - + 3 WHEN + COUNT( * ) * + + 58 + 18 THEN + COUNT( * ) WHEN 94 THEN - 57 END ) * + + 12 + + 1
----
361

skipif mysql # not compatible
query I rowsort label-6620
SELECT + COALESCE ( 30, SUM ( - 2 ) / 49, - 4 / SUM ( - NULLIF ( - 46, + + 15 ) ) + 63 * - - CASE - + 3 WHEN + COUNT ( * ) * + + 58 + 18 THEN + COUNT ( * ) WHEN 94 THEN - 57 END ) * + + 12 + + 1
----
361

query I rowsort
SELECT ( - 28 ) * - 21 * ( - + 83 ) AS col1
----
-48804

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6623
SELECT DISTINCT - - COALESCE ( - COUNT( * ), + + 53, - CAST( 95 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT - - COALESCE ( - COUNT ( * ), + + 53, - CAST ( 95 AS INTEGER ) )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL + MAX( ALL + 97 ) * + + 46 * - COUNT( * ) + - 42 - 70 + + 96 + + ( - 22 ) * - - 25 * + 85 + 95 * 97 AS col0
----
-42013

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL + MAX ( ALL + 97 ) * + + 46 * - COUNT ( * ) + - 42 - 70 + + 96 + + ( - 22 ) * - - 25 * + 85 + 95 * 97 AS col0
----
-42013

query I rowsort
SELECT + 66 * 48 + 34 AS col1
----
3202

query I rowsort
SELECT + NULLIF ( + 26, - 53 / + - 57 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT DISTINCT SUM( - 11 ) + + 98 * + - 96 AS col0
----
-9419

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT SUM ( - 11 ) + + 98 * + - 96 AS col0
----
-9419

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT + ( - MAX( DISTINCT 16 ) ) * - - 12
----
-192

skipif mysql # not compatible
query I rowsort label-6629
SELECT + ( - MAX ( DISTINCT 16 ) ) * - - 12
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT - 2 + + 86 * COUNT( * ) - 89 * + + 66
----
-5790

skipif mysql # not compatible
query I rowsort label-6630
SELECT - 2 + + 86 * COUNT ( * ) - 89 * + + 66
----
-5790

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL COALESCE ( + - 66, SUM( - 65 ) ) * 64
----
-4224

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL COALESCE ( + - 66, SUM ( - 65 ) ) * 64
----
-4224

query I rowsort
SELECT - 78 + 44
----
-34

query I rowsort
SELECT ALL 84 * + + ( - - ( + 95 ) ) AS col2
----
7980

query I rowsort
SELECT - NULLIF ( - 95, + ( 29 ) ) col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT DISTINCT SUM( DISTINCT 46 ) + - 72 + + ( + 30 ) * + - COALESCE ( - CAST( NULL AS SIGNED ), + + 2 * + 58 * - 57, + 70 ) col1
----
198334

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT SUM ( DISTINCT 46 ) + - 72 + + ( + 30 ) * + - COALESCE ( - CAST ( NULL AS INTEGER ), + + 2 * + 58 * - 57, + 70 ) col1
----
198334

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

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL COUNT ( ALL + 63 ) AS col2
----
1

query I rowsort
SELECT ALL CASE - - 35 WHEN ( + 19 ) + - + 70 THEN ( + 98 ) WHEN 49 THEN NULL ELSE NULL END + - 52 AS col0
----
NULL

query I rowsort
SELECT ALL 48 * - - 40 * 75 * 18 AS col1
----
2592000

query I rowsort
SELECT ALL - 47 + 16 AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6640
SELECT - COUNT( * ) - + + 74 + - 79 * + - 58 / - - 2 * 96 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT - COUNT ( * ) - + + 74 + - 79 * + - 58 / - - 2 * 96 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL + COUNT( * ) - + 26 * 2 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + COUNT ( * ) - + 26 * 2 AS col2
----
-51

query I rowsort
SELECT - 15 + + 27 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT - - 48 * + COUNT( * ) * - COALESCE ( 13, + SUM( ALL + 85 ), - 21 ) col2
----
-624

skipif mysql # not compatible
query I rowsort label-6643
SELECT - - 48 * + COUNT ( * ) * - COALESCE ( 13, + SUM ( ALL + 85 ), - 21 ) col2
----
-624

query I rowsort
SELECT - 29 + - 10 AS col1
----
-39

query II rowsort
SELECT - 42 + 20 AS col0, - 55 + + - 25 + - 43 + + 61
----
-22
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT DISTINCT + 93 * 5 * - CAST( - - 51 AS SIGNED ) AS col1
----
-23715

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT + 93 * 5 * - CAST ( - - 51 AS INTEGER ) AS col1
----
-23715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6647
SELECT ALL + COALESCE ( - 63, NULLIF ( - 67, + SUM( ALL + 9 ) ) * + 59 * 63 * 40 * - 93 + - + CASE + COALESCE ( COUNT( * ), + 94 ) WHEN - + 8 THEN 54 WHEN + 34 / 35 THEN NULL END, 74 + + 25 + + 91 * + 97 + CAST( NULL AS SIGNED ) + 73 )
----
-63

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL + COALESCE ( - 63, NULLIF ( - 67, + SUM ( ALL + 9 ) ) * + 59 * 63 * 40 * - 93 + - + CASE + COALESCE ( COUNT ( * ), + 94 ) WHEN - + 8 THEN 54 WHEN + 34 / 35 THEN NULL END, 74 + + 25 + + 91 * + 97 + CAST ( NULL AS INTEGER ) + 73 )
----
-63

query I rowsort
SELECT DISTINCT + 44 * - 4 AS col0
----
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT - 31 DIV 11
----
-2

skipif mysql # not compatible
query I rowsort label-6649
SELECT - 31 / 11
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6650
SELECT 41 DIV - 29 + - MAX( - 13 ) DIV 4 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6650
SELECT 41 / - 29 + - MAX ( - 13 ) / 4 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL + COUNT( * ) * + 65 - 52 * - 72 + - 82 + + 32 AS col0
----
3759

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL + COUNT ( * ) * + 65 - 52 * - 72 + - 82 + + 32 AS col0
----
3759

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT DISTINCT + 28 * - - 74 * - - MAX( ALL - + NULLIF ( + 5, - 48 ) ) AS col2
----
-10360

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT + 28 * - - 74 * - - MAX ( ALL - + NULLIF ( + 5, - 48 ) ) AS col2
----
-10360

query I rowsort
SELECT - - 64 * - 95 * 88
----
-535040

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT + 50 * + MIN( - + 44 ) + ( - 39 ) + 88 * 75 AS col2
----
4361

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT + 50 * + MIN ( - + 44 ) + ( - 39 ) + 88 * 75 AS col2
----
4361

query I rowsort
SELECT + NULLIF ( + + 15, + + ( + 64 ) ) col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL 49 * - 4 + - 78 + + COUNT( * )
----
-273

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL 49 * - 4 + - 78 + + COUNT ( * )
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6657
SELECT + 62 * + 4 - - CASE + 80 WHEN 79 THEN + 78 * 82 * + + ( COUNT( + + 43 ) ) * - ( + - 73 ) + + 10 * - - 42 * - 31 WHEN + 16 / ( + 73 ) - - CAST( - MAX( - 68 ) AS SIGNED ) * 52 * + 54 THEN 96 * - - MIN( ALL + + 79 ) * - 64 + + 24 END * - 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT + 62 * + 4 - - CASE + 80 WHEN 79 THEN + 78 * 82 * + + ( COUNT ( + + 43 ) ) * - ( + - 73 ) + + 10 * - - 42 * - 31 WHEN + 16 / ( + 73 ) - - CAST ( - MAX ( - 68 ) AS INTEGER ) * 52 * + 54 THEN 96 * - - MIN ( ALL + + 79 ) * - 64 + + 24 END * - 31 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6658
SELECT CASE + 84 WHEN - COALESCE ( + CAST( NULL AS SIGNED ), - 39 / + 6, + CASE + 73 WHEN 96 * + 97 + - CAST( NULL AS SIGNED ) + - + 25 * - 8 + 82 THEN + 3 + - 91 END, + 42 + 41 ) THEN - CAST( NULL AS SIGNED ) ELSE - MAX( CAST( NULL AS SIGNED ) ) * 78 - + 12 * - 58 + NULLIF ( - 35, + 7 * + COUNT( * ) + CAST( - 0 AS DECIMAL ) / + 36 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT CASE + 84 WHEN - COALESCE ( + CAST ( NULL AS INTEGER ), - 39 / + 6, + CASE + 73 WHEN 96 * + 97 + - CAST ( NULL AS INTEGER ) + - + 25 * - 8 + 82 THEN + 3 + - 91 END, + 42 + 41 ) THEN - CAST ( NULL AS INTEGER ) ELSE - MAX ( CAST ( NULL AS INTEGER ) ) * 78 - + 12 * - 58 + NULLIF ( - 35, + 7 * + COUNT ( * ) + CAST ( - 0 AS REAL ) / + 36 ) END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6659
SELECT - ( 45 ) * COUNT ( * )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6660
SELECT DISTINCT - 46 * + CASE - + 97 WHEN 73 * + + 46 THEN NULL ELSE + COUNT( * ) + + 53 END * + CAST( NULL AS SIGNED ) + + 98 * - 51 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT - 46 * + CASE - + 97 WHEN 73 * + + 46 THEN NULL ELSE + COUNT ( * ) + + 53 END * + CAST ( NULL AS INTEGER ) + + 98 * - 51 + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 79 * + + 34
----
2686

query I rowsort
SELECT COALESCE ( + 94, + + COALESCE ( - 29, 11 * - - 69 ) ) AS col2
----
94

query I rowsort
SELECT ALL - 47 * - 36 * - 1 + - 47 - + 33 AS col1
----
-1772

query I rowsort
SELECT + 8 + - - 77
----
85

query I rowsort
SELECT DISTINCT 61 * + + 38 + - + 65 * - COALESCE ( + 46, - 59, + 70 ) AS col1
----
5308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6666
SELECT + 84 + CASE + 60 WHEN + 18 + ( - 3 ) THEN COALESCE ( 75, + 49, + + COUNT( * ) + + 87 * - CAST( - + 69 AS SIGNED ) ) END + MAX( - - 34 ) * 63 + + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT + 84 + CASE + 60 WHEN + 18 + ( - 3 ) THEN COALESCE ( 75, + 49, + + COUNT ( * ) + + 87 * - CAST ( - + 69 AS INTEGER ) ) END + MAX ( - - 34 ) * 63 + + + 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT - COUNT( * ) * 65 - + + 27 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-6667
SELECT - COUNT ( * ) * 65 - + + 27 AS col1
----
-92

query I rowsort
SELECT - ( - - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6669
SELECT ALL 86 AS col2, + SUM( 21 ) * - 60 * 29
----
86
-36540

skipif mysql # not compatible
query II rowsort label-6669
SELECT ALL 86 AS col2, + SUM ( 21 ) * - 60 * 29
----
86
-36540

query I rowsort
SELECT DISTINCT 89 * - 64
----
-5696

query I rowsort
SELECT + 7 + - - 65 * + 45 + 48 * + CASE - 97 WHEN + 46 + + 70 THEN 51 * 43 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6672
SELECT + COALESCE ( + + 54, + 14 * - - 58 * + + 65 ) * 98 + - + MIN( ALL + 44 ), + CAST( + 71 AS SIGNED ) * + 36 AS col0
----
5248
2556

skipif mysql # not compatible
query II rowsort label-6672
SELECT + COALESCE ( + + 54, + 14 * - - 58 * + + 65 ) * 98 + - + MIN ( ALL + 44 ), + CAST ( + 71 AS INTEGER ) * + 36 AS col0
----
5248
2556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6673
SELECT + COALESCE ( 39, - + 94 * - - 74 + + 51 * + COUNT( * ) DIV + 20 ) + 12
----
51

skipif mysql # not compatible
query I rowsort label-6673
SELECT + COALESCE ( 39, - + 94 * - - 74 + + 51 * + COUNT ( * ) / + 20 ) + 12
----
51

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

skipif mysql # not compatible
query I rowsort label-6674
SELECT - COUNT ( * ) + 32 + + 67 AS col1
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL 43 * + NULLIF ( - ( + COUNT( * ) ), COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL 43 * + NULLIF ( - ( + COUNT ( * ) ), COUNT ( * ) )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6677
SELECT NULLIF ( 45, + CAST( + - 47 AS SIGNED ) - 63 )
----
45

skipif mysql # not compatible
query I rowsort label-6677
SELECT NULLIF ( 45, + CAST ( + - 47 AS INTEGER ) - 63 )
----
45

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

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

query I rowsort
SELECT DISTINCT 5 * - - ( ( 90 ) )
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT - - NULLIF ( + 91, 80 * - SUM( + 59 ) - + - COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6680
SELECT - - NULLIF ( + 91, 80 * - SUM ( + 59 ) - + - COUNT ( * ) ) AS col2
----
91

query I rowsort
SELECT - + 36 * - + ( - 7 ) AS col2
----
-252

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

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

query II rowsort
SELECT - 0 AS col2, - 55
----
0
-55

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6685
SELECT ALL - + ( + 11 ) + + - 29 AS col0, + MIN( DISTINCT 2 ) + - - 25 AS col1
----
-40
27

skipif mysql # not compatible
query II rowsort label-6685
SELECT ALL - + ( + 11 ) + + - 29 AS col0, + MIN ( DISTINCT 2 ) + - - 25 AS col1
----
-40
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6686
SELECT - 43 - MIN( 67 ) DIV - + 30 col1, + ( + 86 ), + - 44 * + - CASE - + 75 WHEN + 16 * - - 64 THEN NULL WHEN - 69 * - COUNT( * ) - - 50 THEN NULL ELSE + + 37 END * + - CASE COALESCE ( CASE - 77 WHEN - 0 THEN + + ( - ( - 22 ) ) END, - + 83, COUNT( ALL - 10 ) * - ( - 31 ), + COUNT( * ) ) WHEN 79 THEN 5 ELSE NULL END - - MIN( 69 ) AS col2
----
-41
86
NULL

skipif mysql # not compatible
query III rowsort label-6686
SELECT - 43 - MIN ( 67 ) / - + 30 col1, + ( + 86 ), + - 44 * + - CASE - + 75 WHEN + 16 * - - 64 THEN NULL WHEN - 69 * - COUNT ( * ) - - 50 THEN NULL ELSE + + 37 END * + - CASE COALESCE ( CASE - 77 WHEN - 0 THEN + + ( - ( - 22 ) ) END, - + 83, COUNT ( ALL - 10 ) * - ( - 31 ), + COUNT ( * ) ) WHEN 79 THEN 5 ELSE NULL END - - MIN ( 69 ) AS col2
----
-41
86
NULL

query I rowsort
SELECT ALL 17 + 82 AS col0
----
99

query I rowsort
SELECT 50 - - 59 + + - 3 * + 61 + - 22 * + 25 AS col1
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL + COUNT( - - 81 ) * CASE - 46 WHEN - 2 THEN NULL WHEN 42 THEN + ( - 25 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + COUNT ( - - 81 ) * CASE - 46 WHEN - 2 THEN NULL WHEN 42 THEN + ( - 25 ) END AS col1
----
NULL

query I rowsort
SELECT ALL - - 3 + + 49 * - 16 AS col2
----
-781

query I rowsort
SELECT ALL - 64 + + 64 AS col2
----
0

query I rowsort
SELECT 82 + - + 7
----
75

query I rowsort
SELECT 17 * - 54 * - NULLIF ( 43, - - 15 + 51 + + 89 / - - 68 + + + ( AVG ( ALL - 58 ) ) )
----
39474

query I rowsort
SELECT ALL - 55 * + 84
----
-4620

onlyif mysql # aggregate syntax: 
query II rowsort label-6695
SELECT 27 - 57, + 47 * - ( + 57 ) * 99 + 54 * - ( + ( - COUNT( * ) ) ) + + - COUNT( * ) AS col1
----
-30
-265168

skipif mysql # not compatible
query II rowsort label-6695
SELECT 27 - 57, + 47 * - ( + 57 ) * 99 + 54 * - ( + ( - COUNT ( * ) ) ) + + - COUNT ( * ) AS col1
----
-30
-265168

query I rowsort
SELECT ALL - CASE - 97 WHEN 97 * - 62 THEN NULL ELSE 87 END
----
-87

query I rowsort
SELECT 7 * + - 95 AS col0
----
-665

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6698
SELECT ALL - 19 DIV - 79 * + COUNT( * ) * + 23, + 13 AS col2
----
0
13

skipif mysql # not compatible
query II rowsort label-6698
SELECT ALL - 19 / - 79 * + COUNT ( * ) * + 23, + 13 AS col2
----
0
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ALL + CASE NULLIF ( ( + - ( - + ( - 76 ) ) ), + - 33 + + ( 92 ) ) WHEN + - 81 THEN NULL WHEN COUNT( * ) / + - COUNT( * ) THEN + 25 - - 30 END + 12 * + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL + CASE NULLIF ( ( + - ( - + ( - 76 ) ) ), + - 33 + + ( 92 ) ) WHEN + - 81 THEN NULL WHEN COUNT ( * ) / + - COUNT ( * ) THEN + 25 - - 30 END + 12 * + + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6700
SELECT - 45 DIV SUM( - 82 ) + + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6700
SELECT - 45 / SUM ( - 82 ) + + ( COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT 26 + + 6 + + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6701
SELECT 26 + + 6 + + + COUNT ( * )
----
33

query I rowsort
SELECT ALL 55 * + 38
----
2090

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT ALL - NULLIF ( + ( 44 ), - + 46 ) DIV 77 + + + 47 + - + 47
----
0

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL - NULLIF ( + ( 44 ), - + 46 ) / 77 + + + 47 + - + 47
----
0

query I rowsort
SELECT ALL + 65 - + 96 + 87
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT ( 78 ) + + 24 + - + 18 + + 52 DIV - 76
----
84

skipif mysql # not compatible
query I rowsort label-6705
SELECT ( 78 ) + + 24 + - + 18 + + 52 / - 76
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL 12 * - MAX( DISTINCT + 82 )
----
-984

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL 12 * - MAX ( DISTINCT + 82 )
----
-984

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT 51 * + MIN( - 60 )
----
-3060

skipif mysql # not compatible
query I rowsort label-6708
SELECT 51 * + MIN ( - 60 )
----
-3060

query I rowsort
SELECT ALL - 26 * - 45 col0
----
1170

query I rowsort
SELECT + 11 + - 63 AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6711
SELECT - CAST( - COUNT( ALL + - 90 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6711
SELECT - CAST ( - COUNT ( ALL + - 90 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT 16 * 28 * + 3 * + COUNT( * ) + - 69 AS col0
----
1275

skipif mysql # not compatible
query I rowsort label-6712
SELECT 16 * 28 * + 3 * + COUNT ( * ) + - 69 AS col0
----
1275

query I rowsort
SELECT - 77 + - + 97
----
-174

query I rowsort
SELECT 47 - + 51 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6715
SELECT DISTINCT ( + 16 ) DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT ( + 16 ) / - 63
----
0

query I rowsort
SELECT - 60 - + 66 col2
----
-126

query I rowsort
SELECT ALL 35 * + 1 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT 95 DIV 86
----
1

skipif mysql # not compatible
query I rowsort label-6718
SELECT 95 / 86
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6719
SELECT ALL - 19 + 77 + + - 47 DIV - 94, COUNT( * ) AS col1
----
58
1

skipif mysql # not compatible
query II rowsort label-6719
SELECT ALL - 19 + 77 + + - 47 / - 94, COUNT ( * ) AS col1
----
58
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6720
SELECT + 27 + + COUNT( * ) col0, - 85
----
28
-85

skipif mysql # not compatible
query II rowsort label-6720
SELECT + 27 + + COUNT ( * ) col0, - 85
----
28
-85

query I rowsort
SELECT ALL + 50 * + + 13 AS col1
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT 65 + - 99 * + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-6722
SELECT 65 + - 99 * + COUNT ( * ) AS col0
----
-34

query I rowsort
SELECT ALL - 59 + + + ( 62 ) + - COALESCE ( + - 32, - 20 )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6724
SELECT DISTINCT - COUNT( * ) + ( - 79 ) - 3 DIV + NULLIF ( 17, + + 81 ) * 44 * - 21 + + SUM( DISTINCT - 69 ) AS col1
----
-149

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT - COUNT ( * ) + ( - 79 ) - 3 / + NULLIF ( 17, + + 81 ) * 44 * - 21 + + SUM ( DISTINCT - 69 ) AS col1
----
-149

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT - 41 DIV + 16 + - 34 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6726
SELECT - 41 / + 16 + - 34 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT SUM( + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6727
SELECT SUM ( + 68 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6728
SELECT 17 * + SUM( ALL 61 ) * - ( - - CAST( NULL AS SIGNED ) ) * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT 17 * + SUM ( ALL 61 ) * - ( - - CAST ( NULL AS INTEGER ) ) * - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6729
SELECT 23 + + + COALESCE ( CAST( - COUNT( * ) AS SIGNED ), MIN( 76 ) * - ( - 62 ) * + 74, + 84 ) DIV - 9 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6729
SELECT 23 + + + COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), MIN ( 76 ) * - ( - 62 ) * + 74, + 84 ) / - 9 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6730
SELECT ALL - CASE - - 74 WHEN + COUNT( DISTINCT - 31 ) / 72 + - - NULLIF ( + NULLIF ( 29, - 25 * - 83 ), + COUNT( - + 31 ) ) + 22 THEN NULL WHEN + - 93 THEN NULL ELSE - - CAST( NULL AS DECIMAL ) * + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL - CASE - - 74 WHEN + COUNT ( DISTINCT - 31 ) / 72 + - - NULLIF ( + NULLIF ( 29, - 25 * - 83 ), + COUNT ( - + 31 ) ) + 22 THEN NULL WHEN + - 93 THEN NULL ELSE - - CAST ( NULL AS REAL ) * + 75 END
----
NULL

query I rowsort
SELECT 42 * + COALESCE ( - 71, 36 )
----
-2982

query II rowsort
SELECT - 15 * + 28 - - 46 AS col1, - 59 AS col1
----
-374
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT + MAX( + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6733
SELECT + MAX ( + 82 ) AS col1
----
82

query II rowsort
SELECT 12 AS col2, 73
----
12
73

query I rowsort
SELECT 51 - - 47 + ( + 54 )
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-6736
SELECT 71 * + 8 - - COUNT( * ), 69 col2
----
569
69

skipif mysql # not compatible
query II rowsort label-6736
SELECT 71 * + 8 - - COUNT ( * ), 69 col2
----
569
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6737
SELECT ALL 17 AS col0, COALESCE ( + NULLIF ( 41, - CAST( 32 AS SIGNED ) - + - 89 ), 13 )
----
17
41

skipif mysql # not compatible
query II rowsort label-6737
SELECT ALL 17 AS col0, COALESCE ( + NULLIF ( 41, - CAST ( 32 AS INTEGER ) - + - 89 ), 13 )
----
17
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT ALL + + 29 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL + + 29 / + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT DISTINCT - COALESCE ( - 55, - + COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT - COALESCE ( - 55, - + COUNT ( * ) )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6740
SELECT + 87 * - 35 + 33 - + + 53 + - 20 + - + 18 + COUNT( * ) * - - COALESCE ( + 66, - MAX( + ( + 22 ) ) * 6 - - CASE - 87 WHEN - - ( + 23 ) * + ( + + CASE - - 9 WHEN COUNT( * ) THEN 41 WHEN - + ( + CASE - NULLIF ( 47, - COUNT( * ) DIV + 44 ) WHEN 53 + + 96 THEN - 97 WHEN - 58 THEN NULL END ) * 64 THEN NULL WHEN - 55 * + 65 + 50 * 13 THEN 33 END ) * + 75 - 50 THEN + ( 13 ) WHEN 83 THEN - 9 ELSE + 61 DIV - COUNT( * ) END * + 70, SUM( DISTINCT + 12 ) + - 61 * 65, - 98 )
----
-3037

skipif mysql # not compatible
query I rowsort label-6740
SELECT + 87 * - 35 + 33 - + + 53 + - 20 + - + 18 + COUNT ( * ) * - - COALESCE ( + 66, - MAX ( + ( + 22 ) ) * 6 - - CASE - 87 WHEN - - ( + 23 ) * + ( + + CASE - - 9 WHEN COUNT ( * ) THEN 41 WHEN - + ( + CASE - NULLIF ( 47, - COUNT ( * ) / + 44 ) WHEN 53 + + 96 THEN - 97 WHEN - 58 THEN NULL END ) * 64 THEN NULL WHEN - 55 * + 65 + 50 * 13 THEN 33 END ) * + 75 - 50 THEN + ( 13 ) WHEN 83 THEN - 9 ELSE + 61 / - COUNT ( * ) END * + 70, SUM ( DISTINCT + 12 ) + - 61 * 65, - 98 )
----
-3037

query I rowsort
SELECT ALL - 14 * + 80 + 5 col1
----
-1115

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6742
SELECT + 75 * - ( + 2 ) * 30 + + - COUNT( * ) * - - NULLIF ( - - 39, - - CAST( NULL AS DECIMAL ) * - - 88 + ( 92 ) + + COUNT( * ) ) col2
----
-4539

skipif mysql # not compatible
query I rowsort label-6742
SELECT + 75 * - ( + 2 ) * 30 + + - COUNT ( * ) * - - NULLIF ( - - 39, - - CAST ( NULL AS REAL ) * - - 88 + ( 92 ) + + COUNT ( * ) ) col2
----
-4539

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT MIN( 90 ) + - 90 col0
----
0

skipif mysql # not compatible
query I rowsort label-6743
SELECT MIN ( 90 ) + - 90 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL + 23 + MIN( 90 )
----
113

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + 23 + MIN ( 90 )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL - + COUNT( * ) + - 70 + + 60 + + COUNT( * ) - - COUNT( DISTINCT - 13 ) * - + 9
----
-19

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - + COUNT ( * ) + - 70 + + 60 + + COUNT ( * ) - - COUNT ( DISTINCT - 13 ) * - + 9
----
-19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6747
SELECT ALL - 73 + COALESCE ( ( - 47 ), + 93 - + + 91, + 3, + 13 + + + SUM( CAST( NULL AS SIGNED ) ) + - 91 + + 19 )
----
-120

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL - 73 + COALESCE ( ( - 47 ), + 93 - + + 91, + 3, + 13 + + + SUM ( CAST ( NULL AS INTEGER ) ) + - 91 + + 19 )
----
-120

query I rowsort
SELECT DISTINCT + 40 + - + 40
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-6749
SELECT DISTINCT + 29 + 56 + + - 87 + 93 - + 21 col0, - COUNT( * ) AS col1, 81 + COUNT( * )
----
70
-1
82

skipif mysql # not compatible
query III rowsort label-6749
SELECT DISTINCT + 29 + 56 + + - 87 + 93 - + 21 col0, - COUNT ( * ) AS col1, 81 + COUNT ( * )
----
70
-1
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6750
SELECT DISTINCT + 7, 19 + - - 94 * + + 50 * - CAST( NULL AS SIGNED ) AS col2
----
7
NULL

skipif mysql # not compatible
query II rowsort label-6750
SELECT DISTINCT + 7, 19 + - - 94 * + + 50 * - CAST ( NULL AS INTEGER ) AS col2
----
7
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6751
SELECT ALL ( + + 48 ) / SUM( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6752
SELECT - - 33 + 76 + + 75 AS col1, 7 + - CAST( + 66 AS SIGNED ) * - 7
----
184
469

skipif mysql # not compatible
query II rowsort label-6752
SELECT - - 33 + 76 + + 75 AS col1, 7 + - CAST ( + 66 AS INTEGER ) * - 7
----
184
469

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6754
SELECT - - COALESCE ( 71, - 16, + - 0 + - - 58 ) AS col2, - SUM( DISTINCT - 0 )
----
71
0

skipif mysql # not compatible
query II rowsort label-6754
SELECT - - COALESCE ( 71, - 16, + - 0 + - - 58 ) AS col2, - SUM ( DISTINCT - 0 )
----
71
0

query I rowsort
SELECT ALL 85 - - 1 * + + 12 - - 98 AS col2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL NULLIF ( - - 10, + 49 + + - 2 + - 33 * - - 49 * + - COALESCE ( 1, + + 22 + + 93 + - 97 ) / - COUNT( * ) + 94 + + - COUNT( * ) * COUNT( ALL - 47 ) + - 32 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL NULLIF ( - - 10, + 49 + + - 2 + - 33 * - - 49 * + - COALESCE ( 1, + + 22 + + 93 + - 97 ) / - COUNT ( * ) + 94 + + - COUNT ( * ) * COUNT ( ALL - 47 ) + - 32 ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT ALL + 37 / - ( + CASE ( - + CAST( NULL AS SIGNED ) ) WHEN + - 15 + + - 14 - - + NULLIF ( - - 71, - + 31 ) * - ( - - 99 ) THEN - 73 * - 18 END ) * + - 74 + + MAX( DISTINCT - - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + 37 / - ( + CASE ( - + CAST ( NULL AS INTEGER ) ) WHEN + - 15 + + - 14 - - + NULLIF ( - - 71, - + 31 ) * - ( - - 99 ) THEN - 73 * - 18 END ) * + - 74 + + MAX ( DISTINCT - - 88 )
----
NULL

query II rowsort
SELECT DISTINCT + 55, - 12 AS col2
----
55
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT 1 * + 34 * - COUNT( * ) - - ( - + 15 ) - - 83 col1
----
34

skipif mysql # not compatible
query I rowsort label-6759
SELECT 1 * + 34 * - COUNT ( * ) - - ( - + 15 ) - - 83 col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6760
SELECT ALL - 4 * - 95 - 58 - + - 0 * 92 * + + 72 * 39 * + + 97 + + ( - COUNT( * ) ) + 60 DIV 99 + - 51 + - MIN( - 88 ) * - + 68, + MAX( + 45 ) AS col1
----
-5714
45

skipif mysql # not compatible
query II rowsort label-6760
SELECT ALL - 4 * - 95 - 58 - + - 0 * 92 * + + 72 * 39 * + + 97 + + ( - COUNT ( * ) ) + 60 / 99 + - 51 + - MIN ( - 88 ) * - + 68, + MAX ( + 45 ) AS col1
----
-5714
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT + CASE 5 WHEN + 50 THEN - + 7 WHEN + + 65 * COUNT( * ) THEN NULL ELSE ( + - 27 ) END
----
-27

skipif mysql # not compatible
query I rowsort label-6761
SELECT + CASE 5 WHEN + 50 THEN - + 7 WHEN + + 65 * COUNT ( * ) THEN NULL ELSE ( + - 27 ) END
----
-27

query I rowsort
SELECT DISTINCT 84 * + 29 * - 62
----
-151032

query I rowsort
SELECT + 8 + + 31
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT CASE 88 WHEN 20 / 21 * 12 + 90 - - 19 THEN + + 90 WHEN 61 THEN - + COUNT( * ) + + 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT CASE 88 WHEN 20 / 21 * 12 + 90 - - 19 THEN + + 90 WHEN 61 THEN - + COUNT ( * ) + + 80 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT - COUNT( * ) * - + ( - + CASE + 22 WHEN - - 68 THEN - COUNT( * ) WHEN 2 THEN NULL END ) * 31 * + - 77 * + + ( + + 69 ) / + + COUNT( * ) + + + 1 - - + MAX( + 79 ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT - COUNT ( * ) * - + ( - + CASE + 22 WHEN - - 68 THEN - COUNT ( * ) WHEN 2 THEN NULL END ) * 31 * + - 77 * + + ( + + 69 ) / + + COUNT ( * ) + + + 1 - - + MAX ( + 79 ) - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6766
SELECT CASE MIN( ALL + 0 ) WHEN - 79 * + 77 - - 36 + 58 THEN - 68 * - COUNT( * ) WHEN + 58 * - + 1 * + NULLIF ( + 10, - - 70 * - 17 + + 5 + - SUM( ALL 20 ) / - 19 / 7 * CAST( 76 AS DECIMAL ) ) - - 98 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT CASE MIN ( ALL + 0 ) WHEN - 79 * + 77 - - 36 + 58 THEN - 68 * - COUNT ( * ) WHEN + 58 * - + 1 * + NULLIF ( + 10, - - 70 * - 17 + + 5 + - SUM ( ALL 20 ) / - 19 / 7 * CAST ( 76 AS REAL ) ) - - 98 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6767
SELECT COALESCE ( - + 72, 21 * - + 77 - - + COALESCE ( - + 97, + - 72 + 98 ) + - - 69 ), + 93 + - 97 * - COUNT( * ) AS col2
----
-72
190

skipif mysql # not compatible
query II rowsort label-6767
SELECT COALESCE ( - + 72, 21 * - + 77 - - + COALESCE ( - + 97, + - 72 + 98 ) + - - 69 ), + 93 + - 97 * - COUNT ( * ) AS col2
----
-72
190

query II rowsort
SELECT ALL + 6 AS col1, + 4 * - 54
----
6
-216

query I rowsort
SELECT + 77 * + 38 * + 98 AS col0
----
286748

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6770
SELECT DISTINCT + 80, + 24 DIV - COUNT( * ) AS col0
----
80
-24

skipif mysql # not compatible
query II rowsort label-6770
SELECT DISTINCT + 80, + 24 / - COUNT ( * ) AS col0
----
80
-24

query I rowsort
SELECT DISTINCT 92 * 68 + 66
----
6322

query I rowsort
SELECT + 30 + + 43 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT DISTINCT 98 * + COUNT( ALL - + 4 ) + - 71 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT 98 * + COUNT ( ALL - + 4 ) + - 71 AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6774
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), - 48 * + 41 + - 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), - 48 * + 41 + - 65 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT - CASE + - MAX( - 20 ) WHEN 54 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT - CASE + - MAX ( - 20 ) WHEN 54 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6776
SELECT + 85 AS col2, COALESCE ( - MAX( - 36 ), - COUNT( * ) * 90 * + + 84, + 51 DIV - 86 + - COUNT( * ) + 63 + - 7 + - + 36 - 35 * + 69, + 81 )
----
85
36

skipif mysql # not compatible
query II rowsort label-6776
SELECT + 85 AS col2, COALESCE ( - MAX ( - 36 ), - COUNT ( * ) * 90 * + + 84, + 51 / - 86 + - COUNT ( * ) + 63 + - 7 + - + 36 - 35 * + 69, + 81 )
----
85
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6777
SELECT + - COALESCE ( - 18, - 10 DIV - 81 DIV - 19 * - 22, - CASE - + CAST( NULL AS SIGNED ) WHEN - CAST( MIN( + 48 ) AS DECIMAL ) THEN NULL WHEN 7 THEN 78 + 85 END + + 1 ) + 83
----
101

skipif mysql # not compatible
query I rowsort label-6777
SELECT + - COALESCE ( - 18, - 10 / - 81 / - 19 * - 22, - CASE - + CAST ( NULL AS INTEGER ) WHEN - CAST ( MIN ( + 48 ) AS REAL ) THEN NULL WHEN 7 THEN 78 + 85 END + + 1 ) + 83
----
101

query I rowsort
SELECT - - 33 * + 14
----
462

query I rowsort
SELECT - ( + + 74 ) + - 1 + 44 AS col2
----
-31

query I rowsort
SELECT DISTINCT 52 * 26 col0
----
1352

query I rowsort
SELECT DISTINCT - 25 + 29 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT - MAX( - + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-6782
SELECT - MAX ( - + 99 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6783
SELECT DISTINCT COUNT( DISTINCT - + 55 ) AS col1, - 57 + + 15
----
1
-42

skipif mysql # not compatible
query II rowsort label-6783
SELECT DISTINCT COUNT ( DISTINCT - + 55 ) AS col1, - 57 + + 15
----
1
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6784
SELECT DISTINCT + - 26 + + CAST( NULL AS SIGNED ) / - 49 * 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT + - 26 + + CAST ( NULL AS INTEGER ) / - 49 * 92 AS col2
----
NULL

query I rowsort
SELECT ALL + + 76 + 82
----
158

query I rowsort
SELECT - + 6 * + 81 AS col1
----
-486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT DISTINCT + + 59 / - CAST( NULL AS SIGNED ) * + 50 * - 97 * + 88 * - ( - ( + 67 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT + + 59 / - CAST ( NULL AS INTEGER ) * + 50 * - 97 * + 88 * - ( - ( + 67 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT ALL COUNT( * ) AS col2, 63 * + 66 AS col2
----
1
4158

skipif mysql # not compatible
query II rowsort label-6788
SELECT ALL COUNT ( * ) AS col2, 63 * + 66 AS col2
----
1
4158

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

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

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

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

query I rowsort
SELECT ALL + + 84 - - - 60 AS col1
----
24

query I rowsort
SELECT ALL - 76 - - 15
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT - COUNT( * ) + 72 * + 78
----
5615

skipif mysql # not compatible
query I rowsort label-6793
SELECT - COUNT ( * ) + 72 * + 78
----
5615

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT DISTINCT + - MAX( DISTINCT + ( - - 7 ) ) * + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT + - MAX ( DISTINCT + ( - - 7 ) ) * + COUNT ( * )
----
-7

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-6796
SELECT DISTINCT ( - 79 ) AS col1, COUNT( * ) + + 56 + - 82 AS col1, ( + + 43 ) + + 36 + - COUNT( * ) - - COUNT( * )
----
-79
-25
79

skipif mysql # not compatible
query III rowsort label-6796
SELECT DISTINCT ( - 79 ) AS col1, COUNT ( * ) + + 56 + - 82 AS col1, ( + + 43 ) + + 36 + - COUNT ( * ) - - COUNT ( * )
----
-79
-25
79

query II rowsort
SELECT + 20 + + - 72 AS col1, + 48
----
-52
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6798
SELECT DISTINCT CAST( - 25 AS SIGNED ), ( - + 73 ) * 89 col1
----
-25
-6497

skipif mysql # not compatible
query II rowsort label-6798
SELECT DISTINCT CAST ( - 25 AS INTEGER ), ( - + 73 ) * 89 col1
----
-25
-6497

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + MIN( 3 ) * 59 + + 84
----
261

skipif mysql # not compatible
query I rowsort label-6799
SELECT + MIN ( 3 ) * 59 + + 84
----
261

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

skipif mysql # not compatible
query I rowsort label-6800
SELECT - 25 * - - COUNT ( * )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT DISTINCT ( - 94 ) DIV - 71 + 98 DIV + ( - - 33 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT ( - 94 ) / - 71 + 98 / + ( - - 33 ) AS col2
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6803
SELECT CAST( NULLIF ( + COUNT( * ), 36 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6803
SELECT CAST ( NULLIF ( + COUNT ( * ), 36 ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 66 * + 29 col2
----
1914

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT DISTINCT 94 DIV + - 54 + 92 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT 94 / + - 54 + 92 AS col2
----
91

query I rowsort
SELECT + 35 * - 39
----
-1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT - 33 * 86 + + + CAST( + 19 AS SIGNED ) * 30 - - - 89 AS col0
----
-2357

skipif mysql # not compatible
query I rowsort label-6807
SELECT - 33 * 86 + + + CAST ( + 19 AS INTEGER ) * 30 - - - 89 AS col0
----
-2357

query I rowsort
SELECT ALL + 32 * - 39 + + 9 AS col0
----
-1239

query I rowsort
SELECT DISTINCT - + 86 + - - 33
----
-53

query I rowsort
SELECT DISTINCT + - 24 + - 48 * + + 98 AS col2
----
-4728

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT 73 * + + MIN( - 61 ) + - - COUNT( * ) + - + 24 + - 87 + - - 27 AS col1
----
-4536

skipif mysql # not compatible
query I rowsort label-6812
SELECT 73 * + + MIN ( - 61 ) + - - COUNT ( * ) + - + 24 + - 87 + - - 27 AS col1
----
-4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6813
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + - CASE + + 57 WHEN + 85 * + 56 + - - 37 THEN NULL ELSE 59 + - - AVG ( + + 2 ) + - - 34 - - + AVG ( DISTINCT + + 48 ) * + 5 * + 47 * - CAST( - + COALESCE ( - - CAST( NULL AS SIGNED ), + + 76, - COUNT( * ) * - 76 * 4 ) AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - CASE + + 57 WHEN + 85 * + 56 + - - 37 THEN NULL ELSE 59 + - - AVG ( + + 2 ) + - - 34 - - + AVG ( DISTINCT + + 48 ) * + 5 * + 47 * - CAST ( - + COALESCE ( - - CAST ( NULL AS INTEGER ), + + 76, - COUNT ( * ) * - 76 * 4 ) AS INTEGER ) END AS col1
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT - 96 DIV - 54 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6816
SELECT - 96 / - 54 AS col1
----
1

query II rowsort
SELECT DISTINCT ( + + 20 ) AS col2, 3 AS col0
----
20
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6818
SELECT ALL + 19 - - 7 + - - CAST( NULL AS SIGNED ) * 24 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL + 19 - - 7 + - - CAST ( NULL AS INTEGER ) * 24 * - 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6819
SELECT ALL + + MAX( - 5 ) DIV + 78 + - 57 + + 32 col1, SUM( 27 ) col2
----
-25
27

skipif mysql # not compatible
query II rowsort label-6819
SELECT ALL + + MAX ( - 5 ) / + 78 + - 57 + + 32 col1, SUM ( 27 ) col2
----
-25
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT 33 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-6820
SELECT 33 / - 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT 45 DIV - ( + 82 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6821
SELECT 45 / - ( + 82 ) AS col1
----
0

query I rowsort
SELECT 16 + - - 29 - - 21 AS col1
----
66

query I rowsort
SELECT 26 + 89 * + 54 AS col2
----
4832

onlyif mysql # aggregate syntax: 
query II rowsort label-6824
SELECT ALL + 75 + + COALESCE ( + + 28, + COUNT( * ) * - COUNT( * ) + + - 10 * + CASE - + COUNT( * ) WHEN - 95 THEN - 3 WHEN + 18 THEN NULL END, - + 12 ) + 69 AS col0, - 73
----
172
-73

skipif mysql # not compatible
query II rowsort label-6824
SELECT ALL + 75 + + COALESCE ( + + 28, + COUNT ( * ) * - COUNT ( * ) + + - 10 * + CASE - + COUNT ( * ) WHEN - 95 THEN - 3 WHEN + 18 THEN NULL END, - + 12 ) + 69 AS col0, - 73
----
172
-73

query II rowsort
SELECT 51 - - + ( + 26 ) AS col0, + 95 * - 46
----
77
-4370

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL + COALESCE ( + 33, 36, + + 86 * - - 92 ) * + - ( 57 ) * + 12 + ( - COUNT( - 11 ) ) AS col0
----
-22573

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL + COALESCE ( + 33, 36, + + 86 * - - 92 ) * + - ( 57 ) * + 12 + ( - COUNT ( - 11 ) ) AS col0
----
-22573

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT 58 * - - ( COUNT( * ) ) * + ( + 34 )
----
1972

skipif mysql # not compatible
query I rowsort label-6827
SELECT 58 * - - ( COUNT ( * ) ) * + ( + 34 )
----
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL - COUNT( * ) + + - 0 + - 96 * 37
----
-3553

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL - COUNT ( * ) + + - 0 + - 96 * 37
----
-3553

query I rowsort
SELECT 41 + - 24
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT + 89 AS col0, + 68 + - - MIN( ALL - - 61 )
----
89
129

skipif mysql # not compatible
query II rowsort label-6830
SELECT + 89 AS col0, + 68 + - - MIN ( ALL - - 61 )
----
89
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT 51 + - 84 / + 56 * CASE - 50 WHEN ( - + CASE NULLIF ( - 2, - - 11 ) WHEN + 46 * - - COUNT( DISTINCT + - 76 ) THEN NULL WHEN + COUNT( * ) THEN + MAX( DISTINCT 22 ) END ) THEN - 10 WHEN + 73 * + COUNT( * ) THEN NULL WHEN 75 - + + 32 + - 85 + COUNT( DISTINCT + + 50 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT 51 + - 84 / + 56 * CASE - 50 WHEN ( - + CASE NULLIF ( - 2, - - 11 ) WHEN + 46 * - - COUNT ( DISTINCT + - 76 ) THEN NULL WHEN + COUNT ( * ) THEN + MAX ( DISTINCT 22 ) END ) THEN - 10 WHEN + 73 * + COUNT ( * ) THEN NULL WHEN 75 - + + 32 + - 85 + COUNT ( DISTINCT + + 50 ) THEN NULL END AS col1
----
NULL

query II rowsort
SELECT + 2 * 95 + + - 77, + 8 - - 39 - 56 AS col0
----
113
-9

query I rowsort
SELECT ( - - 95 ) - 28 AS col0
----
67

query II rowsort
SELECT + 0 AS col1, - 43
----
0
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ( + CASE - + 61 WHEN + 1 * + COUNT( * ) + + 6 THEN - 15 + + 86 WHEN ( + MIN( + - 95 ) ) - + CASE - 23 WHEN + 45 THEN + COUNT( * ) * - ( COUNT( * ) ) + 60 + + 9 + 4 / + 64 + - COUNT( * ) + - - 22 + 35 ELSE - 69 END THEN + NULLIF ( - 7, 64 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT ( + CASE - + 61 WHEN + 1 * + COUNT ( * ) + + 6 THEN - 15 + + 86 WHEN ( + MIN ( + - 95 ) ) - + CASE - 23 WHEN + 45 THEN + COUNT ( * ) * - ( COUNT ( * ) ) + 60 + + 9 + 4 / + 64 + - COUNT ( * ) + - - 22 + 35 ELSE - 69 END THEN + NULLIF ( - 7, 64 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 90 * + - 32 + - 86 - + 45 + - + 26 - 27 AS col2
----
-3064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6837
SELECT DISTINCT - 83 / MIN( - - CAST( NULL AS SIGNED ) ) / + COUNT( * ) - - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT - 83 / MIN ( - - CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) - - 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT + CASE + + 94 WHEN 33 THEN + COUNT( * ) * COUNT( * ) WHEN + 91 + 10 + - 82 * + SUM( DISTINCT + 48 ) THEN NULL WHEN + 27 - + 67 THEN + + 86 WHEN + 84 THEN 83 ELSE - 86 * - + 49 * + MIN( - 6 ) END + + 77 AS col2
----
-25207

skipif mysql # not compatible
query I rowsort label-6838
SELECT + CASE + + 94 WHEN 33 THEN + COUNT ( * ) * COUNT ( * ) WHEN + 91 + 10 + - 82 * + SUM ( DISTINCT + 48 ) THEN NULL WHEN + 27 - + 67 THEN + + 86 WHEN + 84 THEN 83 ELSE - 86 * - + 49 * + MIN ( - 6 ) END + + 77 AS col2
----
-25207

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT ALL - - 18 DIV - - 16 col0
----
1

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL - - 18 / - - 16 col0
----
1

query I rowsort
SELECT ALL + 92 - 37
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT ALL CASE + 38 WHEN + 7 THEN - ( + COUNT( * ) ) WHEN - 37 * AVG ( - + 20 ) + + 8 * 71 + ( + + 86 ) + 49 + COUNT( DISTINCT + 74 ) - 59 / - + 58 * 43 * + 55 / + 2 + - 19 + + 18 THEN NULL WHEN - - MIN( 5 ) * + 72 * 31 - - - 32 THEN 5 * 60 - COUNT( * ) WHEN 62 THEN NULL ELSE COUNT( * ) * 94 * 91 END * + 95
----
812630

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL CASE + 38 WHEN + 7 THEN - ( + COUNT ( * ) ) WHEN - 37 * AVG ( - + 20 ) + + 8 * 71 + ( + + 86 ) + 49 + COUNT ( DISTINCT + 74 ) - 59 / - + 58 * 43 * + 55 / + 2 + - 19 + + 18 THEN NULL WHEN - - MIN ( 5 ) * + 72 * 31 - - - 32 THEN 5 * 60 - COUNT ( * ) WHEN 62 THEN NULL ELSE COUNT ( * ) * 94 * 91 END * + 95
----
812630

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT 85 * 28 * + COUNT( * ) AS col1
----
2380

skipif mysql # not compatible
query I rowsort label-6842
SELECT 85 * 28 * + COUNT ( * ) AS col1
----
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT - 18 * - 72 * - COUNT( * )
----
-1296

skipif mysql # not compatible
query I rowsort label-6843
SELECT - 18 * - 72 * - COUNT ( * )
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT 18 + - MIN( DISTINCT - ( + 92 ) )
----
110

skipif mysql # not compatible
query I rowsort label-6844
SELECT 18 + - MIN ( DISTINCT - ( + 92 ) )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT + SUM( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-6845
SELECT + SUM ( + 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL - COALESCE ( - NULLIF ( - ( + 86 ), + 34 + - 55 ), 19 * + + 48 - 4, - COALESCE ( - + COUNT( * ), - 19, - + 99 * 71 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - COALESCE ( - NULLIF ( - ( + 86 ), + 34 + - 55 ), 19 * + + 48 - 4, - COALESCE ( - + COUNT ( * ), - 19, - + 99 * 71 ) )
----
-86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6848
SELECT DISTINCT 55, + 13 + SUM( ALL + 48 ) DIV - MAX( + + 87 ) - - - 49 * - COUNT( * ) col2
----
55
62

skipif mysql # not compatible
query II rowsort label-6848
SELECT DISTINCT 55, + 13 + SUM ( ALL + 48 ) / - MAX ( + + 87 ) - - - 49 * - COUNT ( * ) col2
----
55
62

query I rowsort
SELECT - 84 * - + 57
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT + 94 + - MIN( DISTINCT + + 9 ) + + COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6850
SELECT + 94 + - MIN ( DISTINCT + + 9 ) + + COUNT ( * ) AS col2
----
86

query II rowsort
SELECT ALL NULLIF ( - + 31, 9 ), 30 AS col0
----
-31
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT CASE 15 WHEN + 3 + - MAX( - 28 ) * 64 + COUNT( * ) THEN - 87 END + - 48 * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT CASE 15 WHEN + 3 + - MAX ( - 28 ) * 64 + COUNT ( * ) THEN - 87 END + - 48 * + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6853
SELECT ALL + COALESCE ( 54, - 49 ) * - ( - + COUNT( * ) ) * + 9 + - COALESCE ( + 94, + CAST( NULL AS SIGNED ) ) DIV - - 84
----
485

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + COALESCE ( 54, - 49 ) * - ( - + COUNT ( * ) ) * + 9 + - COALESCE ( + 94, + CAST ( NULL AS INTEGER ) ) / - - 84
----
485

query I rowsort
SELECT 34 + - 5
----
29

query I rowsort
SELECT ALL 90 * - + 34
----
-3060

query I rowsort
SELECT - 60 + 63 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6857
SELECT COUNT( * ) + 40 + + + MIN( DISTINCT 71 ) DIV - 87
----
41

skipif mysql # not compatible
query I rowsort label-6857
SELECT COUNT ( * ) + 40 + + + MIN ( DISTINCT 71 ) / - 87
----
41

query II rowsort
SELECT 52 + 5 AS col0, 91 AS col1
----
57
91

query I rowsort
SELECT 61 + 9 AS col2
----
70

query II rowsort
SELECT ALL 96 * + 76 col2, - 96
----
7296
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6861
SELECT DISTINCT - 61 + + COALESCE ( - + 88, - NULLIF ( - - CASE + 0 WHEN + 95 + + 7 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 89 THEN - - COALESCE ( + + 72, - 75 - - 53 ) + + COUNT( * ) - - 65 ELSE ( + 43 ) DIV + + 75 END, + 84 ), 12 DIV - - CASE + COUNT( * ) WHEN - + 82 + 84 + 79 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - - COUNT( * ) + - - 82 - - 52 THEN + 89 ELSE NULL END - - NULLIF ( 24, CASE - 56 WHEN + 2 DIV - COUNT( * ) THEN COUNT( * ) ELSE - 82 END ) ) DIV 56 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT - 61 + + COALESCE ( - + 88, - NULLIF ( - - CASE + 0 WHEN + 95 + + 7 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 89 THEN - - COALESCE ( + + 72, - 75 - - 53 ) + + COUNT ( * ) - - 65 ELSE ( + 43 ) / + + 75 END, + 84 ), 12 / - - CASE + COUNT ( * ) WHEN - + 82 + 84 + 79 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) + - - 82 - - 52 THEN + 89 ELSE NULL END - - NULLIF ( 24, CASE - 56 WHEN + 2 / - COUNT ( * ) THEN COUNT ( * ) ELSE - 82 END ) ) / 56 AS col1
----
-62

query II rowsort
SELECT DISTINCT 25 + - 96 AS col0, + 93
----
-71
93

query I rowsort
SELECT ALL - 43 + + - 43 * - 89 AS col1
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT 61 + - + SUM( - + NULLIF ( 74, + 43 ) )
----
135

skipif mysql # not compatible
query I rowsort label-6864
SELECT 61 + - + SUM ( - + NULLIF ( 74, + 43 ) )
----
135

query I rowsort
SELECT DISTINCT - 16 * + 24
----
-384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6866
SELECT 70 DIV - ( - ( - MAX( 36 ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6866
SELECT 70 / - ( - ( - MAX ( 36 ) ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6867
SELECT 41 * - CASE - 30 WHEN + 33 THEN - 25 + + 10 WHEN + + COUNT( * ) + COUNT( * ) THEN NULL ELSE 31 * + 13 + 35 + + 97 * + - 18 + + 31 END, 35 AS col1
----
52357
35

skipif mysql # not compatible
query II rowsort label-6867
SELECT 41 * - CASE - 30 WHEN + 33 THEN - 25 + + 10 WHEN + + COUNT ( * ) + COUNT ( * ) THEN NULL ELSE 31 * + 13 + 35 + + 97 * + - 18 + + 31 END, 35 AS col1
----
52357
35

query I rowsort
SELECT 77 * - 64 AS col1
----
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT CAST( - 69 AS SIGNED ) * CAST( - + 25 AS SIGNED ) * - - 66 + + 37 AS col0
----
113887

skipif mysql # not compatible
query I rowsort label-6869
SELECT CAST ( - 69 AS INTEGER ) * CAST ( - + 25 AS INTEGER ) * - - 66 + + 37 AS col0
----
113887

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT + 36 * - + 9 + - + COUNT( * ) + - 48 + + 5 + 14 * + + 62
----
500

skipif mysql # not compatible
query I rowsort label-6870
SELECT + 36 * - + 9 + - + COUNT ( * ) + - 48 + + 5 + 14 * + + 62
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT ALL - NULLIF ( + 74, - COUNT( * ) )
----
-74

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL - NULLIF ( + 74, - COUNT ( * ) )
----
-74

query I rowsort
SELECT + CASE + 92 WHEN - - 94 / - - ( - - 34 ) * 11 + - + 47 THEN + + 85 * + - 38 + 93 * - + 11 WHEN 67 * - 85 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6873
SELECT CAST( NULL AS SIGNED ) / + - 53 + + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT CAST ( NULL AS INTEGER ) / + - 53 + + 63 AS col0
----
NULL

query I rowsort
SELECT ALL 54 * 44 * + 55 + + 78 * + 41 AS col0
----
133878

query I rowsort
SELECT NULLIF ( 12, - 20 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT DISTINCT 16 * - ( - + 96 ) + + ( 61 ) + 28 + 49 * 43 * + SUM( DISTINCT 49 ) * - - 79 * 1
----
8157822

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT 16 * - ( - + 96 ) + + ( 61 ) + 28 + 49 * 43 * + SUM ( DISTINCT 49 ) * - - 79 * 1
----
8157822

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT ALL - COUNT( * ) * + 2 * 10 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL - COUNT ( * ) * + 2 * 10 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6878
SELECT DISTINCT + - MIN( - ( CAST( NULL AS DECIMAL ) ) ) * - - ( + 19 ) + 58 - + - 58 - + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT + - MIN ( - ( CAST ( NULL AS REAL ) ) ) * - - ( + 19 ) + 58 - + - 58 - + 15 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 15 * + 50 + 96
----
-654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6880
SELECT - + CAST( NULL AS SIGNED ) + - 72 + + CASE - - CASE - CAST( NULL AS DECIMAL ) WHEN + 24 + - SUM( ALL - 97 ) THEN - 76 * - - 5 WHEN - ( + 56 ) + 72 - - 27 - + 38 * 97 THEN NULL ELSE NULL END WHEN CAST( + ( 39 ) AS SIGNED ) THEN + ( 19 ) * - 65 / 11 WHEN + 29 + - 64 + - 59 THEN NULL WHEN COUNT( * ) THEN NULL END + 81 * + 89 * - - MAX( DISTINCT + 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT - + CAST ( NULL AS INTEGER ) + - 72 + + CASE - - CASE - CAST ( NULL AS REAL ) WHEN + 24 + - SUM ( ALL - 97 ) THEN - 76 * - - 5 WHEN - ( + 56 ) + 72 - - 27 - + 38 * 97 THEN NULL ELSE NULL END WHEN CAST ( + ( 39 ) AS INTEGER ) THEN + ( 19 ) * - 65 / 11 WHEN + 29 + - 64 + - 59 THEN NULL WHEN COUNT ( * ) THEN NULL END + 81 * + 89 * - - MAX ( DISTINCT + 84 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6881
SELECT - - COUNT( * ) * + + CAST( 7 AS SIGNED ) + 17
----
24

skipif mysql # not compatible
query I rowsort label-6881
SELECT - - COUNT ( * ) * + + CAST ( 7 AS INTEGER ) + 17
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT + - 44 + - + ( - 3 ) + + MAX( DISTINCT - 29 )
----
-70

skipif mysql # not compatible
query I rowsort label-6882
SELECT + - 44 + - + ( - 3 ) + + MAX ( DISTINCT - 29 )
----
-70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6884
SELECT ALL + 88 * - - 72 DIV - COUNT( * ) AS col2
----
-6336

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + 88 * - - 72 / - COUNT ( * ) AS col2
----
-6336

query I rowsort
SELECT DISTINCT - CASE COALESCE ( 14, - - 63 ) WHEN 5 THEN + 77 END * + + AVG ( - - 72 )
----
NULL

query I rowsort
SELECT ALL - - 98 * NULLIF ( + 34, + 49 * - ( 36 ) )
----
3332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT - CAST( NULL AS SIGNED ) * + 71 * + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT - CAST ( NULL AS INTEGER ) * + 71 * + + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + 18 * - - COUNT( * ) + - NULLIF ( - + 93, + 37 ) + - 13 + 57 * - 88
----
-4918

skipif mysql # not compatible
query I rowsort label-6888
SELECT + 18 * - - COUNT ( * ) + - NULLIF ( - + 93, + 37 ) + - 13 + 57 * - 88
----
-4918

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT DISTINCT 93 + + - 2 - - NULLIF ( COUNT( * ), + NULLIF ( - + 52, 99 * - 73 ) * COUNT( * ) ) + - COUNT( * ) * + 34 * + 32
----
-996

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT 93 + + - 2 - - NULLIF ( COUNT ( * ), + NULLIF ( - + 52, 99 * - 73 ) * COUNT ( * ) ) + - COUNT ( * ) * + 34 * + 32
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - MAX( ALL - 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6890
SELECT - MAX ( ALL - 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT - MAX( + - 2 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-6891
SELECT - MAX ( + - 2 ) col0
----
2

query I rowsort
SELECT + 61 * - 24 AS col1
----
-1464

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT ALL 73 + + 14 DIV + 91 * + - 13
----
73

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL 73 + + 14 / + 91 * + - 13
----
73

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

query I rowsort
SELECT ALL 49 + 44
----
93

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

query I rowsort
SELECT ALL 13 + - 7 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6898
SELECT + COUNT( * ) + - 67 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT + COUNT ( * ) + - 67 * + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( - - 98 ) AS col1
----
-98

query II rowsort
SELECT 90, 59 * + 65 AS col1
----
90
3835

query I rowsort
SELECT + 1 * + - 73 * + - 98 col1
----
7154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT DISTINCT MAX( - 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT MAX ( - 42 ) AS col1
----
-42

query I rowsort
SELECT ALL 59 - + 67 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT + SUM( 11 ) - 93 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6905
SELECT + SUM ( 11 ) - 93 AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6906
SELECT + CAST( NULL AS SIGNED ) + 70 DIV - COUNT( * ) AS col0, + COUNT( * ) DIV + - 52 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6906
SELECT + CAST ( NULL AS INTEGER ) + 70 / - COUNT ( * ) AS col0, + COUNT ( * ) / + - 52 AS col1
----
NULL
0

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

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL + - COUNT ( * ) / - + 48
----
0

query I rowsort
SELECT ALL + NULLIF ( + 1, 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT + 3 + - COUNT( ALL + 47 ) * + 0
----
3

skipif mysql # not compatible
query I rowsort label-6909
SELECT + 3 + - COUNT ( ALL + 47 ) * + 0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6910
SELECT - - 64 * MIN( ALL + 11 ) AS col2, COUNT( * ) * + 65 AS col2
----
704
65

skipif mysql # not compatible
query II rowsort label-6910
SELECT - - 64 * MIN ( ALL + 11 ) AS col2, COUNT ( * ) * + 65 AS col2
----
704
65

query I rowsort
SELECT - + ( + 37 ) - + 21 + - + 56 * - + 43
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL + - CASE - + 27 WHEN - 14 THEN 54 END * - COUNT( * ) + + + 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL + - CASE - + 27 WHEN - 14 THEN 54 END * - COUNT ( * ) + + + 23 col0
----
NULL

query I rowsort
SELECT + + 78 * - 78
----
-6084

query I rowsort
SELECT - - 14 - + 25 AS col1
----
-11

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6917
SELECT DISTINCT - CASE - COUNT( * ) WHEN + 39 * 22 + + 41 THEN + + COUNT( * ) * CAST( - 1 AS SIGNED ) WHEN + - ( + + MAX( ALL - + 63 ) ) * - 39 * 49 + - COUNT( * ) / + COUNT( * ) * + COUNT( * ) + - 99 THEN 59 WHEN - - 59 + - + COUNT( * ) + + + 15 + - - 12 * + 28 THEN NULL END * COUNT( * ) + - COALESCE ( - COUNT( ALL - + 45 ), + CASE + 2 WHEN - + ( 48 ) + + 70 THEN - 96 ELSE NULL END ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + 39 * 22 + + 41 THEN + + COUNT ( * ) * CAST ( - 1 AS INTEGER ) WHEN + - ( + + MAX ( ALL - + 63 ) ) * - 39 * 49 + - COUNT ( * ) / + COUNT ( * ) * + COUNT ( * ) + - 99 THEN 59 WHEN - - 59 + - + COUNT ( * ) + + + 15 + - - 12 * + 28 THEN NULL END * COUNT ( * ) + - COALESCE ( - COUNT ( ALL - + 45 ), + CASE + 2 WHEN - + ( 48 ) + + 70 THEN - 96 ELSE NULL END ) * + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT - 76 * - 15 * + COUNT( * ) AS col0
----
1140

skipif mysql # not compatible
query I rowsort label-6918
SELECT - 76 * - 15 * + COUNT ( * ) AS col0
----
1140

query I rowsort
SELECT ALL - + 46 * + - 79
----
3634

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT - - 94 * + COUNT( * ) + + 94 * 81 AS col2
----
7708

skipif mysql # not compatible
query I rowsort label-6920
SELECT - - 94 * + COUNT ( * ) + + 94 * 81 AS col2
----
7708

query I rowsort
SELECT COALESCE ( 96, - + 8 ) AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6922
SELECT ALL COUNT( * ) * + 52 + + + 57 DIV + MAX( - 95 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL COUNT ( * ) * + 52 + + + 57 / + MAX ( - 95 ) AS col1
----
52

query II rowsort
SELECT - 79 + 79 col0, + 20 * 18 * 88
----
0
31680

query II rowsort
SELECT ALL ( + + 8 ), 77 * + 39 + + 49 * - + 74 col2
----
8
-623

query I rowsort
SELECT - 55 + + 5
----
-50

query II rowsort
SELECT DISTINCT 10, - 6 AS col0
----
10
-6

query I rowsort
SELECT ALL 26 * + 45
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT ALL - 41 * + + COUNT( * ) + + ( - 94 ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL - 41 * + + COUNT ( * ) + + ( - 94 ) AS col1
----
-135

query I rowsort
SELECT - COALESCE ( - + 91, - 42, + ( NULLIF ( - ( + 70 ), - COALESCE ( 7, ( + - 55 ) ) ) ) ) * - - 64
----
5824

query I rowsort
SELECT + 8 + + 10 col0
----
18

query I rowsort
SELECT ALL - 80 + + 98 * 59 * - 52 * - 89 AS col1
----
26759016

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT + 26 + + COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT + 26 + + COUNT ( * ) AS col0
----
27

query I rowsort
SELECT + ( 36 ) + + 16
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT 57 * + ( + NULLIF ( - COUNT( - + 98 ), - 71 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6934
SELECT 57 * + ( + NULLIF ( - COUNT ( - + 98 ), - 71 ) ) AS col1
----
-57

query II rowsort
SELECT 38, 58 AS col1
----
38
58

query I rowsort
SELECT 96 + + 11 * + + 52 col1
----
668

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

query II rowsort
SELECT ALL 85, 11 AS col0
----
85
11

query I rowsort
SELECT 86 + - - 37 * 38 + + - 90 + + 0
----
1402

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6940
SELECT ALL 42 AS col1, COUNT( * ) + + 39 + + 29 DIV - 34 * - MIN( - + 77 ) * + 22
----
42
40

skipif mysql # not compatible
query II rowsort label-6940
SELECT ALL 42 AS col1, COUNT ( * ) + + 39 + + 29 / - 34 * - MIN ( - + 77 ) * + 22
----
42
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6941
SELECT - 43 AS col2, - COUNT( * ) - + 32 AS col0
----
-43
-33

skipif mysql # not compatible
query II rowsort label-6941
SELECT - 43 AS col2, - COUNT ( * ) - + 32 AS col0
----
-43
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT DISTINCT 22 - - - SUM( + 98 ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT 22 - - - SUM ( + 98 ) col2
----
-76

query I rowsort
SELECT ALL + 88 * - + 80
----
-7040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6944
SELECT DISTINCT + CASE + ( 79 ) WHEN 7 THEN NULL WHEN + - AVG ( ALL - CAST( NULL AS SIGNED ) ) * - 72 THEN - - COUNT( * ) END * - 59 * 36 / - - 63 * 44 * - - MIN( + CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT + CASE + ( 79 ) WHEN 7 THEN NULL WHEN + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) * - 72 THEN - - COUNT ( * ) END * - 59 * 36 / - - 63 * 44 * - - MIN ( + CAST ( NULL AS REAL ) ) col1
----
NULL

query I rowsort
SELECT + 15 * 26 AS col0
----
390

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT 70 DIV 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6946
SELECT 70 / 84 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
SELECT DISTINCT COALESCE ( ( - 50 ), - CAST( NULL AS SIGNED ) ) * + 68 * - + CAST( NULL AS SIGNED ) * - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT COALESCE ( ( - 50 ), - CAST ( NULL AS INTEGER ) ) * + 68 * - + CAST ( NULL AS INTEGER ) * - - 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6948
SELECT DISTINCT - 34 AS col1, - 25 + - + 56 * NULLIF ( + ( - COUNT( * ) ), COALESCE ( 15, + 85 ) ) AS col0
----
-34
31

skipif mysql # not compatible
query II rowsort label-6948
SELECT DISTINCT - 34 AS col1, - 25 + - + 56 * NULLIF ( + ( - COUNT ( * ) ), COALESCE ( 15, + 85 ) ) AS col0
----
-34
31

query I rowsort
SELECT ALL - 61 + 36
----
-25

query I rowsort
SELECT ( - 63 ) * 13 AS col2
----
-819

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT ALL - 11 DIV 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL - 11 / 25 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6952
SELECT 73 / - MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT 73 / - MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL - - ( ( + CASE - 31 WHEN - ( - COUNT( * ) ) THEN NULL ELSE + 41 * - + 51 END ) ) AS col1
----
-2091

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL - - ( ( + CASE - 31 WHEN - ( - COUNT ( * ) ) THEN NULL ELSE + 41 * - + 51 END ) ) AS col1
----
-2091

query I rowsort
SELECT ALL - 20 + - + 14 col2
----
-34

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

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

query II rowsort
SELECT DISTINCT 3 + 90 AS col1, 18 * 23 AS col2
----
93
414

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT DISTINCT + 30 + - COUNT( * ) + - 51 + - - 77
----
55

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT + 30 + - COUNT ( * ) + - 51 + - - 77
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-6959
SELECT DISTINCT + 57 + + 21 AS col2, + 99 DIV + - 19
----
78
-5

skipif mysql # not compatible
query II rowsort label-6959
SELECT DISTINCT + 57 + + 21 AS col2, + 99 / + - 19
----
78
-5

query I rowsort
SELECT ( 14 ) * + - 71
----
-994

query II rowsort
SELECT ALL + 12 - 20, + 66 AS col1
----
-8
66

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

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

query I rowsort
SELECT DISTINCT + 95 - - + 97 AS col2
----
192

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

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL + COUNT ( + - 75 ) * 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL 12 * COALESCE ( + COUNT( * ), - 55 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL 12 * COALESCE ( + COUNT ( * ), - 55 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT DISTINCT CASE - 35 WHEN 22 * 47 THEN - 2 ELSE 20 + + 75 END * + COALESCE ( + - MAX( ALL + 69 ), + MIN( ALL + 60 ) * 56 + COUNT( * ) ) AS col0
----
-6555

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT CASE - 35 WHEN 22 * 47 THEN - 2 ELSE 20 + + 75 END * + COALESCE ( + - MAX ( ALL + 69 ), + MIN ( ALL + 60 ) * 56 + COUNT ( * ) ) AS col0
----
-6555

query I rowsort
SELECT 76 + - + NULLIF ( - 13, + + AVG ( 80 ) )
----
89

query I rowsort
SELECT ALL + 77 * + 8
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL - COUNT( * ) * + 30 * + 63 col0
----
-1890

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - COUNT ( * ) * + 30 * + 63 col0
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT - MIN( DISTINCT 87 ) + - 71 AS col1
----
-158

skipif mysql # not compatible
query I rowsort label-6970
SELECT - MIN ( DISTINCT 87 ) + - 71 AS col1
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-6971
SELECT - 69 * + 16 col0, - 28 * - - COUNT( * )
----
-1104
-28

skipif mysql # not compatible
query II rowsort label-6971
SELECT - 69 * + 16 col0, - 28 * - - COUNT ( * )
----
-1104
-28

query I rowsort
SELECT DISTINCT - NULLIF ( - 97, - + 66 ) + + + 17
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT DISTINCT + MAX( ALL - 55 ) * + 30 + - COUNT( * ) + 42 * - 79
----
-4969

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT + MAX ( ALL - 55 ) * + 30 + - COUNT ( * ) + 42 * - 79
----
-4969

query I rowsort
SELECT ALL - 15 * + + 84 - ( + 85 ) + 35 + + 79 - + 60 AS col1
----
-1291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6975
SELECT + COALESCE ( COUNT( * ), COUNT( DISTINCT + 84 ) * - - 78 DIV + 38 * - + 99 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6975
SELECT + COALESCE ( COUNT ( * ), COUNT ( DISTINCT + 84 ) * - - 78 / + 38 * - + 99 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT 95 * - + 38 + COUNT( * )
----
-3609

skipif mysql # not compatible
query I rowsort label-6976
SELECT 95 * - + 38 + COUNT ( * )
----
-3609

query I rowsort
SELECT + 1 + - 66
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT - - 43 * 99 + + - 44 + + - COUNT( * )
----
4212

skipif mysql # not compatible
query I rowsort label-6978
SELECT - - 43 * 99 + + - 44 + + - COUNT ( * )
----
4212

query I rowsort
SELECT - 85 - - 34
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL + 21 * 3 + + COUNT( * ) + + - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + 21 * 3 + + COUNT ( * ) + + - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT COUNT( DISTINCT + 60 ) * + - 8 + 77 - + 22 + - 20
----
27

skipif mysql # not compatible
query I rowsort label-6981
SELECT COUNT ( DISTINCT + 60 ) * + - 8 + 77 - + 22 + - 20
----
27

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6983
SELECT + 60 DIV + + 8 - - 18 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6983
SELECT + 60 / + + 8 - - 18 AS col1
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT MIN( ALL 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6985
SELECT MIN ( ALL 31 ) AS col0
----
31

query I rowsort
SELECT 35 * 5 * - CASE WHEN 57 IS NOT NULL THEN ( + ( + NULLIF ( ( ( + - 88 ) ), + 5 + + 43 ) ) ) * - 42 * - 64 ELSE NULL END
----
41395200

query I rowsort
SELECT 70 * - 88 AS col0
----
-6160

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6990
SELECT ALL + 15 AS col1, - COUNT( * ) col0
----
15
-1

skipif mysql # not compatible
query II rowsort label-6990
SELECT ALL + 15 AS col1, - COUNT ( * ) col0
----
15
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT + 72 + 77 + NULLIF ( + 97, - 37 * 2 * - 66 + + CASE - - COUNT( * ) WHEN + 40 * + 36 - + 88 + 40 + + + 14 * 92 + + ( - - 48 ) THEN ( + - 82 ) END + - 27 )
----
246

skipif mysql # not compatible
query I rowsort label-6991
SELECT + 72 + 77 + NULLIF ( + 97, - 37 * 2 * - 66 + + CASE - - COUNT ( * ) WHEN + 40 * + 36 - + 88 + 40 + + + 14 * 92 + + ( - - 48 ) THEN ( + - 82 ) END + - 27 )
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT DISTINCT 95 DIV + 85 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT 95 / + 85 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6993
SELECT - COALESCE ( - 79, - 92 + + - 28 * 38 + 86 + - + ( + + AVG ( - 40 ) ) * + + 12 DIV - 41 * - 93 ) col0
----
79

skipif mysql # not compatible
query I rowsort label-6993
SELECT - COALESCE ( - 79, - 92 + + - 28 * 38 + 86 + - + ( + + AVG ( - 40 ) ) * + + 12 / - 41 * - 93 ) col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6994
SELECT COUNT( * ) * - - 28 + + + CAST( - MIN( DISTINCT + 50 ) AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6994
SELECT COUNT ( * ) * - - 28 + + + CAST ( - MIN ( DISTINCT + 50 ) AS INTEGER ) AS col2
----
-22

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6996
SELECT - CAST( NULL AS DECIMAL ) + CAST( - - 43 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT - CAST ( NULL AS REAL ) + CAST ( - - 43 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 36 * 6
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT COUNT( * ) * 95 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT COUNT ( * ) * 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT - COALESCE ( + 21, - SUM( 7 ) + 38 )
----
-21

skipif mysql # not compatible
query I rowsort label-6999
SELECT - COALESCE ( + 21, - SUM ( 7 ) + 38 )
----
-21

query I rowsort
SELECT - 12 + - 35
----
-47

query I rowsort
SELECT - 71 * + 37 AS col0
----
-2627

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7003
SELECT + CAST( - + SUM( DISTINCT 27 ) AS SIGNED ) * + 72 + 22 + - + 94 + + 44
----
-1972

skipif mysql # not compatible
query I rowsort label-7003
SELECT + CAST ( - + SUM ( DISTINCT 27 ) AS INTEGER ) * + 72 + 22 + - + 94 + + 44
----
-1972

query I rowsort
SELECT - 88 + - 88
----
-176

query II rowsort
SELECT 1, 39 + 58 AS col0
----
1
97

query II rowsort
SELECT ALL - 51 AS col2, + ( - ( - 11 ) )
----
-51
11

query I rowsort
SELECT ALL - COALESCE ( - 13, + 95 * - 11 - + 57, + - 20 * 59 + + 0 ) + + 60 + 99 AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - NULLIF ( + + 20, - 35 * + ( - - COUNT( * ) ) + - 85 + - 48 + - ( - 70 ) + - 92 * COALESCE ( + + COUNT( * ), + COUNT( ALL 27 ) * - COUNT( * ) / - 61 + + 90 - - 59 - + - 19 + + 69 * + + 1 * + - MIN( DISTINCT - 70 ) ) + 14 )
----
-20

skipif mysql # not compatible
query I rowsort label-7008
SELECT - NULLIF ( + + 20, - 35 * + ( - - COUNT ( * ) ) + - 85 + - 48 + - ( - 70 ) + - 92 * COALESCE ( + + COUNT ( * ), + COUNT ( ALL 27 ) * - COUNT ( * ) / - 61 + + 90 - - 59 - + - 19 + + 69 * + + 1 * + - MIN ( DISTINCT - 70 ) ) + 14 )
----
-20

query I rowsort
SELECT - 72 * + 68
----
-4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT ALL - 44 * - CAST( + MAX( - 22 ) AS SIGNED ) + 13 AS col0
----
-955

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL - 44 * - CAST ( + MAX ( - 22 ) AS INTEGER ) + 13 AS col0
----
-955

onlyif mysql # DIV for integer division: 
query I rowsort label-7011
SELECT - 99 DIV 93 - + ( 3 ) DIV + ( - + 10 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7011
SELECT - 99 / 93 - + ( 3 ) / + ( - + 10 ) AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT DISTINCT + COUNT( * ) * - 72 + + - 96 * + 82 - + - 54
----
-7890

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT + COUNT ( * ) * - 72 + + - 96 * + 82 - + - 54
----
-7890

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT ALL + 67 * + - 29 + - - 19 AS col2, - NULLIF ( COUNT( * ), + 45 * + - 61 * - 93 + 4 ) AS col1
----
-1924
-1

skipif mysql # not compatible
query II rowsort label-7014
SELECT ALL + 67 * + - 29 + - - 19 AS col2, - NULLIF ( COUNT ( * ), + 45 * + - 61 * - 93 + 4 ) AS col1
----
-1924
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7015
SELECT DISTINCT + 74 AS col0, - 50 + + CASE 13 WHEN COUNT( * ) / 13 + - + 60 THEN NULL WHEN + + 9 THEN - - 92 * - - 55 + + 17 ELSE NULL END - + + 95 * + 18 - 41 * + 49 AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7015
SELECT DISTINCT + 74 AS col0, - 50 + + CASE 13 WHEN COUNT ( * ) / 13 + - + 60 THEN NULL WHEN + + 9 THEN - - 92 * - - 55 + + 17 ELSE NULL END - + + 95 * + 18 - 41 * + 49 AS col1
----
74
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL + NULLIF ( + 91, - MIN( ALL - - 87 ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL + NULLIF ( + 91, - MIN ( ALL - - 87 ) ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7019
SELECT COALESCE ( - + 98, SUM( - - CAST( - 11 AS SIGNED ) ) )
----
-98

skipif mysql # not compatible
query I rowsort label-7019
SELECT COALESCE ( - + 98, SUM ( - - CAST ( - 11 AS INTEGER ) ) )
----
-98

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

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

query I rowsort
SELECT ALL 43 * + 76 * + + NULLIF ( + 1, - + 57 ) AS col2
----
3268

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7023
SELECT - CASE - MAX( DISTINCT + - 52 ) WHEN 29 * COUNT( * ) THEN NULL WHEN NULLIF ( + 99, + + 66 ) THEN CAST( - 47 AS SIGNED ) + + 13 ELSE + COUNT( * ) * 88 + + 69 END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT - CASE - MAX ( DISTINCT + - 52 ) WHEN 29 * COUNT ( * ) THEN NULL WHEN NULLIF ( + 99, + + 66 ) THEN CAST ( - 47 AS INTEGER ) + + 13 ELSE + COUNT ( * ) * 88 + + 69 END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7024
SELECT + 71 DIV - COALESCE ( 34, - ( - + 37 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7024
SELECT + 71 / - COALESCE ( 34, - ( - + 37 ) ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT ALL 94 DIV + + 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL 94 / + + 74 AS col0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7027
SELECT ALL 41 + + 83 * - + COALESCE ( - - COUNT( * ), - COALESCE ( + + COUNT( * ), + CAST( COALESCE ( MAX( 13 ), - - ( + 92 ) * 87 * 58 * 79 + 66, - 46 - + COUNT( * ) * - 11 + - - 8 ) AS SIGNED ) + 0 * + ( - 65 ) * 33 ) - - - 85, + + 29 + 17 * COALESCE ( 86, 51 ) ) + + 54 + - 14 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL 41 + + 83 * - + COALESCE ( - - COUNT ( * ), - COALESCE ( + + COUNT ( * ), + CAST ( COALESCE ( MAX ( 13 ), - - ( + 92 ) * 87 * 58 * 79 + 66, - 46 - + COUNT ( * ) * - 11 + - - 8 ) AS INTEGER ) + 0 * + ( - 65 ) * 33 ) - - - 85, + + 29 + 17 * COALESCE ( 86, 51 ) ) + + 54 + - 14 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7028
SELECT DISTINCT COUNT( * ) + + 46, ( - 58 ) col2
----
47
-58

skipif mysql # not compatible
query II rowsort label-7028
SELECT DISTINCT COUNT ( * ) + + 46, ( - 58 ) col2
----
47
-58

query I rowsort
SELECT ALL - - 29 + - - 64 AS col2
----
93

query II rowsort
SELECT ALL 73 + - 86, - 60 + - - ( + + 20 ) AS col2
----
-13
-40

query I rowsort
SELECT DISTINCT - COALESCE ( - 64, - 93, 64 ) + + 47
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT + + COUNT( * ) + - 67 + 21 + COUNT( * ) * + 79 * + - COUNT( * ) AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-7032
SELECT + + COUNT ( * ) + - 67 + 21 + COUNT ( * ) * + 79 * + - COUNT ( * ) AS col0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT - + COUNT( * ) - + - 73 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7033
SELECT - + COUNT ( * ) - + - 73 AS col2
----
72

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

skipif mysql # not compatible
query I rowsort label-7034
SELECT + - CAST ( NULL AS INTEGER ) + - 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT + + MIN( - - 43 ) + 75 + - 17 * - COUNT( * ) + 60
----
195

skipif mysql # not compatible
query I rowsort label-7035
SELECT + + MIN ( - - 43 ) + 75 + - 17 * - COUNT ( * ) + 60
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL - 49 - - - SUM( DISTINCT 58 )
----
-107

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL - 49 - - - SUM ( DISTINCT 58 )
----
-107

query II rowsort
SELECT + 6 * + 1 col1, 35 AS col1
----
6
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT ALL - 32 DIV - 10
----
3

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL - 32 / - 10
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT DISTINCT + COUNT( * ) - + 37 + - + 40 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT + COUNT ( * ) - + 37 + - + 40 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL - 99 * + MAX( - 35 ) + - + 20 + + 33
----
3478

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - 99 * + MAX ( - 35 ) + - + 20 + + 33
----
3478

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

skipif mysql # not compatible
query I rowsort label-7041
SELECT - + MAX ( ALL - 70 ) * + COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT + 65 * - NULLIF ( + + 8, ( + MAX( DISTINCT - COALESCE ( + + 8, - 33, 23 ) ) ) * + - 94 - - 22 ) + - - COUNT( ALL + + 75 ) + + 92, 2 + - + ( - + 27 ) AS col2
----
-427
29

skipif mysql # not compatible
query II rowsort label-7042
SELECT + 65 * - NULLIF ( + + 8, ( + MAX ( DISTINCT - COALESCE ( + + 8, - 33, 23 ) ) ) * + - 94 - - 22 ) + - - COUNT ( ALL + + 75 ) + + 92, 2 + - + ( - + 27 ) AS col2
----
-427
29

query I rowsort
SELECT + NULLIF ( CASE 21 WHEN - 30 + - 92 THEN - - 52 WHEN + + 26 THEN NULL ELSE NULL END, 16 + + COALESCE ( - COALESCE ( - 78, 29 ), + - 60 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7044
SELECT + 0 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-7044
SELECT + 0 / + 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7045
SELECT SUM( - - 21 ) DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7045
SELECT SUM ( - - 21 ) / + 80 AS col0
----
0

query I rowsort
SELECT 51 * + 13 AS col0
----
663

query II rowsort
SELECT + 0 col1, 2 AS col1
----
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7048
SELECT 90 + - 68 + - CASE - 3 WHEN + - COUNT( * ) THEN NULL ELSE + 96 DIV + COUNT( * ) END * + 76 AS col0
----
-7274

skipif mysql # not compatible
query I rowsort label-7048
SELECT 90 + - 68 + - CASE - 3 WHEN + - COUNT ( * ) THEN NULL ELSE + 96 / + COUNT ( * ) END * + 76 AS col0
----
-7274

query I rowsort
SELECT ALL - 26 * - - 27
----
-702

onlyif mysql # aggregate syntax: 
query II rowsort label-7050
SELECT 50, 28 * + COUNT( ALL + 67 ) * + - 52 - + 96 AS col0
----
50
-1552

skipif mysql # not compatible
query II rowsort label-7050
SELECT 50, 28 * + COUNT ( ALL + 67 ) * + - 52 - + 96 AS col0
----
50
-1552

query I rowsort
SELECT ALL - NULLIF ( + - 52, - + ( NULLIF ( + 85, - + 25 + 96 ) ) ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT + 37 * + 82 - - NULLIF ( + 48, + 64 * - COUNT( * ) + + + ( 91 ) + + 5 )
----
3082

skipif mysql # not compatible
query I rowsort label-7052
SELECT + 37 * + 82 - - NULLIF ( + 48, + 64 * - COUNT ( * ) + + + ( 91 ) + + 5 )
----
3082

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

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

query I rowsort
SELECT 66 + - 34 AS col1
----
32

query I rowsort
SELECT 5 * - 85 AS col2
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL - 91 + 38 + - 72 * 77 * - 83 * + + ( + - 16 ) * + - COUNT( * )
----
7362379

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - 91 + 38 + - 72 * 77 * - 83 * + + ( + - 16 ) * + - COUNT ( * )
----
7362379

query I rowsort
SELECT 54 * + 19 + 84 col1
----
1110

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

skipif mysql # not compatible
query I rowsort label-7058
SELECT 85 + - 82 / - COUNT ( * )
----
167

query I rowsort
SELECT ALL CASE - 3 WHEN 94 * 49 THEN + 48 + 10 * - 65 ELSE + 33 - - 5 END + + ( - 10 ) + + 54
----
82

query I rowsort
SELECT ALL 53 * + + 96 * + 12
----
61056

query I rowsort
SELECT 95 * - + 32 AS col1
----
-3040

query I rowsort
SELECT 1 + - 79
----
-78

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

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

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

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

query II rowsort
SELECT 72 AS col0, - 54 * + 78 * + ( + 55 ) * - 96 col0
----
72
22239360

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT + 54 DIV ( + 97 ) * 51 - - - 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7066
SELECT + 54 / ( + 97 ) * 51 - - - 50 AS col0
----
-50

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

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

query I rowsort
SELECT + 37 + + 87 * + - 11 * + 99
----
-94706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7069
SELECT ALL 7 + 70 * + + 26 - - ( - 25 ) + 38 * - - 89 * CAST( - 8 AS SIGNED )
----
-25254

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL 7 + 70 * + + 26 - - ( - 25 ) + 38 * - - 89 * CAST ( - 8 AS INTEGER )
----
-25254

query II rowsort
SELECT - - 93 AS col0, 42
----
93
42

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

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

query I rowsort
SELECT ALL 34 * - 96 col2
----
-3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7073
SELECT ALL 37, COUNT( ALL - - CAST( + 79 AS SIGNED ) ) + + + 82 * + 34 - + 10 AS col1
----
37
2779

skipif mysql # not compatible
query II rowsort label-7073
SELECT ALL 37, COUNT ( ALL - - CAST ( + 79 AS INTEGER ) ) + + + 82 * + 34 - + 10 AS col1
----
37
2779

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

query I rowsort
SELECT DISTINCT 19 * 88 + 46 AS col2
----
1718

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

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

query I rowsort
SELECT 96 * - - 18
----
1728

query II rowsort
SELECT ALL - 15, 36 AS col2
----
-15
36

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7080
SELECT - 20 DIV - + 32 + + + NULLIF ( + COUNT( * ), - 62 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7080
SELECT - 20 / - + 32 + + + NULLIF ( + COUNT ( * ), - 62 ) AS col2
----
1

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

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

query II rowsort
SELECT + 23 AS col0, + 39
----
23
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7083
SELECT 21 + CAST( + 62 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-7083
SELECT 21 + CAST ( + 62 AS INTEGER )
----
83

query II rowsort
SELECT + 78 col0, - 22
----
78
-22

query I rowsort
SELECT ALL 65 + - + 81
----
-16

query I rowsort
SELECT DISTINCT 24 + - 0 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL - MIN( + 94 ) + + 86
----
-8

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL - MIN ( + 94 ) + + 86
----
-8

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

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

query I rowsort
SELECT ALL - NULLIF ( + 5, + ( + + 72 ) )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT 30 AS col1, + 68 * + CASE 20 WHEN - 86 - 36 - - 74 + - 4 * - 44 / + 64 THEN - - COUNT( * ) END
----
30
NULL

skipif mysql # not compatible
query II rowsort label-7090
SELECT 30 AS col1, + 68 * + CASE 20 WHEN - 86 - 36 - - 74 + - 4 * - 44 / + 64 THEN - - COUNT ( * ) END
----
30
NULL

query II rowsort
SELECT ALL - 91, 56 AS col0
----
-91
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7092
SELECT DISTINCT - ( + + NULLIF ( + 63, - - 84 * + - 88 * + - COUNT( * ) + - 21 + - - 75 - - 5 * - MAX( DISTINCT + + 36 ) ) ) AS col2, + 24
----
-63
24

skipif mysql # not compatible
query II rowsort label-7092
SELECT DISTINCT - ( + + NULLIF ( + 63, - - 84 * + - 88 * + - COUNT ( * ) + - 21 + - - 75 - - 5 * - MAX ( DISTINCT + + 36 ) ) ) AS col2, + 24
----
-63
24

query I rowsort
SELECT ALL - 60 + + + 92
----
32

query I rowsort
SELECT 1 - 60 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT CASE + 93 WHEN ( - 92 ) + - 79 THEN NULL WHEN - 27 * + ( - 4 ) THEN MIN( ALL - 47 ) ELSE - 38 - - CASE COALESCE ( 73, + COUNT( * ) ) WHEN - - NULLIF ( - - 75, + + COUNT( * ) * + ( NULLIF ( - 64, - 26 ) ) + + 89 + + 25 ) + SUM( - 2 ) * - + 45 THEN - 2 + 77 WHEN - + 80 THEN NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT CASE + 93 WHEN ( - 92 ) + - 79 THEN NULL WHEN - 27 * + ( - 4 ) THEN MIN ( ALL - 47 ) ELSE - 38 - - CASE COALESCE ( 73, + COUNT ( * ) ) WHEN - - NULLIF ( - - 75, + + COUNT ( * ) * + ( NULLIF ( - 64, - 26 ) ) + + 89 + + 25 ) + SUM ( - 2 ) * - + 45 THEN - 2 + 77 WHEN - + 80 THEN NULL END END AS col2
----
NULL

query II rowsort
SELECT 81 col2, 70
----
81
70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7098
SELECT - - 29, COUNT( * ) * 37 AS col1
----
29
37

skipif mysql # not compatible
query II rowsort label-7098
SELECT - - 29, COUNT ( * ) * 37 AS col1
----
29
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - COALESCE ( - 65, - CASE - + CASE + + 45 WHEN ( COUNT( * ) ) THEN + - COUNT( * ) - - 16 END WHEN - + COALESCE ( + - MIN( - 10 ), + 42 ) THEN NULL WHEN 82 THEN 37 ELSE NULL END, - COUNT( * ) - - SUM( 37 ) ) * - 25
----
-1625

skipif mysql # not compatible
query I rowsort label-7099
SELECT - COALESCE ( - 65, - CASE - + CASE + + 45 WHEN ( COUNT ( * ) ) THEN + - COUNT ( * ) - - 16 END WHEN - + COALESCE ( + - MIN ( - 10 ), + 42 ) THEN NULL WHEN 82 THEN 37 ELSE NULL END, - COUNT ( * ) - - SUM ( 37 ) ) * - 25
----
-1625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7100
SELECT - CASE - CAST( 65 AS SIGNED ) WHEN 28 THEN + ( - 11 ) * - 87 + - 35 WHEN 82 THEN - 22 * 1 ELSE NULL END * - ( + - SUM( ALL + - 47 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT - CASE - CAST ( 65 AS INTEGER ) WHEN 28 THEN + ( - 11 ) * - 87 + - 35 WHEN 82 THEN - 22 * 1 ELSE NULL END * - ( + - SUM ( ALL + - 47 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT DISTINCT - 66 * - 75 + + COUNT( * ) + - - 26 AS col0
----
4977

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT - 66 * - 75 + + COUNT ( * ) + - - 26 AS col0
----
4977

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

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT + 55 - - + CAST ( + 15 AS INTEGER )
----
70

query I rowsort
SELECT - 79 * 56 AS col0
----
-4424

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

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

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

skipif mysql # not compatible
query II rowsort label-7105
SELECT ALL COUNT ( * ), - COUNT ( * ) col1
----
1
-1

query I rowsort
SELECT - ( 96 ) col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7107
SELECT DISTINCT + NULLIF ( - - COUNT( * ), - - CAST( NULL AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + NULLIF ( - - COUNT ( * ), - - CAST ( NULL AS REAL ) ) AS col2
----
1

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

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

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

query II rowsort
SELECT - - 66 + - 1 AS col1, + 25 AS col2
----
65
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7111
SELECT + 24 DIV + COUNT( * ) + + 56
----
80

skipif mysql # not compatible
query I rowsort label-7111
SELECT + 24 / + COUNT ( * ) + + 56
----
80

query I rowsort
SELECT - 82 + + 10
----
-72

query I rowsort
SELECT + 51 - 71 - + 39 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT + 91 DIV 91 col2
----
1

skipif mysql # not compatible
query I rowsort label-7114
SELECT + 91 / 91 col2
----
1

query II rowsort
SELECT + + 95 * + - 1 + 16 + + 39 AS col2, - 40 col0
----
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT DISTINCT + 89 DIV - - 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT + 89 / - - 35 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT ALL NULLIF ( 13, - MIN( + 4 ) ) + + - 27 col2, - 93 AS col0
----
-14
-93

skipif mysql # not compatible
query II rowsort label-7117
SELECT ALL NULLIF ( 13, - MIN ( + 4 ) ) + + - 27 col2, - 93 AS col0
----
-14
-93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT ALL 32 DIV + - 42 * - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL 32 / + - 42 * - 8 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7120
SELECT ALL 16 * CAST( NULL AS DECIMAL ) * 0 DIV + + 60 + + 34 AS col2, 79 DIV 52 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7120
SELECT ALL 16 * CAST ( NULL AS REAL ) * 0 / + + 60 + + 34 AS col2, 79 / 52 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT + NULLIF ( + 3, - - 59 + 76 - + COUNT( * ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7121
SELECT + NULLIF ( + 3, - - 59 + 76 - + COUNT ( * ) ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT 90 DIV 46 DIV + 66 + 57
----
57

skipif mysql # not compatible
query I rowsort label-7122
SELECT 90 / 46 / + 66 + 57
----
57

query I rowsort
SELECT - 48 + + 50 AS col1
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7124
SELECT - CASE - - ( 39 ) WHEN + + 7 - 0 + 47 THEN NULL ELSE + 99 END * - 57 * - - 18 + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT - CASE - - ( 39 ) WHEN + + 7 - 0 + 47 THEN NULL ELSE + 99 END * - 57 * - - 18 + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7125
SELECT CASE - 92 WHEN + - 3 THEN NULL ELSE + + 10 - - - COUNT( * ) END AS col1, + 58 * 4
----
9
232

skipif mysql # not compatible
query II rowsort label-7125
SELECT CASE - 92 WHEN + - 3 THEN NULL ELSE + + 10 - - - COUNT ( * ) END AS col1, + 58 * 4
----
9
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7126
SELECT 28 / - CAST( NULL AS SIGNED ) + + - COUNT( * ) * + - 34 - - + 26 + + + 94 / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7126
SELECT 28 / - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * + - 34 - - + 26 + + + 94 / + 12
----
NULL

query I rowsort
SELECT DISTINCT - 53 * + - 17 * - - 12 * - 44 + 20 + - 16
----
-475724

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7129
SELECT ALL ( - 49 ) DIV + NULLIF ( + 86, - + 77 + - - COUNT( * ) - + 78 ) + + 16 + 66 - 60 * + 80 AS col2
----
-4718

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL ( - 49 ) / + NULLIF ( + 86, - + 77 + - - COUNT ( * ) - + 78 ) + + 16 + 66 - 60 * + 80 AS col2
----
-4718

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT - 27 * 12 DIV + 39 + 29 col2
----
21

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 27 * 12 / + 39 + 29 col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT + NULLIF ( COALESCE ( - + 92, + 36 * 3, - ( + 19 ) + + - COUNT( * ) ), CAST( NULL AS SIGNED ) + + 37 * 14 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-7131
SELECT + NULLIF ( COALESCE ( - + 92, + 36 * 3, - ( + 19 ) + + - COUNT ( * ) ), CAST ( NULL AS INTEGER ) + + 37 * 14 ) AS col1
----
-92

query I rowsort
SELECT ALL + + 30 * 68 + 50 AS col1
----
2090

query I rowsort
SELECT + 36 + + + 25
----
61

query I rowsort
SELECT 17 * 75 - - - 58 col0
----
1217

query II rowsort
SELECT + - 6 * - 46 col0, 32
----
276
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT ALL + COALESCE ( + - COUNT( * ), + 6 ) AS col0, 48 AS col0
----
-1
48

skipif mysql # not compatible
query II rowsort label-7136
SELECT ALL + COALESCE ( + - COUNT ( * ), + 6 ) AS col0, 48 AS col0
----
-1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - + NULLIF ( COUNT( * ), - 2 ) + + 97 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7137
SELECT - + NULLIF ( COUNT ( * ), - 2 ) + + 97 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT ALL - - 5 DIV - - 26 + + 97 + + 80
----
177

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL - - 5 / - - 26 + + 97 + + 80
----
177

query I rowsort
SELECT - 0 + - - 69 + + - 13 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7140
SELECT - NULLIF ( - MIN( + 39 ), - + 11 ) * + + 32 - + 90 * - - 43, 24 * + - CAST( NULL AS SIGNED ) AS col2
----
-2622
NULL

skipif mysql # not compatible
query II rowsort label-7140
SELECT - NULLIF ( - MIN ( + 39 ), - + 11 ) * + + 32 - + 90 * - - 43, 24 * + - CAST ( NULL AS INTEGER ) AS col2
----
-2622
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT - 22 + - NULLIF ( - + ( + + COUNT( * ) ), - - 94 + + ( + - 4 ) * 95 * 57 ) + - 96, 43 AS col2
----
-117
43

skipif mysql # not compatible
query II rowsort label-7141
SELECT - 22 + - NULLIF ( - + ( + + COUNT ( * ) ), - - 94 + + ( + - 4 ) * 95 * 57 ) + - 96, 43 AS col2
----
-117
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7142
SELECT + CAST( - + 19 AS SIGNED ), + 40 * + + 21 AS col0
----
-19
840

skipif mysql # not compatible
query II rowsort label-7142
SELECT + CAST ( - + 19 AS INTEGER ), + 40 * + + 21 AS col0
----
-19
840

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL + 60 * - - ( - COUNT( * ) ) + + + 37 * 88
----
3196

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + 60 * - - ( - COUNT ( * ) ) + + + 37 * 88
----
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT ALL + - COUNT( * ) * + NULLIF ( + MIN( + + CAST( - COALESCE ( 91, + 87 * - - 59 * + CAST( NULL AS SIGNED ) ) AS SIGNED ) ), - 35 * CAST( NULL AS SIGNED ) ) + - 16
----
75

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL + - COUNT ( * ) * + NULLIF ( + MIN ( + + CAST ( - COALESCE ( 91, + 87 * - - 59 * + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ), - 35 * CAST ( NULL AS INTEGER ) ) + - 16
----
75

query I rowsort
SELECT - ( + + 32 ) col2
----
-32

query II rowsort
SELECT ALL 99 AS col0, ( - 56 ) * - + 82
----
99
4592

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT - SUM( 54 ) - + 60 AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-7148
SELECT - SUM ( 54 ) - + 60 AS col0
----
-114

query I rowsort
SELECT + 72 * - + 15
----
-1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7150
SELECT ALL + ( + 91 ) DIV + CASE - - 47 WHEN + 37 + - 76 + - 97 + + - 61 * - + COUNT( * ) * + MAX( + 20 ) THEN - - 77 ELSE CAST( - + 78 AS SIGNED ) + + COUNT( * ) END + - + 73
----
-74

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + ( + 91 ) / + CASE - - 47 WHEN + 37 + - 76 + - 97 + + - 61 * - + COUNT ( * ) * + MAX ( + 20 ) THEN - - 77 ELSE CAST ( - + 78 AS INTEGER ) + + COUNT ( * ) END + - + 73
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7151
SELECT ALL - 92 DIV 65 DIV ( - 13 ) * + MAX( ALL + 40 ) DIV - 53 + - - 88 * MAX( + + 69 )
----
6072

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL - 92 / 65 / ( - 13 ) * + MAX ( ALL + 40 ) / - 53 + - - 88 * MAX ( + + 69 )
----
6072

query I rowsort
SELECT + 36 * + - 46
----
-1656

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

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

query I rowsort
SELECT + 54 + - 8
----
46

query I rowsort
SELECT - 86 * - 59 - + 95 * 57 AS col2
----
-341

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7156
SELECT ALL ( + + 85 ) * - 68 + + 14, + CASE - - CAST( NULL AS DECIMAL ) WHEN + ( - 82 ) * + 7 + + 95 + + COALESCE ( + - 41, + COUNT( * ) + 28 - 82 * + 36 * + - MAX( + + 74 ) ) / - + 91 THEN + 46 END AS col1
----
-5766
NULL

skipif mysql # not compatible
query II rowsort label-7156
SELECT ALL ( + + 85 ) * - 68 + + 14, + CASE - - CAST ( NULL AS REAL ) WHEN + ( - 82 ) * + 7 + + 95 + + COALESCE ( + - 41, + COUNT ( * ) + 28 - 82 * + 36 * + - MAX ( + + 74 ) ) / - + 91 THEN + 46 END AS col1
----
-5766
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7157
SELECT ALL - 98 DIV - - 79 DIV 6 * + + 43 - 0 + 66 + 59 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL - 98 / - - 79 / 6 * + + 43 - 0 + 66 + 59 AS col2
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-7158
SELECT DISTINCT + 65 DIV 65 - 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + 65 / 65 - 95 AS col0
----
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT + COUNT( * ) + - 98 + - - 31 * 0 + + 10 + - 47 * + 42 AS col2
----
-2061

skipif mysql # not compatible
query I rowsort label-7160
SELECT + COUNT ( * ) + - 98 + - - 31 * 0 + + 10 + - 47 * + 42 AS col2
----
-2061

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

query I rowsort
SELECT + - 77 * - 30
----
2310

query II rowsort
SELECT ALL + + 73 col1, + 48
----
73
48

query I rowsort
SELECT + 23 - 17
----
6

query I rowsort
SELECT 30 * + + 54
----
1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7166
SELECT DISTINCT - COUNT( * ) + - NULLIF ( - + 85, - - 69 ) + 98 * 69 * - - 29 * - - 20 AS col1, 83 * 77 * + COUNT( * ), 11 * + COUNT( * ) + - NULLIF ( 49, - + 76 DIV - 94 * + COUNT( DISTINCT + + 96 ) ) DIV + 75 AS col0
----
3922044
6391
11

skipif mysql # not compatible
query III rowsort label-7166
SELECT DISTINCT - COUNT ( * ) + - NULLIF ( - + 85, - - 69 ) + 98 * 69 * - - 29 * - - 20 AS col1, 83 * 77 * + COUNT ( * ), 11 * + COUNT ( * ) + - NULLIF ( 49, - + 76 / - 94 * + COUNT ( DISTINCT + + 96 ) ) / + 75 AS col0
----
3922044
6391
11

query II rowsort
SELECT ALL - + 10 + 64 + + 65, 69 + - 61 AS col1
----
119
8

query I rowsort
SELECT - 73 - 46
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7169
SELECT ALL 42 * + - 47 DIV - COUNT( * ) + 0 DIV + COUNT( * ) - - - COUNT( DISTINCT 28 ) * + 97
----
1877

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL 42 * + - 47 / - COUNT ( * ) + 0 / + COUNT ( * ) - - - COUNT ( DISTINCT 28 ) * + 97
----
1877

query I rowsort
SELECT 86 - 93
----
-7

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

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

query I rowsort
SELECT ALL - + 35 + + 98 AS col1
----
63

query I rowsort
SELECT - 0 - - ( - - 68 ) + + - 18 + + 83 * 12
----
1046

query I rowsort
SELECT ALL - NULLIF ( 45, - 36 ) + + + 81 AS col2
----
36

query I rowsort
SELECT 78 * 58
----
4524

query I rowsort
SELECT 15 - - 5
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT 89 + + COUNT( * ) + 48
----
138

skipif mysql # not compatible
query I rowsort label-7177
SELECT 89 + + COUNT ( * ) + 48
----
138

query I rowsort
SELECT ALL + 73 - 23 * - 6 AS col0
----
211

onlyif mysql # aggregate syntax: 
query II rowsort label-7179
SELECT DISTINCT - ( + - 39 ) * + 85 * - 58 + COUNT( * ), - 78 AS col2
----
-192269
-78

skipif mysql # not compatible
query II rowsort label-7179
SELECT DISTINCT - ( + - 39 ) * + 85 * - 58 + COUNT ( * ), - 78 AS col2
----
-192269
-78

query I rowsort
SELECT DISTINCT - 46 * + + 61
----
-2806

query II rowsort
SELECT ALL - 28 * + 42 AS col1, + 7 * - - 53 AS col1
----
-1176
371

query I rowsort
SELECT 40 * - - 64 col0
----
2560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7183
SELECT 59 + - + COUNT( * ) - + - 91 * + 79 * - CAST( + - 59 AS SIGNED ) AS col1
----
424209

skipif mysql # not compatible
query I rowsort label-7183
SELECT 59 + - + COUNT ( * ) - + - 91 * + 79 * - CAST ( + - 59 AS INTEGER ) AS col1
----
424209

query I rowsort
SELECT 29 * ( - 42 ) - + 72
----
-1290

query I rowsort
SELECT - 32 * 2 + - 24
----
-88

query I rowsort
SELECT 6 + + + 98 col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL + 34 * + COUNT( + + 16 )
----
34

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + 34 * + COUNT ( + + 16 )
----
34

query I rowsort
SELECT - 50 * + 50 + + 48 col0
----
-2452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7189
SELECT CAST( - 81 AS SIGNED ) - - + 11
----
-70

skipif mysql # not compatible
query I rowsort label-7189
SELECT CAST ( - 81 AS INTEGER ) - - + 11
----
-70

query I rowsort
SELECT DISTINCT 47 * - 76 AS col2
----
-3572

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7191
SELECT ALL - 84 + + 97 DIV MAX( + - 83 ), 28 * 43 AS col2
----
-85
1204

skipif mysql # not compatible
query II rowsort label-7191
SELECT ALL - 84 + + 97 / MAX ( + - 83 ), 28 * 43 AS col2
----
-85
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT - - COALESCE ( + COUNT( * ), COUNT( * ) ) * 56 + 51 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-7192
SELECT - - COALESCE ( + COUNT ( * ), COUNT ( * ) ) * 56 + 51 AS col2
----
107

query II rowsort
SELECT ( + 17 ) + + 97 + - 3 AS col1, + 53 AS col1
----
111
53

query I rowsort
SELECT ALL 74 + - 63 * + 14 AS col0
----
-808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7195
SELECT DISTINCT - 82 * CAST( - COUNT( * ) AS SIGNED ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT - 82 * CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
82

query I rowsort
SELECT DISTINCT + CASE - ( + 53 ) WHEN - 53 THEN NULL WHEN + - 41 THEN 14 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT - MAX( + 89 ) + + - ( + - 62 )
----
-27

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT - MAX ( + 89 ) + + - ( + - 62 )
----
-27

query I rowsort
SELECT 1 + 19 * 86 AS col2
----
1635

query I rowsort
SELECT ALL + 58 + - 11 * - 89
----
1037

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + 98 + - - 82 / - + CASE - 56 WHEN - NULLIF ( - 64, - - 48 + ( - MIN( DISTINCT - 71 ) ) ) THEN + 62 - COUNT( * ) * - - 41 / + + 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT + 98 + - - 82 / - + CASE - 56 WHEN - NULLIF ( - 64, - - 48 + ( - MIN ( DISTINCT - 71 ) ) ) THEN + 62 - COUNT ( * ) * - - 41 / + + 74 END AS col1
----
NULL

query I rowsort
SELECT 34 * - 37 + + 18
----
-1240

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT ALL 76 DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL 76 / + + 95
----
0

query II rowsort
SELECT - 95 AS col2, - 8
----
-95
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT - COUNT( ALL - NULLIF ( + 41, + - ( 17 ) * 79 * 43 * 59 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7204
SELECT - COUNT ( ALL - NULLIF ( + 41, + - ( 17 ) * 79 * 43 * 59 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT DISTINCT 96 + - 34 - + COUNT( * ) * + 29 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT 96 + - 34 - + COUNT ( * ) * + 29 AS col0
----
33

query I rowsort
SELECT 21 + + 2 AS col1
----
23

query I rowsort
SELECT 95 * + 61 AS col0
----
5795

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ( + MAX( - 45 ) ) - + + 85 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-7208
SELECT ( + MAX ( - 45 ) ) - + + 85 AS col1
----
-130

query II rowsort
SELECT 23 AS col0, CASE - 48 WHEN - - 14 THEN NULL ELSE - + 78 END AS col1
----
23
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7210
SELECT 14 - + - 94 * - 30 + + - 20 DIV + ( + - 41 ) - - 23 + - + 42 * + COUNT( * ) * 40 AS col2, 41 * 70 AS col2
----
-4463
2870

skipif mysql # not compatible
query II rowsort label-7210
SELECT 14 - + - 94 * - 30 + + - 20 / + ( + - 41 ) - - 23 + - + 42 * + COUNT ( * ) * 40 AS col2, 41 * 70 AS col2
----
-4463
2870

query I rowsort
SELECT 20 * + 31 AS col1
----
620

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT 55 + 26 + + COUNT( + 32 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7212
SELECT 55 + 26 + + COUNT ( + 32 ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7213
SELECT DISTINCT COUNT( * ) col1, - CAST( NULL AS SIGNED ) - + ( - CAST( - 20 AS SIGNED ) ) + - - COUNT( * ) + + COUNT( * )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7213
SELECT DISTINCT COUNT ( * ) col1, - CAST ( NULL AS INTEGER ) - + ( - CAST ( - 20 AS INTEGER ) ) + - - COUNT ( * ) + + COUNT ( * )
----
1
NULL

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

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

query I rowsort
SELECT ALL - 70 * + - 31
----
2170

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT DISTINCT - COUNT( + - 17 ) * 53 + - + COUNT( * ) - + SUM( 16 ) - 16 * + + 94 AS col2, + COUNT( * ) * - COUNT( * ) * - 97 col1
----
-1574
97

skipif mysql # not compatible
query II rowsort label-7216
SELECT DISTINCT - COUNT ( + - 17 ) * 53 + - + COUNT ( * ) - + SUM ( 16 ) - 16 * + + 94 AS col2, + COUNT ( * ) * - COUNT ( * ) * - 97 col1
----
-1574
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL - - 44 * MIN( + + 40 )
----
1760

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - - 44 * MIN ( + + 40 )
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT COUNT( DISTINCT 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7218
SELECT COUNT ( DISTINCT 75 ) AS col2
----
1

query I rowsort
SELECT - - 94 * - 24 * + - 87 AS col2
----
196272

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT - 92 * - 86 - + 50 * - - MIN( DISTINCT - 97 ) + - COUNT( * ) + COUNT( ALL - 44 ) AS col2
----
12762

skipif mysql # not compatible
query I rowsort label-7220
SELECT - 92 * - 86 - + 50 * - - MIN ( DISTINCT - 97 ) + - COUNT ( * ) + COUNT ( ALL - 44 ) AS col2
----
12762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7221
SELECT ALL 31 * + 28 * 85 * + + 33 * 23 + + 1 * - ( + CAST( NULL AS SIGNED ) ) + COUNT( - - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL 31 * + 28 * 85 * + + 33 * 23 + + 1 * - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( - - 93 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7222
SELECT - 19 DIV 61 * + MIN( - + 51 ) * + + 35
----
0

skipif mysql # not compatible
query I rowsort label-7222
SELECT - 19 / 61 * + MIN ( - + 51 ) * + + 35
----
0

query I rowsort
SELECT + 88 + + NULLIF ( - 1, + 25 * - + 41 + - 24 / + 49 ) AS col1
----
87

query I rowsort
SELECT ALL + 66 * + - 90 + - 47
----
-5987

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT DISTINCT + + CASE - 93 WHEN + COUNT( * ) THEN 96 * SUM( + - 62 ) * - 58 + + 66 + 32 * COUNT( * ) + + + 26 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT + + CASE - 93 WHEN + COUNT ( * ) THEN 96 * SUM ( + - 62 ) * - 58 + + 66 + 32 * COUNT ( * ) + + + 26 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL - 16 * - 44 - - + 69 + + ( 81 ) * MIN( + 42 )
----
4175

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL - 16 * - 44 - - + 69 + + ( 81 ) * MIN ( + 42 )
----
4175

query II rowsort
SELECT - 30 AS col1, 47
----
-30
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT ALL + SUM( ALL + 84 ) * + - COUNT( * ) + 37 col2
----
-47

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL + SUM ( ALL + 84 ) * + - COUNT ( * ) + 37 col2
----
-47

query I rowsort
SELECT + - COALESCE ( - 19, 68, - + 79 ) AS col0
----
19

query I rowsort
SELECT - 21 - - 62 - + + 15 col1
----
26

query I rowsort
SELECT ALL 65 * 45
----
2925

query I rowsort
SELECT - 35 + - ( 72 ) + + 37 col0
----
-70

query II rowsort
SELECT 85 AS col0, + 54
----
85
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT - COUNT( ALL - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-7234
SELECT - COUNT ( ALL - 76 )
----
-1

query I rowsort
SELECT ALL ( ( 82 ) )
----
82

query I rowsort
SELECT ALL - 45 * + 57
----
-2565

query II rowsort
SELECT ALL 52 AS col2, 15 * + + 47
----
52
705

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + 90 + - + 75 + - + 94 * + 43 * COUNT( * ) * - 41 * + 37
----
6131729

skipif mysql # not compatible
query I rowsort label-7238
SELECT + 90 + - + 75 + - + 94 * + 43 * COUNT ( * ) * - 41 * + 37
----
6131729

onlyif mysql # aggregate syntax: 
query II rowsort label-7239
SELECT + ( - 31 ) * + ( - COUNT( * ) ) + + 97 + + - 22 AS col0, + 59
----
106
59

skipif mysql # not compatible
query II rowsort label-7239
SELECT + ( - 31 ) * + ( - COUNT ( * ) ) + + 97 + + - 22 AS col0, + 59
----
106
59

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT - ( 73 ) AS col0, COALESCE ( - 34, 90 ) + - COUNT( * )
----
-73
-35

skipif mysql # not compatible
query II rowsort label-7241
SELECT - ( 73 ) AS col0, COALESCE ( - 34, 90 ) + - COUNT ( * )
----
-73
-35

query I rowsort
SELECT - ( - - NULLIF ( 5, 61 ) ) AS col1
----
-5

query I rowsort
SELECT + 54 + - 51 + COALESCE ( 98, + + 17 ) AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + 71 * + 28 * - ( + COUNT( * ) )
----
-1988

skipif mysql # not compatible
query I rowsort label-7244
SELECT + 71 * + 28 * - ( + COUNT ( * ) )
----
-1988

query II rowsort
SELECT ALL 29 AS col2, - 33 + + 74 AS col1
----
29
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT - ( MAX( ALL - 76 ) ) col2
----
76

skipif mysql # not compatible
query I rowsort label-7246
SELECT - ( MAX ( ALL - 76 ) ) col2
----
76

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

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

query I rowsort
SELECT DISTINCT ( + - 18 ) * 50 * + 82
----
-73800

query I rowsort
SELECT - 17 * + 73 AS col2
----
-1241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7250
SELECT ALL 79 DIV - + 16 + - + 38 + - COUNT( * ) + - - COALESCE ( - 68, - 47 ) * - 71
----
4785

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL 79 / - + 16 + - + 38 + - COUNT ( * ) + - - COALESCE ( - 68, - 47 ) * - 71
----
4785

query I rowsort
SELECT + 89 + - ( - - 46 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7252
SELECT DISTINCT 66 DIV 93 + - COUNT( 3 ) + - 68 + + ( + COUNT( * ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT 66 / 93 + - COUNT ( 3 ) + - 68 + + ( + COUNT ( * ) ) AS col2
----
-68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7254
SELECT DISTINCT + 26 * + NULLIF ( 64, + + 58 ) / 32 - CAST( NULL AS SIGNED ) * 45 - - 32 + - 66 * - 64 * - 77 * - - 86 + - - 70 * + 22 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT + 26 * + NULLIF ( 64, + + 58 ) / 32 - CAST ( NULL AS INTEGER ) * 45 - - 32 + - 66 * - 64 * - 77 * - - 86 + - - 70 * + 22 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT COUNT( + 85 ) * + - 49 + - 68 + - 24 + 65 + + - 85 * + 91
----
-7811

skipif mysql # not compatible
query I rowsort label-7255
SELECT COUNT ( + 85 ) * + - 49 + - 68 + - 24 + 65 + + - 85 * + 91
----
-7811

query I rowsort
SELECT ALL 87 * + 7 + - 33 + + ( - + ( + 66 ) ) AS col0
----
510

query I rowsort
SELECT ALL + 32 * 19 + + 60 * - 52 AS col2
----
-2512

query II rowsort
SELECT + - 41 AS col2, + 9 - - 72 col1
----
-41
81

query I rowsort
SELECT - 75 - - 97 + - + 75
----
-53

query I rowsort
SELECT - 80 * - - 88 * - 67 AS col1
----
471680

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT - 43 AS col0, MAX( + 78 ) * - 66 + 89 AS col1
----
-43
-5059

skipif mysql # not compatible
query II rowsort label-7261
SELECT - 43 AS col0, MAX ( + 78 ) * - 66 + 89 AS col1
----
-43
-5059

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

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

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

query I rowsort
SELECT 78 * + 93 + 29 * 67 * - 86 + + - 0 AS col2
----
-159844

query I rowsort
SELECT ALL - 88 * 71 - + 84
----
-6332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7266
SELECT DISTINCT - SUM( + 85 ) DIV - 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT - SUM ( + 85 ) / - 62 AS col1
----
1

query I rowsort
SELECT - 90 + 78
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7268
SELECT - 2 DIV 6
----
0

skipif mysql # not compatible
query I rowsort label-7268
SELECT - 2 / 6
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7270
SELECT + 84 * - 99 col2, - 63 + 40 + COUNT( * )
----
-8316
-22

skipif mysql # not compatible
query II rowsort label-7270
SELECT + 84 * - 99 col2, - 63 + 40 + COUNT ( * )
----
-8316
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT DISTINCT COALESCE ( + CASE ( + 83 ) WHEN - 54 + + 87 THEN + 57 WHEN + ( - - COUNT( * ) ) THEN NULL ELSE - SUM( ALL + 51 ) END, + COALESCE ( - SUM( 32 ), 6 * + + ( 35 ) ) ) * 39
----
-1989

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT COALESCE ( + CASE ( + 83 ) WHEN - 54 + + 87 THEN + 57 WHEN + ( - - COUNT ( * ) ) THEN NULL ELSE - SUM ( ALL + 51 ) END, + COALESCE ( - SUM ( 32 ), 6 * + + ( 35 ) ) ) * 39
----
-1989

query I rowsort
SELECT ALL + 15 * - 24 AS col1
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT + CASE 23 WHEN - 61 * - 35 + - + 7 THEN - COUNT( * ) + + - 15 * + - 27 END * 51 + COALESCE ( 86, + 11, NULLIF ( - 44, - 70 ) * + 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT + CASE 23 WHEN - 61 * - 35 + - + 7 THEN - COUNT ( * ) + + - 15 * + - 27 END * 51 + COALESCE ( 86, + 11, NULLIF ( - 44, - 70 ) * + 10 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT + 41 + 12 + - 59 + - - 30 DIV + + 88 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7274
SELECT + 41 + 12 + - 59 + - - 30 / + + 88 AS col2
----
-6

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

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

query I rowsort
SELECT ( 90 ) + + 57 AS col0
----
147

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

query II rowsort
SELECT ALL 58 + 55 AS col1, 77 AS col1
----
113
77

query I rowsort
SELECT COALESCE ( + + 76, - + ( + 7 ), + 41 ) - + - 22 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7280
SELECT + 43 + 92, CAST( NULL AS SIGNED ) + + 10 AS col0
----
135
NULL

skipif mysql # not compatible
query II rowsort label-7280
SELECT + 43 + 92, CAST ( NULL AS INTEGER ) + + 10 AS col0
----
135
NULL

query I rowsort
SELECT DISTINCT - 55 + + 27 AS col0
----
-28

query I rowsort
SELECT ALL + ( - 40 ) + - + 40
----
-80

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

query I rowsort
SELECT - 10 * + 59 + - + 35 * - - 81 AS col0
----
-3425

onlyif mysql # aggregate syntax: 
query II rowsort label-7285
SELECT DISTINCT 79 + + 46 * + + COUNT( * ), 35 col2
----
125
35

skipif mysql # not compatible
query II rowsort label-7285
SELECT DISTINCT 79 + + 46 * + + COUNT ( * ), 35 col2
----
125
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT ALL - + MAX( ALL CAST( - 94 AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL - + MAX ( ALL CAST ( - 94 AS INTEGER ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT + 93 / - MAX( DISTINCT + - 18 ) - 13 + + CASE + 87 WHEN COUNT( * ) THEN + ( + + 6 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT + 93 / - MAX ( DISTINCT + - 18 ) - 13 + + CASE + 87 WHEN COUNT ( * ) THEN + ( + + 6 ) END
----
NULL

query I rowsort
SELECT ALL 98 * + + 96 * - 10 AS col1
----
-94080

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL - CASE + - AVG ( 7 ) WHEN + + 64 THEN COUNT( * ) WHEN + 19 * 92 + - 50 THEN - 61 + - - 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL - CASE + - AVG ( 7 ) WHEN + + 64 THEN COUNT ( * ) WHEN + 19 * 92 + - 50 THEN - 61 + - - 77 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 25 - - - 9 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7291
SELECT - 94 DIV 12
----
-7

skipif mysql # not compatible
query I rowsort label-7291
SELECT - 94 / 12
----
-7

query I rowsort
SELECT 99 * - - 89 + + 24 AS col1
----
8835

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL - + MAX( DISTINCT 37 ) - + 89 + COALESCE ( + 8, - 20 )
----
-118

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - + MAX ( DISTINCT 37 ) - + 89 + COALESCE ( + 8, - 20 )
----
-118

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

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

query I rowsort
SELECT DISTINCT + + ( + 33 ) * 46 AS col1
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT DISTINCT - NULLIF ( - 45, + COUNT( * ) - - 88 )
----
45

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT - NULLIF ( - 45, + COUNT ( * ) - - 88 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT - SUM( 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT - SUM ( 12 ) AS col1
----
-12

query I rowsort
SELECT ALL + 73 * 74 * 46 AS col1
----
248492

query I rowsort
SELECT DISTINCT + 0 * + 3 AS col2
----
0

query I rowsort
SELECT 98 * + 63
----
6174

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT 33 * - SUM( DISTINCT 35 ) * + COUNT( + 39 ) AS col2
----
-1155

skipif mysql # not compatible
query I rowsort label-7301
SELECT 33 * - SUM ( DISTINCT 35 ) * + COUNT ( + 39 ) AS col2
----
-1155

query I rowsort
SELECT ALL - CASE + 96 WHEN + - 83 THEN - 88 END * 47 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT 14 + - SUM( ALL - 54 ) * - 82 AS col1
----
-4414

skipif mysql # not compatible
query I rowsort label-7304
SELECT 14 + - SUM ( ALL - 54 ) * - 82 AS col1
----
-4414

query II rowsort
SELECT DISTINCT 11 AS col1, + 51 AS col1
----
11
51

query II rowsort
SELECT 19 * + 84 + - ( + - 42 ) AS col1, - ( + 22 )
----
1638
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT DISTINCT 64 AS col1, - 76 * - + 80 * - 85 * - COUNT( * )
----
64
516800

skipif mysql # not compatible
query II rowsort label-7307
SELECT DISTINCT 64 AS col1, - 76 * - + 80 * - 85 * - COUNT ( * )
----
64
516800

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

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

query I rowsort
SELECT ALL + 83 + + - 35 AS col2
----
48

query I rowsort
SELECT 39 - 24 AS col1
----
15

query I rowsort
SELECT ALL 12 * - 63
----
-756

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7312
SELECT 39 + + CAST( NULL AS DECIMAL ) * - 83 * 45 * + + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT 39 + + CAST ( NULL AS REAL ) * - 83 * 45 * + + 29 AS col0
----
NULL

query I rowsort
SELECT 74 * - 72
----
-5328

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT 26, + ( 82 ) * + MIN( DISTINCT + 35 ) AS col1
----
26
2870

skipif mysql # not compatible
query II rowsort label-7314
SELECT 26, + ( 82 ) * + MIN ( DISTINCT + 35 ) AS col1
----
26
2870

query I rowsort
SELECT 48 + + + 48 + - 60 * - 74 AS col2
----
4536

query I rowsort
SELECT ALL + 48 * + + 51
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL - MIN( ( + - 18 ) ) + + - 93
----
-75

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL - MIN ( ( + - 18 ) ) + + - 93
----
-75

query I rowsort
SELECT 45 + + + 13 + - 21 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + 65 * 15 + 60 * MIN( - 50 )
----
-2025

skipif mysql # not compatible
query I rowsort label-7319
SELECT + 65 * 15 + 60 * MIN ( - 50 )
----
-2025

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

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

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

query I rowsort
SELECT 14 * + + 77
----
1078

query I rowsort
SELECT ALL - 50 * - - 7 * 43
----
-15050

query I rowsort
SELECT - 48 * - + 38 * - 50 + + 24 AS col2
----
-91176

query II rowsort
SELECT ALL - 34 AS col2, 85
----
-34
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT - - 9 * - - 27 + + ( - + COUNT( * ) ) * 71 + 8 + + 31 AS col2
----
211

skipif mysql # not compatible
query I rowsort label-7326
SELECT - - 9 * - - 27 + + ( - + COUNT ( * ) ) * 71 + 8 + + 31 AS col2
----
211

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT 93 DIV 43 * + - 75 * 89 - + - 79 AS col0
----
-13271

skipif mysql # not compatible
query I rowsort label-7327
SELECT 93 / 43 * + - 75 * 89 - + - 79 AS col0
----
-13271

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

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

query II rowsort
SELECT ALL - 11 AS col2, 74 * + 40 AS col1
----
-11
2960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7330
SELECT + 51 + + - CAST( + SUM( ALL - - 14 ) AS SIGNED ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7330
SELECT + 51 + + - CAST ( + SUM ( ALL - - 14 ) AS INTEGER ) AS col0
----
37

query I rowsort
SELECT ALL + 98 * - 21 AS col2
----
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT CASE 53 WHEN + 42 * - 20 + + 6 THEN - + SUM( - 90 ) END + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT CASE 53 WHEN + 42 * - 20 + + 6 THEN - + SUM ( - 90 ) END + + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT COUNT( + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7333
SELECT COUNT ( + 29 ) AS col1
----
1

query I rowsort
SELECT 87 * + + 81 + + 24 + - + 71
----
7000

query I rowsort
SELECT 14 * - + 82 + - 48
----
-1196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT 40 + 83 * 97 + CAST( NULL AS SIGNED ) + - 50 + + - 98 * - 13 * 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT 40 + 83 * 97 + CAST ( NULL AS INTEGER ) + - 50 + + - 98 * - 13 * 93 AS col1
----
NULL

query I rowsort
SELECT 43 * + ( + 39 ) AS col0
----
1677

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

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

query I rowsort
SELECT DISTINCT 84 + - 47 * + 72 AS col2
----
-3300

query I rowsort
SELECT 39 + 42 - 30 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT DISTINCT 48 + + 15 * COUNT( * ) + + 0 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT 48 + + 15 * COUNT ( * ) + + 0 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL MAX( + + 97 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL MAX ( + + 97 ) col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT DISTINCT ( + CAST( + 61 AS SIGNED ) ) + + + 21 * - 10 * 53
----
-11069

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT ( + CAST ( + 61 AS INTEGER ) ) + + + 21 * - 10 * 53
----
-11069

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT ALL 83 + - - COUNT( * ) * 70 + - 54 * 35 - COUNT( * ) AS col2
----
-1738

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL 83 + - - COUNT ( * ) * 70 + - 54 * 35 - COUNT ( * ) AS col2
----
-1738

query I rowsort
SELECT + 41 * + 53 AS col0
----
2173

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT DISTINCT - 7 + COALESCE ( + - NULLIF ( - + 3, - COALESCE ( 2, 91 / - - COALESCE ( - 75, - COUNT( * ) / + - 5 ), + 6 + 43 ) * - COUNT( * ) / 1 ), - 29, + + ( 34 ) ) * + 99 * 99 AS col0
----
29396

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - 7 + COALESCE ( + - NULLIF ( - + 3, - COALESCE ( 2, 91 / - - COALESCE ( - 75, - COUNT ( * ) / + - 5 ), + 6 + 43 ) * - COUNT ( * ) / 1 ), - 29, + + ( 34 ) ) * + 99 * 99 AS col0
----
29396

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT DISTINCT MAX( DISTINCT - 16 ) * ( - - 39 ) * + 99
----
-61776

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT MAX ( DISTINCT - 16 ) * ( - - 39 ) * + 99
----
-61776

query I rowsort
SELECT - 96 * + 39 * + 69 col0
----
-258336

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

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL + - COUNT ( * ) - - - ( - - 27 ) * + COUNT ( * ) AS col1
----
-28

query I rowsort
SELECT - - ( + 35 ) - - 78 * + + 31 AS col1
----
2453

query I rowsort
SELECT - - 59 * - 91 * 62 * - - 38 AS col0
----
-12649364

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT + NULLIF ( COUNT( * ), - 9 / - 12 * + - 46 * - 48 * + - 21 ) + - 69 * 78
----
-5381

skipif mysql # not compatible
query I rowsort label-7352
SELECT + NULLIF ( COUNT ( * ), - 9 / - 12 * + - 46 * - 48 * + - 21 ) + - 69 * 78
----
-5381

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT DISTINCT - 10 * CASE + 86 WHEN + 0 + 82 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - 10 * CASE + 86 WHEN + 0 + 82 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - + ( + 10 ) * - 40 AS col2
----
400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7355
SELECT ALL + COALESCE ( + 69, COUNT( * ) * + CASE + 98 WHEN + + 22 THEN CAST( NULL AS SIGNED ) * - 5 - 3 ELSE 47 END )
----
69

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL + COALESCE ( + 69, COUNT ( * ) * + CASE + 98 WHEN + + 22 THEN CAST ( NULL AS INTEGER ) * - 5 - 3 ELSE 47 END )
----
69

query I rowsort
SELECT - + ( - 49 ) * 92 AS col2
----
4508

query I rowsort
SELECT ALL + 83 * + - 36 + + + 22 + - 85
----
-3051

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT ALL - 7 * - 30 * + 20 * + 42 + - + 28 AS col2, COUNT( * )
----
176372
1

skipif mysql # not compatible
query II rowsort label-7360
SELECT ALL - 7 * - 30 * + 20 * + 42 + - + 28 AS col2, COUNT ( * )
----
176372
1

query I rowsort
SELECT - 55 * - 71 AS col2
----
3905

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT DISTINCT + MAX( ALL - 49 ) * 1 + 39 + 2 + - CASE 89 WHEN - + 62 THEN + 52 WHEN - - 52 * 92 + - 60 THEN NULL ELSE NULL END + - COUNT( * ) * 98 + + + MIN( DISTINCT - + 2 ), 59 AS col0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-7362
SELECT DISTINCT + MAX ( ALL - 49 ) * 1 + 39 + 2 + - CASE 89 WHEN - + 62 THEN + 52 WHEN - - 52 * 92 + - 60 THEN NULL ELSE NULL END + - COUNT ( * ) * 98 + + + MIN ( DISTINCT - + 2 ), 59 AS col0
----
NULL
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7363
SELECT CASE + 2 WHEN - 81 * + - CAST( NULL AS DECIMAL ) + - SUM( ALL + 77 ) + - CASE 3 WHEN - 77 - 30 THEN 19 END + + - 13 * + 29 - + CAST( NULL AS DECIMAL ) * COUNT( ALL + 11 ) THEN + 89 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT CASE + 2 WHEN - 81 * + - CAST ( NULL AS REAL ) + - SUM ( ALL + 77 ) + - CASE 3 WHEN - 77 - 30 THEN 19 END + + - 13 * + 29 - + CAST ( NULL AS REAL ) * COUNT ( ALL + 11 ) THEN + 89 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT ALL - 29 * + MAX( - 24 ) + - CAST( NULL AS SIGNED ) - + + CASE CASE - 38 WHEN 52 THEN + CAST( NULL AS SIGNED ) ELSE - 52 * + + NULLIF ( - 96, 35 ) END WHEN - 13 THEN + + CASE - 63 WHEN + 63 THEN + - 17 WHEN 15 * - - 40 THEN 24 + + + CAST( NULL AS SIGNED ) ELSE + - 1 + + 1 * + 92 END ELSE ( 0 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL - 29 * + MAX ( - 24 ) + - CAST ( NULL AS INTEGER ) - + + CASE CASE - 38 WHEN 52 THEN + CAST ( NULL AS INTEGER ) ELSE - 52 * + + NULLIF ( - 96, 35 ) END WHEN - 13 THEN + + CASE - 63 WHEN + 63 THEN + - 17 WHEN 15 * - - 40 THEN 24 + + + CAST ( NULL AS INTEGER ) ELSE + - 1 + + 1 * + 92 END ELSE ( 0 ) END
----
NULL

query I rowsort
SELECT + 25 * + 81
----
2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7366
SELECT ALL - CAST( NULL AS SIGNED ) * + SUM( CAST( NULL AS SIGNED ) ) + 22 + + - 11 AS col0, CAST( NULL AS SIGNED ), 2 * + + 32 * - + 36 AS col0
----
NULL
NULL
-2304

skipif mysql # not compatible
query III rowsort label-7366
SELECT ALL - CAST ( NULL AS INTEGER ) * + SUM ( CAST ( NULL AS INTEGER ) ) + 22 + + - 11 AS col0, CAST ( NULL AS INTEGER ), 2 * + + 32 * - + 36 AS col0
----
NULL
NULL
-2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7367
SELECT + MIN( DISTINCT - 25 ) DIV + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7367
SELECT + MIN ( DISTINCT - 25 ) / + 82 AS col0
----
0

query II rowsort
SELECT ALL + 64 * - - 20 + 55 - - 39 + - - 95 AS col1, 54
----
1469
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT - CAST( NULL AS SIGNED ) * MIN( DISTINCT - 45 ) + - - CAST( COUNT( * ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT - CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - 45 ) + - - CAST ( COUNT ( * ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT CASE + - 16 WHEN + + 85 + + 2 THEN - 14 ELSE NULL END
----
NULL

query I rowsort
SELECT + 65 + - 3 AS col1
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7372
SELECT + CAST( NULL AS DECIMAL ) AS col0, 79 AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-7372
SELECT + CAST ( NULL AS REAL ) AS col0, 79 AS col0
----
NULL
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT ALL 35 DIV - - 11 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL 35 / - - 11 AS col0
----
3

query I rowsort
SELECT 94 * + 27 + + 56
----
2594

query I rowsort
SELECT ALL 50 * - ( 21 ) - 80 AS col2
----
-1130

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

query II rowsort
SELECT ALL 86, 42 AS col0
----
86
42

query I rowsort
SELECT ALL 93 - - 65
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7379
SELECT + 99 * - ( CASE CASE - 55 WHEN + CAST( NULL AS SIGNED ) THEN COUNT( * ) + - ( CAST( + 40 AS DECIMAL ) - 29 ) END WHEN 96 + - 33 / - CASE COUNT( * ) WHEN + MIN( DISTINCT + 77 ) / - COUNT( * ) THEN + 5 * + 58 WHEN COUNT( * ) THEN NULL ELSE - 19 END THEN 18 WHEN 74 THEN NULL END * CAST( MAX( 10 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT + 99 * - ( CASE CASE - 55 WHEN + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) + - ( CAST ( + 40 AS REAL ) - 29 ) END WHEN 96 + - 33 / - CASE COUNT ( * ) WHEN + MIN ( DISTINCT + 77 ) / - COUNT ( * ) THEN + 5 * + 58 WHEN COUNT ( * ) THEN NULL ELSE - 19 END THEN 18 WHEN 74 THEN NULL END * CAST ( MAX ( 10 ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL MAX( DISTINCT - 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL MAX ( DISTINCT - 3 ) AS col1
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT + MIN( + 21 ) + 69 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7382
SELECT + MIN ( + 21 ) + 69 AS col1
----
90

query I rowsort
SELECT - 57 * 5
----
-285

query I rowsort
SELECT ALL + 86 * 86 AS col1
----
7396

query I rowsort
SELECT + 28 + 19 AS col2
----
47

query I rowsort
SELECT - 33 - 14 col1
----
-47

query I rowsort
SELECT DISTINCT 92 * ( 25 )
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL MAX( 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL MAX ( 39 ) AS col0
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT ALL COALESCE ( - 7, + 90, + 45 * 64, CASE COUNT( * ) WHEN + 55 + + 36 THEN NULL WHEN + 12 THEN - 14 + 47 ELSE NULL END * 10 )
----
-7

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL COALESCE ( - 7, + 90, + 45 * 64, CASE COUNT ( * ) WHEN + 55 + + 36 THEN NULL WHEN + 12 THEN - 14 + 47 ELSE NULL END * 10 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7391
SELECT ALL CASE + 72 WHEN COUNT( * ) THEN + NULLIF ( 81, 8 - 57 ) / CAST( NULL AS DECIMAL ) WHEN 2 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL CASE + 72 WHEN COUNT ( * ) THEN + NULLIF ( 81, 8 - 57 ) / CAST ( NULL AS REAL ) WHEN 2 THEN NULL ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT - 91 DIV - 19 col0
----
4

skipif mysql # not compatible
query I rowsort label-7393
SELECT - 91 / - 19 col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7394
SELECT + CAST( NULL AS SIGNED ) + + MAX( + 25 ) / CAST( + COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT + CAST ( NULL AS INTEGER ) + + MAX ( + 25 ) / CAST ( + COUNT ( * ) AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7396
SELECT ALL + 12 DIV - ( + 49 * 23 ) + - 47
----
-47

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL + 12 / - ( + 49 * 23 ) + - 47
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7397
SELECT 51 DIV 72 + CAST( - 51 AS SIGNED ) * - 50
----
2550

skipif mysql # not compatible
query I rowsort label-7397
SELECT 51 / 72 + CAST ( - 51 AS INTEGER ) * - 50
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT COUNT( * ) * - SUM( 65 * 79 ) - + 53 AS col1
----
-5188

skipif mysql # not compatible
query I rowsort label-7398
SELECT COUNT ( * ) * - SUM ( 65 * 79 ) - + 53 AS col1
----
-5188

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

skipif mysql # not compatible
query I rowsort label-7399
SELECT + MIN ( 21 )
----
21

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

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

query I rowsort
SELECT - 55 + - COALESCE ( + 88, - 18 ) * 25 AS col0
----
-2255

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT - CASE 0 WHEN + ( 41 ) THEN NULLIF ( - 10, - 60 / - 66 ) WHEN 87 * - 19 - COUNT( * ) * - 31 THEN NULL END * + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7402
SELECT - CASE 0 WHEN + ( 41 ) THEN NULLIF ( - 10, - 60 / - 66 ) WHEN 87 * - 19 - COUNT ( * ) * - 31 THEN NULL END * + 7 AS col0
----
NULL

query I rowsort
SELECT + 20 + 37
----
57

query I rowsort
SELECT DISTINCT + COALESCE ( 90, + 89 ) * 2
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7405
SELECT ALL - COUNT( * ) DIV 85 + - COALESCE ( - COUNT( * ), 89 - 80, - ( 75 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL - COUNT ( * ) / 85 + - COALESCE ( - COUNT ( * ), 89 - 80, - ( 75 ) ) AS col1
----
1

query I rowsort
SELECT - 49 + + 77 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7407
SELECT DISTINCT - AVG ( ALL CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT - AVG ( ALL CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT DISTINCT - COUNT( * ) + - 42
----
-43

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT - COUNT ( * ) + - 42
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL + 52 + - COALESCE ( COUNT( * ), + 19 * 91 )
----
51

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL + 52 + - COALESCE ( COUNT ( * ), + 19 * 91 )
----
51

query I rowsort
SELECT 58 + 49 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT DISTINCT + COUNT( * ) + 94 * 86 AS col2
----
8085

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + COUNT ( * ) + 94 * 86 AS col2
----
8085

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT + COUNT( * ) * - 26 + 46 * + 82 AS col0
----
3746

skipif mysql # not compatible
query I rowsort label-7412
SELECT + COUNT ( * ) * - 26 + 46 * + 82 AS col0
----
3746

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT DISTINCT 94 DIV 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT 94 / 53 AS col1
----
1

query I rowsort
SELECT DISTINCT - CASE - ( 78 ) WHEN 91 * + 15 THEN - 47 + 45 WHEN 52 / - 47 THEN - 40 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT MAX( DISTINCT 7 ) * COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7416
SELECT MAX ( DISTINCT 7 ) * COUNT ( * ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7417
SELECT ALL + 16 DIV 7
----
2

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + 16 / 7
----
2

query I rowsort
SELECT DISTINCT + 7 * 17
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7419
SELECT COUNT( ALL 38 ) DIV 4
----
0

skipif mysql # not compatible
query I rowsort label-7419
SELECT COUNT ( ALL 38 ) / 4
----
0

query I rowsort
SELECT ( + 62 ) * - 93
----
-5766

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT - SUM( + 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7421
SELECT - SUM ( + 52 ) AS col2
----
-52

query I rowsort
SELECT + 54 * 71 col1
----
3834

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

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

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

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

query I rowsort
SELECT ALL + 71 * NULLIF ( 57, - 78 + - 8 ) AS col2
----
4047

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7426
SELECT 30 + SUM( ALL + COALESCE ( 71, + 47 + 4 ) ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT 30 + SUM ( ALL + COALESCE ( 71, + 47 + 4 ) ) * CAST ( NULL AS REAL ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT COALESCE ( + 28, 68 * COUNT( * ) + 52 ) * 6
----
168

skipif mysql # not compatible
query I rowsort label-7428
SELECT COALESCE ( + 28, 68 * COUNT ( * ) + 52 ) * 6
----
168

query I rowsort
SELECT DISTINCT - - 33 + - 47
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7430
SELECT ALL + 50 + CAST( + 34 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + 50 + CAST ( + 34 AS INTEGER )
----
84

query I rowsort
SELECT ALL - 86 + 93 * - 36 AS col1
----
-3434

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT DISTINCT ( - - 21 ) + 40 DIV - 19
----
19

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT ( - - 21 ) + 40 / - 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT DISTINCT COUNT( * ) + - + 48 + 21 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT COUNT ( * ) + - + 48 + 21 AS col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7434
SELECT ALL + 92 DIV ( 99 ) * + COUNT( + ( 7 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + 92 / ( 99 ) * + COUNT ( + ( 7 ) ) AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7436
SELECT DISTINCT - 11 DIV + - 5 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT - 11 / + - 5 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT COALESCE ( + 32, MIN( ALL 55 ) * + MIN( 99 * 71 ) ) - 42 * 43 AS col1
----
-1774

skipif mysql # not compatible
query I rowsort label-7437
SELECT COALESCE ( + 32, MIN ( ALL 55 ) * + MIN ( 99 * 71 ) ) - 42 * 43 AS col1
----
-1774

query I rowsort
SELECT 33 * - COALESCE ( 22, - 51 )
----
-726

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7440
SELECT ALL - 93 DIV - 7
----
13

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL - 93 / - 7
----
13

query I rowsort
SELECT DISTINCT + 38 - - 24 AS col0
----
62

query I rowsort
SELECT DISTINCT - 75 * 22 AS col1
----
-1650

query I rowsort
SELECT ALL 24 * + + 3 * + 84
----
6048

query I rowsort
SELECT ALL + 21 * - 13 col1
----
-273

query I rowsort
SELECT 57 * + 57
----
3249

query I rowsort
SELECT 64 + - 71 * 98
----
-6894

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT CASE - 9 WHEN + 89 + + NULLIF ( 54, 90 * - 15 ) THEN 47 * - 91 ELSE COUNT( * ) END * - 93
----
-93

skipif mysql # not compatible
query I rowsort label-7447
SELECT CASE - 9 WHEN + 89 + + NULLIF ( 54, 90 * - 15 ) THEN 47 * - 91 ELSE COUNT ( * ) END * - 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT COUNT( * ) * + 90 - 49 * - 69 col1
----
3471

skipif mysql # not compatible
query I rowsort label-7448
SELECT COUNT ( * ) * + 90 - 49 * - 69 col1
----
3471

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT COUNT( * ) + - COALESCE ( 10, + SUM( DISTINCT 72 ) ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-7449
SELECT COUNT ( * ) + - COALESCE ( 10, + SUM ( DISTINCT 72 ) ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT MIN( DISTINCT - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7450
SELECT MIN ( DISTINCT - 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7451
SELECT 75 DIV 18 * 99 + COUNT( * ) * 85 AS col0
----
481

skipif mysql # not compatible
query I rowsort label-7451
SELECT 75 / 18 * 99 + COUNT ( * ) * 85 AS col0
----
481

query I rowsort
SELECT + - 36 * 83 + - 75 + + 74 AS col0
----
-2989

query I rowsort
SELECT ALL + 97 + NULLIF ( 30, - 24 * - 9 ) col0
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - SUM( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - SUM ( 92 )
----
NULL

query I rowsort
SELECT ALL 91 + - 80 + + 29 * + 5 AS col0
----
156

query I rowsort
SELECT DISTINCT + + 69 + - 41
----
28

query I rowsort
SELECT ALL - - 6 * 84 * 4 AS col1
----
2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7458
SELECT + 74 DIV + COALESCE ( + 47, NULLIF ( - 96, - 45 ) + + SUM( DISTINCT - 95 ) * 47, ( ( 90 ) ) + 62 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7458
SELECT + 74 / + COALESCE ( + 47, NULLIF ( - 96, - 45 ) + + SUM ( DISTINCT - 95 ) * 47, ( ( 90 ) ) + 62 ) + COUNT ( * )
----
2

query I rowsort
SELECT 14 + ( + 15 ) + - 89
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT - + MIN( + 89 ) * ( 82 + + CASE ( + 55 ) WHEN 40 * 85 THEN 54 - 59 / + 26 END * - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT - + MIN ( + 89 ) * ( 82 + + CASE ( + 55 ) WHEN 40 * 85 THEN 54 - 59 / + 26 END * - 49 )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 30, 93 ) + 9 * ( + 87 ) AS col0
----
753

query I rowsort
SELECT + 32 * - - 8
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT MIN( ALL + + 75 ) + - 53 * - ( 62 )
----
3361

skipif mysql # not compatible
query I rowsort label-7463
SELECT MIN ( ALL + + 75 ) + - 53 * - ( 62 )
----
3361

query I rowsort
SELECT DISTINCT 94 + - 13 * 15
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT ALL - 90 / CASE + 65 WHEN - 85 THEN + 59 WHEN + 76 THEN 99 ELSE NULL END / 25 + CAST( NULL AS SIGNED ) / + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL - 90 / CASE + 65 WHEN - 85 THEN + 59 WHEN + 76 THEN 99 ELSE NULL END / 25 + CAST ( NULL AS INTEGER ) / + 8 AS col0
----
NULL

query I rowsort
SELECT ALL + - 51 + - 31 * + 86
----
-2717

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT - CASE + - 39 WHEN + 9 THEN 1 / COUNT( * ) END + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT - CASE + - 39 WHEN + 9 THEN 1 / COUNT ( * ) END + - 93
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + COUNT( ALL + - 86 ) + - 58 + COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7469
SELECT + COUNT ( ALL + - 86 ) + - 58 + COUNT ( * ) AS col2
----
-56

query II rowsort
SELECT 61 AS col1, 90 + - + ( 85 ) AS col1
----
61
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7471
SELECT - 95 DIV + + 57 + 4 * 76 AS col1
----
303

skipif mysql # not compatible
query I rowsort label-7471
SELECT - 95 / + + 57 + 4 * 76 AS col1
----
303

query I rowsort
SELECT + ( 63 ) * + NULLIF ( + 42, + 71 * + 9 ) - - 92
----
2738

query I rowsort
SELECT - 30 * + 32 AS col2
----
-960

query I rowsort
SELECT + 42 + ( 86 )
----
128

query II rowsort
SELECT + 8 AS col0, ( + 31 ) AS col0
----
8
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL COALESCE ( - + COUNT( ALL 83 ), - CASE ( + 22 ) WHEN 15 + 88 THEN 73 WHEN + 19 THEN 90 WHEN 45 THEN NULL END ) * + ( - COALESCE ( COUNT( * ), 89 ) * 63 ) - SUM( + 18 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL COALESCE ( - + COUNT ( ALL 83 ), - CASE ( + 22 ) WHEN 15 + 88 THEN 73 WHEN + 19 THEN 90 WHEN 45 THEN NULL END ) * + ( - COALESCE ( COUNT ( * ), 89 ) * 63 ) - SUM ( + 18 ) AS col2
----
45

query I rowsort
SELECT DISTINCT 65 * + 67 * - + ( - 83 ) AS col1
----
361465

query I rowsort
SELECT DISTINCT 83 * 21
----
1743

query I rowsort
SELECT + 95 * 99 col2
----
9405

query II rowsort
SELECT DISTINCT + 6 AS col2, 38 AS col0
----
6
38

query II rowsort
SELECT ALL + 9, - 24 col2
----
9
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT - ( + 90 ) + - MAX( 70 )
----
-160

skipif mysql # not compatible
query I rowsort label-7482
SELECT - ( + 90 ) + - MAX ( 70 )
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT + 59 * + 76 / - - 17 / ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT + 59 * + 76 / - - 17 / ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7484
SELECT - 64 + - 13 + 5 * + CASE - 8 WHEN + 4 * 96 - - 79 THEN 12 WHEN + ( + 10 ) + 61 THEN - COALESCE ( + COUNT( * ), + COUNT( * ) + 44 * ( CAST( - 15 AS DECIMAL ) ) ) * 37 + 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT - 64 + - 13 + 5 * + CASE - 8 WHEN + 4 * 96 - - 79 THEN 12 WHEN + ( + 10 ) + 61 THEN - COALESCE ( + COUNT ( * ), + COUNT ( * ) + 44 * ( CAST ( - 15 AS REAL ) ) ) * 37 + 31 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7485
SELECT ALL 70 DIV + + SUM( DISTINCT 27 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL 70 / + + SUM ( DISTINCT 27 ) AS col0
----
2

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

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

query I rowsort
SELECT ALL + NULLIF ( + 13, + 64 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT - 45 * + CASE + + AVG ( DISTINCT + 14 ) WHEN + COUNT( * ) THEN - 94 * + 58 + - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT - 45 * + CASE + + AVG ( DISTINCT + 14 ) WHEN + COUNT ( * ) THEN - 94 * + 58 + - 74 END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 68, - 26 + + 31 )
----
-68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7491
SELECT ALL - 95 * + SUM( ALL CAST( 8 AS SIGNED ) )
----
-760

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - 95 * + SUM ( ALL CAST ( 8 AS INTEGER ) )
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT DISTINCT + 37 * - - 91 * + COUNT( * ) + 67 * + 72
----
8191

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT + 37 * - - 91 * + COUNT ( * ) + 67 * + 72
----
8191

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT - COUNT( * ) * + 81 - COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-7493
SELECT - COUNT ( * ) * + 81 - COUNT ( * ) AS col1
----
-82

query I rowsort
SELECT ALL 79 * 41 + 73 + 83 * 55 AS col0
----
7877

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT DISTINCT 16 * + + MIN( + CASE + 68 WHEN - 22 THEN NULL WHEN - 50 THEN + 79 ELSE NULL END ) * 18 - 68 + - AVG ( DISTINCT - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT 16 * + + MIN ( + CASE + 68 WHEN - 22 THEN NULL WHEN - 50 THEN + 79 ELSE NULL END ) * 18 - 68 + - AVG ( DISTINCT - 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT DISTINCT - - CASE 8 WHEN - 25 THEN 22 WHEN + 22 - 61 THEN COUNT( * ) END * + 50 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT - - CASE 8 WHEN - 25 THEN 22 WHEN + 22 - 61 THEN COUNT ( * ) END * + 50 + - 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT ALL + - COALESCE ( - COUNT( * ), 34, - COUNT( DISTINCT - 34 ) * + CASE - 92 * 44 + - COALESCE ( CAST( 41 AS SIGNED ), - 99 * 82 ) WHEN 71 / 25 - - COUNT( * ) / - 82 THEN COUNT( 37 ) END ) * 45 + - 30
----
15

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL + - COALESCE ( - COUNT ( * ), 34, - COUNT ( DISTINCT - 34 ) * + CASE - 92 * 44 + - COALESCE ( CAST ( 41 AS INTEGER ), - 99 * 82 ) WHEN 71 / 25 - - COUNT ( * ) / - 82 THEN COUNT ( 37 ) END ) * 45 + - 30
----
15

query I rowsort
SELECT DISTINCT - + 4 * - 31 AS col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7499
SELECT - + 13 AS col0, CAST( NULL AS SIGNED ) * + + COALESCE ( + ( ( 96 ) ), + COUNT( * ), 49 + - 28 * 56 )
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-7499
SELECT - + 13 AS col0, CAST ( NULL AS INTEGER ) * + + COALESCE ( + ( ( 96 ) ), + COUNT ( * ), 49 + - 28 * 56 )
----
-13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT - + 80 - + 30 - + COUNT( * ) * 56
----
-166

skipif mysql # not compatible
query I rowsort label-7500
SELECT - + 80 - + 30 - + COUNT ( * ) * 56
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7501
SELECT - COALESCE ( + - 81, 9, 94 - COALESCE ( CAST( + 72 AS SIGNED ), SUM( ALL + ( 96 ) ) * 33 ) ) + + ( - 32 )
----
49

skipif mysql # not compatible
query I rowsort label-7501
SELECT - COALESCE ( + - 81, 9, 94 - COALESCE ( CAST ( + 72 AS INTEGER ), SUM ( ALL + ( 96 ) ) * 33 ) ) + + ( - 32 )
----
49

query I rowsort
SELECT - - 5 * + - 36 AS col2
----
-180

query I rowsort
SELECT + 99 * + - 52 * 19 * + 96
----
-9389952

query II rowsort
SELECT ALL 81 AS col2, 2 AS col2
----
81
2

query I rowsort
SELECT ALL - 50 + + ( - + 63 )
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7506
SELECT - MAX( DISTINCT - 52 ) * 37 / 48 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT - MAX ( DISTINCT - 52 ) * 37 / 48 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 28 * + + 14 * ( + 61 )
----
23912

query I rowsort
SELECT - + 22 + 12
----
-10

query I rowsort
SELECT DISTINCT - + 61 - - 30 AS col1
----
-31

query I rowsort
SELECT DISTINCT - NULLIF ( + 92, + 25 / + 21 ) * - 94
----
8648

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7511
SELECT + - CAST( - + 60 AS SIGNED ) DIV 51 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7511
SELECT + - CAST ( - + 60 AS INTEGER ) / 51 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7512
SELECT - 73 * + 35, 1 + + 65 + 73 * - CAST( NULL AS SIGNED ) / + ( + COUNT( * ) ) AS col2
----
-2555
NULL

skipif mysql # not compatible
query II rowsort label-7512
SELECT - 73 * + 35, 1 + + 65 + 73 * - CAST ( NULL AS INTEGER ) / + ( + COUNT ( * ) ) AS col2
----
-2555
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT ALL - CAST( - + 62 AS SIGNED ) * - 79
----
-4898

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL - CAST ( - + 62 AS INTEGER ) * - 79
----
-4898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7514
SELECT + CAST( + CASE - 58 WHEN + 13 / 87 THEN CAST( NULL AS SIGNED ) * 95 ELSE NULL END AS SIGNED ) + + MAX( 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT + CAST ( + CASE - 58 WHEN + 13 / 87 THEN CAST ( NULL AS INTEGER ) * 95 ELSE NULL END AS INTEGER ) + + MAX ( 62 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT DISTINCT 78 - - - COUNT( * ) - - - 99 + ( + 37 )
----
15

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT 78 - - - COUNT ( * ) - - - 99 + ( + 37 )
----
15

query I rowsort
SELECT - 42 * - 67 * + - 95 AS col2
----
-267330

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT ALL + MIN( 97 ) * 39
----
3783

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL + MIN ( 97 ) * 39
----
3783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7518
SELECT CAST( + MAX( DISTINCT - 90 ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-7518
SELECT CAST ( + MAX ( DISTINCT - 90 ) AS INTEGER )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7519
SELECT + CAST( + 76 AS SIGNED ), - 40 - + - 4 * - COUNT( * ) AS col2
----
76
-44

skipif mysql # not compatible
query II rowsort label-7519
SELECT + CAST ( + 76 AS INTEGER ), - 40 - + - 4 * - COUNT ( * ) AS col2
----
76
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT ALL 3 DIV 64 + + 9
----
9

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL 3 / 64 + + 9
----
9

query I rowsort
SELECT + 41 * 93 AS col1
----
3813

query I rowsort
SELECT + 53 * 71
----
3763

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

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

query I rowsort
SELECT ALL 64 * - 36
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT + ( + - COALESCE ( - 10, + MAX( + 23 ) + COUNT( * ) ) )
----
10

skipif mysql # not compatible
query I rowsort label-7525
SELECT + ( + - COALESCE ( - 10, + MAX ( + 23 ) + COUNT ( * ) ) )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7526
SELECT ALL 40 / - + CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL 46 / + ( - COUNT ( * ) ) + COUNT ( * )
----
-45

query I rowsort
SELECT ALL + 39 * 56 * 21 AS col0
----
45864

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT + + 69 - + MIN( DISTINCT + 17 )
----
52

skipif mysql # not compatible
query I rowsort label-7530
SELECT + + 69 - + MIN ( DISTINCT + 17 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7531
SELECT DISTINCT - 20 * + + 36 * + 75 + + MAX( - 7 ) DIV - ( + 80 * 29 ) + COUNT( * ) AS col2
----
-53999

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT - 20 * + + 36 * + 75 + + MAX ( - 7 ) / - ( + 80 * 29 ) + COUNT ( * ) AS col2
----
-53999

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT + 87 * - + 16 * - + COUNT( * )
----
1392

skipif mysql # not compatible
query I rowsort label-7532
SELECT + 87 * - + 16 * - + COUNT ( * )
----
1392

query I rowsort
SELECT - + ( + 9 ) * + + 12 AS col0
----
-108

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7535
SELECT + 14 + CASE - - 76 WHEN + 46 * - NULLIF ( 60 * NULLIF ( COUNT( * ) / NULLIF ( + CAST( 60 AS SIGNED ) * 7, - ( - 23 ) ), CASE - 50 WHEN + 27 THEN + 74 WHEN + ( - 82 ) * - 7 THEN NULL ELSE COALESCE ( 58, + 46 ) END ), - 71 ) THEN NULL WHEN - 54 + - SUM( - 17 ) THEN - 23 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT + 14 + CASE - - 76 WHEN + 46 * - NULLIF ( 60 * NULLIF ( COUNT ( * ) / NULLIF ( + CAST ( 60 AS INTEGER ) * 7, - ( - 23 ) ), CASE - 50 WHEN + 27 THEN + 74 WHEN + ( - 82 ) * - 7 THEN NULL ELSE COALESCE ( 58, + 46 ) END ), - 71 ) THEN NULL WHEN - 54 + - SUM ( - 17 ) THEN - 23 END col1
----
NULL

query I rowsort
SELECT ALL + - 39 * - 42
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT COUNT( ALL - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-7537
SELECT COUNT ( ALL - 32 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT ALL - + COUNT( * ) * 12 * - 40 - CAST( 78 AS SIGNED )
----
402

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - + COUNT ( * ) * 12 * - 40 - CAST ( 78 AS INTEGER )
----
402

query II rowsort
SELECT DISTINCT - + 26 * 97 AS col2, ( - - 44 ) * 94 + ( + 4 ) AS col2
----
-2522
4140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7540
SELECT ( + - 24 ) DIV - + 46 - - - COUNT( * ) - 47
----
-48

skipif mysql # not compatible
query I rowsort label-7540
SELECT ( + - 24 ) / - + 46 - - - COUNT ( * ) - 47
----
-48

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

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

query I rowsort
SELECT 58 * + 44
----
2552

query I rowsort
SELECT ALL + 62 * - - 24 AS col0
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT 74 + 77 - - + 11 * + COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-7544
SELECT 74 + 77 - - + 11 * + COUNT ( * )
----
162

query I rowsort
SELECT ALL + 71 * - 79
----
-5609

query I rowsort
SELECT 83 * + 13
----
1079

query II rowsort
SELECT 51, 82 + + + 56 AS col0
----
51
138

query I rowsort
SELECT ALL - 99 + 82
----
-17

query I rowsort
SELECT 64 + + + NULLIF ( - 39, + ( ( + ( + 17 ) ) ) + - NULLIF ( 13 - 8, 98 ) ) * - 52 AS col1
----
2092

query I rowsort
SELECT 83 + - + 34 + - 9 AS col1
----
40

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

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT + 45 + COUNT ( * ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7552
SELECT + 81 AS col1, + CASE + 26 WHEN - 56 THEN - + 1 * - 62 ELSE + 63 / - CAST( NULL AS SIGNED ) END / COUNT( * ) col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-7552
SELECT + 81 AS col1, + CASE + 26 WHEN - 56 THEN - + 1 * - 62 ELSE + 63 / - CAST ( NULL AS INTEGER ) END / COUNT ( * ) col0
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT ALL COALESCE ( + MAX( DISTINCT + 1 ), 85, + COUNT( * ) ) + + 58 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL COALESCE ( + MAX ( DISTINCT + 1 ), 85, + COUNT ( * ) ) + + 58 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + 98 * - + 68 + - COUNT( 52 ) AS col0
----
-6665

skipif mysql # not compatible
query I rowsort label-7554
SELECT + 98 * - + 68 + - COUNT ( 52 ) AS col0
----
-6665

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT ALL - COUNT( * ) col0, - NULLIF ( 5, - + 9 + 78 + 58 * - 42 ) col2
----
-1
-5

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL - COUNT ( * ) col0, - NULLIF ( 5, - + 9 + 78 + 58 * - 42 ) col2
----
-1
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7556
SELECT + CAST( - - ( + 36 ) AS SIGNED ) AS col0, + 11
----
36
11

skipif mysql # not compatible
query II rowsort label-7556
SELECT + CAST ( - - ( + 36 ) AS INTEGER ) AS col0, + 11
----
36
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT 19 + + COUNT( * ) + + + 63 * + + 60 * - COALESCE ( COALESCE ( - 74, 52, + COALESCE ( - 17, 52, - ( 46 ) ) ), COUNT( * ), + 31 ) + 30 col0
----
279770

skipif mysql # not compatible
query I rowsort label-7557
SELECT 19 + + COUNT ( * ) + + + 63 * + + 60 * - COALESCE ( COALESCE ( - 74, 52, + COALESCE ( - 17, 52, - ( 46 ) ) ), COUNT ( * ), + 31 ) + 30 col0
----
279770

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL 1 + + CASE + 43 WHEN - COUNT( ( + 77 ) ) THEN NULL WHEN COUNT( * ) * 68 THEN - 88 ELSE - 77 END + + 26 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL 1 + + CASE + 43 WHEN - COUNT ( ( + 77 ) ) THEN NULL WHEN COUNT ( * ) * 68 THEN - 88 ELSE - 77 END + + 26 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL 15 + + 56 + + 57 * MAX( DISTINCT - - 47 ) - - 18
----
2768

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL 15 + + 56 + + 57 * MAX ( DISTINCT - - 47 ) - - 18
----
2768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT + CAST( - 21 AS SIGNED ) * COUNT( * ) - + 16
----
-37

skipif mysql # not compatible
query I rowsort label-7560
SELECT + CAST ( - 21 AS INTEGER ) * COUNT ( * ) - + 16
----
-37

query I rowsort
SELECT ALL + 27 * + 40 col0
----
1080

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

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

query I rowsort
SELECT + - NULLIF ( + 68, + 6 )
----
-68

query II rowsort
SELECT DISTINCT - - 60 col2, + 81 AS col1
----
60
81

query I rowsort
SELECT ALL - NULLIF ( - 7, - 2 ) - 59 AS col1
----
-52

query I rowsort
SELECT DISTINCT - + CASE - 32 WHEN - + 62 / + 83 THEN - - 26 WHEN 22 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7567
SELECT ALL + 33 * NULLIF ( - 78, + 88 * + 29 - COALESCE ( 52, CAST( 63 AS SIGNED ), 34 * COUNT( * ) ) )
----
-2574

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL + 33 * NULLIF ( - 78, + 88 * + 29 - COALESCE ( 52, CAST ( 63 AS INTEGER ), 34 * COUNT ( * ) ) )
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT DISTINCT - SUM( DISTINCT + - 75 ) - 90 + - 63 * 32 AS col1
----
-2031

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT - SUM ( DISTINCT + - 75 ) - 90 + - 63 * 32 AS col1
----
-2031

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

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

query I rowsort
SELECT 47 - + 80 + 10 + + - 36 AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT ALL - 51 DIV 19 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - 51 / 19 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT - COUNT( + 34 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7572
SELECT - COUNT ( + 34 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT CAST( 14 AS SIGNED ) * - 76
----
-1064

skipif mysql # not compatible
query I rowsort label-7573
SELECT CAST ( 14 AS INTEGER ) * - 76
----
-1064

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7575
SELECT DISTINCT 42 AS col1, COALESCE ( - 2, + COUNT( * ), - COUNT( * ) * - 1 DIV 21 )
----
42
-2

skipif mysql # not compatible
query II rowsort label-7575
SELECT DISTINCT 42 AS col1, COALESCE ( - 2, + COUNT ( * ), - COUNT ( * ) * - 1 / 21 )
----
42
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL - COUNT( - - 5 ) * 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL - COUNT ( - - 5 ) * 1 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7577
SELECT 99, COUNT( * ) col0
----
99
1

skipif mysql # not compatible
query II rowsort label-7577
SELECT 99, COUNT ( * ) col0
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT 60 + 31 + + ( + COUNT( * ) ) + COUNT( * ) + + COALESCE ( + 20, 24 ) * 57 * 42 * 78
----
3734733

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT 60 + 31 + + ( + COUNT ( * ) ) + COUNT ( * ) + + COALESCE ( + 20, 24 ) * 57 * 42 * 78
----
3734733

query I rowsort
SELECT 77 - + 46 * + 54 AS col0
----
-2407

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT 84 + + 29 * - - COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-7580
SELECT 84 + + 29 * - - COUNT ( * )
----
113

query I rowsort
SELECT 93 * - - 20
----
1860

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

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

query I rowsort
SELECT ALL - 3 + 7 + 49
----
53

query I rowsort
SELECT 9 + - - 39 AS col1
----
48

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

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

query I rowsort
SELECT 83 * + 17 AS col2
----
1411

query I rowsort
SELECT ALL + 31 + + 97
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT + COALESCE ( - + COUNT( * ), 30 + - 48 ) + + - ( + - 46 )
----
45

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT + COALESCE ( - + COUNT ( * ), 30 + - 48 ) + + - ( + - 46 )
----
45

query II rowsort
SELECT 23 AS col2, - 67 + 83 * - 92
----
23
-7703

query I rowsort
SELECT DISTINCT + 95 * - 66 AS col1
----
-6270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7591
SELECT ALL + MAX( ALL - 23 ) * MAX( ALL + + CAST( NULL AS SIGNED ) ) + + ( 32 ) * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL + MAX ( ALL - 23 ) * MAX ( ALL + + CAST ( NULL AS INTEGER ) ) + + ( 32 ) * + 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT + 51 / SUM( ALL - 73 ) - - + CASE + + 14 WHEN - 61 * + COUNT( * ) THEN NULL WHEN + 52 THEN + 34 ELSE NULL END + - 2 / ( ( + CAST( - 19 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT + 51 / SUM ( ALL - 73 ) - - + CASE + + 14 WHEN - 61 * + COUNT ( * ) THEN NULL WHEN + 52 THEN + 34 ELSE NULL END + - 2 / ( ( + CAST ( - 19 AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT MAX( DISTINCT ( - - 58 ) ) * + + 97
----
5626

skipif mysql # not compatible
query I rowsort label-7593
SELECT MAX ( DISTINCT ( - - 58 ) ) * + + 97
----
5626

query I rowsort
SELECT DISTINCT + 56 * 29 + + 24 AS col1
----
1648

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7595
SELECT ALL - COUNT( * ), 36 DIV - 90 + - 66 AS col0
----
-1
-66

skipif mysql # not compatible
query II rowsort label-7595
SELECT ALL - COUNT ( * ), 36 / - 90 + - 66 AS col0
----
-1
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7596
SELECT ALL - 82 * + 76 + NULLIF ( - COUNT( * ), 36 * 1 / CAST( NULL AS SIGNED ) ) - + COUNT( * )
----
-6234

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL - 82 * + 76 + NULLIF ( - COUNT ( * ), 36 * 1 / CAST ( NULL AS INTEGER ) ) - + COUNT ( * )
----
-6234

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

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

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

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

query II rowsort
SELECT - 18 - - 62 AS col2, 89 AS col2
----
44
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7600
SELECT ALL + 34 AS col1, COUNT( * )
----
34
1

skipif mysql # not compatible
query II rowsort label-7600
SELECT ALL + 34 AS col1, COUNT ( * )
----
34
1

query I rowsort
SELECT ALL + COALESCE ( 80, 36 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7602
SELECT ALL + 26, - MAX( - 27 ) * - - ( + NULLIF ( - SUM( 15 ), 37 * 47 ) ) AS col0
----
26
-405

skipif mysql # not compatible
query II rowsort label-7602
SELECT ALL + 26, - MAX ( - 27 ) * - - ( + NULLIF ( - SUM ( 15 ), 37 * 47 ) ) AS col0
----
26
-405

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT ALL + 3, + COUNT( * ) AS col1
----
3
1

skipif mysql # not compatible
query II rowsort label-7604
SELECT ALL + 3, + COUNT ( * ) AS col1
----
3
1

query I rowsort
SELECT - - 16 + + 70 + 80 AS col0
----
166

query I rowsort
SELECT + - 10 - 48 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT - 21 * - 7 * COUNT( - 45 ) / CAST( NULL AS SIGNED ) * 10 + 61 + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT - 21 * - 7 * COUNT ( - 45 ) / CAST ( NULL AS INTEGER ) * 10 + 61 + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT ALL COALESCE ( + 52, ( 25 ) * - 74 + + - SUM( DISTINCT + + 15 ), - ( + 93 ) ) col0
----
52

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL COALESCE ( + 52, ( 25 ) * - 74 + + - SUM ( DISTINCT + + 15 ), - ( + 93 ) ) col0
----
52

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

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

query I rowsort
SELECT ALL 2 * - 56 col0
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7611
SELECT ALL COUNT( * ) + + COALESCE ( + 40, + 66 ) + CASE - 68 WHEN - + 82 + + COUNT( * ) THEN CAST( 66 AS DECIMAL ) WHEN - CASE - 13 WHEN 10 - + 18 * + 91 THEN NULL WHEN - 14 THEN NULL WHEN + 71 THEN NULL ELSE 63 / CAST( + ( + 15 ) AS SIGNED ) - 63 END THEN + 7 ELSE NULL END / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL COUNT ( * ) + + COALESCE ( + 40, + 66 ) + CASE - 68 WHEN - + 82 + + COUNT ( * ) THEN CAST ( 66 AS REAL ) WHEN - CASE - 13 WHEN 10 - + 18 * + 91 THEN NULL WHEN - 14 THEN NULL WHEN + 71 THEN NULL ELSE 63 / CAST ( + ( + 15 ) AS INTEGER ) - 63 END THEN + 7 ELSE NULL END / 33
----
NULL

query II rowsort
SELECT + ( - 61 ) * - 73, + 19 AS col2
----
4453
19

query I rowsort
SELECT DISTINCT 19 + + ( - 60 ) * 62
----
-3701

onlyif mysql # DIV for integer division: 
query I rowsort label-7614
SELECT ALL 95 + 71 + 44 DIV - 56
----
166

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL 95 + 71 + 44 / - 56
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL 54 + - COUNT( * ) + - 99
----
-46

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL 54 + - COUNT ( * ) + - 99
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7616
SELECT + 77 + + 37 - + - 82 DIV - CASE - 86 WHEN - 90 * ( COALESCE ( 25, 63 ) ) - CASE WHEN NOT ( + ( 84 ) ) BETWEEN - COUNT( * ) + + ( 89 - - 4 ) AND ( NULL ) THEN - 74 ELSE NULL END * 25 THEN NULL ELSE - ( + 37 ) * MIN( 38 * - 59 + + 29 ) END - + 89
----
25

skipif mysql # not compatible
query I rowsort label-7616
SELECT + 77 + + 37 - + - 82 / - CASE - 86 WHEN - 90 * ( COALESCE ( 25, 63 ) ) - CASE WHEN NOT ( + ( 84 ) ) BETWEEN - COUNT ( * ) + + ( 89 - - 4 ) AND ( NULL ) THEN - 74 ELSE NULL END * 25 THEN NULL ELSE - ( + 37 ) * MIN ( 38 * - 59 + + 29 ) END - + 89
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT ALL 41 + - + COUNT( * ) + - 47 * + 69 AS col0
----
-3203

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL 41 + - + COUNT ( * ) + - 47 * + 69 AS col0
----
-3203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7618
SELECT + ( - CASE ( - - CASE + 19 WHEN - 9 + - CAST( NULL AS SIGNED ) + 58 * 23 * 27 THEN NULL WHEN + 67 + - 96 THEN NULL WHEN 78 + + 88 / - MIN( 26 * - 86 ) THEN 51 * 43 END ) WHEN + COUNT( * ) THEN NULL WHEN 68 THEN + 44 * - 3 ELSE - SUM( 46 ) END ) - ( 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7618
SELECT + ( - CASE ( - - CASE + 19 WHEN - 9 + - CAST ( NULL AS INTEGER ) + 58 * 23 * 27 THEN NULL WHEN + 67 + - 96 THEN NULL WHEN 78 + + 88 / - MIN ( 26 * - 86 ) THEN 51 * 43 END ) WHEN + COUNT ( * ) THEN NULL WHEN 68 THEN + 44 * - 3 ELSE - SUM ( 46 ) END ) - ( 45 ) AS col0
----
1

query I rowsort
SELECT + 82 * - 99 * + 25 col2
----
-202950

query I rowsort
SELECT ALL COALESCE ( + 18, - 3 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT + 0 + - - MIN( DISTINCT - 44 ) + - 4 + - 42 * 81 AS col2
----
-3450

skipif mysql # not compatible
query I rowsort label-7621
SELECT + 0 + - - MIN ( DISTINCT - 44 ) + - 4 + - 42 * 81 AS col2
----
-3450

query I rowsort
SELECT ALL 5 + + - 31 col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT - COALESCE ( - 38, - + 97 + 51, 36 * COUNT( * ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7623
SELECT - COALESCE ( - 38, - + 97 + 51, 36 * COUNT ( * ) ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + MAX( DISTINCT + + 17 ) + + + 12
----
29

skipif mysql # not compatible
query I rowsort label-7624
SELECT + MAX ( DISTINCT + + 17 ) + + + 12
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT - COUNT( * ) - + ( - - COUNT( * ) ) + 65 - 77
----
-14

skipif mysql # not compatible
query I rowsort label-7625
SELECT - COUNT ( * ) - + ( - - COUNT ( * ) ) + 65 - 77
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT + 66 + + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-7626
SELECT + 66 + + - COUNT ( * )
----
65

query I rowsort
SELECT ALL + - 24 col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT - 94 * + 78 * - - MAX( ALL + 94 ) * + 66 + ( + - 5 ) * 85 AS col1
----
-45488153

skipif mysql # not compatible
query I rowsort label-7628
SELECT - 94 * + 78 * - - MAX ( ALL + 94 ) * + 66 + ( + - 5 ) * 85 AS col1
----
-45488153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT DISTINCT - - 19 * - CASE - CASE - COUNT( ALL - 55 ) WHEN - - CAST( CASE 15 WHEN 89 THEN NULL ELSE 18 END AS SIGNED ) + - 0 THEN + 45 * 55 END WHEN COUNT( * ) THEN + 5 + - 98 WHEN 34 + COUNT( * ) THEN CASE + 7 WHEN - 22 THEN NULL WHEN COUNT( + ( 16 ) ) THEN NULL ELSE - ( - 28 ) - + COALESCE ( + 73, 66 ) END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT - - 19 * - CASE - CASE - COUNT ( ALL - 55 ) WHEN - - CAST ( CASE 15 WHEN 89 THEN NULL ELSE 18 END AS INTEGER ) + - 0 THEN + 45 * 55 END WHEN COUNT ( * ) THEN + 5 + - 98 WHEN 34 + COUNT ( * ) THEN CASE + 7 WHEN - 22 THEN NULL WHEN COUNT ( + ( 16 ) ) THEN NULL ELSE - ( - 28 ) - + COALESCE ( + 73, 66 ) END END AS col2
----
NULL

query I rowsort
SELECT + + 11 * - 72 + - + 24 + - 7
----
-823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7631
SELECT - + 6 + - COUNT( * ) col0, CASE + - 42 WHEN - + COALESCE ( - 44, - CAST( NULL AS SIGNED ) * - 1, + 30 ) THEN 55 WHEN + AVG ( 98 ) THEN NULL ELSE NULL END * + NULLIF ( 22, CAST( ( + 65 ) AS SIGNED ) - 53 / + 11 ) - + 56 * - 3
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-7631
SELECT - + 6 + - COUNT ( * ) col0, CASE + - 42 WHEN - + COALESCE ( - 44, - CAST ( NULL AS INTEGER ) * - 1, + 30 ) THEN 55 WHEN + AVG ( 98 ) THEN NULL ELSE NULL END * + NULLIF ( 22, CAST ( ( + 65 ) AS INTEGER ) - 53 / + 11 ) - + 56 * - 3
----
-7
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7632
SELECT - 39 DIV - + NULLIF ( - 42, 60 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7632
SELECT - 39 / - + NULLIF ( - 42, 60 ) AS col2
----
0

query I rowsort
SELECT ALL - + 77 * + 59 + - 12 + - 49 AS col1
----
-4604

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7635
SELECT - 5 DIV + 82 AS col2, - 71
----
0
-71

skipif mysql # not compatible
query II rowsort label-7635
SELECT - 5 / + 82 AS col2, - 71
----
0
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL + + COUNT( * ) * 25 + - 54 - + - 6 * - 44 + 23 + + 27 * 19
----
243

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + + COUNT ( * ) * 25 + - 54 - + - 6 * - 44 + 23 + + 27 * 19
----
243

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7638
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, 86
----
NULL
86

skipif mysql # not compatible
query II rowsort label-7638
SELECT ALL + CAST ( NULL AS REAL ) AS col0, 86
----
NULL
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT ALL 75 * - 89 + 90 AS col0, SUM( ALL - + 4 ) * 76
----
-6585
-304

skipif mysql # not compatible
query II rowsort label-7639
SELECT ALL 75 * - 89 + 90 AS col0, SUM ( ALL - + 4 ) * 76
----
-6585
-304

query I rowsort
SELECT NULLIF ( - ( + 26 ), - 88 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT MIN( DISTINCT + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7641
SELECT MIN ( DISTINCT + 66 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7642
SELECT ALL 12 * - CAST( NULLIF ( + - 94, + CAST( COUNT( * ) AS SIGNED ) ) AS SIGNED ) * + CASE + 1 WHEN - 38 * - CAST( NULL AS SIGNED ) THEN NULL WHEN - 27 THEN + 97 ELSE 62 END + 1 AS col2
----
69937

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL 12 * - CAST ( NULLIF ( + - 94, + CAST ( COUNT ( * ) AS INTEGER ) ) AS INTEGER ) * + CASE + 1 WHEN - 38 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 27 THEN + 97 ELSE 62 END + 1 AS col2
----
69937

query I rowsort
SELECT - 36 - + - 45 AS col1
----
9

query I rowsort
SELECT DISTINCT 87 * 6 + - 85 * + + 29 AS col0
----
-1943

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7645
SELECT - COUNT( * ) - COUNT( * ) * 14 AS col2, 23 * - ( 0 ) DIV 31 + - - 14 * - 47 AS col2
----
-15
-658

skipif mysql # not compatible
query II rowsort label-7645
SELECT - COUNT ( * ) - COUNT ( * ) * 14 AS col2, 23 * - ( 0 ) / 31 + - - 14 * - 47 AS col2
----
-15
-658

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7648
SELECT DISTINCT - COUNT( * ) * CASE - COUNT( * ) WHEN + - CASE + NULLIF ( - 61, 56 ) WHEN - NULLIF ( - 89, COUNT( * ) + 31 * 77 ) * - 39 + - CAST( 35 + + AVG ( 99 ) * - 29 AS SIGNED ) THEN 31 ELSE + 86 + - 26 END * + COUNT( * ) THEN + 13 WHEN 67 * + CAST( 74 AS SIGNED ) THEN COUNT( * ) END + + MIN( ALL 91 - 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - COUNT ( * ) * CASE - COUNT ( * ) WHEN + - CASE + NULLIF ( - 61, 56 ) WHEN - NULLIF ( - 89, COUNT ( * ) + 31 * 77 ) * - 39 + - CAST ( 35 + + AVG ( 99 ) * - 29 AS INTEGER ) THEN 31 ELSE + 86 + - 26 END * + COUNT ( * ) THEN + 13 WHEN 67 * + CAST ( 74 AS INTEGER ) THEN COUNT ( * ) END + + MIN ( ALL 91 - 12 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 86 + - - 78 col1
----
164

query I rowsort
SELECT - ( - - 51 )
----
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT + 0 + 34 + ( + + ( + CAST( + ( + 57 ) AS SIGNED ) ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7652
SELECT + 0 + 34 + ( + + ( + CAST ( + ( + 57 ) AS INTEGER ) ) ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7653
SELECT DISTINCT COUNT( * ) - 6 + + ( + CAST( + 93 AS SIGNED ) ) * + 23 + 64 DIV 96 DIV + 6
----
2134

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT COUNT ( * ) - 6 + + ( + CAST ( + 93 AS INTEGER ) ) * + 23 + 64 / 96 / + 6
----
2134

query I rowsort
SELECT ALL 64 * 55 AS col2
----
3520

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7656
SELECT ALL COALESCE ( NULLIF ( + COALESCE ( - MIN( DISTINCT 60 ), MAX( + 24 ) ), 80 ), - 90 + COUNT( * ) ) - NULLIF ( 25, + NULLIF ( 28, + CAST( NULL AS SIGNED ) * 28 ) + 29 )
----
-85

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL COALESCE ( NULLIF ( + COALESCE ( - MIN ( DISTINCT 60 ), MAX ( + 24 ) ), 80 ), - 90 + COUNT ( * ) ) - NULLIF ( 25, + NULLIF ( 28, + CAST ( NULL AS INTEGER ) * 28 ) + 29 )
----
-85

query I rowsort
SELECT + 23 + - ( 17 ) * 22
----
-351

query I rowsort
SELECT + 28 * - 40
----
-1120

onlyif mysql # DIV for integer division: 
query II rowsort label-7659
SELECT ALL 34 DIV - 61 * 8 AS col0, 79 AS col2
----
0
79

skipif mysql # not compatible
query II rowsort label-7659
SELECT ALL 34 / - 61 * 8 AS col0, 79 AS col2
----
0
79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7661
SELECT DISTINCT SUM( ALL - CAST( + 77 AS SIGNED ) ) - - + CASE - + CAST( NULL AS SIGNED ) WHEN 21 THEN NULL WHEN 58 THEN NULL ELSE - 94 * 32 END + 64 * - 59 AS col2
----
-6861

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT SUM ( ALL - CAST ( + 77 AS INTEGER ) ) - - + CASE - + CAST ( NULL AS INTEGER ) WHEN 21 THEN NULL WHEN 58 THEN NULL ELSE - 94 * 32 END + 64 * - 59 AS col2
----
-6861

query I rowsort
SELECT + ( + 42 ) * - 12
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT SUM( - - 13 ) * + + ( - 99 ) * - 13 * - COUNT( - 86 ) + + 73 + 62 AS col1
----
-16596

skipif mysql # not compatible
query I rowsort label-7663
SELECT SUM ( - - 13 ) * + + ( - 99 ) * - 13 * - COUNT ( - 86 ) + + 73 + 62 AS col1
----
-16596

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

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

query I rowsort
SELECT - 91 * - 19 col2
----
1729

query I rowsort
SELECT ALL - - 17 * + + 99
----
1683

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

skipif mysql # not compatible
query I rowsort label-7667
SELECT SUM ( ALL - 68 )
----
-68

query I rowsort
SELECT - ( 70 ) * 23 AS col0
----
-1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT 76 / + 17 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT 76 / + 17 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7670
SELECT - 4 DIV + NULLIF ( + 98, + + MIN( DISTINCT + 53 ) ) * - + 86 - 92 - - + ( 53 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7670
SELECT - 4 / + NULLIF ( + 98, + + MIN ( DISTINCT + 53 ) ) * - + 86 - 92 - - + ( 53 ) AS col2
----
-39

query II rowsort
SELECT - 23, 7 col1
----
-23
7

query I rowsort
SELECT ALL + 80 + + 33 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT - + 66 * - - 16 * + 62 + - 88 + 50 + 46 * AVG ( + ( - 21 ) ) + + 48 * CASE + 49 * 61 WHEN + CASE COUNT( * ) WHEN NULLIF ( + 96, + NULLIF ( + COALESCE ( 89, 67 * 66, 49, ( - 17 ) * - 90 ), 34 ) * + 51 ) - - COUNT( * ) / 47 THEN NULL WHEN - 9 THEN 42 * - 89 + 61 ELSE NULL END THEN 84 / + 27 END + - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT - + 66 * - - 16 * + 62 + - 88 + 50 + 46 * AVG ( + ( - 21 ) ) + + 48 * CASE + 49 * 61 WHEN + CASE COUNT ( * ) WHEN NULLIF ( + 96, + NULLIF ( + COALESCE ( 89, 67 * 66, 49, ( - 17 ) * - 90 ), 34 ) * + 51 ) - - COUNT ( * ) / 47 THEN NULL WHEN - 9 THEN 42 * - 89 + 61 ELSE NULL END THEN 84 / + 27 END + - 57 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7674
SELECT - 56, + 2 / + CAST( NULL AS SIGNED ) col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-7674
SELECT - 56, + 2 / + CAST ( NULL AS INTEGER ) col2
----
-56
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT + CASE 67 WHEN - 82 + + 51 + - 32 THEN CAST( NULL AS SIGNED ) * + 44 - - 17 + CAST( NULL AS SIGNED ) WHEN 41 / 72 + 21 THEN - COALESCE ( COUNT( * ), 56 + - 67 ) END + + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT + CASE 67 WHEN - 82 + + 51 + - 32 THEN CAST ( NULL AS INTEGER ) * + 44 - - 17 + CAST ( NULL AS INTEGER ) WHEN 41 / 72 + 21 THEN - COALESCE ( COUNT ( * ), 56 + - 67 ) END + + 55 AS col0
----
NULL

query I rowsort
SELECT ALL - 88 + 86
----
-2

query II rowsort
SELECT + 46 AS col1, COALESCE ( + + 22, - + 14 + 87 ) - - - 49
----
46
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT ALL + 19 + + + COALESCE ( + COUNT( * ), - COUNT( * ) ) * - 4 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL + 19 + + + COALESCE ( + COUNT ( * ), - COUNT ( * ) ) * - 4 AS col2
----
15

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

skipif mysql # not compatible
query II rowsort label-7680
SELECT ALL - - 56 AS col0, - COUNT ( * )
----
56
-1

query II rowsort
SELECT ALL - 39 + + 17 + - 89, + 65 AS col0
----
-111
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT + 30 - - + SUM( + 87 ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-7682
SELECT + 30 - - + SUM ( + 87 ) AS col2
----
117

query I rowsort
SELECT ALL - 28 + + 37 AS col2
----
9

query I rowsort
SELECT ALL - 17 + 45
----
28

query I rowsort
SELECT 67 + 91
----
158

query II rowsort
SELECT 77 + - 27 col1, 84
----
50
84

query I rowsort
SELECT DISTINCT 77 * 52 * - 55
----
-220220

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT 93 * NULLIF ( + 40, - - 84 * - COUNT( * ) * 40 ) * NULLIF ( - 87, 94 + - COUNT( * ) ) - + 48 AS col0
----
-323688

skipif mysql # not compatible
query I rowsort label-7688
SELECT 93 * NULLIF ( + 40, - - 84 * - COUNT ( * ) * 40 ) * NULLIF ( - 87, 94 + - COUNT ( * ) ) - + 48 AS col0
----
-323688

query I rowsort
SELECT DISTINCT + 99 - 54 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7690
SELECT ALL CASE 93 WHEN - 56 THEN NULL WHEN - NULLIF ( + + ( 55 ), + + MAX( 45 ) ) THEN + + 21 + + CAST( NULL AS SIGNED ) * 27 END / 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL CASE 93 WHEN - 56 THEN NULL WHEN - NULLIF ( + + ( 55 ), + + MAX ( 45 ) ) THEN + + 21 + + CAST ( NULL AS INTEGER ) * 27 END / 84 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT 12 + + MIN( + 23 ) + - 67 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7691
SELECT 12 + + MIN ( + 23 ) + - 67 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT 83 * - COUNT( * ) * - 55 AS col0
----
4565

skipif mysql # not compatible
query I rowsort label-7692
SELECT 83 * - COUNT ( * ) * - 55 AS col0
----
4565

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

skipif mysql # not compatible
query I rowsort label-7693
SELECT COUNT ( * ) * - + 59 * - - 56 AS col1
----
-3304

query I rowsort
SELECT 21 + - 58
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT 98 + 12 * - + 70 * + COUNT( * )
----
-742

skipif mysql # not compatible
query I rowsort label-7695
SELECT 98 + 12 * - + 70 * + COUNT ( * )
----
-742

query I rowsort
SELECT 8 + - 93 AS col0
----
-85

query I rowsort
SELECT ALL 11 * + + NULLIF ( - - 16, 94 / - + 2 )
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT - + SUM( + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7698
SELECT - + SUM ( + 19 )
----
-19

query I rowsort
SELECT DISTINCT - - 11 * 12
----
132

query I rowsort
SELECT 42 + 50 * - 74
----
-3658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7701
SELECT - 37 + 51 - + 28 - - 83 + + + 70 - - 44 DIV 28 * - - 76 + - + 54 * COUNT( * )
----
161

skipif mysql # not compatible
query I rowsort label-7701
SELECT - 37 + 51 - + 28 - - 83 + + + 70 - - 44 / 28 * - - 76 + - + 54 * COUNT ( * )
----
161

query I rowsort
SELECT - 12 * + ( 88 ) AS col1
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL COUNT( DISTINCT + 4 ) + + 57 + 36 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL COUNT ( DISTINCT + 4 ) + + 57 + 36 AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7704
SELECT 22 + - ( CAST( - + 3 AS SIGNED ) ) * - + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7704
SELECT 22 + - ( CAST ( - + 3 AS INTEGER ) ) * - + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT + COUNT( * ) - - NULLIF ( - COUNT( * ), - - 56 ) * - 87 + + + 38 * - 69 AS col2
----
-2534

skipif mysql # not compatible
query I rowsort label-7705
SELECT + COUNT ( * ) - - NULLIF ( - COUNT ( * ), - - 56 ) * - 87 + + + 38 * - 69 AS col2
----
-2534

onlyif mysql # DIV for integer division: 
query I rowsort label-7706
SELECT + 78 DIV 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7706
SELECT + 78 / 28 AS col0
----
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT ALL - 43 + + 89 DIV + 84
----
-42

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL - 43 + + 89 / + 84
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT 37 * - 4 + + CAST( ( - 79 ) AS SIGNED ) + + + CAST( NULL AS SIGNED ) + - 31 + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT 37 * - 4 + + CAST ( ( - 79 ) AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + - 31 + - 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7710
SELECT + 2 DIV 85 + - 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7710
SELECT + 2 / 85 + - 35 AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7711
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - CAST( NULL AS SIGNED ) * 27 AS col2, 4 * 41
----
NULL
164

skipif mysql # not compatible
query II rowsort label-7711
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) * 27 AS col2, 4 * 41
----
NULL
164

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

query I rowsort
SELECT ALL 31 + + - 11 col0
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT 36 * CASE COUNT( * ) WHEN - + 32 * - 57 THEN 12 WHEN - 16 THEN NULL WHEN NULLIF ( - + 3, - 68 ) * 26 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT 36 * CASE COUNT ( * ) WHEN - + 32 * - 57 THEN 12 WHEN - 16 THEN NULL WHEN NULLIF ( - + 3, - 68 ) * 26 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL 95 - - COALESCE ( + - 20, MAX( ALL + + 57 ) ) * + + 47 * + 8 * - 13
----
97855

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL 95 - - COALESCE ( + - 20, MAX ( ALL + + 57 ) ) * + + 47 * + 8 * - 13
----
97855

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT DISTINCT - SUM( DISTINCT 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT - SUM ( DISTINCT 17 ) AS col1
----
-17

query I rowsort
SELECT 2 * - - 84 AS col1
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-7719
SELECT 9 + - ( - COUNT( * ) ) AS col0, + 23 col0
----
10
23

skipif mysql # not compatible
query II rowsort label-7719
SELECT 9 + - ( - COUNT ( * ) ) AS col0, + 23 col0
----
10
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7720
SELECT 78, - 75 * - COUNT( * ) * + 40 AS col2
----
78
3000

skipif mysql # not compatible
query II rowsort label-7720
SELECT 78, - 75 * - COUNT ( * ) * + 40 AS col2
----
78
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT 77 * + COUNT( * ) * - + 4 + + MIN( - - 85 )
----
-223

skipif mysql # not compatible
query I rowsort label-7721
SELECT 77 * + COUNT ( * ) * - + 4 + + MIN ( - - 85 )
----
-223

query I rowsort
SELECT 28 * - - 93
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT 86 * COALESCE ( - COUNT( - 94 ), - + 89, - - 11 ) - - 57
----
-29

skipif mysql # not compatible
query I rowsort label-7723
SELECT 86 * COALESCE ( - COUNT ( - 94 ), - + 89, - - 11 ) - - 57
----
-29

query I rowsort
SELECT - 47 + - CASE - 85 WHEN 36 THEN NULL WHEN - 78 THEN - 5 END * + 99 + + 85 + + - 84 * + + CASE - 3 WHEN 60 THEN + 60 + 6 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL COUNT( 80 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL COUNT ( 80 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT ALL COUNT( * ) * - 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL COUNT ( * ) * - 3 AS col0
----
-3

query I rowsort
SELECT - 93 * + COALESCE ( + 14, 7 )
----
-1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7728
SELECT ALL COALESCE ( - ( + 65 ), - MAX( - - 82 ), + - 43 * + CAST( NULL AS SIGNED ) DIV COALESCE ( 57, - CASE 34 WHEN COALESCE ( + 3, - 57 - + 97 ) THEN + 66 ELSE NULL END DIV COUNT( * ) + - COUNT( * ) ), + COUNT( * ) * CAST( NULL AS SIGNED ) )
----
-65

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL COALESCE ( - ( + 65 ), - MAX ( - - 82 ), + - 43 * + CAST ( NULL AS INTEGER ) / COALESCE ( 57, - CASE 34 WHEN COALESCE ( + 3, - 57 - + 97 ) THEN + 66 ELSE NULL END / COUNT ( * ) + - COUNT ( * ) ), + COUNT ( * ) * CAST ( NULL AS INTEGER ) )
----
-65

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

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

query I rowsort
SELECT - 69 * - 36
----
2484

query I rowsort
SELECT - 73 - + + 61
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7732
SELECT - 13 * + 83 DIV - COUNT( * )
----
1079

skipif mysql # not compatible
query I rowsort label-7732
SELECT - 13 * + 83 / - COUNT ( * )
----
1079

query I rowsort
SELECT - 82 * - + 28 AS col0
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL - 88 + - SUM( DISTINCT - - 54 ) AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL - 88 + - SUM ( DISTINCT - - 54 ) AS col0
----
-142

query I rowsort
SELECT ALL + - 46 + 95 AS col1
----
49

query II rowsort
SELECT + - 2 + - 43 + + 9 AS col1, 71 AS col2
----
-36
71

query I rowsort
SELECT - NULLIF ( + - 31, - + 38 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT - + 32 * + 58 * - CASE NULLIF ( - AVG ( - 80 ), + MAX( + 17 ) ) WHEN - COUNT( * ) * - CAST( + 1 AS SIGNED ) - + ( - 23 ) THEN NULL ELSE - NULLIF ( + 60, - 45 / + MIN( DISTINCT 94 ) ) * 88 END AS col0
----
-9799680

skipif mysql # not compatible
query I rowsort label-7738
SELECT - + 32 * + 58 * - CASE NULLIF ( - AVG ( - 80 ), + MAX ( + 17 ) ) WHEN - COUNT ( * ) * - CAST ( + 1 AS INTEGER ) - + ( - 23 ) THEN NULL ELSE - NULLIF ( + 60, - 45 / + MIN ( DISTINCT 94 ) ) * 88 END AS col0
----
-9799680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT - COALESCE ( - COALESCE ( - + 68, + ( - 18 ) ), + COALESCE ( - + 73, + CASE + 75 WHEN 61 * ( - 27 ) THEN NULL WHEN MAX( CAST( NULL AS SIGNED ) ) THEN 8 ELSE NULL END * - CASE 73 * - COUNT( * ) WHEN + 50 * - 95 THEN 36 WHEN + 63 / + 2 THEN + ( + 98 ) * - ( CAST( NULL AS SIGNED ) * - COALESCE ( 72 * + 64, 7 ) + 85 ) ELSE NULL END ) + 16 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-7739
SELECT - COALESCE ( - COALESCE ( - + 68, + ( - 18 ) ), + COALESCE ( - + 73, + CASE + 75 WHEN 61 * ( - 27 ) THEN NULL WHEN MAX ( CAST ( NULL AS INTEGER ) ) THEN 8 ELSE NULL END * - CASE 73 * - COUNT ( * ) WHEN + 50 * - 95 THEN 36 WHEN + 63 / + 2 THEN + ( + 98 ) * - ( CAST ( NULL AS INTEGER ) * - COALESCE ( 72 * + 64, 7 ) + 85 ) ELSE NULL END ) + 16 ) AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7740
SELECT ALL 15 + COUNT( * ) - 0 + + CASE + 98 WHEN + COUNT( ALL + CAST( NULL AS SIGNED ) ) THEN 72 WHEN + + 14 THEN - 27 / + ( 62 + + COALESCE ( - 41, + 54 ) ) END * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL 15 + COUNT ( * ) - 0 + + CASE + 98 WHEN + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) THEN 72 WHEN + + 14 THEN - 27 / + ( 62 + + COALESCE ( - 41, + 54 ) ) END * 21 AS col1
----
NULL

query I rowsort
SELECT ALL + 61 * + 25
----
1525

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT + - MAX( ALL - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-7742
SELECT + - MAX ( ALL - 60 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7743
SELECT DISTINCT + + ( - - COALESCE ( + 96, - 20, 10 DIV - COUNT( ALL + 26 ) * + 78 ) )
----
96

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT + + ( - - COALESCE ( + 96, - 20, 10 / - COUNT ( ALL + 26 ) * + 78 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL + 0 * + ( COUNT( * ) ) + - 18 * - 16
----
288

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL + 0 * + ( COUNT ( * ) ) + - 18 * - 16
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT - - 6 - - + 82 + - 67 + - + COUNT( * ) * - 71 * + 6 AS col1
----
447

skipif mysql # not compatible
query I rowsort label-7745
SELECT - - 6 - - + 82 + - 67 + - + COUNT ( * ) * - 71 * + 6 AS col1
----
447

query III rowsort
SELECT ALL + + 95, - 26 + 24 AS col0, 20 col1
----
95
-2
20

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT + 81 * - 7 * + CAST( NULL AS SIGNED ) + + 17 * 19 - 87 / 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT + 81 * - 7 * + CAST ( NULL AS INTEGER ) + + 17 * 19 - 87 / 98 AS col1
----
NULL

query I rowsort
SELECT ALL ( - 76 ) * 89 + 54
----
-6710

query I rowsort
SELECT + 83 - 68
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7751
SELECT ALL COUNT( - 30 ) DIV - 44 * - - 72 DIV - ( + + COUNT( * ) ) * 18, 25 AS col0
----
0
25

skipif mysql # not compatible
query II rowsort label-7751
SELECT ALL COUNT ( - 30 ) / - 44 * - - 72 / - ( + + COUNT ( * ) ) * 18, 25 AS col0
----
0
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT + COALESCE ( ( - - NULLIF ( - + 49, + - 95 ) ), + 1 + 98 ) * - 4 * + 64 + + MIN( + 30 ) + + 78 * + CASE + 32 WHEN 55 THEN 60 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT + COALESCE ( ( - - NULLIF ( - + 49, + - 95 ) ), + 1 + 98 ) * - 4 * + 64 + + MIN ( + 30 ) + + 78 * + CASE + 32 WHEN 55 THEN 60 END col2
----
NULL

query I rowsort
SELECT ALL 42 * + + 69
----
2898

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7754
SELECT + 53 DIV + + 29, + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-7754
SELECT + 53 / + + 29, + COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7755
SELECT ALL COUNT( * ) * + 41 AS col0, 37 AS col2
----
41
37

skipif mysql # not compatible
query II rowsort label-7755
SELECT ALL COUNT ( * ) * + 41 AS col0, 37 AS col2
----
41
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7756
SELECT ALL + 73, 77 DIV COUNT( * ) AS col0
----
73
77

skipif mysql # not compatible
query II rowsort label-7756
SELECT ALL + 73, 77 / COUNT ( * ) AS col0
----
73
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT DISTINCT COUNT( * ) * + 71 * 90
----
6390

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT COUNT ( * ) * + 71 * 90
----
6390

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL - 78 * + - SUM( + 53 ) + - 80
----
4054

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL - 78 * + - SUM ( + 53 ) + - 80
----
4054

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL NULLIF ( - 57, COUNT( DISTINCT 48 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL NULLIF ( - 57, COUNT ( DISTINCT 48 ) )
----
-57

query II rowsort
SELECT + 70 + 30, 46 + 95 - + - 42 + - 45 AS col2
----
100
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT DISTINCT - 34 * CASE + 97 WHEN + 90 THEN - ( - + ( - + ( - ( + COUNT( * ) ) ) ) ) ELSE NULL END + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT - 34 * CASE + 97 WHEN + 90 THEN - ( - + ( - + ( - ( + COUNT ( * ) ) ) ) ) ELSE NULL END + - 10
----
NULL

query I rowsort
SELECT + + 78 * + 75 * 92 + + + 92 * - - 79 AS col1
----
545468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT - CASE + + MIN( DISTINCT + 57 ) WHEN - 60 THEN - + COUNT( * ) WHEN + + SUM( ALL - + 89 ) THEN NULL WHEN - 40 * + CASE - 73 WHEN + 79 THEN 97 + + CAST( 96 AS SIGNED ) / + AVG ( ALL - 91 * + 26 ) END + 65 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT - CASE + + MIN ( DISTINCT + 57 ) WHEN - 60 THEN - + COUNT ( * ) WHEN + + SUM ( ALL - + 89 ) THEN NULL WHEN - 40 * + CASE - 73 WHEN + 79 THEN 97 + + CAST ( 96 AS INTEGER ) / + AVG ( ALL - 91 * + 26 ) END + 65 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7764
SELECT - COUNT( * ) + - 21 AS col1, - 53 * 12
----
-22
-636

skipif mysql # not compatible
query II rowsort label-7764
SELECT - COUNT ( * ) + - 21 AS col1, - 53 * 12
----
-22
-636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL + - ( - CAST( - - MIN( + - 53 ) AS SIGNED ) ) + + - 63 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + - ( - CAST ( - - MIN ( + - 53 ) AS INTEGER ) ) + + - 63 AS col2
----
-116

query I rowsort
SELECT ALL - 1 + + COALESCE ( + 26, + 10 * - - 2 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - - 95 + + CASE - + COUNT( DISTINCT + - 34 ) WHEN - - CASE - 86 WHEN - 69 THEN + 25 END + - 30 * 78 - - 73 THEN NULL WHEN + 41 + COUNT( * ) THEN 80 WHEN + 37 * + 39 THEN NULL ELSE NULL END - ( 42 - + 93 / 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT - - 95 + + CASE - + COUNT ( DISTINCT + - 34 ) WHEN - - CASE - 86 WHEN - 69 THEN + 25 END + - 30 * 78 - - 73 THEN NULL WHEN + 41 + COUNT ( * ) THEN 80 WHEN + 37 * + 39 THEN NULL ELSE NULL END - ( 42 - + 93 / 31 ) AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7770
SELECT - - 46 + 45 + - 86 * + COUNT( * ) + - 78 DIV COUNT( * ) + + + COUNT( * ) + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-7770
SELECT - - 46 + 45 + - 86 * + COUNT ( * ) + - 78 / COUNT ( * ) + + + COUNT ( * ) + COUNT ( * )
----
-71

query I rowsort
SELECT ALL - + 26 - 73 * - + 12 + - + 13 * - 64
----
1682

query I rowsort
SELECT - + 35 + - - 62 AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7773
SELECT - COUNT( * ) * + SUM( DISTINCT + 12 ) DIV 80 + + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-7773
SELECT - COUNT ( * ) * + SUM ( DISTINCT + 12 ) / 80 + + - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT - CASE + COUNT( * ) WHEN + 27 THEN 38 * + ( - - 50 ) / + 4 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT - CASE + COUNT ( * ) WHEN + 27 THEN 38 * + ( - - 50 ) / + 4 + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT - 49 + + CASE - 99 WHEN - 16 THEN NULL WHEN 45 + COUNT( DISTINCT 25 ) * + ( 92 ) THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT - 49 + + CASE - 99 WHEN - 16 THEN NULL WHEN 45 + COUNT ( DISTINCT 25 ) * + ( 92 ) THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT - COUNT( * ) - - MAX( - 95 ) - ( + + 45 )
----
-141

skipif mysql # not compatible
query I rowsort label-7776
SELECT - COUNT ( * ) - - MAX ( - 95 ) - ( + + 45 )
----
-141

query II rowsort
SELECT ALL 43, - 65 + + - 99 AS col2
----
43
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - 63 + COUNT( * ) * - 79 - - 42 + + + 2 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7778
SELECT - 63 + COUNT ( * ) * - 79 - - 42 + + + 2 AS col2
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7779
SELECT ALL + - COUNT( * ) AS col2, + SUM( DISTINCT - 64 ) + - 23 + 39 DIV + 95 * - - SUM( - 63 )
----
-1
-87

skipif mysql # not compatible
query II rowsort label-7779
SELECT ALL + - COUNT ( * ) AS col2, + SUM ( DISTINCT - 64 ) + - 23 + 39 / + 95 * - - SUM ( - 63 )
----
-1
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL + 85 * MIN( DISTINCT 71 ) AS col0
----
6035

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + 85 * MIN ( DISTINCT 71 ) AS col0
----
6035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7781
SELECT - CAST( NULL AS SIGNED ) * + - COALESCE ( COUNT( * ), + + 30, - + 45 * - - 22 + + 35 + - - COUNT( * ), + 12 * + - 88 + + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT - CAST ( NULL AS INTEGER ) * + - COALESCE ( COUNT ( * ), + + 30, - + 45 * - - 22 + + 35 + - - COUNT ( * ), + 12 * + - 88 + + 96 )
----
NULL

query II rowsort
SELECT ALL + 13 * + 3 AS col2, 95 * + + 78
----
39
7410

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT 86 * - + 13 + - NULLIF ( 35, + 34 / - COUNT( * ) * - + COALESCE ( + 90, 0 + - NULLIF ( - + SUM( + 35 ), 29 ) ) * - 42 )
----
-1153

skipif mysql # not compatible
query I rowsort label-7783
SELECT 86 * - + 13 + - NULLIF ( 35, + 34 / - COUNT ( * ) * - + COALESCE ( + 90, 0 + - NULLIF ( - + SUM ( + 35 ), 29 ) ) * - 42 )
----
-1153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7784
SELECT CAST( 19 AS SIGNED ) AS col0, 78
----
19
78

skipif mysql # not compatible
query II rowsort label-7784
SELECT CAST ( 19 AS INTEGER ) AS col0, 78
----
19
78

query I rowsort
SELECT + 12 * + + 29 * + 47
----
16356

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7786
SELECT 86 * 72 * - 14 * + 51 * + 7 + CAST( NULL AS DECIMAL ) + + 23 - ( 73 ) + - + 9 - + 39 * + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7786
SELECT 86 * 72 * - 14 * + 51 * + 7 + CAST ( NULL AS REAL ) + + 23 - ( 73 ) + - + 9 - + 39 * + - 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT 8 * + COUNT( * ) AS col1, 12
----
8
12

skipif mysql # not compatible
query II rowsort label-7787
SELECT 8 * + COUNT ( * ) AS col1, 12
----
8
12

query I rowsort
SELECT ALL - NULLIF ( - ( CASE 19 WHEN - 43 THEN + - 43 WHEN 60 THEN + 98 + 82 + 64 END ), + + 20 + - 47 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT DISTINCT 70 DIV + 76 * 26 * + 54
----
0

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT 70 / + 76 * 26 * + 54
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL 64 + + COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT 23 * + COUNT( ( - - 76 ) ) * COUNT( * ) * - 23
----
-529

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT 23 * + COUNT ( ( - - 76 ) ) * COUNT ( * ) * - 23
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL 82 * + - MAX( DISTINCT 65 )
----
-5330

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL 82 * + - MAX ( DISTINCT 65 )
----
-5330

query I rowsort
SELECT COALESCE ( 13, 12 ) + + 54 + + 94
----
161

query II rowsort
SELECT DISTINCT ( - 37 ) + + 25 AS col0, + 14
----
-12
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT ALL CAST( NULL AS SIGNED ) + + + 51 * + NULLIF ( + - 79, + 14 ) * + - ( AVG ( ALL 32 ) ) - - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL CAST ( NULL AS INTEGER ) + + + 51 * + NULLIF ( + - 79, + 14 ) * + - ( AVG ( ALL 32 ) ) - - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7797
SELECT 28 * 99 + + MIN( + + 4 ) * - 15 DIV - CASE - 1 WHEN + 50 THEN - 62 ELSE + COUNT( * ) END AS col0
----
2832

skipif mysql # not compatible
query I rowsort label-7797
SELECT 28 * 99 + + MIN ( + + 4 ) * - 15 / - CASE - 1 WHEN + 50 THEN - 62 ELSE + COUNT ( * ) END AS col0
----
2832

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT 7 * - 56 + + ( + 7 ) + - - 98 - - CASE - 15 WHEN + 82 - + 35 + - 47 THEN NULL WHEN - 71 THEN - 81 END - MIN( ALL 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT 7 * - 56 + + ( + 7 ) + - - 98 - - CASE - 15 WHEN + 82 - + 35 + - 47 THEN NULL WHEN - 71 THEN - 81 END - MIN ( ALL 44 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT + 38 + - 83 - - 97 + + COUNT( * ) * + 20 col1
----
72

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT + 38 + - 83 - - 97 + + COUNT ( * ) * + 20 col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7800
SELECT ALL MAX( DISTINCT - + 25 ) + - + 28 + + 83 DIV 14 * - 98 * 75
----
-36803

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL MAX ( DISTINCT - + 25 ) + - + 28 + + 83 / 14 * - 98 * 75
----
-36803

onlyif mysql # aggregate syntax: 
query II rowsort label-7801
SELECT + 58 * - 22 * - 86, - 22 * + 22 + - COALESCE ( + 13, + MAX( ALL + 12 ) ) col0
----
109736
-497

skipif mysql # not compatible
query II rowsort label-7801
SELECT + 58 * - 22 * - 86, - 22 * + 22 + - COALESCE ( + 13, + MAX ( ALL + 12 ) ) col0
----
109736
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL NULLIF ( + + SUM( DISTINCT + 6 ), 50 ) - + + ( - + 84 )
----
90

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL NULLIF ( + + SUM ( DISTINCT + 6 ), 50 ) - + + ( - + 84 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT - 11 - - - SUM( + 42 ) + - 54 * ( 55 ) AS col1
----
-3023

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT - 11 - - - SUM ( + 42 ) + - 54 * ( 55 ) AS col1
----
-3023

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7804
SELECT + COUNT( * ) * CASE + 56 WHEN COUNT( * ) * + + 87 THEN - CAST( + - 32 AS DECIMAL ) + - ( - + 30 ) + 37 * COUNT( * ) + + - 48 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT + COUNT ( * ) * CASE + 56 WHEN COUNT ( * ) * + + 87 THEN - CAST ( + - 32 AS REAL ) + - ( - + 30 ) + 37 * COUNT ( * ) + + - 48 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 35 * - 14
----
-490

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7806
SELECT DISTINCT + 78 * - COUNT( + CAST( NULL AS DECIMAL ) ) + - + 62 - + 83 * - 18 AS col2
----
1432

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT + 78 * - COUNT ( + CAST ( NULL AS REAL ) ) + - + 62 - + 83 * - 18 AS col2
----
1432

query I rowsort
SELECT DISTINCT 21 * - + 81
----
-1701

onlyif mysql # aggregate syntax: 
query II rowsort label-7808
SELECT COUNT( * ) * - + 50, + 4 AS col2
----
-50
4

skipif mysql # not compatible
query II rowsort label-7808
SELECT COUNT ( * ) * - + 50, + 4 AS col2
----
-50
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT DISTINCT - COUNT( * ) * + ( - 8 ) * + + 7 + + 47 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT - COUNT ( * ) * + ( - 8 ) * + + 7 + + 47 AS col2
----
103

query II rowsort
SELECT 8 AS col1, 70
----
8
70

query II rowsort
SELECT DISTINCT 86 col0, 64
----
86
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7812
SELECT COUNT( * ) DIV - + 68 + 29 + + - 28 * - 84 + + 44
----
2425

skipif mysql # not compatible
query I rowsort label-7812
SELECT COUNT ( * ) / - + 68 + 29 + + - 28 * - 84 + + 44
----
2425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT 12 * + 34 * - + 59 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT 12 * + 34 * - + 59 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7814
SELECT 89 AS col1, 34 DIV 52 AS col2
----
89
0

skipif mysql # not compatible
query II rowsort label-7814
SELECT 89 AS col1, 34 / 52 AS col2
----
89
0

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

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

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL - MAX ( - 64 )
----
64

query I rowsort
SELECT 37 - - - 97 * - 74 col2
----
7215

query I rowsort
SELECT 65 * - - ( + 9 ) + - ( 25 ) AS col1
----
560

query I rowsort
SELECT 27 + 21
----
48

query I rowsort
SELECT 36 + + 27 AS col1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT DISTINCT - + 84 DIV - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT - + 84 / - 87 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7822
SELECT - ( - 3 ) * - + 5 + - + COUNT( DISTINCT + 64 ) + - 13 - + 51 * + 65 + 84 - 52 + + - 5 * - 92 DIV - - 29 AS col2
----
-3297

skipif mysql # not compatible
query I rowsort label-7822
SELECT - ( - 3 ) * - + 5 + - + COUNT ( DISTINCT + 64 ) + - 13 - + 51 * + 65 + 84 - 52 + + - 5 * - 92 / - - 29 AS col2
----
-3297

query I rowsort
SELECT ALL + 73 * - 79 AS col2
----
-5767

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT + COUNT( * ) + - + 37 * 19 * ( + 54 ) AS col2
----
-37961

skipif mysql # not compatible
query I rowsort label-7824
SELECT + COUNT ( * ) + - + 37 * 19 * ( + 54 ) AS col2
----
-37961

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT 60 DIV - 47 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7825
SELECT 60 / - 47 col0
----
-1

query I rowsort
SELECT 91 + + 69
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT + COUNT( * ) + - - CAST( - 56 AS SIGNED ) - - 3 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7827
SELECT + COUNT ( * ) + - - CAST ( - 56 AS INTEGER ) - - 3 AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7828
SELECT ALL + 80 - + COUNT( DISTINCT 68 ) + 14 DIV 38
----
79

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL + 80 - + COUNT ( DISTINCT 68 ) + 14 / 38
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7829
SELECT ALL + CAST( + CASE WHEN 89 IS NOT NULL THEN + COUNT( * ) ELSE NULL END AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + CAST ( + CASE WHEN 89 IS NOT NULL THEN + COUNT ( * ) ELSE NULL END AS INTEGER ) AS col1
----
1

query II rowsort
SELECT DISTINCT 11 AS col0, 33 AS col1
----
11
33

query I rowsort
SELECT - 81 + - 33 AS col1
----
-114

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

skipif mysql # not compatible
query I rowsort label-7832
SELECT 86 * COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT COUNT( * ) + + 83 * + 4 * - 62 * 9
----
-185255

skipif mysql # not compatible
query I rowsort label-7833
SELECT COUNT ( * ) + + 83 * + 4 * - 62 * 9
----
-185255

query I rowsort
SELECT 92 + - + 25
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7835
SELECT ALL ( - 77 ) + + 39 + - - 79 * CAST( - 54 AS SIGNED ) * - + 50 * - 78 * NULLIF ( 36, + - 29 ) + COUNT( * ) * + - 16 * 74 * + 65 + + MAX( DISTINCT 49 ) * + NULLIF ( 16 * - 15, + COUNT( * ) )
----
-599035158

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL ( - 77 ) + + 39 + - - 79 * CAST ( - 54 AS INTEGER ) * - + 50 * - 78 * NULLIF ( 36, + - 29 ) + COUNT ( * ) * + - 16 * 74 * + 65 + + MAX ( DISTINCT 49 ) * + NULLIF ( 16 * - 15, + COUNT ( * ) )
----
-599035158

query I rowsort
SELECT + 24 + + 97 + - 42 + - 38 * 82 AS col2
----
-3037

query I rowsort
SELECT + 1 * + - 53 * + 10
----
-530

query I rowsort
SELECT ALL - 62 * + 75 + - 38
----
-4688

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7839
SELECT 23 * + 11 * - - 80 * - CAST( NULL AS DECIMAL ) + - - 21 + - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT 23 * + 11 * - - 80 * - CAST ( NULL AS REAL ) + - - 21 + - 43 AS col1
----
NULL

query II rowsort
SELECT + 41 * 66 col2, + 38 * + 26 AS col1
----
2706
988

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT - 47 + COUNT( ALL + 34 )
----
-46

skipif mysql # not compatible
query I rowsort label-7841
SELECT - 47 + COUNT ( ALL + 34 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT ALL + 35 * 39 DIV + 84 + + + ( - 28 ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + 35 * 39 / + 84 + + + ( - 28 ) col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7843
SELECT - COUNT( * ) DIV - 65 AS col2, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-7843
SELECT - COUNT ( * ) / - 65 AS col2, + COUNT ( * ) AS col0
----
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL 42 * - SUM( DISTINCT - ( + - 65 ) ) + + + 88 AS col1
----
-2642

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL 42 * - SUM ( DISTINCT - ( + - 65 ) ) + + + 88 AS col1
----
-2642

query I rowsort
SELECT + 11 * + 96 * 98
----
103488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT 61 * + - COUNT( - + 35 ) + + 91 + + + CASE 0 WHEN - CASE + 99 WHEN - - 0 * 88 * + - SUM( - - ( 60 ) ) THEN - + CAST( NULL AS SIGNED ) * 7 END THEN CASE - 93 WHEN - CASE + 69 WHEN 43 THEN NULL WHEN CASE 1 WHEN - NULLIF ( 44, CAST( + 52 AS SIGNED ) * 48 ) * 5 THEN NULL ELSE + ( - SUM( DISTINCT 78 ) ) + 53 END - COUNT( * ) THEN + 8 WHEN AVG ( DISTINCT 39 ) * + 60 THEN NULL ELSE - COUNT( * ) END THEN + 34 + + 66 * COUNT( * ) ELSE NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT 61 * + - COUNT ( - + 35 ) + + 91 + + + CASE 0 WHEN - CASE + 99 WHEN - - 0 * 88 * + - SUM ( - - ( 60 ) ) THEN - + CAST ( NULL AS INTEGER ) * 7 END THEN CASE - 93 WHEN - CASE + 69 WHEN 43 THEN NULL WHEN CASE 1 WHEN - NULLIF ( 44, CAST ( + 52 AS INTEGER ) * 48 ) * 5 THEN NULL ELSE + ( - SUM ( DISTINCT 78 ) ) + 53 END - COUNT ( * ) THEN + 8 WHEN AVG ( DISTINCT 39 ) * + 60 THEN NULL ELSE - COUNT ( * ) END THEN + 34 + + 66 * COUNT ( * ) ELSE NULL END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT COALESCE ( 48, - COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-7848
SELECT COALESCE ( 48, - COUNT ( * ) )
----
48

query I rowsort
SELECT ALL + - 69 col2
----
-69

query II rowsort
SELECT ALL - 84 * + 51 - + 80 + + 63, 52 AS col2
----
-4301
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT + ( SUM( - 16 ) ) * - 52 - 22 + + + 48 * - 50 * + 15 + + + 54
----
-35136

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT + ( SUM ( - 16 ) ) * - 52 - 22 + + + 48 * - 50 * + 15 + + + 54
----
-35136

query I rowsort
SELECT + - 48 * - 86 + - 37 col1
----
4091

query I rowsort
SELECT ALL 32 * + + 5 - - 82 * + + 90 - + + 88
----
7452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7854
SELECT - 79 * 93 * 85 DIV - COUNT( * )
----
624495

skipif mysql # not compatible
query I rowsort label-7854
SELECT - 79 * 93 * 85 / - COUNT ( * )
----
624495

query I rowsort
SELECT - - 33 * ( - 60 )
----
-1980

query I rowsort
SELECT + CASE + 61 WHEN - + 53 + - 9 * 8 THEN - 15 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + 84 * COUNT ( ALL - 96 ) AS col1
----
84

query I rowsort
SELECT - - 73 * 65 * + 12
----
56940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7859
SELECT ALL + ( - + CASE WHEN ( NULL ) NOT BETWEEN + - 11 AND - COALESCE ( - + CAST( NULL AS SIGNED ), - 24 * - 13 + 0 + - 67 + - + COALESCE ( - CASE SUM( DISTINCT - 26 ) WHEN COUNT( * ) THEN 16 END, + 78 ) + - ( - 70 ) ) THEN + 2 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL + ( - + CASE WHEN ( NULL ) NOT BETWEEN + - 11 AND - COALESCE ( - + CAST ( NULL AS INTEGER ), - 24 * - 13 + 0 + - 67 + - + COALESCE ( - CASE SUM ( DISTINCT - 26 ) WHEN COUNT ( * ) THEN 16 END, + 78 ) + - ( - 70 ) ) THEN + 2 END ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT DISTINCT + + 15 DIV - + 59
----
0

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT + + 15 / - + 59
----
0

query I rowsort
SELECT - - 21 - 38
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT + + 57 DIV 14 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7862
SELECT + + 57 / 14 AS col2
----
4

query I rowsort
SELECT - + 46 * 50
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL 19 + + ( + - 73 ) * - - 2 + COALESCE ( + + NULLIF ( + 39, 19 * - - 25 ), MIN( + + COALESCE ( + + ( - 89 ), - 78 ) ), + - 7 )
----
-88

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL 19 + + ( + - 73 ) * - - 2 + COALESCE ( + + NULLIF ( + 39, 19 * - - 25 ), MIN ( + + COALESCE ( + + ( - 89 ), - 78 ) ), + - 7 )
----
-88

query I rowsort
SELECT DISTINCT ( - 22 ) + - 58
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL + COUNT( * ) * + - ( + 65 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL + COUNT ( * ) * + - ( + 65 ) col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT - 1 DIV + 33 * 52 * 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-7867
SELECT - 1 / + 33 * 52 * 82 col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT DISTINCT ( + COALESCE ( MIN( ALL + ( + 56 ) ), + - 9 ) )
----
56

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT ( + COALESCE ( MIN ( ALL + ( + 56 ) ), + - 9 ) )
----
56

query I rowsort
SELECT + 95 - + - 75 AS col0
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-7871
SELECT DISTINCT COUNT( * ) + 19 * - - 13 * - 60 + - 63 AS col1, 67
----
-14882
67

skipif mysql # not compatible
query II rowsort label-7871
SELECT DISTINCT COUNT ( * ) + 19 * - - 13 * - 60 + - 63 AS col1, 67
----
-14882
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT ALL 77 + - 37 * - 15 - 30 + - + 94 + + - 59 + + COALESCE ( - + ( + 32 ), + 47 ) * + COUNT( * ) * - 15 * - 2 AS col0
----
-511

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL 77 + - 37 * - 15 - 30 + - + 94 + + - 59 + + COALESCE ( - + ( + 32 ), + 47 ) * + COUNT ( * ) * - 15 * - 2 AS col0
----
-511

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7876
SELECT + 35 + - 81 + + 87 + - - MIN( - - 1 ) * + CASE - 64 WHEN - 35 THEN + ( - + CAST( NULL AS DECIMAL ) ) * CAST( 92 AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT + 35 + - 81 + + 87 + - - MIN ( - - 1 ) * + CASE - 64 WHEN - 35 THEN + ( - + CAST ( NULL AS REAL ) ) * CAST ( 92 AS REAL ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 5 * 69
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT - NULLIF ( - + 9, CASE COUNT( * ) WHEN - 53 * 96 + + ( 80 ) THEN NULL WHEN - 71 / 35 + - SUM( ALL - 37 ) THEN + 74 END ) * - 29 col0
----
-261

skipif mysql # not compatible
query I rowsort label-7878
SELECT - NULLIF ( - + 9, CASE COUNT ( * ) WHEN - 53 * 96 + + ( 80 ) THEN NULL WHEN - 71 / 35 + - SUM ( ALL - 37 ) THEN + 74 END ) * - 29 col0
----
-261

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7880
SELECT ALL COUNT( * ) DIV + 52 - + + 16 + + 83 + + 6 * - + 68
----
-341

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL COUNT ( * ) / + 52 - + + 16 + + 83 + + 6 * - + 68
----
-341

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

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

query I rowsort
SELECT + NULLIF ( - 64, + 56 )
----
-64

query I rowsort
SELECT + - 58 * - 55 + - 9
----
3181

query II rowsort
SELECT - 13 * - 92 + 66, 5 - - 54 AS col2
----
1262
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT + + COUNT( * ) + 45 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7885
SELECT + + COUNT ( * ) + 45 AS col2
----
46

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL + - MAX( DISTINCT + + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL + - MAX ( DISTINCT + + 73 )
----
-73

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7890
SELECT DISTINCT - + 92 * + COUNT( ( + 37 ) ) - CAST( NULL AS DECIMAL ) + - - COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - + 92 * + COUNT ( ( + 37 ) ) - CAST ( NULL AS REAL ) + - - COUNT ( * ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + + 13 * + 33
----
429

onlyif mysql # DIV for integer division: 
query I rowsort label-7892
SELECT + + 66 * 18 DIV - 93 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7892
SELECT + + 66 * 18 / - 93 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT - NULLIF ( + 6, - - 51 * + SUM( + 72 ) + - - 93 + - + 44 + 91 + - - ( - 27 ) + - - 46 * - 65 * - 12 * - - 27 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7893
SELECT - NULLIF ( + 6, - - 51 * + SUM ( + 72 ) + - - 93 + - + 44 + 91 + - - ( - 27 ) + - - 46 * - 65 * - 12 * - - 27 ) AS col1
----
-6

query I rowsort
SELECT - 16 + 80
----
64

query II rowsort
SELECT - 85 * + 24 * - 39 col2, 50 col0
----
79560
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT DISTINCT + 50 * - + NULLIF ( + 88, + - MAX( + 59 ) ) * 98 col0
----
-431200

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT + 50 * - + NULLIF ( + 88, + - MAX ( + 59 ) ) * 98 col0
----
-431200

query II rowsort
SELECT ALL 88 AS col0, + 10
----
88
10

query II rowsort
SELECT - 89, 6 AS col0
----
-89
6

query I rowsort
SELECT ALL + NULLIF ( - - ( 30 ), - 85 ) + + - 95
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT - 78 + - 74 + + COUNT( * ) AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT - 78 + - 74 + + COUNT ( * ) AS col1
----
-151

query I rowsort
SELECT ALL 65 + - - 48 + + - 71 * 73
----
-5070

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7903
SELECT ALL + 5 DIV 94 * + + 98
----
0

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL + 5 / 94 * + + 98
----
0

query I rowsort
SELECT 46 + - 67 AS col1
----
-21

query I rowsort
SELECT 17 * + - 53
----
-901

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT - ( + - 5 ) * + + CASE - + 20 WHEN - COUNT( * ) THEN - 25 * - - 83 + + 64 ELSE - 53 END
----
-265

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT - ( + - 5 ) * + + CASE - + 20 WHEN - COUNT ( * ) THEN - 25 * - - 83 + + 64 ELSE - 53 END
----
-265

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7907
SELECT ALL 57 AS col2, 99 DIV - COUNT( * )
----
57
-99

skipif mysql # not compatible
query II rowsort label-7907
SELECT ALL 57 AS col2, 99 / - COUNT ( * )
----
57
-99

query I rowsort
SELECT 27 * 12 AS col1
----
324

query I rowsort
SELECT 65 * 19
----
1235

query II rowsort
SELECT DISTINCT 65 AS col2, 10 AS col2
----
65
10

query I rowsort
SELECT DISTINCT - 88 * - - 4
----
-352

onlyif mysql # aggregate syntax: 
query II rowsort label-7912
SELECT + 79 AS col1, + 62 * + + MAX( ALL + 77 ) AS col2
----
79
4774

skipif mysql # not compatible
query II rowsort label-7912
SELECT + 79 AS col1, + 62 * + + MAX ( ALL + 77 ) AS col2
----
79
4774

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7913
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7913
SELECT ALL - CAST ( NULL AS REAL ) AS col1, + COUNT ( * ) AS col2
----
NULL
1

query II rowsort
SELECT + 82 AS col2, + 94
----
82
94

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

skipif mysql # not compatible
query II rowsort label-7915
SELECT - 44 AS col2, - COUNT ( * ) AS col1
----
-44
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7916
SELECT ALL - + 92, 41 DIV 85 col0
----
-92
0

skipif mysql # not compatible
query II rowsort label-7916
SELECT ALL - + 92, 41 / 85 col0
----
-92
0

query II rowsort
SELECT + 66 AS col1, + 33
----
66
33

query I rowsort
SELECT - 31 * ( - 73 )
----
2263

query I rowsort
SELECT + + 10 * - + 53 + 1 + - 37 AS col2
----
-566

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT + MIN( ALL ( + ( 17 ) ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7922
SELECT + MIN ( ALL ( + ( 17 ) ) ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL - COUNT( * ) + + - 91 - 30
----
-122

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - COUNT ( * ) + + - 91 - 30
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL + - SUM( DISTINCT 83 ) + - - MIN( + + 23 )
----
-60

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL + - SUM ( DISTINCT 83 ) + - - MIN ( + + 23 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7925
SELECT + COALESCE ( NULLIF ( + 68, + + 78 + + ( + 1 ) / - ( + ( COUNT( * ) ) ) ), + COUNT( * ), - 74 - + 69 - - 55, + 19 ), COUNT( * ) AS col1
----
68
1

skipif mysql # not compatible
query II rowsort label-7925
SELECT + COALESCE ( NULLIF ( + 68, + + 78 + + ( + 1 ) / - ( + ( COUNT ( * ) ) ) ), + COUNT ( * ), - 74 - + 69 - - 55, + 19 ), COUNT ( * ) AS col1
----
68
1

query I rowsort
SELECT ALL - 1 * - + CASE - 6 WHEN - - 62 THEN - 54 END
----
NULL

query I rowsort
SELECT ALL - 51 + - 76
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT - 2 * 38 * + ( 60 ) - + 77 + ( - - 48 ) + + - 18 - + + 25 / - - 82 / 20 * + CAST( NULL AS SIGNED ) * + - 89 * - - 43 + - + 98 + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT - 2 * 38 * + ( 60 ) - + 77 + ( - - 48 ) + + - 18 - + + 25 / - - 82 / 20 * + CAST ( NULL AS INTEGER ) * + - 89 * - - 43 + - + 98 + + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL - MIN( DISTINCT - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - MIN ( DISTINCT - 23 )
----
23

query I rowsort
SELECT ALL - ( - 6 ) + + + 61 AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7931
SELECT ALL + 1 * - 16 DIV 46 * - 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL + 1 * - 16 / 46 * - 32 AS col0
----
0

query I rowsort
SELECT 37 * + + 93 AS col0
----
3441

query I rowsort
SELECT 40 - + + ( - COALESCE ( 98, 94 ) ) + + 75 AS col1
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7934
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + NULLIF ( - + 2, + + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + NULLIF ( - + 2, + + 71 )
----
NULL

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

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

query I rowsort
SELECT ALL - 1 * - 73 col2
----
73

query I rowsort
SELECT 27 * 58
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT 62 * - 33 * - 4 * + MAX( DISTINCT - 53 ) AS col2
----
-433752

skipif mysql # not compatible
query I rowsort label-7938
SELECT 62 * - 33 * - 4 * + MAX ( DISTINCT - 53 ) AS col2
----
-433752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7939
SELECT ALL 94 * - CAST( NULL AS SIGNED ) AS col0, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-7939
SELECT ALL 94 * - CAST ( NULL AS INTEGER ) AS col0, 5
----
NULL
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7940
SELECT 52 * + MIN( DISTINCT 57 ) * + 96 * 62 DIV + - 48 + - 88 AS col2
----
-367624

skipif mysql # not compatible
query I rowsort label-7940
SELECT 52 * + MIN ( DISTINCT 57 ) * + 96 * 62 / + - 48 + - 88 AS col2
----
-367624

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

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL MAX ( ALL 82 )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7942
SELECT 42 DIV - COUNT( DISTINCT ( 34 ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-7942
SELECT 42 / - COUNT ( DISTINCT ( 34 ) ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT 45 + - CAST( + + 92 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-7943
SELECT 45 + - CAST ( + + 92 AS INTEGER )
----
-47

query I rowsort
SELECT 90 * 42 AS col2
----
3780

query I rowsort
SELECT + + 21 * + - 69 + + ( - + 23 ) AS col1
----
-1472

query II rowsort
SELECT ALL + + ( + 82 ) * + 21, - ( 98 ) AS col2
----
1722
-98

query I rowsort
SELECT 12 * + 11
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7948
SELECT DISTINCT - 27 * - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + 51 + + AVG ( DISTINCT + 23 ) / + - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT - 27 * - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 51 + + AVG ( DISTINCT + 23 ) / + - 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL + 92 * MIN( DISTINCT + ( + + 4 ) ) + - - 94 + - COUNT( * )
----
461

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL + 92 * MIN ( DISTINCT + ( + + 4 ) ) + - - 94 + - COUNT ( * )
----
461

query I rowsort
SELECT DISTINCT + 53 + - + ( 53 ) + - 89 AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7951
SELECT ALL + 89 * + 88 + - + COUNT( * ) + 20 DIV + - 43 + 93
----
7924

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + 89 * + 88 + - + COUNT ( * ) + 20 / + - 43 + 93
----
7924

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT DISTINCT + - NULLIF ( - 3, - - 33 + CASE - - 17 WHEN + ( - + 1 ) THEN NULLIF ( + ( - 66 ), + NULLIF ( + 50, + + 29 ) + + - 42 ) WHEN + 84 + - - COALESCE ( + 26, COUNT( * ), 38, + ( 70 ) ) THEN ( - 17 ) ELSE NULL END )
----
3

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + - NULLIF ( - 3, - - 33 + CASE - - 17 WHEN + ( - + 1 ) THEN NULLIF ( + ( - 66 ), + NULLIF ( + 50, + + 29 ) + + - 42 ) WHEN + 84 + - - COALESCE ( + 26, COUNT ( * ), 38, + ( 70 ) ) THEN ( - 17 ) ELSE NULL END )
----
3

query I rowsort
SELECT ALL + + 66 + + 27
----
93

query I rowsort
SELECT + 54 * 77 AS col1
----
4158

query I rowsort
SELECT ALL 60 * 3 * 69
----
12420

query I rowsort
SELECT - NULLIF ( + 86, - 93 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7957
SELECT + COUNT( * ) + - MAX( ALL + + ( 24 ) ) + - 52 * COUNT( DISTINCT - + 97 ) DIV ( + 82 ) - - + 28
----
5

skipif mysql # not compatible
query I rowsort label-7957
SELECT + COUNT ( * ) + - MAX ( ALL + + ( 24 ) ) + - 52 * COUNT ( DISTINCT - + 97 ) / ( + 82 ) - - + 28
----
5

query I rowsort
SELECT + 24 * + 79
----
1896

query I rowsort
SELECT + 36 + 93 AS col0
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7960
SELECT - COUNT( * ) - + MIN( 42 ) DIV 18 + 62
----
59

skipif mysql # not compatible
query I rowsort label-7960
SELECT - COUNT ( * ) - + MIN ( 42 ) / 18 + 62
----
59

query II rowsort
SELECT DISTINCT 47 AS col2, + 66 AS col1
----
47
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT + COUNT( * ) + 12 + - + 66 * - 52
----
3445

skipif mysql # not compatible
query I rowsort label-7962
SELECT + COUNT ( * ) + 12 + - + 66 * - 52
----
3445

query II rowsort
SELECT ALL 0 AS col2, 39
----
0
39

onlyif mysql # DIV for integer division: 
query II rowsort label-7964
SELECT ALL 82 DIV 34 * + 85 AS col2, - 68 + + 20 + + 56 * - 27
----
170
-1560

skipif mysql # not compatible
query II rowsort label-7964
SELECT ALL 82 / 34 * + 85 AS col2, - 68 + + 20 + + 56 * - 27
----
170
-1560

query I rowsort
SELECT + 88 + - 60 col2
----
28

query I rowsort
SELECT ALL - 70 * + 9
----
-630

query I rowsort
SELECT + 82 + 18 + + 35 AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7968
SELECT - CASE + 33 WHEN 8 + + + 20 + + COUNT( * ) * + 65 / + COUNT( * ) THEN NULL WHEN + 6 - - CAST( NULL AS SIGNED ) THEN + 43 + - COUNT( 32 ) END + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT - CASE + 33 WHEN 8 + + + 20 + + COUNT ( * ) * + 65 / + COUNT ( * ) THEN NULL WHEN + 6 - - CAST ( NULL AS INTEGER ) THEN + 43 + - COUNT ( 32 ) END + - 91
----
NULL

query I rowsort
SELECT + 28 * + 68 AS col0
----
1904

query II rowsort
SELECT - 34 + 67 + 18 col1, - ( + ( - - 5 ) ) col2
----
51
-5

query I rowsort
SELECT ALL 40 * - - 40
----
1600

query II rowsort
SELECT - 52 * + - 50 * 98, 28 AS col2
----
254800
28

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

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

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

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

query I rowsort
SELECT DISTINCT 45 + 75 AS col2
----
120

query I rowsort
SELECT ALL - 0 * - - 36
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7977
SELECT - 62 AS col1, - COUNT( * ) * 29 AS col0
----
-62
-29

skipif mysql # not compatible
query II rowsort label-7977
SELECT - 62 AS col1, - COUNT ( * ) * 29 AS col0
----
-62
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7978
SELECT ALL + COALESCE ( - + 78, - + AVG ( + + 68 ), + 87 - 79 ) / - + 41 + - + 8 + + 16 + + COUNT( ALL + 16 ) + - + 81 * + + 54 * - COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + COALESCE ( - + 78, - + AVG ( + + 68 ), + 87 - 79 ) / - + 41 + - + 8 + + 16 + + COUNT ( ALL + 16 ) + - + 81 * + + 54 * - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query II rowsort
SELECT + + 49, 6 - + - 18 + - 99 AS col1
----
49
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7981
SELECT - COALESCE ( CAST( - 18 AS SIGNED ), 6, NULLIF ( - 83, + 44 ) * - + CAST( - NULLIF ( - CAST( + - 2 AS SIGNED ), + - 67 DIV + CASE COUNT( * ) WHEN - 85 THEN ( 15 ) WHEN AVG ( ALL + 50 ) THEN 29 * 27 END * - 33 ) AS SIGNED ) + + 82 DIV - 7, - 59 ) * + CASE - ( + 53 ) WHEN + 55 + + 57 THEN COALESCE ( - COUNT( * ), + 7 ) WHEN 39 * + 58 THEN NULL ELSE 69 * COUNT( * ) END AS col1
----
1242

skipif mysql # not compatible
query I rowsort label-7981
SELECT - COALESCE ( CAST ( - 18 AS INTEGER ), 6, NULLIF ( - 83, + 44 ) * - + CAST ( - NULLIF ( - CAST ( + - 2 AS INTEGER ), + - 67 / + CASE COUNT ( * ) WHEN - 85 THEN ( 15 ) WHEN AVG ( ALL + 50 ) THEN 29 * 27 END * - 33 ) AS INTEGER ) + + 82 / - 7, - 59 ) * + CASE - ( + 53 ) WHEN + 55 + + 57 THEN COALESCE ( - COUNT ( * ), + 7 ) WHEN 39 * + 58 THEN NULL ELSE 69 * COUNT ( * ) END AS col1
----
1242

query II rowsort
SELECT 62 AS col2, 53 AS col2
----
62
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT CASE - 46 WHEN - + 97 * MAX( - 59 ) THEN NULL WHEN 81 THEN - + ( + - COUNT( * ) ) * AVG ( - 17 ) + - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT CASE - 46 WHEN - + 97 * MAX ( - 59 ) THEN NULL WHEN 81 THEN - + ( + - COUNT ( * ) ) * AVG ( - 17 ) + - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7985
SELECT ALL + - 21 * + SUM( 4 ) - COALESCE ( + 40, 50 DIV + - ( - 59 ), - 44 ) + - COUNT( * ) DIV + ( - + 25 ) * 48, 27 + + 18 col2
----
-124
45

skipif mysql # not compatible
query II rowsort label-7985
SELECT ALL + - 21 * + SUM ( 4 ) - COALESCE ( + 40, 50 / + - ( - 59 ), - 44 ) + - COUNT ( * ) / + ( - + 25 ) * 48, 27 + + 18 col2
----
-124
45

query II rowsort
SELECT ALL - 7 * ( - - 52 ) - 12 * + 86 * - 6 * - 41 * + 28, 1 AS col1
----
-7108780
1

query I rowsort
SELECT DISTINCT - 99 * + + 4 AS col0
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT + 23 * - SUM( DISTINCT + - ( - - 58 ) ) col1
----
1334

skipif mysql # not compatible
query I rowsort label-7988
SELECT + 23 * - SUM ( DISTINCT + - ( - - 58 ) ) col1
----
1334

query I rowsort
SELECT NULLIF ( + 18, + - 65 ) col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL + MIN( 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL + MIN ( 59 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT ALL - 32 * - COUNT( * ) - - - 1
----
31

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL - 32 * - COUNT ( * ) - - - 1
----
31

query I rowsort
SELECT + 1 * 71 AS col0
----
71

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT DISTINCT CAST( + 76 AS SIGNED ) col0
----
76

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT CAST ( + 76 AS INTEGER ) col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT MIN( DISTINCT 65 ) AS col2, 54
----
65
54

skipif mysql # not compatible
query II rowsort label-7995
SELECT MIN ( DISTINCT 65 ) AS col2, 54
----
65
54

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

query I rowsort
SELECT DISTINCT 5 * + - ( 50 )
----
-250

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

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

query I rowsort
SELECT ALL 40 + + 22 AS col0
----
62

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

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

query II rowsort
SELECT + 22 - - 94 * ( 17 ) col1, 75 AS col1
----
1620
75

query I rowsort
SELECT ALL 93 + + 27
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT + CASE WHEN NOT + 86 NOT BETWEEN + 58 + - + 71 * 96 AND 11 + - ( - COALESCE ( - - 41, 0 ) ) THEN - + CAST( NULL AS SIGNED ) WHEN 99 * - 55 / - 63 < ( - 21 ) THEN NULL END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT + CASE WHEN NOT + 86 NOT BETWEEN + 58 + - + 71 * 96 AND 11 + - ( - COALESCE ( - - 41, 0 ) ) THEN - + CAST ( NULL AS INTEGER ) WHEN 99 * - 55 / - 63 < ( - 21 ) THEN NULL END * 7
----
NULL

query I rowsort
SELECT ALL 4 + + - 62 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8005
SELECT + 75 * + 60, - COUNT( * ) * - 44 + - + ( + 87 ) col1
----
4500
-43

skipif mysql # not compatible
query II rowsort label-8005
SELECT + 75 * + 60, - COUNT ( * ) * - 44 + - + ( + 87 ) col1
----
4500
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL MIN( + 0 ) + COALESCE ( NULLIF ( 7, - - 55 ), - - 65 ) + + 53 * + - CASE 99 WHEN + + 27 THEN + - 5 WHEN 4 + COUNT( * ) * + NULLIF ( + 92, - + 0 - 24 ) * - + 41 * - CASE 53 WHEN + 54 * + CAST( CAST( - 41 AS SIGNED ) * 33 AS SIGNED ) THEN COUNT( * ) WHEN 44 + - 6 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULL END + + 50 THEN COUNT( DISTINCT 14 ) END * + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL MIN ( + 0 ) + COALESCE ( NULLIF ( 7, - - 55 ), - - 65 ) + + 53 * + - CASE 99 WHEN + + 27 THEN + - 5 WHEN 4 + COUNT ( * ) * + NULLIF ( + 92, - + 0 - 24 ) * - + 41 * - CASE 53 WHEN + 54 * + CAST ( CAST ( - 41 AS INTEGER ) * 33 AS INTEGER ) THEN COUNT ( * ) WHEN 44 + - 6 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULL END + + 50 THEN COUNT ( DISTINCT 14 ) END * + 61 AS col1
----
NULL

query I rowsort
SELECT + 64 - + - 8 * + 44 AS col0
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT + 8 + 80 + COUNT( * ) + 31 / + 38 + - + CASE + + MIN( ALL 45 ) WHEN - COUNT( * ) THEN + 87 END * + + COUNT( 8 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT + 8 + 80 + COUNT ( * ) + 31 / + 38 + - + CASE + + MIN ( ALL 45 ) WHEN - COUNT ( * ) THEN + 87 END * + + COUNT ( 8 ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT 90 + + COUNT( DISTINCT + 5 )
----
91

skipif mysql # not compatible
query I rowsort label-8011
SELECT 90 + + COUNT ( DISTINCT + 5 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8012
SELECT + 58 DIV + COUNT( * ) + 23 col0
----
81

skipif mysql # not compatible
query I rowsort label-8012
SELECT + 58 / + COUNT ( * ) + 23 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL + COALESCE ( - ( - 52 ), + - 43, COUNT( * ) ) * + 14 + + + 42 col2
----
770

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL + COALESCE ( - ( - 52 ), + - 43, COUNT ( * ) ) * + 14 + + + 42 col2
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL COUNT( * ) - - + 38 * - 84 * + - 15 AS col1
----
47881

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL COUNT ( * ) - - + 38 * - 84 * + - 15 AS col1
----
47881

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT DISTINCT + 95 * COUNT( * ) - + CASE - ( + - CASE 92 WHEN + + 55 + - 3 * + 57 THEN 92 * 70 END ) WHEN - - 81 / - 83 + + 56 THEN - - 97 * - + SUM( COALESCE ( - - 98, + 34 ) ) + 98 + 11 WHEN + 63 THEN NULL WHEN - ( 78 ) * - 89 THEN + 12 * + 48 + + 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT + 95 * COUNT ( * ) - + CASE - ( + - CASE 92 WHEN + + 55 + - 3 * + 57 THEN 92 * 70 END ) WHEN - - 81 / - 83 + + 56 THEN - - 97 * - + SUM ( COALESCE ( - - 98, + 34 ) ) + 98 + 11 WHEN + 63 THEN NULL WHEN - ( 78 ) * - 89 THEN + 12 * + 48 + + 25 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8016
SELECT - + CAST( + 99 AS SIGNED ) DIV + + 77 + - 23
----
-24

skipif mysql # not compatible
query I rowsort label-8016
SELECT - + CAST ( + 99 AS INTEGER ) / + + 77 + - 23
----
-24

query I rowsort
SELECT 90 * + - 52
----
-4680

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT - 93 + 26 DIV - 19 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8018
SELECT - 93 + 26 / - 19 AS col0
----
-94

query I rowsort
SELECT 82 + + + 10
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT - 7 * - CASE + 51 WHEN 37 * - + 62 + + COUNT( - - 92 ) * + 63 * + 68 THEN - - 30 * 99 ELSE + COUNT( * ) END + - - ( + 22 ) + + 65 + + 43 * - 93 * + + ( - - COUNT( * ) ) AS col1
----
-3905

skipif mysql # not compatible
query I rowsort label-8020
SELECT - 7 * - CASE + 51 WHEN 37 * - + 62 + + COUNT ( - - 92 ) * + 63 * + 68 THEN - - 30 * 99 ELSE + COUNT ( * ) END + - - ( + 22 ) + + 65 + + 43 * - 93 * + + ( - - COUNT ( * ) ) AS col1
----
-3905

query I rowsort
SELECT ALL - CASE + + 66 WHEN - - 75 THEN 2 + + 61 - - 10 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT DISTINCT - 97 * + - MAX( ALL 92 )
----
8924

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT - 97 * + - MAX ( ALL 92 )
----
8924

query II rowsort
SELECT ALL + ( + 57 ) * + 88 col1, 62 AS col2
----
5016
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT + ( - 22 ) * + 86 - + + 18 + + + AVG ( ALL - CAST( NULL AS SIGNED ) ) + + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT + ( - 22 ) * + 86 - + + 18 + + + AVG ( ALL - CAST ( NULL AS INTEGER ) ) + + + 45 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT DISTINCT 94 / + 21 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

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

query I rowsort
SELECT 36 * - CASE + 48 WHEN + - 79 THEN - 99 END
----
NULL

query I rowsort
SELECT 52 + + 16 * + 68
----
1140

query I rowsort
SELECT 61 + 78 + + 88 * - - 67 + 11 col1
----
6046

query I rowsort
SELECT ALL 93 + 91
----
184

query I rowsort
SELECT 71 + - 65 * 48
----
-3049

query I rowsort
SELECT ALL - 7 + - 78 + ( + - 56 )
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT SUM( ALL - - 60 ) + - COUNT( DISTINCT + 3 ) + + 99 col0
----
158

skipif mysql # not compatible
query I rowsort label-8033
SELECT SUM ( ALL - - 60 ) + - COUNT ( DISTINCT + 3 ) + + 99 col0
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT DISTINCT + 35 DIV - 83 * - + 31 * + 63
----
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT + 35 / - 83 * - + 31 * + 63
----
0

query I rowsort
SELECT NULLIF ( - 44, - - 25 ) + + 39 AS col1
----
-5

query I rowsort
SELECT + 75 + + 7 AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8037
SELECT DISTINCT + 61, 92 DIV - - COUNT( * ) AS col0
----
61
92

skipif mysql # not compatible
query II rowsort label-8037
SELECT DISTINCT + 61, 92 / - - COUNT ( * ) AS col0
----
61
92

query I rowsort
SELECT 48 + + + 34 + 80 + + + 13 * + 94 * + + 5 * + 64 * + 70 AS col0
----
27372962

query I rowsort
SELECT 79 + + + 33 * 20 AS col0
----
739

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT DISTINCT - COUNT( * ) - + 62 + - 45 * 72 AS col0
----
-3303

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT - COUNT ( * ) - + 62 + - 45 * 72 AS col0
----
-3303

query I rowsort
SELECT ALL 94 - 69 AS col0
----
25

query I rowsort
SELECT 4 * - 86 AS col1
----
-344

query II rowsort
SELECT + + CASE + - ( + 60 ) WHEN 36 THEN + 46 END, - 7 AS col2
----
NULL
-7

query II rowsort
SELECT 59 AS col1, 10 AS col0
----
59
10

query II rowsort
SELECT ALL + ( - 41 ) - 40, + 20 AS col2
----
-81
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT 84 * COALESCE ( - 20, + + 66 * - COUNT( * ) + 56 * + 32 ) col1
----
-1680

skipif mysql # not compatible
query I rowsort label-8046
SELECT 84 * COALESCE ( - 20, + + 66 * - COUNT ( * ) + 56 * + 32 ) col1
----
-1680

query I rowsort
SELECT 27 * 81 AS col2
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL CASE 29 WHEN COUNT( * ) * 66 + NULLIF ( COUNT( * ), - 45 ) + + 69 * MAX( - 47 ) THEN NULL ELSE - 95 END * + 95 + + - 31
----
-9056

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL CASE 29 WHEN COUNT ( * ) * 66 + NULLIF ( COUNT ( * ), - 45 ) + + 69 * MAX ( - 47 ) THEN NULL ELSE - 95 END * + 95 + + - 31
----
-9056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT 86 DIV - - COUNT( DISTINCT 64 ) - - 83 AS col2
----
169

skipif mysql # not compatible
query I rowsort label-8049
SELECT 86 / - - COUNT ( DISTINCT 64 ) - - 83 AS col2
----
169

query II rowsort
SELECT DISTINCT - 78, - 21 col2
----
-78
-21

query II rowsort
SELECT ALL - 91 AS col1, CASE + AVG ( DISTINCT 1 ) WHEN - 72 THEN - 28 WHEN - 76 THEN + 22 * - 82 * + 24 + - 74 * + - 88 + - 79 WHEN + - 97 THEN NULL END + - 77 - + ( - 91 ) * - 51 * 76 * + 58 AS col0
----
-91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8052
SELECT + 94 AS col1, COUNT( * ) * + - 36 * - 29
----
94
1044

skipif mysql # not compatible
query II rowsort label-8052
SELECT + 94 AS col1, COUNT ( * ) * + - 36 * - 29
----
94
1044

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8054
SELECT 72 + + CAST( - - CASE - 61 WHEN + - 23 - - CAST( - CAST( - 84 AS DECIMAL ) AS DECIMAL ) THEN + ( + - 76 ) END AS SIGNED ) * + + 7 / 22 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT 72 + + CAST ( - - CASE - 61 WHEN + - 23 - - CAST ( - CAST ( - 84 AS REAL ) AS REAL ) THEN + ( + - 76 ) END AS INTEGER ) * + + 7 / 22 + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 65 + 44 + 45 AS col0
----
154

query II rowsort
SELECT + 51 AS col0, - ( + 48 ) * + - 96 * + 43 * + 83
----
51
16445952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8057
SELECT ALL - 12 + - + CAST( - 46 AS SIGNED ) + - + CAST( - 56 AS SIGNED ) + 53, MIN( DISTINCT - 19 ) AS col2
----
143
-19

skipif mysql # not compatible
query II rowsort label-8057
SELECT ALL - 12 + - + CAST ( - 46 AS INTEGER ) + - + CAST ( - 56 AS INTEGER ) + 53, MIN ( DISTINCT - 19 ) AS col2
----
143
-19

query I rowsort
SELECT 61 * + 45
----
2745

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + 7 * - 96 / CASE - + 64 WHEN 31 THEN 15 / - + 61 * - MAX( ALL - 35 ) WHEN ( 95 ) THEN - 57 * AVG ( ALL - 90 ) + - 94 END + - 63 * 6 + + CASE - 62 WHEN - 7 * 96 / 62 + - 89 THEN + 89 + - 85 WHEN 29 / 25 THEN NULL ELSE 45 * - 53 END - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT + 7 * - 96 / CASE - + 64 WHEN 31 THEN 15 / - + 61 * - MAX ( ALL - 35 ) WHEN ( 95 ) THEN - 57 * AVG ( ALL - 90 ) + - 94 END + - 63 * 6 + + CASE - 62 WHEN - 7 * 96 / 62 + - 89 THEN + 89 + - 85 WHEN 29 / 25 THEN NULL ELSE 45 * - 53 END - - 24
----
NULL

query II rowsort
SELECT ALL - 0 AS col2, 86 * + 33 AS col0
----
0
2838

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT ALL 64 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL 64 / 69 AS col2
----
0

query II rowsort
SELECT 13, + 97 AS col2
----
13
97

query I rowsort
SELECT ALL 81 + - 87 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8064
SELECT 87 * - 15, + COUNT( - 17 ) * - 71 col1
----
-1305
-71

skipif mysql # not compatible
query II rowsort label-8064
SELECT 87 * - 15, + COUNT ( - 17 ) * - 71 col1
----
-1305
-71

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

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

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

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

query I rowsort
SELECT ALL + 40 + 41
----
81

query I rowsort
SELECT ALL - + 74 + + 20 - - 50 AS col0
----
-4

query II rowsort
SELECT - - 12 AS col2, - 78 + + 31
----
12
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT - 68 * + COALESCE ( 14, - CAST( NULL AS SIGNED ) ) AS col1
----
-952

skipif mysql # not compatible
query I rowsort label-8070
SELECT - 68 * + COALESCE ( 14, - CAST ( NULL AS INTEGER ) ) AS col1
----
-952

query II rowsort
SELECT 50, 12 AS col1
----
50
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ALL + - 86 - - 27 * - MIN( 57 ) AS col2
----
-1625

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + - 86 - - 27 * - MIN ( 57 ) AS col2
----
-1625

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT - + COUNT( * ) * - 82 + + COUNT( * ) * - 47 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8073
SELECT - + COUNT ( * ) * - 82 + + COUNT ( * ) * - 47 AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8074
SELECT NULLIF ( 60, + NULLIF ( + + COUNT( * ), - 29 ) * 96 ) AS col1, 45 * + 77 + + 62 AS col1
----
60
3527

skipif mysql # not compatible
query II rowsort label-8074
SELECT NULLIF ( 60, + NULLIF ( + + COUNT ( * ), - 29 ) * 96 ) AS col1, 45 * + 77 + + 62 AS col1
----
60
3527

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT CASE - 79 WHEN + NULLIF ( - - COUNT( DISTINCT - - 9 ), + 11 * 78 ) * - + 88 THEN COUNT( DISTINCT - - 31 ) END * + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT CASE - 79 WHEN + NULLIF ( - - COUNT ( DISTINCT - - 9 ), + 11 * 78 ) * - + 88 THEN COUNT ( DISTINCT - - 31 ) END * + + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8076
SELECT - + 67 * - COUNT( * ) * NULLIF ( CAST( NULL AS SIGNED ), 50 / + 4 * + 87 / 96 - - - 24 + 47 - - + COUNT( * ) * 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT - + 67 * - COUNT ( * ) * NULLIF ( CAST ( NULL AS INTEGER ), 50 / + 4 * + 87 / 96 - - - 24 + 47 - - + COUNT ( * ) * 18 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8077
SELECT ALL - + 20 * 38 DIV ( + + 65 ) * - 69 + COUNT( * ) AS col2, + 2 * + - 70 AS col1
----
760
-140

skipif mysql # not compatible
query II rowsort label-8077
SELECT ALL - + 20 * 38 / ( + + 65 ) * - 69 + COUNT ( * ) AS col2, + 2 * + - 70 AS col1
----
760
-140

query I rowsort
SELECT + + CASE 13 WHEN - - ( - 5 ) THEN + 19 END - - 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT ALL - - 94 * CAST( MAX( ALL - 85 ) AS SIGNED ) * + - 76 AS col1
----
607240

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - - 94 * CAST ( MAX ( ALL - 85 ) AS INTEGER ) * + - 76 AS col1
----
607240

query I rowsort
SELECT - 1 * 9 * - 76 * - - 86 + + 72 AS col2
----
58896

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

query II rowsort
SELECT DISTINCT - + 44 * + 93 col1, + 11 col0
----
-4092
11

query I rowsort
SELECT - + 6 * - 2 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT + ( - 10 ) * + ( - CASE + 50 WHEN - + COUNT( - 52 ) * 94 / + + 11 THEN NULL WHEN - ( + 29 ) THEN NULL ELSE + - 45 END ) + - 79
----
-529

skipif mysql # not compatible
query I rowsort label-8084
SELECT + ( - 10 ) * + ( - CASE + 50 WHEN - + COUNT ( - 52 ) * 94 / + + 11 THEN NULL WHEN - ( + 29 ) THEN NULL ELSE + - 45 END ) + - 79
----
-529

query I rowsort
SELECT DISTINCT - + 52 * + - 76 - + - 65
----
4017

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8087
SELECT + - NULLIF ( 41, 35 ) DIV 72 + + 29 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8087
SELECT + - NULLIF ( 41, 35 ) / 72 + + 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL COUNT( * ) * + NULLIF ( - 18, - COUNT( * ) ) + + 68
----
50

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL COUNT ( * ) * + NULLIF ( - 18, - COUNT ( * ) ) + + 68
----
50

query I rowsort
SELECT DISTINCT + 40 * + 34 + - 99 * - + 95
----
10765

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT ALL 48 DIV - 10
----
-4

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL 48 / - 10
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8091
SELECT - 53 / - CASE 81 WHEN - 64 * 97 + - 60 + + + CAST( - 46 AS SIGNED ) * + - 3 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT - 53 / - CASE 81 WHEN - 64 * 97 + - 60 + + + CAST ( - 46 AS INTEGER ) * + - 3 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8092
SELECT + MIN( + - ( + + 11 ) ) DIV - 55 * - - 99 + - + 85
----
-85

skipif mysql # not compatible
query I rowsort label-8092
SELECT + MIN ( + - ( + + 11 ) ) / - 55 * - - 99 + - + 85
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8093
SELECT + 98 * - COUNT( * ) + - CAST( NULL AS SIGNED ) * - AVG ( ALL 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT + 98 * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - AVG ( ALL 38 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8094
SELECT + MIN( - 2 ), 29 * + 81 col1
----
-2
2349

skipif mysql # not compatible
query II rowsort label-8094
SELECT + MIN ( - 2 ), 29 * + 81 col1
----
-2
2349

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT + ( + + CASE 85 WHEN + 49 THEN - 70 + + + COUNT( * ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT + ( + + CASE 85 WHEN + 49 THEN - 70 + + + COUNT ( * ) ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT + 66 * + 84 + - COUNT( * )
----
5543

skipif mysql # not compatible
query I rowsort label-8096
SELECT + 66 * + 84 + - COUNT ( * )
----
5543

onlyif mysql # aggregate syntax: 
query II rowsort label-8097
SELECT ALL 88 * - ( - + 30 ) AS col0, + COUNT( * )
----
2640
1

skipif mysql # not compatible
query II rowsort label-8097
SELECT ALL 88 * - ( - + 30 ) AS col0, + COUNT ( * )
----
2640
1

query I rowsort
SELECT DISTINCT 23 * 22 * 81
----
40986

query I rowsort
SELECT - 46 + - 96 AS col0
----
-142

query I rowsort
SELECT + 16 * - - 3
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8101
SELECT + - 95 + - COUNT( * ) + CASE + + COALESCE ( - MIN( DISTINCT - - 66 ), - 72 ) WHEN + + COUNT( * ) THEN - + CASE - 89 WHEN ( - - ( + 66 ) ) THEN + NULLIF ( + - 92, + 89 + 57 + - 94 * NULLIF ( - 90, + 39 * + 14 + + 58 + - 90 ) ) + - CASE + 98 WHEN - 98 * - 60 THEN CAST( 75 AS DECIMAL ) WHEN - CAST( NULLIF ( 35, NULLIF ( COUNT( * ), + 98 ) ) AS SIGNED ) + - 66 THEN + 10 ELSE 52 + + 46 END END END + + COUNT( * ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT + - 95 + - COUNT ( * ) + CASE + + COALESCE ( - MIN ( DISTINCT - - 66 ), - 72 ) WHEN + + COUNT ( * ) THEN - + CASE - 89 WHEN ( - - ( + 66 ) ) THEN + NULLIF ( + - 92, + 89 + 57 + - 94 * NULLIF ( - 90, + 39 * + 14 + + 58 + - 90 ) ) + - CASE + 98 WHEN - 98 * - 60 THEN CAST ( 75 AS REAL ) WHEN - CAST ( NULLIF ( 35, NULLIF ( COUNT ( * ), + 98 ) ) AS INTEGER ) + - 66 THEN + 10 ELSE 52 + + 46 END END END + + COUNT ( * ) * 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8102
SELECT + + 27 * 77 + + 37 + + - 62 * ( - + 1 ) + + 32 + - 97 * - + 1 * COALESCE ( + NULLIF ( - 68, 23 ), - 18 * - + 9 DIV + - CASE SUM( + ( + 94 ) ) WHEN 29 THEN NULL ELSE + COUNT( * ) - - + 79 + - 26 * - 21 END - 92 ) + 20
----
-4366

skipif mysql # not compatible
query I rowsort label-8102
SELECT + + 27 * 77 + + 37 + + - 62 * ( - + 1 ) + + 32 + - 97 * - + 1 * COALESCE ( + NULLIF ( - 68, 23 ), - 18 * - + 9 / + - CASE SUM ( + ( + 94 ) ) WHEN 29 THEN NULL ELSE + COUNT ( * ) - - + 79 + - 26 * - 21 END - 92 ) + 20
----
-4366

query I rowsort
SELECT ALL + 15 - - 96 AS col0
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8104
SELECT ALL 71 DIV + - MIN( - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL 71 / + - MIN ( - 52 )
----
1

query I rowsort
SELECT ALL - 35 - - ( - 51 ) col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8106
SELECT ALL + 76 * + - COALESCE ( 36, + COUNT( * ) DIV 1 - - COUNT( * ) + - - 16 * 0 - - SUM( ALL - 41 ), - COALESCE ( 37, 82 ) )
----
-2736

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL + 76 * + - COALESCE ( 36, + COUNT ( * ) / 1 - - COUNT ( * ) + - - 16 * 0 - - SUM ( ALL - 41 ), - COALESCE ( 37, 82 ) )
----
-2736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT - + CASE + 44 WHEN + 40 * 16 / - 59 THEN NULL ELSE - ( + - COALESCE ( CAST( - 70 AS SIGNED ), - 73 ) ) + - COUNT( * ) * - - 26 - - - 16 - + - 96 END AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8107
SELECT - + CASE + 44 WHEN + 40 * 16 / - 59 THEN NULL ELSE - ( + - COALESCE ( CAST ( - 70 AS INTEGER ), - 73 ) ) + - COUNT ( * ) * - - 26 - - - 16 - + - 96 END AS col0
----
16

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

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

query I rowsort
SELECT - - 96 * - - CASE + 52 WHEN 73 THEN 61 ELSE + 95 END col0
----
9120

query I rowsort
SELECT DISTINCT + 32 * 18 AS col0
----
576

onlyif mysql # aggregate syntax: 
query II rowsort label-8111
SELECT ALL + + 55 * + COUNT( * ) AS col1, - COUNT( * ) AS col0
----
55
-1

skipif mysql # not compatible
query II rowsort label-8111
SELECT ALL + + 55 * + COUNT ( * ) AS col1, - COUNT ( * ) AS col0
----
55
-1

query I rowsort
SELECT ALL - - 92 * 83
----
7636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8113
SELECT - CAST( 50 AS SIGNED ) + + + COUNT( * ) * 76
----
26

skipif mysql # not compatible
query I rowsort label-8113
SELECT - CAST ( 50 AS INTEGER ) + + + COUNT ( * ) * 76
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT + - CAST( + 19 AS SIGNED ) * 94
----
-1786

skipif mysql # not compatible
query I rowsort label-8114
SELECT + - CAST ( + 19 AS INTEGER ) * 94
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT DISTINCT + MAX( ALL + + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT + MAX ( ALL + + 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8116
SELECT - CASE + + MAX( - - 67 ) WHEN 63 / COUNT( 12 ) + - CAST( NULL AS SIGNED ) * 70 * + 81 THEN - 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT - CASE + + MAX ( - - 67 ) WHEN 63 / COUNT ( 12 ) + - CAST ( NULL AS INTEGER ) * 70 * + 81 THEN - 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT - CAST( - - 7 AS SIGNED ) * + 31 * + 38
----
-8246

skipif mysql # not compatible
query I rowsort label-8117
SELECT - CAST ( - - 7 AS INTEGER ) * + 31 * + 38
----
-8246

query I rowsort
SELECT ALL - 50 + 32 * 58 col1
----
1806

query I rowsort
SELECT DISTINCT - 0 * NULLIF ( + 84, 92 * - 79 * + AVG ( ALL - 1 ) ) + + 93
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8120
SELECT ALL - 89 + + + 22 AS col1, - MAX( DISTINCT 15 )
----
-67
-15

skipif mysql # not compatible
query II rowsort label-8120
SELECT ALL - 89 + + + 22 AS col1, - MAX ( DISTINCT 15 )
----
-67
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT + SUM( + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8121
SELECT + SUM ( + 13 ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8122
SELECT DISTINCT 0 / ( + CAST( NULL AS SIGNED ) ) + + - NULLIF ( - - CASE - 87 WHEN + + CASE + 49 WHEN + - 12 THEN NULL ELSE + + MAX( ALL - - 64 ) + - 32 END + + - ( - + 34 ) - + + 34 THEN NULL WHEN + 60 THEN + CASE 69 WHEN - 1 - + + 57 * - 42 * - + 22 THEN - 64 + 94 WHEN + 40 - - ( + 77 ) THEN NULL WHEN CAST( 49 AS SIGNED ) * 37 THEN COUNT( * ) ELSE + 61 END END, + 41 ) * 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT 0 / ( + CAST ( NULL AS INTEGER ) ) + + - NULLIF ( - - CASE - 87 WHEN + + CASE + 49 WHEN + - 12 THEN NULL ELSE + + MAX ( ALL - - 64 ) + - 32 END + + - ( - + 34 ) - + + 34 THEN NULL WHEN + 60 THEN + CASE 69 WHEN - 1 - + + 57 * - 42 * - + 22 THEN - 64 + 94 WHEN + 40 - - ( + 77 ) THEN NULL WHEN CAST ( 49 AS INTEGER ) * 37 THEN COUNT ( * ) ELSE + 61 END END, + 41 ) * 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8123
SELECT - 13 * - MIN( 2 ) AS col1, - 22 * 19 AS col0
----
26
-418

skipif mysql # not compatible
query II rowsort label-8123
SELECT - 13 * - MIN ( 2 ) AS col1, - 22 * 19 AS col0
----
26
-418

query I rowsort
SELECT + 18 * - COALESCE ( + 5, - - 9, 65 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8125
SELECT CAST( NULL AS SIGNED ), 91 DIV 8 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-8125
SELECT CAST ( NULL AS INTEGER ), 91 / 8 AS col0
----
NULL
11

query I rowsort
SELECT + COALESCE ( - - 51, - 81 ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8127
SELECT + MIN( CAST( + 39 AS SIGNED ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8127
SELECT + MIN ( CAST ( + 39 AS INTEGER ) ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8128
SELECT ALL CAST( ( ( - 59 ) ) AS DECIMAL ) / + MAX( - 96 ) * COUNT( * ) * + 58 + - 47 + - + 50 + - + COUNT( * ) * - 56 + + 16 + + 0 * - + SUM( ALL 65 ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL CAST ( ( ( - 59 ) ) AS REAL ) / + MAX ( - 96 ) * COUNT ( * ) * + 58 + - 47 + - + 50 + - + COUNT ( * ) * - 56 + + 16 + + 0 * - + SUM ( ALL 65 ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - 21 * + 32
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL 12 / 17 * COUNT( * ) + - CASE 3 WHEN 78 THEN + 30 WHEN - 17 THEN NULL END + 85 / 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL 12 / 17 * COUNT ( * ) + - CASE 3 WHEN 78 THEN + 30 WHEN - 17 THEN NULL END + 85 / 46 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT ALL + 16 AS col2, + COUNT( - 85 ) AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-8132
SELECT ALL + 16 AS col2, + COUNT ( - 85 ) AS col0
----
16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL MIN( + + ( + - 79 ) ) * - ( + 94 ) - - + 6
----
7432

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL MIN ( + + ( + - 79 ) ) * - ( + 94 ) - - + 6
----
7432

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT SUM( - + 47 ) + - + 15
----
-62

skipif mysql # not compatible
query I rowsort label-8134
SELECT SUM ( - + 47 ) + - + 15
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT NULLIF ( - 82, + 39 + 43 ) - COUNT( * ) * - - 75 * + + 15 * - COUNT( * ) + + 1 AS col1
----
1044

skipif mysql # not compatible
query I rowsort label-8135
SELECT NULLIF ( - 82, + 39 + 43 ) - COUNT ( * ) * - - 75 * + + 15 * - COUNT ( * ) + + 1 AS col1
----
1044

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8136
SELECT AVG ( + 56 ) * - 12 - + CAST( NULL AS DECIMAL ) AS col1, CAST( NULL AS DECIMAL ) * + 22
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8136
SELECT AVG ( + 56 ) * - 12 - + CAST ( NULL AS REAL ) AS col1, CAST ( NULL AS REAL ) * + 22
----
NULL
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8139
SELECT + + COALESCE ( - 55, + 91 * 36 DIV - 71 + 0 + + 2 ) * + 35 * + 25 * - - 27 + - 31 - - 95 * - 44 + + 37 AS col1
----
-1303549

skipif mysql # not compatible
query I rowsort label-8139
SELECT + + COALESCE ( - 55, + 91 * 36 / - 71 + 0 + + 2 ) * + 35 * + 25 * - - 27 + - 31 - - 95 * - 44 + + 37 AS col1
----
-1303549

query II rowsort
SELECT ALL - + 55 AS col1, 82 * + 77 col2
----
-55
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT 60 * - 5 + + COUNT( * )
----
-299

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT 60 * - 5 + + COUNT ( * )
----
-299

query I rowsort
SELECT 33 * 83
----
2739

query I rowsort
SELECT ALL 78 * - 39
----
-3042

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

skipif mysql # not compatible
query II rowsort label-8144
SELECT DISTINCT 44 AS col1, COUNT ( * )
----
44
1

query I rowsort
SELECT DISTINCT + 78 * 94
----
7332

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

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

query I rowsort
SELECT ALL - 54 + 18
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT + 10 - CASE - 85 WHEN 46 THEN + CAST( + ( 29 ) AS SIGNED ) WHEN + + 87 + - ( - 49 ) * - 31 THEN - 43 END - + 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT + 10 - CASE - 85 WHEN 46 THEN + CAST ( + ( 29 ) AS INTEGER ) WHEN + + 87 + - ( - 49 ) * - 31 THEN - 43 END - + 7 col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT 89 + 68
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8151
SELECT DISTINCT + + 77 * - + CASE 20 WHEN - 30 * + + 46 * - - 82 THEN + 4 WHEN CAST( 94 AS SIGNED ) * - + 11 * + - 49 THEN NULL ELSE 96 END AS col1
----
-7392

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT + + 77 * - + CASE 20 WHEN - 30 * + + 46 * - - 82 THEN + 4 WHEN CAST ( 94 AS INTEGER ) * - + 11 * + - 49 THEN NULL ELSE 96 END AS col1
----
-7392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT - 37 DIV 13 DIV - - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8152
SELECT - 37 / 13 / - - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL - 2 * 80
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8154
SELECT ALL + 27 * MAX( 99 ) * - 47 + - - 37 + 68 - - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + COUNT( - 84 ) * + COUNT( * ) * + 42 + + CASE 28 WHEN - CASE + 66 WHEN + 13 * + 60 THEN - 33 WHEN 36 THEN NULL ELSE NULL END / + COALESCE ( + 35, + 55, - 19 ) / + MAX( DISTINCT + 74 ) THEN ( + 76 ) WHEN 92 / + 93 + - ( ( + 69 ) + + 29 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) * 5 END + 55 * 46 * + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL + 27 * MAX ( 99 ) * - 47 + - - 37 + 68 - - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + COUNT ( - 84 ) * + COUNT ( * ) * + 42 + + CASE 28 WHEN - CASE + 66 WHEN + 13 * + 60 THEN - 33 WHEN 36 THEN NULL ELSE NULL END / + COALESCE ( + 35, + 55, - 19 ) / + MAX ( DISTINCT + 74 ) THEN ( + 76 ) WHEN 92 / + 93 + - ( ( + 69 ) + + 29 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) * 5 END + 55 * 46 * + 3 AS col2
----
NULL

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

query I rowsort
SELECT ( - 5 ) + + 39 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT - CASE + 11 WHEN - 36 * + 1 + - + 40 THEN + 0 + + - 76 + + 4 WHEN - + COUNT( * ) THEN 70 END * + + ( - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - CASE + 11 WHEN - 36 * + 1 + - + 40 THEN + 0 + + - 76 + + 4 WHEN - + COUNT ( * ) THEN 70 END * + + ( - 19 )
----
NULL

query I rowsort
SELECT 0 + - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT ALL + 90 * - 4 * 63 * - COUNT( * ) * - 20
----
-453600

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL + 90 * - 4 * 63 * - COUNT ( * ) * - 20
----
-453600

onlyif mysql # aggregate syntax: 
query II rowsort label-8160
SELECT 71 * COUNT( * ) col0, - 85
----
71
-85

skipif mysql # not compatible
query II rowsort label-8160
SELECT 71 * COUNT ( * ) col0, - 85
----
71
-85

query I rowsort
SELECT DISTINCT + 81 * + + 2 AS col0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8162
SELECT ALL + CASE - ( + 57 ) WHEN + CAST( 55 AS SIGNED ) / 21 THEN NULL WHEN + CAST( NULL AS SIGNED ) / + 10 THEN NULL ELSE - + MIN( - 39 ) END * - - 15 AS col2
----
585

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + CASE - ( + 57 ) WHEN + CAST ( 55 AS INTEGER ) / 21 THEN NULL WHEN + CAST ( NULL AS INTEGER ) / + 10 THEN NULL ELSE - + MIN ( - 39 ) END * - - 15 AS col2
----
585

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

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

query I rowsort
SELECT DISTINCT + 45 - + 23 * + - 68 AS col0
----
1609

query I rowsort
SELECT DISTINCT + 72 * - - ( 4 ) AS col2
----
288

query I rowsort
SELECT - 92 * 84 col0
----
-7728

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

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

query I rowsort
SELECT + 1 - 63
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8169
SELECT 48 * - 56 DIV COUNT( * ) * + - 69 * + + 50 AS col0
----
9273600

skipif mysql # not compatible
query I rowsort label-8169
SELECT 48 * - 56 / COUNT ( * ) * + - 69 * + + 50 AS col0
----
9273600

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT + 28 + - 3 * + COUNT( * ) col1
----
25

skipif mysql # not compatible
query I rowsort label-8172
SELECT + 28 + - 3 * + COUNT ( * ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL - ( + 85 ) / - + CASE - 34 WHEN 69 THEN + ( + 58 ) WHEN + + ( COUNT( * ) ) / + COALESCE ( 56, + 15 + - 5 ) THEN + 28 - - 56 - - 79 - + - 96 + 32 + + 53 * - - 58 - 89 * 18 ELSE NULL END + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL - ( + 85 ) / - + CASE - 34 WHEN 69 THEN + ( + 58 ) WHEN + + ( COUNT ( * ) ) / + COALESCE ( 56, + 15 + - 5 ) THEN + 28 - - 56 - - 79 - + - 96 + 32 + + 53 * - - 58 - 89 * 18 ELSE NULL END + + 78
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8175
SELECT ALL 11 + - + 68 AS col0, 13 + + - 36 + - NULLIF ( 97, + 0 * COUNT( * ) * + 90 / - - COALESCE ( - + ( - ( + 53 ) ), - 8 - + 82, - 70 + - NULLIF ( - 37, - 1 ) ) ) * 6 * - + 74 + - 13 col1
----
-57
43032

skipif mysql # not compatible
query II rowsort label-8175
SELECT ALL 11 + - + 68 AS col0, 13 + + - 36 + - NULLIF ( 97, + 0 * COUNT ( * ) * + 90 / - - COALESCE ( - + ( - ( + 53 ) ), - 8 - + 82, - 70 + - NULLIF ( - 37, - 1 ) ) ) * 6 * - + 74 + - 13 col1
----
-57
43032

query I rowsort
SELECT 58 + + 25 * + 50 col1
----
1308

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT DISTINCT + 55 + + + 97 * + COUNT( DISTINCT 58 ) col2
----
152

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT + 55 + + + 97 * + COUNT ( DISTINCT 58 ) col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL COUNT( - - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL COUNT ( - - 29 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8179
SELECT ALL 39 + + COUNT( * ) col1, - 18
----
40
-18

skipif mysql # not compatible
query II rowsort label-8179
SELECT ALL 39 + + COUNT ( * ) col1, - 18
----
40
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT ALL + + 8 + + CAST( + 94 AS SIGNED ) col1
----
102

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL + + 8 + + CAST ( + 94 AS INTEGER ) col1
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8181
SELECT CAST( 11 AS SIGNED ), + 44 AS col2
----
11
44

skipif mysql # not compatible
query II rowsort label-8181
SELECT CAST ( 11 AS INTEGER ), + 44 AS col2
----
11
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8182
SELECT DISTINCT - COUNT( * ) + + 28 DIV - 94
----
-1

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT - COUNT ( * ) + + 28 / - 94
----
-1

query I rowsort
SELECT ALL + NULLIF ( + 99, 36 ) + 3
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT NULLIF ( - 8, COUNT( * ) - + - 3 * - - 18 ) + 37
----
29

skipif mysql # not compatible
query I rowsort label-8184
SELECT NULLIF ( - 8, COUNT ( * ) - + - 3 * - - 18 ) + 37
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8185
SELECT ALL CAST( NULL AS SIGNED ) * 14 AS col2, 33 + + 88
----
NULL
121

skipif mysql # not compatible
query II rowsort label-8185
SELECT ALL CAST ( NULL AS INTEGER ) * 14 AS col2, 33 + + 88
----
NULL
121

onlyif mysql # DIV for integer division: 
query I rowsort label-8186
SELECT + 44 + + - 71 + NULLIF ( 35, - 2 + 61 ) + - + 5 DIV ( + NULLIF ( - + 66, 37 ) ) col1
----
8

skipif mysql # not compatible
query I rowsort label-8186
SELECT + 44 + + - 71 + NULLIF ( 35, - 2 + 61 ) + - + 5 / ( + NULLIF ( - + 66, 37 ) ) col1
----
8

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

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + 81 + + + CAST ( - + 26 AS INTEGER )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT CAST( - 18 AS SIGNED ) + + 29
----
11

skipif mysql # not compatible
query I rowsort label-8188
SELECT CAST ( - 18 AS INTEGER ) + + 29
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL 1 + + ( + 5 ) / - - 67 * - - CASE COUNT( * ) WHEN + + 29 THEN - + 48 + - 47 ELSE NULL END * + 98 * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL 1 + + ( + 5 ) / - - 67 * - - CASE COUNT ( * ) WHEN + + 29 THEN - + 48 + - 47 ELSE NULL END * + 98 * - 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT 91 * 88 * ( - 37 ) DIV 40 + + 55 DIV + - 46
----
-7408

skipif mysql # not compatible
query I rowsort label-8190
SELECT 91 * 88 * ( - 37 ) / 40 + + 55 / + - 46
----
-7408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8191
SELECT ALL + 66 * + COUNT( * ) * - 39 AS col0, - CAST( + 18 AS SIGNED ) AS col2
----
-2574
-18

skipif mysql # not compatible
query II rowsort label-8191
SELECT ALL + 66 * + COUNT ( * ) * - 39 AS col0, - CAST ( + 18 AS INTEGER ) AS col2
----
-2574
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT ALL 65 - + COUNT( * ) * + - 72
----
137

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL 65 - + COUNT ( * ) * + - 72
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT - COALESCE ( + - 24, - 60, + 44, - 74 + + 90 + - - COUNT( * ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8193
SELECT - COALESCE ( + - 24, - 60, + 44, - 74 + + 90 + - - COUNT ( * ) ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL COUNT( * ) * - - 85 * 64
----
5440

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL COUNT ( * ) * - - 85 * 64
----
5440

query I rowsort
SELECT + ( + 55 ) - + + 59
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT CASE + 15 WHEN + 86 * - + 47 - + CASE - 42 WHEN + - 64 THEN - CASE + - 52 WHEN - 66 THEN + COUNT( + - 40 ) + + - 78 * + ( + COUNT( * ) ) ELSE NULL END - + + 67 * 55 END THEN NULL WHEN + MAX( DISTINCT - - 61 ) THEN 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT CASE + 15 WHEN + 86 * - + 47 - + CASE - 42 WHEN + - 64 THEN - CASE + - 52 WHEN - 66 THEN + COUNT ( + - 40 ) + + - 78 * + ( + COUNT ( * ) ) ELSE NULL END - + + 67 * 55 END THEN NULL WHEN + MAX ( DISTINCT - - 61 ) THEN 41 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( 55, + 10 )
----
55

query I rowsort
SELECT ALL 91 * 44 - + + COALESCE ( - ( - - 25 ), + + 98 * + - 8, + 95 + 50 * + 64 )
----
4029

query I rowsort
SELECT - 81 * + + 99
----
-8019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT CAST( - - 80 AS SIGNED ) * - 58 - 45
----
-4685

skipif mysql # not compatible
query I rowsort label-8200
SELECT CAST ( - - 80 AS INTEGER ) * - 58 - 45
----
-4685

query I rowsort
SELECT NULLIF ( - 39, - ( - 27 ) + 10 + + 68 / 49 )
----
-39

query I rowsort
SELECT DISTINCT 58 * + 50 AS col1
----
2900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT ALL + CASE - + COALESCE ( - CASE - COALESCE ( 95, 64 ) WHEN + - ( + 79 ) * + + COUNT( * ) + - 98 + CASE + 81 WHEN + 10 * COUNT( * ) * + CASE COUNT( * ) WHEN 28 + + 19 THEN 65 WHEN - 0 - - MIN( ALL + 35 ) + 60 + + 98 * - 84 * 35 * - 13 THEN 85 END * + ( 50 ) + 28 * 72 THEN NULL ELSE CAST( NULL AS SIGNED ) + 19 END + - ( ( + 39 ) ) * SUM( 68 ) THEN + 40 + - 30 / - 68 END, - 47 ) WHEN + COUNT( * ) * - 56 + - 23 * 82 THEN 80 WHEN 77 / 30 + - 28 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + CASE - + COALESCE ( - CASE - COALESCE ( 95, 64 ) WHEN + - ( + 79 ) * + + COUNT ( * ) + - 98 + CASE + 81 WHEN + 10 * COUNT ( * ) * + CASE COUNT ( * ) WHEN 28 + + 19 THEN 65 WHEN - 0 - - MIN ( ALL + 35 ) + 60 + + 98 * - 84 * 35 * - 13 THEN 85 END * + ( 50 ) + 28 * 72 THEN NULL ELSE CAST ( NULL AS INTEGER ) + 19 END + - ( ( + 39 ) ) * SUM ( 68 ) THEN + 40 + - 30 / - 68 END, - 47 ) WHEN + COUNT ( * ) * - 56 + - 23 * 82 THEN 80 WHEN 77 / 30 + - 28 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 87 * 90 AS col1
----
-7830

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT SUM( - COALESCE ( 6, + 85 * + 54, + 66 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-8205
SELECT SUM ( - COALESCE ( 6, + 85 * + 54, + 66 ) )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8206
SELECT ALL + + CASE 70 WHEN - 74 THEN - - 65 + + - CASE - 59 WHEN - 27 + - COUNT( * ) THEN - 7 WHEN - 83 THEN + 63 END END, 67 AS col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-8206
SELECT ALL + + CASE 70 WHEN - 74 THEN - - 65 + + - CASE - 59 WHEN - 27 + - COUNT ( * ) THEN - 7 WHEN - 83 THEN + 63 END END, 67 AS col2
----
NULL
67

query I rowsort
SELECT + - 72 * - 75 * 36
----
194400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8208
SELECT 9 * - + 14 * + 82 * - 40 - COUNT( - 32 ) - + 91 + - + 4 DIV + 6 AS col2
----
413188

skipif mysql # not compatible
query I rowsort label-8208
SELECT 9 * - + 14 * + 82 * - 40 - COUNT ( - 32 ) - + 91 + - + 4 / + 6 AS col2
----
413188

onlyif mysql # DIV for integer division: 
query I rowsort label-8209
SELECT ALL + + 85 * + 0 DIV - 15 * 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL + + 85 * + 0 / - 15 * 41 AS col1
----
0

query I rowsort
SELECT - 26 * + 16 * - - 66 + + 49 AS col0
----
-27407

query I rowsort
SELECT ALL + 92 * + - 77 * + + 61 + + 4
----
-432120

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + - SUM( + 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8212
SELECT + - SUM ( + 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL - 78 * 41 + - MAX( DISTINCT 0 ) AS col0
----
-3198

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - 78 * 41 + - MAX ( DISTINCT 0 ) AS col0
----
-3198

query II rowsort
SELECT ALL + - 23 col1, 86 * + 90
----
-23
7740

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8215
SELECT - - 57 DIV - - 6 DIV - 1 AS col0, CAST( - - 29 AS SIGNED )
----
-9
29

skipif mysql # not compatible
query II rowsort label-8215
SELECT - - 57 / - - 6 / - 1 AS col0, CAST ( - - 29 AS INTEGER )
----
-9
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8216
SELECT ALL - SUM( ALL + 52 ) + + 80, - 4 col0
----
28
-4

skipif mysql # not compatible
query II rowsort label-8216
SELECT ALL - SUM ( ALL + 52 ) + + 80, - 4 col0
----
28
-4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8217
SELECT - CASE - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) WHEN + - 1 + 68 * + 90 THEN NULL WHEN 54 + + + 48 DIV - + 63 THEN + - 9 ELSE NULL END AS col1, 24 DIV - 28
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8217
SELECT - CASE - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) WHEN + - 1 + 68 * + 90 THEN NULL WHEN 54 + + + 48 / - + 63 THEN + - 9 ELSE NULL END AS col1, 24 / - 28
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT ALL - 71 + + 52 + + COUNT( * ), NULLIF ( - 16, 70 ) AS col1
----
-18
-16

skipif mysql # not compatible
query II rowsort label-8218
SELECT ALL - 71 + + 52 + + COUNT ( * ), NULLIF ( - 16, 70 ) AS col1
----
-18
-16

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

skipif mysql # not compatible
query I rowsort label-8219
SELECT + COUNT ( * ) / + - 63 AS col0
----
0

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

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

query I rowsort
SELECT ALL + 10 + - 63 * - - 60 AS col1
----
-3770

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT DISTINCT - 52 DIV - 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT - 52 / - 66 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8223
SELECT - 95 - CAST( - + 42 AS SIGNED ) - + - 33 * - 50
----
-1703

skipif mysql # not compatible
query I rowsort label-8223
SELECT - 95 - CAST ( - + 42 AS INTEGER ) - + - 33 * - 50
----
-1703

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT - COALESCE ( - COUNT( * ), - ( 51 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8224
SELECT - COALESCE ( - COUNT ( * ), - ( 51 ) )
----
1

query I rowsort
SELECT ALL 39 * - 72
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL + 25 - 9 + - SUM( + + ( - 98 ) ) - 53
----
61

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + 25 - 9 + - SUM ( + + ( - 98 ) ) - 53
----
61

query I rowsort
SELECT ALL ( ( - 94 ) )
----
-94

query I rowsort
SELECT DISTINCT + 7 * 76 AS col1
----
532

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8230
SELECT + CAST( + + 11 AS DECIMAL ) - + 15 + - 85 * + CASE WHEN NOT NULL IS NULL THEN COUNT( * ) END * 98 + - + 65 / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT + CAST ( + + 11 AS REAL ) - + 15 + - 85 * + CASE WHEN NOT NULL IS NULL THEN COUNT ( * ) END * 98 + - + 65 / 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8231
SELECT ALL 59 * - + MIN( ALL + + CASE WHEN NOT 91 IS NULL THEN NULL WHEN NOT - 20 > + - 28 THEN 23 + 49 - - 27 * CAST( NULL AS SIGNED ) + + 28 * - 27 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL 59 * - + MIN ( ALL + + CASE WHEN NOT 91 IS NULL THEN NULL WHEN NOT - 20 > + - 28 THEN 23 + 49 - - 27 * CAST ( NULL AS INTEGER ) + + 28 * - 27 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT - 24 + - - 74 DIV + - 80 * + 12 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8232
SELECT - 24 + - - 74 / + - 80 * + 12 AS col2
----
-24

query I rowsort
SELECT + 29 - 19
----
10

query I rowsort
SELECT + 6 + + - 45 col1
----
-39

query I rowsort
SELECT + 17 * 43 AS col2
----
731

query I rowsort
SELECT + 23 * - - 95 AS col0
----
2185

query I rowsort
SELECT + 82 + + 11
----
93

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

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

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

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

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

query I rowsort
SELECT ( - - CASE + 24 WHEN + 53 THEN NULL WHEN + - 63 THEN 85 END ) * + 82 + 62 / - 65 AS col2
----
NULL

query II rowsort
SELECT + 87 * + 66, + 59 + - - 40 col2
----
5742
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT - 49 DIV - 17 + + 23
----
25

skipif mysql # not compatible
query I rowsort label-8243
SELECT - 49 / - 17 + + 23
----
25

query I rowsort
SELECT DISTINCT 10 / CASE - + 91 WHEN 12 THEN + 49 END
----
NULL

query II rowsort
SELECT ALL + 51 col2, 32 AS col1
----
51
32

query I rowsort
SELECT ALL 45 * 4
----
180

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8247
SELECT + 57 * - + ( + CAST( NULL AS DECIMAL ) ) / + 32 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT + 57 * - + ( + CAST ( NULL AS REAL ) ) / + 32 * - 24
----
NULL

query II rowsort
SELECT + 27 * 68, - 18 * - 13 AS col2
----
1836
234

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT ALL - - 72 DIV - 64 + 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - - 72 / - 64 + 23 AS col2
----
22

query II rowsort
SELECT + 57 AS col1, + 37 AS col1
----
57
37

query II rowsort
SELECT ALL + 98 AS col1, 85 AS col0
----
98
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8252
SELECT + - 61 + - 0, + COUNT( * ) col0
----
-61
1

skipif mysql # not compatible
query II rowsort label-8252
SELECT + - 61 + - 0, + COUNT ( * ) col0
----
-61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT - + ( + - 32 ) + COUNT( DISTINCT CASE + 69 WHEN + + ( - + 53 ) THEN + + 38 WHEN - 85 * + 77 + - ( - 52 ) THEN NULL END ) + 42
----
74

skipif mysql # not compatible
query I rowsort label-8253
SELECT - + ( + - 32 ) + COUNT ( DISTINCT CASE + 69 WHEN + + ( - + 53 ) THEN + + 38 WHEN - 85 * + 77 + - ( - 52 ) THEN NULL END ) + 42
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL - 59 * - 24 * - 93 * + 32 + + MIN( DISTINCT - 62 ) AS col0
----
-4214078

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL - 59 * - 24 * - 93 * + 32 + + MIN ( DISTINCT - 62 ) AS col0
----
-4214078

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL + CASE 96 WHEN COUNT( * ) THEN COUNT( * ) + - + 50 WHEN + - 16 - 56 THEN + COUNT( * ) + 91 ELSE 92 END col0
----
92

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + CASE 96 WHEN COUNT ( * ) THEN COUNT ( * ) + - + 50 WHEN + - 16 - 56 THEN + COUNT ( * ) + 91 ELSE 92 END col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT - CASE - 65 WHEN + - MAX( + 47 ) THEN + 19 WHEN 19 THEN + 93 WHEN + + 58 + - + ( 92 ) THEN - 45 * + 80 * - 26 ELSE + 96 * + 84 + + 8 + 72 END + - 6 + 75 * - 8 * + COALESCE ( - COUNT( * ), + + 1 ) AS col1
----
-7550

skipif mysql # not compatible
query I rowsort label-8256
SELECT - CASE - 65 WHEN + - MAX ( + 47 ) THEN + 19 WHEN 19 THEN + 93 WHEN + + 58 + - + ( 92 ) THEN - 45 * + 80 * - 26 ELSE + 96 * + 84 + + 8 + 72 END + - 6 + 75 * - 8 * + COALESCE ( - COUNT ( * ), + + 1 ) AS col1
----
-7550

onlyif mysql # aggregate syntax: 
query II rowsort label-8257
SELECT + 64, - 26 * COUNT( * ) + - - 2 AS col2
----
64
-24

skipif mysql # not compatible
query II rowsort label-8257
SELECT + 64, - 26 * COUNT ( * ) + - - 2 AS col2
----
64
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL COUNT( * ) * SUM( ALL + + 96 ) - - - 7 * + 43 + COALESCE ( - 20, - 18 ) - + 63 * + 77
----
-5076

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL COUNT ( * ) * SUM ( ALL + + 96 ) - - - 7 * + 43 + COALESCE ( - 20, - 18 ) - + 63 * + 77
----
-5076

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + + COUNT( * ) + - 91 - + - 77 - + 30 * - + 66 - + 41 * + - 94 * + 99
----
383513

skipif mysql # not compatible
query I rowsort label-8259
SELECT + + COUNT ( * ) + - 91 - + - 77 - + 30 * - + 66 - + 41 * + - 94 * + 99
----
383513

onlyif mysql # DIV for integer division: 
query II rowsort label-8260
SELECT - - 59 col0, + 14 DIV + 65
----
59
0

skipif mysql # not compatible
query II rowsort label-8260
SELECT - - 59 col0, + 14 / + 65
----
59
0

query I rowsort
SELECT - 40 + 3 * + 80 * + 29 - - + 2 AS col2
----
6922

query II rowsort
SELECT - CASE 30 WHEN - + 61 THEN 32 END col1, 40 AS col0
----
NULL
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8263
SELECT DISTINCT 70 AS col0, 45 - + COUNT( * ) + - COUNT( * )
----
70
43

skipif mysql # not compatible
query II rowsort label-8263
SELECT DISTINCT 70 AS col0, 45 - + COUNT ( * ) + - COUNT ( * )
----
70
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8264
SELECT - + MIN( ALL 24 ) + CAST( COUNT( * ) AS SIGNED ) + + ( - 72 ) * + ( + + SUM( DISTINCT + 1 ) ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8264
SELECT - + MIN ( ALL 24 ) + CAST ( COUNT ( * ) AS INTEGER ) + + ( - 72 ) * + ( + + SUM ( DISTINCT + 1 ) ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL ( - 92 ) * - CASE 84 WHEN + 14 / - + 86 - 65 * 16 THEN + 49 / - NULLIF ( - 13, - 98 - - COUNT( * ) ) * + ( 96 ) * AVG ( - 93 ) ELSE NULL END * + 75 - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL ( - 92 ) * - CASE 84 WHEN + 14 / - + 86 - 65 * 16 THEN + 49 / - NULLIF ( - 13, - 98 - - COUNT ( * ) ) * + ( 96 ) * AVG ( - 93 ) ELSE NULL END * + 75 - - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8266
SELECT 84 * COUNT( * ), CAST( + + 21 AS SIGNED ) + 47 + + 79 * - 69 col1
----
84
-5383

skipif mysql # not compatible
query II rowsort label-8266
SELECT 84 * COUNT ( * ), CAST ( + + 21 AS INTEGER ) + 47 + + 79 * - 69 col1
----
84
-5383

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

skipif mysql # not compatible
query I rowsort label-8267
SELECT 90 + - - COUNT ( * ) * 59 AS col2
----
149

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

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

query I rowsort
SELECT 71 * - 64
----
-4544

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT ALL - 31 DIV + COALESCE ( + 57, - 36 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - 31 / + COALESCE ( + 57, - 36 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT 16 DIV + 85 * + - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8271
SELECT 16 / + 85 * + - 39 AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT 23 * - 75 AS col2
----
-1725

onlyif mysql # aggregate syntax: 
query II rowsort label-8274
SELECT 9 * 14 AS col0, COUNT( * ) AS col1
----
126
1

skipif mysql # not compatible
query II rowsort label-8274
SELECT 9 * 14 AS col0, COUNT ( * ) AS col1
----
126
1

query I rowsort
SELECT ALL 58 * - ( + 87 ) * - + 87
----
439002

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT 99 + MIN( - 40 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8276
SELECT 99 + MIN ( - 40 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT + 10 * - 71 - COUNT( * ) col1
----
-711

skipif mysql # not compatible
query I rowsort label-8277
SELECT + 10 * - 71 - COUNT ( * ) col1
----
-711

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT - 47 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-8278
SELECT - 47 / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT DISTINCT - 84 + 80 * COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT - 84 + 80 * COUNT ( * )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8280
SELECT DISTINCT 87 + CAST( NULL AS DECIMAL ) * - + MAX( DISTINCT 49 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT 87 + CAST ( NULL AS REAL ) * - + MAX ( DISTINCT 49 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8281
SELECT DISTINCT COUNT( * ) + 55 AS col1, + 35 + - 34 col1
----
56
1

skipif mysql # not compatible
query II rowsort label-8281
SELECT DISTINCT COUNT ( * ) + 55 AS col1, + 35 + - 34 col1
----
56
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT ALL 44 DIV + 77 * - 72 DIV - 35 col2
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL 44 / + 77 * - 72 / - 35 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL 71 * - - COUNT( * ) * 83 AS col2
----
5893

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL 71 * - - COUNT ( * ) * 83 AS col2
----
5893

query I rowsort
SELECT 82 * 32 * - 26
----
-68224

query I rowsort
SELECT DISTINCT - - 89 col0
----
89

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT ALL + 19 DIV - 16 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + 19 / - 16 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT + + COALESCE ( + 54, - - MIN( + 31 ) )
----
54

skipif mysql # not compatible
query I rowsort label-8288
SELECT + + COALESCE ( + 54, - - MIN ( + 31 ) )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8289
SELECT DISTINCT - - CAST( + + 13 AS SIGNED ), - COUNT( * ) + + 93 col1
----
13
92

skipif mysql # not compatible
query II rowsort label-8289
SELECT DISTINCT - - CAST ( + + 13 AS INTEGER ), - COUNT ( * ) + + 93 col1
----
13
92

onlyif mysql # aggregate syntax: 
query III rowsort label-8290
SELECT 82 * - 33 AS col1, - 53 AS col1, + + 9 + + MAX( ALL + - 94 ) * + 66 AS col1
----
-2706
-53
-6195

skipif mysql # not compatible
query III rowsort label-8290
SELECT 82 * - 33 AS col1, - 53 AS col1, + + 9 + + MAX ( ALL + - 94 ) * + 66 AS col1
----
-2706
-53
-6195

query II rowsort
SELECT 6 AS col1, - 93 col1
----
6
-93

query I rowsort
SELECT 64 + 6 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8293
SELECT 71 * CAST( NULL AS SIGNED ) * - 71 AS col2, + NULLIF ( - - 93, + 74 ) * 60 + + 39 DIV - 36 - - 59
----
NULL
5638

skipif mysql # not compatible
query II rowsort label-8293
SELECT 71 * CAST ( NULL AS INTEGER ) * - 71 AS col2, + NULLIF ( - - 93, + 74 ) * 60 + + 39 / - 36 - - 59
----
NULL
5638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8294
SELECT CAST( - + 18 AS SIGNED ) + - - 98 DIV + COALESCE ( + 2, + - COUNT( * ) + - 37 + + MIN( ALL + - 98 ) * COUNT( * ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8294
SELECT CAST ( - + 18 AS INTEGER ) + - - 98 / + COALESCE ( + 2, + - COUNT ( * ) + - 37 + + MIN ( ALL + - 98 ) * COUNT ( * ) ) AS col0
----
31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8296
SELECT SUM( - - 30 ) * - 57 * - - 95 + + 28 + + + CASE + + 29 WHEN 86 / - 3 / CASE + COUNT( DISTINCT 95 ) WHEN - + 91 THEN - 84 WHEN - ( 83 ) / 51 + + 0 + + 33 THEN NULL ELSE NULL END THEN NULL WHEN - + 63 - - + 51 THEN - 1 * - COUNT( * ) - + + 5 - 13 - - COALESCE ( - COALESCE ( + - COALESCE ( SUM( ALL 29 ), 31 + 50 / ( 87 * 17 + 62 ), 1 * NULLIF ( - 75, 54 ) ), - 17 / 88, 49 * 3, 9 ), - 21 ) + - CAST( NULL AS SIGNED ) * 30 / 44 END * + 3 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT SUM ( - - 30 ) * - 57 * - - 95 + + 28 + + + CASE + + 29 WHEN 86 / - 3 / CASE + COUNT ( DISTINCT 95 ) WHEN - + 91 THEN - 84 WHEN - ( 83 ) / 51 + + 0 + + 33 THEN NULL ELSE NULL END THEN NULL WHEN - + 63 - - + 51 THEN - 1 * - COUNT ( * ) - + + 5 - 13 - - COALESCE ( - COALESCE ( + - COALESCE ( SUM ( ALL 29 ), 31 + 50 / ( 87 * 17 + 62 ), 1 * NULLIF ( - 75, 54 ) ), - 17 / 88, 49 * 3, 9 ), - 21 ) + - CAST ( NULL AS INTEGER ) * 30 / 44 END * + 3 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8297
SELECT 19 * + - ( + 10 ) * 26 + - 86 DIV + - 99, - 99 + + + COALESCE ( - - COUNT( * ), - NULLIF ( + + 78, - 26 ) * - + 4 ) AS col0
----
-4940
-98

skipif mysql # not compatible
query II rowsort label-8297
SELECT 19 * + - ( + 10 ) * 26 + - 86 / + - 99, - 99 + + + COALESCE ( - - COUNT ( * ), - NULLIF ( + + 78, - 26 ) * - + 4 ) AS col0
----
-4940
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8298
SELECT 90 + + 69 DIV 41 + 32 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-8298
SELECT 90 + + 69 / 41 + 32 AS col0
----
123

query I rowsort
SELECT ALL 0 * - 84 AS col1
----
0

query I rowsort
SELECT 99 + - + 70
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT 35 * - COUNT( * ) * + - 91 * 51 AS col1
----
162435

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT 35 * - COUNT ( * ) * + - 91 * 51 AS col1
----
162435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8302
SELECT DISTINCT 94 + - ( CAST( NULL AS SIGNED ) ) * + 16 * - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT 94 + - ( CAST ( NULL AS INTEGER ) ) * + 16 * - 5 AS col1
----
NULL

query I rowsort
SELECT 18 + + 86 AS col0
----
104

query I rowsort
SELECT ALL - 73 + + 54
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT + COALESCE ( - 46, COUNT( * ), - - 90 * + + 96, + 73 ) + + + COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT + COALESCE ( - 46, COUNT ( * ), - - 90 * + + 96, + 73 ) + + + COUNT ( * ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT 34 - + 50 + 87 + - SUM( ALL - 59 ) col1
----
130

skipif mysql # not compatible
query I rowsort label-8306
SELECT 34 - + 50 + 87 + - SUM ( ALL - 59 ) col1
----
130

query I rowsort
SELECT 8 * - 73 AS col1
----
-584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8308
SELECT 44 + - COUNT( * ) / - - CASE - 33 WHEN - COUNT( * ) THEN - CAST( - 23 AS SIGNED ) + + + 86 END + - - 97 + - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT 44 + - COUNT ( * ) / - - CASE - 33 WHEN - COUNT ( * ) THEN - CAST ( - 23 AS INTEGER ) + + + 86 END + - - 97 + - + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT + CASE - - NULLIF ( 44, - 91 * - ( 61 ) + - 92 ) WHEN - + 18 * + - 67 + + 4 + - COUNT( * ) THEN - COUNT( * ) WHEN - COUNT( * ) + 87 + - + NULLIF ( - 37, + ( + + COUNT( * ) ) + - 29 * + 90 * COALESCE ( - AVG ( - 18 ), 1 * - - 78 ) + + 58 ) THEN - 17 WHEN + CASE - 52 WHEN ( MAX( 73 ) ) THEN + 5 + 15 * COUNT( * ) END THEN 80 * + 78 ELSE NULL END / - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT + CASE - - NULLIF ( 44, - 91 * - ( 61 ) + - 92 ) WHEN - + 18 * + - 67 + + 4 + - COUNT ( * ) THEN - COUNT ( * ) WHEN - COUNT ( * ) + 87 + - + NULLIF ( - 37, + ( + + COUNT ( * ) ) + - 29 * + 90 * COALESCE ( - AVG ( - 18 ), 1 * - - 78 ) + + 58 ) THEN - 17 WHEN + CASE - 52 WHEN ( MAX ( 73 ) ) THEN + 5 + 15 * COUNT ( * ) END THEN 80 * + 78 ELSE NULL END / - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8310
SELECT ALL COUNT( * ) AS col0, + ( + - NULLIF ( 36, AVG ( ALL - - ( 79 ) ) ) ) AS col0
----
1
-36

skipif mysql # not compatible
query II rowsort label-8310
SELECT ALL COUNT ( * ) AS col0, + ( + - NULLIF ( 36, AVG ( ALL - - ( 79 ) ) ) ) AS col0
----
1
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-8311
SELECT 27 AS col0, - MIN( 59 ) AS col2
----
27
-59

skipif mysql # not compatible
query II rowsort label-8311
SELECT 27 AS col0, - MIN ( 59 ) AS col2
----
27
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT + 83 * - 65 * + 12 * - 25 + - 45 + - 79 + 96 * 34, COUNT( * ) * + 54 + - 77 AS col2
----
1621640
-23

skipif mysql # not compatible
query II rowsort label-8312
SELECT + 83 * - 65 * + 12 * - 25 + - 45 + - 79 + 96 * 34, COUNT ( * ) * + 54 + - 77 AS col2
----
1621640
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8313
SELECT ALL + MAX( + 36 ) * + - 36 - - ( + SUM( 48 ) ) + - + COUNT( - CAST( + 46 AS DECIMAL ) ) AS col0
----
-1249

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + MAX ( + 36 ) * + - 36 - - ( + SUM ( 48 ) ) + - + COUNT ( - CAST ( + 46 AS REAL ) ) AS col0
----
-1249

query I rowsort
SELECT NULLIF ( ( + 17 ), + + 59 ) AS col0
----
17

query I rowsort
SELECT 97 * 99
----
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT COUNT( * ) * COUNT( 92 ) * - 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8316
SELECT COUNT ( * ) * COUNT ( 92 ) * - 71 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8317
SELECT ALL - - MAX( ALL + CASE 87 WHEN CAST( - ( + 57 ) AS DECIMAL ) THEN 89 WHEN + 78 * + - 57 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - - MAX ( ALL + CASE 87 WHEN CAST ( - ( + 57 ) AS REAL ) THEN 89 WHEN + 78 * + - 57 THEN NULL END )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-8318
SELECT ALL - 86, COUNT ( * ) AS col0
----
-86
1

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

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

query I rowsort
SELECT 20 + - - ( + 28 ) * 61
----
1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8321
SELECT ALL + - 19 AS col2, COUNT( * ) * - 34 * - - 47 * - + CAST( CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1
----
-19
1598

skipif mysql # not compatible
query II rowsort label-8321
SELECT ALL + - 19 AS col2, COUNT ( * ) * - 34 * - - 47 * - + CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1
----
-19
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT DISTINCT - 40 * COUNT( ALL - 98 ) * COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT - 40 * COUNT ( ALL - 98 ) * COUNT ( * )
----
-40

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8324
SELECT + 2 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-8324
SELECT + 2 / 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT - + COUNT( * ) * - - 39 + + COUNT( * ) + - CASE 59 WHEN + + 62 + 43 THEN COUNT( * ) WHEN + - 95 THEN + 29 - 40 WHEN + 80 THEN + 89 * - 27 + - 39 + + - 7 ELSE + - 68 END AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8325
SELECT - + COUNT ( * ) * - - 39 + + COUNT ( * ) + - CASE 59 WHEN + + 62 + 43 THEN COUNT ( * ) WHEN + - 95 THEN + 29 - 40 WHEN + 80 THEN + 89 * - 27 + - 39 + + - 7 ELSE + - 68 END AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8326
SELECT + ( + 6 ) DIV + ( + - ( + 19 ) ) * - 72 + - 79
----
-79

skipif mysql # not compatible
query I rowsort label-8326
SELECT + ( + 6 ) / + ( + - ( + 19 ) ) * - 72 + - 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT - 83 + + 30 * - 77 + COUNT( ALL - + 81 ) AS col2
----
-2392

skipif mysql # not compatible
query I rowsort label-8327
SELECT - 83 + + 30 * - 77 + COUNT ( ALL - + 81 ) AS col2
----
-2392

query I rowsort
SELECT ALL 0 * ( 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL 59 * - COUNT( ALL 22 ) * - 68 + 24 + MAX( ALL 61 ) * + COUNT( ALL + 85 ) col0
----
4097

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL 59 * - COUNT ( ALL 22 ) * - 68 + 24 + MAX ( ALL 61 ) * + COUNT ( ALL + 85 ) col0
----
4097

query I rowsort
SELECT DISTINCT ( 38 ) + 0 + - 21 AS col0
----
17

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

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

query I rowsort
SELECT ALL CASE 74 WHEN + 92 THEN + - 80 + + 87 END + + 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8333
SELECT - NULLIF ( ( + ( 36 ) ), CASE WHEN NOT - 8 NOT BETWEEN - + ( + - 40 ) AND - COUNT( * ) + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) / MIN( ALL 34 ) * + 9 + COUNT( * ) THEN + SUM( + 83 ) ELSE 11 END )
----
-36

skipif mysql # not compatible
query I rowsort label-8333
SELECT - NULLIF ( ( + ( 36 ) ), CASE WHEN NOT - 8 NOT BETWEEN - + ( + - 40 ) AND - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) / MIN ( ALL 34 ) * + 9 + COUNT ( * ) THEN + SUM ( + 83 ) ELSE 11 END )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8334
SELECT - 40 + NULLIF ( + COUNT( * ), + - 91 * - + CAST( NULL AS DECIMAL ) - + - 35 ) * + 32 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8334
SELECT - 40 + NULLIF ( + COUNT ( * ), + - 91 * - + CAST ( NULL AS REAL ) - + - 35 ) * + 32 AS col1
----
-8

query I rowsort
SELECT - 17 + - - 14 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL 22 + + 16 * - COUNT( * ) * + - 26 + - 73 * + + 9 * 14
----
-8760

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL 22 + + 16 * - COUNT ( * ) * + - 26 + - 73 * + + 9 * 14
----
-8760

query I rowsort
SELECT DISTINCT CASE - 19 WHEN - - 55 - + 82 / + 32 + + + 15 + 69 * + - 53 THEN + ( 83 ) + + NULLIF ( - 70, + AVG ( - 17 ) * 30 * + 88 ) ELSE - - 57 END * - 34
----
-1938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT - 93 + + CAST( - 67 AS SIGNED ) * - 62
----
4061

skipif mysql # not compatible
query I rowsort label-8338
SELECT - 93 + + CAST ( - 67 AS INTEGER ) * - 62
----
4061

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8339
SELECT + 4 * - + CAST( NULL AS SIGNED ) * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT + 4 * - + CAST ( NULL AS INTEGER ) * 62
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8340
SELECT - ( - + SUM( ALL + - ( COALESCE ( 62, - 11 + + 35 ) ) ) ) col0, 39 + + - 28 - 0
----
-62
11

skipif mysql # not compatible
query II rowsort label-8340
SELECT - ( - + SUM ( ALL + - ( COALESCE ( 62, - 11 + + 35 ) ) ) ) col0, 39 + + - 28 - 0
----
-62
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT DISTINCT NULLIF ( + 35, - - 3 ) * + + CAST( + 78 AS SIGNED ) / CAST( + 5 AS SIGNED ) + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT NULLIF ( + 35, - - 3 ) * + + CAST ( + 78 AS INTEGER ) / CAST ( + 5 AS INTEGER ) + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL CASE - + ( - + MAX( ALL 9 ) ) WHEN + COUNT( * ) * - 0 + + - CASE 61 WHEN + ( + 90 ) + 93 THEN NULL ELSE 58 END THEN - - 6 / - 91 WHEN 10 / - + 18 THEN NULL WHEN + 14 * + 60 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL CASE - + ( - + MAX ( ALL 9 ) ) WHEN + COUNT ( * ) * - 0 + + - CASE 61 WHEN + ( + 90 ) + 93 THEN NULL ELSE 58 END THEN - - 6 / - 91 WHEN 10 / - + 18 THEN NULL WHEN + 14 * + 60 THEN NULL ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8343
SELECT - - MAX ( ALL 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + - COUNT( * ) + + 65 col2
----
64

skipif mysql # not compatible
query I rowsort label-8344
SELECT + - COUNT ( * ) + + 65 col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT - + NULLIF ( - + 30, + 33 ) * COUNT( * ) + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8345
SELECT - + NULLIF ( - + 30, + 33 ) * COUNT ( * ) + COUNT ( * ) AS col2
----
31

query II rowsort
SELECT + + ( + 60 ) * ( + 12 ) AS col0, + 95
----
720
95

query I rowsort
SELECT + 18 * + 0 + - 58
----
-58

query I rowsort
SELECT - - 49 * + + 27
----
1323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8349
SELECT DISTINCT + COUNT( DISTINCT NULLIF ( 55, + 92 DIV - + CAST( NULL AS SIGNED ) ) ) DIV - + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT + COUNT ( DISTINCT NULLIF ( 55, + 92 / - + CAST ( NULL AS INTEGER ) ) ) / - + 79 AS col0
----
0

query I rowsort
SELECT - COALESCE ( 20, 14 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT 88 / + 41 - + + COUNT( * ) + + ( - 33 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8351
SELECT 88 / + 41 - + + COUNT ( * ) + + ( - 33 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8352
SELECT DISTINCT - + 92 DIV - + 30 + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT - + 92 / - + 30 + + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - CASE + 33 WHEN - CASE - + 10 WHEN 95 + CASE + - COUNT( * ) WHEN + 47 + + 75 + 3 + 96 - + 35 THEN NULL ELSE - 31 END THEN + 56 ELSE - + 11 - - 23 END THEN NULL WHEN + 81 * + - 98 + - 90 - - - SUM( + - 98 ) THEN NULL ELSE - 42 END - 25
----
17

skipif mysql # not compatible
query I rowsort label-8353
SELECT - CASE + 33 WHEN - CASE - + 10 WHEN 95 + CASE + - COUNT ( * ) WHEN + 47 + + 75 + 3 + 96 - + 35 THEN NULL ELSE - 31 END THEN + 56 ELSE - + 11 - - 23 END THEN NULL WHEN + 81 * + - 98 + - 90 - - - SUM ( + - 98 ) THEN NULL ELSE - 42 END - 25
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT ALL - COUNT( * ) * - + 67 + + 77 + - 30 / - - 23 + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - 51 * CAST( SUM( + 5 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - COUNT ( * ) * - + 67 + + 77 + - 30 / - - 23 + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 51 * CAST ( SUM ( + 5 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8355
SELECT DISTINCT + COALESCE ( 97, COUNT( DISTINCT - 37 ), MIN( ALL + 58 ) ) * - + CASE COUNT( * ) WHEN ( 99 ) THEN - 82 * + ( - 89 ) / + 21 ELSE + CAST( NULL AS SIGNED ) + + CASE NULLIF ( - + 41, - - 7 + - + 94 + + + 73 ) WHEN 35 + ( + 81 ) + - - 62 THEN NULL WHEN + 46 * - 58 THEN - - ( + ( 10 ) ) + CASE 30 WHEN + 16 / - ( - 74 ) - - 6 * 92 THEN NULL ELSE - 18 + 10 END END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT + COALESCE ( 97, COUNT ( DISTINCT - 37 ), MIN ( ALL + 58 ) ) * - + CASE COUNT ( * ) WHEN ( 99 ) THEN - 82 * + ( - 89 ) / + 21 ELSE + CAST ( NULL AS INTEGER ) + + CASE NULLIF ( - + 41, - - 7 + - + 94 + + + 73 ) WHEN 35 + ( + 81 ) + - - 62 THEN NULL WHEN + 46 * - 58 THEN - - ( + ( 10 ) ) + CASE 30 WHEN + 16 / - ( - 74 ) - - 6 * 92 THEN NULL ELSE - 18 + 10 END END END AS col1
----
NULL

query I rowsort
SELECT - + 22 * + - ( + 59 ) AS col2
----
1298

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

query I rowsort
SELECT - 88 * + - 52 - - 46
----
4622

query II rowsort
SELECT - 39 * + - 8, + 52 AS col2
----
312
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT + 9 * + COUNT( * ) + + - 54 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8360
SELECT + 9 * + COUNT ( * ) + + - 54 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL MAX( 62 ) * + COUNT( * ) * - 95 * 74 * 59 + - 98
----
-25715838

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL MAX ( 62 ) * + COUNT ( * ) * - 95 * 74 * 59 + - 98
----
-25715838

query I rowsort
SELECT - ( - 77 ) - - + 86 * - 43 - 45
----
-3666

query I rowsort
SELECT CASE 75 WHEN - + 54 THEN NULL ELSE + + 57 END AS col2
----
57

query I rowsort
SELECT NULLIF ( + - 37, 23 + - 1 ) AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8365
SELECT ALL + CAST( NULL AS SIGNED ) * + + 14 + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 14 + + 2 AS col0
----
NULL

query II rowsort
SELECT + NULLIF ( - - 82, + + 51 ), 12 AS col0
----
82
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8367
SELECT DISTINCT 39 * + 80 + - 38 DIV - 16
----
3122

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT 39 * + 80 + - 38 / - 16
----
3122

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT COUNT( + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8368
SELECT COUNT ( + 17 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8369
SELECT ALL - ( 75 ) * + + 86 / + 89 + + 13 + + CAST( NULL AS SIGNED ) + + ( - 95 ) + NULLIF ( + 97, - - 45 ) + + 21 - NULLIF ( + COUNT( * ), - 0 * + 18 ) * ( - - 68 ) + - ( - - 79 ) * - 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - ( 75 ) * + + 86 / + 89 + + 13 + + CAST ( NULL AS INTEGER ) + + ( - 95 ) + NULLIF ( + 97, - - 45 ) + + 21 - NULLIF ( + COUNT ( * ), - 0 * + 18 ) * ( - - 68 ) + - ( - - 79 ) * - 23 col1
----
NULL

query I rowsort
SELECT + 87 + 98 col1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL 99 + + + NULLIF ( - - 48, 82 * - 40 + + + COUNT( * ) + - 56 * + 8 * ( 51 ) / 88 )
----
147

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL 99 + + + NULLIF ( - - 48, 82 * - 40 + + + COUNT ( * ) + - 56 * + 8 * ( 51 ) / 88 )
----
147

query I rowsort
SELECT + 11 * + 89 * - 24 * + 34 * 92 AS col0
----
-73495488

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT DISTINCT NULLIF ( - - 17, 33 ) * + COUNT( * ) * - + 65
----
-1105

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT NULLIF ( - - 17, 33 ) * + COUNT ( * ) * - + 65
----
-1105

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT ALL 69 DIV 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL 69 / 66 AS col1
----
1

query I rowsort
SELECT DISTINCT NULLIF ( + 0, - 76 ) AS col2
----
0

query I rowsort
SELECT + 41 + + 80 AS col2
----
121

query I rowsort
SELECT - 54 + 13 col2
----
-41

query I rowsort
SELECT DISTINCT - 56 * - - 3 AS col2
----
-168

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

query I rowsort
SELECT ALL + - 32 * + + 32 col1
----
-1024

query I rowsort
SELECT + - 1 * - + 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT - 95 * + 54 * - 15 + COUNT( * ) + + 40 + - MAX( ALL + 16 )
----
76975

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT - 95 * + 54 * - 15 + COUNT ( * ) + + 40 + - MAX ( ALL + 16 )
----
76975

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT CAST( NULL AS SIGNED ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 85 + + 75 + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT CAST ( NULL AS INTEGER ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 85 + + 75 + 15 AS col1
----
NULL

query II rowsort
SELECT + 45 AS col0, + 1 AS col1
----
45
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT 26 / + + NULLIF ( + - CASE - + 83 WHEN + 19 + + 56 THEN 6 WHEN - + CAST( NULL AS SIGNED ) THEN NULL END, 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT 26 / + + NULLIF ( + - CASE - + 83 WHEN + 19 + + 56 THEN 6 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL END, 36 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8388
SELECT - 6 * - ( 78 ) + 14 + + - 60 DIV - 84
----
482

skipif mysql # not compatible
query I rowsort label-8388
SELECT - 6 * - ( 78 ) + 14 + + - 60 / - 84
----
482

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT 93 * - + CASE + 45 WHEN AVG ( DISTINCT + - 61 ) THEN NULL WHEN - 38 THEN - 35 + - COUNT( DISTINCT + - 45 ) END * - 97 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT 93 * - + CASE + 45 WHEN AVG ( DISTINCT + - 61 ) THEN NULL WHEN - 38 THEN - 35 + - COUNT ( DISTINCT + - 45 ) END * - 97 * 26
----
NULL

query I rowsort
SELECT ALL + 40 + 39 * 40 * - 89 * - 14
----
1943800

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT 15 + + + SUM( + + ( + 8 ) ) * - 4 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8391
SELECT 15 + + + SUM ( + + ( + 8 ) ) * - 4 AS col1
----
-17

query I rowsort
SELECT DISTINCT - CASE 86 WHEN - 31 + + 47 * 42 THEN 91 + - 62 * + - 32 + - 70 + - 70 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8393
SELECT 4 * SUM( 41 ) * - + COUNT( * ) + 12 + + - 80 DIV + 60 * - - COUNT( + 1 )
----
-153

skipif mysql # not compatible
query I rowsort label-8393
SELECT 4 * SUM ( 41 ) * - + COUNT ( * ) + 12 + + - 80 / + 60 * - - COUNT ( + 1 )
----
-153

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8395
SELECT ALL + 14 * - 20 / + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + 14 * - 20 / + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT DISTINCT - SUM( DISTINCT + 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT - SUM ( DISTINCT + 34 ) AS col0
----
-34

query I rowsort
SELECT 5 * 4 * - ( + + 52 ) AS col2
----
-1040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT DISTINCT - CAST( + - 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT - CAST ( + - 6 AS INTEGER )
----
6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8400
SELECT DISTINCT 0 col0, SUM( DISTINCT 80 )
----
0
80

skipif mysql # not compatible
query II rowsort label-8400
SELECT DISTINCT 0 col0, SUM ( DISTINCT 80 )
----
0
80

query I rowsort
SELECT 53 + 43 + - - 81 + 67 AS col1
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL + COALESCE ( 5, + COUNT( * ) ) - - 19 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + COALESCE ( 5, + COUNT ( * ) ) - - 19 AS col0
----
24

query I rowsort
SELECT ALL 28 * + - 4
----
-112

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

skipif mysql # not compatible
query I rowsort label-8404
SELECT 50 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8405
SELECT - 68 AS col2, COALESCE ( 93, + SUM( DISTINCT - + 51 ) ) + + 39 + 0 AS col0
----
-68
132

skipif mysql # not compatible
query II rowsort label-8405
SELECT - 68 AS col2, COALESCE ( 93, + SUM ( DISTINCT - + 51 ) ) + + 39 + 0 AS col0
----
-68
132

onlyif mysql # aggregate syntax: 
query II rowsort label-8406
SELECT ALL 72 AS col1, + COUNT( * ) * COUNT( * ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-8406
SELECT ALL 72 AS col1, + COUNT ( * ) * COUNT ( * ) AS col0
----
72
1

query II rowsort
SELECT - 21 AS col2, - 21 + - NULLIF ( - - CASE 13 WHEN - 83 / 73 THEN + - 78 ELSE 74 END, 7 )
----
-21
-95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8409
SELECT ALL + 27 * - 14 AS col2, CASE - + ( - 45 ) WHEN 5 THEN - 28 WHEN + 26 THEN NULL ELSE 71 + 62 + + - 73 * + 53 END + 65 + CAST( - 12 AS SIGNED ) + + 65 * + + 50
----
-378
-433

skipif mysql # not compatible
query II rowsort label-8409
SELECT ALL + 27 * - 14 AS col2, CASE - + ( - 45 ) WHEN 5 THEN - 28 WHEN + 26 THEN NULL ELSE 71 + 62 + + - 73 * + 53 END + 65 + CAST ( - 12 AS INTEGER ) + + 65 * + + 50
----
-378
-433

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

query I rowsort
SELECT 46 * - - 56 AS col1
----
2576

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8412
SELECT ALL - ( NULLIF ( + 8, CAST( - 70 AS DECIMAL ) * + 36 ) ), + MAX( ALL 26 ) DIV + 22 + 89 + - 21 AS col2
----
-8
69

skipif mysql # not compatible
query II rowsort label-8412
SELECT ALL - ( NULLIF ( + 8, CAST ( - 70 AS REAL ) * + 36 ) ), + MAX ( ALL 26 ) / + 22 + 89 + - 21 AS col2
----
-8
69

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

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT - - 50 + - COUNT ( * ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8414
SELECT + 32 * - + CAST( NULL AS SIGNED ) / + - AVG ( DISTINCT + + 13 ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8414
SELECT + 32 * - + CAST ( NULL AS INTEGER ) / + - AVG ( DISTINCT + + 13 ), COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT ALL + 91 + - 94 AS col2
----
-3

query I rowsort
SELECT 5 * + + 6 + - + 54 + - 56
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8417
SELECT - ( + 12 ) * + 16 + COALESCE ( 27, + 15 ) + + 12 DIV + COUNT( * )
----
-153

skipif mysql # not compatible
query I rowsort label-8417
SELECT - ( + 12 ) * + 16 + COALESCE ( 27, + 15 ) + + 12 / + COUNT ( * )
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT - + 80 DIV ( + SUM( DISTINCT - - 58 ) ) + + 29 + + 26 * 45 DIV - 64 - 31 DIV + + 74
----
10

skipif mysql # not compatible
query I rowsort label-8418
SELECT - + 80 / ( + SUM ( DISTINCT - - 58 ) ) + + 29 + + 26 * 45 / - 64 - 31 / + + 74
----
10

query I rowsort
SELECT ALL - 9 + + - 81 + - + 1 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT + + MAX( - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-8420
SELECT + + MAX ( - 13 )
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8421
SELECT DISTINCT CASE + + 84 WHEN - CAST( NULL AS DECIMAL ) THEN - 64 END + - ( - 45 ), 41 AS col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8421
SELECT DISTINCT CASE + + 84 WHEN - CAST ( NULL AS REAL ) THEN - 64 END + - ( - 45 ), 41 AS col0
----
NULL
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT + 16 DIV 47 DIV + 80 - - 85 + + 62 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-8422
SELECT + 16 / 47 / + 80 - - 85 + + 62 AS col1
----
147

query I rowsort
SELECT ALL 36 + - 33 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8424
SELECT ALL - MAX( - 29 ) col1, 56 * + + 51 * + + 51
----
29
145656

skipif mysql # not compatible
query II rowsort label-8424
SELECT ALL - MAX ( - 29 ) col1, 56 * + + 51 * + + 51
----
29
145656

query I rowsort
SELECT 28 * - 85
----
-2380

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

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

query II rowsort
SELECT ALL - 73 - + 66 col2, - 20 col2
----
-139
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL - CASE - COUNT( DISTINCT - 9 ) WHEN 48 + 91 * - 4 THEN NULL WHEN + 72 THEN NULL ELSE - + 71 END
----
71

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL - CASE - COUNT ( DISTINCT - 9 ) WHEN 48 + 91 * - 4 THEN NULL WHEN + 72 THEN NULL ELSE - + 71 END
----
71

query I rowsort
SELECT 54 * + - 55 AS col2
----
-2970

query I rowsort
SELECT DISTINCT + 28 * + 4 AS col1
----
112

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

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT COUNT ( * ) / + - MIN ( 39 )
----
0

query I rowsort
SELECT 43 * - 35 AS col0
----
-1505

query II rowsort
SELECT DISTINCT - 56 * + 80, 19 AS col1
----
-4480
19

query II rowsort
SELECT 24 + 37 AS col1, + 5 + + 39
----
61
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8435
SELECT ALL COUNT( ALL - 37 ) AS col1, 56
----
1
56

skipif mysql # not compatible
query II rowsort label-8435
SELECT ALL COUNT ( ALL - 37 ) AS col1, 56
----
1
56

query II rowsort
SELECT 43 + - - 11 AS col1, + 79 * - + 46
----
54
-3634

query I rowsort
SELECT - 45 * - 87 AS col1
----
3915

onlyif mysql # DIV for integer division: 
query II rowsort label-8438
SELECT DISTINCT - - 98 * - - 80 AS col2, 27 * 34 DIV 68 * - + 24 * + 12 AS col0
----
7840
-3744

skipif mysql # not compatible
query II rowsort label-8438
SELECT DISTINCT - - 98 * - - 80 AS col2, 27 * 34 / 68 * - + 24 * + 12 AS col0
----
7840
-3744

query I rowsort
SELECT ALL - 6 + + NULLIF ( + - 54, 5 - - 81 )
----
-60

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

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT CAST ( + 57 AS INTEGER )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8441
SELECT - MAX( DISTINCT + + 0 ) AS col1, 11
----
0
11

skipif mysql # not compatible
query II rowsort label-8441
SELECT - MAX ( DISTINCT + + 0 ) AS col1, 11
----
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT - MIN( DISTINCT 25 ) * COUNT( - 74 )
----
-25

skipif mysql # not compatible
query I rowsort label-8442
SELECT - MIN ( DISTINCT 25 ) * COUNT ( - 74 )
----
-25

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

query I rowsort
SELECT ALL - 54 + + 12
----
-42

query I rowsort
SELECT ALL + 80 + 21
----
101

query I rowsort
SELECT - - 74 * + 62
----
4588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8447
SELECT COALESCE ( + 52, - + 78 + 66, COALESCE ( - + CASE + 32 WHEN + - CASE COALESCE ( 59, + 31 DIV + 33 * 85 - - 92 * + CAST( - 14 AS DECIMAL ) + - - 84 + + 97 + - ( 50 ) * - 65 ) WHEN - 78 THEN NULL WHEN + + 6 THEN - CAST( NULL AS SIGNED ) END * 90 * 65 THEN - + 30 DIV - 25 * - 26 ELSE NULL END, - + NULLIF ( + + CAST( + - 52 AS SIGNED ), COUNT( DISTINCT + 71 ) * + 45 + + 66 ) + + 92 * - 65 ) + 15 )
----
52

skipif mysql # not compatible
query I rowsort label-8447
SELECT COALESCE ( + 52, - + 78 + 66, COALESCE ( - + CASE + 32 WHEN + - CASE COALESCE ( 59, + 31 / + 33 * 85 - - 92 * + CAST ( - 14 AS REAL ) + - - 84 + + 97 + - ( 50 ) * - 65 ) WHEN - 78 THEN NULL WHEN + + 6 THEN - CAST ( NULL AS INTEGER ) END * 90 * 65 THEN - + 30 / - 25 * - 26 ELSE NULL END, - + NULLIF ( + + CAST ( + - 52 AS INTEGER ), COUNT ( DISTINCT + 71 ) * + 45 + + 66 ) + + 92 * - 65 ) + 15 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8448
SELECT + 32 DIV + 72 + - 66 DIV + - NULLIF ( + - 27, - COUNT( * ) DIV + - 50 + + 55 * - 92 + 67 DIV + COUNT( * ) * + - 4 * CAST( NULL AS SIGNED ) ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-8448
SELECT + 32 / + 72 + - 66 / + - NULLIF ( + - 27, - COUNT ( * ) / + - 50 + + 55 * - 92 + 67 / + COUNT ( * ) * + - 4 * CAST ( NULL AS INTEGER ) ) col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT DISTINCT - 61 * + SUM( 47 ) + + 39 AS col0
----
-2828

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT - 61 * + SUM ( 47 ) + + 39 AS col0
----
-2828

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT + NULLIF ( - 90, - SUM( + 0 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-8450
SELECT + NULLIF ( - 90, - SUM ( + 0 ) )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8451
SELECT - 36 + - COUNT( * ) + ( + ( 37 ) ) + + COUNT( * ) * CAST( NULL AS SIGNED ) * - 10 * - 40 * + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT - 36 + - COUNT ( * ) + ( + ( 37 ) ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 10 * - 40 * + 1 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8452
SELECT ALL - 87 * - - 47 - NULLIF ( - CAST( NULL AS DECIMAL ), + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL - 87 * - - 47 - NULLIF ( - CAST ( NULL AS REAL ), + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT 41 * + COUNT( ALL + - 3 ) + + 71
----
112

skipif mysql # not compatible
query I rowsort label-8453
SELECT 41 * + COUNT ( ALL + - 3 ) + + 71
----
112

query I rowsort
SELECT + 41 * 89 AS col0
----
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL CASE - 80 WHEN - ( 24 ) + + + ( 28 ) * + MAX( + 15 ) THEN NULL ELSE - 39 END * - 83
----
3237

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL CASE - 80 WHEN - ( 24 ) + + + ( 28 ) * + MAX ( + 15 ) THEN NULL ELSE - 39 END * - 83
----
3237

query I rowsort
SELECT + 58 + + 2
----
60

query I rowsort
SELECT + 52 + - 57 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT + COUNT( * ) * - + 63 * - - 51 * - - 19 AS col0
----
-61047

skipif mysql # not compatible
query I rowsort label-8458
SELECT + COUNT ( * ) * - + 63 * - - 51 * - - 19 AS col0
----
-61047

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8460
SELECT - 4 + - ( + ( MAX( + ( + 64 ) ) ) ), 73 AS col0
----
-68
73

skipif mysql # not compatible
query II rowsort label-8460
SELECT - 4 + - ( + ( MAX ( + ( + 64 ) ) ) ), 73 AS col0
----
-68
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8461
SELECT DISTINCT + COUNT( * ) AS col1, 81 + - - ( + - 22 ) AS col0
----
1
59

skipif mysql # not compatible
query II rowsort label-8461
SELECT DISTINCT + COUNT ( * ) AS col1, 81 + - - ( + - 22 ) AS col0
----
1
59

query I rowsort
SELECT ALL + + 25 + + - 67 AS col2
----
-42

query I rowsort
SELECT - 87 * - 65 col1
----
5655

query I rowsort
SELECT ALL + 19 * - 13 * - - 19
----
-4693

onlyif mysql # aggregate syntax: 
query II rowsort label-8465
SELECT + COUNT( * ) AS col2, - NULLIF ( 26, + 44 * + 9 * + 48 * - AVG ( DISTINCT 63 ) )
----
1
-26

skipif mysql # not compatible
query II rowsort label-8465
SELECT + COUNT ( * ) AS col2, - NULLIF ( 26, + 44 * + 9 * + 48 * - AVG ( DISTINCT 63 ) )
----
1
-26

query I rowsort
SELECT DISTINCT + 8 + - 27 AS col0
----
-19

query II rowsort
SELECT ALL - + 12 + - 77 + 32 AS col2, - CASE + 24 WHEN + 50 THEN + + 45 + + + 97 END col1
----
-57
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8469
SELECT ALL + ( - 78 ) + 34 + + - ( 14 ) DIV + + COUNT( * ) AS col0, - COALESCE ( + 85, - NULLIF ( - 32, + 3 ) - - COALESCE ( 48, - 76 * + 17 - + - 41 ) + + 42 * 17 DIV + NULLIF ( + - 5, + COUNT( ALL + 49 ) ), 8 + + 53 ) + - 23 AS col2
----
-58
-108

skipif mysql # not compatible
query II rowsort label-8469
SELECT ALL + ( - 78 ) + 34 + + - ( 14 ) / + + COUNT ( * ) AS col0, - COALESCE ( + 85, - NULLIF ( - 32, + 3 ) - - COALESCE ( 48, - 76 * + 17 - + - 41 ) + + 42 * 17 / + NULLIF ( + - 5, + COUNT ( ALL + 49 ) ), 8 + + 53 ) + - 23 AS col2
----
-58
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-8470
SELECT - COUNT( * ), - 46 - + 80 AS col0
----
-1
-126

skipif mysql # not compatible
query II rowsort label-8470
SELECT - COUNT ( * ), - 46 - + 80 AS col0
----
-1
-126

query II rowsort
SELECT - 41 AS col0, 54 AS col2
----
-41
54

query I rowsort
SELECT ALL - 83 + - - 15 + + 12 + - + 70 * + - 75
----
5194

query II rowsort
SELECT - 24, + 44 AS col1
----
-24
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT - 90 - + 45 + CAST( - 91 AS SIGNED ) * - - 81 AS col1
----
-7506

skipif mysql # not compatible
query I rowsort label-8474
SELECT - 90 - + 45 + CAST ( - 91 AS INTEGER ) * - - 81 AS col1
----
-7506

query I rowsort
SELECT ALL + 34 + - - 23
----
57

query II rowsort
SELECT DISTINCT 53 AS col1, - 8 AS col1
----
53
-8

query I rowsort
SELECT DISTINCT + + 95 - + 73 AS col1
----
22

query II rowsort
SELECT DISTINCT + 85 col0, + 18 * + 26 col2
----
85
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT 45 * - 33 * - + 37 + + 21 * + ( - - 2 ) + + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT 45 * - 33 * - + 37 + + 21 * + ( - - 2 ) + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT ALL + ( CAST( - 83 AS SIGNED ) ) * - 9 AS col2
----
747

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + ( CAST ( - 83 AS INTEGER ) ) * - 9 AS col2
----
747

query I rowsort
SELECT - 89 * NULLIF ( 30, - 87 / + 74 ) AS col1
----
-2670

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8483
SELECT CAST( + CASE + - 18 WHEN - 32 THEN + 58 ELSE + 3 + 74 END AS SIGNED ) AS col0, - COUNT( * ) AS col0
----
77
-1

skipif mysql # not compatible
query II rowsort label-8483
SELECT CAST ( + CASE + - 18 WHEN - 32 THEN + 58 ELSE + 3 + 74 END AS INTEGER ) AS col0, - COUNT ( * ) AS col0
----
77
-1

query I rowsort
SELECT + ( - + COALESCE ( 23, 35 ) ) AS col0
----
-23

query I rowsort
SELECT + CASE - - 36 WHEN 92 THEN - 81 + - 88 END
----
NULL

query I rowsort
SELECT + 92 - - 18 AS col0
----
110

query II rowsort
SELECT ALL 63 + 67 AS col2, - 11
----
130
-11

query I rowsort
SELECT ALL ( - 55 ) + + 33
----
-22

query I rowsort
SELECT ALL - CASE + + 58 WHEN - + 98 / - - 64 - 60 + 79 THEN NULL ELSE - + 74 * + - 95 + + - 23 END + 91 * + 82
----
455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT CAST( - + NULLIF ( + - 6, 81 * + 19 * 59 + 55 ) AS SIGNED ) + - 33 * 46 AS col2
----
-1512

skipif mysql # not compatible
query I rowsort label-8490
SELECT CAST ( - + NULLIF ( + - 6, 81 * + 19 * 59 + 55 ) AS INTEGER ) + - 33 * 46 AS col2
----
-1512

onlyif mysql # DIV for integer division: 
query I rowsort label-8491
SELECT - 7 - 17 DIV + 40
----
-7

skipif mysql # not compatible
query I rowsort label-8491
SELECT - 7 - 17 / + 40
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT 70 DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-8492
SELECT 70 / 36
----
1

query I rowsort
SELECT ALL 91 + 80 - - - NULLIF ( - - 87, 92 ) * - 46 AS col2
----
4173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT DISTINCT CASE COUNT( * ) WHEN 99 * + - 84 + + - NULLIF ( + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ), + COUNT( * ) ) THEN COUNT( * ) * - 35 + 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT CASE COUNT ( * ) WHEN 99 * + - 84 + + - NULLIF ( + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ), + COUNT ( * ) ) THEN COUNT ( * ) * - 35 + 89 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8495
SELECT ALL + - 6 DIV CAST( - 47 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL + - 6 / CAST ( - 47 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8496
SELECT COUNT( * ) + + + COUNT( * ) + - 40 * 45 * 58 col0, COUNT( * ) AS col0
----
-104398
1

skipif mysql # not compatible
query II rowsort label-8496
SELECT COUNT ( * ) + + + COUNT ( * ) + - 40 * 45 * 58 col0, COUNT ( * ) AS col0
----
-104398
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8497
SELECT ALL + CASE + 91 WHEN + + MIN( - - 43 ) THEN NULL WHEN - 23 THEN + 4 END - + 13 AS col2, 39 DIV 61 * + 77 DIV + 44 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8497
SELECT ALL + CASE + 91 WHEN + + MIN ( - - 43 ) THEN NULL WHEN - 23 THEN + 4 END - + 13 AS col2, 39 / 61 * + 77 / + 44 AS col2
----
NULL
0

query I rowsort
SELECT + 1 + + + 56
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT + COUNT( * ) + + 32 + - COALESCE ( + 68, 17 + + - MAX( ALL 8 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-8499
SELECT + COUNT ( * ) + + 32 + - COALESCE ( + 68, 17 + + - MAX ( ALL 8 ) )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8500
SELECT ALL + CAST( NULL AS SIGNED ) / - 92 + + COUNT( * )
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8501
SELECT - 24 DIV + + 75 * + 99 + + - 23 AS col2, 54 col0
----
-23
54

skipif mysql # not compatible
query II rowsort label-8501
SELECT - 24 / + + 75 * + 99 + + - 23 AS col2, 54 col0
----
-23
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8502
SELECT - + SUM( + 21 ) AS col2, - CAST( - + 85 AS SIGNED ) AS col2
----
-21
85

skipif mysql # not compatible
query II rowsort label-8502
SELECT - + SUM ( + 21 ) AS col2, - CAST ( - + 85 AS INTEGER ) AS col2
----
-21
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT 18 + - COUNT( * ) + 19 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8503
SELECT 18 + - COUNT ( * ) + 19 AS col1
----
36

query I rowsort
SELECT ALL + + 1 * + 47 AS col1
----
47

query I rowsort
SELECT - 51 + + 31 - - 41
----
21

query I rowsort
SELECT ALL - 36 - - 4
----
-32

query I rowsort
SELECT 18 * - - 23
----
414

query II rowsort
SELECT ALL 78 AS col2, + 39
----
78
39

query I rowsort
SELECT 25 + - - 56 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8510
SELECT DISTINCT + 69 * - COALESCE ( + + 39, + + CASE CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN 50 * 22 END )
----
-2691

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT + 69 * - COALESCE ( + + 39, + + CASE CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN 50 * 22 END )
----
-2691

query I rowsort
SELECT 44 * 51
----
2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL - CASE + 50 WHEN + CAST( + 76 AS SIGNED ) * - 36 + 7 + - - 33 - - 50 * - 64 * - + COUNT( * ) * - - 57 * - 62 + + + 73 * + - 76 * + - 49 THEN NULL WHEN + COALESCE ( 32, 40 ) + 31 + + - COUNT( * ) * - ( MAX( DISTINCT 43 ) ) * + 9 THEN NULL WHEN + + 1 THEN + 32 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL - CASE + 50 WHEN + CAST ( + 76 AS INTEGER ) * - 36 + 7 + - - 33 - - 50 * - 64 * - + COUNT ( * ) * - - 57 * - 62 + + + 73 * + - 76 * + - 49 THEN NULL WHEN + COALESCE ( 32, 40 ) + 31 + + - COUNT ( * ) * - ( MAX ( DISTINCT 43 ) ) * + 9 THEN NULL WHEN + + 1 THEN + 32 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8513
SELECT 15 DIV - 74 * + - 59 - + + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8513
SELECT 15 / - 74 * + - 59 - + + COUNT ( * ) col2
----
-1

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

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

query I rowsort
SELECT 34 * + 83 AS col2
----
2822

query I rowsort
SELECT 69 * - 72
----
-4968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8517
SELECT ALL - COALESCE ( - 88, - 23, + CASE - 93 WHEN - 5 * 22 + + ( + 78 ) + - CAST( NULL AS SIGNED ) THEN + 33 - + COUNT( * ) END + 57 * - COUNT( * ), 47 ), MAX( + 31 ) + - + COUNT( * ) * + 66 + - COUNT( * ) AS col2
----
88
-36

skipif mysql # not compatible
query II rowsort label-8517
SELECT ALL - COALESCE ( - 88, - 23, + CASE - 93 WHEN - 5 * 22 + + ( + 78 ) + - CAST ( NULL AS INTEGER ) THEN + 33 - + COUNT ( * ) END + 57 * - COUNT ( * ), 47 ), MAX ( + 31 ) + - + COUNT ( * ) * + 66 + - COUNT ( * ) AS col2
----
88
-36

query I rowsort
SELECT DISTINCT - 6 * + 77 AS col0
----
-462

query I rowsort
SELECT ALL + 52 + - 84
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT - 74 * NULLIF ( - + COUNT( * ), COUNT( * ) * + - 78 * - - COALESCE ( + MIN( DISTINCT + 60 ), - 6, + 20 ) ) + + 34 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-8520
SELECT - 74 * NULLIF ( - + COUNT ( * ), COUNT ( * ) * + - 78 * - - COALESCE ( + MIN ( DISTINCT + 60 ), - 6, + 20 ) ) + + 34 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL - CASE - - 86 WHEN + MIN( DISTINCT - 44 ) * + + COALESCE ( - - 66, - 48 ) THEN - MIN( ALL - + 30 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - CASE - - 86 WHEN + MIN ( DISTINCT - 44 ) * + + COALESCE ( - - 66, - 48 ) THEN - MIN ( ALL - + 30 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 7 * - 7 col0
----
49

query I rowsort
SELECT ALL 57 + 16 + - - ( - - 90 ) * - + 92
----
-8207

query I rowsort
SELECT ALL - 89 + - + 33
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-8525
SELECT - 22 * - 92 + - + 64 + + - 73 DIV - - 35
----
1958

skipif mysql # not compatible
query I rowsort label-8525
SELECT - 22 * - 92 + - + 64 + + - 73 / - - 35
----
1958

query I rowsort
SELECT + + 42 * 77 + - 8 AS col1
----
3226

query I rowsort
SELECT ALL + - 29 + + 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL - - MIN( ALL + COALESCE ( + 49, - 22 * 55, + + 75 ) )
----
49

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL - - MIN ( ALL + COALESCE ( + 49, - 22 * 55, + + 75 ) )
----
49

query I rowsort
SELECT - 5 + 98 col2
----
93

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

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

query I rowsort
SELECT 84 + - + 42 col0
----
42

query I rowsort
SELECT ALL + 67 - 89 * - ( + + 3 )
----
334

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8533
SELECT ALL - CAST( NULL AS SIGNED ), + 37 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-8533
SELECT ALL - CAST ( NULL AS INTEGER ), + 37 AS col2
----
NULL
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT DISTINCT 7 - MAX( + + 28 ) + + 95 DIV 70 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT 7 - MAX ( + + 28 ) + + 95 / 70 AS col1
----
-20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8536
SELECT 85 col0, CAST( 96 AS SIGNED ) col2, - 62 col1
----
85
96
-62

skipif mysql # not compatible
query III rowsort label-8536
SELECT 85 col0, CAST ( 96 AS INTEGER ) col2, - 62 col1
----
85
96
-62

query I rowsort
SELECT ALL NULLIF ( 56, - 86 ) - 64
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8538
SELECT 94 * + 84 * 54 AS col1, + 36 - + CASE + - 48 WHEN - 92 * + - COUNT( * ) THEN + 32 ELSE + - 43 * + MAX( 30 ) - - ( + CASE 9 WHEN 60 THEN - - 55 END ) END * - 60 * + + 28 * + - 52
----
426384
NULL

skipif mysql # not compatible
query II rowsort label-8538
SELECT 94 * + 84 * 54 AS col1, + 36 - + CASE + - 48 WHEN - 92 * + - COUNT ( * ) THEN + 32 ELSE + - 43 * + MAX ( 30 ) - - ( + CASE 9 WHEN 60 THEN - - 55 END ) END * - 60 * + + 28 * + - 52
----
426384
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8539
SELECT 74 * - + 68 + 85 DIV + 94 * + + MAX( DISTINCT - 39 )
----
-5032

skipif mysql # not compatible
query I rowsort label-8539
SELECT 74 * - + 68 + 85 / + 94 * + + MAX ( DISTINCT - 39 )
----
-5032

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - 48 * + 63 - - 11 * - 33 * - CASE + 94 WHEN 44 * 13 + 50 * 10 THEN NULL WHEN + - 24 / - - MAX( ALL - 19 ) - - 67 THEN + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 48 * + 63 - - 11 * - 33 * - CASE + 94 WHEN 44 * 13 + 50 * 10 THEN NULL WHEN + - 24 / - - MAX ( ALL - 19 ) - - 67 THEN + 33 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8541
SELECT 25 + + - ( - - 0 ) + + 72 * ( - 55 ) DIV - CASE - 32 WHEN - 62 THEN NULL WHEN - - COUNT( * ) THEN + - 82 ELSE + + 34 + - 78 DIV 94 DIV + - 62 + + 47 + + 74 + + COALESCE ( 31, - CAST( - 51 AS SIGNED ) ) END + + 6 * - + 29 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-8541
SELECT 25 + + - ( - - 0 ) + + 72 * ( - 55 ) / - CASE - 32 WHEN - 62 THEN NULL WHEN - - COUNT ( * ) THEN + - 82 ELSE + + 34 + - 78 / 94 / + - 62 + + 47 + + 74 + + COALESCE ( 31, - CAST ( - 51 AS INTEGER ) ) END + + 6 * - + 29 AS col2
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ( - 23 ) - NULLIF ( + CASE - COUNT( - 54 ) WHEN - 24 / - - 95 + + 83 THEN NULL WHEN + - 85 THEN - 15 WHEN + - CASE - 68 WHEN + - MAX( ALL - 51 ) THEN - + 18 WHEN 79 + 73 THEN 30 - - 46 ELSE - CASE + + 55 WHEN - - 97 THEN - 54 * + 70 + + 19 WHEN - - COUNT( * ) THEN NULL ELSE NULL END / 5 + + COUNT( * ) END THEN + 10 * 39 * 72 + + 57 + 99 ELSE - 70 + 44 END, + COUNT( * ) + 46 )
----
3

skipif mysql # not compatible
query I rowsort label-8542
SELECT ( - 23 ) - NULLIF ( + CASE - COUNT ( - 54 ) WHEN - 24 / - - 95 + + 83 THEN NULL WHEN + - 85 THEN - 15 WHEN + - CASE - 68 WHEN + - MAX ( ALL - 51 ) THEN - + 18 WHEN 79 + 73 THEN 30 - - 46 ELSE - CASE + + 55 WHEN - - 97 THEN - 54 * + 70 + + 19 WHEN - - COUNT ( * ) THEN NULL ELSE NULL END / 5 + + COUNT ( * ) END THEN + 10 * 39 * 72 + + 57 + 99 ELSE - 70 + 44 END, + COUNT ( * ) + 46 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8543
SELECT - MAX( ALL - 32 ) col0, ( + - 83 ) AS col0
----
32
-83

skipif mysql # not compatible
query II rowsort label-8543
SELECT - MAX ( ALL - 32 ) col0, ( + - 83 ) AS col0
----
32
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-8544
SELECT ALL - 92 * + 56 AS col1, 43 DIV COALESCE ( - + 8, + 88 ) - 79 * + 47 + - 84 - + 56
----
-5152
-3858

skipif mysql # not compatible
query II rowsort label-8544
SELECT ALL - 92 * + 56 AS col1, 43 / COALESCE ( - + 8, + 88 ) - 79 * + 47 + - 84 - + 56
----
-5152
-3858

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

skipif mysql # not compatible
query I rowsort label-8545
SELECT COUNT ( * ) / + 86 * + + 75
----
0

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

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

query II rowsort
SELECT ( 17 ) * + - 59 + + - 43 AS col0, + NULLIF ( - 2, + 94 ) AS col0
----
-1046
-2

query I rowsort
SELECT 60 + + 62
----
122

query I rowsort
SELECT 63 - 69 + 60
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL COUNT( - 3 ) * - 18 col1
----
-18

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL COUNT ( - 3 ) * - 18 col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8551
SELECT 19 / - COUNT( * ) * + - 26 * - 89 * - 61 + - 28 - - 55 * + 0 * - CAST( NULL AS SIGNED ) + COUNT( * ) / + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT 19 / - COUNT ( * ) * + - 26 * - 89 * - 61 + - 28 - - 55 * + 0 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) / + + 4
----
NULL

query I rowsort
SELECT COALESCE ( 21, + + 32 ) AS col1
----
21

query I rowsort
SELECT 79 * + 32 * + 15 AS col0
----
37920

query I rowsort
SELECT 49 * + + ( + 72 ) col0
----
3528

query I rowsort
SELECT DISTINCT + 85 * + 70 + - 93
----
5857

query II rowsort
SELECT DISTINCT 64 * 42 + 47 + + 56 AS col2, + 95
----
2791
95

query I rowsort
SELECT - 28 + + 33 * - 2 AS col1
----
-94

query I rowsort
SELECT ALL 26 * + - 19 + + - 31 AS col2
----
-525

query I rowsort
SELECT COALESCE ( + - 66, 35 )
----
-66

query I rowsort
SELECT ALL 44 * + 83 + + 26
----
3678

onlyif mysql # aggregate syntax: 
query II rowsort label-8561
SELECT COUNT( * ) AS col2, - COUNT( * ) * + 3 AS col1
----
1
-3

skipif mysql # not compatible
query II rowsort label-8561
SELECT COUNT ( * ) AS col2, - COUNT ( * ) * + 3 AS col1
----
1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT + COALESCE ( COUNT( * ), + - 49, - 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8562
SELECT + COALESCE ( COUNT ( * ), + - 49, - 81 ) AS col1
----
1

query II rowsort
SELECT + + 76 AS col1, + 54 - - 79 AS col1
----
76
133

query I rowsort
SELECT + COALESCE ( 35, 2, - 73 ) AS col0
----
35

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

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

query I rowsort
SELECT ( 42 ) col0
----
42

query I rowsort
SELECT - 42 - - + 12
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL + CASE - ( - CASE 40 WHEN - 11 THEN 83 ELSE NULL END ) WHEN + + 17 THEN + COUNT( * ) + + + 92 ELSE + 5 END AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + CASE - ( - CASE 40 WHEN - 11 THEN 83 ELSE NULL END ) WHEN + + 17 THEN + COUNT ( * ) + + + 92 ELSE + 5 END AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8569
SELECT ALL - COUNT( * ) * 97 * - + COUNT( ALL + + 4 ) AS col1, 21
----
97
21

skipif mysql # not compatible
query II rowsort label-8569
SELECT ALL - COUNT ( * ) * 97 * - + COUNT ( ALL + + 4 ) AS col1, 21
----
97
21

query I rowsort
SELECT - 22 + ( 25 )
----
3

query I rowsort
SELECT - - 50 - - + 9
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8572
SELECT ALL ( CASE - ( - + 14 ) WHEN 87 THEN - - ( + CAST( NULL AS DECIMAL ) ) + - NULLIF ( + COUNT( * ), + 84 + - 59 + 53 + CAST( NULL AS SIGNED ) - 57 * + COALESCE ( 17, + - 5 * + CAST( + 69 AS SIGNED ) + - 38, - - 46 * + ( 14 ) + - 7 + - 59 ) * - COUNT( * ) * - AVG ( ALL 60 ) * - - 68 + + - 84 ) + 6 * + CAST( NULL AS DECIMAL ) + 51 - + 54 + + 51 + 90 * + 34 * 91 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL ( CASE - ( - + 14 ) WHEN 87 THEN - - ( + CAST ( NULL AS REAL ) ) + - NULLIF ( + COUNT ( * ), + 84 + - 59 + 53 + CAST ( NULL AS INTEGER ) - 57 * + COALESCE ( 17, + - 5 * + CAST ( + 69 AS INTEGER ) + - 38, - - 46 * + ( 14 ) + - 7 + - 59 ) * - COUNT ( * ) * - AVG ( ALL 60 ) * - - 68 + + - 84 ) + 6 * + CAST ( NULL AS REAL ) + 51 - + 54 + + 51 + 90 * + 34 * 91 ELSE NULL END ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8573
SELECT + COUNT ( * ) * + 48 + + - 29 * + - 29 AS col0
----
889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT + + 75 - - 11 + COALESCE ( + + CAST( NULL AS SIGNED ), - + COUNT( * ), - COUNT( - - 47 ) + 8 * - SUM( - - 2 ) * COALESCE ( + 88, + 39 ) - - 47 * + - 57 + 56 * 14 + - - 49 )
----
85

skipif mysql # not compatible
query I rowsort label-8574
SELECT + + 75 - - 11 + COALESCE ( + + CAST ( NULL AS INTEGER ), - + COUNT ( * ), - COUNT ( - - 47 ) + 8 * - SUM ( - - 2 ) * COALESCE ( + 88, + 39 ) - - 47 * + - 57 + 56 * 14 + - - 49 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT - + 64 / - 95 * - CAST( NULL AS SIGNED ) + - ( + + 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT - + 64 / - 95 * - CAST ( NULL AS INTEGER ) + - ( + + 26 ) AS col1
----
NULL

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

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

query I rowsort
SELECT + - 0 - - 15 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT - - MIN( ALL 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8578
SELECT - - MIN ( ALL 86 ) AS col2
----
86

query I rowsort
SELECT + 28 * - 70 + + - 68 AS col1
----
-2028

query I rowsort
SELECT - - NULLIF ( + - 18, - - 17 + + - 44 )
----
-18

query I rowsort
SELECT - + 14 + + + 87
----
73

query I rowsort
SELECT DISTINCT COALESCE ( ( - ( + 69 ) ), - 51 ) AS col2
----
-69

query I rowsort
SELECT + 59 * - 87 AS col2
----
-5133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8584
SELECT DISTINCT - CASE 91 WHEN - - 51 + + 92 + - 87 THEN + ( - 48 ) * + 79 * + + 46 WHEN - + 23 THEN NULL WHEN + 53 THEN + CAST( - CAST( + - COUNT( * ) AS SIGNED ) AS SIGNED ) ELSE COALESCE ( + 55, 74, 31 ) + 7 + + NULLIF ( COALESCE ( + COUNT( + 46 ), - 92 ), + 54 ) END + + 90 DIV 21 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT - CASE 91 WHEN - - 51 + + 92 + - 87 THEN + ( - 48 ) * + 79 * + + 46 WHEN - + 23 THEN NULL WHEN + 53 THEN + CAST ( - CAST ( + - COUNT ( * ) AS INTEGER ) AS INTEGER ) ELSE COALESCE ( + 55, 74, 31 ) + 7 + + NULLIF ( COALESCE ( + COUNT ( + 46 ), - 92 ), + 54 ) END + + 90 / 21 AS col0
----
-59

query I rowsort
SELECT ALL + 96 + + - 94
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT DISTINCT 47 + 66 * - 3 + + COUNT( * )
----
-150

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT 47 + 66 * - 3 + + COUNT ( * )
----
-150

query I rowsort
SELECT ALL 18 * - ( + NULLIF ( + + ( - + 38 ), + 91 ) ) * + 52 col2
----
35568

onlyif mysql # DIV for integer division: 
query I rowsort label-8588
SELECT - 23 + + 51 DIV 80 * + 41
----
-23

skipif mysql # not compatible
query I rowsort label-8588
SELECT - 23 + + 51 / 80 * + 41
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8589
SELECT - MAX( ALL + 36 ) AS col1, + 5 + + 89 AS col0
----
-36
94

skipif mysql # not compatible
query II rowsort label-8589
SELECT - MAX ( ALL + 36 ) AS col1, + 5 + + 89 AS col0
----
-36
94

query I rowsort
SELECT - NULLIF ( - - ( 54 ), 14 * + 23 ) AS col0
----
-54

query II rowsort
SELECT - ( 22 ), 58 * ( - 66 ) AS col2
----
-22
-3828

query I rowsort
SELECT + ( NULLIF ( - 48, + AVG ( DISTINCT + 40 ) ) ) + - - 31
----
-17

query I rowsort
SELECT DISTINCT 81 + ( 37 ) AS col2
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT ALL 40 DIV - + 23
----
-1

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL 40 / - + 23
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT ALL 22 DIV + 83 + + 53 * + - 19
----
-1007

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL 22 / + 83 + + 53 * + - 19
----
-1007

onlyif mysql # aggregate syntax: 
query II rowsort label-8596
SELECT COUNT( + 13 ) * - NULLIF ( - 14, - COUNT( * ) * + 25 ) - + 16, 39 AS col1
----
-2
39

skipif mysql # not compatible
query II rowsort label-8596
SELECT COUNT ( + 13 ) * - NULLIF ( - 14, - COUNT ( * ) * + 25 ) - + 16, 39 AS col1
----
-2
39

query I rowsort
SELECT ALL 4 * + - 54
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + COUNT( * ) + + - SUM( DISTINCT - 59 ) - + 79
----
-19

skipif mysql # not compatible
query I rowsort label-8598
SELECT + COUNT ( * ) + + - SUM ( DISTINCT - 59 ) - + 79
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-8599
SELECT + 90 DIV - + 53 + + 13, - 95 * - NULLIF ( - - 8, - + AVG ( - - 83 ) * 19 + + 84 ) + + - 63 AS col0
----
12
697

skipif mysql # not compatible
query II rowsort label-8599
SELECT + 90 / - + 53 + + 13, - 95 * - NULLIF ( - - 8, - + AVG ( - - 83 ) * 19 + + 84 ) + + - 63 AS col0
----
12
697

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT - 92 + + 17 + + 19 DIV + 53 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8601
SELECT - 92 + + 17 + + 19 / + 53 AS col2
----
-75

query I rowsort
SELECT ALL 98 * - + 29 AS col0
----
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - 54 + + COUNT( * ) * 97
----
43

skipif mysql # not compatible
query I rowsort label-8603
SELECT - 54 + + COUNT ( * ) * 97
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT ALL + NULLIF ( 32, + 44 * 71 + - CAST( - + COALESCE ( + - ( + COUNT( * ) ), + 57 * - - 80 ) AS SIGNED ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL + NULLIF ( 32, + 44 * 71 + - CAST ( - + COALESCE ( + - ( + COUNT ( * ) ), + 57 * - - 80 ) AS INTEGER ) ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT - 97 * + 52 - - 46 + - SUM( + - 27 ) col2
----
-4971

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT - 97 * + 52 - - 46 + - SUM ( + - 27 ) col2
----
-4971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8606
SELECT - 67 * - COUNT( * ) + + 64, CAST( NULL AS SIGNED ) col0
----
131
NULL

skipif mysql # not compatible
query II rowsort label-8606
SELECT - 67 * - COUNT ( * ) + + 64, CAST ( NULL AS INTEGER ) col0
----
131
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT + ( - COUNT( * ) ) * - - 26 + - + MIN( 86 ) * + ( - - 27 ) * ( 38 ) * - + 27 + 84
----
2382430

skipif mysql # not compatible
query I rowsort label-8607
SELECT + ( - COUNT ( * ) ) * - - 26 + - + MIN ( 86 ) * + ( - - 27 ) * ( 38 ) * - + 27 + 84
----
2382430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT COUNT( DISTINCT + CAST( - 22 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8608
SELECT COUNT ( DISTINCT + CAST ( - 22 AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT - 90 * - COUNT( * ) * - 29 * - - 22 + + MAX( 27 ) + ( COALESCE ( + + SUM( DISTINCT + 43 ), + 0 ) ) * CAST( + + 44 AS SIGNED ) AS col0
----
-55501

skipif mysql # not compatible
query I rowsort label-8609
SELECT - 90 * - COUNT ( * ) * - 29 * - - 22 + + MAX ( 27 ) + ( COALESCE ( + + SUM ( DISTINCT + 43 ), + 0 ) ) * CAST ( + + 44 AS INTEGER ) AS col0
----
-55501

query I rowsort
SELECT + + 35 * 58 col0
----
2030

query I rowsort
SELECT - + 29 + + 50
----
21

query I rowsort
SELECT ALL + - 94 * 38
----
-3572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8613
SELECT - 12 DIV - COALESCE ( + + COALESCE ( COUNT( * ), 33 ), - ( - 53 ) + COUNT( * ) + - COUNT( * ) * - - 52 * - 63 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-8613
SELECT - 12 / - COALESCE ( + + COALESCE ( COUNT ( * ), 33 ), - ( - 53 ) + COUNT ( * ) + - COUNT ( * ) * - - 52 * - 63 ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8614
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 67 AS col2, 41 * 73 DIV 2 * - 59 + - - COUNT( * )
----
NULL
-88263

skipif mysql # not compatible
query II rowsort label-8614
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 67 AS col2, 41 * 73 / 2 * - 59 + - - COUNT ( * )
----
NULL
-88263

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8616
SELECT DISTINCT + 46 * - + NULLIF ( + 90, + 36 ) + - + 38 * NULLIF ( 48, + - ( - CAST( NULLIF ( 0, COUNT( * ) ) AS DECIMAL ) ) )
----
-5964

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT + 46 * - + NULLIF ( + 90, + 36 ) + - + 38 * NULLIF ( 48, + - ( - CAST ( NULLIF ( 0, COUNT ( * ) ) AS REAL ) ) )
----
-5964

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT - - ( - 98 ) DIV 60 + + - 8 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8617
SELECT - - ( - 98 ) / 60 + + - 8 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT - MIN( - 48 ) * + + 93 + - COALESCE ( 47, - COUNT( * ) * + 43 ) + + ( ( - + 92 ) ) + 59 * - 95 AS col0
----
-1280

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT - MIN ( - 48 ) * + + 93 + - COALESCE ( 47, - COUNT ( * ) * + 43 ) + + ( ( - + 92 ) ) + 59 * - 95 AS col0
----
-1280

query I rowsort
SELECT DISTINCT + + 52 * - 81 AS col2
----
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT - MAX( - - CASE - - 62 WHEN + 25 THEN + - 48 END ) / - + 96 * + - AVG ( ALL ( - 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT - MAX ( - - CASE - - 62 WHEN + 25 THEN + - 48 END ) / - + 96 * + - AVG ( ALL ( - 11 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - 69 * 22 - CASE + 28 WHEN - 44 / + COUNT( * ) THEN + 35 / + AVG ( 39 ) + + ( + MAX( + ( - 27 ) ) ) - + 79 * + 5 * ( - 15 ) + - 3 END + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT - 69 * 22 - CASE + 28 WHEN - 44 / + COUNT ( * ) THEN + 35 / + AVG ( 39 ) + + ( + MAX ( + ( - 27 ) ) ) - + 79 * + 5 * ( - 15 ) + - 3 END + 59 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - ( + 44 ) + + - 88 col0
----
-132

query I rowsort
SELECT - 82 - + - 96 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT - COALESCE ( - COUNT( * ), + 61 + + + 1 + - 70 + - 88, - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8625
SELECT - COALESCE ( - COUNT ( * ), + 61 + + + 1 + - 70 + - 88, - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT + 6 + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8626
SELECT + 6 + COUNT ( * ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT DISTINCT - 19 + + NULLIF ( - + COUNT( * ), COALESCE ( + 9, - + 63 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT - 19 + + NULLIF ( - + COUNT ( * ), COALESCE ( + 9, - + 63 ) )
----
-20

query I rowsort
SELECT ALL + 65 + - 92
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8629
SELECT 53 - + COALESCE ( CAST( + + COUNT( * ) AS SIGNED ), - COUNT( * ) + 96, - ( + 73 ) + - 45 ) * + 26
----
27

skipif mysql # not compatible
query I rowsort label-8629
SELECT 53 - + COALESCE ( CAST ( + + COUNT ( * ) AS INTEGER ), - COUNT ( * ) + 96, - ( + 73 ) + - 45 ) * + 26
----
27

query II rowsort
SELECT ALL 40, 28 AS col0
----
40
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT MAX( ALL + 84 ) - + ( + - ( 24 ) ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT MAX ( ALL + 84 ) - + ( + - ( 24 ) ) AS col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8633
SELECT DISTINCT 0, + 19 + NULLIF ( - - CAST( NULL AS SIGNED ), - 19 ) * - 13 / + + 10 col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8633
SELECT DISTINCT 0, + 19 + NULLIF ( - - CAST ( NULL AS INTEGER ), - 19 ) * - 13 / + + 10 col1
----
0
NULL

query I rowsort
SELECT 52 + + 84
----
136

query II rowsort
SELECT - 5 col2, 42 AS col2
----
-5
42

query I rowsort
SELECT DISTINCT 63 * + + 39 AS col0
----
2457

query I rowsort
SELECT 68 * - 4 col0
----
-272

query I rowsort
SELECT ALL 57 - - 45
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8639
SELECT 93 DIV + NULLIF ( 70, - CAST( COUNT( * ) AS SIGNED ) - + 53 ) + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-8639
SELECT 93 / + NULLIF ( 70, - CAST ( COUNT ( * ) AS INTEGER ) - + 53 ) + - 17
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL - MIN( ALL 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - MIN ( ALL 57 ) AS col1
----
-57

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

query II rowsort
SELECT ALL - + 68, 42 * 86 + + - NULLIF ( + 45, - 83 ) AS col1
----
-68
3567

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT 73 * + 25 + - COUNT( * ) + - 41 * + - 21
----
2685

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT 73 * + 25 + - COUNT ( * ) + - 41 * + - 21
----
2685

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ALL - + COUNT( + + COALESCE ( - 2, 16 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL - + COUNT ( + + COALESCE ( - 2, 16 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT + 52 * CASE - + 31 WHEN - + 69 / COUNT( * ) + + + ( 69 ) + - - 67 / - CAST( NULL AS SIGNED ) * + AVG ( ALL + 13 ) THEN - ( - 64 ) ELSE NULL END / 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 52 * CASE - + 31 WHEN - + 69 / COUNT ( * ) + + + ( 69 ) + - - 67 / - CAST ( NULL AS INTEGER ) * + AVG ( ALL + 13 ) THEN - ( - 64 ) ELSE NULL END / 23 AS col2
----
NULL

query I rowsort
SELECT + 46 * 10 + - 70 AS col2
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT SUM( DISTINCT - 77 ) * 69 + + ( - + COUNT( * ) ) AS col2
----
-5314

skipif mysql # not compatible
query I rowsort label-8647
SELECT SUM ( DISTINCT - 77 ) * 69 + + ( - + COUNT ( * ) ) AS col2
----
-5314

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT - 59 * 90 + 80 + COALESCE ( + COUNT( * ), 84 * - COALESCE ( 2, 56 ) * + 93 * 83 )
----
-5229

skipif mysql # not compatible
query I rowsort label-8648
SELECT - 59 * 90 + 80 + COALESCE ( + COUNT ( * ), 84 * - COALESCE ( 2, 56 ) * + 93 * 83 )
----
-5229

onlyif mysql # DIV for integer division: 
query I rowsort label-8649
SELECT - 18 DIV + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8649
SELECT - 18 / + 89 AS col0
----
0

query I rowsort
SELECT 39 * + 0 * + 73
----
0

query I rowsort
SELECT - 27 - - 56 AS col1
----
29

query I rowsort
SELECT 41 * + ( + 54 ) - + 27 AS col1
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT - ( + ( COALESCE ( - COUNT( * ), 26 * - + 66 ) ) ) * + 75 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8653
SELECT - ( + ( COALESCE ( - COUNT ( * ), 26 * - + 66 ) ) ) * + 75 AS col1
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8654
SELECT ALL - ( - 66 ) + - - 78 AS col1, CAST( NULL AS DECIMAL ) / - 59
----
144
NULL

skipif mysql # not compatible
query II rowsort label-8654
SELECT ALL - ( - 66 ) + - - 78 AS col1, CAST ( NULL AS REAL ) / - 59
----
144
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT ALL - COALESCE ( - 30, + 32 + + + CAST( 4 AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL - COALESCE ( - 30, + 32 + + + CAST ( 4 AS INTEGER ) )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT + 68 * + CAST( - 88 AS SIGNED ) AS col2
----
-5984

skipif mysql # not compatible
query I rowsort label-8656
SELECT + 68 * + CAST ( - 88 AS INTEGER ) AS col2
----
-5984

query I rowsort
SELECT ALL + 12 + + 6 * + 50 * 34 * - - 87
----
887412

query II rowsort
SELECT 72 AS col1, + 1 col2
----
72
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8659
SELECT CAST( - 17 AS SIGNED ) + - + 15 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8659
SELECT CAST ( - 17 AS INTEGER ) + - + 15 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8660
SELECT - ( + + 39 ) * - 44 + - 50 + CASE - - 66 WHEN 34 THEN ( + CASE + - 67 WHEN + 26 * + 45 THEN NULL WHEN + + ( + 30 ) THEN - 50 * + 3 + - 97 * + - SUM( DISTINCT + 50 ) + + - 29 END ) WHEN + - 67 / NULLIF ( 94, - - 28 ) + 16 / - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT - ( + + 39 ) * - 44 + - 50 + CASE - - 66 WHEN 34 THEN ( + CASE + - 67 WHEN + 26 * + 45 THEN NULL WHEN + + ( + 30 ) THEN - 50 * + 3 + - 97 * + - SUM ( DISTINCT + 50 ) + + - 29 END ) WHEN + - 67 / NULLIF ( 94, - - 28 ) + 16 / - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 63 - - COALESCE ( + 63, 40 * + 38, + 80 ) AS col0
----
126

query I rowsort
SELECT 72 + + 95 * + 9
----
927

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ALL - 33 + + COUNT( * ) - - + 88 * - COUNT( * )
----
-120

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL - 33 + + COUNT ( * ) - - + 88 * - COUNT ( * )
----
-120

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

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL + 61 * + 13 * - COUNT ( * ) AS col0
----
-793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8665
SELECT ALL COUNT( * ) - CASE + 72 WHEN + 47 * - 41 * - - CAST( NULL AS SIGNED ) + 26 - - ( - + 9 ) THEN + - 81 WHEN + 35 * - 35 THEN - 99 * - COALESCE ( ( CAST( + 97 AS SIGNED ) ), COUNT( DISTINCT CAST( - - 65 AS DECIMAL ) ) ) * - COALESCE ( - 79, + 15 * 68 DIV + 62 + + 78 * - 86 * + - CASE - 62 WHEN 61 DIV - 42 - + 67 * + 43 THEN NULL ELSE - 93 * 60 * + + 39 + + - 76 END * + - 4 - + - 92 * - 43, CASE COALESCE ( 8, - 32, CASE - 97 WHEN + 78 * 3 + 53 DIV - 94 THEN - 95 END * - 75 ) WHEN 0 THEN + CAST( + CAST( - 61 AS SIGNED ) AS SIGNED ) ELSE 22 + + 33 * - 20 END * - 92 ) + + 44 + + 4 * 88 ELSE + 91 + 86 * + 14 END
----
-1294

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL COUNT ( * ) - CASE + 72 WHEN + 47 * - 41 * - - CAST ( NULL AS INTEGER ) + 26 - - ( - + 9 ) THEN + - 81 WHEN + 35 * - 35 THEN - 99 * - COALESCE ( ( CAST ( + 97 AS INTEGER ) ), COUNT ( DISTINCT CAST ( - - 65 AS REAL ) ) ) * - COALESCE ( - 79, + 15 * 68 / + 62 + + 78 * - 86 * + - CASE - 62 WHEN 61 / - 42 - + 67 * + 43 THEN NULL ELSE - 93 * 60 * + + 39 + + - 76 END * + - 4 - + - 92 * - 43, CASE COALESCE ( 8, - 32, CASE - 97 WHEN + 78 * 3 + 53 / - 94 THEN - 95 END * - 75 ) WHEN 0 THEN + CAST ( + CAST ( - 61 AS INTEGER ) AS INTEGER ) ELSE 22 + + 33 * - 20 END * - 92 ) + + 44 + + 4 * 88 ELSE + 91 + 86 * + 14 END
----
-1294

query I rowsort
SELECT ALL + 61 * - 49 col1
----
-2989

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

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

query I rowsort
SELECT 59 + + 65
----
124

query I rowsort
SELECT 68 * + - 96 * - + 33
----
215424

query I rowsort
SELECT 4 * + + 17 col0
----
68

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

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

query I rowsort
SELECT ALL + 71 - - - 43 AS col2
----
28

query I rowsort
SELECT 84 + + - 41 + - 4
----
39

query I rowsort
SELECT + 22 + + - 17 + + - 58
----
-53

query I rowsort
SELECT DISTINCT + 6 * + 79 AS col2
----
474

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT - CASE + + CASE - COUNT( * ) WHEN + 83 THEN NULL WHEN + - NULLIF ( COALESCE ( NULLIF ( - 95, + 71 * 86 + + 87 ), + COUNT( * ) ), + 30 ) * + 50 - - - 3 THEN + MAX( + 56 ) END WHEN + 53 THEN + 38 END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT - CASE + + CASE - COUNT ( * ) WHEN + 83 THEN NULL WHEN + - NULLIF ( COALESCE ( NULLIF ( - 95, + 71 * 86 + + 87 ), + COUNT ( * ) ), + 30 ) * + 50 - - - 3 THEN + MAX ( + 56 ) END WHEN + 53 THEN + 38 END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8677
SELECT - + 96 DIV + 20 + + 96 + + + 87 * COALESCE ( + MAX( - 28 ), + CAST( + 69 AS SIGNED ) ) + + 34 - - 19 + 32 + + 69 + 71 * - 29
----
-4249

skipif mysql # not compatible
query I rowsort label-8677
SELECT - + 96 / + 20 + + 96 + + + 87 * COALESCE ( + MAX ( - 28 ), + CAST ( + 69 AS INTEGER ) ) + + 34 - - 19 + 32 + + 69 + 71 * - 29
----
-4249

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT ALL - 57 * + 69 * - - COUNT( * ) * + 31 AS col1
----
-121923

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL - 57 * + 69 * - - COUNT ( * ) * + 31 AS col1
----
-121923

onlyif mysql # aggregate syntax: 
query II rowsort label-8679
SELECT COUNT( * ) + + 18 * + 12 * + - 54 AS col0, + NULLIF ( - + 29, + COALESCE ( 33, + 23, 8 ) / + + 71 * COUNT( * ) )
----
-11663
-29

skipif mysql # not compatible
query II rowsort label-8679
SELECT COUNT ( * ) + + 18 * + 12 * + - 54 AS col0, + NULLIF ( - + 29, + COALESCE ( 33, + 23, 8 ) / + + 71 * COUNT ( * ) )
----
-11663
-29

query I rowsort
SELECT DISTINCT - - 51 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL - - 59 * - + COUNT( * ) + - 25
----
-84

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - - 59 * - + COUNT ( * ) + - 25
----
-84

query I rowsort
SELECT 87 + ( + - 43 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL - 2 * 41 + + COUNT( * ) - - + 8
----
-73

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL - 2 * 41 + + COUNT ( * ) - - + 8
----
-73

query I rowsort
SELECT 64 * - 16 col0
----
-1024

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8685
SELECT ALL 35 + + 35 * 72 + CAST( NULL AS DECIMAL ) * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL 35 + + 35 * 72 + CAST ( NULL AS REAL ) * - 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8686
SELECT 12 DIV 74 * - COUNT( * ) + - 71 + + - 78 * - 60 AS col2
----
4609

skipif mysql # not compatible
query I rowsort label-8686
SELECT 12 / 74 * - COUNT ( * ) + - 71 + + - 78 * - 60 AS col2
----
4609

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT 43 * - ( + + COUNT( * ) ) * 14 + + - 0 AS col2
----
-602

skipif mysql # not compatible
query I rowsort label-8688
SELECT 43 * - ( + + COUNT ( * ) ) * 14 + + - 0 AS col2
----
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT + CASE - - 41 WHEN - 36 + + + 42 * + NULLIF ( + + ( - 65 ), - - 52 * + 87 ) * - COUNT( * ) THEN + 94 ELSE NULL END + - 48 + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT + CASE - - 41 WHEN - 36 + + + 42 * + NULLIF ( + + ( - 65 ), - - 52 * + 87 ) * - COUNT ( * ) THEN + 94 ELSE NULL END + - 48 + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT ( COUNT( * ) ) - + + MIN( 75 ) + + 26 * 42
----
1018

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT ( COUNT ( * ) ) - + + MIN ( 75 ) + + 26 * 42
----
1018

query II rowsort
SELECT 83 AS col1, - 64
----
83
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT ALL CAST( NULL AS SIGNED ) - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL CAST ( NULL AS INTEGER ) - 91 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8694
SELECT ALL 90, - 8 / COUNT( * ) * 78 * + 70 * - CAST( NULL AS SIGNED ) AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-8694
SELECT ALL 90, - 8 / COUNT ( * ) * 78 * + 70 * - CAST ( NULL AS INTEGER ) AS col2
----
90
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8695
SELECT 83, 99 * + - COUNT( DISTINCT - 34 ) * 37 AS col1
----
83
-3663

skipif mysql # not compatible
query II rowsort label-8695
SELECT 83, 99 * + - COUNT ( DISTINCT - 34 ) * 37 AS col1
----
83
-3663

query I rowsort
SELECT - 93 + + ( 56 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL - COUNT( * ) * - 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - COUNT ( * ) * - 86 AS col2
----
86

query II rowsort
SELECT DISTINCT 7, - 54 AS col0
----
7
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT - 12 * - + CASE - - COUNT( * ) WHEN - 17 THEN - 94 / 47 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT - 12 * - + CASE - - COUNT ( * ) WHEN - 17 THEN - 94 / 47 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 21 * + 7
----
147

query I rowsort
SELECT DISTINCT - 19 + + 61 col2
----
42

query I rowsort
SELECT + 64 + - 33
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8703
SELECT + + ( + CAST( - COALESCE ( - COUNT( * ), - + 74 ) AS SIGNED ) ) DIV 74 + - - 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8703
SELECT + + ( + CAST ( - COALESCE ( - COUNT ( * ), - + 74 ) AS INTEGER ) ) / 74 + - - 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT - + 91 * - - COUNT( * ) + 67 col0, + 27 * 61
----
-24
1647

skipif mysql # not compatible
query II rowsort label-8704
SELECT - + 91 * - - COUNT ( * ) + 67 col0, + 27 * 61
----
-24
1647

onlyif mysql # aggregate syntax: 
query II rowsort label-8705
SELECT ALL - 86 + + - 60 * + COUNT( * ) AS col1, 97 * COALESCE ( + 4, - 73, - - COUNT( * ), COUNT( * ) ) AS col2
----
-146
388

skipif mysql # not compatible
query II rowsort label-8705
SELECT ALL - 86 + + - 60 * + COUNT ( * ) AS col1, 97 * COALESCE ( + 4, - 73, - - COUNT ( * ), COUNT ( * ) ) AS col2
----
-146
388

query I rowsort
SELECT - - COALESCE ( + - 96, + 78 ) * - 27
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT + SUM( + - ( + - 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-8707
SELECT + SUM ( + - ( + - 94 ) )
----
94

query I rowsort
SELECT + NULLIF ( 57, - 99 ) AS col0
----
57

query I rowsort
SELECT ALL - + 33 * 62 + + + 15 AS col0
----
-2031

query I rowsort
SELECT - 25 - - ( + 87 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8711
SELECT + COALESCE ( - + 32, - - COALESCE ( - - ( + - 56 ), 52, - - 57 ) DIV - - 56 + + 5, ( - NULLIF ( ( ( 81 ) ), - CASE - SUM( DISTINCT - 82 ) WHEN - 21 DIV 20 + + 70 THEN NULL ELSE - 21 * 57 * - + 59 END ) ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8711
SELECT + COALESCE ( - + 32, - - COALESCE ( - - ( + - 56 ), 52, - - 57 ) / - - 56 + + 5, ( - NULLIF ( ( ( 81 ) ), - CASE - SUM ( DISTINCT - 82 ) WHEN - 21 / 20 + + 70 THEN NULL ELSE - 21 * 57 * - + 59 END ) ) ) AS col2
----
-32

query I rowsort
SELECT DISTINCT - 88 * + + 39 AS col2
----
-3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8713
SELECT ALL + CASE + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + + 27 * - COUNT( * ) / COALESCE ( + 75, - COALESCE ( - COUNT( * ), + COUNT( * ) * - 51 + COUNT( * ) ) / - + 52 + - COALESCE ( COUNT( * ), + 51 / - 63 + + 58 + 46 / - 64 ) ) / AVG ( ALL - 16 ) - + - ( - ( - 28 ) ) THEN NULL WHEN 82 THEN - - 27 WHEN - 92 * 0 THEN - - ( - 48 ) ELSE + 68 END AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + CASE + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + + 27 * - COUNT ( * ) / COALESCE ( + 75, - COALESCE ( - COUNT ( * ), + COUNT ( * ) * - 51 + COUNT ( * ) ) / - + 52 + - COALESCE ( COUNT ( * ), + 51 / - 63 + + 58 + 46 / - 64 ) ) / AVG ( ALL - 16 ) - + - ( - ( - 28 ) ) THEN NULL WHEN 82 THEN - - 27 WHEN - 92 * 0 THEN - - ( - 48 ) ELSE + 68 END AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT ALL 41 / - CAST( NULL AS SIGNED ) * + - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL 41 / - CAST ( NULL AS INTEGER ) * + - 66 AS col0
----
NULL

query I rowsort
SELECT + 47 * + + 76 * - 61 * + + NULLIF ( - 17, + 94 * - 43 ) AS col0
----
3704164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT + NULLIF ( + COUNT( * ), - - 72 ) + - 48 * + - CAST( NULL AS SIGNED ) + 76 * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT + NULLIF ( + COUNT ( * ), - - 72 ) + - 48 * + - CAST ( NULL AS INTEGER ) + 76 * + 74
----
NULL

query I rowsort
SELECT + 82 * - 66 AS col1
----
-5412

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT ALL 88 DIV 25 * + 69
----
207

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL 88 / 25 * + 69
----
207

query II rowsort
SELECT - 93 + 55, + 20 AS col1
----
-38
20

query I rowsort
SELECT - 11 * + NULLIF ( 5, - 99 )
----
-55

query I rowsort
SELECT + ( 22 ) * 21
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT COUNT( + 48 )
----
1

skipif mysql # not compatible
query I rowsort label-8722
SELECT COUNT ( + 48 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8724
SELECT ALL 49, NULLIF ( + 72, - - 58 + + MAX( - + 98 ) * - 71 / - ( 7 ) - 84 + - + COUNT( * ) ) + - 83 AS col0
----
49
-11

skipif mysql # not compatible
query II rowsort label-8724
SELECT ALL 49, NULLIF ( + 72, - - 58 + + MAX ( - + 98 ) * - 71 / - ( 7 ) - 84 + - + COUNT ( * ) ) + - 83 AS col0
----
49
-11

query I rowsort
SELECT + 40 + 71 - + + 92 AS col2
----
19

query I rowsort
SELECT + 57 * - 9 * - 23 AS col0
----
11799

query II rowsort
SELECT + NULLIF ( - 58, ( 44 ) ) + + - 21 * - 97 col1, - 96 * - 99 + + + 11 + - - 81 * 59 AS col0
----
1979
14294

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL 39 + + NULLIF ( + COUNT( ALL + 14 ), - 7 ) * + 28 + - + 51 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL 39 + + NULLIF ( + COUNT ( ALL + 14 ), - 7 ) * + 28 + - + 51 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT - + 62 + - 80 * - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-8729
SELECT - + 62 + - 80 * - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT DISTINCT 90 AS col2, MAX( + 70 ) * + 81 AS col2
----
90
5670

skipif mysql # not compatible
query II rowsort label-8730
SELECT DISTINCT 90 AS col2, MAX ( + 70 ) * + 81 AS col2
----
90
5670

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8731
SELECT ALL + - 48 + CASE + CAST( + 43 AS DECIMAL ) WHEN - + 69 * - 63 + - ( - 39 ) THEN + 68 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL + - 48 + CASE + CAST ( + 43 AS REAL ) WHEN - + 69 * - 63 + - ( - 39 ) THEN + 68 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT DISTINCT 63 + 64 + - - 36 + COUNT( DISTINCT + 11 ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT 63 + 64 + - - 36 + COUNT ( DISTINCT + 11 ) AS col2
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8733
SELECT + 7 + + - 67 * ( - - ( - COUNT( * ) ) ) + + COUNT( * ) DIV 37 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8733
SELECT + 7 + + - 67 * ( - - ( - COUNT ( * ) ) ) + + COUNT ( * ) / 37 AS col1
----
74

query I rowsort
SELECT DISTINCT - 74 + - NULLIF ( - 29, 37 - + - 28 )
----
-45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT + 64 * + 7 - + 8 * - 65 + - - 77 DIV + + 6 + 69 + - 37
----
1012

skipif mysql # not compatible
query I rowsort label-8736
SELECT + 64 * + 7 - + 8 * - 65 + - - 77 / + + 6 + 69 + - 37
----
1012

onlyif mysql # aggregate syntax: 
query II rowsort label-8737
SELECT + - 16, MAX( DISTINCT 93 ) AS col2
----
-16
93

skipif mysql # not compatible
query II rowsort label-8737
SELECT + - 16, MAX ( DISTINCT 93 ) AS col2
----
-16
93

query II rowsort
SELECT DISTINCT + - ( - - 61 ) AS col2, 59 AS col1
----
-61
59

query II rowsort
SELECT ALL - 52, - 96 AS col2
----
-52
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8740
SELECT - 70 + + CAST( - MIN( ALL + 23 ) AS SIGNED ) + + CAST( 64 AS SIGNED ) DIV 78 * - + ( - 46 ) * + 58 * - 55 * + 34 + + 17 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8740
SELECT - 70 + + CAST ( - MIN ( ALL + 23 ) AS INTEGER ) + + CAST ( 64 AS INTEGER ) / 78 * - + ( - 46 ) * + 58 * - 55 * + 34 + + 17 AS col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8741
SELECT - 60 * 60 + + CASE + 95 WHEN - 14 THEN - COUNT( * ) * - 53 + + + 22 + + - 49 DIV + 48 * - 85 WHEN 98 + + 77 THEN + + 54 ELSE - - 55 END
----
-3545

skipif mysql # not compatible
query I rowsort label-8741
SELECT - 60 * 60 + + CASE + 95 WHEN - 14 THEN - COUNT ( * ) * - 53 + + + 22 + + - 49 / + 48 * - 85 WHEN 98 + + 77 THEN + + 54 ELSE - - 55 END
----
-3545

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8743
SELECT 83 DIV - - 65 + COALESCE ( + + 78, COUNT( + 15 ) + 29 + - 92 + 14, 39, - + 83 DIV + 98 ) - - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8743
SELECT 83 / - - 65 + COALESCE ( + + 78, COUNT ( + 15 ) + 29 + - 92 + 14, 39, - + 83 / + 98 ) - - COUNT ( * ) AS col1
----
80

query II rowsort
SELECT 62 + - 15, 42 AS col1
----
47
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL - 47 * SUM( DISTINCT ( + 71 ) )
----
-3337

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - 47 * SUM ( DISTINCT ( + 71 ) )
----
-3337

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8746
SELECT 78 * - 90 * - 49 DIV + COUNT( - 4 ) col2
----
343980

skipif mysql # not compatible
query I rowsort label-8746
SELECT 78 * - 90 * - 49 / + COUNT ( - 4 ) col2
----
343980

query I rowsort
SELECT DISTINCT - 57 * - 59 * 27 AS col0
----
90801

query II rowsort
SELECT ALL - ( - 50 ) AS col1, + 6 AS col1
----
50
6

query I rowsort
SELECT 68 * - + 85
----
-5780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8750
SELECT 4 * + + CASE + AVG ( 56 ) WHEN - 62 + - 98 * + COALESCE ( - + ( - ( ( - NULLIF ( + ( - CAST( NULL AS SIGNED ) ), + + 42 ) ) ) ), COUNT( * ), 57 + - 18, - - 9 ) THEN NULL ELSE - COUNT( * ) END
----
-4

skipif mysql # not compatible
query I rowsort label-8750
SELECT 4 * + + CASE + AVG ( 56 ) WHEN - 62 + - 98 * + COALESCE ( - + ( - ( ( - NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), + + 42 ) ) ) ), COUNT ( * ), 57 + - 18, - - 9 ) THEN NULL ELSE - COUNT ( * ) END
----
-4

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

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

query I rowsort
SELECT ALL 34 + - 9 col1
----
25

query I rowsort
SELECT ALL - 39 * - NULLIF ( 62, - 40 + 81 - + 13 * + - AVG ( ( + 99 ) ) ) AS col0
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT COUNT( * ) * - + 15 * - - COUNT( * ) * - 76 AS col2
----
1140

skipif mysql # not compatible
query I rowsort label-8754
SELECT COUNT ( * ) * - + 15 * - - COUNT ( * ) * - 76 AS col2
----
1140

onlyif mysql # aggregate syntax: 
query II rowsort label-8755
SELECT ALL + COUNT( * ) + - 74 * - + 92, + CASE CASE - 9 WHEN COUNT( * ) THEN + ( - 2 ) WHEN + 91 * - + 53 THEN 84 + + 0 + - 18 ELSE NULL END WHEN + 24 THEN + - 27 END AS col2
----
6809
NULL

skipif mysql # not compatible
query II rowsort label-8755
SELECT ALL + COUNT ( * ) + - 74 * - + 92, + CASE CASE - 9 WHEN COUNT ( * ) THEN + ( - 2 ) WHEN + 91 * - + 53 THEN 84 + + 0 + - 18 ELSE NULL END WHEN + 24 THEN + - 27 END AS col2
----
6809
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT 84 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT 84 / 98
----
0

query I rowsort
SELECT 87 - + + 69 AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8758
SELECT 29 + - 28 AS col1, - 2 * - - COUNT( * )
----
1
-2

skipif mysql # not compatible
query II rowsort label-8758
SELECT 29 + - 28 AS col1, - 2 * - - COUNT ( * )
----
1
-2

query I rowsort
SELECT COALESCE ( - 76, - 91 ) * - + CASE + - 96 WHEN + - 56 THEN + ( - - 32 ) - - 12 END * - 79 + - - 42 - - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL SUM( DISTINCT + NULLIF ( + - 81, - + 56 ) ) + - + 68
----
-149

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL SUM ( DISTINCT + NULLIF ( + - 81, - + 56 ) ) + - + 68
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8761
SELECT DISTINCT + - 79 + + CAST( - MIN( DISTINCT 75 ) AS SIGNED ) AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT + - 79 + + CAST ( - MIN ( DISTINCT 75 ) AS INTEGER ) AS col1
----
-154

query I rowsort
SELECT + 78 * - + COALESCE ( - 34, - 48, 91 ) col2
----
2652

query I rowsort
SELECT 62 - + 77 + - 87
----
-102

query I rowsort
SELECT ALL + - 29 * 26 AS col0
----
-754

query I rowsort
SELECT - - NULLIF ( - 38, - 94 ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT + 62 + + - 2 * - SUM( + CASE 59 WHEN 65 THEN + 61 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT + 62 + + - 2 * - SUM ( + CASE 59 WHEN 65 THEN + 61 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT 31 * 9 DIV + 57 + + 28 col1
----
32

skipif mysql # not compatible
query I rowsort label-8767
SELECT 31 * 9 / + 57 + + 28 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT COALESCE ( - + CASE - 69 WHEN + 21 * + + 9 THEN NULL WHEN CASE - 22 WHEN - SUM( ALL + 33 ) * COUNT( * ) / NULLIF ( - 59, - ( - 8 ) ) THEN + + COUNT( * ) ELSE + 52 END THEN - + 76 END, - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8768
SELECT COALESCE ( - + CASE - 69 WHEN + 21 * + + 9 THEN NULL WHEN CASE - 22 WHEN - SUM ( ALL + 33 ) * COUNT ( * ) / NULLIF ( - 59, - ( - 8 ) ) THEN + + COUNT ( * ) ELSE + 52 END THEN - + 76 END, - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT CASE + 21 WHEN 55 * 57 THEN + + COUNT( DISTINCT + + 49 ) / + MAX( - + 1 ) * - + 39 / + 6 * + + COUNT( * ) + - 90 + ( SUM( DISTINCT + - NULLIF ( + - 1, - 51 ) ) ) / + + COUNT( DISTINCT - 59 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT CASE + 21 WHEN 55 * 57 THEN + + COUNT ( DISTINCT + + 49 ) / + MAX ( - + 1 ) * - + 39 / + 6 * + + COUNT ( * ) + - 90 + ( SUM ( DISTINCT + - NULLIF ( + - 1, - 51 ) ) ) / + + COUNT ( DISTINCT - 59 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8770
SELECT DISTINCT 86 DIV + - 93 * 98 AS col0, + 79
----
0
79

skipif mysql # not compatible
query II rowsort label-8770
SELECT DISTINCT 86 / + - 93 * 98 AS col0, + 79
----
0
79

query I rowsort
SELECT + 34 * + - ( + 79 ) + 82
----
-2604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT + NULLIF ( + 4, 8 ) DIV - 8 + + + 47 + COUNT( * ) * + + 73
----
120

skipif mysql # not compatible
query I rowsort label-8772
SELECT + NULLIF ( + 4, 8 ) / - 8 + + + 47 + COUNT ( * ) * + + 73
----
120

query I rowsort
SELECT 97 * - - 7 * 42 * - - 53
----
1511454

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT + SUM( DISTINCT 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8774
SELECT + SUM ( DISTINCT 57 ) AS col2
----
57

query I rowsort
SELECT ALL - 44 + 60 AS col1
----
16

query I rowsort
SELECT ALL 70 * + 35
----
2450

query I rowsort
SELECT ALL 28 + 76 + + 90 + + + 64 * 82 + - 9 AS col2
----
5433

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

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL + COUNT ( ALL - 87 ) / - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT 63 + - - 42 col1
----
105

query I rowsort
SELECT 6 + - 52
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8781
SELECT 22 - 12 - + 55 + + 54 + - CAST( NULL AS SIGNED ) * - 41 * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT 22 - 12 - + 55 + + 54 + - CAST ( NULL AS INTEGER ) * - 41 * + 53
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 9, - 79 + + 98 ) * + ( + ( ( + - 27 ) ) ) * - + 54 * - - ( - + 36 ) + + 20 + - 84
----
-472456

query II rowsort
SELECT - 57 col1, + 61
----
-57
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT NULLIF ( COUNT( * ), 71 ) * - + COUNT( * ) + + 17
----
16

skipif mysql # not compatible
query I rowsort label-8784
SELECT NULLIF ( COUNT ( * ), 71 ) * - + COUNT ( * ) + + 17
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8785
SELECT DISTINCT - ( + 80 ) + - 73 * + - 79, - ( + + 63 ) - - COUNT( * ) DIV 41 AS col1
----
5687
-63

skipif mysql # not compatible
query II rowsort label-8785
SELECT DISTINCT - ( + 80 ) + - 73 * + - 79, - ( + + 63 ) - - COUNT ( * ) / 41 AS col1
----
5687
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT 12 * - 58 * + COALESCE ( + - 48, COUNT( * ) ) AS col1
----
33408

skipif mysql # not compatible
query I rowsort label-8786
SELECT 12 * - 58 * + COALESCE ( + - 48, COUNT ( * ) ) AS col1
----
33408

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL + - 77 * + 55 - + COUNT( * )
----
-4236

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL + - 77 * + 55 - + COUNT ( * )
----
-4236

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT COUNT( ALL 18 ) + + + 96
----
97

skipif mysql # not compatible
query I rowsort label-8788
SELECT COUNT ( ALL 18 ) + + + 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL + - COUNT( * ) - 19 + - ( - + 35 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + - COUNT ( * ) - 19 + - ( - + 35 ) AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8790
SELECT DISTINCT 28 DIV + 49 * COUNT( * ), - 45 * ( 71 ) AS col2
----
0
-3195

skipif mysql # not compatible
query II rowsort label-8790
SELECT DISTINCT 28 / + 49 * COUNT ( * ), - 45 * ( 71 ) AS col2
----
0
-3195

query II rowsort
SELECT - - 53, 62 AS col0
----
53
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8792
SELECT - 42 + + - 50 DIV 15 DIV - 94 + + + 23
----
-19

skipif mysql # not compatible
query I rowsort label-8792
SELECT - 42 + + - 50 / 15 / - 94 + + + 23
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8793
SELECT 56 DIV + ( - 99 ) * - NULLIF ( - 20, - CAST( NULL AS SIGNED ) * - 28 + - - 86 * COUNT( * ) DIV + 95 + - + 59 * ( - 15 ) * - 69 + 22 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8793
SELECT 56 / + ( - 99 ) * - NULLIF ( - 20, - CAST ( NULL AS INTEGER ) * - 28 + - - 86 * COUNT ( * ) / + 95 + - + 59 * ( - 15 ) * - 69 + 22 ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8794
SELECT - 16 DIV + NULLIF ( ( + COALESCE ( + 86, + 37 ) ), + 41 - COUNT( * ) * ( 72 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8794
SELECT - 16 / + NULLIF ( ( + COALESCE ( + 86, + 37 ) ), + 41 - COUNT ( * ) * ( 72 ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT ALL + - 1 DIV - 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + - 1 / - 30 AS col2
----
0

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

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

query I rowsort
SELECT + 30 + CASE - + 69 WHEN + 70 + - - AVG ( ALL + + 21 ) + + 16 THEN NULL WHEN - 4 THEN 88 * + - 96 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - - 75, - 32 ) AS col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT ALL + 53 DIV + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL + 53 / + 65 AS col0
----
0

query II rowsort
SELECT - 55, 17 AS col0
----
-55
17

query I rowsort
SELECT ALL + 72 * - 75
----
-5400

onlyif mysql # aggregate syntax: 
query II rowsort label-8802
SELECT + + 67 + + 80 + - 25 col0, - COUNT( * ) + 22 - - 76 * + COUNT( * ) AS col1
----
122
97

skipif mysql # not compatible
query II rowsort label-8802
SELECT + + 67 + + 80 + - 25 col0, - COUNT ( * ) + 22 - - 76 * + COUNT ( * ) AS col1
----
122
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8803
SELECT ALL + + CASE - 11 WHEN + 67 THEN - 96 + - 31 ELSE - NULLIF ( - COALESCE ( - + 99, 7 ), 20 ) + 12 END * - 26 - - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + + CASE - 11 WHEN + 67 THEN - 96 + - 31 ELSE - NULLIF ( - COALESCE ( - + 99, 7 ), 20 ) + 12 END * - 26 - - - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 19 + 12 - - - 97 AS col1, + 51 AS col0
----
-66
51

query II rowsort
SELECT + 61 AS col0, 25
----
61
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT - 92 * 71 + + MIN( ALL 65 ) * + + COUNT( ALL 3 ) * - + 24 AS col1
----
-8092

skipif mysql # not compatible
query I rowsort label-8806
SELECT - 92 * 71 + + MIN ( ALL 65 ) * + + COUNT ( ALL 3 ) * - + 24 AS col1
----
-8092

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

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT + COUNT ( DISTINCT 7 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-8808
SELECT + 44 / 56 + + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + COALESCE ( - 84, - + ( - + 58 ), + 21 ) * - + 43 AS col0
----
3612

query I rowsort
SELECT ALL 63 * - - 40 + + - 85 AS col0
----
2435

query II rowsort
SELECT DISTINCT 31 * - 54 * - 43 + + 35 AS col2, 19 col0
----
72017
19

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

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

query I rowsort
SELECT ALL 6 * + 69 + + 74 AS col2
----
488

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8814
SELECT + CAST( + 37 AS SIGNED ) DIV + 9 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8814
SELECT + CAST ( + 37 AS INTEGER ) / + 9 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT MIN( 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8815
SELECT MIN ( 65 ) AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT + 51 * - ( + - CASE + CAST( NULL AS SIGNED ) WHEN - 40 - 38 THEN NULL WHEN + ( 79 ) THEN + 37 / + + COUNT( * ) + - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT + 51 * - ( + - CASE + CAST ( NULL AS INTEGER ) WHEN - 40 - 38 THEN NULL WHEN + ( 79 ) THEN + 37 / + + COUNT ( * ) + - COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL COUNT( * ) * COALESCE ( 24, - 24, + + 38 )
----
24

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL COUNT ( * ) * COALESCE ( 24, - 24, + + 38 )
----
24

query I rowsort
SELECT ALL + - ( - 77 ) col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT ALL - - 78 DIV 95 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - - 78 / 95 / 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT ALL - 96 * + + 38 * + MIN( ALL - NULLIF ( + - 38, + 6 + 54 * + + 52 ) ) + - + 51 - ( + 37 ) + + 73 * - - 91 * + 33 AS col2
----
80507

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL - 96 * + + 38 * + MIN ( ALL - NULLIF ( + - 38, + 6 + 54 * + + 52 ) ) + - + 51 - ( + 37 ) + + 73 * - - 91 * + 33 AS col2
----
80507

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT - - 31 * + COUNT( * ) * - 54 - + COUNT( * ) * - 38 * - 41 AS col0
----
-3232

skipif mysql # not compatible
query I rowsort label-8821
SELECT - - 31 * + COUNT ( * ) * - 54 - + COUNT ( * ) * - 38 * - 41 AS col0
----
-3232

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT + 31 + + - COUNT( * ) + - - 56 * 98 AS col2, 4 * 88 + + - 5 * + NULLIF ( + MIN( - + 94 ), + ( - 85 ) * + 46 * - - COALESCE ( - 44, 11 ) ) * + - 98 * + + 0 AS col2
----
5518
352

skipif mysql # not compatible
query II rowsort label-8823
SELECT + 31 + + - COUNT ( * ) + - - 56 * 98 AS col2, 4 * 88 + + - 5 * + NULLIF ( + MIN ( - + 94 ), + ( - 85 ) * + 46 * - - COALESCE ( - 44, 11 ) ) * + - 98 * + + 0 AS col2
----
5518
352

query II rowsort
SELECT ( + 66 ) AS col1, - 7
----
66
-7

query I rowsort
SELECT - + 31 + + 41 * - + 29
----
-1220

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

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

query I rowsort
SELECT - - 57 * + + ( - 10 ) AS col2
----
-570

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

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

query I rowsort
SELECT DISTINCT + - 7 * 50
----
-350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT - - CAST( NULL AS SIGNED ) - + 90 + - 42 / 35 / + - 88 + CAST( NULL AS SIGNED ) + + 58 + - 6 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT - - CAST ( NULL AS INTEGER ) - + 90 + - 42 / 35 / + - 88 + CAST ( NULL AS INTEGER ) + + 58 + - 6 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 47 + 96 * 93 + + 34 col0
----
8915

query I rowsort
SELECT - + 35 * - 14 AS col0
----
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8833
SELECT + + 30 * + - 37 * CASE COUNT( * ) WHEN 22 * - + 3 + - + 35 + - + 84 / + + 46 THEN - ( + 32 ) * - COUNT( * ) ELSE NULL END - 38 * - ( + 73 ) + - + 95 * + COUNT( * ), - NULLIF ( - - 11, - CAST( NULL AS SIGNED ) ) col2
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-8833
SELECT + + 30 * + - 37 * CASE COUNT ( * ) WHEN 22 * - + 3 + - + 35 + - + 84 / + + 46 THEN - ( + 32 ) * - COUNT ( * ) ELSE NULL END - 38 * - ( + 73 ) + - + 95 * + COUNT ( * ), - NULLIF ( - - 11, - CAST ( NULL AS INTEGER ) ) col2
----
NULL
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT - + MAX( ALL - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-8834
SELECT - + MAX ( ALL - 68 )
----
68

query I rowsort
SELECT ALL + 43 + + 1 * - 14 + 50 AS col2
----
79

query I rowsort
SELECT - 65 * + 25 AS col0
----
-1625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL + NULLIF ( 25, COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL + NULLIF ( 25, COUNT ( * ) )
----
25

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

skipif mysql # not compatible
query I rowsort label-8839
SELECT + COUNT ( * ) / MAX ( + - 89 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT + COUNT( * ) * - 53 * 63 * + 68 AS col1
----
-227052

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT + COUNT ( * ) * - 53 * 63 * + 68 AS col1
----
-227052

query I rowsort
SELECT + 11 - + 25 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT ( - + 42 ) * 45 + COUNT( * ) + + 48 * CAST( NULL AS SIGNED ) + + 80 * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT ( - + 42 ) * 45 + COUNT ( * ) + + 48 * CAST ( NULL AS INTEGER ) + + 80 * - 17
----
NULL

query I rowsort
SELECT + 75 * + 81 AS col1
----
6075

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT 18 * 88 + + 40 + ( - COUNT( * ) ) * + - 34 * COALESCE ( - 30, + 84 + + - 59 ) AS col0
----
604

skipif mysql # not compatible
query I rowsort label-8845
SELECT 18 * 88 + + 40 + ( - COUNT ( * ) ) * + - 34 * COALESCE ( - 30, + 84 + + - 59 ) AS col0
----
604

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL - 20 * COUNT( * ) - - + COUNT( * ) + 34 - - 21 * 51 * + 10 AS col2
----
10725

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL - 20 * COUNT ( * ) - - + COUNT ( * ) + 34 - - 21 * 51 * + 10 AS col2
----
10725

onlyif mysql # aggregate syntax: 
query II rowsort label-8847
SELECT ALL + 96 AS col1, + COUNT( * )
----
96
1

skipif mysql # not compatible
query II rowsort label-8847
SELECT ALL + 96 AS col1, + COUNT ( * )
----
96
1

query II rowsort
SELECT - 20 * - 89 + + + 94 - - 2 + + 58 AS col0, 8
----
1934
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL - 70 * - - 40 - + 9 * 92 * + SUM( - - 54 ) AS col0
----
-47512

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL - 70 * - - 40 - + 9 * 92 * + SUM ( - - 54 ) AS col0
----
-47512

onlyif mysql # DIV for integer division: 
query I rowsort label-8850
SELECT DISTINCT 68 DIV - - 35
----
1

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT 68 / - - 35
----
1

query I rowsort
SELECT + - 57 + - + 77
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT + - ( - COALESCE ( 8, - 72, 50 ) ) * 42 * + - COUNT( * ) AS col0
----
-336

skipif mysql # not compatible
query I rowsort label-8852
SELECT + - ( - COALESCE ( 8, - 72, 50 ) ) * 42 * + - COUNT ( * ) AS col0
----
-336

query I rowsort
SELECT ALL + 46 * - 21 + + 73 + 8
----
-885

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

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

query I rowsort
SELECT + 28 * NULLIF ( + - 28, 50 * - 40 * + + 65 - + - 43 )
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL - COALESCE ( - - COUNT( * ), 27, + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL - COALESCE ( - - COUNT ( * ), 27, + 49 )
----
-1

query I rowsort
SELECT 14 * 41
----
574

query I rowsort
SELECT ALL + 28 * + 61 AS col0
----
1708

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8859
SELECT DISTINCT 44 AS col2, COALESCE ( + MIN( + 94 ), + 45 * 61 DIV + - 5 + + 0 ) AS col0
----
44
94

skipif mysql # not compatible
query II rowsort label-8859
SELECT DISTINCT 44 AS col2, COALESCE ( + MIN ( + 94 ), + 45 * 61 / + - 5 + + 0 ) AS col0
----
44
94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT 93 DIV - + 11 col2
----
-8

skipif mysql # not compatible
query I rowsort label-8861
SELECT 93 / - + 11 col2
----
-8

query I rowsort
SELECT - 78 + + - 40 * + 93
----
-3798

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT - CASE + 22 WHEN + 14 + 98 THEN 65 * + 79 WHEN 84 THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT - CASE + 22 WHEN + 14 + 98 THEN 65 * + 79 WHEN 84 THEN NULL ELSE COUNT ( * ) END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT ( 41 ) + + 12 DIV + 87
----
41

skipif mysql # not compatible
query I rowsort label-8864
SELECT ( 41 ) + + 12 / + 87
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT COALESCE ( + - 40, - COUNT( * ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-8865
SELECT COALESCE ( + - 40, - COUNT ( * ) ) AS col0
----
-40

query I rowsort
SELECT 72 + + 5
----
77

query I rowsort
SELECT + 14 + - + 93
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8868
SELECT + 53 * - CAST( NULL AS SIGNED ) / NULLIF ( + MAX( DISTINCT + 66 ), - COUNT( * ) + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT + 53 * - CAST ( NULL AS INTEGER ) / NULLIF ( + MAX ( DISTINCT + 66 ), - COUNT ( * ) + 69 )
----
NULL

query I rowsort
SELECT 62 * - 63
----
-3906

query I rowsort
SELECT ALL NULLIF ( - 30, - 51 )
----
-30

query I rowsort
SELECT DISTINCT + 51 + - 70 * - + 98
----
6911

query I rowsort
SELECT ALL - 85 + - 28
----
-113

query I rowsort
SELECT ALL - 12 + + + 56
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT 97 + - COUNT( ALL + 68 ) + - 13
----
83

skipif mysql # not compatible
query I rowsort label-8874
SELECT 97 + - COUNT ( ALL + 68 ) + - 13
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8875
SELECT ALL + 12 + + COUNT( * ) * + 14 DIV 29 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL + 12 + + COUNT ( * ) * + 14 / 29 AS col1
----
12

query II rowsort
SELECT 39 AS col1, - 76 - 47 AS col0
----
39
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL - NULLIF ( 72, - CASE + 37 WHEN + + SUM( DISTINCT + 15 ) / + + 71 * 53 THEN + - COUNT( * ) WHEN + + 59 * 4 THEN NULL END * + 87 ) - + 92 AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - NULLIF ( 72, - CASE + 37 WHEN + + SUM ( DISTINCT + 15 ) / + + 71 * 53 THEN + - COUNT ( * ) WHEN + + 59 * 4 THEN NULL END * + 87 ) - + 92 AS col1
----
-164

query I rowsort
SELECT 3 * - - 34 * + 48
----
4896

query II rowsort
SELECT 39 AS col2, 1 + - 97 col1
----
39
-96

query I rowsort
SELECT ALL 15 - + + 20 * 5 AS col1
----
-85

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

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

query I rowsort
SELECT ALL - 17 * - 33 col1
----
561

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT 84, + SUM( + 78 ) AS col2
----
84
78

skipif mysql # not compatible
query II rowsort label-8883
SELECT 84, + SUM ( + 78 ) AS col2
----
84
78

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

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

query II rowsort
SELECT + CASE 77 WHEN - 39 / + - 34 * + 99 * - - 64 * 81 * - + 54 + - - 78 THEN - 90 WHEN - 12 THEN NULL END AS col2, 44 + - 13 AS col2
----
NULL
31

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8887
SELECT ALL - - CASE + + 79 WHEN - COALESCE ( + + 7, - 88 ) THEN NULL WHEN 22 + + 67 THEN NULL ELSE - + CAST( - - 63 AS SIGNED ) * + 30 END
----
-1890

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - - CASE + + 79 WHEN - COALESCE ( + + 7, - 88 ) THEN NULL WHEN 22 + + 67 THEN NULL ELSE - + CAST ( - - 63 AS INTEGER ) * + 30 END
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT - NULLIF ( 35, COUNT( * ) ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT - NULLIF ( 35, COUNT ( * ) ) col0
----
-35

query I rowsort
SELECT ALL - CASE - 89 WHEN + - 45 THEN NULL WHEN - 81 THEN + + 78 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8890
SELECT ALL 79 + - + CASE 1 WHEN + 22 THEN - SUM( - - CAST( + NULLIF ( - 4, + + 74 ) AS SIGNED ) ) * 29 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL 79 + - + CASE 1 WHEN + 22 THEN - SUM ( - - CAST ( + NULLIF ( - 4, + + 74 ) AS INTEGER ) ) * 29 END AS col0
----
NULL

query II rowsort
SELECT - 22, + 76 * 1 AS col1
----
-22
76

query II rowsort
SELECT - 56 AS col2, 58 + - + 52 AS col0
----
-56
6

query I rowsort
SELECT ALL + 85 * 6
----
510

query I rowsort
SELECT - NULLIF ( 15, + 51 / + 29 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL - COUNT( * ) + - 32 + - 16 + - ( - 69 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL - COUNT ( * ) + - 32 + - 16 + - ( - 69 ) AS col2
----
20

query I rowsort
SELECT - + CASE - 71 WHEN + - 9 * + - 39 + - 74 THEN NULL ELSE NULLIF ( 82, - + 63 ) + - 62 END
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8897
SELECT - - 41, + COUNT( + + CASE + 92 WHEN - + 1 THEN - - 44 / - + 30 + + 64 + - 41 ELSE NULL END ) - MIN( + 95 ) AS col0
----
41
-95

skipif mysql # not compatible
query II rowsort label-8897
SELECT - - 41, + COUNT ( + + CASE + 92 WHEN - + 1 THEN - - 44 / - + 30 + + 64 + - 41 ELSE NULL END ) - MIN ( + 95 ) AS col0
----
41
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT + NULLIF ( + COALESCE ( - - 70, + - 90 + - - 24 ), - ( - + 80 ) ) + 21 + + 86 DIV - 35 + 36 DIV 65 * + - 41 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8898
SELECT + NULLIF ( + COALESCE ( - - 70, + - 90 + - - 24 ), - ( - + 80 ) ) + 21 + + 86 / - 35 + 36 / 65 * + - 41 AS col0
----
89

query I rowsort
SELECT 0 * - 48 AS col0
----
0

query I rowsort
SELECT 31 + + - 26 AS col1
----
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT ALL + 58 DIV ( + + 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL + 58 / ( + + 82 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT ALL + 47 + - ( + + 76 ) DIV - 93
----
47

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + 47 + - ( + + 76 ) / - 93
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL + ( - MIN( 21 ) ) * - + COUNT( * ) col0
----
21

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + ( - MIN ( 21 ) ) * - + COUNT ( * ) col0
----
21

query I rowsort
SELECT 22 * - 81 col1
----
-1782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8907
SELECT ALL 93 - - + 21 col1, CAST( - 86 AS SIGNED ) * + 11
----
114
-946

skipif mysql # not compatible
query II rowsort label-8907
SELECT ALL 93 - - + 21 col1, CAST ( - 86 AS INTEGER ) * + 11
----
114
-946

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8908
SELECT CAST( NULL AS DECIMAL ) - - 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT CAST ( NULL AS REAL ) - - 56 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT COUNT( * ) * + MAX( + 23 ), 18 AS col0
----
23
18

skipif mysql # not compatible
query II rowsort label-8909
SELECT COUNT ( * ) * + MAX ( + 23 ), 18 AS col0
----
23
18

query I rowsort
SELECT 12 - + 31 + - 28
----
-47

query I rowsort
SELECT ALL 57 * + 9 col1
----
513

onlyif mysql # aggregate syntax: 
query II rowsort label-8912
SELECT DISTINCT - COUNT( - 18 ), + 27 AS col0
----
-1
27

skipif mysql # not compatible
query II rowsort label-8912
SELECT DISTINCT - COUNT ( - 18 ), + 27 AS col0
----
-1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT DISTINCT - CASE COUNT( * ) WHEN - AVG ( ALL - 77 ) + - - 15 THEN NULL WHEN 77 THEN - COUNT( * ) WHEN - 49 / - NULLIF ( - COUNT( * ), - 36 ) THEN 80 + + + 38 * 80 + 61 + + + COUNT( * ) - - 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT - CASE COUNT ( * ) WHEN - AVG ( ALL - 77 ) + - - 15 THEN NULL WHEN 77 THEN - COUNT ( * ) WHEN - 49 / - NULLIF ( - COUNT ( * ), - 36 ) THEN 80 + + + 38 * 80 + 61 + + + COUNT ( * ) - - 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - SUM( DISTINCT + + 0 ) * + - ( + - MIN( DISTINCT - 86 ) ) * - - MAX( - 49 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8914
SELECT - SUM ( DISTINCT + + 0 ) * + - ( + - MIN ( DISTINCT - 86 ) ) * - - MAX ( - 49 ) AS col0
----
0

query I rowsort
SELECT - ( + - 0 ) * - 38 - 37 + - 50
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT - 85 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-8916
SELECT - 85 / - 94
----
0

query I rowsort
SELECT + - NULLIF ( + 21, - - 93 ) AS col2
----
-21

query I rowsort
SELECT ALL + 25 * - 57 * + - 4 + + 44 AS col2
----
5744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8919
SELECT - 71 * - - 49 * CAST( NULL AS SIGNED ) + + 38 + - 93 * + 61 * 26 + - 8 * + 82 * + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT - 71 * - - 49 * CAST ( NULL AS INTEGER ) + + 38 + - 93 * + 61 * 26 + - 8 * + 82 * + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8920
SELECT DISTINCT - COUNT( * ) * + 97 / + CAST( CAST( + 79 AS SIGNED ) AS DECIMAL ) + 94 * + COALESCE ( - + 86, - 60 ) * COUNT( * ) * + 48 - CAST( NULL AS DECIMAL ) + - 82 + + COALESCE ( - - 63, + CASE + 35 WHEN - - 81 * - NULLIF ( - 2, - ( - 32 ) * + - COUNT( * ) + - + 19 * + + 5 ) * - 41 + - 20 + - 61 THEN + + 47 END, - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT - COUNT ( * ) * + 97 / + CAST ( CAST ( + 79 AS INTEGER ) AS REAL ) + 94 * + COALESCE ( - + 86, - 60 ) * COUNT ( * ) * + 48 - CAST ( NULL AS REAL ) + - 82 + + COALESCE ( - - 63, + CASE + 35 WHEN - - 81 * - NULLIF ( - 2, - ( - 32 ) * + - COUNT ( * ) + - + 19 * + + 5 ) * - 41 + - 20 + - 61 THEN + + 47 END, - 86 )
----
NULL

query I rowsort
SELECT ALL 50 * + 22 + - 74 + 50
----
1076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL 88 * - + MAX( DISTINCT + + 3 ) + - + MIN( 4 ) + + CAST( 29 AS SIGNED ) AS col2
----
-239

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL 88 * - + MAX ( DISTINCT + + 3 ) + - + MIN ( 4 ) + + CAST ( 29 AS INTEGER ) AS col2
----
-239

query I rowsort
SELECT DISTINCT - + 37 + - NULLIF ( + - 25, - 52 * + 57 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT + - MAX( + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-8924
SELECT + - MAX ( + 38 )
----
-38

query I rowsort
SELECT DISTINCT + + 46 + - 45 + 10 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT DISTINCT - NULLIF ( CASE COUNT( * ) WHEN - NULLIF ( ( - + ( + 12 ) ), - 56 ) * ( + 5 ) THEN - SUM( ALL 60 ) - + 53 WHEN 34 / + + 71 THEN - 60 WHEN - ( + CASE + 80 WHEN ( - 41 ) THEN NULL ELSE + 76 * - - ( - 15 ) END ) THEN NULL ELSE NULL END, - - 75 * - 38 ) + 1 * CAST( NULL AS SIGNED ) * SUM( ALL - + 64 ) - + 83 + 20 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - NULLIF ( CASE COUNT ( * ) WHEN - NULLIF ( ( - + ( + 12 ) ), - 56 ) * ( + 5 ) THEN - SUM ( ALL 60 ) - + 53 WHEN 34 / + + 71 THEN - 60 WHEN - ( + CASE + 80 WHEN ( - 41 ) THEN NULL ELSE + 76 * - - ( - 15 ) END ) THEN NULL ELSE NULL END, - - 75 * - 38 ) + 1 * CAST ( NULL AS INTEGER ) * SUM ( ALL - + 64 ) - + 83 + 20 col1
----
NULL

query I rowsort
SELECT + - ( 65 ) * - 94 + + 12 + + + 32 AS col2
----
6154

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT DISTINCT - MAX( ALL - 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT - MAX ( ALL - 44 ) AS col2
----
44

query II rowsort
SELECT - NULLIF ( - 67, - + 25 + + + AVG ( + 49 ) / + 86 ), + 84 AS col1
----
67
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8930
SELECT - CASE - 60 WHEN + 80 THEN + - 91 END * - COUNT( * ) + 66, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8930
SELECT - CASE - 60 WHEN + 80 THEN + - 91 END * - COUNT ( * ) + 66, - COUNT ( * ) AS col1
----
NULL
-1

query I rowsort
SELECT + 70 * - ( 20 ) * - - 24 AS col2
----
-33600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8932
SELECT + 88 - + 0 * - 63 * + MAX( + 80 ) * - + 2 DIV - + 77 col0
----
88

skipif mysql # not compatible
query I rowsort label-8932
SELECT + 88 - + 0 * - 63 * + MAX ( + 80 ) * - + 2 / - + 77 col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8933
SELECT DISTINCT NULLIF ( + CASE 82 WHEN + COUNT( * ) THEN - COUNT( * ) + - 78 WHEN - - 28 THEN - - COUNT( + 10 ) * 66 END, + CASE - - 32 WHEN - 41 / + COUNT( * ) THEN - + CAST( NULL AS DECIMAL ) + 92 * 93 + + 9 + COUNT( * ) - + + 9 / - - 89 WHEN ( - 15 ) * + NULLIF ( ( ( - - 81 ) ), - - COUNT( * ) / + + ( 85 ) * + 91 * 62 + COUNT( * ) ) THEN NULLIF ( - 90, - 94 ) END ) * + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT NULLIF ( + CASE 82 WHEN + COUNT ( * ) THEN - COUNT ( * ) + - 78 WHEN - - 28 THEN - - COUNT ( + 10 ) * 66 END, + CASE - - 32 WHEN - 41 / + COUNT ( * ) THEN - + CAST ( NULL AS REAL ) + 92 * 93 + + 9 + COUNT ( * ) - + + 9 / - - 89 WHEN ( - 15 ) * + NULLIF ( ( ( - - 81 ) ), - - COUNT ( * ) / + + ( 85 ) * + 91 * 62 + COUNT ( * ) ) THEN NULLIF ( - 90, - 94 ) END ) * + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT DISTINCT MIN( + + 33 ) - + 40 * - COUNT( * ) col1
----
73

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT MIN ( + + 33 ) - + 40 * - COUNT ( * ) col1
----
73

query I rowsort
SELECT ALL 16 * + 89
----
1424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8936
SELECT + 28 + + - CASE + - 39 WHEN + 96 * - + 56 THEN + 43 * CAST( NULL AS SIGNED ) WHEN - COALESCE ( - 48, + 47 ) * - + 47 - + 58 * - COALESCE ( 81, 40 ) * + + 71 + - COUNT( * ) - - 15 THEN NULL ELSE 7 + + - 45 END
----
66

skipif mysql # not compatible
query I rowsort label-8936
SELECT + 28 + + - CASE + - 39 WHEN + 96 * - + 56 THEN + 43 * CAST ( NULL AS INTEGER ) WHEN - COALESCE ( - 48, + 47 ) * - + 47 - + 58 * - COALESCE ( 81, 40 ) * + + 71 + - COUNT ( * ) - - 15 THEN NULL ELSE 7 + + - 45 END
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT DISTINCT COUNT( * ) AS col0, + 88 * + - 81 col1
----
1
-7128

skipif mysql # not compatible
query II rowsort label-8937
SELECT DISTINCT COUNT ( * ) AS col0, + 88 * + - 81 col1
----
1
-7128

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT + COUNT( * ) + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8938
SELECT + COUNT ( * ) + 81 AS col1
----
82

query I rowsort
SELECT + 80 * - 31 AS col1
----
-2480

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8941
SELECT COUNT( * ) DIV + + 4 + - ( - - NULLIF ( - 86, 59 + + - 13 + 44 + COUNT( * ) ) ) + 20 * + 72 - - - 40 * + MIN( + 14 ) - + 50 AS col0
----
916

skipif mysql # not compatible
query I rowsort label-8941
SELECT COUNT ( * ) / + + 4 + - ( - - NULLIF ( - 86, 59 + + - 13 + 44 + COUNT ( * ) ) ) + 20 * + 72 - - - 40 * + MIN ( + 14 ) - + 50 AS col0
----
916

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT - SUM( ALL - 79 ) + - - 15
----
94

skipif mysql # not compatible
query I rowsort label-8942
SELECT - SUM ( ALL - 79 ) + - - 15
----
94

query I rowsort
SELECT + ( 87 ) col2
----
87

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

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

query I rowsort
SELECT ALL - ( + + 67 ) * + ( 11 ) AS col1
----
-737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8947
SELECT DISTINCT - - CAST( - NULLIF ( + 86, + - ( NULLIF ( 18, 96 ) ) ) AS SIGNED ) * - 91 + + 49 DIV 3 + - 35 - - COUNT( * ) * 22, 23 - - 13 + - 42 + + - 3 AS col0
----
7829
-9

skipif mysql # not compatible
query II rowsort label-8947
SELECT DISTINCT - - CAST ( - NULLIF ( + 86, + - ( NULLIF ( 18, 96 ) ) ) AS INTEGER ) * - 91 + + 49 / 3 + - 35 - - COUNT ( * ) * 22, 23 - - 13 + - 42 + + - 3 AS col0
----
7829
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8948
SELECT ALL - 49 * - 13 * - 32 * - ( + CASE + 99 WHEN - 16 * - 9 THEN NULL WHEN - + 19 THEN + + 33 END ) + - 35 + + 57 + - COUNT( * ) + NULLIF ( - 31, - 17 ) col0, 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-8948
SELECT ALL - 49 * - 13 * - 32 * - ( + CASE + 99 WHEN - 16 * - 9 THEN NULL WHEN - + 19 THEN + + 33 END ) + - 35 + + 57 + - COUNT ( * ) + NULLIF ( - 31, - 17 ) col0, 85 AS col1
----
NULL
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8949
SELECT + 84 * - + SUM( - 97 ) AS col0, + 92 AS col0
----
8148
92

skipif mysql # not compatible
query II rowsort label-8949
SELECT + 84 * - + SUM ( - 97 ) AS col0, + 92 AS col0
----
8148
92

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

query I rowsort
SELECT DISTINCT + - NULLIF ( + + 41, + 55 + + 84 * + 83 * - 69 + - - 86 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-8952
SELECT DISTINCT COUNT( * ) * + - 24 + + 91 AS col2, + 12
----
67
12

skipif mysql # not compatible
query II rowsort label-8952
SELECT DISTINCT COUNT ( * ) * + - 24 + + 91 AS col2, + 12
----
67
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL + MAX( DISTINCT - 1 ) * + 13 * + + SUM( ALL 91 ) AS col0
----
-1183

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + MAX ( DISTINCT - 1 ) * + 13 * + + SUM ( ALL 91 ) AS col0
----
-1183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT ALL + 49 * + CAST( - CAST( + - 90 AS SIGNED ) AS SIGNED ) + CAST( + + 5 AS SIGNED )
----
4415

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + 49 * + CAST ( - CAST ( + - 90 AS INTEGER ) AS INTEGER ) + CAST ( + + 5 AS INTEGER )
----
4415

query I rowsort
SELECT 27 * + - 5 + - 3 - + COALESCE ( + + 18, + 45 * 67 ) * 95 + + + 43 + - 79
----
-1884

query I rowsort
SELECT ALL - 31 * - 17 AS col2
----
527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL - COALESCE ( + CAST( 63 AS SIGNED ), 56 ) * + ( - - 47 ) + + MIN( ALL + 24 ) - - - 78
----
-3015

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - COALESCE ( + CAST ( 63 AS INTEGER ), 56 ) * + ( - - 47 ) + + MIN ( ALL + 24 ) - - - 78
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT - MAX( - - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-8958
SELECT - MAX ( - - 12 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8959
SELECT DISTINCT + MAX( + 61 ) * 73 + + + 36 DIV 90 * - 8 AS col0
----
4453

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT + MAX ( + 61 ) * 73 + + + 36 / 90 * - 8 AS col0
----
4453

query I rowsort
SELECT - 11 * + 0 AS col0
----
0

query I rowsort
SELECT ( 53 ) * - - 3 + - 37 col2
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8962
SELECT COUNT( * ) + - 3 DIV + + ( + 99 ) + - 91 - - 55 col2
----
-35

skipif mysql # not compatible
query I rowsort label-8962
SELECT COUNT ( * ) + - 3 / + + ( + 99 ) + - 91 - - 55 col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8963
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + NULLIF ( - - CAST( NULL AS DECIMAL ), - 1 + NULLIF ( + + 28, + 25 * 31 + - 25 ) + - 32 * - + COUNT( ALL 95 ) - - + 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + NULLIF ( - - CAST ( NULL AS REAL ), - 1 + NULLIF ( + + 28, + 25 * 31 + - 25 ) + - 32 * - + COUNT ( ALL 95 ) - - + 97 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT 67 * - CAST( - 24 AS SIGNED ) AS col2
----
1608

skipif mysql # not compatible
query I rowsort label-8964
SELECT 67 * - CAST ( - 24 AS INTEGER ) AS col2
----
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT - NULLIF ( + 93, 61 * - 3 * 24 - COUNT( * ) * + 55 ) * - - ( - 66 ) * + 60 col0
----
368280

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT - NULLIF ( + 93, 61 * - 3 * 24 - COUNT ( * ) * + 55 ) * - - ( - 66 ) * + 60 col0
----
368280

query I rowsort
SELECT ALL 33 + ( - - 70 ) AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT COUNT( * ) - + + 8 * + + 81 * + - 32 AS col0
----
20737

skipif mysql # not compatible
query I rowsort label-8967
SELECT COUNT ( * ) - + + 8 * + + 81 * + - 32 AS col0
----
20737

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL + MAX( ALL 91 ) * - 73 AS col2
----
-6643

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + MAX ( ALL 91 ) * - 73 AS col2
----
-6643

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT + NULLIF ( - 3, + 63 * + - COUNT( * ) * + 3 + - 16 ) + + 61
----
58

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT + NULLIF ( - 3, + 63 * + - COUNT ( * ) * + 3 + - 16 ) + + 61
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT ALL 41 DIV 22 + - - 4
----
5

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL 41 / 22 + - - 4
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8972
SELECT ALL 85 + + 50 DIV - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL 85 + + 50 / - COUNT ( * ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT 98 * + AVG ( ALL 22 ) + + CASE COUNT( * ) WHEN - + 93 + + 71 + + + 0 THEN - 85 ELSE NULL END + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT 98 * + AVG ( ALL 22 ) + + CASE COUNT ( * ) WHEN - + 93 + + 71 + + + 0 THEN - 85 ELSE NULL END + 83 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8974
SELECT + 38 - - 54 DIV CAST( 65 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-8974
SELECT + 38 - - 54 / CAST ( 65 AS INTEGER )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT ALL - 87 DIV - + 79 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - 87 / - + 79 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT + COALESCE ( + + 51, + 92 - - 33 + + 7 - + COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-8976
SELECT + COALESCE ( + + 51, + 92 - - 33 + + 7 - + COUNT ( * ) )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8977
SELECT ALL - COUNT( * ) - 44 AS col1, + 23
----
-45
23

skipif mysql # not compatible
query II rowsort label-8977
SELECT ALL - COUNT ( * ) - 44 AS col1, + 23
----
-45
23

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

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

query I rowsort
SELECT 85 + CASE - 45 WHEN + + 95 THEN 93 + 68 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL 87 * - 97 * - COUNT( * )
----
8439

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL 87 * - 97 * - COUNT ( * )
----
8439

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8981
SELECT + SUM( + 38 ), + 90 DIV + 58 AS col2
----
38
1

skipif mysql # not compatible
query II rowsort label-8981
SELECT + SUM ( + 38 ), + 90 / + 58 AS col2
----
38
1

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

query I rowsort
SELECT ALL 14 * 34 AS col0
----
476

query I rowsort
SELECT + 54 * - - 2 * - 63 + 9 AS col1
----
-6795

onlyif mysql # aggregate syntax: 
query II rowsort label-8985
SELECT + 81 + 21 AS col0, + SUM( ( - 3 ) ) AS col1
----
102
-3

skipif mysql # not compatible
query II rowsort label-8985
SELECT + 81 + 21 AS col0, + SUM ( ( - 3 ) ) AS col1
----
102
-3

query I rowsort
SELECT 97 * + 61 AS col1
----
5917

query I rowsort
SELECT 32 * + 50
----
1600

onlyif mysql # DIV for integer division: 
query I rowsort label-8988
SELECT ALL 17 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL 17 / - 46
----
0

query I rowsort
SELECT 22 + + 76 AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT ALL - 22 DIV - - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL - 22 / - - 51 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT CAST( NULL AS SIGNED ) + - COALESCE ( + 35, + + 18 * - - 10, + 46 ) * + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT CAST ( NULL AS INTEGER ) + - COALESCE ( + 35, + + 18 * - - 10, + 46 ) * + 78 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT 41 DIV - 33 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8992
SELECT 41 / - 33 AS col1
----
-1

query I rowsort
SELECT 12 + - 67 * 83
----
-5549

query I rowsort
SELECT 48 - 91
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8995
SELECT 22 + 10 DIV + CASE - 78 WHEN 4 THEN - CAST( NULL AS SIGNED ) * - COUNT( * ) WHEN MIN( + 36 ) * - 50 + + 94 - + - 20 - - ( - CASE 61 WHEN - 12 * - - 24 * - COUNT( * ) DIV SUM( ALL - 64 ) + 23 * - 59 * 29 * - 74 THEN COUNT( * ) DIV + 15 + - + 73 ELSE NULL END ) * NULLIF ( + + 62, + - 93 * + - 63 + + 30 * 96 ) THEN - SUM( + 52 ) ELSE - - 2 * 91 * - 77 END, 8 * + - ( + 9 ) AS col1
----
22
-72

skipif mysql # not compatible
query II rowsort label-8995
SELECT 22 + 10 / + CASE - 78 WHEN 4 THEN - CAST ( NULL AS INTEGER ) * - COUNT ( * ) WHEN MIN ( + 36 ) * - 50 + + 94 - + - 20 - - ( - CASE 61 WHEN - 12 * - - 24 * - COUNT ( * ) / SUM ( ALL - 64 ) + 23 * - 59 * 29 * - 74 THEN COUNT ( * ) / + 15 + - + 73 ELSE NULL END ) * NULLIF ( + + 62, + - 93 * + - 63 + + 30 * 96 ) THEN - SUM ( + 52 ) ELSE - - 2 * 91 * - 77 END, 8 * + - ( + 9 ) AS col1
----
22
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT SUM( ALL 56 ) + - - 3 - 76 * - + COUNT( * ) * + + 13 AS col1
----
1047

skipif mysql # not compatible
query I rowsort label-8996
SELECT SUM ( ALL 56 ) + - - 3 - 76 * - + COUNT ( * ) * + + 13 AS col1
----
1047

query I rowsort
SELECT ALL - 60 + + - 82
----
-142

query I rowsort
SELECT 37 + 33 col0
----
70

query I rowsort
SELECT ALL - 33 * - 93
----
3069

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

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT - COALESCE ( - - ( + COALESCE ( - COUNT ( * ), + COUNT ( * ) ) ), + - COUNT ( * ) ) + 5
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT ALL 85 * - + CAST( 90 AS SIGNED ) AS col1
----
-7650

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL 85 * - + CAST ( 90 AS INTEGER ) AS col1
----
-7650

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT 66 + + 23 + + + 60 DIV + - 21 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9002
SELECT 66 + + 23 + + + 60 / + - 21 AS col2
----
87

query I rowsort
SELECT ALL - 97 + + 41 AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9004
SELECT 37 * NULLIF ( 30 * + CAST( NULL AS SIGNED ), - COUNT( * ) - - MAX( DISTINCT - 70 ) / - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT 37 * NULLIF ( 30 * + CAST ( NULL AS INTEGER ), - COUNT ( * ) - - MAX ( DISTINCT - 70 ) / - 78 )
----
NULL

query I rowsort
SELECT 72 * 30 AS col1
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT ALL - 70 * - CAST( 76 AS SIGNED ) AS col1
----
5320

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - 70 * - CAST ( 76 AS INTEGER ) AS col1
----
5320

query I rowsort
SELECT DISTINCT 48 * 99 + 78
----
4830

query I rowsort
SELECT 62 * - 62 AS col2
----
-3844

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

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

query I rowsort
SELECT 75 * 20
----
1500

query I rowsort
SELECT ALL - 71 * 62 col1
----
-4402

query I rowsort
SELECT ALL + 7 * 76
----
532

query I rowsort
SELECT DISTINCT - 53 * + 64
----
-3392

query I rowsort
SELECT ALL + 98 - 76
----
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT - MAX( ALL + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - MAX ( ALL + 89 )
----
-89

query I rowsort
SELECT ( NULLIF ( 48, ( 38 ) ) ) * 37 - 17
----
1759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9018
SELECT COUNT( * ) DIV + CAST( MIN( - 8 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9018
SELECT COUNT ( * ) / + CAST ( MIN ( - 8 ) AS INTEGER )
----
0

query I rowsort
SELECT 81 - - ( + 65 + 27 )
----
173

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT MIN( DISTINCT 16 ) * 81 AS col0
----
1296

skipif mysql # not compatible
query I rowsort label-9021
SELECT MIN ( DISTINCT 16 ) * 81 AS col0
----
1296

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

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

query I rowsort
SELECT + CASE + 17 WHEN + 37 THEN - 57 ELSE - 86 * - NULLIF ( 77, + 94 ) END AS col2
----
6622

query I rowsort
SELECT ALL 29 * 59
----
1711

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - 40 * 9 - + MAX( 15 )
----
-375

skipif mysql # not compatible
query I rowsort label-9025
SELECT - 40 * 9 - + MAX ( 15 )
----
-375

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9027
SELECT DISTINCT COUNT( * ) + ( 48 ) DIV 44 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT COUNT ( * ) + ( 48 ) / 44 AS col1
----
2

query I rowsort
SELECT ALL 93 * NULLIF ( - 1, + 79 )
----
-93

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

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

query I rowsort
SELECT + 52 + 17 * - 22 AS col2
----
-322

query I rowsort
SELECT + 69 * - 20 AS col1
----
-1380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT DISTINCT - CAST( - 43 AS SIGNED ) + 67 * 3 col1
----
244

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT - CAST ( - 43 AS INTEGER ) + 67 * 3 col1
----
244

query I rowsort
SELECT ALL + 28 + + 44 * 39 col1
----
1744

query I rowsort
SELECT ALL - 73 + + 88
----
15

query I rowsort
SELECT - NULLIF ( 31, - 32 ) AS col0
----
-31

query I rowsort
SELECT DISTINCT - 56 * + 80 AS col1
----
-4480

query I rowsort
SELECT DISTINCT + 47 + 58 AS col2
----
105

query I rowsort
SELECT + 3 - - 8
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9039
SELECT - COUNT( * ) * - COALESCE ( - 69 * 92 + - 79 DIV 24, + 13 ) AS col1
----
-6351

skipif mysql # not compatible
query I rowsort label-9039
SELECT - COUNT ( * ) * - COALESCE ( - 69 * 92 + - 79 / 24, + 13 ) AS col1
----
-6351

query I rowsort
SELECT - + 92 * 30 AS col1
----
-2760

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9042
SELECT - + CASE 0 WHEN COUNT( * ) THEN + 13 - - 33 / + NULLIF ( + 31 + - 72 * - 30, - ( CAST( NULL AS SIGNED ) ) ) WHEN + 60 THEN 13 END - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT - + CASE 0 WHEN COUNT ( * ) THEN + 13 - - 33 / + NULLIF ( + 31 + - 72 * - 30, - ( CAST ( NULL AS INTEGER ) ) ) WHEN + 60 THEN 13 END - - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT - - COUNT( * ) * - 85 col1
----
-85

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT - - COUNT ( * ) * - 85 col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT DISTINCT + CAST( ( 63 ) AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT + CAST ( ( 63 ) AS INTEGER )
----
63

query I rowsort
SELECT DISTINCT - 68 * - 40 AS col1
----
2720

query I rowsort
SELECT + 45 / CASE WHEN NOT NULL IS NULL THEN - ( + 25 ) END + 93 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( 76, 55, + 14 - - 85 ) col0
----
76

query I rowsort
SELECT - 53 + 36
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT ALL + - CASE - ( CAST( NULL AS SIGNED ) ) WHEN 27 THEN + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL + - CASE - ( CAST ( NULL AS INTEGER ) ) WHEN 27 THEN + 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT - CASE 59 WHEN MIN( ALL ( 72 ) ) THEN 4 WHEN - 89 - - 22 * 2 THEN + 43 * ( + ( - 20 ) * 61 ) + 90 END * 10 + 25 * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT - CASE 59 WHEN MIN ( ALL ( 72 ) ) THEN 4 WHEN - 89 - - 22 * 2 THEN + 43 * ( + ( - 20 ) * 61 ) + 90 END * 10 + 25 * 98
----
NULL

query I rowsort
SELECT - 75 * - 24
----
1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT + + 85 / 48 + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT + + 85 / 48 + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + - COALESCE ( 48, + 66 * 19 + - 12 ) col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT ( CASE + CAST( NULL AS SIGNED ) WHEN 38 THEN NULLIF ( - 88, 69 ) WHEN + COUNT( * ) * - ( - 53 ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT ( CASE + CAST ( NULL AS INTEGER ) WHEN 38 THEN NULLIF ( - 88, 69 ) WHEN + COUNT ( * ) * - ( - 53 ) THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL + 8 * CASE 31 + - 95 WHEN 87 THEN NULL WHEN 11 * - 96 THEN - 95 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT CASE COUNT( * ) WHEN 31 * 63 THEN - 44 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT CASE COUNT ( * ) WHEN 31 * 63 THEN - 44 END col0
----
NULL

query I rowsort
SELECT DISTINCT - 12 * + + 39 * ( 21 ) + 76 AS col0
----
-9752

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT - 23 * + 46 + - MIN( - 67 )
----
-991

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - 23 * + 46 + - MIN ( - 67 )
----
-991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9060
SELECT + 5 DIV COUNT( * ) * 69 AS col1
----
345

skipif mysql # not compatible
query I rowsort label-9060
SELECT + 5 / COUNT ( * ) * 69 AS col1
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + 64 + + 84 - COUNT( * ) * + 91 * - 65 AS col0
----
6063

skipif mysql # not compatible
query I rowsort label-9061
SELECT + 64 + + 84 - COUNT ( * ) * + 91 * - 65 AS col0
----
6063

query I rowsort
SELECT NULLIF ( + + 55, 37 )
----
55

query I rowsort
SELECT - 93 + + - 94 + + 93 * + 66 col1
----
5951

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9064
SELECT - 52 * + ( 87 ) * + CASE 31 WHEN 37 THEN + 3 WHEN ( 12 ) * - 47 THEN - 27 DIV CASE + MIN( DISTINCT - 23 ) WHEN 81 THEN NULL WHEN 99 DIV 32 THEN NULL WHEN - 22 THEN - COUNT( * ) END + 74 ELSE 23 + 51 * 82 END
----
-19023420

skipif mysql # not compatible
query I rowsort label-9064
SELECT - 52 * + ( 87 ) * + CASE 31 WHEN 37 THEN + 3 WHEN ( 12 ) * - 47 THEN - 27 / CASE + MIN ( DISTINCT - 23 ) WHEN 81 THEN NULL WHEN 99 / 32 THEN NULL WHEN - 22 THEN - COUNT ( * ) END + 74 ELSE 23 + 51 * 82 END
----
-19023420

query I rowsort
SELECT COALESCE ( - + 88, 35 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT + NULLIF ( + COUNT( * ), ( CASE 89 WHEN - ( 4 ) THEN NULL WHEN 54 THEN 53 ELSE NULL END ) + + 9 * 79 )
----
1

skipif mysql # not compatible
query I rowsort label-9066
SELECT + NULLIF ( + COUNT ( * ), ( CASE 89 WHEN - ( 4 ) THEN NULL WHEN 54 THEN 53 ELSE NULL END ) + + 9 * 79 )
----
1

query I rowsort
SELECT ALL 48 * - - 57 + 15 AS col2
----
2751

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT DISTINCT 75 * - 71 * COUNT( * ) AS col2
----
-5325

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT 75 * - 71 * COUNT ( * ) AS col2
----
-5325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9069
SELECT DISTINCT - 19 * COUNT( * ) + CAST( + 94 + + COUNT( * ) AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT - 19 * COUNT ( * ) + CAST ( + 94 + + COUNT ( * ) AS INTEGER )
----
76

query I rowsort
SELECT ALL 10 * + 74 * 9 AS col1
----
6660

query I rowsort
SELECT + 16 + - 75 AS col1
----
-59

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

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL COUNT ( * ) + + MAX ( DISTINCT 5 )
----
6

query I rowsort
SELECT DISTINCT 27 + - 76 AS col2
----
-49

query I rowsort
SELECT + 62 * 41
----
2542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT - CAST( 80 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-9075
SELECT - CAST ( 80 AS INTEGER )
----
-80

query I rowsort
SELECT ALL 74 * - 80 * + 29
----
-171680

query I rowsort
SELECT + 80 + - 81
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL + SUM( CASE + 57 WHEN - 37 * - CASE 68 * - 34 WHEN + 79 THEN + 91 END THEN 36 END ) - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL + SUM ( CASE + 57 WHEN - 37 * - CASE 68 * - 34 WHEN + 79 THEN + 91 END THEN 36 END ) - ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + + 35 * + 19 col2
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL CASE + - 98 WHEN - MAX( - ( - ( 66 ) ) ) THEN NULL WHEN MAX( + CASE - 45 WHEN 47 THEN 41 ELSE NULL END ) * + 39 THEN + 88 - - 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL CASE + - 98 WHEN - MAX ( - ( - ( 66 ) ) ) THEN NULL WHEN MAX ( + CASE - 45 WHEN 47 THEN 41 ELSE NULL END ) * + 39 THEN + 88 - - 86 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT + - 19 + - 39 - 24 DIV 98
----
-58

skipif mysql # not compatible
query I rowsort label-9082
SELECT + - 19 + - 39 - 24 / 98
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9083
SELECT DISTINCT + COUNT( * ) DIV + 68 + 27
----
27

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

query I rowsort
SELECT + + ( - 7 ) + + 50 AS col1
----
43

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

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

query I rowsort
SELECT ALL + 75 * - 10 * + 74 AS col0
----
-55500

query I rowsort
SELECT - 84 + + - ( - 62 ) + 40 AS col2
----
18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT DISTINCT + 47 DIV - - 40 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT + 47 / - - 40 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT - - MAX( ALL - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9090
SELECT - - MAX ( ALL - 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9091
SELECT - 11 DIV - 65 * + COALESCE ( + 82, - 88 + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9091
SELECT - 11 / - 65 * + COALESCE ( + 82, - 88 + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT ALL + ( + - CAST( 72 AS SIGNED ) ) * 70 AS col1
----
-5040

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL + ( + - CAST ( 72 AS INTEGER ) ) * 70 AS col1
----
-5040

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

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

query I rowsort
SELECT ALL - 23 * + 24 AS col0
----
-552

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT ALL - 67 DIV + ( + 33 ) + 96
----
94

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL - 67 / + ( + 33 ) + 96
----
94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9097
SELECT ALL + MIN( DISTINCT + 80 ) DIV COUNT( DISTINCT + 9 ) + 58
----
138

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL + MIN ( DISTINCT + 80 ) / COUNT ( DISTINCT + 9 ) + 58
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9098
SELECT ALL - 2 DIV MAX( DISTINCT - 69 ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL - 2 / MAX ( DISTINCT - 69 ) + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT ALL + 62 * + 41 / - ( + 81 / + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL + 62 * + 41 / - ( + 81 / + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 63 + - 18 + 42 - + 77 AS col0
----
-116

query I rowsort
SELECT - NULLIF ( 74, - 58 + 69 ) * - 50 - + 61
----
3639

query I rowsort
SELECT ALL - CASE + 91 WHEN 28 THEN 55 / 85 END
----
NULL

query I rowsort
SELECT 15 - 60 AS col2
----
-45

query I rowsort
SELECT 25 * + 14 AS col0
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT MAX( - + 24 ) * - - 85 * - 84 + COALESCE ( + 0, 84 * CASE 8 WHEN AVG ( ALL - 8 ) * 55 THEN - COUNT( * ) END, + COUNT( * ) - 82 )
----
171360

skipif mysql # not compatible
query I rowsort label-9105
SELECT MAX ( - + 24 ) * - - 85 * - 84 + COALESCE ( + 0, 84 * CASE 8 WHEN AVG ( ALL - 8 ) * 55 THEN - COUNT ( * ) END, + COUNT ( * ) - 82 )
----
171360

query II rowsort
SELECT 27 AS col1, - 6 col2
----
27
-6

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

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

query I rowsort
SELECT ALL - 46 + - 29 + - 38
----
-113

query I rowsort
SELECT DISTINCT 75 * - - 99 AS col2
----
7425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT DISTINCT + ( + 12 ) * + - CAST( 28 AS SIGNED ) AS col2
----
-336

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT + ( + 12 ) * + - CAST ( 28 AS INTEGER ) AS col2
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL 93 + + - 74 + + - CASE WHEN NOT NULL NOT IN ( - 6 ) THEN NULL ELSE - 55 END * + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL 93 + + - 74 + + - CASE WHEN NOT NULL NOT IN ( - 6 ) THEN NULL ELSE - 55 END * + COUNT ( * ) AS col1
----
74

query I rowsort
SELECT + 94 * + + 56 - + ( - 51 )
----
5315

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

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL + 74 * - COUNT ( * ) / + + COUNT ( * ) col0
----
-74

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

skipif mysql # not compatible
query I rowsort label-9114
SELECT 60 - + 31 * - - COUNT ( * ) AS col2
----
29

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 92 - + 85
----
7

query II rowsort
SELECT 42 AS col1, 85
----
42
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT SUM( 6 ) + - + 9
----
-3

skipif mysql # not compatible
query I rowsort label-9120
SELECT SUM ( 6 ) + - + 9
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT ALL 27 DIV + 59 col1
----
0

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL 27 / + 59 col1
----
0

query II rowsort
SELECT DISTINCT 60, NULLIF ( + 43, 20 * 48 ) AS col2
----
60
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL 85 * + + COUNT( * ) * 19 col1
----
1615

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL 85 * + + COUNT ( * ) * 19 col1
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL COUNT( 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL COUNT ( 40 ) AS col2
----
1

query I rowsort
SELECT - 82 * - 72
----
5904

query II rowsort
SELECT 42 col1, - 98
----
42
-98

query I rowsort
SELECT ALL + COALESCE ( - + 47, + + 96 ) AS col0
----
-47

query I rowsort
SELECT ( + + 14 ) + 93
----
107

query I rowsort
SELECT + 48 + + + 81 * - 2 + + 50 AS col0
----
-64

query II rowsort
SELECT - + 62 AS col0, 57 AS col1
----
-62
57

query II rowsort
SELECT 79 AS col2, - 88
----
79
-88

query I rowsort
SELECT ALL - 83 + + + 96
----
13

query I rowsort
SELECT DISTINCT - 24 + - 25 + + 72 + COALESCE ( - 80, - ( - NULLIF ( + 55, - 83 ) ) ) AS col1
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL + - 94 + + CASE WHEN NOT - ( - AVG ( ALL - 11 ) ) <= ( 41 * - COUNT( * ) ) THEN NULL ELSE + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL + - 94 + + CASE WHEN NOT - ( - AVG ( ALL - 11 ) ) <= ( 41 * - COUNT ( * ) ) THEN NULL ELSE + 69 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9137
SELECT 54 - + - 0 DIV + - CAST( - 86 AS SIGNED ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9137
SELECT 54 - + - 0 / + - CAST ( - 86 AS INTEGER ) AS col2
----
54

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9139
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + - SUM( 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + - SUM ( 31 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT 36 * + - 90 * - + 21 + ( 40 + CASE + MAX( ALL 87 ) WHEN 53 - - 19 THEN NULL WHEN 70 * 29 THEN NULL ELSE + 93 END )
----
68173

skipif mysql # not compatible
query I rowsort label-9140
SELECT 36 * + - 90 * - + 21 + ( 40 + CASE + MAX ( ALL 87 ) WHEN 53 - - 19 THEN NULL WHEN 70 * 29 THEN NULL ELSE + 93 END )
----
68173

query I rowsort
SELECT 77 * 0 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( 59, + ( + 3 ) * 23 ) + + CASE + 18 WHEN - 27 THEN NULL ELSE 15 END AS col2
----
74

query I rowsort
SELECT 51 - + - 20 col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT ALL + COALESCE ( 63, ( - COUNT( * ) ) DIV - 20 + ( + 69 ) * 25 ) * + 18 AS col1
----
1134

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL + COALESCE ( 63, ( - COUNT ( * ) ) / - 20 + ( + 69 ) * 25 ) * + 18 AS col1
----
1134

query II rowsort
SELECT 25 + - 49 col1, 94 * + 0
----
-24
0

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

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

query I rowsort
SELECT DISTINCT 70 - - + 88 * + 35
----
3150

query I rowsort
SELECT ALL - ( - + 73 )
----
73

query I rowsort
SELECT DISTINCT ( + 21 ) - - 69 * 47 AS col1
----
3264

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9150
SELECT DISTINCT + 60 - - 88 + - 5 - - 49 * - ( 62 * CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT + 60 - - 88 + - 5 - - 49 * - ( 62 * CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT - SUM( ALL - - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT - SUM ( ALL - - 34 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9152
SELECT + 27 * + COALESCE ( 34, + - 16 * 19 + MAX( ALL 0 ) * + 83 ) + - CAST( ( ( + 88 ) ) AS SIGNED ) AS col0
----
830

skipif mysql # not compatible
query I rowsort label-9152
SELECT + 27 * + COALESCE ( 34, + - 16 * 19 + MAX ( ALL 0 ) * + 83 ) + - CAST ( ( ( + 88 ) ) AS INTEGER ) AS col0
----
830

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL - COALESCE ( 41, + - 40 + - 36 + - COUNT( * ) * + COALESCE ( + SUM( DISTINCT ( 35 ) ), 75 * - 3, 95 ), + 66, + 64 * 64 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL - COALESCE ( 41, + - 40 + - 36 + - COUNT ( * ) * + COALESCE ( + SUM ( DISTINCT ( 35 ) ), 75 * - 3, 95 ), + 66, + 64 * 64 ) AS col2
----
-41

query I rowsort
SELECT 47 + + - ( - 70 ) * - + 39 * 5 col2
----
-13603

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT - 97 - COUNT( DISTINCT + - 82 )
----
-98

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - 97 - COUNT ( DISTINCT + - 82 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL - NULLIF ( - + 72, MIN( + ( 63 ) ) + 96 ) col0
----
72

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL - NULLIF ( - + 72, MIN ( + ( 63 ) ) + 96 ) col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT - COUNT( * ) * + - 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT - COUNT ( * ) * + - 42 AS col1
----
42

query I rowsort
SELECT ALL - 7 * 43
----
-301

query I rowsort
SELECT 82 + + - 46 AS col2
----
36

query II rowsort
SELECT DISTINCT - + 5 * 98 col2, - 53
----
-490
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9161
SELECT DISTINCT CAST( 58 AS SIGNED ) AS col0, + 74 AS col1
----
58
74

skipif mysql # not compatible
query II rowsort label-9161
SELECT DISTINCT CAST ( 58 AS INTEGER ) AS col0, + 74 AS col1
----
58
74

query I rowsort
SELECT DISTINCT - 80 * - 57 + + 90 * + ( + 5 )
----
5010

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT DISTINCT SUM( ALL + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT SUM ( ALL + 33 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9164
SELECT COALESCE ( 37, - - 23 ) DIV + COUNT( * ) + 60 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9164
SELECT COALESCE ( 37, - - 23 ) / + COUNT ( * ) + 60 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT + 5 + - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9165
SELECT + 5 + - COUNT ( * ) AS col2
----
4

query I rowsort
SELECT + 79 * + 85
----
6715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9167
SELECT ALL + MIN( ALL - + 59 ) DIV + + ( + 13 ) + COALESCE ( + 12, + ( - ( - 16 ) ) ) * 5 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + MIN ( ALL - + 59 ) / + + ( + 13 ) + COALESCE ( + 12, + ( - ( - 16 ) ) ) * 5 AS col2
----
56

query I rowsort
SELECT DISTINCT + 64 + + + 68 col1
----
132

query I rowsort
SELECT ALL 85 + + 41 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - ( + 39 ) + - 97 * - + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9170
SELECT - ( + 39 ) + - 97 * - + COUNT ( * ) AS col1
----
58

query I rowsort
SELECT ALL 99 + + 24 AS col1
----
123

query I rowsort
SELECT 23 + - 97
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT - + 13 + CASE - 82 WHEN + + 7 + 79 THEN 27 ELSE - CAST( NULL AS SIGNED ) * 98 END + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT - + 13 + CASE - 82 WHEN + + 7 + 79 THEN 27 ELSE - CAST ( NULL AS INTEGER ) * 98 END + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 40 + - 73
----
-113

query I rowsort
SELECT DISTINCT 61 * 17 AS col2
----
1037

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL - SUM( DISTINCT 32 ) + 44 * - 5 AS col1
----
-252

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL - SUM ( DISTINCT 32 ) + 44 * - 5 AS col1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT - - NULLIF ( + 32, - - 64 + 63 + + COUNT( * ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9177
SELECT - - NULLIF ( + 32, - - 64 + 63 + + COUNT ( * ) ) AS col2
----
32

query I rowsort
SELECT - + ( - 36 )
----
36

query II rowsort
SELECT + - 90 * - + 27 AS col1, ( - 39 )
----
2430
-39

query I rowsort
SELECT + 18 + + 12 * + 60
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT CASE + 22 WHEN + 25 THEN NULL WHEN + 54 THEN + - MIN( DISTINCT + 67 ) + 58 / + 89 WHEN - 69 + + ( COUNT( * ) ) THEN + ( + 18 ) ELSE 14 END
----
14

skipif mysql # not compatible
query I rowsort label-9181
SELECT CASE + 22 WHEN + 25 THEN NULL WHEN + 54 THEN + - MIN ( DISTINCT + 67 ) + 58 / + 89 WHEN - 69 + + ( COUNT ( * ) ) THEN + ( + 18 ) ELSE 14 END
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL 30 * - NULLIF ( - + 11, + 7 ) - + 74 - + 44 * COUNT( * )
----
212

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL 30 * - NULLIF ( - + 11, + 7 ) - + 74 - + 44 * COUNT ( * )
----
212

query II rowsort
SELECT + 23 * 15 * 98 AS col1, 56
----
33810
56

query I rowsort
SELECT CASE + ( + 86 ) WHEN - 90 THEN NULL ELSE 96 END
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9185
SELECT ALL + COUNT( * ), + 47 * - 75 * + COUNT( * ) AS col0
----
1
-3525

skipif mysql # not compatible
query II rowsort label-9185
SELECT ALL + COUNT ( * ), + 47 * - 75 * + COUNT ( * ) AS col0
----
1
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT CASE AVG ( ALL 60 ) WHEN + - 44 THEN + COUNT( * ) * - 91 - 44 / - 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT CASE AVG ( ALL 60 ) WHEN + - 44 THEN + COUNT ( * ) * - 91 - 44 / - 76 END AS col2
----
NULL

query I rowsort
SELECT + 87 * + 69
----
6003

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT + 93 * + - MAX( 79 ) AS col0
----
-7347

skipif mysql # not compatible
query I rowsort label-9188
SELECT + 93 * + - MAX ( 79 ) AS col0
----
-7347

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9189
SELECT ALL + 5 col0, + CAST( NULL AS SIGNED ) col2
----
5
NULL

skipif mysql # not compatible
query II rowsort label-9189
SELECT ALL + 5 col0, + CAST ( NULL AS INTEGER ) col2
----
5
NULL

query I rowsort
SELECT + CASE + - NULLIF ( 36, 53 ) WHEN - ( 64 ) THEN - 42 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT + 39 - - ( 26 ) - - 89 * - 64 + - ( 34 ) DIV 56 AS col0
----
-5631

skipif mysql # not compatible
query I rowsort label-9191
SELECT + 39 - - ( 26 ) - - 89 * - 64 + - ( 34 ) / 56 AS col0
----
-5631

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL 51 * CASE 43 WHEN ( + 19 ) + - 52 THEN NULL WHEN + 81 THEN NULL ELSE - COUNT( * ) END
----
-51

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL 51 * CASE 43 WHEN ( + 19 ) + - 52 THEN NULL WHEN + 81 THEN NULL ELSE - COUNT ( * ) END
----
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9193
SELECT + 57 * - + 12 DIV - CAST( - 6 AS SIGNED ) col2
----
-114

skipif mysql # not compatible
query I rowsort label-9193
SELECT + 57 * - + 12 / - CAST ( - 6 AS INTEGER ) col2
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9194
SELECT COALESCE ( 93, - + COUNT( * ) * + 17 DIV MAX( - 85 ) )
----
93

skipif mysql # not compatible
query I rowsort label-9194
SELECT COALESCE ( 93, - + COUNT ( * ) * + 17 / MAX ( - 85 ) )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9195
SELECT + ( + CAST( NULL AS SIGNED ) ) * + - CASE + COALESCE ( + CAST( - 87 AS SIGNED ), 41 - + 22, 62 ) WHEN - 57 / - 8 + - 29 THEN 51 WHEN + CASE - COUNT( * ) WHEN - 17 THEN NULL WHEN - 9 / 25 THEN NULL ELSE - 80 END THEN NULL END * 87 + 31 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + - CASE + COALESCE ( + CAST ( - 87 AS INTEGER ), 41 - + 22, 62 ) WHEN - 57 / - 8 + - 29 THEN 51 WHEN + CASE - COUNT ( * ) WHEN - 17 THEN NULL WHEN - 9 / 25 THEN NULL ELSE - 80 END THEN NULL END * 87 + 31 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + ( - COALESCE ( + 19, + + 39 ) ) AS col0
----
-19

query I rowsort
SELECT DISTINCT 56 * + + 12 AS col0
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9198
SELECT - 85 - + COUNT( * ) * + NULLIF ( - COUNT( * ), - - COUNT( * ) + ( 65 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT - 85 - + COUNT ( * ) * + NULLIF ( - COUNT ( * ), - - COUNT ( * ) + ( 65 ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9199
SELECT ALL + 56 AS col2, - 13 + + + ( COUNT( * ) ) * + + ( CAST( NULL AS SIGNED ) ) AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-9199
SELECT ALL + 56 AS col2, - 13 + + + ( COUNT ( * ) ) * + + ( CAST ( NULL AS INTEGER ) ) AS col1
----
56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT ALL 97 * + - 70 * + NULLIF ( - - ( - 28 ), - 53 ) + CAST( + 30 AS SIGNED )
----
190150

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL 97 * + - 70 * + NULLIF ( - - ( - 28 ), - 53 ) + CAST ( + 30 AS INTEGER )
----
190150

query I rowsort
SELECT + 3 * + ( - - 28 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT - 85 + 83 * + COUNT( DISTINCT + 21 ) * - 13 + + 64
----
-1100

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT - 85 + 83 * + COUNT ( DISTINCT + 21 ) * - 13 + + 64
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT DISTINCT - - COUNT( DISTINCT - 73 ) + - - 97 + - 30 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT - - COUNT ( DISTINCT - 73 ) + - - 97 + - 30 AS col2
----
68

query I rowsort
SELECT - 91 - + COALESCE ( 51, CASE - 23 WHEN 64 THEN 59 ELSE NULL END * 76, 84 )
----
-142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9205
SELECT DISTINCT - 87 col2, CAST( NULL AS SIGNED ) AS col1
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-9205
SELECT DISTINCT - 87 col2, CAST ( NULL AS INTEGER ) AS col1
----
-87
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT ALL - 35 + CASE - CAST( NULL AS SIGNED ) WHEN + SUM( + 73 ) THEN + COALESCE ( 81, - 46 + - 79, MAX( ALL - 37 ) * 0 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL - 35 + CASE - CAST ( NULL AS INTEGER ) WHEN + SUM ( + 73 ) THEN + COALESCE ( 81, - 46 + - 79, MAX ( ALL - 37 ) * 0 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT - - 30 * + - CASE WHEN NULL NOT BETWEEN ( + 41 ) AND ( - COUNT( * ) ) THEN NULL ELSE 61 END + 35 * + 58 col2
----
200

skipif mysql # not compatible
query I rowsort label-9207
SELECT - - 30 * + - CASE WHEN NULL NOT BETWEEN ( + 41 ) AND ( - COUNT ( * ) ) THEN NULL ELSE 61 END + 35 * + 58 col2
----
200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9208
SELECT DISTINCT - + 85 DIV + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - + 85 / + COUNT ( * )
----
-85

query I rowsort
SELECT - ( - COALESCE ( 94, + + 37 ) )
----
94

query II rowsort
SELECT DISTINCT 13 AS col2, 63 * + 39
----
13
2457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9211
SELECT - - 80 DIV COALESCE ( COUNT( DISTINCT - + 44 ), + 45, + 32 + + COALESCE ( 13 + 81, - 61 ) * + ( NULLIF ( 55, 31 ) * 59 ) )
----
80

skipif mysql # not compatible
query I rowsort label-9211
SELECT - - 80 / COALESCE ( COUNT ( DISTINCT - + 44 ), + 45, + 32 + + COALESCE ( 13 + 81, - 61 ) * + ( NULLIF ( 55, 31 ) * 59 ) )
----
80

query I rowsort
SELECT ALL - + 10 + + 48
----
38

query I rowsort
SELECT - + ( 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT COUNT( DISTINCT + 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9214
SELECT COUNT ( DISTINCT + 84 ) AS col1
----
1

query I rowsort
SELECT - 19 + + 43 + + - 12 * - + 94
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT - 46 + COUNT( * ) - - + 61
----
16

skipif mysql # not compatible
query I rowsort label-9216
SELECT - 46 + COUNT ( * ) - - + 61
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT DISTINCT + 81 - + 75 + 6 AS col0, - 18 + + COUNT( ALL 32 )
----
12
-17

skipif mysql # not compatible
query II rowsort label-9217
SELECT DISTINCT + 81 - + 75 + 6 AS col0, - 18 + + COUNT ( ALL 32 )
----
12
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT - 60 * + ( - CAST( + ( + 43 ) AS SIGNED ) )
----
2580

skipif mysql # not compatible
query I rowsort label-9218
SELECT - 60 * + ( - CAST ( + ( + 43 ) AS INTEGER ) )
----
2580

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT ALL 17 * 75 DIV - 71 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL 17 * 75 / - 71 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT - 23 - + 39 * - + MAX( + + 47 )
----
1810

skipif mysql # not compatible
query I rowsort label-9220
SELECT - 23 - + 39 * - + MAX ( + + 47 )
----
1810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9221
SELECT ALL + 42 DIV - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + 42 / - COUNT ( * )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT + 99 + CAST( NULL AS SIGNED ) - - COALESCE ( - CAST( NULL AS SIGNED ), 31 + + NULLIF ( + 47, + 2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT + 99 + CAST ( NULL AS INTEGER ) - - COALESCE ( - CAST ( NULL AS INTEGER ), 31 + + NULLIF ( + 47, + 2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9223
SELECT ALL + ( + - MIN( - - ( + 39 ) ) ) AS col0, 40 AS col1
----
-39
40

skipif mysql # not compatible
query II rowsort label-9223
SELECT ALL + ( + - MIN ( - - ( + 39 ) ) ) AS col0, 40 AS col1
----
-39
40

query I rowsort
SELECT - 87 + 36
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT + CASE WHEN NOT 98 <> 77 * - 95 * - ( + COUNT( * ) ) * - COUNT( * ) THEN NULL ELSE + 19 END
----
19

skipif mysql # not compatible
query I rowsort label-9225
SELECT + CASE WHEN NOT 98 <> 77 * - 95 * - ( + COUNT ( * ) ) * - COUNT ( * ) THEN NULL ELSE + 19 END
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL 58 * - + COUNT( ALL 25 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL 58 * - + COUNT ( ALL 25 ) AS col2
----
-58

query I rowsort
SELECT 15 * 52 + 78 AS col2
----
858

query I rowsort
SELECT + 69 * - 19 col2
----
-1311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9229
SELECT + 19 / 6 + CASE - 23 WHEN 83 THEN NULL WHEN + COUNT( * ) - - COUNT( * ) THEN + COUNT( * ) / 74 ELSE NULL END + 97 * + ( CAST( + 24 AS SIGNED ) + COUNT( * ) * - MIN( DISTINCT + 4 + 47 ) ) * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT + 19 / 6 + CASE - 23 WHEN 83 THEN NULL WHEN + COUNT ( * ) - - COUNT ( * ) THEN + COUNT ( * ) / 74 ELSE NULL END + 97 * + ( CAST ( + 24 AS INTEGER ) + COUNT ( * ) * - MIN ( DISTINCT + 4 + 47 ) ) * COUNT ( * ) col0
----
NULL

query I rowsort
SELECT + 31 * - 44 - - 20 AS col0
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT + 16 + + + ( + 13 ) + + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9231
SELECT + 16 + + + ( + 13 ) + + - COUNT ( * )
----
28

query I rowsort
SELECT 52 * + 22 + - 75 AS col0
----
1069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT DISTINCT + CAST( - 99 AS SIGNED ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT + CAST ( - 99 AS INTEGER ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT ALL + COUNT( * ), MAX( NULLIF ( 53, + 18 + + 41 ) ) * 59 AS col1
----
1
3127

skipif mysql # not compatible
query II rowsort label-9234
SELECT ALL + COUNT ( * ), MAX ( NULLIF ( 53, + 18 + + 41 ) ) * 59 AS col1
----
1
3127

query I rowsort
SELECT + ( + + 45 ) + 54 - + 19 - - 25
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-9236
SELECT ALL + 11, + COUNT( DISTINCT - NULLIF ( 79, 63 ) ) + SUM( 30 ) + + COUNT( * ) AS col1
----
11
32

skipif mysql # not compatible
query II rowsort label-9236
SELECT ALL + 11, + COUNT ( DISTINCT - NULLIF ( 79, 63 ) ) + SUM ( 30 ) + + COUNT ( * ) AS col1
----
11
32

query II rowsort
SELECT DISTINCT + 14 AS col2, 91 AS col1
----
14
91

query I rowsort
SELECT ALL 97 * + - 21 * - COALESCE ( - 59, 12 + - 98 )
----
-120183

query I rowsort
SELECT ( - 98 ) col1
----
-98

query I rowsort
SELECT - + 20 * 2 col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9241
SELECT - - ( + CAST( + 84 AS SIGNED ) ) * + COUNT( * ) + 14 + - CAST( NULL AS SIGNED ) / + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT - - ( + CAST ( + 84 AS INTEGER ) ) * + COUNT ( * ) + 14 + - CAST ( NULL AS INTEGER ) / + 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9242
SELECT DISTINCT COUNT( * ) + - 25 - + SUM( ALL - 73 ) AS col2, COUNT( * )
----
49
1

skipif mysql # not compatible
query II rowsort label-9242
SELECT DISTINCT COUNT ( * ) + - 25 - + SUM ( ALL - 73 ) AS col2, COUNT ( * )
----
49
1

query I rowsort
SELECT - + CASE 81 WHEN 5 THEN - 52 + + - 89 + - ( 1 ) WHEN 87 THEN NULL END
----
NULL

query I rowsort
SELECT - 51 + 60 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL 20 + - - ( 8 ) + + 62 * + 2 * + - COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL 20 + - - ( 8 ) + + 62 * + 2 * + - COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT ALL - 46 + 74
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT 52 + - NULLIF ( + COUNT( * ), + NULLIF ( COUNT( * ), - 29 * ( - ( - 45 ) ) + 82 ) + + 47 * + 81 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9247
SELECT 52 + - NULLIF ( + COUNT ( * ), + NULLIF ( COUNT ( * ), - 29 * ( - ( - 45 ) ) + 82 ) + + 47 * + 81 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT COUNT( * ) * + 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9248
SELECT COUNT ( * ) * + 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT NULLIF ( CASE + + MIN( 97 ) WHEN - SUM( DISTINCT - 34 ) THEN NULL ELSE + ( 68 ) + ( 46 ) END, - 72 )
----
114

skipif mysql # not compatible
query I rowsort label-9249
SELECT NULLIF ( CASE + + MIN ( 97 ) WHEN - SUM ( DISTINCT - 34 ) THEN NULL ELSE + ( 68 ) + ( 46 ) END, - 72 )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT 29 + - - 64 * - + COUNT( * ) * + - 89
----
5725

skipif mysql # not compatible
query I rowsort label-9250
SELECT 29 + - - 64 * - + COUNT ( * ) * + - 89
----
5725

query I rowsort
SELECT - 91 * - + 2
----
182

query I rowsort
SELECT + ( + 51 ) + 2 col0
----
53

query I rowsort
SELECT 63 * + 47 + - 60
----
2901

query II rowsort
SELECT DISTINCT + 6, - 88 AS col1
----
6
-88

query I rowsort
SELECT + 58 * + 17
----
986

query I rowsort
SELECT ALL + + 16 * 30 + + 13 + + - ( 55 ) AS col0
----
438

query I rowsort
SELECT 50 + + ( 18 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT + COUNT( * ) * + + CASE - - ( - + MAX( ALL + 57 ) ) WHEN - - 54 THEN - 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + COUNT ( * ) * + + CASE - - ( - + MAX ( ALL + 57 ) ) WHEN - - 54 THEN - 57 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT 70 * + + CASE - + 58 WHEN - - 86 + + 69 THEN NULL WHEN 66 THEN + + COUNT( * ) END * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT 70 * + + CASE - + 58 WHEN - - 86 + + 69 THEN NULL WHEN 66 THEN + + COUNT ( * ) END * + 74
----
NULL

query I rowsort
SELECT 85 + 47 * 33
----
1636

query I rowsort
SELECT 56 * - + 36 AS col1
----
-2016

query I rowsort
SELECT ALL 4 + 27 AS col1
----
31

query II rowsort
SELECT ALL + 93 + + 41 AS col1, + 18
----
134
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT DISTINCT - 39 + + - SUM( DISTINCT - 62 ) - - 74 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT - 39 + + - SUM ( DISTINCT - 62 ) - - 74 AS col1
----
97

query I rowsort
SELECT 94 * + - 51
----
-4794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9266
SELECT COUNT( * ) DIV ( + NULLIF ( - 42, - + 5 * - - ( - + COALESCE ( - CAST( NULL AS SIGNED ), - 77, + 39 ) ) DIV 63 ) ) * - 34 - + 88 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-9266
SELECT COUNT ( * ) / ( + NULLIF ( - 42, - + 5 * - - ( - + COALESCE ( - CAST ( NULL AS INTEGER ), - 77, + 39 ) ) / 63 ) ) * - 34 - + 88 AS col1
----
-88

query I rowsort
SELECT DISTINCT 20 + - 63
----
-43

query I rowsort
SELECT 84 + - 59 AS col1
----
25

query I rowsort
SELECT ALL - 10 + - + 85 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9270
SELECT DISTINCT - CAST( - CASE + + 93 WHEN - - MAX( DISTINCT - 2 ) THEN NULL WHEN - 93 THEN NULL WHEN - CAST( + 52 AS SIGNED ) + + 57 THEN 59 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - CAST ( - CASE + + 93 WHEN - - MAX ( DISTINCT - 2 ) THEN NULL WHEN - 93 THEN NULL WHEN - CAST ( + 52 AS INTEGER ) + + 57 THEN 59 END AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 91 + + 99
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT DISTINCT + COUNT( DISTINCT + 37 ) * + ( - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT + COUNT ( DISTINCT + 37 ) * + ( - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT - 48 * + + COALESCE ( - COUNT( * ), 0 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9273
SELECT - 48 * + + COALESCE ( - COUNT ( * ), 0 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL CASE - 12 WHEN + 14 * - + 58 + + COUNT( * ) / + 37 + - 21 + + 76 THEN NULL WHEN - MAX( DISTINCT 18 ) + COUNT( * ) / 51 THEN MIN( ALL 86 ) * + MAX( 39 ) WHEN - 99 THEN - 97 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL CASE - 12 WHEN + 14 * - + 58 + + COUNT ( * ) / + 37 + - 21 + + 76 THEN NULL WHEN - MAX ( DISTINCT 18 ) + COUNT ( * ) / 51 THEN MIN ( ALL 86 ) * + MAX ( 39 ) WHEN - 99 THEN - 97 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + ( - 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9276
SELECT + 75 DIV MIN( ALL 91 ) * + MIN( - + 68 ) - - COUNT( * ) + - 0
----
1

skipif mysql # not compatible
query I rowsort label-9276
SELECT + 75 / MIN ( ALL 91 ) * + MIN ( - + 68 ) - - COUNT ( * ) + - 0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9277
SELECT + 15 * COUNT( * ) AS col2, - 63 * - CASE + - COUNT( * ) WHEN + 29 THEN + 24 + + 97 ELSE NULL END AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-9277
SELECT + 15 * COUNT ( * ) AS col2, - 63 * - CASE + - COUNT ( * ) WHEN + 29 THEN + 24 + + 97 ELSE NULL END AS col0
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT - NULLIF ( 52, + 19 + + 61 + MAX( - 89 ) * - 61 * 15 )
----
-52

skipif mysql # not compatible
query I rowsort label-9278
SELECT - NULLIF ( 52, + 19 + + 61 + MAX ( - 89 ) * - 61 * 15 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT + 42 DIV + 80 * 95 * + 91 * - + 14
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT + 42 / + 80 * 95 * + 91 * - + 14
----
0

query I rowsort
SELECT DISTINCT + 90 * 94
----
8460

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT COUNT( * ) + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-9281
SELECT COUNT ( * ) + - 17
----
-16

query I rowsort
SELECT 40 + + 2 AS col0
----
42

query II rowsort
SELECT 11, 8 * 35 * - - 54 * 16 + - 98 AS col1
----
11
241822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9284
SELECT ( - NULLIF ( 1, - CAST( + - 93 AS DECIMAL ) ) ) + + COUNT( - - CAST( - ( 18 ) AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9284
SELECT ( - NULLIF ( 1, - CAST ( + - 93 AS REAL ) ) ) + + COUNT ( - - CAST ( - ( 18 ) AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9285
SELECT 19 AS col1, NULLIF ( - - 74, CAST( AVG ( 85 ) AS SIGNED ) / - 2 ) - 43 * 11 AS col0
----
19
-399

skipif mysql # not compatible
query II rowsort label-9285
SELECT 19 AS col1, NULLIF ( - - 74, CAST ( AVG ( 85 ) AS INTEGER ) / - 2 ) - 43 * 11 AS col0
----
19
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - MIN( DISTINCT - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-9286
SELECT - MIN ( DISTINCT - 86 )
----
86

query I rowsort
SELECT 60 + + 95 + - - 94 AS col0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT + SUM( + 67 ) * NULLIF ( + - 47, 50 )
----
-3149

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT + SUM ( + 67 ) * NULLIF ( + - 47, 50 )
----
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT 69 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT 69 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 98 + ( - 67 ) col2
----
31

query I rowsort
SELECT 75 + 56 + 57 + 67 AS col0
----
255

query I rowsort
SELECT ALL + 79 * - 8 col1
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL - COUNT( * ) + - - 72 col1
----
71

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL - COUNT ( * ) + - - 72 col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT 85 + 96 + - + 6 DIV - 17
----
181

skipif mysql # not compatible
query I rowsort label-9294
SELECT 85 + 96 + - + 6 / - 17
----
181

query I rowsort
SELECT ALL 92 + - ( + 37 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9296
SELECT + 35 DIV + - 1 + - 91 * - - COALESCE ( - 58, + - 42 + - 74 * + + COUNT( * ) )
----
5243

skipif mysql # not compatible
query I rowsort label-9296
SELECT + 35 / + - 1 + - 91 * - - COALESCE ( - 58, + - 42 + - 74 * + + COUNT ( * ) )
----
5243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT CAST( + 5 AS SIGNED ) + 79 + 98 AS col1
----
182

skipif mysql # not compatible
query I rowsort label-9297
SELECT CAST ( + 5 AS INTEGER ) + 79 + 98 AS col1
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-9298
SELECT ALL - COUNT( * ) AS col1, 27
----
-1
27

skipif mysql # not compatible
query II rowsort label-9298
SELECT ALL - COUNT ( * ) AS col1, 27
----
-1
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9299
SELECT COUNT( * ), + 81 * + COUNT( ALL + - COALESCE ( CASE - CASE + 16 WHEN 14 + - 74 THEN 57 WHEN + 29 THEN - 32 WHEN 45 + + 19 * 82 THEN NULL ELSE NULL END WHEN - 91 - 1 / CASE - 81 + 57 * 13 WHEN - 14 / 86 THEN NULL WHEN - 98 THEN NULL ELSE 64 END THEN - 24 END, + 90 ) ) * - COUNT( * ) AS col1
----
1
-81

skipif mysql # not compatible
query II rowsort label-9299
SELECT COUNT ( * ), + 81 * + COUNT ( ALL + - COALESCE ( CASE - CASE + 16 WHEN 14 + - 74 THEN 57 WHEN + 29 THEN - 32 WHEN 45 + + 19 * 82 THEN NULL ELSE NULL END WHEN - 91 - 1 / CASE - 81 + 57 * 13 WHEN - 14 / 86 THEN NULL WHEN - 98 THEN NULL ELSE 64 END THEN - 24 END, + 90 ) ) * - COUNT ( * ) AS col1
----
1
-81

query I rowsort
SELECT 89 * - 79 + 97 + 26
----
-6908

query I rowsort
SELECT ALL - 63 * - 69 + - 23
----
4324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9302
SELECT DISTINCT - + 46 DIV SUM( + ( 55 ) ) * + 18 + 60 * + 29
----
1740

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT - + 46 / SUM ( + ( 55 ) ) * + 18 + 60 * + 29
----
1740

query I rowsort
SELECT ALL - 48 * + 32 * + 74 * - + 76
----
8638464

onlyif mysql # aggregate syntax: 
query II rowsort label-9304
SELECT + - 44, COUNT( * ) - - 53 AS col1
----
-44
54

skipif mysql # not compatible
query II rowsort label-9304
SELECT + - 44, COUNT ( * ) - - 53 AS col1
----
-44
54

query I rowsort
SELECT CASE + 97 WHEN + 5 THEN NULL WHEN + 86 + + - 83 THEN NULL ELSE - 54 END col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT + + MAX( ALL 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9306
SELECT + + MAX ( ALL 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT - + CASE WHEN NOT ( + 5 BETWEEN + CASE 43 WHEN - 93 * COUNT( * ) THEN NULL WHEN 54 * 22 + - 92 * + 87 THEN NULL WHEN + 73 THEN + 67 ELSE + 94 + COUNT( * ) * - 66 END AND NULL ) THEN MAX( ALL - 71 ) END + 50
----
121

skipif mysql # not compatible
query I rowsort label-9307
SELECT - + CASE WHEN NOT ( + 5 BETWEEN + CASE 43 WHEN - 93 * COUNT ( * ) THEN NULL WHEN 54 * 22 + - 92 * + 87 THEN NULL WHEN + 73 THEN + 67 ELSE + 94 + COUNT ( * ) * - 66 END AND NULL ) THEN MAX ( ALL - 71 ) END + 50
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT - + ( - CASE 57 WHEN 59 + 74 THEN + 22 ELSE - COUNT( * ) END ) * 68
----
-68

skipif mysql # not compatible
query I rowsort label-9308
SELECT - + ( - CASE 57 WHEN 59 + 74 THEN + 22 ELSE - COUNT ( * ) END ) * 68
----
-68

query I rowsort
SELECT - 85 + - 67
----
-152

query I rowsort
SELECT + NULLIF ( + CASE - 9 WHEN 13 THEN NULL ELSE + ( - 85 ) END, - - 82 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT + + NULLIF ( - - 20, - - 58 + 97 ) + CASE + 55 WHEN - + 57 / + 50 THEN ( + 67 ) WHEN + 73 THEN 54 WHEN - 29 THEN NULL END / - CAST( - 84 * - COALESCE ( + COALESCE ( + MAX( ALL + 35 ), - 28 / + 36 ), - 86 ) + CAST( COUNT( * ) AS SIGNED ) * - 84 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT + + NULLIF ( - - 20, - - 58 + 97 ) + CASE + 55 WHEN - + 57 / + 50 THEN ( + 67 ) WHEN + 73 THEN 54 WHEN - 29 THEN NULL END / - CAST ( - 84 * - COALESCE ( + COALESCE ( + MAX ( ALL + 35 ), - 28 / + 36 ), - 86 ) + CAST ( COUNT ( * ) AS INTEGER ) * - 84 AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 82 AS col0, 96
----
82
96

query I rowsort
SELECT - 13 * - 33 + - 57 AS col1
----
372

query I rowsort
SELECT DISTINCT + ( - 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT ALL ( COALESCE ( - CASE 35 WHEN - - 91 / + 64 THEN - + COUNT( * ) + - COUNT( * ) - - COUNT( * ) ELSE NULL END, + 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL ( COALESCE ( - CASE 35 WHEN - - 91 / + 64 THEN - + COUNT ( * ) + - COUNT ( * ) - - COUNT ( * ) ELSE NULL END, + 62 ) )
----
62

query I rowsort
SELECT + + 91 + 53
----
144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9317
SELECT - + CAST( NULL AS DECIMAL ), CASE - + 61 WHEN 23 * MAX( ALL + - 91 ) THEN - - 51 WHEN - 83 + AVG ( + 33 ) THEN NULL WHEN 65 * 10 THEN - 81 / 73 END * + 51
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9317
SELECT - + CAST ( NULL AS REAL ), CASE - + 61 WHEN 23 * MAX ( ALL + - 91 ) THEN - - 51 WHEN - 83 + AVG ( + 33 ) THEN NULL WHEN 65 * 10 THEN - 81 / 73 END * + 51
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9318
SELECT + CASE + 91 WHEN 69 * + ( + + 35 ) + + + COUNT( * ) * + COUNT( * ) THEN NULL ELSE - CAST( CASE 43 WHEN - ( + COUNT( * ) ) THEN NULL ELSE - ( - 87 ) - NULLIF ( - 58, 68 ) * CAST( NULL AS DECIMAL ) END AS DECIMAL ) END + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT + CASE + 91 WHEN 69 * + ( + + 35 ) + + + COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE - CAST ( CASE 43 WHEN - ( + COUNT ( * ) ) THEN NULL ELSE - ( - 87 ) - NULLIF ( - 58, 68 ) * CAST ( NULL AS REAL ) END AS REAL ) END + 29
----
NULL

query I rowsort
SELECT + 40 * - 91 AS col0
----
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT + 46 + - 25 + - 56 + + SUM( DISTINCT + 17 ) + + 11 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9320
SELECT + 46 + - 25 + - 56 + + SUM ( DISTINCT + 17 ) + + 11 AS col2
----
-7

query I rowsort
SELECT ALL 28 + + - 81
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT - CASE - 55 WHEN + - 4 THEN NULL ELSE - 73 + COUNT( * ) + - COUNT( * ) * - + NULLIF ( + 16, - 32 ) END
----
56

skipif mysql # not compatible
query I rowsort label-9322
SELECT - CASE - 55 WHEN + - 4 THEN NULL ELSE - 73 + COUNT ( * ) + - COUNT ( * ) * - + NULLIF ( + 16, - 32 ) END
----
56

query II rowsort
SELECT DISTINCT 46 + + 7 col0, + 95
----
53
95

query I rowsort
SELECT DISTINCT 57 + + 32 * + 84 + + 11 * + - ( + - ( - 8 ) ) - - 17 + + + 9 AS col0
----
2683

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL COUNT( 90 ) + + CASE - 34 WHEN - 9 THEN 35 WHEN NULLIF ( + 19, + 4 ) THEN NULL WHEN 92 THEN - COUNT( * ) END + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL COUNT ( 90 ) + + CASE - 34 WHEN - 9 THEN 35 WHEN NULLIF ( + 19, + 4 ) THEN NULL WHEN 92 THEN - COUNT ( * ) END + - 17 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9326
SELECT + ( + 54 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT + ( + 54 ) * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL 92 + - + 52 AS col2, 15 AS col1
----
40
15

query I rowsort
SELECT - ( + - 40 ) col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9329
SELECT ALL COUNT( * ) + - 9 + 83 DIV + - 22 - + 62 - + COUNT( + - 55 )
----
-74

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL COUNT ( * ) + - 9 + 83 / + - 22 - + 62 - + COUNT ( + - 55 )
----
-74

query I rowsort
SELECT + ( 62 ) * 96
----
5952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT DISTINCT CASE - 52 WHEN - + 64 * + - 86 + + - CASE - 34 WHEN AVG ( - 14 ) * - 9 * + NULLIF ( + 2, 47 * 84 ) - - 66 * - NULLIF ( - CAST( - COUNT( * ) AS SIGNED ) * COUNT( 37 ), + 55 ) - 18 / - 85 THEN NULL ELSE + 75 END THEN NULL WHEN 36 THEN NULL WHEN - COUNT( * ) THEN - 50 WHEN + 98 / + 38 + 67 THEN NULL ELSE NULL END + - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT CASE - 52 WHEN - + 64 * + - 86 + + - CASE - 34 WHEN AVG ( - 14 ) * - 9 * + NULLIF ( + 2, 47 * 84 ) - - 66 * - NULLIF ( - CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( 37 ), + 55 ) - 18 / - 85 THEN NULL ELSE + 75 END THEN NULL WHEN 36 THEN NULL WHEN - COUNT ( * ) THEN - 50 WHEN + 98 / + 38 + 67 THEN NULL ELSE NULL END + - 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9332
SELECT + ( + + 11 ), + MIN( - 68 ) AS col1
----
11
-68

skipif mysql # not compatible
query II rowsort label-9332
SELECT + ( + + 11 ), + MIN ( - 68 ) AS col1
----
11
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT ALL - 19 / CAST( NULL AS SIGNED ) - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - 19 / CAST ( NULL AS INTEGER ) - + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT + 20 * 15 * CASE + 73 WHEN + MIN( ALL - 66 ) / COUNT( * ) * - COUNT( * ) THEN + + COUNT( * ) ELSE NULL END * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT + 20 * 15 * CASE + 73 WHEN + MIN ( ALL - 66 ) / COUNT ( * ) * - COUNT ( * ) THEN + + COUNT ( * ) ELSE NULL END * - 55
----
NULL

query I rowsort
SELECT DISTINCT - 49 * + 75
----
-3675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT DISTINCT SUM( ALL ( - 47 ) ) DIV - - NULLIF ( - + 71, - 75 ) * 67 - - - 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT SUM ( ALL ( - 47 ) ) / - - NULLIF ( - + 71, - 75 ) * 67 - - - 28 AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9337
SELECT - - CAST( NULL AS SIGNED ) / 20 + - CAST( MAX( 34 ) AS DECIMAL ) + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT - - CAST ( NULL AS INTEGER ) / 20 + - CAST ( MAX ( 34 ) AS REAL ) + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9338
SELECT ALL + - NULLIF ( + 89, - 46 * SUM( ALL 7 ) * - - 84 * + COUNT( * ) ) DIV - 70 + 36 - MIN( + 20 ) * 7 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL + - NULLIF ( + 89, - 46 * SUM ( ALL 7 ) * - - 84 * + COUNT ( * ) ) / - 70 + 36 - MIN ( + 20 ) * 7 AS col0
----
-103

query I rowsort
SELECT - + 97 * + - 45 + + 43 col2
----
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT + + COUNT( 68 ) + + 91 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9340
SELECT + + COUNT ( 68 ) + + 91 AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT - 30 DIV - 32 + + 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9341
SELECT - 30 / - 32 + + 61 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9342
SELECT + CAST( - 76 AS SIGNED ) * - + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-9342
SELECT + CAST ( - 76 AS INTEGER ) * - + COUNT ( * )
----
76

query I rowsort
SELECT - - 78 + + 92 col1
----
170

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9344
SELECT - CAST( - + 89 AS SIGNED ) DIV 44 + - 7
----
-5

skipif mysql # not compatible
query I rowsort label-9344
SELECT - CAST ( - + 89 AS INTEGER ) / 44 + - 7
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT DISTINCT + SUM( DISTINCT + 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT + SUM ( DISTINCT + 4 ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9346
SELECT ALL + COALESCE ( - 50, - 51 + - CAST( - 87 AS SIGNED ) - - ( - COUNT( * ) ) + 14 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL + COALESCE ( - 50, - 51 + - CAST ( - 87 AS INTEGER ) - - ( - COUNT ( * ) ) + 14 ) AS col0
----
-50

query I rowsort
SELECT - + 37 - - + 83
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9348
SELECT ALL - 31 DIV 18 DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - 31 / 18 / 18
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9349
SELECT - - 20 DIV - + MIN( 94 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9349
SELECT - - 20 / - + MIN ( 94 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9350
SELECT - + 46 * 29, 52 DIV - + MIN( DISTINCT - 49 ) + - COUNT( * ) AS col1
----
-1334
0

skipif mysql # not compatible
query II rowsort label-9350
SELECT - + 46 * 29, 52 / - + MIN ( DISTINCT - 49 ) + - COUNT ( * ) AS col1
----
-1334
0

query I rowsort
SELECT DISTINCT 34 * + CASE + + 80 WHEN - NULLIF ( + 22, - 50 ) THEN NULL ELSE - - ( 23 ) END - - 53 * 69 + ( 35 )
----
4474

query I rowsort
SELECT ALL - 97 * 7 * + + 83 AS col1
----
-56357

query I rowsort
SELECT - 17 * - 73 AS col0
----
1241

query I rowsort
SELECT ALL - 6 * + 84 + + - 77 + 66 AS col0
----
-515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9355
SELECT - 34 - 86 + - 34 + - - CASE - 20 WHEN + CAST( + + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) + + + 64 THEN - - 99 + ( COUNT( * ) ) WHEN - 12 * + 52 THEN NULL END * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT - 34 - 86 + - 34 + - - CASE - 20 WHEN + CAST ( + + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) + + + 64 THEN - - 99 + ( COUNT ( * ) ) WHEN - 12 * + 52 THEN NULL END * 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT - SUM( DISTINCT + 42 ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-9356
SELECT - SUM ( DISTINCT + 42 ) col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9357
SELECT ALL 65 * + 61 + - 98, COUNT( * ) * 56 * + 40 AS col2
----
3867
2240

skipif mysql # not compatible
query II rowsort label-9357
SELECT ALL 65 * + 61 + - 98, COUNT ( * ) * 56 * + 40 AS col2
----
3867
2240

query I rowsort
SELECT + 87 * 95 AS col1
----
8265

onlyif mysql # DIV for integer division: 
query I rowsort label-9359
SELECT ALL 99 DIV - + 74
----
-1

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL 99 / - + 74
----
-1

query I rowsort
SELECT - ( ( + + 42 ) )
----
-42

query I rowsort
SELECT - 51 + - - 25 AS col1
----
-26

query I rowsort
SELECT + 57 - + - 71 + + - 24
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT - CAST( NULL AS SIGNED ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT - CAST ( NULL AS INTEGER ) + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT + COUNT( * ) + - - 74
----
75

skipif mysql # not compatible
query I rowsort label-9364
SELECT + COUNT ( * ) + - - 74
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9365
SELECT ALL - 62 DIV 1
----
-62

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL - 62 / 1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT + 21 * + 27 * + + ( COUNT( * ) ) / - 31 + CASE - - 4 WHEN + 47 THEN - 19 WHEN - 82 + + 78 THEN NULL WHEN 77 THEN NULL ELSE NULL END + ( + COUNT( * ) + + MIN( DISTINCT 67 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT + 21 * + 27 * + + ( COUNT ( * ) ) / - 31 + CASE - - 4 WHEN + 47 THEN - 19 WHEN - 82 + + 78 THEN NULL WHEN 77 THEN NULL ELSE NULL END + ( + COUNT ( * ) + + MIN ( DISTINCT 67 ) )
----
NULL

query I rowsort
SELECT DISTINCT 44 - - 29
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT COUNT( * ) + + 6 * - 16 * + + 72 * - COUNT( * )
----
6913

skipif mysql # not compatible
query I rowsort label-9368
SELECT COUNT ( * ) + + 6 * - 16 * + + 72 * - COUNT ( * )
----
6913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN + 7 - + 53 / - 12 THEN CAST( NULL AS SIGNED ) END / - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN + 7 - + 53 / - 12 THEN CAST ( NULL AS INTEGER ) END / - 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT - 88 * - ( COUNT( ALL - - 60 ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9370
SELECT - 88 * - ( COUNT ( ALL - - 60 ) ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT + SUM( DISTINCT - - 12 ) + - + 5 * 19 + + 62 * - COUNT( * ) + + + 53 + + 14
----
-78

skipif mysql # not compatible
query I rowsort label-9371
SELECT + SUM ( DISTINCT - - 12 ) + - + 5 * 19 + + 62 * - COUNT ( * ) + + + 53 + + 14
----
-78

query I rowsort
SELECT 83 * - 2 AS col0
----
-166

query I rowsort
SELECT - 1 * - + 6 AS col1
----
6

query I rowsort
SELECT - 57 * - 50 + + + CASE + 70 WHEN 83 + + 65 + - 67 + + 23 + + AVG ( - 77 ) THEN 31 ELSE NULL END
----
NULL

query I rowsort
SELECT + 68 * - + 98 + + + 37 * 0 col0
----
-6664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9376
SELECT DISTINCT - - 99 * - - CAST( NULL AS SIGNED ) * + + MAX( DISTINCT - + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT - - 99 * - - CAST ( NULL AS INTEGER ) * + + MAX ( DISTINCT - + 71 )
----
NULL

query I rowsort
SELECT ALL - + 74 * 57
----
-4218

onlyif mysql # aggregate syntax: 
query II rowsort label-9378
SELECT ALL - 42 AS col2, + COUNT( * )
----
-42
1

skipif mysql # not compatible
query II rowsort label-9378
SELECT ALL - 42 AS col2, + COUNT ( * )
----
-42
1

query I rowsort
SELECT + 78 * + 68 + + + 57 AS col0
----
5361

query I rowsort
SELECT - 70 + - + ( - 69 )
----
-1

query I rowsort
SELECT DISTINCT - + ( - - 73 )
----
-73

query I rowsort
SELECT + 84 + - 63 + + - 30 * 92 AS col0
----
-2739

query I rowsort
SELECT 14 + + - 71
----
-57

query I rowsort
SELECT DISTINCT - + 19 + - + 99 * + 13
----
-1306

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9385
SELECT DISTINCT 82 + + + COUNT( * ) + + + COUNT( * ) * - ( + 10 ) DIV - COUNT( * ) AS col1, ( + + 59 )
----
93
59

skipif mysql # not compatible
query II rowsort label-9385
SELECT DISTINCT 82 + + + COUNT ( * ) + + + COUNT ( * ) * - ( + 10 ) / - COUNT ( * ) AS col1, ( + + 59 )
----
93
59

query II rowsort
SELECT 8, - 29 AS col1
----
8
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9387
SELECT ALL - 93 + CAST( 65 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - 93 + CAST ( 65 AS INTEGER )
----
-28

query I rowsort
SELECT 56 * + 19 + 84 AS col2
----
1148

query I rowsort
SELECT DISTINCT 17 + 49 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT DISTINCT + NULLIF ( 59, MAX( ALL - CAST( NULL AS SIGNED ) ) ) + + - ( - - 27 ) * - 80
----
2219

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT + NULLIF ( 59, MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) + + - ( - - 27 ) * - 80
----
2219

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT DISTINCT + 48 DIV - 24
----
-2

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT + 48 / - 24
----
-2

query I rowsort
SELECT ALL - 93 + 70 AS col0
----
-23

query I rowsort
SELECT 65 * + 50 * - 52
----
-169000

query II rowsort
SELECT DISTINCT - 75 - - 20, 22 AS col2
----
-55
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT 20 + + + 22 - + COUNT( * ) - - 47 + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-9395
SELECT 20 + + + 22 - + COUNT ( * ) - - 47 + - COUNT ( * )
----
87

query II rowsort
SELECT ALL 85 AS col1, - 30 col2
----
85
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT DISTINCT - 76 - - - CAST( + 26 AS SIGNED ) AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT - 76 - - - CAST ( + 26 AS INTEGER ) AS col2
----
-102

query I rowsort
SELECT 4 * - - 15 AS col0
----
60

query II rowsort
SELECT ALL - 58 * + COALESCE ( + + 57, - 61 ) AS col0, + 30
----
-3306
30

query II rowsort
SELECT DISTINCT 48 AS col1, 13 AS col0
----
48
13

query II rowsort
SELECT 94 * 72 AS col2, + 41 + 87
----
6768
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9402
SELECT - 52, NULLIF ( 65, - - ( + + 72 ) * COUNT( * ) ) + - COUNT( * ) DIV + + 49 AS col1
----
-52
65

skipif mysql # not compatible
query II rowsort label-9402
SELECT - 52, NULLIF ( 65, - - ( + + 72 ) * COUNT ( * ) ) + - COUNT ( * ) / + + 49 AS col1
----
-52
65

query I rowsort
SELECT 0 - - - ( - 17 ) * + - 39 + - 41 * ( - 67 )
----
2084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9404
SELECT COUNT( * ) * + 41 DIV - 66 col2
----
0

skipif mysql # not compatible
query I rowsort label-9404
SELECT COUNT ( * ) * + 41 / - 66 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT + 43 * COUNT( * ) * 59
----
2537

skipif mysql # not compatible
query I rowsort label-9405
SELECT + 43 * COUNT ( * ) * 59
----
2537

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT + - MIN( ALL - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-9406
SELECT + - MIN ( ALL - 2 )
----
2

query II rowsort
SELECT ALL - + 26 AS col1, - ( 81 ) + - 63
----
-26
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9408
SELECT DISTINCT + - COUNT( ALL - 23 ) DIV - CAST( + 77 AS SIGNED ) DIV - 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT + - COUNT ( ALL - 23 ) / - CAST ( + 77 AS INTEGER ) / - 36 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9409
SELECT ALL 5 * + 8 - + 81 + + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * + + 21 * - 13 * + - 60 * - COALESCE ( - + 18, + - 42 - CASE + 60 WHEN + 73 THEN + 28 * - CASE COUNT( * ) WHEN - MAX( ALL 60 ) THEN 2 + + AVG ( ALL + 7 ) * + AVG ( ALL - 21 ) END WHEN + AVG ( - COALESCE ( 83, - 16 ) ) * - 20 THEN NULL ELSE NULL END, - 16 ) * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL 5 * + 8 - + 81 + + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + + 21 * - 13 * + - 60 * - COALESCE ( - + 18, + - 42 - CASE + 60 WHEN + 73 THEN + 28 * - CASE COUNT ( * ) WHEN - MAX ( ALL 60 ) THEN 2 + + AVG ( ALL + 7 ) * + AVG ( ALL - 21 ) END WHEN + AVG ( - COALESCE ( 83, - 16 ) ) * - 20 THEN NULL ELSE NULL END, - 16 ) * 39
----
NULL

query I rowsort
SELECT ALL - 75 + 36 AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9411
SELECT + + 28 DIV + COALESCE ( + COUNT( * ), - 42 ) + + 75 + 30
----
133

skipif mysql # not compatible
query I rowsort label-9411
SELECT + + 28 / + COALESCE ( + COUNT ( * ), - 42 ) + + 75 + 30
----
133

query I rowsort
SELECT - 1 * - - 45 AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT - 34 / - ( 43 ) + - + MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT - 34 / - ( 43 ) + - + MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9414
SELECT - CASE + 89 WHEN - CAST( ( 7 ) AS SIGNED ) * - - 91 THEN NULL ELSE - - 27 + + 31 DIV - + 8 * + COUNT( * ) END AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9414
SELECT - CASE + 89 WHEN - CAST ( ( 7 ) AS INTEGER ) * - - 91 THEN NULL ELSE - - 27 + + 31 / - + 8 * + COUNT ( * ) END AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT - CASE - 69 WHEN - 27 + ( - - 65 ) THEN - + COALESCE ( + 7, + - 96 * + - ( - 0 ) + MAX( DISTINCT + 81 ) + + COALESCE ( - COUNT( * ) + + COUNT( * ), 78 ) * + 11 ) + + 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT - CASE - 69 WHEN - 27 + ( - - 65 ) THEN - + COALESCE ( + 7, + - 96 * + - ( - 0 ) + MAX ( DISTINCT + 81 ) + + COALESCE ( - COUNT ( * ) + + COUNT ( * ), 78 ) * + 11 ) + + 91 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL 21 + - MAX( - - NULLIF ( - + 46, - 95 * - 8 + 75 + + + 33 ) ) + - 82 - - + 42 + + COUNT( * ) col1
----
28

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL 21 + - MAX ( - - NULLIF ( - + 46, - 95 * - 8 + 75 + + + 33 ) ) + - 82 - - + 42 + + COUNT ( * ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + - COALESCE ( COUNT( * ), ( + 29 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9417
SELECT + - COALESCE ( COUNT ( * ), ( + 29 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL 34 * - 29 * - MIN( DISTINCT - - ( - 11 ) ) / - CASE + 97 WHEN - 57 THEN 28 + - + 67 / + ( + 90 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL 34 * - 29 * - MIN ( DISTINCT - - ( - 11 ) ) / - CASE + 97 WHEN - 57 THEN 28 + - + 67 / + ( + 90 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT COUNT( * ) * 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9419
SELECT COUNT ( * ) * 8 AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT DISTINCT 35 DIV + + 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT 35 / + + 30 AS col0
----
1

query I rowsort
SELECT ALL 69 * + 11
----
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT CASE + 31 WHEN + - 17 THEN - 32 * CAST( - + 21 AS SIGNED ) + + 96 ELSE NULL END - - - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT CASE + 31 WHEN + - 17 THEN - 32 * CAST ( - + 21 AS INTEGER ) + + 96 ELSE NULL END - - - 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT 14 * + COALESCE ( 58, - 39 + - COUNT( * ) ) col0, + 39 + - 99
----
812
-60

skipif mysql # not compatible
query II rowsort label-9423
SELECT 14 * + COALESCE ( 58, - 39 + - COUNT ( * ) ) col0, + 39 + - 99
----
812
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT - COUNT( 56 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9424
SELECT - COUNT ( 56 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT DISTINCT SUM( ALL - ( 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT SUM ( ALL - ( 65 ) )
----
-65

query I rowsort
SELECT + 21 - + + 85 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - 98 - + ( MIN( DISTINCT 99 ) ) AS col1
----
-197

skipif mysql # not compatible
query I rowsort label-9427
SELECT - 98 - + ( MIN ( DISTINCT 99 ) ) AS col1
----
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT DISTINCT + 90 DIV + + 86 col2
----
1

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT + 90 / + + 86 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9429
SELECT + MAX( ALL - ( + 17 ) ) * + 1 DIV - - 74, 40 AS col2
----
0
40

skipif mysql # not compatible
query II rowsort label-9429
SELECT + MAX ( ALL - ( + 17 ) ) * + 1 / - - 74, 40 AS col2
----
0
40

query I rowsort
SELECT + 62 + 30 * 35 * + 45 * + 16 AS col0
----
756062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT - + 65 + - CAST( 65 AS SIGNED ) - + - 57
----
-73

skipif mysql # not compatible
query I rowsort label-9431
SELECT - + 65 + - CAST ( 65 AS INTEGER ) - + - 57
----
-73

query I rowsort
SELECT - - 90 + + - 64
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9433
SELECT - 63 + - + ( COUNT( * ) ) DIV + 14
----
-63

skipif mysql # not compatible
query I rowsort label-9433
SELECT - 63 + - + ( COUNT ( * ) ) / + 14
----
-63

query II rowsort
SELECT ALL - - 35 * + 58 + + - 47 col0, + 66 + + 61 col2
----
1983
127

query I rowsort
SELECT + + 58 + + + 9 * + 4 * + 51 col0
----
1894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9436
SELECT ALL + COUNT( ALL 81 ) DIV - NULLIF ( 3, + 7 DIV - NULLIF ( - 42, + - COUNT( * ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL + COUNT ( ALL 81 ) / - NULLIF ( 3, + 7 / - NULLIF ( - 42, + - COUNT ( * ) ) ) AS col2
----
0

query II rowsort
SELECT + ( 49 ) AS col0, + 45 AS col1
----
49
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9438
SELECT 83 * ( + + 76 ) * - 54 + + - 6 DIV - COUNT( * ) + - + 86
----
-340712

skipif mysql # not compatible
query I rowsort label-9438
SELECT 83 * ( + + 76 ) * - 54 + + - 6 / - COUNT ( * ) + - + 86
----
-340712

query I rowsort
SELECT DISTINCT 77 * 94 + + - NULLIF ( + + 99, 32 )
----
7139

onlyif mysql # aggregate syntax: 
query II rowsort label-9440
SELECT ALL 14 * - - 61 + - ( + + 37 ) + 26 + - - COUNT( * ) * 97 AS col1, - ( + + 58 ) * + 87 * - - 84 * + + COUNT( * )
----
940
-423864

skipif mysql # not compatible
query II rowsort label-9440
SELECT ALL 14 * - - 61 + - ( + + 37 ) + 26 + - - COUNT ( * ) * 97 AS col1, - ( + + 58 ) * + 87 * - - 84 * + + COUNT ( * )
----
940
-423864

query I rowsort
SELECT - 79 * - + 16 col1
----
1264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9442
SELECT ALL + 92 DIV + + 60 * + - COUNT( * ) - - - MIN( DISTINCT - 6 ) + + NULLIF ( 49, - 14 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + 92 / + + 60 * + - COUNT ( * ) - - - MIN ( DISTINCT - 6 ) + + NULLIF ( 49, - 14 ) AS col2
----
54

query I rowsort
SELECT + - 81 + + 66 + - - 4 * - - 61 + + 83 + 53
----
365

query I rowsort
SELECT DISTINCT + ( + 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT - + COUNT( * ) * 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT - + COUNT ( * ) * 19 AS col2
----
-19

query I rowsort
SELECT ALL 85 * + 17 - + + 31 AS col2
----
1414

query I rowsort
SELECT - 58 * 75 AS col1
----
-4350

query I rowsort
SELECT + 64 * + 22 AS col1
----
1408

onlyif mysql # aggregate syntax: 
query II rowsort label-9449
SELECT - COUNT( * ) * - ( - 61 ), SUM( + - 55 ) col0
----
-61
-55

skipif mysql # not compatible
query II rowsort label-9449
SELECT - COUNT ( * ) * - ( - 61 ), SUM ( + - 55 ) col0
----
-61
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT - NULLIF ( + 57, + - 33 / 27 - - 52 ) * + COUNT( DISTINCT + 10 ) - + NULLIF ( + - 3, - 19 + - 64 + - 41 + - + CAST( NULL AS SIGNED ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9450
SELECT - NULLIF ( + 57, + - 33 / 27 - - 52 ) * + COUNT ( DISTINCT + 10 ) - + NULLIF ( + - 3, - 19 + - 64 + - 41 + - + CAST ( NULL AS INTEGER ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT CASE + NULLIF ( + 25, + 75 ) WHEN 27 * SUM( - - 58 ) * + + ( NULLIF ( + 43, - 60 * - 64 * ( 56 ) - 38 ) ) THEN 39 WHEN 43 THEN NULL ELSE - 73 * + 13 END
----
-949

skipif mysql # not compatible
query I rowsort label-9451
SELECT CASE + NULLIF ( + 25, + 75 ) WHEN 27 * SUM ( - - 58 ) * + + ( NULLIF ( + 43, - 60 * - 64 * ( 56 ) - 38 ) ) THEN 39 WHEN 43 THEN NULL ELSE - 73 * + 13 END
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL ( 73 ) * - 86 + + - 73 - - - MIN( ALL + COALESCE ( NULLIF ( 90, - 13 * + - 32 ), - 9 ) )
----
-6441

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL ( 73 ) * - 86 + + - 73 - - - MIN ( ALL + COALESCE ( NULLIF ( 90, - 13 * + - 32 ), - 9 ) )
----
-6441

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - 52 * + NULLIF ( - MAX( DISTINCT - ( + + 3 ) ), - - 64 ) + - 15
----
-171

skipif mysql # not compatible
query I rowsort label-9453
SELECT - 52 * + NULLIF ( - MAX ( DISTINCT - ( + + 3 ) ), - - 64 ) + - 15
----
-171

query I rowsort
SELECT + 98 + 62 AS col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT + 57 * - + MAX( ( 54 ) ) AS col0
----
-3078

skipif mysql # not compatible
query I rowsort label-9455
SELECT + 57 * - + MAX ( ( 54 ) ) AS col0
----
-3078

query I rowsort
SELECT ALL ( - 42 ) * 86 + - 57 AS col1
----
-3669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9457
SELECT + 74 + - MAX( + 48 ) * 64 DIV - 76 + 0 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-9457
SELECT + 74 + - MAX ( + 48 ) * 64 / - 76 + 0 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT MAX( ALL - - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9458
SELECT MAX ( ALL - - 64 ) AS col0
----
64

query I rowsort
SELECT + 50 + 32 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9460
SELECT - NULLIF ( - + ( - COALESCE ( + 59, + MAX( ALL + 56 ), + 49 ) ), + - 83 ) AS col2, COUNT( * ) * + 62 * CAST( NULL AS SIGNED ) * COUNT( * ) + - 53
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-9460
SELECT - NULLIF ( - + ( - COALESCE ( + 59, + MAX ( ALL + 56 ), + 49 ) ), + - 83 ) AS col2, COUNT ( * ) * + 62 * CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 53
----
-59
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9461
SELECT + 38 * - - MAX( - - 45 ) / - 90 * COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT + 38 * - - MAX ( - - 45 ) / - 90 * COUNT ( * ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9462
SELECT DISTINCT 79 * - CAST( + MIN( - 33 ) AS SIGNED ) * ( - CASE 39 WHEN + COUNT( * ) + + + 2 + - COUNT( * ) / AVG ( ALL + 72 ) THEN - - CASE + 84 WHEN CAST( NULL AS SIGNED ) - - MIN( ALL 5 + 58 ) THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - 74 END ELSE 40 END ) * + COUNT( * ) col2
----
-104280

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT 79 * - CAST ( + MIN ( - 33 ) AS INTEGER ) * ( - CASE 39 WHEN + COUNT ( * ) + + + 2 + - COUNT ( * ) / AVG ( ALL + 72 ) THEN - - CASE + 84 WHEN CAST ( NULL AS INTEGER ) - - MIN ( ALL 5 + 58 ) THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - 74 END ELSE 40 END ) * + COUNT ( * ) col2
----
-104280

query I rowsort
SELECT ALL - 9 + + 50
----
41

query II rowsort
SELECT - 12 AS col1, - 47
----
-12
-47

query I rowsort
SELECT NULLIF ( - + 77, - - 75 )
----
-77

query I rowsort
SELECT ALL 8 + - 21 AS col1
----
-13

query I rowsort
SELECT ( ( 70 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL - 59 + + + ( - + 67 ) + - + COUNT( * ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL - 59 + + + ( - + 67 ) + - + COUNT ( * ) AS col0
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT - - MIN( DISTINCT - NULLIF ( + 12, - + 79 ) ) DIV 36 * 14
----
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT - - MIN ( DISTINCT - NULLIF ( + 12, - + 79 ) ) / 36 * 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT + - 42 * + NULLIF ( MAX( + + 70 ), + 39 ) * + - 3 * 87 * - + 3 AS col2
----
-2302020

skipif mysql # not compatible
query I rowsort label-9470
SELECT + - 42 * + NULLIF ( MAX ( + + 70 ), + 39 ) * + - 3 * 87 * - + 3 AS col2
----
-2302020

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT + + 68 - - COUNT( * ) * + 78
----
146

skipif mysql # not compatible
query I rowsort label-9471
SELECT + + 68 - - COUNT ( * ) * + 78
----
146

query I rowsort
SELECT - ( + + 33 ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9473
SELECT - 46 col1, + CAST( NULL AS SIGNED ) / - 27 + - NULLIF ( + - 94, 55 ) AS col1
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-9473
SELECT - 46 col1, + CAST ( NULL AS INTEGER ) / - 27 + - NULLIF ( + - 94, 55 ) AS col1
----
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT - SUM( 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9474
SELECT - SUM ( 4 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9475
SELECT - ( - CASE + + CAST( COUNT( * ) AS DECIMAL ) WHEN 16 THEN NULL WHEN + 47 THEN - 12 - - 8 ELSE NULL END ) * 87 * - 10 * + 56 * 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT - ( - CASE + + CAST ( COUNT ( * ) AS REAL ) WHEN 16 THEN NULL WHEN + 47 THEN - 12 - - 8 ELSE NULL END ) * 87 * - 10 * + 56 * 68 AS col2
----
NULL

query I rowsort
SELECT ALL 11 + - 77
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL MAX( - 59 ) / + 20 + + + 3 + - - 81 - - CAST( NULL AS SIGNED ) / - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL MAX ( - 59 ) / + 20 + + + 3 + - - 81 - - CAST ( NULL AS INTEGER ) / - - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + + SUM( + ( + - 9 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-9478
SELECT + + SUM ( + ( + - 9 ) )
----
-9

query I rowsort
SELECT DISTINCT + - 95 * - 42
----
3990

query I rowsort
SELECT + + COALESCE ( - - 27, - 27 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9481
SELECT DISTINCT + + 45 * + 40 * - MAX( DISTINCT + 76 ) + + COALESCE ( - - 90, - NULLIF ( - 95, 30 ), - 64 * + 90 + - AVG ( - 82 ) DIV COUNT( * ) + COUNT( * ) )
----
-136710

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + + 45 * + 40 * - MAX ( DISTINCT + 76 ) + + COALESCE ( - - 90, - NULLIF ( - 95, 30 ), - 64 * + 90 + - AVG ( - 82 ) / COUNT ( * ) + COUNT ( * ) )
----
-136710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9482
SELECT ALL + ( + - 81 ) DIV + 4 - - 81 + - COUNT( * ) * + NULLIF ( - 15, COUNT( * ) ) - + ( - 13 ) + + 25 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL + ( + - 81 ) / + 4 - - 81 + - COUNT ( * ) * + NULLIF ( - 15, COUNT ( * ) ) - + ( - 13 ) + + 25 AS col1
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9483
SELECT + COUNT( * ) AS col1, ( - 23 ) + - 20 + - MAX( + CAST( + - 95 AS SIGNED ) ) * - + 41
----
1
-3938

skipif mysql # not compatible
query II rowsort label-9483
SELECT + COUNT ( * ) AS col1, ( - 23 ) + - 20 + - MAX ( + CAST ( + - 95 AS INTEGER ) ) * - + 41
----
1
-3938

query II rowsort
SELECT - 40 * - + 46, - 4 * + 77 AS col1
----
1840
-308

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9485
SELECT - NULLIF ( - + 30, CAST( NULL AS DECIMAL ) * - 62 ) + 9 + - 49 * + - 49 * + - 10
----
-23971

skipif mysql # not compatible
query I rowsort label-9485
SELECT - NULLIF ( - + 30, CAST ( NULL AS REAL ) * - 62 ) + 9 + - 49 * + - 49 * + - 10
----
-23971

query I rowsort
SELECT + CASE 22 WHEN + + 52 THEN - 69 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT 94 * - MIN( ALL - 12 )
----
1128

skipif mysql # not compatible
query I rowsort label-9487
SELECT 94 * - MIN ( ALL - 12 )
----
1128

query I rowsort
SELECT DISTINCT 34 * - 85
----
-2890

query I rowsort
SELECT 20 * - + 57
----
-1140

query I rowsort
SELECT ALL + 45 * - + 95
----
-4275

query I rowsort
SELECT 94 * + 50 col2
----
4700

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT COALESCE ( + - SUM( 67 ), + COUNT( * ) + + CASE 91 WHEN + + 37 THEN NULL WHEN 46 * 18 + + COUNT( * ) THEN NULL ELSE + + 33 * COUNT( * ) + - - 29 * ( NULLIF ( 55, + 63 / - 88 ) ) END ) * ( - 58 )
----
3886

skipif mysql # not compatible
query I rowsort label-9492
SELECT COALESCE ( + - SUM ( 67 ), + COUNT ( * ) + + CASE 91 WHEN + + 37 THEN NULL WHEN 46 * 18 + + COUNT ( * ) THEN NULL ELSE + + 33 * COUNT ( * ) + - - 29 * ( NULLIF ( 55, + 63 / - 88 ) ) END ) * ( - 58 )
----
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9493
SELECT 39 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-9493
SELECT 39 / 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL COUNT( * ) + - 49 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL COUNT ( * ) + - 49 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT COUNT( * ) * + ( + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9495
SELECT COUNT ( * ) * + ( + 41 ) AS col1
----
41

query I rowsort
SELECT NULLIF ( - 44, 9 ) * 9 AS col2
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT COUNT( * ) - + 29 col2
----
-28

skipif mysql # not compatible
query I rowsort label-9497
SELECT COUNT ( * ) - + 29 col2
----
-28

query I rowsort
SELECT - + ( - 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL COALESCE ( + 43, COUNT( * ) * 2 ) + - 96 + + 91 + 18 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL COALESCE ( + 43, COUNT ( * ) * 2 ) + - 96 + + 91 + 18 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT 6 + + + MIN( DISTINCT 83 ) + + NULLIF ( 60, - 79 ) + 29 + + 15 * - + 21 AS col0
----
-137

skipif mysql # not compatible
query I rowsort label-9500
SELECT 6 + + + MIN ( DISTINCT 83 ) + + NULLIF ( 60, - 79 ) + 29 + + 15 * - + 21 AS col0
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT 52 + + + COALESCE ( 69, + - 52 * - 11 ) DIV + 24
----
54

skipif mysql # not compatible
query I rowsort label-9501
SELECT 52 + + + COALESCE ( 69, + - 52 * - 11 ) / + 24
----
54

query I rowsort
SELECT 96 * + - 84 AS col0
----
-8064

query I rowsort
SELECT ALL 37 * + - 88 + 84
----
-3172

query I rowsort
SELECT ALL + 36 - + + 9 AS col2
----
27

query I rowsort
SELECT ALL + 25 * 4
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT ALL - MAX( DISTINCT + - 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL - MAX ( DISTINCT + - 12 ) AS col0
----
12

query II rowsort
SELECT 14 + - + 30 AS col0, ( + 65 )
----
-16
65

query I rowsort
SELECT ALL 44 - 89
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9509
SELECT DISTINCT + COUNT( * ) DIV - CAST( + NULLIF ( + 92, + 74 ) AS SIGNED ), - 40 AS col2
----
0
-40

skipif mysql # not compatible
query II rowsort label-9509
SELECT DISTINCT + COUNT ( * ) / - CAST ( + NULLIF ( + 92, + 74 ) AS INTEGER ), - 40 AS col2
----
0
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT CAST( - 65 AS SIGNED ) + + + 2
----
-63

skipif mysql # not compatible
query I rowsort label-9510
SELECT CAST ( - 65 AS INTEGER ) + + + 2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9511
SELECT - NULLIF ( + 13, - 71 + - 8 + + + 93 - + COALESCE ( - - COUNT( * ), + COUNT( * ) ) + - - 41 DIV ( - - 69 ) * COUNT( * ) ) DIV + 26 + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT - NULLIF ( + 13, - 71 + - 8 + + + 93 - + COALESCE ( - - COUNT ( * ), + COUNT ( * ) ) + - - 41 / ( - - 69 ) * COUNT ( * ) ) / + 26 + 63 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-9512
SELECT 91 DIV - 20 AS col1, + COALESCE ( + 48, - + ( - 64 ) + - - 31 ) AS col1, + + 47 * - CAST( NULL AS DECIMAL ) * + 94
----
-4
48
NULL

skipif mysql # not compatible
query III rowsort label-9512
SELECT 91 / - 20 AS col1, + COALESCE ( + 48, - + ( - 64 ) + - - 31 ) AS col1, + + 47 * - CAST ( NULL AS REAL ) * + 94
----
-4
48
NULL

query I rowsort
SELECT + 37 + 86
----
123

query I rowsort
SELECT DISTINCT - 30 * - + 88
----
2640

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9515
SELECT 10 + NULLIF ( - CAST( - COALESCE ( - - 8, 87 * ( - 15 ) + - 52, + 81 * 78 DIV - 35 ) AS SIGNED ), 75 * - - 71 * 13 + 80 + - 29 ) + - 19 DIV 68
----
18

skipif mysql # not compatible
query I rowsort label-9515
SELECT 10 + NULLIF ( - CAST ( - COALESCE ( - - 8, 87 * ( - 15 ) + - 52, + 81 * 78 / - 35 ) AS INTEGER ), 75 * - - 71 * 13 + 80 + - 29 ) + - 19 / 68
----
18

query I rowsort
SELECT ALL - 68 + 59 * - 61
----
-3667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) + + 14
----
NULL

query I rowsort
SELECT 45 + + 4
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT ALL + CAST( - - 46 AS SIGNED ) + + 82 + - 59 * + CASE + 53 WHEN 19 + - 24 THEN + + COUNT( * ) - + 52 ELSE NULL END * - 7 - - ( + CASE + - 88 WHEN 35 * 82 THEN 51 WHEN + 99 THEN 60 ELSE 39 END ) + + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL + CAST ( - - 46 AS INTEGER ) + + 82 + - 59 * + CASE + 53 WHEN 19 + - 24 THEN + + COUNT ( * ) - + 52 ELSE NULL END * - 7 - - ( + CASE + - 88 WHEN 35 * 82 THEN 51 WHEN + 99 THEN 60 ELSE 39 END ) + + 72 AS col0
----
NULL

query I rowsort
SELECT 88 + + + 44 AS col0
----
132

query I rowsort
SELECT DISTINCT + - 8 * - - 81
----
-648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT + 52 + + - CAST( - 10 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-9522
SELECT + 52 + + - CAST ( - 10 AS INTEGER )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT - CASE 19 WHEN 60 THEN + - 54 ELSE - CASE + NULLIF ( + COUNT( * ), 85 ) WHEN + NULLIF ( - COUNT( * ), + 19 ) THEN NULL WHEN 88 * + - 43 + + 43 + - 68 - + 64 * 81 THEN 54 + 62 ELSE - COUNT( * ) + + 3 END END
----
2

skipif mysql # not compatible
query I rowsort label-9523
SELECT - CASE 19 WHEN 60 THEN + - 54 ELSE - CASE + NULLIF ( + COUNT ( * ), 85 ) WHEN + NULLIF ( - COUNT ( * ), + 19 ) THEN NULL WHEN 88 * + - 43 + + 43 + - 68 - + 64 * 81 THEN 54 + 62 ELSE - COUNT ( * ) + + 3 END END
----
2

query I rowsort
SELECT ALL - 65 - + + 35
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT - - MAX( + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9525
SELECT - - MAX ( + 67 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9526
SELECT ALL + 93 AS col0, ( 73 ) * - MIN( DISTINCT - 66 ) + + 60 * 17 * - - COUNT( * ) + - 53 col2
----
93
5785

skipif mysql # not compatible
query II rowsort label-9526
SELECT ALL + 93 AS col0, ( 73 ) * - MIN ( DISTINCT - 66 ) + + 60 * 17 * - - COUNT ( * ) + - 53 col2
----
93
5785

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9527
SELECT ALL + 5 - - + 73 DIV - COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL + 5 - - + 73 / - COUNT ( * ) AS col2
----
-68

query II rowsort
SELECT 70 * - + 35 * - 76 AS col0, - 92 col2
----
186200
-92

query I rowsort
SELECT DISTINCT - 13 * - 40 * 16 * 82 col2
----
682240

query I rowsort
SELECT 16 - 83 AS col0
----
-67

query I rowsort
SELECT ALL 56 * - 87 * 61 + - 68 + + 13 * - 77
----
-298261

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT + - COUNT( - + 95 ) * + 32 * + - NULLIF ( 84, - CASE - ( + - 81 ) WHEN + 15 - - - COUNT( * ) THEN NULL WHEN - 58 + - 74 THEN 89 * 39 * NULLIF ( COUNT( * ), 57 ) * 26 - COUNT( * ) ELSE NULL END ) col0
----
2688

skipif mysql # not compatible
query I rowsort label-9532
SELECT + - COUNT ( - + 95 ) * + 32 * + - NULLIF ( 84, - CASE - ( + - 81 ) WHEN + 15 - - - COUNT ( * ) THEN NULL WHEN - 58 + - 74 THEN 89 * 39 * NULLIF ( COUNT ( * ), 57 ) * 26 - COUNT ( * ) ELSE NULL END ) col0
----
2688

query I rowsort
SELECT DISTINCT + 53 * + 86
----
4558

query I rowsort
SELECT ALL - ( 53 ) AS col1
----
-53

query I rowsort
SELECT ALL 70 * 37 col0
----
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL + COUNT( ALL + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + COUNT ( ALL + 91 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT ALL + 78 * - NULLIF ( + - 61, 88 * 90 * + - 38 + + CAST( NULL AS SIGNED ) + - - ( + - 76 ) ) + 82 AS col0
----
4840

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + 78 * - NULLIF ( + - 61, 88 * 90 * + - 38 + + CAST ( NULL AS INTEGER ) + - - ( + - 76 ) ) + 82 AS col0
----
4840

query I rowsort
SELECT + 58 - - 47
----
105

query II rowsort
SELECT ALL + 49 AS col0, + 86 * + + COALESCE ( - - 80, 8 + + 73 + 46 - - 19 * - 7 * 75 ) AS col0
----
49
6880

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + NULLIF ( - NULLIF ( - 72, + - ( - 55 ) ), + - SUM( DISTINCT - 33 ) * - MAX( - 78 ) * + 12 + - COUNT( * ) + + 43 / - 41 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9540
SELECT + NULLIF ( - NULLIF ( - 72, + - ( - 55 ) ), + - SUM ( DISTINCT - 33 ) * - MAX ( - 78 ) * + 12 + - COUNT ( * ) + + 43 / - 41 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + COUNT( - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-9541
SELECT + COUNT ( - 86 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT - 51 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-9542
SELECT - 51 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT + 51 * 5 + 87 * - + 47 - + + 30 * - 23 - COUNT( * )
----
-3145

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + 51 * 5 + 87 * - + 47 - + + 30 * - 23 - COUNT ( * )
----
-3145

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + 98 + + 95 + - + COUNT( * ) * - 35 AS col1
----
228

skipif mysql # not compatible
query I rowsort label-9544
SELECT + 98 + + 95 + - + COUNT ( * ) * - 35 AS col1
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - COUNT( * ) * + 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9545
SELECT - COUNT ( * ) * + 25 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9546
SELECT CASE + 68 WHEN - - ( - 94 ) THEN NULL WHEN - 64 THEN - MAX( ALL + + 79 ) * + 63 ELSE + - 87 DIV 23 * - 31 + - 84 * + - 53 + 92 END AS col1
----
4637

skipif mysql # not compatible
query I rowsort label-9546
SELECT CASE + 68 WHEN - - ( - 94 ) THEN NULL WHEN - 64 THEN - MAX ( ALL + + 79 ) * + 63 ELSE + - 87 / 23 * - 31 + - 84 * + - 53 + 92 END AS col1
----
4637

query I rowsort
SELECT ALL - 7 * - 95 + 78 + + 34
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT + COUNT( ALL - 82 ) * - - 1 * - - COUNT( * ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT + COUNT ( ALL - 82 ) * - - 1 * - - COUNT ( * ) + 92
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9549
SELECT DISTINCT - 91 * 62 + + - 69 - 47 + - SUM( ALL - CAST( + 19 AS SIGNED ) ) * + 20 AS col2
----
-5378

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT - 91 * 62 + + - 69 - 47 + - SUM ( ALL - CAST ( + 19 AS INTEGER ) ) * + 20 AS col2
----
-5378

query I rowsort
SELECT ALL + 41 * + 27 + + - 84 * 98
----
-7125

query II rowsort
SELECT + 47 AS col1, + 8
----
47
8

query I rowsort
SELECT + 73 - 40 AS col1
----
33

query II rowsort
SELECT + ( - 19 ) AS col1, - 52 * 45 * + - 32
----
-19
74880

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT + + ( - COUNT( * ) ) - - - 8
----
-9

skipif mysql # not compatible
query I rowsort label-9554
SELECT + + ( - COUNT ( * ) ) - - - 8
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + MAX( - 22 ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-9555
SELECT + MAX ( - 22 ) col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT - ( - + COUNT( ALL + 87 ) ) * 82 + + 7
----
89

skipif mysql # not compatible
query I rowsort label-9556
SELECT - ( - + COUNT ( ALL + 87 ) ) * 82 + + 7
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL 31 * + + CASE 71 WHEN - 75 * + 27 THEN - COUNT( * ) * - + 46 ELSE - + 24 * + + NULLIF ( 50, + + 66 + AVG ( ALL + 98 ) + - 17 ) END + + - 61 - ( - 51 ) + 96 AS col2
----
-37114

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL 31 * + + CASE 71 WHEN - 75 * + 27 THEN - COUNT ( * ) * - + 46 ELSE - + 24 * + + NULLIF ( 50, + + 66 + AVG ( ALL + 98 ) + - 17 ) END + + - 61 - ( - 51 ) + 96 AS col2
----
-37114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9558
SELECT ALL + + 81 * + 24 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL + + 81 * + 24 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( - 92 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9560
SELECT ALL - 61 AS col1, MAX( ALL + - 14 )
----
-61
-14

skipif mysql # not compatible
query II rowsort label-9560
SELECT ALL - 61 AS col1, MAX ( ALL + - 14 )
----
-61
-14

query I rowsort
SELECT - 30 - + 17
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT ALL + 75 * - + 14 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL + 75 * - + 14 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT - 74 * + + 89 + - 18 + + 76 - + 28 + 51 + CASE ( 35 ) WHEN - 56 - COUNT( * ) THEN 26 + CAST( + ( + COUNT( * ) ) AS SIGNED ) WHEN + + 76 / - ( - 32 ) + + CASE 10 - 72 WHEN - 51 THEN - 23 END THEN NULL WHEN 0 THEN - 62 WHEN + COUNT( ALL - 25 ) + - COUNT( * ) * + COUNT( * ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT - 74 * + + 89 + - 18 + + 76 - + 28 + 51 + CASE ( 35 ) WHEN - 56 - COUNT ( * ) THEN 26 + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) WHEN + + 76 / - ( - 32 ) + + CASE 10 - 72 WHEN - 51 THEN - 23 END THEN NULL WHEN 0 THEN - 62 WHEN + COUNT ( ALL - 25 ) + - COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - + MIN( DISTINCT 32 ) + + + 46 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9564
SELECT - + MIN ( DISTINCT 32 ) + + + 46 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT - + NULLIF ( + - COUNT( ( - 59 ) ), COUNT( DISTINCT + 36 ) + + + 93 ) / 60 * CASE - 48 WHEN ( - 93 ) + + 77 THEN + + 19 * + 9 + 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT - + NULLIF ( + - COUNT ( ( - 59 ) ), COUNT ( DISTINCT + 36 ) + + + 93 ) / 60 * CASE - 48 WHEN ( - 93 ) + + 77 THEN + + 19 * + 9 + 68 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9566
SELECT DISTINCT + - 39 * - COUNT( * ) col1, 37 DIV - 83 * 34 AS col0
----
39
0

skipif mysql # not compatible
query II rowsort label-9566
SELECT DISTINCT + - 39 * - COUNT ( * ) col1, 37 / - 83 * 34 AS col0
----
39
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT ALL - - 76 * CAST( - + 90 AS SIGNED )
----
-6840

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL - - 76 * CAST ( - + 90 AS INTEGER )
----
-6840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9568
SELECT - - CAST( + 85 AS SIGNED ) + + 23 DIV + - 65 * + - COUNT( * ) * + 50 AS col0, NULLIF ( 83, - - 50 * - MAX( 56 ) * 88 * - + 62 DIV - COUNT( * ) )
----
85
83

skipif mysql # not compatible
query II rowsort label-9568
SELECT - - CAST ( + 85 AS INTEGER ) + + 23 / + - 65 * + - COUNT ( * ) * + 50 AS col0, NULLIF ( 83, - - 50 * - MAX ( 56 ) * 88 * - + 62 / - COUNT ( * ) )
----
85
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9569
SELECT + - COUNT( * ) DIV + - COUNT( * ) + - + 90 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-9569
SELECT + - COUNT ( * ) / + - COUNT ( * ) + - + 90 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT - + 4 + + 50 + - - 3 * COUNT( * ), - 84 + + COUNT( * ) AS col0
----
49
-83

skipif mysql # not compatible
query II rowsort label-9570
SELECT - + 4 + + 50 + - - 3 * COUNT ( * ), - 84 + + COUNT ( * ) AS col0
----
49
-83

query II rowsort
SELECT + + ( - 27 ) - + 71 + - 95 AS col2, + ( 94 )
----
-193
94

query II rowsort
SELECT ALL 83, - 5 AS col2
----
83
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9573
SELECT - ( + COUNT( * ) ) DIV - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9573
SELECT - ( + COUNT ( * ) ) / - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL - 23 * + + 16 * - - 50 AS col2
----
-18400

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT + SUM( ALL + + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT + SUM ( ALL + + 7 ) AS col2
----
7

query I rowsort
SELECT DISTINCT ( + 49 ) + - - 42 * - 42
----
-1715

query II rowsort
SELECT DISTINCT 89 AS col1, 66
----
89
66

query I rowsort
SELECT ALL ( 63 ) col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL CASE CAST( ( + - 80 ) AS SIGNED ) WHEN + - COUNT( * ) THEN + 13 * + 3 ELSE NULL END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL CASE CAST ( ( + - 80 ) AS INTEGER ) WHEN + - COUNT ( * ) THEN + 13 * + 3 ELSE NULL END + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 58 + - 50 AS col2
----
8

query I rowsort
SELECT + 75 * ( + + 10 ) AS col2
----
750

query I rowsort
SELECT + 34 + + 84 * + + NULLIF ( ( - + 71 ), 37 ) * - 55
----
328054

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT - NULLIF ( + - 36, MIN( DISTINCT 37 ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9583
SELECT - NULLIF ( + - 36, MIN ( DISTINCT 37 ) ) AS col1
----
36

query I rowsort
SELECT ALL 57 + + 81 * + - 7 + - + 8 col2
----
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT DISTINCT + 24 DIV + - 54 * + - 49 + - 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT + 24 / + - 54 * + - 49 + - 12 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT + SUM( - 88 ) * + + MAX( DISTINCT + 83 )
----
-7304

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + SUM ( - 88 ) * + + MAX ( DISTINCT + 83 )
----
-7304

onlyif mysql # DIV for integer division: 
query I rowsort label-9587
SELECT ALL - 63 DIV - 59 + + 84
----
85

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL - 63 / - 59 + + 84
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT DISTINCT - COALESCE ( + 29, - 82 ) DIV 37 + 54 + - 78 + + + 87 + + 35 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT - COALESCE ( + 29, - 82 ) / 37 + 54 + - 78 + + + 87 + + 35 AS col2
----
98

query I rowsort
SELECT + 85 + + - 57 + - 23 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9590
SELECT + COUNT( * ) * - + NULLIF ( 1, + 13 ) DIV COALESCE ( 45, + - 3 + + 65 + - 44 DIV - SUM( DISTINCT 29 ) * 25 DIV 9 * - - 42 ) * + CAST( - 6 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9590
SELECT + COUNT ( * ) * - + NULLIF ( 1, + 13 ) / COALESCE ( 45, + - 3 + + 65 + - 44 / - SUM ( DISTINCT 29 ) * 25 / 9 * - - 42 ) * + CAST ( - 6 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT + CASE + 94 WHEN 35 THEN + + NULLIF ( + + 84, + - 72 * + 76 ) END * + + 69 + + 20 + + COUNT( * ) + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT + CASE + 94 WHEN 35 THEN + + NULLIF ( + + 84, + - 72 * + 76 ) END * + + 69 + + 20 + + COUNT ( * ) + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + 50 + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9592
SELECT + 50 + COUNT ( * )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9593
SELECT - 72 * ( - 65 ) - 99 * + 14 AS col0, - NULLIF ( - CAST( - 35 AS SIGNED ), + 75 ) AS col2
----
3294
-35

skipif mysql # not compatible
query II rowsort label-9593
SELECT - 72 * ( - 65 ) - 99 * + 14 AS col0, - NULLIF ( - CAST ( - 35 AS INTEGER ), + 75 ) AS col2
----
3294
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - 14 * + MIN( DISTINCT - + 49 )
----
686

skipif mysql # not compatible
query I rowsort label-9594
SELECT - 14 * + MIN ( DISTINCT - + 49 )
----
686

query II rowsort
SELECT + 26 + - 76 AS col0, 64 AS col2
----
-50
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - 99 * - + 41 + - COUNT( * ) AS col2
----
4058

skipif mysql # not compatible
query I rowsort label-9596
SELECT - 99 * - + 41 + - COUNT ( * ) AS col2
----
4058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9597
SELECT DISTINCT - SUM( CAST( NULL AS SIGNED ) ) / 76 - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT - SUM ( CAST ( NULL AS INTEGER ) ) / 76 - - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT + + 63 * - COUNT( * ) - - + 78 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + + 63 * - COUNT ( * ) - - + 78 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9599
SELECT DISTINCT + + 78 * - 57 AS col1, + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * + COUNT( * ) + + 64 AS col1
----
-4446
NULL

skipif mysql # not compatible
query II rowsort label-9599
SELECT DISTINCT + + 78 * - 57 AS col1, + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + 64 AS col1
----
-4446
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT ALL + - ( COUNT( * ) ) AS col2, - COALESCE ( + 11, - - ( 49 ), 86, - - 29 )
----
-1
-11

skipif mysql # not compatible
query II rowsort label-9600
SELECT ALL + - ( COUNT ( * ) ) AS col2, - COALESCE ( + 11, - - ( 49 ), 86, - - 29 )
----
-1
-11

query I rowsort
SELECT + 5 * - 88 AS col1
----
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT ALL 75 * - - CAST( + 30 AS SIGNED ) * - 54 + - 62 * ( - - NULLIF ( + - CAST( NULL AS SIGNED ), + 74 * AVG ( + - 55 ) - + 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL 75 * - - CAST ( + 30 AS INTEGER ) * - 54 + - 62 * ( - - NULLIF ( + - CAST ( NULL AS INTEGER ), + 74 * AVG ( + - 55 ) - + 25 ) )
----
NULL

query II rowsort
SELECT - - 68 + 53 col0, 83
----
121
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9604
SELECT DISTINCT + ( - - 87 ) AS col1, SUM( ALL + - 78 )
----
87
-78

skipif mysql # not compatible
query II rowsort label-9604
SELECT DISTINCT + ( - - 87 ) AS col1, SUM ( ALL + - 78 )
----
87
-78

query I rowsort
SELECT - + 94 + - 80 col0
----
-174

query I rowsort
SELECT + - 24 * + + 36 * 26 AS col2
----
-22464

query I rowsort
SELECT - - 19 * 8
----
152

query I rowsort
SELECT ALL ( 70 ) + - + 33 + - 26 col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9609
SELECT DISTINCT + COUNT( * ) + + CAST( - - NULLIF ( 63, 45 ) AS SIGNED ) - - 30
----
94

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT + COUNT ( * ) + + CAST ( - - NULLIF ( 63, 45 ) AS INTEGER ) - - 30
----
94

query I rowsort
SELECT ALL + + 69 + - 17 AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT 68 * - 82 + - 99 DIV + 43 AS col2
----
-5578

skipif mysql # not compatible
query I rowsort label-9611
SELECT 68 * - 82 + - 99 / + 43 AS col2
----
-5578

onlyif mysql # DIV for integer division: 
query I rowsort label-9612
SELECT 32 DIV - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9612
SELECT 32 / - 64 AS col2
----
0

query I rowsort
SELECT ALL - 54 + - 43
----
-97

query I rowsort
SELECT 3 - + 39 AS col0
----
-36

query I rowsort
SELECT 39 * - 31 AS col1
----
-1209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9616
SELECT 13 - - 13 + 26 DIV - 72 * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-9616
SELECT 13 - - 13 + 26 / - 72 * COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL + 9 * - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + 9 * - - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT DISTINCT + 0 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT + 0 * + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9619
SELECT ALL 62 - + - COUNT( * ) - - 35 AS col0, 83 + + 39
----
98
122

skipif mysql # not compatible
query II rowsort label-9619
SELECT ALL 62 - + - COUNT ( * ) - - 35 AS col0, 83 + + 39
----
98
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9620
SELECT - 56 DIV 11 * 15 - - - COUNT( * ) * + + COUNT( * ) + + 94 * - - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9620
SELECT - 56 / 11 * 15 - - - COUNT ( * ) * + + COUNT ( * ) + + 94 * - - COUNT ( * ) AS col0
----
18

query I rowsort
SELECT ALL - ( - - 28 ) col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT DISTINCT - CAST( + 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT - CAST ( + 74 AS INTEGER )
----
-74

query I rowsort
SELECT 28 * 63 AS col0
----
1764

query I rowsort
SELECT 38 + + + 77 AS col0
----
115

query II rowsort
SELECT + 43 AS col0, 58 - + + 30 - + + 61 * - 58 - + - 6
----
43
3572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9626
SELECT + NULLIF ( - COUNT( * ), 24 ) DIV - 61 - + 97 + 65 + - 72 * + 74 * - ( - 64 ) + 1 + - 26 col1
----
-341049

skipif mysql # not compatible
query I rowsort label-9626
SELECT + NULLIF ( - COUNT ( * ), 24 ) / - 61 - + 97 + 65 + - 72 * + 74 * - ( - 64 ) + 1 + - 26 col1
----
-341049

query I rowsort
SELECT 54 * + ( + 97 )
----
5238

query II rowsort
SELECT ALL - 47 * + 74 * + 25 AS col0, 60
----
-86950
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT - COUNT( * ) * - 52 * - 89
----
-4628

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT - COUNT ( * ) * - 52 * - 89
----
-4628

onlyif mysql # DIV for integer division: 
query II rowsort label-9630
SELECT DISTINCT - + 54 AS col0, + 2 DIV + 52 AS col2
----
-54
0

skipif mysql # not compatible
query II rowsort label-9630
SELECT DISTINCT - + 54 AS col0, + 2 / + 52 AS col2
----
-54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL + COUNT( * ) * - 87
----
-87

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + COUNT ( * ) * - 87
----
-87

query I rowsort
SELECT DISTINCT - - ( + - 37 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9633
SELECT DISTINCT 38 DIV + 10
----
3

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT 38 / + 10
----
3

query II rowsort
SELECT DISTINCT - 16 AS col1, 72 + + 85
----
-16
157

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT 75 - + ( COUNT( DISTINCT + 76 ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9635
SELECT 75 - + ( COUNT ( DISTINCT + 76 ) ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT + CAST( - + NULLIF ( 99, 3 ) AS SIGNED ) / + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT + CAST ( - + NULLIF ( 99, 3 ) AS INTEGER ) / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9637
SELECT 34 DIV - MAX( + + 39 ), 92 AS col0
----
0
92

skipif mysql # not compatible
query II rowsort label-9637
SELECT 34 / - MAX ( + + 39 ), 92 AS col0
----
0
92

query I rowsort
SELECT 22 + + 64
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-9639
SELECT DISTINCT - 26 DIV - 49 + - + 93 AS col2, + 87 AS col1
----
-93
87

skipif mysql # not compatible
query II rowsort label-9639
SELECT DISTINCT - 26 / - 49 + - + 93 AS col2, + 87 AS col1
----
-93
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT + + 55 * 74 DIV 74 + 56
----
111

skipif mysql # not compatible
query I rowsort label-9640
SELECT + + 55 * 74 / 74 + 56
----
111

query I rowsort
SELECT ALL 22 * - 22 AS col1
----
-484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9642
SELECT 14 DIV + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9642
SELECT 14 / + COUNT ( * )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) / 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) / 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9644
SELECT ALL + - 9 + + - COALESCE ( CASE 0 WHEN + COUNT( * ) THEN - - ( 62 ) WHEN + NULLIF ( + 22, 41 - - ( + - 47 ) ) THEN + 20 END, - ( 58 ) DIV - 94 * + + 10 * COALESCE ( - 88, 86 + + 97 ), + 79 * 70 + COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL + - 9 + + - COALESCE ( CASE 0 WHEN + COUNT ( * ) THEN - - ( 62 ) WHEN + NULLIF ( + 22, 41 - - ( + - 47 ) ) THEN + 20 END, - ( 58 ) / - 94 * + + 10 * COALESCE ( - 88, 86 + + 97 ), + 79 * 70 + COUNT ( * ) )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9645
SELECT 91 - + 25 + - 53 col0, - MIN( + 80 ) AS col0
----
13
-80

skipif mysql # not compatible
query II rowsort label-9645
SELECT 91 - + 25 + - 53 col0, - MIN ( + 80 ) AS col0
----
13
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT SUM( ALL + - 31 ) + - MAX( + 22 ) + - 32 + + 56 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT SUM ( ALL + - 31 ) + - MAX ( + 22 ) + - 32 + + 56 AS col0
----
-29

query II rowsort
SELECT - - 24 AS col1, - COALESCE ( + 98, - 38 )
----
24
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - CASE - COUNT( * ) WHEN - 84 THEN - 47 * - ( - 27 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT - CASE - COUNT ( * ) WHEN - 84 THEN - 47 * - ( - 27 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT 83 + - NULLIF ( - 62, + - NULLIF ( - - 97, + 91 ) / + 59 * + + 13 * 41 * + - COUNT( * ) ) + + + COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-9649
SELECT 83 + - NULLIF ( - 62, + - NULLIF ( - - 97, + 91 ) / + 59 * + + 13 * 41 * + - COUNT ( * ) ) + + + COUNT ( * )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT 70 + CASE ( + + 98 ) WHEN + COALESCE ( - 48, + - 51 * 1 ) / + + 27 / - 3 + + + 44 THEN NULL WHEN + 88 THEN - - COUNT( * ) + + ( 45 ) WHEN + + CASE + 46 WHEN - - 30 * + 12 THEN NULL WHEN 14 THEN NULL ELSE COUNT( * ) END / + 24 THEN + 32 WHEN 84 THEN + 97 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT 70 + CASE ( + + 98 ) WHEN + COALESCE ( - 48, + - 51 * 1 ) / + + 27 / - 3 + + + 44 THEN NULL WHEN + 88 THEN - - COUNT ( * ) + + ( 45 ) WHEN + + CASE + 46 WHEN - - 30 * + 12 THEN NULL WHEN 14 THEN NULL ELSE COUNT ( * ) END / + 24 THEN + 32 WHEN 84 THEN + 97 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 13 + 93
----
106

query I rowsort
SELECT ( + 17 ) + - + 29
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL - 23 - 92 + - COUNT( * ) * - 97 + - ( 45 ) * + ( + 30 )
----
-1368

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - 23 - 92 + - COUNT ( * ) * - 97 + - ( 45 ) * + ( + 30 )
----
-1368

query I rowsort
SELECT 38 + - 74 * + + 73 AS col0
----
-5364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT 57 + + 23 + - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9656
SELECT 57 + + 23 + - - COUNT ( * )
----
81

query I rowsort
SELECT ALL - 23 - ( - - 31 ) AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9658
SELECT COUNT( * ) DIV 46 * ( - - 46 ) AS col2, + 79 - ( - + 44 ) * - + 12 col0
----
0
-449

skipif mysql # not compatible
query II rowsort label-9658
SELECT COUNT ( * ) / 46 * ( - - 46 ) AS col2, + 79 - ( - + 44 ) * - + 12 col0
----
0
-449

query I rowsort
SELECT 64 * + 5
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT 35 + - COUNT( * ) * - MIN( - 48 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9660
SELECT 35 + - COUNT ( * ) * - MIN ( - 48 ) AS col1
----
-13

query I rowsort
SELECT DISTINCT 83 * CASE - 33 WHEN + - 91 THEN - 27 ELSE - - 12 END - ( + 93 ) + + 68
----
971

query I rowsort
SELECT - 64 * - + ( - + 23 ) + + + 33 + - 10
----
-1449

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL MAX( + 33 ) * - ( + 45 )
----
-1485

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL MAX ( + 33 ) * - ( + 45 )
----
-1485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT ALL + ( + 31 ) * NULLIF ( - 12, + CAST( NULL AS SIGNED ) ) * - 78
----
29016

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + ( + 31 ) * NULLIF ( - 12, + CAST ( NULL AS INTEGER ) ) * - 78
----
29016

query II rowsort
SELECT 63 * + 86 AS col1, ( - + 48 )
----
5418
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9666
SELECT NULLIF ( 47, + 18 ) DIV + - MIN( - 57 ) * - 20 * + 93 + - 29 DIV + COUNT( * ) DIV - + 1 - + + COUNT( * ) + - + 98 * + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9666
SELECT NULLIF ( 47, + 18 ) / + - MIN ( - 57 ) * - 20 * + 93 + - 29 / + COUNT ( * ) / - + 1 - + + COUNT ( * ) + - + 98 * + COUNT ( * ) AS col1
----
-70

query I rowsort
SELECT 11 + 5
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL - - MAX( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - - MAX ( - 12 )
----
-12

query I rowsort
SELECT - 26 * + + 92 + + 3
----
-2389

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT ALL COUNT( * ) * - 18 * + 48 + 44
----
-820

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL COUNT ( * ) * - 18 * + 48 + 44
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - 40 * - - 72 - + NULLIF ( CASE + 10 WHEN + COALESCE ( 86, 30 - - - CASE COUNT( * ) WHEN + NULLIF ( + + 48, + - 59 * + MAX( - 46 ) ) / - + 43 + 96 THEN + - 61 ELSE + MIN( + 43 ) * - 15 END ) THEN - 27 ELSE 84 END, + ( - AVG ( 43 ) ) + 56 ) + - MIN( - 57 + 64 ) col1
----
-2971

skipif mysql # not compatible
query I rowsort label-9671
SELECT - 40 * - - 72 - + NULLIF ( CASE + 10 WHEN + COALESCE ( 86, 30 - - - CASE COUNT ( * ) WHEN + NULLIF ( + + 48, + - 59 * + MAX ( - 46 ) ) / - + 43 + 96 THEN + - 61 ELSE + MIN ( + 43 ) * - 15 END ) THEN - 27 ELSE 84 END, + ( - AVG ( 43 ) ) + 56 ) + - MIN ( - 57 + 64 ) col1
----
-2971

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT - - 91 * - - COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9672
SELECT - - 91 * - - COUNT ( * ) AS col2
----
91

query I rowsort
SELECT + - 86 + - 36 + 45 AS col0
----
-77

query I rowsort
SELECT ALL + - NULLIF ( - + 32, + + 36 * - 45 ) AS col0
----
32

query I rowsort
SELECT ALL - 5 + + + 80 * + 43 AS col0
----
3435

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT + 48 * 3 + - 8 * - - COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-9676
SELECT + 48 * 3 + - 8 * - - COUNT ( * )
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT + 61 * - 61 + CASE 41 WHEN - - 79 * + - CAST( NULL AS SIGNED ) + ( - 63 ) + - 39 + - 42 / - 22 THEN AVG ( + 46 ) ELSE + + CAST( NULL AS SIGNED ) END * + 82 / - ( - - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9677
SELECT + 61 * - 61 + CASE 41 WHEN - - 79 * + - CAST ( NULL AS INTEGER ) + ( - 63 ) + - 39 + - 42 / - 22 THEN AVG ( + 46 ) ELSE + + CAST ( NULL AS INTEGER ) END * + 82 / - ( - - 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL + COUNT( * ) + + 23 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + COUNT ( * ) + + 23 AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9679
SELECT + COUNT( * ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-9679
SELECT + COUNT ( * ) / + 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9680
SELECT ALL ( - - 66 ) + - NULLIF ( - 28, - MIN( - + COALESCE ( + 4, - 67 ) ) ) * CAST( - + 60 AS SIGNED ) + - + MIN( - 58 ) AS col0, 84 AS col2
----
-1556
84

skipif mysql # not compatible
query II rowsort label-9680
SELECT ALL ( - - 66 ) + - NULLIF ( - 28, - MIN ( - + COALESCE ( + 4, - 67 ) ) ) * CAST ( - + 60 AS INTEGER ) + - + MIN ( - 58 ) AS col0, 84 AS col2
----
-1556
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + - 84 + - + 56 + COUNT( * ) + + 23 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-9681
SELECT + - 84 + - + 56 + COUNT ( * ) + + 23 AS col2
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9682
SELECT ALL MAX( 35 ) DIV - - 82 * - - 88 + + + 47 + 61 * + 20 + + - CAST( + 41 AS SIGNED ) + - 32
----
1194

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL MAX ( 35 ) / - - 82 * - - 88 + + + 47 + 61 * + 20 + + - CAST ( + 41 AS INTEGER ) + - 32
----
1194

query III rowsort
SELECT 58 AS col2, 75 * + - 31, - 37 AS col2
----
58
-2325
-37

query I rowsort
SELECT + 5 + - 50 * + NULLIF ( - + 30, 83 ) * + 33 * - - 59 * - + ( - ( - 9 ) ) AS col0
----
-26284495

query I rowsort
SELECT DISTINCT ( - 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT DISTINCT NULLIF ( + COUNT( * ), + 89 ) * + 38 * + NULLIF ( - SUM( DISTINCT + + 97 ), - 18 ) + - 53
----
-3739

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 89 ) * + 38 * + NULLIF ( - SUM ( DISTINCT + + 97 ), - 18 ) + - 53
----
-3739

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL 87 - COUNT( * ) * - SUM( - 2 )
----
85

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL 87 - COUNT ( * ) * - SUM ( - 2 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - NULLIF ( + CASE 99 WHEN + 92 * 30 THEN + 27 END, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT - NULLIF ( + CASE 99 WHEN + 92 * 30 THEN + 27 END, COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9689
SELECT ALL MAX( DISTINCT - + 45 ) DIV - 78 * + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL MAX ( DISTINCT - + 45 ) / - 78 * + 72 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9690
SELECT ALL 51 - - CASE - 91 WHEN + COUNT( * ) THEN - 33 + - + 53 * + 18 + - 90 + MIN( ALL 49 ) + ( + + COUNT( * ) ) - - ( 51 ) * - 69 + - NULLIF ( 57, + 71 ) * CAST( - 27 AS SIGNED ) WHEN - 86 * MAX( ALL - 97 * - 50 ) THEN 13 WHEN - COUNT( NULLIF ( ( 61 ), ( 13 ) + - 99 ) ) THEN + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL 51 - - CASE - 91 WHEN + COUNT ( * ) THEN - 33 + - + 53 * + 18 + - 90 + MIN ( ALL 49 ) + ( + + COUNT ( * ) ) - - ( 51 ) * - 69 + - NULLIF ( 57, + 71 ) * CAST ( - 27 AS INTEGER ) WHEN - 86 * MAX ( ALL - 97 * - 50 ) THEN 13 WHEN - COUNT ( NULLIF ( ( 61 ), ( 13 ) + - 99 ) ) THEN + 51 ELSE NULL END
----
NULL

query I rowsort
SELECT + 33 - - 30
----
63

query I rowsort
SELECT - 15 * + 96
----
-1440

query I rowsort
SELECT + 27 * + + 72 AS col1
----
1944

query II rowsort
SELECT DISTINCT 37 AS col1, + 7
----
37
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT DISTINCT MAX( 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT MAX ( 29 ) AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT ALL - 92 DIV - 12 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - 92 / - 12 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT + 79 DIV - 38
----
-2

skipif mysql # not compatible
query I rowsort label-9697
SELECT + 79 / - 38
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9698
SELECT DISTINCT 20 DIV COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT 20 / COUNT ( * )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9699
SELECT DISTINCT MAX( + 58 ) DIV - - MIN( DISTINCT 69 ) + CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT MAX ( + 58 ) / - - MIN ( DISTINCT 69 ) + CAST ( COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9700
SELECT ALL 41 DIV - - ( 72 ), CAST( NULL AS SIGNED ) DIV ( - - 21 ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9700
SELECT ALL 41 / - - ( 72 ), CAST ( NULL AS INTEGER ) / ( - - 21 ) AS col0
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9701
SELECT - + 81 DIV COUNT( * ) * - + 23 + 97 + + 20
----
1980

skipif mysql # not compatible
query I rowsort label-9701
SELECT - + 81 / COUNT ( * ) * - + 23 + 97 + + 20
----
1980

query I rowsort
SELECT ALL + 82 * 53 + - 89 AS col1
----
4257

query I rowsort
SELECT + NULLIF ( + - 40, - - NULLIF ( 31, 13 ) + + 73 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9704
SELECT - COUNT( * ) AS col0, - 32
----
-1
-32

skipif mysql # not compatible
query II rowsort label-9704
SELECT - COUNT ( * ) AS col0, - 32
----
-1
-32

query I rowsort
SELECT ALL 17 * - 8 + - 34 AS col0
----
-170

query I rowsort
SELECT + + 37 + + - 2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT - + 20 DIV 20
----
-1

skipif mysql # not compatible
query I rowsort label-9707
SELECT - + 20 / 20
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL - COUNT( DISTINCT - 48 ) * - 62 + - + CASE - 93 WHEN + COUNT( 30 ) + + - 45 * 85 * - COALESCE ( - ( + 0 ), + 95, + + 38 + 68 / - 29 ) * + 85 THEN - 83 ELSE - 31 + - 42 END AS col2
----
135

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL - COUNT ( DISTINCT - 48 ) * - 62 + - + CASE - 93 WHEN + COUNT ( 30 ) + + - 45 * 85 * - COALESCE ( - ( + 0 ), + 95, + + 38 + 68 / - 29 ) * + 85 THEN - 83 ELSE - 31 + - 42 END AS col2
----
135

query I rowsort
SELECT DISTINCT 25 * + 93
----
2325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9710
SELECT ALL + + 54 DIV + + COUNT( + 17 )
----
54

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + + 54 / + + COUNT ( + 17 )
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-9711
SELECT + + 97 AS col0, 66 DIV 78
----
97
0

skipif mysql # not compatible
query II rowsort label-9711
SELECT + + 97 AS col0, 66 / 78
----
97
0

query II rowsort
SELECT + 35, + 88 * + - 43 AS col1
----
35
-3784

query I rowsort
SELECT DISTINCT + COALESCE ( - 50, - 12 * ( - NULLIF ( + ( + 55 ), - 99 ) ) ) AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9714
SELECT ALL COALESCE ( - 37, + 57 * + 1 + - CASE - + 26 WHEN + ( 80 ) THEN NULL WHEN - COUNT( * ) + CASE 97 WHEN + 26 THEN - COALESCE ( 26, + 52 * 44 ) END - - COALESCE ( CAST( NULL AS SIGNED ), - ( + + 32 ) * 79 ) + AVG ( ALL - 47 + 93 ) THEN + 48 END + COUNT( * ), + MAX( 50 ) ) * 86 + - 85 * - MIN( ALL + CASE 16 WHEN 25 / - 64 THEN + 67 WHEN 49 THEN ( + 85 ) + 42 / 57 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL COALESCE ( - 37, + 57 * + 1 + - CASE - + 26 WHEN + ( 80 ) THEN NULL WHEN - COUNT ( * ) + CASE 97 WHEN + 26 THEN - COALESCE ( 26, + 52 * 44 ) END - - COALESCE ( CAST ( NULL AS INTEGER ), - ( + + 32 ) * 79 ) + AVG ( ALL - 47 + 93 ) THEN + 48 END + COUNT ( * ), + MAX ( 50 ) ) * 86 + - 85 * - MIN ( ALL + CASE 16 WHEN 25 / - 64 THEN + 67 WHEN 49 THEN ( + 85 ) + 42 / 57 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - - 94 + - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9715
SELECT - - 94 + - COUNT ( * )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9716
SELECT DISTINCT + 94 AS col0, CAST( NULL AS SIGNED ) * MIN( ALL - + 48 )
----
94
NULL

skipif mysql # not compatible
query II rowsort label-9716
SELECT DISTINCT + 94 AS col0, CAST ( NULL AS INTEGER ) * MIN ( ALL - + 48 )
----
94
NULL

query II rowsort
SELECT + 41 * - 14 + - 30 AS col2, 54 AS col1
----
-604
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT + - COUNT( * ) * CAST( NULL AS SIGNED ) * - - 47 - + - 26 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - 47 - + - 26 + 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT - AVG ( CAST( NULL AS SIGNED ) ) * + 91 * + + 96 + 79 * - ( 97 ) / 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) * + 91 * + + 96 + 79 * - ( 97 ) / 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT + + COUNT( ALL + 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT + + COUNT ( ALL + 12 ) AS col1
----
1

query I rowsort
SELECT DISTINCT ( + - 14 ) col1
----
-14

query I rowsort
SELECT - 93 - + 17 - 53 AS col0
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL + ( ( - COUNT( * ) ) ) * + 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + ( ( - COUNT ( * ) ) ) * + 83 AS col0
----
-83

query I rowsort
SELECT DISTINCT + 41 * + 91 AS col0
----
3731

query II rowsort
SELECT ALL 10, ( + - 44 ) AS col2
----
10
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9726
SELECT ALL CAST( - ( + - 93 ) AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL CAST ( - ( + - 93 ) AS INTEGER )
----
93

query I rowsort
SELECT + 22 + - 96 * + 83 col1
----
-7946

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT - 33 + - - MIN( - 10 )
----
-43

skipif mysql # not compatible
query I rowsort label-9728
SELECT - 33 + - - MIN ( - 10 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT + CASE COUNT( * ) WHEN + 68 THEN NULL WHEN - 13 THEN - - ( + COUNT( * ) ) END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT + CASE COUNT ( * ) WHEN + 68 THEN NULL WHEN - 13 THEN - - ( + COUNT ( * ) ) END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 9 + - 3 - + - 10 * + 57 AS col1
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT + NULLIF ( - 32, - + COUNT( * ) * - - MIN( + 36 ) ) - - 87 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9731
SELECT + NULLIF ( - 32, - + COUNT ( * ) * - - MIN ( + 36 ) ) - - 87 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9732
SELECT - COUNT( * ) * - 9 AS col2, MIN( ALL + 16 ) - - COUNT( DISTINCT - + 7 ) AS col0
----
9
17

skipif mysql # not compatible
query II rowsort label-9732
SELECT - COUNT ( * ) * - 9 AS col2, MIN ( ALL + 16 ) - - COUNT ( DISTINCT - + 7 ) AS col0
----
9
17

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9733
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, 54 DIV 43 + + 86
----
NULL
87

skipif mysql # not compatible
query II rowsort label-9733
SELECT ALL CAST ( NULL AS REAL ) AS col1, 54 / 43 + + 86
----
NULL
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT DISTINCT CAST( + + ( 44 ) AS SIGNED ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT CAST ( + + ( 44 ) AS INTEGER ) AS col0
----
44

query I rowsort
SELECT ALL 74 * - 92 * + 1
----
-6808

onlyif mysql # aggregate syntax: 
query II rowsort label-9736
SELECT 65 col0, + MIN( - 35 ) + + 82 * + 81
----
65
6607

skipif mysql # not compatible
query II rowsort label-9736
SELECT 65 col0, + MIN ( - 35 ) + + 82 * + 81
----
65
6607

query I rowsort
SELECT DISTINCT 3 * + ( - 22 ) AS col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9738
SELECT ALL 67 * + COALESCE ( - + COUNT( * ), + ( - - 42 ) * + 83 DIV - 84, 65 ) DIV - 88 * 34 + - + 89 AS col2, 17 * 33 AS col2
----
-89
561

skipif mysql # not compatible
query II rowsort label-9738
SELECT ALL 67 * + COALESCE ( - + COUNT ( * ), + ( - - 42 ) * + 83 / - 84, 65 ) / - 88 * 34 + - + 89 AS col2, 17 * 33 AS col2
----
-89
561

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT + MIN( DISTINCT 93 ) * - MAX( DISTINCT - 74 ) AS col0
----
6882

skipif mysql # not compatible
query I rowsort label-9739
SELECT + MIN ( DISTINCT 93 ) * - MAX ( DISTINCT - 74 ) AS col0
----
6882

onlyif mysql # aggregate syntax: 
query II rowsort label-9740
SELECT DISTINCT 79 + + + 98 AS col2, - 26 * - - COUNT( * ) - SUM( 72 )
----
177
-98

skipif mysql # not compatible
query II rowsort label-9740
SELECT DISTINCT 79 + + + 98 AS col2, - 26 * - - COUNT ( * ) - SUM ( 72 )
----
177
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT + NULLIF ( - ( - + COUNT( * ) ), - + 92 ) + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-9741
SELECT + NULLIF ( - ( - + COUNT ( * ) ), - + 92 ) + - 46
----
-45

query I rowsort
SELECT - 17 + - 66 + + 26 AS col2
----
-57

query II rowsort
SELECT 93, 14 AS col1
----
93
14

query I rowsort
SELECT 49 * + 16 * - 21 * 22 * - 39 + - 93 + 82 AS col2
----
14126101

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT CASE + - 31 WHEN COUNT( * ) THEN - MAX( + 16 ) END * + + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9745
SELECT CASE + - 31 WHEN COUNT ( * ) THEN - MAX ( + 16 ) END * + + 59 AS col0
----
NULL

query I rowsort
SELECT ALL + 86 + + 37
----
123

query I rowsort
SELECT DISTINCT - ( - 72 ) AS col1
----
72

query I rowsort
SELECT ALL - 5 + - + 19 col0
----
-24

query II rowsort
SELECT + 41 AS col0, + 43 AS col1
----
41
43

query I rowsort
SELECT DISTINCT 32 + - + 50 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query III rowsort label-9751
SELECT DISTINCT + 78 + - NULLIF ( + 34, COUNT( * ) + + 78 ) * + MAX( DISTINCT - 59 ) AS col0, NULLIF ( + 22, - 31 * NULLIF ( + 6, MIN( + 55 ) ) + ( - - 7 ) ) + - 63, - 44 + - COUNT( * ) - - MIN( DISTINCT + - 61 ) AS col1
----
2084
-41
-106

skipif mysql # not compatible
query III rowsort label-9751
SELECT DISTINCT + 78 + - NULLIF ( + 34, COUNT ( * ) + + 78 ) * + MAX ( DISTINCT - 59 ) AS col0, NULLIF ( + 22, - 31 * NULLIF ( + 6, MIN ( + 55 ) ) + ( - - 7 ) ) + - 63, - 44 + - COUNT ( * ) - - MIN ( DISTINCT + - 61 ) AS col1
----
2084
-41
-106

query I rowsort
SELECT ALL + 14 * - 78 + - + 84
----
-1176

query I rowsort
SELECT ALL - COALESCE ( - ( 91 ), - 4, 49 ) + - + 74
----
17

query II rowsort
SELECT + 97 AS col2, + 30 AS col1
----
97
30

query I rowsort
SELECT + 38 * - + 79 AS col0
----
-3002

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9756
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) - + 72 * + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT - + CAST ( NULL AS REAL ) - + 72 * + 70 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 39 AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9758
SELECT DISTINCT + 71 DIV + MIN( DISTINCT + - 29 ) + - 86
----
-88

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + 71 / + MIN ( DISTINCT + - 29 ) + - 86
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT - ( 56 ) * + - NULLIF ( + - MAX( - + 47 ), + 45 + - 0 ) + + ( + MAX( + 83 ) ) * - 42 AS col1
----
-854

skipif mysql # not compatible
query I rowsort label-9759
SELECT - ( 56 ) * + - NULLIF ( + - MAX ( - + 47 ), + 45 + - 0 ) + + ( + MAX ( + 83 ) ) * - 42 AS col1
----
-854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT DISTINCT - AVG ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT - AVG ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ( ( 11 ) ) * - 47 * + 17 + MIN( DISTINCT + 32 ) col1
----
-8757

skipif mysql # not compatible
query I rowsort label-9761
SELECT ( ( 11 ) ) * - 47 * + 17 + MIN ( DISTINCT + 32 ) col1
----
-8757

onlyif mysql # aggregate syntax: 
query II rowsort label-9762
SELECT 64 * 90 AS col1, + MIN( 5 )
----
5760
5

skipif mysql # not compatible
query II rowsort label-9762
SELECT 64 * 90 AS col1, + MIN ( 5 )
----
5760
5

query I rowsort
SELECT DISTINCT + 10 * - - 39
----
390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9764
SELECT 47 * + CAST( NULL AS SIGNED ) * + CAST( + 86 AS SIGNED ) * + - COALESCE ( - COUNT( * ), - + 5 ) * CAST( 16 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT 47 * + CAST ( NULL AS INTEGER ) * + CAST ( + 86 AS INTEGER ) * + - COALESCE ( - COUNT ( * ), - + 5 ) * CAST ( 16 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 92 * 24
----
2208

query I rowsort
SELECT DISTINCT + 19 * - 68
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL - ( + 23 ) + + - MAX( 59 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL - ( + 23 ) + + - MAX ( 59 ) AS col2
----
-82

query I rowsort
SELECT DISTINCT 91 + - + 97 + - 64 AS col0
----
-70

query I rowsort
SELECT ALL + 92 * - - 48 AS col1
----
4416

query I rowsort
SELECT 47 + - 31 + + 72 AS col2
----
88

query II rowsort
SELECT DISTINCT - 20 + 3, + 89 AS col1
----
-17
89

query I rowsort
SELECT 63 - - 39 col1
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT ALL 90 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL 90 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 72 - 7 * - + 46
----
394

query I rowsort
SELECT 57 + - 3 AS col1
----
54

query I rowsort
SELECT ALL 59 * 28 * - + 8 + - 81 AS col2
----
-13297

onlyif mysql # aggregate syntax: 
query II rowsort label-9777
SELECT ALL + - 83 + 78, 45 + + - COUNT( + 17 ) AS col1
----
-5
44

skipif mysql # not compatible
query II rowsort label-9777
SELECT ALL + - 83 + 78, 45 + + - COUNT ( + 17 ) AS col1
----
-5
44

query I rowsort
SELECT ALL + 49 * + 80 AS col1
----
3920

query I rowsort
SELECT ( - 4 ) - + NULLIF ( - 25, 71 ) AS col2
----
21

query II rowsort
SELECT ALL - 74 * + 61 AS col2, - 59 AS col2
----
-4514
-59

query II rowsort
SELECT 45 * 49 AS col0, 8 * - 52
----
2205
-416

query I rowsort
SELECT ALL - - CASE WHEN NOT NULL = NULL THEN 45 ELSE 54 END
----
54

query I rowsort
SELECT 6 + + 51
----
57

query I rowsort
SELECT - 6 * + 97 * - 29 AS col0
----
16878

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL - COALESCE ( - 77, - MAX( - + 86 ) )
----
77

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - COALESCE ( - 77, - MAX ( - + 86 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL - - MAX( DISTINCT 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL - - MAX ( DISTINCT 61 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9787
SELECT COUNT( * ) - - - 5 AS col1, - 34 * - 68
----
-4
2312

skipif mysql # not compatible
query II rowsort label-9787
SELECT COUNT ( * ) - - - 5 AS col1, - 34 * - 68
----
-4
2312

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT + 72 * + COUNT( * ) + + 21
----
93

skipif mysql # not compatible
query I rowsort label-9788
SELECT + 72 * + COUNT ( * ) + + 21
----
93

query I rowsort
SELECT ALL + - 82 * - + 29
----
2378

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9790
SELECT + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), CAST( NULL AS SIGNED ) * - 36 * - + 6
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9790
SELECT + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), CAST ( NULL AS INTEGER ) * - 36 * - + 6
----
NULL
NULL

query II rowsort
SELECT 62 + + 37 AS col2, + 55 AS col0
----
99
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9792
SELECT DISTINCT - 90 AS col2, - 28 * COALESCE ( + - 88, + MIN( - 84 ) ) - - + 49 col2
----
-90
2513

skipif mysql # not compatible
query II rowsort label-9792
SELECT DISTINCT - 90 AS col2, - 28 * COALESCE ( + - 88, + MIN ( - 84 ) ) - - + 49 col2
----
-90
2513

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT ALL 28 * - COUNT( * ) * - 6
----
168

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL 28 * - COUNT ( * ) * - 6
----
168

query I rowsort
SELECT 28 + + 68
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + MAX( ALL + 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9795
SELECT + MAX ( ALL + 98 ) AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT + COALESCE ( - 54, - - CAST( + 47 AS SIGNED ), + 29 * ( - 64 ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9796
SELECT + COALESCE ( - 54, - - CAST ( + 47 AS INTEGER ), + 29 * ( - 64 ) ) AS col0
----
-54

query I rowsort
SELECT DISTINCT 10 * + - 58
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL - 33 + - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - 33 + - COUNT ( * )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT 73 + - + SUM( + 55 ) * + + 63 * + 92
----
-318707

skipif mysql # not compatible
query I rowsort label-9799
SELECT 73 + - + SUM ( + 55 ) * + + 63 * + 92
----
-318707

onlyif mysql # DIV for integer division: 
query II rowsort label-9800
SELECT ALL 28, 42 - - 18 DIV - 3 col1
----
28
36

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL 28, 42 - - 18 / - 3 col1
----
28
36

query I rowsort
SELECT ( + 95 ) * - 52 AS col1
----
-4940

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT ALL - 34 + - - COALESCE ( 97, + 18, - ( + + 33 ) DIV + 39 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - 34 + - - COALESCE ( 97, + 18, - ( + + 33 ) / + 39 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT + 20 + - COUNT( * ) - + 0 + + 54
----
73

skipif mysql # not compatible
query I rowsort label-9803
SELECT + 20 + - COUNT ( * ) - + 0 + + 54
----
73

query I rowsort
SELECT - 2 - - 26 * - 72
----
-1874

query I rowsort
SELECT ALL + 61 * - 75
----
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT - SUM( 94 ) + + MIN( ALL - 40 )
----
-134

skipif mysql # not compatible
query I rowsort label-9806
SELECT - SUM ( 94 ) + + MIN ( ALL - 40 )
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL + ( SUM( DISTINCT - 30 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + ( SUM ( DISTINCT - 30 ) )
----
-30

query I rowsort
SELECT DISTINCT - 80 * + 98 + 49
----
-7791

query I rowsort
SELECT ALL + 89 - 44 col2
----
45

query I rowsort
SELECT - - 83 + + 32 AS col0
----
115

query I rowsort
SELECT DISTINCT - 20 * + + 42
----
-840

query I rowsort
SELECT - + COALESCE ( 67, - 42 * - 67 ) + - 61
----
-128

query I rowsort
SELECT - 63 * - + 10 - - ( - 6 ) AS col0
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT DISTINCT - + 57 * - MIN( 74 ) - COUNT( * ) AS col2
----
4217

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - + 57 * - MIN ( 74 ) - COUNT ( * ) AS col2
----
4217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9815
SELECT ALL + COUNT( * ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + COUNT ( * ) / 80
----
0

query II rowsort
SELECT ALL + 49 AS col2, + 55
----
49
55

query I rowsort
SELECT ALL + + ( + 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9818
SELECT DISTINCT - - 76 DIV - COUNT( * ) + - 83 AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT - - 76 / - COUNT ( * ) + - 83 AS col0
----
-159

query I rowsort
SELECT ALL 96 * - 0
----
0

query I rowsort
SELECT + 65 + - - 20 AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9821
SELECT DISTINCT - + 26 DIV + 8 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT - + 26 / + 8 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT - 9 * + - ( - MAX( - 78 ) )
----
702

skipif mysql # not compatible
query I rowsort label-9822
SELECT - 9 * + - ( - MAX ( - 78 ) )
----
702

query I rowsort
SELECT + ( 26 ) + + 41 + - 56 * 66 AS col2
----
-3629

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT + MAX( - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9824
SELECT + MAX ( - 20 ) AS col1
----
-20

query I rowsort
SELECT + 10 * + - 43 AS col0
----
-430

query I rowsort
SELECT 28 * - - 95 + - 16
----
2644

query I rowsort
SELECT DISTINCT - 62 * - ( + + 94 ) + - ( - 55 ) + 51 AS col0
----
5934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9828
SELECT ALL + CASE - 63 WHEN - CASE - 51 WHEN + 57 + + COUNT( * ) THEN NULL ELSE + + 11 + + 36 END + MIN( + 19 ) THEN 40 ELSE - + 33 END * - + COALESCE ( - 0, 67, + - 35 * - COUNT( * ) ) + - 78 + + CAST( - - COUNT( * ) AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL + CASE - 63 WHEN - CASE - 51 WHEN + 57 + + COUNT ( * ) THEN NULL ELSE + + 11 + + 36 END + MIN ( + 19 ) THEN 40 ELSE - + 33 END * - + COALESCE ( - 0, 67, + - 35 * - COUNT ( * ) ) + - 78 + + CAST ( - - COUNT ( * ) AS INTEGER )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9829
SELECT CASE - NULLIF ( + CASE - 14 WHEN 13 * + 98 * 8 + + 22 THEN - - 67 ELSE NULL END, + CAST( 6 AS DECIMAL ) ) WHEN - + 63 - - COALESCE ( + CASE - 42 WHEN + + 80 THEN - MAX( DISTINCT - - ( + - 28 ) ) + + - 22 WHEN 98 THEN + 93 END, + COUNT( * ), 35 ) + 3 / + 48 THEN NULL WHEN + 43 * + COUNT( * ) THEN + 59 * + 99 + - 68 ELSE COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9829
SELECT CASE - NULLIF ( + CASE - 14 WHEN 13 * + 98 * 8 + + 22 THEN - - 67 ELSE NULL END, + CAST ( 6 AS REAL ) ) WHEN - + 63 - - COALESCE ( + CASE - 42 WHEN + + 80 THEN - MAX ( DISTINCT - - ( + - 28 ) ) + + - 22 WHEN 98 THEN + 93 END, + COUNT ( * ), 35 ) + 3 / + 48 THEN NULL WHEN + 43 * + COUNT ( * ) THEN + 59 * + 99 + - 68 ELSE COUNT ( * ) END AS col1
----
1

query I rowsort
SELECT + 63 * 14 * 34
----
29988

query I rowsort
SELECT ALL + 29 * - 48 + + - 72 AS col1
----
-1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9832
SELECT ALL NULLIF ( 76, COALESCE ( 65, - AVG ( ALL + 20 ) * - 58 ) ) * 81 * + + 0 / 28 - + ( CASE WHEN - 70 NOT IN ( CASE - 21 WHEN 18 - - - 80 THEN - COUNT( * ) WHEN 80 THEN 1 END, + 90 + 32 ) OR NOT ( + 31 ) IS NOT NULL THEN + 0 - 53 END ) + - COALESCE ( + CAST( NULL AS SIGNED ), + 95 ) * 42 + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL NULLIF ( 76, COALESCE ( 65, - AVG ( ALL + 20 ) * - 58 ) ) * 81 * + + 0 / 28 - + ( CASE WHEN - 70 NOT IN ( CASE - 21 WHEN 18 - - - 80 THEN - COUNT ( * ) WHEN 80 THEN 1 END, + 90 + 32 ) OR NOT ( + 31 ) IS NOT NULL THEN + 0 - 53 END ) + - COALESCE ( + CAST ( NULL AS INTEGER ), + 95 ) * 42 + 77
----
NULL

query I rowsort
SELECT + COALESCE ( + 71, + ( + 67 ), - - 72 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT SUM( DISTINCT + - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-9834
SELECT SUM ( DISTINCT + - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT 69 * 10 + 57 + - + 84 * 80 * COUNT( * )
----
-5973

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT 69 * 10 + 57 + - + 84 * 80 * COUNT ( * )
----
-5973

query I rowsort
SELECT + 44 * 81 AS col1
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT MAX( DISTINCT + 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9837
SELECT MAX ( DISTINCT + 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL 44 * + 59 + - - ( - 86 ) * - SUM( ALL - 42 ) AS col0
----
-1016

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL 44 * + 59 + - - ( - 86 ) * - SUM ( ALL - 42 ) AS col0
----
-1016

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT + 97 DIV 5 * + 89
----
1691

skipif mysql # not compatible
query I rowsort label-9839
SELECT + 97 / 5 * + 89
----
1691

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT - 3 * + - NULLIF ( + 99, - + COUNT( * ) )
----
297

skipif mysql # not compatible
query I rowsort label-9840
SELECT - 3 * + - NULLIF ( + 99, - + COUNT ( * ) )
----
297

query I rowsort
SELECT ALL 8 * ( 95 ) AS col1
----
760

query II rowsort
SELECT - ( + 65 ) AS col2, + 3 * 18 AS col1
----
-65
54

query I rowsort
SELECT ALL 79 - COALESCE ( - 84, - 31, 44 ) AS col1
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9844
SELECT DISTINCT CASE + + 31 WHEN + 31 THEN + - CAST( + 26 AS SIGNED ) ELSE NULL END
----
-26

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT CASE + + 31 WHEN + 31 THEN + - CAST ( + 26 AS INTEGER ) ELSE NULL END
----
-26

query I rowsort
SELECT - + 96 + - 37
----
-133

query I rowsort
SELECT ALL ( - - 1 )
----
1

query I rowsort
SELECT - + 46 * - 82 AS col0
----
3772

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT - - SUM( ALL + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9848
SELECT - - SUM ( ALL + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9849
SELECT DISTINCT - - 41 * - COUNT( * ) * - CASE 79 WHEN + + 95 THEN + 46 * - 2 + - - 6 + 92 + - 3 ELSE 3 END + - - 58 DIV - 41 + - 87 + + 33 * + ( + SUM( 33 ) ) * + + 49, 84 AS col1
----
53396
84

skipif mysql # not compatible
query II rowsort label-9849
SELECT DISTINCT - - 41 * - COUNT ( * ) * - CASE 79 WHEN + + 95 THEN + 46 * - 2 + - - 6 + 92 + - 3 ELSE 3 END + - - 58 / - 41 + - 87 + + 33 * + ( + SUM ( 33 ) ) * + + 49, 84 AS col1
----
53396
84

query I rowsort
SELECT - + 2 + 58 + - + NULLIF ( ( 32 ), - 76 ) AS col2
----
24

query II rowsort
SELECT - 27 * - - 1, 41 AS col0
----
-27
41

query I rowsort
SELECT ALL - 75 * + 59 col0
----
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL MAX( ALL 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL MAX ( ALL 1 )
----
1

query I rowsort
SELECT ALL - 31 * - 91 AS col1
----
2821

query II rowsort
SELECT - + 20 * - 49, 43 * - 32 AS col2
----
980
-1376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9856
SELECT ALL - 42 DIV - 88 * + COUNT( * ) * + 48 + + ( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL - 42 / - 88 * + COUNT ( * ) * + 48 + + ( 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT MAX( ALL + ( - + 97 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-9857
SELECT MAX ( ALL + ( - + 97 ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - 11 * - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9858
SELECT - 11 * - COUNT ( * )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT DISTINCT 16 DIV - + 70 * - 28 + - 88 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT 16 / - + 70 * - 28 + - 88 AS col1
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9860
SELECT DISTINCT - COUNT( * ) DIV - + 34 + + 19, 13 AS col2
----
19
13

skipif mysql # not compatible
query II rowsort label-9860
SELECT DISTINCT - COUNT ( * ) / - + 34 + + 19, 13 AS col2
----
19
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9861
SELECT ALL 28 / - COUNT( * ) + - CASE - 47 WHEN CASE + - SUM( DISTINCT - 87 ) WHEN - 78 + 70 / - 5 * - - 44 THEN NULL WHEN + 45 / COUNT( * ) - - - 67 + + MIN( DISTINCT + CAST( + 54 AS SIGNED ) ) * + 62 THEN 19 / + - 38 + 6 WHEN 35 THEN NULL WHEN 72 THEN NULL ELSE NULL END + 49 + + 58 * 50 / + 23 THEN 69 - + ( ( 69 ) ) WHEN + 89 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL 28 / - COUNT ( * ) + - CASE - 47 WHEN CASE + - SUM ( DISTINCT - 87 ) WHEN - 78 + 70 / - 5 * - - 44 THEN NULL WHEN + 45 / COUNT ( * ) - - - 67 + + MIN ( DISTINCT + CAST ( + 54 AS INTEGER ) ) * + 62 THEN 19 / + - 38 + 6 WHEN 35 THEN NULL WHEN 72 THEN NULL ELSE NULL END + 49 + + 58 * 50 / + 23 THEN 69 - + ( ( 69 ) ) WHEN + 89 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT + COALESCE ( - + 35, COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9862
SELECT + COALESCE ( - + 35, COUNT ( * ) )
----
-35

query I rowsort
SELECT ALL + 42 * + 5
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT - COUNT( * ) + + 9
----
8

skipif mysql # not compatible
query I rowsort label-9864
SELECT - COUNT ( * ) + + 9
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9865
SELECT ALL 65 DIV 95 + - + CAST( + 34 AS SIGNED ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL 65 / 95 + - + CAST ( + 34 AS INTEGER ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT 53 + 10 * - 82 * - 42 + COUNT( * )
----
34494

skipif mysql # not compatible
query I rowsort label-9866
SELECT 53 + 10 * - 82 * - 42 + COUNT ( * )
----
34494

query I rowsort
SELECT ALL 15 + + + 18 * - - 44 AS col2
----
807

query I rowsort
SELECT 63 + + - 63 AS col0
----
0

query I rowsort
SELECT DISTINCT 32 * - - NULLIF ( + 80, - 71 ) * - - 65
----
166400

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT + ( 19 ) * + 68 * + COUNT( * ) + 34 - + 38 * + 60
----
-954

skipif mysql # not compatible
query I rowsort label-9870
SELECT + ( 19 ) * + 68 * + COUNT ( * ) + 34 - + 38 * + 60
----
-954

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9871
SELECT DISTINCT - CAST( NULL AS SIGNED ), 15 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-9871
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 15 AS col1
----
NULL
15

query I rowsort
SELECT ALL - 70 - + 90
----
-160

query II rowsort
SELECT ALL 90 AS col0, 86
----
90
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9874
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) - + 16 * 8
----
-129

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) - + 16 * 8
----
-129

query I rowsort
SELECT + 48 * ( + 6 ) AS col0
----
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9876
SELECT ALL - 86 * + 71 + + 59 AS col0, COUNT( * ) DIV + 26 + COUNT( * ) * 30 DIV + COUNT( * ) AS col2
----
-6047
30

skipif mysql # not compatible
query II rowsort label-9876
SELECT ALL - 86 * + 71 + + 59 AS col0, COUNT ( * ) / + 26 + COUNT ( * ) * 30 / + COUNT ( * ) AS col2
----
-6047
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL COUNT( * ) * + + NULLIF ( + + 79, 53 * 15 * - NULLIF ( 3, + - 43 + 63 + - 89 + + - CASE 60 WHEN - + 73 * - 39 THEN + 35 WHEN + 17 + - 85 THEN NULL WHEN - COALESCE ( + 38, + + 67 + + 15 + - 24, - 75 * - 63, - 14 ) + 25 THEN + 59 / - MIN( DISTINCT 59 ) END + - 47 ) )
----
79

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL COUNT ( * ) * + + NULLIF ( + + 79, 53 * 15 * - NULLIF ( 3, + - 43 + 63 + - 89 + + - CASE 60 WHEN - + 73 * - 39 THEN + 35 WHEN + 17 + - 85 THEN NULL WHEN - COALESCE ( + 38, + + 67 + + 15 + - 24, - 75 * - 63, - 14 ) + 25 THEN + 59 / - MIN ( DISTINCT 59 ) END + - 47 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT - CASE - 75 WHEN + 93 THEN NULL WHEN - 62 THEN + + ( AVG ( DISTINCT 27 ) ) * COUNT( * ) * 41 END + - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT - CASE - 75 WHEN + 93 THEN NULL WHEN - 62 THEN + + ( AVG ( DISTINCT 27 ) ) * COUNT ( * ) * 41 END + - 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9879
SELECT ALL - 99, MIN( 47 ) AS col1, - COUNT( * ) * 54 col1
----
-99
47
-54

skipif mysql # not compatible
query III rowsort label-9879
SELECT ALL - 99, MIN ( 47 ) AS col1, - COUNT ( * ) * 54 col1
----
-99
47
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT ALL + CASE + 96 WHEN - CAST( - AVG ( DISTINCT - 94 ) AS SIGNED ) THEN NULL WHEN - 4 * + - 73 * 95 + - - 97 THEN + ( ( - - 59 ) ) * + + CAST( NULL AS SIGNED ) WHEN + 0 + - ( ( - 41 ) ) + - + 26 * + - CAST( 77 AS SIGNED ) THEN 77 / - + 33 - - NULLIF ( + 71, + 24 ) / 98 ELSE 17 * - ( + 85 * + 9 ) END AS col2
----
-13005

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL + CASE + 96 WHEN - CAST ( - AVG ( DISTINCT - 94 ) AS INTEGER ) THEN NULL WHEN - 4 * + - 73 * 95 + - - 97 THEN + ( ( - - 59 ) ) * + + CAST ( NULL AS INTEGER ) WHEN + 0 + - ( ( - 41 ) ) + - + 26 * + - CAST ( 77 AS INTEGER ) THEN 77 / - + 33 - - NULLIF ( + 71, + 24 ) / 98 ELSE 17 * - ( + 85 * + 9 ) END AS col2
----
-13005

query I rowsort
SELECT DISTINCT - ( + - 21 ) * + 90 AS col1
----
1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9882
SELECT DISTINCT NULLIF ( + CAST( - 12 AS SIGNED ), + 93 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT NULLIF ( + CAST ( - 12 AS INTEGER ), + 93 ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT ( 91 ) DIV 37 - 28 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9883
SELECT ( 91 ) / 37 - 28 AS col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT 12 DIV 76 * - - 13 + - 63 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9884
SELECT 12 / 76 * - - 13 + - 63 AS col2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT ALL + 94 + - ( + 54 ) DIV + 72 + 47 * - 94
----
-4324

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + 94 + - ( + 54 ) / + 72 + 47 * - 94
----
-4324

query I rowsort
SELECT ALL - - ( 71 ) AS col0
----
71

query I rowsort
SELECT - 88 * 40 + - 90 AS col2
----
-3610

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9888
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + 15 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + 15 col2
----
NULL

query I rowsort
SELECT ALL - 1 + + 37 col1
----
36

query II rowsort
SELECT 14 AS col0, CASE - 49 WHEN - ( + + 65 ) THEN - ( + 1 ) WHEN ( - 73 ) THEN - 23 + - 14 - - + 9 - - COALESCE ( + 95, 35 ) END AS col1
----
14
NULL

query I rowsort
SELECT DISTINCT - 19 + - - 84 AS col1
----
65

query I rowsort
SELECT DISTINCT + 56 * - 90 AS col1
----
-5040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9893
SELECT ALL - 1 + + 67 DIV + - COUNT( * ) + 25
----
-43

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - 1 + + 67 / + - COUNT ( * ) + 25
----
-43

query III rowsort
SELECT + 14 AS col0, 55 AS col0, + 27 AS col0
----
14
55
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT 63 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT 63 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + + 65, - + 56 + - 5 )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT 2 DIV 27 + - - ( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9897
SELECT 2 / 27 + - - ( + 1 )
----
1

query I rowsort
SELECT ALL - ( + - 11 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9899
SELECT DISTINCT - 50, COUNT( * ) DIV - - ( - - 93 ) - - COUNT( * ) * + COUNT( * ) * - 29 * NULLIF ( + 33, COUNT( * ) ) * - 88 col0
----
-50
84216

skipif mysql # not compatible
query II rowsort label-9899
SELECT DISTINCT - 50, COUNT ( * ) / - - ( - - 93 ) - - COUNT ( * ) * + COUNT ( * ) * - 29 * NULLIF ( + 33, COUNT ( * ) ) * - 88 col0
----
-50
84216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9900
SELECT ALL + NULLIF ( - + 65, + 35 * + + NULLIF ( - - 82, - ( + - AVG ( + + 71 ) ) * + 95 / - + ( - 49 ) ) + + CASE - CAST( + - COUNT( * ) AS DECIMAL ) WHEN NULLIF ( + + 65, - - 45 ) THEN + 31 - + 32 END * - - 42 + + - 59 ) - + CAST( NULL AS SIGNED ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL + NULLIF ( - + 65, + 35 * + + NULLIF ( - - 82, - ( + - AVG ( + + 71 ) ) * + 95 / - + ( - 49 ) ) + + CASE - CAST ( + - COUNT ( * ) AS REAL ) WHEN NULLIF ( + + 65, - - 45 ) THEN + 31 - + 32 END * - - 42 + + - 59 ) - + CAST ( NULL AS INTEGER ) + 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9901
SELECT 88 * + ( + 60 ) * + 10 + - 26 - + 57 - + - COUNT( * ) * - + 96 * + CASE + 13 WHEN 34 THEN 15 WHEN 74 THEN - 34 END AS col2, 16 - + 21 * + + 17 col1
----
NULL
-341

skipif mysql # not compatible
query II rowsort label-9901
SELECT 88 * + ( + 60 ) * + 10 + - 26 - + 57 - + - COUNT ( * ) * - + 96 * + CASE + 13 WHEN 34 THEN 15 WHEN 74 THEN - 34 END AS col2, 16 - + 21 * + + 17 col1
----
NULL
-341

query I rowsort
SELECT 98 * - 98 AS col1
----
-9604

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT ALL + 12 DIV 76 * 16 * 95
----
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + 12 / 76 * 16 * 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT 78 DIV + - ( + + 4 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9904
SELECT 78 / + - ( + + 4 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT + MAX( - 63 ) * + SUM( - 47 ) * - - 99
----
293139

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + MAX ( - 63 ) * + SUM ( - 47 ) * - - 99
----
293139

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT ALL - MAX( 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL - MAX ( 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT 88 * ( + 4 ) * + ( CAST( ( - + 85 ) AS SIGNED ) ) AS col1
----
-29920

skipif mysql # not compatible
query I rowsort label-9907
SELECT 88 * ( + 4 ) * + ( CAST ( ( - + 85 ) AS INTEGER ) ) AS col1
----
-29920

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ( 0 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9908
SELECT ( 0 ) * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT 34 - + 62 + + + COUNT( - 80 ) * + 74 * - + COALESCE ( + 79, - 85 ) + + COUNT( * )
----
-5873

skipif mysql # not compatible
query I rowsort label-9909
SELECT 34 - + 62 + + + COUNT ( - 80 ) * + 74 * - + COALESCE ( + 79, - 85 ) + + COUNT ( * )
----
-5873

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT ALL 16, MIN( DISTINCT - 64 ) AS col1
----
16
-64

skipif mysql # not compatible
query II rowsort label-9910
SELECT ALL 16, MIN ( DISTINCT - 64 ) AS col1
----
16
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL 3 * 87 * - COUNT( * ) * - 10 * 35
----
91350

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL 3 * 87 * - COUNT ( * ) * - 10 * 35
----
91350

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT ALL + - 32 * - 32 + - - 76 - - - 43 * COUNT( * ) + - + 84 * 0 * + + 39 + + 44 * + 76
----
4401

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL + - 32 * - 32 + - - 76 - - - 43 * COUNT ( * ) + - + 84 * 0 * + + 39 + + 44 * + 76
----
4401

query I rowsort
SELECT + 82 * 30 AS col1
----
2460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9914
SELECT DISTINCT CAST( NULL AS SIGNED ), + 25 + - + SUM( - + 54 ) AS col2
----
NULL
79

skipif mysql # not compatible
query II rowsort label-9914
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 25 + - + SUM ( - + 54 ) AS col2
----
NULL
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9915
SELECT ALL + 1 AS col0, - COUNT( - + 84 ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-9915
SELECT ALL + 1 AS col0, - COUNT ( - + 84 ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL SUM( - + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL SUM ( - + 0 )
----
0

query I rowsort
SELECT ALL - ( + NULLIF ( - 99, 98 + - - 30 ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT DISTINCT - COALESCE ( + - COUNT( * ), COUNT( * ) ) + + + 89 * - + 77
----
-6852

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT - COALESCE ( + - COUNT ( * ), COUNT ( * ) ) + + + 89 * - + 77
----
-6852

query I rowsort
SELECT DISTINCT 88 + 80
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-9920
SELECT COUNT( * ) AS col2, 4 - + - 80 AS col2
----
1
84

skipif mysql # not compatible
query II rowsort label-9920
SELECT COUNT ( * ) AS col2, 4 - + - 80 AS col2
----
1
84

query I rowsort
SELECT DISTINCT 1 + 61 AS col2
----
62

query I rowsort
SELECT ALL + 14 + - 22
----
-8

query II rowsort
SELECT DISTINCT - 55, + 57 AS col1
----
-55
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT - SUM( ALL 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-9924
SELECT - SUM ( ALL 15 )
----
-15

query I rowsort
SELECT 75 + - 44 col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT DISTINCT + NULLIF ( - 72, - ( - ( COUNT( * ) ) ) ) + + - 75 AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT + NULLIF ( - 72, - ( - ( COUNT ( * ) ) ) ) + + - 75 AS col2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT ( - ( COUNT( * ) ) ) * 49 - - 53 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT ( - ( COUNT ( * ) ) ) * 49 - - 53 AS col0
----
4

query I rowsort
SELECT ALL - ( + - 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL COUNT( * ) + 92 + - - 30 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL COUNT ( * ) + 92 + - - 30 AS col1
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9930
SELECT CAST( + COUNT( * ) AS SIGNED ) * + 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9930
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + 33 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT ALL 46 * + CAST( 79 AS SIGNED )
----
3634

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL 46 * + CAST ( 79 AS INTEGER )
----
3634

query I rowsort
SELECT DISTINCT 4 * - 58 AS col1
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT 63 - + + ( COUNT( * ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT 63 - + + ( COUNT ( * ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT CASE - 40 WHEN + ( + 54 ) - - 70 THEN - 28 WHEN - 29 THEN - NULLIF ( + COUNT( * ), - 47 * COUNT( * ) - - - COUNT( * ) - 20 + - + ( - 33 ) - - 92 + - - 23 * 45 + 37 + CASE - 54 WHEN - + ( + 81 ) THEN + COALESCE ( 11, - + ( - + ( - 43 ) ) ) WHEN 73 * - 12 THEN - 32 END ) * + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT CASE - 40 WHEN + ( + 54 ) - - 70 THEN - 28 WHEN - 29 THEN - NULLIF ( + COUNT ( * ), - 47 * COUNT ( * ) - - - COUNT ( * ) - 20 + - + ( - 33 ) - - 92 + - - 23 * 45 + 37 + CASE - 54 WHEN - + ( + 81 ) THEN + COALESCE ( 11, - + ( - + ( - 43 ) ) ) WHEN 73 * - 12 THEN - 32 END ) * + 11 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT + CASE 64 WHEN - 56 * - ( + - 85 ) * - 64 * - COALESCE ( - 13, - + 16, ( 23 ) + + NULLIF ( - COUNT( * ), + 19 ) ) + + + CAST( - 80 AS SIGNED ) + - + 22 + - - CAST( + - 53 AS SIGNED ) THEN NULL WHEN + - 8 THEN + + 62 * + CASE COALESCE ( - 50, - 12 ) WHEN + COUNT( * ) + - 32 * + 21 THEN + 53 + + 32 ELSE NULL END * + NULLIF ( 12 + - COUNT( * ), 80 ) WHEN COUNT( * ) THEN 49 * - COALESCE ( 21, SUM( - 14 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT + CASE 64 WHEN - 56 * - ( + - 85 ) * - 64 * - COALESCE ( - 13, - + 16, ( 23 ) + + NULLIF ( - COUNT ( * ), + 19 ) ) + + + CAST ( - 80 AS INTEGER ) + - + 22 + - - CAST ( + - 53 AS INTEGER ) THEN NULL WHEN + - 8 THEN + + 62 * + CASE COALESCE ( - 50, - 12 ) WHEN + COUNT ( * ) + - 32 * + 21 THEN + 53 + + 32 ELSE NULL END * + NULLIF ( 12 + - COUNT ( * ), 80 ) WHEN COUNT ( * ) THEN 49 * - COALESCE ( 21, SUM ( - 14 ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 4 * - - 1 AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9937
SELECT ALL + 16 * + 70 DIV + COUNT( DISTINCT 38 ) AS col1
----
1120

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL + 16 * + 70 / + COUNT ( DISTINCT 38 ) AS col1
----
1120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9938
SELECT + CAST( NULL AS DECIMAL ) * - ( - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT + CAST ( NULL AS REAL ) * - ( - 12 )
----
NULL

query I rowsort
SELECT ALL + 7 * + 38
----
266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT + CAST( NULL AS SIGNED ) + - + 23 * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT + CAST ( NULL AS INTEGER ) + - + 23 * + 79
----
NULL

query I rowsort
SELECT DISTINCT + 99 * - 28
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT 8 * - 53 + + 80 * + 55 + - - MAX( 4 )
----
3980

skipif mysql # not compatible
query I rowsort label-9942
SELECT 8 * - 53 + + 80 * + 55 + - - MAX ( 4 )
----
3980

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9943
SELECT - - COALESCE ( + ( - COUNT( * ) ), + 2 ) DIV - - COUNT( * ) + + 98 + - - 10 AS col1, - 30
----
107
-30

skipif mysql # not compatible
query II rowsort label-9943
SELECT - - COALESCE ( + ( - COUNT ( * ) ), + 2 ) / - - COUNT ( * ) + + 98 + - - 10 AS col1, - 30
----
107
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT - CASE 4 WHEN 74 THEN + 42 * - 29 * - - 56 + - - 94 - - COUNT( * ) ELSE + - ( + COALESCE ( 88, ( + ( - 14 ) ) ) ) + + COALESCE ( - + 37, + COUNT( * ) - - - 94 ) + COUNT( DISTINCT - - 65 ) + + - 34 + - ( + 49 ) * - - COUNT( * ) * - 30 END + + COALESCE ( 0, 3 + 66, - ( 61 ) ) * + 60
----
-1312

skipif mysql # not compatible
query I rowsort label-9944
SELECT - CASE 4 WHEN 74 THEN + 42 * - 29 * - - 56 + - - 94 - - COUNT ( * ) ELSE + - ( + COALESCE ( 88, ( + ( - 14 ) ) ) ) + + COALESCE ( - + 37, + COUNT ( * ) - - - 94 ) + COUNT ( DISTINCT - - 65 ) + + - 34 + - ( + 49 ) * - - COUNT ( * ) * - 30 END + + COALESCE ( 0, 3 + 66, - ( 61 ) ) * + 60
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT CASE 80 WHEN - CASE 14 WHEN - COUNT( * ) + - 61 THEN 31 * 3 END THEN + 78 + COUNT( * ) WHEN - ( - - 73 ) THEN NULL WHEN + 96 / - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT CASE 80 WHEN - CASE 14 WHEN - COUNT ( * ) + - 61 THEN 31 * 3 END THEN + 78 + COUNT ( * ) WHEN - ( - - 73 ) THEN NULL WHEN + 96 / - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL - NULLIF ( - 8, - + 89 * + 18 ) + - + 27 * - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - NULLIF ( - 8, - + 89 * + 18 ) + - + 27 * - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT - + 23 + - + 55 - - 63 + 44 * 34 + - + NULLIF ( + 86, + MAX( DISTINCT - 78 ) + - + 25 + + 16 * - + 20 + 58 * + COALESCE ( - 10, ( 51 ) ) + - 98 ) * - ( - + 70 )
----
-4539

skipif mysql # not compatible
query I rowsort label-9947
SELECT - + 23 + - + 55 - - 63 + 44 * 34 + - + NULLIF ( + 86, + MAX ( DISTINCT - 78 ) + - + 25 + + 16 * - + 20 + 58 * + COALESCE ( - 10, ( 51 ) ) + - 98 ) * - ( - + 70 )
----
-4539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT 49 * - 16 + COUNT( * ) DIV 70 + + 4 + + COUNT( ALL + - 85 ) + - 38 AS col2
----
-817

skipif mysql # not compatible
query I rowsort label-9948
SELECT 49 * - 16 + COUNT ( * ) / 70 + + 4 + + COUNT ( ALL + - 85 ) + - 38 AS col2
----
-817

query I rowsort
SELECT ALL - 43 + + + 24 + 57
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - MAX( 37 ) * + 75
----
-2775

skipif mysql # not compatible
query I rowsort label-9950
SELECT - MAX ( 37 ) * + 75
----
-2775

query I rowsort
SELECT ALL - - 92 * - 55 - - 99 * + - 71 * + 77
----
-546293

query I rowsort
SELECT ALL - 94 + + 47 + 18 col1
----
-29

query II rowsort
SELECT DISTINCT + - 79 + + 67, 3 * - 86 AS col0
----
-12
-258

query I rowsort
SELECT DISTINCT + - 63 * + ( - 80 ) col0
----
5040

query I rowsort
SELECT - 0 * + 92 + - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL - COUNT( * ) + + 87 + 52
----
138

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL - COUNT ( * ) + + 87 + 52
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9957
SELECT ALL + + CAST( NULL AS SIGNED ) * 60, - 14 AS col1
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-9957
SELECT ALL + + CAST ( NULL AS INTEGER ) * 60, - 14 AS col1
----
NULL
-14

query I rowsort
SELECT ALL - + 50 + 96 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9959
SELECT - CASE 22 WHEN NULLIF ( 92, COUNT( * ) ) / AVG ( 99 ) - + CAST( - ( 65 ) AS SIGNED ) THEN NULL ELSE - ( 77 ) END AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9959
SELECT - CASE 22 WHEN NULLIF ( 92, COUNT ( * ) ) / AVG ( 99 ) - + CAST ( - ( 65 ) AS INTEGER ) THEN NULL ELSE - ( 77 ) END AS col2
----
77

query I rowsort
SELECT ALL 98 - 61 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9961
SELECT - COUNT( * ) + ( - COUNT( * ) ) - NULLIF ( 1, + CASE SUM( 19 ) WHEN - - CAST( NULL AS DECIMAL ) / - + 80 THEN NULL WHEN 17 THEN + + ( + 17 ) / + - 55 ELSE NULL END ) * - - 67
----
-69

skipif mysql # not compatible
query I rowsort label-9961
SELECT - COUNT ( * ) + ( - COUNT ( * ) ) - NULLIF ( 1, + CASE SUM ( 19 ) WHEN - - CAST ( NULL AS REAL ) / - + 80 THEN NULL WHEN 17 THEN + + ( + 17 ) / + - 55 ELSE NULL END ) * - - 67
----
-69

query I rowsort
SELECT - 80 - + 22 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT ALL 92 * COUNT( * ) * 9 * + + 5 AS col1, - COUNT( * ) AS col2
----
4140
-1

skipif mysql # not compatible
query II rowsort label-9963
SELECT ALL 92 * COUNT ( * ) * 9 * + + 5 AS col1, - COUNT ( * ) AS col2
----
4140
-1

query I rowsort
SELECT DISTINCT 10 - + 25 AS col0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9965
SELECT DISTINCT - 29 / CAST( NULL AS DECIMAL ) * + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT - 29 / CAST ( NULL AS REAL ) * + - 21
----
NULL

query II rowsort
SELECT ALL + 53 AS col2, - 34 + + 55 AS col0
----
53
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT + 50 * MAX( - NULLIF ( + 15, + 13 ) ) col0
----
-750

skipif mysql # not compatible
query I rowsort label-9967
SELECT + 50 * MAX ( - NULLIF ( + 15, + 13 ) ) col0
----
-750

query II rowsort
SELECT DISTINCT + 30, + 22 * + - ( - 61 ) AS col0
----
30
1342

query I rowsort
SELECT + 27 * + + 23 AS col1
----
621

query I rowsort
SELECT DISTINCT 91 * + + 48
----
4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9971
SELECT ALL MAX( 28 ) * + - 63 col2, 17 * COUNT( * ) * + CAST( + MIN( + - 53 ) AS SIGNED ) AS col2
----
-1764
-901

skipif mysql # not compatible
query II rowsort label-9971
SELECT ALL MAX ( 28 ) * + - 63 col2, 17 * COUNT ( * ) * + CAST ( + MIN ( + - 53 ) AS INTEGER ) AS col2
----
-1764
-901

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT + 14 DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9972
SELECT + 14 / + 66 AS col2
----
0

query I rowsort
SELECT + COALESCE ( + 52, + 92, ( + 47 ) ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT + 96 * - AVG ( DISTINCT - 9 ) / + CASE + COUNT( * ) WHEN + 63 - 14 THEN + CAST( NULL AS SIGNED ) + + AVG ( ALL - + 81 ) END * + 74 + - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT + 96 * - AVG ( DISTINCT - 9 ) / + CASE + COUNT ( * ) WHEN + 63 - 14 THEN + CAST ( NULL AS INTEGER ) + + AVG ( ALL - + 81 ) END * + 74 + - 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL - 94 / 89 + + 51 + + CASE - 66 WHEN - CASE COUNT( * ) WHEN - - 47 - + 10 THEN + 61 WHEN - 71 THEN - 97 + ( - 77 ) ELSE NULL END + - + 70 THEN NULL WHEN + + 21 * + 48 / ( - ( + COUNT( * ) ) ) THEN + + 74 END + - 88 + + 26 * + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL - 94 / 89 + + 51 + + CASE - 66 WHEN - CASE COUNT ( * ) WHEN - - 47 - + 10 THEN + 61 WHEN - 71 THEN - 97 + ( - 77 ) ELSE NULL END + - + 70 THEN NULL WHEN + + 21 * + 48 / ( - ( + COUNT ( * ) ) ) THEN + + 74 END + - 88 + + 26 * + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ( - - MAX( + + 14 ) ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9976
SELECT ( - - MAX ( + + 14 ) ) AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT - 77 * 73 + + 97 DIV + 11 AS col2
----
-5613

skipif mysql # not compatible
query I rowsort label-9977
SELECT - 77 * 73 + + 97 / + 11 AS col2
----
-5613

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT DISTINCT - 61 * + - 63 * - MIN( - 95 ) + - 20 + + + COUNT( * )
----
365066

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT - 61 * + - 63 * - MIN ( - 95 ) + - 20 + + + COUNT ( * )
----
365066

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT DISTINCT - 26 * - - COUNT( * ) + + - 31 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT - 26 * - - COUNT ( * ) + + - 31 AS col0
----
-57

query I rowsort
SELECT ALL + - 5 * + ( + + 86 ) - + 25 + + 59 + - - 51 AS col1
----
-345

query II rowsort
SELECT + - 95 AS col2, - ( + 14 ) AS col2
----
-95
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT MIN( + + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9982
SELECT MIN ( + + 61 )
----
61

query I rowsort
SELECT + 21 * + 82 AS col1
----
1722

onlyif mysql # aggregate syntax: 
query II rowsort label-9984
SELECT - MIN( DISTINCT - 49 ) * + 51, - 71 AS col1
----
2499
-71

skipif mysql # not compatible
query II rowsort label-9984
SELECT - MIN ( DISTINCT - 49 ) * + 51, - 71 AS col1
----
2499
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9985
SELECT DISTINCT + COUNT( * ) AS col0, NULLIF ( 28, + 23 ) AS col0
----
1
28

skipif mysql # not compatible
query II rowsort label-9985
SELECT DISTINCT + COUNT ( * ) AS col0, NULLIF ( 28, + 23 ) AS col0
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT + + COUNT( - CASE + ( - 95 ) WHEN - + 0 * + 32 * + 95 THEN + 2 WHEN - 22 * - + 92 - 79 + + 58 THEN - NULLIF ( 5, - 52 / 58 ) ELSE + 76 END ) - 30 * - 52 * - 11
----
-17159

skipif mysql # not compatible
query I rowsort label-9986
SELECT + + COUNT ( - CASE + ( - 95 ) WHEN - + 0 * + 32 * + 95 THEN + 2 WHEN - 22 * - + 92 - 79 + + 58 THEN - NULLIF ( 5, - 52 / 58 ) ELSE + 76 END ) - 30 * - 52 * - 11
----
-17159

query I rowsort
SELECT - + 86 * + 75
----
-6450

query I rowsort
SELECT ALL 89 * ( - - 27 ) + 53 + - 49 - 18 + + + 48
----
2437

onlyif mysql # DIV for integer division: 
query I rowsort label-9989
SELECT DISTINCT - 15 DIV - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT - 15 / - 52 AS col2
----
0

query I rowsort
SELECT DISTINCT + ( ( - 11 ) )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT ALL - 71 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - 71 / + 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9992
SELECT 12 * COUNT( * ) + 41, 23 AS col1
----
53
23

skipif mysql # not compatible
query II rowsort label-9992
SELECT 12 * COUNT ( * ) + 41, 23 AS col1
----
53
23

query I rowsort
SELECT 57 * + 28 col1
----
1596

query I rowsort
SELECT ALL + 88 * 25
----
2200

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT 2 DIV - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9995
SELECT 2 / - 18 AS col2
----
0

query I rowsort
SELECT DISTINCT - 25 * + - 77
----
1925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9997
SELECT 76 + CASE - 16 WHEN + 85 * 64 THEN + 91 * 38 / - + 69 END * - NULLIF ( - + 20, 26 ) * + 87 - + + ( 97 ) AS col0, CAST( NULL AS SIGNED ) * + + MIN( DISTINCT + 6 ) / MAX( + 38 ) + 23 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9997
SELECT 76 + CASE - 16 WHEN + 85 * 64 THEN + 91 * 38 / - + 69 END * - NULLIF ( - + 20, 26 ) * + 87 - + + ( 97 ) AS col0, CAST ( NULL AS INTEGER ) * + + MIN ( DISTINCT + 6 ) / MAX ( + 38 ) + 23 AS col2
----
NULL
NULL

query I rowsort
SELECT 82 * + 97 AS col2
----
7954

query I rowsort
SELECT ALL - 43 * + ( - NULLIF ( - + 40, 53 * - + 85 ) ) AS col0
----
-1720

