hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - 55 + - 37 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT MAX( - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1
SELECT MAX ( - 27 ) AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2
SELECT ALL CAST( - + 86 AS SIGNED ) + + - 80 AS col0
----
-166

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL CAST ( - + 86 AS INTEGER ) + + - 80 AS col0
----
-166

query I rowsort
SELECT + 76 * + 83 AS col1
----
6308

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL + CASE + 14 WHEN - 94 + - - 98 THEN NULL WHEN - ( + - COALESCE ( + COUNT( * ), 9 + ( + - NULLIF ( 7, + + 33 ) ) ) ) + 93 THEN - 89 + 37 WHEN 21 THEN NULL ELSE - 62 * - COUNT( * ) END * + 4
----
248

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + CASE + 14 WHEN - 94 + - - 98 THEN NULL WHEN - ( + - COALESCE ( + COUNT ( * ), 9 + ( + - NULLIF ( 7, + + 33 ) ) ) ) + 93 THEN - 89 + 37 WHEN 21 THEN NULL ELSE - 62 * - COUNT ( * ) END * + 4
----
248

query I rowsort
SELECT - NULLIF ( + 95, + 91 ) AS col1
----
-95

query I rowsort
SELECT ALL 40 * - 26
----
-1040

query II rowsort
SELECT + 45 * - 93 AS col1, 0
----
-4185
0

query I rowsort
SELECT + 16 * 9 * + ( + 21 ) col1
----
3024

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9
SELECT DISTINCT ( + 13 ) - - 79 AS col0, CAST( NULL AS SIGNED ) AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-9
SELECT DISTINCT ( + 13 ) - - 79 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
92
NULL

query I rowsort
SELECT DISTINCT 62 * + 69
----
4278

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

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

query I rowsort
SELECT DISTINCT ( 61 ) * - + 36
----
-2196

query II rowsort
SELECT ALL 61 * - COALESCE ( - 46, + 14, - 80 ), - 37 AS col0
----
2806
-37

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-17
SELECT + + 41 * 56 * + + 15 DIV COUNT( * )
----
34440

skipif mysql # not compatible
query I rowsort label-17
SELECT + + 41 * 56 * + + 15 / COUNT ( * )
----
34440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * 75 / + 56 + + - 55 + 45 + + + ( - ( + - 17 ) ) + COALESCE ( - CAST( + 90 AS SIGNED ), 97, + 21 ) + - 19 * - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 75 / + 56 + + - 55 + 45 + + + ( - ( + - 17 ) ) + COALESCE ( - CAST ( + 90 AS INTEGER ), 97, + 21 ) + - 19 * - 82 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + MAX ( - CAST ( - 0 AS INTEGER ) ) / 19 * - 33 + - - COUNT ( * ) * + - 19
----
-19

query I rowsort
SELECT - 65 * - 86 col1
----
5590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-21
SELECT ALL + + 29 * 88 + 32 * - - ( 52 ) + + - CAST( + + ( + - 35 ) AS SIGNED )
----
4251

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL + + 29 * 88 + 32 * - - ( 52 ) + + - CAST ( + + ( + - 35 ) AS INTEGER )
----
4251

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT + MIN( + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-22
SELECT + MIN ( + 83 ) AS col2
----
83

query I rowsort
SELECT ALL + 28 * 64 + + 29
----
1821

query I rowsort
SELECT DISTINCT + + ( + NULLIF ( 28, - 99 * + + 79 ) ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 96 * 71 + - 63 + 56
----
-6823

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

query I rowsort
SELECT ALL 64 * NULLIF ( - ( + 74 ), - - 36 )
----
-4736

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT - NULLIF ( - 13, - - CASE - - 28 WHEN - 71 THEN - MAX( + 15 ) END )
----
13

skipif mysql # not compatible
query I rowsort label-29
SELECT - NULLIF ( - 13, - - CASE - - 28 WHEN - 71 THEN - MAX ( + 15 ) END )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT - 16 + + 6 + - 36 * - + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-30
SELECT - 16 + + 6 + - 36 * - + COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT + COALESCE ( - NULLIF ( - - COALESCE ( + 67, 52 ), ( COUNT( 20 ) ) ), + + ( - COUNT( * ) ) DIV - + 44 * + 99, - - COUNT( * ) * ( + ( + 13 ) * 60 ) ) * + 47
----
-3149

skipif mysql # not compatible
query I rowsort label-31
SELECT + COALESCE ( - NULLIF ( - - COALESCE ( + 67, 52 ), ( COUNT ( 20 ) ) ), + + ( - COUNT ( * ) ) / - + 44 * + 99, - - COUNT ( * ) * ( + ( + 13 ) * 60 ) ) * + 47
----
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT ALL - 21 * + 71 * + COUNT( * ) AS col0
----
-1491

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL - 21 * + 71 * + COUNT ( * ) AS col0
----
-1491

query I rowsort
SELECT - 73 * + + 39 * + 3 + - - 78 + - 79 * - - 39 * - 54
----
157911

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + COUNT( ALL 83 ) - - + 99 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-34
SELECT + COUNT ( ALL 83 ) - - + 99 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT - MAX( + - CAST( + 99 AS SIGNED ) ) col2
----
99

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

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

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

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

query I rowsort
SELECT + 92 * + 85 AS col1
----
7820

query II rowsort
SELECT DISTINCT 17 AS col0, 57 * + 92
----
17
5244

query II rowsort
SELECT 63 + 29 + - 18, 78 + - 98 AS col2
----
74
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT ALL 50 DIV + - ( + + 6 )
----
-8

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL 50 / + - ( + + 6 )
----
-8

query I rowsort
SELECT 70 * - + 31 * - 70
----
151900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-43
SELECT ALL 14 DIV + - 23 * + MIN( - 40 ) * ( - 47 ) DIV + 80 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL 14 / + - 23 * + MIN ( - 40 ) * ( - 47 ) / + 80 + - + COUNT ( * ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT 59 DIV ( - - 24 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-44
SELECT 59 / ( - - 24 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT MAX( ALL 50 ) * + - 63 AS col0
----
-3150

skipif mysql # not compatible
query I rowsort label-45
SELECT MAX ( ALL 50 ) * + - 63 AS col0
----
-3150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL 80 + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL 80 + + COUNT ( * )
----
81

query I rowsort
SELECT + ( - - 45 ) - + 8 * + - 11
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-49
SELECT ALL NULLIF ( + + 0, 24 DIV - COUNT( - 9 ) * + - 15 - MAX( 84 ) ) * + 76 DIV - + ( - 75 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL NULLIF ( + + 0, 24 / - COUNT ( - 9 ) * + - 15 - MAX ( 84 ) ) * + 76 / - + ( - 75 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT DISTINCT 28 + - + 13 * MAX( - - ( 85 ) ) * + COALESCE ( + 75, - - 68 )
----
-82847

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT 28 + - + 13 * MAX ( - - ( 85 ) ) * + COALESCE ( + 75, - - 68 )
----
-82847

query I rowsort
SELECT ALL + 48 + 62 AS col2
----
110

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-53
SELECT + ( CAST( NULL AS SIGNED ) ) * - 81 / 69 - - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT + ( CAST ( NULL AS INTEGER ) ) * - 81 / 69 - - + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT SUM( ALL + 99 ) col1
----
99

skipif mysql # not compatible
query I rowsort label-54
SELECT SUM ( ALL + 99 ) col1
----
99

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

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL - + 22 - + + COUNT ( * ) AS col0
----
-23

query I rowsort
SELECT + ( 76 ) * - 72 AS col0
----
-5472

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT ALL 53 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL 53 / + 49
----
1

query I rowsort
SELECT ALL - - 22 * - 35 * 95 * - + 52 + - ( - 78 ) AS col1
----
3803878

query I rowsort
SELECT + 2 * 11
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT 38 + - COALESCE ( 23, + 59 * 33, + COUNT( * ) + - MAX( 68 ) * 8 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-61
SELECT 38 + - COALESCE ( 23, + 59 * 33, + COUNT ( * ) + - MAX ( 68 ) * 8 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL - CASE + 88 WHEN + + 94 THEN - - 49 WHEN - + 85 * 30 / ( - 70 ) * - 19 / - 92 + - COUNT( * ) * - 64 THEN - - 62 / 98 - - 63 * 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL - CASE + 88 WHEN + + 94 THEN - - 49 WHEN - + 85 * 30 / ( - 70 ) * - 19 / - 92 + - COUNT ( * ) * - 64 THEN - - 62 / 98 - - 63 * 91 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-63
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT 34 * + NULLIF ( MAX( ALL + + 90 ), + COALESCE ( - + ( 51 ), - COUNT( * ) ) + + - 30 - - 71 * 23 * + - 23 * - 56 * - COUNT( * ) ) + ( - COUNT( * ) ) * + 13 AS col2
----
3047

skipif mysql # not compatible
query I rowsort label-64
SELECT 34 * + NULLIF ( MAX ( ALL + + 90 ), + COALESCE ( - + ( 51 ), - COUNT ( * ) ) + + - 30 - - 71 * 23 * + - 23 * - 56 * - COUNT ( * ) ) + ( - COUNT ( * ) ) * + 13 AS col2
----
3047

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT 25 * 54 + - COUNT( * )
----
1349

skipif mysql # not compatible
query I rowsort label-65
SELECT 25 * 54 + - COUNT ( * )
----
1349

query II rowsort
SELECT 25 * + 36 AS col2, 32
----
900
32

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT 35 * 93 DIV + - 42 col0
----
-77

skipif mysql # not compatible
query I rowsort label-67
SELECT 35 * 93 / + - 42 col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT 73 + + 23 DIV + + ( + - 60 )
----
73

skipif mysql # not compatible
query I rowsort label-68
SELECT 73 + + 23 / + + ( + - 60 )
----
73

query I rowsort
SELECT 60 + 81 * 93 AS col1
----
7593

query I rowsort
SELECT DISTINCT 9 * - + 76 AS col1
----
-684

onlyif mysql # aggregate syntax: 
query II rowsort label-71
SELECT 53 - + - 38 col0, - COUNT( * )
----
91
-1

skipif mysql # not compatible
query II rowsort label-71
SELECT 53 - + - 38 col0, - COUNT ( * )
----
91
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT DISTINCT - 72 + CAST( NULL AS SIGNED ) / - + 32 + - 96 + CASE 30 WHEN - - 90 * - - 1 + - 58 * - COUNT( * ) - - 11 THEN 99 + - 82 * - - 38 END * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT - 72 + CAST ( NULL AS INTEGER ) / - + 32 + - 96 + CASE 30 WHEN - - 90 * - - 1 + - 58 * - COUNT ( * ) - - 11 THEN 99 + - 82 * - - 38 END * 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-73
SELECT ALL 8 + - SUM( ALL CAST( NULL AS SIGNED ) ) + 80 * MAX( - 45 ) + - + CAST( + - 76 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL 8 + - SUM ( ALL CAST ( NULL AS INTEGER ) ) + 80 * MAX ( - 45 ) + - + CAST ( + - 76 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-74
SELECT 70 * SUM( DISTINCT 33 ) * - - 70 - + 38 AS col0, + 28 AS col0
----
161662
28

skipif mysql # not compatible
query II rowsort label-74
SELECT 70 * SUM ( DISTINCT 33 ) * - - 70 - + 38 AS col0, + 28 AS col0
----
161662
28

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT + 47 + + 94 + - COUNT( * ) * - 57 AS col1
----
198

skipif mysql # not compatible
query I rowsort label-75
SELECT + 47 + + 94 + - COUNT ( * ) * - 57 AS col1
----
198

query I rowsort
SELECT ALL - - 58 + 0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-77
SELECT ALL NULLIF ( - - CAST( NULL AS SIGNED ), + COUNT( * ) / 49 - + 19 - + 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL NULLIF ( - - CAST ( NULL AS INTEGER ), + COUNT ( * ) / 49 - + 19 - + 2 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-78
SELECT DISTINCT 96 DIV 36, 47 * + 25 col0
----
2
1175

skipif mysql # not compatible
query II rowsort label-78
SELECT DISTINCT 96 / 36, 47 * + 25 col0
----
2
1175

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-79
SELECT ALL 0 + + COALESCE ( + 33, 85 - + 50 + - + 76 DIV + + 31 + + + CAST( + + 53 AS SIGNED ) ) * - 82 * + - 98
----
265188

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL 0 + + COALESCE ( + 33, 85 - + 50 + - + 76 / + + 31 + + + CAST ( + + 53 AS INTEGER ) ) * - 82 * + - 98
----
265188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT - 84 + - + 48 * + 99 * COUNT( * ) + + 64 + + CASE 48 WHEN - 32 * - 16 * MAX( COALESCE ( + - 14, + + 97 ) ) THEN - 99 WHEN + 46 THEN COUNT( * ) ELSE NULL END + 90 * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT - 84 + - + 48 * + 99 * COUNT ( * ) + + 64 + + CASE 48 WHEN - 32 * - 16 * MAX ( COALESCE ( + - 14, + + 97 ) ) THEN - 99 WHEN + 46 THEN COUNT ( * ) ELSE NULL END + 90 * COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT COALESCE ( 30, + COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-82
SELECT COALESCE ( 30, + COUNT ( * ) )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-83
SELECT - 91 DIV 50 + + + 88
----
87

skipif mysql # not compatible
query I rowsort label-83
SELECT - 91 / 50 + + + 88
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT ALL + - NULLIF ( - - 91, - CAST( NULL AS SIGNED ) ) * + + 96 - 65 AS col0
----
-8801

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL + - NULLIF ( - - 91, - CAST ( NULL AS INTEGER ) ) * + + 96 - 65 AS col0
----
-8801

query I rowsort
SELECT DISTINCT 42 * - 8 * - 40
----
13440

query I rowsort
SELECT ALL + ( - + 48 ) * - 75 - - 17 AS col1
----
3617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-87
SELECT DISTINCT + - COUNT( * ) * + - 29 - + 19 + + 79 DIV - 60 + + + 30 + + 34 + + - 51 * - + 2 * COUNT( * )
----
175

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT + - COUNT ( * ) * + - 29 - + 19 + + 79 / - 60 + + + 30 + + 34 + + - 51 * - + 2 * COUNT ( * )
----
175

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-89
SELECT COUNT( * ) * - ( + 37 ) AS col0, - 85 + + 26 col1
----
-37
-59

skipif mysql # not compatible
query II rowsort label-89
SELECT COUNT ( * ) * - ( + 37 ) AS col0, - 85 + + 26 col1
----
-37
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT COUNT( + - 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-90
SELECT COUNT ( + - 83 ) AS col0
----
1

query I rowsort
SELECT ALL + COALESCE ( - 20, 25 * - 62, 94 + - 80 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT COUNT( + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-92
SELECT COUNT ( + 57 )
----
1

query I rowsort
SELECT + 63 - - ( + NULLIF ( + 68, + - 86 ) ) + + 94
----
225

query I rowsort
SELECT ALL + 58 * 14 AS col1
----
812

query II rowsort
SELECT + 6 AS col2, + 71 * - 55 AS col0
----
6
-3905

query I rowsort
SELECT DISTINCT + 40 * - 66 AS col2
----
-2640

query II rowsort
SELECT - 64 AS col0, + 40 AS col1
----
-64
40

query I rowsort
SELECT ALL + 58 * 56
----
3248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-99
SELECT + COUNT( * ) DIV - 90 * + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-99
SELECT + COUNT ( * ) / - 90 * + 95 AS col0
----
0

query I rowsort
SELECT + 21 * + 27
----
567

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

skipif mysql # not compatible
query I rowsort label-101
SELECT - 3 / + 98
----
0

query I rowsort
SELECT - 61 * + 0
----
0

query II rowsort
SELECT 10, 48 + 57 AS col2
----
10
105

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT ALL 79 * + 49 * - COUNT( * ) AS col0
----
-3871

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL 79 * + 49 * - COUNT ( * ) AS col0
----
-3871

query I rowsort
SELECT DISTINCT 38 + + 99
----
137

query I rowsort
SELECT - + 3 + 7 + + + 86 AS col0
----
90

query II rowsort
SELECT ALL + 26 AS col0, - 68 AS col0
----
26
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - - COUNT( * ) + + 13 col2
----
14

skipif mysql # not compatible
query I rowsort label-108
SELECT - - COUNT ( * ) + + 13 col2
----
14

query II rowsort
SELECT ALL - - 56 + CASE 9 WHEN 56 * - AVG ( - + NULLIF ( 80, - 94 - 29 ) ) / 53 + 40 THEN NULL ELSE - + 86 * + - 24 END AS col1, 12 + 37 + 68
----
2120
117

query I rowsort
SELECT - 72 * + - 74
----
5328

query I rowsort
SELECT - COALESCE ( + 9, 53 )
----
-9

query I rowsort
SELECT - + 60 - 20 + + - 40 + 41 * 59 * + 93 col1
----
224847

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT - - COUNT( * ) * - COALESCE ( - 39, + 17 ) + - 40 + - CASE + 86 WHEN - 26 THEN + 96 END * 56 * - - CASE - 71 WHEN - 78 THEN NULL WHEN + 3 THEN + ( + 79 ) END + - COALESCE ( 78, 45 + - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-113
SELECT - - COUNT ( * ) * - COALESCE ( - 39, + 17 ) + - 40 + - CASE + 86 WHEN - 26 THEN + 96 END * 56 * - - CASE - 71 WHEN - 78 THEN NULL WHEN + 3 THEN + ( + 79 ) END + - COALESCE ( 78, 45 + - 76 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT ALL + 96 * - 80 + - + 53 DIV - NULLIF ( - + 67, 19 ) col0
----
-7680

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL + 96 * - 80 + - + 53 / - NULLIF ( - + 67, 19 ) col0
----
-7680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT - 48 - + - 45 + - COUNT( ALL - 99 ) + + + ( - COUNT( * ) ) + + CASE CAST( 78 AS SIGNED ) WHEN - 11 + + COUNT( * ) THEN - CAST( NULL AS SIGNED ) * 33 / - - 17 WHEN - - MAX( ( - 4 ) ) + + 43 THEN NULL WHEN - CASE CASE + 93 WHEN - 74 * 18 THEN NULL ELSE - 41 + 4 END WHEN 0 THEN NULL ELSE 78 END THEN NULL ELSE NULL END * + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT - 48 - + - 45 + - COUNT ( ALL - 99 ) + + + ( - COUNT ( * ) ) + + CASE CAST ( 78 AS INTEGER ) WHEN - 11 + + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) * 33 / - - 17 WHEN - - MAX ( ( - 4 ) ) + + 43 THEN NULL WHEN - CASE CASE + 93 WHEN - 74 * 18 THEN NULL ELSE - 41 + 4 END WHEN 0 THEN NULL ELSE 78 END THEN NULL ELSE NULL END * + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT - ( COALESCE ( - ( + 74 ), + 1 + COUNT( * ) ) ) + + + 36 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-116
SELECT - ( COALESCE ( - ( + 74 ), + 1 + COUNT ( * ) ) ) + + + 36 AS col2
----
110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-117
SELECT ALL ( + 98 ) DIV + + 23 col2, CAST( NULL AS SIGNED ) * 99
----
4
NULL

skipif mysql # not compatible
query II rowsort label-117
SELECT ALL ( + 98 ) / + + 23 col2, CAST ( NULL AS INTEGER ) * 99
----
4
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT + + CAST ( - 53 AS INTEGER ) AS col2
----
-53

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

skipif mysql # not compatible
query I rowsort label-120
SELECT + 2 / + + COUNT ( * )
----
2

query I rowsort
SELECT + 69 * + + 41
----
2829

query I rowsort
SELECT ALL 98 * + ( 90 ) + + 75 + + 22 AS col2
----
8917

onlyif mysql # aggregate syntax: 
query II rowsort label-123
SELECT ALL - 58 * - 82 + + 62 - + COUNT( * ), 13 + - + 72 AS col1
----
4817
-59

skipif mysql # not compatible
query II rowsort label-123
SELECT ALL - 58 * - 82 + + 62 - + COUNT ( * ), 13 + - + 72 AS col1
----
4817
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT ALL 41 * - 43 * - - SUM( DISTINCT + + 64 ) + - 93
----
-112925

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL 41 * - 43 * - - SUM ( DISTINCT + + 64 ) + - 93
----
-112925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT CASE + CAST( ( - + CASE + 1 WHEN - - CASE - + 31 WHEN 86 THEN NULL ELSE + 3 + + + 75 + 85 * - 17 + - CAST( NULL AS SIGNED ) - + 89 END + - + 42 THEN NULL ELSE COUNT( * ) * 64 END ) AS SIGNED ) WHEN - 25 THEN CAST( NULL AS SIGNED ) WHEN + ( 10 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT CASE + CAST ( ( - + CASE + 1 WHEN - - CASE - + 31 WHEN 86 THEN NULL ELSE + 3 + + + 75 + 85 * - 17 + - CAST ( NULL AS INTEGER ) - + 89 END + - + 42 THEN NULL ELSE COUNT ( * ) * 64 END ) AS INTEGER ) WHEN - 25 THEN CAST ( NULL AS INTEGER ) WHEN + ( 10 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT - 85 + COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-126
SELECT - 85 + COUNT ( * ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT CASE + COALESCE ( ( - 79 ), + 61, + 84 ) WHEN + 90 THEN - 66 - - - 29 - 6 + 35 + - 11 * 7 + - - COUNT( * ) + 4 - + + ( + 9 ) + 46 * 33 * + 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-127
SELECT CASE + COALESCE ( ( - 79 ), + 61, + 84 ) WHEN + 90 THEN - 66 - - - 29 - 6 + 35 + - 11 * 7 + - - COUNT ( * ) + 4 - + + ( + 9 ) + 46 * 33 * + 37 ELSE NULL END
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-130
SELECT ALL + 9 * 28 - - 75 / + CAST( NULL AS SIGNED ) + + + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + 9 * 28 - - 75 / + CAST ( NULL AS INTEGER ) + + + 54 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-131
SELECT DISTINCT + + 82 - + COUNT( * ) / + ( + + ( + + ( 7 ) ) ) * COUNT( * ) - + 82 + + + SUM( - CAST( NULL AS SIGNED ) ) * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT + + 82 - + COUNT ( * ) / + ( + + ( + + ( 7 ) ) ) * COUNT ( * ) - + 82 + + + SUM ( - CAST ( NULL AS INTEGER ) ) * 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL - + NULLIF ( COUNT( * ), + 27 + - - 27 * + 46 ) - + 48
----
-49

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL - + NULLIF ( COUNT ( * ), + 27 + - - 27 * + 46 ) - + 48
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT ALL SUM( - + 91 ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL SUM ( - + 91 ) col2
----
-91

query I rowsort
SELECT + 87 - 36 AS col0
----
51

query I rowsort
SELECT - + 75 + - + 43 AS col2
----
-118

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

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

query I rowsort
SELECT - 79 + - 85
----
-164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT DISTINCT CASE + - MIN( - 49 ) WHEN 45 * - + 13 THEN NULL WHEN - 75 THEN COUNT( DISTINCT + COALESCE ( - 61, + 34 ) ) * + - CASE - 48 WHEN + 58 THEN - 72 * - 54 * + + 49 + COUNT( * ) WHEN - 37 + NULLIF ( COUNT( * ), + 13 ) THEN 71 END ELSE 36 END
----
36

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT CASE + - MIN ( - 49 ) WHEN 45 * - + 13 THEN NULL WHEN - 75 THEN COUNT ( DISTINCT + COALESCE ( - 61, + 34 ) ) * + - CASE - 48 WHEN + 58 THEN - 72 * - 54 * + + 49 + COUNT ( * ) WHEN - 37 + NULLIF ( COUNT ( * ), + 13 ) THEN 71 END ELSE 36 END
----
36

query I rowsort
SELECT - - 48 + 58
----
106

query I rowsort
SELECT - - 90 * 86 + + 88 * 35
----
10820

query I rowsort
SELECT - CASE - + 5 WHEN - - ( 71 ) THEN + 12 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT - + CASE 14 WHEN - MIN( DISTINCT CAST( NULL AS SIGNED ) ) + + - ( + 46 ) - + 22 + - COUNT( * ) * - CAST( NULL AS SIGNED ) THEN + 60 END + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT - + CASE 14 WHEN - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + + - ( + 46 ) - + 22 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN + 60 END + - 12 AS col2
----
NULL

query I rowsort
SELECT ALL + + 61 * - - 18 AS col2
----
1098

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT ( - 75 ) * + COUNT( * ) * - 16 AS col2, 41 + - - COUNT( * )
----
1200
42

skipif mysql # not compatible
query II rowsort label-145
SELECT ( - 75 ) * + COUNT ( * ) * - 16 AS col2, 41 + - - COUNT ( * )
----
1200
42

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT + 0 DIV - ( + 28 ) + + 58
----
58

skipif mysql # not compatible
query I rowsort label-146
SELECT + 0 / - ( + 28 ) + + 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ALL - 3 + + 64 + 30 * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL - 3 + + 64 + 30 * COUNT ( * )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-148
SELECT ALL 34 + + NULLIF ( - 72, 27 * - - ( - + SUM( ALL 94 ) ) * + CAST( - + 67 AS SIGNED ) + + + 52 - + - 46 / - - 61 + 71 + + COUNT( * ) * 14 + - 73 )
----
-38

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL 34 + + NULLIF ( - 72, 27 * - - ( - + SUM ( ALL 94 ) ) * + CAST ( - + 67 AS INTEGER ) + + + 52 - + - 46 / - - 61 + 71 + + COUNT ( * ) * 14 + - 73 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-149
SELECT 4 * - CAST( NULL AS SIGNED ) - + + 84 * + 86 - + SUM( DISTINCT + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT 4 * - CAST ( NULL AS INTEGER ) - + + 84 * + 86 - + SUM ( DISTINCT + 33 )
----
NULL

query I rowsort
SELECT 63 * - 90 AS col0
----
-5670

query I rowsort
SELECT ALL 92 + - - 53 AS col0
----
145

query I rowsort
SELECT DISTINCT 50 * - 52 * 7 AS col0
----
-18200

onlyif mysql # aggregate syntax: 
query II rowsort label-153
SELECT 79 * + 58 AS col2, COUNT( - 40 ) + - - COUNT( * )
----
4582
2

skipif mysql # not compatible
query II rowsort label-153
SELECT 79 * + 58 AS col2, COUNT ( - 40 ) + - - COUNT ( * )
----
4582
2

query I rowsort
SELECT ALL 85 * - 27
----
-2295

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-156
SELECT MIN( - - 80 ) - + + 87 + 27 DIV + 30 * + 30 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-156
SELECT MIN ( - - 80 ) - + + 87 + 27 / + 30 * + 30 AS col1
----
-7

query I rowsort
SELECT ALL - ( ( - - 70 ) )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-158
SELECT + COALESCE ( 51, + 78, + NULLIF ( + CAST( NULL AS SIGNED ), - 72 ) + COALESCE ( 44, + + ( + NULLIF ( 18, - + 38 * + - 5 ) ), + 8 ) ) * 89 + 33 + - 78 + 9 AS col1
----
4503

skipif mysql # not compatible
query I rowsort label-158
SELECT + COALESCE ( 51, + 78, + NULLIF ( + CAST ( NULL AS INTEGER ), - 72 ) + COALESCE ( 44, + + ( + NULLIF ( 18, - + 38 * + - 5 ) ), + 8 ) ) * 89 + 33 + - 78 + 9 AS col1
----
4503

query I rowsort
SELECT 22 * - 24 + + 61 AS col1
----
-467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT CAST( 63 AS SIGNED ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-160
SELECT CAST ( 63 AS INTEGER ) AS col0
----
63

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

skipif mysql # not compatible
query I rowsort label-161
SELECT 2 * ( + 60 ) + - + COUNT ( * ) AS col0
----
119

query I rowsort
SELECT 81 + + - 91 AS col2
----
-10

query I rowsort
SELECT - 66 * - 29 AS col1
----
1914

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT 73 DIV 76 * 90 col0
----
0

skipif mysql # not compatible
query I rowsort label-164
SELECT 73 / 76 * 90 col0
----
0

query I rowsort
SELECT + 32 - 80 * + 43
----
-3408

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL + 71 + - - ( - 15 ) * - + COUNT( + 65 ) + + + 53 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + 71 + - - ( - 15 ) * - + COUNT ( + 65 ) + + + 53 AS col1
----
139

query I rowsort
SELECT 54 + - - 91 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT 63 + + COUNT( * ) + - - 27 * + 3 - - 38
----
183

skipif mysql # not compatible
query I rowsort label-168
SELECT 63 + + COUNT ( * ) + - - 27 * + 3 - - 38
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-169
SELECT ALL - 99 + + ( 79 ) / + CASE - NULLIF ( + - 32, + 11 ) WHEN + 27 * - - COUNT( * ) * - + 40 * - SUM( 18 ) / - 69 + COALESCE ( + + 12, + - COUNT( * ) * + - 83 ) THEN NULL WHEN ( 5 ) THEN + 3 WHEN - COUNT( * ) THEN CAST( NULL AS SIGNED ) * COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - 99 + + ( 79 ) / + CASE - NULLIF ( + - 32, + 11 ) WHEN + 27 * - - COUNT ( * ) * - + 40 * - SUM ( 18 ) / - 69 + COALESCE ( + + 12, + - COUNT ( * ) * + - 83 ) THEN NULL WHEN ( 5 ) THEN + 3 WHEN - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * COUNT ( * ) ELSE NULL END AS col2
----
NULL

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

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

query II rowsort
SELECT + 46 AS col2, - ( + + 6 ) AS col1
----
46
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT 36 DIV 28 - - 77 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-172
SELECT 36 / 28 - - 77 AS col2
----
78

query I rowsort
SELECT 69 * - 80 AS col2
----
-5520

query II rowsort
SELECT + 57 AS col0, + 62 AS col2
----
57
62

query I rowsort
SELECT - 26 * - 56 + + 2 + - 22 col1
----
1436

query I rowsort
SELECT DISTINCT - 54 - 6
----
-60

query I rowsort
SELECT DISTINCT - NULLIF ( + ( - 91 ), 15 ) AS col0
----
91

query I rowsort
SELECT 98 + - - 31 - - - 21 + - 22 * + + 9 * 4 * + 45 + 63 AS col1
----
-35469

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT 78 DIV 36 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-179
SELECT 78 / 36 AS col0
----
2

query I rowsort
SELECT 14 * 79 AS col0
----
1106

query I rowsort
SELECT 64 * 19 + - 41 AS col0
----
1175

query I rowsort
SELECT 60 + + - 59 + 68 col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT 47 DIV + - 21 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-183
SELECT 47 / + - 21 AS col2
----
-2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT DISTINCT - - 7 DIV - 8 - + + 25 * + + 47 AS col1
----
-1175

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT - - 7 / - 8 - + + 25 * + + 47 AS col1
----
-1175

query I rowsort
SELECT + 1 + - + 97 col0
----
-96

query I rowsort
SELECT + 40 * - 91 + 7 + + NULLIF ( + - NULLIF ( ( 85 ), 83 ), + ( - 14 ) )
----
-3718

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

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

query I rowsort
SELECT + 64 + + - ( 1 )
----
63

query I rowsort
SELECT COALESCE ( + 43, + ( + 90 ), - + 21 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-191
SELECT + + ( 46 ) + CASE CAST( NULL AS SIGNED ) WHEN - 26 * 10 - - - 93 * + - 97 * + - 83 * + 51 * + 15 THEN NULL WHEN + + 25 * CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) THEN - 80 END + SUM( - + 3 ) * - - 45 / + 74 - CASE 95 WHEN AVG ( ALL + 13 ) / 57 THEN - 59 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-191
SELECT + + ( 46 ) + CASE CAST ( NULL AS INTEGER ) WHEN - 26 * 10 - - - 93 * + - 97 * + - 83 * + 51 * + 15 THEN NULL WHEN + + 25 * CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) THEN - 80 END + SUM ( - + 3 ) * - - 45 / + 74 - CASE 95 WHEN AVG ( ALL + 13 ) / 57 THEN - 59 END AS col1
----
NULL

query I rowsort
SELECT + - 71 + + - 63
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT + + 96 + + 8 - - + 70 DIV - 24 col0
----
102

skipif mysql # not compatible
query I rowsort label-193
SELECT + + 96 + + 8 - - + 70 / - 24 col0
----
102

query I rowsort
SELECT + + 38 - + + 3 + + - 86 + 44 AS col1
----
-7

query II rowsort
SELECT ALL 92 AS col2, 15 + 59 + - + 86 + - 76 AS col0
----
92
-88

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

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT MIN ( DISTINCT - 8 )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-197
SELECT + 28 * 18 DIV - 22
----
-22

skipif mysql # not compatible
query I rowsort label-197
SELECT + 28 * 18 / - 22
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT + NULLIF ( - + 47, - + MAX( DISTINCT + - 8 ) / - 93 * AVG ( ALL + + 78 ) ) * + - 99 AS col1
----
4653

skipif mysql # not compatible
query I rowsort label-199
SELECT + NULLIF ( - + 47, - + MAX ( DISTINCT + - 8 ) / - 93 * AVG ( ALL + + 78 ) ) * + - 99 AS col1
----
4653

query I rowsort
SELECT ALL 16 * + + 64 AS col1
----
1024

query I rowsort
SELECT ALL 75 * - 75 AS col0
----
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-202
SELECT 77 DIV - 4 + + 43 * - 58
----
-2513

skipif mysql # not compatible
query I rowsort label-202
SELECT 77 / - 4 + + 43 * - 58
----
-2513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-203
SELECT ALL 66 * - COUNT( * ) DIV - 70 - + NULLIF ( + 89, 85 + + MAX( 0 ) * + 8 ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL 66 * - COUNT ( * ) / - 70 - + NULLIF ( + 89, 85 + + MAX ( 0 ) * + 8 ) col1
----
-89

query I rowsort
SELECT + 74 * + 49 AS col2
----
3626

query I rowsort
SELECT ALL 80 * + + 94 col1
----
7520

query I rowsort
SELECT DISTINCT - 27 * + - 91 - - - 37
----
2420

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-208
SELECT + 22 * + CAST( NULL AS DECIMAL ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT + 22 * + CAST ( NULL AS REAL ) - + + COUNT ( * )
----
NULL

query I rowsort
SELECT NULLIF ( - + ( - 49 ), + 1 )
----
49

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

skipif mysql # not compatible
query I rowsort label-210
SELECT + 8 * + - COUNT ( * ) * 8 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-211
SELECT + CAST( - 97 AS SIGNED ) + 83 * COUNT( * ) + - 73
----
-87

skipif mysql # not compatible
query I rowsort label-211
SELECT + CAST ( - 97 AS INTEGER ) + 83 * COUNT ( * ) + - 73
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT + + CAST( + 10 AS SIGNED ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-212
SELECT + + CAST ( + 10 AS INTEGER ) AS col2
----
10

query I rowsort
SELECT ALL - 24 * 3 * - ( 99 ) AS col0
----
7128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-214
SELECT - - NULLIF ( + - 16, + - 64 + CAST( NULL AS SIGNED ) / 35 ) - + + ( + 75 ), 63 + - 32 AS col1
----
-91
31

skipif mysql # not compatible
query II rowsort label-214
SELECT - - NULLIF ( + - 16, + - 64 + CAST ( NULL AS INTEGER ) / 35 ) - + + ( + 75 ), 63 + - 32 AS col1
----
-91
31

onlyif mysql # aggregate syntax: 
query III rowsort label-215
SELECT - COUNT( * ) * + 71 - 17 * 40, - 74 AS col1, + 97 AS col0
----
-751
-74
97

skipif mysql # not compatible
query III rowsort label-215
SELECT - COUNT ( * ) * + 71 - 17 * 40, - 74 AS col1, + 97 AS col0
----
-751
-74
97

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT DISTINCT - CASE 44 WHEN + - AVG ( DISTINCT 18 ) THEN NULL WHEN 45 * - 93 * + 6 THEN + 51 ELSE - 12 END * CASE + + AVG ( + - 55 ) WHEN - - 35 THEN NULL WHEN 31 / - 57 THEN NULL ELSE COUNT( * ) END * 87 AS col1
----
1044

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT - CASE 44 WHEN + - AVG ( DISTINCT 18 ) THEN NULL WHEN 45 * - 93 * + 6 THEN + 51 ELSE - 12 END * CASE + + AVG ( + - 55 ) WHEN - - 35 THEN NULL WHEN 31 / - 57 THEN NULL ELSE COUNT ( * ) END * 87 AS col1
----
1044

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT - COALESCE ( + 81, + 95 DIV 89 ) DIV - 39
----
2

skipif mysql # not compatible
query I rowsort label-217
SELECT - COALESCE ( + 81, + 95 / 89 ) / - 39
----
2

query I rowsort
SELECT ALL + + 48 * - 12 * - - 1 + - 68 AS col0
----
-644

query I rowsort
SELECT - 56 + - - 94 AS col1
----
38

query I rowsort
SELECT - 46 * - 89 + + 36
----
4130

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

skipif mysql # not compatible
query I rowsort label-221
SELECT + + 86 / - 55
----
-1

query I rowsort
SELECT + 52 - - 57 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT - - SUM( 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-223
SELECT - - SUM ( 97 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-224
SELECT ALL - + 16 + + CAST( NULL AS SIGNED ) * CAST( + - 80 AS SIGNED ) AS col1, - 17 - 61 DIV - + 32
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-224
SELECT ALL - + 16 + + CAST ( NULL AS INTEGER ) * CAST ( + - 80 AS INTEGER ) AS col1, - 17 - 61 / - + 32
----
NULL
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL CASE 13 WHEN + 91 + 10 + 35 + - ( 52 ) * + 52 - + 84 * 30 / 31 - + 75 THEN NULL WHEN + 34 * COUNT( * ) THEN + COUNT( * ) END * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL CASE 13 WHEN + 91 + 10 + 35 + - ( 52 ) * + 52 - + 84 * 30 / 31 - + 75 THEN NULL WHEN + 34 * COUNT ( * ) THEN + COUNT ( * ) END * + 9
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( + 48, + + 73 + 13 + + + 32 + 95 * + 78 * - 62 - 62 ) + - + 48 AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT - 87 * 4 DIV + 26
----
-13

skipif mysql # not compatible
query I rowsort label-228
SELECT - 87 * 4 / + 26
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT + COUNT( * ) * + 56 * 77 AS col0
----
4312

skipif mysql # not compatible
query I rowsort label-229
SELECT + COUNT ( * ) * + 56 * 77 AS col0
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT + SUM( - 3 ) + + 80 * 68 AS col1
----
5437

skipif mysql # not compatible
query I rowsort label-230
SELECT + SUM ( - 3 ) + + 80 * 68 AS col1
----
5437

query I rowsort
SELECT + 51 + + 15 col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-232
SELECT ALL COUNT( * ) * - ( - + 81 ) DIV 6
----
13

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL COUNT ( * ) * - ( - + 81 ) / 6
----
13

query I rowsort
SELECT + 44 * + 69 * + 80 col2
----
242880

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT 9 DIV - 70 + + - ( - 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-234
SELECT 9 / - 70 + + - ( - 86 ) AS col2
----
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-236
SELECT + ( + CAST( NULL AS SIGNED ) ) + 25 + - COUNT( + 7 ) - + ( + 17 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT + ( + CAST ( NULL AS INTEGER ) ) + 25 + - COUNT ( + 7 ) - + ( + 17 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-237
SELECT DISTINCT COALESCE ( - 47, CASE 98 WHEN 95 THEN - - CAST( NULL AS SIGNED ) WHEN + + ( CASE 31 WHEN - 29 / CAST( NULL AS SIGNED ) THEN - COUNT( * ) WHEN 97 THEN 7 * - 30 - NULLIF ( 81, - 6 ) + 83 / - 20 - + 68 * + 76 WHEN - 67 * 29 + 40 THEN COUNT( * ) END ) THEN NULL END * 2, 13 ) * NULLIF ( - CAST( - ( - COUNT( * ) ) AS SIGNED ), + 48 * CAST( NULL AS DECIMAL ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT COALESCE ( - 47, CASE 98 WHEN 95 THEN - - CAST ( NULL AS INTEGER ) WHEN + + ( CASE 31 WHEN - 29 / CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) WHEN 97 THEN 7 * - 30 - NULLIF ( 81, - 6 ) + 83 / - 20 - + 68 * + 76 WHEN - 67 * 29 + 40 THEN COUNT ( * ) END ) THEN NULL END * 2, 13 ) * NULLIF ( - CAST ( - ( - COUNT ( * ) ) AS INTEGER ), + 48 * CAST ( NULL AS REAL ) ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-238
SELECT CAST( ( - - 83 ) AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-238
SELECT CAST ( ( - - 83 ) AS INTEGER ) AS col0
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL SUM( + ( - 70 ) ) * 72 + + MAX( - ( COALESCE ( - 29, 14 ) ) )
----
-5011

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL SUM ( + ( - 70 ) ) * 72 + + MAX ( - ( COALESCE ( - 29, 14 ) ) )
----
-5011

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT + 74 + - 2 * 34 * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-241
SELECT + 74 + - 2 * 34 * COUNT ( * )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-242
SELECT DISTINCT + + COALESCE ( ( - COUNT( * ) ), CAST( NULL AS SIGNED ), + COUNT( * ) ) DIV - 10 + 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT + + COALESCE ( ( - COUNT ( * ) ), CAST ( NULL AS INTEGER ), + COUNT ( * ) ) / - 10 + 60 AS col1
----
60

query II rowsort
SELECT + 58 AS col2, 92
----
58
92

query I rowsort
SELECT 32 * - 92 * + - 20 + - + 86 AS col0
----
58794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-245
SELECT CAST( ( 50 ) AS SIGNED ) col0
----
50

skipif mysql # not compatible
query I rowsort label-245
SELECT CAST ( ( 50 ) AS INTEGER ) col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-246
SELECT DISTINCT - - 64 + + 30 + + 5 AS col0, + 84 + COUNT( ALL 85 ) - - - 78 * MAX( ALL + 35 ) * + NULLIF ( + CAST( NULL AS SIGNED ), - AVG ( - + 52 ) * 56 + + 66 * + - 50 * - COUNT( * ) + + 59 )
----
99
NULL

skipif mysql # not compatible
query II rowsort label-246
SELECT DISTINCT - - 64 + + 30 + + 5 AS col0, + 84 + COUNT ( ALL 85 ) - - - 78 * MAX ( ALL + 35 ) * + NULLIF ( + CAST ( NULL AS INTEGER ), - AVG ( - + 52 ) * 56 + + 66 * + - 50 * - COUNT ( * ) + + 59 )
----
99
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-247
SELECT + 42, + 78 DIV 95 AS col0
----
42
0

skipif mysql # not compatible
query II rowsort label-247
SELECT + 42, + 78 / 95 AS col0
----
42
0

query I rowsort
SELECT ALL - + 22 + ( - 76 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT - MAX( DISTINCT 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-249
SELECT - MAX ( DISTINCT 91 ) AS col0
----
-91

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

query II rowsort
SELECT - 31 col1, 3
----
-31
3

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT 98 + + - 76 DIV + 36 - 73
----
23

skipif mysql # not compatible
query I rowsort label-252
SELECT 98 + + - 76 / + 36 - 73
----
23

query I rowsort
SELECT 73 * - - ( - - 92 ) col1
----
6716

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

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

query II rowsort
SELECT ALL 99 AS col1, + 56
----
99
56

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

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

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

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

query I rowsort
SELECT DISTINCT + 5 * 87
----
435

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT ALL 10 AS col2, MIN( ALL + 57 ) * COUNT( * ) + + MIN( 89 )
----
10
146

skipif mysql # not compatible
query II rowsort label-259
SELECT ALL 10 AS col2, MIN ( ALL + 57 ) * COUNT ( * ) + + MIN ( 89 )
----
10
146

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT 23 + 77 DIV + 96 - 95 * - 19 AS col0
----
1828

skipif mysql # not compatible
query I rowsort label-260
SELECT 23 + 77 / + 96 - 95 * - 19 AS col0
----
1828

query I rowsort
SELECT 97 * + - 59
----
-5723

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT COALESCE ( - ( - 26 ), + - SUM( DISTINCT - - 87 ) ) + + 2 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-262
SELECT COALESCE ( - ( - 26 ), + - SUM ( DISTINCT - - 87 ) ) + + 2 AS col0
----
28

query I rowsort
SELECT ALL - 51 + 82 AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-264
SELECT DISTINCT - 84 AS col1, COUNT( * ) + - ( - MIN( - 15 ) )
----
-84
-14

skipif mysql # not compatible
query II rowsort label-264
SELECT DISTINCT - 84 AS col1, COUNT ( * ) + - ( - MIN ( - 15 ) )
----
-84
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT ALL - CAST( 30 AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL - CAST ( 30 AS INTEGER ) AS col1
----
-30

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

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL 2 + + COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT COUNT( * ) + - CASE + 56 WHEN - ( + - 68 ) + - 42 THEN 9 + - 40 ELSE - + 25 END AS col1
----
26

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT COUNT ( * ) + - CASE + 56 WHEN - ( + - 68 ) + - 42 THEN 9 + - 40 ELSE - + 25 END AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-268
SELECT + MIN( DISTINCT ( + - 43 ) ) DIV COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-268
SELECT + MIN ( DISTINCT ( + - 43 ) ) / COUNT ( * )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-269
SELECT - 54 * CAST( NULL AS SIGNED ) + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-269
SELECT - 54 * CAST ( NULL AS INTEGER ) + - 83
----
NULL

query I rowsort
SELECT ALL 64 * - 16 AS col1
----
-1024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-271
SELECT + 66 * COUNT( * ) + - COALESCE ( + 66, + CAST( NULL AS SIGNED ) ) * - 73
----
4884

skipif mysql # not compatible
query I rowsort label-271
SELECT + 66 * COUNT ( * ) + - COALESCE ( + 66, + CAST ( NULL AS INTEGER ) ) * - 73
----
4884

query I rowsort
SELECT 45 + + 37 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL 91 + + - 85 * - 93 * COUNT( * ) AS col2
----
7996

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL 91 + + - 85 * - 93 * COUNT ( * ) AS col2
----
7996

query I rowsort
SELECT - 60 * + ( - - 17 )
----
-1020

query I rowsort
SELECT ALL 35 + + - 39 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT SUM( + 3 ) - + - 56
----
59

skipif mysql # not compatible
query I rowsort label-276
SELECT SUM ( + 3 ) - + - 56
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT DISTINCT - MAX( 47 ) + + 7 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT - MAX ( 47 ) + + 7 AS col1
----
-40

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

skipif mysql # not compatible
query I rowsort label-278
SELECT - SUM ( ALL - 97 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-279
SELECT ALL - 45 - - + 72 + - + 82 * + + CAST( NULL AS SIGNED ) / + 21 / - NULLIF ( 61, - + SUM( ALL - 70 ) ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - 45 - - + 72 + - + 82 * + + CAST ( NULL AS INTEGER ) / + 21 / - NULLIF ( 61, - + SUM ( ALL - 70 ) ) * 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-280
SELECT + 54 + + + 8 + - + ( + 15 ) * CASE 18 WHEN - + 53 - - + CASE - - ( AVG ( 34 ) ) WHEN COUNT( * ) THEN + 13 ELSE NULL END THEN NULL WHEN + - 60 + + - CAST( NULL AS SIGNED ) + 42 THEN NULL ELSE ( - + 48 ) END + + 33 AS col1
----
815

skipif mysql # not compatible
query I rowsort label-280
SELECT + 54 + + + 8 + - + ( + 15 ) * CASE 18 WHEN - + 53 - - + CASE - - ( AVG ( 34 ) ) WHEN COUNT ( * ) THEN + 13 ELSE NULL END THEN NULL WHEN + - 60 + + - CAST ( NULL AS INTEGER ) + 42 THEN NULL ELSE ( - + 48 ) END + + 33 AS col1
----
815

query II rowsort
SELECT - 16 AS col1, - 83
----
-16
-83

query I rowsort
SELECT - + 96 col1
----
-96

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

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

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

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

query I rowsort
SELECT ALL + 82 * + 90
----
7380

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL 57 * + COUNT( * ) * 55
----
3135

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL 57 * + COUNT ( * ) * 55
----
3135

onlyif mysql # aggregate syntax: 
query II rowsort label-287
SELECT DISTINCT SUM( DISTINCT 14 ), + 55 AS col1
----
14
55

skipif mysql # not compatible
query II rowsort label-287
SELECT DISTINCT SUM ( DISTINCT 14 ), + 55 AS col1
----
14
55

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

query I rowsort
SELECT 33 * + + 5 AS col0
----
165

query II rowsort
SELECT ALL - NULLIF ( - 26, - 8 + + 2 * 0 / - 1 ) + - 24 + - 44 * - 72 * 79 AS col2, 52
----
250274
52

onlyif mysql # aggregate syntax: 
query II rowsort label-291
SELECT 4 + - 12, COUNT( * ) * 89 AS col1
----
-8
89

skipif mysql # not compatible
query II rowsort label-291
SELECT 4 + - 12, COUNT ( * ) * 89 AS col1
----
-8
89

query I rowsort
SELECT DISTINCT - 65 + + 28 AS col1
----
-37

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

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT COUNT ( DISTINCT - + ( + + 96 ) ) AS col2
----
1

query I rowsort
SELECT ALL - 19 + + + 59 col0
----
40

query I rowsort
SELECT ALL 96 * - 92 + 47
----
-8785

onlyif mysql # aggregate syntax: 
query II rowsort label-296
SELECT ALL + NULLIF ( 26, + + 7 * 76 + 66 * + + 64 ) * + 67 - - COUNT( * ) + + 3 + + 98 AS col2, - 20 + 58 + - 34 * - 24 + - + 2
----
1844
852

skipif mysql # not compatible
query II rowsort label-296
SELECT ALL + NULLIF ( 26, + + 7 * 76 + 66 * + + 64 ) * + 67 - - COUNT ( * ) + + 3 + + 98 AS col2, - 20 + 58 + - 34 * - 24 + - + 2
----
1844
852

query I rowsort
SELECT - 22 + - 32 - - 89
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL + 61 * - 24 + COUNT( * ) + 26 * + NULLIF ( - 1, + 82 )
----
-1489

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL + 61 * - 24 + COUNT ( * ) + 26 * + NULLIF ( - 1, + 82 )
----
-1489

onlyif mysql # aggregate syntax: 
query II rowsort label-299
SELECT ALL + + ( - 9 ), COUNT( * ) AS col1
----
-9
1

skipif mysql # not compatible
query II rowsort label-299
SELECT ALL + + ( - 9 ), COUNT ( * ) AS col1
----
-9
1

query I rowsort
SELECT + - 55 + - 80 + + + 73 * 45 * - 75 * 92
----
-22666635

query I rowsort
SELECT + ( - 2 ) * + 64 + 90 + - - 85 + 79 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL + 69 * - COUNT( * ) + 89
----
20

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL + 69 * - COUNT ( * ) + 89
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-303
SELECT ALL MIN( 52 ) DIV + 36 col0
----
1

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL MIN ( 52 ) / + 36 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-304
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) + + - NULLIF ( - 49, 7 ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + - NULLIF ( - 49, 7 ) + - 91
----
NULL

query II rowsort
SELECT + 61 * - 34, + 69 AS col1
----
-2074
69

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT + 35 + - + COUNT( ALL + + 73 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-306
SELECT + 35 + - + COUNT ( ALL + + 73 ) AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-307
SELECT ALL - 31 * CAST( - - 81 AS SIGNED ) - MIN( - 6 ) DIV 30 * - 18
----
-2511

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL - 31 * CAST ( - - 81 AS INTEGER ) - MIN ( - 6 ) / 30 * - 18
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT DISTINCT + - COALESCE ( + COUNT( * ), + COUNT( * ) * - ( - 69 ), 47 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT + - COALESCE ( + COUNT ( * ), + COUNT ( * ) * - ( - 69 ), 47 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT DISTINCT - + COUNT( ALL - 22 ) * + 62 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT - + COUNT ( ALL - 22 ) * + 62 AS col2
----
-62

query II rowsort
SELECT DISTINCT + 14 AS col0, 93 + 46
----
14
139

onlyif mysql # aggregate syntax: 
query II rowsort label-311
SELECT ALL 16 * 36 * + + COALESCE ( ( - 68 ), + - 56 * + + 73 + 15 ) AS col1, COUNT( * ) - 64
----
-39168
-63

skipif mysql # not compatible
query II rowsort label-311
SELECT ALL 16 * 36 * + + COALESCE ( ( - 68 ), + - 56 * + + 73 + 15 ) AS col1, COUNT ( * ) - 64
----
-39168
-63

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-313
SELECT + CAST( 15 AS DECIMAL ) - + CASE - 69 WHEN - 49 THEN + + COUNT( * ) END + + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-313
SELECT + CAST ( 15 AS REAL ) - + CASE - 69 WHEN - 49 THEN + + COUNT ( * ) END + + 34 AS col1
----
NULL

query I rowsort
SELECT - 98 + CASE 91 WHEN 36 THEN + 49 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-315
SELECT - 50, + 0 + - 80 DIV + 20 AS col1
----
-50
-4

skipif mysql # not compatible
query II rowsort label-315
SELECT - 50, + 0 + - 80 / + 20 AS col1
----
-50
-4

query I rowsort
SELECT - 74 + - + 26 AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT DISTINCT SUM( ALL NULLIF ( - 76, - 84 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT SUM ( ALL NULLIF ( - 76, - 84 ) )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL 68 + - CAST( NULL AS SIGNED ) / + 77 * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL 68 + - CAST ( NULL AS INTEGER ) / + 77 * 1 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-319
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( 55 ) * + + CASE WHEN NULL NOT IN ( 70 ) THEN + 14 ELSE NULL END + - 99 + - 67 * - + AVG ( + + 68 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( 55 ) * + + CASE WHEN NULL NOT IN ( 70 ) THEN + 14 ELSE NULL END + - 99 + - 67 * - + AVG ( + + 68 ) AS col0
----
NULL

query I rowsort
SELECT ALL 3 * + + ( - 22 ) AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT - 14 DIV + 94 * - + ( - 96 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-321
SELECT - 14 / + 94 * - + ( - 96 ) col1
----
0

query I rowsort
SELECT DISTINCT 37 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT DISTINCT + + COUNT( * ) + + 30 * - NULLIF ( + 91, + 16 ) * - 40 + + NULLIF ( CASE - 81 WHEN 5 + + + 26 + 94 + - 94 * - 66 / + 63 * + 34 THEN - 15 ELSE 26 + + 4 END, - SUM( - 91 ) ) + 66 AS col1
----
109297

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT + + COUNT ( * ) + + 30 * - NULLIF ( + 91, + 16 ) * - 40 + + NULLIF ( CASE - 81 WHEN 5 + + + 26 + 94 + - 94 * - 66 / + 63 * + 34 THEN - 15 ELSE 26 + + 4 END, - SUM ( - 91 ) ) + 66 AS col1
----
109297

query I rowsort
SELECT ALL - + 70 + + 75 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT + - 8 * + + 83 - - - 52 * - COUNT( DISTINCT 45 ) col2
----
-612

skipif mysql # not compatible
query I rowsort label-325
SELECT + - 8 * + + 83 - - - 52 * - COUNT ( DISTINCT 45 ) col2
----
-612

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-327
SELECT - - 59 / - - 75 * + 93 - - - 47 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT - - 59 / - - 75 * + 93 - - - 47 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT - - 28 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT - - 28 / 55
----
0

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

skipif mysql # not compatible
query I rowsort label-330
SELECT - 78 / + + 5 + - COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT + 7 * MAX( DISTINCT - 93 ) * - 96 + + 67 * - + ( - 53 )
----
66047

skipif mysql # not compatible
query I rowsort label-331
SELECT + 7 * MAX ( DISTINCT - 93 ) * - 96 + + 67 * - + ( - 53 )
----
66047

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-332
SELECT - COALESCE ( - 59, 59 - + + 13 * - NULLIF ( - 27, - + CASE - + 86 WHEN + - 12 - 3 THEN - + NULLIF ( + + 15, 56 ) * + CAST( + 7 AS SIGNED ) - 12 + - 67 - - 44 + 91 + + 36 WHEN - 9 THEN - 32 WHEN + 66 THEN 98 ELSE ( - CASE 33 WHEN - 62 * + 6 THEN - 30 ELSE NULL END ) * + 92 END * + 47 - 91 ) * + 97 + - 38 DIV 40, 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-332
SELECT - COALESCE ( - 59, 59 - + + 13 * - NULLIF ( - 27, - + CASE - + 86 WHEN + - 12 - 3 THEN - + NULLIF ( + + 15, 56 ) * + CAST ( + 7 AS INTEGER ) - 12 + - 67 - - 44 + 91 + + 36 WHEN - 9 THEN - 32 WHEN + 66 THEN 98 ELSE ( - CASE 33 WHEN - 62 * + 6 THEN - 30 ELSE NULL END ) * + 92 END * + 47 - 91 ) * + 97 + - 38 / 40, 59 ) AS col2
----
59

query I rowsort
SELECT + - NULLIF ( 46, - 60 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT COALESCE ( COUNT( * ), - - COUNT( * ), + 66, 8 * 14 * + 87 * 94 )
----
1

skipif mysql # not compatible
query I rowsort label-334
SELECT COALESCE ( COUNT ( * ), - - COUNT ( * ), + 66, 8 * 14 * + 87 * 94 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT ALL 46 * - 32 + + COUNT( * ) + - + CASE 62 WHEN - - 95 - - SUM( ALL + 18 ) THEN COUNT( * ) END - + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL 46 * - 32 + + COUNT ( * ) + - + CASE 62 WHEN - - 95 - - SUM ( ALL + 18 ) THEN COUNT ( * ) END - + 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT COALESCE ( + 80, - - COUNT( * ), + - 93 )
----
80

skipif mysql # not compatible
query I rowsort label-336
SELECT COALESCE ( + 80, - - COUNT ( * ), + - 93 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-337
SELECT - MAX( - - CAST( + - 35 AS SIGNED ) ) + - - 59 + + 90 * + + 43 + - + 70 col2
----
3894

skipif mysql # not compatible
query I rowsort label-337
SELECT - MAX ( - - CAST ( + - 35 AS INTEGER ) ) + - - 59 + + 90 * + + 43 + - + 70 col2
----
3894

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT + 98 * + MIN( ALL 79 )
----
7742

skipif mysql # not compatible
query I rowsort label-338
SELECT + 98 * + MIN ( ALL 79 )
----
7742

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

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

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

skipif mysql # not compatible
query I rowsort label-340
SELECT MIN ( + + 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-341
SELECT ALL - 92 * - ( - CASE - 15 WHEN + 54 THEN + CAST( 59 AS SIGNED ) WHEN + 27 THEN - - 47 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL - 92 * - ( - CASE - 15 WHEN + 54 THEN + CAST ( 59 AS INTEGER ) WHEN + 27 THEN - - 47 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT ALL NULLIF ( + ( + - 89 ), - 25 * SUM( - - 39 ) * 71 + - 15 ) + + COUNT( ALL + 96 ) + CAST( 23 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL NULLIF ( + ( + - 89 ), - 25 * SUM ( - - 39 ) * 71 + - 15 ) + + COUNT ( ALL + 96 ) + CAST ( 23 AS INTEGER ) AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-343
SELECT 48 - + 92 + - 99 DIV COUNT( * ) col0
----
-143

skipif mysql # not compatible
query I rowsort label-343
SELECT 48 - + 92 + - 99 / COUNT ( * ) col0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT COALESCE ( - 55, + - COUNT( * ) + + 24 ) + 46 + 60 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-344
SELECT COALESCE ( - 55, + - COUNT ( * ) + + 24 ) + 46 + 60 AS col1
----
51

query I rowsort
SELECT ALL ( - 77 ) - ( - 82 ) * + 57 AS col1
----
4597

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT 32 + + COUNT( + - ( 27 ) ) * CASE - - 60 WHEN - 14 THEN + 1 * + 21 * 56 * + - ( + 36 ) WHEN + 8 THEN NULL ELSE NULL END + + MIN( + 96 ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-346
SELECT 32 + + COUNT ( + - ( 27 ) ) * CASE - - 60 WHEN - 14 THEN + 1 * + 21 * 56 * + - ( + 36 ) WHEN + 8 THEN NULL ELSE NULL END + + MIN ( + 96 ) / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT DISTINCT 52 * - COALESCE ( - + CASE - 71 WHEN - 62 - - - 22 + + 38 THEN + 51 + NULLIF ( - + 83, - NULLIF ( - 37, COUNT( * ) * + - 85 + + 4 ) + NULLIF ( - ( 92 ), + COALESCE ( + 23, + + 25 ) ) + 6 * - + COUNT( * ) * COUNT( * ) ) WHEN 79 + + 80 THEN - ( - 20 ) END, 28 * 40 + + 97 ) * 11 - + 70 AS col1
----
-696194

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT 52 * - COALESCE ( - + CASE - 71 WHEN - 62 - - - 22 + + 38 THEN + 51 + NULLIF ( - + 83, - NULLIF ( - 37, COUNT ( * ) * + - 85 + + 4 ) + NULLIF ( - ( 92 ), + COALESCE ( + 23, + + 25 ) ) + 6 * - + COUNT ( * ) * COUNT ( * ) ) WHEN 79 + + 80 THEN - ( - 20 ) END, 28 * 40 + + 97 ) * 11 - + 70 AS col1
----
-696194

query I rowsort
SELECT ALL + 24 * + ( - 61 ) * + 16 AS col2
----
-23424

query I rowsort
SELECT - 40 + - + 62 AS col1
----
-102

query I rowsort
SELECT ALL 37 * + - 14
----
-518

query II rowsort
SELECT + ( - 86 ) AS col0, - 51 * + 82 * - 73 * + - 91 + 58 AS col0
----
-86
-27780968

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT + 90 + + + MAX( 18 ) * 37
----
756

skipif mysql # not compatible
query I rowsort label-352
SELECT + 90 + + + MAX ( 18 ) * 37
----
756

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT + COUNT( * ) + + - COUNT( * ) - + 70 + 44 DIV + 98 + - 35 - - 35 + + 54 * 45 DIV + 81 col2
----
-40

skipif mysql # not compatible
query I rowsort label-354
SELECT + COUNT ( * ) + + - COUNT ( * ) - + 70 + 44 / + 98 + - 35 - - 35 + + 54 * 45 / + 81 col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-355
SELECT ALL + - ( - + 50 ) DIV - 73 * - 45 * 65 AS col1, - MIN( - 13 ) * 72 + - 48 DIV 53 + + 38 AS col1
----
0
974

skipif mysql # not compatible
query II rowsort label-355
SELECT ALL + - ( - + 50 ) / - 73 * - 45 * 65 AS col1, - MIN ( - 13 ) * 72 + - 48 / 53 + + 38 AS col1
----
0
974

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT - MAX( DISTINCT - - 96 ) + + COUNT( - 35 ) + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-356
SELECT - MAX ( DISTINCT - - 96 ) + + COUNT ( - 35 ) + COUNT ( * )
----
-94

query I rowsort
SELECT + 79 / - 58 * 12 + + 96 + - ( - + CASE - + ( - 81 ) WHEN - - 63 THEN 49 WHEN + 94 / - 76 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL + 14 + - 13 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-359
SELECT ALL - 56 + 87 + + CAST( NULL AS SIGNED ) / SUM( + 98 ) / + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL - 56 + 87 + + CAST ( NULL AS INTEGER ) / SUM ( + 98 ) / + - 51
----
NULL

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

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

query I rowsort
SELECT ALL - ( 88 ) col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT + CAST( - ( COUNT( * ) ) AS SIGNED ) * + + MAX( - 67 ) * - 80 * CAST( - COUNT( * ) AS SIGNED ) + - 18
----
5342

skipif mysql # not compatible
query I rowsort label-362
SELECT + CAST ( - ( COUNT ( * ) ) AS INTEGER ) * + + MAX ( - 67 ) * - 80 * CAST ( - COUNT ( * ) AS INTEGER ) + - 18
----
5342

query I rowsort
SELECT 27 + 39 * - 5 + + 28 * - 64 AS col0
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL - COUNT( DISTINCT - 27 ) * 85 + 74
----
-11

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - COUNT ( DISTINCT - 27 ) * 85 + 74
----
-11

query I rowsort
SELECT 33 * + + 41
----
1353

query I rowsort
SELECT ALL + 33 + - 45 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT DISTINCT - MIN( - + 68 ) * - 48 AS col0
----
-3264

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT - MIN ( - + 68 ) * - 48 AS col0
----
-3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-368
SELECT 13 + + ( - 75 ) + - 87 - - CAST( - + 81 AS SIGNED ) * + - 20 AS col2
----
1471

skipif mysql # not compatible
query I rowsort label-368
SELECT 13 + + ( - 75 ) + - 87 - - CAST ( - + 81 AS INTEGER ) * + - 20 AS col2
----
1471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-369
SELECT DISTINCT + COUNT( * ) + + - 35 * - + SUM( - 41 ) * - ( + CASE 14 WHEN - - 13 + - + 60 THEN + 66 + - 42 * + 23 * + 86 * + 94 * - - 0 + + CAST( NULL AS SIGNED ) WHEN 51 + + 34 THEN - + 27 ELSE - + 79 END ) * + COUNT( * ) * + 88 AS col2
----
-9976119

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + COUNT ( * ) + + - 35 * - + SUM ( - 41 ) * - ( + CASE 14 WHEN - - 13 + - + 60 THEN + 66 + - 42 * + 23 * + 86 * + 94 * - - 0 + + CAST ( NULL AS INTEGER ) WHEN 51 + + 34 THEN - + 27 ELSE - + 79 END ) * + COUNT ( * ) * + 88 AS col2
----
-9976119

query I rowsort
SELECT ALL + 60 * 48 AS col0
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT - COUNT( * ) * + NULLIF ( + 1, - 87 ) + - 20
----
-21

skipif mysql # not compatible
query I rowsort label-371
SELECT - COUNT ( * ) * + NULLIF ( + 1, - 87 ) + - 20
----
-21

query II rowsort
SELECT ALL + ( - + 90 ) + + - 24 + 31 * - COALESCE ( - 45, + 35 * - + 46, + 99 * + 1 ) AS col2, 79 col2
----
1281
79

onlyif mysql # aggregate syntax: 
query II rowsort label-373
SELECT 7 * + - 52 * NULLIF ( - 45, - COUNT( * ) + + - COUNT( * ) ), + 85 + - 41 AS col1
----
16380
44

skipif mysql # not compatible
query II rowsort label-373
SELECT 7 * + - 52 * NULLIF ( - 45, - COUNT ( * ) + + - COUNT ( * ) ), + 85 + - 41 AS col1
----
16380
44

query I rowsort
SELECT 16 - + - 4 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT DISTINCT + ( + + 83 ) * + NULLIF ( - 2, - + 53 * + - COUNT( * ) * - 32 ) AS col1
----
-166

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT + ( + + 83 ) * + NULLIF ( - 2, - + 53 * + - COUNT ( * ) * - 32 ) AS col1
----
-166

query I rowsort
SELECT NULLIF ( - 90, - 71 * 51 * + 90 + + + 3 ) AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT ALL + - NULLIF ( + + 29, - CAST( + - 64 AS SIGNED ) ) * - 65
----
1885

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + - NULLIF ( + + 29, - CAST ( + - 64 AS INTEGER ) ) * - 65
----
1885

query I rowsort
SELECT + 77 - - 56
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-379
SELECT - - CAST( - 87 AS SIGNED ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-379
SELECT - - CAST ( - 87 AS INTEGER ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-380
SELECT DISTINCT - 22, - NULLIF ( + + CASE 79 WHEN + COUNT( * ) * + + 21 THEN + COUNT( * ) END, CASE + AVG ( + ( + 84 ) ) WHEN + 42 THEN NULL WHEN - + CAST( - 49 AS SIGNED ) THEN - 67 * 5 + + 43 / - 21 ELSE + + 87 END ) AS col0
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-380
SELECT DISTINCT - 22, - NULLIF ( + + CASE 79 WHEN + COUNT ( * ) * + + 21 THEN + COUNT ( * ) END, CASE + AVG ( + ( + 84 ) ) WHEN + 42 THEN NULL WHEN - + CAST ( - 49 AS INTEGER ) THEN - 67 * 5 + + 43 / - 21 ELSE + + 87 END ) AS col0
----
-22
NULL

query II rowsort
SELECT ALL - + CASE + + 33 WHEN - - 36 THEN + ( + 11 ) END, 15 col2
----
NULL
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT ( - + 58 ) - + COUNT( * ) * + 76
----
-134

skipif mysql # not compatible
query I rowsort label-383
SELECT ( - + 58 ) - + COUNT ( * ) * + 76
----
-134

query II rowsort
SELECT ALL - 53 AS col2, 29 * + 17 AS col1
----
-53
493

query I rowsort
SELECT 27 * + 68
----
1836

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-387
SELECT DISTINCT + 59 * + - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT + 59 * + - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + + 96
----
NULL

query I rowsort
SELECT ALL + 1 + + 44
----
45

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

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

query I rowsort
SELECT DISTINCT - 74 * 99 col1
----
-7326

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

query I rowsort
SELECT - 91 * + 69
----
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT - SUM( ALL + 27 ) * 4
----
-108

skipif mysql # not compatible
query I rowsort label-393
SELECT - SUM ( ALL + 27 ) * 4
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-394
SELECT ALL + ( 19 ) * - 82 * - CAST( NULL AS SIGNED ) / - COUNT( * ) + 13 + 32 + - 61 * NULLIF ( + ( - 89 ), + - 78 - + 11 + + 63 + 52 / 38 / 16 ) * - 28 * - + 49 + + + COUNT( * ) * + - COUNT( DISTINCT - + 33 ) * - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL + ( 19 ) * - 82 * - CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 13 + 32 + - 61 * NULLIF ( + ( - 89 ), + - 78 - + 11 + + 63 + 52 / 38 / 16 ) * - 28 * - + 49 + + + COUNT ( * ) * + - COUNT ( DISTINCT - + 33 ) * - - 50
----
NULL

query I rowsort
SELECT - 44 + + ( - 73 ) AS col2
----
-117

query I rowsort
SELECT DISTINCT + 11 * - - 12
----
132

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT - COUNT( * ) * - 14 * + NULLIF ( + - COUNT( * ), + + 71 + + 20 ) AS col1, - 75
----
-14
-75

skipif mysql # not compatible
query II rowsort label-398
SELECT - COUNT ( * ) * - 14 * + NULLIF ( + - COUNT ( * ), + + 71 + + 20 ) AS col1, - 75
----
-14
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT - 67 * - 36 * 98 - - 43 + 68 * - COUNT( * ) * + - COUNT( * ) AS col0
----
236487

skipif mysql # not compatible
query I rowsort label-400
SELECT - 67 * - 36 * 98 - - 43 + 68 * - COUNT ( * ) * + - COUNT ( * ) AS col0
----
236487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-401
SELECT DISTINCT CASE - CAST( - 73 AS SIGNED ) WHEN + + AVG ( + 85 ) - + 0 + + 74 THEN - COUNT( * ) ELSE 78 * + 21 * - + 68 / + - 64 * CAST( NULL AS SIGNED ) + + + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT CASE - CAST ( - 73 AS INTEGER ) WHEN + + AVG ( + 85 ) - + 0 + + 74 THEN - COUNT ( * ) ELSE 78 * + 21 * - + 68 / + - 64 * CAST ( NULL AS INTEGER ) + + + 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-402
SELECT DISTINCT COUNT( ALL 10 ), SUM( ALL 50 ) col0
----
1
50

skipif mysql # not compatible
query II rowsort label-402
SELECT DISTINCT COUNT ( ALL 10 ), SUM ( ALL 50 ) col0
----
1
50

query I rowsort
SELECT ALL NULLIF ( - 31, 30 )
----
-31

query I rowsort
SELECT ALL + NULLIF ( - 37, - 23 ) * + 80
----
-2960

query I rowsort
SELECT - + 96 * + 87
----
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT - 62 + + NULLIF ( + - 96, - 50 ) * + - COUNT( + 67 )
----
34

skipif mysql # not compatible
query I rowsort label-406
SELECT - 62 + + NULLIF ( + - 96, - 50 ) * + - COUNT ( + 67 )
----
34

query II rowsort
SELECT - 12 AS col2, + 24 AS col1
----
-12
24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-409
SELECT + + 47 DIV + COUNT( DISTINCT - 21 ) + + 59 col1
----
106

skipif mysql # not compatible
query I rowsort label-409
SELECT + + 47 / + COUNT ( DISTINCT - 21 ) + + 59 col1
----
106

query I rowsort
SELECT ALL + + 9 * + ( - 2 )
----
-18

query I rowsort
SELECT - 89 + 64 + - 24
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT + 58 * 35 - NULLIF ( - + COUNT( * ), 35 / - COUNT( * ) + COUNT( * ) ) + - + 80
----
1951

skipif mysql # not compatible
query I rowsort label-412
SELECT + 58 * 35 - NULLIF ( - + COUNT ( * ), 35 / - COUNT ( * ) + COUNT ( * ) ) + - + 80
----
1951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-413
SELECT ALL COUNT( * ) + 7 + CAST( NULL AS SIGNED ) + 98 * + 24 * - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL COUNT ( * ) + 7 + CAST ( NULL AS INTEGER ) + 98 * + 24 * - 68 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - - 67 + + 32, ( + ( 25 ) ) + 92 * - 1 col1
----
99
-67

query I rowsort
SELECT ALL + - 4 + 18 - 68 + - 46 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL - 14 + 81 + 31 + - 92 * + - COUNT( * ) * NULLIF ( + + 71, - 95 - + 99 * - 80 * - 46 )
----
6630

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL - 14 + 81 + 31 + - 92 * + - COUNT ( * ) * NULLIF ( + + 71, - 95 - + 99 * - 80 * - 46 )
----
6630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-417
SELECT - 12 DIV + - ( + + MAX( - 92 ) ) + - 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-417
SELECT - 12 / + - ( + + MAX ( - 92 ) ) + - 19 AS col0
----
-19

query II rowsort
SELECT + 42 AS col2, - 86 + + 2
----
42
-84

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

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - 31 * + COUNT ( * ) + - - 0 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT + CASE - + 2 WHEN + - 42 THEN NULL WHEN 8 + + 21 THEN + - COUNT( * ) + - COUNT( * ) ELSE COUNT( * ) + SUM( - 39 ) + - 54 + - - 30 END AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-420
SELECT + CASE - + 2 WHEN + - 42 THEN NULL WHEN 8 + + 21 THEN + - COUNT ( * ) + - COUNT ( * ) ELSE COUNT ( * ) + SUM ( - 39 ) + - 54 + - - 30 END AS col0
----
-62

query I rowsort
SELECT + 98 * + 42
----
4116

query I rowsort
SELECT ALL - 54 * - 4 - + - 37 AS col0
----
253

query II rowsort
SELECT CASE - 32 WHEN 95 * - 88 + - 9 THEN + 53 + + 60 ELSE + - 9 END AS col0, - 58 AS col1
----
-9
-58

query I rowsort
SELECT ALL + ( - ( + 85 ) ) * + ( + 89 ) - + 92
----
-7657

query I rowsort
SELECT CASE - 92 WHEN + - 15 + - AVG ( + 3 ) THEN - + AVG ( - 81 ) * + 20 * 79 * 32 * - + 85 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT + 62 / - + CASE + NULLIF ( CASE - 12 WHEN + ( - 48 ) + - + 83 THEN CAST( - 58 AS SIGNED ) * 78 - - + 17 END, COUNT( * ) * + 67 * + COUNT( * ) ) WHEN 93 + - NULLIF ( - 95, - 76 * AVG ( DISTINCT + 44 ) ) - 75 THEN + 6 - - 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT + 62 / - + CASE + NULLIF ( CASE - 12 WHEN + ( - 48 ) + - + 83 THEN CAST ( - 58 AS INTEGER ) * 78 - - + 17 END, COUNT ( * ) * + 67 * + COUNT ( * ) ) WHEN 93 + - NULLIF ( - 95, - 76 * AVG ( DISTINCT + 44 ) ) - 75 THEN + 6 - - 51 END AS col0
----
NULL

query I rowsort
SELECT + 68 * - 52 AS col1
----
-3536

onlyif mysql # aggregate syntax: 
query II rowsort label-428
SELECT + 79 * - 87 AS col0, 37 + 88 * SUM( ALL - 54 ) AS col0
----
-6873
-4715

skipif mysql # not compatible
query II rowsort label-428
SELECT + 79 * - 87 AS col0, 37 + 88 * SUM ( ALL - 54 ) AS col0
----
-6873
-4715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-429
SELECT + 64 * - 81 * - ( - ( 14 ) ) - COALESCE ( 60, - MAX( - 83 ) DIV - MIN( 43 ) * - 17 - 71 * + COUNT( - 42 ) + - 65 - - 5, - 48 ) - - 19 + - 76 * CAST( + + 18 AS SIGNED ) AS col2
----
-73985

skipif mysql # not compatible
query I rowsort label-429
SELECT + 64 * - 81 * - ( - ( 14 ) ) - COALESCE ( 60, - MAX ( - 83 ) / - MIN ( 43 ) * - 17 - 71 * + COUNT ( - 42 ) + - 65 - - 5, - 48 ) - - 19 + - 76 * CAST ( + + 18 AS INTEGER ) AS col2
----
-73985

query I rowsort
SELECT ALL + NULLIF ( + 31, + 45 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT + 1 * + - ( - + COUNT( - + ( - 41 ) ) ) + + 34
----
35

skipif mysql # not compatible
query I rowsort label-431
SELECT + 1 * + - ( - + COUNT ( - + ( - 41 ) ) ) + + 34
----
35

query I rowsort
SELECT - 2 * - - 81
----
-162

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT + CASE - ( + 84 ) WHEN - ( + 99 ) + 79 + - 44 * 1 THEN ( - ( + + COUNT( * ) ) ) WHEN + 94 THEN ( - + COUNT( * ) ) * 99 * - - NULLIF ( + COUNT( * ), - - 29 - 50 - + - 79 ) END / + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT + CASE - ( + 84 ) WHEN - ( + 99 ) + 79 + - 44 * 1 THEN ( - ( + + COUNT ( * ) ) ) WHEN + 94 THEN ( - + COUNT ( * ) ) * 99 * - - NULLIF ( + COUNT ( * ), - - 29 - 50 - + - 79 ) END / + 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-436
SELECT - + 59 + - - COUNT( * ) AS col0, + CAST( + CAST( - 39 AS SIGNED ) AS SIGNED ) + - COALESCE ( 64, 49 )
----
-58
-103

skipif mysql # not compatible
query II rowsort label-436
SELECT - + 59 + - - COUNT ( * ) AS col0, + CAST ( + CAST ( - 39 AS INTEGER ) AS INTEGER ) + - COALESCE ( 64, 49 )
----
-58
-103

query I rowsort
SELECT - - 90 * + ( 90 ) + - 52
----
8048

query I rowsort
SELECT ALL + 79 + + 73 + + 14 * - - 12 * 71 + + 71
----
12151

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL - 29 + 63 - - COALESCE ( - COUNT( - 41 ), + 86 + 23 ) * 81 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - 29 + 63 - - COALESCE ( - COUNT ( - 41 ), + 86 + 23 ) * 81 AS col2
----
-47

query I rowsort
SELECT DISTINCT - COALESCE ( - ( + NULLIF ( - + 13, - 43 ) ), + 75 )
----
-13

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - 32, + 0 - + 46 ) AS col0
----
-32

query I rowsort
SELECT - 89 * + - 45
----
4005

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT - CASE - 10 WHEN - - 85 THEN - + 58 ELSE NULL END * + - 23 * + 98 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT - CASE - 10 WHEN - - 85 THEN - + 58 ELSE NULL END * + - 23 * + 98 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 36 + - - 76 + - + 96 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL - - 89 - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - - 89 - COUNT ( * ) AS col1
----
88

query I rowsort
SELECT - + 97 - + 76 * - 29 * + + 35 AS col1
----
77043

query I rowsort
SELECT ALL + NULLIF ( + 3, - + 36 * AVG ( DISTINCT - ( - 71 ) ) * - ( - 25 ) - 74 + - + 63 ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT DISTINCT 36 DIV + 95 * 14 - + 85 + 96 * 91
----
8651

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT 36 / + 95 * 14 - + 85 + 96 * 91
----
8651

onlyif mysql # aggregate syntax: 
query II rowsort label-450
SELECT ALL + 91 col2, - 54 * - MAX( + + 61 )
----
91
3294

skipif mysql # not compatible
query II rowsort label-450
SELECT ALL + 91 col2, - 54 * - MAX ( + + 61 )
----
91
3294

query I rowsort
SELECT + NULLIF ( - 17, 53 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT ALL - 10 DIV - + 41 - + - 95 + - 73 * + + 21
----
-1438

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL - 10 / - + 41 - + - 95 + - 73 * + + 21
----
-1438

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT + COUNT( * ) * - - SUM( - - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT + COUNT ( * ) * - - SUM ( - - 86 )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-454
SELECT - 29 * + + COUNT( * ) + + 3 AS col2, + 30 + + COUNT( * ) AS col2
----
-26
31

skipif mysql # not compatible
query II rowsort label-454
SELECT - 29 * + + COUNT ( * ) + + 3 AS col2, + 30 + + COUNT ( * ) AS col2
----
-26
31

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT 60 AS col1, + COUNT( * ) + - 73 + + - 92 * + 39 + - 1 * - 20 AS col0
----
60
-3640

skipif mysql # not compatible
query II rowsort label-455
SELECT 60 AS col1, + COUNT ( * ) + - 73 + + - 92 * + 39 + - 1 * - 20 AS col0
----
60
-3640

query I rowsort
SELECT 38 * 63 + + - 61 AS col1
----
2333

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT SUM( 42 ) - + SUM( - + 23 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-457
SELECT SUM ( 42 ) - + SUM ( - + 23 ) AS col0
----
65

query I rowsort
SELECT 23 * - + 65
----
-1495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-459
SELECT COUNT( DISTINCT CAST( ( - - 43 ) AS SIGNED ) ) + - 50 + + 92
----
43

skipif mysql # not compatible
query I rowsort label-459
SELECT COUNT ( DISTINCT CAST ( ( - - 43 ) AS INTEGER ) ) + - 50 + + 92
----
43

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

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

query I rowsort
SELECT 32 * + - 67 * - 98 * 70 * - + 40 col0
----
-588313600

query II rowsort
SELECT 54 AS col0, - 79
----
54
-79

query I rowsort
SELECT DISTINCT - ( 22 ) AS col1
----
-22

query I rowsort
SELECT ALL 20 * - 11 AS col2
----
-220

query I rowsort
SELECT 58 * - 14 col2
----
-812

query II rowsort
SELECT ALL - 96 AS col2, 26
----
-96
26

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

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

query II rowsort
SELECT 84, 86 AS col0
----
84
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-470
SELECT + COUNT( * ) * - 74 DIV - + MAX( DISTINCT - - 28 ) + - - ( - 66 ) DIV - - MIN( + CAST( - - 68 AS SIGNED ) ) AS col0, + NULLIF ( + CAST( NULL AS SIGNED ), 67 )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-470
SELECT + COUNT ( * ) * - 74 / - + MAX ( DISTINCT - - 28 ) + - - ( - 66 ) / - - MIN ( + CAST ( - - 68 AS INTEGER ) ) AS col0, + NULLIF ( + CAST ( NULL AS INTEGER ), 67 )
----
2
NULL

query I rowsort
SELECT DISTINCT 92 + 53 AS col0
----
145

query I rowsort
SELECT - 80 - + 64
----
-144

query I rowsort
SELECT ALL 24 + + 62 AS col2
----
86

query I rowsort
SELECT 69 - 84
----
-15

query I rowsort
SELECT ALL 63 + + - 73 AS col0
----
-10

query I rowsort
SELECT ALL - + 41 * + - 6 * - 53 AS col2
----
-13038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-477
SELECT - 7 DIV - - ( + 56 ) AS col0, CASE - 16 WHEN + + 70 THEN 42 WHEN 28 + + + CAST( NULL AS SIGNED ) THEN + + NULLIF ( - COUNT( * ), + + 37 ) - + + 17 * 99 ELSE - 14 DIV - - 85 + 25 + - - 26 END + - + 87 + + COUNT( * )
----
0
-35

skipif mysql # not compatible
query II rowsort label-477
SELECT - 7 / - - ( + 56 ) AS col0, CASE - 16 WHEN + + 70 THEN 42 WHEN 28 + + + CAST ( NULL AS INTEGER ) THEN + + NULLIF ( - COUNT ( * ), + + 37 ) - + + 17 * 99 ELSE - 14 / - - 85 + 25 + - - 26 END + - + 87 + + COUNT ( * )
----
0
-35

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

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL 77 + + COUNT ( * ) AS col2
----
78

query I rowsort
SELECT ALL + 74 col1
----
74

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

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

query II rowsort
SELECT ALL - 98 * 80 + + 86 col1, - 41 - - 72 - - + 42
----
-7754
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-482
SELECT + 73 + + 99 - - 86 + + COUNT( ALL 97 ) * - 71 * + 65 + 93 * - - 94 * - CAST( 88 AS SIGNED ) * + 31 + 38
----
-23852495

skipif mysql # not compatible
query I rowsort label-482
SELECT + 73 + + 99 - - 86 + + COUNT ( ALL 97 ) * - 71 * + 65 + 93 * - - 94 * - CAST ( 88 AS INTEGER ) * + 31 + 38
----
-23852495

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT 38 - + COUNT( * ) * + 13
----
25

skipif mysql # not compatible
query I rowsort label-483
SELECT 38 - + COUNT ( * ) * + 13
----
25

query I rowsort
SELECT COALESCE ( + 73, - 11 ) + ( + + 96 ) AS col2
----
169

query I rowsort
SELECT ALL - - 37 - + 32 AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-486
SELECT DISTINCT NULLIF ( COUNT( * ), - 88 ), + COALESCE ( + 98, 18 * + 18 DIV - 72, - 34 * 19 ) col2
----
1
98

skipif mysql # not compatible
query II rowsort label-486
SELECT DISTINCT NULLIF ( COUNT ( * ), - 88 ), + COALESCE ( + 98, 18 * + 18 / - 72, - 34 * 19 ) col2
----
1
98

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

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

query I rowsort
SELECT 17 + 88 AS col0
----
105

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

query I rowsort
SELECT ALL 93 - - + 68 + + 47 AS col2
----
208

query I rowsort
SELECT 36 + + 95 AS col1
----
131

query I rowsort
SELECT 42 * - 86 * - 57 AS col0
----
205884

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-494
SELECT ALL - CASE + - COUNT( ALL - ( - ( + + 23 ) ) ) WHEN - 56 / + CAST( 90 AS SIGNED ) + - + NULLIF ( + 18, + 4 * + + 16 + + 68 + - 43 ) + 79 + - SUM( + 89 ) THEN + ( 25 ) + 66 WHEN - 3 THEN NULL ELSE - - 62 * + 17 END * - 98 + + 61 + + 28 AS col2
----
103381

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL - CASE + - COUNT ( ALL - ( - ( + + 23 ) ) ) WHEN - 56 / + CAST ( 90 AS INTEGER ) + - + NULLIF ( + 18, + 4 * + + 16 + + 68 + - 43 ) + 79 + - SUM ( + 89 ) THEN + ( 25 ) + 66 WHEN - 3 THEN NULL ELSE - - 62 * + 17 END * - 98 + + 61 + + 28 AS col2
----
103381

query I rowsort
SELECT 32 * - ( + + 5 ) col1
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-496
SELECT DISTINCT + 52 * - 67 AS col2, - CAST( NULL AS SIGNED ) col1
----
-3484
NULL

skipif mysql # not compatible
query II rowsort label-496
SELECT DISTINCT + 52 * - 67 AS col2, - CAST ( NULL AS INTEGER ) col1
----
-3484
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-497
SELECT DISTINCT + CAST( - 35 AS SIGNED ) * - 69 AS col0
----
2415

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT + CAST ( - 35 AS INTEGER ) * - 69 AS col0
----
2415

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT ALL + 43 * + CASE + MIN( DISTINCT 98 ) WHEN - + 72 THEN NULL ELSE 46 + COUNT( 79 ) * 54 + + - CASE - ( + - 19 ) WHEN + + 90 THEN NULL WHEN 95 THEN - NULLIF ( + 83, - 33 * - 82 + + COUNT( * ) + - 51 ) + + 86 ELSE NULL END * - 22 END / - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL + 43 * + CASE + MIN ( DISTINCT 98 ) WHEN - + 72 THEN NULL ELSE 46 + COUNT ( 79 ) * 54 + + - CASE - ( + - 19 ) WHEN + + 90 THEN NULL WHEN 95 THEN - NULLIF ( + 83, - 33 * - 82 + + COUNT ( * ) + - 51 ) + + 86 ELSE NULL END * - 22 END / - + 10
----
NULL

query I rowsort
SELECT ALL + 71 * - 17 AS col2
----
-1207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-500
SELECT 58 * - 77 / - - 66 * - CAST( NULL AS SIGNED ) AS col1, + 25 * + 44 AS col0
----
NULL
1100

skipif mysql # not compatible
query II rowsort label-500
SELECT 58 * - 77 / - - 66 * - CAST ( NULL AS INTEGER ) AS col1, + 25 * + 44 AS col0
----
NULL
1100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT - 55 DIV - 65 * - ( COUNT( ALL + - 22 ) ) - - 47 + 88 col2
----
135

skipif mysql # not compatible
query I rowsort label-501
SELECT - 55 / - 65 * - ( COUNT ( ALL + - 22 ) ) - - 47 + 88 col2
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-502
SELECT DISTINCT + 26 + + - CASE - 18 WHEN - + 84 * + 78 + 19 + - 35 * - COUNT( 16 ) THEN + + 94 + - 58 * + 1 WHEN CAST( NULL AS SIGNED ) THEN + + MIN( DISTINCT + 95 ) / 58 + CAST( + COUNT( * ) AS SIGNED ) END + - 44 + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT + 26 + + - CASE - 18 WHEN - + 84 * + 78 + 19 + - 35 * - COUNT ( 16 ) THEN + + 94 + - 58 * + 1 WHEN CAST ( NULL AS INTEGER ) THEN + + MIN ( DISTINCT + 95 ) / 58 + CAST ( + COUNT ( * ) AS INTEGER ) END + - 44 + - 99
----
NULL

query I rowsort
SELECT 57 * - ( + - 20 )
----
1140

query I rowsort
SELECT ( 22 ) * + 75 + NULLIF ( 1, - 47 / 14 * + 20 ) AS col1
----
1651

query I rowsort
SELECT DISTINCT 81 + + 32 col1
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT ALL - 54 DIV + 31 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - 54 / + 31 AS col1
----
-1

query I rowsort
SELECT ALL + 43 + + 30 AS col2
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-508
SELECT DISTINCT - 85 + - CASE 19 WHEN CAST( + AVG ( ALL - 86 ) AS DECIMAL ) - 67 THEN - 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT - 85 + - CASE 19 WHEN CAST ( + AVG ( ALL - 86 ) AS REAL ) - 67 THEN - 41 END
----
NULL

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

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

query I rowsort
SELECT - 78 + 50 * + + 88
----
4322

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT DISTINCT - SUM( + 44 ) + + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT - SUM ( + 44 ) + + COUNT ( * )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-512
SELECT + + CAST( + NULLIF ( + - 92, + - SUM( DISTINCT + 79 ) ) AS SIGNED ) * COUNT( 64 ) + MIN( - - 52 ) AS col0, + 72 * - + 3
----
-40
-216

skipif mysql # not compatible
query II rowsort label-512
SELECT + + CAST ( + NULLIF ( + - 92, + - SUM ( DISTINCT + 79 ) ) AS INTEGER ) * COUNT ( 64 ) + MIN ( - - 52 ) AS col0, + 72 * - + 3
----
-40
-216

query I rowsort
SELECT ALL + 71 + + ( - 3 ) * + 20 + + 34
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT 17 * - 77 * + CASE COUNT( * ) WHEN COUNT( * ) THEN + + MAX( - 70 ) * - COUNT( * ) + 32 + 10 * ( + 13 ) + - MAX( ( + 44 ) ) END - 9 AS col1
----
-246101

skipif mysql # not compatible
query I rowsort label-514
SELECT 17 * - 77 * + CASE COUNT ( * ) WHEN COUNT ( * ) THEN + + MAX ( - 70 ) * - COUNT ( * ) + 32 + 10 * ( + 13 ) + - MAX ( ( + 44 ) ) END - 9 AS col1
----
-246101

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT + 14 + 34 DIV + 50 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-515
SELECT + 14 + 34 / + 50 AS col1
----
14

query I rowsort
SELECT ALL + COALESCE ( - 54, ( + COALESCE ( - 91, + + 57 * + + 17 ) ) - - NULLIF ( 35, ( - 97 ) ) ) AS col0
----
-54

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

onlyif mysql # aggregate syntax: 
query II rowsort label-518
SELECT 7 + + 57 AS col1, - 30 + COUNT( * )
----
64
-29

skipif mysql # not compatible
query II rowsort label-518
SELECT 7 + + 57 AS col1, - 30 + COUNT ( * )
----
64
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-519
SELECT ALL CASE + - 5 WHEN - ( + 14 ) + ( - 31 ) - - CASE 83 WHEN - - COUNT( * ) + + + 60 * - 52 * - - 68 THEN NULL WHEN - + COALESCE ( + 98, - + 60 * - 83 ) - 97 THEN NULL ELSE - 76 + - COUNT( * ) END * - 5 THEN + 65 ELSE - 42 END - - 0 DIV 3 AS col1, COUNT( * ) * + 23
----
-42
23

skipif mysql # not compatible
query II rowsort label-519
SELECT ALL CASE + - 5 WHEN - ( + 14 ) + ( - 31 ) - - CASE 83 WHEN - - COUNT ( * ) + + + 60 * - 52 * - - 68 THEN NULL WHEN - + COALESCE ( + 98, - + 60 * - 83 ) - 97 THEN NULL ELSE - 76 + - COUNT ( * ) END * - 5 THEN + 65 ELSE - 42 END - - 0 / 3 AS col1, COUNT ( * ) * + 23
----
-42
23

query I rowsort
SELECT - 80 * 95 + + 85
----
-7515

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT DISTINCT + + 80 * - 75 * + COALESCE ( + + COUNT( * ), + 2 ) col0
----
-6000

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT + + 80 * - 75 * + COALESCE ( + + COUNT ( * ), + 2 ) col0
----
-6000

query I rowsort
SELECT DISTINCT + NULLIF ( - ( + 52 ), - 87 + 59 ) AS col0
----
-52

query I rowsort
SELECT DISTINCT - 8 - - + 29 + - 38 - + 64 * - 50 AS col0
----
3183

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

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

query I rowsort
SELECT DISTINCT + 53 * + - 82 * + - 15 AS col0
----
65190

query I rowsort
SELECT + 75 * 42 col0
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE COUNT( * ) END / - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE COUNT ( * ) END / - - 18
----
NULL

query I rowsort
SELECT + 87 - - 66
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT + 63 - - 1 DIV + + COALESCE ( - - 21, + - COUNT( DISTINCT + 24 ) )
----
63

skipif mysql # not compatible
query I rowsort label-529
SELECT + 63 - - 1 / + + COALESCE ( - - 21, + - COUNT ( DISTINCT + 24 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT + 80 * - NULLIF ( + 80, - COUNT( * ) - - COUNT( * ) * + + NULLIF ( - MAX( DISTINCT + 93 ), 8 ) ) AS col0
----
-6400

skipif mysql # not compatible
query I rowsort label-530
SELECT + 80 * - NULLIF ( + 80, - COUNT ( * ) - - COUNT ( * ) * + + NULLIF ( - MAX ( DISTINCT + 93 ), 8 ) ) AS col0
----
-6400

query I rowsort
SELECT + 39 * - 23
----
-897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-532
SELECT ALL ( - 59 ) * CAST( 46 AS SIGNED ) AS col2
----
-2714

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL ( - 59 ) * CAST ( 46 AS INTEGER ) AS col2
----
-2714

query I rowsort
SELECT + 33 - + - 37 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT DISTINCT CASE + 36 WHEN + ( - - 12 ) * 3 / - ( + 38 ) THEN - COUNT( * ) * - - 60 WHEN 72 * 60 / + + ( + 10 ) + 38 THEN + 5 ELSE NULL END * AVG ( - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT CASE + 36 WHEN + ( - - 12 ) * 3 / - ( + 38 ) THEN - COUNT ( * ) * - - 60 WHEN 72 * 60 / + + ( + 10 ) + 38 THEN + 5 ELSE NULL END * AVG ( - 46 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT ALL 1 * - 33 + - CAST( + AVG ( NULLIF ( - 73, - 89 ) ) AS SIGNED ) + - + 88 + - 30
----
-78

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL 1 * - 33 + - CAST ( + AVG ( NULLIF ( - 73, - 89 ) ) AS INTEGER ) + - + 88 + - 30
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-536
SELECT ALL 70 * + 84 + + + 38 + + + 36 * - 97 + + 15 + + 8 + - 45 * MAX( DISTINCT - + 38 ) * + COALESCE ( - MIN( DISTINCT - 53 ), - - 17 * + CASE - 47 WHEN - + 14 DIV 53 THEN NULL WHEN 79 THEN NULL ELSE - + COUNT( * ) END - 17 * + 47 + + + 12, 40 DIV - 27 + 47 * - + 12 )
----
93079

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL 70 * + 84 + + + 38 + + + 36 * - 97 + + 15 + + 8 + - 45 * MAX ( DISTINCT - + 38 ) * + COALESCE ( - MIN ( DISTINCT - 53 ), - - 17 * + CASE - 47 WHEN - + 14 / 53 THEN NULL WHEN 79 THEN NULL ELSE - + COUNT ( * ) END - 17 * + 47 + + + 12, 40 / - 27 + 47 * - + 12 )
----
93079

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT COUNT( + - 94 ) * - 14 + - + 52
----
-66

skipif mysql # not compatible
query I rowsort label-537
SELECT COUNT ( + - 94 ) * - 14 + - + 52
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT NULLIF ( + COUNT( * ), 29 * 11 )
----
1

skipif mysql # not compatible
query I rowsort label-538
SELECT NULLIF ( + COUNT ( * ), 29 * 11 )
----
1

query I rowsort
SELECT ALL + COALESCE ( + 8, + + 32 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-540
SELECT - ( - 80 ) * - CASE + COUNT( * ) WHEN + CASE WHEN 43 IS NOT NULL THEN 76 END * + 67 THEN - + COALESCE ( 17, + COUNT( * ) * + CAST( 41 AS SIGNED ) * - ( - 4 ) * + ( 5 ) + - 13 ) + + + 34 * + 99 + + 13 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT - ( - 80 ) * - CASE + COUNT ( * ) WHEN + CASE WHEN 43 IS NOT NULL THEN 76 END * + 67 THEN - + COALESCE ( 17, + COUNT ( * ) * + CAST ( 41 AS INTEGER ) * - ( - 4 ) * + ( 5 ) + - 13 ) + + + 34 * + 99 + + 13 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT COUNT( * ) * - COUNT( * ) - - - 96 - - CAST( NULL AS SIGNED ) * CAST( + + 22 AS SIGNED ) / - + AVG ( DISTINCT + 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT COUNT ( * ) * - COUNT ( * ) - - - 96 - - CAST ( NULL AS INTEGER ) * CAST ( + + 22 AS INTEGER ) / - + AVG ( DISTINCT + 0 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT ALL COUNT( 21 ) * - 99 + + 71 + - 3
----
-31

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL COUNT ( 21 ) * - 99 + + 71 + - 3
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT DISTINCT 20 * + - 35 + + + 31 + - + NULLIF ( + COALESCE ( NULLIF ( + + MAX( DISTINCT 75 ), + 4 ), 57 ), 6 ) * - - 31
----
-2994

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT 20 * + - 35 + + + 31 + - + NULLIF ( + COALESCE ( NULLIF ( + + MAX ( DISTINCT 75 ), + 4 ), 57 ), 6 ) * - - 31
----
-2994

query I rowsort
SELECT ALL + ( - 15 ) * - 25 AS col2
----
375

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT - + 86 DIV 17 * - + 17 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-546
SELECT - + 86 / 17 * - + 17 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT DISTINCT - 19 * - + 1 DIV - + 81 + + 69
----
69

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT - 19 * - + 1 / - + 81 + + 69
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-548
SELECT DISTINCT - 12 * - COUNT( * ) * - COUNT( * ) * - 61 - + - 66 + + 48 * + + 19 - - 94 AS col1, - 33 AS col0
----
1804
-33

skipif mysql # not compatible
query II rowsort label-548
SELECT DISTINCT - 12 * - COUNT ( * ) * - COUNT ( * ) * - 61 - + - 66 + + 48 * + + 19 - - 94 AS col1, - 33 AS col0
----
1804
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-549
SELECT - - 42 * + + MIN( DISTINCT - 31 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT - - 42 * + + MIN ( DISTINCT - 31 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - CASE - + AVG ( ALL + - 83 ) WHEN + 85 / - 93 THEN ( + 58 ) ELSE NULL END
----
NULL

query II rowsort
SELECT - ( 12 ) + - 59 col1, + 36 AS col2
----
-71
36

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT CASE + 65 WHEN - + 15 THEN - + MIN( ALL + 80 ) * - - COUNT( * ) * - COUNT( * ) + + 24 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT CASE + 65 WHEN - + 15 THEN - + MIN ( ALL + 80 ) * - - COUNT ( * ) * - COUNT ( * ) + + 24 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 42 + + - 18 col2
----
-60

query II rowsort
SELECT - ( 24 ) * - + 57 AS col2, + 2 AS col0
----
1368
2

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

query I rowsort
SELECT - - 10 + + 8 AS col2
----
18

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

skipif mysql # not compatible
query I rowsort label-557
SELECT - COUNT ( * ) + - + 96 + CAST ( - COUNT ( * ) AS INTEGER )
----
-98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT + + 85 * CAST( + 68 AS SIGNED ) + - COUNT( * ) + - 53
----
5726

skipif mysql # not compatible
query I rowsort label-559
SELECT + + 85 * CAST ( + 68 AS INTEGER ) + - COUNT ( * ) + - 53
----
5726

query I rowsort
SELECT - 63 + - 59 + - - 24
----
-98

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

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

query I rowsort
SELECT - 39 + 44 + 53
----
58

query I rowsort
SELECT + 45 + - 43 + 17
----
19

query I rowsort
SELECT - NULLIF ( + + 53, - + 12 * - ( + 62 ) * + 88 * + 86 * 97 ) AS col0
----
-53

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

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

query I rowsort
SELECT ALL + 79 + + - 3 AS col0
----
76

query I rowsort
SELECT ALL 27 + 52
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL + SUM( + 82 ) * - + 15
----
-1230

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL + SUM ( + 82 ) * - + 15
----
-1230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-569
SELECT ALL 3 + - 87 * + 3 * 74 + 17 - + COUNT( DISTINCT - 83 ) DIV + + 80
----
-19294

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL 3 + - 87 * + 3 * 74 + 17 - + COUNT ( DISTINCT - 83 ) / + + 80
----
-19294

query I rowsort
SELECT + 9 + + 81 AS col2
----
90

query II rowsort
SELECT ALL 43 AS col2, + 37
----
43
37

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

skipif mysql # not compatible
query I rowsort label-572
SELECT - MAX ( ALL 37 )
----
-37

query I rowsort
SELECT ALL 9 + - + 94 col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-574
SELECT + 50 DIV - COUNT( - + 57 )
----
-50

skipif mysql # not compatible
query I rowsort label-574
SELECT + 50 / - COUNT ( - + 57 )
----
-50

query I rowsort
SELECT ALL 61 * - 93
----
-5673

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

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

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

query I rowsort
SELECT - ( - + 3 ) + - 33 * - - ( + + 90 ) AS col0
----
-2967

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-579
SELECT ALL 53 DIV - - 92 + - - SUM( + 55 ) - 67 + - 99 * + + 81, - 39 AS col1
----
-8031
-39

skipif mysql # not compatible
query II rowsort label-579
SELECT ALL 53 / - - 92 + - - SUM ( + 55 ) - 67 + - 99 * + + 81, - 39 AS col1
----
-8031
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT COUNT( * ) * 71 + 62 col0
----
133

skipif mysql # not compatible
query I rowsort label-580
SELECT COUNT ( * ) * 71 + 62 col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL + CASE + 6 WHEN - 80 + - + COUNT( * ) THEN - + 51 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL + CASE + 6 WHEN - 80 + - + COUNT ( * ) THEN - + 51 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT + 14 DIV - + COUNT( * ) + + 8 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-582
SELECT + 14 / - + COUNT ( * ) + + 8 AS col1
----
-6

query II rowsort
SELECT + - 23, 33 col1
----
-23
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-584
SELECT + - NULLIF ( 47, - 47 + - 38 ) / - - 50 - + CAST( NULL AS SIGNED ) + - 47 + - 78 * - 52 / - 75 * 30 - + 91 + - - ( 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-584
SELECT + - NULLIF ( 47, - 47 + - 38 ) / - - 50 - + CAST ( NULL AS INTEGER ) + - 47 + - 78 * - 52 / - 75 * 30 - + 91 + - - ( 8 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT - CAST( NULL AS SIGNED ) * + 69 * + - COUNT( * ) + - CAST( - - 16 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-585
SELECT - CAST ( NULL AS INTEGER ) * + 69 * + - COUNT ( * ) + - CAST ( - - 16 AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT - - 14 + - + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-587
SELECT - - 14 + - + COUNT ( * )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT DISTINCT - 0 * + + 20 * + - ( - 23 ) - COUNT( * ) DIV - + 23 * - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT - 0 * + + 20 * + - ( - 23 ) - COUNT ( * ) / - + 23 * - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-589
SELECT ALL + MAX( DISTINCT - - 36 ), + NULLIF ( NULLIF ( 65, + 92 + + COUNT( * ) ), - 76 ) AS col1
----
36
65

skipif mysql # not compatible
query II rowsort label-589
SELECT ALL + MAX ( DISTINCT - - 36 ), + NULLIF ( NULLIF ( 65, + 92 + + COUNT ( * ) ), - 76 ) AS col1
----
36
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT ( + 78 ) - CAST( - + 53 AS SIGNED ) * + ( + MAX( - 95 ) )
----
-4957

skipif mysql # not compatible
query I rowsort label-590
SELECT ( + 78 ) - CAST ( - + 53 AS INTEGER ) * + ( + MAX ( - 95 ) )
----
-4957

query II rowsort
SELECT ALL - 75 * + 61 AS col1, + 50 AS col2
----
-4575
50

onlyif mysql # aggregate syntax: 
query III rowsort label-592
SELECT ALL - 72, + ( - 34 ) + - 49 AS col2, MIN( ALL + 16 ) + + 39 * - COUNT( * ) * 40 AS col1
----
-72
-83
-1544

skipif mysql # not compatible
query III rowsort label-592
SELECT ALL - 72, + ( - 34 ) + - 49 AS col2, MIN ( ALL + 16 ) + + 39 * - COUNT ( * ) * 40 AS col1
----
-72
-83
-1544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT ALL - MAX( DISTINCT - 60 ) * 29
----
1740

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL - MAX ( DISTINCT - 60 ) * 29
----
1740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-595
SELECT - + COUNT( * ), - ( - - 98 ) * - NULLIF ( 21, - NULLIF ( + ( - CAST( - 93 AS SIGNED ) ), + 42 + 75 * - CAST( NULL AS SIGNED ) * 51 ) ) AS col0
----
-1
2058

skipif mysql # not compatible
query II rowsort label-595
SELECT - + COUNT ( * ), - ( - - 98 ) * - NULLIF ( 21, - NULLIF ( + ( - CAST ( - 93 AS INTEGER ) ), + 42 + 75 * - CAST ( NULL AS INTEGER ) * 51 ) ) AS col0
----
-1
2058

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-596
SELECT 92 + + CAST( NULL AS DECIMAL ) + ( 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT 92 + + CAST ( NULL AS REAL ) + ( 67 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT - 16 DIV 80 * + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-597
SELECT - 16 / 80 * + 96 AS col0
----
0

query I rowsort
SELECT + 25 + + 79 * + - 43 * + 97
----
-329484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-599
SELECT ALL COUNT( ALL - 2 ) AS col1, + 36 * + CAST( NULL AS SIGNED ) * - - 39 * + - 23 - 14 + 2 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-599
SELECT ALL COUNT ( ALL - 2 ) AS col1, + 36 * + CAST ( NULL AS INTEGER ) * - - 39 * + - 23 - 14 + 2 AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-600
SELECT ALL - 11 + MAX( + 79 ) + + 30 + CAST( - ( COUNT( - - 85 ) ) AS SIGNED ) * 86
----
12

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL - 11 + MAX ( + 79 ) + + 30 + CAST ( - ( COUNT ( - - 85 ) ) AS INTEGER ) * 86
----
12

query I rowsort
SELECT 42 * - 36 AS col1
----
-1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-602
SELECT ALL + CAST( - 9 AS SIGNED ) + 57
----
48

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL + CAST ( - 9 AS INTEGER ) + 57
----
48

query I rowsort
SELECT DISTINCT 62 + 70 * 82
----
5802

query II rowsort
SELECT ALL 21 * + 25, 73 * - 13 AS col2
----
525
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL + 48 + MIN( 18 )
----
66

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + 48 + MIN ( 18 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-606
SELECT 41 - + 89 AS col1, MIN( COALESCE ( 5, + - ( ( - NULLIF ( + 60, - + 60 ) ) ) ) ) * - 71 - - 51
----
-48
-304

skipif mysql # not compatible
query II rowsort label-606
SELECT 41 - + 89 AS col1, MIN ( COALESCE ( 5, + - ( ( - NULLIF ( + 60, - + 60 ) ) ) ) ) * - 71 - - 51
----
-48
-304

query II rowsort
SELECT DISTINCT 20 * - 73, - 67 col0
----
-1460
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT ALL 14 - + + COUNT( * ) + 52 + 10 * + - 33 AS col1
----
-265

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL 14 - + + COUNT ( * ) + 52 + 10 * + - 33 AS col1
----
-265

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT MAX( + NULLIF ( - + 43, 76 ) ) - 54
----
-97

skipif mysql # not compatible
query I rowsort label-609
SELECT MAX ( + NULLIF ( - + 43, 76 ) ) - 54
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-610
SELECT CAST( NULL AS DECIMAL ) * - COALESCE ( ( + - 74 ), + 71 ) / - - 46 - - + 0 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-610
SELECT CAST ( NULL AS REAL ) * - COALESCE ( ( + - 74 ), + 71 ) / - - 46 - - + 0 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL 8 / - + 13 * CASE COUNT( * ) WHEN + 88 * - 55 THEN - COUNT( * ) * 33 + - COUNT( * ) * - - 86 * - MIN( - 93 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL 8 / - + 13 * CASE COUNT ( * ) WHEN + 88 * - 55 THEN - COUNT ( * ) * 33 + - COUNT ( * ) * - - 86 * - MIN ( - 93 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 78 - 35 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT 25 * 50 + - - 49 + - 59 DIV 82 * - 80 AS col2
----
1299

skipif mysql # not compatible
query I rowsort label-613
SELECT 25 * 50 + - - 49 + - 59 / 82 * - 80 AS col2
----
1299

query I rowsort
SELECT 82 * - 43 * 60 AS col1
----
-211560

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT ALL - 14 DIV - + NULLIF ( + 51, + 31 * + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL - 14 / - + NULLIF ( + 51, + 31 * + 82 )
----
0

query I rowsort
SELECT DISTINCT 59 * - 83
----
-4897

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-617
SELECT ALL + CASE + 22 WHEN + CAST( + 45 AS SIGNED ) THEN + 84 ELSE 25 DIV 3 * + 82 END * + 87 AS col1
----
57072

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL + CASE + 22 WHEN + CAST ( + 45 AS INTEGER ) THEN + 84 ELSE 25 / 3 * + 82 END * + 87 AS col1
----
57072

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT COUNT( * ) * 21 + - 35
----
-14

skipif mysql # not compatible
query I rowsort label-619
SELECT COUNT ( * ) * 21 + - 35
----
-14

query I rowsort
SELECT DISTINCT + 46 * + 88 * + 32 * - - 11 + - 97
----
1424799

query I rowsort
SELECT DISTINCT - + NULLIF ( + + 77, + + COALESCE ( - - 78, + 68, - 9 ) )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-622
SELECT 30 * - + 59 col2, - 10 DIV - NULLIF ( + ( - - SUM( + ( 27 ) ) ), - + COUNT( * ) + - + 14 ) AS col1
----
-1770
0

skipif mysql # not compatible
query II rowsort label-622
SELECT 30 * - + 59 col2, - 10 / - NULLIF ( + ( - - SUM ( + ( 27 ) ) ), - + COUNT ( * ) + - + 14 ) AS col1
----
-1770
0

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT COUNT( * ) + NULLIF ( - - 85, + - 8 * - - 31 + + 47 ) + + 68 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-623
SELECT COUNT ( * ) + NULLIF ( - - 85, + - 8 * - - 31 + + 47 ) + + 68 AS col1
----
154

query I rowsort
SELECT + - CASE + - 61 WHEN + 67 THEN - + 54 WHEN - - 68 THEN NULL ELSE - COALESCE ( + + 73, - COALESCE ( + 93, + + 25 ) ) END AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT ALL - COALESCE ( - NULLIF ( - + 34, - 78 * - COUNT( * ) / + 47 ), 0 + - 63 + 96, + 36, 29 * + + 8 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - COALESCE ( - NULLIF ( - + 34, - 78 * - COUNT ( * ) / + 47 ), 0 + - 63 + 96, + 36, 29 * + + 8 ) AS col2
----
-34

query I rowsort
SELECT + 40 + + + 10 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT COUNT( * ) * + - 9 * + 85
----
-765

skipif mysql # not compatible
query I rowsort label-627
SELECT COUNT ( * ) * + - 9 * + 85
----
-765

query I rowsort
SELECT 40 - 64 + - 21
----
-45

query I rowsort
SELECT ALL + 79 + + 68
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT - 21 * + COUNT( * ) - + 10 + - 84 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-630
SELECT - 21 * + COUNT ( * ) - + 10 + - 84 AS col1
----
-115

query II rowsort
SELECT 3, - ( + - 65 ) AS col1
----
3
65

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT ALL 98 DIV - ( - NULLIF ( - + 58, + + 90 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL 98 / - ( - NULLIF ( - + 58, + + 90 ) ) AS col2
----
-1

query I rowsort
SELECT ALL - 7 * - - 88
----
-616

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT COUNT( * ) + 93 * + 12 * + COUNT( 13 ) + + - 8 AS col0
----
1109

skipif mysql # not compatible
query I rowsort label-636
SELECT COUNT ( * ) + 93 * + 12 * + COUNT ( 13 ) + + - 8 AS col0
----
1109

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT 51 + + COUNT( * ) + + 6 * - 40
----
-188

skipif mysql # not compatible
query I rowsort label-637
SELECT 51 + + COUNT ( * ) + + 6 * - 40
----
-188

query I rowsort
SELECT 67 * + 10
----
670

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT 76 + 52 - - - 33 * + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-639
SELECT 76 + 52 - - - 33 * + COUNT ( * )
----
95

query I rowsort
SELECT 86 + - 10
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-641
SELECT 38 AS col0, COUNT( * ) + + + CAST( NULL AS SIGNED ) - - 99
----
38
NULL

skipif mysql # not compatible
query II rowsort label-641
SELECT 38 AS col0, COUNT ( * ) + + + CAST ( NULL AS INTEGER ) - - 99
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT MAX( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT MAX ( - 39 )
----
-39

query I rowsort
SELECT 2 * - 80
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT COUNT( * ) + COUNT( * ) * 65 col2
----
66

skipif mysql # not compatible
query I rowsort label-644
SELECT COUNT ( * ) + COUNT ( * ) * 65 col2
----
66

query II rowsort
SELECT 19 AS col0, 68 + - + 4
----
19
64

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-647
SELECT ALL - CAST( MIN( ALL + + 10 ) AS SIGNED ) AS col1, - 35 * - COUNT( * ) col2
----
-10
35

skipif mysql # not compatible
query II rowsort label-647
SELECT ALL - CAST ( MIN ( ALL + + 10 ) AS INTEGER ) AS col1, - 35 * - COUNT ( * ) col2
----
-10
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-648
SELECT + COUNT( * ) DIV COUNT( * ) + - 15 + + 79 * + + 81 + - 44 * 44 * - 50 + + ( + 34 ) - - 79 * - COUNT( * ) * COUNT( * ) * - 41
----
106458

skipif mysql # not compatible
query I rowsort label-648
SELECT + COUNT ( * ) / COUNT ( * ) + - 15 + + 79 * + + 81 + - 44 * 44 * - 50 + + ( + 34 ) - - 79 * - COUNT ( * ) * COUNT ( * ) * - 41
----
106458

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-650
SELECT 84 * + 73 + + NULLIF ( - + 78, - - 65 * + 1 + - + COALESCE ( - 2, + CAST( NULL AS SIGNED ) ) - - 10 * - - 9 + + COUNT( * ) + + 85 ) + + 2
----
6056

skipif mysql # not compatible
query I rowsort label-650
SELECT 84 * + 73 + + NULLIF ( - + 78, - - 65 * + 1 + - + COALESCE ( - 2, + CAST ( NULL AS INTEGER ) ) - - 10 * - - 9 + + COUNT ( * ) + + 85 ) + + 2
----
6056

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT DISTINCT - + COUNT( * ) * - ( + - COALESCE ( - - 66, + 95 + 2 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT - + COUNT ( * ) * - ( + - COALESCE ( - - 66, + 95 + 2 ) )
----
-66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-653
SELECT DISTINCT + + COALESCE ( + + 34, - + 14 * + + 43 ) AS col0, - 9 + + - COUNT( * )
----
34
-10

skipif mysql # not compatible
query II rowsort label-653
SELECT DISTINCT + + COALESCE ( + + 34, - + 14 * + + 43 ) AS col0, - 9 + + - COUNT ( * )
----
34
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-654
SELECT + - COUNT( * ) + 34 + - 15 AS col1, - 74
----
18
-74

skipif mysql # not compatible
query II rowsort label-654
SELECT + - COUNT ( * ) + 34 + - 15 AS col1, - 74
----
18
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL - 77 * 42 + - COUNT( * ) + ( - COUNT( * ) ) + + 69 AS col1
----
-3167

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - 77 * 42 + - COUNT ( * ) + ( - COUNT ( * ) ) + + 69 AS col1
----
-3167

onlyif mysql # aggregate syntax: 
query II rowsort label-656
SELECT ALL + - 32 AS col1, 70 + - COUNT( * )
----
-32
69

skipif mysql # not compatible
query II rowsort label-656
SELECT ALL + - 32 AS col1, 70 + - COUNT ( * )
----
-32
69

query I rowsort
SELECT - - 36 * - + 79
----
-2844

query I rowsort
SELECT - - 78 - + 73 col2
----
5

query II rowsort
SELECT + - 45 col0, 78 * - + ( ( - NULLIF ( - 50, - + 77 ) ) ) AS col0
----
-45
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL + + SUM( DISTINCT 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + + SUM ( DISTINCT 61 ) AS col0
----
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT + CASE 36 WHEN COUNT( * ) THEN NULL WHEN - - COALESCE ( + 53, + ( + 96 ) ) * - COUNT( * ) THEN 42 END * - + 53 * - 99 + + 88 + - + 15 + - CASE COALESCE ( - 72, - + 67 ) WHEN + 84 * NULLIF ( - 60, 89 / + 68 ) THEN - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-662
SELECT + CASE 36 WHEN COUNT ( * ) THEN NULL WHEN - - COALESCE ( + 53, + ( + 96 ) ) * - COUNT ( * ) THEN 42 END * - + 53 * - 99 + + 88 + - + 15 + - CASE COALESCE ( - 72, - + 67 ) WHEN + 84 * NULLIF ( - 60, 89 / + 68 ) THEN - 10 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-663
SELECT + 38 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT ALL + + ( 88 ) * + - 60 + - CAST( + + 51 AS SIGNED ) + 23 AS col0
----
-5308

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + + ( 88 ) * + - 60 + - CAST ( + + 51 AS INTEGER ) + 23 AS col0
----
-5308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-665
SELECT ALL + - NULLIF ( 50, + SUM( DISTINCT + 46 ) * - NULLIF ( + CAST( NULL AS SIGNED ), + + COUNT( * ) + + 60 * - 32 ) + - 3 - - 91 )
----
-50

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + - NULLIF ( 50, + SUM ( DISTINCT + 46 ) * - NULLIF ( + CAST ( NULL AS INTEGER ), + + COUNT ( * ) + + 60 * - 32 ) + - 3 - - 91 )
----
-50

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

skipif mysql # not compatible
query I rowsort label-666
SELECT + 65 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT + 55 * COUNT( * ) + + 26 * 96 col0
----
2551

skipif mysql # not compatible
query I rowsort label-667
SELECT + 55 * COUNT ( * ) + + 26 * 96 col0
----
2551

query I rowsort
SELECT ALL ( ( - - 93 ) ) + 12 + - - 21 + + 54 * - - 74 * - 69
----
-275598

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL 92 + - 59 + 4 * COUNT( * ) col1
----
37

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL 92 + - 59 + 4 * COUNT ( * ) col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-670
SELECT COUNT( DISTINCT - - 11 ), + 87 AS col1
----
1
87

skipif mysql # not compatible
query II rowsort label-670
SELECT COUNT ( DISTINCT - - 11 ), + 87 AS col1
----
1
87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-672
SELECT - COALESCE ( + - 95, + 31 + - 62, - ( - COUNT( * ) ), - + CASE + + 88 WHEN 85 * + CASE 98 WHEN - 61 THEN - 24 END THEN - - ( + CAST( NULL AS SIGNED ) ) END + + 70 )
----
95

skipif mysql # not compatible
query I rowsort label-672
SELECT - COALESCE ( + - 95, + 31 + - 62, - ( - COUNT ( * ) ), - + CASE + + 88 WHEN 85 * + CASE 98 WHEN - 61 THEN - 24 END THEN - - ( + CAST ( NULL AS INTEGER ) ) END + + 70 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT - MIN( - 67 ) + - 23 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-673
SELECT - MIN ( - 67 ) + - 23 AS col0
----
44

query I rowsort
SELECT ALL + 49 - - 9
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-675
SELECT - ( + 53 ) AS col0, + COUNT( * ) * CAST( NULL AS DECIMAL )
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-675
SELECT - ( + 53 ) AS col0, + COUNT ( * ) * CAST ( NULL AS REAL )
----
-53
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-676
SELECT + COUNT( * ) DIV - 55 * + ( CAST( 64 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-676
SELECT + COUNT ( * ) / - 55 * + ( CAST ( 64 AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT DISTINCT + 76 * + - SUM( DISTINCT + 95 )
----
-7220

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT + 76 * + - SUM ( DISTINCT + 95 )
----
-7220

query I rowsort
SELECT ALL COALESCE ( 58, ( + + 88 ) )
----
58

query I rowsort
SELECT ALL 79 * + 60 * + + 17
----
80580

query I rowsort
SELECT - 90 * - 14 AS col0
----
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT + 61 - + 35 DIV + - 9 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-681
SELECT + 61 - + 35 / + - 9 AS col2
----
64

query I rowsort
SELECT - 66 * - 17 AS col1
----
1122

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

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT + + 73 / - COUNT ( * ) + - + 42 + - - COUNT ( * )
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT ALL + 32 * COUNT( ALL + + ( + 51 ) ) * - 40 + + 44 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + 32 * COUNT ( ALL + + ( + 51 ) ) * - 40 + + 44 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-685
SELECT DISTINCT - - 42 / - ( 44 ) - + - ( - COALESCE ( + + 2, 0 + + + 50 ) ) + - 3 + + CAST( - 45 AS SIGNED ) * + - CAST( NULL AS SIGNED ) * - 70 + + 76 AS col2, 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-685
SELECT DISTINCT - - 42 / - ( 44 ) - + - ( - COALESCE ( + + 2, 0 + + + 50 ) ) + - 3 + + CAST ( - 45 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * - 70 + + 76 AS col2, 83
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT - - 93 + + + 96 + COUNT( * ) * - + ( - - 99 ) + + 16 + - + ( + - COUNT( * ) ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-686
SELECT - - 93 + + + 96 + COUNT ( * ) * - + ( - - 99 ) + + 16 + - + ( + - COUNT ( * ) ) AS col2
----
107

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT ALL + 15 DIV 55 DIV - 64 + + - 5 - ( 57 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL + 15 / 55 / - 64 + + - 5 - ( 57 ) AS col1
----
-62

query I rowsort
SELECT + 60 * 25 + - 74 - - + 99 + + 21 col0
----
1546

query I rowsort
SELECT COALESCE ( + 65, + - 84 * + 72 + - + 86 + + 6 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL - 96 * COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - 96 * COUNT ( * ) AS col1
----
-96

query II rowsort
SELECT - 8 * - 40, 42 AS col2
----
320
42

query I rowsort
SELECT + 78 * - 58
----
-4524

query I rowsort
SELECT ALL + - 14 * - + 79 * - ( - CASE CASE + + 61 WHEN + 39 THEN + AVG ( DISTINCT + ( - - 25 ) ) + 39 + - + 93 ELSE NULL END WHEN + - ( 27 ) * + 45 THEN 9 ELSE NULL END ) / - 59 + + - 46 + + + 28 + 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT ALL COUNT( - 72 ) * - COUNT( * ) + - 86 * 73 AS col1
----
-6279

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL COUNT ( - 72 ) * - COUNT ( * ) + - 86 * 73 AS col1
----
-6279

query I rowsort
SELECT ALL + 36 * + 2
----
72

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

skipif mysql # not compatible
query I rowsort label-698
SELECT + + CAST ( NULL AS INTEGER ) * 98 + 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-699
SELECT - CAST( NULL AS SIGNED ) * + 51 + - 90 * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT - CAST ( NULL AS INTEGER ) * + 51 + - 90 * 34 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT + COALESCE ( - CAST( - NULLIF ( - 94, - - CAST( + 75 AS SIGNED ) ) AS SIGNED ), - + 6, + - 12 + 22 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-700
SELECT + COALESCE ( - CAST ( - NULLIF ( - 94, - - CAST ( + 75 AS INTEGER ) ) AS INTEGER ), - + 6, + - 12 + 22 ) AS col0
----
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT + ( + SUM( - 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-702
SELECT + ( + SUM ( - 74 ) )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-703
SELECT + ( - + 89 ) * - 47 * - 58 * + 37 / + 63 * - - ( 55 ) * - 83 - + CAST( NULL AS SIGNED ) * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT + ( - + 89 ) * - 47 * - 58 * + 37 / + 63 * - - ( 55 ) * - 83 - + CAST ( NULL AS INTEGER ) * - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL 45 DIV - + 15 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL 45 / - + 15 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT - MIN( + 18 ) + - ( 22 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-705
SELECT - MIN ( + 18 ) + - ( 22 ) AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-706
SELECT DISTINCT + ( - - ( - + COUNT( * ) ) ) DIV - ( - 65 ), + 53 * + COUNT( * ) AS col2
----
0
53

skipif mysql # not compatible
query II rowsort label-706
SELECT DISTINCT + ( - - ( - + COUNT ( * ) ) ) / - ( - 65 ), + 53 * + COUNT ( * ) AS col2
----
0
53

query I rowsort
SELECT + 44 - - 4 * - - 23 + 23
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT ALL + 90 / + 86 * 45 * CASE + 0 WHEN + 30 + + 80 THEN - + MIN( + - 88 ) * + 67 + + COUNT( * ) + 55 - - 62 * + 42 + 64 + - - 65 / + - COUNT( * ) / + 60 END AS col1, 87 * - 43
----
NULL
-3741

skipif mysql # not compatible
query II rowsort label-708
SELECT ALL + 90 / + 86 * 45 * CASE + 0 WHEN + 30 + + 80 THEN - + MIN ( + - 88 ) * + 67 + + COUNT ( * ) + 55 - - 62 * + 42 + 64 + - - 65 / + - COUNT ( * ) / + 60 END AS col1, 87 * - 43
----
NULL
-3741

query I rowsort
SELECT + 75 * COALESCE ( - - 85, - 88, 43 * - 33 + 64 ) + + - 45
----
6330

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL 3 * + MAX( NULLIF ( - 96, + - 1 + - + 61 ) ) AS col0
----
-288

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL 3 * + MAX ( NULLIF ( - 96, + - 1 + - + 61 ) ) AS col0
----
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-712
SELECT - COUNT( * ) AS col2, ( - + CASE 9 WHEN - + COUNT( * ) THEN + - 77 WHEN 1 * - - COUNT( * ) * - 65 + - - 87 - - 68 THEN + COUNT( * ) ELSE NULL END )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-712
SELECT - COUNT ( * ) AS col2, ( - + CASE 9 WHEN - + COUNT ( * ) THEN + - 77 WHEN 1 * - - COUNT ( * ) * - 65 + - - 87 - - 68 THEN + COUNT ( * ) ELSE NULL END )
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-713
SELECT + 73 + + 50 - - + COUNT( * ) + + 50 + + 51 DIV + ( - 21 )
----
172

skipif mysql # not compatible
query I rowsort label-713
SELECT + 73 + + 50 - - + COUNT ( * ) + + 50 + + 51 / + ( - 21 )
----
172

query I rowsort
SELECT + 85 + 79 + 62 AS col0
----
226

query I rowsort
SELECT + 49 * 60 AS col0
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-716
SELECT ALL 58, - COALESCE ( + MAX( ALL + 63 ), + - 9 ) col2
----
58
-63

skipif mysql # not compatible
query II rowsort label-716
SELECT ALL 58, - COALESCE ( + MAX ( ALL + 63 ), + - 9 ) col2
----
58
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT + CASE - - COALESCE ( ( + + 19 ), + ( - 35 ) * - 85 ) WHEN ( + + COUNT( * ) ) THEN NULL WHEN 40 + + + ( - + 13 ) THEN NULL ELSE - CASE + 59 WHEN + 47 + - 60 / + 80 THEN 17 ELSE NULL END END + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-717
SELECT + CASE - - COALESCE ( ( + + 19 ), + ( - 35 ) * - 85 ) WHEN ( + + COUNT ( * ) ) THEN NULL WHEN 40 + + + ( - + 13 ) THEN NULL ELSE - CASE + 59 WHEN + 47 + - 60 / + 80 THEN 17 ELSE NULL END END + - 82
----
NULL

query II rowsort
SELECT + 67 - + NULLIF ( + 39, + + 28 * + 10 ) AS col1, ( - + ( - + 3 ) ) AS col2
----
28
3

query I rowsort
SELECT + 37 + 28 + - - 17 AS col1
----
82

query I rowsort
SELECT - 43 + 37 col0
----
-6

query II rowsort
SELECT 71, - 97 AS col2
----
71
-97

query I rowsort
SELECT + ( + - 94 ) * + 85 AS col2
----
-7990

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT ALL CASE + 31 WHEN + - COUNT( * ) - 69 * + + MAX( - - 15 ) THEN - 50 WHEN + 84 THEN + 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL CASE + 31 WHEN + - COUNT ( * ) - 69 * + + MAX ( - - 15 ) THEN - 50 WHEN + 84 THEN + 72 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 36 * + + 4 + - 39 + - + 47
----
-230

query I rowsort
SELECT DISTINCT 69 + + - 30
----
39

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

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

query I rowsort
SELECT + 17 + - 41
----
-24

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

skipif mysql # not compatible
query I rowsort label-729
SELECT - COUNT ( * ) / + 69 col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT + CASE - - 90 WHEN + MAX( + - 20 ) THEN NULL ELSE MIN( - 80 ) * - + COUNT( * ) * - COUNT( * ) * - + 54 END + - + 62 + 60
----
4318

skipif mysql # not compatible
query I rowsort label-731
SELECT + CASE - - 90 WHEN + MAX ( + - 20 ) THEN NULL ELSE MIN ( - 80 ) * - + COUNT ( * ) * - COUNT ( * ) * - + 54 END + - + 62 + 60
----
4318

query I rowsort
SELECT DISTINCT + + 79 + 27 AS col2
----
106

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

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

query I rowsort
SELECT + COALESCE ( - 14, - 43 ) * 83
----
-1162

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

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

query I rowsort
SELECT DISTINCT 98 + + + ( 51 ) + + 62 * - 43 * + 97 * - 75 AS col1
----
19395299

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-737
SELECT + COUNT( * ) / - 35 + - + CASE NULLIF ( + COUNT( * ), + 42 ) WHEN CAST( - MAX( ALL - + 31 ) AS DECIMAL ) THEN 93 WHEN - 82 THEN NULL WHEN - + 36 * + 5 THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT + COUNT ( * ) / - 35 + - + CASE NULLIF ( + COUNT ( * ), + 42 ) WHEN CAST ( - MAX ( ALL - + 31 ) AS REAL ) THEN 93 WHEN - 82 THEN NULL WHEN - + 36 * + 5 THEN COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT ALL - + 37 DIV 95 + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL - + 37 / 95 + 51 AS col2
----
51

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

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

query I rowsort
SELECT 45 - - 45 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-741
SELECT ALL - 48 - + CASE CAST( + COUNT( * ) AS SIGNED ) WHEN - 40 THEN + MAX( ALL 69 ) * 64 WHEN - 48 * 61 * 8 THEN NULL END * - CAST( NULL AS SIGNED ) * + 78 - + + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL - 48 - + CASE CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 40 THEN + MAX ( ALL 69 ) * 64 WHEN - 48 * 61 * 8 THEN NULL END * - CAST ( NULL AS INTEGER ) * + 78 - + + 77 AS col2
----
NULL

query II rowsort
SELECT 19 AS col1, - 89
----
19
-89

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-744
SELECT 67 * 88 AS col0, - 11 * - 97 * + COUNT( * ) AS col0
----
5896
1067

skipif mysql # not compatible
query II rowsort label-744
SELECT 67 * 88 AS col0, - 11 * - 97 * + COUNT ( * ) AS col0
----
5896
1067

query I rowsort
SELECT DISTINCT + 3 * + 31
----
93

query I rowsort
SELECT ALL - 49 - - 33
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-747
SELECT ALL - COUNT( * ) AS col1, + 83 AS col2
----
-1
83

skipif mysql # not compatible
query II rowsort label-747
SELECT ALL - COUNT ( * ) AS col1, + 83 AS col2
----
-1
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-748
SELECT 70 DIV COALESCE ( 69, 45 ) AS col2, - SUM( - 89 )
----
1
89

skipif mysql # not compatible
query II rowsort label-748
SELECT 70 / COALESCE ( 69, 45 ) AS col2, - SUM ( - 89 )
----
1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT COUNT( * ) + + + 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-749
SELECT COUNT ( * ) + + + 72 AS col2
----
73

query I rowsort
SELECT ALL 8 * + 24 * COALESCE ( - - 17, + 7 + + - 20 ) AS col2
----
3264

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT 95 DIV + 63
----
1

skipif mysql # not compatible
query I rowsort label-751
SELECT 95 / + 63
----
1

query I rowsort
SELECT ALL - 59 + + 27 AS col1
----
-32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-754
SELECT ALL COALESCE ( - + COUNT( * ), - + 60 + - - 18 + 86 + - - 11 * ( - 14 ) ) + + ( + CASE - CAST( NULL AS SIGNED ) WHEN + SUM( + + NULLIF ( + 92, - - 38 ) ) THEN - 33 ELSE NULL END ) AS col2, 84 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-754
SELECT ALL COALESCE ( - + COUNT ( * ), - + 60 + - - 18 + 86 + - - 11 * ( - 14 ) ) + + ( + CASE - CAST ( NULL AS INTEGER ) WHEN + SUM ( + + NULLIF ( + 92, - - 38 ) ) THEN - 33 ELSE NULL END ) AS col2, 84 AS col2
----
NULL
84

query I rowsort
SELECT ALL + 32 + 92 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT - 1 * MIN( DISTINCT 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-756
SELECT - 1 * MIN ( DISTINCT 30 )
----
-30

query I rowsort
SELECT DISTINCT + ( + - 42 ) * - 75
----
3150

query I rowsort
SELECT - 15 * + + 69 AS col0
----
-1035

query I rowsort
SELECT 61 - - + 29 AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT 19 AS col2, MAX( + 64 ) * 81 + - ( 15 ) AS col2
----
19
5169

skipif mysql # not compatible
query II rowsort label-760
SELECT 19 AS col2, MAX ( + 64 ) * 81 + - ( 15 ) AS col2
----
19
5169

query II rowsort
SELECT - + 38 AS col1, - 87
----
-38
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-762
SELECT + 81 + + + 43 + + 84 DIV COUNT( * ) - 14 AS col2
----
194

skipif mysql # not compatible
query I rowsort label-762
SELECT + 81 + + + 43 + + 84 / COUNT ( * ) - 14 AS col2
----
194

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-764
SELECT ALL - 10 + - + 27 + + COUNT( * ) * CAST( + - 72 AS SIGNED ) AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL - 10 + - + 27 + + COUNT ( * ) * CAST ( + - 72 AS INTEGER ) AS col1
----
-109

query I rowsort
SELECT DISTINCT - 47 * - ( 27 ) AS col0
----
1269

query II rowsort
SELECT ALL 48, 74 * + NULLIF ( + 18, - + 63 + + 40 + 39 ) AS col2
----
48
1332

query I rowsort
SELECT ALL + 30 + - 38 - - - 91 AS col1
----
-99

query I rowsort
SELECT - ( - 64 ) - 6
----
58

query II rowsort
SELECT ALL - 20 AS col1, - 36 * 32
----
-20
-1152

query I rowsort
SELECT DISTINCT + 86 * 77
----
6622

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

onlyif mysql # aggregate syntax: 
query II rowsort label-772
SELECT - CASE + AVG ( DISTINCT 85 ) WHEN 30 - + 12 THEN NULL WHEN - COUNT( * ) THEN ( + 43 ) WHEN + ( + 5 ) THEN - + 15 END * + 74 - - 70 + SUM( DISTINCT - 85 ) / + 74 AS col2, - 96 col1
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-772
SELECT - CASE + AVG ( DISTINCT 85 ) WHEN 30 - + 12 THEN NULL WHEN - COUNT ( * ) THEN ( + 43 ) WHEN + ( + 5 ) THEN - + 15 END * + 74 - - 70 + SUM ( DISTINCT - 85 ) / + 74 AS col2, - 96 col1
----
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT MAX( DISTINCT 79 )
----
79

skipif mysql # not compatible
query I rowsort label-773
SELECT MAX ( DISTINCT 79 )
----
79

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

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

query I rowsort
SELECT + + ( + 70 ) col2
----
70

query I rowsort
SELECT 61 * 5
----
305

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-777
SELECT DISTINCT CAST( 58 AS SIGNED ) * + + ( - - 59 ) * + 93 * - 97 + - - 70, + 77 AS col1
----
-30869792
77

skipif mysql # not compatible
query II rowsort label-777
SELECT DISTINCT CAST ( 58 AS INTEGER ) * + + ( - - 59 ) * + 93 * - 97 + - - 70, + 77 AS col1
----
-30869792
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL - NULLIF ( + MIN( + 61 ), 7 )
----
-61

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - NULLIF ( + MIN ( + 61 ), 7 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-780
SELECT ( - 35 ) * - - 57 * + 36 + + - 78 col1, + COUNT( - 60 )
----
-71898
1

skipif mysql # not compatible
query II rowsort label-780
SELECT ( - 35 ) * - - 57 * + 36 + + - 78 col1, + COUNT ( - 60 )
----
-71898
1

query I rowsort
SELECT 86 * + 3
----
258

query I rowsort
SELECT DISTINCT - 17 * + ( 27 )
----
-459

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-783
SELECT CAST( - 75 AS SIGNED ) * - - 36 AS col0, - 92
----
-2700
-92

skipif mysql # not compatible
query II rowsort label-783
SELECT CAST ( - 75 AS INTEGER ) * - - 36 AS col0, - 92
----
-2700
-92

query I rowsort
SELECT 96 * - 57 * + - 44
----
240768

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL - COALESCE ( - - 61, MAX( + - COALESCE ( 6, 89 ) ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL - COALESCE ( - - 61, MAX ( + - COALESCE ( 6, 89 ) ) ) AS col1
----
-61

query I rowsort
SELECT + 85 * + + 30 + 19
----
2569

query I rowsort
SELECT DISTINCT - 73 + ( 16 ) col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-788
SELECT ALL - 28 + - 26, CAST( + 9 AS SIGNED ) AS col0
----
-54
9

skipif mysql # not compatible
query II rowsort label-788
SELECT ALL - 28 + - 26, CAST ( + 9 AS INTEGER ) AS col0
----
-54
9

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT - 8 + + + SUM( ALL + + 48 )
----
40

skipif mysql # not compatible
query I rowsort label-789
SELECT - 8 + + + SUM ( ALL + + 48 )
----
40

query I rowsort
SELECT - 84 + 62 - - ( - 98 ) AS col2
----
-120

query I rowsort
SELECT - + 70 + 18 + + 36 col2
----
-16

query I rowsort
SELECT + + 89 + 32 AS col1
----
121

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-793
SELECT - + 20 DIV + + 92 * + + CAST( - + 16 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-793
SELECT - + 20 / + + 92 * + + CAST ( - + 16 AS INTEGER )
----
0

query I rowsort
SELECT ALL - 9 + + 31
----
22

query I rowsort
SELECT DISTINCT 14 * - + 2 + + + 87 col0
----
59

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

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

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

query I rowsort
SELECT ALL 16 * - - 47 AS col0
----
752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-799
SELECT 22 * + - 66 + + COUNT( * ) - + - 15 * - ( + 14 ) * 18 * + CAST( NULL AS SIGNED ) + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-799
SELECT 22 * + - 66 + + COUNT ( * ) - + - 15 * - ( + 14 ) * 18 * + CAST ( NULL AS INTEGER ) + - 97 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 33 * 3 AS col0
----
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-802
SELECT + COUNT( DISTINCT - 1 ) * - 85 * 13 DIV + - 24
----
46

skipif mysql # not compatible
query I rowsort label-802
SELECT + COUNT ( DISTINCT - 1 ) * - 85 * 13 / + - 24
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT CASE + NULLIF ( - + 54, - + COUNT( ALL + - 66 ) * + 27 + + 48 - - 63 ) WHEN + 29 THEN + 17 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT CASE + NULLIF ( - + 54, - + COUNT ( ALL + - 66 ) * + 27 + + 48 - - 63 ) WHEN + 29 THEN + 17 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT + CASE - COUNT( * ) WHEN + 92 + - 99 + 71 + + - ( 67 ) * 47 THEN - - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT + CASE - COUNT ( * ) WHEN + 92 + - 99 + 71 + + - ( 67 ) * 47 THEN - - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - 68 + + 90 - + + ( 7 ) * + 58
----
-384

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-808
SELECT 59 * + COUNT( * ) + - 69 + 31 * COUNT( * ) * + 22 + - CASE + 10 WHEN + 68 * - COALESCE ( + COUNT( * ), - COALESCE ( - 29, - CASE - 69 WHEN + - 54 THEN + 53 WHEN + 0 THEN NULL END, + ( + + ( - 81 ) ), CASE - + COUNT( * ) WHEN - 83 THEN NULL WHEN + 35 / COUNT( ALL - 89 ) THEN - 40 - + - 86 + + - 72 * - - 89 * + 64 * + - 55 * + - 89 WHEN - + 57 THEN + CAST( NULL AS SIGNED ) ELSE - 8 END - + 65 * - 60 ) ) + - COALESCE ( 84, - 82 * CAST( + SUM( 72 ) * 29 AS SIGNED ), COUNT( * ) ) * 81 THEN 54 WHEN ( 45 ) * CASE 13 WHEN 70 THEN NULL WHEN + 51 + 36 THEN + 24 WHEN 52 THEN + 41 ELSE 55 END THEN NULL ELSE + COUNT( ALL - 1 ) * 40 END col0
----
632

skipif mysql # not compatible
query I rowsort label-808
SELECT 59 * + COUNT ( * ) + - 69 + 31 * COUNT ( * ) * + 22 + - CASE + 10 WHEN + 68 * - COALESCE ( + COUNT ( * ), - COALESCE ( - 29, - CASE - 69 WHEN + - 54 THEN + 53 WHEN + 0 THEN NULL END, + ( + + ( - 81 ) ), CASE - + COUNT ( * ) WHEN - 83 THEN NULL WHEN + 35 / COUNT ( ALL - 89 ) THEN - 40 - + - 86 + + - 72 * - - 89 * + 64 * + - 55 * + - 89 WHEN - + 57 THEN + CAST ( NULL AS INTEGER ) ELSE - 8 END - + 65 * - 60 ) ) + - COALESCE ( 84, - 82 * CAST ( + SUM ( 72 ) * 29 AS INTEGER ), COUNT ( * ) ) * 81 THEN 54 WHEN ( 45 ) * CASE 13 WHEN 70 THEN NULL WHEN + 51 + 36 THEN + 24 WHEN 52 THEN + 41 ELSE 55 END THEN NULL ELSE + COUNT ( ALL - 1 ) * 40 END col0
----
632

query I rowsort
SELECT ALL - 69 * - 16 + + - 88 AS col2
----
1016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-810
SELECT CASE + 59 WHEN - - ( ( - - 88 ) ) / 99 * + COALESCE ( + 23, + + 7 + + CAST( - COUNT( * ) AS SIGNED ) - 42 + - + 50, - 57 ) THEN + - 63 ELSE COUNT( * ) END AS col2, - CAST( NULL AS SIGNED ) / + - 98 * - 48
----
1
NULL

skipif mysql # not compatible
query II rowsort label-810
SELECT CASE + 59 WHEN - - ( ( - - 88 ) ) / 99 * + COALESCE ( + 23, + + 7 + + CAST ( - COUNT ( * ) AS INTEGER ) - 42 + - + 50, - 57 ) THEN + - 63 ELSE COUNT ( * ) END AS col2, - CAST ( NULL AS INTEGER ) / + - 98 * - 48
----
1
NULL

query I rowsort
SELECT DISTINCT 37 * + + 83
----
3071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-812
SELECT ALL - COUNT( * ) * + + 62 DIV + + 59 + ( - 84 )
----
-85

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - COUNT ( * ) * + + 62 / + + 59 + ( - 84 )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-813
SELECT CASE - 6 WHEN - - 37 THEN NULL WHEN + MIN( + - 17 ) * + 67 THEN NULL WHEN - 74 THEN NULL ELSE + 89 DIV + 75 + - - 97 * + 40 - + 37 + + + 53 * - 48 - + 35 + COUNT( * ) END AS col2
----
1266

skipif mysql # not compatible
query I rowsort label-813
SELECT CASE - 6 WHEN - - 37 THEN NULL WHEN + MIN ( + - 17 ) * + 67 THEN NULL WHEN - 74 THEN NULL ELSE + 89 / + 75 + - - 97 * + 40 - + 37 + + + 53 * - 48 - + 35 + COUNT ( * ) END AS col2
----
1266

query I rowsort
SELECT + 96 - 84
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-815
SELECT ALL + CAST( NULL AS SIGNED ) * + 15 * - + 79 / - COUNT( * ) + + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + CAST ( NULL AS INTEGER ) * + 15 * - + 79 / - COUNT ( * ) + + + 56
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT + 72 DIV + - 69 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-816
SELECT + 72 / + - 69 AS col0
----
-1

query I rowsort
SELECT + - 24 * COALESCE ( - 7, + - 81 ) AS col2
----
168

query I rowsort
SELECT - 6 * 2 * 90 + 62 AS col0
----
-1018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-819
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + ( - + 25 ) + - CASE - ( 12 ) WHEN 42 THEN COUNT( * ) WHEN + 64 THEN + + COUNT( * ) * - COUNT( DISTINCT + 8 ) * - 22 + + 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + ( - + 25 ) + - CASE - ( 12 ) WHEN 42 THEN COUNT ( * ) WHEN + 64 THEN + + COUNT ( * ) * - COUNT ( DISTINCT + 8 ) * - 22 + + 68 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL - 63 - 22 + - - NULLIF ( + CASE - SUM( 61 ) WHEN - SUM( DISTINCT - 97 ) THEN 98 + + 41 END, + 94 ) - - + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - 63 - 22 + - - NULLIF ( + CASE - SUM ( 61 ) WHEN - SUM ( DISTINCT - 97 ) THEN 98 + + 41 END, + 94 ) - - + 99 AS col0
----
NULL

query I rowsort
SELECT - 73 - 39
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT - + COALESCE ( COUNT( * ), + + 79, - ( COALESCE ( 52, + 93, + - 71 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-822
SELECT - + COALESCE ( COUNT ( * ), + + 79, - ( COALESCE ( 52, + 93, + - 71 ) ) ) AS col1
----
-1

query I rowsort
SELECT - + 47 + 3 col0
----
-44

query I rowsort
SELECT - 80 + - + ( + 28 ) * - + 9
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT ALL + 76 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + 76 / - 96
----
0

query I rowsort
SELECT ALL 46 * 57 AS col0
----
2622

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-827
SELECT + CAST( 15 AS SIGNED ) DIV CAST( 9 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-827
SELECT + CAST ( 15 AS INTEGER ) / CAST ( 9 AS INTEGER ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-828
SELECT ALL 77 DIV - + 64 + - 37
----
-38

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL 77 / - + 64 + - 37
----
-38

query I rowsort
SELECT - 62 * 29
----
-1798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-830
SELECT ALL 15 DIV - - MIN( DISTINCT COALESCE ( + 57, 51 ) ) * - + 61 + - 56 col2
----
-56

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL 15 / - - MIN ( DISTINCT COALESCE ( + 57, 51 ) ) * - + 61 + - 56 col2
----
-56

query I rowsort
SELECT 91 * - + 35 - - + 56 col2
----
-3129

query I rowsort
SELECT DISTINCT - NULLIF ( - 91, + + 56 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT - CASE - - MAX( DISTINCT - 4 ) WHEN 45 / - + 96 THEN - 81 / - + 45 / + + 5 * + 25 * + 60 WHEN + - MIN( + 95 ) / + ( + 93 ) + 6 / COUNT( - 56 ) THEN NULL END * + 7 * - 52 + + 3 + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT - CASE - - MAX ( DISTINCT - 4 ) WHEN 45 / - + 96 THEN - 81 / - + 45 / + + 5 * + 25 * + 60 WHEN + - MIN ( + 95 ) / + ( + 93 ) + 6 / COUNT ( - 56 ) THEN NULL END * + 7 * - 52 + + 3 + 33 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-834
SELECT COUNT( * ) DIV + COALESCE ( + ( 56 ), + SUM( ALL CAST( NULL AS SIGNED ) ) * + 92 + + - 84, - 21 * + NULLIF ( - 76, 29 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-834
SELECT COUNT ( * ) / + COALESCE ( + ( 56 ), + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 92 + + - 84, - 21 * + NULLIF ( - 76, 29 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT COUNT( * ) + + 45
----
46

skipif mysql # not compatible
query I rowsort label-835
SELECT COUNT ( * ) + + 45
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT - 38 * + - 57 * + 78 * - - SUM( ALL 9 ) * + 19 - + 62
----
28890046

skipif mysql # not compatible
query I rowsort label-836
SELECT - 38 * + - 57 * + 78 * - - SUM ( ALL 9 ) * + 19 - + 62
----
28890046

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT 78 * - 62 + COUNT( * ) AS col2
----
-4835

skipif mysql # not compatible
query I rowsort label-837
SELECT 78 * - 62 + COUNT ( * ) AS col2
----
-4835

query I rowsort
SELECT DISTINCT 8 - - - 15 + + 41 AS col0
----
34

query I rowsort
SELECT 5 * 9
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-840
SELECT ALL - + CAST( + - COUNT( * ) AS SIGNED ), COUNT( * ) + - 86 + - - 20 + + CAST( NULL AS DECIMAL ) * - 6 * - CAST( - - 3 AS SIGNED ) * - 4 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-840
SELECT ALL - + CAST ( + - COUNT ( * ) AS INTEGER ), COUNT ( * ) + - 86 + - - 20 + + CAST ( NULL AS REAL ) * - 6 * - CAST ( - - 3 AS INTEGER ) * - 4 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-841
SELECT - CASE - - 94 WHEN + ( - - COUNT( * ) ) - + 33 THEN 86 * - COALESCE ( 61, - ( + COUNT( * ) ) * + 60 ) + - + COUNT( ALL 46 ) + 42 END * ( + COUNT( * ) ) + + 75 + - - 1 + + 70, MAX( ALL - 50 ) * - 59 AS col0
----
NULL
2950

skipif mysql # not compatible
query II rowsort label-841
SELECT - CASE - - 94 WHEN + ( - - COUNT ( * ) ) - + 33 THEN 86 * - COALESCE ( 61, - ( + COUNT ( * ) ) * + 60 ) + - + COUNT ( ALL 46 ) + 42 END * ( + COUNT ( * ) ) + + 75 + - - 1 + + 70, MAX ( ALL - 50 ) * - 59 AS col0
----
NULL
2950

query I rowsort
SELECT ALL - 81 * - - NULLIF ( + 49, 63 + + + 87 ) AS col0
----
-3969

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-843
SELECT CAST( NULL AS SIGNED ) + + 2 * + 41 * - 2 AS col2, - 47 + + + 54 AS col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-843
SELECT CAST ( NULL AS INTEGER ) + + 2 * + 41 * - 2 AS col2, - 47 + + + 54 AS col1
----
NULL
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-844
SELECT 15 DIV - SUM( - - 56 )
----
0

skipif mysql # not compatible
query I rowsort label-844
SELECT 15 / - SUM ( - - 56 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT COUNT( DISTINCT - 70 ) + + 31
----
32

skipif mysql # not compatible
query I rowsort label-845
SELECT COUNT ( DISTINCT - 70 ) + + 31
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-846
SELECT - 11 DIV - + SUM( ALL 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-846
SELECT - 11 / - + SUM ( ALL 95 ) AS col0
----
0

query I rowsort
SELECT - CASE + + 58 WHEN + - 18 * - - 91 THEN + 41 + + - 37 + 43 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + + 70, 68 ) + + 95 AS col2
----
165

query II rowsort
SELECT - 9 * 26 + - 58 * 19, 25 AS col2
----
-1336
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-850
SELECT DISTINCT + COUNT( * ) + - - 65 DIV 50 * - 58 * - - 32 + + MAX( 41 ) DIV - 93 * MAX( ALL 48 ) AS col0
----
-1855

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT + COUNT ( * ) + - - 65 / 50 * - 58 * - - 32 + + MAX ( 41 ) / - 93 * MAX ( ALL 48 ) AS col0
----
-1855

query II rowsort
SELECT 26, ( + 65 ) * ( + 9 ) + + 3 + + + 93 AS col2
----
26
681

query II rowsort
SELECT DISTINCT 25, 48 AS col1
----
25
48

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT + NULLIF ( - ( + 3 ), + 41 ) + + - NULLIF ( + - MAX( DISTINCT + 77 ), - MIN( ALL 34 ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT + NULLIF ( - ( + 3 ), + 41 ) + + - NULLIF ( + - MAX ( DISTINCT + 77 ), - MIN ( ALL 34 ) ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT DISTINCT - COUNT( - ( - 86 ) ) + + - 77 + + 39 * - - 52
----
1950

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT - COUNT ( - ( - 86 ) ) + + - 77 + + 39 * - - 52
----
1950

query I rowsort
SELECT ALL - ( + 13 ) + - + 74 * - ( - 56 ) col0
----
-4157

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-857
SELECT ALL + COUNT( * ) + - - 76 + + 44 AS col1, - CAST( - + 63 AS SIGNED ) + 7 AS col1
----
121
70

skipif mysql # not compatible
query II rowsort label-857
SELECT ALL + COUNT ( * ) + - - 76 + + 44 AS col1, - CAST ( - + 63 AS INTEGER ) + 7 AS col1
----
121
70

query I rowsort
SELECT 1 * + - 77 AS col0
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-859
SELECT 4 DIV 78 * + 32 AS col1, - 66
----
0
-66

skipif mysql # not compatible
query II rowsort label-859
SELECT 4 / 78 * + 32 AS col1, - 66
----
0
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-860
SELECT 40 * 46 DIV - - 67 col2
----
27

skipif mysql # not compatible
query I rowsort label-860
SELECT 40 * 46 / - - 67 col2
----
27

query I rowsort
SELECT DISTINCT + ( - 7 ) - - 47 - 78 * - 60 AS col2
----
4720

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT ALL - ( + MIN( DISTINCT + 25 ) ), 45 col2
----
-25
45

skipif mysql # not compatible
query II rowsort label-862
SELECT ALL - ( + MIN ( DISTINCT + 25 ) ), 45 col2
----
-25
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-863
SELECT + - 51 AS col0, - CASE + - CAST( NULL AS SIGNED ) WHEN + 82 * - + 12 + - COUNT( * ) THEN + 25 ELSE NULL END
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-863
SELECT + - 51 AS col0, - CASE + - CAST ( NULL AS INTEGER ) WHEN + 82 * - + 12 + - COUNT ( * ) THEN + 25 ELSE NULL END
----
-51
NULL

query I rowsort
SELECT DISTINCT 94 * 65
----
6110

query I rowsort
SELECT 99 * 19 + - + 51 AS col1
----
1830

query I rowsort
SELECT 43 * + - 21 + 27 AS col0
----
-876

query I rowsort
SELECT 30 - + 30 + - 16 * - 45 * - ( - - 31 ) col1
----
-22320

query I rowsort
SELECT DISTINCT - 70 * 61 * 30 * - 19 AS col0
----
2433900

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT - SUM( + - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-869
SELECT - SUM ( + - 93 )
----
93

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

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

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

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - - 50 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-872
SELECT - ( - COUNT( - 28 ) ) / 50 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT - ( - COUNT ( - 28 ) ) / 50 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT 38 DIV - 17
----
-2

skipif mysql # not compatible
query I rowsort label-873
SELECT 38 / - 17
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT - 51 + + COUNT( * ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-874
SELECT - 51 + + COUNT ( * ) AS col1
----
-50

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

skipif mysql # not compatible
query I rowsort label-875
SELECT 15 - - + ( - COUNT ( * ) ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT - COUNT( 99 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-876
SELECT - COUNT ( 99 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-877
SELECT + 98 + - 86 + + MIN( 18 ) + ( + 26 ) * + 79 + + + NULLIF ( + 11, 69 ) * - + COALESCE ( + COUNT( * ), + ( - ( + CAST( NULL AS SIGNED ) ) ) ) * - + 22, COUNT( * ) AS col0
----
2326
1

skipif mysql # not compatible
query II rowsort label-877
SELECT + 98 + - 86 + + MIN ( 18 ) + ( + 26 ) * + 79 + + + NULLIF ( + 11, 69 ) * - + COALESCE ( + COUNT ( * ), + ( - ( + CAST ( NULL AS INTEGER ) ) ) ) * - + 22, COUNT ( * ) AS col0
----
2326
1

query I rowsort
SELECT ALL - 73 + - 24
----
-97

query I rowsort
SELECT + 91 * - + 20 AS col1
----
-1820

query I rowsort
SELECT ALL + 0 * - 80 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT DISTINCT COUNT( * ) - - 17 + + NULLIF ( + - 26, + + 45 ) + - ( + 41 ) + ( 54 ) * COALESCE ( + 69, + 61 ) * COUNT( + 95 )
----
3677

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT COUNT ( * ) - - 17 + + NULLIF ( + - 26, + + 45 ) + - ( + 41 ) + ( 54 ) * COALESCE ( + 69, + 61 ) * COUNT ( + 95 )
----
3677

query I rowsort
SELECT ALL + 76 * + 69 - + 41 AS col1
----
5203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-883
SELECT COALESCE ( + SUM( ALL + 40 ), - - CAST( 67 AS SIGNED ) - 92 ) col2, - COUNT( * ) * 36
----
40
-36

skipif mysql # not compatible
query II rowsort label-883
SELECT COALESCE ( + SUM ( ALL + 40 ), - - CAST ( 67 AS INTEGER ) - 92 ) col2, - COUNT ( * ) * 36
----
40
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT COALESCE ( + COUNT( * ), - - 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-885
SELECT COALESCE ( + COUNT ( * ), - - 94 ) AS col0
----
1

query I rowsort
SELECT - 14 * 49
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL + CASE + 96 WHEN + COUNT( DISTINCT + 29 ) + - - COUNT( ALL + 5 ) THEN 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL + CASE + 96 WHEN + COUNT ( DISTINCT + 29 ) + - - COUNT ( ALL + 5 ) THEN 18 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT - 78 DIV - 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-888
SELECT - 78 / - 71 AS col0
----
1

query I rowsort
SELECT ALL - 38 * 10 * + 17 AS col1
----
-6460

onlyif mysql # DIV for integer division: 
query II rowsort label-890
SELECT 36 AS col2, - 85 DIV 94 AS col0
----
36
0

skipif mysql # not compatible
query II rowsort label-890
SELECT 36 AS col2, - 85 / 94 AS col0
----
36
0

onlyif mysql # DIV for integer division: 
query I rowsort label-891
SELECT ALL - + 86 DIV + - 95
----
0

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL - + 86 / + - 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-892
SELECT + 6 col0, - COUNT( 18 ) * + - 13 DIV - ( 67 ) + + - 17 + 15
----
6
-2

skipif mysql # not compatible
query II rowsort label-892
SELECT + 6 col0, - COUNT ( 18 ) * + - 13 / - ( 67 ) + + - 17 + 15
----
6
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-893
SELECT - + CAST( NULL AS SIGNED ) * + COUNT( * ) + - 59 + 44 + - 15 + + 31 DIV + COUNT( * ) DIV COUNT( * ) + + SUM( ALL + - 67 ) * + COUNT( * ) + + COUNT( * ), 80 + - 75 DIV - 35 - - 18 AS col1
----
NULL
100

skipif mysql # not compatible
query II rowsort label-893
SELECT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 59 + 44 + - 15 + + 31 / + COUNT ( * ) / COUNT ( * ) + + SUM ( ALL + - 67 ) * + COUNT ( * ) + + COUNT ( * ), 80 + - 75 / - 35 - - 18 AS col1
----
NULL
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT - MAX( + - ( - 44 ) ) DIV - MAX( + - 45 )
----
0

skipif mysql # not compatible
query I rowsort label-894
SELECT - MAX ( + - ( - 44 ) ) / - MAX ( + - 45 )
----
0

query I rowsort
SELECT - + 10 + - 65 AS col0
----
-75

query I rowsort
SELECT - 94 * + - 22 - 13
----
2055

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL + 40 * - 94 * - 85 + - COUNT( * ) col0
----
319599

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + 40 * - 94 * - 85 + - COUNT ( * ) col0
----
319599

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-899
SELECT ALL + 42 * + - 26 * - 58 - CAST( NULL AS SIGNED ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + 42 * + - 26 * - 58 - CAST ( NULL AS INTEGER ) + 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-900
SELECT + 68 + NULLIF ( - COUNT( * ), + 4 ), - 47 AS col2
----
67
-47

skipif mysql # not compatible
query II rowsort label-900
SELECT + 68 + NULLIF ( - COUNT ( * ), + 4 ), - 47 AS col2
----
67
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT - 12 * + 38 DIV 19 + CASE 20 WHEN AVG ( ALL + 58 ) THEN NULL ELSE - 16 END AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-901
SELECT - 12 * + 38 / 19 + CASE 20 WHEN AVG ( ALL + 58 ) THEN NULL ELSE - 16 END AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-902
SELECT ALL + CAST( - 68 AS SIGNED ) * + 1 * - 68
----
4624

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL + CAST ( - 68 AS INTEGER ) * + 1 * - 68
----
4624

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT - + 58 * + 94 * NULLIF ( - 64, - - COUNT( * ) ) AS col2
----
348928

skipif mysql # not compatible
query I rowsort label-903
SELECT - + 58 * + 94 * NULLIF ( - 64, - - COUNT ( * ) ) AS col2
----
348928

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT + + 53 + - 19 + + COUNT( * ) * - 17 * - 66 * + 8 * + 55 + + + 63
----
493777

skipif mysql # not compatible
query I rowsort label-904
SELECT + + 53 + - 19 + + COUNT ( * ) * - 17 * - 66 * + 8 * + 55 + + + 63
----
493777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT - CASE - 10 WHEN + COUNT( * ) / COUNT( * ) * 90 - - - 84 THEN - COUNT( * ) * + CAST( NULL AS SIGNED ) + - - 42 * + CAST( NULL AS SIGNED ) * 89 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT - CASE - 10 WHEN + COUNT ( * ) / COUNT ( * ) * 90 - - - 84 THEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - - 42 * + CAST ( NULL AS INTEGER ) * 89 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-906
SELECT ALL CAST( - + 41 AS SIGNED ) AS col1, + ( - 10 ) AS col0
----
-41
-10

skipif mysql # not compatible
query II rowsort label-906
SELECT ALL CAST ( - + 41 AS INTEGER ) AS col1, + ( - 10 ) AS col0
----
-41
-10

query I rowsort
SELECT ALL - 14 * - 50 AS col1
----
700

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

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

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

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL SUM ( ALL - 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT + MIN( ALL - + 25 ) * + 31 + - 2 AS col2
----
-777

skipif mysql # not compatible
query I rowsort label-910
SELECT + MIN ( ALL - + 25 ) * + 31 + - 2 AS col2
----
-777

query I rowsort
SELECT + 61 * 70 AS col1
----
4270

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

skipif mysql # not compatible
query II rowsort label-912
SELECT + COUNT ( * ) * + 3 AS col0, 18 col0
----
3
18

query I rowsort
SELECT + 49 + - 54 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-914
SELECT DISTINCT COUNT( DISTINCT + 14 ) col1, 65
----
1
65

skipif mysql # not compatible
query II rowsort label-914
SELECT DISTINCT COUNT ( DISTINCT + 14 ) col1, 65
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT + MIN( 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT + MIN ( 6 ) AS col1
----
6

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

skipif mysql # not compatible
query I rowsort label-916
SELECT + CAST ( - 75 AS INTEGER ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT - ( + - COUNT( * ) ) * - 2 + + - ( - 44 ) + + 63
----
105

skipif mysql # not compatible
query I rowsort label-917
SELECT - ( + - COUNT ( * ) ) * - 2 + + - ( - 44 ) + + 63
----
105

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

query I rowsort
SELECT + 66 * 17 * + 14 AS col0
----
15708

query I rowsort
SELECT - 72 + - 66
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-921
SELECT COUNT( - CAST( NULL AS SIGNED ) ), - 47 * 54 + 10 + - 27 col2
----
0
-2555

skipif mysql # not compatible
query II rowsort label-921
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ), - 47 * 54 + 10 + - 27 col2
----
0
-2555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-922
SELECT ALL 71 DIV + 76 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL 71 / + 76 + + - COUNT ( * )
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-924
SELECT + 3 * + - COUNT( * ) DIV 85 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-924
SELECT + 3 * + - COUNT ( * ) / 85 / 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT ALL - + 8 DIV + 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL - + 8 / + 24 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-926
SELECT DISTINCT + MIN( + 10 ) * CAST( NULL AS SIGNED ) * + ( 94 ) + + + CAST( NULL AS SIGNED ) + 14 - + - COUNT( - + 99 ) + + + 81 AS col0, 65 + + 98
----
NULL
163

skipif mysql # not compatible
query II rowsort label-926
SELECT DISTINCT + MIN ( + 10 ) * CAST ( NULL AS INTEGER ) * + ( 94 ) + + + CAST ( NULL AS INTEGER ) + 14 - + - COUNT ( - + 99 ) + + + 81 AS col0, 65 + + 98
----
NULL
163

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT DISTINCT - 52 * - 29 + - COUNT( * ) + + 59 * ( + 99 ) AS col2
----
7348

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT - 52 * - 29 + - COUNT ( * ) + + 59 * ( + 99 ) AS col2
----
7348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-928
SELECT + - CASE CAST( 53 AS SIGNED ) WHEN + 90 THEN NULL ELSE + + 74 END
----
-74

skipif mysql # not compatible
query I rowsort label-928
SELECT + - CASE CAST ( 53 AS INTEGER ) WHEN + 90 THEN NULL ELSE + + 74 END
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-929
SELECT ALL 79 * 52 + - - COUNT( * ) DIV + + 52 * 16 + 48 - + 52 * + 70 AS col2
----
516

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL 79 * 52 + - - COUNT ( * ) / + + 52 * 16 + 48 - + 52 * + 70 AS col2
----
516

query I rowsort
SELECT ALL - - 17 / + CASE - 3 WHEN - 98 THEN - 47 END + + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT - MAX( DISTINCT - ( ( 89 ) ) ) * - + 57 AS col2
----
-5073

skipif mysql # not compatible
query I rowsort label-931
SELECT - MAX ( DISTINCT - ( ( 89 ) ) ) * - + 57 AS col2
----
-5073

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT DISTINCT + - 66 * COALESCE ( + + 76, 47 * + - COUNT( * ) )
----
-5016

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT + - 66 * COALESCE ( + + 76, 47 * + - COUNT ( * ) )
----
-5016

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT ALL COUNT( * ) * + - 65 + + COUNT( * ), + 22 AS col0
----
-64
22

skipif mysql # not compatible
query II rowsort label-933
SELECT ALL COUNT ( * ) * + - 65 + + COUNT ( * ), + 22 AS col0
----
-64
22

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT - + 62 - - + 57 + - + COUNT( * ) * + 75 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-934
SELECT - + 62 - - + 57 + - + COUNT ( * ) * + 75 AS col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-935
SELECT - 33 DIV - + 12 AS col1, + COUNT( * ) * + COUNT( * ) + + 77 + + 57 AS col0
----
2
135

skipif mysql # not compatible
query II rowsort label-935
SELECT - 33 / - + 12 AS col1, + COUNT ( * ) * + COUNT ( * ) + + 77 + + 57 AS col0
----
2
135

onlyif mysql # aggregate syntax: 
query II rowsort label-936
SELECT DISTINCT - + 37 * 35 AS col1, + 19 - + 20 + - - 97 + + - 8 * + 28 + + 59 * + - MAX( - ( + + 35 ) ) + + 31
----
-1295
1968

skipif mysql # not compatible
query II rowsort label-936
SELECT DISTINCT - + 37 * 35 AS col1, + 19 - + 20 + - - 97 + + - 8 * + 28 + + 59 * + - MAX ( - ( + + 35 ) ) + + 31
----
-1295
1968

query II rowsort
SELECT DISTINCT 19 AS col2, - 78
----
19
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-938
SELECT DISTINCT - 27 - + COUNT( * ) DIV - 38, 32 AS col2
----
-27
32

skipif mysql # not compatible
query II rowsort label-938
SELECT DISTINCT - 27 - + COUNT ( * ) / - 38, 32 AS col2
----
-27
32

query I rowsort
SELECT 85 * + 2
----
170

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

query II rowsort
SELECT 52 AS col2, + 54 AS col0
----
52
54

query II rowsort
SELECT 23 col0, 58
----
23
58

onlyif mysql # aggregate syntax: 
query II rowsort label-943
SELECT - 83, + NULLIF ( + - COUNT( * ), + 43 / + 66 ) AS col1
----
-83
-1

skipif mysql # not compatible
query II rowsort label-943
SELECT - 83, + NULLIF ( + - COUNT ( * ), + 43 / + 66 ) AS col1
----
-83
-1

query I rowsort
SELECT 4 + + 16 AS col0
----
20

query I rowsort
SELECT 40 * 50 AS col1
----
2000

query I rowsort
SELECT 11 * - 7 * - 49
----
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT DISTINCT SUM( ALL + - 80 ) * 38 + - 34 * 34 * - 91 + - MIN( + - NULLIF ( - + 97, + 72 ) )
----
102059

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT SUM ( ALL + - 80 ) * 38 + - 34 * 34 * - 91 + - MIN ( + - NULLIF ( - + 97, + 72 ) )
----
102059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-948
SELECT DISTINCT - COUNT( 98 ) DIV 31 - - 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT - COUNT ( 98 ) / 31 - - 88 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-949
SELECT 30 DIV 24 DIV + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-949
SELECT 30 / 24 / + 44 AS col0
----
0

query I rowsort
SELECT 65 * 38 * 23
----
56810

query I rowsort
SELECT ALL 54 + + 22
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT 36 + + 94 + 47 * COUNT( * ) + - + 23 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-952
SELECT 36 + + 94 + 47 * COUNT ( * ) + - + 23 AS col0
----
154

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

query I rowsort
SELECT DISTINCT + 82 + + 54
----
136

query I rowsort
SELECT DISTINCT 49 * - 23
----
-1127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-956
SELECT ALL + COUNT( * ) + + 69 * + 12 + + 8 col2, + NULLIF ( - + 55, - 61 + - - CAST( NULL AS DECIMAL ) ) * 80 AS col0, 10 AS col2
----
837
-4400
10

skipif mysql # not compatible
query III rowsort label-956
SELECT ALL + COUNT ( * ) + + 69 * + 12 + + 8 col2, + NULLIF ( - + 55, - 61 + - - CAST ( NULL AS REAL ) ) * 80 AS col0, 10 AS col2
----
837
-4400
10

query I rowsort
SELECT DISTINCT + NULLIF ( - 63, + 8 ) + + - 57
----
-120

query I rowsort
SELECT + 37 + - 12 - + 28 - + - 96 * - 26 AS col2
----
-2499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT + - CAST( - + AVG ( + + 92 ) AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-959
SELECT + - CAST ( - + AVG ( + + 92 ) AS INTEGER )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT + + SUM( ( + - 88 ) ) * + + 81 + 75
----
-7053

skipif mysql # not compatible
query I rowsort label-960
SELECT + + SUM ( ( + - 88 ) ) * + + 81 + 75
----
-7053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-961
SELECT - CAST( NULL AS SIGNED ), + CASE - - 48 WHEN + 39 - + - COUNT( * ) THEN - + 50 + - 70 WHEN + 28 + + - 4 THEN NULL ELSE NULL END * - - 85 * + COUNT( * ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-961
SELECT - CAST ( NULL AS INTEGER ), + CASE - - 48 WHEN + 39 - + - COUNT ( * ) THEN - + 50 + - 70 WHEN + 28 + + - 4 THEN NULL ELSE NULL END * - - 85 * + COUNT ( * ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL COUNT( * ) * + - 44 * + 48 + - + 86 AS col1
----
-2198

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL COUNT ( * ) * + - 44 * + 48 + - + 86 AS col1
----
-2198

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - 3 + - 2 * 51 - + 46 - COUNT( * ) - + 49 * - 83 AS col0
----
3915

skipif mysql # not compatible
query I rowsort label-963
SELECT - 3 + - 2 * 51 - + 46 - COUNT ( * ) - + 49 * - 83 AS col0
----
3915

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

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

query II rowsort
SELECT 8 col0, - 67 * 99 + + 64
----
8
-6569

query I rowsort
SELECT - 87 - - 85
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT ALL - COUNT( * ) - + + 77 - - 36 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL - COUNT ( * ) - + + 77 - - 36 AS col0
----
-42

query I rowsort
SELECT DISTINCT ( - ( 13 ) ) - 86 * + 67 AS col1
----
-5775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-969
SELECT 51 * + + COUNT( * ) + + 14 * + CAST( + + NULLIF ( + AVG ( + 10 ), - + 36 * - 44 * + 2 + - 16 + 27 - - 16 ) AS SIGNED ) + + + 66
----
257

skipif mysql # not compatible
query I rowsort label-969
SELECT 51 * + + COUNT ( * ) + + 14 * + CAST ( + + NULLIF ( + AVG ( + 10 ), - + 36 * - 44 * + 2 + - 16 + 27 - - 16 ) AS INTEGER ) + + + 66
----
257

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ( MIN( + ( - + ( - 56 ) ) ) ) * - 85 AS col1
----
-4760

skipif mysql # not compatible
query I rowsort label-971
SELECT ( MIN ( + ( - + ( - 56 ) ) ) ) * - 85 AS col1
----
-4760

query I rowsort
SELECT 95 * + + 89
----
8455

query I rowsort
SELECT - 0 * - 57 + + - 67 + - + 94 * + - ( + - 27 ) * - 62 * - + 41
----
-6451663

query I rowsort
SELECT ALL + 51 * - 77 AS col0
----
-3927

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

skipif mysql # not compatible
query I rowsort label-975
SELECT 11 * - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 32 * 85 AS col0, - 26
----
2720
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-977
SELECT DISTINCT COUNT( - 69 ) AS col0, - 32 + + 96 - CASE + 47 WHEN - 48 THEN + MIN( - - 55 ) WHEN + ( - 51 ) THEN + - 2 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-977
SELECT DISTINCT COUNT ( - 69 ) AS col0, - 32 + + 96 - CASE + 47 WHEN - 48 THEN + MIN ( - - 55 ) WHEN + ( - 51 ) THEN + - 2 END AS col2
----
1
NULL

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

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL - CAST ( NULL AS INTEGER ) + + - SUM ( - 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT 36 + - - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-979
SELECT 36 + - - COUNT ( * ) AS col2
----
37

query I rowsort
SELECT 39 - 52 AS col0
----
-13

query I rowsort
SELECT ALL - 53 * 44
----
-2332

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

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

query I rowsort
SELECT DISTINCT + + 75 * 63
----
4725

query I rowsort
SELECT 56 * + + 35 + + 3 AS col2
----
1963

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-987
SELECT + COUNT( * ) - COUNT( * ) + + + 41 + COALESCE ( + ( - COUNT( * ) ), - ( + 84 ) DIV AVG ( DISTINCT - 23 ), - COALESCE ( - NULLIF ( 59, - 66 * + + 65 + CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) * - COUNT( * ) + - ( + 78 ) ), COUNT( * ) * + NULLIF ( 61, 16 * + 65 + + ( 40 ) ) * - 8, - ( - - ( + 84 ) ) ) ) DIV - + 93, 26 * 21 AS col0
----
41
546

skipif mysql # not compatible
query II rowsort label-987
SELECT + COUNT ( * ) - COUNT ( * ) + + + 41 + COALESCE ( + ( - COUNT ( * ) ), - ( + 84 ) / AVG ( DISTINCT - 23 ), - COALESCE ( - NULLIF ( 59, - 66 * + + 65 + CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - ( + 78 ) ), COUNT ( * ) * + NULLIF ( 61, 16 * + 65 + + ( 40 ) ) * - 8, - ( - - ( + 84 ) ) ) ) / - + 93, 26 * 21 AS col0
----
41
546

query I rowsort
SELECT ALL 12 * - 33 * - 53 + - 1
----
20987

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT 99 DIV - 97 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-989
SELECT 99 / - 97 AS col2
----
-1

query I rowsort
SELECT 43 + 37 + + 1 AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT DISTINCT - 10 DIV - 5 + COALESCE ( - NULLIF ( + COUNT( * ), + 11 ), 60, - 91 * + ( SUM( ALL + 87 ) ) DIV 34 + - COUNT( * ) + - 99, - ( 70 ) DIV + - 29 * + - 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT - 10 / - 5 + COALESCE ( - NULLIF ( + COUNT ( * ), + 11 ), 60, - 91 * + ( SUM ( ALL + 87 ) ) / 34 + - COUNT ( * ) + - 99, - ( 70 ) / + - 29 * + - 30 ) AS col0
----
1

query I rowsort
SELECT ALL + 77 * - 47 * - 34
----
123046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-993
SELECT + - 71 * 48 AS col0, + NULLIF ( - 87, + 53 ) * COUNT( + + 55 ) * 92 + + COUNT( DISTINCT + 12 ) * + CAST( NULL AS SIGNED )
----
-3408
NULL

skipif mysql # not compatible
query II rowsort label-993
SELECT + - 71 * 48 AS col0, + NULLIF ( - 87, + 53 ) * COUNT ( + + 55 ) * 92 + + COUNT ( DISTINCT + 12 ) * + CAST ( NULL AS INTEGER )
----
-3408
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-994
SELECT ALL - MAX( DISTINCT - 62 ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - MAX ( DISTINCT - 62 ) / + 82
----
0

query I rowsort
SELECT ALL + 85 * 70 - 62 + 57 * - 65
----
2183

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT + 62 * 42 DIV + 39
----
66

skipif mysql # not compatible
query I rowsort label-996
SELECT + 62 * 42 / + 39
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT 82 * + + ( - 14 ) - + - 76 - - NULLIF ( + 84, 73 * + ( + + 18 ) * 12 * - + 59 * + COUNT( * ) ) AS col2
----
-988

skipif mysql # not compatible
query I rowsort label-997
SELECT 82 * + + ( - 14 ) - + - 76 - - NULLIF ( + 84, 73 * + ( + + 18 ) * 12 * - + 59 * + COUNT ( * ) ) AS col2
----
-988

query I rowsort
SELECT + 26 * - 77 AS col0
----
-2002

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT ALL + 20 + 42 + - 53 * + - NULLIF ( + 80, - 3 - - COUNT( DISTINCT + - 53 ) + + COALESCE ( - 97, + 33, + 9 + - + 63 ) ) * - + 55 + - 71 + - 72 + - 88 + + - 76 * + NULLIF ( COUNT( * ), - 31 + MIN( ALL 75 ) - - + 59 ) + 38 AS col2, 9 + + 21 * + + NULLIF ( 36, 76 + + 59 / COUNT( * ) + - - MIN( + - 7 ) ) * - 65
----
-233407
-49131

skipif mysql # not compatible
query II rowsort label-1000
SELECT ALL + 20 + 42 + - 53 * + - NULLIF ( + 80, - 3 - - COUNT ( DISTINCT + - 53 ) + + COALESCE ( - 97, + 33, + 9 + - + 63 ) ) * - + 55 + - 71 + - 72 + - 88 + + - 76 * + NULLIF ( COUNT ( * ), - 31 + MIN ( ALL 75 ) - - + 59 ) + 38 AS col2, 9 + + 21 * + + NULLIF ( 36, 76 + + 59 / COUNT ( * ) + - - MIN ( + - 7 ) ) * - 65
----
-233407
-49131

query I rowsort
SELECT - 55 - - 73
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT - 73 * CAST( NULL AS SIGNED ) * - 79 / + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT - 73 * CAST ( NULL AS INTEGER ) * - 79 / + - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT ALL - COUNT( * ) + + ( - - 84 ) + 93
----
176

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL - COUNT ( * ) + + ( - - 84 ) + 93
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1004
SELECT - 2 AS col1, - 97 DIV + MAX( 78 ) AS col1
----
-2
-1

skipif mysql # not compatible
query II rowsort label-1004
SELECT - 2 AS col1, - 97 / + MAX ( 78 ) AS col1
----
-2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT + 19 + COALESCE ( + COUNT( * ), 94 ) + + - 30 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1005
SELECT + 19 + COALESCE ( + COUNT ( * ), 94 ) + + - 30 AS col1
----
-10

query II rowsort
SELECT ALL + 48 * - - 9 * - ( + ( + 36 ) ) AS col0, 24 * - + 62 col1
----
-15552
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT - ( - - MAX( 92 ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1007
SELECT - ( - - MAX ( 92 ) ) AS col2
----
-92

query I rowsort
SELECT - 95 + - 20 + - + 20
----
-135

query I rowsort
SELECT ALL 1 + + - 47
----
-46

query I rowsort
SELECT DISTINCT CASE + NULLIF ( + + ( 16 ), + 1 ) WHEN - 13 + + 88 THEN + 73 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT - 75 + - COUNT( * ) + - 40 + - - 55 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - 75 + - COUNT ( * ) + - 40 + - - 55 AS col2
----
-61

query I rowsort
SELECT DISTINCT 48 * - 66 AS col2
----
-3168

query I rowsort
SELECT ALL - - 2 + + - 29 AS col2
----
-27

query I rowsort
SELECT - 96 + + ( + 48 ) col0
----
-48

query I rowsort
SELECT - 10 + + + 85 + + 19 AS col2
----
94

query I rowsort
SELECT - - NULLIF ( + 60, + 47 )
----
60

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1018
SELECT + 64 DIV - 68 + + - 5 + - - 39 col1
----
34

skipif mysql # not compatible
query I rowsort label-1018
SELECT + 64 / - 68 + + - 5 + - - 39 col1
----
34

query I rowsort
SELECT - + ( - 96 ) * + 40
----
3840

onlyif mysql # DIV for integer division: 
query I rowsort label-1020
SELECT ALL + 74 DIV 12 * + - 6 - + 93 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL + 74 / 12 * + - 6 - + 93 AS col2
----
-129

query I rowsort
SELECT DISTINCT + - 47 * + 95
----
-4465

query II rowsort
SELECT ALL + 47, 23 AS col0
----
47
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT + 76 * + - 11 - 13 - MIN( ALL + + 63 ) * 10
----
-1479

skipif mysql # not compatible
query I rowsort label-1023
SELECT + 76 * + - 11 - 13 - MIN ( ALL + + 63 ) * 10
----
-1479

query I rowsort
SELECT - 22 - + 91
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1025
SELECT DISTINCT - - 55 * - - COUNT( * ) - - - 0 - CASE + 66 WHEN + 3 THEN COALESCE ( - 45, - CAST( + - 30 AS SIGNED ) + - 9 / 90 + 39 ) + - 86 WHEN ( + 4 ) + COUNT( * ) * 9 THEN + + COUNT( * ) END * - ( + CAST( NULL AS SIGNED ) ) * 23 + 75 + - 76 * - 79 - 73 + - 94 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT - - 55 * - - COUNT ( * ) - - - 0 - CASE + 66 WHEN + 3 THEN COALESCE ( - 45, - CAST ( + - 30 AS INTEGER ) + - 9 / 90 + 39 ) + - 86 WHEN ( + 4 ) + COUNT ( * ) * 9 THEN + + COUNT ( * ) END * - ( + CAST ( NULL AS INTEGER ) ) * 23 + 75 + - 76 * - 79 - 73 + - 94 * - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1026
SELECT + 49 * - CAST( - - 83 AS SIGNED ) + - 41 DIV + - COUNT( * ) AS col0, 66
----
-4026
66

skipif mysql # not compatible
query II rowsort label-1026
SELECT + 49 * - CAST ( - - 83 AS INTEGER ) + - 41 / + - COUNT ( * ) AS col0, 66
----
-4026
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT - 33 + NULLIF ( 36, + 56 + 3 + MIN( DISTINCT - - 1 ) ) * - 26
----
-969

skipif mysql # not compatible
query I rowsort label-1028
SELECT - 33 + NULLIF ( 36, + 56 + 3 + MIN ( DISTINCT - - 1 ) ) * - 26
----
-969

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT + 98 DIV + NULLIF ( 9, - 48 )
----
10

skipif mysql # not compatible
query I rowsort label-1029
SELECT + 98 / + NULLIF ( 9, - 48 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1030
SELECT ALL 3 DIV COUNT( NULLIF ( - 19, 21 ) )
----
3

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL 3 / COUNT ( NULLIF ( - 19, 21 ) )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1031
SELECT - 9 + + 96 DIV - COUNT( * ) + - + SUM( DISTINCT - 92 )
----
-13

skipif mysql # not compatible
query I rowsort label-1031
SELECT - 9 + + 96 / - COUNT ( * ) + - + SUM ( DISTINCT - 92 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1032
SELECT ALL + 49, 20 - - CAST( NULL AS SIGNED ) AS col0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-1032
SELECT ALL + 49, 20 - - CAST ( NULL AS INTEGER ) AS col0
----
49
NULL

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

query I rowsort
SELECT + 85 * 75 AS col2
----
6375

query I rowsort
SELECT ALL + 40 * + 94 + - ( - 7 )
----
3767

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT + CASE COUNT( * ) WHEN 10 THEN - ( + 38 ) * + 99 WHEN - + 95 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT + CASE COUNT ( * ) WHEN 10 THEN - ( + 38 ) * + 99 WHEN - + 95 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 80 * - 8 + - ( - - 37 ) AS col2
----
-677

query I rowsort
SELECT + 79 + - 24
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1039
SELECT DISTINCT - 47 * 26 + + 99 * 55 * - 20 - - - 32 AS col0, COUNT( * ) AS col0
----
-110154
1

skipif mysql # not compatible
query II rowsort label-1039
SELECT DISTINCT - 47 * 26 + + 99 * 55 * - 20 - - - 32 AS col0, COUNT ( * ) AS col0
----
-110154
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT COUNT( DISTINCT ( 72 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1041
SELECT COUNT ( DISTINCT ( 72 ) ) AS col0
----
1

query I rowsort
SELECT - NULLIF ( 1, - - 98 )
----
-1

query I rowsort
SELECT + 54 * + ( + 81 ) + + 49
----
4423

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT + 37 + COUNT( + ( - 61 ) ) + 87 col1
----
125

skipif mysql # not compatible
query I rowsort label-1044
SELECT + 37 + COUNT ( + ( - 61 ) ) + 87 col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL COALESCE ( 87, 35 + + 45 * - COUNT( * ) ) + - MAX( - 90 ) + 4 * MAX( + + 20 ) AS col0
----
257

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL COALESCE ( 87, 35 + + 45 * - COUNT ( * ) ) + - MAX ( - 90 ) + 4 * MAX ( + + 20 ) AS col0
----
257

query I rowsort
SELECT DISTINCT 60 * + 82 AS col2
----
4920

query I rowsort
SELECT DISTINCT 25 + - - 60 - - - 89
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1048
SELECT ALL 83 + - + COUNT( DISTINCT + 29 ) + + + CAST( NULL AS SIGNED ) * - ( - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL 83 + - + COUNT ( DISTINCT + 29 ) + + + CAST ( NULL AS INTEGER ) * - ( - 96 )
----
NULL

query I rowsort
SELECT + 89 * - 19
----
-1691

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1050
SELECT DISTINCT 64, - 22 * - - CAST( - + 80 AS SIGNED ) * 25 + 19 * 88 + 75 AS col1
----
64
45747

skipif mysql # not compatible
query II rowsort label-1050
SELECT DISTINCT 64, - 22 * - - CAST ( - + 80 AS INTEGER ) * 25 + 19 * 88 + 75 AS col1
----
64
45747

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT - + 99 * + COUNT( * ) * + + 94 * + + 64 AS col0
----
-595584

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - + 99 * + COUNT ( * ) * + + 94 * + + 64 AS col0
----
-595584

query I rowsort
SELECT + + NULLIF ( - - 13, - 10 * + + 19 + 1 ) + + + ( 9 ) + + + 57
----
79

query I rowsort
SELECT DISTINCT - 34 - + - ( + - 63 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL + COALESCE ( - 13, + COUNT( * ) * 99, 12 ) - - 74 * + 68 AS col2
----
5019

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL + COALESCE ( - 13, + COUNT ( * ) * 99, 12 ) - - 74 * + 68 AS col2
----
5019

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

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

query I rowsort
SELECT - 56 + 97
----
41

query I rowsort
SELECT 52 - + + NULLIF ( - + 35, + 82 ) + + ( - 25 ) * - 78 AS col0
----
2037

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1058
SELECT + COUNT( * ) DIV 23 AS col1
----
0

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

query I rowsort
SELECT ALL - - 57 * + 20
----
1140

query I rowsort
SELECT 83 * - 72
----
-5976

query I rowsort
SELECT ALL 39 * - ( - 57 ) col2
----
2223

query I rowsort
SELECT ALL + 40 - - - 39 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT DISTINCT - 82 * COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - 82 * COUNT ( * ) AS col0
----
-82

query I rowsort
SELECT ALL - - 82 - - 34
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - CASE + 74 WHEN - COUNT( + 33 ) THEN 69 END / + MIN( + ( + - 7 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT - CASE + 74 WHEN - COUNT ( + 33 ) THEN 69 END / + MIN ( + ( + - 7 ) )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1066
SELECT ALL - - 66, COUNT ( * ) AS col1
----
66
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT DISTINCT COUNT( - 83 ) * - - ( MIN( DISTINCT 71 ) )
----
71

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT COUNT ( - 83 ) * - - ( MIN ( DISTINCT 71 ) )
----
71

query I rowsort
SELECT 21 * + 85 * 40 - + + 45 * 41 AS col2
----
69555

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1071
SELECT 76, CAST( NULL AS DECIMAL ) AS col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-1071
SELECT 76, CAST ( NULL AS REAL ) AS col2
----
76
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1072
SELECT + 23 col1, CASE 1 WHEN + + COUNT( * ) THEN NULL WHEN COUNT( * ) * + - 96 THEN - + 65 END, - 70 AS col0
----
23
NULL
-70

skipif mysql # not compatible
query III rowsort label-1072
SELECT + 23 col1, CASE 1 WHEN + + COUNT ( * ) THEN NULL WHEN COUNT ( * ) * + - 96 THEN - + 65 END, - 70 AS col0
----
23
NULL
-70

query II rowsort
SELECT DISTINCT - 72, + 90 AS col0
----
-72
90

query II rowsort
SELECT ALL - - 30, + 23 AS col0
----
30
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT DISTINCT - MAX( 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT - MAX ( 87 )
----
-87

query I rowsort
SELECT DISTINCT - 38 + 76 AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1077
SELECT 13 DIV + - SUM( ALL - 35 )
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT 13 / + - SUM ( ALL - 35 )
----
0

query I rowsort
SELECT 49 * + + ( 2 )
----
98

query I rowsort
SELECT ALL - COALESCE ( 63, - + 79, + 80 ) + + 75 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1080
SELECT 29 - COALESCE ( 26, + - 1 + - + COALESCE ( + 81, + - 70 + - 51 ) / + + 69 ) + + CASE + 43 WHEN ( - 68 ) THEN NULL WHEN + ( + CAST( NULL AS SIGNED ) ) * + - 39 THEN - 59 * MAX( DISTINCT CAST( NULL AS DECIMAL ) ) END + - CAST( NULL AS SIGNED ) / + - CAST( + + 77 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT 29 - COALESCE ( 26, + - 1 + - + COALESCE ( + 81, + - 70 + - 51 ) / + + 69 ) + + CASE + 43 WHEN ( - 68 ) THEN NULL WHEN + ( + CAST ( NULL AS INTEGER ) ) * + - 39 THEN - 59 * MAX ( DISTINCT CAST ( NULL AS REAL ) ) END + - CAST ( NULL AS INTEGER ) / + - CAST ( + + 77 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT MAX( - 82 ) * + + 0 * + + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1081
SELECT MAX ( - 82 ) * + + 0 * + + 72 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-1082
SELECT COUNT ( * ) + - - 35 / - 98 AS col2
----
1

query I rowsort
SELECT ALL + 57 + - COALESCE ( + - 40, + 81 ) + + 9 AS col0
----
106

query I rowsort
SELECT ALL 84 - - + 19 + 82 + 48
----
233

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

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

query I rowsort
SELECT DISTINCT + 76 - + 15 AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1087
SELECT ALL 77 * + + COUNT( * ), - 88 AS col0
----
77
-88

skipif mysql # not compatible
query II rowsort label-1087
SELECT ALL 77 * + + COUNT ( * ), - 88 AS col0
----
77
-88

query I rowsort
SELECT 48 + + 41 AS col2
----
89

query I rowsort
SELECT CASE - 63 WHEN 50 * - + 34 THEN NULL ELSE - 81 * - 5 * - + 31 END - - - 59
----
-12614

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

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + COUNT ( * ) - 35 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT + COUNT( * ) + 23 + 24 - + - 63 * - + 54 * - MIN( ALL - 6 ) AS col0
----
-20364

skipif mysql # not compatible
query I rowsort label-1091
SELECT + COUNT ( * ) + 23 + 24 - + - 63 * - + 54 * - MIN ( ALL - 6 ) AS col0
----
-20364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1092
SELECT 67 + + 31 + 71 + + 15 DIV - - 79 * - CASE CASE + 96 WHEN 18 THEN - - 75 WHEN - 92 THEN NULL ELSE NULL END WHEN - + 77 THEN + + CAST( + - 18 AS SIGNED ) WHEN + 63 THEN + + 7 ELSE + 95 + - 45 END * 89 + + 7 * - MAX( ALL - 59 ) * COUNT( * )
----
582

skipif mysql # not compatible
query I rowsort label-1092
SELECT 67 + + 31 + 71 + + 15 / - - 79 * - CASE CASE + 96 WHEN 18 THEN - - 75 WHEN - 92 THEN NULL ELSE NULL END WHEN - + 77 THEN + + CAST ( + - 18 AS INTEGER ) WHEN + 63 THEN + + 7 ELSE + 95 + - 45 END * 89 + + 7 * - MAX ( ALL - 59 ) * COUNT ( * )
----
582

query I rowsort
SELECT ALL - - 38 * + 53 AS col0
----
2014

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

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

query II rowsort
SELECT + ( - 56 ) + 72, 90 + 32 AS col2
----
16
122

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1097
SELECT + 4 * - + CASE - + CASE - 38 WHEN - - COALESCE ( + - 44, - - 0 * + NULLIF ( + 14, - 46 * COUNT( * ) + 73 * + - 90 ), + - 82, - 26 ) * + + 7 + + 59 + - MAX( DISTINCT - 89 ) * + 6 THEN NULL ELSE + 5 END WHEN - + 79 THEN NULL WHEN - + 63 * + 83 * + COUNT( * ) + 97 - + COALESCE ( - 80, + + 44 / COUNT( * ) + - - 35 ) * + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) THEN + 48 WHEN - 5 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT + 4 * - + CASE - + CASE - 38 WHEN - - COALESCE ( + - 44, - - 0 * + NULLIF ( + 14, - 46 * COUNT ( * ) + 73 * + - 90 ), + - 82, - 26 ) * + + 7 + + 59 + - MAX ( DISTINCT - 89 ) * + 6 THEN NULL ELSE + 5 END WHEN - + 79 THEN NULL WHEN - + 63 * + 83 * + COUNT ( * ) + 97 - + COALESCE ( - 80, + + 44 / COUNT ( * ) + - - 35 ) * + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) THEN + 48 WHEN - 5 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 36 + - + 42 + - CASE WHEN NULL BETWEEN NULL AND NULL THEN - 35 END + + - 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT - CASE + + COUNT( * ) WHEN - - 36 THEN - 50 / + 1 * - + 42 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT - CASE + + COUNT ( * ) WHEN - - 36 THEN - 50 / + 1 * - + 42 END + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT - 31 DIV 3
----
-10

skipif mysql # not compatible
query I rowsort label-1100
SELECT - 31 / 3
----
-10

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

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

query I rowsort
SELECT - 70 + + 79
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-1103
SELECT - 40 * + 80, ( 50 ) + - 80 DIV 78 * 45 AS col1
----
-3200
5

skipif mysql # not compatible
query II rowsort label-1103
SELECT - 40 * + 80, ( 50 ) + - 80 / 78 * 45 AS col1
----
-3200
5

query I rowsort
SELECT ALL - 46 + - + 74 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-1105
SELECT ALL MAX( ALL - 87 ) + - + 29 AS col0, + 42
----
-116
42

skipif mysql # not compatible
query II rowsort label-1105
SELECT ALL MAX ( ALL - 87 ) + - + 29 AS col0, + 42
----
-116
42

query I rowsort
SELECT - 84 * - - 83 - + 20 * 42 * - 51 col1
----
35868

query II rowsort
SELECT DISTINCT - NULLIF ( - - 23, - + 99 ), - 43 AS col1
----
-23
-43

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT MAX( - - 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1110
SELECT MAX ( - - 11 ) AS col0
----
11

query I rowsort
SELECT 61 * - 85 + 39 AS col1
----
-5146

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT 88 DIV - NULLIF ( 55, - + 75 ) + 82 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1112
SELECT 88 / - NULLIF ( 55, - + 75 ) + 82 AS col2
----
81

query II rowsort
SELECT + 96 col1, + 65 - + + 28 AS col0
----
96
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL - CASE - 35 WHEN + 21 + + 49 THEN 84 * 99 + + 99 + + - COUNT( * ) WHEN - 97 * + SUM( + + 62 ) THEN NULL ELSE - 81 END
----
81

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL - CASE - 35 WHEN + 21 + + 49 THEN 84 * 99 + + 99 + + - COUNT ( * ) WHEN - 97 * + SUM ( + + 62 ) THEN NULL ELSE - 81 END
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT + CAST( 93 AS SIGNED ) * - 36 + 69 + 54 AS col2
----
-3225

skipif mysql # not compatible
query I rowsort label-1115
SELECT + CAST ( 93 AS INTEGER ) * - 36 + 69 + 54 AS col2
----
-3225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1116
SELECT 74 + + MIN( - 79 ) AS col2, - 61 DIV 73
----
-5
0

skipif mysql # not compatible
query II rowsort label-1116
SELECT 74 + + MIN ( - 79 ) AS col2, - 61 / 73
----
-5
0

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

query II rowsort
SELECT - 7, - 25 * - 87 + + - 93 * + + 67 * + - 22 col0
----
-7
139257

query I rowsort
SELECT ALL - 26 - - + 70 col2
----
44

query II rowsort
SELECT - 10 AS col0, ( - 67 ) + - 5 col1
----
-10
-72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1122
SELECT + 85 DIV 79 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1122
SELECT + 85 / 79 AS col0
----
1

query I rowsort
SELECT + 99 + - 5 * + 50 AS col1
----
-151

query I rowsort
SELECT - + 62 + - + 21 AS col0
----
-83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1126
SELECT ALL - 93 DIV + - 73 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL - 93 / + - 73 AS col0
----
1

query I rowsort
SELECT ALL NULLIF ( + NULLIF ( 54, - + 89 ), 72 ) AS col0
----
54

query I rowsort
SELECT - - ( - - 95 )
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT MAX( DISTINCT 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1130
SELECT MAX ( DISTINCT 82 ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT ALL + 32 DIV - - 90 * + - 59 * 44
----
0

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL + 32 / - - 90 * + - 59 * 44
----
0

query II rowsort
SELECT - 1 AS col0, + 75 * + + 30 AS col1
----
-1
2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1133
SELECT + 1 + + 94 * 80 AS col0, NULLIF ( 74, + 79 ) + - CAST( NULL AS SIGNED ) + CAST( + - MAX( DISTINCT - ( + 98 ) ) AS SIGNED ) AS col1
----
7521
NULL

skipif mysql # not compatible
query II rowsort label-1133
SELECT + 1 + + 94 * 80 AS col0, NULLIF ( 74, + 79 ) + - CAST ( NULL AS INTEGER ) + CAST ( + - MAX ( DISTINCT - ( + 98 ) ) AS INTEGER ) AS col1
----
7521
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1134
SELECT ALL 71 + + COUNT( * ) * + 41 * + + COUNT( * ) * - CAST( - + 95 AS SIGNED ) * - + COUNT( * )
----
-3824

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL 71 + + COUNT ( * ) * + 41 * + + COUNT ( * ) * - CAST ( - + 95 AS INTEGER ) * - + COUNT ( * )
----
-3824

query II rowsort
SELECT - 63 AS col0, ( - - 99 ) - 89
----
-63
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT - SUM( DISTINCT - + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1136
SELECT - SUM ( DISTINCT - + 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT + + 55 + 5 + - COUNT( * ) + - 41
----
18

skipif mysql # not compatible
query I rowsort label-1137
SELECT + + 55 + 5 + - COUNT ( * ) + - 41
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT ALL + 75 + NULLIF ( - + ( 79 ), - NULLIF ( 32, + - ( + 24 ) ) * - 20 + + COALESCE ( - 19, + - COUNT( + 13 ) + - 72 + + - 27 + NULLIF ( + - 81, - 83 ) * + + COUNT( * ), - + 74 ) + + MIN( ALL - 0 ) + - 7 * - + 80 * + CAST( NULL AS SIGNED ) * CASE 32 WHEN - - COALESCE ( - 48, 14 - - 40 ) + - COUNT( ALL - + CASE + + ( - 71 ) WHEN - 27 THEN NULL WHEN + 96 THEN + 52 END ) THEN NULL WHEN + COUNT( * ) THEN + 92 ELSE NULL END + - + MAX( DISTINCT 21 ) * 36 - + NULLIF ( + 48, + ( - 46 ) + - AVG ( ALL - 69 ) - - 40 ) + 5 ) * + NULLIF ( - COUNT( + 20 ), 18 / 54 ) AS col1
----
154

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + 75 + NULLIF ( - + ( 79 ), - NULLIF ( 32, + - ( + 24 ) ) * - 20 + + COALESCE ( - 19, + - COUNT ( + 13 ) + - 72 + + - 27 + NULLIF ( + - 81, - 83 ) * + + COUNT ( * ), - + 74 ) + + MIN ( ALL - 0 ) + - 7 * - + 80 * + CAST ( NULL AS INTEGER ) * CASE 32 WHEN - - COALESCE ( - 48, 14 - - 40 ) + - COUNT ( ALL - + CASE + + ( - 71 ) WHEN - 27 THEN NULL WHEN + 96 THEN + 52 END ) THEN NULL WHEN + COUNT ( * ) THEN + 92 ELSE NULL END + - + MAX ( DISTINCT 21 ) * 36 - + NULLIF ( + 48, + ( - 46 ) + - AVG ( ALL - 69 ) - - 40 ) + 5 ) * + NULLIF ( - COUNT ( + 20 ), 18 / 54 ) AS col1
----
154

query I rowsort
SELECT ALL - - 6 + + + 77 AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1140
SELECT DISTINCT - 47 + + CAST( - 28 AS SIGNED ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - 47 + + CAST ( - 28 AS INTEGER ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT + + COUNT( * ) AS col1, - COUNT( * ) * - + 32 + + SUM( ALL - 99 ) AS col0
----
1
-67

skipif mysql # not compatible
query II rowsort label-1141
SELECT + + COUNT ( * ) AS col1, - COUNT ( * ) * - + 32 + + SUM ( ALL - 99 ) AS col0
----
1
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT - COALESCE ( + 42, - 33 DIV + ( + 86 ) - - 74 DIV COUNT( * ) + - - 83 ) * + 81 + - 74
----
-3476

skipif mysql # not compatible
query I rowsort label-1142
SELECT - COALESCE ( + 42, - 33 / + ( + 86 ) - - 74 / COUNT ( * ) + - - 83 ) * + 81 + - 74
----
-3476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1143
SELECT ALL + 81 * + - 87 + + 3 - - MAX( + ( - 1 ) ) - 54 * - MAX( ALL - 85 ) AS col0, 82 DIV - CAST( ( + - 55 ) AS SIGNED )
----
-11635
1

skipif mysql # not compatible
query II rowsort label-1143
SELECT ALL + 81 * + - 87 + + 3 - - MAX ( + ( - 1 ) ) - 54 * - MAX ( ALL - 85 ) AS col0, 82 / - CAST ( ( + - 55 ) AS INTEGER )
----
-11635
1

query II rowsort
SELECT ( 35 ) AS col2, - COALESCE ( + 4, 56 ) + + ( + 34 ) AS col2
----
35
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT + MAX( - 42 ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-1146
SELECT + MAX ( - 42 ) col1
----
-42

query II rowsort
SELECT ( 6 ) AS col2, 15 AS col1
----
6
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT + 44 * + - 92 * + 48 * SUM( DISTINCT - 50 ) AS col0
----
9715200

skipif mysql # not compatible
query I rowsort label-1148
SELECT + 44 * + - 92 * + 48 * SUM ( DISTINCT - 50 ) AS col0
----
9715200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1149
SELECT + CASE + 37 WHEN 79 - - COALESCE ( CAST( 39 AS SIGNED ), 37, - 90 + + - CASE + - ( - 95 ) WHEN + - 37 / + COUNT( * ) + + 53 + + 94 + + COUNT( * ) THEN NULL WHEN 0 THEN NULL ELSE + - AVG ( - 52 ) * + - COALESCE ( + + ( - 26 ), - - 84 ) + + 38 - - 64 END ) THEN NULL WHEN CAST( NULL AS SIGNED ) * + 86 * + - 81 / + 91 THEN NULL ELSE + NULLIF ( - 83, - CAST( NULL AS SIGNED ) ) END * 79 * 63 * - 19 + 20 AS col0
----
7848749

skipif mysql # not compatible
query I rowsort label-1149
SELECT + CASE + 37 WHEN 79 - - COALESCE ( CAST ( 39 AS INTEGER ), 37, - 90 + + - CASE + - ( - 95 ) WHEN + - 37 / + COUNT ( * ) + + 53 + + 94 + + COUNT ( * ) THEN NULL WHEN 0 THEN NULL ELSE + - AVG ( - 52 ) * + - COALESCE ( + + ( - 26 ), - - 84 ) + + 38 - - 64 END ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * + 86 * + - 81 / + 91 THEN NULL ELSE + NULLIF ( - 83, - CAST ( NULL AS INTEGER ) ) END * 79 * 63 * - 19 + 20 AS col0
----
7848749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT + NULLIF ( + ( + CAST( NULL AS SIGNED ) ), - 5 * + 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1150
SELECT + NULLIF ( + ( + CAST ( NULL AS INTEGER ) ), - 5 * + 65 ) AS col1
----
NULL

query I rowsort
SELECT 57 * + + 91 + + 18
----
5205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1152
SELECT - ( - 2 ) * + NULLIF ( + + CASE - 43 WHEN - 17 THEN NULL WHEN + + CAST( NULL AS DECIMAL ) THEN - CAST( NULL AS SIGNED ) * 81 + + + 40 - - + 8 END, + 92 * SUM( DISTINCT - 44 ) + - MAX( DISTINCT CAST( + 35 AS SIGNED ) ) * + ( - 6 ) * - 79 + - - 94 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT - ( - 2 ) * + NULLIF ( + + CASE - 43 WHEN - 17 THEN NULL WHEN + + CAST ( NULL AS REAL ) THEN - CAST ( NULL AS INTEGER ) * 81 + + + 40 - - + 8 END, + 92 * SUM ( DISTINCT - 44 ) + - MAX ( DISTINCT CAST ( + 35 AS INTEGER ) ) * + ( - 6 ) * - 79 + - - 94 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1153
SELECT CASE - 51 WHEN CAST( 15 AS DECIMAL ) + - - MIN( ALL + ( 28 ) ) THEN - 7 + - COUNT( * ) - + 0 + + 66 / - COALESCE ( + - MIN( DISTINCT CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ), - 73 ) + + 81 + - 12 / COUNT( * ) * - 74 * - COUNT( DISTINCT + 46 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT CASE - 51 WHEN CAST ( 15 AS REAL ) + - - MIN ( ALL + ( 28 ) ) THEN - 7 + - COUNT ( * ) - + 0 + + 66 / - COALESCE ( + - MIN ( DISTINCT CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ), - 73 ) + + 81 + - 12 / COUNT ( * ) * - 74 * - COUNT ( DISTINCT + 46 ) END
----
NULL

query I rowsort
SELECT ALL 92 * ( + 92 ) - + + CASE - + 35 WHEN + 99 THEN 37 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1155
SELECT DISTINCT CAST( NULL AS SIGNED ) * 26, 32 AS col1
----
NULL
32

skipif mysql # not compatible
query II rowsort label-1155
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 26, 32 AS col1
----
NULL
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT ALL + 30 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL + 30 / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL COUNT( * ) * 97 - - - 28
----
69

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL COUNT ( * ) * 97 - - - 28
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT + 37 + - 79 + COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1158
SELECT + 37 + - 79 + COUNT ( * ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT + MIN( + 91 ) * - 22 col0
----
-2002

skipif mysql # not compatible
query I rowsort label-1159
SELECT + MIN ( + 91 ) * - 22 col0
----
-2002

query I rowsort
SELECT NULLIF ( + 22, + 42 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1161
SELECT - 95 * NULLIF ( - ( - 94 ), COALESCE ( - - 87, + 93 + - 4 * + 68, 91 + - + 19 * - CAST( 19 AS SIGNED ) + + - 80 + 20 ) / - 63 + + + 97 + COUNT( - - 65 ) + 35 + + 98 ) * + 2
----
-17860

skipif mysql # not compatible
query I rowsort label-1161
SELECT - 95 * NULLIF ( - ( - 94 ), COALESCE ( - - 87, + 93 + - 4 * + 68, 91 + - + 19 * - CAST ( 19 AS INTEGER ) + + - 80 + 20 ) / - 63 + + + 97 + COUNT ( - - 65 ) + 35 + + 98 ) * + 2
----
-17860

query I rowsort
SELECT - - 92 * 20 AS col1
----
1840

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

query II rowsort
SELECT - - 58 * - + 21, - 45 AS col1
----
-1218
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL + + 38 * MAX( 30 ) + - 75 * - + 93 col1
----
8115

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL + + 38 * MAX ( 30 ) + - 75 * - + 93 col1
----
8115

query I rowsort
SELECT ALL - + ( + 23 ) + + 57 - + - 82 AS col1
----
116

query I rowsort
SELECT - 63 - + NULLIF ( - 66, - - ( + + 56 ) / + + 36 - - NULLIF ( + 29, - + 56 * - 17 + - 62 * 57 ) - + + 72 + + CASE - CASE 52 WHEN - COALESCE ( - ( 37 ), - COALESCE ( 90, - 82 / + 37 - - 61, + + 71, - 30 ) * - 4 * + - 25 + + + 65 + 76 - + ( 10 ) + - - 95 ) THEN - - 18 + - + 44 END WHEN + ( - ( - 97 ) ) - + 84 THEN + - 59 ELSE NULL END - 41 ) * 19 + 88 AS col0
----
1279

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT ALL + - COUNT( * ) + 33 + - NULLIF ( 79, + 23 + + 65 ) + + SUM( 63 ) + - CASE + - 64 WHEN + COUNT( * ) THEN + MAX( 31 ) END / - ( 57 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + - COUNT ( * ) + 33 + - NULLIF ( 79, + 23 + + 65 ) + + SUM ( 63 ) + - CASE + - 64 WHEN + COUNT ( * ) THEN + MAX ( 31 ) END / - ( 57 ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 84 + - - COALESCE ( - + 36, + 43 ) AS col1
----
-120

query I rowsort
SELECT - - 6 + + - 74 + - 23 col1
----
-91

query II rowsort
SELECT - ( - 32 ) AS col2, 69
----
32
69

query I rowsort
SELECT ALL + 10 + - 49 * + + 28
----
-1362

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1173
SELECT DISTINCT - 88 DIV MAX( DISTINCT 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT - 88 / MAX ( DISTINCT 48 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT - + COUNT ( * ) + 91 AS col1
----
90

query I rowsort
SELECT - ( - 84 ) * + 65
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT - COUNT( * ) + - 52 * - 46
----
2391

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT - COUNT ( * ) + - 52 * - 46
----
2391

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT DISTINCT - + 29 * - 42 + - SUM( ALL - - 35 ) AS col0
----
1183

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT - + 29 * - 42 + - SUM ( ALL - - 35 ) AS col0
----
1183

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

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

query I rowsort
SELECT - 44 + 56 + + 69 AS col2
----
81

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

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

query I rowsort
SELECT + NULLIF ( - + 55, - 92 ) * - + 38
----
2090

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT + CASE - + COUNT( * ) WHEN - + COUNT( * ) THEN NULL WHEN + NULLIF ( + 40, + 29 * + + 90 * - NULLIF ( 57, + - COUNT( * ) ) ) + + 6 THEN - + 76 * - 95 * 41 / + ( + 29 ) - + - MAX( + 84 ) END * + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT + CASE - + COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL WHEN + NULLIF ( + 40, + 29 * + + 90 * - NULLIF ( 57, + - COUNT ( * ) ) ) + + 6 THEN - + 76 * - 95 * 41 / + ( + 29 ) - + - MAX ( + 84 ) END * + + 58 AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT DISTINCT 66 DIV - + 62
----
-1

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT 66 / - + 62
----
-1

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

query I rowsort
SELECT ALL 19 * NULLIF ( 43, 95 )
----
817

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT DISTINCT 30 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT 30 / - - 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1188
SELECT 92 DIV + NULLIF ( COUNT( * ) * - 27, 79 * CASE ( ( NULLIF ( ( - 73 ), - 8 ) ) ) * 81 WHEN 95 + - COUNT( * ) * 20 THEN 60 ELSE NULL END ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1188
SELECT 92 / + NULLIF ( COUNT ( * ) * - 27, 79 * CASE ( ( NULLIF ( ( - 73 ), - 8 ) ) ) * 81 WHEN 95 + - COUNT ( * ) * 20 THEN 60 ELSE NULL END ) AS col1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT ALL + COUNT( * ) + + 32
----
33

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL + COUNT ( * ) + + 32
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT ( - 75 ) + + CAST( - 92 AS SIGNED ) * 59 AS col1
----
-5503

skipif mysql # not compatible
query I rowsort label-1191
SELECT ( - 75 ) + + CAST ( - 92 AS INTEGER ) * 59 AS col1
----
-5503

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT ALL 53 + 39 DIV + 7
----
58

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL 53 + 39 / + 7
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT - COUNT( * ) * - 10 + - 90 * - 97 AS col0
----
8740

skipif mysql # not compatible
query I rowsort label-1194
SELECT - COUNT ( * ) * - 10 + - 90 * - 97 AS col0
----
8740

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

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT + COUNT ( * ) + + 60 AS col2
----
61

query I rowsort
SELECT ALL 17 + + 14
----
31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1198
SELECT 40 + + 80 DIV + COUNT( * ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-1198
SELECT 40 + + 80 / + COUNT ( * ) AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL - COUNT( * ) * - 14 col0
----
14

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - COUNT ( * ) * - 14 col0
----
14

query I rowsort
SELECT 49 + - 3
----
46

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

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

query I rowsort
SELECT 68 * 32
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT 74 + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-1203
SELECT 74 + COUNT ( * )
----
75

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

query I rowsort
SELECT 58 * - 92 col0
----
-5336

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT ALL - 30 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - 30 / + 82 AS col1
----
0

query I rowsort
SELECT 68 * - 39 AS col0
----
-2652

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT ALL - COALESCE ( COALESCE ( - 54, MAX( - 16 ) - - 38 ), - 32, 28 )
----
54

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL - COALESCE ( COALESCE ( - 54, MAX ( - 16 ) - - 38 ), - 32, 28 )
----
54

query I rowsort
SELECT DISTINCT 20 * 41
----
820

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT ALL - 39 DIV + 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL - 39 / + 38 AS col2
----
-1

query I rowsort
SELECT 48 * 78 AS col2
----
3744

query I rowsort
SELECT ALL - 30 * - COALESCE ( 57, 85 * - 67 - 29 ) AS col0
----
1710

query I rowsort
SELECT 58 * 28
----
1624

query I rowsort
SELECT ALL + 67 * + 47 AS col2
----
3149

query I rowsort
SELECT - 27 * 61 + - 45 * - 4
----
-1467

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT + 22 + COUNT( * ) * 90 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT + 22 + COUNT ( * ) * 90 AS col2
----
112

query I rowsort
SELECT DISTINCT 36 + 28 * 17 AS col2
----
512

query I rowsort
SELECT DISTINCT - NULLIF ( 15, 56 * - 71 ) AS col1
----
-15

query I rowsort
SELECT DISTINCT 13 + 64
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL SUM( ALL - 17 ) + + ( + 7 ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL SUM ( ALL - 17 ) + + ( + 7 ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT ALL - COALESCE ( + COUNT( * ), 63 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL - COALESCE ( + COUNT ( * ), 63 ) AS col0
----
-1

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

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

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

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

query I rowsort
SELECT 67 + - 66 * + 6
----
-329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1225
SELECT ALL + 45 + 25 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL + 45 + 25 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1226
SELECT CAST( + 60 AS SIGNED ) DIV + 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1226
SELECT CAST ( + 60 AS INTEGER ) / + 20 AS col2
----
3

query I rowsort
SELECT ALL - 70 + + 62 AS col2
----
-8

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

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

query I rowsort
SELECT ALL 37 * + 53
----
1961

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL - MIN( DISTINCT 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL - MIN ( DISTINCT 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT + NULLIF ( 81, 68 + COUNT( * ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1231
SELECT + NULLIF ( 81, 68 + COUNT ( * ) ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT DISTINCT + ( + CASE 26 WHEN 70 THEN NULL ELSE - 27 DIV 85 END )
----
0

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT + ( + CASE 26 WHEN 70 THEN NULL ELSE - 27 / 85 END )
----
0

query I rowsort
SELECT ALL + NULLIF ( - 82, - ( 34 ) ) - 44 AS col2
----
-126

query I rowsort
SELECT ALL - 18 * - 16
----
288

query I rowsort
SELECT DISTINCT 22 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT SUM( - 4 ) - 12 * - ( 86 ) AS col0
----
1028

skipif mysql # not compatible
query I rowsort label-1236
SELECT SUM ( - 4 ) - 12 * - ( 86 ) AS col0
----
1028

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

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

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

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

query I rowsort
SELECT ALL - 69 - 45
----
-114

query I rowsort
SELECT + 14 * - ( 0 )
----
0

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

query I rowsort
SELECT 42 + - + 51 * - 1 AS col1
----
93

query I rowsort
SELECT ALL - 43 * 24
----
-1032

query I rowsort
SELECT ALL 56 * + 59 AS col2
----
3304

query I rowsort
SELECT DISTINCT 91 * - + ( + NULLIF ( 80, + 5 ) ) AS col0
----
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-1246
SELECT + 14 DIV 78 * + 71
----
0

skipif mysql # not compatible
query I rowsort label-1246
SELECT + 14 / 78 * + 71
----
0

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT - COUNT ( * ) * - 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT + 31 + + + MIN( DISTINCT + 31 ) * - 59
----
-1798

skipif mysql # not compatible
query I rowsort label-1248
SELECT + 31 + + + MIN ( DISTINCT + 31 ) * - 59
----
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT - COUNT( * ) - 98 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-1249
SELECT - COUNT ( * ) - 98 AS col2
----
-99

query I rowsort
SELECT ALL 29 * - 17 + 44 AS col1
----
-449

query I rowsort
SELECT + 41 * + 17 + - 2
----
695

query I rowsort
SELECT ALL 54 * - 18 + 40 * - 23 AS col0
----
-1892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT ( ( - COUNT( * ) ) ) DIV - 15 + 75 col2
----
75

skipif mysql # not compatible
query I rowsort label-1253
SELECT ( ( - COUNT ( * ) ) ) / - 15 + 75 col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT ALL + CAST( NULL AS SIGNED ) * AVG ( ( 78 ) ) / - 38 + 22 * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL + CAST ( NULL AS INTEGER ) * AVG ( ( 78 ) ) / - 38 + 22 * + 98
----
NULL

query I rowsort
SELECT NULLIF ( + 59, + ( - 86 ) ) AS col1
----
59

query I rowsort
SELECT COALESCE ( 75, 87, - 43, + 84 * + 84 - - 2 * + 60 ) AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1257
SELECT ALL + 9 DIV - MIN( - 54 ) * - ( + 57 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL + 9 / - MIN ( - 54 ) * - ( + 57 ) col0
----
0

query I rowsort
SELECT DISTINCT 41 * 34 + 22
----
1416

query I rowsort
SELECT DISTINCT + - 41 * 83 * 76 + 71
----
-258557

query I rowsort
SELECT DISTINCT + 16 * + ( + 9 )
----
144

query I rowsort
SELECT - COALESCE ( - - 50, 91 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT - 73 * + 61 + 99 + COUNT( * )
----
-4353

skipif mysql # not compatible
query I rowsort label-1262
SELECT - 73 * + 61 + 99 + COUNT ( * )
----
-4353

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT + 59 * COUNT( * ) + 92 col2
----
151

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT + 59 * COUNT ( * ) + 92 col2
----
151

query I rowsort
SELECT ALL - 25 * + 37 AS col2
----
-925

query I rowsort
SELECT - 96 * 27
----
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL 60 * + + ( COUNT( * ) ) + COALESCE ( + NULLIF ( - COUNT( * ), + COUNT( * ) ), 44, 2 * - 89 + COUNT( * ) ) * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL 60 * + + ( COUNT ( * ) ) + COALESCE ( + NULLIF ( - COUNT ( * ), + COUNT ( * ) ), 44, 2 * - 89 + COUNT ( * ) ) * COUNT ( * )
----
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL + 8 * 68 * 85 - + COUNT( * )
----
46239

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL + 8 * 68 * 85 - + COUNT ( * )
----
46239

query I rowsort
SELECT ALL + + 46 * 51 - 15
----
2331

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT ALL - - 60 * - SUM( DISTINCT 87 ) AS col0
----
-5220

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - - 60 * - SUM ( DISTINCT 87 ) AS col0
----
-5220

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL - - SUM( 19 ) - + 16
----
3

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL - - SUM ( 19 ) - + 16
----
3

query I rowsort
SELECT - CASE WHEN + 37 IN ( 16 / - 9 + - 40 ) THEN + 32 * + 16 ELSE 6 - - 72 END * + 82
----
-6396

query I rowsort
SELECT + 68 * + 84 AS col1
----
5712

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT - 64 * 12 + - COALESCE ( 2, + 9 * + 51 + + 63, 59 + - COUNT( * ), - 95 - - 41 ) + - COUNT( * )
----
-771

skipif mysql # not compatible
query I rowsort label-1276
SELECT - 64 * 12 + - COALESCE ( 2, + 9 * + 51 + + 63, 59 + - COUNT ( * ), - 95 - - 41 ) + - COUNT ( * )
----
-771

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT ALL + CASE + 1 WHEN - 29 THEN NULL WHEN - 86 * COUNT( * ) THEN + 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL + CASE + 1 WHEN - 29 THEN NULL WHEN - 86 * COUNT ( * ) THEN + 95 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 74 * 40 * 91 AS col1
----
269360

query I rowsort
SELECT ALL 68 * + + 10 * - 71 * + 12
----
-579360

query I rowsort
SELECT - COALESCE ( + 42, + 49 * ( + 98 ) ) AS col1
----
-42

query I rowsort
SELECT - CASE - - 43 WHEN + 17 THEN NULL WHEN + 93 THEN - 44 END
----
NULL

query I rowsort
SELECT DISTINCT 15 * + 39 AS col0
----
585

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

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

query I rowsort
SELECT + 38 * + ( + 92 )
----
3496

query I rowsort
SELECT + 44 + - 35 + - 23
----
-14

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

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

query I rowsort
SELECT - CASE + + 49 WHEN - 83 THEN - 59 ELSE 2 END
----
-2

query I rowsort
SELECT + 90 - - - 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1289
SELECT - 35, CASE COUNT( * ) WHEN SUM( NULLIF ( - CAST( NULL AS SIGNED ), - 38 ) ) / ( - 10 ) THEN + 15 + + 12 * 84 END AS col1
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-1289
SELECT - 35, CASE COUNT ( * ) WHEN SUM ( NULLIF ( - CAST ( NULL AS INTEGER ), - 38 ) ) / ( - 10 ) THEN + 15 + + 12 * 84 END AS col1
----
-35
NULL

query I rowsort
SELECT ALL 2 + - 79 - 55 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT DISTINCT COUNT( ( + + 52 ) ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT COUNT ( ( + + 52 ) ) + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL + CASE 49 WHEN 71 THEN 77 + 81 * MIN( DISTINCT COALESCE ( ( 63 ), + 99, + 16 + 27 * 21 ) * ( 24 - + 59 ) ) WHEN - COUNT( * ) * COUNT( * ) THEN NULL END + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + CASE 49 WHEN 71 THEN 77 + 81 * MIN ( DISTINCT COALESCE ( ( 63 ), + 99, + 16 + 27 * 21 ) * ( 24 - + 59 ) ) WHEN - COUNT ( * ) * COUNT ( * ) THEN NULL END + 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1293
SELECT ALL - COUNT( * ) * - MAX( DISTINCT CAST( + 12 AS SIGNED ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT CAST ( + 12 AS INTEGER ) ) AS col1
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1294
SELECT - CAST( NULL AS DECIMAL ) AS col0, 91 AS col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-1294
SELECT - CAST ( NULL AS REAL ) AS col0, 91 AS col0
----
NULL
91

query I rowsort
SELECT ALL 66 + - 47 * - - 99 AS col0
----
-4587

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT + CASE 78 WHEN - MAX( - NULLIF ( 24, 74 ) ) THEN 3 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT + CASE 78 WHEN - MAX ( - NULLIF ( 24, 74 ) ) THEN 3 END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1297
SELECT + CAST( NULL AS SIGNED ), + MIN( DISTINCT + - 78 ) * - CASE - 41 WHEN COUNT( * ) THEN NULL ELSE + 35 END AS col2
----
NULL
2730

skipif mysql # not compatible
query II rowsort label-1297
SELECT + CAST ( NULL AS INTEGER ), + MIN ( DISTINCT + - 78 ) * - CASE - 41 WHEN COUNT ( * ) THEN NULL ELSE + 35 END AS col2
----
NULL
2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1298
SELECT DISTINCT 68 DIV + 29 + - - COUNT( * ) + + MIN( ALL + 28 - - 25 * 21 ) * + 64 AS col0
----
35395

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT 68 / + 29 + - - COUNT ( * ) + + MIN ( ALL + 28 - - 25 * 21 ) * + 64 AS col0
----
35395

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1299
SELECT ALL - 70 DIV + 92 * + NULLIF ( 8, CAST( + NULLIF ( + CAST( 78 AS SIGNED ), ( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) ) + + 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL - 70 / + 92 * + NULLIF ( 8, CAST ( + NULLIF ( + CAST ( 78 AS INTEGER ), ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) ) + + 7 AS col2
----
7

query I rowsort
SELECT DISTINCT + 87 * + 60 * 56 * + 17
----
4969440

query II rowsort
SELECT + 31 AS col0, - 6 + 21 AS col2
----
31
15

query I rowsort
SELECT DISTINCT + CASE + - 73 WHEN + 82 / 1 THEN NULL WHEN 74 + 95 THEN 43 END AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1304
SELECT + - COALESCE ( - COALESCE ( CAST( NULL AS SIGNED ), + 19, 91 * 19 ), - 15 * COALESCE ( - 83, 76 ) - + COUNT( ALL CAST( NULL AS SIGNED ) ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1304
SELECT + - COALESCE ( - COALESCE ( CAST ( NULL AS INTEGER ), + 19, 91 * 19 ), - 15 * COALESCE ( - 83, 76 ) - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT ALL + 19 DIV - + 99 - + - 19 + - 5 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL + 19 / - + 99 - + - 19 + - 5 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1306
SELECT DISTINCT + + 62 DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT + + 62 / 90 AS col1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT - 16 DIV - + 42 + - 90 - 42 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-1308
SELECT - 16 / - + 42 + - 90 - 42 AS col1
----
-132

query I rowsort
SELECT ALL + 71 * 31 AS col0
----
2201

onlyif mysql # aggregate syntax: 
query II rowsort label-1310
SELECT + 66 AS col1, - COUNT( ALL + 70 )
----
66
-1

skipif mysql # not compatible
query II rowsort label-1310
SELECT + 66 AS col1, - COUNT ( ALL + 70 )
----
66
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT ALL - - 48 * + CAST( - + 24 AS SIGNED ) - 5 - 0 AS col2
----
-1157

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL - - 48 * + CAST ( - + 24 AS INTEGER ) - 5 - 0 AS col2
----
-1157

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT + 74 + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-1312
SELECT + 74 + COUNT ( * )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1313
SELECT ALL + 27 * CAST( - - 65 AS SIGNED ) * 99 AS col0
----
173745

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + 27 * CAST ( - - 65 AS INTEGER ) * 99 AS col0
----
173745

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT - - 21 DIV - COALESCE ( + 19, - 45 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1314
SELECT - - 21 / - COALESCE ( + 19, - 45 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1315
SELECT - + COUNT( * ) DIV + 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1315
SELECT - + COUNT ( * ) / + 54 AS col0
----
0

query I rowsort
SELECT ALL + - 20 * + 43 AS col2
----
-860

query I rowsort
SELECT + COALESCE ( - 13, + - 58 + 33 ) * 94 + + 83 * 84 AS col2
----
5750

query I rowsort
SELECT - - 41 * 97
----
3977

query I rowsort
SELECT ALL - 36 * 15 AS col2
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT 72 * - + SUM( DISTINCT 42 ) * MAX( 46 ) + + COALESCE ( COUNT( 89 ), 37 + 38 ) AS col0
----
-139103

skipif mysql # not compatible
query I rowsort label-1320
SELECT 72 * - + SUM ( DISTINCT 42 ) * MAX ( 46 ) + + COALESCE ( COUNT ( 89 ), 37 + 38 ) AS col0
----
-139103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT - 32 * - MIN( DISTINCT + 73 )
----
2336

skipif mysql # not compatible
query I rowsort label-1322
SELECT - 32 * - MIN ( DISTINCT + 73 )
----
2336

query I rowsort
SELECT ALL + 75 * 17 AS col2
----
1275

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1324
SELECT - 50 - - 63, 22 * - 15 + CAST( NULL AS SIGNED ) AS col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-1324
SELECT - 50 - - 63, 22 * - 15 + CAST ( NULL AS INTEGER ) AS col0
----
13
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1325
SELECT DISTINCT 97 * 61 * - + MIN( ALL + 75 ) + + 92 DIV ( 79 - - 77 ) col0
----
-443775

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT 97 * 61 * - + MIN ( ALL + 75 ) + + 92 / ( 79 - - 77 ) col0
----
-443775

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

skipif mysql # not compatible
query I rowsort label-1326
SELECT - 21 + + 95 + COUNT ( * ) * - + 75 + 78 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT MIN( DISTINCT + - 43 ) * - CAST( + 72 AS SIGNED ) * - 60
----
-185760

skipif mysql # not compatible
query I rowsort label-1327
SELECT MIN ( DISTINCT + - 43 ) * - CAST ( + 72 AS INTEGER ) * - 60
----
-185760

query I rowsort
SELECT 87 + - 99 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1329
SELECT ALL COUNT( * ) DIV 4 * 29
----
0

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL COUNT ( * ) / 4 * 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL - 81 + - + NULLIF ( + COALESCE ( - + 43, MAX( ALL 90 ) * + 71, - 62 + + 9 ), + ( 55 ) ) - + 5 * - 17
----
47

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - 81 + - + NULLIF ( + COALESCE ( - + 43, MAX ( ALL 90 ) * + 71, - 62 + + 9 ), + ( 55 ) ) - + 5 * - 17
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-1331
SELECT DISTINCT + 26 DIV 67 AS col1, - 9 - 88 + + 48 AS col1
----
0
-49

skipif mysql # not compatible
query II rowsort label-1331
SELECT DISTINCT + 26 / 67 AS col1, - 9 - 88 + + 48 AS col1
----
0
-49

query I rowsort
SELECT ALL 96 + - + 39 + - + 66 * 9 + - 75
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT DISTINCT - 54 + - - MAX( - ( + 26 ) ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT - 54 + - - MAX ( - ( + 26 ) ) col2
----
-80

query I rowsort
SELECT 73 + - 50 col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1335
SELECT COUNT( * ) * + - 82 * - CASE - 85 WHEN 52 THEN MIN( 52 ) + 24 WHEN - CAST( NULL AS SIGNED ) THEN - 50 - 53 * CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT COUNT ( * ) * + - 82 * - CASE - 85 WHEN 52 THEN MIN ( 52 ) + 24 WHEN - CAST ( NULL AS INTEGER ) THEN - 50 - 53 * CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL COALESCE ( + - COALESCE ( SUM( - 92 ), 44 * - 47 ), 39 ) * + 51
----
4692

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL COALESCE ( + - COALESCE ( SUM ( - 92 ), 44 * - 47 ), 39 ) * + 51
----
4692

query I rowsort
SELECT 89 + - 26
----
63

query I rowsort
SELECT NULLIF ( ( 71 ), - + 24 ) - ( + 47 ) AS col1
----
24

query I rowsort
SELECT ( - + 59 ) * + - 7 + 62 AS col2
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ALL 34 - MAX( DISTINCT - 60 ) * 40
----
2434

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL 34 - MAX ( DISTINCT - 60 ) * 40
----
2434

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL COALESCE ( 46, + 53 ) - + - COUNT( * ) + - 47 col2
----
0

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL COALESCE ( 46, + 53 ) - + - COUNT ( * ) + - 47 col2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT ALL 17 - - 40 - + - 95 DIV - 44
----
55

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL 17 - - 40 - + - 95 / - 44
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT 72 * + 70 DIV 93 DIV - - 78 + + 19 * - 49 col2
----
-931

skipif mysql # not compatible
query I rowsort label-1345
SELECT 72 * + 70 / 93 / - - 78 + + 19 * - 49 col2
----
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT DISTINCT - 75 * - + COALESCE ( + 75, COUNT( * ), + 72 ) + 37
----
5662

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT - 75 * - + COALESCE ( + 75, COUNT ( * ), + 72 ) + 37
----
5662

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT - + SUM( + + 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT - + SUM ( + + 7 ) AS col1
----
-7

query I rowsort
SELECT ALL - 31 * + - 41
----
1271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1349
SELECT MIN( 12 ) * - + COALESCE ( CAST( NULL AS SIGNED ), - 59, 55 ) AS col2
----
708

skipif mysql # not compatible
query I rowsort label-1349
SELECT MIN ( 12 ) * - + COALESCE ( CAST ( NULL AS INTEGER ), - 59, 55 ) AS col2
----
708

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT + SUM( DISTINCT - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-1350
SELECT + SUM ( DISTINCT - 10 )
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT DISTINCT 2 * - 36 AS col1, 79 * + MAX( DISTINCT + 17 ) AS col1
----
-72
1343

skipif mysql # not compatible
query II rowsort label-1351
SELECT DISTINCT 2 * - 36 AS col1, 79 * + MAX ( DISTINCT + 17 ) AS col1
----
-72
1343

query I rowsort
SELECT ALL - 81 * ( - + 23 ) + 38 AS col0
----
1901

query II rowsort
SELECT - 7 * 84 AS col0, 42 AS col0
----
-588
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT ALL - COALESCE ( - + 67, + - MAX( DISTINCT - 33 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL - COALESCE ( - + 67, + - MAX ( DISTINCT - 33 ) ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT DISTINCT - COUNT( ALL - - 99 ) + - 67
----
-68

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT - COUNT ( ALL - - 99 ) + - 67
----
-68

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT ALL - 12 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL - 12 / + 34
----
0

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

skipif mysql # not compatible
query I rowsort label-1359
SELECT 84 / - 1
----
-84

query I rowsort
SELECT DISTINCT - 94 * + 14
----
-1316

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1362
SELECT ALL - 85 + 21 DIV + 79 * + 42 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL - 85 + 21 / + 79 * + 42 AS col1
----
-85

query I rowsort
SELECT 67 * - - 73
----
4891

query I rowsort
SELECT 3 * - 65 * + NULLIF ( + 31, 82 * 33 + 37 ) AS col2
----
-6045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT 74 + CAST( COUNT( ALL - ( + 38 ) ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-1365
SELECT 74 + CAST ( COUNT ( ALL - ( + 38 ) ) AS INTEGER )
----
75

query I rowsort
SELECT DISTINCT - 67 + + 23 col1
----
-44

query I rowsort
SELECT ALL + 40 * 47
----
1880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT DISTINCT SUM( + + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT SUM ( + + 38 ) AS col2
----
38

query I rowsort
SELECT DISTINCT + 22 + 83
----
105

query I rowsort
SELECT ALL + 4 - - - ( - 40 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT 18 + + + COUNT( * ) - - + 34 + 56 + + + CASE - 89 WHEN - 50 / 78 THEN - ( 19 ) END / + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT 18 + + + COUNT ( * ) - - + 34 + 56 + + + CASE - 89 WHEN - 50 / 78 THEN - ( 19 ) END / + 73 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL 65 * - SUM( + + 66 ) * - + SUM( - 68 )
----
-291720

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL 65 * - SUM ( + + 66 ) * - + SUM ( - 68 )
----
-291720

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT ALL - + 53 DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - + 53 / + 55 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1376
SELECT COALESCE ( + 37, - + 76 + + - 63 + - + 20 * - 84 ) DIV COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-1376
SELECT COALESCE ( + 37, - + 76 + + - 63 + - + 20 * - 84 ) / COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT - 4 * - ( + + COUNT( * ) ) + - + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - 4 * - ( + + COUNT ( * ) ) + - + COUNT ( * ) AS col2
----
3

query I rowsort
SELECT DISTINCT - 93 * 66 + + 22 AS col2
----
-6116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1379
SELECT + ( - - ( - - COALESCE ( - CAST( NULL AS SIGNED ), - 40 - - COALESCE ( + 22 + 58, 56 ) * 28, + 2 * + 26 ) ) )
----
2200

skipif mysql # not compatible
query I rowsort label-1379
SELECT + ( - - ( - - COALESCE ( - CAST ( NULL AS INTEGER ), - 40 - - COALESCE ( + 22 + 58, 56 ) * 28, + 2 * + 26 ) ) )
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT 10 * - ( + MAX( DISTINCT 64 ) ) + COUNT( * ) col1
----
-639

skipif mysql # not compatible
query I rowsort label-1380
SELECT 10 * - ( + MAX ( DISTINCT 64 ) ) + COUNT ( * ) col1
----
-639

query II rowsort
SELECT - 12 AS col1, 28 AS col0
----
-12
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1382
SELECT + - CASE + 84 WHEN CAST( NULL AS SIGNED ) THEN - - COUNT( DISTINCT - + 29 ) * 47 + + 36 / 50 WHEN NULLIF ( COUNT( * ), + 47 * 82 + + 46 * COUNT( * ) ) * 56 THEN 36 * 38 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT + - CASE + 84 WHEN CAST ( NULL AS INTEGER ) THEN - - COUNT ( DISTINCT - + 29 ) * 47 + + 36 / 50 WHEN NULLIF ( COUNT ( * ), + 47 * 82 + + 46 * COUNT ( * ) ) * 56 THEN 36 * 38 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 5 * - + 30 col2
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1384
SELECT ALL - + ( + NULLIF ( - ( - + SUM( ( CASE + 44 WHEN 80 * 5 THEN 20 ELSE NULL END ) ) ), - 95 + 56 ) ) * ( - 8 / CAST( - 13 AS SIGNED ) ) + - NULLIF ( CAST( + 66 AS SIGNED ), - COUNT( * ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL - + ( + NULLIF ( - ( - + SUM ( ( CASE + 44 WHEN 80 * 5 THEN 20 ELSE NULL END ) ) ), - 95 + 56 ) ) * ( - 8 / CAST ( - 13 AS INTEGER ) ) + - NULLIF ( CAST ( + 66 AS INTEGER ), - COUNT ( * ) ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT + - CASE - COUNT( * ) WHEN + - 63 THEN - COALESCE ( + NULLIF ( 41, 30 ), ( + 20 ) * + 54 ) * 18 - - 18 * - 72 ELSE - 37 * COUNT( ALL + 69 ) + COUNT( * ) END * 46 - MAX( 12 + + ( + 38 ) ) AS col0
----
1606

skipif mysql # not compatible
query I rowsort label-1385
SELECT + - CASE - COUNT ( * ) WHEN + - 63 THEN - COALESCE ( + NULLIF ( 41, 30 ), ( + 20 ) * + 54 ) * 18 - - 18 * - 72 ELSE - 37 * COUNT ( ALL + 69 ) + COUNT ( * ) END * 46 - MAX ( 12 + + ( + 38 ) ) AS col0
----
1606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1386
SELECT ALL + CAST( - + 57 AS SIGNED ) * - - 49 - CASE 12 WHEN + 99 THEN - 76 END / - 37 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL + CAST ( - + 57 AS INTEGER ) * - - 49 - CASE 12 WHEN + 99 THEN - 76 END / - 37 + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT + 25 * 63 * + + 51 + - NULLIF ( - 76, ( COUNT( * ) ) ) AS col0
----
80401

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + 25 * 63 * + + 51 + - NULLIF ( - 76, ( COUNT ( * ) ) ) AS col0
----
80401

query I rowsort
SELECT - 15 * + + 90 + + 81 + - 52 * - + 15 * + 45 AS col1
----
33831

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT + 15 + COUNT( * ) + + CASE + + 59 WHEN - + COUNT( * ) THEN - 95 * + 71 END + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1390
SELECT + 15 + COUNT ( * ) + + CASE + + 59 WHEN - + COUNT ( * ) THEN - 95 * + 71 END + 3 AS col1
----
NULL

query I rowsort
SELECT ALL 27 * + 83
----
2241

query I rowsort
SELECT DISTINCT 56 * 50 * - + 41 AS col0
----
-114800

query I rowsort
SELECT + 68 + 10 AS col0
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL 50 + - COUNT( * ) - - + ( - 39 ) col2
----
10

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL 50 + - COUNT ( * ) - - + ( - 39 ) col2
----
10

query II rowsort
SELECT 96 col2, + 96
----
96
96

query I rowsort
SELECT ALL - 54 - 32 - - + 25 + - - 53 + + + 94 * 73 - + 24
----
6830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1398
SELECT - 37 + + CAST( + + 21 AS SIGNED ) + - + COUNT( * ), 54 AS col0
----
-17
54

skipif mysql # not compatible
query II rowsort label-1398
SELECT - 37 + + CAST ( + + 21 AS INTEGER ) + - + COUNT ( * ), 54 AS col0
----
-17
54

query I rowsort
SELECT - 14 + - - 11 * + NULLIF ( + 97, + 11 )
----
1053

query I rowsort
SELECT - 7 * - 75
----
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1401
SELECT + NULLIF ( - CAST( - + 57 AS SIGNED ), + CAST( + 35 AS SIGNED ) / + 31 + 0 + - 20 ) + 88 * 81 AS col0
----
7185

skipif mysql # not compatible
query I rowsort label-1401
SELECT + NULLIF ( - CAST ( - + 57 AS INTEGER ), + CAST ( + 35 AS INTEGER ) / + 31 + 0 + - 20 ) + 88 * 81 AS col0
----
7185

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

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

query I rowsort
SELECT DISTINCT - 73 * + - 48
----
3504

onlyif mysql # aggregate syntax: 
query II rowsort label-1404
SELECT - 54, ( + - COUNT( DISTINCT + 58 ) ) + NULLIF ( - + 91, 12 * 62 ) * ( ( + ( + 99 ) ) + ( + 32 - COUNT( * ) ) ) col2
----
-54
-11831

skipif mysql # not compatible
query II rowsort label-1404
SELECT - 54, ( + - COUNT ( DISTINCT + 58 ) ) + NULLIF ( - + 91, 12 * 62 ) * ( ( + ( + 99 ) ) + ( + 32 - COUNT ( * ) ) ) col2
----
-54
-11831

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

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL MIN ( ALL 68 )
----
68

query I rowsort
SELECT DISTINCT - 92 * - ( 22 )
----
2024

query I rowsort
SELECT - 48 * - ( - 32 )
----
-1536

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT DISTINCT - + 1 * - 77 + - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT - + 1 * - 77 + - COUNT ( * ) AS col0
----
76

query I rowsort
SELECT - + 25 * 24 * 33 AS col2
----
-19800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1411
SELECT - MAX( + ( 3 ) ) * + 17 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT - MAX ( + ( 3 ) ) * + 17 / 73
----
0

query I rowsort
SELECT - 35 + - + NULLIF ( 21, - 98 * + 66 + - - 56 ) + 10 AS col0
----
-46

query I rowsort
SELECT NULLIF ( 6, + - 54 )
----
6

query I rowsort
SELECT + + 29 - - - 55
----
-26

query I rowsort
SELECT DISTINCT CASE WHEN NOT NULL >= NULL THEN + 87 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1416
SELECT DISTINCT - 62 DIV - 6 + - 75 - + 28 * - 29 * + MAX( 9 ) + COUNT( * )
----
7244

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT - 62 / - 6 + - 75 - + 28 * - 29 * + MAX ( 9 ) + COUNT ( * )
----
7244

query I rowsort
SELECT ALL - 48 * 50 * + + 20 + 63 + - 69 + + 30 + - 53 * ( - ( - 88 ) )
----
-52640

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL + COUNT( * ) / - + 29 + - + CASE + 62 WHEN - 75 THEN - 53 WHEN - 21 THEN 96 + CASE - COUNT( * ) WHEN - 86 - + 19 THEN NULL WHEN - 36 * + COUNT( * ) THEN + 11 ELSE NULL END WHEN + 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL + COUNT ( * ) / - + 29 + - + CASE + 62 WHEN - 75 THEN - 53 WHEN - 21 THEN 96 + CASE - COUNT ( * ) WHEN - 86 - + 19 THEN NULL WHEN - 36 * + COUNT ( * ) THEN + 11 ELSE NULL END WHEN + 40 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1419
SELECT DISTINCT - - ( - 58 ) DIV + 71 + COUNT( * ) + - 54
----
-53

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT - - ( - 58 ) / + 71 + COUNT ( * ) + - 54
----
-53

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

query I rowsort
SELECT + COALESCE ( 24, 99, + 92 + - 61 + + 48 + 98, 2 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1422
SELECT + 67 * + - 6 + - 37 DIV ( - 26 ) * - - 60 + + 32 AS col1
----
-310

skipif mysql # not compatible
query I rowsort label-1422
SELECT + 67 * + - 6 + - 37 / ( - 26 ) * - - 60 + + 32 AS col1
----
-310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1423
SELECT + 79 DIV + - CAST( 56 AS SIGNED ) + + COUNT( * ) + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-1423
SELECT + 79 / + - CAST ( 56 AS INTEGER ) + + COUNT ( * ) + - 35
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1424
SELECT ALL 71 * CAST( NULL AS SIGNED ) + 45 + 52 + 92 / - - 17 * + ( + 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL 71 * CAST ( NULL AS INTEGER ) + 45 + 52 + 92 / - - 17 * + ( + 61 ) AS col0
----
NULL

query I rowsort
SELECT - 79 * + + 2 + - 42
----
-200

query I rowsort
SELECT 49 * - NULLIF ( - - 17, - 78 / + - 27 ) + - 26 AS col0
----
-859

query I rowsort
SELECT ALL 65 * + 36 - - 65
----
2405

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL 73 * - 38 * - + 80 / - - AVG ( DISTINCT + - 18 ) / + CASE - + 4 WHEN 93 THEN NULL WHEN - ( - 2 ) THEN - 2 * + ( 50 * COUNT( * ) ) WHEN + 13 * ( + 37 * + 84 ) THEN + CASE 83 WHEN + COUNT( * ) - ( + 91 + + 75 ) THEN + 96 / 28 WHEN + 1 / + COUNT( ALL 41 ) + 30 THEN NULL END / + 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL 73 * - 38 * - + 80 / - - AVG ( DISTINCT + - 18 ) / + CASE - + 4 WHEN 93 THEN NULL WHEN - ( - 2 ) THEN - 2 * + ( 50 * COUNT ( * ) ) WHEN + 13 * ( + 37 * + 84 ) THEN + CASE 83 WHEN + COUNT ( * ) - ( + 91 + + 75 ) THEN + 96 / 28 WHEN + 1 / + COUNT ( ALL 41 ) + 30 THEN NULL END / + 34 END AS col0
----
NULL

query I rowsort
SELECT COALESCE ( 91, - 79 + - + 52 ) col2
----
91

query I rowsort
SELECT CASE 26 WHEN 23 - 47 THEN NULL WHEN 55 THEN 48 * - - 54 * 92 + 27 ELSE 68 * 56 END AS col2
----
3808

query I rowsort
SELECT + 26 * - - 7
----
182

query II rowsort
SELECT ALL 37 * + - 67, - 25 AS col2
----
-2479
-25

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1434
SELECT + 71 * + + 16 * + CAST( + 83 AS SIGNED ) + + 34 DIV + 87 + + - 13 DIV + 74
----
94288

skipif mysql # not compatible
query I rowsort label-1434
SELECT + 71 * + + 16 * + CAST ( + 83 AS INTEGER ) + + 34 / + 87 + + - 13 / + 74
----
94288

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT ALL COUNT( DISTINCT - + CASE + 36 WHEN + 15 THEN + - 63 * + - 86 + + 1 ELSE NULL END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL COUNT ( DISTINCT - + CASE + 36 WHEN + 15 THEN + - 63 * + - 86 + + 1 ELSE NULL END ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT + 48 DIV + - 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1436
SELECT + 48 / + - 38 AS col1
----
-1

query I rowsort
SELECT + 65 + - 56
----
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT + 11 DIV - - 3 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1439
SELECT + 11 / - - 3 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL + COUNT( * ) + - 49 col2
----
-48

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + COUNT ( * ) + - 49 col2
----
-48

query I rowsort
SELECT + + 38 * - 6 * + - 83
----
18924

query I rowsort
SELECT - ( - 56 ) * - + 63
----
-3528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1443
SELECT ALL + + CAST( NULL AS SIGNED ) * + + 35 + + - COUNT( * ) * - + COALESCE ( - COUNT( * ), - - CAST( + 31 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL + + CAST ( NULL AS INTEGER ) * + + 35 + + - COUNT ( * ) * - + COALESCE ( - COUNT ( * ), - - CAST ( + 31 AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + CASE + 4 WHEN + 52 THEN NULL WHEN + + 13 THEN - 6 ELSE NULL END / + 35 * - 3 + + 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT ALL + 83 + + + 30 DIV 35 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL + 83 + + + 30 / 35 AS col2
----
83

query I rowsort
SELECT - - 14 * 67
----
938

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT 39 * + - 53 - MAX( DISTINCT 22 ) + - 84 * - + 40 * + - 65 * - 96 * + 36 AS col2
----
754788311

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT 39 * + - 53 - MAX ( DISTINCT 22 ) + - 84 * - + 40 * + - 65 * - 96 * + 36 AS col2
----
754788311

query II rowsort
SELECT ALL + + 10 + + - 23 AS col0, 0 + - 53
----
-13
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1449
SELECT DISTINCT - 69 + - 10 + COALESCE ( - 27, 21 * - + COUNT( * ) + - MIN( ALL - 15 ) + 0 * + 66, - 73 * + 51 ) * MAX( DISTINCT CAST( + 21 AS SIGNED ) DIV + 28 ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - 69 + - 10 + COALESCE ( - 27, 21 * - + COUNT ( * ) + - MIN ( ALL - 15 ) + 0 * + 66, - 73 * + 51 ) * MAX ( DISTINCT CAST ( + 21 AS INTEGER ) / + 28 ) col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT DISTINCT + ( 91 ) + + COALESCE ( + + 87, NULLIF ( - 70, + 55 * COUNT( * ) ) ) AS col0
----
178

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT + ( 91 ) + + COALESCE ( + + 87, NULLIF ( - 70, + 55 * COUNT ( * ) ) ) AS col0
----
178

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT + - 14 * - 30 - COUNT( DISTINCT NULLIF ( 25, + 66 ) )
----
419

skipif mysql # not compatible
query I rowsort label-1452
SELECT + - 14 * - 30 - COUNT ( DISTINCT NULLIF ( 25, + 66 ) )
----
419

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1454
SELECT + NULLIF ( COALESCE ( + ( 87 ), - COUNT( * ) * 94 - - 47, 2 - 72 DIV 38 ), 20 ) DIV - 94 - 69 * 98 AS col0
----
-6762

skipif mysql # not compatible
query I rowsort label-1454
SELECT + NULLIF ( COALESCE ( + ( 87 ), - COUNT ( * ) * 94 - - 47, 2 - 72 / 38 ), 20 ) / - 94 - 69 * 98 AS col0
----
-6762

query I rowsort
SELECT + ( + NULLIF ( + 63, - 59 ) ) AS col2
----
63

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - 6 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 63 * + NULLIF ( - - 28, 74 - + CASE 71 WHEN + - 62 THEN 72 ELSE NULL END )
----
1764

onlyif mysql # DIV for integer division: 
query II rowsort label-1458
SELECT 29 AS col0, 53 DIV + - 12 AS col2
----
29
-4

skipif mysql # not compatible
query II rowsort label-1458
SELECT 29 AS col0, 53 / + - 12 AS col2
----
29
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT ALL + 81 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL + 81 / 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT 54 * 22 - - + 89 * - 27 * - 19 + + 6 + - COUNT( * ) + + + COUNT( * ) AS col0
----
46851

skipif mysql # not compatible
query I rowsort label-1460
SELECT 54 * 22 - - + 89 * - 27 * - 19 + + 6 + - COUNT ( * ) + + + COUNT ( * ) AS col0
----
46851

onlyif mysql # DIV for integer division: 
query II rowsort label-1461
SELECT DISTINCT - 44 AS col2, + 54 DIV - - 39 AS col2
----
-44
1

skipif mysql # not compatible
query II rowsort label-1461
SELECT DISTINCT - 44 AS col2, + 54 / - - 39 AS col2
----
-44
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT 83 DIV + 32 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1462
SELECT 83 / + 32 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT NULLIF ( - 28, - - 67 ) * - COALESCE ( - ( + COUNT( * ) ), - 88 * 71 - 95 ) + - 8
----
-36

skipif mysql # not compatible
query I rowsort label-1463
SELECT NULLIF ( - 28, - - 67 ) * - COALESCE ( - ( + COUNT ( * ) ), - 88 * 71 - 95 ) + - 8
----
-36

query I rowsort
SELECT DISTINCT + 45 * + - NULLIF ( - 19, + CASE WHEN NOT ( NOT NULL <= + + 71 ) THEN - NULLIF ( 60, - ( 78 ) ) END )
----
855

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1466
SELECT DISTINCT - ( - COALESCE ( - 21, COUNT( * ) DIV 99, + - 97 * 84 - - - COUNT( * ) ) )
----
-21

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - ( - COALESCE ( - 21, COUNT ( * ) / 99, + - 97 * 84 - - - COUNT ( * ) ) )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1467
SELECT ALL - COUNT( ALL - 94 ) * - + 63 DIV ( 96 ) * + 87 * - + 7
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - COUNT ( ALL - 94 ) * - + 63 / ( 96 ) * + 87 * - + 7
----
0

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

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

query II rowsort
SELECT DISTINCT 45 col1, - 85
----
45
-85

query I rowsort
SELECT ALL 19 * 83 * + 59 AS col0
----
93043

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT COUNT( * ) + + 13
----
14

skipif mysql # not compatible
query I rowsort label-1471
SELECT COUNT ( * ) + + 13
----
14

query I rowsort
SELECT 8 * + 74 * 81 AS col0
----
47952

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

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

query I rowsort
SELECT ALL NULLIF ( 50, 76 + + 89 ) + + 76 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT 72 - COUNT( * ) + 24 + - 32 + - 21 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1475
SELECT 72 - COUNT ( * ) + 24 + - 32 + - 21 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1476
SELECT CAST( + ( - 2 ) AS SIGNED ), - 32 * - COUNT( * ) - - - CAST( NULL AS SIGNED ) AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-1476
SELECT CAST ( + ( - 2 ) AS INTEGER ), - 32 * - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) AS col1
----
-2
NULL

query II rowsort
SELECT + 17 + 47 * + - 69 col2, - 93 AS col0
----
-3226
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT - - NULLIF ( + CASE - - SUM( - 13 ) WHEN - - COUNT( * ) * + + COUNT( * ) THEN NULL WHEN 81 / + 62 THEN + 55 END, - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT - - NULLIF ( + CASE - - SUM ( - 13 ) WHEN - - COUNT ( * ) * + + COUNT ( * ) THEN NULL WHEN 81 / + 62 THEN + 55 END, - 84 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT ALL - 54 + - 27 DIV - 6 col0
----
-50

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL - 54 + - 27 / - 6 col0
----
-50

query I rowsort
SELECT 41 - + + 52
----
-11

query I rowsort
SELECT DISTINCT - 21 * 71
----
-1491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1483
SELECT + CASE CASE + - 67 WHEN - 1 / - ( - - ( - 3 ) ) + - + 64 + - 78 / - 13 + ( 67 ) THEN SUM( ALL 42 ) WHEN - 13 THEN NULL ELSE 26 END WHEN 38 * CAST( NULL AS SIGNED ) + 71 THEN - COUNT( * ) WHEN - 17 + 51 THEN + 78 END - + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT + CASE CASE + - 67 WHEN - 1 / - ( - - ( - 3 ) ) + - + 64 + - 78 / - 13 + ( 67 ) THEN SUM ( ALL 42 ) WHEN - 13 THEN NULL ELSE 26 END WHEN 38 * CAST ( NULL AS INTEGER ) + 71 THEN - COUNT ( * ) WHEN - 17 + 51 THEN + 78 END - + 53 AS col0
----
NULL

query I rowsort
SELECT 3 * + - 63 AS col1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL - SUM( - 34 ) + + ( 32 ) * - 81 AS col1
----
-2558

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - SUM ( - 34 ) + + ( 32 ) * - 81 AS col1
----
-2558

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT 21 + + COUNT( * ) col2
----
22

skipif mysql # not compatible
query I rowsort label-1486
SELECT 21 + + COUNT ( * ) col2
----
22

query I rowsort
SELECT ALL + 96 + - ( - 8 )
----
104

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

query I rowsort
SELECT 13 + + + 53 AS col1
----
66

query I rowsort
SELECT ALL + 5 * - - 23 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT DISTINCT - 77 DIV 47 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT - 77 / 47 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1492
SELECT + 27, CAST( + + 37 AS SIGNED ) AS col0
----
27
37

skipif mysql # not compatible
query II rowsort label-1492
SELECT + 27, CAST ( + + 37 AS INTEGER ) AS col0
----
27
37

query II rowsort
SELECT ALL - 92, 88 AS col2
----
-92
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1494
SELECT 2 + - MAX( + 74 ) - + MIN( + - ( 72 ) ) + 7 * - MIN( ALL + - 42 ) DIV - 42 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1494
SELECT 2 + - MAX ( + 74 ) - + MIN ( + - ( 72 ) ) + 7 * - MIN ( ALL + - 42 ) / - 42 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT CASE - CASE + CASE - 7 WHEN - MIN( + + ( - + 33 ) ) * + - COUNT( * ) THEN - + 28 + + MIN( ALL + 70 ) END WHEN + 2 THEN NULL WHEN - COUNT( * ) THEN + 19 + 61 ELSE NULL END WHEN 99 THEN COUNT( * ) + 60 END * + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT CASE - CASE + CASE - 7 WHEN - MIN ( + + ( - + 33 ) ) * + - COUNT ( * ) THEN - + 28 + + MIN ( ALL + 70 ) END WHEN + 2 THEN NULL WHEN - COUNT ( * ) THEN + 19 + 61 ELSE NULL END WHEN 99 THEN COUNT ( * ) + 60 END * + 72 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 77 * CASE - - 85 WHEN 58 * + - COALESCE ( - + 23, - 4 ) THEN + 82 * + 14 WHEN 57 THEN NULL END * - 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1497
SELECT ( - 67 ) * + CAST( - - 82 AS SIGNED ) + + + COUNT( * ) * + + 65
----
-5429

skipif mysql # not compatible
query I rowsort label-1497
SELECT ( - 67 ) * + CAST ( - - 82 AS INTEGER ) + + + COUNT ( * ) * + + 65
----
-5429

query I rowsort
SELECT 28 * 73
----
2044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1499
SELECT ALL - CASE - - ( - 55 ) WHEN + - CAST( NULL AS SIGNED ) THEN + CASE - COUNT( * ) WHEN - - 94 + - 4 THEN NULL WHEN 5 THEN 93 * 6 WHEN 41 THEN NULL ELSE 82 END ELSE - 14 END
----
14

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL - CASE - - ( - 55 ) WHEN + - CAST ( NULL AS INTEGER ) THEN + CASE - COUNT ( * ) WHEN - - 94 + - 4 THEN NULL WHEN 5 THEN 93 * 6 WHEN 41 THEN NULL ELSE 82 END ELSE - 14 END
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1500
SELECT DISTINCT + COUNT( * ) DIV - + 6, - 96 * + NULLIF ( + COUNT( * ), - 8 ) AS col2
----
0
-96

skipif mysql # not compatible
query II rowsort label-1500
SELECT DISTINCT + COUNT ( * ) / - + 6, - 96 * + NULLIF ( + COUNT ( * ), - 8 ) AS col2
----
0
-96

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1501
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 79, 45 + - 31 DIV - - 79 AS col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-1501
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 79, 45 + - 31 / - - 79 AS col0
----
NULL
45

query I rowsort
SELECT DISTINCT + 5 * + ( 79 ) AS col2
----
395

onlyif mysql # aggregate syntax: 
query II rowsort label-1503
SELECT DISTINCT + 33 + + 9 col0, ( - 53 ) * + + ( SUM( - - 81 ) ) + + 78
----
42
-4215

skipif mysql # not compatible
query II rowsort label-1503
SELECT DISTINCT + 33 + + 9 col0, ( - 53 ) * + + ( SUM ( - - 81 ) ) + + 78
----
42
-4215

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

skipif mysql # not compatible
query II rowsort label-1504
SELECT 1 * - COUNT ( * ) AS col2, - 58
----
-1
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT 8 DIV 96 * - 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1505
SELECT 8 / 96 * - 17 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - 87 * + ( COUNT( * ) ) + - MAX( DISTINCT - 11 ) * + - 0 + COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1506
SELECT - 87 * + ( COUNT ( * ) ) + - MAX ( DISTINCT - 11 ) * + - 0 + COUNT ( * ) AS col2
----
-86

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

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT + COUNT ( * ) + - 81 - - 8 col1
----
-72

query II rowsort
SELECT 53 * 50 col2, + 11
----
2650
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1509
SELECT ALL - CAST( 91 AS SIGNED ) + - + 27 + 47 * - MAX( ALL + - 85 ) * - + CAST( NULL AS DECIMAL ) * - 91 * + 81 - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL - CAST ( 91 AS INTEGER ) + - + 27 + 47 * - MAX ( ALL + - 85 ) * - + CAST ( NULL AS REAL ) * - 91 * + 81 - 5
----
NULL

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

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

query I rowsort
SELECT ALL COALESCE ( 24, NULLIF ( - 56, + 22 ), 87 )
----
24

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

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

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

query I rowsort
SELECT ALL - CASE 43 WHEN ( - + 14 ) THEN NULL WHEN + - 16 THEN NULL ELSE 37 END + + 82 + 81 AS col2
----
126

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

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

query I rowsort
SELECT DISTINCT - 33 + 27 col1
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1517
SELECT + 56 - + + CAST( NULL AS DECIMAL ) AS col1, + 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-1517
SELECT + 56 - + + CAST ( NULL AS REAL ) AS col1, + 48
----
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT + + 6 + - COUNT( DISTINCT - + 21 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1518
SELECT + + 6 + - COUNT ( DISTINCT - + 21 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT ALL + ( + + CASE 88 WHEN + AVG ( 12 ) + + COUNT( * ) THEN - 50 ELSE + 98 END )
----
98

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL + ( + + CASE 88 WHEN + AVG ( 12 ) + + COUNT ( * ) THEN - 50 ELSE + 98 END )
----
98

query I rowsort
SELECT - 18 * CASE 32 WHEN + 36 THEN - 63 + - 62 - + 65 END col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL - - 35 - - CASE + 45 WHEN - COUNT( * ) THEN NULL WHEN + 68 / + 19 THEN NULL WHEN + 96 THEN NULL ELSE - - MIN( DISTINCT 17 ) END AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL - - 35 - - CASE + 45 WHEN - COUNT ( * ) THEN NULL WHEN + 68 / + 19 THEN NULL WHEN + 96 THEN NULL ELSE - - MIN ( DISTINCT 17 ) END AS col1
----
52

query II rowsort
SELECT ALL 75 * + + 33 AS col1, - ( + - 37 ) - - ( - ( + - 28 ) ) AS col2
----
2475
65

query I rowsort
SELECT ALL + 59 - 40
----
19

query II rowsort
SELECT DISTINCT + 48 * - 93 * + 69 + 54 col2, 39 * - 45 + + 6 AS col1
----
-307962
-1749

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT + 72 * - 49 * - ( COUNT( * ) ) * - + ( - 11 ) * - 45 + 65 * - - 43
----
-1743565

skipif mysql # not compatible
query I rowsort label-1526
SELECT + 72 * - 49 * - ( COUNT ( * ) ) * - + ( - 11 ) * - 45 + 65 * - - 43
----
-1743565

query I rowsort
SELECT ( - - 50 ) AS col1
----
50

query II rowsort
SELECT ALL + 47, + 79 AS col1
----
47
79

query I rowsort
SELECT + COALESCE ( + ( - 60 ), 63, + 63 ) * + 59 AS col0
----
-3540

query I rowsort
SELECT + 85 * 73 * 42 * 55
----
14333550

query I rowsort
SELECT + 91 * + + 3
----
273

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1534
SELECT + 96 * + NULLIF ( + 32, 5 * - - CAST( NULL AS SIGNED ) + - + 44 ) AS col1, + MAX( ALL - CAST( NULL AS SIGNED ) ) / - - 57 + - 92 AS col0
----
3072
NULL

skipif mysql # not compatible
query II rowsort label-1534
SELECT + 96 * + NULLIF ( + 32, 5 * - - CAST ( NULL AS INTEGER ) + - + 44 ) AS col1, + MAX ( ALL - CAST ( NULL AS INTEGER ) ) / - - 57 + - 92 AS col0
----
3072
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL + 96 * - + 58 + - + NULLIF ( - + 5, - 45 ) + + + 13 - COUNT( * ) * + 95 + + 71
----
-5574

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL + 96 * - + 58 + - + NULLIF ( - + 5, - 45 ) + + + 13 - COUNT ( * ) * + 95 + + 71
----
-5574

query I rowsort
SELECT + NULLIF ( - - 75, - - 20 )
----
75

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1538
SELECT ALL - 85 * 69 + 43 + - - 50 + + COUNT( * ) + - COALESCE ( + - 29, + 23, 48 * - + 21 ) DIV + 83
----
-5771

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - 85 * 69 + 43 + - - 50 + + COUNT ( * ) + - COALESCE ( + - 29, + 23, 48 * - + 21 ) / + 83
----
-5771

query I rowsort
SELECT NULLIF ( - 44, 90 )
----
-44

query I rowsort
SELECT NULLIF ( - 27, - ( - 25 ) + + 0 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT CASE + 10 WHEN - 35 THEN + COUNT( * ) / + + COALESCE ( - 33, + + COALESCE ( - - 20, + + 28 ) * + COALESCE ( - SUM( ALL - 93 ), 70 ), 93 ) + - 74 * - 11 + + 58 WHEN + 31 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT CASE + 10 WHEN - 35 THEN + COUNT ( * ) / + + COALESCE ( - 33, + + COALESCE ( - - 20, + + 28 ) * + COALESCE ( - SUM ( ALL - 93 ), 70 ), 93 ) + - 74 * - 11 + + 58 WHEN + 31 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 8 * 75 + 71
----
671

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - 41 + MAX( ( 57 ) )
----
16

skipif mysql # not compatible
query I rowsort label-1543
SELECT - 41 + MAX ( ( 57 ) )
----
16

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1545
SELECT - 36 DIV + 38 * + 30 * 35 - 66 AS col1, + 93
----
-66
93

skipif mysql # not compatible
query II rowsort label-1545
SELECT - 36 / + 38 * + 30 * 35 - 66 AS col1, + 93
----
-66
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT - 24 * + + 38 - - 67 DIV - 92 * + 24 - 46 + 33
----
-925

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT - 24 * + + 38 - - 67 / - 92 * + 24 - 46 + 33
----
-925

query II rowsort
SELECT - 15 AS col2, + 86 col1
----
-15
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT CASE + 30 WHEN + + ( - 66 ) * + 83 + + 40 * 26 THEN + COUNT( * ) - + - 21 * + 35 - + 63 END * + ( + 22 ) + MIN( ALL - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT CASE + 30 WHEN + + ( - 66 ) * + 83 + + 40 * 26 THEN + COUNT ( * ) - + - 21 * + 35 - + 63 END * + ( + 22 ) + MIN ( ALL - 75 )
----
NULL

query II rowsort
SELECT ALL - 71 - + 66 + + 43 AS col0, 80
----
-94
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT - SUM( - 61 ) * - - 33 * - 90 * + 3 col0
----
-543510

skipif mysql # not compatible
query I rowsort label-1550
SELECT - SUM ( - 61 ) * - - 33 * - 90 * + 3 col0
----
-543510

query I rowsort
SELECT - - 74 + - + 15 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT ALL COUNT( * ) AS col1, + 56 + - + 28 AS col0
----
1
28

skipif mysql # not compatible
query II rowsort label-1552
SELECT ALL COUNT ( * ) AS col1, + 56 + - + 28 AS col0
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT - CASE 70 WHEN - - 17 THEN NULL WHEN - + 63 THEN 60 * - 38 + 39 * - + 59 END - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT - CASE 70 WHEN - - 17 THEN NULL WHEN - + 63 THEN 60 * - 38 + 39 * - + 59 END - - COUNT ( * ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1554
SELECT - - CAST ( NULL AS INTEGER ) + - ( + - 48 ) col0
----
NULL

query I rowsort
SELECT + 65 + - 26
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1556
SELECT - + 64 * - 78 DIV - COUNT( DISTINCT + 64 ) AS col1
----
-4992

skipif mysql # not compatible
query I rowsort label-1556
SELECT - + 64 * - 78 / - COUNT ( DISTINCT + 64 ) AS col1
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT - NULLIF ( - 8, CASE + 17 WHEN + + 86 / - + 35 - - 12 + + 75 * - COUNT( * ) * + + SUM( - 13 ) + CASE COUNT( * ) - + 77 WHEN - ( - 19 ) THEN - 78 WHEN - 15 THEN NULL END THEN + 27 END ) + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1557
SELECT - NULLIF ( - 8, CASE + 17 WHEN + + 86 / - + 35 - - 12 + + 75 * - COUNT ( * ) * + + SUM ( - 13 ) + CASE COUNT ( * ) - + 77 WHEN - ( - 19 ) THEN - 78 WHEN - 15 THEN NULL END THEN + 27 END ) + - COUNT ( * )
----
7

query II rowsort
SELECT DISTINCT 62 AS col2, 62
----
62
62

query I rowsort
SELECT ALL 73 + - 59 AS col2
----
14

query I rowsort
SELECT - 79 + + NULLIF ( - - NULLIF ( + - 30, - 26 ), 15 ) + 50 + + 17 * - NULLIF ( - 85, - + 71 ) col1
----
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1561
SELECT DISTINCT CAST( NULLIF ( COUNT( * ), 21 + - CAST( NULL AS SIGNED ) + - + 9 * 78 * 91 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT CAST ( NULLIF ( COUNT ( * ), 21 + - CAST ( NULL AS INTEGER ) + - + 9 * 78 * 91 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1562
SELECT ALL + 82 AS col2, + COUNT( ALL 63 ) - - 59 col0
----
82
60

skipif mysql # not compatible
query II rowsort label-1562
SELECT ALL + 82 AS col2, + COUNT ( ALL 63 ) - - 59 col0
----
82
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT + CASE 7 WHEN - + COUNT( * ) / + - MAX( - 81 ) + - 40 + + COUNT( * ) + 96 * - 54 THEN - COUNT( * ) WHEN 54 THEN NULL ELSE 61 + 62 END
----
123

skipif mysql # not compatible
query I rowsort label-1563
SELECT + CASE 7 WHEN - + COUNT ( * ) / + - MAX ( - 81 ) + - 40 + + COUNT ( * ) + 96 * - 54 THEN - COUNT ( * ) WHEN 54 THEN NULL ELSE 61 + 62 END
----
123

onlyif mysql # DIV for integer division: 
query II rowsort label-1564
SELECT 60 DIV - 99 + + 15 * - 65 AS col2, 10 AS col2
----
-975
10

skipif mysql # not compatible
query II rowsort label-1564
SELECT 60 / - 99 + + 15 * - 65 AS col2, 10 AS col2
----
-975
10

query I rowsort
SELECT 33 * - 70 + + + 61 col2
----
-2249

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1566
SELECT CAST( + 73 AS SIGNED ), + 71 * 49 AS col0, 59 AS col1
----
73
3479
59

skipif mysql # not compatible
query III rowsort label-1566
SELECT CAST ( + 73 AS INTEGER ), + 71 * 49 AS col0, 59 AS col1
----
73
3479
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT CAST( + 25 AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1567
SELECT CAST ( + 25 AS INTEGER ) AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1568
SELECT ALL COUNT( * ) DIV ( 12 ) + - COUNT( DISTINCT + 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL COUNT ( * ) / ( 12 ) + - COUNT ( DISTINCT + 7 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT + 66 DIV ( + - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-1569
SELECT + 66 / ( + - 67 )
----
0

query I rowsort
SELECT + 42 * + + 78 * - 91 * + 44
----
-13117104

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + COALESCE ( - - ( + NULLIF ( + 99, + - 74 + + 77 ) ), 93 + - + 77, + - COUNT( * ) ) * + - COUNT( * ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-1571
SELECT + COALESCE ( - - ( + NULLIF ( + 99, + - 74 + + 77 ) ), 93 + - + 77, + - COUNT ( * ) ) * + - COUNT ( * ) AS col1
----
-99

query II rowsort
SELECT 22, + 35 AS col2
----
22
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT 9 * SUM( - 93 ) * + - 45 * - 83 * + - 85 + + - 91 AS col0
----
265726484

skipif mysql # not compatible
query I rowsort label-1573
SELECT 9 * SUM ( - 93 ) * + - 45 * - 83 * + - 85 + + - 91 AS col0
----
265726484

onlyif mysql # aggregate syntax: 
query II rowsort label-1574
SELECT 28 col2, - COUNT( * )
----
28
-1

skipif mysql # not compatible
query II rowsort label-1574
SELECT 28 col2, - COUNT ( * )
----
28
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1575
SELECT + SUM( DISTINCT - - 99 ) + CAST( NULL AS SIGNED ) / - 16 + 53 * - + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1575
SELECT + SUM ( DISTINCT - - 99 ) + CAST ( NULL AS INTEGER ) / - 16 + 53 * - + 21 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1577
SELECT + 60 * 6 DIV + - COUNT( * ) AS col1
----
-360

skipif mysql # not compatible
query I rowsort label-1577
SELECT + 60 * 6 / + - COUNT ( * ) AS col1
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1578
SELECT - - CAST( NULL AS SIGNED ) col0, COUNT( * ) * - - 88
----
NULL
88

skipif mysql # not compatible
query II rowsort label-1578
SELECT - - CAST ( NULL AS INTEGER ) col0, COUNT ( * ) * - - 88
----
NULL
88

query I rowsort
SELECT - 4 - - 86
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1580
SELECT ALL - 78 AS col2, 88 * COUNT( * ) AS col1
----
-78
88

skipif mysql # not compatible
query II rowsort label-1580
SELECT ALL - 78 AS col2, 88 * COUNT ( * ) AS col1
----
-78
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1581
SELECT + COALESCE ( - COUNT( * ), + + 83 * - + 44 + + 21 + - 91 + - 38 * - ( - - 68 ) ) AS col0, + 70
----
-1
70

skipif mysql # not compatible
query II rowsort label-1581
SELECT + COALESCE ( - COUNT ( * ), + + 83 * - + 44 + + 21 + - 91 + - 38 * - ( - - 68 ) ) AS col0, + 70
----
-1
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1582
SELECT ALL + 52 AS col2, ( 99 ) + + COUNT( * ) + MIN( DISTINCT - 84 ) * - + 24 AS col2
----
52
2116

skipif mysql # not compatible
query II rowsort label-1582
SELECT ALL + 52 AS col2, ( 99 ) + + COUNT ( * ) + MIN ( DISTINCT - 84 ) * - + 24 AS col2
----
52
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL - + MAX( DISTINCT - COALESCE ( - - 42, - 7, - 93 ) ) * 36 * - - 91 + + + 85
----
137677

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - + MAX ( DISTINCT - COALESCE ( - - 42, - 7, - 93 ) ) * 36 * - - 91 + + + 85
----
137677

query I rowsort
SELECT + 27 * + + 86 + - 55 AS col1
----
2267

onlyif mysql # aggregate syntax: 
query II rowsort label-1585
SELECT ALL + 55 AS col0, 14 - 81 + + COUNT( ALL + + 39 )
----
55
-66

skipif mysql # not compatible
query II rowsort label-1585
SELECT ALL + 55 AS col0, 14 - 81 + + COUNT ( ALL + + 39 )
----
55
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1586
SELECT DISTINCT 22 AS col0, MIN( ALL 2 )
----
22
2

skipif mysql # not compatible
query II rowsort label-1586
SELECT DISTINCT 22 AS col0, MIN ( ALL 2 )
----
22
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL MAX( 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL MAX ( 35 ) AS col0
----
35

query I rowsort
SELECT ALL - 99 * - 15 col2
----
1485

query II rowsort
SELECT - ( - 14 ) AS col2, - CASE + NULLIF ( - ( - 17 ), - 14 * - + 66 ) WHEN + AVG ( + 43 ) THEN 52 WHEN 64 THEN 82 ELSE - 96 END
----
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT DISTINCT + - 55 * - + NULLIF ( - 57, 77 + 43 ) * - - ( COUNT( * ) ) * + 40 + - + 6 * + NULLIF ( ( 66 ), - 82 / - ( + 90 ) ) * 9
----
-128964

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT + - 55 * - + NULLIF ( - 57, 77 + 43 ) * - - ( COUNT ( * ) ) * + 40 + - + 6 * + NULLIF ( ( 66 ), - 82 / - ( + 90 ) ) * 9
----
-128964

query I rowsort
SELECT ALL - - 92 + + 9
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1593
SELECT + 86 + COUNT( * ) DIV 17
----
86

skipif mysql # not compatible
query I rowsort label-1593
SELECT + 86 + COUNT ( * ) / 17
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1594
SELECT 26 DIV - + CAST( + 15 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1594
SELECT 26 / - + CAST ( + 15 AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT 2 * + ( 51 )
----
102

query II rowsort
SELECT ALL - 73 * + - 14 AS col0, - 25 AS col1
----
1022
-25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT ALL - NULLIF ( 31, - + CAST( NULL AS SIGNED ) ) + + + 27
----
-4

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - NULLIF ( 31, - + CAST ( NULL AS INTEGER ) ) + + + 27
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT ALL + 73 DIV - 70 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL + 73 / - 70 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1600
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 87 / - ( MAX( + 69 ) ) * + 75 - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 87 / - ( MAX ( + 69 ) ) * + 75 - 52
----
NULL

query I rowsort
SELECT 1 + 29
----
30

query I rowsort
SELECT 37 * + 96 AS col0
----
3552

query I rowsort
SELECT ALL - 28 + 9 + - 97 + + + 93 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1604
SELECT DISTINCT - CAST( + + 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT - CAST ( + + 56 AS INTEGER )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-1605
SELECT 65 * + COUNT( * ) - - + COALESCE ( - 87, - 50 ), - 45 AS col0
----
-22
-45

skipif mysql # not compatible
query II rowsort label-1605
SELECT 65 * + COUNT ( * ) - - + COALESCE ( - 87, - 50 ), - 45 AS col0
----
-22
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT DISTINCT - 11 * - 20 * COUNT( * ) AS col0
----
220

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - 11 * - 20 * COUNT ( * ) AS col0
----
220

query I rowsort
SELECT 46 + + 42 + 41 + - 53 * + 55 - - - 22 + ( - + 97 ) AS col1
----
-2905

query I rowsort
SELECT ALL 54 - - + 64
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT DISTINCT + CAST( - - 78 AS SIGNED ) - - - NULLIF ( 57, MIN( DISTINCT - 93 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT + CAST ( - - 78 AS INTEGER ) - - - NULLIF ( 57, MIN ( DISTINCT - 93 ) ) AS col1
----
21

query II rowsort
SELECT + ( - 58 ) AS col1, 20 + - NULLIF ( 34, + 95 + - 30 + + 58 ) AS col2
----
-58
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT ALL - 54 DIV + - 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - 54 / + - 53 AS col1
----
1

query I rowsort
SELECT + + 8 * - 94 - + - 40 + + 6
----
-706

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1613
SELECT + 45 DIV - 6 AS col1, NULLIF ( + - MIN( + 90 ), + - ( + + 41 ) ) * + 9 + 77
----
-7
-733

skipif mysql # not compatible
query II rowsort label-1613
SELECT + 45 / - 6 AS col1, NULLIF ( + - MIN ( + 90 ), + - ( + + 41 ) ) * + 9 + 77
----
-7
-733

query I rowsort
SELECT - ( - 10 ) * - 8 * + 14 + + - 97 * + 29 AS col1
----
-3933

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1615
SELECT DISTINCT + COUNT( * ) DIV - 35 + 86 AS col0, + 42 AS col1
----
86
42

skipif mysql # not compatible
query II rowsort label-1615
SELECT DISTINCT + COUNT ( * ) / - 35 + 86 AS col0, + 42 AS col1
----
86
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL 41 * + CAST( COUNT( * ) AS SIGNED ) * 61 * - 70
----
-175070

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL 41 * + CAST ( COUNT ( * ) AS INTEGER ) * 61 * - 70
----
-175070

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL - - CASE + + 85 WHEN MAX( DISTINCT - 39 ) * + 8 * 75 * + 20 / + 63 + - 93 THEN + 49 ELSE - 38 END
----
-38

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL - - CASE + + 85 WHEN MAX ( DISTINCT - 39 ) * + 8 * 75 * + 20 / + 63 + - 93 THEN + 49 ELSE - 38 END
----
-38

query I rowsort
SELECT 13 + - 41 * NULLIF ( - 99, 79 ) + 78 AS col2
----
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT MAX( ALL + COALESCE ( + 33, 49, + 92 + 0 * - 86 ) )
----
33

skipif mysql # not compatible
query I rowsort label-1620
SELECT MAX ( ALL + COALESCE ( + 33, 49, + 92 + 0 * - 86 ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT 72 + - MAX( + 90 )
----
-18

skipif mysql # not compatible
query I rowsort label-1621
SELECT 72 + - MAX ( + 90 )
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT ALL - COUNT( * ) + - 55 * + 72 AS col2
----
-3961

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL - COUNT ( * ) + - 55 * + 72 AS col2
----
-3961

query I rowsort
SELECT + 0 + 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT - - CASE + - 91 WHEN + COALESCE ( - COUNT( + - 6 ), + + 20 + + 36 ) THEN 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1625
SELECT - - CASE + - 91 WHEN + COALESCE ( - COUNT ( + - 6 ), + + 20 + + 36 ) THEN 64 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - ( - - 14 ), - 4 AS col2
----
-14
-4

query I rowsort
SELECT 82 + - + 14
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT DISTINCT - COUNT( * ) + + - NULLIF ( - 90, 98 ) * - 60 AS col2
----
-5401

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT - COUNT ( * ) + + - NULLIF ( - 90, 98 ) * - 60 AS col2
----
-5401

query I rowsort
SELECT COALESCE ( + 11, + 23 ) + + 40 AS col1
----
51

query II rowsort
SELECT ALL 62 + + 73 - + 90 AS col0, 84 AS col2
----
45
84

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

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

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

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL - COUNT ( * ) + + + 3 + COUNT ( DISTINCT + 55 ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT NULLIF ( 17, + 89 ) DIV 40 col1
----
0

skipif mysql # not compatible
query I rowsort label-1633
SELECT NULLIF ( 17, + 89 ) / 40 col1
----
0

query I rowsort
SELECT 37 + + 65
----
102

query I rowsort
SELECT 17 + + + 78 AS col1
----
95

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

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

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

query I rowsort
SELECT 27 + - + 31 AS col0
----
-4

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

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

query II rowsort
SELECT ALL 31 AS col2, 22 AS col1
----
31
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT 13, - ( - 34 ) * + COUNT( * ) * CASE 6 WHEN + 20 * 49 THEN NULL WHEN - COUNT( * ) THEN 29 * - 21 END AS col1
----
13
NULL

skipif mysql # not compatible
query II rowsort label-1641
SELECT 13, - ( - 34 ) * + COUNT ( * ) * CASE 6 WHEN + 20 * 49 THEN NULL WHEN - COUNT ( * ) THEN 29 * - 21 END AS col1
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT DISTINCT MAX( ALL + - ( 24 ) ) * - 91 + - 48 - + 30 AS col2
----
2106

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT MAX ( ALL + - ( 24 ) ) * - 91 + - 48 - + 30 AS col2
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL + MAX( + 17 ) * - + 29 + + ( + + 57 ) AS col1
----
-436

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL + MAX ( + 17 ) * - + 29 + + ( + + 57 ) AS col1
----
-436

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT + 64 * + 95 + + COUNT( * ) col2
----
6081

skipif mysql # not compatible
query I rowsort label-1644
SELECT + 64 * + 95 + + COUNT ( * ) col2
----
6081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1645
SELECT - - COUNT( DISTINCT + 47 ) * - 25, ( + 65 ) - + - 77 + + + CASE + 61 WHEN - 89 + 10 THEN NULL ELSE - 79 END * COUNT( * ) * - ( CAST( NULL AS SIGNED ) ) AS col0
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-1645
SELECT - - COUNT ( DISTINCT + 47 ) * - 25, ( + 65 ) - + - 77 + + + CASE + 61 WHEN - 89 + 10 THEN NULL ELSE - 79 END * COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
-25
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1646
SELECT - 26 / + + 43 * + CASE - 89 WHEN - - CAST( + COUNT( * ) AS SIGNED ) THEN 45 + - + CAST( NULL AS SIGNED ) END + 30 + - NULLIF ( 73, + AVG ( ALL - 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT - 26 / + + 43 * + CASE - 89 WHEN - - CAST ( + COUNT ( * ) AS INTEGER ) THEN 45 + - + CAST ( NULL AS INTEGER ) END + 30 + - NULLIF ( 73, + AVG ( ALL - 36 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1647
SELECT + ( + - CASE + + 28 WHEN 91 THEN NULL WHEN + COALESCE ( + CASE + NULLIF ( CAST( NULL AS SIGNED ), + + ( + COUNT( * ) ) ) WHEN 30 + ( - 89 ) * COUNT( * ) THEN + 45 WHEN 26 * 69 + + ( 88 ) THEN NULL ELSE NULL END, - 43 * COUNT( * ), 32 + - 72 * 21 ) THEN 99 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT + ( + - CASE + + 28 WHEN 91 THEN NULL WHEN + COALESCE ( + CASE + NULLIF ( CAST ( NULL AS INTEGER ), + + ( + COUNT ( * ) ) ) WHEN 30 + ( - 89 ) * COUNT ( * ) THEN + 45 WHEN 26 * 69 + + ( 88 ) THEN NULL ELSE NULL END, - 43 * COUNT ( * ), 32 + - 72 * 21 ) THEN 99 END )
----
NULL

query I rowsort
SELECT ALL 12 * - 38 AS col2
----
-456

onlyif mysql # aggregate syntax: 
query II rowsort label-1649
SELECT ALL + + 35, - 26 * - + 73 + - COUNT( * ) * SUM( DISTINCT + NULLIF ( + 32, 53 ) ) AS col2
----
35
1866

skipif mysql # not compatible
query II rowsort label-1649
SELECT ALL + + 35, - 26 * - + 73 + - COUNT ( * ) * SUM ( DISTINCT + NULLIF ( + 32, 53 ) ) AS col2
----
35
1866

query I rowsort
SELECT ALL + - 13 * + 61
----
-793

onlyif mysql # aggregate syntax: 
query II rowsort label-1651
SELECT - + COUNT( * ) * MIN( - + 99 ) AS col1, - 96
----
99
-96

skipif mysql # not compatible
query II rowsort label-1651
SELECT - + COUNT ( * ) * MIN ( - + 99 ) AS col1, - 96
----
99
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1652
SELECT - 96 * + - 72 - + + ( - CAST( - + 9 AS SIGNED ) ) + + - 40 col1
----
6863

skipif mysql # not compatible
query I rowsort label-1652
SELECT - 96 * + - 72 - + + ( - CAST ( - + 9 AS INTEGER ) ) + + - 40 col1
----
6863

query I rowsort
SELECT + - 46 + + 36 + - 40 AS col2
----
-50

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

query I rowsort
SELECT DISTINCT + + 71 + - 3 col2
----
68

query I rowsort
SELECT + NULLIF ( - 97, - + 84 ) - + 69 AS col2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT - MIN( + 74 ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-1657
SELECT - MIN ( + 74 ) col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1658
SELECT ALL NULLIF ( - 94, SUM( DISTINCT + 39 ) + + + 85 ) + + + 12 - - 0 + - NULLIF ( - ( + + 29 ), COALESCE ( - 37, - CAST( - 67 AS DECIMAL ) * - 78 + 31 ) ) * 72 * 3 AS col2
----
6182

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL NULLIF ( - 94, SUM ( DISTINCT + 39 ) + + + 85 ) + + + 12 - - 0 + - NULLIF ( - ( + + 29 ), COALESCE ( - 37, - CAST ( - 67 AS REAL ) * - 78 + 31 ) ) * 72 * 3 AS col2
----
6182

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT + 50 + + ( + - COUNT( DISTINCT - 2 ) ) * + - 78 * - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-1659
SELECT + 50 + + ( + - COUNT ( DISTINCT - 2 ) ) * + - 78 * - COUNT ( * )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1660
SELECT + 9 * MAX( ALL + 29 ) * - CAST( NULL AS SIGNED ) + + 21 * - COUNT( * ) * - 52 * - - 93 - 84 * + 4 / + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT + 9 * MAX ( ALL + 29 ) * - CAST ( NULL AS INTEGER ) + + 21 * - COUNT ( * ) * - 52 * - - 93 - 84 * + 4 / + 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT + 26 + - COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1661
SELECT + 26 + - COUNT ( * ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL NULLIF ( + NULLIF ( - 26, 43 + - - 85 / 47 * - 89 ), + COUNT( * ) ) + - - 2 + - + NULLIF ( + - 67, 55 )
----
43

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL NULLIF ( + NULLIF ( - 26, 43 + - - 85 / 47 * - 89 ), + COUNT ( * ) ) + - - 2 + - + NULLIF ( + - 67, 55 )
----
43

query I rowsort
SELECT - NULLIF ( + 95, 87 ) col2
----
-95

query I rowsort
SELECT - NULLIF ( + 68, 15 )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1665
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - ( - - 39 ) + - 99 * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - ( - - 39 ) + - 99 * 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1666
SELECT + NULLIF ( - 64, + ( 64 ) ) * 42 + - 46 + + 74 DIV COUNT( * ) * + - 98, COUNT( * ) * + 81 col0
----
-9986
81

skipif mysql # not compatible
query II rowsort label-1666
SELECT + NULLIF ( - 64, + ( 64 ) ) * 42 + - 46 + + 74 / COUNT ( * ) * + - 98, COUNT ( * ) * + 81 col0
----
-9986
81

query I rowsort
SELECT ALL + 38 * - - 92 AS col0
----
3496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1668
SELECT + 7 + 30 + ( - - 43 ) + 65 + + ( - + 30 ) + - COALESCE ( + 17, COUNT( * ) DIV CAST( NULL AS SIGNED ) + - 53, 90 * + COUNT( * ) + 70 ) * + COUNT( * ) * + ( - COUNT( * ) + 26 * - COALESCE ( - 31, - 88 + - 89 ) ) * 68
----
-930465

skipif mysql # not compatible
query I rowsort label-1668
SELECT + 7 + 30 + ( - - 43 ) + 65 + + ( - + 30 ) + - COALESCE ( + 17, COUNT ( * ) / CAST ( NULL AS INTEGER ) + - 53, 90 * + COUNT ( * ) + 70 ) * + COUNT ( * ) * + ( - COUNT ( * ) + 26 * - COALESCE ( - 31, - 88 + - 89 ) ) * 68
----
-930465

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT ALL + 39 * + COUNT( * ) * - 22 AS col2
----
-858

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + 39 * + COUNT ( * ) * - 22 AS col2
----
-858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT 2 * - COUNT( DISTINCT + 2 ) - CAST( 21 AS SIGNED ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1670
SELECT 2 * - COUNT ( DISTINCT + 2 ) - CAST ( 21 AS INTEGER ) AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1671
SELECT - 6 DIV - COUNT( * ) AS col0, - COALESCE ( + + 72, - 55 + - 53 )
----
6
-72

skipif mysql # not compatible
query II rowsort label-1671
SELECT - 6 / - COUNT ( * ) AS col0, - COALESCE ( + + 72, - 55 + - 53 )
----
6
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT + COUNT( * ) * COUNT( * ) - - 40 * + 0 + 12
----
13

skipif mysql # not compatible
query I rowsort label-1672
SELECT + COUNT ( * ) * COUNT ( * ) - - 40 * + 0 + 12
----
13

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1674
SELECT DISTINCT + + COALESCE ( - 75, + ( CAST( NULL AS SIGNED ) ) ) AS col2, 89 * 29 + ( + 70 )
----
-75
2651

skipif mysql # not compatible
query II rowsort label-1674
SELECT DISTINCT + + COALESCE ( - 75, + ( CAST ( NULL AS INTEGER ) ) ) AS col2, 89 * 29 + ( + 70 )
----
-75
2651

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT + 33 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-1676
SELECT + 33 / + 88
----
0

query I rowsort
SELECT + + 97 + - 45 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT - 94 * - + 96 + ( - COUNT( * ) ) * + ( + - 6 ) - 55
----
8975

skipif mysql # not compatible
query I rowsort label-1678
SELECT - 94 * - + 96 + ( - COUNT ( * ) ) * + ( + - 6 ) - 55
----
8975

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + + 70 * COUNT( * ) + - ( + - 66 ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-1680
SELECT + + 70 * COUNT ( * ) + - ( + - 66 ) AS col1
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT ALL + 20 * + - CASE MIN( + 57 ) WHEN - CAST( NULL AS SIGNED ) * - + 64 * 6 + 4 + SUM( ALL + + 40 ) / 95 + COUNT( * ) - 93 THEN - - CASE WHEN NULL IS NULL THEN - COALESCE ( + 40, 54 ) ELSE 80 * + 90 END ELSE ( - 54 ) * ( CAST( NULL AS SIGNED ) ) END * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL + 20 * + - CASE MIN ( + 57 ) WHEN - CAST ( NULL AS INTEGER ) * - + 64 * 6 + 4 + SUM ( ALL + + 40 ) / 95 + COUNT ( * ) - 93 THEN - - CASE WHEN NULL IS NULL THEN - COALESCE ( + 40, 54 ) ELSE 80 * + 90 END ELSE ( - 54 ) * ( CAST ( NULL AS INTEGER ) ) END * 46
----
NULL

query I rowsort
SELECT - - 14 * + 66 col2
----
924

query I rowsort
SELECT ALL + 77 * + 20 + ( - ( + 6 ) )
----
1534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1684
SELECT - CASE + - CAST( + 92 AS SIGNED ) WHEN - 79 * - 70 - - + MIN( ALL 17 ) * - 50 + + - 61 - + 33 / - + 19 THEN NULL ELSE + COUNT( + 91 ) END * + + 70 + 88 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1684
SELECT - CASE + - CAST ( + 92 AS INTEGER ) WHEN - 79 * - 70 - - + MIN ( ALL 17 ) * - 50 + + - 61 - + 33 / - + 19 THEN NULL ELSE + COUNT ( + 91 ) END * + + 70 + 88 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT COUNT( * ) * - + 81 + 57
----
-24

skipif mysql # not compatible
query I rowsort label-1685
SELECT COUNT ( * ) * - + 81 + 57
----
-24

query I rowsort
SELECT - 91 + - - 23 - - + 1 * - 88 + + + 42 AS col1
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1687
SELECT - 49 * - SUM( DISTINCT 96 ), + 32 + - COALESCE ( + COUNT( * ), CAST( NULL AS SIGNED ) ) * + 52 + + - 93 + + 68 + + + 91 * - 85 AS col0
----
4704
-7780

skipif mysql # not compatible
query II rowsort label-1687
SELECT - 49 * - SUM ( DISTINCT 96 ), + 32 + - COALESCE ( + COUNT ( * ), CAST ( NULL AS INTEGER ) ) * + 52 + + - 93 + + 68 + + + 91 * - 85 AS col0
----
4704
-7780

onlyif mysql # DIV for integer division: 
query I rowsort label-1688
SELECT ALL 61 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL 61 / 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT DISTINCT - 52 - + COALESCE ( - - COUNT( * ), + + 65, + + 27 ) - - + 54
----
1

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT - 52 - + COALESCE ( - - COUNT ( * ), + + 65, + + 27 ) - - + 54
----
1

query I rowsort
SELECT 62 + 88
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-1691
SELECT DISTINCT 60 * + MIN( ALL + 52 ) AS col0, - 38 AS col2
----
3120
-38

skipif mysql # not compatible
query II rowsort label-1691
SELECT DISTINCT 60 * + MIN ( ALL + 52 ) AS col0, - 38 AS col2
----
3120
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT COUNT( * ) * ( + 13 ) * - NULLIF ( CASE - COUNT( * ) WHEN 84 THEN NULL ELSE - - CAST( NULL AS SIGNED ) + + 21 / 82 END, 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT COUNT ( * ) * ( + 13 ) * - NULLIF ( CASE - COUNT ( * ) WHEN 84 THEN NULL ELSE - - CAST ( NULL AS INTEGER ) + + 21 / 82 END, 39 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1693
SELECT ( - 36 ) + 9 AS col0, - 23 DIV + 49 * - + 38 AS col1
----
-27
0

skipif mysql # not compatible
query II rowsort label-1693
SELECT ( - 36 ) + 9 AS col0, - 23 / + 49 * - + 38 AS col1
----
-27
0

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

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

query II rowsort
SELECT ALL - 42 AS col0, 11 * 2 * - + 73 AS col2
----
-42
-1606

query I rowsort
SELECT ALL + + 50 + + COALESCE ( + 95, 37 )
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT + COALESCE ( + - COUNT( * ), + 87 * 10, + - 15 / + 35 - 15, + + 22 * + + 9 / + - COUNT( * ) + + 39 * 14 ) + - AVG ( - + CASE + 33 WHEN 44 + - 85 THEN 72 ELSE NULL END ) + - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), + 87 * 10, + - 15 / + 35 - 15, + + 22 * + + 9 / + - COUNT ( * ) + + 39 * 14 ) + - AVG ( - + CASE + 33 WHEN 44 + - 85 THEN 72 ELSE NULL END ) + - 85 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1698
SELECT 78 + - + 95 + - 77 AS col2, 23 * - CAST( - COUNT( + 81 ) AS SIGNED ) + + 45 * + - 47
----
-94
-2092

skipif mysql # not compatible
query II rowsort label-1698
SELECT 78 + - + 95 + - 77 AS col2, 23 * - CAST ( - COUNT ( + 81 ) AS INTEGER ) + + 45 * + - 47
----
-94
-2092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1699
SELECT - 67 * MAX( - + 14 ) DIV - + COUNT( * ) + 42 + - COUNT( * ) + COUNT( * ) AS col1
----
-896

skipif mysql # not compatible
query I rowsort label-1699
SELECT - 67 * MAX ( - + 14 ) / - + COUNT ( * ) + 42 + - COUNT ( * ) + COUNT ( * ) AS col1
----
-896

query I rowsort
SELECT ALL - - NULLIF ( 32, - 65 - - - 96 * 48 ) * - 13
----
-416

query I rowsort
SELECT ( - 34 ) + - 75 + + 65 AS col2
----
-44

query I rowsort
SELECT DISTINCT + 38 + - 91
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1703
SELECT ALL - 80 + - 99 * - - 1 * - + 66 + - - 10 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - 80 + - 99 * - - 1 * - + 66 + - - 10 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 58 + - ( + + 51 ) AS col0, + 77
----
7
77

query I rowsort
SELECT ALL - - 71 + + 75 AS col0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT ALL - - 63 AS col0, COUNT( 73 ) * SUM( ALL + 61 ) * - - 61 + 53 * - + 20 + ( 45 ) AS col0
----
63
2706

skipif mysql # not compatible
query II rowsort label-1706
SELECT ALL - - 63 AS col0, COUNT ( 73 ) * SUM ( ALL + 61 ) * - - 61 + 53 * - + 20 + ( 45 ) AS col0
----
63
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT DISTINCT - + CASE MIN( - + 14 ) WHEN - 7 + + - SUM( ALL 5 ) + 76 * + 97 * - - 23 THEN - 98 WHEN - 69 THEN + 0 WHEN COUNT( * ) THEN + + COUNT( * ) / - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT - + CASE MIN ( - + 14 ) WHEN - 7 + + - SUM ( ALL 5 ) + 76 * + 97 * - - 23 THEN - 98 WHEN - 69 THEN + 0 WHEN COUNT ( * ) THEN + + COUNT ( * ) / - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1708
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) - CASE - CAST( 89 AS SIGNED ) WHEN 70 THEN NULL ELSE + - 36 * - 50 END * + MAX( 83 ) * - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT - - CAST ( NULL AS REAL ) - CASE - CAST ( 89 AS INTEGER ) WHEN 70 THEN NULL ELSE + - 36 * - 50 END * + MAX ( 83 ) * - 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT SUM( + + 85 ) * - - COUNT( * ) - - COALESCE ( + 74, + 37 - + COUNT( * ), - + 21 ) col0
----
159

skipif mysql # not compatible
query I rowsort label-1709
SELECT SUM ( + + 85 ) * - - COUNT ( * ) - - COALESCE ( + 74, + 37 - + COUNT ( * ), - + 21 ) col0
----
159

query I rowsort
SELECT - 30 + + 5
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ALL - ( + 52 ) - - SUM( + 13 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - ( + 52 ) - - SUM ( + 13 ) AS col0
----
-39

query I rowsort
SELECT 21 * - + 50 AS col0
----
-1050

query II rowsort
SELECT + 8 AS col1, 35 AS col1
----
8
35

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

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

query II rowsort
SELECT 16 AS col2, - 86 + + 81 + - - 27 AS col1
----
16
22

query I rowsort
SELECT 65 * + 72 AS col1
----
4680

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

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

query I rowsort
SELECT ALL - 38 * - - 52 AS col1
----
-1976

onlyif mysql # aggregate syntax: 
query II rowsort label-1719
SELECT 53 col0, + 54 * - COUNT( * ) + - 67 AS col2
----
53
-121

skipif mysql # not compatible
query II rowsort label-1719
SELECT 53 col0, + 54 * - COUNT ( * ) + - 67 AS col2
----
53
-121

query II rowsort
SELECT 23 AS col1, 26
----
23
26

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

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

query II rowsort
SELECT 91 * - - 78 AS col0, 64
----
7098
64

query I rowsort
SELECT DISTINCT + 93 + + + 3
----
96

query II rowsort
SELECT ALL 42 AS col2, + COALESCE ( + + 34, 70 ) AS col2
----
42
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL COUNT( * ) + + - 76 * + + 32
----
-2431

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL COUNT ( * ) + + - 76 * + + 32
----
-2431

query II rowsort
SELECT 40 AS col0, 75
----
40
75

query I rowsort
SELECT ALL + 76 + 49 - 55
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT 81 DIV 77
----
1

skipif mysql # not compatible
query I rowsort label-1728
SELECT 81 / 77
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL 41 + - SUM( 40 )
----
1

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL 41 + - SUM ( 40 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1730
SELECT - CAST( COALESCE ( - - 58, - 1 ) AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-1730
SELECT - CAST ( COALESCE ( - - 58, - 1 ) AS INTEGER )
----
-58

query I rowsort
SELECT ALL - 36 + + 50
----
14

query II rowsort
SELECT - 47 AS col2, + 28 * - - 73
----
-47
2044

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT 3 + - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1733
SELECT 3 + - COUNT ( * ) AS col2
----
2

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

skipif mysql # not compatible
query I rowsort label-1734
SELECT COUNT ( * ) / + + ( + 73 ) col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ( + 84 ) * - 92 * COUNT( * ) + - 22 + - 96 + + COUNT( * )
----
-7845

skipif mysql # not compatible
query I rowsort label-1736
SELECT ( + 84 ) * - 92 * COUNT ( * ) + - 22 + - 96 + + COUNT ( * )
----
-7845

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - 19 + - ( NULLIF ( - COUNT( * ), - 25 + - ( - + 68 ) * - 30 + + 43 * - - 19 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-1737
SELECT - 19 + - ( NULLIF ( - COUNT ( * ), - 25 + - ( - + 68 ) * - 30 + + 43 * - - 19 ) )
----
-18

query I rowsort
SELECT 93 * + 38 AS col2
----
3534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1739
SELECT 64 * - 91 + CAST( NULL AS SIGNED ) - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT 64 * - 91 + CAST ( NULL AS INTEGER ) - - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT DISTINCT - COUNT( * ) * + COALESCE ( NULLIF ( COUNT( * ), 28 ), 87, + 86 ) + 1
----
0

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT - COUNT ( * ) * + COALESCE ( NULLIF ( COUNT ( * ), 28 ), 87, + 86 ) + 1
----
0

query II rowsort
SELECT + - 57 col2, + 35
----
-57
35

query I rowsort
SELECT DISTINCT - + 29 AS col2
----
-29

query I rowsort
SELECT + 69 + - 85 + 25
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ALL - 33 * - + 2 - + 65 + - 19 + - COUNT( + - 60 ) - + CASE + 60 WHEN - 85 THEN NULL WHEN COUNT( * ) - + 16 THEN 99 ELSE NULL END - + 6 + + 28 * + 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL - 33 * - + 2 - + 65 + - 19 + - COUNT ( + - 60 ) - + CASE + 60 WHEN - 85 THEN NULL WHEN COUNT ( * ) - + 16 THEN 99 ELSE NULL END - + 6 + + 28 * + 80 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT ALL - - 52 AS col1, + CASE - + 58 WHEN + 76 THEN NULL WHEN - - 42 THEN + COUNT( * ) END
----
52
NULL

skipif mysql # not compatible
query II rowsort label-1745
SELECT ALL - - 52 AS col1, + CASE - + 58 WHEN + 76 THEN NULL WHEN - - 42 THEN + COUNT ( * ) END
----
52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT - 35 + 18 - - 50 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT - 35 + 18 - - 50 * CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT + SUM( - 86 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-1749
SELECT + SUM ( - 86 ) AS col0
----
-86

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

query I rowsort
SELECT ALL - ( - 41 ) * - 33 col2
----
-1353

onlyif mysql # aggregate syntax: 
query II rowsort label-1752
SELECT MIN( + - 56 ) col0, 25 + + MIN( + 16 ) + 39 + + 33 AS col2
----
-56
113

skipif mysql # not compatible
query II rowsort label-1752
SELECT MIN ( + - 56 ) col0, 25 + + MIN ( + 16 ) + 39 + + 33 AS col2
----
-56
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1753
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), + 93 - - + 68 - + CAST( + - COUNT( * ) AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), + 93 - - + 68 - + CAST ( + - COUNT ( * ) AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1754
SELECT + 26 + - SUM( ALL + 94 ) DIV - 42 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1754
SELECT + 26 + - SUM ( ALL + 94 ) / - 42 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + COUNT( * ) * - NULLIF ( + + 14, - + COALESCE ( - COUNT( * ), + 3 / COALESCE ( - + 76, + 39 / + 75 ) * - 43 * NULLIF ( - 92, 67 ) - - + 59 + + 76 * + COUNT( * ) ) + 73 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1755
SELECT + COUNT ( * ) * - NULLIF ( + + 14, - + COALESCE ( - COUNT ( * ), + 3 / COALESCE ( - + 76, + 39 / + 75 ) * - 43 * NULLIF ( - 92, 67 ) - - + 59 + + 76 * + COUNT ( * ) ) + 73 ) AS col2
----
-14

query I rowsort
SELECT - 20 * 94
----
-1880

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT + 31 + CASE - - 29 WHEN + 17 + + 42 THEN NULL WHEN - - 19 * + - CASE - NULLIF ( - 32, COUNT( * ) + - - 69 ) WHEN + + 72 THEN + 3 ELSE + 73 - - 18 + 58 + + 91 END - + 96 THEN 46 + + COALESCE ( + ( 49 ), 63 * CAST( - 28 AS SIGNED ) ) * - 44 WHEN 29 THEN 37 END AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1758
SELECT + 31 + CASE - - 29 WHEN + 17 + + 42 THEN NULL WHEN - - 19 * + - CASE - NULLIF ( - 32, COUNT ( * ) + - - 69 ) WHEN + + 72 THEN + 3 ELSE + 73 - - 18 + 58 + + 91 END - + 96 THEN 46 + + COALESCE ( + ( 49 ), 63 * CAST ( - 28 AS INTEGER ) ) * - 44 WHEN 29 THEN 37 END AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT - 55 * + + COUNT( * ) + + + MAX( ALL + 43 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1759
SELECT - 55 * + + COUNT ( * ) + + + MAX ( ALL + 43 ) AS col1
----
-12

query I rowsort
SELECT - NULLIF ( + 6, + 66 * - + 46 - + + 13 ) * 26
----
-156

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

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

skipif mysql # not compatible
query I rowsort label-1762
SELECT 7 * - COUNT ( * ) + + 73 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1763
SELECT ALL + 80 + 96 + + 24 + COUNT( * ) + + 91 + 41 * + + 84 / - ( + ( - COALESCE ( - 44, + COUNT( * ), ( + 27 ) ) ) ) / 14 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL + 80 + 96 + + 24 + COUNT ( * ) + + 91 + 41 * + + 84 / - ( + ( - COALESCE ( - 44, + COUNT ( * ), ( + 27 ) ) ) ) / 14 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT - COUNT( 5 ) + - - 44 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1764
SELECT - COUNT ( 5 ) + - - 44 AS col0
----
43

query I rowsort
SELECT ALL - 7 + 14 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1766
SELECT - CAST( NULL AS SIGNED ) + CASE + 61 WHEN CAST( NULL AS SIGNED ) + - - 83 THEN NULL WHEN - - 97 THEN - 18 / + 64 * - + 96 / COALESCE ( - CASE + + 3 WHEN 49 THEN + - MIN( + + 90 ) * 21 + + AVG ( DISTINCT - 54 ) + - COUNT( * ) * ( 81 - + 28 ) + - 81 * + ( 22 * 85 ) WHEN 53 + - CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN 15 - 4 END, 92 + - 85 * 89 ) WHEN - 28 * - NULLIF ( - COUNT( * ) * + 19, 68 + 18 ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT - CAST ( NULL AS INTEGER ) + CASE + 61 WHEN CAST ( NULL AS INTEGER ) + - - 83 THEN NULL WHEN - - 97 THEN - 18 / + 64 * - + 96 / COALESCE ( - CASE + + 3 WHEN 49 THEN + - MIN ( + + 90 ) * 21 + + AVG ( DISTINCT - 54 ) + - COUNT ( * ) * ( 81 - + 28 ) + - 81 * + ( 22 * 85 ) WHEN 53 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN 15 - 4 END, 92 + - 85 * 89 ) WHEN - 28 * - NULLIF ( - COUNT ( * ) * + 19, 68 + 18 ) THEN NULL ELSE NULL END col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + COUNT( * ) * - 19 * 77 AS col0
----
-1463

skipif mysql # not compatible
query I rowsort label-1768
SELECT + COUNT ( * ) * - 19 * 77 AS col0
----
-1463

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT - NULLIF ( - + 17, 45 * + 28 ) + + + COUNT( * ) + - - 89 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-1769
SELECT - NULLIF ( - + 17, 45 * + 28 ) + + + COUNT ( * ) + - - 89 AS col0
----
107

query I rowsort
SELECT - - 71 col2
----
71

query I rowsort
SELECT - - 79 + 0
----
79

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

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT + + 4 * - COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT - + COALESCE ( 2, - 1 + 57 ) + - 90
----
-92

query I rowsort
SELECT + - 29 + + ( + 96 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ALL - MIN( + - 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL - MIN ( + - 63 ) AS col1
----
63

query I rowsort
SELECT ALL - - 75 + + - 30 * COALESCE ( - + 86, + - ( 0 ), - 62 * - + 38 ) * CASE COALESCE ( 12, 76 * - 70 ) WHEN + 36 THEN NULL WHEN + ( - 4 ) THEN - 38 + - 81 * 66 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1777
SELECT DISTINCT CAST( NULLIF ( + COALESCE ( - - 85, - MIN( ALL 41 ), 44 ), - - MAX( - CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) + + 25 ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT CAST ( NULLIF ( + COALESCE ( - - 85, - MIN ( ALL 41 ), 44 ), - - MAX ( - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) + + 25 ) AS INTEGER )
----
85

query I rowsort
SELECT - 48 * - 73 * 84 * + - ( - CASE 41 WHEN + 4 + + 50 THEN NULL ELSE 60 END ) AS col2
----
17660160

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT ALL + 88 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL + 88 / 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1780
SELECT DISTINCT + 92 DIV COUNT( DISTINCT 52 ) DIV + 9 + + 58 + 42 * - 92 + + - 87 + - 44 * 87 * - - 82 * 67 - 91 * + 22 - + - 30, + 4 AS col2
----
-21036887
4

skipif mysql # not compatible
query II rowsort label-1780
SELECT DISTINCT + 92 / COUNT ( DISTINCT 52 ) / + 9 + + 58 + 42 * - 92 + + - 87 + - 44 * 87 * - - 82 * 67 - 91 * + 22 - + - 30, + 4 AS col2
----
-21036887
4

query I rowsort
SELECT - + 66 * - - 40 * - - 20 AS col2
----
-52800

query I rowsort
SELECT - 8 * 28 + 22 + + 5 AS col2
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL - COUNT( * ) * - ( - NULLIF ( ( + COALESCE ( 83, - ( - + ( - 18 ) ) - + 52 + + 95 ) ), - 61 * 3 ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL - COUNT ( * ) * - ( - NULLIF ( ( + COALESCE ( 83, - ( - + ( - 18 ) ) - + 52 + + 95 ) ), - 61 * 3 ) ) AS col0
----
-83

query I rowsort
SELECT ALL - 36 * 41 * 55 AS col0
----
-81180

query I rowsort
SELECT + NULLIF ( + 46, - - 97 * - 22 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT DISTINCT + CAST( + + MIN( ALL + 34 ) AS SIGNED ) * + - ( + - CASE + ( + 44 ) WHEN + ( 64 ) THEN + COUNT( * ) / COUNT( + 59 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT + CAST ( + + MIN ( ALL + 34 ) AS INTEGER ) * + - ( + - CASE + ( + 44 ) WHEN + ( 64 ) THEN + COUNT ( * ) / COUNT ( + 59 ) END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1787
SELECT + COUNT ( * ) * + 3 / + + 23
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT - 32 * + CAST( - + 98 AS SIGNED ) AS col1
----
3136

skipif mysql # not compatible
query I rowsort label-1788
SELECT - 32 * + CAST ( - + 98 AS INTEGER ) AS col1
----
3136

query I rowsort
SELECT + 88 * - - 82 + 1 * - 8 * + 49
----
6824

query I rowsort
SELECT NULLIF ( + 96, - 10 + + - ( - 12 ) * - 0 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT 11 * - 79 + 22 - 59 * COUNT( * )
----
-906

skipif mysql # not compatible
query I rowsort label-1791
SELECT 11 * - 79 + 22 - 59 * COUNT ( * )
----
-906

query II rowsort
SELECT ALL + 10 AS col1, 18
----
10
18

query I rowsort
SELECT + ( 31 ) + - 48 + 27 * - 57 * - 51 + 43 * + + 87
----
82213

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + COALESCE ( - 7, - 9 + + + COALESCE ( 92, - 98 + ( COUNT( * ) ) ), + - 26, - 55 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1794
SELECT + COALESCE ( - 7, - 9 + + + COALESCE ( 92, - 98 + ( COUNT ( * ) ) ), + - 26, - 55 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT ALL COUNT( * ) * 80 + + - 87 - + 39 + + 14 * - 56 * - MAX( + + 15 ) * + - MAX( DISTINCT ( - 7 ) ) * + + COUNT( * ) * + - 58 AS col0
----
-4774606

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL COUNT ( * ) * 80 + + - 87 - + 39 + + 14 * - 56 * - MAX ( + + 15 ) * + - MAX ( DISTINCT ( - 7 ) ) * + + COUNT ( * ) * + - 58 AS col0
----
-4774606

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1797
SELECT ALL + AVG ( ALL + 80 ) * COUNT( * ) + AVG ( CAST( NULL AS SIGNED ) ) + + + COUNT( * ) + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + AVG ( ALL + 80 ) * COUNT ( * ) + AVG ( CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) + 26 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT ALL 42 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL 42 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL CASE + 5 WHEN 36 / + - 48 THEN + + 76 / + - 37 * - CASE WHEN + 91 IS NULL THEN 83 * - ( 84 ) END ELSE - 48 END * 72 + - 93 + + + 60 / - CASE COUNT( * ) WHEN + 36 * - 17 THEN - ( 36 ) WHEN ( - 88 ) - - CASE AVG ( DISTINCT + 22 ) WHEN - 93 * 53 THEN NULL ELSE ( 95 ) END THEN NULL END * 28 + CASE ( 70 ) WHEN 97 + 22 THEN NULL ELSE 61 * + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL CASE + 5 WHEN 36 / + - 48 THEN + + 76 / + - 37 * - CASE WHEN + 91 IS NULL THEN 83 * - ( 84 ) END ELSE - 48 END * 72 + - 93 + + + 60 / - CASE COUNT ( * ) WHEN + 36 * - 17 THEN - ( 36 ) WHEN ( - 88 ) - - CASE AVG ( DISTINCT + 22 ) WHEN - 93 * 53 THEN NULL ELSE ( 95 ) END THEN NULL END * 28 + CASE ( 70 ) WHEN 97 + 22 THEN NULL ELSE 61 * + 30 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL NULLIF ( COUNT( * ), - - ( 54 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL NULLIF ( COUNT ( * ), - - ( 54 ) ) AS col1
----
1

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

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

query I rowsort
SELECT ALL 56 * - - 38 + - 76
----
2052

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1804
SELECT + ( + 9 ) DIV - 40 * - + COUNT( * ) + - + 61 + - 4 + 82 + + - COALESCE ( - 59, + 29 + 84 * + 82 ) + + 2 * + 88 AS col1
----
252

skipif mysql # not compatible
query I rowsort label-1804
SELECT + ( + 9 ) / - 40 * - + COUNT ( * ) + - + 61 + - 4 + 82 + + - COALESCE ( - 59, + 29 + 84 * + 82 ) + + 2 * + 88 AS col1
----
252

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

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

query II rowsort
SELECT DISTINCT 31 AS col0, - 53 + 42 AS col1
----
31
-11

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

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL 80 - - + COUNT ( * ) AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1808
SELECT ALL COALESCE ( 36, CAST( NULL AS SIGNED ), + + 92 DIV + + 3 * + + ( + 4 ) * - 33 )
----
36

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL COALESCE ( 36, CAST ( NULL AS INTEGER ), + + 92 / + + 3 * + + ( + 4 ) * - 33 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT - - MIN( DISTINCT + 53 ) * - 0 * - 61 * 26 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-1809
SELECT - - MIN ( DISTINCT + 53 ) * - 0 * - 61 * 26 + + 99
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT + + CAST( NULL AS SIGNED ) + 68 + + + 11 * + 62 * + 64 * + ( + CASE - + 59 WHEN + 53 THEN - - 53 + - - 45 END ) + ( - COUNT( * ) ) / + - 70 * 17 * + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT + + CAST ( NULL AS INTEGER ) + 68 + + + 11 * + 62 * + 64 * + ( + CASE - + 59 WHEN + 53 THEN - - 53 + - - 45 END ) + ( - COUNT ( * ) ) / + - 70 * 17 * + - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - CASE + 19 WHEN 31 THEN - COUNT( * ) * 10 + - 88 + 45 - + 31 + CASE + 48 WHEN - 48 THEN COUNT( * ) WHEN + 4 * + 60 THEN NULL END * - CASE + 84 WHEN - COUNT( + + 59 ) THEN - 51 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT - CASE + 19 WHEN 31 THEN - COUNT ( * ) * 10 + - 88 + 45 - + 31 + CASE + 48 WHEN - 48 THEN COUNT ( * ) WHEN + 4 * + 60 THEN NULL END * - CASE + 84 WHEN - COUNT ( + + 59 ) THEN - 51 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - + SUM( + - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-1812
SELECT - + SUM ( + - 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT - NULLIF ( + + SUM( ALL - + 82 ), - 32 ) * - 6
----
-492

skipif mysql # not compatible
query I rowsort label-1813
SELECT - NULLIF ( + + SUM ( ALL - + 82 ), - 32 ) * - 6
----
-492

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1815
SELECT - - COALESCE ( + 55, + MAX( ALL - 38 ) ) / + + ( 38 ) + - CAST( NULL AS SIGNED ) / + ( + CAST( - + COUNT( * ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT - - COALESCE ( + 55, + MAX ( ALL - 38 ) ) / + + ( 38 ) + - CAST ( NULL AS INTEGER ) / + ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 49 * + 0 AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT DISTINCT - - 9 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - - 9 / + 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1819
SELECT 27 * NULLIF ( - 26, ( - 51 ) * + CAST( - 6 AS SIGNED ) )
----
-702

skipif mysql # not compatible
query I rowsort label-1819
SELECT 27 * NULLIF ( - 26, ( - 51 ) * + CAST ( - 6 AS INTEGER ) )
----
-702

query I rowsort
SELECT ALL - NULLIF ( ( 79 ), + - 58 )
----
-79

query I rowsort
SELECT 36 * 15
----
540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1822
SELECT COALESCE ( 82, + COUNT( * ) ) DIV ( + 78 ) + - + NULLIF ( 96, - 0 + + + ( + - AVG ( DISTINCT + - 75 ) ) DIV COUNT( * ) + - 74 )
----
-95

skipif mysql # not compatible
query I rowsort label-1822
SELECT COALESCE ( 82, + COUNT ( * ) ) / ( + 78 ) + - + NULLIF ( 96, - 0 + + + ( + - AVG ( DISTINCT + - 75 ) ) / COUNT ( * ) + - 74 )
----
-95

query I rowsort
SELECT ALL - 79 + + 56 AS col0
----
-23

query I rowsort
SELECT DISTINCT + 34 * 18
----
612

query I rowsort
SELECT 61 + + 37 + ( - 23 ) * + 3
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT 30 + 59 + + ( + CASE - - 84 WHEN - + 68 + + CASE COALESCE ( MIN( ALL + + COALESCE ( ( + - 4 ), - 23 ) ), - 4 * + + 12, - - 4, 15 ) WHEN - + 53 + NULLIF ( + 9, + 91 + 48 * + COUNT( * ) ) THEN 73 WHEN 18 - 48 / 99 THEN 91 WHEN - ( 13 ) * - MIN( - 58 ) THEN 8 ELSE NULL END * 49 THEN + CASE 15 WHEN NULLIF ( 38, + 86 * 93 ) THEN 37 ELSE NULL END + COUNT( * ) WHEN ( + 84 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT 30 + 59 + + ( + CASE - - 84 WHEN - + 68 + + CASE COALESCE ( MIN ( ALL + + COALESCE ( ( + - 4 ), - 23 ) ), - 4 * + + 12, - - 4, 15 ) WHEN - + 53 + NULLIF ( + 9, + 91 + 48 * + COUNT ( * ) ) THEN 73 WHEN 18 - 48 / 99 THEN 91 WHEN - ( 13 ) * - MIN ( - 58 ) THEN 8 ELSE NULL END * 49 THEN + CASE 15 WHEN NULLIF ( 38, + 86 * 93 ) THEN 37 ELSE NULL END + COUNT ( * ) WHEN ( + 84 ) THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1827
SELECT DISTINCT COALESCE ( - COUNT( * ), + ( + 34 ) * + CAST( NULL AS SIGNED ) ) DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT COALESCE ( - COUNT ( * ), + ( + 34 ) * + CAST ( NULL AS INTEGER ) ) / + 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1828
SELECT 86 + + COUNT( * ) + - - 31 DIV 99 + 61 + + CAST( ( + - COUNT( - - ( 23 ) ) ) AS SIGNED ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-1828
SELECT 86 + + COUNT ( * ) + - - 31 / 99 + 61 + + CAST ( ( + - COUNT ( - - ( 23 ) ) ) AS INTEGER ) AS col1
----
147

query I rowsort
SELECT DISTINCT + 65 * + + 75
----
4875

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

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

query I rowsort
SELECT ALL 0 * 41 * + 61 + + 13 * + 41 AS col2
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT 1 + SUM( 28 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1832
SELECT 1 + SUM ( 28 ) AS col1
----
29

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

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

query I rowsort
SELECT - 88 * - 6 * 44
----
23232

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT - 58 + - COUNT( ALL 54 )
----
-59

skipif mysql # not compatible
query I rowsort label-1835
SELECT - 58 + - COUNT ( ALL 54 )
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1836
SELECT 78 DIV - + 30
----
-2

skipif mysql # not compatible
query I rowsort label-1836
SELECT 78 / - + 30
----
-2

query II rowsort
SELECT + 80 * - + 12, 23 AS col1
----
-960
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT MAX( - - 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1838
SELECT MAX ( - - 29 ) AS col1
----
29

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

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

query I rowsort
SELECT ALL - - ( 64 ) AS col2
----
64

query I rowsort
SELECT ALL - 20 * 49
----
-980

query I rowsort
SELECT 72 * - 30 AS col2
----
-2160

query II rowsort
SELECT 30 col2, - 87
----
30
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1844
SELECT ALL 67 * - MAX( ALL 75 ) AS col0, 89 DIV - COALESCE ( - 73, 89, 11 ) + - COUNT( * )
----
-5025
0

skipif mysql # not compatible
query II rowsort label-1844
SELECT ALL 67 * - MAX ( ALL 75 ) AS col0, 89 / - COALESCE ( - 73, 89, 11 ) + - COUNT ( * )
----
-5025
0

query I rowsort
SELECT ALL + 48 + - - 80
----
128

query I rowsort
SELECT ALL - 94 + 73 AS col0
----
-21

query I rowsort
SELECT ALL - 48 + - - 65
----
17

query I rowsort
SELECT ALL - NULLIF ( + 1, 10 + + 21 ) AS col0
----
-1

query I rowsort
SELECT + 42 * + 28 + 84 AS col0
----
1260

query I rowsort
SELECT 0 * + + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT 6 + + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1851
SELECT 6 + + COUNT ( * ) AS col0
----
7

query I rowsort
SELECT DISTINCT - 31 - 85 AS col0
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1853
SELECT ALL - 58 * + + CASE COUNT( * ) WHEN + 97 THEN - COUNT( * ) WHEN 11 - CASE - 85 WHEN COUNT( * ) * 0 * + CASE + COUNT( * ) WHEN + CASE COALESCE ( + 42, + 48 ) WHEN 5 THEN + 61 WHEN - 88 THEN NULL ELSE NULL END / COUNT( * ) / COUNT( DISTINCT 79 ) + - ( + NULLIF ( ( ( MIN( ALL 67 ) ) ), 82 * + CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN - 14 - - 18 END ) - 34 ) + + 14 THEN CASE - 45 WHEN - 74 / + 35 + - COUNT( * ) THEN + 74 END END - + 36 * - 35 THEN NULL WHEN + 4 THEN - COUNT( * ) WHEN 60 THEN NULL ELSE 38 END THEN + 34 + + 41 WHEN - NULLIF ( ( 14 ), 54 / - 28 + 62 * 40 ) THEN + 10 + 96 / ( - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - 58 * + + CASE COUNT ( * ) WHEN + 97 THEN - COUNT ( * ) WHEN 11 - CASE - 85 WHEN COUNT ( * ) * 0 * + CASE + COUNT ( * ) WHEN + CASE COALESCE ( + 42, + 48 ) WHEN 5 THEN + 61 WHEN - 88 THEN NULL ELSE NULL END / COUNT ( * ) / COUNT ( DISTINCT 79 ) + - ( + NULLIF ( ( ( MIN ( ALL 67 ) ) ), 82 * + CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN - 14 - - 18 END ) - 34 ) + + 14 THEN CASE - 45 WHEN - 74 / + 35 + - COUNT ( * ) THEN + 74 END END - + 36 * - 35 THEN NULL WHEN + 4 THEN - COUNT ( * ) WHEN 60 THEN NULL ELSE 38 END THEN + 34 + + 41 WHEN - NULLIF ( ( 14 ), 54 / - 28 + 62 * 40 ) THEN + 10 + 96 / ( - COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT DISTINCT - ( COALESCE ( - 14, + - 58 ) ) AS col2
----
14

query I rowsort
SELECT ALL - + 68 * + 12 + + - 34 AS col0
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT DISTINCT + 67 - + 68 + - 43 + - - 86 - COUNT( * ) col1
----
41

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT + 67 - + 68 + - 43 + - - 86 - COUNT ( * ) col1
----
41

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

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

query I rowsort
SELECT - 19 * - 68 AS col2
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT NULLIF ( + 74, + SUM( - + 59 ) + - + 18 + - + 18 * + + NULLIF ( 13, COUNT( * ) ) )
----
74

skipif mysql # not compatible
query I rowsort label-1859
SELECT NULLIF ( + 74, + SUM ( - + 59 ) + - + 18 + - + 18 * + + NULLIF ( 13, COUNT ( * ) ) )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1860
SELECT - - COALESCE ( + - 85, 24 DIV 58 + - 92 * + + 38 ) - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-1860
SELECT - - COALESCE ( + - 85, 24 / 58 + - 92 * + + 38 ) - COUNT ( * )
----
-86

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT DISTINCT - - ( - - 50 ) + 19 * - CAST( - 51 AS SIGNED ) + + + 30 - - 74
----
1123

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - - ( - - 50 ) + 19 * - CAST ( - 51 AS INTEGER ) + + + 30 - - 74
----
1123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN + 46 THEN - - 9 * 73 * - CAST( + + 98 AS SIGNED ) WHEN + 58 THEN MAX( ALL - 9 ) + + - 18 * 26 ELSE NULL END * + COUNT( * ) * + CAST( - - 8 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN + 46 THEN - - 9 * 73 * - CAST ( + + 98 AS INTEGER ) WHEN + 58 THEN MAX ( ALL - 9 ) + + - 18 * 26 ELSE NULL END * + COUNT ( * ) * + CAST ( - - 8 AS INTEGER )
----
NULL

query I rowsort
SELECT + - 54 * - 36
----
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL MIN( - - 65 ) + + 75 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL MIN ( - - 65 ) + + 75 AS col2
----
140

query I rowsort
SELECT ALL 75 + + + ( + + 76 ) + - 92 + + + ( - + 52 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL COUNT( * ) + COALESCE ( + 79, - + 65, - 49 * 7 + + - 68 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL COUNT ( * ) + COALESCE ( + 79, - + 65, - 49 * 7 + + - 68 ) AS col1
----
80

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

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

query I rowsort
SELECT + 2 + + 62 AS col2
----
64

query II rowsort
SELECT ALL + 91 col2, + 32 AS col1
----
91
32

query I rowsort
SELECT + COALESCE ( 93, + 51 * 17 * + 79 ) AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT + COALESCE ( + 64, + 19 ) + CASE + CAST( NULL AS SIGNED ) WHEN + 84 THEN NULL ELSE - COALESCE ( + - 39, - 52 * + 78 ) * - 66 + + 81 END col2
----
-2429

skipif mysql # not compatible
query I rowsort label-1872
SELECT + COALESCE ( + 64, + 19 ) + CASE + CAST ( NULL AS INTEGER ) WHEN + 84 THEN NULL ELSE - COALESCE ( + - 39, - 52 * + 78 ) * - 66 + + 81 END col2
----
-2429

query I rowsort
SELECT ALL 1 * + + ( - 33 ) + + 99 + 9 AS col1
----
75

query I rowsort
SELECT ALL - 59 * - 81 - + 28 AS col1
----
4751

query II rowsort
SELECT ALL + 26, - 31 + 2 * + 11 / CASE + 53 WHEN - 4 THEN - 72 + 92 * + - ( - - 4 ) ELSE NULL END AS col1
----
26
NULL

query I rowsort
SELECT + COALESCE ( + 82, + 18 + 90 ) AS col1
----
82

query I rowsort
SELECT NULLIF ( 31, 8 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT - 60 + 91 * + CAST( + 70 AS SIGNED ) + + 95 AS col0
----
6405

skipif mysql # not compatible
query I rowsort label-1878
SELECT - 60 + 91 * + CAST ( + 70 AS INTEGER ) + + 95 AS col0
----
6405

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + 71 * - COUNT( * ) * - 85
----
6035

skipif mysql # not compatible
query I rowsort label-1879
SELECT + 71 * - COUNT ( * ) * - 85
----
6035

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

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

query I rowsort
SELECT DISTINCT 12 * + + 78
----
936

query II rowsort
SELECT + 43 AS col2, - 3 + 45 AS col0
----
43
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT - 41 * - + 45 * - CAST( 38 AS SIGNED ) AS col1
----
-70110

skipif mysql # not compatible
query I rowsort label-1883
SELECT - 41 * - + 45 * - CAST ( 38 AS INTEGER ) AS col1
----
-70110

query I rowsort
SELECT ALL + NULLIF ( + + 21, + + 23 ) AS col2
----
21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1886
SELECT ALL + COUNT( * ) DIV - 45 + 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL + COUNT ( * ) / - 45 + 51 AS col0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1887
SELECT DISTINCT + 72 * - 63, CAST( NULL AS DECIMAL ) AS col1
----
-4536
NULL

skipif mysql # not compatible
query II rowsort label-1887
SELECT DISTINCT + 72 * - 63, CAST ( NULL AS REAL ) AS col1
----
-4536
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT NULLIF ( + 32, - 50 * + 78 ) * - 77 * - CAST( + 68 AS SIGNED ) + + + 86 * 63 + + CAST( 64 AS SIGNED )
----
173034

skipif mysql # not compatible
query I rowsort label-1888
SELECT NULLIF ( + 32, - 50 * + 78 ) * - 77 * - CAST ( + 68 AS INTEGER ) + + + 86 * 63 + + CAST ( 64 AS INTEGER )
----
173034

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT - + 44 DIV + 72 + ( - ( + 48 ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-1889
SELECT - + 44 / + 72 + ( - ( + 48 ) ) AS col0
----
-48

query I rowsort
SELECT - 79 + - + 86
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-1891
SELECT - 1, MIN( 81 ) col1
----
-1
81

skipif mysql # not compatible
query II rowsort label-1891
SELECT - 1, MIN ( 81 ) col1
----
-1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1892
SELECT ALL - 53 + CASE - 43 WHEN + 26 - - 22 THEN + ( + 56 ) + - 95 WHEN - + COUNT( * ) + + 13 + + - CAST( - 42 AS SIGNED ) THEN + 25 * + - SUM( + - 18 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - 53 + CASE - 43 WHEN + 26 - - 22 THEN + ( + 56 ) + - 95 WHEN - + COUNT ( * ) + + 13 + + - CAST ( - 42 AS INTEGER ) THEN + 25 * + - SUM ( + - 18 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 6 + + ( + 0 ) + + 18 * 32
----
570

query I rowsort
SELECT ALL + + ( + - NULLIF ( - 8, + + 85 ) ) + + - 15 AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1895
SELECT DISTINCT - COALESCE ( + 68, - - 80 * - 66 * - 19 DIV 6 * 50 ) + - 61
----
-129

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - COALESCE ( + 68, - - 80 * - 66 * - 19 / 6 * 50 ) + - 61
----
-129

query II rowsort
SELECT DISTINCT + 84 AS col0, 93 * - 39
----
84
-3627

query I rowsort
SELECT ALL 59 + - - 13 * - 82 + - 76 AS col1
----
-1083

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

skipif mysql # not compatible
query I rowsort label-1898
SELECT - + 92 + - 5 * + COUNT ( * ) AS col1
----
-97

query I rowsort
SELECT DISTINCT - 70 + - 4
----
-74

query I rowsort
SELECT ALL - - 73 + ( + - 14 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 10 / - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 10 / - 73
----
NULL

query I rowsort
SELECT ALL + 93 + - 43 - + - 69 col1
----
119

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

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

query I rowsort
SELECT DISTINCT 31 * + 65
----
2015

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1905
SELECT CAST( - 86 AS SIGNED ) col0, - 31 DIV - - 31 + 47
----
-86
46

skipif mysql # not compatible
query II rowsort label-1905
SELECT CAST ( - 86 AS INTEGER ) col0, - 31 / - - 31 + 47
----
-86
46

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1907
SELECT ALL 84 DIV + 38 - - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL 84 / + 38 - - ( - COUNT ( * ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT + ( 77 ) DIV - - ( - 24 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1908
SELECT + ( 77 ) / - - ( - 24 ) AS col0
----
-3

query I rowsort
SELECT + 77 * - 39 * 17 * + NULLIF ( - - 80, - - 52 ) col1
----
-4084080

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT + COUNT( * ) - 43 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1910
SELECT + COUNT ( * ) - 43 AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1911
SELECT ( + - CAST( NULL AS SIGNED ) ) / + + 53 + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT ( + - CAST ( NULL AS INTEGER ) ) / + + 53 + 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT 23 * - - 55 + + + 70 + 87 + COUNT( * ) col2
----
1423

skipif mysql # not compatible
query I rowsort label-1912
SELECT 23 * - - 55 + + + 70 + 87 + COUNT ( * ) col2
----
1423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL + + 25 + 46 * + MAX( 47 ) * 14 * CAST( NULL AS SIGNED ) + + + 63 * 6 + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + + 25 + 46 * + MAX ( 47 ) * 14 * CAST ( NULL AS INTEGER ) + + + 63 * 6 + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1914
SELECT - COUNT( + 74 ) * + + 43 - - - 79 + 88 AS col0, 2 col0
----
-34
2

skipif mysql # not compatible
query II rowsort label-1914
SELECT - COUNT ( + 74 ) * + + 43 - - - 79 + 88 AS col0, 2 col0
----
-34
2

query I rowsort
SELECT ALL - + 13 + + + 39 - 54 * 21 AS col1
----
-1108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1916
SELECT DISTINCT + CAST( - SUM( + ( + + 55 ) ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT + CAST ( - SUM ( + ( + + 55 ) ) AS INTEGER )
----
-55

query I rowsort
SELECT ALL - NULLIF ( - 9, 97 ) + COALESCE ( 87, - 34 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - 25 * - MIN( ( - 97 ) ) - + 70
----
-2495

skipif mysql # not compatible
query I rowsort label-1918
SELECT - 25 * - MIN ( ( - 97 ) ) - + 70
----
-2495

query I rowsort
SELECT 55 * 18 col1
----
990

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT - 40 DIV - ( + + 55 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1921
SELECT - 40 / - ( + + 55 ) AS col0
----
0

query I rowsort
SELECT - COALESCE ( + 15, - + 92 * + 27 + - 74 - + + 87 ) * + 42 col2
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT ALL - 75 * 25 * + NULLIF ( + 95, - - MAX( 52 ) ) + - 91
----
-178216

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL - 75 * 25 * + NULLIF ( + 95, - - MAX ( 52 ) ) + - 91
----
-178216

onlyif mysql # aggregate syntax: 
query II rowsort label-1924
SELECT DISTINCT - SUM( ALL - 5 ) AS col1, + 65
----
5
65

skipif mysql # not compatible
query II rowsort label-1924
SELECT DISTINCT - SUM ( ALL - 5 ) AS col1, + 65
----
5
65

query I rowsort
SELECT ALL + + 41 - + 4 AS col0
----
37

query I rowsort
SELECT 71 * + - 66
----
-4686

query II rowsort
SELECT 27 AS col1, - 16
----
27
-16

query I rowsort
SELECT ALL + 62 - + 34 AS col0
----
28

query I rowsort
SELECT 81 * 98 AS col2
----
7938

query I rowsort
SELECT ALL + 89 * - 62 AS col0
----
-5518

query I rowsort
SELECT 55 + + 88
----
143

query I rowsort
SELECT 90 - + + 35 AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1933
SELECT COUNT( * ) - + - 95 + - 26 DIV + 33 + + 3 + + + 90 + + 51 + COUNT( * )
----
241

skipif mysql # not compatible
query I rowsort label-1933
SELECT COUNT ( * ) - + - 95 + - 26 / + 33 + + 3 + + + 90 + + 51 + COUNT ( * )
----
241

onlyif mysql # aggregate syntax: 
query II rowsort label-1934
SELECT ALL 66, COUNT( * ) * 8 * + 42 col2
----
66
336

skipif mysql # not compatible
query II rowsort label-1934
SELECT ALL 66, COUNT ( * ) * 8 * + 42 col2
----
66
336

query I rowsort
SELECT + COALESCE ( - - ( + 70 ), + + 93, - - 33 ) * NULLIF ( + 91, - + 20 * + + 12 + - 66 ) + 15 + 52 AS col1
----
6437

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT SUM( DISTINCT - - 37 ) * - + 92 - COUNT( * )
----
-3405

skipif mysql # not compatible
query I rowsort label-1936
SELECT SUM ( DISTINCT - - 37 ) * - + 92 - COUNT ( * )
----
-3405

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1938
SELECT ALL - 35, 62 DIV - 62 AS col2
----
-35
-1

skipif mysql # not compatible
query II rowsort label-1938
SELECT ALL - 35, 62 / - 62 AS col2
----
-35
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL ( - - MAX( + 87 ) ) * - 0 * NULLIF ( + + 46, + 50 + - 80 + - 31 * + 7 * + ( COUNT( ALL 47 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL ( - - MAX ( + 87 ) ) * - 0 * NULLIF ( + + 46, + 50 + - 80 + - 31 * + 7 * + ( COUNT ( ALL 47 ) ) ) AS col0
----
0

query I rowsort
SELECT ALL + 27 * - 24
----
-648

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1943
SELECT SUM( DISTINCT 94 ) * - - 77 + - - 84 DIV 56
----
7239

skipif mysql # not compatible
query I rowsort label-1943
SELECT SUM ( DISTINCT 94 ) * - - 77 + - - 84 / 56
----
7239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1944
SELECT CAST( NULL AS SIGNED ) / 7 / + + COUNT( * ) AS col2, 84 AS col1
----
NULL
84

skipif mysql # not compatible
query II rowsort label-1944
SELECT CAST ( NULL AS INTEGER ) / 7 / + + COUNT ( * ) AS col2, 84 AS col1
----
NULL
84

query I rowsort
SELECT + 99 + + 59 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT - + ( - NULLIF ( 77, - CASE COUNT( * ) WHEN - 14 * + - 0 + - + 5 * - 29 THEN - 18 + - 47 END * - 22 ) )
----
77

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT - + ( - NULLIF ( 77, - CASE COUNT ( * ) WHEN - 14 * + - 0 + - + 5 * - 29 THEN - 18 + - 47 END * - 22 ) )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1947
SELECT ALL 78 + + 30 + - CAST( 76 AS SIGNED ) - - COUNT( * ) DIV - 75
----
32

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL 78 + + 30 + - CAST ( 76 AS INTEGER ) - - COUNT ( * ) / - 75
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1948
SELECT + COALESCE ( + + 90, 40 DIV + 30 * + 6 ) + 40
----
130

skipif mysql # not compatible
query I rowsort label-1948
SELECT + COALESCE ( + + 90, 40 / + 30 * + 6 ) + 40
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1949
SELECT DISTINCT + 86 + - COALESCE ( - 59, + 73 DIV - 51 + - 22 + - 42 * + + 39 * + CAST( - AVG ( + CASE + 7 WHEN 95 + COALESCE ( ( + NULLIF ( - 36, + + 64 ) ), - + 33 ) THEN NULL ELSE - 19 + 5 + 60 + - 11 END ) AS SIGNED ) + + 0, - COUNT( * ) + - COALESCE ( 61 - 84, COUNT( * ) + + COALESCE ( COUNT( * ), 25 + + 39, 57 ) ) ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT + 86 + - COALESCE ( - 59, + 73 / - 51 + - 22 + - 42 * + + 39 * + CAST ( - AVG ( + CASE + 7 WHEN 95 + COALESCE ( ( + NULLIF ( - 36, + + 64 ) ), - + 33 ) THEN NULL ELSE - 19 + 5 + 60 + - 11 END ) AS INTEGER ) + + 0, - COUNT ( * ) + - COALESCE ( 61 - 84, COUNT ( * ) + + COALESCE ( COUNT ( * ), 25 + + 39, 57 ) ) ) AS col0
----
145

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1950
SELECT ALL - COALESCE ( - + CAST( NULL AS SIGNED ), - 15 ) DIV - 95 * + + 76 DIV 1 * - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL - COALESCE ( - + CAST ( NULL AS INTEGER ), - 15 ) / - 95 * + + 76 / 1 * - 65 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1951
SELECT ALL + 11 + + 66 DIV - 16 AS col2, - 32 DIV + ( - - 86 ) + + - CAST( NULL AS DECIMAL )
----
7
NULL

skipif mysql # not compatible
query II rowsort label-1951
SELECT ALL + 11 + + 66 / - 16 AS col2, - 32 / + ( - - 86 ) + + - CAST ( NULL AS REAL )
----
7
NULL

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

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL - MAX ( ALL - 74 )
----
74

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

query I rowsort
SELECT ALL - 31 + - 81 AS col0
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-1955
SELECT ALL - + 58 col2, - 39 + - + 26 * + 92 + + - COUNT( * ) AS col2
----
-58
-2432

skipif mysql # not compatible
query II rowsort label-1955
SELECT ALL - + 58 col2, - 39 + - + 26 * + 92 + + - COUNT ( * ) AS col2
----
-58
-2432

query I rowsort
SELECT 80 + - 48
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1957
SELECT - 97 - - + 77 * + - COUNT( * ) + + COUNT( * ) DIV + - 61 AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-1957
SELECT - 97 - - + 77 * + - COUNT ( * ) + + COUNT ( * ) / + - 61 AS col2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT + MAX( - 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-1958
SELECT + MAX ( - 65 ) AS col0
----
-65

query I rowsort
SELECT ALL 80 + + + 32 * - 13 col1
----
-336

query II rowsort
SELECT ALL - 29 AS col2, 52 * - + 84 AS col1
----
-29
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT 90 * - + 22 + + + ( - 45 ) + + + 80 * - 72 + + + CASE + - 22 WHEN - NULLIF ( + - COUNT( * ), + - 70 / - 91 * + 2 * - SUM( DISTINCT - + 61 ) - - 4 ) THEN + - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT 90 * - + 22 + + + ( - 45 ) + + + 80 * - 72 + + + CASE + - 22 WHEN - NULLIF ( + - COUNT ( * ), + - 70 / - 91 * + 2 * - SUM ( DISTINCT - + 61 ) - - 4 ) THEN + - 17 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1962
SELECT ALL 7 * COALESCE ( + 38, 7 DIV + ( + 41 ) - + + 47 + - 17 + - CAST( NULL AS SIGNED ), 59 ) AS col1
----
266

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL 7 * COALESCE ( + 38, 7 / + ( + 41 ) - + + 47 + - 17 + - CAST ( NULL AS INTEGER ), 59 ) AS col1
----
266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1963
SELECT ALL + COALESCE ( + 45, + SUM( 70 ) DIV + + 99 - - 97 * 85, + + 47 ) - 82
----
-37

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL + COALESCE ( + 45, + SUM ( 70 ) / + + 99 - - 97 * 85, + + 47 ) - 82
----
-37

query II rowsort
SELECT ALL 93 AS col0, 88 * - 99 * - 3 AS col2
----
93
26136

query I rowsort
SELECT + 91 + 57 AS col0
----
148

query I rowsort
SELECT ALL - 35 - 73
----
-108

query I rowsort
SELECT DISTINCT 65 * - + 80
----
-5200

onlyif mysql # aggregate syntax: 
query II rowsort label-1968
SELECT COUNT( * ) + + COALESCE ( + 46, 6 ), + 98 AS col0
----
47
98

skipif mysql # not compatible
query II rowsort label-1968
SELECT COUNT ( * ) + + COALESCE ( + 46, 6 ), + 98 AS col0
----
47
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL + - 6 - + 82 - MIN( - 39 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL + - 6 - + 82 - MIN ( - 39 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT 0 + - + 67 * + + COUNT( * ) - + 4
----
-71

skipif mysql # not compatible
query I rowsort label-1970
SELECT 0 + - + 67 * + + COUNT ( * ) - + 4
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT ALL - COUNT( * ) - - 69 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - COUNT ( * ) - - 69 AS col2
----
68

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

skipif mysql # not compatible
query I rowsort label-1972
SELECT - SUM ( ALL 52 )
----
-52

query II rowsort
SELECT 9 + 60 AS col0, 47 + - + 86 * + 76 * - 70
----
69
457567

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT - COUNT( ALL 7 ), 69 + 76 col0
----
-1
145

skipif mysql # not compatible
query II rowsort label-1974
SELECT - COUNT ( ALL 7 ), 69 + 76 col0
----
-1
145

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT ALL - 4 * COALESCE ( + 96, 46, + ( - 60 ) - + NULLIF ( - 3, + 2 * - 35 * + 20 * 56 ) + 6 DIV - + 36 + - 4 )
----
-384

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - 4 * COALESCE ( + 96, 46, + ( - 60 ) - + NULLIF ( - 3, + 2 * - 35 * + 20 * 56 ) + 6 / - + 36 + - 4 )
----
-384

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

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

query I rowsort
SELECT DISTINCT + 59 * 51 * + 44
----
132396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT CAST( - 64 AS SIGNED ) - + 18
----
-82

skipif mysql # not compatible
query I rowsort label-1979
SELECT CAST ( - 64 AS INTEGER ) - + 18
----
-82

query I rowsort
SELECT 96 * + 35
----
3360

query I rowsort
SELECT DISTINCT - 41 * - + 86 + - + 1 AS col2
----
3525

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

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL - SUM ( ALL ( - 94 ) )
----
94

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1984
SELECT ALL + CAST( NULL AS DECIMAL ) * + 30 + - ( 24 ) + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL + CAST ( NULL AS REAL ) * + 30 + - ( 24 ) + - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT + 49 * - + 7 + + CASE - + 93 WHEN + COALESCE ( - COUNT( * ), COUNT( * ) * - COALESCE ( + - 70, - AVG ( DISTINCT - 10 ) ) / ( + 76 ) ) THEN NULL WHEN - - 35 THEN 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT + 49 * - + 7 + + CASE - + 93 WHEN + COALESCE ( - COUNT ( * ), COUNT ( * ) * - COALESCE ( + - 70, - AVG ( DISTINCT - 10 ) ) / ( + 76 ) ) THEN NULL WHEN - - 35 THEN 40 END AS col2
----
NULL

query II rowsort
SELECT ALL + + ( + 69 ), 48 col2
----
69
48

query I rowsort
SELECT DISTINCT - 43 * + 46
----
-1978

query I rowsort
SELECT - - 27 + 65 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL + COUNT( * ) * - + 65 * - COUNT( * ) + - + 58 - - + COUNT( * ) + 89 col2
----
97

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + COUNT ( * ) * - + 65 * - COUNT ( * ) + - + 58 - - + COUNT ( * ) + 89 col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1990
SELECT + - 30 + CAST( - AVG ( ( - 28 ) ) AS SIGNED ) * - 6
----
-198

skipif mysql # not compatible
query I rowsort label-1990
SELECT + - 30 + CAST ( - AVG ( ( - 28 ) ) AS INTEGER ) * - 6
----
-198

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

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

query I rowsort
SELECT + + 55 * + + 5 * + 9 + - - 52
----
2527

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT - SUM( DISTINCT 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1993
SELECT - SUM ( DISTINCT 51 ) AS col1
----
-51

query I rowsort
SELECT ALL COALESCE ( - 12, - 69 ) - + 77
----
-89

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT ALL 58 / + - CASE + 14 WHEN - 93 * + + ( - 36 ) + 30 THEN - 63 + - 83 ELSE 17 * + 10 END * + CAST( NULL AS SIGNED ) * - COUNT( * ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL 58 / + - CASE + 14 WHEN - 93 * + + ( - 36 ) + 30 THEN - 63 + - 83 ELSE 17 * + 10 END * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1997
SELECT + 97 DIV + - 16 col2, COALESCE ( + 46, COUNT( - 53 ) + + - ( - 58 ) * - + CAST( NULL AS SIGNED ), 20 )
----
-6
46

skipif mysql # not compatible
query II rowsort label-1997
SELECT + 97 / + - 16 col2, COALESCE ( + 46, COUNT ( - 53 ) + + - ( - 58 ) * - + CAST ( NULL AS INTEGER ), 20 )
----
-6
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1998
SELECT - ( - SUM( - CAST( 28 AS SIGNED ) ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-1998
SELECT - ( - SUM ( - CAST ( 28 AS INTEGER ) ) ) AS col0
----
-28

query I rowsort
SELECT + 55 * - 71
----
-3905

onlyif mysql # DIV for integer division: 
query I rowsort label-2000
SELECT + 73 - - - 79 + + 97 DIV - + 77 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2000
SELECT + 73 - - - 79 + + 97 / - + 77 AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2001
SELECT - 78 * + + MIN( - 54 ), + CAST( NULL AS SIGNED ) / COUNT( * ) AS col2
----
4212
NULL

skipif mysql # not compatible
query II rowsort label-2001
SELECT - 78 * + + MIN ( - 54 ), + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col2
----
4212
NULL

query I rowsort
SELECT DISTINCT 84 * 86
----
7224

query I rowsort
SELECT DISTINCT 96 * - 43
----
-4128

query I rowsort
SELECT DISTINCT 2 * 54
----
108

query I rowsort
SELECT ALL 13 * - 51 * - - 8
----
-5304

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2006
SELECT + 25 + + 53 * 86 DIV - - CAST( + 28 AS SIGNED ) + 3
----
190

skipif mysql # not compatible
query I rowsort label-2006
SELECT + 25 + + 53 * 86 / - - CAST ( + 28 AS INTEGER ) + 3
----
190

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

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

query I rowsort
SELECT ALL 83 + - 58
----
25

query I rowsort
SELECT + 89 + 30 AS col0
----
119

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT + CAST( - CASE + 8 WHEN + + 44 THEN - SUM( + 21 ) WHEN - 39 * + - MAX( DISTINCT 53 ) + - 25 THEN NULL ELSE + 22 / + + COUNT( DISTINCT + 44 ) END AS SIGNED ) + + CAST( + - 74 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-2011
SELECT + CAST ( - CASE + 8 WHEN + + 44 THEN - SUM ( + 21 ) WHEN - 39 * + - MAX ( DISTINCT 53 ) + - 25 THEN NULL ELSE + 22 / + + COUNT ( DISTINCT + 44 ) END AS INTEGER ) + + CAST ( + - 74 AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2012
SELECT - SUM( 6 ) - + - 93 - COUNT( * ) * + 38, COUNT( * ) * + + 50 + + COUNT( * ) AS col0
----
49
51

skipif mysql # not compatible
query II rowsort label-2012
SELECT - SUM ( 6 ) - + - 93 - COUNT ( * ) * + 38, COUNT ( * ) * + + 50 + + COUNT ( * ) AS col0
----
49
51

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

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL SUM ( ALL 24 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT DISTINCT 36 DIV - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT 36 / - 63 AS col0
----
0

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

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

query I rowsort
SELECT + 59 * - 33 AS col0
----
-1947

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

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

query I rowsort
SELECT ALL + 10 + + - 50 col0
----
-40

query I rowsort
SELECT + 35 + 94 * - - 73 * - 25 * - - 6
----
-1029265

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - + 17 + - + 90 + 43 - - - 40 * 10 * + 29 + - 1 + + NULLIF ( 62, + 62 ) * + 61 + 91 + + - 14 * - - ( 82 ) - + ( + - 19 ) * 14 + - + 70 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT - + 17 + - + 90 + 43 - - - 40 * 10 * + 29 + - 1 + + NULLIF ( 62, + 62 ) * + 61 + 91 + + - 14 * - - ( 82 ) - + ( + - 19 ) * 14 + - + 70 + - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 13 * - - 21
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT ALL + 44 DIV - - 69 + - + 41 * + ( 12 ) + - - 35 AS col1
----
-457

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + 44 / - - 69 + - + 41 * + ( 12 ) + - - 35 AS col1
----
-457

query I rowsort
SELECT + NULLIF ( - 97, + 50 ) AS col0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2025
SELECT - ( + 97 ) DIV - + 57 + 96 - + 48 * 38 + 28 AS col1
----
-1699

skipif mysql # not compatible
query I rowsort label-2025
SELECT - ( + 97 ) / - + 57 + 96 - + 48 * 38 + 28 AS col1
----
-1699

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL + + CASE ( + COUNT( * ) ) WHEN - 99 THEN + + 96 WHEN - ( + 37 ) * - + 50 * + - ( - + 67 ) - + 46 THEN + SUM( DISTINCT + 50 ) + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL + + CASE ( + COUNT ( * ) ) WHEN - 99 THEN + + 96 WHEN - ( + 37 ) * - + 50 * + - ( - + 67 ) - + 46 THEN + SUM ( DISTINCT + 50 ) + 45 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT - ( - + COUNT( * ) ) + - 38, 59 AS col0
----
-37
59

skipif mysql # not compatible
query II rowsort label-2028
SELECT - ( - + COUNT ( * ) ) + - 38, 59 AS col0
----
-37
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2029
SELECT DISTINCT + 65 * + - 13 DIV - + COUNT( * ) + - 23 * - + 33 * - 70 - + + 83 - 29 - 18 * 76 DIV - + COUNT( * )
----
-51029

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + 65 * + - 13 / - + COUNT ( * ) + - 23 * - + 33 * - 70 - + + 83 - 29 - 18 * 76 / - + COUNT ( * )
----
-51029

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

query I rowsort
SELECT 99 * 48 + + + 39 + + 91
----
4882

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

query I rowsort
SELECT - - 38 + - + ( 1 ) * + + 32
----
6

query I rowsort
SELECT DISTINCT - + 22 * - 63 col1
----
1386

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2035
SELECT - 81 * - - COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT - 81 * - - COUNT ( * ) + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + COALESCE ( + 63, - SUM( + 43 ), 27 ) * 28 * - 89 + 44 + 65 AS col0
----
-156887

skipif mysql # not compatible
query I rowsort label-2036
SELECT + COALESCE ( + 63, - SUM ( + 43 ), 27 ) * 28 * - 89 + 44 + 65 AS col0
----
-156887

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT ALL - COUNT( * ) * ( 58 ) + 51 + - CASE ( + - 59 ) WHEN 46 THEN CAST( + - 4 AS SIGNED ) * + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - COUNT ( * ) * ( 58 ) + 51 + - CASE ( + - 59 ) WHEN 46 THEN CAST ( + - 4 AS INTEGER ) * + 90 END
----
NULL

query I rowsort
SELECT ALL - 67 * 3 * + + 8
----
-1608

query II rowsort
SELECT ALL 8 AS col1, - 88
----
8
-88

query I rowsort
SELECT ALL 36 * 5 + - + 66 + - 82 * + 37 AS col1
----
-2920

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT SUM( + 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2042
SELECT SUM ( + 30 ) AS col2
----
30

query I rowsort
SELECT DISTINCT 95 + + 16
----
111

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2045
SELECT ALL COUNT( * ) + 97 DIV 5
----
20

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL COUNT ( * ) + 97 / 5
----
20

query I rowsort
SELECT 24 * + 66 * 6
----
9504

query I rowsort
SELECT ALL 41 * 73 AS col0
----
2993

query II rowsort
SELECT 81 AS col2, - CASE + 29 WHEN 5 THEN NULL WHEN - 11 THEN + 92 WHEN - ( - + 77 ) THEN NULL ELSE NULL END * 5 AS col2
----
81
NULL

query II rowsort
SELECT ALL 97 AS col1, + 40 * 18 AS col0
----
97
720

query I rowsort
SELECT 99 * 57 + - 21
----
5622

query II rowsort
SELECT + 65, + 20 col0
----
65
20

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2053
SELECT + COUNT( - - 92 ) DIV + SUM( ALL 78 ) + 67
----
67

skipif mysql # not compatible
query I rowsort label-2053
SELECT + COUNT ( - - 92 ) / + SUM ( ALL 78 ) + 67
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2054
SELECT + 68 DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-2054
SELECT + 68 / - 22
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2055
SELECT - 77 + - COUNT( * ) DIV - 25
----
-77

skipif mysql # not compatible
query I rowsort label-2055
SELECT - 77 + - COUNT ( * ) / - 25
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2056
SELECT ALL COUNT( * ) DIV + MIN( - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL COUNT ( * ) / + MIN ( - 27 )
----
0

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

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

query I rowsort
SELECT - 34 - 44
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT ALL 4 DIV - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL 4 / - 42 AS col2
----
0

query I rowsort
SELECT ALL + + 99 * - 93 * 13 AS col1
----
-119691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2061
SELECT ALL + 22 DIV - + COUNT( * ) + + - 56
----
-78

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL + 22 / - + COUNT ( * ) + + - 56
----
-78

query I rowsort
SELECT ALL - 58 * - 83 AS col2
----
4814

query III rowsort
SELECT - 22, - 76 col0, + ( + - ( + 80 ) ) AS col0
----
-22
-76
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2064
SELECT DISTINCT 31 * - 7, + SUM( + + 16 ) * - - COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) * + - ( 75 ) * + - 89 * 35 + + 99 AS col0
----
-217
233740

skipif mysql # not compatible
query II rowsort label-2064
SELECT DISTINCT 31 * - 7, + SUM ( + + 16 ) * - - COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) * + - ( 75 ) * + - 89 * 35 + + 99 AS col0
----
-217
233740

query I rowsort
SELECT DISTINCT 36 * 45
----
1620

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

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

query I rowsort
SELECT + NULLIF ( + - 14, - - AVG ( - - 41 ) ) AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT DISTINCT - - CASE + COALESCE ( 15, + - 67, AVG ( + 32 ) ) WHEN - + ( - ( + CAST( - 17 AS SIGNED ) ) ) THEN - 28 WHEN 5 / + - AVG ( + 16 ) THEN 10 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - - CASE + COALESCE ( 15, + - 67, AVG ( + 32 ) ) WHEN - + ( - ( + CAST ( - 17 AS INTEGER ) ) ) THEN - 28 WHEN 5 / + - AVG ( + 16 ) THEN 10 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2069
SELECT ALL + NULLIF ( COUNT( * ), + - 59 * COUNT( * ) + - COUNT( * ) + 47 ) + + 95 DIV 33
----
3

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + NULLIF ( COUNT ( * ), + - 59 * COUNT ( * ) + - COUNT ( * ) + 47 ) + + 95 / 33
----
3

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

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - COUNT ( + 53 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2071
SELECT DISTINCT - CASE WHEN NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL THEN + + MAX( ALL - + 79 ) DIV + 44 + - 86 * + - 78 END
----
-6707

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT - CASE WHEN NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL THEN + + MAX ( ALL - + 79 ) / + 44 + - 86 * + - 78 END
----
-6707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2072
SELECT ALL - 72 + 58, + CAST( SUM( + + 34 ) AS SIGNED ) * 73 * - + AVG ( 5 ) * - - 83 + - + 4 + - + CAST( NULL AS SIGNED ) AS col2
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-2072
SELECT ALL - 72 + 58, + CAST ( SUM ( + + 34 ) AS INTEGER ) * 73 * - + AVG ( 5 ) * - - 83 + - + 4 + - + CAST ( NULL AS INTEGER ) AS col2
----
-14
NULL

query I rowsort
SELECT 9 * 41 * - - 16 col0
----
5904

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT + 0 * 13 * - + ( - - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT + 0 * 13 * - + ( - - COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2075
SELECT CAST( NULL AS SIGNED ) * - - 37 + + - COUNT( * ) * + ( NULLIF ( + ( + 69 ), + COUNT( * ) + 35 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT CAST ( NULL AS INTEGER ) * - - 37 + + - COUNT ( * ) * + ( NULLIF ( + ( + 69 ), + COUNT ( * ) + 35 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL + SUM( DISTINCT 86 ) * - 38 * 78
----
-254904

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL + SUM ( DISTINCT 86 ) * - 38 * 78
----
-254904

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

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

query I rowsort
SELECT 5 * - - 86 AS col2
----
430

query I rowsort
SELECT ALL - NULLIF ( - ( + 71 ), 9 ) + 46 col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT 15 - + + COUNT( * ) * - - 97 * - + 4 AS col0
----
403

skipif mysql # not compatible
query I rowsort label-2080
SELECT 15 - + + COUNT ( * ) * - - 97 * - + 4 AS col0
----
403

query I rowsort
SELECT ALL + 82 * - 97
----
-7954

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT 34 + COUNT( DISTINCT + + 49 ) - 33 + + + ( + 6 ) * - - 47 AS col2
----
284

skipif mysql # not compatible
query I rowsort label-2083
SELECT 34 + COUNT ( DISTINCT + + 49 ) - 33 + + + ( + 6 ) * - - 47 AS col2
----
284

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT 14 - - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2085
SELECT 14 - - COUNT ( * ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-2086
SELECT COALESCE ( - + 29, - 35 DIV - ( - 59 ) ) AS col2, - 91 col0
----
-29
-91

skipif mysql # not compatible
query II rowsort label-2086
SELECT COALESCE ( - + 29, - 35 / - ( - 59 ) ) AS col2, - 91 col0
----
-29
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT - 66 + 36 + - 13 + - - 36 DIV + 84 * - - 78 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2087
SELECT - 66 + 36 + - 13 + - - 36 / + 84 * - - 78 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT COUNT( * ) + + + 73 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2088
SELECT COUNT ( * ) + + + 73 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2089
SELECT - COUNT( * ) + - + COUNT( * ) + - 69 + - + CAST( NULL AS SIGNED ) / - COUNT( * ) * MAX( DISTINCT + + ( - 97 ) ) * + + COUNT( DISTINCT - CAST( + 84 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT - COUNT ( * ) + - + COUNT ( * ) + - 69 + - + CAST ( NULL AS INTEGER ) / - COUNT ( * ) * MAX ( DISTINCT + + ( - 97 ) ) * + + COUNT ( DISTINCT - CAST ( + 84 AS INTEGER ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT + 41 * + 11 * 88
----
39688

onlyif mysql # DIV for integer division: 
query I rowsort label-2092
SELECT + - 70 DIV + 54 + 42 col2
----
41

skipif mysql # not compatible
query I rowsort label-2092
SELECT + - 70 / + 54 + 42 col2
----
41

query I rowsort
SELECT ALL - 56 * - 68 + + + 32 + + COALESCE ( + + 30, - 41 ) AS col0
----
3870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2094
SELECT ALL 67 * + 20 / - SUM( DISTINCT + + 19 ) + + - 91 + - MAX( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL 67 * + 20 / - SUM ( DISTINCT + + 19 ) + + - 91 + - MAX ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - + 9
----
NULL

query II rowsort
SELECT DISTINCT 9 + - 24 AS col2, + 41 AS col0
----
-15
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT + - SUM( ALL 3 ) * + MIN( DISTINCT 92 ) AS col2
----
-276

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT + - SUM ( ALL 3 ) * + MIN ( DISTINCT 92 ) AS col2
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT DISTINCT + CASE - 23 WHEN CAST( NULL AS SIGNED ) * + 10 * + 3 THEN - 43 + 35 END + - - 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT + CASE - 23 WHEN CAST ( NULL AS INTEGER ) * + 10 * + 3 THEN - 43 + 35 END + - - 48 col2
----
NULL

query I rowsort
SELECT ALL 90 * + 85 AS col1
----
7650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2099
SELECT 13 * - + 13 + + COUNT( * ) + - 70 DIV - + 38 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-2099
SELECT 13 * - + 13 + + COUNT ( * ) + - 70 / - + 38 AS col1
----
-167

query I rowsort
SELECT ALL - 40 + - 15 - + - 93 AS col0
----
38

query I rowsort
SELECT DISTINCT 25 * - ( + 9 ) * 47 AS col0
----
-10575

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2102
SELECT 25 + + 40 * - CAST( NULL AS SIGNED ) AS col0, 96
----
NULL
96

skipif mysql # not compatible
query II rowsort label-2102
SELECT 25 + + 40 * - CAST ( NULL AS INTEGER ) AS col0, 96
----
NULL
96

query I rowsort
SELECT - 55 * + - 32 * 84 * - 89 AS col2
----
-13157760

query I rowsort
SELECT + COALESCE ( + 55, + - 65 + - + 52 ) AS col2
----
55

query I rowsort
SELECT - 72 + - 20
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2106
SELECT ALL - NULLIF ( - 37, - - 31 + + 43 + - 7 + + 74 ) + + 71 + - 18 + + 90 * - NULLIF ( - MIN( + 4 ), - CASE - - 49 WHEN 76 THEN NULL WHEN 73 THEN NULL ELSE 72 * 31 END ) + + - 17 / + - 82 * + + AVG ( ALL + - CAST( NULL AS SIGNED ) ) / + + 50 + + - 69 + - COALESCE ( + 59, + COUNT( ALL 22 ) ) - MIN( 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL - NULLIF ( - 37, - - 31 + + 43 + - 7 + + 74 ) + + 71 + - 18 + + 90 * - NULLIF ( - MIN ( + 4 ), - CASE - - 49 WHEN 76 THEN NULL WHEN 73 THEN NULL ELSE 72 * 31 END ) + + - 17 / + - 82 * + + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) / + + 50 + + - 69 + - COALESCE ( + 59, + COUNT ( ALL 22 ) ) - MIN ( 23 )
----
NULL

query I rowsort
SELECT + NULLIF ( + 28, 67 * + - 66 * 36 - + 60 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT COUNT( DISTINCT - 76 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT COUNT ( DISTINCT - 76 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2109
SELECT DISTINCT 75 col0, + COUNT( * ) * - 61 AS col1
----
75
-61

skipif mysql # not compatible
query II rowsort label-2109
SELECT DISTINCT 75 col0, + COUNT ( * ) * - 61 AS col1
----
75
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT ALL CASE CAST( - 5 AS SIGNED ) WHEN 3 THEN + + 85 WHEN - + 87 THEN + 72 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL CASE CAST ( - 5 AS INTEGER ) WHEN 3 THEN + + 85 WHEN - + 87 THEN + 72 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2111
SELECT - 12 + - COALESCE ( 20, 75 + - - 97 + + SUM( ALL + 93 ) * 25, 40 ) + - - 20 DIV - - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-2111
SELECT - 12 + - COALESCE ( 20, 75 + - - 97 + + SUM ( ALL + 93 ) * 25, 40 ) + - - 20 / - - COUNT ( * )
----
-12

query I rowsort
SELECT ALL COALESCE ( - 8, - + 76 ) - - 76 + + 8 * + + 18 * - 5
----
-652

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

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

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

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

query II rowsort
SELECT + 61 AS col0, - 85 AS col2
----
61
-85

query I rowsort
SELECT + ( + + 72 ) + + 62
----
134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT - COUNT( * ) + - COUNT( 53 ) + ( + + 78 ) - - 88
----
164

skipif mysql # not compatible
query I rowsort label-2118
SELECT - COUNT ( * ) + - COUNT ( 53 ) + ( + + 78 ) - - 88
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-2119
SELECT DISTINCT 95 col0, COALESCE ( + SUM( ALL + + 38 ), + COUNT( 27 ) + SUM( ALL - 79 ) ) + - 8
----
95
30

skipif mysql # not compatible
query II rowsort label-2119
SELECT DISTINCT 95 col0, COALESCE ( + SUM ( ALL + + 38 ), + COUNT ( 27 ) + SUM ( ALL - 79 ) ) + - 8
----
95
30

query II rowsort
SELECT ALL 12 AS col1, 61 - 48 AS col1
----
12
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2121
SELECT - COUNT( * ) DIV + ( + - SUM( ALL - + 88 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2121
SELECT - COUNT ( * ) / + ( + - SUM ( ALL - + 88 ) )
----
0

query II rowsort
SELECT - ( - 20 ) - + - 63 AS col2, + 76 * + 6 AS col1
----
83
456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2123
SELECT - 78 * CASE CAST( NULL AS SIGNED ) WHEN - COALESCE ( + 15, - + 48 ) THEN NULL WHEN COUNT( * ) / 87 THEN - 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT - 78 * CASE CAST ( NULL AS INTEGER ) WHEN - COALESCE ( + 15, - + 48 ) THEN NULL WHEN COUNT ( * ) / 87 THEN - 46 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2124
SELECT - MIN( - 87 ) DIV - + 48 - + 44 AS col2, 96 - ( + 91 ) + 70
----
-45
75

skipif mysql # not compatible
query II rowsort label-2124
SELECT - MIN ( - 87 ) / - + 48 - + 44 AS col2, 96 - ( + 91 ) + 70
----
-45
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2126
SELECT DISTINCT - 2 * + COUNT( * ) + + COUNT( CAST( - 17 AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT - 2 * + COUNT ( * ) + + COUNT ( CAST ( - 17 AS REAL ) ) AS col0
----
-1

query II rowsort
SELECT + + 10, - ( + 49 ) AS col1
----
10
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + - MAX( ALL NULLIF ( + 36, - ( + - 35 ) * - - ( + COALESCE ( 45, - + 58 ) ) * + 60 ) ) + - 72
----
-108

skipif mysql # not compatible
query I rowsort label-2128
SELECT + - MAX ( ALL NULLIF ( + 36, - ( + - 35 ) * - - ( + COALESCE ( 45, - + 58 ) ) * + 60 ) ) + - 72
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL 65 * - MIN( ALL 77 ) + - 25 + - SUM( + 2 )
----
-5032

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL 65 * - MIN ( ALL 77 ) + - 25 + - SUM ( + 2 )
----
-5032

query I rowsort
SELECT DISTINCT 54 * + 98
----
5292

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL - + COUNT( * ) * 15 + - - 92 + + + 38 * 42 AS col2
----
1673

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - + COUNT ( * ) * 15 + - - 92 + + + 38 * 42 AS col2
----
1673

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2132
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - + 65 + COUNT( * ) * + - 32 + + - COUNT( * ) + - - 20 AS col0, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2132
SELECT DISTINCT CAST ( NULL AS REAL ) * - + 65 + COUNT ( * ) * + - 32 + + - COUNT ( * ) + - - 20 AS col0, - COUNT ( * )
----
NULL
-1

query I rowsort
SELECT ALL - ( 9 ) * 2 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2134
SELECT + 42 * + ( + COUNT( * ) ) AS col2, 21 AS col0
----
42
21

skipif mysql # not compatible
query II rowsort label-2134
SELECT + 42 * + ( + COUNT ( * ) ) AS col2, 21 AS col0
----
42
21

query II rowsort
SELECT DISTINCT - + 79 * - NULLIF ( + 71, - 46 * + 6 * 92 ) + - 92 + 52 * - 85, 91 AS col0
----
1097
91

query I rowsort
SELECT DISTINCT 20 * - - 7 + + ( + + 82 )
----
222

query I rowsort
SELECT - 73 * + 68 * + + 52 AS col2
----
-258128

query I rowsort
SELECT NULLIF ( - ( 34 ), + 38 )
----
-34

query I rowsort
SELECT ALL + 37 * 61 * + 11 - - + 96 col2
----
24923

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT CASE ( + ( ( + + 80 ) ) ) WHEN + + 27 * + NULLIF ( - - 18, - 74 * 22 * 87 + 87 ) + - + 23 * + 95 THEN CASE + 33 WHEN + - 52 THEN - - 24 * - 3 + 47 END ELSE - 95 + 36 * 28 - COUNT( * ) * - - 93 * - CASE 3 WHEN + 20 / + + ( - 25 ) THEN + 66 * - 22 + + 21 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT CASE ( + ( ( + + 80 ) ) ) WHEN + + 27 * + NULLIF ( - - 18, - 74 * 22 * 87 + 87 ) + - + 23 * + 95 THEN CASE + 33 WHEN + - 52 THEN - - 24 * - 3 + 47 END ELSE - 95 + 36 * 28 - COUNT ( * ) * - - 93 * - CASE 3 WHEN + 20 / + + ( - 25 ) THEN + 66 * - 22 + + 21 ELSE NULL END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT + 60 DIV + 47 col1
----
1

skipif mysql # not compatible
query I rowsort label-2141
SELECT + 60 / + 47 col1
----
1

query I rowsort
SELECT + CASE 32 WHEN 1 THEN + COALESCE ( 35, + - 82 ) ELSE - 19 * - + 59 END AS col2
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL - 60 * 29 - COUNT( * )
----
-1741

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL - 60 * 29 - COUNT ( * )
----
-1741

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL 7 * COUNT( DISTINCT + 24 )
----
7

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL 7 * COUNT ( DISTINCT + 24 )
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-2145
SELECT ALL 18 DIV 42, 65 * - 94 AS col2
----
0
-6110

skipif mysql # not compatible
query II rowsort label-2145
SELECT ALL 18 / 42, 65 * - 94 AS col2
----
0
-6110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2146
SELECT ALL 23 * - CAST( - 81 AS SIGNED ) - COALESCE ( + 41, + - COUNT( * ), + MAX( ALL + 18 ) * - 47 ) + - 17 DIV + 76 * ( CAST( - + 94 AS SIGNED ) ) * - 65 + + 46
----
1868

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL 23 * - CAST ( - 81 AS INTEGER ) - COALESCE ( + 41, + - COUNT ( * ), + MAX ( ALL + 18 ) * - 47 ) + - 17 / + 76 * ( CAST ( - + 94 AS INTEGER ) ) * - 65 + + 46
----
1868

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2147
SELECT + 30 * - - 13 AS col2, 34 + + - 24 + 93 + + 89 + + COUNT( * ) + - COUNT( * ) DIV + 2 AS col0
----
390
193

skipif mysql # not compatible
query II rowsort label-2147
SELECT + 30 * - - 13 AS col2, 34 + + - 24 + 93 + + 89 + + COUNT ( * ) + - COUNT ( * ) / + 2 AS col0
----
390
193

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT - 29 * + - 32 * 68 + - COUNT( * )
----
63103

skipif mysql # not compatible
query I rowsort label-2148
SELECT - 29 * + - 32 * 68 + - COUNT ( * )
----
63103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2149
SELECT + COUNT( * ) * 22 AS col2, CAST( + - 21 AS SIGNED ) - + 43 + - ( - - 92 )
----
22
-156

skipif mysql # not compatible
query II rowsort label-2149
SELECT + COUNT ( * ) * 22 AS col2, CAST ( + - 21 AS INTEGER ) - + 43 + - ( - - 92 )
----
22
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL ( - 23 ) * + COUNT( ALL - - ( 60 ) ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL ( - 23 ) * + COUNT ( ALL - - ( 60 ) ) col0
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-2151
SELECT + 94 DIV + + 44 AS col2, + 73
----
2
73

skipif mysql # not compatible
query II rowsort label-2151
SELECT + 94 / + + 44 AS col2, + 73
----
2
73

onlyif mysql # DIV for integer division: 
query II rowsort label-2152
SELECT DISTINCT - ( - 18 ), 77 DIV - 74 AS col1
----
18
-1

skipif mysql # not compatible
query II rowsort label-2152
SELECT DISTINCT - ( - 18 ), 77 / - 74 AS col1
----
18
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT + 54 + COUNT( * ) + 17 + + 28 - + - 9 * - 34 * 50 * + 72 + + 74
----
-1101426

skipif mysql # not compatible
query I rowsort label-2153
SELECT + 54 + COUNT ( * ) + 17 + + 28 - + - 9 * - 34 * 50 * + 72 + + 74
----
-1101426

onlyif mysql # aggregate syntax: 
query II rowsort label-2154
SELECT + 67 + 52 + - + MAX( DISTINCT - 23 ) AS col0, COUNT( * ) AS col2
----
142
1

skipif mysql # not compatible
query II rowsort label-2154
SELECT + 67 + 52 + - + MAX ( DISTINCT - 23 ) AS col0, COUNT ( * ) AS col2
----
142
1

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

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

query I rowsort
SELECT - - 33 col1
----
33

query I rowsort
SELECT - 81 + + 20 + 57 AS col2
----
-4

query I rowsort
SELECT ALL - - 13 + + - 78 AS col1
----
-65

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

query I rowsort
SELECT ALL + 41 + - - 15 col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2161
SELECT ALL - - COUNT( * ) + + 58 + + 50 * + COUNT( * ) AS col0, COALESCE ( + - 44, + 3 + - COUNT( * ) ) + - 69 + 71 + + 58 + - 57 - - 57 AS col1
----
109
16

skipif mysql # not compatible
query II rowsort label-2161
SELECT ALL - - COUNT ( * ) + + 58 + + 50 * + COUNT ( * ) AS col0, COALESCE ( + - 44, + 3 + - COUNT ( * ) ) + - 69 + 71 + + 58 + - 57 - - 57 AS col1
----
109
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL - - COALESCE ( - + 44, ( - + COUNT( * ) ) ) * + 38 AS col0
----
-1672

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL - - COALESCE ( - + 44, ( - + COUNT ( * ) ) ) * + 38 AS col0
----
-1672

query I rowsort
SELECT - - 80 + + - 6 AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2164
SELECT ALL - 75 DIV - 6 + MIN( DISTINCT - 62 )
----
-50

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL - 75 / - 6 + MIN ( DISTINCT - 62 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - + 53 + + NULLIF ( - - 98, + 17 + - ( - 84 ) + 49 + COUNT( DISTINCT - 37 ) / + 59 + - + 67 + + 88 * + 1 * - - 92 * - COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-2165
SELECT - + 53 + + NULLIF ( - - 98, + 17 + - ( - 84 ) + 49 + COUNT ( DISTINCT - 37 ) / + 59 + - + 67 + + 88 * + 1 * - - 92 * - COUNT ( * ) )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2166
SELECT ALL - 84 DIV - COUNT( * ) AS col2, 43 + + 35 + - + 47 - NULLIF ( + NULLIF ( + 14, + 50 ), 86 ) * - 85 col2
----
84
1221

skipif mysql # not compatible
query II rowsort label-2166
SELECT ALL - 84 / - COUNT ( * ) AS col2, 43 + + 35 + - + 47 - NULLIF ( + NULLIF ( + 14, + 50 ), 86 ) * - 85 col2
----
84
1221

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2167
SELECT 25 DIV + - CAST( - - 3 AS SIGNED ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2167
SELECT 25 / + - CAST ( - - 3 AS INTEGER ) AS col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-2168
SELECT ( - ( 35 ) ) DIV + - 23 + + + 78
----
79

skipif mysql # not compatible
query I rowsort label-2168
SELECT ( - ( 35 ) ) / + - 23 + + + 78
----
79

query I rowsort
SELECT ALL - CASE + 85 WHEN + 8 THEN + ( - + 68 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2170
SELECT DISTINCT - 47, - 70 + CASE + - 67 WHEN - COUNT( * ) THEN - + 69 WHEN + CAST( NULL AS SIGNED ) * + - 60 * + NULLIF ( + NULLIF ( - CAST( NULLIF ( 10, + CAST( NULL AS DECIMAL ) ) AS DECIMAL ), 44 ), + COALESCE ( 46, - - COUNT( * ) * + - 64 - - 89 * 65 ) * + 10 ) / - + 85 * 82 + + 6 + + + 28 THEN - 47 END - - - 88 + - + 21 * 49 * + 98 col1
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-2170
SELECT DISTINCT - 47, - 70 + CASE + - 67 WHEN - COUNT ( * ) THEN - + 69 WHEN + CAST ( NULL AS INTEGER ) * + - 60 * + NULLIF ( + NULLIF ( - CAST ( NULLIF ( 10, + CAST ( NULL AS REAL ) ) AS REAL ), 44 ), + COALESCE ( 46, - - COUNT ( * ) * + - 64 - - 89 * 65 ) * + 10 ) / - + 85 * 82 + + 6 + + + 28 THEN - 47 END - - - 88 + - + 21 * 49 * + 98 col1
----
-47
NULL

query I rowsort
SELECT 18 * 17
----
306

query I rowsort
SELECT ALL 31 * - 62 AS col1
----
-1922

query I rowsort
SELECT ALL - 78 - - + 88 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2174
SELECT ALL - CASE + + 71 WHEN + 39 * + 52 / - COUNT( * ) + 47 + 87 * - + CASE - + 81 WHEN - 38 + + 89 / COUNT( * ) + + COUNT( * ) THEN NULL WHEN 48 THEN - 68 * + 29 * 1 * - 99 - + + 37 ELSE - CAST( + + 31 AS DECIMAL ) END THEN + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL - CASE + + 71 WHEN + 39 * + 52 / - COUNT ( * ) + 47 + 87 * - + CASE - + 81 WHEN - 38 + + 89 / COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN 48 THEN - 68 * + 29 * 1 * - 99 - + + 37 ELSE - CAST ( + + 31 AS REAL ) END THEN + 20 END
----
NULL

query I rowsort
SELECT - 26 * + - 88 + - 55 AS col1
----
2233

query I rowsort
SELECT DISTINCT - CASE - + 77 WHEN + - 68 THEN - - ( - + 83 ) + - 47 + 17 WHEN + NULLIF ( - 79, - - ( - - 1 ) * - - 61 + - - 89 ) * - 38 + + 89 THEN NULL END - + - 85 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT 44 + - NULLIF ( 53, + 79 / - COALESCE ( CAST( NULL AS SIGNED ), - ( + 1 ), 76 ) * - 24 ) + + COUNT( * ) + - - ( - - 87 ) * + - 96 * + + CAST( NULL AS SIGNED ) / 43 + - + 79 * - MAX( ALL - 77 ) / + COALESCE ( - 82, + + 25, 68 + 50 - + + COUNT( * ) + + AVG ( 74 ), - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT 44 + - NULLIF ( 53, + 79 / - COALESCE ( CAST ( NULL AS INTEGER ), - ( + 1 ), 76 ) * - 24 ) + + COUNT ( * ) + - - ( - - 87 ) * + - 96 * + + CAST ( NULL AS INTEGER ) / 43 + - + 79 * - MAX ( ALL - 77 ) / + COALESCE ( - 82, + + 25, 68 + 50 - + + COUNT ( * ) + + AVG ( 74 ), - 82 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2178
SELECT ALL - CAST( 44 AS SIGNED ) * 6 DIV + - 39
----
6

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - CAST ( 44 AS INTEGER ) * 6 / + - 39
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ( MAX( - 39 ) ) + + + 0
----
-39

skipif mysql # not compatible
query I rowsort label-2179
SELECT ( MAX ( - 39 ) ) + + + 0
----
-39

query I rowsort
SELECT 34 * + 57 AS col1
----
1938

onlyif mysql # aggregate syntax: 
query II rowsort label-2181
SELECT 55 AS col0, - 42 + + 47 - - - 59 + 12 + - + 12 + + 23 * - - COUNT( * )
----
55
-31

skipif mysql # not compatible
query II rowsort label-2181
SELECT 55 AS col0, - 42 + + 47 - - - 59 + 12 + - + 12 + + 23 * - - COUNT ( * )
----
55
-31

query I rowsort
SELECT ALL 17 + - 49
----
-32

query I rowsort
SELECT DISTINCT - 33 + - 38
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL 24 * + MIN( + 12 )
----
288

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL 24 * + MIN ( + 12 )
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT - NULLIF ( + - COUNT( * ), + 11 * + + MIN( - 4 ) * + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2185
SELECT - NULLIF ( + - COUNT ( * ), + 11 * + + MIN ( - 4 ) * + COUNT ( * ) ) AS col1
----
1

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

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

query I rowsort
SELECT + 38 * 29 + - - 87
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT - - ( + + COUNT( + 43 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2188
SELECT - - ( + + COUNT ( + 43 ) ) AS col1
----
1

query I rowsort
SELECT ALL 82 + 80
----
162

query II rowsort
SELECT + ( 50 ) + - 78 AS col1, - 6 AS col2
----
-28
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT ( + MIN( - CAST( 65 AS SIGNED ) ) ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT ( + MIN ( - CAST ( 65 AS INTEGER ) ) ) col1
----
-65

query I rowsort
SELECT DISTINCT 13 + + - 78 col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2193
SELECT ALL COUNT( CAST( + 26 AS SIGNED ) ), + ( 88 ) AS col1
----
1
88

skipif mysql # not compatible
query II rowsort label-2193
SELECT ALL COUNT ( CAST ( + 26 AS INTEGER ) ), + ( 88 ) AS col1
----
1
88

query I rowsort
SELECT DISTINCT - 32 + - 55 AS col1
----
-87

query I rowsort
SELECT DISTINCT + CASE 13 WHEN + 70 THEN - 81 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2196
SELECT ALL - + CASE + 53 WHEN - - 38 / + 56 THEN 21 * + + 63 * - - 39 WHEN 84 * + 26 * + 0 THEN ( + + ( + + ( + COUNT( * ) ) ) ) + + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL END * 39 + + 56 + - - 32 + + MIN( DISTINCT 76 ) + + - 28 * COUNT( * ) col0, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2196
SELECT ALL - + CASE + 53 WHEN - - 38 / + 56 THEN 21 * + + 63 * - - 39 WHEN 84 * + 26 * + 0 THEN ( + + ( + + ( + COUNT ( * ) ) ) ) + + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL END * 39 + + 56 + - - 32 + + MIN ( DISTINCT 76 ) + + - 28 * COUNT ( * ) col0, + COUNT ( * ) AS col1
----
NULL
1

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

skipif mysql # not compatible
query II rowsort label-2197
SELECT - COUNT ( * ), - 8 AS col2
----
-1
-8

query I rowsort
SELECT + 67 - + - 44 - 79 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT - + MAX( - - 99 ) col1
----
-99

skipif mysql # not compatible
query I rowsort label-2199
SELECT - + MAX ( - - 99 ) col1
----
-99

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

skipif mysql # not compatible
query I rowsort label-2200
SELECT + CAST ( + SUM ( - - 78 ) AS INTEGER )
----
78

query I rowsort
SELECT 93 + - 73 AS col0
----
20

query I rowsort
SELECT DISTINCT + - 56 - 88 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query III rowsort label-2203
SELECT 35 + ( - + 26 ) * - - 56 AS col1, CASE + 93 WHEN 71 * - 45 + - 70 * + + 93 + + 99 THEN + 80 WHEN - SUM( - - 4 ) THEN NULL END AS col1, - SUM( ALL ( + + 7 ) ) AS col1
----
-1421
NULL
-7

skipif mysql # not compatible
query III rowsort label-2203
SELECT 35 + ( - + 26 ) * - - 56 AS col1, CASE + 93 WHEN 71 * - 45 + - 70 * + + 93 + + 99 THEN + 80 WHEN - SUM ( - - 4 ) THEN NULL END AS col1, - SUM ( ALL ( + + 7 ) ) AS col1
----
-1421
NULL
-7

query II rowsort
SELECT ALL - 5, - 46 * - 57 * 12 + - 33 + + 45 * - 23 AS col2
----
-5
30396

onlyif mysql # DIV for integer division: 
query I rowsort label-2205
SELECT ALL + 92 DIV 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL + 92 / 48 AS col0
----
1

query I rowsort
SELECT 44 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL - CASE ( 86 ) WHEN - 68 / + - 45 + 38 - - 30 + 51 / - 84 * - - 41 THEN 5 * + SUM( ALL 91 ) + + 11 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - CASE ( 86 ) WHEN - 68 / + - 45 + 38 - - 30 + 51 / - 84 * - - 41 THEN 5 * + SUM ( ALL 91 ) + + 11 END col1
----
NULL

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

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

query I rowsort
SELECT 53 * + - 92 * - 71 AS col2
----
346196

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT DISTINCT + 1 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT + 1 / + 99
----
0

query III rowsort
SELECT 46 AS col0, 75 AS col0, + + 64 + 25
----
46
75
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2212
SELECT 34 / + - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT 34 / + - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT 40 - 48 * + 43 * - 40
----
82600

onlyif mysql # DIV for integer division: 
query II rowsort label-2215
SELECT 43 * 41 AS col2, - 97 DIV - 2
----
1763
48

skipif mysql # not compatible
query II rowsort label-2215
SELECT 43 * 41 AS col2, - 97 / - 2
----
1763
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL - 20 + - 77 + + 58 * - MAX( 68 ) AS col1
----
-4041

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - 20 + - 77 + + 58 * - MAX ( 68 ) AS col1
----
-4041

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL 17 + 68 + MAX( DISTINCT - 32 ) * 2
----
21

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL 17 + 68 + MAX ( DISTINCT - 32 ) * 2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT DISTINCT 76 + 59 - + - 95 * CASE 27 WHEN - + COUNT( * ) + - - COUNT( * ) THEN + + 61 WHEN - 54 THEN 26 + - - 76 + + 32 * 7 ELSE - 31 END
----
-2810

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT 76 + 59 - + - 95 * CASE 27 WHEN - + COUNT ( * ) + - - COUNT ( * ) THEN + + 61 WHEN - 54 THEN 26 + - - 76 + + 32 * 7 ELSE - 31 END
----
-2810

query II rowsort
SELECT ALL - 30, 51 - - 86 AS col1
----
-30
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT DISTINCT + 75 + + + 17 * - COUNT( * ) * + COUNT( * ) + + - 19 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT + 75 + + + 17 * - COUNT ( * ) * + COUNT ( * ) + + - 19 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - COALESCE ( + + 68, CASE 32 WHEN - + 18 + + CASE - 11 WHEN + COUNT( * ) THEN - MAX( ALL + 36 ) + + 57 WHEN - 63 THEN NULL ELSE 24 + + - 73 END - - COALESCE ( - ( 30 ), - 27 / + - 28 ) * NULLIF ( + 86, - 22 ) THEN + 17 END + - 89 + - 17 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-2221
SELECT - COALESCE ( + + 68, CASE 32 WHEN - + 18 + + CASE - 11 WHEN + COUNT ( * ) THEN - MAX ( ALL + 36 ) + + 57 WHEN - 63 THEN NULL ELSE 24 + + - 73 END - - COALESCE ( - ( 30 ), - 27 / + - 28 ) * NULLIF ( + 86, - 22 ) THEN + 17 END + - 89 + - 17 ) AS col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2222
SELECT + + 6 AS col1, - CASE 54 WHEN + 13 THEN NULL WHEN + 65 * 83 + - 61 THEN AVG ( + 0 ) * - 43 - + CAST( NULL AS SIGNED ) + 49 * - + 83 * 52 END, + 14 AS col0
----
6
NULL
14

skipif mysql # not compatible
query III rowsort label-2222
SELECT + + 6 AS col1, - CASE 54 WHEN + 13 THEN NULL WHEN + 65 * 83 + - 61 THEN AVG ( + 0 ) * - 43 - + CAST ( NULL AS INTEGER ) + 49 * - + 83 * 52 END, + 14 AS col0
----
6
NULL
14

query I rowsort
SELECT - - 33 * + 14 + - + ( + 63 ) * 17 AS col0
----
-609

query I rowsort
SELECT + 92 - - + 71
----
163

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

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

query II rowsort
SELECT DISTINCT 30, + 30 AS col2
----
30
30

query II rowsort
SELECT 7 AS col2, - 81 AS col1
----
7
-81

query II rowsort
SELECT + 75, + ( 59 ) * 6 AS col2
----
75
354

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2231
SELECT ALL NULLIF ( + - ( - COUNT( * ) ), + CAST( + + COALESCE ( + 82, - 83, + NULLIF ( 50, - - 40 + + 54 - - 30 ) + - - 33 * - 57 - + COALESCE ( CAST( 63 AS SIGNED ), - AVG ( DISTINCT - + 88 ) ) * - 26 ) AS DECIMAL ) / - + 37 * + 73 * - 15 + + 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL NULLIF ( + - ( - COUNT ( * ) ), + CAST ( + + COALESCE ( + 82, - 83, + NULLIF ( 50, - - 40 + + 54 - - 30 ) + - - 33 * - 57 - + COALESCE ( CAST ( 63 AS INTEGER ), - AVG ( DISTINCT - + 88 ) ) * - 26 ) AS REAL ) / - + 37 * + 73 * - 15 + + 44 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL SUM( 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL SUM ( 63 ) AS col1
----
63

query I rowsort
SELECT + 99 + - 18
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2234
SELECT ALL - 28 * + ( + CAST( NULL AS SIGNED ) ) * + 75 AS col1, 35 * + + 0 DIV 3
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2234
SELECT ALL - 28 * + ( + CAST ( NULL AS INTEGER ) ) * + 75 AS col1, 35 * + + 0 / 3
----
NULL
0

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

query II rowsort
SELECT - - 18 AS col0, 56
----
18
56

query I rowsort
SELECT ALL 5 * + + 58 + - - ( - 49 ) + 89
----
330

query I rowsort
SELECT + 44 * - 93 * + + 69
----
-282348

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT 67 * + 86 * CASE - - AVG ( + 20 ) WHEN - - 39 THEN + ( - CASE + 69 WHEN COUNT( * ) THEN NULL WHEN + 50 + + + 66 * + - 69 THEN NULL WHEN 55 THEN + + 16 / + MIN( - ( ( + + 80 ) ) ) + - CASE + CASE - - 67 WHEN + 86 / - - 11 THEN - 56 WHEN COUNT( * ) - 36 THEN - COUNT( * ) * - 25 WHEN 85 + + NULLIF ( + 81, COUNT( * ) ) * - 3 THEN NULL WHEN + 0 + COUNT( * ) * - ( 46 ) THEN - 83 END WHEN - 17 THEN ( 35 ) + 93 / - 41 WHEN - 78 * - SUM( + 75 ) THEN + 7 * + 7 ELSE NULL END ELSE COALESCE ( - 46, COUNT( * ) + 88, MIN( DISTINCT 95 ) ) END ) * 30 WHEN - 2 * 79 + 12 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT 67 * + 86 * CASE - - AVG ( + 20 ) WHEN - - 39 THEN + ( - CASE + 69 WHEN COUNT ( * ) THEN NULL WHEN + 50 + + + 66 * + - 69 THEN NULL WHEN 55 THEN + + 16 / + MIN ( - ( ( + + 80 ) ) ) + - CASE + CASE - - 67 WHEN + 86 / - - 11 THEN - 56 WHEN COUNT ( * ) - 36 THEN - COUNT ( * ) * - 25 WHEN 85 + + NULLIF ( + 81, COUNT ( * ) ) * - 3 THEN NULL WHEN + 0 + COUNT ( * ) * - ( 46 ) THEN - 83 END WHEN - 17 THEN ( 35 ) + 93 / - 41 WHEN - 78 * - SUM ( + 75 ) THEN + 7 * + 7 ELSE NULL END ELSE COALESCE ( - 46, COUNT ( * ) + 88, MIN ( DISTINCT 95 ) ) END ) * 30 WHEN - 2 * 79 + 12 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT + 96 + - MIN( DISTINCT + - 19 ) * - 31 - + 94
----
-587

skipif mysql # not compatible
query I rowsort label-2240
SELECT + 96 + - MIN ( DISTINCT + - 19 ) * - 31 - + 94
----
-587

query I rowsort
SELECT + 13 * + - 94 AS col0
----
-1222

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT 51 * - 39 + - COUNT( * ) AS col0
----
-1990

skipif mysql # not compatible
query I rowsort label-2242
SELECT 51 * - 39 + - COUNT ( * ) AS col0
----
-1990

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT - SUM( DISTINCT + 18 ) * 32 * + COUNT( * )
----
-576

skipif mysql # not compatible
query I rowsort label-2243
SELECT - SUM ( DISTINCT + 18 ) * 32 * + COUNT ( * )
----
-576

query I rowsort
SELECT DISTINCT ( + 56 ) * + 46
----
2576

query I rowsort
SELECT + NULLIF ( 61, - 19 + + - 25 * + + 40 ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2246
SELECT CASE 35 WHEN + ( CAST( NULL AS SIGNED ) ) THEN 38 + 94 WHEN - CAST( - + 92 AS SIGNED ) + - + 51 * - - 17 / - COUNT( + 68 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT CASE 35 WHEN + ( CAST ( NULL AS INTEGER ) ) THEN 38 + 94 WHEN - CAST ( - + 92 AS INTEGER ) + - + 51 * - - 17 / - COUNT ( + 68 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2247
SELECT ALL AVG ( DISTINCT - + 66 ) * CAST( NULL AS SIGNED ) / - - COUNT( * ) + + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL AVG ( DISTINCT - + 66 ) * CAST ( NULL AS INTEGER ) / - - COUNT ( * ) + + + 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2248
SELECT + COUNT( * ) + 27 + + ( - + 32 ) * ( 54 ) * - CAST( NULL AS SIGNED ) + - 48 * - 15 + ( MAX( ALL + 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2248
SELECT + COUNT ( * ) + 27 + + ( - + 32 ) * ( 54 ) * - CAST ( NULL AS INTEGER ) + - 48 * - 15 + ( MAX ( ALL + 28 ) )
----
NULL

query I rowsort
SELECT DISTINCT ( + 25 ) * 77 * + 81 AS col0
----
155925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2250
SELECT DISTINCT 23 * COALESCE ( 40, - - 24 DIV + 10 + - + CAST( 74 AS SIGNED ) + 98 * - 44, - 31 * ( - COUNT( * ) ) ) * 15 + - NULLIF ( - - 6, + CAST( NULL AS SIGNED ) + + COUNT( * ) )
----
13794

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT 23 * COALESCE ( 40, - - 24 / + 10 + - + CAST ( 74 AS INTEGER ) + 98 * - 44, - 31 * ( - COUNT ( * ) ) ) * 15 + - NULLIF ( - - 6, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) )
----
13794

query I rowsort
SELECT ALL 91 * 86 + 66 AS col0
----
7892

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT CAST( - 40 AS SIGNED ) * + 87 + + MIN( + - 81 ) + + + 97 - + 36 + 56 * - ( 37 ) + + 6 AS col0
----
-5566

skipif mysql # not compatible
query I rowsort label-2253
SELECT CAST ( - 40 AS INTEGER ) * + 87 + + MIN ( + - 81 ) + + + 97 - + 36 + 56 * - ( 37 ) + + 6 AS col0
----
-5566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2254
SELECT ALL + ( - 68 ) * + 48 + + + COUNT( * ) + - + COALESCE ( + + MAX( DISTINCT + 46 ), - 1 ) DIV - COUNT( * ) + - - 10 - - 62 * - 66 + + 0
----
-7299

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL + ( - 68 ) * + 48 + + + COUNT ( * ) + - + COALESCE ( + + MAX ( DISTINCT + 46 ), - 1 ) / - COUNT ( * ) + - - 10 - - 62 * - 66 + + 0
----
-7299

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT - + 67 * - MAX( + - 47 ) AS col2
----
-3149

skipif mysql # not compatible
query I rowsort label-2255
SELECT - + 67 * - MAX ( + - 47 ) AS col2
----
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT DISTINCT - 56 DIV + 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - 56 / + 37 AS col2
----
-1

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

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

query I rowsort
SELECT ALL + 42 * + 82 + - 78 AS col1
----
3366

onlyif mysql # aggregate syntax: 
query II rowsort label-2259
SELECT - ( - - COUNT( * ) ), + 86 * - 54 AS col1
----
-1
-4644

skipif mysql # not compatible
query II rowsort label-2259
SELECT - ( - - COUNT ( * ) ), + 86 * - 54 AS col1
----
-1
-4644

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2260
SELECT ALL SUM( - + 92 ) AS col0, 79 - + NULLIF ( - 6, - 48 + - 18 + + 28 ) + + 30 + - 41 / - - CASE - 77 WHEN + 58 THEN - 7 + + - CAST( + + CASE - ( COUNT( * ) ) WHEN - COUNT( * ) * - 71 THEN + - ( + + 2 ) + - 64 END AS DECIMAL ) END AS col2
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-2260
SELECT ALL SUM ( - + 92 ) AS col0, 79 - + NULLIF ( - 6, - 48 + - 18 + + 28 ) + + 30 + - 41 / - - CASE - 77 WHEN + 58 THEN - 7 + + - CAST ( + + CASE - ( COUNT ( * ) ) WHEN - COUNT ( * ) * - 71 THEN + - ( + + 2 ) + - 64 END AS REAL ) END AS col2
----
-92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT - - NULLIF ( 36, ( 33 ) * + 8 ) * - 20 * + + COUNT( * ) + - - CAST( NULL AS SIGNED ) - MAX( DISTINCT + 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT - - NULLIF ( 36, ( 33 ) * + 8 ) * - 20 * + + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) - MAX ( DISTINCT + 44 ) AS col2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - + COUNT ( * ) - - 93 AS col1
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL + - NULLIF ( - ( - + NULLIF ( - 21, - + ( - + ( ( - 61 ) ) ) ) ), 0 ) * - COUNT( - 30 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL + - NULLIF ( - ( - + NULLIF ( - 21, - + ( - + ( ( - 61 ) ) ) ) ), 0 ) * - COUNT ( - 30 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT + 19 + + + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2266
SELECT + 19 + + + COUNT ( * ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT + COALESCE ( - 40, - - SUM( 9 ) + - 82 - 52 * + 59 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT + COALESCE ( - 40, - - SUM ( 9 ) + - 82 - 52 * + 59 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT - + ( - NULLIF ( - ( COUNT( * ) ), - CASE + - COUNT( * ) WHEN 94 * + COUNT( * ) * + + 18 * - 89 / - COUNT( * ) + + 37 THEN 42 WHEN ( - + 35 ) THEN ( 0 ) WHEN - - COUNT( * ) THEN NULL ELSE + - 19 END * + 3 ) ) * - 30
----
30

skipif mysql # not compatible
query I rowsort label-2268
SELECT - + ( - NULLIF ( - ( COUNT ( * ) ), - CASE + - COUNT ( * ) WHEN 94 * + COUNT ( * ) * + + 18 * - 89 / - COUNT ( * ) + + 37 THEN 42 WHEN ( - + 35 ) THEN ( 0 ) WHEN - - COUNT ( * ) THEN NULL ELSE + - 19 END * + 3 ) ) * - 30
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2269
SELECT DISTINCT COALESCE ( + 88, + + 12 * NULLIF ( + - MIN( DISTINCT - 13 ), 96 + - 40 DIV + 23 ) ) DIV + 75 AS col0, 85 AS col0
----
1
85

skipif mysql # not compatible
query II rowsort label-2269
SELECT DISTINCT COALESCE ( + 88, + + 12 * NULLIF ( + - MIN ( DISTINCT - 13 ), 96 + - 40 / + 23 ) ) / + 75 AS col0, 85 AS col0
----
1
85

query II rowsort
SELECT 55 AS col1, + 49 * + 60
----
55
2940

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT ALL + 19 DIV 94 * + 85
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + 19 / 94 * + 85
----
0

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

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

query I rowsort
SELECT ALL 72 * - 44 col1
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + 84 + - 89 + - - 46 * - - COUNT( + + 40 )
----
41

skipif mysql # not compatible
query I rowsort label-2274
SELECT + 84 + - 89 + - - 46 * - - COUNT ( + + 40 )
----
41

query I rowsort
SELECT + 54 * + 15
----
810

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT ALL 76 DIV 60 + + + NULLIF ( 91, - 9 )
----
92

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL 76 / 60 + + + NULLIF ( 91, - 9 )
----
92

query I rowsort
SELECT + NULLIF ( 99, AVG ( + 60 ) * 3 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT ALL 82 DIV + 5 + 2
----
18

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL 82 / + 5 + 2
----
18

query I rowsort
SELECT + 48 * 94
----
4512

query II rowsort
SELECT DISTINCT + 20 AS col0, ( + 35 ) + - 48 AS col2
----
20
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2281
SELECT DISTINCT + COUNT( * ) DIV + + 56 + - 60, COALESCE ( - 74, - 64 + + 95 ) AS col1
----
-60
-74

skipif mysql # not compatible
query II rowsort label-2281
SELECT DISTINCT + COUNT ( * ) / + + 56 + - 60, COALESCE ( - 74, - 64 + + 95 ) AS col1
----
-60
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2282
SELECT DISTINCT COUNT( * ) / - + 78 + + SUM( + 16 ) + + + ( + CAST( NULL AS SIGNED ) ) * 83 / 9 * - 99 / - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT COUNT ( * ) / - + 78 + + SUM ( + 16 ) + + + ( + CAST ( NULL AS INTEGER ) ) * 83 / 9 * - 99 / - 41
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2285
SELECT ALL 19 DIV - - 41 * + + 33 * - NULLIF ( + 80, + 82 DIV - CAST( - ( + COUNT( * ) ) AS SIGNED ) * CAST( + - 2 AS SIGNED ) * - CASE - + COUNT( * ) WHEN - 66 THEN - 10 * + COUNT( * ) ELSE NULL END + + COUNT( * ) - 80 ) * 8 * + 42 + - 10 * 51 * + 7 AS col0, + 53 * - 38 - - - CAST( - COUNT( * ) AS SIGNED ) DIV - COUNT( * ) AS col2
----
-3570
-2015

skipif mysql # not compatible
query II rowsort label-2285
SELECT ALL 19 / - - 41 * + + 33 * - NULLIF ( + 80, + 82 / - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) * CAST ( + - 2 AS INTEGER ) * - CASE - + COUNT ( * ) WHEN - 66 THEN - 10 * + COUNT ( * ) ELSE NULL END + + COUNT ( * ) - 80 ) * 8 * + 42 + - 10 * 51 * + 7 AS col0, + 53 * - 38 - - - CAST ( - COUNT ( * ) AS INTEGER ) / - COUNT ( * ) AS col2
----
-3570
-2015

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT DISTINCT 87 DIV - ( + - 48 ) + - 99 + 63
----
-35

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT 87 / - ( + - 48 ) + - 99 + 63
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT CAST( - 63 AS SIGNED ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-2287
SELECT CAST ( - 63 AS INTEGER ) AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT + CAST( - + 32 AS SIGNED ) * - 27
----
864

skipif mysql # not compatible
query I rowsort label-2288
SELECT + CAST ( - + 32 AS INTEGER ) * - 27
----
864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2289
SELECT + + 21 - - COUNT( * ) + - + CAST( NULL AS SIGNED ) + + 55 AS col2, - ( + 51 ) + COALESCE ( COUNT( * ), - + 57 * 79, ( 31 ) DIV - - 50 * 74 ) col0
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-2289
SELECT + + 21 - - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + + 55 AS col2, - ( + 51 ) + COALESCE ( COUNT ( * ), - + 57 * 79, ( 31 ) / - - 50 * 74 ) col0
----
NULL
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2290
SELECT 5, COALESCE ( 24, + 95 + + COUNT( * ) - - SUM( + 45 ) * 50 * 28 + + 50 + - - 75 * + 63 + 63 + - COUNT( * ) * 95 + + 11 ) AS col0
----
5
24

skipif mysql # not compatible
query II rowsort label-2290
SELECT 5, COALESCE ( 24, + 95 + + COUNT ( * ) - - SUM ( + 45 ) * 50 * 28 + + 50 + - - 75 * + 63 + 63 + - COUNT ( * ) * 95 + + 11 ) AS col0
----
5
24

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2292
SELECT - MAX( ALL + 2 ) * + CAST( NULL AS SIGNED ) * + - 42 + - 63 + - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT - MAX ( ALL + 2 ) * + CAST ( NULL AS INTEGER ) * + - 42 + - 63 + - 49 AS col2
----
NULL

query I rowsort
SELECT 11 * + 6 * - ( - 42 ) * - - 18 + + + 77
----
49973

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

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

skipif mysql # not compatible
query I rowsort label-2295
SELECT CAST ( NULL AS INTEGER ) * - 98 AS col2
----
NULL

query I rowsort
SELECT - 47 + - + 19 col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT + 56 DIV SUM( ALL ( + + 87 ) ) * + + 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 56 / SUM ( ALL ( + + 87 ) ) * + + 33 AS col1
----
0

query II rowsort
SELECT ALL + 59 * + - 17 + + 79 AS col0, - 58 * 95 AS col1
----
-924
-5510

query II rowsort
SELECT DISTINCT 40 AS col1, + 87
----
40
87

query I rowsort
SELECT DISTINCT + - 24 * - ( - 86 )
----
-2064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT - CAST( - 47 AS SIGNED ) + 36 col2
----
83

skipif mysql # not compatible
query I rowsort label-2301
SELECT - CAST ( - 47 AS INTEGER ) + 36 col2
----
83

query I rowsort
SELECT ALL + ( CASE 18 WHEN - 92 / + 38 * - 72 THEN NULL ELSE - 21 END ) * 34 AS col2
----
-714

query I rowsort
SELECT 15 * ( - 35 )
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT 18 + CASE + 34 WHEN 67 THEN NULL WHEN 63 + + - 70 * + 61 + 0 THEN ( - MIN( DISTINCT + 32 ) ) * - - 77 + 75 ELSE - 87 - COUNT( * ) END AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2304
SELECT 18 + CASE + 34 WHEN 67 THEN NULL WHEN 63 + + - 70 * + 61 + 0 THEN ( - MIN ( DISTINCT + 32 ) ) * - - 77 + 75 ELSE - 87 - COUNT ( * ) END AS col1
----
-70

query I rowsort
SELECT 27 * + 81 AS col0
----
2187

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT DISTINCT + 42 + - 60 + + 75 * + 27 + ( + - 46 ) DIV + 85
----
2007

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT + 42 + - 60 + + 75 * + 27 + ( + - 46 ) / + 85
----
2007

onlyif mysql # aggregate syntax: 
query II rowsort label-2308
SELECT ALL - 88 + - COUNT( * ), - 48 * + 82 AS col0
----
-89
-3936

skipif mysql # not compatible
query II rowsort label-2308
SELECT ALL - 88 + - COUNT ( * ), - 48 * + 82 AS col0
----
-89
-3936

query I rowsort
SELECT ALL + 33 + - 15 * + 20 * 22 + - 43 + + 93
----
-6517

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT 53 + + COUNT( * ) - + 17 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2310
SELECT 53 + + COUNT ( * ) - + 17 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2311
SELECT 59 DIV CAST( + 97 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT 59 / CAST ( + 97 AS INTEGER ) AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT 53 * + 41
----
2173

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT 43 * - 92 * - COUNT( * ) AS col1
----
3956

skipif mysql # not compatible
query I rowsort label-2314
SELECT 43 * - 92 * - COUNT ( * ) AS col1
----
3956

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT COALESCE ( + ( 19 ), 15 DIV + + 31 + 98 * + - 25 + - + 95 ) * - - 7 + 8
----
141

skipif mysql # not compatible
query I rowsort label-2315
SELECT COALESCE ( + ( 19 ), 15 / + + 31 + 98 * + - 25 + - + 95 ) * - - 7 + 8
----
141

query I rowsort
SELECT ( + 26 ) * - 58 AS col0
----
-1508

query I rowsort
SELECT ALL 52 - ( - 91 ) AS col0
----
143

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2318
SELECT ALL + + CAST( NULL AS DECIMAL ) * + 26 * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + + CAST ( NULL AS REAL ) * + 26 * - 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2319
SELECT 68 + + 7 + + - 87 + + 58 col1, 88 * + 39 * COUNT( * ) + + 3
----
46
3435

skipif mysql # not compatible
query II rowsort label-2319
SELECT 68 + + 7 + + - 87 + + 58 col1, 88 * + 39 * COUNT ( * ) + + 3
----
46
3435

query I rowsort
SELECT + 43 * + - 41 - + 41 + 79
----
-1725

query I rowsort
SELECT + 88 + - 36 + ( 25 ) AS col2
----
77

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

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

query I rowsort
SELECT - 55 * - 23 + - 5 + 57 + - 16 + 2 * - 13 AS col1
----
1275

query I rowsort
SELECT DISTINCT - ( - 88 ) * 81 AS col0
----
7128

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT ALL - 10 DIV + 17 + ( - - 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - 10 / + 17 + ( - - 43 ) AS col0
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT ALL + + COUNT( CASE + 29 WHEN + 33 * + 34 * CAST( 35 AS SIGNED ) THEN + 28 + + + 62 END ) + - 31 + + COUNT( * ) * + ( + 95 )
----
64

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + + COUNT ( CASE + 29 WHEN + 33 * + 34 * CAST ( 35 AS INTEGER ) THEN + 28 + + + 62 END ) + - 31 + + COUNT ( * ) * + ( + 95 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2328
SELECT - - ( - + 25 ) AS col2, MIN( + 8 ) AS col1
----
-25
8

skipif mysql # not compatible
query II rowsort label-2328
SELECT - - ( - + 25 ) AS col2, MIN ( + 8 ) AS col1
----
-25
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2329
SELECT CAST( NULL AS DECIMAL ) * + CASE - COUNT( * ) WHEN - 27 * + MIN( + - 92 ) + + MAX( - 9 ) THEN + COUNT( * ) WHEN + + CASE 4 WHEN 85 THEN - 26 END + + 19 + - + 88 THEN NULL ELSE 59 + - ( 79 ) END AS col0, 52 * + MIN( 76 ) AS col0
----
NULL
3952

skipif mysql # not compatible
query II rowsort label-2329
SELECT CAST ( NULL AS REAL ) * + CASE - COUNT ( * ) WHEN - 27 * + MIN ( + - 92 ) + + MAX ( - 9 ) THEN + COUNT ( * ) WHEN + + CASE 4 WHEN 85 THEN - 26 END + + 19 + - + 88 THEN NULL ELSE 59 + - ( 79 ) END AS col0, 52 * + MIN ( 76 ) AS col0
----
NULL
3952

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

skipif mysql # not compatible
query I rowsort label-2330
SELECT - MAX ( ALL - - 34 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2331
SELECT ALL - 1 + + COUNT( * ) + - 69 + - 60 DIV 93 + - ( - 61 ) * - - 91 * + 29 AS col0
----
160910

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - 1 + + COUNT ( * ) + - 69 + - 60 / 93 + - ( - 61 ) * - - 91 * + 29 AS col0
----
160910

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT DISTINCT + 47 DIV + 31 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT + 47 / + 31 AS col2
----
1

query I rowsort
SELECT 53 - - ( - 39 )
----
14

query I rowsort
SELECT ALL + 29 * - 12 AS col2
----
-348

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT 59 + - - NULLIF ( + + 59, + 92 DIV 72 ) - + 50 DIV + 37
----
117

skipif mysql # not compatible
query I rowsort label-2335
SELECT 59 + - - NULLIF ( + + 59, + 92 / 72 ) - + 50 / + 37
----
117

query I rowsort
SELECT DISTINCT - 57 + 18 AS col0
----
-39

query I rowsort
SELECT DISTINCT - 84 * 56
----
-4704

query I rowsort
SELECT 52 + + 46 + - + 23 + + ( 58 ) AS col0
----
133

query I rowsort
SELECT 88 * - + 93 AS col0
----
-8184

query I rowsort
SELECT DISTINCT - 57 - 24 AS col0
----
-81

query I rowsort
SELECT ALL - 67 * - 58
----
3886

query I rowsort
SELECT COALESCE ( - 53, - 88 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2343
SELECT + COUNT( DISTINCT + 29 ) * CASE - 26 WHEN - + 58 THEN NULL WHEN 23 * - + 30 DIV + + MAX( DISTINCT - 87 ) THEN 56 * + 17 DIV + + 52 * + + 5 ELSE + - 71 + + 64 + + 35 * - 55 + + 44 END * + - NULLIF ( - - 76, 77 ) * + + 88 * - 26 + - - 73 - 81 + - + 48 * - COALESCE ( + ( - 27 ), + 75, - 53 + - + 77 * + + ( - 82 ) * - + CAST( NULL AS SIGNED ) ) * 32
----
-328342024

skipif mysql # not compatible
query I rowsort label-2343
SELECT + COUNT ( DISTINCT + 29 ) * CASE - 26 WHEN - + 58 THEN NULL WHEN 23 * - + 30 / + + MAX ( DISTINCT - 87 ) THEN 56 * + 17 / + + 52 * + + 5 ELSE + - 71 + + 64 + + 35 * - 55 + + 44 END * + - NULLIF ( - - 76, 77 ) * + + 88 * - 26 + - - 73 - 81 + - + 48 * - COALESCE ( + ( - 27 ), + 75, - 53 + - + 77 * + + ( - 82 ) * - + CAST ( NULL AS INTEGER ) ) * 32
----
-328342024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2344
SELECT + - 62 col2, NULLIF ( CASE - 89 WHEN ( 92 ) * + - 94 / + 34 - - CASE 90 WHEN + 37 THEN NULL WHEN + 80 * 86 THEN 69 WHEN 28 THEN NULL END THEN + 87 * - CASE + 15 WHEN - ( ( + 28 ) ) THEN + - 56 WHEN - - COUNT( * ) / - - ( + 60 ) THEN ( + - NULLIF ( + 69, 57 + - - 81 + - 11 ) ) / + + 3 - 38 + 33 WHEN + COUNT( * ) - - 56 THEN NULL ELSE NULL END * - 27 WHEN - CAST( NULL AS SIGNED ) * + COALESCE ( + 56, + 21, - ( - 98 ) ) THEN + COUNT( * ) END, 41 * - 99 + 70 )
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-2344
SELECT + - 62 col2, NULLIF ( CASE - 89 WHEN ( 92 ) * + - 94 / + 34 - - CASE 90 WHEN + 37 THEN NULL WHEN + 80 * 86 THEN 69 WHEN 28 THEN NULL END THEN + 87 * - CASE + 15 WHEN - ( ( + 28 ) ) THEN + - 56 WHEN - - COUNT ( * ) / - - ( + 60 ) THEN ( + - NULLIF ( + 69, 57 + - - 81 + - 11 ) ) / + + 3 - 38 + 33 WHEN + COUNT ( * ) - - 56 THEN NULL ELSE NULL END * - 27 WHEN - CAST ( NULL AS INTEGER ) * + COALESCE ( + 56, + 21, - ( - 98 ) ) THEN + COUNT ( * ) END, 41 * - 99 + 70 )
----
-62
NULL

query I rowsort
SELECT + + 6 col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT + + 6 DIV - 67 - + - 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2346
SELECT + + 6 / - 67 - + - 72 AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2347
SELECT - + 95 * + CASE - + ( 8 ) WHEN 69 THEN - 64 WHEN 9 THEN COALESCE ( + 35, - + CAST( - + ( + 86 ) AS SIGNED ) ) WHEN 45 * CASE - 51 WHEN - 90 * - 86 / + 65 THEN NULL WHEN 87 THEN NULL WHEN 37 THEN CASE + ( + 87 ) WHEN + - CASE COUNT( * ) WHEN + 44 THEN CASE - + 60 WHEN 79 THEN + 3 WHEN COUNT( * ) THEN NULL ELSE 74 + + ( + - 1 ) END WHEN + 73 / - 51 THEN 67 + - NULLIF ( - 37 + + CAST( NULL AS SIGNED ), 21 ) END THEN 41 ELSE - ( 79 ) END WHEN - 95 / + 3 + - 47 * - 93 THEN 21 / 52 END * 96 THEN NULL END * 77 + + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT - + 95 * + CASE - + ( 8 ) WHEN 69 THEN - 64 WHEN 9 THEN COALESCE ( + 35, - + CAST ( - + ( + 86 ) AS INTEGER ) ) WHEN 45 * CASE - 51 WHEN - 90 * - 86 / + 65 THEN NULL WHEN 87 THEN NULL WHEN 37 THEN CASE + ( + 87 ) WHEN + - CASE COUNT ( * ) WHEN + 44 THEN CASE - + 60 WHEN 79 THEN + 3 WHEN COUNT ( * ) THEN NULL ELSE 74 + + ( + - 1 ) END WHEN + 73 / - 51 THEN 67 + - NULLIF ( - 37 + + CAST ( NULL AS INTEGER ), 21 ) END THEN 41 ELSE - ( 79 ) END WHEN - 95 / + 3 + - 47 * - 93 THEN 21 / 52 END * 96 THEN NULL END * 77 + + 7 AS col2
----
NULL

query II rowsort
SELECT + 23 AS col0, - 30 * - - 56 + - 46
----
23
-1726

query II rowsort
SELECT 15, - 3 AS col1
----
15
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2350
SELECT + 29 DIV 55 DIV + SUM( DISTINCT + 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2350
SELECT + 29 / 55 / + SUM ( DISTINCT + 94 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2351
SELECT ALL + - COUNT( * ) * 8 DIV + COUNT( * ) + + 81 * + 89 * + 67 + COUNT( DISTINCT - 68 ) col1
----
482996

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + - COUNT ( * ) * 8 / + COUNT ( * ) + + 81 * + 89 * + 67 + COUNT ( DISTINCT - 68 ) col1
----
482996

query II rowsort
SELECT ALL + + 78, 79 AS col0
----
78
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2353
SELECT ALL - 28 * + 47 - - COUNT( * ) + - + 74 + - - 70 DIV - MAX( 68 ) + + ( - COUNT( * ) ) AS col2
----
-1391

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL - 28 * + 47 - - COUNT ( * ) + - + 74 + - - 70 / - MAX ( 68 ) + + ( - COUNT ( * ) ) AS col2
----
-1391

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

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

query II rowsort
SELECT DISTINCT 0 + + COALESCE ( + 49, 1 * + - 24 ), + ( + + 31 ) AS col0
----
49
31

query I rowsort
SELECT ALL + 98 + 22 + - + 88 AS col0
----
32

query I rowsort
SELECT + 88 - - + 55
----
143

query I rowsort
SELECT + - 18 + 17 + - 80
----
-81

query II rowsort
SELECT - ( - 59 ) AS col1, 89
----
59
89

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT + 31 * + COUNT( * ) * + - MAX( 80 ) * + 72 + - 67 AS col1, 65 AS col2
----
-178627
65

skipif mysql # not compatible
query II rowsort label-2361
SELECT + 31 * + COUNT ( * ) * + - MAX ( 80 ) * + 72 + - 67 AS col1, 65 AS col2
----
-178627
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT - COALESCE ( - MAX( DISTINCT + 60 ), - 87 )
----
60

skipif mysql # not compatible
query I rowsort label-2362
SELECT - COALESCE ( - MAX ( DISTINCT + 60 ), - 87 )
----
60

query I rowsort
SELECT ALL ( + - 78 ) + - 26
----
-104

query I rowsort
SELECT + 60 + - + 14
----
46

query II rowsort
SELECT ALL 16, 58 - 23 AS col0
----
16
35

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

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

query I rowsort
SELECT - ( + 71 ) * + COALESCE ( - - 18, 60 )
----
-1278

query III rowsort
SELECT 14 col1, 35 * + + 6 * 71 AS col1, - ( - + 10 ) * + - 35 AS col0
----
14
14910
-350

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

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

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

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

query II rowsort
SELECT 87, - 33 col2
----
87
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT + ( + 39 ) DIV - - 21
----
1

skipif mysql # not compatible
query I rowsort label-2372
SELECT + ( + 39 ) / - - 21
----
1

query I rowsort
SELECT - ( - 13 ) + - 53 AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT DISTINCT 41 DIV 4 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT 41 / 4 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2375
SELECT ALL COALESCE ( + COUNT( * ), + 78 * 42 * + 56 + - - 9 ) AS col0, + 35 * + 16
----
1
560

skipif mysql # not compatible
query II rowsort label-2375
SELECT ALL COALESCE ( + COUNT ( * ), + 78 * 42 * + 56 + - - 9 ) AS col0, + 35 * + 16
----
1
560

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT - + 9 * - - CAST( 40 AS SIGNED ) * 80
----
-28800

skipif mysql # not compatible
query I rowsort label-2377
SELECT - + 9 * - - CAST ( 40 AS INTEGER ) * 80
----
-28800

onlyif mysql # DIV for integer division: 
query I rowsort label-2378
SELECT ( - 25 ) DIV - + 98 + - - 24 * + 45 * + + 73
----
78840

skipif mysql # not compatible
query I rowsort label-2378
SELECT ( - 25 ) / - + 98 + - - 24 * + 45 * + + 73
----
78840

query I rowsort
SELECT 18 * + 14 + - 37
----
215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2380
SELECT - 0 * CASE NULLIF ( 13, - SUM( ALL - - 92 ) ) WHEN + - 37 * ( - 46 ) THEN NULL ELSE + - 5 END DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-2380
SELECT - 0 * CASE NULLIF ( 13, - SUM ( ALL - - 92 ) ) WHEN + - 37 * ( - 46 ) THEN NULL ELSE + - 5 END / - 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT - + 58 + + CAST( NULL AS SIGNED ) + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT - + 58 + + CAST ( NULL AS INTEGER ) + 74 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL - + 46 * 20 + - 34 * + COUNT( DISTINCT - - 88 )
----
-954

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL - + 46 * 20 + - 34 * + COUNT ( DISTINCT - - 88 )
----
-954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT ALL + 59 * + + 6 * - ( COUNT( * ) ) * + - 98 + + + COALESCE ( 96, - 28 ) + 27 - + 23 / + + 25 * + - 74 + ( - 90 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL + 59 * + + 6 * - ( COUNT ( * ) ) * + - 98 + + + COALESCE ( 96, - 28 ) + 27 - + 23 / + + 25 * + - 74 + ( - 90 ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 3 * - 6
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT - ( - 44 ) * + CAST( - + 45 AS SIGNED ) AS col2
----
-1980

skipif mysql # not compatible
query I rowsort label-2386
SELECT - ( - 44 ) * + CAST ( - + 45 AS INTEGER ) AS col2
----
-1980

query I rowsort
SELECT ALL - - ( + 57 ) * - 50 + ( + - 72 ) AS col2
----
-2922

query I rowsort
SELECT DISTINCT 60 * - 53 AS col0
----
-3180

query I rowsort
SELECT - 8 * 32 * - - 13 * + + 11 AS col2
----
-36608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2390
SELECT - COALESCE ( - 35, + CAST( - + 40 AS SIGNED ), + SUM( DISTINCT + - 59 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2390
SELECT - COALESCE ( - 35, + CAST ( - + 40 AS INTEGER ), + SUM ( DISTINCT + - 59 ) ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT DISTINCT + 84 * + 43 AS col1, - COUNT( * ) AS col2
----
3612
-1

skipif mysql # not compatible
query II rowsort label-2391
SELECT DISTINCT + 84 * + 43 AS col1, - COUNT ( * ) AS col2
----
3612
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT + 71 + MAX( - + ( - + 82 ) ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-2392
SELECT + 71 + MAX ( - + ( - + 82 ) ) AS col0
----
153

query I rowsort
SELECT + NULLIF ( - 29, 98 ) * - + 95
----
2755

query II rowsort
SELECT + 47 * + 56 col1, 48 AS col0
----
2632
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT + CAST( NULL AS SIGNED ) * COUNT( ALL + + NULLIF ( + - 58, 15 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( ALL + + NULLIF ( + - 58, 15 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT - MAX( 3 ) * - + 22
----
66

skipif mysql # not compatible
query I rowsort label-2396
SELECT - MAX ( 3 ) * - + 22
----
66

query I rowsort
SELECT 43 + + 25 AS col2
----
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2399
SELECT 4 - + CAST( NULL AS SIGNED ) * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT 4 - + CAST ( NULL AS INTEGER ) * - 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT 92 DIV + + 16 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2400
SELECT 92 / + + 16 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL - 72 + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL - 72 + COUNT ( * )
----
-71

query I rowsort
SELECT DISTINCT - 34 + NULLIF ( + 62, - + 41 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2403
SELECT ALL - 23 DIV + + CASE + 29 WHEN - CAST( NULL AS SIGNED ) THEN + - ( - + 19 ) WHEN 1 THEN - 68 * - COUNT( * ) * + 89 WHEN - 8 * + 71 * - 54 + - + 47 + + + 0 + + - 20 THEN NULL WHEN 7 + + 44 THEN 90 + + - 40 ELSE COUNT( * ) END
----
-23

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL - 23 / + + CASE + 29 WHEN - CAST ( NULL AS INTEGER ) THEN + - ( - + 19 ) WHEN 1 THEN - 68 * - COUNT ( * ) * + 89 WHEN - 8 * + 71 * - 54 + - + 47 + + + 0 + + - 20 THEN NULL WHEN 7 + + 44 THEN 90 + + - 40 ELSE COUNT ( * ) END
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT 15 DIV 36 DIV - 43 col1
----
0

skipif mysql # not compatible
query I rowsort label-2404
SELECT 15 / 36 / - 43 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL - - 28 + 11 * + - 19 * + COUNT( * ) AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - - 28 + 11 * + - 19 * + COUNT ( * ) AS col2
----
-181

query I rowsort
SELECT ALL + 43 * - 57 col2
----
-2451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2407
SELECT - 40 * + 96 - - + CAST( NULL AS SIGNED ) * - SUM( + 79 ) / - 90 + 34 - - - COUNT( * ), - 75 AS col1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-2407
SELECT - 40 * + 96 - - + CAST ( NULL AS INTEGER ) * - SUM ( + 79 ) / - 90 + 34 - - - COUNT ( * ), - 75 AS col1
----
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT MIN( ALL - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-2408
SELECT MIN ( ALL - 67 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT COUNT( DISTINCT + - 16 ) + + 41 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2409
SELECT COUNT ( DISTINCT + - 16 ) + + 41 AS col2
----
42

query I rowsort
SELECT DISTINCT 88 - 72 - 54
----
-38

query II rowsort
SELECT ALL - ( - 0 ) AS col0, - 36 AS col2
----
0
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2412
SELECT + - 54 * - COUNT( * ) * CAST( NULL AS SIGNED ) - + COUNT( * ) + - CAST( - 38 AS SIGNED ) + + 90 * NULLIF ( + 97, 96 * - 37 ) + - + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT + - 54 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) - + COUNT ( * ) + - CAST ( - 38 AS INTEGER ) + + 90 * NULLIF ( + 97, 96 * - 37 ) + - + 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT ALL - COALESCE ( - COUNT( DISTINCT + ( CAST( 63 AS SIGNED ) ) ), COUNT( * ) + - - 62 * + + 65 * 5 )
----
1

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL - COALESCE ( - COUNT ( DISTINCT + ( CAST ( 63 AS INTEGER ) ) ), COUNT ( * ) + - - 62 * + + 65 * 5 )
----
1

query II rowsort
SELECT ALL - 7 AS col2, - 43 AS col0
----
-7
-43

query I rowsort
SELECT 78 * + - 78 * 62
----
-377208

query I rowsort
SELECT 88 - + - 30 AS col2
----
118

query I rowsort
SELECT 62 + - 24 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT 68 DIV ( + - 20 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2418
SELECT 68 / ( + - 20 ) AS col1
----
-3

query I rowsort
SELECT DISTINCT - 98 * - ( + + 82 ) * 69
----
554484

query I rowsort
SELECT DISTINCT - 25 * 37
----
-925

query I rowsort
SELECT 87 + + - 81 + - 14 * 40
----
-554

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

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

query I rowsort
SELECT DISTINCT + 53 * + 10
----
530

onlyif mysql # aggregate syntax: 
query II rowsort label-2424
SELECT SUM( ALL 62 ) + 89 AS col0, 92 - 92 * - 11 + - + 31 AS col2
----
151
1073

skipif mysql # not compatible
query II rowsort label-2424
SELECT SUM ( ALL 62 ) + 89 AS col0, 92 - 92 * - 11 + - + 31 AS col2
----
151
1073

onlyif mysql # DIV for integer division: 
query II rowsort label-2425
SELECT ALL 32, + 71 * + - ( - 97 ) + - 89 DIV - + 13 AS col2
----
32
6893

skipif mysql # not compatible
query II rowsort label-2425
SELECT ALL 32, + 71 * + - ( - 97 ) + - 89 / - + 13 AS col2
----
32
6893

query I rowsort
SELECT 84 + + 5 col2
----
89

query I rowsort
SELECT + NULLIF ( 77, 94 ) + - - 5 AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2428
SELECT ALL 8 + - 37 DIV - 93 * - + 88 * + ( + + 68 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL 8 + - 37 / - 93 * - + 88 * + ( + + 68 ) AS col1
----
8

query I rowsort
SELECT 37 + - 16
----
21

query I rowsort
SELECT ALL + + 3 * - 14 + - + 41 col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2431
SELECT ( + - NULLIF ( + 84, - COALESCE ( - ( + CAST( NULL AS SIGNED ) ), 78 ) ) ) + + + 69 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2431
SELECT ( + - NULLIF ( + 84, - COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), 78 ) ) ) + + + 69 AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2432
SELECT COUNT( * ) * 5 * - CASE + - CAST( - - 15 AS SIGNED ) WHEN + + 61 THEN NULL ELSE - 6 * - COUNT( * ) END + - 88 * - - 82 col1
----
-7246

skipif mysql # not compatible
query I rowsort label-2432
SELECT COUNT ( * ) * 5 * - CASE + - CAST ( - - 15 AS INTEGER ) WHEN + + 61 THEN NULL ELSE - 6 * - COUNT ( * ) END + - 88 * - - 82 col1
----
-7246

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT 39 * + 83 * + + 63 * + SUM( - 3 )
----
-611793

skipif mysql # not compatible
query I rowsort label-2433
SELECT 39 * + 83 * + + 63 * + SUM ( - 3 )
----
-611793

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT 83, - 14 - COUNT( * ) AS col0
----
83
-15

skipif mysql # not compatible
query II rowsort label-2434
SELECT 83, - 14 - COUNT ( * ) AS col0
----
83
-15

query I rowsort
SELECT ALL - - 8 * - 12 * 14
----
-1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2436
SELECT DISTINCT + 17 DIV + COUNT( + 66 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT + 17 / + COUNT ( + 66 ) AS col0
----
17

query I rowsort
SELECT 69 * 21
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT 72 + ( - COUNT( * ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2438
SELECT 72 + ( - COUNT ( * ) ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT MIN( + 60 ) AS col0, + ( + + 91 ) AS col2
----
60
91

skipif mysql # not compatible
query II rowsort label-2439
SELECT MIN ( + 60 ) AS col0, + ( + + 91 ) AS col2
----
60
91

query I rowsort
SELECT 82 * + 69 * - 67
----
-379086

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT + MIN( 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2441
SELECT + MIN ( 20 ) AS col0
----
20

query II rowsort
SELECT 88 + - 73 - + 98 * - 79 * - + 57 + + - 71 + - 61 * - - 32 * 20 AS col1, 8 AS col2
----
-480390
8

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

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

query I rowsort
SELECT 59 * - - 42
----
2478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2445
SELECT 97 + + COUNT( * ) + - - ( + ( + CAST( NULL AS SIGNED ) ) ) + 76 + COUNT( ALL - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2445
SELECT 97 + + COUNT ( * ) + - - ( + ( + CAST ( NULL AS INTEGER ) ) ) + 76 + COUNT ( ALL - 88 )
----
NULL

query I rowsort
SELECT ALL 24 * 4
----
96

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

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL MIN ( - - 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - ( - + COUNT( * ) ) + + - 21
----
-20

skipif mysql # not compatible
query I rowsort label-2448
SELECT - ( - + COUNT ( * ) ) + + - 21
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2449
SELECT - 88 DIV - CAST( + 26 AS SIGNED ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2449
SELECT - 88 / - CAST ( + 26 AS INTEGER ) AS col2
----
3

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

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + 49 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 76 * + 51 AS col2
----
-3876

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL - - ( - - 79 ) + MIN( DISTINCT - + 9 ) + - 20 - - CASE - 75 WHEN + 98 THEN NULL WHEN - 51 THEN + 94 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - - ( - - 79 ) + MIN ( DISTINCT - + 9 ) + - 20 - - CASE - 75 WHEN + 98 THEN NULL WHEN - 51 THEN + 94 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - 45 + 81 + - - 97 + + + ( 3 ) + - - 61 * - 8 * + 51
----
-24662

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT - 80 - 38 DIV - 24 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-2454
SELECT - 80 - 38 / - 24 AS col1
----
-79

query I rowsort
SELECT - + 26 + 11 + - - 87
----
72

query I rowsort
SELECT + 25 + - 58 AS col2
----
-33

query I rowsort
SELECT + 39 + - - 99
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-2458
SELECT ALL 22 * - NULLIF ( - 55, - 7 * 87 + + 59 + + 54 + - COUNT( * ) / COUNT( * ) * + 65 + 60 / 15 ) AS col0, - 97
----
1210
-97

skipif mysql # not compatible
query II rowsort label-2458
SELECT ALL 22 * - NULLIF ( - 55, - 7 * 87 + + 59 + + 54 + - COUNT ( * ) / COUNT ( * ) * + 65 + 60 / 15 ) AS col0, - 97
----
1210
-97

query I rowsort
SELECT - 92 * 55 + + 99 AS col1
----
-4961

query I rowsort
SELECT DISTINCT + + CASE - 93 WHEN 4 * - 57 / + - 44 THEN - 5 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT + NULLIF ( + 8, + - 32 / 32 * - CAST( NULL AS SIGNED ) )
----
8

skipif mysql # not compatible
query I rowsort label-2461
SELECT + NULLIF ( + 8, + - 32 / 32 * - CAST ( NULL AS INTEGER ) )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL - CAST( 33 AS SIGNED ) * - 16 AS col2
----
528

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL - CAST ( 33 AS INTEGER ) * - 16 AS col2
----
528

onlyif mysql # DIV for integer division: 
query II rowsort label-2463
SELECT - + 17 DIV - 52 - ( 67 ) AS col2, 63 - 92 AS col1
----
-67
-29

skipif mysql # not compatible
query II rowsort label-2463
SELECT - + 17 / - 52 - ( 67 ) AS col2, 63 - 92 AS col1
----
-67
-29

query I rowsort
SELECT CASE WHEN - 47 IS NOT NULL THEN - 25 + - CASE - 23 WHEN + 42 THEN 10 WHEN - - 0 THEN NULL END ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT + ( 46 ) + + 65 + + + ( 39 ) * + + 20 AS col1
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL ( 88 ) * + + COUNT( - + 93 ) * + 18 + + NULLIF ( - + COUNT( * ), + COUNT( * ) )
----
1583

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL ( 88 ) * + + COUNT ( - + 93 ) * + 18 + + NULLIF ( - + COUNT ( * ), + COUNT ( * ) )
----
1583

query I rowsort
SELECT + 47 * + 39
----
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT + ( + 59 ) + + + 3 + - 31 + 64 * COALESCE ( + 30, 80, 23 + 14 + COUNT( * ) )
----
1951

skipif mysql # not compatible
query I rowsort label-2469
SELECT + ( + 59 ) + + + 3 + - 31 + 64 * COALESCE ( + 30, 80, 23 + 14 + COUNT ( * ) )
----
1951

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT - COUNT( * ) * 11 - + 2 * + - 32
----
53

skipif mysql # not compatible
query I rowsort label-2470
SELECT - COUNT ( * ) * 11 - + 2 * + - 32
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT + COUNT( * ) + + COALESCE ( + 92, - COUNT( * ) * 42 + 62 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-2471
SELECT + COUNT ( * ) + + COALESCE ( + 92, - COUNT ( * ) * 42 + 62 ) col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT MAX( + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-2472
SELECT MAX ( + 92 )
----
92

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

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

query I rowsort
SELECT ALL + 42 * 60 + + ( - 66 ) AS col0
----
2454

query I rowsort
SELECT + 5 + + NULLIF ( - 4, + - 80 ) + + + 61 * - - 71 AS col2
----
4332

query I rowsort
SELECT DISTINCT 70 * - - 67
----
4690

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT - - ( - COUNT( - 34 ) ) + 13 + COUNT( ( - ( - + 12 ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-2477
SELECT - - ( - COUNT ( - 34 ) ) + 13 + COUNT ( ( - ( - + 12 ) ) )
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT - + 41 + - 5 + 30 * - COUNT( * ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-2479
SELECT - + 41 + - 5 + 30 * - COUNT ( * ) col2
----
-76

query I rowsort
SELECT + 26 + - - 63 AS col0
----
89

query I rowsort
SELECT + - 55 * + + 53 AS col0
----
-2915

query I rowsort
SELECT - 0 * + 93
----
0

query I rowsort
SELECT + 40 + - - 70 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + MIN( - - 74 ) col1
----
74

skipif mysql # not compatible
query I rowsort label-2484
SELECT + MIN ( - - 74 ) col1
----
74

query I rowsort
SELECT - 27 + + 3 AS col1
----
-24

query I rowsort
SELECT DISTINCT - NULLIF ( + 78, 45 ) AS col1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT ALL + 83 DIV - + 58
----
-1

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + 83 / - + 58
----
-1

query II rowsort
SELECT DISTINCT + 61 * + 67 - - 46 col0, - 12
----
4133
-12

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

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

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

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

query I rowsort
SELECT ALL - ( 5 ) * + 94 * 84 + - 26
----
-39506

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT - MAX( DISTINCT - 8 ) + + ( + 32 )
----
40

skipif mysql # not compatible
query I rowsort label-2492
SELECT - MAX ( DISTINCT - 8 ) + + ( + 32 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT + 45 DIV + 46 + - 58 - 62 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-2493
SELECT + 45 / + 46 + - 58 - 62 AS col0
----
-120

query I rowsort
SELECT + 39 + + - 50
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT COUNT( * ) * + 64 * 97 * - 40 + + 33 + + 86 col2, COUNT( - 87 ) AS col2
----
-248201
1

skipif mysql # not compatible
query II rowsort label-2495
SELECT COUNT ( * ) * + 64 * 97 * - 40 + + 33 + + 86 col2, COUNT ( - 87 ) AS col2
----
-248201
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT ALL 49 / + 44 + - 69 + - NULLIF ( CAST( NULL AS SIGNED ), 46 * - COALESCE ( + 40, + 23 ) / 26 + + COUNT( * ) + + 42 ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL 49 / + 44 + - 69 + - NULLIF ( CAST ( NULL AS INTEGER ), 46 * - COALESCE ( + 40, + 23 ) / 26 + + COUNT ( * ) + + 42 ) + - 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2497
SELECT - CAST( NULL AS SIGNED ) + 36 + - COUNT( * ) + - 75 * - - ( + - 3 ) * + MAX( ALL 49 ) * + + 55 + 14 + + 3 * - - 99 + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT - CAST ( NULL AS INTEGER ) + 36 + - COUNT ( * ) + - 75 * - - ( + - 3 ) * + MAX ( ALL 49 ) * + + 55 + 14 + + 3 * - - 99 + - 82 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2498
SELECT ALL + COUNT( * ) AS col2, CAST( + ( - - 72 ) AS SIGNED ) + + 24 AS col0
----
1
96

skipif mysql # not compatible
query II rowsort label-2498
SELECT ALL + COUNT ( * ) AS col2, CAST ( + ( - - 72 ) AS INTEGER ) + + 24 AS col0
----
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT ALL 66 + 49 + COUNT( ( - - 57 ) ) col0
----
116

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL 66 + 49 + COUNT ( ( - - 57 ) ) col0
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT ( 48 ) * 84 DIV + 42 + + + 88 - 11
----
173

skipif mysql # not compatible
query I rowsort label-2500
SELECT ( 48 ) * 84 / + 42 + + + 88 - 11
----
173

query I rowsort
SELECT ALL - 49 + + 99 - - COALESCE ( + 77, - 33 ) * - ( 0 ) + + 55 AS col2
----
105

query II rowsort
SELECT + 10, - 52 AS col0
----
10
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2503
SELECT COUNT( * ) DIV 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT COUNT ( * ) / 48 AS col0
----
0

query I rowsort
SELECT 77 * - 86 * - 8 AS col1
----
52976

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL SUM( 32 ) * 41 AS col0
----
1312

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL SUM ( 32 ) * 41 AS col0
----
1312

query I rowsort
SELECT ALL 30 + - + 20 AS col1
----
10

query II rowsort
SELECT + 18 AS col0, + 2 AS col2
----
18
2

query I rowsort
SELECT 22 + + 2 AS col0
----
24

query I rowsort
SELECT - 42 * - 9 + - 60
----
318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT ALL NULLIF ( - - 2, - 86 - ( MAX( 91 ) ) + - COUNT( * ) ) + - 87 + + CAST( NULL AS SIGNED ) * + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL NULLIF ( - - 2, - 86 - ( MAX ( 91 ) ) + - COUNT ( * ) ) + - 87 + + CAST ( NULL AS INTEGER ) * + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2511
SELECT ALL + 77 * + 99 DIV + + COUNT( * ) AS col2
----
7623

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + 77 * + 99 / + + COUNT ( * ) AS col2
----
7623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL - COUNT( * ) + + CASE + 93 WHEN - CAST( - + ( 84 ) AS SIGNED ) THEN NULL ELSE + + 44 END * 28 * 84 + + 80 + CAST( - 90 AS SIGNED )
----
103477

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - COUNT ( * ) + + CASE + 93 WHEN - CAST ( - + ( 84 ) AS INTEGER ) THEN NULL ELSE + + 44 END * 28 * 84 + + 80 + CAST ( - 90 AS INTEGER )
----
103477

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

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

query I rowsort
SELECT DISTINCT 97 - + 78 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2515
SELECT DISTINCT - 6 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT - 6 / - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT - COUNT( * ) - - 88
----
87

skipif mysql # not compatible
query I rowsort label-2516
SELECT - COUNT ( * ) - - 88
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2517
SELECT ALL 54 * - - COUNT( * ) + + 54 - 13 + + - COUNT( * ) + - 30 DIV 97 * + 95
----
94

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL 54 * - - COUNT ( * ) + + 54 - 13 + + - COUNT ( * ) + - 30 / 97 * + 95
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT CASE + 89 WHEN + 61 / - + CAST( NULL AS SIGNED ) + 60 THEN - 78 / + 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT CASE + 89 WHEN + 61 / - + CAST ( NULL AS INTEGER ) + 60 THEN - 78 / + 13 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 24 - + 60 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT 25 * - - MAX( - 5 ) AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT 25 * - - MAX ( - 5 ) AS col1
----
-125

query II rowsort
SELECT ALL 89 AS col0, - 91 * + 27 - + 95
----
89
-2552

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2522
SELECT DISTINCT 43 * CAST( NULL AS SIGNED ) - - 65 * - - ( - - ( - - CASE 8 WHEN + 82 THEN NULL ELSE - + 78 END ) ) AS col2, 9 AS col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-2522
SELECT DISTINCT 43 * CAST ( NULL AS INTEGER ) - - 65 * - - ( - - ( - - CASE 8 WHEN + 82 THEN NULL ELSE - + 78 END ) ) AS col2, 9 AS col1
----
NULL
9

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

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT - MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2524
SELECT - CAST ( NULL AS INTEGER ) / - - 50
----
NULL

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

query I rowsort
SELECT 32 + + - 27 + - 57
----
-52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT DISTINCT + - MAX( ALL - 10 ) + + 76 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT + - MAX ( ALL - 10 ) + + 76 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2529
SELECT + 67 * NULLIF ( + + 73, + - 94 * 11 * - CAST( NULL AS SIGNED ) * + 9 - + + 24 + - + 36 ) DIV - 71 + + 25 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2529
SELECT + 67 * NULLIF ( + + 73, + - 94 * 11 * - CAST ( NULL AS INTEGER ) * + 9 - + + 24 + - + 36 ) / - 71 + + 25 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2530
SELECT ALL + 6 + - 72 + + 95 + + 64 DIV + - 26
----
27

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + 6 + - 72 + + 95 + + 64 / + - 26
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2531
SELECT ALL - COUNT( * ), - 60 * CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2531
SELECT ALL - COUNT ( * ), - 60 * CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT 66 + + - 42 - + COUNT( * ) * - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT 66 + + - 42 - + COUNT ( * ) * - COUNT ( * )
----
25

query I rowsort
SELECT DISTINCT - 7 * 20
----
-140

query I rowsort
SELECT ALL + CASE - 60 WHEN + 76 THEN - + 90 + 37 ELSE NULL END + + - 33 AS col2
----
NULL

query I rowsort
SELECT 88 * - - 89
----
7832

query I rowsort
SELECT 13 * + - 99
----
-1287

onlyif mysql # aggregate syntax: 
query II rowsort label-2537
SELECT ALL - CASE - + 0 WHEN - + 71 THEN NULL WHEN + - COALESCE ( 55, + 61 * + 39 / 6 * - 60, MIN( ALL + 47 ) * + 14 + + COUNT( * ) ) + + - 91 / - - SUM( + 65 ) THEN - COUNT( * ) ELSE NULL END AS col0, 17 AS col0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-2537
SELECT ALL - CASE - + 0 WHEN - + 71 THEN NULL WHEN + - COALESCE ( 55, + 61 * + 39 / 6 * - 60, MIN ( ALL + 47 ) * + 14 + + COUNT ( * ) ) + + - 91 / - - SUM ( + 65 ) THEN - COUNT ( * ) ELSE NULL END AS col0, 17 AS col0
----
NULL
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT 87 + - COUNT( * ) + + 48 + - CAST( - 76 AS SIGNED ) AS col1
----
210

skipif mysql # not compatible
query I rowsort label-2538
SELECT 87 + - COUNT ( * ) + + 48 + - CAST ( - 76 AS INTEGER ) AS col1
----
210

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT COUNT( * ) * - 55, - 45 + + 19 AS col1
----
-55
-26

skipif mysql # not compatible
query II rowsort label-2539
SELECT COUNT ( * ) * - 55, - 45 + + 19 AS col1
----
-55
-26

query I rowsort
SELECT ALL - 17 + - - 83 AS col2
----
66

query I rowsort
SELECT DISTINCT - ( + 32 ) col1
----
-32

query I rowsort
SELECT DISTINCT - 36 - - 46
----
10

query I rowsort
SELECT ALL ( - + 90 ) * + 79 AS col2
----
-7110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL - NULLIF ( 4, + 95 ) - - CASE - - 14 WHEN + - ( + - NULLIF ( - - 82, ( - AVG ( - 28 ) ) + + - 56 ) ) + + COUNT( * ) THEN - 98 WHEN + - 51 - + - 80 THEN - + 86 + - - 85 / 40 + - + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - NULLIF ( 4, + 95 ) - - CASE - - 14 WHEN + - ( + - NULLIF ( - - 82, ( - AVG ( - 28 ) ) + + - 56 ) ) + + COUNT ( * ) THEN - 98 WHEN + - 51 - + - 80 THEN - + 86 + - - 85 / 40 + - + 52 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2546
SELECT 2 + CASE - + 70 WHEN - + 96 * 25 - + + 9 THEN - 22 * + 46 WHEN + MIN( - 60 ) THEN + 20 * - 69 * + - 81 * + - 64 - - - NULLIF ( - - 12, + + 1 ) + 8 + - - 8 * - 34 ELSE - 64 END + 15 + 7, - 30 + + - 49 + 33 + + 93 + 66 * + 60 * ( MAX( ALL - 35 ) ) * + - 29 * - 53 * - - COUNT( * ) - + 31 / + CASE - + 17 WHEN + 84 * - COUNT( * ) * - MIN( + ( 57 ) ) * 62 + + ( ( - 66 ) + + 16 ) * ( - 26 * MAX( + 11 ) ) THEN - 32 + + ( CAST( 10 AS SIGNED ) + + 10 ) WHEN 91 THEN 0 END * 89 AS col2
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-2546
SELECT 2 + CASE - + 70 WHEN - + 96 * 25 - + + 9 THEN - 22 * + 46 WHEN + MIN ( - 60 ) THEN + 20 * - 69 * + - 81 * + - 64 - - - NULLIF ( - - 12, + + 1 ) + 8 + - - 8 * - 34 ELSE - 64 END + 15 + 7, - 30 + + - 49 + 33 + + 93 + 66 * + 60 * ( MAX ( ALL - 35 ) ) * + - 29 * - 53 * - - COUNT ( * ) - + 31 / + CASE - + 17 WHEN + 84 * - COUNT ( * ) * - MIN ( + ( 57 ) ) * 62 + + ( ( - 66 ) + + 16 ) * ( - 26 * MAX ( + 11 ) ) THEN - 32 + + ( CAST ( 10 AS INTEGER ) + + 10 ) WHEN 91 THEN 0 END * 89 AS col2
----
-40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2547
SELECT COALESCE ( + - NULLIF ( 11, - - CAST( NULL AS SIGNED ) ), - ( - 92 ) ) * COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2547
SELECT COALESCE ( + - NULLIF ( 11, - - CAST ( NULL AS INTEGER ) ), - ( - 92 ) ) * COUNT ( * ) AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT ALL + ( + + CAST( 76 AS SIGNED ) ) * + + 24 AS col0
----
1824

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + ( + + CAST ( 76 AS INTEGER ) ) * + + 24 AS col0
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT + + 85 * 86 + + + 54 * + 86 - 22 * COUNT( * ) * + COUNT( * )
----
11932

skipif mysql # not compatible
query I rowsort label-2549
SELECT + + 85 * 86 + + + 54 * + 86 - 22 * COUNT ( * ) * + COUNT ( * )
----
11932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT + 22 * - CASE - 30 WHEN SUM( + 85 ) THEN - 23 WHEN 45 THEN - NULLIF ( MIN( DISTINCT + 53 ), - + 48 * - ( + - 77 ) / + - 58 * - 19 - - - 42 + + - 77 + 20 * - MAX( + COALESCE ( - COALESCE ( 65, 14, - 87 + + 33 ), - 89 * - 12, 68 ) ) + CASE - 72 WHEN 81 / - + 38 - + - 2 THEN - 37 ELSE NULL END * - 57 - - CAST( NULL AS SIGNED ) * - 47 + + 67 ) * - 23 END + + 15 * + COUNT( ALL - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT + 22 * - CASE - 30 WHEN SUM ( + 85 ) THEN - 23 WHEN 45 THEN - NULLIF ( MIN ( DISTINCT + 53 ), - + 48 * - ( + - 77 ) / + - 58 * - 19 - - - 42 + + - 77 + 20 * - MAX ( + COALESCE ( - COALESCE ( 65, 14, - 87 + + 33 ), - 89 * - 12, 68 ) ) + CASE - 72 WHEN 81 / - + 38 - + - 2 THEN - 37 ELSE NULL END * - 57 - - CAST ( NULL AS INTEGER ) * - 47 + + 67 ) * - 23 END + + 15 * + COUNT ( ALL - 33 )
----
NULL

query II rowsort
SELECT ALL - 83 * - 64 AS col0, 94 * + 63 * 56 AS col2
----
5312
331632

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2552
SELECT ALL 88 DIV + + CAST( + 5 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL 88 / + + CAST ( + 5 AS INTEGER )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT 6 * + - 1 * - - ( 8 ) + COALESCE ( - CAST( + CAST( + - 27 AS SIGNED ) AS SIGNED ), - 93 ) - - 93 + + 27 - - ( - 62 ) * - 33
----
2145

skipif mysql # not compatible
query I rowsort label-2553
SELECT 6 * + - 1 * - - ( 8 ) + COALESCE ( - CAST ( + CAST ( + - 27 AS INTEGER ) AS INTEGER ), - 93 ) - - 93 + + 27 - - ( - 62 ) * - 33
----
2145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT 68 + - CAST( + - 9 AS SIGNED ) + + - 40 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2554
SELECT 68 + - CAST ( + - 9 AS INTEGER ) + + - 40 AS col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT ( + 55 ) + + 40 DIV - 6 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2555
SELECT ( + 55 ) + + 40 / - 6 AS col2
----
49

query I rowsort
SELECT + 38 + + 99 AS col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2557
SELECT + COALESCE ( - 86, - 31, - 8 * - NULLIF ( - 15, + + 0 / + 44 ) + - 16 * CAST( 26 AS SIGNED ), - COUNT( * ) * 70 * + NULLIF ( + - 3, - 58 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-2557
SELECT + COALESCE ( - 86, - 31, - 8 * - NULLIF ( - 15, + + 0 / + 44 ) + - 16 * CAST ( 26 AS INTEGER ), - COUNT ( * ) * 70 * + NULLIF ( + - 3, - 58 ) )
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ( CASE + NULLIF ( - + 73, 44 ) WHEN + AVG ( + 47 ) THEN - COUNT( * ) END ) + - 70 + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT ( CASE + NULLIF ( - + 73, 44 ) WHEN + AVG ( + 47 ) THEN - COUNT ( * ) END ) + - 70 + - 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2560
SELECT - CAST( 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-2560
SELECT - CAST ( 67 AS INTEGER )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2561
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * 56 * + 32 - 64 DIV + - CAST( - - 5 AS SIGNED ) AS col1
----
1804

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * 56 * + 32 - 64 / + - CAST ( - - 5 AS INTEGER ) AS col1
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT - NULLIF ( + + MIN( + 90 ), - 97 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-2562
SELECT - NULLIF ( + + MIN ( + 90 ), - 97 ) AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT ALL 35 + - + COALESCE ( - + CAST( NULL AS SIGNED ), + + 41 ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL 35 + - + COALESCE ( - + CAST ( NULL AS INTEGER ), + + 41 ) col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL - NULLIF ( NULLIF ( 77, 80 * - + 83 * - COUNT( * ) + - 69 * 33 ), 90 * - 94 ) + + - MAX( DISTINCT + 75 ) * MIN( - 85 ) col0
----
6298

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL - NULLIF ( NULLIF ( 77, 80 * - + 83 * - COUNT ( * ) + - 69 * 33 ), 90 * - 94 ) + + - MAX ( DISTINCT + 75 ) * MIN ( - 85 ) col0
----
6298

query I rowsort
SELECT ALL 2 + + 4
----
6

query I rowsort
SELECT ALL 60 * - 36 AS col0
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - 66 + + 97 * COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2567
SELECT - 66 + + 97 * COUNT ( * ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2568
SELECT NULLIF ( CAST( - + ( - 46 ) AS SIGNED ), - + 13 / + - 28 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2568
SELECT NULLIF ( CAST ( - + ( - 46 ) AS INTEGER ), - + 13 / + - 28 ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT ALL - 9 * - 30 + + + ( CAST( NULL AS SIGNED ) ) + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - 9 * - 30 + + + ( CAST ( NULL AS INTEGER ) ) + - 97
----
NULL

query I rowsort
SELECT - 97 * + ( - + 40 ) + + 2
----
3882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2571
SELECT - 22 DIV - - 66 + SUM( ALL 66 ) + + - 76
----
-10

skipif mysql # not compatible
query I rowsort label-2571
SELECT - 22 / - - 66 + SUM ( ALL 66 ) + + - 76
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2572
SELECT CASE + MAX( DISTINCT + - 90 ) WHEN - 72 THEN + 72 * CAST( NULL AS DECIMAL ) * + + NULLIF ( + 74, - - 8 * - - ( + 53 ) ) WHEN + COUNT( * ) THEN CASE - - 19 WHEN 7 THEN + - 43 + + - 48 / 40 END - - + 95 + CAST( - 27 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT CASE + MAX ( DISTINCT + - 90 ) WHEN - 72 THEN + 72 * CAST ( NULL AS REAL ) * + + NULLIF ( + 74, - - 8 * - - ( + 53 ) ) WHEN + COUNT ( * ) THEN CASE - - 19 WHEN 7 THEN + - 43 + + - 48 / 40 END - - + 95 + CAST ( - 27 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT - 34 * + - 15 + - + COUNT( * ) * - 24
----
534

skipif mysql # not compatible
query I rowsort label-2573
SELECT - 34 * + - 15 + - + COUNT ( * ) * - 24
----
534

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT DISTINCT - COUNT( * ) * + 67 * - 76 * 44 AS col0
----
224048

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - COUNT ( * ) * + 67 * - 76 * 44 AS col0
----
224048

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT + 70 DIV + 66
----
1

skipif mysql # not compatible
query I rowsort label-2575
SELECT + 70 / + 66
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT - 76 DIV + 33 col0
----
-2

skipif mysql # not compatible
query I rowsort label-2576
SELECT - 76 / + 33 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT COALESCE ( - 63, COUNT( * ) - 70 * + 21 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-2577
SELECT COALESCE ( - 63, COUNT ( * ) - 70 * + 21 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-2578
SELECT - COUNT( ALL + 59 ) + - + 82 AS col0, + 54 + + - 23 col2
----
-83
31

skipif mysql # not compatible
query II rowsort label-2578
SELECT - COUNT ( ALL + 59 ) + - + 82 AS col0, + 54 + + - 23 col2
----
-83
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT - + CASE 80 WHEN + 53 + - 22 / 52 + - 59 THEN NULL WHEN + 68 * + CASE + COUNT( * ) WHEN + - 64 * - - 53 * 41 + - 14 - CAST( - 40 AS SIGNED ) THEN - 31 WHEN + + 96 THEN NULL END - 75 * - 15 THEN + - COUNT( * ) + 81 * + 39 + - 96 - 14 * + + 91 * 66 END + - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT - + CASE 80 WHEN + 53 + - 22 / 52 + - 59 THEN NULL WHEN + 68 * + CASE + COUNT ( * ) WHEN + - 64 * - - 53 * 41 + - 14 - CAST ( - 40 AS INTEGER ) THEN - 31 WHEN + + 96 THEN NULL END - 75 * - 15 THEN + - COUNT ( * ) + 81 * + 39 + - 96 - 14 * + + 91 * 66 END + - - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL + 87 * - + COUNT( * ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL + 87 * - + COUNT ( * ) col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2581
SELECT - 20 * - COUNT( + + 35 ) DIV + + 30 col0
----
0

skipif mysql # not compatible
query I rowsort label-2581
SELECT - 20 * - COUNT ( + + 35 ) / + + 30 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - - MAX( - 24 ) + 1 col0
----
-23

skipif mysql # not compatible
query I rowsort label-2582
SELECT - - MAX ( - 24 ) + 1 col0
----
-23

query I rowsort
SELECT - + 10 * 99 * - 11
----
10890

query I rowsort
SELECT ALL + 65 * + - 95 + - 79 + + 82 * + 19 AS col0
----
-4696

onlyif mysql # aggregate syntax: 
query II rowsort label-2585
SELECT - + 67 AS col0, 1 * + - 39 * - 81 * - COUNT( * ) * + 22
----
-67
-69498

skipif mysql # not compatible
query II rowsort label-2585
SELECT - + 67 AS col0, 1 * + - 39 * - 81 * - COUNT ( * ) * + 22
----
-67
-69498

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL + 30 + + - 51 + + COUNT( * ) + - + 62 + + 46 * - - 75
----
3368

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + 30 + + - 51 + + COUNT ( * ) + - + 62 + + 46 * - - 75
----
3368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT ALL - 72 + + COALESCE ( - 69, 89, - - COUNT( * ) * + + ( - 39 ) ) + - + 67 DIV - 84 * - + ( + - 28 ) col2
----
-141

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL - 72 + + COALESCE ( - 69, 89, - - COUNT ( * ) * + + ( - 39 ) ) + - + 67 / - 84 * - + ( + - 28 ) col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT - + 66 - - - 83 * + 62 + + 79 + - - 25 + + 7 * MAX( ALL 11 ) AS col2
----
-5031

skipif mysql # not compatible
query I rowsort label-2588
SELECT - + 66 - - - 83 * + 62 + + 79 + - - 25 + + 7 * MAX ( ALL 11 ) AS col2
----
-5031

query I rowsort
SELECT - 22 * - 34 + - 26
----
722

onlyif mysql # aggregate syntax: 
query II rowsort label-2590
SELECT - COUNT( * ) * - 19 + - 41 AS col2, + 93 * 72 AS col0
----
-22
6696

skipif mysql # not compatible
query II rowsort label-2590
SELECT - COUNT ( * ) * - 19 + - 41 AS col2, + 93 * 72 AS col0
----
-22
6696

onlyif mysql # aggregate syntax: 
query II rowsort label-2591
SELECT DISTINCT - NULLIF ( 45, + - 76 ) + + COUNT( * ), 73 * + NULLIF ( - - 48, 69 - - - 21 + - 11 ) * + COUNT( * ) + 50 AS col2
----
-44
3554

skipif mysql # not compatible
query II rowsort label-2591
SELECT DISTINCT - NULLIF ( 45, + - 76 ) + + COUNT ( * ), 73 * + NULLIF ( - - 48, 69 - - - 21 + - 11 ) * + COUNT ( * ) + 50 AS col2
----
-44
3554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2592
SELECT - 85 AS col2, COUNT( * ) * + 76 + CAST( + COUNT( * ) AS SIGNED ) + + 57
----
-85
134

skipif mysql # not compatible
query II rowsort label-2592
SELECT - 85 AS col2, COUNT ( * ) * + 76 + CAST ( + COUNT ( * ) AS INTEGER ) + + 57
----
-85
134

query I rowsort
SELECT - - 83 * + 48 AS col2
----
3984

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT + SUM( ALL CAST( - 55 AS SIGNED ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2595
SELECT + SUM ( ALL CAST ( - 55 AS INTEGER ) ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT + CAST( 52 AS SIGNED ) - 16 + - + SUM( + + 92 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2596
SELECT + CAST ( 52 AS INTEGER ) - 16 + - + SUM ( + + 92 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL 78 + - COUNT( * ) * + 9 * - SUM( 87 )
----
861

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL 78 + - COUNT ( * ) * + 9 * - SUM ( 87 )
----
861

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2598
SELECT - 84 DIV COALESCE ( + - COUNT( * ), - 63 ), 52 col0
----
84
52

skipif mysql # not compatible
query II rowsort label-2598
SELECT - 84 / COALESCE ( + - COUNT ( * ), - 63 ), 52 col0
----
84
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2599
SELECT - ( + COALESCE ( + 73, 44 + - 89 - COALESCE ( - COUNT( * ), + NULLIF ( + + 2, - 77 ) * + + 5 ) * 66 DIV 52 + - 74 + + - 57 ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2599
SELECT - ( + COALESCE ( + 73, 44 + - 89 - COALESCE ( - COUNT ( * ), + NULLIF ( + + 2, - 77 ) * + + 5 ) * 66 / 52 + - 74 + + - 57 ) ) AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2600
SELECT - CAST( - COUNT( * ) AS SIGNED ) * COUNT( * ) + + MIN( DISTINCT ( - 53 ) ) DIV + 88 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2600
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * ) + + MIN ( DISTINCT ( - 53 ) ) / + 88 AS col0
----
1

query I rowsort
SELECT + 66 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT + 25 * + + 83 AS col1, 77 + + NULLIF ( MIN( 71 ), - 5 - + 48 ) AS col2
----
2075
148

skipif mysql # not compatible
query II rowsort label-2602
SELECT + 25 * + + 83 AS col1, 77 + + NULLIF ( MIN ( 71 ), - 5 - + 48 ) AS col2
----
2075
148

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT + 42 DIV - - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2603
SELECT + 42 / - - 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2604
SELECT ALL 7 * + 28 AS col0, COALESCE ( NULLIF ( + 32, NULLIF ( - 33, SUM( - 59 ) ) ), - 26 )
----
196
32

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL 7 * + 28 AS col0, COALESCE ( NULLIF ( + 32, NULLIF ( - 33, SUM ( - 59 ) ) ), - 26 )
----
196
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT + 36 - COUNT( ALL + 60 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + 36 - COUNT ( ALL + 60 ) AS col0
----
35

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT ALL 67 / + + 65 - 86 + + 68 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL 67 / + + 65 - 86 + + 68 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 71 * - 71
----
-5041

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

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

query I rowsort
SELECT DISTINCT 6 * 39 AS col0
----
234

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2612
SELECT + 23 + - 71 - 30 * + + COUNT( * ) AS col1, - 40 AS col1
----
-78
-40

skipif mysql # not compatible
query II rowsort label-2612
SELECT + 23 + - 71 - 30 * + + COUNT ( * ) AS col1, - 40 AS col1
----
-78
-40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2614
SELECT DISTINCT AVG ( ALL + 92 ) / ( - 6 ) + - - 43 - + CASE + 36 WHEN 53 THEN 64 + + COUNT( * ) / + - 33 * + 14 + + COUNT( * ) - + 69 END, ( + 45 ) * 12 * - + 83 * CASE - SUM( ALL 80 ) WHEN + CAST( NULL AS SIGNED ) THEN + - 40 END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2614
SELECT DISTINCT AVG ( ALL + 92 ) / ( - 6 ) + - - 43 - + CASE + 36 WHEN 53 THEN 64 + + COUNT ( * ) / + - 33 * + 14 + + COUNT ( * ) - + 69 END, ( + 45 ) * 12 * - + 83 * CASE - SUM ( ALL 80 ) WHEN + CAST ( NULL AS INTEGER ) THEN + - 40 END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT - 94 * - COUNT( + 15 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT - 94 * - COUNT ( + 15 ) AS col2
----
94

query I rowsort
SELECT - + 56 + + 46 + + 4 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT + COUNT( * ) * - - 49 + - - 33
----
82

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT + COUNT ( * ) * - - 49 + - - 33
----
82

query I rowsort
SELECT ALL 28 * - - 1 * - 93 + + 3 col1
----
-2601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2619
SELECT + COUNT( * ) DIV - + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT + COUNT ( * ) / - + 92 AS col0
----
0

query I rowsort
SELECT - NULLIF ( + 25, - ( + + 7 ) * - 70 ) + 32 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2621
SELECT - 36 * ( + 24 ) - + + 36 + 47 DIV - NULLIF ( 20, 67 * 40 ) AS col0
----
-902

skipif mysql # not compatible
query I rowsort label-2621
SELECT - 36 * ( + 24 ) - + + 36 + 47 / - NULLIF ( 20, 67 * 40 ) AS col0
----
-902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT ALL - + 72 * + COUNT( * ) + - 87 + - - 4 * 61 * + MAX( DISTINCT + 58 ) + + + 57 DIV 47
----
13994

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - + 72 * + COUNT ( * ) + - 87 + - - 4 * 61 * + MAX ( DISTINCT + 58 ) + + + 57 / 47
----
13994

query I rowsort
SELECT ALL + 39 * + 76 - - 5 + - - 67 AS col1
----
3036

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL + NULLIF ( + + ( + 73 ), - - MAX( + + 45 ) * - ( 4 ) + - 3 )
----
73

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + NULLIF ( + + ( + 73 ), - - MAX ( + + 45 ) * - ( 4 ) + - 3 )
----
73

query I rowsort
SELECT ALL - 99 + + - 74
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT NULLIF ( - COUNT( * ), COUNT( DISTINCT - 53 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2627
SELECT NULLIF ( - COUNT ( * ), COUNT ( DISTINCT - 53 ) ) AS col2
----
-1

query I rowsort
SELECT 78 + 67
----
145

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

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

query I rowsort
SELECT 87 + 68 + - 83
----
72

query I rowsort
SELECT 26 + - 58
----
-32

query I rowsort
SELECT ALL - 31 * + 88
----
-2728

query I rowsort
SELECT ALL - 58 * + 49
----
-2842

query I rowsort
SELECT DISTINCT - 4 - - + 23 + + + 86 + - 53 * 10
----
-425

query I rowsort
SELECT DISTINCT + 49 * + + 23 AS col0
----
1127

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT DISTINCT + 5 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + 5 / + 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2637
SELECT 6 DIV + 20 * 52 * - + MAX( ALL ( 67 ) ), + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-2637
SELECT 6 / + 20 * 52 * - + MAX ( ALL ( 67 ) ), + COUNT ( * ) AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2638
SELECT COALESCE ( + ( + 54 ), + + 67 - - 58 DIV + MIN( + CAST( - - 99 AS SIGNED ) ) * + + 61, CASE + 93 WHEN NULLIF ( + 59, - 37 ) THEN NULL WHEN - 42 * + 95 + 90 THEN NULL ELSE - COUNT( * ) END DIV - 15 ) + 96 + + ( - 28 )
----
122

skipif mysql # not compatible
query I rowsort label-2638
SELECT COALESCE ( + ( + 54 ), + + 67 - - 58 / + MIN ( + CAST ( - - 99 AS INTEGER ) ) * + + 61, CASE + 93 WHEN NULLIF ( + 59, - 37 ) THEN NULL WHEN - 42 * + 95 + 90 THEN NULL ELSE - COUNT ( * ) END / - 15 ) + 96 + + ( - 28 )
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2639
SELECT 28 * 33 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT 28 * 33 / + - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT - SUM ( - 51 )
----
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT ALL 87 + + 67 + + 12 DIV + 45 col0
----
154

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL 87 + + 67 + + 12 / + 45 col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT 47 + - - 96 + - MAX( DISTINCT + 58 ) + - + COUNT( * ) * - 90 col0
----
175

skipif mysql # not compatible
query I rowsort label-2644
SELECT 47 + - - 96 + - MAX ( DISTINCT + 58 ) + - + COUNT ( * ) * - 90 col0
----
175

query I rowsort
SELECT DISTINCT 80 + - 72 col0
----
8

query I rowsort
SELECT + 59 * 28 * 52 col1
----
85904

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

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

query I rowsort
SELECT ALL 98 + 86 AS col1
----
184

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2650
SELECT COUNT( * ) AS col0, MIN( DISTINCT + 84 ) + - 95
----
1
-11

skipif mysql # not compatible
query II rowsort label-2650
SELECT COUNT ( * ) AS col0, MIN ( DISTINCT + 84 ) + - 95
----
1
-11

query I rowsort
SELECT 53 * + 76 * + 23
----
92644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2652
SELECT - 65 + + 28 * - MIN( - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT - 65 + + 28 * - MIN ( - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT ALL - 73 AS col0, 61 + MIN( - 17 ) col1
----
-73
44

skipif mysql # not compatible
query II rowsort label-2653
SELECT ALL - 73 AS col0, 61 + MIN ( - 17 ) col1
----
-73
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2654
SELECT ALL + 89 + + ( - ( - COALESCE ( + 61, CAST( NULL AS SIGNED ) ) ) ) AS col2
----
150

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL + 89 + + ( - ( - COALESCE ( + 61, CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
150

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT ALL + 78 DIV - 41 - - + 28
----
27

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + 78 / - 41 - - + 28
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2657
SELECT DISTINCT - NULLIF ( CASE - NULLIF ( + 61, + + 70 ) WHEN + 4 * + 22 + - + 11 THEN - - CAST( + 36 AS DECIMAL ) + + 1 * - 56 WHEN 71 THEN 62 ELSE CASE - - 74 WHEN + - 99 * + - ( - AVG ( DISTINCT - 60 ) ) - CASE + 97 WHEN - - 38 * + 40 THEN NULL WHEN 22 * + 91 - - 24 THEN + + COUNT( * ) ELSE NULL END + 38 / - COUNT( * ) THEN NULL ELSE - ( + + 57 ) * - - CASE + 23 WHEN + - ( 55 ) THEN 43 ELSE NULL END END / - + 37 + - + 59 + COUNT( * ) * - - 98 END, + + 61 * - 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT - NULLIF ( CASE - NULLIF ( + 61, + + 70 ) WHEN + 4 * + 22 + - + 11 THEN - - CAST ( + 36 AS REAL ) + + 1 * - 56 WHEN 71 THEN 62 ELSE CASE - - 74 WHEN + - 99 * + - ( - AVG ( DISTINCT - 60 ) ) - CASE + 97 WHEN - - 38 * + 40 THEN NULL WHEN 22 * + 91 - - 24 THEN + + COUNT ( * ) ELSE NULL END + 38 / - COUNT ( * ) THEN NULL ELSE - ( + + 57 ) * - - CASE + 23 WHEN + - ( 55 ) THEN 43 ELSE NULL END END / - + 37 + - + 59 + COUNT ( * ) * - - 98 END, + + 61 * - 31 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT DISTINCT COALESCE ( - 11, + 93 ) + + + 51 * - + SUM( + 60 ) * SUM( ALL - + 51 ) * + 34 + 99 AS col2, 79 * - 74 AS col2
----
5306128
-5846

skipif mysql # not compatible
query II rowsort label-2658
SELECT DISTINCT COALESCE ( - 11, + 93 ) + + + 51 * - + SUM ( + 60 ) * SUM ( ALL - + 51 ) * + 34 + 99 AS col2, 79 * - 74 AS col2
----
5306128
-5846

query II rowsort
SELECT + 31 col2, + 99 AS col2
----
31
99

query I rowsort
SELECT ALL 28 - + 3 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT - CAST( - + 12 AS SIGNED ) * - 8 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2661
SELECT - CAST ( - + 12 AS INTEGER ) * - 8 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT + COALESCE ( - COUNT( * ), + 1, + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-2662
SELECT + COALESCE ( - COUNT ( * ), + 1, + 58 )
----
-1

query I rowsort
SELECT 1 - - 24 AS col1
----
25

query I rowsort
SELECT 90 * + - 71 + - NULLIF ( + 75, 63 )
----
-6465

query I rowsort
SELECT 6 * + - 56 AS col0
----
-336

query I rowsort
SELECT 16 - - + 85 + - 70 AS col1
----
31

query I rowsort
SELECT DISTINCT + ( + - 36 ) * - 59 AS col1
----
2124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2668
SELECT ALL + 0 * 88 * + + 80 * + - 39 * + 38 * ( + COUNT( * ) ) * - 70 DIV - 87 * - - 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL + 0 * 88 * + + 80 * + - 39 * + 38 * ( + COUNT ( * ) ) * - 70 / - 87 * - - 53 AS col0
----
0

query II rowsort
SELECT 22 * + 9, + ( - - 57 ) AS col0
----
198
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT 37 - COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2670
SELECT 37 - COUNT ( * ) AS col0
----
36

query II rowsort
SELECT - 77, 56 AS col0
----
-77
56

query I rowsort
SELECT ALL + ( + 26 ) + + 95
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2673
SELECT ALL + 7 * + COUNT( * ) + + CAST( NULL AS SIGNED ) * - 51 + + - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL + 7 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 51 + + - 34 AS col2
----
NULL

query II rowsort
SELECT + 35 AS col1, 47 AS col2
----
35
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT 42 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-2675
SELECT 42 / 32
----
1

query I rowsort
SELECT ALL + 67 * + 65 + 42 + - + 30 + + 87 * - 67 AS col2
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT + CASE ( + 94 ) WHEN COUNT( * ) - + + 20 THEN + + 22 * - COUNT( * ) WHEN - MIN( + 19 ) THEN 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT + CASE ( + 94 ) WHEN COUNT ( * ) - + + 20 THEN + + 22 * - COUNT ( * ) WHEN - MIN ( + 19 ) THEN 71 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT + - 23 / - + COUNT ( * ) + - 96
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT + 66 + CAST( NULL AS SIGNED ) + + + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT + 66 + CAST ( NULL AS INTEGER ) + + + 36 AS col0
----
NULL

query I rowsort
SELECT + + 88 * + 41 + - - 66 AS col0
----
3674

query II rowsort
SELECT ALL + - 55, + 61 AS col0
----
-55
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2682
SELECT DISTINCT + 19 AS col2, + CAST( ( - 67 ) AS SIGNED ) + + 98 AS col2
----
19
31

skipif mysql # not compatible
query II rowsort label-2682
SELECT DISTINCT + 19 AS col2, + CAST ( ( - 67 ) AS INTEGER ) + + 98 AS col2
----
19
31

query I rowsort
SELECT + 43 + + + 23 * + 16 col2
----
411

query II rowsort
SELECT ALL + 80, 38 AS col2
----
80
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT 52 * + 35 + + COUNT( * ) AS col0
----
1821

skipif mysql # not compatible
query I rowsort label-2685
SELECT 52 * + 35 + + COUNT ( * ) AS col0
----
1821

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

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

query II rowsort
SELECT 0, - 79 * - - 29 AS col2
----
0
-2291

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT + 54 DIV - + 83 * + - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT + 54 / - + 83 * + - 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2692
SELECT + 60 * 52, COUNT( * ) AS col0, - - 12 AS col0
----
3120
1
12

skipif mysql # not compatible
query III rowsort label-2692
SELECT + 60 * 52, COUNT ( * ) AS col0, - - 12 AS col0
----
3120
1
12

query I rowsort
SELECT + 71 + - ( - 51 ) * + 36 * + ( - ( ( 28 ) ) ) * 16 AS col1
----
-822457

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT - CASE - 36 WHEN COUNT( * ) + - 60 + - + NULLIF ( - 92, 27 ) + + - 85 + + 49 THEN COUNT( ALL 42 ) ELSE - + COUNT( ALL 74 ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2694
SELECT - CASE - 36 WHEN COUNT ( * ) + - 60 + - + NULLIF ( - 92, 27 ) + + - 85 + + 49 THEN COUNT ( ALL 42 ) ELSE - + COUNT ( ALL 74 ) END AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT - 36 * + - 18 * COUNT( * ) AS col2
----
648

skipif mysql # not compatible
query I rowsort label-2695
SELECT - 36 * + - 18 * COUNT ( * ) AS col2
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL NULLIF ( - + 14, 5 ) * + + 6 * + 41 * - COUNT( * )
----
3444

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL NULLIF ( - + 14, 5 ) * + + 6 * + 41 * - COUNT ( * )
----
3444

query I rowsort
SELECT - 53 - + 9 * + 87 - - - 53 AS col0
----
-889

query II rowsort
SELECT - 29 * + - 6 col2, - 86 - - 14
----
174
-72

query I rowsort
SELECT ALL + 96 + 53 - 16 * 24 AS col1
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT NULLIF ( - 27, - + SUM( DISTINCT - + 32 ) ) * + ( 79 ) AS col2
----
-2133

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT NULLIF ( - 27, - + SUM ( DISTINCT - + 32 ) ) * + ( 79 ) AS col2
----
-2133

query I rowsort
SELECT DISTINCT ( + 75 ) + + 8 + + 87
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL + 69 + SUM( DISTINCT + - ( 37 ) )
----
32

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + 69 + SUM ( DISTINCT + - ( 37 ) )
----
32

query I rowsort
SELECT - 46 + + 57 * - 17 AS col0
----
-1015

onlyif mysql # aggregate syntax: 
query II rowsort label-2704
SELECT DISTINCT + 79 + + - 68, 23 * - 40 - 16 + ( - 60 ) * + NULLIF ( 8, - COUNT( * ) - - 21 + + 94 ) * + 60 AS col1
----
11
-29736

skipif mysql # not compatible
query II rowsort label-2704
SELECT DISTINCT + 79 + + - 68, 23 * - 40 - 16 + ( - 60 ) * + NULLIF ( 8, - COUNT ( * ) - - 21 + + 94 ) * + 60 AS col1
----
11
-29736

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

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

query I rowsort
SELECT - + 77 + - 57 + - 33 + - 86 * + COALESCE ( + - 42, - COALESCE ( + + 8, ( 15 ) ) ) * + 94
----
339361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2707
SELECT DISTINCT + MAX( ALL + 8 ) / CAST( NULL AS SIGNED ) + 92 / + 20 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + MAX ( ALL + 8 ) / CAST ( NULL AS INTEGER ) + 92 / + 20 / - COUNT ( * )
----
NULL

query II rowsort
SELECT - 86 * 59 AS col1, 45
----
-5074
45

query I rowsort
SELECT ALL - 11 * + 56
----
-616

query I rowsort
SELECT - - 50 * - COALESCE ( - 1, + 18, ( - + 77 ) * - ( 4 ) * + 93 + - 31 * 7 ) * - 29 AS col0
----
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT + NULLIF ( - COUNT( * ), + + 62 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2711
SELECT + NULLIF ( - COUNT ( * ), + + 62 ) AS col2
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2713
SELECT DISTINCT - + 4 * + ( + 8 ) * - CASE + - 1 WHEN - 27 THEN + CAST( + + CASE + 3 WHEN + COALESCE ( + 71, COUNT( * ) + + ( + 83 ) * + NULLIF ( + - 24, + 87 ) / + 23, 41 + 37 * COUNT( * ) * 0 + - + 1 + 9 / - CAST( NULL AS SIGNED ) ) + - 41 THEN NULL WHEN - 77 * - 52 THEN 0 * - 52 + - 55 - 88 + - 49 WHEN + ( + 26 ) / - 55 THEN - COUNT( * ) ELSE 3 * + 24 * + CAST( + 86 AS SIGNED ) + 30 * - + ( - CAST( ( + COUNT( * ) ) AS SIGNED ) ) END AS SIGNED ) + + - 30 * - 84 WHEN 97 + 76 * + 56 THEN 41 END + CAST( NULL AS SIGNED ) + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT - + 4 * + ( + 8 ) * - CASE + - 1 WHEN - 27 THEN + CAST ( + + CASE + 3 WHEN + COALESCE ( + 71, COUNT ( * ) + + ( + 83 ) * + NULLIF ( + - 24, + 87 ) / + 23, 41 + 37 * COUNT ( * ) * 0 + - + 1 + 9 / - CAST ( NULL AS INTEGER ) ) + - 41 THEN NULL WHEN - 77 * - 52 THEN 0 * - 52 + - 55 - 88 + - 49 WHEN + ( + 26 ) / - 55 THEN - COUNT ( * ) ELSE 3 * + 24 * + CAST ( + 86 AS INTEGER ) + 30 * - + ( - CAST ( ( + COUNT ( * ) ) AS INTEGER ) ) END AS INTEGER ) + + - 30 * - 84 WHEN 97 + 76 * + 56 THEN 41 END + CAST ( NULL AS INTEGER ) + - 66 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT ALL - 97 * + COALESCE ( + - 73, + 92, - 51 DIV + + 19 * + 48 + + 19 ) - 7 AS col2
----
7074

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL - 97 * + COALESCE ( + - 73, + 92, - 51 / + + 19 * + 48 + + 19 ) - 7 AS col2
----
7074

query I rowsort
SELECT - 2 * - 1 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL 46 * - 39 * 91 + - COUNT( * )
----
-163255

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL 46 * - 39 * 91 + - COUNT ( * )
----
-163255

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2718
SELECT ALL + 87 col1, COUNT( * ) AS col1
----
87
1

skipif mysql # not compatible
query II rowsort label-2718
SELECT ALL + 87 col1, COUNT ( * ) AS col1
----
87
1

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

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

query II rowsort
SELECT + 44 AS col1, 74 * + - ( - + 90 ) AS col1
----
44
6660

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2723
SELECT ALL 0 AS col2, 13 + CAST( NULL AS SIGNED ) - + + NULLIF ( + COUNT( * ), + + 37 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2723
SELECT ALL 0 AS col2, 13 + CAST ( NULL AS INTEGER ) - + + NULLIF ( + COUNT ( * ), + + 37 )
----
0
NULL

query I rowsort
SELECT - 48 * - 62 AS col1
----
2976

query I rowsort
SELECT - 6 + - + ( 5 )
----
-11

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

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL - 1 + - COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT ALL 71 + + 99 col1
----
170

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

skipif mysql # not compatible
query I rowsort label-2728
SELECT SUM ( - 22 ) col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT + 70 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-2729
SELECT + 70 / + 80
----
0

query I rowsort
SELECT ALL 76 + - 80 + 77 - - 92 * + + 82
----
7617

query I rowsort
SELECT + 82 - 72 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + SUM( + 72 ) - 66 + - NULLIF ( 10, - COUNT( * ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2732
SELECT + SUM ( + 72 ) - 66 + - NULLIF ( 10, - COUNT ( * ) ) AS col1
----
-4

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

skipif mysql # not compatible
query I rowsort label-2733
SELECT + 17 * ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col1
----
17

query I rowsort
SELECT ALL 28 * - 59 * + 65 AS col1
----
-107380

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT + 34 DIV ( 48 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT + 34 / ( 48 ) col1
----
0

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

query II rowsort
SELECT ALL 87 - + 15 + + 5 * 10, - 3 AS col1
----
122
-3

query I rowsort
SELECT + 70 - 80 * 29
----
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT DISTINCT - - 56 / + - CAST( NULL AS SIGNED ) * - 41 + - - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT - - 56 / + - CAST ( NULL AS INTEGER ) * - 41 + - - 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL - 65 - 5 * - 97 * COUNT( * ) AS col1
----
420

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL - 65 - 5 * - 97 * COUNT ( * ) AS col1
----
420

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT 30 * MAX( - 47 ) * + 56 * + 67 * + + 98, 88 AS col0
----
-518451360
88

skipif mysql # not compatible
query II rowsort label-2741
SELECT 30 * MAX ( - 47 ) * + 56 * + 67 * + + 98, 88 AS col0
----
-518451360
88

query I rowsort
SELECT + COALESCE ( + 71, 43 * - 33 - + 89 ) col2
----
71

query I rowsort
SELECT - 20 * 70
----
-1400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2744
SELECT - 77 + + + 6 - - - CAST( + 14 AS SIGNED ) - + 8 DIV - 23 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2744
SELECT - 77 + + + 6 - - - CAST ( + 14 AS INTEGER ) - + 8 / - 23 AS col1
----
-85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL + 39 * - COUNT( DISTINCT - ( - 91 ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL + 39 * - COUNT ( DISTINCT - ( - 91 ) ) AS col1
----
-39

query II rowsort
SELECT DISTINCT - - 79, 56 * - 90 - - 4 AS col0
----
79
-5036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT ALL - - CAST( NULL AS SIGNED ) * + + NULLIF ( - 51, 13 * - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - - CAST ( NULL AS INTEGER ) * + + NULLIF ( - 51, 13 * - 81 )
----
NULL

query I rowsort
SELECT 7 * 34 * + 76 - 47 AS col0
----
18041

query I rowsort
SELECT ALL - ( + + COALESCE ( + 81, 1, - + 20 * 91 * 94 ) )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2751
SELECT ALL - MIN( ALL 4 ) AS col0, + COUNT( * ) * + CAST( NULL AS SIGNED ) * + 83 * + 73 * - 38 / + - COUNT( * )
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-2751
SELECT ALL - MIN ( ALL 4 ) AS col0, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 83 * + 73 * - 38 / + - COUNT ( * )
----
-4
NULL

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

skipif mysql # not compatible
query I rowsort label-2752
SELECT 12 / - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT - CASE + + 92 WHEN 51 THEN 81 * COUNT( * ) END + - - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - CASE + + 92 WHEN 51 THEN 81 * COUNT ( * ) END + - - 42 AS col1
----
NULL

query I rowsort
SELECT 22 * 63 AS col2
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT - SUM( + + 79 ) + - 92 * - NULLIF ( + 19, + COUNT( * ) * + - 93 * + NULLIF ( + 91, 13 ) ) AS col0
----
1669

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT - SUM ( + + 79 ) + - 92 * - NULLIF ( + 19, + COUNT ( * ) * + - 93 * + NULLIF ( + 91, 13 ) ) AS col0
----
1669

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT ALL + 69 DIV - + 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + 69 / - + 50 AS col0
----
-1

query I rowsort
SELECT DISTINCT - NULLIF ( - 47, 8 ) + 71 - - 67 col0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL 88 * + + 13 * + CASE - NULLIF ( + 21, - + COALESCE ( + COUNT( * ), - 98 * 21 - + + 52 ) ) WHEN - 41 THEN 68 END * + NULLIF ( + 67, + + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL 88 * + + 13 * + CASE - NULLIF ( + 21, - + COALESCE ( + COUNT ( * ), - 98 * 21 - + + 52 ) ) WHEN - 41 THEN 68 END * + NULLIF ( + 67, + + 67 )
----
NULL

query I rowsort
SELECT ALL - 69 * 29
----
-2001

query I rowsort
SELECT 37 + 97
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ( CASE - 11 WHEN 46 THEN + COUNT( * ) END ) - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT ( CASE - 11 WHEN 46 THEN + COUNT ( * ) END ) - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 46 - - + 76 * 98 AS col1
----
7494

query I rowsort
SELECT 56 + 4
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2764
SELECT ALL 22 - - - 58 + - - COUNT( * ) - - 90 AS col0, 20 * 32 AS col0
----
55
640

skipif mysql # not compatible
query II rowsort label-2764
SELECT ALL 22 - - - 58 + - - COUNT ( * ) - - 90 AS col0, 20 * 32 AS col0
----
55
640

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT 4 + - 40 + - + COUNT( * ) * - - 43 + + + 5
----
-74

skipif mysql # not compatible
query I rowsort label-2765
SELECT 4 + - 40 + - + COUNT ( * ) * - - 43 + + + 5
----
-74

query I rowsort
SELECT + 59 * - 86
----
-5074

query I rowsort
SELECT ALL + 5 * - - 8 AS col2
----
40

query II rowsort
SELECT 97 + - 70 AS col2, + 28 - + - 29 AS col2
----
27
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT DISTINCT - COUNT( - 77 ) * + + 16 DIV 3 * 11 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT - COUNT ( - 77 ) * + + 16 / 3 * 11 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT 43 + - COUNT( * ) * - + 29 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2770
SELECT 43 + - COUNT ( * ) * - + 29 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT 73 DIV 61 * - 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2771
SELECT 73 / 61 * - 56 AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2772
SELECT ALL 79 * + 26 + - 21 - 60 DIV + 96 + - COUNT( * )
----
2032

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL 79 * + 26 + - 21 - 60 / + 96 + - COUNT ( * )
----
2032

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL - COUNT( ALL - 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - COUNT ( ALL - 79 ) AS col1
----
-1

query I rowsort
SELECT ALL - + 1 col1
----
-1

query I rowsort
SELECT ALL + 29 + - ( - 74 ) * ( + - 72 ) * + 49 - - + NULLIF ( - NULLIF ( + ( - + 2 ), - - 91 ), 23 )
----
-261041

query I rowsort
SELECT 45 * - - 14 * + 7 AS col1
----
4410

query I rowsort
SELECT ALL 90 + - + 79
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT COUNT( - - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-2778
SELECT COUNT ( - - 84 )
----
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2781
SELECT 57 * + COUNT( ALL 52 ) AS col1, + 38 * 88 * + 18 * - - ( + - 96 ) DIV COUNT( * )
----
57
-5778432

skipif mysql # not compatible
query II rowsort label-2781
SELECT 57 * + COUNT ( ALL 52 ) AS col1, + 38 * 88 * + 18 * - - ( + - 96 ) / COUNT ( * )
----
57
-5778432

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT ALL + 0 + + 85 + + 80 AS col2, SUM( - 78 ) col0
----
165
-78

skipif mysql # not compatible
query II rowsort label-2782
SELECT ALL + 0 + + 85 + + 80 AS col2, SUM ( - 78 ) col0
----
165
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT 24 + + CASE 18 WHEN + + COUNT( * ) THEN - 36 + + - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT 24 + + CASE 18 WHEN + + COUNT ( * ) THEN - 36 + + - 84 END
----
NULL

query II rowsort
SELECT - 18 * - - 38 + - 1 col2, - NULLIF ( 86, - 4 )
----
-685
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2785
SELECT DISTINCT COALESCE ( + - 92, 81 * - 69 DIV - + COUNT( * ), - - 26 * - COALESCE ( 0, - + 64 + + 85 ) + - 76 ) + - - COUNT( * ) + 42 * + 0 col2
----
-91

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT COALESCE ( + - 92, 81 * - 69 / - + COUNT ( * ), - - 26 * - COALESCE ( 0, - + 64 + + 85 ) + - 76 ) + - - COUNT ( * ) + 42 * + 0 col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2786
SELECT 60 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT 60 / 80
----
0

query I rowsort
SELECT ALL - 83 - - 40
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT DISTINCT + 20 DIV 13 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT + 20 / 13 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2789
SELECT 50 + - - 26 DIV - 77
----
50

skipif mysql # not compatible
query I rowsort label-2789
SELECT 50 + - - 26 / - 77
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT COUNT( 16 ) * - 10
----
-10

skipif mysql # not compatible
query I rowsort label-2790
SELECT COUNT ( 16 ) * - 10
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2791
SELECT ALL + 11 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL + 11 / + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT ALL NULLIF ( - + 17, + ( - SUM( + - 35 ) ) ) col2
----
-17

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL NULLIF ( - + 17, + ( - SUM ( + - 35 ) ) ) col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL NULLIF ( - + 72, - ( CASE - COUNT( * ) WHEN + NULLIF ( - 55, - + COUNT( * ) + + COUNT( * ) ) THEN 41 * - + CAST( - 64 AS SIGNED ) * + COUNT( * ) - - - COUNT( - 20 ) - 2 * - 57 ELSE NULL END ) + - CAST( NULL AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL NULLIF ( - + 72, - ( CASE - COUNT ( * ) WHEN + NULLIF ( - 55, - + COUNT ( * ) + + COUNT ( * ) ) THEN 41 * - + CAST ( - 64 AS INTEGER ) * + COUNT ( * ) - - - COUNT ( - 20 ) - 2 * - 57 ELSE NULL END ) + - CAST ( NULL AS INTEGER ) )
----
-72

query II rowsort
SELECT - 32 AS col0, + 90
----
-32
90

query I rowsort
SELECT DISTINCT 34 * 91 AS col0
----
3094

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2796
SELECT - COUNT( * ) + + 56 DIV + ( 86 * 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-2796
SELECT - COUNT ( * ) + + 56 / + ( 86 * 29 )
----
-1

query I rowsort
SELECT - 69 - 43
----
-112

query I rowsort
SELECT DISTINCT - 30 * - 32 AS col2
----
960

query I rowsort
SELECT - ( 64 ) - 61 AS col2
----
-125

query I rowsort
SELECT + 9 * 57 AS col2
----
513

query I rowsort
SELECT DISTINCT ( 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL NULLIF ( 92, COALESCE ( - ( - COUNT( * ) ), - 89 + 78 * - 51 ) )
----
92

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL NULLIF ( 92, COALESCE ( - ( - COUNT ( * ) ), - 89 + 78 * - 51 ) )
----
92

query I rowsort
SELECT - 73 * 37 AS col1
----
-2701

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

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL + COUNT ( * ) + - 84 AS col2
----
-83

query I rowsort
SELECT ALL 61 + + 47
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + 67 - - COALESCE ( + 79, 31 * 71, - COUNT( * ), - 52 * + 27 ) AS col2
----
146

skipif mysql # not compatible
query I rowsort label-2806
SELECT + 67 - - COALESCE ( + 79, 31 * 71, - COUNT ( * ), - 52 * + 27 ) AS col2
----
146

query I rowsort
SELECT ALL + 96 * + 6 + - 77
----
499

query I rowsort
SELECT DISTINCT + ( + ( + 62 ) ) col0
----
62

query I rowsort
SELECT DISTINCT + 29 * + 34 + - ( 28 ) AS col2
----
958

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + 46 * - 34 + + SUM( 44 ) AS col2
----
-1520

skipif mysql # not compatible
query I rowsort label-2810
SELECT + 46 * - 34 + + SUM ( 44 ) AS col2
----
-1520

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2811
SELECT DISTINCT CASE 37 WHEN 90 THEN - 1 * 88 ELSE - COALESCE ( 77, - 74 * 3, + 53 ) + - 58 * - 52 END * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT CASE 37 WHEN 90 THEN - 1 * 88 ELSE - COALESCE ( 77, - 74 * 3, + 53 ) + - 58 * - 52 END * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2812
SELECT ALL - 96 * CAST( - MIN( ALL 93 ) AS SIGNED ) + 29 AS col0
----
8957

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - 96 * CAST ( - MIN ( ALL 93 ) AS INTEGER ) + 29 AS col0
----
8957

query I rowsort
SELECT + 7 + - 59
----
-52

query I rowsort
SELECT + 71 * + 50 - + 27 AS col2
----
3523

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT CASE - 23 WHEN 25 + - 71 THEN - COUNT( * ) - 64 WHEN 18 THEN - 47 + - 26 WHEN + 86 * - 68 THEN 88 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT CASE - 23 WHEN 25 + - 71 THEN - COUNT ( * ) - 64 WHEN 18 THEN - 47 + - 26 WHEN + 86 * - 68 THEN 88 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL + 19 * 63 + + 86
----
1283

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT ALL + SUM( DISTINCT COALESCE ( 48, + ( 10 ) + + 85 * 34 ) ) * - 52 + 88 AS col2
----
-2408

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL + SUM ( DISTINCT COALESCE ( 48, + ( 10 ) + + 85 * 34 ) ) * - 52 + 88 AS col2
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT ALL 95 * - 67 + COUNT( * ) * 81 AS col1
----
-6284

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL 95 * - 67 + COUNT ( * ) * 81 AS col1
----
-6284

query I rowsort
SELECT - ( - 8 ) * 62 + - ( 98 ) * 37
----
-3130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2821
SELECT ALL 1 * 82 + + 26 DIV MAX( DISTINCT 85 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL 1 * 82 + + 26 / MAX ( DISTINCT 85 ) AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT + 14 DIV 76 + 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2822
SELECT + 14 / 76 + 61 AS col1
----
61

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

query I rowsort
SELECT + 30 + + 83
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT + NULLIF ( + 5, 70 * + CAST( 34 AS SIGNED ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2825
SELECT + NULLIF ( + 5, 70 * + CAST ( 34 AS INTEGER ) ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT + 17 * SUM( + 57 )
----
969

skipif mysql # not compatible
query I rowsort label-2826
SELECT + 17 * SUM ( + 57 )
----
969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT - COALESCE ( - 54, 91 + 75 ) * CAST( - ( 81 ) * - 44 AS SIGNED ) AS col1
----
192456

skipif mysql # not compatible
query I rowsort label-2827
SELECT - COALESCE ( - 54, 91 + 75 ) * CAST ( - ( 81 ) * - 44 AS INTEGER ) AS col1
----
192456

query I rowsort
SELECT 15 * - COALESCE ( 66, 13 ) + 19 * 79 AS col1
----
511

query I rowsort
SELECT ALL NULLIF ( + ( - 62 ), 72 * + 89 ) AS col2
----
-62

query I rowsort
SELECT - 81 + + 66
----
-15

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL MAX ( - ( - 61 ) )
----
61

query I rowsort
SELECT + - 98 + 34
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT - - 92 - COUNT( * ) * 73 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2835
SELECT - - 92 - COUNT ( * ) * 73 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2836
SELECT - - 34 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-2836
SELECT - - 34 / 83
----
0

query I rowsort
SELECT - + 23 + 86 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT - + COALESCE ( - 66, COUNT( * ) * 83 + 65 ) - - ( MIN( - 50 ) + 77 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2838
SELECT - + COALESCE ( - 66, COUNT ( * ) * 83 + 65 ) - - ( MIN ( - 50 ) + 77 ) AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT ALL + - 70 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL + - 70 / - 87
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT - + 73 DIV 25
----
-2

skipif mysql # not compatible
query I rowsort label-2842
SELECT - + 73 / 25
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - MIN( ALL - 7 ) + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2843
SELECT - MIN ( ALL - 7 ) + COUNT ( * )
----
8

query I rowsort
SELECT ALL + 71 * + CASE - 14 WHEN - 25 THEN 81 END
----
NULL

query I rowsort
SELECT DISTINCT + + 65 + 63 * 72 AS col2
----
4601

query I rowsort
SELECT ALL + - 15 + 15 col1
----
0

query I rowsort
SELECT - + 21 * ( - 30 )
----
630

query I rowsort
SELECT + + 16 + - NULLIF ( 93, - 93 )
----
-77

query I rowsort
SELECT ALL + - 90 * + 53 AS col2
----
-4770

query I rowsort
SELECT + - 41 + - 12 AS col2
----
-53

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2852
SELECT ALL + 8 DIV - MIN( ALL 92 ) + 96
----
96

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL + 8 / - MIN ( ALL 92 ) + 96
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT DISTINCT - 92 DIV 31 * 45 + + 85 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT - 92 / 31 * 45 + + 85 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT ALL ( 75 ) DIV 7 - + 8 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL ( 75 ) / 7 - + 8 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT DISTINCT 30 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT 30 / 92
----
0

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

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

query I rowsort
SELECT ALL 65 * - 26
----
-1690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT CAST( 74 AS SIGNED ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2858
SELECT CAST ( 74 AS INTEGER ) AS col1
----
74

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

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

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

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

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

query I rowsort
SELECT ALL 12 * - 66 AS col1
----
-792

query I rowsort
SELECT - 18 - - 81 * - 93 AS col1
----
-7551

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

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

query I rowsort
SELECT ALL 29 * 8 col1
----
232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT 47 * CAST( NULL AS SIGNED ) * 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT 47 * CAST ( NULL AS INTEGER ) * 35 AS col1
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT 17 / + + COUNT ( * ) col2
----
17

query I rowsort
SELECT 85 - 81 + + 65
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2871
SELECT ALL 52 DIV ( CAST( + 3 AS SIGNED ) ) * 24
----
408

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL 52 / ( CAST ( + 3 AS INTEGER ) ) * 24
----
408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2872
SELECT 91 DIV - MIN( - ( + 58 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2872
SELECT 91 / - MIN ( - ( + 58 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT ALL 63 DIV + 21 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL 63 / + 21 AS col2
----
3

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( 47, 47 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2877
SELECT 46 * - 14 + - MAX( DISTINCT + 39 ) DIV 47 + SUM( ALL 72 + 55 ) AS col0
----
-517

skipif mysql # not compatible
query I rowsort label-2877
SELECT 46 * - 14 + - MAX ( DISTINCT + 39 ) / 47 + SUM ( ALL 72 + 55 ) AS col0
----
-517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2878
SELECT COUNT( * ) - + 67 + + 71 DIV 37 DIV 57 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-2878
SELECT COUNT ( * ) - + 67 + + 71 / 37 / 57 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT 28 * COUNT( * ) + - COUNT( * ) * + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2879
SELECT 28 * COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT ALL 54 + - 69 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL + MIN( + 45 ) + - 18 * 61
----
-1053

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL + MIN ( + 45 ) + - 18 * 61
----
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT DISTINCT - + 92 + - COUNT( * ) * NULLIF ( 3, - 88 )
----
-95

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT - + 92 + - COUNT ( * ) * NULLIF ( 3, - 88 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL NULLIF ( 70, + ( + 31 ) + ( MAX( ALL + 40 ) ) ) * + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL NULLIF ( 70, + ( + 31 ) + ( MAX ( ALL + 40 ) ) ) * + COUNT ( * )
----
70

query I rowsort
SELECT - COALESCE ( - 45, - 45 - - 79 ) AS col0
----
45

query I rowsort
SELECT ALL + 31 + 61 * 53 AS col2
----
3264

query I rowsort
SELECT - ( 68 ) - 38 AS col2
----
-106

query I rowsort
SELECT 30 - - 11 AS col1
----
41

query I rowsort
SELECT - 87 * 31 * + 34 + + 20
----
-91678

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT ALL - ( + 0 ) DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL - ( + 0 ) / 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2891
SELECT ALL - 90 - + - COUNT( * ) DIV 9
----
-90

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - 90 - + - COUNT ( * ) / 9
----
-90

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

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

query I rowsort
SELECT ALL + CASE - 95 WHEN - 39 + NULLIF ( + 32, + 85 / - 16 - 50 ) THEN 71 WHEN - 13 / + 96 + 58 THEN NULL ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT + 41 * - 68 * + 71 * - COUNT( * )
----
197948

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT + 41 * - 68 * + 71 * - COUNT ( * )
----
197948

query II rowsort
SELECT DISTINCT 86 AS col0, 8 col2
----
86
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2897
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CASE 54 WHEN 51 THEN - 61 * + 13 WHEN COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ), - COUNT( * ) * - COALESCE ( - 30 / - 61, 22, + 56 ) + + 65 ) THEN NULL END * 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CASE 54 WHEN 51 THEN - 61 * + 13 WHEN COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ), - COUNT ( * ) * - COALESCE ( - 30 / - 61, 22, + 56 ) + + 65 ) THEN NULL END * 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL + COUNT( - 34 ) * CASE - SUM( DISTINCT 64 ) WHEN 96 THEN NULL WHEN 82 * - 28 THEN AVG ( DISTINCT + 81 ) END * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + COUNT ( - 34 ) * CASE - SUM ( DISTINCT 64 ) WHEN 96 THEN NULL WHEN 82 * - 28 THEN AVG ( DISTINCT + 81 ) END * 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT 51 DIV - 92 * 49 DIV ( 63 DIV + 39 ) + 1 * 31
----
31

skipif mysql # not compatible
query I rowsort label-2899
SELECT 51 / - 92 * 49 / ( 63 / + 39 ) + 1 * 31
----
31

query II rowsort
SELECT + 49 AS col0, + 61 + - - 11 AS col0
----
49
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT 50 + + 66 DIV + + 97 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2901
SELECT 50 + + 66 / + + 97 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2902
SELECT 51 DIV 83 - - COALESCE ( + 24, COUNT( * ), + 52 * + 81 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2902
SELECT 51 / 83 - - COALESCE ( + 24, COUNT ( * ), + 52 * + 81 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT - COALESCE ( ( - - COUNT( * ) ), 86 + - 94, 14 + - 82 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - COALESCE ( ( - - COUNT ( * ) ), 86 + - 94, 14 + - 82 ) col0
----
-1

query I rowsort
SELECT + 18 * - - ( - 55 ) + 28 * 13
----
-626

query I rowsort
SELECT ALL - ( 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2906
SELECT ALL - COUNT( * ) col0, - 38 DIV - 59
----
-1
0

skipif mysql # not compatible
query II rowsort label-2906
SELECT ALL - COUNT ( * ) col0, - 38 / - 59
----
-1
0

query I rowsort
SELECT ALL 76 * + + 11
----
836

query I rowsort
SELECT 82 * - 90
----
-7380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2909
SELECT DISTINCT - 17 AS col0, + 15 + + - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-2909
SELECT DISTINCT - 17 AS col0, + 15 + + - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
-17
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT ALL - 89 DIV + 51
----
-1

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - 89 / + 51
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2912
SELECT 1 DIV 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2912
SELECT 1 / 16 AS col1
----
0

query I rowsort
SELECT 72 + - CASE 62 WHEN 96 / - 53 THEN - 31 + - 94 / 36 WHEN + 9 THEN - 17 WHEN + 15 THEN COALESCE ( 59, AVG ( 32 ) ) * 35 WHEN 7 * - 66 THEN - 51 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 57 * + + 31
----
1767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT + + 94 * + + 41 + - - 64 * 29 + CAST( CAST( NULL AS SIGNED ) + 41 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT + + 94 * + + 41 + - - 64 * 29 + CAST ( CAST ( NULL AS INTEGER ) + 41 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT + 18 AS col0, COUNT( DISTINCT + 62 )
----
18
1

skipif mysql # not compatible
query II rowsort label-2916
SELECT + 18 AS col0, COUNT ( DISTINCT + 62 )
----
18
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT ALL - AVG ( DISTINCT + 36 ) + CAST( NULL AS SIGNED ) * - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL - AVG ( DISTINCT + 36 ) + CAST ( NULL AS INTEGER ) * - 63 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT SUM( - 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2919
SELECT SUM ( - 81 ) AS col0
----
-81

query I rowsort
SELECT 73 + + ( + - 20 ) AS col2
----
53

query I rowsort
SELECT + 26 * - + 11 + - 95
----
-381

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT ALL - NULLIF ( - + 12, + 44 + 26 ) DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL - NULLIF ( - + 12, + 44 + 26 ) / + 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL COUNT( * ) + + 40
----
41

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL COUNT ( * ) + + 40
----
41

query I rowsort
SELECT ALL 18 + - NULLIF ( - + 42, + 14 ) col2
----
60

query I rowsort
SELECT 53 + + 2 * - ( ( + 9 ) )
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT 45 + ( - COUNT( * ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2927
SELECT 45 + ( - COUNT ( * ) ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL + NULLIF ( + - 55, + - 24 * 82 ) - + COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + NULLIF ( + - 55, + - 24 * 82 ) - + COUNT ( * ) AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2929
SELECT 22 + COUNT( * ) - + ( 74 ) DIV 97
----
23

skipif mysql # not compatible
query I rowsort label-2929
SELECT 22 + COUNT ( * ) - + ( 74 ) / 97
----
23

query I rowsort
SELECT CASE 28 WHEN 59 THEN + 32 WHEN + 32 THEN 0 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT - + 23 * + CAST( - 22 AS SIGNED )
----
506

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT - + 23 * + CAST ( - 22 AS INTEGER )
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL 34 - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL 34 - COUNT ( * ) AS col0
----
33

query I rowsort
SELECT 25 * ( + 18 )
----
450

query I rowsort
SELECT 60 + + 59 + + ( + + 21 )
----
140

query I rowsort
SELECT - COALESCE ( + 57, + 50 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT + 12 DIV - ( + ( 44 ) ) * NULLIF ( - 28 * NULLIF ( 54, + 85 ), - NULLIF ( 26, NULLIF ( 2, + ( 53 ) - 60 ) ) - ( 75 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2936
SELECT + 12 / - ( + ( 44 ) ) * NULLIF ( - 28 * NULLIF ( 54, + 85 ), - NULLIF ( 26, NULLIF ( 2, + ( 53 ) - 60 ) ) - ( 75 ) )
----
0

query I rowsort
SELECT CASE + + 3 WHEN + 9 THEN + 95 END AS col1
----
NULL

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

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

query I rowsort
SELECT COALESCE ( + 62, - - 64 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2940
SELECT ALL + COUNT( * ) * - 1, + 22 * - 51 * 18 AS col2
----
-1
-20196

skipif mysql # not compatible
query II rowsort label-2940
SELECT ALL + COUNT ( * ) * - 1, + 22 * - 51 * 18 AS col2
----
-1
-20196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL - CAST( - 71 AS SIGNED ) * COUNT( - 90 ) + 10 col1
----
81

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - CAST ( - 71 AS INTEGER ) * COUNT ( - 90 ) + 10 col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT + COALESCE ( CAST( 8 AS SIGNED ), - 1 * 44 + - 3 )
----
8

skipif mysql # not compatible
query I rowsort label-2942
SELECT + COALESCE ( CAST ( 8 AS INTEGER ), - 1 * 44 + - 3 )
----
8

query I rowsort
SELECT - 58 * + 11
----
-638

query I rowsort
SELECT - ( 11 ) * - 54 col1
----
594

query I rowsort
SELECT ALL - 85 * - - 94
----
-7990

onlyif mysql # aggregate syntax: 
query II rowsort label-2946
SELECT - 22 * 94 AS col2, - MAX( 89 ) AS col2
----
-2068
-89

skipif mysql # not compatible
query II rowsort label-2946
SELECT - 22 * 94 AS col2, - MAX ( 89 ) AS col2
----
-2068
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2947
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) - - 23 + - - 87 / - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - 23 + - - 87 / - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT 46 * 67 * - + 1
----
-3082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2949
SELECT ALL + 82 * + CAST( + + 63 AS SIGNED ) - COUNT( * ) + + COUNT( * )
----
5166

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL + 82 * + CAST ( + + 63 AS INTEGER ) - COUNT ( * ) + + COUNT ( * )
----
5166

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT + 32 * 77 * + + COUNT( * ) + 38 AS col1
----
2502

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + 32 * 77 * + + COUNT ( * ) + 38 AS col1
----
2502

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT ALL + - COALESCE ( - - 61, CAST( NULL AS SIGNED ) )
----
-61

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + - COALESCE ( - - 61, CAST ( NULL AS INTEGER ) )
----
-61

query I rowsort
SELECT - - 11 - + 51 AS col2
----
-40

query I rowsort
SELECT ALL - 46 * - ( + 39 ) + + + 13 + 85 AS col2
----
1892

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT DISTINCT + 72 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT + 72 / - 71
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT - MIN( + - CAST( NULL AS SIGNED ) ) + - ( + 43 ) * MAX( - 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT - MIN ( + - CAST ( NULL AS INTEGER ) ) + - ( + 43 ) * MAX ( - 91 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL + + 8 * + 88 + + COUNT( ALL - - 99 ) - 16
----
689

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + + 8 * + 88 + + COUNT ( ALL - - 99 ) - 16
----
689

query I rowsort
SELECT + + 53 * + 6 + + 18 AS col2
----
336

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT ALL - 23 - - COALESCE ( 89, + 4 DIV 97 ) + - 91 * 0 DIV 80
----
66

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL - 23 - - COALESCE ( 89, + 4 / 97 ) + - 91 * 0 / 80
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT DISTINCT + ( - 68 ) * + - 13 * - + CASE 15 WHEN - 82 - + AVG ( + 17 ) THEN - CAST( NULL AS SIGNED ) - 28 * - CASE + 93 * + 8 WHEN 21 + 45 THEN - 87 * + 57 END WHEN + 67 THEN ( - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT + ( - 68 ) * + - 13 * - + CASE 15 WHEN - 82 - + AVG ( + 17 ) THEN - CAST ( NULL AS INTEGER ) - 28 * - CASE + 93 * + 8 WHEN 21 + 45 THEN - 87 * + 57 END WHEN + 67 THEN ( - CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT - + 84 * - 62 + 28 + + 62
----
5298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL + - CAST( NULL AS SIGNED ) * - 54 * + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 54 * + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT - 20 * - + NULLIF ( + + 82, + 53 + COUNT( * ) ) + 62 * 17 AS col2
----
2694

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT - 20 * - + NULLIF ( + + 82, + 53 + COUNT ( * ) ) + 62 * 17 AS col2
----
2694

query I rowsort
SELECT - 93 * 22
----
-2046

query I rowsort
SELECT + 62 * 46 col1
----
2852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT + NULLIF ( - 70, + CASE ( 18 ) WHEN + COUNT( * ) * 89 THEN NULL WHEN + 43 THEN NULL WHEN 59 THEN + 81 WHEN + COUNT( * ) THEN NULL END ) DIV 54 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2966
SELECT + NULLIF ( - 70, + CASE ( 18 ) WHEN + COUNT ( * ) * 89 THEN NULL WHEN + 43 THEN NULL WHEN 59 THEN + 81 WHEN + COUNT ( * ) THEN NULL END ) / 54 AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT 54 / + - 67 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT - 19 + + 55 * - + 60 * 71 * COUNT( DISTINCT + 5 ) AS col1
----
-234319

skipif mysql # not compatible
query I rowsort label-2968
SELECT - 19 + + 55 * - + 60 * 71 * COUNT ( DISTINCT + 5 ) AS col1
----
-234319

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2970
SELECT DISTINCT 0 * - 86 * + + 74, 16 + - COALESCE ( COUNT( * ), 35 ) + + 5 * 95 AS col1
----
0
490

skipif mysql # not compatible
query II rowsort label-2970
SELECT DISTINCT 0 * - 86 * + + 74, 16 + - COALESCE ( COUNT ( * ), 35 ) + + 5 * 95 AS col1
----
0
490

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT + NULLIF ( - COUNT( * ), + 34 ) - - 37 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2972
SELECT + NULLIF ( - COUNT ( * ), + 34 ) - - 37 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL 47 + COUNT( * ) col2
----
48

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL 47 + COUNT ( * ) col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2974
SELECT + COALESCE ( COUNT( * ), + CAST( 56 AS SIGNED ), - CAST( MIN( 26 ) AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2974
SELECT + COALESCE ( COUNT ( * ), + CAST ( 56 AS INTEGER ), - CAST ( MIN ( 26 ) AS INTEGER ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT 89 * + - 44 + + + 81 DIV 3 * 77
----
-1837

skipif mysql # not compatible
query I rowsort label-2975
SELECT 89 * + - 44 + + + 81 / 3 * 77
----
-1837

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT - 93 DIV - + ( + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT - 93 / - + ( + 94 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT ALL ( - 21 ) DIV - ( - 95 ) + - + 73
----
-73

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL ( - 21 ) / - ( - 95 ) + - + 73
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2978
SELECT + 59 DIV + 96 + + - 66 + COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2978
SELECT + 59 / + 96 + + - 66 + COUNT ( * ) AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2979
SELECT - 71 * - CAST( ( + 10 ) AS SIGNED ) - COUNT( * ) DIV - 86
----
710

skipif mysql # not compatible
query I rowsort label-2979
SELECT - 71 * - CAST ( ( + 10 ) AS INTEGER ) - COUNT ( * ) / - 86
----
710

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2980
SELECT ALL CAST( + 65 AS SIGNED ) DIV - - 93 + - - 67
----
67

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL CAST ( + 65 AS INTEGER ) / - - 93 + - - 67
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2981
SELECT + 81 + + 96 * - 74 AS col0, - CAST( NULL AS SIGNED ) + 12 AS col2
----
-7023
NULL

skipif mysql # not compatible
query II rowsort label-2981
SELECT + 81 + + 96 * - 74 AS col0, - CAST ( NULL AS INTEGER ) + 12 AS col2
----
-7023
NULL

query II rowsort
SELECT ALL + 55 col0, ( + + 99 ) * - 77 * - - 94 * 34
----
55
-24363108

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2984
SELECT + ( - 11 ) * 36 * + COALESCE ( + - ( 18 ), 81 * 58 + - COALESCE ( - 0, - CAST( - 81 AS SIGNED ), 1 + - 21, - 69 ) ) * 44 + - COALESCE ( 67 + - 21 * + 40, + NULLIF ( 78, AVG ( DISTINCT - 7 ) + - COUNT( * ) * - 5 ) ) DIV - COUNT( * )
----
312859

skipif mysql # not compatible
query I rowsort label-2984
SELECT + ( - 11 ) * 36 * + COALESCE ( + - ( 18 ), 81 * 58 + - COALESCE ( - 0, - CAST ( - 81 AS INTEGER ), 1 + - 21, - 69 ) ) * 44 + - COALESCE ( 67 + - 21 * + 40, + NULLIF ( 78, AVG ( DISTINCT - 7 ) + - COUNT ( * ) * - 5 ) ) / - COUNT ( * )
----
312859

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT + 75 * - 3 DIV 12 DIV - - 87
----
0

skipif mysql # not compatible
query I rowsort label-2985
SELECT + 75 * - 3 / 12 / - - 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT ALL + ( - 12 ) * + - 73 * - + 70 + 26 + - CAST( NULL AS SIGNED ) * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + ( - 12 ) * + - 73 * - + 70 + 26 + - CAST ( NULL AS INTEGER ) * 36 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT DISTINCT + 42 DIV - 1 + + 42 * 26 AS col0
----
1050

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT + 42 / - 1 + + 42 * 26 AS col0
----
1050

query I rowsort
SELECT ALL + - 86 * - 67
----
5762

query I rowsort
SELECT + 47 * 98 AS col0
----
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT + + 19 * - COALESCE ( - 50, + COUNT( * ), 32 )
----
950

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT + + 19 * - COALESCE ( - 50, + COUNT ( * ), 32 )
----
950

query I rowsort
SELECT ALL - + 56 * + 27 * - - 67 AS col2
----
-101304

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT - 48 * + 60 + + - SUM( DISTINCT - 63 )
----
-2817

skipif mysql # not compatible
query I rowsort label-2992
SELECT - 48 * + 60 + + - SUM ( DISTINCT - 63 )
----
-2817

query II rowsort
SELECT + - 95, 73 AS col2
----
-95
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ( - 37 ) * 71 + - COUNT( * ) AS col2
----
-2628

skipif mysql # not compatible
query I rowsort label-2994
SELECT ( - 37 ) * 71 + - COUNT ( * ) AS col2
----
-2628

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT - 41 * 13 - - MAX( DISTINCT + 13 ) + 99 * - COUNT( * ) AS col1
----
-619

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT - 41 * 13 - - MAX ( DISTINCT + 13 ) + 99 * - COUNT ( * ) AS col1
----
-619

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2997
SELECT CAST( NULL AS SIGNED ) col1, 6 + - 75
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-2997
SELECT CAST ( NULL AS INTEGER ) col1, 6 + - 75
----
NULL
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - 19 + 67 * MAX( DISTINCT + + 89 ) AS col1
----
5944

skipif mysql # not compatible
query I rowsort label-2998
SELECT - 19 + 67 * MAX ( DISTINCT + + 89 ) AS col1
----
5944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2999
SELECT DISTINCT + COALESCE ( - 32, + - 57 * SUM( DISTINCT + 79 ) DIV + 41, 48 )
----
-32

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + COALESCE ( - 32, + - 57 * SUM ( DISTINCT + 79 ) / + 41, 48 )
----
-32

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

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

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

skipif mysql # not compatible
query I rowsort label-3001
SELECT - + CAST ( NULL AS INTEGER ) + - + 3 AS col2
----
NULL

query I rowsort
SELECT + 99 + - 59 + + 48 + - - 8 * + 64 * ( 45 )
----
23128

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

query I rowsort
SELECT 86 + + 91
----
177

query I rowsort
SELECT ALL + 65 * - - 86 AS col1
----
5590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3006
SELECT SUM( - 74 ) DIV + 9
----
-8

skipif mysql # not compatible
query I rowsort label-3006
SELECT SUM ( - 74 ) / + 9
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT COUNT( - 61 ) + - 20
----
-19

skipif mysql # not compatible
query I rowsort label-3007
SELECT COUNT ( - 61 ) + - 20
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3008
SELECT ALL 59 + + 41 + - + COUNT( * ) - + + 9 + + 8 + - + 42 DIV - 15 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL 59 + + 41 + - + COUNT ( * ) - + + 9 + + 8 + - + 42 / - 15 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3009
SELECT 76 + + 89 * - + CASE CASE - 58 WHEN + - 23 * + 40 THEN + COUNT( * ) / 67 + 69 / - COUNT( * ) ELSE NULL END WHEN - 6 THEN COUNT( * ) WHEN CASE + 59 WHEN 26 * + 78 THEN NULL ELSE 60 END * 81 THEN 29 ELSE NULL END * + ( + CAST( 96 AS SIGNED ) + + 59 ) + - 96 * - MIN( 45 + 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT 76 + + 89 * - + CASE CASE - 58 WHEN + - 23 * + 40 THEN + COUNT ( * ) / 67 + 69 / - COUNT ( * ) ELSE NULL END WHEN - 6 THEN COUNT ( * ) WHEN CASE + 59 WHEN 26 * + 78 THEN NULL ELSE 60 END * 81 THEN 29 ELSE NULL END * + ( + CAST ( 96 AS INTEGER ) + + 59 ) + - 96 * - MIN ( 45 + 74 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 20 * - + 41 AS col2
----
820

query I rowsort
SELECT ALL NULLIF ( - 93, + 6 ) + - 16
----
-109

query I rowsort
SELECT 85 + + 64 * 26 * - 36
----
-59819

query I rowsort
SELECT DISTINCT - 48 + 95
----
47

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT ALL 0 + + CAST( - - 48 AS SIGNED ) + - COUNT( * ) + - MIN( ALL + 91 ) + - 78
----
-122

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL 0 + + CAST ( - - 48 AS INTEGER ) + - COUNT ( * ) + - MIN ( ALL + 91 ) + - 78
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT 75 DIV 3 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3016
SELECT 75 / 3 AS col2
----
25

query I rowsort
SELECT 10 + - + 18 - + ( + 17 ) + + 64
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL MIN( + 55 ) + + 63
----
118

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL MIN ( + 55 ) + + 63
----
118

query II rowsort
SELECT DISTINCT - 59 AS col2, - ( 64 ) + + 83 + - 89 + ( 61 ) * 47 * - 19 AS col2
----
-59
-54543

query I rowsort
SELECT ALL - 30 + - - 38 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3021
SELECT DISTINCT NULLIF ( - - 65, - - 19 ) * - - CAST( NULL AS SIGNED ) AS col2, 90 AS col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3021
SELECT DISTINCT NULLIF ( - - 65, - - 19 ) * - - CAST ( NULL AS INTEGER ) AS col2, 90 AS col2
----
NULL
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3022
SELECT ALL ( + COALESCE ( + 45, - ( + 81 ) * + 78 DIV + COUNT( * ) - 77 + + 5 * MIN( ALL + 98 ), 14 * - MAX( ALL 35 ) ) ) - 74
----
-29

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL ( + COALESCE ( + 45, - ( + 81 ) * + 78 / + COUNT ( * ) - 77 + + 5 * MIN ( ALL + 98 ), 14 * - MAX ( ALL 35 ) ) ) - 74
----
-29

query I rowsort
SELECT COALESCE ( + 89, 24 * 86 + 80, - 83 + + 49 ) * 69
----
6141

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

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

query II rowsort
SELECT + 37, 51 AS col2
----
37
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT + CASE 50 WHEN - - 63 * + + CAST( - 51 AS SIGNED ) + + 64 THEN NULL WHEN 13 * 87 THEN NULL WHEN + COALESCE ( + NULLIF ( 62, ( - SUM( DISTINCT - 78 ) ) ), 60, ( 25 ) * 75 ) THEN NULL WHEN 0 + 20 THEN MAX( DISTINCT 77 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT + CASE 50 WHEN - - 63 * + + CAST ( - 51 AS INTEGER ) + + 64 THEN NULL WHEN 13 * 87 THEN NULL WHEN + COALESCE ( + NULLIF ( 62, ( - SUM ( DISTINCT - 78 ) ) ), 60, ( 25 ) * 75 ) THEN NULL WHEN 0 + 20 THEN MAX ( DISTINCT 77 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT + COUNT( + - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-3027
SELECT + COUNT ( + - 81 )
----
1

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

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

query I rowsort
SELECT + 15 * - + 18
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT - 46 * - 62 * - CASE - + 57 WHEN 51 + 31 - - 37 THEN 25 ELSE NULL END * 84 - 92 - CAST( + 10 AS SIGNED ) * 93 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT - 46 * - 62 * - CASE - + 57 WHEN 51 + 31 - - 37 THEN 25 ELSE NULL END * 84 - 92 - CAST ( + 10 AS INTEGER ) * 93 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3031
SELECT - CASE 56 WHEN - - 25 THEN AVG ( ALL - 25 ) * - 48 WHEN 97 + COUNT( * ) THEN CAST( NULL AS SIGNED ) * + 82 END * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT - CASE 56 WHEN - - 25 THEN AVG ( ALL - 25 ) * - 48 WHEN 97 + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * + 82 END * 88
----
NULL

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

skipif mysql # not compatible
query II rowsort label-3032
SELECT ALL - 41 AS col1, COUNT ( * ) AS col1
----
-41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL - - MIN( ALL 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL - - MIN ( ALL 6 ) AS col0
----
6

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

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

query I rowsort
SELECT + 70 * + + 43 - + 1 AS col1
----
3009

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + 61 * + MIN( 82 ) + - - 44
----
5046

skipif mysql # not compatible
query I rowsort label-3036
SELECT + 61 * + MIN ( 82 ) + - - 44
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT - COALESCE ( - + 3, + + COUNT( * ) ) col0
----
3

skipif mysql # not compatible
query I rowsort label-3037
SELECT - COALESCE ( - + 3, + + COUNT ( * ) ) col0
----
3

query II rowsort
SELECT + 50 AS col0, 38 AS col1
----
50
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3039
SELECT + 44 DIV 46 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3039
SELECT + 44 / 46 + + COUNT ( * ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT + 38 + + COUNT ( * ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT + 88 + MIN( DISTINCT - + 47 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3041
SELECT + 88 + MIN ( DISTINCT - + 47 ) AS col2
----
41

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

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL + - 36 + - COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT DISTINCT + 79 + - - 52
----
131

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

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

query I rowsort
SELECT 76 * - + 40
----
-3040

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT - MIN( - 80 ) AS col2, 76
----
80
76

skipif mysql # not compatible
query II rowsort label-3046
SELECT - MIN ( - 80 ) AS col2, 76
----
80
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT 75 + + 99 + NULLIF ( 64, + 39 / - 81 * - COUNT( * ) )
----
238

skipif mysql # not compatible
query I rowsort label-3048
SELECT 75 + + 99 + NULLIF ( 64, + 39 / - 81 * - COUNT ( * ) )
----
238

onlyif mysql # aggregate syntax: 
query II rowsort label-3049
SELECT ALL MIN( - 54 ) AS col0, - 45 * 3 AS col0
----
-54
-135

skipif mysql # not compatible
query II rowsort label-3049
SELECT ALL MIN ( - 54 ) AS col0, - 45 * 3 AS col0
----
-54
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT 85 + + 73 DIV + 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3050
SELECT 85 + + 73 / + 85 AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT 91 * + CASE - + 83 WHEN + NULLIF ( ( - - 18 ), - + COALESCE ( 9, - 30 * - COUNT( * ) ) ) THEN + COUNT( * ) DIV + 37 ELSE 79 END
----
7189

skipif mysql # not compatible
query I rowsort label-3051
SELECT 91 * + CASE - + 83 WHEN + NULLIF ( ( - - 18 ), - + COALESCE ( 9, - 30 * - COUNT ( * ) ) ) THEN + COUNT ( * ) / + 37 ELSE 79 END
----
7189

query I rowsort
SELECT DISTINCT - 17 * + - 57 AS col1
----
969

query I rowsort
SELECT DISTINCT - 44 - 58
----
-102

query I rowsort
SELECT 10 - - NULLIF ( + + ( + - 69 ), + 47 ) + + - 30 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL - 26 * + - COUNT( * ) * + 3
----
78

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL - 26 * + - COUNT ( * ) * + 3
----
78

query I rowsort
SELECT DISTINCT + 72 * + + ( - + 1 ) AS col1
----
-72

query II rowsort
SELECT DISTINCT - ( + + 62 ) AS col2, 39 AS col0
----
-62
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3058
SELECT - 93 / + 76 + - - 58 + - 3 * + - COUNT( * ) * + 8 + CAST( NULL AS DECIMAL ) * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT - 93 / + 76 + - - 58 + - 3 * + - COUNT ( * ) * + 8 + CAST ( NULL AS REAL ) * 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3059
SELECT 86 DIV - COUNT( * ) + + + ( - 79 ) AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-3059
SELECT 86 / - COUNT ( * ) + + + ( - 79 ) AS col1
----
-165

query I rowsort
SELECT 89 + 4 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT - 98 * - - COUNT( * ) - - + 30 + + + NULLIF ( - NULLIF ( ( 78 ), - 99 ), + 81 ) AS col1
----
-146

skipif mysql # not compatible
query I rowsort label-3061
SELECT - 98 * - - COUNT ( * ) - - + 30 + + + NULLIF ( - NULLIF ( ( 78 ), - 99 ), + 81 ) AS col1
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3062
SELECT 35 + COUNT( * ) + - 72 + + 16 + + 20 DIV - - 96 * - - 2 * COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3062
SELECT 35 + COUNT ( * ) + - 72 + + 16 + + 20 / - - 96 * - - 2 * COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3063
SELECT + 79 * - 23, + MIN( - 78 ) + + 48 AS col1
----
-1817
-30

skipif mysql # not compatible
query II rowsort label-3063
SELECT + 79 * - 23, + MIN ( - 78 ) + + 48 AS col1
----
-1817
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3064
SELECT ALL + 61 * - + MAX( + 42 ) - + ( - 77 ) * + SUM( DISTINCT - 86 ) * + CAST( NULL AS SIGNED ) + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL + 61 * - + MAX ( + 42 ) - + ( - 77 ) * + SUM ( DISTINCT - 86 ) * + CAST ( NULL AS INTEGER ) + 48
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 8, - 66 + 93 ) AS col0
----
-8

query I rowsort
SELECT - + 26 * + 0 * - + 86 * + + 13 + + + 18 - + 60 * + 87 AS col0
----
-5202

query II rowsort
SELECT DISTINCT 67 * - 52, NULLIF ( - 12, - 5 ) + - 27 col0
----
-3484
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT COUNT( * ) + 88 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3068
SELECT COUNT ( * ) + 88 AS col0
----
89

query I rowsort
SELECT 35 * 43 * + - 40
----
-60200

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT - + 25 * - + 6 * - COUNT( * ) * - - 33 + + - CASE + 49 WHEN - 49 THEN + 15 * AVG ( + 29 ) ELSE NULL END * SUM( + 83 + 46 ) + + NULLIF ( - 24, - ( - 49 ) * + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT - + 25 * - + 6 * - COUNT ( * ) * - - 33 + + - CASE + 49 WHEN - 49 THEN + 15 * AVG ( + 29 ) ELSE NULL END * SUM ( + 83 + 46 ) + + NULLIF ( - 24, - ( - 49 ) * + 9 )
----
NULL

query II rowsort
SELECT ALL + - ( 18 ), + 62 - + 95 col2
----
-18
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL - COUNT( * ) + + - 46
----
-47

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL - COUNT ( * ) + + - 46
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3074
SELECT + SUM( DISTINCT + - 60 ) col1, COUNT( * ) AS col0
----
-60
1

skipif mysql # not compatible
query II rowsort label-3074
SELECT + SUM ( DISTINCT + - 60 ) col1, COUNT ( * ) AS col0
----
-60
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT + COALESCE ( 34, - ( + 18 ) - - COUNT( * ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3076
SELECT + COALESCE ( 34, - ( + 18 ) - - COUNT ( * ) ) AS col0
----
34

query I rowsort
SELECT ALL - 29 + - + 56
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3078
SELECT + 66 + 17 / + - ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT + 66 + 17 / + - ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - CASE + 92 WHEN 24 + - 79 + - 12 * - 7 THEN NULL WHEN + - 21 - + - 80 THEN 80 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT DISTINCT 89 DIV + 88
----
1

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT 89 / + 88
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT + COUNT( * ) * 48 + + 49 col1
----
97

skipif mysql # not compatible
query I rowsort label-3081
SELECT + COUNT ( * ) * 48 + + 49 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT - COUNT( * ) + 73 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3082
SELECT - COUNT ( * ) + 73 AS col0
----
72

query I rowsort
SELECT ALL 24 + + 52
----
76

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

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

query I rowsort
SELECT - 12 + - 34 * + 1
----
-46

query I rowsort
SELECT ALL - 57 * - + 6 col2
----
342

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

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL MIN ( ALL - - 70 )
----
70

query I rowsort
SELECT - ( - + NULLIF ( - + 57, + ( + 61 ) ) )
----
-57

query I rowsort
SELECT ALL - COALESCE ( + + 19, - 81 * 55 + - - 83 ) - 72 col2
----
-91

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

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

query I rowsort
SELECT + 40 * - NULLIF ( 32, + 21 * - - 22 )
----
-1280

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

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

query I rowsort
SELECT - 81 * + 22 * - + 39 AS col2
----
69498

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT - + MAX( DISTINCT COALESCE ( 77, - 73 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3094
SELECT - + MAX ( DISTINCT COALESCE ( 77, - 73 ) )
----
-77

query I rowsort
SELECT - + 61 + + + ( + + 34 )
----
-27

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3097
SELECT - + COALESCE ( + CAST( NULL AS SIGNED ), + - ( 53 ) DIV 13 )
----
4

skipif mysql # not compatible
query I rowsort label-3097
SELECT - + COALESCE ( + CAST ( NULL AS INTEGER ), + - ( 53 ) / 13 )
----
4

query I rowsort
SELECT - + 17 * + - 59
----
1003

query I rowsort
SELECT ALL - 95 * - 29 AS col1
----
2755

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3100
SELECT 95 AS col0, CAST( NULL AS SIGNED )
----
95
NULL

skipif mysql # not compatible
query II rowsort label-3100
SELECT 95 AS col0, CAST ( NULL AS INTEGER )
----
95
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3101
SELECT - 99 DIV + COUNT( * ) + + + 39 * - - 42
----
1539

skipif mysql # not compatible
query I rowsort label-3101
SELECT - 99 / + COUNT ( * ) + + + 39 * - - 42
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL + + 32 * MIN( DISTINCT + 92 ) + 57 AS col1
----
3001

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + + 32 * MIN ( DISTINCT + 92 ) + 57 AS col1
----
3001

query I rowsort
SELECT - 43 - + 79 - - 99 * - 80
----
-8042

query I rowsort
SELECT - - 49 * + - 16 * 13 - + + 42 AS col1
----
-10234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3105
SELECT ALL + - CAST( - + COALESCE ( + 2, - 56 + - 42, - 79 * - 97 ) AS SIGNED ) DIV - - MAX( DISTINCT + 93 ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + - CAST ( - + COALESCE ( + 2, - 56 + - 42, - 79 * - 97 ) AS INTEGER ) / - - MAX ( DISTINCT + 93 ) * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3106
SELECT ALL + 71 * - CAST( NULL AS SIGNED ) + 61 - + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + 71 * - CAST ( NULL AS INTEGER ) + 61 - + 48 AS col2
----
NULL

query II rowsort
SELECT + - 29 col1, - 29 col2
----
-29
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3108
SELECT ALL 7 * 65 * - CAST( - COUNT( * ) AS DECIMAL ) * ( + + CAST( NULL AS SIGNED ) ) - + 14 + - 90 * + 28 * + 99 + ( + MIN( + 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL 7 * 65 * - CAST ( - COUNT ( * ) AS REAL ) * ( + + CAST ( NULL AS INTEGER ) ) - + 14 + - 90 * + 28 * + 99 + ( + MIN ( + 35 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3109
SELECT ALL + 19 AS col2, 10 + - COUNT( ALL - 29 ) * - 4
----
19
14

skipif mysql # not compatible
query II rowsort label-3109
SELECT ALL + 19 AS col2, 10 + - COUNT ( ALL - 29 ) * - 4
----
19
14

query I rowsort
SELECT DISTINCT - 99 * 32 + - 97 AS col0
----
-3265

query I rowsort
SELECT + - 50 - + 29
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL COUNT( * ) * + 2 + - - 21 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL COUNT ( * ) * + 2 + - - 21 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT + MIN( - + 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-3113
SELECT + MIN ( - + 48 ) AS col0
----
-48

query I rowsort
SELECT - 89 * - 41
----
3649

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT + 12 * + 8 * + COUNT( * ) DIV + COUNT( * ) col1
----
96

skipif mysql # not compatible
query I rowsort label-3115
SELECT + 12 * + 8 * + COUNT ( * ) / + COUNT ( * ) col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT ALL CAST( 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL CAST ( 61 AS INTEGER ) AS col2
----
61

query I rowsort
SELECT DISTINCT 55 * 19 - - 37
----
1082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3118
SELECT + CASE WHEN NOT ( NULL ) <= + - 89 THEN + + 73 + - CAST( - COUNT( * ) AS SIGNED ) ELSE NULL END * - ( COUNT( * ) ) * 29 + + MAX( 9 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT + CASE WHEN NOT ( NULL ) <= + - 89 THEN + + 73 + - CAST ( - COUNT ( * ) AS INTEGER ) ELSE NULL END * - ( COUNT ( * ) ) * 29 + + MAX ( 9 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3119
SELECT ALL COUNT( - 43 ) DIV - 87 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL COUNT ( - 43 ) / - 87 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT COALESCE ( + + 53, - - COUNT( * ) ) * - 24
----
-1272

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT COALESCE ( + + 53, - - COUNT ( * ) ) * - 24
----
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT SUM( - 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-3121
SELECT SUM ( - 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3122
SELECT ALL COUNT( * ) DIV - 28 AS col0, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-3122
SELECT ALL COUNT ( * ) / - 28 AS col0, + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT + ( - 29 ) + - - MAX( DISTINCT - 77 )
----
-106

skipif mysql # not compatible
query I rowsort label-3123
SELECT + ( - 29 ) + - - MAX ( DISTINCT - 77 )
----
-106

query I rowsort
SELECT - COALESCE ( + + 28, 7 + 95 )
----
-28

query I rowsort
SELECT + 16 + + + 83 * - - 28
----
2340

query I rowsort
SELECT - 22 * + + 64 * 52
----
-73216

query I rowsort
SELECT - 81 * 14 AS col1
----
-1134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT NULLIF ( + 61, - + COUNT( * ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT NULLIF ( + 61, - + COUNT ( * ) ) AS col0
----
61

query I rowsort
SELECT + - 46 + ( 84 ) * + + 0 * - 75
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-3131
SELECT ALL + 66 + + - ( + + 6 ) + 71, 57 DIV + - 40 + - 52 AS col0
----
131
-53

skipif mysql # not compatible
query II rowsort label-3131
SELECT ALL + 66 + + - ( + + 6 ) + 71, 57 / + - 40 + - 52 AS col0
----
131
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3132
SELECT - - 39 * + 59 AS col1, 0 DIV + - COALESCE ( - 52, - COUNT( * ) DIV 67 ) * 79 AS col2
----
2301
0

skipif mysql # not compatible
query II rowsort label-3132
SELECT - - 39 * + 59 AS col1, 0 / + - COALESCE ( - 52, - COUNT ( * ) / 67 ) * 79 AS col2
----
2301
0

query I rowsort
SELECT DISTINCT + 33 + - ( + 42 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT ALL ( - + 27 ) + + - 58 DIV 76 * - 34 - + + 9 - + - 36 * 94 * 7 DIV - 35
----
-712

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL ( - + 27 ) + + - 58 / 76 * - 34 - + + 9 - + - 36 * 94 * 7 / - 35
----
-712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT - - CASE + 69 WHEN 51 THEN - CAST( NULL AS SIGNED ) + + 75 END / - 49 + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT - - CASE + 69 WHEN 51 THEN - CAST ( NULL AS INTEGER ) + + 75 END / - 49 + - 99
----
NULL

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

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

query I rowsort
SELECT ( 22 ) * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + 41 + - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3138
SELECT + 41 + - COUNT ( * ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT + 51 DIV + 34 - 15 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3139
SELECT + 51 / + 34 - 15 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT DISTINCT + 50 * - 22 + - - COUNT( + NULLIF ( + 4, + 10 ) ) AS col2
----
-1099

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT + 50 * - 22 + - - COUNT ( + NULLIF ( + 4, + 10 ) ) AS col2
----
-1099

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3141
SELECT + + MIN( ALL + 65 ) * + 70 + - COUNT( ALL 80 ) DIV + 80
----
4550

skipif mysql # not compatible
query I rowsort label-3141
SELECT + + MIN ( ALL + 65 ) * + 70 + - COUNT ( ALL 80 ) / + 80
----
4550

query I rowsort
SELECT ALL - 39 + NULLIF ( - - 80, + 68 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL - 59 + + - MAX( 0 ) * + + MIN( 43 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - 59 + + - MAX ( 0 ) * + + MIN ( 43 ) AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT DISTINCT + 1 * CAST( + + 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT + 1 * CAST ( + + 58 AS INTEGER )
----
58

query I rowsort
SELECT DISTINCT + 90 * - 42 AS col0
----
-3780

query I rowsort
SELECT 66 + + + 58
----
124

query I rowsort
SELECT 69 * + + 9 * - 12 AS col1
----
-7452

query II rowsort
SELECT + 95 * + 11 + 83 AS col0, - 92 AS col2
----
1128
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT 14 * + CAST( - SUM( + 25 ) AS SIGNED )
----
-350

skipif mysql # not compatible
query I rowsort label-3149
SELECT 14 * + CAST ( - SUM ( + 25 ) AS INTEGER )
----
-350

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

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

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

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL COUNT ( * ) - + + 52 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT 4 * ( - ( + NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) + - COALESCE ( CAST( NULL AS SIGNED ), - 23, 23 ) + 71 * + 49 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT 4 * ( - ( + NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) + - COALESCE ( CAST ( NULL AS INTEGER ), - 23, 23 ) + 71 * + 49 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ALL + NULLIF ( + 41, COUNT( * ) ) * - + 46 + - ( 97 ) * 94 * - + 78 * - - 25 * + 61 AS col2
----
1084584214

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL + NULLIF ( + 41, COUNT ( * ) ) * - + 46 + - ( 97 ) * 94 * - + 78 * - - 25 * + 61 AS col2
----
1084584214

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT - 1 * 28 * - + COUNT( * ) + + - 53 + 9 + 60 * 91 * + 72 + - 0 AS col0
----
393104

skipif mysql # not compatible
query I rowsort label-3155
SELECT - 1 * 28 * - + COUNT ( * ) + + - 53 + 9 + 60 * 91 * + 72 + - 0 AS col0
----
393104

query I rowsort
SELECT DISTINCT COALESCE ( + + 51, - 88 ) * - 60
----
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT 45 + NULLIF ( - 63, + 72 ) DIV - + 49
----
46

skipif mysql # not compatible
query I rowsort label-3157
SELECT 45 + NULLIF ( - 63, + 72 ) / - + 49
----
46

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

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

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

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL COUNT ( * ) + - 97 AS col2
----
-96

query I rowsort
SELECT DISTINCT + 37 + + 96 AS col2
----
133

query I rowsort
SELECT - - ( - 88 )
----
-88

query I rowsort
SELECT ALL - 4 + + + 10 col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT + MAX( + - 90 ) DIV 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3163
SELECT + MAX ( + - 90 ) / 31 AS col2
----
-2

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

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

query I rowsort
SELECT + 81 * 58 * + 52 - - 68 + + 92 AS col2
----
244456

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT - - MAX( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT - - MAX ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 78 + 28 + + 71
----
177

query II rowsort
SELECT - 48 * - 22 * - - 88, - 40 AS col0
----
92928
-40

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3171
SELECT DISTINCT - COUNT( + - 67 ) - 37, 20 col1
----
-38
20

skipif mysql # not compatible
query II rowsort label-3171
SELECT DISTINCT - COUNT ( + - 67 ) - 37, 20 col1
----
-38
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT + NULLIF ( - + 33, 45 * + ( - ( ( - + MIN( DISTINCT - 42 ) ) ) ) + 67 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3172
SELECT + NULLIF ( - + 33, 45 * + ( - ( ( - + MIN ( DISTINCT - 42 ) ) ) ) + 67 ) AS col2
----
-33

query I rowsort
SELECT + 88 * + 67 AS col1
----
5896

query I rowsort
SELECT ALL + 27 - 55 AS col2
----
-28

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

query I rowsort
SELECT ALL 71 - 15 AS col2
----
56

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

skipif mysql # not compatible
query I rowsort label-3177
SELECT CAST ( + + 23 AS INTEGER ) * 84 col0
----
1932

query II rowsort
SELECT + 37 AS col1, - 6 AS col2
----
37
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT 4 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT 4 / - 89
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT ALL - CAST( 99 AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - CAST ( 99 AS INTEGER ) AS col2
----
-99

query II rowsort
SELECT 18 AS col1, 60
----
18
60

query I rowsort
SELECT 29 * 24 AS col2
----
696

query I rowsort
SELECT 0 * - 37 col0
----
0

query II rowsort
SELECT 39 * - + 25 AS col0, - 11 + + - 70
----
-975
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3185
SELECT ALL - CASE + 97 WHEN - 40 * - + 21 / + 29 - + CASE + 81 WHEN - 32 THEN NULL WHEN + + 6 THEN NULL ELSE + + 80 END * + CAST( 47 AS SIGNED ) THEN - COUNT( DISTINCT + 42 ) + + 56 ELSE 73 END
----
-73

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - CASE + 97 WHEN - 40 * - + 21 / + 29 - + CASE + 81 WHEN - 32 THEN NULL WHEN + + 6 THEN NULL ELSE + + 80 END * + CAST ( 47 AS INTEGER ) THEN - COUNT ( DISTINCT + 42 ) + + 56 ELSE 73 END
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3186
SELECT ALL 13, ( + COUNT( * ) ) / - 42 / - CAST( NULL AS SIGNED ) - - 49 AS col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-3186
SELECT ALL 13, ( + COUNT ( * ) ) / - 42 / - CAST ( NULL AS INTEGER ) - - 49 AS col0
----
13
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3187
SELECT 19 / - + MAX( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT 19 / - + MAX ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

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

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

query I rowsort
SELECT 29 * 88
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL + COUNT( * ) + + 10 + - - COALESCE ( CASE - 89 WHEN 52 * 67 + - + 69 + - + COALESCE ( - + 89, + 80 + - 10 ) / + 93 - 60 THEN NULL WHEN 15 * - AVG ( DISTINCT 38 ) THEN NULL WHEN + 35 THEN - 85 + 1 ELSE NULL END, 61 * 54 )
----
3305

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL + COUNT ( * ) + + 10 + - - COALESCE ( CASE - 89 WHEN 52 * 67 + - + 69 + - + COALESCE ( - + 89, + 80 + - 10 ) / + 93 - 60 THEN NULL WHEN 15 * - AVG ( DISTINCT 38 ) THEN NULL WHEN + 35 THEN - 85 + 1 ELSE NULL END, 61 * 54 )
----
3305

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3192
SELECT ALL - CAST( NULL AS SIGNED ) + - 93 + - 71 + 9 + - - 52 * ( + + 41 ) * 94 + 9 + + COALESCE ( - 57, - 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - CAST ( NULL AS INTEGER ) + - 93 + - 71 + 9 + - - 52 * ( + + 41 ) * 94 + 9 + + COALESCE ( - 57, - 48 ) AS col0
----
NULL

query I rowsort
SELECT - 96 + 35 * 19 AS col1
----
569

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3195
SELECT ALL 40 * + 35 * - MAX( - 26 ) AS col2, 13 col0
----
36400
13

skipif mysql # not compatible
query II rowsort label-3195
SELECT ALL 40 * + 35 * - MAX ( - 26 ) AS col2, 13 col0
----
36400
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3196
SELECT - COALESCE ( 19, MAX( DISTINCT + - 12 ) - + 67, 52 * 71 + 84 * - CAST( - 63 AS SIGNED ) ) + + ( + 17 ) + CASE 56 WHEN + 72 + - 62 THEN COUNT( * ) WHEN + 64 + 23 * + 53 THEN NULL END * + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT - COALESCE ( 19, MAX ( DISTINCT + - 12 ) - + 67, 52 * 71 + 84 * - CAST ( - 63 AS INTEGER ) ) + + ( + 17 ) + CASE 56 WHEN + 72 + - 62 THEN COUNT ( * ) WHEN + 64 + 23 * + 53 THEN NULL END * + 99 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT ALL + ( - + 74 ) + CASE 53 WHEN + ( + + MIN( DISTINCT + - 87 ) ) THEN NULL ELSE - MIN( ALL 21 ) + + 10 END * - + COALESCE ( - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) ) + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + ( - + 74 ) + CASE 53 WHEN + ( + + MIN ( DISTINCT + - 87 ) ) THEN NULL ELSE - MIN ( ALL 21 ) + + 10 END * - + COALESCE ( - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) + 62 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT + NULLIF ( - + 50, - 94 * + 40 + - 65 + 86 + - 49 - - NULLIF ( - CAST( - NULLIF ( + 86, - 37 * CAST( + 45 AS SIGNED ) ) AS SIGNED ), 1 ) + + 35 * + 29 ) + 28
----
-22

skipif mysql # not compatible
query I rowsort label-3200
SELECT + NULLIF ( - + 50, - 94 * + 40 + - 65 + 86 + - 49 - - NULLIF ( - CAST ( - NULLIF ( + 86, - 37 * CAST ( + 45 AS INTEGER ) ) AS INTEGER ), 1 ) + + 35 * + 29 ) + 28
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3201
SELECT + - COUNT( * ) + + 0 + - NULLIF ( 76, - CAST( + 60 AS SIGNED ) * - 72 * 50 ) DIV CAST( 67 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3201
SELECT + - COUNT ( * ) + + 0 + - NULLIF ( 76, - CAST ( + 60 AS INTEGER ) * - 72 * 50 ) / CAST ( 67 AS INTEGER ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT ALL + ( - 6 ) DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + ( - 6 ) / + + 64
----
0

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

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

query I rowsort
SELECT + 82 * 32 AS col0
----
2624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3205
SELECT + 0 DIV - COUNT( - 93 ) - + + 55 + + 94 + + NULLIF ( + - NULLIF ( + SUM( ALL 65 ), - - NULLIF ( + + COUNT( * ), - 7 ) + + 62 ), - 5 * + COUNT( * ) + 35 * - 23 )
----
-26

skipif mysql # not compatible
query I rowsort label-3205
SELECT + 0 / - COUNT ( - 93 ) - + + 55 + + 94 + + NULLIF ( + - NULLIF ( + SUM ( ALL 65 ), - - NULLIF ( + + COUNT ( * ), - 7 ) + + 62 ), - 5 * + COUNT ( * ) + 35 * - 23 )
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT + + COUNT( ALL + 20 ) * CASE + - 9 WHEN - 28 THEN NULL WHEN + 37 THEN - 30 END + + + 19 + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT + + COUNT ( ALL + 20 ) * CASE + - 9 WHEN - 28 THEN NULL WHEN + 37 THEN - 30 END + + + 19 + 62 AS col2
----
NULL

query I rowsort
SELECT ALL + 27 * + 5 - - 33 - - - 47
----
121

query II rowsort
SELECT ALL 65 * 0 AS col0, - 19 col2
----
0
-19

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

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

query II rowsort
SELECT + ( + 76 ), 52 col0
----
76
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3212
SELECT - 74 DIV 21 + - 68 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3212
SELECT - 74 / 21 + - 68 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL NULLIF ( 20, 15 ) * 29 + - 80 + - + MAX( ALL + - 49 ) col2
----
549

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL NULLIF ( 20, 15 ) * 29 + - 80 + - + MAX ( ALL + - 49 ) col2
----
549

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3214
SELECT + CAST( NULL AS DECIMAL ) * - - 37, 52 AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-3214
SELECT + CAST ( NULL AS REAL ) * - - 37, 52 AS col0
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + 29 * + 28 * + - MAX( 59 )
----
-47908

skipif mysql # not compatible
query I rowsort label-3215
SELECT + 29 * + 28 * + - MAX ( 59 )
----
-47908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT NULLIF ( - CAST( + 51 AS SIGNED ), - + 27 * - 10 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3216
SELECT NULLIF ( - CAST ( + 51 AS INTEGER ), - + 27 * - 10 ) AS col2
----
-51

query I rowsort
SELECT ALL - 34 * + 34 + 24 + + + 13 AS col1
----
-1119

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT + NULLIF ( - - COUNT( * ), + - 49 + - 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3218
SELECT + NULLIF ( - - COUNT ( * ), + - 49 + - 63 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT 40 * - 69 * - 59 + + - COUNT( * )
----
162839

skipif mysql # not compatible
query I rowsort label-3219
SELECT 40 * - 69 * - 59 + + - COUNT ( * )
----
162839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3220
SELECT - 99 * + COALESCE ( CAST( 40 AS SIGNED ), COUNT( + 37 ) * - 62 ) AS col0
----
-3960

skipif mysql # not compatible
query I rowsort label-3220
SELECT - 99 * + COALESCE ( CAST ( 40 AS INTEGER ), COUNT ( + 37 ) * - 62 ) AS col0
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL - MIN( DISTINCT + - 49 ) * + NULLIF ( + 93, + 18 ) + + + COUNT( * ) AS col0
----
4558

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - MIN ( DISTINCT + - 49 ) * + NULLIF ( + 93, + 18 ) + + + COUNT ( * ) AS col0
----
4558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3222
SELECT DISTINCT - 24 * + + COUNT( * ) * + 81 + - CASE 63 WHEN 96 * + 81 + + + COUNT( * ) THEN NULL ELSE + COALESCE ( 32, - + 35, - 45, 32 * - 67 - 75 DIV 12 ) END
----
-1976

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - 24 * + + COUNT ( * ) * + 81 + - CASE 63 WHEN 96 * + 81 + + + COUNT ( * ) THEN NULL ELSE + COALESCE ( 32, - + 35, - 45, 32 * - 67 - 75 / 12 ) END
----
-1976

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT ALL 92 * + CASE + + 41 WHEN - 43 THEN NULL ELSE - + COUNT( * ) END + 2 + - 98 AS col2, + 28 - + + COUNT( * ) * 41
----
-188
-13

skipif mysql # not compatible
query II rowsort label-3223
SELECT ALL 92 * + CASE + + 41 WHEN - 43 THEN NULL ELSE - + COUNT ( * ) END + 2 + - 98 AS col2, + 28 - + + COUNT ( * ) * 41
----
-188
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT 78 * 56 + COUNT( * ) * + + MAX( ALL + 39 ) + CASE 22 WHEN + 40 * 29 * + - 43 + NULLIF ( - 55, 44 + - COUNT( * ) * 82 ) + 56 THEN 98 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT 78 * 56 + COUNT ( * ) * + + MAX ( ALL + 39 ) + CASE 22 WHEN + 40 * 29 * + - 43 + NULLIF ( - 55, 44 + - COUNT ( * ) * 82 ) + 56 THEN 98 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3225
SELECT + 27 * - 91, 57 - + CASE 21 WHEN + + 7 THEN 97 WHEN CAST( + 71 AS SIGNED ) * NULLIF ( 48, - + 82 ) * 13 THEN NULL END AS col0
----
-2457
NULL

skipif mysql # not compatible
query II rowsort label-3225
SELECT + 27 * - 91, 57 - + CASE 21 WHEN + + 7 THEN 97 WHEN CAST ( + 71 AS INTEGER ) * NULLIF ( 48, - + 82 ) * 13 THEN NULL END AS col0
----
-2457
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3226
SELECT - CAST( NULL AS SIGNED ) + + 42, - COUNT( * ) * + 58 AS col1
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-3226
SELECT - CAST ( NULL AS INTEGER ) + + 42, - COUNT ( * ) * + 58 AS col1
----
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL + - 36 + - NULLIF ( + 18, + 68 * + 85 ) - + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + - 36 + - NULLIF ( + 18, + 68 * + 85 ) - + + COUNT ( * )
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-3228
SELECT - 94 DIV 3, + ( + 51 ) + - + 76 AS col0
----
-31
-25

skipif mysql # not compatible
query II rowsort label-3228
SELECT - 94 / 3, + ( + 51 ) + - + 76 AS col0
----
-31
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3229
SELECT ALL - - COUNT( * ) DIV - 62 * 28
----
0

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - - COUNT ( * ) / - 62 * 28
----
0

query I rowsort
SELECT - + 57 * - 89 * + 60
----
304380

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL - SUM( DISTINCT ( + 30 ) ) * - 18 col2
----
540

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - SUM ( DISTINCT ( + 30 ) ) * - 18 col2
----
540

query II rowsort
SELECT ALL - 61 - + - 39, 10 col2
----
-22
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - CASE - 34 WHEN + 25 THEN - + 40 + - CASE WHEN NOT 66 IS NOT NULL THEN - 49 + + 67 ELSE NULL END + NULLIF ( + + 60, - + MIN( DISTINCT 32 ) ) + + 52 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT - CASE - 34 WHEN + 25 THEN - + 40 + - CASE WHEN NOT 66 IS NOT NULL THEN - 49 + + 67 ELSE NULL END + NULLIF ( + + 60, - + MIN ( DISTINCT 32 ) ) + + 52 END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT - MAX( DISTINCT 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-3234
SELECT - MAX ( DISTINCT 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT ALL - 11 * + 36 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL - 11 * + 36 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + SUM( - + 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3236
SELECT + SUM ( - + 23 ) AS col2
----
-23

query II rowsort
SELECT + + 0 * - - 78 AS col1, - 2 AS col0
----
0
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3238
SELECT - + 89 * - MIN( + - CAST( NULL AS DECIMAL ) ) * COUNT( * ) + 48 * + 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT - + 89 * - MIN ( + - CAST ( NULL AS REAL ) ) * COUNT ( * ) + 48 * + 85 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT DISTINCT - CAST( + ( - - 2 ) AS SIGNED ) * - CASE - 9 WHEN + ( + 53 ) * - 14 THEN + 24 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT - CAST ( + ( - - 2 ) AS INTEGER ) * - CASE - 9 WHEN + ( + 53 ) * - 14 THEN + 24 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT ALL + CASE - 30 WHEN CAST( - COALESCE ( 61, + - 50 ) AS SIGNED ) THEN + + MAX( 43 ) * - 23 + - CAST( + - 63 AS SIGNED ) WHEN + ( - COALESCE ( - 56, - 36 ) ) THEN - CASE - 78 WHEN 55 / + 58 THEN - AVG ( DISTINCT - 92 ) * 94 + - 69 * + COUNT( * ) END END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + CASE - 30 WHEN CAST ( - COALESCE ( 61, + - 50 ) AS INTEGER ) THEN + + MAX ( 43 ) * - 23 + - CAST ( + - 63 AS INTEGER ) WHEN + ( - COALESCE ( - 56, - 36 ) ) THEN - CASE - 78 WHEN 55 / + 58 THEN - AVG ( DISTINCT - 92 ) * 94 + - 69 * + COUNT ( * ) END END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3241
SELECT - + COALESCE ( - 88, - 68 ) * - 67 - - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT - + COALESCE ( - 88, - 68 ) * - 67 - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3243
SELECT + 36 - + 78 / - - COUNT ( * ) - + COUNT ( * ) AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT + 54 + + ( + COALESCE ( + - 58, + COALESCE ( - 49, - AVG ( + 10 ) ) ) ) + + CAST( NULL AS SIGNED ) + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT + 54 + + ( + COALESCE ( + - 58, + COALESCE ( - 49, - AVG ( + 10 ) ) ) ) + + CAST ( NULL AS INTEGER ) + + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT + NULLIF ( + 38, COUNT( * ) / + 42 + - ( + - 66 ) * COUNT( * ) / - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-3245
SELECT + NULLIF ( + 38, COUNT ( * ) / + 42 + - ( + - 66 ) * COUNT ( * ) / - COUNT ( * ) )
----
38

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

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

query I rowsort
SELECT + 30 * + 75
----
2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT + ( - CAST( + AVG ( DISTINCT 71 ) AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-3248
SELECT + ( - CAST ( + AVG ( DISTINCT 71 ) AS INTEGER ) )
----
-71

query I rowsort
SELECT + 6 * 87 * - - 65
----
33930

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3250
SELECT ALL - 90 DIV CAST( + + 99 AS SIGNED ) * - + 60 + + + 96 + ( - + 2 ) * - 34 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - 90 / CAST ( + + 99 AS INTEGER ) * - + 60 + + + 96 + ( - + 2 ) * - 34 AS col0
----
164

query I rowsort
SELECT - 76 + - 35 AS col0
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3252
SELECT + 94 DIV ( + + 42 ) AS col0, - 19 + + - COUNT( - - ( - 6 ) ) + + - ( 94 ) - 4 - - 16
----
2
-102

skipif mysql # not compatible
query II rowsort label-3252
SELECT + 94 / ( + + 42 ) AS col0, - 19 + + - COUNT ( - - ( - 6 ) ) + + - ( 94 ) - 4 - - 16
----
2
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT - COUNT( * ) * - 88 + 42
----
130

skipif mysql # not compatible
query I rowsort label-3253
SELECT - COUNT ( * ) * - 88 + 42
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT ALL 64 * + + CAST( NULL AS SIGNED ) * + MAX( + - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL 64 * + + CAST ( NULL AS INTEGER ) * + MAX ( + - 58 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3255
SELECT ALL + 13 DIV - - ( 79 ) + - COALESCE ( - 87, - 50 ) AS col0, + 37 + - - 45
----
87
82

skipif mysql # not compatible
query II rowsort label-3255
SELECT ALL + 13 / - - ( 79 ) + - COALESCE ( - 87, - 50 ) AS col0, + 37 + - - 45
----
87
82

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT ALL 13 DIV + - 90 * 96 * + 83 + - - 34
----
34

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL 13 / + - 90 * 96 * + 83 + - - 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT + 64 * - - SUM( - 98 ) * MIN( + - ( - - 49 ) ) * 7 + + + 59
----
2151355

skipif mysql # not compatible
query I rowsort label-3258
SELECT + 64 * - - SUM ( - 98 ) * MIN ( + - ( - - 49 ) ) * 7 + + + 59
----
2151355

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT DISTINCT + 97 DIV + - 97 + - + 20
----
-21

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + 97 / + - 97 + - + 20
----
-21

query I rowsort
SELECT 45 * + 54
----
2430

query II rowsort
SELECT DISTINCT - 86 col2, + 53
----
-86
53

query I rowsort
SELECT 35 * - ( - 69 ) AS col2
----
2415

query I rowsort
SELECT 70 * - 39 * + 20 AS col1
----
-54600

query I rowsort
SELECT ALL 17 - - 60
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - + COALESCE ( - - COUNT( * ), + 92 * 89 * 10 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3265
SELECT - + COALESCE ( - - COUNT ( * ), + 92 * 89 * 10 ) AS col2
----
-1

query I rowsort
SELECT - ( + 83 ) * - 22
----
1826

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT ALL + 62 col0, COUNT( * ) * - 18 * - 32 + + 80 * + 30
----
62
2976

skipif mysql # not compatible
query II rowsort label-3268
SELECT ALL + 62 col0, COUNT ( * ) * - 18 * - 32 + + 80 * + 30
----
62
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT + 67 * + - 14 + - CASE - 98 WHEN - - 25 THEN - COALESCE ( - - 21, 50, + - COUNT( * ) ) ELSE + + 25 END AS col2
----
-963

skipif mysql # not compatible
query I rowsort label-3269
SELECT + 67 * + - 14 + - CASE - 98 WHEN - - 25 THEN - COALESCE ( - - 21, 50, + - COUNT ( * ) ) ELSE + + 25 END AS col2
----
-963

query I rowsort
SELECT 67 + - 17 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3271
SELECT COUNT( + 52 ) + - 92 AS col0, CAST( 6 AS SIGNED ) * - COUNT( * )
----
-91
-6

skipif mysql # not compatible
query II rowsort label-3271
SELECT COUNT ( + 52 ) + - 92 AS col0, CAST ( 6 AS INTEGER ) * - COUNT ( * )
----
-91
-6

query I rowsort
SELECT 44 + + 27 + 85 + + + ( 7 ) * - 34
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT 87 - 13 + + - COUNT( * ) - 13 * - CASE - 82 WHEN + COUNT( * ) THEN NULL WHEN 54 + + 51 THEN - 74 + - 98 ELSE + + 33 END + - 61 AS col1
----
441

skipif mysql # not compatible
query I rowsort label-3273
SELECT 87 - 13 + + - COUNT ( * ) - 13 * - CASE - 82 WHEN + COUNT ( * ) THEN NULL WHEN 54 + + 51 THEN - 74 + - 98 ELSE + + 33 END + - 61 AS col1
----
441

query I rowsort
SELECT - 17 * 16
----
-272

query I rowsort
SELECT 36 + 44
----
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3277
SELECT ALL 12 AS col0, - 38 * + CAST( - 32 AS SIGNED ) AS col0
----
12
1216

skipif mysql # not compatible
query II rowsort label-3277
SELECT ALL 12 AS col0, - 38 * + CAST ( - 32 AS INTEGER ) AS col0
----
12
1216

query I rowsort
SELECT 13 + 51
----
64

query II rowsort
SELECT DISTINCT + 40 + + 58 AS col2, + 43 + - 10 + 83
----
98
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT ALL + 22 + 8 DIV COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + 22 + 8 / COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT + ( 95 ) * + - 74
----
-7030

query I rowsort
SELECT ALL 58 + 68 + - 61 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3283
SELECT ALL 17 + - 97 AS col0, + ( + 32 ) * CASE 94 WHEN + - COUNT( ALL - + 59 ) THEN + COALESCE ( + 85, - - MIN( DISTINCT + 62 ) * + NULLIF ( - - 94, - 29 ) * + CAST( MIN( + ( - 75 ) ) AS SIGNED ) ) ELSE + 15 * 69 END + + 0 DIV + 42
----
-80
33120

skipif mysql # not compatible
query II rowsort label-3283
SELECT ALL 17 + - 97 AS col0, + ( + 32 ) * CASE 94 WHEN + - COUNT ( ALL - + 59 ) THEN + COALESCE ( + 85, - - MIN ( DISTINCT + 62 ) * + NULLIF ( - - 94, - 29 ) * + CAST ( MIN ( + ( - 75 ) ) AS INTEGER ) ) ELSE + 15 * 69 END + + 0 / + 42
----
-80
33120

query II rowsort
SELECT 38 * - 10, + 19 AS col0
----
-380
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT ALL - CASE + - ( 73 ) WHEN - 7 THEN + CASE - + CAST( NULL AS SIGNED ) WHEN + 96 + 46 THEN - - 25 * + + 25 WHEN + 73 THEN 20 WHEN + 39 * - 63 THEN - 36 + 97 ELSE NULL END * - 40 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - CASE + - ( 73 ) WHEN - 7 THEN + CASE - + CAST ( NULL AS INTEGER ) WHEN + 96 + 46 THEN - - 25 * + + 25 WHEN + 73 THEN 20 WHEN + 39 * - 63 THEN - 36 + 97 ELSE NULL END * - 40 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3286
SELECT COUNT ( * ) / COUNT ( * ) * + 52 AS col1
----
52

query I rowsort
SELECT 48 + - 64 col1
----
-16

query II rowsort
SELECT 25 + + 14 AS col1, 98 AS col0
----
39
98

query I rowsort
SELECT 28 * + + 4 * + - 93 * - + 23 AS col0
----
239568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3290
SELECT CASE COUNT( * ) WHEN - 16 THEN 30 + 73 + + ( 59 ) + - ( - CAST( 18 AS SIGNED ) ) WHEN - 44 - 89 + + 50 / - - 38 THEN - COUNT( * ) END - 16 * - CAST( NULLIF ( + COUNT( * ), - AVG ( - ( 63 ) ) * + COALESCE ( 27, CAST( NULL AS DECIMAL ), 13 + COUNT( * ) * 58 ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT CASE COUNT ( * ) WHEN - 16 THEN 30 + 73 + + ( 59 ) + - ( - CAST ( 18 AS INTEGER ) ) WHEN - 44 - 89 + + 50 / - - 38 THEN - COUNT ( * ) END - 16 * - CAST ( NULLIF ( + COUNT ( * ), - AVG ( - ( 63 ) ) * + COALESCE ( 27, CAST ( NULL AS REAL ), 13 + COUNT ( * ) * 58 ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 16 * 36 AS col2
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT COUNT( * ) * + NULLIF ( - 29, + COUNT( * ) ) * - - 45 + - - 38 + ( 98 )
----
-1169

skipif mysql # not compatible
query I rowsort label-3292
SELECT COUNT ( * ) * + NULLIF ( - 29, + COUNT ( * ) ) * - - 45 + - - 38 + ( 98 )
----
-1169

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT - COUNT( * ) - - 71 + - 16 col2
----
54

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - COUNT ( * ) - - 71 + - 16 col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3294
SELECT DISTINCT + + COUNT( * ) * - + 79, - 2 AS col1
----
-79
-2

skipif mysql # not compatible
query II rowsort label-3294
SELECT DISTINCT + + COUNT ( * ) * - + 79, - 2 AS col1
----
-79
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3295
SELECT ALL - 94 * + 85 * - 9 * 52 AS col2, - CAST( - 97 AS SIGNED ) * 10 * + + 97 * + - 82 AS col1
----
3739320
-7715380

skipif mysql # not compatible
query II rowsort label-3295
SELECT ALL - 94 * + 85 * - 9 * 52 AS col2, - CAST ( - 97 AS INTEGER ) * 10 * + + 97 * + - 82 AS col1
----
3739320
-7715380

query I rowsort
SELECT ALL 73 * - 72 AS col2
----
-5256

onlyif mysql # aggregate syntax: 
query II rowsort label-3297
SELECT COUNT( * ) + - + 28, + 78 col0
----
-27
78

skipif mysql # not compatible
query II rowsort label-3297
SELECT COUNT ( * ) + - + 28, + 78 col0
----
-27
78

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

skipif mysql # not compatible
query I rowsort label-3298
SELECT - MAX ( ALL - 82 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3299
SELECT + MIN( DISTINCT + 95 ) * 67 + + CASE + 50 WHEN + - 46 * - - COUNT( + ( 53 ) ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - 52 * - ( ( - CASE - 85 WHEN - AVG ( + 45 ) THEN NULL WHEN + COUNT( * ) THEN + COUNT( ALL 61 ) ELSE NULL END ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT + MIN ( DISTINCT + 95 ) * 67 + + CASE + 50 WHEN + - 46 * - - COUNT ( + ( 53 ) ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - 52 * - ( ( - CASE - 85 WHEN - AVG ( + 45 ) THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( ALL 61 ) ELSE NULL END ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT 50 * - COUNT( * ) + + 30
----
-20

skipif mysql # not compatible
query I rowsort label-3300
SELECT 50 * - COUNT ( * ) + + 30
----
-20

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

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

query I rowsort
SELECT 10 * - 25 * - 58 * - + 60
----
-870000

query I rowsort
SELECT + ( ( - + ( + COALESCE ( 93, 92 + 46 - + 55 ) ) ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT 71 * - + COUNT( DISTINCT - - 45 )
----
-71

skipif mysql # not compatible
query I rowsort label-3304
SELECT 71 * - + COUNT ( DISTINCT - - 45 )
----
-71

query I rowsort
SELECT 51 * 49
----
2499

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT ALL + 17 DIV - 9 + + 89 * - ( + + 82 )
----
-7299

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + 17 / - 9 + + 89 * - ( + + 82 )
----
-7299

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

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

query II rowsort
SELECT - ( + 19 ) AS col2, + 69 AS col0
----
-19
69

query I rowsort
SELECT 23 * + + 88 * - 97
----
-196328

query I rowsort
SELECT ALL CASE AVG ( + 28 ) WHEN - NULLIF ( + 90, - - 49 ) * - 72 + + 54 * - - 79 + + + ( + 8 ) * + + 31 THEN - 41 ELSE 99 END + - 37
----
62

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

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

query I rowsort
SELECT DISTINCT 0 + + 19 + - 95 AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT - CASE - - 72 WHEN - MAX( DISTINCT + 25 ) - + 30 + - + 79 THEN - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT - CASE - - 72 WHEN - MAX ( DISTINCT + 25 ) - + 30 + - + 79 THEN - - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 23 * 43 col1
----
989

query I rowsort
SELECT ALL 35 + + 47 col2
----
82

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

skipif mysql # not compatible
query II rowsort label-3316
SELECT ALL 45 AS col1, COUNT ( * )
----
45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT - COUNT( * ) - + 75 + + + ( - 82 )
----
-158

skipif mysql # not compatible
query I rowsort label-3317
SELECT - COUNT ( * ) - + 75 + + + ( - 82 )
----
-158

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

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL CAST ( NULL AS INTEGER ) / 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT + CASE - + 72 WHEN - 49 + - 16 * + 46 * 71 * CAST( NULL AS SIGNED ) THEN + - 92 WHEN 57 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT + CASE - + 72 WHEN - 49 + - 16 * + 46 * 71 * CAST ( NULL AS INTEGER ) THEN + - 92 WHEN 57 THEN NULL ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + ( - 38 ) * 20 - 14 * + - 35 AS col0
----
-270

query I rowsort
SELECT NULLIF ( - 55, 35 + + - 9 + - - 55 ) col2
----
-55

query I rowsort
SELECT NULLIF ( - 38, + + 92 * + - 52 )
----
-38

query I rowsort
SELECT ALL + 19 * 67
----
1273

query I rowsort
SELECT COALESCE ( - COALESCE ( - + 90, + - 81, 86 ), + 44 + + 57 - - 53 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT ALL - 49 * - 65 - + + 4 DIV - + 20 * + - 89 * 46 AS col2
----
3185

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - 49 * - 65 - + + 4 / - + 20 * + - 89 * 46 AS col2
----
3185

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

query II rowsort
SELECT ALL + 25 AS col2, 56 AS col0
----
25
56

query I rowsort
SELECT - 74 * + 26 * + 26 AS col1
----
-50024

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL + COUNT( * ) * 11 + + - 91 + - + 16
----
-96

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL + COUNT ( * ) * 11 + + - 91 + - + 16
----
-96

query I rowsort
SELECT + + 79 * + 29
----
2291

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

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

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

query I rowsort
SELECT - 63 - + + 41 * + - 64 AS col2
----
2561

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT + 37 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT + 37 / + 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT - 76 * CASE - ( + 0 ) WHEN - - 40 THEN - 30 * + 41 - - - 87 + - COALESCE ( + - 50, - 37 * - 7 ) * + 11 * + 93 WHEN + 92 THEN + COUNT( * ) * 43 ELSE + 20 END
----
-1520

skipif mysql # not compatible
query I rowsort label-3336
SELECT - 76 * CASE - ( + 0 ) WHEN - - 40 THEN - 30 * + 41 - - - 87 + - COALESCE ( + - 50, - 37 * - 7 ) * + 11 * + 93 WHEN + 92 THEN + COUNT ( * ) * 43 ELSE + 20 END
----
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3337
SELECT ALL + + 45 DIV - + COALESCE ( + + COALESCE ( - ( - ( + CAST( NULL AS SIGNED ) ) ), MIN( ALL ( - - 85 ) ) ), - COUNT( * ) + - 48 ) * + 77 * + 28 + - - 92 - 88 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL + + 45 / - + COALESCE ( + + COALESCE ( - ( - ( + CAST ( NULL AS INTEGER ) ) ), MIN ( ALL ( - - 85 ) ) ), - COUNT ( * ) + - 48 ) * + 77 * + 28 + - - 92 - 88 AS col2
----
4

query I rowsort
SELECT DISTINCT - 90 + - 64 - - 27 + - + 98
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL + 32 + - COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + 32 + - COUNT ( * ) AS col2
----
31

query I rowsort
SELECT + + 27 - + 80 AS col1
----
-53

query I rowsort
SELECT DISTINCT - ( + - 7 )
----
7

query I rowsort
SELECT ALL + 88 * - NULLIF ( + 78, + 23 ) AS col0
----
-6864

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT CASE SUM( + 58 ) WHEN 63 * + 57 + + + 5 THEN CASE - 50 WHEN + COALESCE ( + 20, + 15 ) + 94 THEN 16 WHEN + 76 THEN NULL WHEN + 53 + + COUNT( * ) THEN 46 + 5 / 59 ELSE MIN( - ( + 69 ) ) END - - 89 ELSE + 27 * + 81 + + 14 END col2
----
2201

skipif mysql # not compatible
query I rowsort label-3343
SELECT CASE SUM ( + 58 ) WHEN 63 * + 57 + + + 5 THEN CASE - 50 WHEN + COALESCE ( + 20, + 15 ) + 94 THEN 16 WHEN + 76 THEN NULL WHEN + 53 + + COUNT ( * ) THEN 46 + 5 / 59 ELSE MIN ( - ( + 69 ) ) END - - 89 ELSE + 27 * + 81 + + 14 END col2
----
2201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3344
SELECT ALL 9 + + + COUNT( * ) DIV 53 * + + 70 + 61 * + 89 + + - ( - SUM( + - 73 ) ) + 88 * - 4 AS col1
----
5013

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL 9 + + + COUNT ( * ) / 53 * + + 70 + 61 * + 89 + + - ( - SUM ( + - 73 ) ) + 88 * - 4 AS col1
----
5013

query I rowsort
SELECT + 77 + + + 41 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT + COUNT( 25 ) - + + 56
----
-55

skipif mysql # not compatible
query I rowsort label-3346
SELECT + COUNT ( 25 ) - + + 56
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT - CASE 53 WHEN + CAST( NULL AS SIGNED ) - 72 THEN 21 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT - CASE 53 WHEN + CAST ( NULL AS INTEGER ) - 72 THEN 21 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 77 + + ( - + 20 ) + + 17 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT ALL - COUNT( * ) + + 77 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - COUNT ( * ) + + 77 AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3350
SELECT DISTINCT 82 AS col0, MIN( ALL - 21 )
----
82
-21

skipif mysql # not compatible
query II rowsort label-3350
SELECT DISTINCT 82 AS col0, MIN ( ALL - 21 )
----
82
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT + 30 + + + COUNT( DISTINCT + 97 )
----
31

skipif mysql # not compatible
query I rowsort label-3351
SELECT + 30 + + + COUNT ( DISTINCT + 97 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT ALL CAST( NULL AS SIGNED ) + + 15 + + CAST( 26 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL CAST ( NULL AS INTEGER ) + + 15 + + CAST ( 26 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT + 47 * + - MIN( DISTINCT - - 43 ) AS col2
----
-2021

skipif mysql # not compatible
query I rowsort label-3353
SELECT + 47 * + - MIN ( DISTINCT - - 43 ) AS col2
----
-2021

query II rowsort
SELECT ALL 40 AS col1, - 92 col0
----
40
-92

query I rowsort
SELECT + 23 + - + 48
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT DISTINCT CAST( + 75 AS SIGNED ) * - 41 AS col2
----
-3075

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT CAST ( + 75 AS INTEGER ) * - 41 AS col2
----
-3075

query I rowsort
SELECT + COALESCE ( - 5, + - 20, + 48 ) + + 53 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - COUNT( DISTINCT + + 23 ) + + + SUM( - 68 )
----
-69

skipif mysql # not compatible
query I rowsort label-3358
SELECT - COUNT ( DISTINCT + + 23 ) + + + SUM ( - 68 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3359
SELECT - CASE - 30 WHEN 28 THEN + COUNT( * ) / - 54 - 10 + + - 90 WHEN - - ( 6 ) + - 84 THEN + CAST( - 54 AS SIGNED ) WHEN - 61 + + - 54 THEN NULL END col1, 52 - 80 AS col2
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-3359
SELECT - CASE - 30 WHEN 28 THEN + COUNT ( * ) / - 54 - 10 + + - 90 WHEN - - ( 6 ) + - 84 THEN + CAST ( - 54 AS INTEGER ) WHEN - 61 + + - 54 THEN NULL END col1, 52 - 80 AS col2
----
NULL
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3360
SELECT + 64 DIV - 10 col1
----
-6

skipif mysql # not compatible
query I rowsort label-3360
SELECT + 64 / - 10 col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT - 69 DIV 26 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3361
SELECT - 69 / 26 AS col1
----
-2

query II rowsort
SELECT ALL + 9 AS col1, - 82
----
9
-82

query I rowsort
SELECT + 81 * + - 65 AS col2
----
-5265

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3364
SELECT ALL - 5 DIV - + 45 - + COALESCE ( + COUNT( * ), 2, 85 ), 87 * + CASE - 30 WHEN + 77 THEN NULL ELSE + + 63 END + + - 45 AS col1
----
-1
5436

skipif mysql # not compatible
query II rowsort label-3364
SELECT ALL - 5 / - + 45 - + COALESCE ( + COUNT ( * ), 2, 85 ), 87 * + CASE - 30 WHEN + 77 THEN NULL ELSE + + 63 END + + - 45 AS col1
----
-1
5436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3365
SELECT ALL + COUNT( * ) AS col1, NULLIF ( + + CAST( NULL AS SIGNED ), COUNT( * ) ) - - 98 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3365
SELECT ALL + COUNT ( * ) AS col1, NULLIF ( + + CAST ( NULL AS INTEGER ), COUNT ( * ) ) - - 98 AS col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT ALL - 60 DIV + 6 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL - 60 / + 6 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT + 33 DIV - 69 * 69 * 37 col0
----
0

skipif mysql # not compatible
query I rowsort label-3367
SELECT + 33 / - 69 * 69 * 37 col0
----
0

query I rowsort
SELECT - 51 + 26 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT - 42 * - SUM( + 56 ) AS col0
----
2352

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT - 42 * - SUM ( + 56 ) AS col0
----
2352

onlyif mysql # DIV for integer division: 
query II rowsort label-3370
SELECT DISTINCT + NULLIF ( - + 65, - 75 ) DIV + 80, 94 + - 32 * 34 AS col1
----
0
-994

skipif mysql # not compatible
query II rowsort label-3370
SELECT DISTINCT + NULLIF ( - + 65, - 75 ) / + 80, 94 + - 32 * 34 AS col1
----
0
-994

query II rowsort
SELECT ALL + 14 col1, 15 * 72 * - - 26
----
14
28080

onlyif mysql # DIV for integer division: 
query III rowsort label-3372
SELECT + 0 AS col0, 77 DIV + 87 - - 66, + 83 AS col0
----
0
66
83

skipif mysql # not compatible
query III rowsort label-3372
SELECT + 0 AS col0, 77 / + 87 - - 66, + 83 AS col0
----
0
66
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT + 33 + + 10 + - 12 * + 30 * 54 - CASE 78 WHEN + + ( CASE 50 WHEN - 91 + + COUNT( * ) THEN + 71 WHEN + + ( MAX( DISTINCT + - 47 ) ) THEN NULL WHEN 65 THEN COUNT( * ) * + 83 END ) / COUNT( * ) + + ( - 39 + 63 / - 70 ) THEN - 67 + - 25 * 97 WHEN 24 THEN NULL END / - ( 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT + 33 + + 10 + - 12 * + 30 * 54 - CASE 78 WHEN + + ( CASE 50 WHEN - 91 + + COUNT ( * ) THEN + 71 WHEN + + ( MAX ( DISTINCT + - 47 ) ) THEN NULL WHEN 65 THEN COUNT ( * ) * + 83 END ) / COUNT ( * ) + + ( - 39 + 63 / - 70 ) THEN - 67 + - 25 * 97 WHEN 24 THEN NULL END / - ( 41 ) AS col1
----
NULL

query I rowsort
SELECT + 1 * + + 30 + + 95 + + 97
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ( 14 ) * COUNT( * ) + + 90 + ( - + ( + 31 ) ) * 91 + + 52 * - + 91
----
-7449

skipif mysql # not compatible
query I rowsort label-3375
SELECT ( 14 ) * COUNT ( * ) + + 90 + ( - + ( + 31 ) ) * 91 + + 52 * - + 91
----
-7449

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT ALL 5 * + 22 * COALESCE ( + 77, - ( - 41 ) ) + 4 DIV - 18 * - 20 col0
----
8470

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL 5 * + 22 * COALESCE ( + 77, - ( - 41 ) ) + 4 / - 18 * - 20 col0
----
8470

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL COUNT( * ) * - 29 + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL COUNT ( * ) * - 29 + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT - + MAX( DISTINCT 38 ) * + 69 AS col2
----
-2622

skipif mysql # not compatible
query I rowsort label-3378
SELECT - + MAX ( DISTINCT 38 ) * + 69 AS col2
----
-2622

query I rowsort
SELECT DISTINCT - 50 * - 36
----
1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3380
SELECT - - 12 DIV COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-3380
SELECT - - 12 / COUNT ( * )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT ALL 17 * + CAST( NULL AS SIGNED ) + - - 81 + - 31 * - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL 17 * + CAST ( NULL AS INTEGER ) + - - 81 + - 31 * - + 95
----
NULL

query I rowsort
SELECT - 76 * 37 AS col1
----
-2812

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + + COUNT( * ) + + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-3383
SELECT + + COUNT ( * ) + + - 98
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL CASE + 85 WHEN 15 * COALESCE ( + COALESCE ( - 42, - CAST( NULL AS SIGNED ), - 37 * + 98, + AVG ( ALL - 88 ) ), + COUNT( ALL 23 ) * - 84 / CAST( NULL AS SIGNED ), - CASE + 19 WHEN 9 THEN NULLIF ( 82, SUM( DISTINCT 48 ) ) ELSE NULL END * CASE 3 WHEN NULLIF ( + 77, 63 ) + 60 THEN NULL WHEN - 18 * 59 + 77 * - 93 THEN NULL ELSE COUNT( * ) * + 18 END, COUNT( * ) * + 61 + - 99 ) THEN NULL ELSE + 12 * + COUNT( * ) - - 7 END * 39 + + 30
----
771

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL CASE + 85 WHEN 15 * COALESCE ( + COALESCE ( - 42, - CAST ( NULL AS INTEGER ), - 37 * + 98, + AVG ( ALL - 88 ) ), + COUNT ( ALL 23 ) * - 84 / CAST ( NULL AS INTEGER ), - CASE + 19 WHEN 9 THEN NULLIF ( 82, SUM ( DISTINCT 48 ) ) ELSE NULL END * CASE 3 WHEN NULLIF ( + 77, 63 ) + 60 THEN NULL WHEN - 18 * 59 + 77 * - 93 THEN NULL ELSE COUNT ( * ) * + 18 END, COUNT ( * ) * + 61 + - 99 ) THEN NULL ELSE + 12 * + COUNT ( * ) - - 7 END * 39 + + 30
----
771

onlyif mysql # DIV for integer division: 
query II rowsort label-3385
SELECT DISTINCT - 36 DIV - 14 AS col2, 51 * 43 DIV + + 48 + + - 48
----
2
-3

skipif mysql # not compatible
query II rowsort label-3385
SELECT DISTINCT - 36 / - 14 AS col2, 51 * 43 / + + 48 + + - 48
----
2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT - 47 * + COALESCE ( - 55, - - 33, + 65, - 27 + ( - - CAST( - 85 AS SIGNED ) ) )
----
2585

skipif mysql # not compatible
query I rowsort label-3386
SELECT - 47 * + COALESCE ( - 55, - - 33, + 65, - 27 + ( - - CAST ( - 85 AS INTEGER ) ) )
----
2585

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - 91 - - COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - 91 - - COUNT ( * ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT 19 DIV 81 * + - 24 * + 19 * 14 * 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT 19 / 81 * + - 24 * + 19 * 14 * 66 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3389
SELECT COUNT( * ) - + + 59 DIV - 57 + + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-3389
SELECT COUNT ( * ) - + + 59 / - 57 + + COUNT ( * ) col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT 38 - + CASE + - 98 WHEN + 21 THEN + 82 / + CAST( NULL AS SIGNED ) + + 53 WHEN + 19 THEN NULL ELSE NULL END + - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT 38 - + CASE + - 98 WHEN + 21 THEN + 82 / + CAST ( NULL AS INTEGER ) + + 53 WHEN + 19 THEN NULL ELSE NULL END + - 18 AS col0
----
NULL

query I rowsort
SELECT 54 * + + 95
----
5130

query I rowsort
SELECT DISTINCT 87 * + - 19 * + - 55 AS col2
----
90915

query I rowsort
SELECT 44 * - 8
----
-352

query I rowsort
SELECT 79 + + 2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT + 92 DIV + ( + 69 )
----
1

skipif mysql # not compatible
query I rowsort label-3395
SELECT + 92 / + ( + 69 )
----
1

query I rowsort
SELECT + 53 * + 54 + + 14 AS col2
----
2876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3397
SELECT DISTINCT 23 * - - COUNT( * ) col1, - CAST( NULL AS SIGNED )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-3397
SELECT DISTINCT 23 * - - COUNT ( * ) col1, - CAST ( NULL AS INTEGER )
----
23
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT ALL 28 + - 35 DIV 81 + 90 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL 28 + - 35 / 81 + 90 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT - COUNT( ALL - 63 ) * + 51 * - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3399
SELECT - COUNT ( ALL - 63 ) * + 51 * - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT - MIN( ALL - - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-3400
SELECT - MIN ( ALL - - 68 )
----
-68

query II rowsort
SELECT DISTINCT - 63 + 30 col1, - 59 AS col0
----
-33
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3402
SELECT - 94 DIV - 87 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3402
SELECT - 94 / - 87 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL + COALESCE ( + 78, COUNT( * ) ) + + + 13
----
91

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + COALESCE ( + 78, COUNT ( * ) ) + + + 13
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3404
SELECT + 34 - 17, 61 * 73 + + CAST( NULL AS SIGNED ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-3404
SELECT + 34 - 17, 61 * 73 + + CAST ( NULL AS INTEGER ) AS col2
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT - ( - CASE + 65 WHEN COUNT( * ) + + + AVG ( DISTINCT 69 ) THEN NULL ELSE + 51 END )
----
51

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT - ( - CASE + 65 WHEN COUNT ( * ) + + + AVG ( DISTINCT 69 ) THEN NULL ELSE + 51 END )
----
51

query I rowsort
SELECT ALL - + ( - 8 ) AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3407
SELECT + 61 + + 53 + - 96 DIV - 51 + + NULLIF ( ( - 80 ), + CAST( NULL AS SIGNED ) * - + 16 ) * - 9, + 97 col0
----
835
97

skipif mysql # not compatible
query II rowsort label-3407
SELECT + 61 + + 53 + - 96 / - 51 + + NULLIF ( ( - 80 ), + CAST ( NULL AS INTEGER ) * - + 16 ) * - 9, + 97 col0
----
835
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3408
SELECT CASE + ( + CAST( - + 61 AS SIGNED ) ) WHEN - + 79 THEN - + 45 + - 97 ELSE 26 * - CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT CASE + ( + CAST ( - + 61 AS INTEGER ) ) WHEN - + 79 THEN - + 45 + - 97 ELSE 26 * - CAST ( NULL AS REAL ) END AS col0
----
NULL

query I rowsort
SELECT ALL - - 90 - 8
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3410
SELECT - CAST( - 94 AS SIGNED ) * COUNT( * ) * + ( + + 19 ) * - + 47
----
-83942

skipif mysql # not compatible
query I rowsort label-3410
SELECT - CAST ( - 94 AS INTEGER ) * COUNT ( * ) * + ( + + 19 ) * - + 47
----
-83942

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT DISTINCT SUM( DISTINCT - + 78 ) * + - 68 AS col1
----
5304

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT SUM ( DISTINCT - + 78 ) * + - 68 AS col1
----
5304

query I rowsort
SELECT 32 * 74
----
2368

query I rowsort
SELECT ALL - 32 * 86 AS col2
----
-2752

onlyif mysql # aggregate syntax: 
query II rowsort label-3414
SELECT 59 * 21 - - 91 AS col2, COUNT( * ) AS col2
----
1330
1

skipif mysql # not compatible
query II rowsort label-3414
SELECT 59 * 21 - - 91 AS col2, COUNT ( * ) AS col2
----
1330
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT ALL - 23 * - CAST( - 90 AS SIGNED ) AS col0
----
-2070

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - 23 * - CAST ( - 90 AS INTEGER ) AS col0
----
-2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3416
SELECT COUNT( * ) * - CAST( NULLIF ( + ( 12 ), - + 26 + - - 56 + + + 72 + - + 98 - SUM( ALL + ( 8 ) ) * 63 * - 49 ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3416
SELECT COUNT ( * ) * - CAST ( NULLIF ( + ( 12 ), - + 26 + - - 56 + + + 72 + - + 98 - SUM ( ALL + ( 8 ) ) * 63 * - 49 ) AS INTEGER ) AS col1
----
-12

query I rowsort
SELECT 48 - 25
----
23

query I rowsort
SELECT ALL + 59 - + + 32 AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3419
SELECT 0 AS col0, + 45 * COALESCE ( CAST( ( + - 70 ) AS SIGNED ), - 20 + 39 ) AS col0
----
0
-3150

skipif mysql # not compatible
query II rowsort label-3419
SELECT 0 AS col0, + 45 * COALESCE ( CAST ( ( + - 70 ) AS INTEGER ), - 20 + 39 ) AS col0
----
0
-3150

query II rowsort
SELECT - 38 AS col1, 68 AS col2
----
-38
68

query I rowsort
SELECT 64 * - - 31
----
1984

query I rowsort
SELECT 38 + + 75 - + 60 - - - 15 * 75 AS col2
----
-1072

query II rowsort
SELECT ALL 95 AS col2, + 93
----
95
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3424
SELECT DISTINCT 47 AS col1, + 23 + + NULLIF ( 32, - - 37 ) - - COUNT( * )
----
47
56

skipif mysql # not compatible
query II rowsort label-3424
SELECT DISTINCT 47 AS col1, + 23 + + NULLIF ( 32, - - 37 ) - - COUNT ( * )
----
47
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT 48 + - + COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3425
SELECT 48 + - + COUNT ( * ) AS col2
----
47

query I rowsort
SELECT ALL + 60 * 6
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT ALL + ( - 30 ) DIV + 13 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + ( - 30 ) / + 13 AS col1
----
-2

query I rowsort
SELECT DISTINCT 87 * + 11 AS col0
----
957

query I rowsort
SELECT ALL 46 * - 12 col0
----
-552

query I rowsort
SELECT ALL + 60 * 48
----
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3431
SELECT 44 DIV 16 * - - MAX( - - 48 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3431
SELECT 44 / 16 * - - MAX ( - - 48 ) AS col2
----
96

query I rowsort
SELECT ALL - 97 * 52
----
-5044

query I rowsort
SELECT 89 * + 21 col2
----
1869

onlyif mysql # aggregate syntax: 
query II rowsort label-3434
SELECT ALL - 88 + - - MAX( - 35 ) AS col2, - 61
----
-123
-61

skipif mysql # not compatible
query II rowsort label-3434
SELECT ALL - 88 + - - MAX ( - 35 ) AS col2, - 61
----
-123
-61

query I rowsort
SELECT ALL + 86 + 71 + + 57 + - + ( + 23 )
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT - CAST( NULL AS SIGNED ) + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT - CAST ( NULL AS INTEGER ) + 99 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT ALL - COUNT( * ) * + + 50 * - 78 * - CASE + - 21 WHEN + CAST( NULL AS SIGNED ) * + 19 + 22 THEN - 19 WHEN 61 * + 43 * - MAX( DISTINCT + 77 ) + + 83 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL - COUNT ( * ) * + + 50 * - 78 * - CASE + - 21 WHEN + CAST ( NULL AS INTEGER ) * + 19 + 22 THEN - 19 WHEN 61 * + 43 * - MAX ( DISTINCT + 77 ) + + 83 THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 61 col1, 17 col2
----
-61
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT + + 80 * + - COUNT( * ) * - 68 - + 94 + - ( ( - 77 ) ) AS col0
----
5423

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + + 80 * + - COUNT ( * ) * - 68 - + 94 + - ( ( - 77 ) ) AS col0
----
5423

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL - - MAX( ALL + - 94 ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL - - MAX ( ALL + - 94 ) col1
----
-94

query I rowsort
SELECT DISTINCT - + CASE + 1 WHEN 79 THEN - 59 / - - 16 + AVG ( + 83 ) END AS col0
----
NULL

query II rowsort
SELECT ALL - - 82 * - 57 + 65, + 23 AS col1
----
-4609
23

query I rowsort
SELECT DISTINCT - - ( + 85 )
----
85

query I rowsort
SELECT ALL + ( - + 70 ) * 16 * 48
----
-53760

query I rowsort
SELECT + 31 + + - 27 * - 74 * + 69 * + + 24
----
3308719

query I rowsort
SELECT ALL + 40 * - 70 * - + 50 + 33
----
140033

query I rowsort
SELECT DISTINCT - + COALESCE ( + + COALESCE ( 42, + + 17 ), - 58 ) AS col2
----
-42

query I rowsort
SELECT ALL 98 - 8 AS col1
----
90

query II rowsort
SELECT ALL - 30, 5 AS col1
----
-30
5

query II rowsort
SELECT ALL + - 42, + 64 + + + 58 AS col2
----
-42
122

query I rowsort
SELECT DISTINCT + 90 - + 27 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT + 86 * + 73 * NULLIF ( - 5, + 19 * + 73 + + - MAX( 62 ) * - COUNT( 42 ) )
----
-31390

skipif mysql # not compatible
query I rowsort label-3452
SELECT + 86 * + 73 * NULLIF ( - 5, + 19 * + 73 + + - MAX ( 62 ) * - COUNT ( 42 ) )
----
-31390

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT ALL + 68 DIV - + 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL + 68 / - + 43 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT 64 * + 13 / - 50 + - CASE + + 81 WHEN + 58 THEN + - 36 * + 22 WHEN COUNT( * ) THEN + + 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT 64 * + 13 / - 50 + - CASE + + 81 WHEN + 58 THEN + - 36 * + 22 WHEN COUNT ( * ) THEN + + 86 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT + 12 * + MAX( 19 ) * - + 68 AS col2
----
-15504

skipif mysql # not compatible
query I rowsort label-3455
SELECT + 12 * + MAX ( 19 ) * - + 68 AS col2
----
-15504

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3456
SELECT ALL CAST( 50 AS SIGNED ) DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL CAST ( 50 AS INTEGER ) / + 86
----
0

query II rowsort
SELECT - 53 * 27, - 1 AS col0
----
-1431
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT + 82 * - - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3458
SELECT + 82 * - - COUNT ( * ) AS col1
----
82

query I rowsort
SELECT - ( + + 42 ) AS col2
----
-42

query I rowsort
SELECT - 17 * - 53
----
901

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ALL CASE + - NULLIF ( - 61, 38 * + 38 + + 2 ) WHEN - 16 + - + 37 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL CASE + - NULLIF ( - 61, 38 * + 38 + + 2 ) WHEN - 16 + - + 37 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( + - 44, - 54 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3463
SELECT - ( + + COUNT( CASE + 40 WHEN + 37 THEN 57 + + + 25 + + 84 WHEN - 51 * - CAST( + - 72 AS SIGNED ) - + 71 + - 73 THEN - 73 END ) ), 77 AS col1
----
0
77

skipif mysql # not compatible
query II rowsort label-3463
SELECT - ( + + COUNT ( CASE + 40 WHEN + 37 THEN 57 + + + 25 + + 84 WHEN - 51 * - CAST ( + - 72 AS INTEGER ) - + 71 + - 73 THEN - 73 END ) ), 77 AS col1
----
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT - 75 - - 56 * - SUM( DISTINCT - 48 ) + 99 - + 75 AS col0
----
2637

skipif mysql # not compatible
query I rowsort label-3464
SELECT - 75 - - 56 * - SUM ( DISTINCT - 48 ) + 99 - + 75 AS col0
----
2637

query I rowsort
SELECT ALL + 38 + - + ( - NULLIF ( + 98, + + 34 ) ) * 26 AS col1
----
2586

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL + COUNT( * ) + - SUM( DISTINCT 73 ) - - 91 * - - ( - + 17 ) AS col1
----
-1619

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + COUNT ( * ) + - SUM ( DISTINCT 73 ) - - 91 * - - ( - + 17 ) AS col1
----
-1619

query I rowsort
SELECT DISTINCT + - 53 * 24 * + 41
----
-52152

query I rowsort
SELECT ALL ( - - 66 ) AS col0
----
66

query I rowsort
SELECT - - 68 + - 52 + + 48 AS col2
----
64

query I rowsort
SELECT ALL + + NULLIF ( - 62, + 68 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT DISTINCT + + 61 * + + 20 - + + ( COUNT( * ) )
----
1219

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT + + 61 * + + 20 - + + ( COUNT ( * ) )
----
1219

onlyif mysql # DIV for integer division: 
query I rowsort label-3472
SELECT - + 81 DIV 53 - 29
----
-30

skipif mysql # not compatible
query I rowsort label-3472
SELECT - + 81 / 53 - 29
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT - - 24 * - 79 * + MIN( 45 ) AS col0
----
-85320

skipif mysql # not compatible
query I rowsort label-3473
SELECT - - 24 * - 79 * + MIN ( 45 ) AS col0
----
-85320

query I rowsort
SELECT DISTINCT + - 81 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL + COUNT( ALL - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + COUNT ( ALL - 63 )
----
1

query I rowsort
SELECT DISTINCT + NULLIF ( + + 88, - 26 * - 34 + + - 29 + + 92 ) col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3477
SELECT + CAST( + ( - ( - 45 ) ) AS SIGNED ) col0, 28 col2
----
45
28

skipif mysql # not compatible
query II rowsort label-3477
SELECT + CAST ( + ( - ( - 45 ) ) AS INTEGER ) col0, 28 col2
----
45
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT + - COUNT( * ) * + + 51 * - 17 * + SUM( ALL - - 59 ) + - 49 * + CAST( - 55 AS SIGNED )
----
53848

skipif mysql # not compatible
query I rowsort label-3478
SELECT + - COUNT ( * ) * + + 51 * - 17 * + SUM ( ALL - - 59 ) + - 49 * + CAST ( - 55 AS INTEGER )
----
53848

query I rowsort
SELECT DISTINCT ( + 21 ) * - 98 - + 36
----
-2094

query I rowsort
SELECT 96 * 20 - - 92 AS col1
----
2012

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT CASE + 57 WHEN - 42 / 20 THEN - 60 / 47 * - 38 - - + COUNT( * ) + 77 + + - 58 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT CASE + 57 WHEN - 42 / 20 THEN - 60 / 47 * - 38 - - + COUNT ( * ) + 77 + + - 58 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT + MAX( + 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT + MAX ( + 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT MAX( DISTINCT - 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3483
SELECT MAX ( DISTINCT - 74 ) AS col1
----
-74

query II rowsort
SELECT DISTINCT 43 AS col0, 23
----
43
23

query I rowsort
SELECT ALL 72 * 52 + 62
----
3806

onlyif mysql # aggregate syntax: 
query II rowsort label-3486
SELECT 33 * + + COUNT( * ) - 59 AS col1, MIN( ALL + 11 )
----
-26
11

skipif mysql # not compatible
query II rowsort label-3486
SELECT 33 * + + COUNT ( * ) - 59 AS col1, MIN ( ALL + 11 )
----
-26
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT MIN( - 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3487
SELECT MIN ( - 94 ) AS col2
----
-94

query I rowsort
SELECT + 81 + - 85 AS col2
----
-4

query I rowsort
SELECT DISTINCT 10 + 88 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + 51 + + 73 + NULLIF ( - COUNT( * ), - - 71 ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-3490
SELECT + 51 + + 73 + NULLIF ( - COUNT ( * ), - - 71 ) AS col2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3491
SELECT 84, CAST( - 1 AS SIGNED ) + + 98 * + 49 * + - 5 AS col0
----
84
-24011

skipif mysql # not compatible
query II rowsort label-3491
SELECT 84, CAST ( - 1 AS INTEGER ) + + 98 * + 49 * + - 5 AS col0
----
84
-24011

query I rowsort
SELECT + NULLIF ( - - 85, 89 + - 51 ) + + + NULLIF ( - 59, - 77 )
----
26

query I rowsort
SELECT ALL 33 + - + 35 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT DISTINCT + 78 * - + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT + 78 * - + COUNT ( * ) AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3495
SELECT DISTINCT CASE 72 WHEN ( - 9 ) * - - ( - - CAST( 19 AS SIGNED ) ) THEN NULL WHEN + 73 * - 68 THEN - + 22 * - - 62 + + 44 END + - MIN( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT CASE 72 WHEN ( - 9 ) * - - ( - - CAST ( 19 AS INTEGER ) ) THEN NULL WHEN + 73 * - 68 THEN - + 22 * - - 62 + + 44 END + - MIN ( 92 )
----
NULL

query I rowsort
SELECT - - 39 + + 93 AS col0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT ALL - 34 * + ( - + NULLIF ( + 76, + 93 ) ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - 34 * + ( - + NULLIF ( + 76, + 93 ) ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 84 - - 63 col1
----
147

query I rowsort
SELECT + 4 * - + 65
----
-260

query I rowsort
SELECT - 74 * + - 94
----
6956

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - + 62 + - + ( - 43 ) + + ( - CASE + + 84 WHEN COUNT( 7 ) THEN - - 23 END ) + + 79 - + 43 + + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT - + 62 + - + ( - 43 ) + + ( - CASE + + 84 WHEN COUNT ( 7 ) THEN - - 23 END ) + + 79 - + 43 + + 22 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3502
SELECT DISTINCT + + 76 / - 36 + 92 + 25 * - + CAST( NULL AS SIGNED ) * 16 - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT + + 76 / - 36 + 92 + 25 * - + CAST ( NULL AS INTEGER ) * 16 - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT - - 87 + - - CAST( - + 36 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-3503
SELECT - - 87 + - - CAST ( - + 36 AS INTEGER )
----
51

query I rowsort
SELECT NULLIF ( 69, 6 ) * - + 21 AS col0
----
-1449

query I rowsort
SELECT + - COALESCE ( - 17, + - 17 ) AS col0
----
17

query I rowsort
SELECT ALL - - 16 * 3
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT 90 * + 32 / - - CASE - 5 WHEN - 28 THEN + 75 * - CASE - 1 WHEN - 57 THEN NULL WHEN + - COUNT( * ) * 54 * - 35 THEN - 57 END WHEN + ( 21 ) * - - 89 THEN NULL ELSE NULL END * COALESCE ( + + 40, + 17 * + NULLIF ( COUNT( * ), - 1 * - 79 ), - 22 ) + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT 90 * + 32 / - - CASE - 5 WHEN - 28 THEN + 75 * - CASE - 1 WHEN - 57 THEN NULL WHEN + - COUNT ( * ) * 54 * - 35 THEN - 57 END WHEN + ( 21 ) * - - 89 THEN NULL ELSE NULL END * COALESCE ( + + 40, + 17 * + NULLIF ( COUNT ( * ), - 1 * - 79 ), - 22 ) + + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL - COUNT( * ) * + 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - COUNT ( * ) * + 90 AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT 21 + - 1 + + + ( + 82 ) + - 46 * CAST( 53 AS SIGNED ) * + 23 col1
----
-55972

skipif mysql # not compatible
query I rowsort label-3509
SELECT 21 + - 1 + + + ( + 82 ) + - 46 * CAST ( 53 AS INTEGER ) * + 23 col1
----
-55972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3510
SELECT - 20 * - 79 - - CAST( NULL AS SIGNED ), MAX( - 84 ) AS col1
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-3510
SELECT - 20 * - 79 - - CAST ( NULL AS INTEGER ), MAX ( - 84 ) AS col1
----
NULL
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL + - COUNT( * ) * + + SUM( + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + - COUNT ( * ) * + + SUM ( + 42 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT 67 DIV + - 68 col0
----
0

skipif mysql # not compatible
query I rowsort label-3512
SELECT 67 / + - 68 col0
----
0

query I rowsort
SELECT DISTINCT + 19 + COALESCE ( - 23, + 72 * + 23 * - 70 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT 48 * NULLIF ( - - NULLIF ( + 41, + 98 ), + SUM( ALL + 93 ) - + MAX( ALL 26 ) ) * + 39 AS col0
----
76752

skipif mysql # not compatible
query I rowsort label-3514
SELECT 48 * NULLIF ( - - NULLIF ( + 41, + 98 ), + SUM ( ALL + 93 ) - + MAX ( ALL 26 ) ) * + 39 AS col0
----
76752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3515
SELECT ALL + COUNT( * ) + 34 * + + COALESCE ( - - COUNT( * ), + MAX( DISTINCT - 30 ) + - - 25, 81 ) + - 59 + - 57 + + 81 + - 41 AS col1, - 5 + - CAST( NULL AS SIGNED )
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-3515
SELECT ALL + COUNT ( * ) + 34 * + + COALESCE ( - - COUNT ( * ), + MAX ( DISTINCT - 30 ) + - - 25, 81 ) + - 59 + - 57 + + 81 + - 41 AS col1, - 5 + - CAST ( NULL AS INTEGER )
----
-41
NULL

query I rowsort
SELECT ALL 29 + - 83 AS col0
----
-54

query I rowsort
SELECT 64 + 13 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL - MIN( + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - MIN ( + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT 38 * 49 * COUNT( * ) * + COUNT( * ) AS col1
----
1862

skipif mysql # not compatible
query I rowsort label-3519
SELECT 38 * 49 * COUNT ( * ) * + COUNT ( * ) AS col1
----
1862

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3520
SELECT ALL - COUNT( * ) AS col1, 32 DIV - 86
----
-1
0

skipif mysql # not compatible
query II rowsort label-3520
SELECT ALL - COUNT ( * ) AS col1, 32 / - 86
----
-1
0

query II rowsort
SELECT 27, 88 + 98 AS col0
----
27
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3522
SELECT CAST( NULL AS SIGNED ) * 88 + 15 * - 53 * - + 50 + - 4, - CASE COUNT( DISTINCT 90 ) WHEN - 91 + 0 + 66 + 73 THEN + 81 END / - COUNT( * ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3522
SELECT CAST ( NULL AS INTEGER ) * 88 + 15 * - 53 * - + 50 + - 4, - CASE COUNT ( DISTINCT 90 ) WHEN - 91 + 0 + 66 + 73 THEN + 81 END / - COUNT ( * ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3523
SELECT ALL - 1 + + + CASE + CASE 21 WHEN - + 56 + - 63 THEN - + ( + 79 ) * + 97 WHEN - + ( + - COUNT( * ) ) THEN + + CASE + 25 WHEN + 86 * - 2 + - + COUNT( * ) / - 38 + - 69 THEN NULL WHEN 93 THEN NULL ELSE + 91 * + CASE - ( + 77 ) WHEN 71 THEN 6 END - 59 END * - AVG ( - 81 - - 14 * 7 ) ELSE NULL END WHEN - 55 THEN CAST( 43 AS SIGNED ) + 55 ELSE - 49 + - 33 END AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL - 1 + + + CASE + CASE 21 WHEN - + 56 + - 63 THEN - + ( + 79 ) * + 97 WHEN - + ( + - COUNT ( * ) ) THEN + + CASE + 25 WHEN + 86 * - 2 + - + COUNT ( * ) / - 38 + - 69 THEN NULL WHEN 93 THEN NULL ELSE + 91 * + CASE - ( + 77 ) WHEN 71 THEN 6 END - 59 END * - AVG ( - 81 - - 14 * 7 ) ELSE NULL END WHEN - 55 THEN CAST ( 43 AS INTEGER ) + 55 ELSE - 49 + - 33 END AS col0
----
-83

query II rowsort
SELECT + 49 AS col1, ( - CASE 18 WHEN + 40 THEN - + 84 ELSE NULL END ) AS col1
----
49
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT 92 DIV + - 24
----
-3

skipif mysql # not compatible
query I rowsort label-3525
SELECT 92 / + - 24
----
-3

query I rowsort
SELECT ALL 69 + 73
----
142

query I rowsort
SELECT 98 * + - 26
----
-2548

query I rowsort
SELECT ALL 87 * + ( 72 ) * + 69 AS col0
----
432216

onlyif mysql # aggregate syntax: 
query III rowsort label-3529
SELECT DISTINCT 61, 8 + COUNT( * ) + + 92 col0, 53 AS col0
----
61
101
53

skipif mysql # not compatible
query III rowsort label-3529
SELECT DISTINCT 61, 8 + COUNT ( * ) + + 92 col0, 53 AS col0
----
61
101
53

query I rowsort
SELECT ALL - 39 + + 99
----
60

query I rowsort
SELECT ALL NULLIF ( 55, 26 + - 62 ) - - + 89 AS col1
----
144

query I rowsort
SELECT + 53 + 70 * - + 31 AS col0
----
-2117

query I rowsort
SELECT ALL 5 - - 2 * + 22 * - 54 + - 40 - - 24 * + 33 - 10
----
-1629

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT ALL 19 DIV - 91 * + 33
----
0

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL 19 / - 91 * + 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT COUNT( - + 27 ) - 16
----
-15

skipif mysql # not compatible
query I rowsort label-3535
SELECT COUNT ( - + 27 ) - 16
----
-15

query I rowsort
SELECT ALL - 97 * + 14
----
-1358

query I rowsort
SELECT 87 * + + 12
----
1044

query I rowsort
SELECT + 2 - 37 col2
----
-35

query I rowsort
SELECT - + ( + 31 )
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-3540
SELECT DISTINCT 51 * 35, 91 DIV NULLIF ( - 70, 93 + - 3 ) + + COALESCE ( + 29, 22 + - 96 - - + 97 * + + 99 ) AS col0
----
1785
28

skipif mysql # not compatible
query II rowsort label-3540
SELECT DISTINCT 51 * 35, 91 / NULLIF ( - 70, 93 + - 3 ) + + COALESCE ( + 29, 22 + - 96 - - + 97 * + + 99 ) AS col0
----
1785
28

query III rowsort
SELECT DISTINCT - 8 AS col1, 87 + - - 72 + 48 col0, + - 98 * 80 AS col2
----
-8
207
-7840

query I rowsort
SELECT ALL ( + 94 ) col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3543
SELECT 26 * 59 + + 9 DIV + CAST( + 22 AS SIGNED ) DIV - COUNT( * )
----
1534

skipif mysql # not compatible
query I rowsort label-3543
SELECT 26 * 59 + + 9 / + CAST ( + 22 AS INTEGER ) / - COUNT ( * )
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL ( - 91 ) * + 24 * + MAX( DISTINCT 27 ) - - COUNT( * ) + + 94 - 60 + 87 * - COUNT( * ) * - + 62 / - CASE - 25 WHEN + 12 + + - 74 + + + 84 THEN + 12 WHEN - - AVG ( ALL - 12 ) THEN NULL END * MIN( DISTINCT + + 80 ) - + 77 / + CASE + 71 / - 37 WHEN - 76 + - 54 THEN + 90 ELSE 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL ( - 91 ) * + 24 * + MAX ( DISTINCT 27 ) - - COUNT ( * ) + + 94 - 60 + 87 * - COUNT ( * ) * - + 62 / - CASE - 25 WHEN + 12 + + - 74 + + + 84 THEN + 12 WHEN - - AVG ( ALL - 12 ) THEN NULL END * MIN ( DISTINCT + + 80 ) - + 77 / + CASE + 71 / - 37 WHEN - 76 + - 54 THEN + 90 ELSE 68 END AS col1
----
NULL

query I rowsort
SELECT - 78 * + + 58 * + 86
----
-389064

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT 40, - 15 - - COUNT( * ) col0
----
40
-14

skipif mysql # not compatible
query II rowsort label-3546
SELECT 40, - 15 - - COUNT ( * ) col0
----
40
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * 73 + 31 - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * 73 + 31 - + 57
----
NULL

query I rowsort
SELECT DISTINCT + 28 * ( ( + 54 ) )
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL - - NULLIF ( 9, + + COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - - NULLIF ( 9, + + COUNT ( * ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT 49 * - + 99 + - + COUNT( * )
----
-4852

skipif mysql # not compatible
query I rowsort label-3550
SELECT 49 * - + 99 + - + COUNT ( * )
----
-4852

query I rowsort
SELECT 36 * 16 + - - 13 + - + ( - 55 ) * + 98
----
5979

query I rowsort
SELECT ALL + 9 + 93 * 16 AS col0
----
1497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3553
SELECT ALL - 41 DIV - 89 * MAX( + - 89 ) * - 13
----
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL - 41 / - 89 * MAX ( + - 89 ) * - 13
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3554
SELECT 48 DIV COUNT( * ) AS col0, - 20
----
48
-20

skipif mysql # not compatible
query II rowsort label-3554
SELECT 48 / COUNT ( * ) AS col0, - 20
----
48
-20

query I rowsort
SELECT ALL - 32 + - 72
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL + 69 + + - 91 + - 99 + - - COUNT( * ) + - COUNT( * ) * - 50
----
-70

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + 69 + + - 91 + - 99 + - - COUNT ( * ) + - COUNT ( * ) * - 50
----
-70

query I rowsort
SELECT DISTINCT - 15 + + 38 AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3558
SELECT ALL - 42 DIV + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL - 42 / + COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT DISTINCT + 87 + + CASE + 85 WHEN - 89 - - + 96 + - + 60 * - COUNT( * ) THEN NULL WHEN - ( - 77 ) * + 85 * + 31 THEN NULL WHEN + 55 * 73 - + COALESCE ( 30, - 37, - COUNT( * ) ) + + 99 - - AVG ( - - 76 ) * - 65 THEN - ( - 53 ) ELSE NULL END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT + 87 + + CASE + 85 WHEN - 89 - - + 96 + - + 60 * - COUNT ( * ) THEN NULL WHEN - ( - 77 ) * + 85 * + 31 THEN NULL WHEN + 55 * 73 - + COALESCE ( 30, - 37, - COUNT ( * ) ) + + 99 - - AVG ( - - 76 ) * - 65 THEN - ( - 53 ) ELSE NULL END * 38
----
NULL

query I rowsort
SELECT ALL - 70 + - 57 + - - 98 * 58 + + 98 AS col2
----
5655

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL - NULLIF ( - 48, COUNT( * ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL - NULLIF ( - 48, COUNT ( * ) ) AS col0
----
48

query II rowsort
SELECT 82 + + 64 AS col2, 5
----
146
5

query I rowsort
SELECT ALL + 7 - - CASE WHEN NULL IS NOT NULL THEN COALESCE ( + - 91, + NULLIF ( - 25, + 43 + + - 96 ) - + - 67 ) END
----
NULL

query I rowsort
SELECT ALL + 70 - 51
----
19

query I rowsort
SELECT ALL 16 - + 3 col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT COUNT( * ) - 55
----
-54

skipif mysql # not compatible
query I rowsort label-3566
SELECT COUNT ( * ) - 55
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL - - 17 * + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - - 17 * + COUNT ( * )
----
17

query I rowsort
SELECT 22 * - 75
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT COUNT( * ) + COUNT( * ) - - 80
----
82

skipif mysql # not compatible
query I rowsort label-3569
SELECT COUNT ( * ) + COUNT ( * ) - - 80
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT - + CASE + 57 WHEN - - 94 THEN - 70 DIV - 44 - + + 26 WHEN + 24 * + 39 THEN NULL ELSE - 20 * - ( - - 41 ) END
----
-820

skipif mysql # not compatible
query I rowsort label-3570
SELECT - + CASE + 57 WHEN - - 94 THEN - 70 / - 44 - + + 26 WHEN + 24 * + 39 THEN NULL ELSE - 20 * - ( - - 41 ) END
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL + 68 * NULLIF ( - + ( + 39 ), - 95 ) + - COUNT( * ) AS col1
----
-2653

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL + 68 * NULLIF ( - + ( + 39 ), - 95 ) + - COUNT ( * ) AS col1
----
-2653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3572
SELECT ALL - 57 * + CASE - - CAST( + 14 AS SIGNED ) WHEN + CAST( + 82 AS SIGNED ) * 98 * - 82 + - 47 THEN - 20 * + COUNT( * ) + + 25 + - 60 - + + NULLIF ( + SUM( DISTINCT - 82 ), - MIN( ALL - 85 ) ) - - 39 * - + 38 / 46 END * - COALESCE ( 25, + ( - 7 ) * 47, 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - 57 * + CASE - - CAST ( + 14 AS INTEGER ) WHEN + CAST ( + 82 AS INTEGER ) * 98 * - 82 + - 47 THEN - 20 * + COUNT ( * ) + + 25 + - 60 - + + NULLIF ( + SUM ( DISTINCT - 82 ), - MIN ( ALL - 85 ) ) - - 39 * - + 38 / 46 END * - COALESCE ( 25, + ( - 7 ) * 47, 86 )
----
NULL

query I rowsort
SELECT - 96 * 44
----
-4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT + - 87 + CAST( + NULLIF ( + COALESCE ( 12, - COUNT( * ), + + 11, - 5 * + ( - 13 ) * - 90 * 90 + ( - 82 ) ), 41 - - - 95 * - 68 - + + 10 + + + ( - 89 ) ) AS SIGNED ) + + 81 + - 81 + 64 * - 48 * 22 col1
----
-67659

skipif mysql # not compatible
query I rowsort label-3574
SELECT + - 87 + CAST ( + NULLIF ( + COALESCE ( 12, - COUNT ( * ), + + 11, - 5 * + ( - 13 ) * - 90 * 90 + ( - 82 ) ), 41 - - - 95 * - 68 - + + 10 + + + ( - 89 ) ) AS INTEGER ) + + 81 + - 81 + 64 * - 48 * 22 col1
----
-67659

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT + MIN( - + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT + MIN ( - + 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT + + 79 * COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3576
SELECT + + 79 * COUNT ( * ) AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3577
SELECT DISTINCT CASE + 93 WHEN 95 THEN NULL WHEN - 47 THEN NULL WHEN - 25 + 96 THEN - 73 * + 59 - COALESCE ( + CAST( NULL AS SIGNED ), - + COUNT( * ) ) * AVG ( - 94 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT CASE + 93 WHEN 95 THEN NULL WHEN - 47 THEN NULL WHEN - 25 + 96 THEN - 73 * + 59 - COALESCE ( + CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) * AVG ( - 94 ) END
----
NULL

query I rowsort
SELECT - - 10 * - 15 AS col2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT - - COUNT( 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3579
SELECT - - COUNT ( 37 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT + + 30 DIV 10
----
3

skipif mysql # not compatible
query I rowsort label-3580
SELECT + + 30 / 10
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + 98 + 76 + + COUNT( * ) + - 91 * 29
----
-2464

skipif mysql # not compatible
query I rowsort label-3581
SELECT + 98 + 76 + + COUNT ( * ) + - 91 * 29
----
-2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT DISTINCT 37 DIV + COUNT( + - 40 ) - + + ( + + 42 ) + + MAX( + 96 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT 37 / + COUNT ( + - 40 ) - + + ( + + 42 ) + + MAX ( + 96 ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3583
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) / 31 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) / 31 * + 84
----
NULL

query I rowsort
SELECT ALL + 73 * + 3 + + 90 AS col1
----
309

query I rowsort
SELECT ALL 69 * 61 col1
----
4209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3586
SELECT CASE + CAST( COUNT( * ) AS SIGNED ) WHEN MAX( + 88 ) THEN - 99 WHEN + + COUNT( DISTINCT - - 34 ) THEN 12 END col0
----
12

skipif mysql # not compatible
query I rowsort label-3586
SELECT CASE + CAST ( COUNT ( * ) AS INTEGER ) WHEN MAX ( + 88 ) THEN - 99 WHEN + + COUNT ( DISTINCT - - 34 ) THEN 12 END col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + 36 + + + COUNT( * ) + - - 31 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 36 + + + COUNT ( * ) + - - 31 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3588
SELECT ALL COUNT( 36 ) * + 32 * - 58 + + + CASE - - 55 WHEN - 38 - COALESCE ( + 98, + 93 * 96 + ( + + ( - 21 ) ) + - 37 + - 48 ) THEN CAST( NULL AS SIGNED ) DIV AVG ( + + 18 ) WHEN + + 16 THEN - + 13 ELSE - - 47 END + + 99 + - 46 DIV + COUNT( * ) + 56 AS col2
----
-1700

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL COUNT ( 36 ) * + 32 * - 58 + + + CASE - - 55 WHEN - 38 - COALESCE ( + 98, + 93 * 96 + ( + + ( - 21 ) ) + - 37 + - 48 ) THEN CAST ( NULL AS INTEGER ) / AVG ( + + 18 ) WHEN + + 16 THEN - + 13 ELSE - - 47 END + + 99 + - 46 / + COUNT ( * ) + 56 AS col2
----
-1700

query I rowsort
SELECT + 0 + + 95
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + COUNT( * ) * - 48 + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3590
SELECT + COUNT ( * ) * - 48 + - COUNT ( * )
----
-49

query I rowsort
SELECT + ( - 0 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3592
SELECT DISTINCT + 11, + 61 * - CAST( COALESCE ( 58, - + 32 - 49 / - - 53 ) AS SIGNED ) * - 74 AS col1
----
11
261812

skipif mysql # not compatible
query II rowsort label-3592
SELECT DISTINCT + 11, + 61 * - CAST ( COALESCE ( 58, - + 32 - 49 / - - 53 ) AS INTEGER ) * - 74 AS col1
----
11
261812

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT + CASE + - COALESCE ( + - ( - COUNT( * ) ), 82 ) WHEN + 65 THEN + 22 * NULLIF ( - + 74, - + 87 * - 51 + 64 ) + + - 68 - 40 * + + 30 - + - ( - - 18 ) ELSE + - ( + - 89 ) END * + - 82
----
-7298

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + CASE + - COALESCE ( + - ( - COUNT ( * ) ), 82 ) WHEN + 65 THEN + 22 * NULLIF ( - + 74, - + 87 * - 51 + 64 ) + + - 68 - 40 * + + 30 - + - ( - - 18 ) ELSE + - ( + - 89 ) END * + - 82
----
-7298

query I rowsort
SELECT 75 * + - 59 + + ( - 69 )
----
-4494

query I rowsort
SELECT ALL 78 * + 60 - - 36 + - 86 AS col2
----
4630

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT + ( - + NULLIF ( - COUNT( * ), + 3 ) ) AS col0, ( + + 31 )
----
1
31

skipif mysql # not compatible
query II rowsort label-3596
SELECT + ( - + NULLIF ( - COUNT ( * ), + 3 ) ) AS col0, ( + + 31 )
----
1
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - 71 * 72 * - COUNT( * ) + - COUNT( * ) AS col2
----
5111

skipif mysql # not compatible
query I rowsort label-3597
SELECT - 71 * 72 * - COUNT ( * ) + - COUNT ( * ) AS col2
----
5111

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL + COUNT( - 59 ) * - - 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL + COUNT ( - 59 ) * - - 17 AS col2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT + ( + 8 ) DIV 86 + - 95
----
-95

skipif mysql # not compatible
query I rowsort label-3599
SELECT + ( + 8 ) / 86 + - 95
----
-95

query II rowsort
SELECT DISTINCT + ( 57 ) * - - 76, 68 AS col0
----
4332
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT + 0 AS col2, NULLIF ( + 55, - MIN( ALL 92 ) * - 11 ) + + - 49 AS col0
----
0
6

skipif mysql # not compatible
query II rowsort label-3601
SELECT + 0 AS col2, NULLIF ( + 55, - MIN ( ALL 92 ) * - 11 ) + + - 49 AS col0
----
0
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3602
SELECT ALL COALESCE ( + COUNT( * ), - ( - COUNT( * ) ) + - 30 + + 87 * MAX( + - 68 ), - COALESCE ( - 69, - ( 34 ) DIV + 63, NULLIF ( + + 43, + 91 ) + - + CAST( - 78 AS SIGNED ) * + 1 DIV + NULLIF ( - - 34, + + 98 DIV COUNT( * ) + MAX( 53 ) * + 13 - 0 DIV 61 ) * 17 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL COALESCE ( + COUNT ( * ), - ( - COUNT ( * ) ) + - 30 + + 87 * MAX ( + - 68 ), - COALESCE ( - 69, - ( 34 ) / + 63, NULLIF ( + + 43, + 91 ) + - + CAST ( - 78 AS INTEGER ) * + 1 / + NULLIF ( - - 34, + + 98 / COUNT ( * ) + MAX ( 53 ) * + 13 - 0 / 61 ) * 17 ) ) AS col2
----
1

query I rowsort
SELECT - 71 * + 1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL COALESCE ( COUNT( ALL - 8 ), + 20 * - 32 - - ( ( COUNT( * ) ) ) - + COUNT( * ) + + 19 * + + 74 ) * + COUNT( * ) * - 56
----
-56

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL COALESCE ( COUNT ( ALL - 8 ), + 20 * - 32 - - ( ( COUNT ( * ) ) ) - + COUNT ( * ) + + 19 * + + 74 ) * + COUNT ( * ) * - 56
----
-56

query II rowsort
SELECT DISTINCT + NULLIF ( - 94, - 25 * + 52 * 82 ) * - 39 AS col0, 68 * 84
----
3666
5712

onlyif mysql # aggregate syntax: 
query II rowsort label-3606
SELECT 58 AS col0, COUNT( * )
----
58
1

skipif mysql # not compatible
query II rowsort label-3606
SELECT 58 AS col0, COUNT ( * )
----
58
1

query I rowsort
SELECT DISTINCT - 61 + + + 6
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL + COUNT( - - 46 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL + COUNT ( - - 46 ) col1
----
1

query I rowsort
SELECT - - CASE + 19 WHEN - 25 * - 84 * 59 THEN NULL WHEN + - 89 THEN - NULLIF ( - + 44, + - 56 ) + 36 + - 49 END AS col1
----
NULL

query I rowsort
SELECT - + ( + - 9 ) AS col2
----
9

query II rowsort
SELECT - - 86, ( - - 83 ) + + ( - - 74 ) + - 5 * - 29 AS col1
----
86
302

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL - 53 + COUNT( * ) + - - 62 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - 53 + COUNT ( * ) + - - 62 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3613
SELECT - 96 * + COUNT( * ) * - CAST( + - 50 AS SIGNED ) AS col1
----
-4800

skipif mysql # not compatible
query I rowsort label-3613
SELECT - 96 * + COUNT ( * ) * - CAST ( + - 50 AS INTEGER ) AS col1
----
-4800

query I rowsort
SELECT DISTINCT + 87 + + + 41 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL + NULLIF ( - MIN( ALL 16 ), 45 ) * - 78
----
1248

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL + NULLIF ( - MIN ( ALL 16 ), 45 ) * - 78
----
1248

query I rowsort
SELECT DISTINCT - ( - 19 ) + - - 33 AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3617
SELECT DISTINCT CAST( 94 AS SIGNED ) AS col0, - 12 AS col2
----
94
-12

skipif mysql # not compatible
query II rowsort label-3617
SELECT DISTINCT CAST ( 94 AS INTEGER ) AS col0, - 12 AS col2
----
94
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT + MIN( DISTINCT - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-3618
SELECT + MIN ( DISTINCT - 34 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT - COALESCE ( - ( + 5 ), - 42 * + 94, - + 55 ) DIV 66 DIV + - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3619
SELECT - COALESCE ( - ( + 5 ), - 42 * + 94, - + 55 ) / 66 / + - 95 AS col2
----
0

query I rowsort
SELECT - 76 * - 94 AS col1
----
7144

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT + SUM( + + 91 ) * - 63 AS col0
----
-5733

skipif mysql # not compatible
query I rowsort label-3621
SELECT + SUM ( + + 91 ) * - 63 AS col0
----
-5733

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT ALL COUNT( * ) * - NULLIF ( + 91, - 43 ) AS col2, 59
----
-91
59

skipif mysql # not compatible
query II rowsort label-3622
SELECT ALL COUNT ( * ) * - NULLIF ( + 91, - 43 ) AS col2, 59
----
-91
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3623
SELECT CAST( ( - COALESCE ( - 21, + 65, + + 37 * + MAX( ALL 34 ) ) ) AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3623
SELECT CAST ( ( - COALESCE ( - 21, + 65, + + 37 * + MAX ( ALL 34 ) ) ) AS INTEGER ) AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3624
SELECT ALL + 6 DIV + 16 DIV COUNT( + 5 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL + 6 / + 16 / COUNT ( + 5 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3625
SELECT ALL 40 * + 57 * - - 92 * - - COALESCE ( + 54, 45 * - - 62 ), - COUNT( * ) DIV + 59 AS col0
----
11327040
0

skipif mysql # not compatible
query II rowsort label-3625
SELECT ALL 40 * + 57 * - - 92 * - - COALESCE ( + 54, 45 * - - 62 ), - COUNT ( * ) / + 59 AS col0
----
11327040
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT DISTINCT COUNT( 8 ) * - + COUNT( * ) DIV + MAX( + + 77 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT COUNT ( 8 ) * - + COUNT ( * ) / + MAX ( + + 77 ) AS col1
----
0

query II rowsort
SELECT DISTINCT 69 * + 74 AS col1, - NULLIF ( - NULLIF ( + 34, - 10 * - 69 ), + 86 ) AS col2
----
5106
34

query I rowsort
SELECT + 81 * + - 78 * + 56 * + - 35 AS col1
----
12383280

query I rowsort
SELECT ALL 4 * - 79
----
-316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3630
SELECT + COALESCE ( + 69, COUNT( * ) * + 61 * - 1, - 61 + + + 15 DIV + - 34 + 83 * - - 25 DIV 89 + + - 66 ) * + 6 col1
----
414

skipif mysql # not compatible
query I rowsort label-3630
SELECT + COALESCE ( + 69, COUNT ( * ) * + 61 * - 1, - 61 + + + 15 / + - 34 + 83 * - - 25 / 89 + + - 66 ) * + 6 col1
----
414

query I rowsort
SELECT COALESCE ( + - 80, + - 65, + - 98 - 43 * - + 49 ) * - 85 * + 41 + + - 31 * 88 * + - 92 + + 4 + + - 30 - - 89 AS col0
----
529839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT CAST( NULL AS SIGNED ) * 16 + + 76 + 21 * SUM( - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT CAST ( NULL AS INTEGER ) * 16 + + 76 + 21 * SUM ( - 84 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3633
SELECT ( 18 ) AS col2, AVG ( ALL + - ( - 47 ) ) + - + CAST( NULL AS SIGNED ) AS col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3633
SELECT ( 18 ) AS col2, AVG ( ALL + - ( - 47 ) ) + - + CAST ( NULL AS INTEGER ) AS col1
----
18
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3634
SELECT - 51 * 43, - COUNT( ALL - 60 ) AS col2
----
-2193
-1

skipif mysql # not compatible
query II rowsort label-3634
SELECT - 51 * 43, - COUNT ( ALL - 60 ) AS col2
----
-2193
-1

query I rowsort
SELECT 7 + + 22
----
29

query I rowsort
SELECT DISTINCT - - 29 col1
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3637
SELECT ALL + - 49 * - + 19 * + CAST( NULL AS DECIMAL ) + - 26 * + 26 * 84 * - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL + - 49 * - + 19 * + CAST ( NULL AS REAL ) + - 26 * + 26 * 84 * - - 74
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT DISTINCT + 18 + + + 91 + - + 34 - 34, 45 + - COUNT( * ) AS col2
----
41
44

skipif mysql # not compatible
query II rowsort label-3638
SELECT DISTINCT + 18 + + + 91 + - + 34 - 34, 45 + - COUNT ( * ) AS col2
----
41
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT 56 + - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT 56 + - COUNT ( * ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT ( 82 ) * - 48 DIV 1 + + 4 - - 25 * + 64
----
-2332

skipif mysql # not compatible
query I rowsort label-3640
SELECT ( 82 ) * - 48 / 1 + + 4 - - 25 * + 64
----
-2332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3641
SELECT + ( + COUNT( * ) ) + 80 * COUNT( * ) + 91 AS col0, - 4 * MAX( + CAST( 99 AS SIGNED ) ) * 70 * - 21 col2
----
172
582120

skipif mysql # not compatible
query II rowsort label-3641
SELECT + ( + COUNT ( * ) ) + 80 * COUNT ( * ) + 91 AS col0, - 4 * MAX ( + CAST ( 99 AS INTEGER ) ) * 70 * - 21 col2
----
172
582120

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL 74 * + + COUNT( * ) * + - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL 74 * + + COUNT ( * ) * + - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT COUNT( * ) + + 60 - + MIN( - 1 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3643
SELECT COUNT ( * ) + + 60 - + MIN ( - 1 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT + + COUNT( * ) * - COUNT( * ) + 37 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) + 37 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3645
SELECT ALL - + CAST( NULL AS SIGNED ) * - CAST( - 39 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - + CAST ( NULL AS INTEGER ) * - CAST ( - 39 AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 24 + - 81 + + - 2
----
-59

query I rowsort
SELECT - 71 + + 2 AS col0
----
-69

query I rowsort
SELECT ALL 41 * 88 * - 47
----
-169576

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT - + COUNT( + + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-3649
SELECT - + COUNT ( + + 23 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) * + 48 + - - 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) * + 48 + - - 11 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3651
SELECT ALL - COALESCE ( 24, + 52 DIV COUNT( * ) ) * + 40
----
-960

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL - COALESCE ( 24, + 52 / COUNT ( * ) ) * + 40
----
-960

onlyif mysql # aggregate syntax: 
query II rowsort label-3652
SELECT ALL - 58 + + COUNT( * ), 58 * ( + + 27 ) * - 69 + - 38 + + 90 AS col1
----
-57
-108002

skipif mysql # not compatible
query II rowsort label-3652
SELECT ALL - 58 + + COUNT ( * ), 58 * ( + + 27 ) * - 69 + - 38 + + 90 AS col1
----
-57
-108002

query I rowsort
SELECT DISTINCT - + 40 + + + 8 + - 88
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT 57 * + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3654
SELECT 57 * + COUNT ( * ) AS col1
----
57

query I rowsort
SELECT ALL + 11 * - 35 col2
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT + 93 * COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + 93 * COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT DISTINCT - COUNT( * ) - - 41
----
40

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT - COUNT ( * ) - - 41
----
40

query I rowsort
SELECT ALL + 84 * - 6 AS col1
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3659
SELECT ALL + 11 * + MIN( DISTINCT + 86 ) * ( 21 ), CASE - 94 WHEN ( - 27 ) THEN 25 WHEN + COALESCE ( - 93, 6 DIV 6, - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + 90 ) THEN NULL ELSE + + 71 * - 79 * + COUNT( * ) + + + 5 DIV + ( - 19 ) END col0
----
19866
-5609

skipif mysql # not compatible
query II rowsort label-3659
SELECT ALL + 11 * + MIN ( DISTINCT + 86 ) * ( 21 ), CASE - 94 WHEN ( - 27 ) THEN 25 WHEN + COALESCE ( - 93, 6 / 6, - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 90 ) THEN NULL ELSE + + 71 * - 79 * + COUNT ( * ) + + + 5 / + ( - 19 ) END col0
----
19866
-5609

query I rowsort
SELECT DISTINCT + 93 * - 46 AS col2
----
-4278

query I rowsort
SELECT DISTINCT - 39 - + 12 AS col2
----
-51

query I rowsort
SELECT 72 * - - 23 AS col2
----
1656

query I rowsort
SELECT ALL - COALESCE ( 26, 96 + + 21 ) AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3664
SELECT - COUNT( * ) / + CAST( NULL AS DECIMAL ) + - 4 * + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT - COUNT ( * ) / + CAST ( NULL AS REAL ) + - 4 * + 5 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT 91 DIV 6 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3665
SELECT 91 / 6 AS col2
----
15

query I rowsort
SELECT 98 * - 44
----
-4312

query II rowsort
SELECT ALL - 33 col0, + 51
----
-33
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3668
SELECT ALL - 78 col2, - COUNT( * ) * + 91
----
-78
-91

skipif mysql # not compatible
query II rowsort label-3668
SELECT ALL - 78 col2, - COUNT ( * ) * + 91
----
-78
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 17 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-3669
SELECT 17 / + 47
----
0

query I rowsort
SELECT ALL - 49 + - 6
----
-55

query II rowsort
SELECT DISTINCT + 5 * 79 + + - 61, 57 AS col1
----
334
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3672
SELECT ALL + 94 + - CASE 91 WHEN + 6 THEN NULL WHEN 19 * + 93 + MIN( - 19 ) * + 71 THEN + SUM( - + 95 ) ELSE - 78 DIV - 14 END AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + 94 + - CASE 91 WHEN + 6 THEN NULL WHEN 19 * + 93 + MIN ( - 19 ) * + 71 THEN + SUM ( - + 95 ) ELSE - 78 / - 14 END AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT ALL 45 * - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL 45 * - COUNT ( * ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3674
SELECT ALL CASE CAST( 96 AS SIGNED ) WHEN 91 THEN - 57 WHEN - COUNT( * ) THEN COUNT( + 68 ) ELSE - COUNT( 30 ) * - COUNT( * ) + - CAST( + ( COUNT( * ) ) AS SIGNED ) END + + + 59 + + COUNT( * ) * - 23 * 16 * 80 - COUNT( * ) AS col0
----
-29382

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL CASE CAST ( 96 AS INTEGER ) WHEN 91 THEN - 57 WHEN - COUNT ( * ) THEN COUNT ( + 68 ) ELSE - COUNT ( 30 ) * - COUNT ( * ) + - CAST ( + ( COUNT ( * ) ) AS INTEGER ) END + + + 59 + + COUNT ( * ) * - 23 * 16 * 80 - COUNT ( * ) AS col0
----
-29382

query I rowsort
SELECT DISTINCT 63 * - 11 AS col1
----
-693

query I rowsort
SELECT DISTINCT + 86 + - 65 - + 37 - - - 83
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL - COUNT( 29 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL - COUNT ( 29 ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3678
SELECT ALL CASE - - CAST( NULL AS SIGNED ) WHEN - + 62 + 96 THEN + + 62 ELSE + 1 END + - COUNT( * ) + 78 + - + 63 + + + 55 + + + 10 DIV - MAX( ALL CAST( NULL AS SIGNED ) ) * - ( COUNT( * ) ) + + 49 * - - COUNT( ALL CAST( + 19 AS SIGNED ) ) DIV - - COUNT( * ), 91 * 24 DIV + 74 + + MIN( - - 83 ) AS col2
----
NULL
112

skipif mysql # not compatible
query II rowsort label-3678
SELECT ALL CASE - - CAST ( NULL AS INTEGER ) WHEN - + 62 + 96 THEN + + 62 ELSE + 1 END + - COUNT ( * ) + 78 + - + 63 + + + 55 + + + 10 / - MAX ( ALL CAST ( NULL AS INTEGER ) ) * - ( COUNT ( * ) ) + + 49 * - - COUNT ( ALL CAST ( + 19 AS INTEGER ) ) / - - COUNT ( * ), 91 * 24 / + 74 + + MIN ( - - 83 ) AS col2
----
NULL
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL - CASE - + 47 WHEN + COUNT( * ) THEN - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL - CASE - + 47 WHEN + COUNT ( * ) THEN - 30 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3680
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT CAST ( NULL AS REAL ) * 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT + 69 * - 20 - + + 69 + + COUNT( * )
----
-1448

skipif mysql # not compatible
query I rowsort label-3681
SELECT + 69 * - 20 - + + 69 + + COUNT ( * )
----
-1448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT ALL + MIN( 98 ) + - ( CAST( - COUNT( * ) AS SIGNED ) ) - + SUM( 1 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL + MIN ( 98 ) + - ( CAST ( - COUNT ( * ) AS INTEGER ) ) - + SUM ( 1 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3683
SELECT ALL - 7 AS col0, + SUM( DISTINCT - + 95 )
----
-7
-95

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL - 7 AS col0, + SUM ( DISTINCT - + 95 )
----
-7
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT - NULLIF ( 75, + + 68 * - 43 * CAST( 27 AS SIGNED ) ) * CAST( NULL AS SIGNED ) * - 56 + - SUM( ALL - + ( + 88 ) ) + - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT - NULLIF ( 75, + + 68 * - 43 * CAST ( 27 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) * - 56 + - SUM ( ALL - + ( + 88 ) ) + - 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3685
SELECT ALL 75 DIV COUNT( * ) * 56
----
4200

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL 75 / COUNT ( * ) * 56
----
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT - COUNT( + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-3686
SELECT - COUNT ( + 59 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT COUNT( * ) + - 66 col1
----
-65

skipif mysql # not compatible
query I rowsort label-3687
SELECT COUNT ( * ) + - 66 col1
----
-65

query II rowsort
SELECT - 54 AS col2, 25
----
-54
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT - ( + 41 ) DIV - - 94
----
0

skipif mysql # not compatible
query I rowsort label-3689
SELECT - ( + 41 ) / - - 94
----
0

query I rowsort
SELECT ALL - 79 * + - 56
----
4424

query II rowsort
SELECT 87, 51 AS col1
----
87
51

query I rowsort
SELECT DISTINCT 0 * - + 76 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3693
SELECT 76 + + - NULLIF ( - 20, - 25 + + SUM( - - CAST( NULL AS SIGNED ) ) ) + - + 61 AS col1, 0
----
35
0

skipif mysql # not compatible
query II rowsort label-3693
SELECT 76 + + - NULLIF ( - 20, - 25 + + SUM ( - - CAST ( NULL AS INTEGER ) ) ) + - + 61 AS col1, 0
----
35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT 82 * CASE + 45 WHEN + 94 * + 11 THEN - + 58 + + - 86 + - MAX( DISTINCT - 1 ) * 17 WHEN 0 * 36 * + + NULLIF ( 20, - 9 ) * + - 64 * + 92 + + - 8 THEN - 80 + - 26 ELSE + + COUNT( * ) END AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3694
SELECT 82 * CASE + 45 WHEN + 94 * + 11 THEN - + 58 + + - 86 + - MAX ( DISTINCT - 1 ) * 17 WHEN 0 * 36 * + + NULLIF ( 20, - 9 ) * + - 64 * + 92 + + - 8 THEN - 80 + - 26 ELSE + + COUNT ( * ) END AS col2
----
82

query I rowsort
SELECT ALL 94 * 51 * 69
----
330786

query I rowsort
SELECT 92 * 88
----
8096

query II rowsort
SELECT - 87 AS col1, 13 * + 67 col2
----
-87
871

onlyif mysql # aggregate syntax: 
query II rowsort label-3698
SELECT - COUNT( * ) AS col1, + 30 * - MIN( DISTINCT - + 76 ) + + 27 AS col1
----
-1
2307

skipif mysql # not compatible
query II rowsort label-3698
SELECT - COUNT ( * ) AS col1, + 30 * - MIN ( DISTINCT - + 76 ) + + 27 AS col1
----
-1
2307

query I rowsort
SELECT 11 - + 82
----
-71

query I rowsort
SELECT ALL - ( - 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT COUNT( * ) * - ( + 61 ) * + 14
----
-854

skipif mysql # not compatible
query I rowsort label-3701
SELECT COUNT ( * ) * - ( + 61 ) * + 14
----
-854

query I rowsort
SELECT ALL - ( - 24 ) AS col2
----
24

query I rowsort
SELECT NULLIF ( - 77, - 85 * 23 / - 16 ) AS col2
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-3704
SELECT + 50, + 93 * + - COALESCE ( + 1, - 79 DIV - 83 DIV + 45 - 21 ) AS col2
----
50
-93

skipif mysql # not compatible
query II rowsort label-3704
SELECT + 50, + 93 * + - COALESCE ( + 1, - 79 / - 83 / + 45 - 21 ) AS col2
----
50
-93

query I rowsort
SELECT ALL + 56 * - ( - 73 ) + + - 42 AS col0
----
4046

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3706
SELECT ALL + 36, COUNT( * ) DIV - - 39 - - 16 AS col1
----
36
16

skipif mysql # not compatible
query II rowsort label-3706
SELECT ALL + 36, COUNT ( * ) / - - 39 - - 16 AS col1
----
36
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL - COUNT( * ) * COUNT( * ) * + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) col1
----
-1

query I rowsort
SELECT ALL + CASE - 45 WHEN + 21 * + 41 + - + 6 * + 13 THEN NULL WHEN - 53 THEN 88 ELSE + 8 END AS col1
----
8

query I rowsort
SELECT DISTINCT + 74 * + + 23 + - + ( 34 ) * - NULLIF ( - 57, 71 )
----
-236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL - 41 * 70 * - + 50 + - + 28 - + 12 * - 94 * - CAST( + 48 AS SIGNED )
----
89328

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - 41 * 70 * - + 50 + - + 28 - + 12 * - 94 * - CAST ( + 48 AS INTEGER )
----
89328

query I rowsort
SELECT ALL - - 65 * 71
----
4615

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT - - COUNT( * ) * + + MIN( + + 13 ) + - 69 + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-3712
SELECT - - COUNT ( * ) * + + MIN ( + + 13 ) + - 69 + + COUNT ( * )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3713
SELECT ALL + + 29 * - 97 + - 83 + - COUNT( * ) - - - COUNT( * ) * - CAST( - + 6 AS SIGNED )
----
-2903

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL + + 29 * - 97 + - 83 + - COUNT ( * ) - - - COUNT ( * ) * - CAST ( - + 6 AS INTEGER )
----
-2903

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3714
SELECT - 82 * - + 81 + - 58 + + 96, NULLIF ( + - COUNT( - - 93 ), 47 ) * COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col1
----
6680
NULL

skipif mysql # not compatible
query II rowsort label-3714
SELECT - 82 * - + 81 + - 58 + + 96, NULLIF ( + - COUNT ( - - 93 ), 47 ) * COUNT ( * ) + - CAST ( NULL AS REAL ) AS col1
----
6680
NULL

query II rowsort
SELECT + NULLIF ( + 76, 58 * + 26 - + 96 + 18 ) AS col1, - 86
----
76
-86

query I rowsort
SELECT DISTINCT + - COALESCE ( + - 88, 15 + - 56 ) AS col2
----
88

query I rowsort
SELECT - 62 * + - 26 + + 55 AS col1
----
1667

query I rowsort
SELECT + + 36 * 66 + - 13 + - COALESCE ( + - 56, - 99 * - COALESCE ( - + 80, - NULLIF ( + 10, - 76 ) - 59 ) ) + 57 AS col0
----
2476

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT - - 48 - + 33 + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT - - 48 - + 33 + + COUNT ( * )
----
16

query I rowsort
SELECT DISTINCT + 0 * + + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT 63 * - ( - COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT 63 * - ( - COUNT ( * ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + MIN( 89 ) col2
----
89

skipif mysql # not compatible
query I rowsort label-3722
SELECT + MIN ( 89 ) col2
----
89

query II rowsort
SELECT ALL + 99 AS col2, - 43 * - 21 AS col0
----
99
903

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3724
SELECT + CAST( NULL AS SIGNED ) AS col1, 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-3724
SELECT + CAST ( NULL AS INTEGER ) AS col1, 46
----
NULL
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3725
SELECT + + ( + COUNT( 67 ) ) + 93 DIV CAST( - 21 AS SIGNED ) * - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3725
SELECT + + ( + COUNT ( 67 ) ) + 93 / CAST ( - 21 AS INTEGER ) * - COUNT ( * ) AS col0
----
5

query I rowsort
SELECT + 53 * - 34
----
-1802

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT - 11 * 12 * COALESCE ( COALESCE ( SUM( - 89 ), + 84 ), - - 54 )
----
11748

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT - 11 * 12 * COALESCE ( COALESCE ( SUM ( - 89 ), + 84 ), - - 54 )
----
11748

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT + 6 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT + 6 / 41
----
0

query I rowsort
SELECT ALL - 48 * - 62
----
2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3730
SELECT + 82 + + SUM( DISTINCT - 71 ), COALESCE ( - + MAX( DISTINCT + 12 ), + 53 * 90 ) * + + MAX( - 93 ) + - 67 + + CAST( + + NULLIF ( - - NULLIF ( - - 51, 7 ), + - 56 ) AS SIGNED ) - 45 col1
----
11
1055

skipif mysql # not compatible
query II rowsort label-3730
SELECT + 82 + + SUM ( DISTINCT - 71 ), COALESCE ( - + MAX ( DISTINCT + 12 ), + 53 * 90 ) * + + MAX ( - 93 ) + - 67 + + CAST ( + + NULLIF ( - - NULLIF ( - - 51, 7 ), + - 56 ) AS INTEGER ) - 45 col1
----
11
1055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3731
SELECT + 58 + 68 + 34 + + 9 * + 96 * - 11 * - + COALESCE ( - 71, - 75 DIV COUNT( * ) DIV - 33, - CAST( NULL AS SIGNED ) DIV COALESCE ( + 89, - 63 + 43 ) ) * + - 9 * + 8 AS col1
----
48584608

skipif mysql # not compatible
query I rowsort label-3731
SELECT + 58 + 68 + 34 + + 9 * + 96 * - 11 * - + COALESCE ( - 71, - 75 / COUNT ( * ) / - 33, - CAST ( NULL AS INTEGER ) / COALESCE ( + 89, - 63 + 43 ) ) * + - 9 * + 8 AS col1
----
48584608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3732
SELECT + MAX( ALL - 83 ) DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3732
SELECT + MAX ( ALL - 83 ) / + 86 AS col1
----
0

query I rowsort
SELECT - 76 * + 51 AS col2
----
-3876

query II rowsort
SELECT - CASE - - 17 WHEN - 85 THEN NULL WHEN 56 THEN - - 85 WHEN - 34 / + + 51 THEN + 81 ELSE NULL END AS col2, ( - 59 ) AS col2
----
NULL
-59

query I rowsort
SELECT - 52 * 48 * - 48
----
119808

query I rowsort
SELECT ALL 45 + + + 59 AS col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3737
SELECT ALL - 46 / - SUM( + CAST( NULL AS SIGNED ) ) + - + NULLIF ( 23, - 99 * - - 27 + 20 + - - 70 * + - 92 * - CASE - COUNT( ALL + 41 ) WHEN + 92 * - CAST( - 13 AS DECIMAL ) THEN CAST( NULL AS SIGNED ) * + 47 * 6 ELSE NULL END + + + 57 ) + ( - 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - 46 / - SUM ( + CAST ( NULL AS INTEGER ) ) + - + NULLIF ( 23, - 99 * - - 27 + 20 + - - 70 * + - 92 * - CASE - COUNT ( ALL + 41 ) WHEN + 92 * - CAST ( - 13 AS REAL ) THEN CAST ( NULL AS INTEGER ) * + 47 * 6 ELSE NULL END + + + 57 ) + ( - 25 ) AS col1
----
NULL

query I rowsort
SELECT - 33 + + - ( + ( + + 53 ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT DISTINCT 39 * + COUNT( ALL - + 21 )
----
39

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT 39 * + COUNT ( ALL - + 21 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - 67 * 54 + - COUNT( * )
----
-3619

skipif mysql # not compatible
query I rowsort label-3740
SELECT - 67 * 54 + - COUNT ( * )
----
-3619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3741
SELECT DISTINCT - 52 DIV COALESCE ( + COUNT( * ), COALESCE ( 29, COUNT( * ), 43 * COUNT( * ) + + - ( - MIN( DISTINCT + + 5 ) ) ), - - NULLIF ( + 33, 73 + + 24 DIV - + 72 DIV + 95 ) ) + + ( + - 29 )
----
-81

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT - 52 / COALESCE ( + COUNT ( * ), COALESCE ( 29, COUNT ( * ), 43 * COUNT ( * ) + + - ( - MIN ( DISTINCT + + 5 ) ) ), - - NULLIF ( + 33, 73 + + 24 / - + 72 / + 95 ) ) + + ( + - 29 )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT + - CAST( + COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3742
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT COUNT( ALL - - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-3743
SELECT COUNT ( ALL - - 80 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3744
SELECT ALL + CASE CAST( + CAST( - 44 AS SIGNED ) AS SIGNED ) WHEN + 19 DIV + 70 + + - 21 + - 47 THEN 7 WHEN - 64 - + - 90 + 27 * 67 THEN - ( + - 93 ) * - + ( - - ( 79 ) ) WHEN + MAX( + + 62 ) + 91 + + 21 * - 93 THEN CAST( - 3 AS SIGNED ) + SUM( DISTINCT - - ( + 34 ) ) ELSE MIN( DISTINCT 70 ) END DIV 98 + ( - 67 ) * + 47
----
-3149

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL + CASE CAST ( + CAST ( - 44 AS INTEGER ) AS INTEGER ) WHEN + 19 / + 70 + + - 21 + - 47 THEN 7 WHEN - 64 - + - 90 + 27 * 67 THEN - ( + - 93 ) * - + ( - - ( 79 ) ) WHEN + MAX ( + + 62 ) + 91 + + 21 * - 93 THEN CAST ( - 3 AS INTEGER ) + SUM ( DISTINCT - - ( + 34 ) ) ELSE MIN ( DISTINCT 70 ) END / 98 + ( - 67 ) * + 47
----
-3149

query I rowsort
SELECT DISTINCT + ( + 75 )
----
75

query I rowsort
SELECT ALL - 35 * ( - - 38 ) AS col0
----
-1330

query II rowsort
SELECT - - 79 * + - 63 AS col1, - 6 AS col1
----
-4977
-6

query I rowsort
SELECT - 96 * + + 51 * + 10 AS col2
----
-48960

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT + - SUM( 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + - SUM ( 88 )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-3750
SELECT ALL + ( - COUNT( * ) ) AS col1, 88 AS col1
----
-1
88

skipif mysql # not compatible
query II rowsort label-3750
SELECT ALL + ( - COUNT ( * ) ) AS col1, 88 AS col1
----
-1
88

query II rowsort
SELECT - 40 - + 46, - 72 * + 54 * - 88 AS col2
----
-86
342144

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT + - 41 * 58 * + COUNT( ALL - 47 ) * + 41 AS col1, + 35 AS col1
----
-97498
35

skipif mysql # not compatible
query II rowsort label-3752
SELECT + - 41 * 58 * + COUNT ( ALL - 47 ) * + 41 AS col1, + 35 AS col1
----
-97498
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3753
SELECT ALL + - 70 DIV + 98 + + - COUNT( + 10 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + - 70 / + 98 + + - COUNT ( + 10 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT - ( - ( 20 ) ) * 5 * + 99 + 1 + + 49 * + CASE - - 63 WHEN + AVG ( - + 90 ) + COUNT( DISTINCT + NULLIF ( - - 66, - 91 ) ) THEN - MAX( ALL + + 94 ) * - + NULLIF ( - 10, AVG ( 58 ) + + - ( + COUNT( * ) ) ) + + ( + CAST( + + 61 AS SIGNED ) ) - 87 WHEN 77 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT - ( - ( 20 ) ) * 5 * + 99 + 1 + + 49 * + CASE - - 63 WHEN + AVG ( - + 90 ) + COUNT ( DISTINCT + NULLIF ( - - 66, - 91 ) ) THEN - MAX ( ALL + + 94 ) * - + NULLIF ( - 10, AVG ( 58 ) + + - ( + COUNT ( * ) ) ) + + ( + CAST ( + + 61 AS INTEGER ) ) - 87 WHEN 77 THEN NULL END
----
NULL

query I rowsort
SELECT - - 38 * + + 66 col2
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL COUNT( * ) * + 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL COUNT ( * ) * + 52 AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT ALL + 52 DIV + - 80 * - 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + 52 / + - 80 * - 53 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3758
SELECT - 76 + COALESCE ( + 84, - MIN( - + 31 ) DIV + 62 + 13 + + 21 * - 36 * + + 45, 65 * - MIN( DISTINCT 43 ) * - COALESCE ( + 46, + - NULLIF ( - 22, + 81 ), 39 + - + 15 * - 22 + + - 24 ) + - 44 DIV + 37 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3758
SELECT - 76 + COALESCE ( + 84, - MIN ( - + 31 ) / + 62 + 13 + + 21 * - 36 * + + 45, 65 * - MIN ( DISTINCT 43 ) * - COALESCE ( + 46, + - NULLIF ( - 22, + 81 ), 39 + - + 15 * - 22 + + - 24 ) + - 44 / + 37 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT MAX( NULLIF ( + - ( + 54 ), - 65 ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3759
SELECT MAX ( NULLIF ( + - ( + 54 ), - 65 ) ) AS col2
----
-54

query I rowsort
SELECT - 94 * + 73 * + + 55 AS col1
----
-377410

query I rowsort
SELECT + 0 + + 74
----
74

query I rowsort
SELECT DISTINCT - 80 + + 90 + 69 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - COUNT( DISTINCT + 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3763
SELECT - COUNT ( DISTINCT + 28 ) AS col1
----
-1

query II rowsort
SELECT - 38, - 79 AS col1
----
-38
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3765
SELECT ALL NULLIF ( - - 57, - 63 + 89 + 9 ) + - - 41 + + 30 * - - 59 + - 28 * + CASE + 82 WHEN + ( + 46 ) THEN + MIN( + + 70 ) DIV 13 * - - 99 ELSE - + 72 DIV + 11 + 66 END * + - MIN( ALL - 39 ) + - 5 + - 5
----
-63662

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL NULLIF ( - - 57, - 63 + 89 + 9 ) + - - 41 + + 30 * - - 59 + - 28 * + CASE + 82 WHEN + ( + 46 ) THEN + MIN ( + + 70 ) / 13 * - - 99 ELSE - + 72 / + 11 + 66 END * + - MIN ( ALL - 39 ) + - 5 + - 5
----
-63662

query I rowsort
SELECT ALL 87 + 24
----
111

query II rowsort
SELECT ALL 58 AS col2, + 21
----
58
21

query II rowsort
SELECT - 59, 99 AS col1
----
-59
99

query I rowsort
SELECT - 99 * - + 37 AS col1
----
3663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3770
SELECT DISTINCT - + 73 AS col0, + 58 * - + COUNT( - + 6 ) + + MIN( + CAST( ( + - 87 ) AS SIGNED ) ) + + 11 + COUNT( * )
----
-73
-133

skipif mysql # not compatible
query II rowsort label-3770
SELECT DISTINCT - + 73 AS col0, + 58 * - + COUNT ( - + 6 ) + + MIN ( + CAST ( ( + - 87 ) AS INTEGER ) ) + + 11 + COUNT ( * )
----
-73
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT DISTINCT + 24 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + 24 * - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 34 AS col2, 29 + 77 * 69
----
-34
5342

query I rowsort
SELECT DISTINCT 96 * + 38 + - 80
----
3568

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + SUM( + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-3774
SELECT + SUM ( + 8 )
----
8

query I rowsort
SELECT ALL + 5 * 76 + 67
----
447

query I rowsort
SELECT + 15 * + - 64 + + 38 AS col0
----
-922

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT 34 * - COUNT( + 97 ) + - - 52 + - MIN( DISTINCT ( + 64 ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3777
SELECT 34 * - COUNT ( + 97 ) + - - 52 + - MIN ( DISTINCT ( + 64 ) ) AS col2
----
-46

query I rowsort
SELECT 23 * - + ( - - 50 )
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL - + CASE COUNT( * ) WHEN COUNT( * ) * - COALESCE ( + + 59, 40 + - 78 ) + 46 + - 51 * + 70 + + + 45 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - + CASE COUNT ( * ) WHEN COUNT ( * ) * - COALESCE ( + + 59, 40 + - 78 ) + 46 + - 51 * + 70 + + + 45 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3780
SELECT DISTINCT - CAST( + - MIN( DISTINCT + 42 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - CAST ( + - MIN ( DISTINCT + 42 ) AS INTEGER )
----
42

query I rowsort
SELECT + ( + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT 72 + - 47 * - COALESCE ( + - COUNT( 18 ), + + 85, + + 18, 55 )
----
25

skipif mysql # not compatible
query I rowsort label-3782
SELECT 72 + - 47 * - COALESCE ( + - COUNT ( 18 ), + + 85, + + 18, 55 )
----
25

query I rowsort
SELECT ( + - 19 ) * + - 81
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT + NULLIF ( + 6, + COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-3784
SELECT + NULLIF ( + 6, + COUNT ( * ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL - MIN( ALL - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - MIN ( ALL - 94 )
----
94

query I rowsort
SELECT ( - 36 ) * - 69 * - 89 AS col1
----
-221076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3787
SELECT - CAST( + MAX( ALL + 99 ) AS SIGNED ) * SUM( 52 ) + 31 AS col1
----
-5117

skipif mysql # not compatible
query I rowsort label-3787
SELECT - CAST ( + MAX ( ALL + 99 ) AS INTEGER ) * SUM ( 52 ) + 31 AS col1
----
-5117

onlyif mysql # DIV for integer division: 
query I rowsort label-3788
SELECT ( - 19 ) DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT ( - 19 ) / 53 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT + 48 + + + MAX( ALL + 24 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + 48 + + + MAX ( ALL + 24 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT COUNT( * ) + - COUNT( * ) - - COALESCE ( + 29, 86 ) col1
----
29

skipif mysql # not compatible
query I rowsort label-3790
SELECT COUNT ( * ) + - COUNT ( * ) - - COALESCE ( + 29, 86 ) col1
----
29

query I rowsort
SELECT DISTINCT - 3 + - 20 AS col0
----
-23

query I rowsort
SELECT DISTINCT + 48 + 39 * 59 col2
----
2349

onlyif mysql # aggregate syntax: 
query II rowsort label-3793
SELECT DISTINCT + ( COALESCE ( + MAX( ALL 30 ), MAX( DISTINCT + 5 ) ) ) + + 47 AS col1, + COUNT( * ) * - - 51
----
77
51

skipif mysql # not compatible
query II rowsort label-3793
SELECT DISTINCT + ( COALESCE ( + MAX ( ALL 30 ), MAX ( DISTINCT + 5 ) ) ) + + 47 AS col1, + COUNT ( * ) * - - 51
----
77
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT ALL CAST( NULL AS SIGNED ) + + 6 * + 50 * - ( + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL CAST ( NULL AS INTEGER ) + + 6 * + 50 * - ( + 14 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3795
SELECT ALL MAX( DISTINCT + 91 ) + - 10 - + - COALESCE ( + CASE - COUNT( * ) WHEN - 17 - + - 35 + COALESCE ( + 97, - COUNT( * ) * - - COALESCE ( ( - 3 ), - + 55, COUNT( * ) - - + 98 * - - COUNT( * ) * - - 7 + - 47 + - ( - 59 ) ) ) THEN + COUNT( * ) * COUNT( * ) WHEN + ( 19 ) THEN NULL ELSE + + COALESCE ( 77, - 92 * 67, + 2 DIV 47 ) * - COUNT( * ) + 83 END, 53, COUNT( * ) ) DIV COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL MAX ( DISTINCT + 91 ) + - 10 - + - COALESCE ( + CASE - COUNT ( * ) WHEN - 17 - + - 35 + COALESCE ( + 97, - COUNT ( * ) * - - COALESCE ( ( - 3 ), - + 55, COUNT ( * ) - - + 98 * - - COUNT ( * ) * - - 7 + - 47 + - ( - 59 ) ) ) THEN + COUNT ( * ) * COUNT ( * ) WHEN + ( 19 ) THEN NULL ELSE + + COALESCE ( 77, - 92 * 67, + 2 / 47 ) * - COUNT ( * ) + 83 END, 53, COUNT ( * ) ) / COUNT ( * ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3796
SELECT 33 + - 34, - 68 / + 15 * + CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3796
SELECT 33 + - 34, - 68 / + 15 * + CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL + COUNT( * ) * - 45
----
-45

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL + COUNT ( * ) * - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT 23 + + COUNT( * ) * + 54 * ( CASE - ( + COUNT( * ) ) WHEN + 2 THEN 52 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT 23 + + COUNT ( * ) * + 54 * ( CASE - ( + COUNT ( * ) ) WHEN + 2 THEN 52 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT ( 50 ) * - 44 + + + SUM( ALL - 30 ) + - + 64 AS col1
----
-2294

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT ( 50 ) * - 44 + + + SUM ( ALL - 30 ) + - + 64 AS col1
----
-2294

query I rowsort
SELECT DISTINCT + ( + 81 ) * - - 24 AS col2
----
1944

onlyif mysql # aggregate syntax: 
query II rowsort label-3801
SELECT ALL - SUM( + 9 ) - - - 77 * + COUNT( * ) AS col0, + 40
----
-86
40

skipif mysql # not compatible
query II rowsort label-3801
SELECT ALL - SUM ( + 9 ) - - - 77 * + COUNT ( * ) AS col0, + 40
----
-86
40

query I rowsort
SELECT ALL NULLIF ( + 50, + 56 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT - CAST( - + 45 AS SIGNED ) col2
----
45

skipif mysql # not compatible
query I rowsort label-3803
SELECT - CAST ( - + 45 AS INTEGER ) col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3804
SELECT - 28 + ( - 11 ) DIV - - 77 * - COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3804
SELECT - 28 + ( - 11 ) / - - 77 * - COUNT ( * ) AS col1
----
-28

query I rowsort
SELECT ALL - + NULLIF ( + 28, - 49 * - 48 - - + 41 ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3806
SELECT DISTINCT - CASE 24 WHEN - CAST( - - 12 AS SIGNED ) * + + 44 + + + 90 + - 50 * + 59 THEN + SUM( CAST( NULL AS SIGNED ) ) WHEN - 76 THEN NULL ELSE - - 77 + + 7 END
----
-84

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - CASE 24 WHEN - CAST ( - - 12 AS INTEGER ) * + + 44 + + + 90 + - 50 * + 59 THEN + SUM ( CAST ( NULL AS INTEGER ) ) WHEN - 76 THEN NULL ELSE - - 77 + + 7 END
----
-84

query II rowsort
SELECT ( 57 ) col1, - ( + - 71 )
----
57
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT 18 * + - COUNT( - 49 ) * + 36
----
-648

skipif mysql # not compatible
query I rowsort label-3808
SELECT 18 * + - COUNT ( - 49 ) * + 36
----
-648

query I rowsort
SELECT DISTINCT - 52 * + 83 * - - 37 AS col2
----
-159692

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT DISTINCT + 41 DIV - 79 col2
----
0

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT + 41 / - 79 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3811
SELECT ALL - COALESCE ( + 86, 23 DIV - COUNT( * ), - 24 * + 7 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL - COALESCE ( + 86, 23 / - COUNT ( * ), - 24 * + 7 ) AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL - CASE + 91 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 15 + - MIN( ALL 66 ) THEN - 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - CASE + 91 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 15 + - MIN ( ALL 66 ) THEN - 16 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 14 * + + 40
----
560

query I rowsort
SELECT ALL + + 16 + + 24
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT DISTINCT - + ( - CAST( NULL AS SIGNED ) ) / - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) / - 66
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT ALL - 58 + 3 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - 58 + 3 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 2 * - - 43
----
-86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3818
SELECT - 72 * + 79 AS col0, CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + + + 67
----
-5688
NULL

skipif mysql # not compatible
query II rowsort label-3818
SELECT - 72 * + 79 AS col0, CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + + + 67
----
-5688
NULL

query I rowsort
SELECT 66 * 74 AS col2
----
4884

query I rowsort
SELECT 11 * + - 84
----
-924

onlyif mysql # DIV for integer division: 
query II rowsort label-3821
SELECT + 70, 16 DIV 72 + + 25 - - 45 AS col2
----
70
70

skipif mysql # not compatible
query II rowsort label-3821
SELECT + 70, 16 / 72 + + 25 - - 45 AS col2
----
70
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3822
SELECT + 47 - CAST( NULL AS DECIMAL ) * - - 65 / + - 5 * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT + 47 - CAST ( NULL AS REAL ) * - - 65 / + - 5 * - 25
----
NULL

query I rowsort
SELECT ALL + 35 + 43 + - COALESCE ( 80, 72 * + 29, - 45 ) * - + 74 col0
----
5998

query I rowsort
SELECT + 23 * + 27 AS col1
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL COUNT( * ) + - 83 * - + COUNT( * ) col0
----
84

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL COUNT ( * ) + - 83 * - + COUNT ( * ) col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3826
SELECT - NULLIF ( - + 45, + 80 ), - ( + 96 ) / + - NULLIF ( CAST( NULL AS SIGNED ), + 17 * - - 32 + - 44 ) AS col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-3826
SELECT - NULLIF ( - + 45, + 80 ), - ( + 96 ) / + - NULLIF ( CAST ( NULL AS INTEGER ), + 17 * - - 32 + - 44 ) AS col0
----
45
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT DISTINCT 43 AS col2, 75 * - COUNT( * ) + COUNT( * ) AS col1
----
43
-74

skipif mysql # not compatible
query II rowsort label-3827
SELECT DISTINCT 43 AS col2, 75 * - COUNT ( * ) + COUNT ( * ) AS col1
----
43
-74

query I rowsort
SELECT - 69 - + - 13
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3829
SELECT - NULLIF ( - + COUNT( * ), - ( 91 ) + - 18 + 62 ) DIV - + COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3829
SELECT - NULLIF ( - + COUNT ( * ), - ( 91 ) + - 18 + 62 ) / - + COUNT ( * ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3830
SELECT + 57 * - NULLIF ( + + 51, + CAST( + 67 AS SIGNED ) - + + 67 ) * 41 - + 81 + - COUNT( + 39 )
----
-119269

skipif mysql # not compatible
query I rowsort label-3830
SELECT + 57 * - NULLIF ( + + 51, + CAST ( + 67 AS INTEGER ) - + + 67 ) * 41 - + 81 + - COUNT ( + 39 )
----
-119269

query I rowsort
SELECT DISTINCT NULLIF ( 97, + NULLIF ( - 31, ( - - 29 ) ) * + ( 62 ) + 24 )
----
97

query I rowsort
SELECT - 27 * 11 AS col1
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT ALL - 55 DIV 24 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL - 55 / 24 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL + COUNT( ALL - + 90 ) * - 88 + + 46
----
-42

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + COUNT ( ALL - + 90 ) * - 88 + + 46
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3835
SELECT - 57 * + - 19 - 32 + + - 51 + + COUNT( * ) * COUNT( * ) DIV - 43 * + COUNT( * ) AS col2
----
1000

skipif mysql # not compatible
query I rowsort label-3835
SELECT - 57 * + - 19 - 32 + + - 51 + + COUNT ( * ) * COUNT ( * ) / - 43 * + COUNT ( * ) AS col2
----
1000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL - CAST( NULL AS SIGNED ) * + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL - CAST ( NULL AS INTEGER ) * + 33 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT DISTINCT 14 * CAST( + + ( + NULLIF ( - + 59, 69 + - 65 - 36 + 40 * + 96 * - 64 + + - 59 ) ) AS SIGNED ) * 15 * 15 + + - 70 - - 23
----
-185897

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT 14 * CAST ( + + ( + NULLIF ( - + 59, 69 + - 65 - 36 + 40 * + 96 * - 64 + + - 59 ) ) AS INTEGER ) * 15 * 15 + + - 70 - - 23
----
-185897

query I rowsort
SELECT + ( + + 16 )
----
16

query I rowsort
SELECT ALL + 82 * + 78 + 89 + + + 94
----
6579

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL - COALESCE ( - - 41, + + 84, MIN( ALL - 43 ) ) * + 34 + 90
----
-1304

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL - COALESCE ( - - 41, + + 84, MIN ( ALL - 43 ) ) * + 34 + 90
----
-1304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT SUM( - CAST( + + 26 AS SIGNED ) ) * + - 27 * 66 * COUNT( * ) * - 4 - 49 + - COUNT( * ) + 82 - COUNT( * )
----
-185297

skipif mysql # not compatible
query I rowsort label-3841
SELECT SUM ( - CAST ( + + 26 AS INTEGER ) ) * + - 27 * 66 * COUNT ( * ) * - 4 - 49 + - COUNT ( * ) + 82 - COUNT ( * )
----
-185297

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT - ( - 38 ) + + MIN( ALL 95 ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-3842
SELECT - ( - 38 ) + + MIN ( ALL 95 ) AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT + SUM( ALL - - 66 ) - - - COUNT( * ) + + COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-3843
SELECT + SUM ( ALL - - 66 ) - - - COUNT ( * ) + + COUNT ( * ) col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT + - COALESCE ( - ( + + COALESCE ( + - COUNT( * ), + 13 - ( - 23 ) ) ), 79 ) * + + 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3844
SELECT + - COALESCE ( - ( + + COALESCE ( + - COUNT ( * ), + 13 - ( - 23 ) ) ), 79 ) * + + 71 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + 84 * - 87 + - SUM( + 75 ) * 26 * + 38 * + 84 AS col1
----
-6231708

skipif mysql # not compatible
query I rowsort label-3845
SELECT + 84 * - 87 + - SUM ( + 75 ) * 26 * + 38 * + 84 AS col1
----
-6231708

query I rowsort
SELECT ALL 2 * - ( ( + 68 ) ) + 54 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3847
SELECT ALL - 36 * + + 1 * MAX( DISTINCT CAST( NULL AS DECIMAL ) ) + + + 54 - - 78 + - ( + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - 36 * + + 1 * MAX ( DISTINCT CAST ( NULL AS REAL ) ) + + + 54 - - 78 + - ( + 43 )
----
NULL

query II rowsort
SELECT ALL + 52, + ( - + 32 ) AS col2
----
52
-32

query I rowsort
SELECT ALL 82 * - 80 AS col1
----
-6560

query I rowsort
SELECT + 93 * + 46 * 85 col2
----
363630

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT COUNT( + 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3851
SELECT COUNT ( + 45 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3852
SELECT ALL 89 AS col1, 21 * COUNT( * ) AS col2
----
89
21

skipif mysql # not compatible
query II rowsort label-3852
SELECT ALL 89 AS col1, 21 * COUNT ( * ) AS col2
----
89
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3853
SELECT COUNT( * ), 25 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-3853
SELECT COUNT ( * ), 25 AS col0
----
1
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3854
SELECT ALL COUNT( * ) AS col0, + 63 * - 18
----
1
-1134

skipif mysql # not compatible
query II rowsort label-3854
SELECT ALL COUNT ( * ) AS col0, + 63 * - 18
----
1
-1134

query I rowsort
SELECT + 51 + - 6
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT MIN( + 98 ) col1
----
98

skipif mysql # not compatible
query I rowsort label-3856
SELECT MIN ( + 98 ) col1
----
98

query II rowsort
SELECT ALL 55 AS col0, + 98
----
55
98

query I rowsort
SELECT ALL - 68 * 4 AS col0
----
-272

query I rowsort
SELECT + 3 * - 71
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT DISTINCT COUNT( ALL + 81 )
----
1

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT COUNT ( ALL + 81 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT - + CASE + - 4 WHEN CASE - - 28 WHEN + 30 THEN - + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) END * - + MIN( - 0 ) THEN + COUNT( * ) + - 29 + + - 37 * ( AVG ( DISTINCT 58 ) ) WHEN 55 THEN + 44 - - 79 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3861
SELECT - + CASE + - 4 WHEN CASE - - 28 WHEN + 30 THEN - + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) END * - + MIN ( - 0 ) THEN + COUNT ( * ) + - 29 + + - 37 * ( AVG ( DISTINCT 58 ) ) WHEN 55 THEN + 44 - - 79 END AS col2
----
NULL

query I rowsort
SELECT - + 82 + 9 + + + ( 4 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT DISTINCT 0 col0, - COUNT( DISTINCT 20 ) + + + 51 AS col1
----
0
50

skipif mysql # not compatible
query II rowsort label-3863
SELECT DISTINCT 0 col0, - COUNT ( DISTINCT 20 ) + + + 51 AS col1
----
0
50

query I rowsort
SELECT + - 12 * 18 AS col2
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3865
SELECT - - 7 * 34 * + MAX( ALL - 76 ) * + CAST( + - 10 AS SIGNED ) * - + 48
----
-8682240

skipif mysql # not compatible
query I rowsort label-3865
SELECT - - 7 * 34 * + MAX ( ALL - 76 ) * + CAST ( + - 10 AS INTEGER ) * - + 48
----
-8682240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT ALL + 27 + + CAST( NULL AS SIGNED ) + + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL + 27 + + CAST ( NULL AS INTEGER ) + + 60 AS col2
----
NULL

query I rowsort
SELECT + 77 + + 86
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-3868
SELECT - 29, - COUNT( * ) col2
----
-29
-1

skipif mysql # not compatible
query II rowsort label-3868
SELECT - 29, - COUNT ( * ) col2
----
-29
-1

query I rowsort
SELECT ALL - + 37 + + + ( - 80 ) AS col2
----
-117

query I rowsort
SELECT - 90 + + - 44 AS col2
----
-134

query I rowsort
SELECT DISTINCT - 24 + - 72
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL + MAX( - 84 ) + + 10
----
-74

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + MAX ( - 84 ) + + 10
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT ALL - + 61 DIV + + COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL - + 61 / + + COUNT ( * ) AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3874
SELECT DISTINCT - - COALESCE ( + + CASE + 41 WHEN 38 * + 39 - NULLIF ( 17, - + COUNT( * ) ) + 50 * - CAST( NULL AS SIGNED ) * - 55 / - 96 * - 57 THEN NULL WHEN - 40 THEN NULL ELSE - + 35 END, - 61 * - + 36 + + + 32 + + CASE + CASE + + 22 WHEN 29 THEN NULL ELSE - NULLIF ( - 77, 38 ) END WHEN + 78 + 93 + + + 92 * + 87 * - - 18 / - 60 * ( + 14 ) THEN 54 WHEN + 66 + 41 THEN NULL END ) / + CAST( NULL AS SIGNED ) + + ( + 52 ) * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT - - COALESCE ( + + CASE + 41 WHEN 38 * + 39 - NULLIF ( 17, - + COUNT ( * ) ) + 50 * - CAST ( NULL AS INTEGER ) * - 55 / - 96 * - 57 THEN NULL WHEN - 40 THEN NULL ELSE - + 35 END, - 61 * - + 36 + + + 32 + + CASE + CASE + + 22 WHEN 29 THEN NULL ELSE - NULLIF ( - 77, 38 ) END WHEN + 78 + 93 + + + 92 * + 87 * - - 18 / - 60 * ( + 14 ) THEN 54 WHEN + 66 + 41 THEN NULL END ) / + CAST ( NULL AS INTEGER ) + + ( + 52 ) * 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT - - COUNT( * ) * - 26 col1
----
-26

skipif mysql # not compatible
query I rowsort label-3875
SELECT - - COUNT ( * ) * - 26 col1
----
-26

query I rowsort
SELECT 5 * + 55 + - 88 AS col0
----
187

query I rowsort
SELECT ALL + + 70 * + + ( - 48 )
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT + CASE - + 70 WHEN - + COUNT( * ) THEN + CASE + NULLIF ( + 88, - + 77 + COALESCE ( 72, ( - ( + 32 ) ), + 80 * + 36 ) ) WHEN - - 80 THEN - 24 * 94 * + + AVG ( ALL - 94 ) WHEN + 22 THEN + 15 ELSE + 78 * COALESCE ( + 23, - 85 * - 16 * + 50 + 20 * - + COUNT( * ) * + + 38 + + 43 + - 33 * 26 + NULLIF ( ( 14 ), 58 * + 12 + 20 ) * 99, 87 ) END ELSE + 43 * + 90 END AS col0
----
3870

skipif mysql # not compatible
query I rowsort label-3878
SELECT + CASE - + 70 WHEN - + COUNT ( * ) THEN + CASE + NULLIF ( + 88, - + 77 + COALESCE ( 72, ( - ( + 32 ) ), + 80 * + 36 ) ) WHEN - - 80 THEN - 24 * 94 * + + AVG ( ALL - 94 ) WHEN + 22 THEN + 15 ELSE + 78 * COALESCE ( + 23, - 85 * - 16 * + 50 + 20 * - + COUNT ( * ) * + + 38 + + 43 + - 33 * 26 + NULLIF ( ( 14 ), 58 * + 12 + 20 ) * 99, 87 ) END ELSE + 43 * + 90 END AS col0
----
3870

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT - 53 DIV - 55 + + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-3879
SELECT - 53 / - 55 + + - 22
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3880
SELECT + 36 col2, - 13 * - CAST( NULL AS SIGNED ) / + 63 - 27 * - - 70 - - 34 AS col1, - + 83 * SUM( ALL 87 )
----
36
NULL
-7221

skipif mysql # not compatible
query III rowsort label-3880
SELECT + 36 col2, - 13 * - CAST ( NULL AS INTEGER ) / + 63 - 27 * - - 70 - - 34 AS col1, - + 83 * SUM ( ALL 87 )
----
36
NULL
-7221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT + CASE COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) / - 78 + COALESCE ( + 49, - 38 * + MIN( - + 41 ) * + + 37 ) * - 68 + - 26 * - 2 * + 50 * + - NULLIF ( + - 87, - 1 ) THEN 56 + + NULLIF ( COUNT( * ), 69 + - - 38 * - + 85 * - 10 ) WHEN - 92 THEN NULL ELSE - + 2 END + - ( + + 81 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3881
SELECT + CASE COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) / - 78 + COALESCE ( + 49, - 38 * + MIN ( - + 41 ) * + + 37 ) * - 68 + - 26 * - 2 * + 50 * + - NULLIF ( + - 87, - 1 ) THEN 56 + + NULLIF ( COUNT ( * ), 69 + - - 38 * - + 85 * - 10 ) WHEN - 92 THEN NULL ELSE - + 2 END + - ( + + 81 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT - NULLIF ( + + SUM( DISTINCT - - 46 ), + - ( - 77 ) ) * 8 * + 78 AS col0
----
-28704

skipif mysql # not compatible
query I rowsort label-3882
SELECT - NULLIF ( + + SUM ( DISTINCT - - 46 ), + - ( - 77 ) ) * 8 * + 78 AS col0
----
-28704

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT DISTINCT - COUNT( * ) * - COUNT( DISTINCT + + 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - COUNT ( * ) * - COUNT ( DISTINCT + + 10 ) AS col2
----
1

query I rowsort
SELECT ALL - ( - + 19 )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT DISTINCT - 17 - - + COUNT( * ), + 39 AS col1
----
-16
39

skipif mysql # not compatible
query II rowsort label-3885
SELECT DISTINCT - 17 - - + COUNT ( * ), + 39 AS col1
----
-16
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3886
SELECT ALL - SUM( DISTINCT + - 14 ), + 60 * - 76 * CAST( NULL AS SIGNED ) + - COUNT( * ) * - 97 AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-3886
SELECT ALL - SUM ( DISTINCT + - 14 ), + 60 * - 76 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 97 AS col1
----
14
NULL

query I rowsort
SELECT 7 * + 86
----
602

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL COUNT( * ) * + + 50 * - + 87
----
-4350

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL COUNT ( * ) * + + 50 * - + 87
----
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT 26 - + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-3889
SELECT 26 - + COUNT ( * )
----
25

query I rowsort
SELECT 32 * - + 42
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT COUNT( * ) * - + 13 * - - 66 / - + CASE WHEN ( NULL ) IS NULL THEN NULL ELSE - + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT COUNT ( * ) * - + 13 * - - 66 / - + CASE WHEN ( NULL ) IS NULL THEN NULL ELSE - + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT 25 + + MAX( - - ( - - 12 ) ) * + COALESCE ( 4, 97 ) col1
----
73

skipif mysql # not compatible
query I rowsort label-3892
SELECT 25 + + MAX ( - - ( - - 12 ) ) * + COALESCE ( 4, 97 ) col1
----
73

query I rowsort
SELECT CASE 13 WHEN + 64 THEN - 63 * - 54 ELSE NULL END - 11 - + - 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3894
SELECT CAST( - + 0 AS SIGNED ) DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT CAST ( - + 0 AS INTEGER ) / 37 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT - 8 DIV - ( + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT - 8 / - ( + 67 )
----
0

query I rowsort
SELECT 67 * - 79 + 7
----
-5286

query I rowsort
SELECT ALL 92 + 47 + + - 69 * - + 64 * + 37
----
163531

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL + 97 + - - MAX( ALL + 30 )
----
127

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL + 97 + - - MAX ( ALL + 30 )
----
127

query I rowsort
SELECT - ( 7 ) + - + ( 41 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT DISTINCT - 64 + + 87 * + 11 * + 77 + + 48 - - COUNT( * ) AS col2
----
73674

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT - 64 + + 87 * + 11 * + 77 + + 48 - - COUNT ( * ) AS col2
----
73674

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3901
SELECT ALL 19 * CASE - - 65 WHEN 94 THEN NULL WHEN 33 + - 39 THEN - CAST( 64 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL 19 * CASE - - 65 WHEN 94 THEN NULL WHEN 33 + - 39 THEN - CAST ( 64 AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT COUNT( * ) * - + 52 col0, + 22
----
-52
22

skipif mysql # not compatible
query II rowsort label-3902
SELECT COUNT ( * ) * - + 52 col0, + 22
----
-52
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3903
SELECT ALL + CASE COALESCE ( - 63, 48 / - + ( + 67 ) / - 46 + CAST( NULL AS SIGNED ) ) WHEN - 40 THEN NULL WHEN - - COUNT( * ) THEN - 57 WHEN - SUM( ALL - ( + 67 ) ) THEN NULL END + - 31 + + 63 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + CASE COALESCE ( - 63, 48 / - + ( + 67 ) / - 46 + CAST ( NULL AS INTEGER ) ) WHEN - 40 THEN NULL WHEN - - COUNT ( * ) THEN - 57 WHEN - SUM ( ALL - ( + 67 ) ) THEN NULL END + - 31 + + 63 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3904
SELECT DISTINCT - 73 * - 43, 22 DIV + 74 * 71 AS col0
----
3139
0

skipif mysql # not compatible
query II rowsort label-3904
SELECT DISTINCT - 73 * - 43, 22 / + 74 * 71 AS col0
----
3139
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL + COUNT( * ) + 4 * NULLIF ( - COUNT( * ), - + 39 / - COUNT( * ) + COUNT( * ) ) + + 7
----
4

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL + COUNT ( * ) + 4 * NULLIF ( - COUNT ( * ), - + 39 / - COUNT ( * ) + COUNT ( * ) ) + + 7
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT + CASE + CAST( + ( 40 ) AS SIGNED ) WHEN 54 THEN COALESCE ( + COUNT( * ), COUNT( * ) / + 85 * + 82 + + + ( + + ( + + 69 ) ), - + 50 ) + - MIN( ( 94 ) ) WHEN COUNT( * ) THEN - 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT + CASE + CAST ( + ( 40 ) AS INTEGER ) WHEN 54 THEN COALESCE ( + COUNT ( * ), COUNT ( * ) / + 85 * + 82 + + + ( + + ( + + 69 ) ), - + 50 ) + - MIN ( ( 94 ) ) WHEN COUNT ( * ) THEN - 80 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT CAST( NULL AS SIGNED ) / 91 / + - 74 + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT CAST ( NULL AS INTEGER ) / 91 / + - 74 + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - - SUM( ALL - - 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3908
SELECT - - SUM ( ALL - - 2 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3909
SELECT 3 - + + NULLIF ( + + 30, + 90 * + ( - 6 ) * + - CAST( NULL AS SIGNED ) * COUNT( * ) * - 30 + + - COUNT( * ) ) * - + 55
----
1653

skipif mysql # not compatible
query I rowsort label-3909
SELECT 3 - + + NULLIF ( + + 30, + 90 * + ( - 6 ) * + - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 30 + + - COUNT ( * ) ) * - + 55
----
1653

onlyif mysql # aggregate syntax: 
query II rowsort label-3910
SELECT ALL - ( + 15 ) AS col0, - 58 - - 49 + - - COUNT( * ) AS col1
----
-15
-8

skipif mysql # not compatible
query II rowsort label-3910
SELECT ALL - ( + 15 ) AS col0, - 58 - - 49 + - - COUNT ( * ) AS col1
----
-15
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT ALL + NULLIF ( + 37, 95 ) / - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL + NULLIF ( + 37, 95 ) / - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT 17 * 68 * + 71 * 47 * + + COUNT( * ) * + - COUNT( * ) AS col0
----
-3857572

skipif mysql # not compatible
query I rowsort label-3912
SELECT 17 * 68 * + 71 * 47 * + + COUNT ( * ) * + - COUNT ( * ) AS col0
----
-3857572

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT 67 * - - 52 - + + 63 + - 80 + - - 92 * - - COUNT( * ) + - + 78 * + 4 * + 96 + - + COUNT( + 81 ) AS col1
----
-26520

skipif mysql # not compatible
query I rowsort label-3913
SELECT 67 * - - 52 - + + 63 + - 80 + - - 92 * - - COUNT ( * ) + - + 78 * + 4 * + 96 + - + COUNT ( + 81 ) AS col1
----
-26520

query I rowsort
SELECT - 87 * 61 + - 71 col0
----
-5378

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT 36 - ( COUNT( - 26 ) ) + ( - 2 )
----
33

skipif mysql # not compatible
query I rowsort label-3915
SELECT 36 - ( COUNT ( - 26 ) ) + ( - 2 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT CAST( NULL AS SIGNED ) / 5 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT CAST ( NULL AS INTEGER ) / 5 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT 77 * + 17 * COALESCE ( - 27, - - CASE SUM( DISTINCT + 71 ) WHEN 76 THEN - 33 ELSE - 82 / - ( + 98 ) * - + 97 END ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT 77 * + 17 * COALESCE ( - 27, - - CASE SUM ( DISTINCT + 71 ) WHEN 76 THEN - 33 ELSE - 82 / - ( + 98 ) * - + 97 END ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 16 * + - 14
----
-224

query II rowsort
SELECT + 84 AS col0, - 93 + 82
----
84
-11

query I rowsort
SELECT ALL - ( NULLIF ( - 58, + 27 - + 0 ) )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT - 37 * - 11 + - 32 * - 8 - + ( - + 26 ) + + SUM( - 0 ) AS col2, - 2
----
689
-2

skipif mysql # not compatible
query II rowsort label-3921
SELECT - 37 * - 11 + - 32 * - 8 - + ( - + 26 ) + + SUM ( - 0 ) AS col2, - 2
----
689
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3922
SELECT ALL - CASE MAX( 34 ) WHEN - ( + CAST( NULL AS SIGNED ) ) THEN + 16 END AS col0, CAST( + 77 AS SIGNED ) AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3922
SELECT ALL - CASE MAX ( 34 ) WHEN - ( + CAST ( NULL AS INTEGER ) ) THEN + 16 END AS col0, CAST ( + 77 AS INTEGER ) AS col0
----
NULL
77

query I rowsort
SELECT 36 + - 7 AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3924
SELECT ALL - COUNT( * ), + CASE 23 WHEN + - 53 * + + 74 + + COUNT( * ) THEN 28 END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3924
SELECT ALL - COUNT ( * ), + CASE 23 WHEN + - 53 * + + 74 + + COUNT ( * ) THEN 28 END AS col1
----
-1
NULL

query I rowsort
SELECT 42 * 64 AS col1
----
2688

query II rowsort
SELECT DISTINCT - 19 AS col0, - 6
----
-19
-6

query I rowsort
SELECT DISTINCT 16 + - 96 + - - COALESCE ( + + 9, - - 44 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3928
SELECT 9 AS col1, - COUNT( ALL - + 36 ) + - 79 * - SUM( DISTINCT - 16 ) * + - 96 - + 68
----
9
121275

skipif mysql # not compatible
query II rowsort label-3928
SELECT 9 AS col1, - COUNT ( ALL - + 36 ) + - 79 * - SUM ( DISTINCT - 16 ) * + - 96 - + 68
----
9
121275

query I rowsort
SELECT 32 + 67
----
99

query I rowsort
SELECT DISTINCT - 96 + - 17 + 16
----
-97

query II rowsort
SELECT - 64 AS col0, + 2 * + 38 * 40
----
-64
3040

query I rowsort
SELECT ALL 80 + + 99 AS col1
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT + + 3 + - MIN( ALL - - 62 )
----
-59

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT + + 3 + - MIN ( ALL - - 62 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT ALL - 35 * + MAX( ALL - 36 ) AS col0
----
1260

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL - 35 * + MAX ( ALL - 36 ) AS col0
----
1260

query II rowsort
SELECT - NULLIF ( + - 3, 74 ) AS col1, - 81
----
3
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT MAX( 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT MAX ( 68 ) AS col1
----
68

query I rowsort
SELECT - 95 + - 60 AS col1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT DISTINCT 65 + + - 34 + 28 - ( + - 8 ) * CASE + + 20 WHEN + 77 / + - 15 + - 12 THEN MIN( - + 53 ) WHEN 17 + 56 * - 2 * - + 34 THEN + + 56 * - + 52 + - NULLIF ( - COUNT( * ), + 34 - - COUNT( * ) + - - 12 / + 59 * - COUNT( * ) / - 14 * + + 81 * CASE - 86 WHEN + + COUNT( * ) - ( - 43 ) * SUM( 26 ) THEN 72 WHEN - 22 THEN NULL WHEN - 56 THEN + 12 * NULLIF ( - 47, - ( - 14 ) + 63 ) ELSE - 99 END ) * + 68 END / 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT 65 + + - 34 + 28 - ( + - 8 ) * CASE + + 20 WHEN + 77 / + - 15 + - 12 THEN MIN ( - + 53 ) WHEN 17 + 56 * - 2 * - + 34 THEN + + 56 * - + 52 + - NULLIF ( - COUNT ( * ), + 34 - - COUNT ( * ) + - - 12 / + 59 * - COUNT ( * ) / - 14 * + + 81 * CASE - 86 WHEN + + COUNT ( * ) - ( - 43 ) * SUM ( 26 ) THEN 72 WHEN - 22 THEN NULL WHEN - 56 THEN + 12 * NULLIF ( - 47, - ( - 14 ) + 63 ) ELSE - 99 END ) * + 68 END / 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL 69 * + CASE - 51 WHEN + - 85 THEN - 28 WHEN + + 33 + - + 2 * + - COUNT( * ) THEN NULL ELSE NULL END * + + 12 + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL 69 * + CASE - 51 WHEN + - 85 THEN - 28 WHEN + + 33 + - + 2 * + - COUNT ( * ) THEN NULL ELSE NULL END * + + 12 + 48
----
NULL

query I rowsort
SELECT 38 + - 37
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT SUM( ALL 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3941
SELECT SUM ( ALL 88 ) AS col2
----
88

query II rowsort
SELECT + 97, ( 1 ) AS col0
----
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT + 22 + - 54 + 69 * - ( - + COUNT( * ) ) * - - 31 + - 72 + 6 * + - MAX( - CAST( NULL AS SIGNED ) ) * + - 51 * - CAST( NULL AS SIGNED ) * - COUNT( * ) * + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT + 22 + - 54 + 69 * - ( - + COUNT ( * ) ) * - - 31 + - 72 + 6 * + - MAX ( - CAST ( NULL AS INTEGER ) ) * + - 51 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + - 73
----
NULL

query I rowsort
SELECT ALL 92 + - 20 * + - 26 * + 91
----
47412

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + MAX( DISTINCT - 69 ) * + 48 * - - 16 * - COUNT( * )
----
52992

skipif mysql # not compatible
query I rowsort label-3945
SELECT + MAX ( DISTINCT - 69 ) * + 48 * - - 16 * - COUNT ( * )
----
52992

query I rowsort
SELECT + + 3 + - - 35 + - 76 + + 97
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 44 * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 44 * + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT DISTINCT - CASE - 74 WHEN 80 THEN + 29 END - - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT - CASE - 74 WHEN 80 THEN + 29 END - - + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + + 43 col2, + 86 * 26
----
43
2236

query I rowsort
SELECT + 94 + + + CASE + 22 WHEN 4 * + - 28 - + 18 THEN 17 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL COUNT( * ) * - 55 * - - 28 * 53 col0
----
-81620

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL COUNT ( * ) * - 55 * - - 28 * 53 col0
----
-81620

query I rowsort
SELECT CASE + - 70 WHEN + ( + 20 ) + + 90 THEN 87 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT 72 * + 68 * - 40 + - COUNT( * ) + - 12 AS col2
----
-195853

skipif mysql # not compatible
query I rowsort label-3953
SELECT 72 * + 68 * - 40 + - COUNT ( * ) + - 12 AS col2
----
-195853

onlyif mysql # aggregate syntax: 
query II rowsort label-3954
SELECT + 41 * 65 AS col2, 2 + - COUNT( * ) * - 91 + - - 15 + + + 74 + - - 59 col0
----
2665
241

skipif mysql # not compatible
query II rowsort label-3954
SELECT + 41 * 65 AS col2, 2 + - COUNT ( * ) * - 91 + - - 15 + + + 74 + - - 59 col0
----
2665
241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT - 33 DIV + + COUNT( * ) + + ( + COUNT( * ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3955
SELECT - 33 / + + COUNT ( * ) + + ( + COUNT ( * ) ) AS col2
----
-32

query I rowsort
SELECT ALL ( ( + + 95 ) ) * + 66 AS col2
----
6270

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT - COUNT( ALL - 3 ) * 43 * + 60 - MAX( ALL - 67 )
----
-2513

skipif mysql # not compatible
query I rowsort label-3957
SELECT - COUNT ( ALL - 3 ) * 43 * + 60 - MAX ( ALL - 67 )
----
-2513

query I rowsort
SELECT NULLIF ( + 17, + + 15 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3959
SELECT + COUNT( * ) * - COUNT( * ) AS col2, - 29 AS col2
----
-1
-29

skipif mysql # not compatible
query II rowsort label-3959
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2, - 29 AS col2
----
-1
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3960
SELECT + COUNT( * ) DIV 2, + 57 AS col2
----
0
57

skipif mysql # not compatible
query II rowsort label-3960
SELECT + COUNT ( * ) / 2, + 57 AS col2
----
0
57

query I rowsort
SELECT NULLIF ( 18, + - 97 ) AS col2
----
18

query I rowsort
SELECT ALL + 51 * 19 + + + 4
----
973

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT DISTINCT + MIN( DISTINCT + 76 ) AS col2, 34 + - 39
----
76
-5

skipif mysql # not compatible
query II rowsort label-3963
SELECT DISTINCT + MIN ( DISTINCT + 76 ) AS col2, 34 + - 39
----
76
-5

query I rowsort
SELECT - 7 * - 72 - 37 + 61 + + + 9 * 54 * + 19 col2
----
9762

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT COALESCE ( + COUNT( * ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3965
SELECT COALESCE ( + COUNT ( * ), COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3966
SELECT + AVG ( + 72 ) / + 72 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + AVG ( + 72 ) / + 72 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT + ( + 25 ) AS col1, + 45 AS col0
----
25
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3968
SELECT + ( - - 41 ) AS col1, - CAST( NULL AS DECIMAL ) * 40 + + 65 + + MIN( + 19 ) + COUNT( * ) + + - 98 AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-3968
SELECT + ( - - 41 ) AS col1, - CAST ( NULL AS REAL ) * 40 + + 65 + + MIN ( + 19 ) + COUNT ( * ) + + - 98 AS col0
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT DISTINCT CASE + 84 WHEN + 54 THEN - 4 END * - 71 + - COUNT( * ) + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT CASE + 84 WHEN + 54 THEN - 4 END * - 71 + - COUNT ( * ) + - 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT ALL 44 * CAST( - - 45 AS SIGNED ) + - 0 AS col0
----
1980

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL 44 * CAST ( - - 45 AS INTEGER ) + - 0 AS col0
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT - COUNT( * ) - - + 90 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3971
SELECT - COUNT ( * ) - - + 90 AS col0
----
89

query I rowsort
SELECT ALL + 38 * - ( + + 12 ) col0
----
-456

query I rowsort
SELECT - 43 * - NULLIF ( - + 71, + 59 )
----
-3053

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT DISTINCT - 30 * - 4 + - - 38 * - COUNT( * ) AS col0, + 17 AS col1
----
82
17

skipif mysql # not compatible
query II rowsort label-3974
SELECT DISTINCT - 30 * - 4 + - - 38 * - COUNT ( * ) AS col0, + 17 AS col1
----
82
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT - ( 69 ) + - - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT - ( 69 ) + - - COUNT ( * )
----
-68

query I rowsort
SELECT - 14 + 12
----
-2

query I rowsort
SELECT - 97 - + 5 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL - CASE 97 WHEN - 22 + + COUNT( * ) THEN NULL WHEN + 9 THEN COUNT( * ) * + 67 + MIN( ALL + COALESCE ( 50, + - 81 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - CASE 97 WHEN - 22 + + COUNT ( * ) THEN NULL WHEN + 9 THEN COUNT ( * ) * + 67 + MIN ( ALL + COALESCE ( 50, + - 81 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT - COALESCE ( + - 69, + 29 + - COUNT( * ) + 41 * 8 + - 17 * + - 45 + + 87, + 43 )
----
69

skipif mysql # not compatible
query I rowsort label-3979
SELECT - COALESCE ( + - 69, + 29 + - COUNT ( * ) + 41 * 8 + - 17 * + - 45 + + 87, + 43 )
----
69

query I rowsort
SELECT - + 74 + + 99
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3981
SELECT ALL + + 33 DIV - 90 * NULLIF ( COUNT( * ), - + 75 ) - - 77
----
77

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + + 33 / - 90 * NULLIF ( COUNT ( * ), - + 75 ) - - 77
----
77

query I rowsort
SELECT + 13 * - 64 AS col2
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL + 27 * + + 98 - ( - 34 ) * - COUNT( * )
----
2612

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL + 27 * + + 98 - ( - 34 ) * - COUNT ( * )
----
2612

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - MAX( ALL - + 0 ) + - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3984
SELECT - MAX ( ALL - + 0 ) + - 36 AS col1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3985
SELECT - 41 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3985
SELECT - 41 / 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT + 47 * + + SUM( 9 ) AS col2
----
423

skipif mysql # not compatible
query I rowsort label-3986
SELECT + 47 * + + SUM ( 9 ) AS col2
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT - 59 - COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3987
SELECT - 59 - COUNT ( * ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3988
SELECT + COUNT( * ) * COUNT( * ) * + 97 AS col2, CAST( + 37 AS SIGNED ) * + + 24
----
97
888

skipif mysql # not compatible
query II rowsort label-3988
SELECT + COUNT ( * ) * COUNT ( * ) * + 97 AS col2, CAST ( + 37 AS INTEGER ) * + + 24
----
97
888

query I rowsort
SELECT + 35 + + 69 * - 62 AS col2
----
-4243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3990
SELECT DISTINCT + COUNT( * ) DIV + 46 + CASE 20 WHEN - ( - 8 ) THEN NULL WHEN - 55 DIV - + 61 + - + 9 THEN NULL WHEN + 31 - - - 83 + - 22 + - CASE + + ( + + 39 ) WHEN - 28 THEN - SUM( ALL 72 ) * 67 * - + 99 ELSE NULL END THEN + CAST( NULL AS SIGNED ) ELSE + 16 END * - 67 * + 86 + - 73 + + 20 + - 58 * + 51 DIV COUNT( * ) * - 10 - + + 34 + + 87 AS col1
----
-62612

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + COUNT ( * ) / + 46 + CASE 20 WHEN - ( - 8 ) THEN NULL WHEN - 55 / - + 61 + - + 9 THEN NULL WHEN + 31 - - - 83 + - 22 + - CASE + + ( + + 39 ) WHEN - 28 THEN - SUM ( ALL 72 ) * 67 * - + 99 ELSE NULL END THEN + CAST ( NULL AS INTEGER ) ELSE + 16 END * - 67 * + 86 + - 73 + + 20 + - 58 * + 51 / COUNT ( * ) * - 10 - + + 34 + + 87 AS col1
----
-62612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3991
SELECT CAST( + ( + + 74 ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-3991
SELECT CAST ( + ( + + 74 ) AS INTEGER )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT ALL COUNT( * ) DIV 73 DIV - 96 + - 14 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL COUNT ( * ) / 73 / - 96 + - 14 AS col1
----
-14

query I rowsort
SELECT - 75 + - 75
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3994
SELECT NULLIF ( 4, + 2 - - 62 + 46 + COUNT( * ) DIV - 75 + - - 50 ) DIV 68 + + + 51 + - 88 - - ( + 35 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3994
SELECT NULLIF ( 4, + 2 - - 62 + 46 + COUNT ( * ) / - 75 + - - 50 ) / 68 + + + 51 + - 88 - - ( + 35 ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT CAST( 9 AS SIGNED ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3995
SELECT CAST ( 9 AS INTEGER ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3996
SELECT - 41 * 22 * + ( 92 ) + + + SUM( DISTINCT ( + - 18 ) ) + + - 6 + - 25 DIV + + 36 * 93 * - 18 AS col1
----
-83008

skipif mysql # not compatible
query I rowsort label-3996
SELECT - 41 * 22 * + ( 92 ) + + + SUM ( DISTINCT ( + - 18 ) ) + + - 6 + - 25 / + + 36 * 93 * - 18 AS col1
----
-83008

query I rowsort
SELECT + ( - 82 ) - 29 + + + 87 + + 15 * 22 AS col0
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT 14 * + - COALESCE ( 47, + COUNT( * ) ) * + 90 + - + 78 AS col2
----
-59298

skipif mysql # not compatible
query I rowsort label-3998
SELECT 14 * + - COALESCE ( 47, + COUNT ( * ) ) * + 90 + - + 78 AS col2
----
-59298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3999
SELECT + 84 * ( + 52 ) * + MIN( DISTINCT + 77 ) + - 72 + - - 3 * COUNT( * ) DIV 55 + + ( - 75 )
----
336189

skipif mysql # not compatible
query I rowsort label-3999
SELECT + 84 * ( + 52 ) * + MIN ( DISTINCT + 77 ) + - 72 + - - 3 * COUNT ( * ) / 55 + + ( - 75 )
----
336189

query I rowsort
SELECT ( - + 82 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT + 21 + 7 - - 37 DIV + 25 col2
----
29

skipif mysql # not compatible
query I rowsort label-4001
SELECT + 21 + 7 - - 37 / + 25 col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT ALL 9 * ( + COUNT( * ) ) / - 9 + + 22 + + CAST( NULL AS SIGNED ) + - + 72 / AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + 23 + ( + + ( - 10 ) ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL 9 * ( + COUNT ( * ) ) / - 9 + + 22 + + CAST ( NULL AS INTEGER ) + - + 72 / AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 23 + ( + + ( - 10 ) ) * 92
----
NULL

query I rowsort
SELECT + 19 * - + 23 + 29
----
-408

query I rowsort
SELECT ALL + NULLIF ( - + 87, - + 42 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT CAST( NULL AS SIGNED ) * + 22 + + 3 + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT CAST ( NULL AS INTEGER ) * + 22 + + 3 + + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT COUNT( * ) + + 14 + 98 * + + 48 AS col0
----
4719

skipif mysql # not compatible
query I rowsort label-4006
SELECT COUNT ( * ) + + 14 + 98 * + + 48 AS col0
----
4719

query I rowsort
SELECT + + ( + 71 ) col0
----
71

query II rowsort
SELECT 78 * 28 * - 98, 79 AS col0
----
-214032
79

query I rowsort
SELECT 22 * - - 46
----
1012

onlyif mysql # aggregate syntax: 
query II rowsort label-4010
SELECT + 95 + + - 29 + - 61 col2, + MIN( DISTINCT + + 32 ) * + 64 + - 56 col0
----
5
1992

skipif mysql # not compatible
query II rowsort label-4010
SELECT + 95 + + - 29 + - 61 col2, + MIN ( DISTINCT + + 32 ) * + 64 + - 56 col0
----
5
1992

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + CASE 9 WHEN 90 THEN + - MAX( DISTINCT + 36 ) ELSE COUNT( * ) END - + + 98 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + CASE 9 WHEN 90 THEN + - MAX ( DISTINCT + 36 ) ELSE COUNT ( * ) END - + + 98 AS col0
----
-97

query I rowsort
SELECT + 35 * - - NULLIF ( - + 18, + - 62 * + 97 ) + - - 37
----
-593

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT 70 DIV - COUNT( * ) * - + COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4013
SELECT 70 / - COUNT ( * ) * - + COUNT ( * ) AS col1
----
70

query I rowsort
SELECT + 93 + ( 0 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT COUNT( * ) * + - 95 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4015
SELECT COUNT ( * ) * + - 95 AS col0
----
-95

query I rowsort
SELECT 26 * 34
----
884

onlyif mysql # aggregate syntax: 
query II rowsort label-4017
SELECT ALL + COUNT( * ) AS col1, 80 + 83
----
1
163

skipif mysql # not compatible
query II rowsort label-4017
SELECT ALL + COUNT ( * ) AS col1, 80 + 83
----
1
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT SUM( DISTINCT 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4018
SELECT SUM ( DISTINCT 20 ) AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4019
SELECT ( 16 ) + - - ( + - 94 ) + MIN( + 22 ) DIV ( - COUNT( * ) ) - + NULLIF ( + ( ( + - 30 ) ), 24 ) DIV - COUNT( * ) - 16 * - 23 + 14 * 91 AS col1
----
1512

skipif mysql # not compatible
query I rowsort label-4019
SELECT ( 16 ) + - - ( + - 94 ) + MIN ( + 22 ) / ( - COUNT ( * ) ) - + NULLIF ( + ( ( + - 30 ) ), 24 ) / - COUNT ( * ) - 16 * - 23 + 14 * 91 AS col1
----
1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT - 60 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT - 60 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 9 + - 2
----
7

query I rowsort
SELECT ALL 99 + - + 37 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL + ( + + 38 ) + - MIN( ( + 6 ) )
----
32

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL + ( + + 38 ) + - MIN ( ( + 6 ) )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4024
SELECT 35 DIV + + 4 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4024
SELECT 35 / + + 4 AS col0
----
8

query I rowsort
SELECT 42 * + - 32 * + COALESCE ( + 23, - 72 ) col1
----
-30912

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ( + 21 ) + - SUM( + 37 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4026
SELECT ( + 21 ) + - SUM ( + 37 ) AS col0
----
-16

query II rowsort
SELECT + 96 AS col0, 73 AS col2
----
96
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT + ( - + 31 ) + COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT + ( - + 31 ) + COUNT ( * ) AS col1
----
-30

query I rowsort
SELECT DISTINCT 50 + + 31 * 63
----
2003

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT DISTINCT - COALESCE ( + COUNT( ALL + 66 ), - - 59 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT - COALESCE ( + COUNT ( ALL + 66 ), - - 59 ) col0
----
-1

query II rowsort
SELECT 68 col0, 50
----
68
50

query I rowsort
SELECT + ( + + 81 ) * + 92 + + ( + 97 )
----
7549

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ( - 35 ) * - COUNT( * ) * + 97 * 72 AS col1
----
244440

skipif mysql # not compatible
query I rowsort label-4033
SELECT ( - 35 ) * - COUNT ( * ) * + 97 * 72 AS col1
----
244440

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT + - 47, + COUNT( DISTINCT - + 43 ) AS col0
----
-47
1

skipif mysql # not compatible
query II rowsort label-4034
SELECT + - 47, + COUNT ( DISTINCT - + 43 ) AS col0
----
-47
1

query I rowsort
SELECT 93 * - 30
----
-2790

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4036
SELECT 54 AS col0, - CAST( NULL AS SIGNED ) * + 73 * - + 11 AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-4036
SELECT 54 AS col0, - CAST ( NULL AS INTEGER ) * + 73 * - + 11 AS col0
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT COUNT( * ) * - 91 * - 21 AS col0
----
1911

skipif mysql # not compatible
query I rowsort label-4037
SELECT COUNT ( * ) * - 91 * - 21 AS col0
----
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL + COALESCE ( NULLIF ( - - 87, + 37 / + MAX( - 49 ) ), - - 35 )
----
87

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL + COALESCE ( NULLIF ( - - 87, + 37 / + MAX ( - 49 ) ), - - 35 )
----
87

query I rowsort
SELECT 64 + 29 + - 27
----
66

query I rowsort
SELECT 41 * 72 AS col2
----
2952

query I rowsort
SELECT ALL + + 91 + + 49 AS col1
----
140

query I rowsort
SELECT ALL - 41 + 94 * 87 + - 66 AS col0
----
8071

query I rowsort
SELECT DISTINCT 35 * - + 89 AS col1
----
-3115

query I rowsort
SELECT ALL - ( - - NULLIF ( + 9, 65 ) ) * - + 16 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4045
SELECT 26 + + + CAST( - 1 AS SIGNED ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4045
SELECT 26 + + + CAST ( - 1 AS INTEGER ) AS col0
----
25

query II rowsort
SELECT 61 * + + 46, 32 AS col0
----
2806
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT CAST( NULL AS SIGNED ) + + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT CAST ( NULL AS INTEGER ) + + + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4048
SELECT ALL + 78 + + 85 - + 68 + + COALESCE ( CAST( NULL AS SIGNED ), NULLIF ( - 92, + 94 * 58 - 90 + 14 + + 13 + + 54 * - - CASE 30 WHEN - - 97 * 94 THEN - COUNT( * ) ELSE NULL END * COUNT( * ) ) ) + - 36 DIV 50 - - 96 + - + COALESCE ( - + 74, - + 71 ) col1
----
173

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL + 78 + + 85 - + 68 + + COALESCE ( CAST ( NULL AS INTEGER ), NULLIF ( - 92, + 94 * 58 - 90 + 14 + + 13 + + 54 * - - CASE 30 WHEN - - 97 * 94 THEN - COUNT ( * ) ELSE NULL END * COUNT ( * ) ) ) + - 36 / 50 - - 96 + - + COALESCE ( - + 74, - + 71 ) col1
----
173

query I rowsort
SELECT 51 - + + 6 * - 90 AS col1
----
591

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL 76 * - SUM( DISTINCT - ( + - 57 ) ) - COUNT( DISTINCT + 63 ) + - - 56 AS col0
----
-4277

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL 76 * - SUM ( DISTINCT - ( + - 57 ) ) - COUNT ( DISTINCT + 63 ) + - - 56 AS col0
----
-4277

query I rowsort
SELECT 76 * 98 * + 47 AS col1
----
350056

onlyif mysql # DIV for integer division: 
query II rowsort label-4052
SELECT DISTINCT + 6 DIV + 51 AS col0, 74
----
0
74

skipif mysql # not compatible
query II rowsort label-4052
SELECT DISTINCT + 6 / + 51 AS col0, 74
----
0
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT 89 * - AVG ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT 89 * - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4054
SELECT ALL + 88 * - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) - 92 + + 5 / - 48 + COUNT( * ) - - 18
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-4054
SELECT ALL + 88 * - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) - 92 + + 5 / - 48 + COUNT ( * ) - - 18
----
-88
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT + 48 * - - 18 + 4 * - 96 + - - MIN( - 74 ) * + 40 * + + CASE + 18 WHEN + 93 THEN + 35 - - CAST( NULL AS SIGNED ) WHEN 42 THEN NULL ELSE NULL END - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT + 48 * - - 18 + 4 * - 96 + - - MIN ( - 74 ) * + 40 * + + CASE + 18 WHEN + 93 THEN + 35 - - CAST ( NULL AS INTEGER ) WHEN 42 THEN NULL ELSE NULL END - 63 AS col2
----
NULL

query II rowsort
SELECT + 50 + - + 75 AS col0, 5 AS col1
----
-25
5

query I rowsort
SELECT ALL - 39 * 96 - 53 AS col2
----
-3797

query I rowsort
SELECT - 94 * + 17
----
-1598

query I rowsort
SELECT - + 88 * 93 + + 25 + - - 14 + + 15 * - 62 AS col1
----
-9075

onlyif mysql # aggregate syntax: 
query II rowsort label-4060
SELECT DISTINCT + - COUNT( DISTINCT - 29 ), + 41 * - 40 col0
----
-1
-1640

skipif mysql # not compatible
query II rowsort label-4060
SELECT DISTINCT + - COUNT ( DISTINCT - 29 ), + 41 * - 40 col0
----
-1
-1640

query II rowsort
SELECT ALL + ( + + 87 ) col1, 91
----
87
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + NULLIF ( - + 17, 93 - - 58 ) ) + + 93 + + 78 + + 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + NULLIF ( - + 17, 93 - - 58 ) ) + + 93 + + 78 + + 67 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT - CAST( + 35 AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4063
SELECT - CAST ( + 35 AS INTEGER ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT NULLIF ( - - 85, + CAST( - + 96 AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-4064
SELECT NULLIF ( - - 85, + CAST ( - + 96 AS INTEGER ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + CASE - + NULLIF ( 64, 4 ) WHEN 86 * + - 91 THEN - 23 * - 24 END * - 79 * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT + CASE - + NULLIF ( 64, 4 ) WHEN 86 * + - 91 THEN - 23 * - 24 END * - 79 * - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL + COUNT( * ) + 54
----
55

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + COUNT ( * ) + 54
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + + COUNT( * ) + 39 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4067
SELECT + + COUNT ( * ) + 39 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT DISTINCT 95 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT 95 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4069
SELECT ALL 94 + 97 + + CAST( 71 AS SIGNED ) * + + 31 DIV + COUNT( * )
----
2392

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL 94 + 97 + + CAST ( 71 AS INTEGER ) * + + 31 / + COUNT ( * )
----
2392

query I rowsort
SELECT + 58 * + - 99 col1
----
-5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4071
SELECT - CASE 22 WHEN + 98 * + 9 THEN + - COUNT( * ) WHEN - - 0 THEN NULL ELSE + 41 * - - 99 * - SUM( ALL - 61 ) * - CAST( NULL AS SIGNED ) + - + 58 - + - 22 - 82 / - - 59 + 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT - CASE 22 WHEN + 98 * + 9 THEN + - COUNT ( * ) WHEN - - 0 THEN NULL ELSE + 41 * - - 99 * - SUM ( ALL - 61 ) * - CAST ( NULL AS INTEGER ) + - + 58 - + - 22 - 82 / - - 59 + 79 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT + 76 DIV - - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4072
SELECT + 76 / - - 90 AS col2
----
0

query I rowsort
SELECT + 58 + - - 74 col0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT - ( CAST( NULL AS SIGNED ) ) + - - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT - ( CAST ( NULL AS INTEGER ) ) + - - 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4075
SELECT + 22 + + 24 * + + 80 AS col0, - CASE COUNT( * ) WHEN + COUNT( * ) THEN + COUNT( * ) - + 82 + - 7 WHEN - SUM( 5 ) + 90 + + 99 THEN NULL ELSE NULL END AS col0
----
1942
88

skipif mysql # not compatible
query II rowsort label-4075
SELECT + 22 + + 24 * + + 80 AS col0, - CASE COUNT ( * ) WHEN + COUNT ( * ) THEN + COUNT ( * ) - + 82 + - 7 WHEN - SUM ( 5 ) + 90 + + 99 THEN NULL ELSE NULL END AS col0
----
1942
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL COUNT( * ) - 18 + + - 79 + - 52 * + COALESCE ( COUNT( * ), - ( - 27 ) ) * 15 * - 57 AS col0
----
44364

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL COUNT ( * ) - 18 + + - 79 + - 52 * + COALESCE ( COUNT ( * ), - ( - 27 ) ) * 15 * - 57 AS col0
----
44364

query I rowsort
SELECT - ( - + 20 ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT ALL + 47 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + 47 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL - SUM( - 69 ) * - CAST( + 83 AS SIGNED ) * - - 36 + - + 93 - - - 9 * + 86 * + 44 AS col2
----
-240321

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL - SUM ( - 69 ) * - CAST ( + 83 AS INTEGER ) * - - 36 + - + 93 - - - 9 * + 86 * + 44 AS col2
----
-240321

query I rowsort
SELECT ALL 80 * ( + - 96 )
----
-7680

query I rowsort
SELECT + ( - - 91 ) col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ( - COUNT( * ) ) * - SUM( 98 ) + - + 19 * - COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-4082
SELECT ( - COUNT ( * ) ) * - SUM ( 98 ) + - + 19 * - COUNT ( * )
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT ALL + 31 AS col0, 48 + + COUNT( * ) AS col1
----
31
49

skipif mysql # not compatible
query II rowsort label-4083
SELECT ALL + 31 AS col0, 48 + + COUNT ( * ) AS col1
----
31
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT CAST( + 54 AS SIGNED ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4084
SELECT CAST ( + 54 AS INTEGER ) AS col1
----
54

query I rowsort
SELECT - NULLIF ( 30, 19 * + 62 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL + MIN( DISTINCT + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL + MIN ( DISTINCT + 49 )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4087
SELECT ALL + + 31 AS col1, + MAX( DISTINCT 79 ) + - ( - ( 34 ) ) col1
----
31
113

skipif mysql # not compatible
query II rowsort label-4087
SELECT ALL + + 31 AS col1, + MAX ( DISTINCT 79 ) + - ( - ( 34 ) ) col1
----
31
113

query I rowsort
SELECT DISTINCT + - 80 col2
----
-80

query II rowsort
SELECT + 61 AS col2, - 24 AS col0
----
61
-24

query I rowsort
SELECT - + 41 * - 67
----
2747

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4091
SELECT ALL + - 20 * - 80 DIV + + 16 + - 30 + + 13 + - - COALESCE ( 1, 16 + + NULLIF ( + 88, NULLIF ( - 60, 18 ) ), - 5 + + CAST( NULL AS SIGNED ) )
----
84

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL + - 20 * - 80 / + + 16 + - 30 + + 13 + - - COALESCE ( 1, 16 + + NULLIF ( + 88, NULLIF ( - 60, 18 ) ), - 5 + + CAST ( NULL AS INTEGER ) )
----
84

query I rowsort
SELECT - COALESCE ( + 33, + 42 * - 76 ) * - 55 + - 98 col2
----
1717

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT - + COUNT( * ) * 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4093
SELECT - + COUNT ( * ) * 24 AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4094
SELECT - + COALESCE ( - 69, + 75 * - 11 - + + 54, + + 22 - - - 2 ) + - 15, + ( + 92 ) + - + 10 * - ( - - CASE + MAX( DISTINCT + - 73 ) WHEN + 79 * - 69 + - ( - 97 ) THEN - - 35 WHEN - 74 * + ( 60 ) + - 96 + 24 / + 24 THEN CASE - ( + - COUNT( * ) ) WHEN + + COUNT( * ) * 96 + - CAST( - 57 AS SIGNED ) THEN + 39 ELSE NULL END * + 62 ELSE NULL END ) * + 10 + + - COUNT( * ) - 9 + + COUNT( * ) / ( + 4 ) AS col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-4094
SELECT - + COALESCE ( - 69, + 75 * - 11 - + + 54, + + 22 - - - 2 ) + - 15, + ( + 92 ) + - + 10 * - ( - - CASE + MAX ( DISTINCT + - 73 ) WHEN + 79 * - 69 + - ( - 97 ) THEN - - 35 WHEN - 74 * + ( 60 ) + - 96 + 24 / + 24 THEN CASE - ( + - COUNT ( * ) ) WHEN + + COUNT ( * ) * 96 + - CAST ( - 57 AS INTEGER ) THEN + 39 ELSE NULL END * + 62 ELSE NULL END ) * + 10 + + - COUNT ( * ) - 9 + + COUNT ( * ) / ( + 4 ) AS col1
----
54
NULL

query I rowsort
SELECT - 64 * - + 15 AS col0
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT + - 58 DIV + 2
----
-29

skipif mysql # not compatible
query I rowsort label-4096
SELECT + - 58 / + 2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT ALL - + CAST( NULL AS SIGNED ) * - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL - + CAST ( NULL AS INTEGER ) * - - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT 14 * 73 * 58 / + - 52 - - ( + ( - - CASE 91 WHEN COUNT( * ) THEN 22 + - ( + 53 ) - - 50 * 76 * 61 WHEN - 67 THEN + 18 ELSE NULL END ) ) - + COALESCE ( + - 99, + 20 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT 14 * 73 * 58 / + - 52 - - ( + ( - - CASE 91 WHEN COUNT ( * ) THEN 22 + - ( + 53 ) - - 50 * 76 * 61 WHEN - 67 THEN + 18 ELSE NULL END ) ) - + COALESCE ( + - 99, + 20 ) col1
----
NULL

query II rowsort
SELECT DISTINCT + + 5 col0, - 22 AS col1
----
5
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT - MIN( + 32 ) + + 62
----
30

skipif mysql # not compatible
query I rowsort label-4100
SELECT - MIN ( + 32 ) + + 62
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - MAX( DISTINCT ( - + 60 ) )
----
60

skipif mysql # not compatible
query I rowsort label-4101
SELECT - MAX ( DISTINCT ( - + 60 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT SUM( DISTINCT - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4102
SELECT SUM ( DISTINCT - 29 ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT DISTINCT 82 * CAST( ( + ( - 97 ) ) AS SIGNED ) AS col1
----
-7954

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT 82 * CAST ( ( + ( - 97 ) ) AS INTEGER ) AS col1
----
-7954

query I rowsort
SELECT ALL + 24 * + 66
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT + 6 * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT + 6 * COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL MIN( DISTINCT - + 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL MIN ( DISTINCT - + 76 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4107
SELECT + CAST( + 95 AS SIGNED ) * - MAX( 72 ) AS col0
----
-6840

skipif mysql # not compatible
query I rowsort label-4107
SELECT + CAST ( + 95 AS INTEGER ) * - MAX ( 72 ) AS col0
----
-6840

query I rowsort
SELECT ALL 81 * - - 26 AS col0
----
2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4109
SELECT + CAST( + AVG ( - - 71 ) AS SIGNED ) - - - 31 * - 20 + + 76 * - 60, 68 - + 64 * 12 * COALESCE ( COUNT( * ), 72 * + - 75 + + 78 + - NULLIF ( 23, 12 ), NULLIF ( + - 50, + + 94 ) - 14 ) AS col2
----
-3869
-700

skipif mysql # not compatible
query II rowsort label-4109
SELECT + CAST ( + AVG ( - - 71 ) AS INTEGER ) - - - 31 * - 20 + + 76 * - 60, 68 - + 64 * 12 * COALESCE ( COUNT ( * ), 72 * + - 75 + + 78 + - NULLIF ( 23, 12 ), NULLIF ( + - 50, + + 94 ) - 14 ) AS col2
----
-3869
-700

query I rowsort
SELECT 60 + - 14 + + 53 + - 40 * + ( - 27 ) + 3 AS col2
----
1182

query I rowsort
SELECT ALL 74 - + 59 + + 46
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4112
SELECT 70 + - CAST( NULL AS SIGNED ) AS col2, MIN( DISTINCT - 4 )
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-4112
SELECT 70 + - CAST ( NULL AS INTEGER ) AS col2, MIN ( DISTINCT - 4 )
----
NULL
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT MAX( DISTINCT + 34 ) + - - 22
----
56

skipif mysql # not compatible
query I rowsort label-4113
SELECT MAX ( DISTINCT + 34 ) + - - 22
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4114
SELECT ALL 97 DIV + + COALESCE ( - 56, - 40 * 93 - + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL 97 / + + COALESCE ( - 56, - 40 * 93 - + 74 )
----
-1

query I rowsort
SELECT + 85 + + - 71
----
14

query I rowsort
SELECT ALL 24 * COALESCE ( + 90, - - ( 80 ) )
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT - 52 + - NULLIF ( - + COUNT( * ), + 84 + 26 + + 59 / 13 * - 5 ) * + 49 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4117
SELECT - 52 + - NULLIF ( - + COUNT ( * ), + 84 + 26 + + 59 / 13 * - 5 ) * + 49 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT + + MAX( DISTINCT + 34 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-4118
SELECT + + MAX ( DISTINCT + 34 ) col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4119
SELECT 70 + - COUNT( * ) * 76 * - 93 * 67 + + + 51 + SUM( ALL 24 ) * + 24 * + 65 AS col0, + 75 AS col2
----
511117
75

skipif mysql # not compatible
query II rowsort label-4119
SELECT 70 + - COUNT ( * ) * 76 * - 93 * 67 + + + 51 + SUM ( ALL 24 ) * + 24 * + 65 AS col0, + 75 AS col2
----
511117
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4120
SELECT - 80 DIV - 19 + + - 81 col0
----
-77

skipif mysql # not compatible
query I rowsort label-4120
SELECT - 80 / - 19 + + - 81 col0
----
-77

query I rowsort
SELECT ALL - 73 * - 55
----
4015

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT MIN( - - 86 ) + COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4122
SELECT MIN ( - - 86 ) + COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT - 82 + + - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT - 82 + + - COUNT ( * )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT ALL + 23 + 4 DIV + 72 * - + 94 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + 23 + 4 / + 72 * - + 94 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT - + MIN( + + 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT - + MIN ( + + 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT DISTINCT 93 + - MAX( + 16 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT 93 + - MAX ( + 16 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT - - MAX( ALL - - 34 ) + + 28 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT - - MAX ( ALL - - 34 ) + + 28 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - ( + - 73 ) * 99 * + 77 * - + 33 * - 30 + - CASE - 61 WHEN 84 * + 33 THEN NULL ELSE - 97 END + COUNT( * ) * 92
----
550914399

skipif mysql # not compatible
query I rowsort label-4128
SELECT - ( + - 73 ) * 99 * + 77 * - + 33 * - 30 + - CASE - 61 WHEN 84 * + 33 THEN NULL ELSE - 97 END + COUNT ( * ) * 92
----
550914399

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT + + CASE - 58 WHEN + MIN( + 45 ) * - 81 THEN NULL ELSE COUNT( * ) + 65 * + COUNT( * ) END
----
66

skipif mysql # not compatible
query I rowsort label-4129
SELECT + + CASE - 58 WHEN + MIN ( + 45 ) * - 81 THEN NULL ELSE COUNT ( * ) + 65 * + COUNT ( * ) END
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4130
SELECT - 13 * 84 + + NULLIF ( 54, - 77 ) - + - 66 - + - 68 - CASE + - 92 WHEN - 39 THEN NULL WHEN + + 64 * + + ( + 23 ) - - COALESCE ( + + 85, + 76 ) THEN NULL ELSE - COUNT( * ) - 73 DIV + 76 END + - - 90 + - - 10 * - + 93
----
-1743

skipif mysql # not compatible
query I rowsort label-4130
SELECT - 13 * 84 + + NULLIF ( 54, - 77 ) - + - 66 - + - 68 - CASE + - 92 WHEN - 39 THEN NULL WHEN + + 64 * + + ( + 23 ) - - COALESCE ( + + 85, + 76 ) THEN NULL ELSE - COUNT ( * ) - 73 / + 76 END + - - 90 + - - 10 * - + 93
----
-1743

query I rowsort
SELECT ALL - 91 * + + 41 AS col2
----
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT DISTINCT - NULLIF ( ( - - 17 ), + COUNT( * ) ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - NULLIF ( ( - - 17 ), + COUNT ( * ) ) AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4133
SELECT 46 AS col1, + CAST( NULL AS SIGNED ) col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-4133
SELECT 46 AS col1, + CAST ( NULL AS INTEGER ) col2
----
46
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 33, + 19 ) - + - 50 * - 1 + + + 63 * - + 99 * + - 80 * 21
----
10478077

query I rowsort
SELECT ALL - 92 * 93 AS col2
----
-8556

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT + ( + - COUNT( + 18 ) ) * - - 4 + + + ( - NULLIF ( - - 54, 77 - 40 * ( - + 28 ) ) ) * + + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + ( + - COUNT ( + 18 ) ) * - - 4 + + + ( - NULLIF ( - - 54, 77 - 40 * ( - + 28 ) ) ) * + + COUNT ( * ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4137
SELECT 64 * + - NULLIF ( - 59, + CAST( - 68 AS SIGNED ) ) AS col0, 51 AS col2
----
3776
51

skipif mysql # not compatible
query II rowsort label-4137
SELECT 64 * + - NULLIF ( - 59, + CAST ( - 68 AS INTEGER ) ) AS col0, 51 AS col2
----
3776
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT 70 + + 47 * - 0 DIV + + 25 DIV 19 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4138
SELECT 70 + + 47 * - 0 / + + 25 / 19 AS col0
----
70

query I rowsort
SELECT ALL - 65 - 53
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-4140
SELECT 40, MAX( ALL - 37 ) * - - 6 * + 31 AS col0
----
40
-6882

skipif mysql # not compatible
query II rowsort label-4140
SELECT 40, MAX ( ALL - 37 ) * - - 6 * + 31 AS col0
----
40
-6882

query II rowsort
SELECT - 34 AS col1, 8 col0
----
-34
8

query II rowsort
SELECT ALL 88, - 7 AS col0
----
88
-7

query II rowsort
SELECT DISTINCT 94, 23 + + 65 * + + 22 * + + 90 * 62 AS col2
----
94
7979423

query I rowsort
SELECT ( - 28 ) + + + 56 + + + 43 - - 49 * - 50
----
-2379

query I rowsort
SELECT ALL 27 * - ( NULLIF ( - 25, + - NULLIF ( + 93, 80 * - 59 ) * 41 ) ) AS col2
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL - - COUNT( * ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL - - COUNT ( * ) + + - COUNT ( * )
----
0

query II rowsort
SELECT DISTINCT - 18 AS col0, 8 + 3
----
-18
11

query I rowsort
SELECT DISTINCT + 46 + 59 col2
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-4149
SELECT DISTINCT 71 + - - 64 + + 59 DIV - 32 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT 71 + - - 64 + + 59 / - 32 AS col2
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4150
SELECT ALL + CAST( NULL AS SIGNED ) + - 34 * - + COUNT( * ) col2, - 73 + + + CAST( NULL AS SIGNED ) * - - 92
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4150
SELECT ALL + CAST ( NULL AS INTEGER ) + - 34 * - + COUNT ( * ) col2, - 73 + + + CAST ( NULL AS INTEGER ) * - - 92
----
NULL
NULL

query I rowsort
SELECT + 49 * + 69 + - 3 AS col2
----
3378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT + CASE - 59 WHEN MAX( - 93 ) THEN NULL ELSE + 63 DIV - 54 + - 59 + + 70 * - + 41 END
----
-2930

skipif mysql # not compatible
query I rowsort label-4152
SELECT + CASE - 59 WHEN MAX ( - 93 ) THEN NULL ELSE + 63 / - 54 + - 59 + + 70 * - + 41 END
----
-2930

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ( - 8 ) / CASE + + MAX( DISTINCT - ( 94 ) ) WHEN + - MAX( ALL - 54 ) THEN - 87 WHEN + CASE 64 WHEN - 80 / + - 84 THEN - 38 ELSE + 0 END THEN NULL ELSE NULL END + - 76 * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT ( - 8 ) / CASE + + MAX ( DISTINCT - ( 94 ) ) WHEN + - MAX ( ALL - 54 ) THEN - 87 WHEN + CASE 64 WHEN - 80 / + - 84 THEN - 38 ELSE + 0 END THEN NULL ELSE NULL END + - 76 * - 17
----
NULL

query II rowsort
SELECT - ( - 39 ) * 39 AS col0, + 32
----
1521
32

query I rowsort
SELECT DISTINCT - 25 + - 50 AS col1
----
-75

query I rowsort
SELECT ALL ( - - 82 ) * + 98 AS col1
----
8036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT DISTINCT - + CAST( + AVG ( + 68 ) AS SIGNED ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT - + CAST ( + AVG ( + 68 ) AS INTEGER ) AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT ALL 82 + 92 * + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL 82 + 92 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT 85 * 71 + + ( MAX( ALL 96 ) ) AS col1
----
6131

skipif mysql # not compatible
query I rowsort label-4159
SELECT 85 * 71 + + ( MAX ( ALL 96 ) ) AS col1
----
6131

query II rowsort
SELECT ALL + 1 * - - ( - + 22 ) AS col1, 58 * 68 * 12
----
-22
47328

query II rowsort
SELECT DISTINCT - + 9, + 95 AS col2
----
-9
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT - MAX( + 38 ) * - 34 * - 83 + COUNT( * ) - + - SUM( DISTINCT 54 ) - + 93 * - 71
----
-100578

skipif mysql # not compatible
query I rowsort label-4162
SELECT - MAX ( + 38 ) * - 34 * - 83 + COUNT ( * ) - + - SUM ( DISTINCT 54 ) - + 93 * - 71
----
-100578

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4163
SELECT + CAST( NULL AS SIGNED ), - 63 + - + 56 AS col1, 61 AS col2
----
NULL
-119
61

skipif mysql # not compatible
query III rowsort label-4163
SELECT + CAST ( NULL AS INTEGER ), - 63 + - + 56 AS col1, 61 AS col2
----
NULL
-119
61

query II rowsort
SELECT + - 64 AS col2, 49 AS col0
----
-64
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT 70 * - + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4165
SELECT 70 * - + COUNT ( * ) AS col1
----
-70

query II rowsort
SELECT ALL - 6, 5 col1
----
-6
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4167
SELECT - 76 AS col2, - 0 * + - COUNT( * ) * 39 * - - 62 * - 86 + + 23 AS col0
----
-76
23

skipif mysql # not compatible
query II rowsort label-4167
SELECT - 76 AS col2, - 0 * + - COUNT ( * ) * 39 * - - 62 * - 86 + + 23 AS col0
----
-76
23

query II rowsort
SELECT + 46 + - 53 - + 47 + 87 AS col2, - 88
----
33
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT - 51 DIV + + 62
----
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT - 51 / + + 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4170
SELECT - CAST( NULL AS SIGNED ) - - 74 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT - CAST ( NULL AS INTEGER ) - - 74 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT - CASE MIN( 86 ) WHEN + 38 THEN - + 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT - CASE MIN ( 86 ) WHEN + 38 THEN - + 68 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4172
SELECT - COUNT( * ) DIV - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT - COUNT ( * ) / - 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4173
SELECT - COUNT( * ) * - + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT - COUNT ( * ) * - + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 68, 63 )
----
-68

query I rowsort
SELECT DISTINCT - 43 + 17 * - 26 * + - 84
----
37085

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL + COUNT( * ) + - 79 - - COUNT( * ) * + - 45 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL + COUNT ( * ) + - 79 - - COUNT ( * ) * + - 45 AS col1
----
-123

query I rowsort
SELECT DISTINCT - 71 + - ( 1 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT MIN( + 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT MIN ( + 34 ) AS col0
----
34

query I rowsort
SELECT - + 17 + - COALESCE ( + 11, + - 60 + - 39 - - 88 ) - + + 28 AS col1
----
-56

query I rowsort
SELECT - - 42 + - + 66 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT - COUNT( * ) + COUNT( DISTINCT - ( 13 ) ), 53 AS col1
----
0
53

skipif mysql # not compatible
query II rowsort label-4181
SELECT - COUNT ( * ) + COUNT ( DISTINCT - ( 13 ) ), 53 AS col1
----
0
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT + CAST( NULL AS SIGNED ) * - 3 * - 53 + + 68 * + - 49 * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT + CAST ( NULL AS INTEGER ) * - 3 * - 53 + + 68 * + - 49 * - 76
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT ALL 30, COUNT( * ) + - 10 * - + 99 col1
----
30
991

skipif mysql # not compatible
query II rowsort label-4183
SELECT ALL 30, COUNT ( * ) + - 10 * - + 99 col1
----
30
991

query I rowsort
SELECT - 70 + - 25 AS col2
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-4185
SELECT DISTINCT + + 48 col0, 23 DIV 32 + 80 * + - 11 + 86
----
48
-794

skipif mysql # not compatible
query II rowsort label-4185
SELECT DISTINCT + + 48 col0, 23 / 32 + 80 * + - 11 + 86
----
48
-794

query I rowsort
SELECT - 34 * 89 + + - ( 49 ) * - 57 AS col0
----
-233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4187
SELECT ALL + - 40 * - 47 - SUM( ALL - 82 ) - - - 4 + 30 - 92 + + COALESCE ( + + 58, - 99 * + COUNT( 28 ) * 2 * - 44 * - - COALESCE ( 32, 47, + + ( COUNT( * ) ) DIV + AVG ( - COALESCE ( 17, - 66 ) ) ) * + CAST( + 49 AS SIGNED ) * - - SUM( ALL 84 ), - 83 ) * 74 - + 43 AS col1
----
6145

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + - 40 * - 47 - SUM ( ALL - 82 ) - - - 4 + 30 - 92 + + COALESCE ( + + 58, - 99 * + COUNT ( 28 ) * 2 * - 44 * - - COALESCE ( 32, 47, + + ( COUNT ( * ) ) / + AVG ( - COALESCE ( 17, - 66 ) ) ) * + CAST ( + 49 AS INTEGER ) * - - SUM ( ALL 84 ), - 83 ) * 74 - + 43 AS col1
----
6145

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT - - 41 DIV 43 * - + 96
----
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT - - 41 / 43 * - + 96
----
0

query II rowsort
SELECT + + 87 AS col0, + 17 AS col1
----
87
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4190
SELECT 95 AS col1, COUNT( * ) DIV + 4
----
95
0

skipif mysql # not compatible
query II rowsort label-4190
SELECT 95 AS col1, COUNT ( * ) / + 4
----
95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + COUNT( * ) + 37
----
38

skipif mysql # not compatible
query I rowsort label-4191
SELECT + COUNT ( * ) + 37
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4192
SELECT NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), - CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4192
SELECT NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), - CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + COUNT( * ) + + 5 + + 32 * - - COALESCE ( - - COUNT( * ), - COUNT( * ) + + 91 + - COUNT( * ) ) * - 52
----
-1658

skipif mysql # not compatible
query I rowsort label-4193
SELECT + COUNT ( * ) + + 5 + + 32 * - - COALESCE ( - - COUNT ( * ), - COUNT ( * ) + + 91 + - COUNT ( * ) ) * - 52
----
-1658

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL 38 * - + COUNT( * ) - + 73
----
-111

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL 38 * - + COUNT ( * ) - + 73
----
-111

query I rowsort
SELECT + + 69 * 48 + 78 + 89 * - ( 53 )
----
-1327

onlyif mysql # DIV for integer division: 
query I rowsort label-4196
SELECT ALL ( - 66 ) DIV + - 54 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL ( - 66 ) / + - 54 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + COALESCE ( + COUNT( * ), + 88 * - 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4197
SELECT + COALESCE ( + COUNT ( * ), + 88 * - 12 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 23 * + 58
----
1334

query I rowsort
SELECT CASE 36 WHEN - 40 * + + 65 THEN - 54 * - 19 ELSE - - 94 END * - - 38 + 49 + - 18
----
3603

query II rowsort
SELECT + ( + + 24 ), - 31 * 90 AS col0
----
24
-2790

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT + COUNT( * ) + + 64 col1
----
65

skipif mysql # not compatible
query I rowsort label-4201
SELECT + COUNT ( * ) + + 64 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT + 40 * - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4202
SELECT + 40 * - COUNT ( * ) AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT - 45 * - 66 * + + 60 * - CAST( - - ( ( - AVG ( DISTINCT + CAST( 73 AS SIGNED ) ) ) ) AS SIGNED ) AS col1
----
13008600

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 45 * - 66 * + + 60 * - CAST ( - - ( ( - AVG ( DISTINCT + CAST ( 73 AS INTEGER ) ) ) ) AS INTEGER ) AS col1
----
13008600

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL COUNT( + + 10 ) * 89 + 62 + + ( + 0 )
----
151

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL COUNT ( + + 10 ) * 89 + 62 + + ( + 0 )
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT - ( + COUNT( * ) ) AS col0, 38 AS col0
----
-1
38

skipif mysql # not compatible
query II rowsort label-4205
SELECT - ( + COUNT ( * ) ) AS col0, 38 AS col0
----
-1
38

query I rowsort
SELECT DISTINCT ( + 26 ) * + 28 + + + ( - ( 92 ) ) + - 30
----
606

query I rowsort
SELECT - ( - - CASE + 29 WHEN 99 THEN NULL WHEN 60 * 47 * + 18 + 82 - + 2 - + + 62 * 29 * - 73 THEN NULL ELSE + 21 END )
----
-21

query I rowsort
SELECT ALL - 90 * 72 + - 79
----
-6559

query I rowsort
SELECT 93 * - - 72 + 65
----
6761

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL 93 * 89 + - COUNT( ALL 10 )
----
8276

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL 93 * 89 + - COUNT ( ALL 10 )
----
8276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT ALL + CAST( 28 AS SIGNED ) + - 6
----
22

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + CAST ( 28 AS INTEGER ) + - 6
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4212
SELECT - 79 + - ( - CAST( NULL AS SIGNED ) ) + + + NULLIF ( - AVG ( + 17 ), - 44 - 40 + + CAST( - 79 AS SIGNED ) + - - 31 - + 97 * - + NULLIF ( - 20, - ( - + MIN( + - 76 ) ) ) ) - + 96 * - 68 + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT - 79 + - ( - CAST ( NULL AS INTEGER ) ) + + + NULLIF ( - AVG ( + 17 ), - 44 - 40 + + CAST ( - 79 AS INTEGER ) + - - 31 - + 97 * - + NULLIF ( - 20, - ( - + MIN ( + - 76 ) ) ) ) - + 96 * - 68 + 75
----
NULL

query I rowsort
SELECT - 56 + + 89 * - 43
----
-3883

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT - 1 + + - ( - 4 ) DIV + - 17 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4214
SELECT - 1 + + - ( - 4 ) / + - 17 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4215
SELECT ALL + 86 + - 27 AS col1, 78 + + ( 93 ) + - - CAST( NULL AS SIGNED ) col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-4215
SELECT ALL + 86 + - 27 AS col1, 78 + + ( 93 ) + - - CAST ( NULL AS INTEGER ) col2
----
59
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4216
SELECT + + 80 * + + 14 * + 79 - + - 37 * + - CAST( 73 AS DECIMAL ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT + + 80 * + + 14 * + 79 - + - 37 * + - CAST ( 73 AS REAL ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT DISTINCT COUNT( * ) * - + 18 * - 1 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT COUNT ( * ) * - + 18 * - 1 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL + COUNT( * ) - + CASE AVG ( + 67 ) WHEN + + 39 + - 14 THEN NULL WHEN - 75 - + 20 - + - 19 - 88 * + 96 * + COUNT( DISTINCT + + NULLIF ( - - 4, + 11 ) ) * 16 * + + 28 THEN + ( CAST( - + 93 AS SIGNED ) ) END + + + 13 * + 82 + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + COUNT ( * ) - + CASE AVG ( + 67 ) WHEN + + 39 + - 14 THEN NULL WHEN - 75 - + 20 - + - 19 - 88 * + 96 * + COUNT ( DISTINCT + + NULLIF ( - - 4, + 11 ) ) * 16 * + + 28 THEN + ( CAST ( - + 93 AS INTEGER ) ) END + + + 13 * + 82 + 57
----
NULL

query I rowsort
SELECT DISTINCT + 67 * 55 - - 84 * - 80 AS col0
----
-3035

query I rowsort
SELECT - + 79 * + 86
----
-6794

onlyif mysql # aggregate syntax: 
query II rowsort label-4221
SELECT ALL + + 85 * COUNT( * ) AS col0, MAX( DISTINCT + + 45 )
----
85
45

skipif mysql # not compatible
query II rowsort label-4221
SELECT ALL + + 85 * COUNT ( * ) AS col0, MAX ( DISTINCT + + 45 )
----
85
45

query I rowsort
SELECT DISTINCT + ( + 92 ) * + 76 AS col2
----
6992

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT - CASE COUNT( * ) WHEN + 46 + ( - 36 ) THEN 59 END * - 69 + + 91 - + - 32 / 57 - 4 * + ( ( + ( - + 86 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT - CASE COUNT ( * ) WHEN + 46 + ( - 36 ) THEN 59 END * - 69 + + 91 - + - 32 / 57 - 4 * + ( ( + ( - + 86 ) ) ) AS col2
----
NULL

query II rowsort
SELECT ALL - 44 AS col2, + 67
----
-44
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4225
SELECT SUM( ALL + 1 ) DIV + 82 * - + 38 * 78 * - COALESCE ( + + 68, - - 92 * - CAST( NULL AS SIGNED ) + + - 14 + 9 )
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT SUM ( ALL + 1 ) / + 82 * - + 38 * 78 * - COALESCE ( + + 68, - - 92 * - CAST ( NULL AS INTEGER ) + + - 14 + 9 )
----
0

query I rowsort
SELECT ALL + 60 * - CASE 97 WHEN + 83 THEN + 70 END * - 71
----
NULL

query I rowsort
SELECT ALL - 6 + + 66
----
60

query II rowsort
SELECT + 20 AS col1, 34 + + 34
----
20
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4229
SELECT + 21 DIV + 67 + - - 62 + NULLIF ( + 74, + + COUNT( * ) DIV COUNT( * ) - - + 99 + + - ( - 59 ) ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-4229
SELECT + 21 / + 67 + - - 62 + NULLIF ( + 74, + + COUNT ( * ) / COUNT ( * ) - - + 99 + + - ( - 59 ) ) AS col1
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4230
SELECT NULLIF ( - - 44, - 87 / + COUNT( * ) - + - CAST( NULL AS SIGNED ) * - 67 * - - COUNT( - + CASE + 59 WHEN - - 51 * - 55 * + 61 + ( - 24 ) + + 2 THEN - - 56 ELSE NULL END ) + + 67 ) + + 56
----
100

skipif mysql # not compatible
query I rowsort label-4230
SELECT NULLIF ( - - 44, - 87 / + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) * - 67 * - - COUNT ( - + CASE + 59 WHEN - - 51 * - 55 * + 61 + ( - 24 ) + + 2 THEN - - 56 ELSE NULL END ) + + 67 ) + + 56
----
100

query I rowsort
SELECT ALL 10 + 98 * ( + + 76 ) + - - 0 AS col0
----
7458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT DISTINCT - 88 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT - 88 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4233
SELECT ALL + 25 + + + ( + 63 ), 98 - - CASE - 91 WHEN - 20 THEN 92 + 86 + ( - CAST( + 94 AS SIGNED ) ) END AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-4233
SELECT ALL + 25 + + + ( + 63 ), 98 - - CASE - 91 WHEN - 20 THEN 92 + 86 + ( - CAST ( + 94 AS INTEGER ) ) END AS col1
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL MAX( 1 ) + + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL MAX ( 1 ) + + ( COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT CAST( NULL AS SIGNED ) / + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT CAST ( NULL AS INTEGER ) / + - 82
----
NULL

query I rowsort
SELECT COALESCE ( - 42, + 2 ) * - + ( - 57 ) AS col1
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL MAX( DISTINCT + 55 ) + 70 + - COALESCE ( - + 79, + 98 * 38 + 95 + - - SUM( ( 19 ) ) ) AS col1
----
204

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL MAX ( DISTINCT + 55 ) + 70 + - COALESCE ( - + 79, + 98 * 38 + 95 + - - SUM ( ( 19 ) ) ) AS col1
----
204

query II rowsort
SELECT ALL 5 AS col1, ( - 31 )
----
5
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL - CAST( NULL AS SIGNED ) * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL - CAST ( NULL AS INTEGER ) * - 11
----
NULL

query I rowsort
SELECT ALL 8 - + 80 AS col2
----
-72

query I rowsort
SELECT ALL 21 - + 63 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT COUNT( 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT COUNT ( 38 ) AS col0
----
1

query I rowsort
SELECT 93 + + 10
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT + 88 - + 3 * - ( + 89 ) + - COUNT( + + 85 ) - - - 20
----
334

skipif mysql # not compatible
query I rowsort label-4244
SELECT + 88 - + 3 * - ( + 89 ) + - COUNT ( + + 85 ) - - - 20
----
334

query I rowsort
SELECT 52 * - - 66 * + 71 * - 58 - + 92 AS col2
----
-14133068

query I rowsort
SELECT 70 * 96 col1
----
6720

query I rowsort
SELECT + 54 + - 34
----
20

query I rowsort
SELECT 62 + 81 + + 1 * - 62 + + 56 * + 13
----
809

query I rowsort
SELECT ALL 37 * + - 68
----
-2516

query I rowsort
SELECT ALL + ( + + 59 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT DISTINCT - COUNT( * ) * 38 * + 76 + + + COUNT( * ) * + 18
----
-2870

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT - COUNT ( * ) * 38 * + 76 + + + COUNT ( * ) * + 18
----
-2870

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT ALL - 97 DIV + 58 col2
----
-1

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - 97 / + 58 col2
----
-1

query I rowsort
SELECT ALL + 74 + 17
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT + 55 DIV - 18 + + 28
----
25

skipif mysql # not compatible
query I rowsort label-4254
SELECT + 55 / - 18 + + 28
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT - COALESCE ( - 60, + COUNT( * ), + 9 )
----
60

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT - COALESCE ( - 60, + COUNT ( * ), + 9 )
----
60

query II rowsort
SELECT ALL + 29 + - 44 AS col0, 49 * 58
----
-15
2842

query I rowsort
SELECT 99 * + 99
----
9801

query I rowsort
SELECT ALL + 39 + + 32 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL - SUM( DISTINCT + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - SUM ( DISTINCT + 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ( + 72 ) * - + 2 + + MAX( DISTINCT - 99 ) + COUNT( * ) AS col1
----
-242

skipif mysql # not compatible
query I rowsort label-4260
SELECT ( + 72 ) * - + 2 + + MAX ( DISTINCT - 99 ) + COUNT ( * ) AS col1
----
-242

query I rowsort
SELECT 88 * 45 * - - 54
----
213840

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT NULLIF ( - 18, - + MAX( + + 49 ) ) * + COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4262
SELECT NULLIF ( - 18, - + MAX ( + + 49 ) ) * + COUNT ( * ) AS col1
----
-18

query II rowsort
SELECT ALL - CASE - 5 WHEN - 2 * + - 2 THEN NULL ELSE - 2 END AS col1, + 46 col1
----
2
46

query I rowsort
SELECT 14 * 37
----
518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT ALL 14 / - CAST( NULL AS SIGNED ) * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL 14 / - CAST ( NULL AS INTEGER ) * + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT - - 58 * COALESCE ( + 56, + + 54 ) + - COUNT( * ) AS col0
----
3247

skipif mysql # not compatible
query I rowsort label-4266
SELECT - - 58 * COALESCE ( + 56, + + 54 ) + - COUNT ( * ) AS col0
----
3247

query I rowsort
SELECT 28 + 40 col0
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-4268
SELECT ALL - 8 DIV 58 AS col0, 18
----
0
18

skipif mysql # not compatible
query II rowsort label-4268
SELECT ALL - 8 / 58 AS col0, 18
----
0
18

query I rowsort
SELECT - 93 * 29
----
-2697

query I rowsort
SELECT ALL - NULLIF ( + 62, + 18 )
----
-62

query I rowsort
SELECT 5 + 33 + 9 AS col2
----
47

query I rowsort
SELECT DISTINCT - 17 * - CASE - 96 WHEN + - 40 THEN NULL WHEN - 85 THEN 42 WHEN - 52 THEN - 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT COUNT( * ) * 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4273
SELECT COUNT ( * ) * 77 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT + + 77 * + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT + + 77 * + COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT DISTINCT + ( ( - COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT + ( ( - COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT 77 * - - 43
----
3311

query I rowsort
SELECT DISTINCT + 90 + 27 - - 63 AS col1
----
180

query I rowsort
SELECT + 93 * + 8 AS col2
----
744

query I rowsort
SELECT ALL - 57 + + 59 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4280
SELECT ALL + COUNT( * ) / CAST( NULL AS SIGNED ) * + COALESCE ( ( - ( - 82 ) ), - 17 * 88 ) * + - CASE - 66 WHEN - 97 THEN + NULLIF ( + 87, 71 ) ELSE - 80 END + + CAST( NULL AS DECIMAL ) + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL + COUNT ( * ) / CAST ( NULL AS INTEGER ) * + COALESCE ( ( - ( - 82 ) ), - 17 * 88 ) * + - CASE - 66 WHEN - 97 THEN + NULLIF ( + 87, 71 ) ELSE - 80 END + + CAST ( NULL AS REAL ) + + 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT ALL 0 * - 74 + - 0 * + 48 + + CAST( + 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL 0 * - 74 + - 0 * + 48 + + CAST ( + 13 AS INTEGER )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT + SUM( - - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-4282
SELECT + SUM ( - - 97 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4283
SELECT + 99 DIV + + MAX( - 48 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4283
SELECT + 99 / + + MAX ( - 48 ) AS col1
----
-2

query I rowsort
SELECT - 5 * + 39 AS col0
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4285
SELECT + 17 * - COUNT( * ) * + + COUNT( * ) DIV + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4285
SELECT + 17 * - COUNT ( * ) * + + COUNT ( * ) / + COUNT ( * )
----
-17

query I rowsort
SELECT ALL + 24 * - 0 + - 46 + + 37 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT + 25 * 40 - + 85 * + COUNT( * )
----
915

skipif mysql # not compatible
query I rowsort label-4287
SELECT + 25 * 40 - + 85 * + COUNT ( * )
----
915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT DISTINCT 58 * 65 * COUNT( * ) DIV - 37 AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT 58 * 65 * COUNT ( * ) / - 37 AS col2
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-4289
SELECT + 69 DIV - 32 DIV 1
----
-2

skipif mysql # not compatible
query I rowsort label-4289
SELECT + 69 / - 32 / 1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4290
SELECT DISTINCT COUNT( * ) * - 83 * - 13, - 26 AS col0
----
1079
-26

skipif mysql # not compatible
query II rowsort label-4290
SELECT DISTINCT COUNT ( * ) * - 83 * - 13, - 26 AS col0
----
1079
-26

query I rowsort
SELECT COALESCE ( 84, + - 7 ) AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT ALL 50 * - ( + SUM( - + 13 ) ) * + - CAST( NULL AS SIGNED ) * - 82 * + 28 / CAST( + MIN( 66 ) AS SIGNED ) * - + 51 * 79 + + - COUNT( * ) + - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL 50 * - ( + SUM ( - + 13 ) ) * + - CAST ( NULL AS INTEGER ) * - 82 * + 28 / CAST ( + MIN ( 66 ) AS INTEGER ) * - + 51 * 79 + + - COUNT ( * ) + - - 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT COALESCE ( + 92, 98 - + + 77 * + 68 * - CAST( NULL AS SIGNED ), + 38 + - 16 + - + 37 )
----
92

skipif mysql # not compatible
query I rowsort label-4293
SELECT COALESCE ( + 92, 98 - + + 77 * + 68 * - CAST ( NULL AS INTEGER ), + 38 + - 16 + - + 37 )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4294
SELECT COUNT( * ) * - 6 * - 37 + 35 + + - 57, + 73 * - 74 col2
----
200
-5402

skipif mysql # not compatible
query II rowsort label-4294
SELECT COUNT ( * ) * - 6 * - 37 + 35 + + - 57, + 73 * - 74 col2
----
200
-5402

query I rowsort
SELECT - 39 * + 91 AS col2
----
-3549

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + COALESCE ( + COUNT( * ), - COUNT( * ), + 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4296
SELECT + COALESCE ( + COUNT ( * ), - COUNT ( * ), + 26 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - 57 + - + SUM( + ( + 55 ) )
----
-112

skipif mysql # not compatible
query I rowsort label-4297
SELECT - 57 + - + SUM ( + ( + 55 ) )
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - 87 * - + ( - 62 ) - NULLIF ( ( - 13 ), - NULLIF ( - - 65, 32 * + + 26 + 42 ) * - 78 - 72 + + 52 * + COUNT( * ) ) + + 28 - + COUNT( * ) * CASE + - 44 WHEN - - 56 THEN - COALESCE ( - + 18, - 18 + - 28 * COUNT( ALL + - 87 ) ) / - + 62 + - 20 ELSE NULL END * + 49 * - 2 - - 97 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT - 87 * - + ( - 62 ) - NULLIF ( ( - 13 ), - NULLIF ( - - 65, 32 * + + 26 + 42 ) * - 78 - 72 + + 52 * + COUNT ( * ) ) + + 28 - + COUNT ( * ) * CASE + - 44 WHEN - - 56 THEN - COALESCE ( - + 18, - 18 + - 28 * COUNT ( ALL + - 87 ) ) / - + 62 + - 20 ELSE NULL END * + 49 * - 2 - - 97 * 60
----
NULL

query I rowsort
SELECT ALL + ( - - 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT + ( - - COUNT( ALL COALESCE ( - + 81, + 23 + 53, - 54 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4300
SELECT + ( - - COUNT ( ALL COALESCE ( - + 81, + 23 + 53, - 54 ) ) )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4301
SELECT + 46, 14 DIV + 55 + 20 * + 58 AS col0
----
46
1160

skipif mysql # not compatible
query II rowsort label-4301
SELECT + 46, 14 / + 55 + 20 * + 58 AS col0
----
46
1160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4302
SELECT ALL - ( + COALESCE ( + ( + - 90 ), - ( - CASE 62 WHEN + 33 * + 45 * + + COALESCE ( 5, - + ( - - 43 ) * + AVG ( DISTINCT - - 3 ) - + 62 * + - 26 + 85 * - + ( 21 ) + - 48 + 72 DIV + 28 * - 91 - + NULLIF ( - COUNT( * ), - - NULLIF ( 87, + ( + - COUNT( * ) ) ) ) * - + 11 ) + - + 27 THEN + - 88 * + - 53 + - COUNT( * ) * - 40 WHEN 26 + - + 71 + + + COALESCE ( 24, - 10 ) - - + CAST( - 35 AS SIGNED ) THEN NULL WHEN - ( + CAST( NULL AS SIGNED ) ) + - ( - 21 + + 90 ) THEN NULL END ) DIV - 90 ) ) * 2
----
180

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - ( + COALESCE ( + ( + - 90 ), - ( - CASE 62 WHEN + 33 * + 45 * + + COALESCE ( 5, - + ( - - 43 ) * + AVG ( DISTINCT - - 3 ) - + 62 * + - 26 + 85 * - + ( 21 ) + - 48 + 72 / + 28 * - 91 - + NULLIF ( - COUNT ( * ), - - NULLIF ( 87, + ( + - COUNT ( * ) ) ) ) * - + 11 ) + - + 27 THEN + - 88 * + - 53 + - COUNT ( * ) * - 40 WHEN 26 + - + 71 + + + COALESCE ( 24, - 10 ) - - + CAST ( - 35 AS INTEGER ) THEN NULL WHEN - ( + CAST ( NULL AS INTEGER ) ) + - ( - 21 + + 90 ) THEN NULL END ) / - 90 ) ) * 2
----
180

query I rowsort
SELECT - 79 + - - 12
----
-67

query II rowsort
SELECT ALL + 59 AS col0, + 16 AS col2
----
59
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT - NULLIF ( - NULLIF ( COUNT( + - 91 ), 16 + - MAX( ALL + 28 ) ), - 23 + 25 ) * 16 * + - CAST( NULL AS SIGNED ) + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT - NULLIF ( - NULLIF ( COUNT ( + - 91 ), 16 + - MAX ( ALL + 28 ) ), - 23 + 25 ) * 16 * + - CAST ( NULL AS INTEGER ) + + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL + SUM( - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + SUM ( - 28 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4307
SELECT + + CASE + 41 WHEN - + 61 THEN NULLIF ( - COUNT( * ), + - 91 ) * + 47 * CASE - NULLIF ( - 4, + 62 ) WHEN + 14 THEN + 68 + - CAST( + COUNT( * ) AS SIGNED ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT + + CASE + 41 WHEN - + 61 THEN NULLIF ( - COUNT ( * ), + - 91 ) * + 47 * CASE - NULLIF ( - 4, + 62 ) WHEN + 14 THEN + 68 + - CAST ( + COUNT ( * ) AS INTEGER ) END ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 79 * 16 AS col0
----
-1264

query I rowsort
SELECT - - 68 * + 35
----
2380

query I rowsort
SELECT - + 57 + + 90 * 6 + + 25 AS col0
----
508

query I rowsort
SELECT DISTINCT - - 54 * + 54
----
2916

onlyif mysql # aggregate syntax: 
query II rowsort label-4312
SELECT - 11, COUNT( * ) AS col1
----
-11
1

skipif mysql # not compatible
query II rowsort label-4312
SELECT - 11, COUNT ( * ) AS col1
----
-11
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT ALL COALESCE ( 83, ( + - CAST( NULL AS SIGNED ) ) ) col0
----
83

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL COALESCE ( 83, ( + - CAST ( NULL AS INTEGER ) ) ) col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT + AVG ( ALL 4 ) * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT + AVG ( ALL 4 ) * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4315
SELECT - COALESCE ( 93, + 70 - - 83, - CASE - 60 WHEN + ( + 35 ) THEN - COUNT( * ) WHEN 40 DIV - AVG ( ALL + 40 ) * - 35 THEN NULL WHEN + ( - COUNT( * ) ) THEN NULL WHEN + - 11 THEN NULL END + - 49 ) - - 54 + - + 57 - + 17 DIV 72 * - 55 * - 19
----
-96

skipif mysql # not compatible
query I rowsort label-4315
SELECT - COALESCE ( 93, + 70 - - 83, - CASE - 60 WHEN + ( + 35 ) THEN - COUNT ( * ) WHEN 40 / - AVG ( ALL + 40 ) * - 35 THEN NULL WHEN + ( - COUNT ( * ) ) THEN NULL WHEN + - 11 THEN NULL END + - 49 ) - - 54 + - + 57 - + 17 / 72 * - 55 * - 19
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL + COUNT( * ) + - 65 * + 10 * + 74
----
-48099

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + COUNT ( * ) + - 65 * + 10 * + 74
----
-48099

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT - - 16 - + - 29 DIV 67 * + + 59 * - + 94 * - 51
----
16

skipif mysql # not compatible
query I rowsort label-4317
SELECT - - 16 - + - 29 / 67 * + + 59 * - + 94 * - 51
----
16

query I rowsort
SELECT DISTINCT + + 49 + + 66
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL - COUNT( * ) * + - 39
----
39

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - COUNT ( * ) * + - 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL + 61 + + 76 + COUNT( * ) * - COUNT( * ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + 61 + + 76 + COUNT ( * ) * - COUNT ( * ) AS col1
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT - + 56 + + CASE - 59 WHEN - - 70 + - SUM( - 40 ) THEN + - 35 ELSE NULL END + + 75 * + - 51 * + + 74 col2, 99 + + ( 53 )
----
NULL
152

skipif mysql # not compatible
query II rowsort label-4321
SELECT - + 56 + + CASE - 59 WHEN - - 70 + - SUM ( - 40 ) THEN + - 35 ELSE NULL END + + 75 * + - 51 * + + 74 col2, 99 + + ( 53 )
----
NULL
152

query I rowsort
SELECT - - 81 + - - 11
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT + 86 - + 19 DIV + 7
----
84

skipif mysql # not compatible
query I rowsort label-4323
SELECT + 86 - + 19 / + 7
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT ALL + 70 * - + 49 * + 13 + COUNT( * ) * - 31 col0, + ( + 67 ) col2
----
-44621
67

skipif mysql # not compatible
query II rowsort label-4324
SELECT ALL + 70 * - + 49 * + 13 + COUNT ( * ) * - 31 col0, + ( + 67 ) col2
----
-44621
67

query I rowsort
SELECT ALL - 12 * - 99 - - + 48 + ( 29 ) + + 42 * - 84
----
-2263

query I rowsort
SELECT + 0 - + 72
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4327
SELECT DISTINCT 53 + - CAST( NULL AS SIGNED ) - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT 53 + - CAST ( NULL AS INTEGER ) - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL 11 + NULLIF ( - - 79, 13 / + 44 * + + COUNT( * ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL 11 + NULLIF ( - - 79, 13 / + 44 * + + COUNT ( * ) ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4329
SELECT + NULLIF ( 95, - + 92 ) + + 14 + - MIN( DISTINCT 74 ) + 24 DIV - CASE 95 WHEN + + 29 THEN + COALESCE ( - + 36, + + AVG ( DISTINCT + 29 ) * 82 ) * CAST( - 78 AS SIGNED ) + MAX( ALL - 41 ) + 39 * CAST( NULL AS SIGNED ) * - - CASE + CASE ( + 24 ) WHEN - - 46 THEN NULL WHEN - CAST( - - 99 AS SIGNED ) THEN + - 75 + + 49 + - 48 + - 64 END WHEN + 76 - + + 33 DIV + 13 + - + 70 THEN - 35 DIV 88 ELSE NULL END * - 27 * - - 60 WHEN + - 47 THEN NULL ELSE - 80 END * - + 96 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4329
SELECT + NULLIF ( 95, - + 92 ) + + 14 + - MIN ( DISTINCT 74 ) + 24 / - CASE 95 WHEN + + 29 THEN + COALESCE ( - + 36, + + AVG ( DISTINCT + 29 ) * 82 ) * CAST ( - 78 AS INTEGER ) + MAX ( ALL - 41 ) + 39 * CAST ( NULL AS INTEGER ) * - - CASE + CASE ( + 24 ) WHEN - - 46 THEN NULL WHEN - CAST ( - - 99 AS INTEGER ) THEN + - 75 + + 49 + - 48 + - 64 END WHEN + 76 - + + 33 / + 13 + - + 70 THEN - 35 / 88 ELSE NULL END * - 27 * - - 60 WHEN + - 47 THEN NULL ELSE - 80 END * - + 96 AS col0
----
35

query II rowsort
SELECT ALL - 38 * - - 83 AS col2, + 91 * - + 80 * - - 43 AS col2
----
-3154
-313040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT DISTINCT CAST( - 77 AS SIGNED ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT CAST ( - 77 AS INTEGER ) AS col2
----
-77

query I rowsort
SELECT DISTINCT - 29 * - 51 col1
----
1479

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT ALL 77 DIV - 88 - - + 56
----
56

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL 77 / - 88 - - + 56
----
56

query II rowsort
SELECT - 57 * + 99 col1, - 61
----
-5643
-61

query II rowsort
SELECT + 63 * - 66 col2, + 80
----
-4158
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT CAST( + - 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-4336
SELECT CAST ( + - 53 AS INTEGER )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4337
SELECT + COALESCE ( - MIN( - NULLIF ( + 35, + + 99 ) ), 61 DIV 37 * 86 + 53 )
----
35

skipif mysql # not compatible
query I rowsort label-4337
SELECT + COALESCE ( - MIN ( - NULLIF ( + 35, + + 99 ) ), 61 / 37 * 86 + 53 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT + 27 * 22 DIV - + 40 col2
----
-14

skipif mysql # not compatible
query I rowsort label-4338
SELECT + 27 * 22 / - + 40 col2
----
-14

query I rowsort
SELECT - 33 * 83 col2
----
-2739

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT COUNT( * ) * + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT COUNT ( * ) * + 44 AS col0
----
44

query I rowsort
SELECT + 97 * 63
----
6111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4342
SELECT ALL COUNT( * ) * - CASE + - 32 WHEN - - 48 THEN + 37 DIV + - 40 + - - CAST( + SUM( + 59 ) AS SIGNED ) - + 22 * 12 + + 42 WHEN + 45 THEN NULL WHEN + CASE + 52 WHEN COUNT( * ) THEN 53 * + 38 + - 79 END THEN NULL ELSE - - 84 END
----
-84

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL COUNT ( * ) * - CASE + - 32 WHEN - - 48 THEN + 37 / + - 40 + - - CAST ( + SUM ( + 59 ) AS INTEGER ) - + 22 * 12 + + 42 WHEN + 45 THEN NULL WHEN + CASE + 52 WHEN COUNT ( * ) THEN 53 * + 38 + - 79 END THEN NULL ELSE - - 84 END
----
-84

query II rowsort
SELECT + ( + + 47 ), ( 59 ) AS col2
----
47
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4344
SELECT - 32 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-4344
SELECT - 32 / - 84
----
0

query I rowsort
SELECT - 41 - - 4
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4346
SELECT ALL + - 15, 98 + + NULLIF ( - - CAST( NULL AS SIGNED ), - - 63 ) AS col0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-4346
SELECT ALL + - 15, 98 + + NULLIF ( - - CAST ( NULL AS INTEGER ), - - 63 ) AS col0
----
-15
NULL

query I rowsort
SELECT ALL - 92 * - 88 + - 60 AS col0
----
8036

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT + - 20 + 73 + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4348
SELECT + - 20 + 73 + + COUNT ( * )
----
54

query I rowsort
SELECT - + 45 + 60 + - ( - 6 ) + - 13
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4350
SELECT - - 87 - - 81 DIV COUNT( - 51 ) AS col2
----
168

skipif mysql # not compatible
query I rowsort label-4350
SELECT - - 87 - - 81 / COUNT ( - 51 ) AS col2
----
168

query I rowsort
SELECT ALL - - 76 * - + 7
----
-532

query I rowsort
SELECT ALL - 90 + + - 40 * + + 57 + - 75
----
-2445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4353
SELECT 48 * + 78 * - COUNT( - - 1 ) * - + 25 + COUNT( * ) + 83 + - CASE - CAST( NULL AS SIGNED ) WHEN ( - COUNT( * ) ) THEN NULL WHEN - MAX( DISTINCT - 75 ) THEN + 15 * + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT 48 * + 78 * - COUNT ( - - 1 ) * - + 25 + COUNT ( * ) + 83 + - CASE - CAST ( NULL AS INTEGER ) WHEN ( - COUNT ( * ) ) THEN NULL WHEN - MAX ( DISTINCT - 75 ) THEN + 15 * + 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT DISTINCT - 74 * + 92 + + + 16 * - + 71 + - COUNT( * )
----
-7945

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - 74 * + 92 + + + 16 * - + 71 + - COUNT ( * )
----
-7945

onlyif mysql # aggregate syntax: 
query II rowsort label-4355
SELECT - 63 AS col1, COUNT( * ) AS col0
----
-63
1

skipif mysql # not compatible
query II rowsort label-4355
SELECT - 63 AS col1, COUNT ( * ) AS col0
----
-63
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT 37 + - 41 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT 37 + - 41 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4357
SELECT ALL + MIN( ALL + 99 ) AS col2, 63 DIV 6 * - ( 13 ) * 16 AS col1
----
99
-2080

skipif mysql # not compatible
query II rowsort label-4357
SELECT ALL + MIN ( ALL + 99 ) AS col2, 63 / 6 * - ( 13 ) * 16 AS col1
----
99
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + COUNT( * ) * + 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4358
SELECT + COUNT ( * ) * + 44 AS col1
----
44

query II rowsort
SELECT - 64 AS col2, - 95
----
-64
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4360
SELECT ALL - + SUM( DISTINCT 99 ) + 29 * - - SUM( ALL - 29 ) * - - 86 + + + COALESCE ( - 46, + AVG ( ALL - 85 ) / + + CAST( - 31 AS SIGNED ), + 46 ) + + + 92 * + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) + + 10 - 22 AS col0, 89 + - 1 + COUNT( * )
----
NULL
-11
89

skipif mysql # not compatible
query III rowsort label-4360
SELECT ALL - + SUM ( DISTINCT 99 ) + 29 * - - SUM ( ALL - 29 ) * - - 86 + + + COALESCE ( - 46, + AVG ( ALL - 85 ) / + + CAST ( - 31 AS INTEGER ), + 46 ) + + + 92 * + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + + 10 - 22 AS col0, 89 + - 1 + COUNT ( * )
----
NULL
-11
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT 89 DIV - + ( 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-4361
SELECT 89 / - + ( 86 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4362
SELECT ALL - 43 - - 9 - 35, CAST( NULL AS SIGNED ) AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-4362
SELECT ALL - 43 - - 9 - 35, CAST ( NULL AS INTEGER ) AS col1
----
-69
NULL

query I rowsort
SELECT ALL COALESCE ( + 73, - 23, 90 ) * - 71 AS col1
----
-5183

onlyif mysql # DIV for integer division: 
query II rowsort label-4364
SELECT ALL + 80 DIV - 21 col2, + 36
----
-3
36

skipif mysql # not compatible
query II rowsort label-4364
SELECT ALL + 80 / - 21 col2, + 36
----
-3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT 79 - + COUNT( ALL - 24 )
----
78

skipif mysql # not compatible
query I rowsort label-4365
SELECT 79 - + COUNT ( ALL - 24 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4366
SELECT DISTINCT - COUNT( ALL + CAST( NULL AS DECIMAL ) ) * 25
----
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT - COUNT ( ALL + CAST ( NULL AS REAL ) ) * 25
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4367
SELECT COUNT( * ) DIV - ( 31 )
----
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT COUNT ( * ) / - ( 31 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4368
SELECT ( 98 ) * - 24 * + MAX( - 12 ) AS col0, 28 AS col0
----
28224
28

skipif mysql # not compatible
query II rowsort label-4368
SELECT ( 98 ) * - 24 * + MAX ( - 12 ) AS col0, 28 AS col0
----
28224
28

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4369
SELECT 14 * + CAST( NULL AS DECIMAL ) AS col0, 61 AS col1
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4369
SELECT 14 * + CAST ( NULL AS REAL ) AS col0, 61 AS col1
----
NULL
61

query I rowsort
SELECT ALL - 8 * + - 98 * ( 65 ) AS col2
----
50960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT DISTINCT - CAST( - 85 AS SIGNED ) col2
----
85

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT - CAST ( - 85 AS INTEGER ) col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4372
SELECT DISTINCT - 90 * - - 54 AS col2, + 79 + 37 * MAX( DISTINCT + 96 ) + + 80 + + 10 + 82 * + COUNT( - - 45 ) * + + COALESCE ( - CASE 86 WHEN COUNT( * ) THEN NULL WHEN + - 82 + + 2 / + + 34 THEN + CAST( 79 AS SIGNED ) WHEN + 47 * + 86 THEN NULL END, ( 5 ) )
----
-4860
4131

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT - 90 * - - 54 AS col2, + 79 + 37 * MAX ( DISTINCT + 96 ) + + 80 + + 10 + 82 * + COUNT ( - - 45 ) * + + COALESCE ( - CASE 86 WHEN COUNT ( * ) THEN NULL WHEN + - 82 + + 2 / + + 34 THEN + CAST ( 79 AS INTEGER ) WHEN + 47 * + 86 THEN NULL END, ( 5 ) )
----
-4860
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT 81 * COUNT( * ) + ( 11 )
----
92

skipif mysql # not compatible
query I rowsort label-4373
SELECT 81 * COUNT ( * ) + ( 11 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT - 21 * + COUNT( DISTINCT - 1 ) + 62
----
41

skipif mysql # not compatible
query I rowsort label-4374
SELECT - 21 * + COUNT ( DISTINCT - 1 ) + 62
----
41

query I rowsort
SELECT 14 * - + 34 AS col2
----
-476

query I rowsort
SELECT + 38 + + 96 * + 82
----
7910

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + SUM( DISTINCT 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4377
SELECT + SUM ( DISTINCT 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL + 55 + + 74 * 82 + + COUNT( ALL 81 )
----
6124

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + 55 + + 74 * 82 + + COUNT ( ALL 81 )
----
6124

query I rowsort
SELECT ALL - 97 + + + 53 AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT CAST( NULLIF ( - 2, - 60 ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4380
SELECT CAST ( NULLIF ( - 2, - 60 ) AS INTEGER )
----
-2

query I rowsort
SELECT DISTINCT + 53 + - - 51 + + 74 + - + ( - 79 ) * + 5
----
573

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT DISTINCT - COUNT( * ) + ( MAX( DISTINCT 32 ) ) * + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT - COUNT ( * ) + ( MAX ( DISTINCT 32 ) ) * + + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4383
SELECT - 71 + + 92, ( + COUNT( * ) ) * - COUNT( * ) * - 8 * - 73 AS col1
----
21
-584

skipif mysql # not compatible
query II rowsort label-4383
SELECT - 71 + + 92, ( + COUNT ( * ) ) * - COUNT ( * ) * - 8 * - 73 AS col1
----
21
-584

query I rowsort
SELECT DISTINCT - ( - + 93 )
----
93

query I rowsort
SELECT 62 + 64 + 37 * + 46 AS col0
----
1828

query I rowsort
SELECT 21 * + + ( - + 94 )
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT CASE + + MAX( 43 ) WHEN - 48 + - 16 - + 22 + - 67 + + 81 * + - 72 THEN 62 + - ( ( ( - COUNT( * ) ) ) ) ELSE NULL END / + + ( - MAX( ALL + - 98 ) ) + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT CASE + + MAX ( 43 ) WHEN - 48 + - 16 - + 22 + - 67 + + 81 * + - 72 THEN 62 + - ( ( ( - COUNT ( * ) ) ) ) ELSE NULL END / + + ( - MAX ( ALL + - 98 ) ) + 39
----
NULL

query I rowsort
SELECT ALL - 79 + - 15 + - + 35 + - + 98
----
-227

query I rowsort
SELECT 31 - - 9 * 29 AS col1
----
292

query I rowsort
SELECT ALL + 29 * + - 75 AS col1
----
-2175

query I rowsort
SELECT 78 + 22
----
100

query I rowsort
SELECT ALL 76 - - + 87 AS col1
----
163

query I rowsort
SELECT 5 * - 58
----
-290

query II rowsort
SELECT - 10, 82 AS col0
----
-10
82

query I rowsort
SELECT 79 + 56
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT ALL 14 AS col2, 9 * - + COUNT( * ) * + - 54 * - 25 * 43 * - 20 * - 24
----
14
-250776000

skipif mysql # not compatible
query II rowsort label-4396
SELECT ALL 14 AS col2, 9 * - + COUNT ( * ) * + - 54 * - 25 * 43 * - 20 * - 24
----
14
-250776000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL + 84 * + CAST( 76 AS SIGNED ) AS col0
----
6384

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL + 84 * + CAST ( 76 AS INTEGER ) AS col0
----
6384

query I rowsort
SELECT ( - - NULLIF ( + 28, + 90 / + ( 99 ) - - 68 ) ) + 34
----
62

query I rowsort
SELECT 24 - + + 47 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ( - - COUNT( * ) ) * - 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4400
SELECT ( - - COUNT ( * ) ) * - 28 AS col1
----
-28

query I rowsort
SELECT 98 + - + 99 AS col0
----
-1

query I rowsort
SELECT 34 - - 33 + + 43
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-4403
SELECT ALL 23 AS col2, - COUNT( * ) + + 58 AS col0
----
23
57

skipif mysql # not compatible
query II rowsort label-4403
SELECT ALL 23 AS col2, - COUNT ( * ) + + 58 AS col0
----
23
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4404
SELECT 8 * - CAST( + 59 AS SIGNED ) AS col1
----
-472

skipif mysql # not compatible
query I rowsort label-4404
SELECT 8 * - CAST ( + 59 AS INTEGER ) AS col1
----
-472

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL SUM( ALL + - 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL SUM ( ALL + - 31 ) AS col1
----
-31

query I rowsort
SELECT 14 + - 88 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL COUNT( - + ( + + 80 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL COUNT ( - + ( + + 80 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT 24 + NULLIF ( + 86, 52 ) * + COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-4408
SELECT 24 + NULLIF ( + 86, 52 ) * + COUNT ( * )
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL + COALESCE ( + 96, - - 19, + 21 ) DIV - + 49
----
-1

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + COALESCE ( + 96, - - 19, + 21 ) / - + 49
----
-1

query I rowsort
SELECT 33 + + + 41 + + - 26 * - 25 + + 3
----
727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4411
SELECT ALL - ( MAX( ALL - 90 ) ), 98 * CAST( NULL AS SIGNED ) AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4411
SELECT ALL - ( MAX ( ALL - 90 ) ), 98 * CAST ( NULL AS INTEGER ) AS col0
----
90
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4412
SELECT 22 DIV COUNT( * ) * - - 73 + - 20
----
1586

skipif mysql # not compatible
query I rowsort label-4412
SELECT 22 / COUNT ( * ) * - - 73 + - 20
----
1586

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4413
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / + NULLIF ( 60, + + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT + CAST ( NULL AS REAL ) / + NULLIF ( 60, + + 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - MIN( DISTINCT - 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - MIN ( DISTINCT - 4 ) AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT 40 DIV - 94 + - 17 + + + 8 DIV 35 DIV 79 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4415
SELECT 40 / - 94 + - 17 + + + 8 / 35 / 79 AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT 29 DIV - 79 * - - 91 * + + 59
----
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT 29 / - 79 * - - 91 * + + 59
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4417
SELECT 65 DIV COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4417
SELECT 65 / COUNT ( * ) AS col2
----
65

query I rowsort
SELECT ALL + 50 * - - 18
----
900

query II rowsort
SELECT + 18, 28 AS col0
----
18
28

onlyif mysql # DIV for integer division: 
query II rowsort label-4420
SELECT - 36 * + + 99 DIV 69 DIV + - 82 AS col1, 38
----
0
38

skipif mysql # not compatible
query II rowsort label-4420
SELECT - 36 * + + 99 / 69 / + - 82 AS col1, 38
----
0
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL 97 * 79 + + NULLIF ( - 87, ( - 88 ) + - 54 ) + - + ( - 69 ) * - 71 - + MAX( 67 ) + - 38 * 69 * - 20 * + - 92 AS col0
----
-4821870

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL 97 * 79 + + NULLIF ( - 87, ( - 88 ) + - 54 ) + - + ( - 69 ) * - 71 - + MAX ( 67 ) + - 38 * 69 * - 20 * + - 92 AS col0
----
-4821870

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT + 3 + SUM( 34 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4422
SELECT + 3 + SUM ( 34 ) AS col1
----
37

query I rowsort
SELECT DISTINCT 59 * - 16 + + + 49 + - 82
----
-977

query II rowsort
SELECT DISTINCT + - 17, - 31 AS col1
----
-17
-31

query I rowsort
SELECT ALL + 24 * 15
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT + CASE + COUNT( DISTINCT + 58 ) WHEN - - COUNT( * ) THEN - 90 ELSE NULL END
----
-90

skipif mysql # not compatible
query I rowsort label-4426
SELECT + CASE + COUNT ( DISTINCT + 58 ) WHEN - - COUNT ( * ) THEN - 90 ELSE NULL END
----
-90

query I rowsort
SELECT DISTINCT - 49 - - - 38 - - + 84 * 10 * ( 56 ) + - 74 + + 46
----
46925

query I rowsort
SELECT DISTINCT - 91 * + + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + 32 + - CASE - 92 WHEN + - 18 + + 14 + + - 59 THEN - 54 * - + 3 ELSE + + 68 + + COUNT( * ) END - - 92 + + + 37 + - COUNT( * ) + 30 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-4429
SELECT + 32 + - CASE - 92 WHEN + - 18 + + 14 + + - 59 THEN - 54 * - + 3 ELSE + + 68 + + COUNT ( * ) END - - 92 + + + 37 + - COUNT ( * ) + 30 AS col0
----
121

query I rowsort
SELECT ALL - 47 * 71
----
-3337

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL - 42 - + CASE - ( COUNT( * ) ) WHEN + 94 * 24 * - 27 - 68 THEN NULL ELSE + + 2 END * + - 55
----
68

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - 42 - + CASE - ( COUNT ( * ) ) WHEN + 94 * 24 * - 27 - 68 THEN NULL ELSE + + 2 END * + - 55
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4432
SELECT - SUM( DISTINCT + 43 ), 62 AS col1
----
-43
62

skipif mysql # not compatible
query II rowsort label-4432
SELECT - SUM ( DISTINCT + 43 ), 62 AS col1
----
-43
62

query I rowsort
SELECT + 23 * + 3 AS col1
----
69

query I rowsort
SELECT - 16 + - - 96 AS col2
----
80

query I rowsort
SELECT + 28 * 62
----
1736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4436
SELECT + 87 DIV + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4436
SELECT + 87 / + COUNT ( * ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT + 35 + + CASE - 21 WHEN + 27 - + 41 + 26 * + - 66 / + ( - 57 ) + 16 THEN 68 + - 6 + + 56 END + - 89 / COUNT( * ) + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + 35 + + CASE - 21 WHEN + 27 - + 41 + 26 * + - 66 / + ( - 57 ) + 16 THEN 68 + - 6 + + 56 END + - 89 / COUNT ( * ) + - 35
----
NULL

query I rowsort
SELECT ALL - 90 + + 67 + + 73 + 59 * - 42
----
-2428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4439
SELECT + 21 - + 77 * CASE - 17 WHEN + - 95 THEN NULL WHEN + MAX( + 52 ) - + - CAST( NULL AS SIGNED ) THEN - 6 * + 9 * + + 69 + 58 END AS col2, + 99 AS col0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-4439
SELECT + 21 - + 77 * CASE - 17 WHEN + - 95 THEN NULL WHEN + MAX ( + 52 ) - + - CAST ( NULL AS INTEGER ) THEN - 6 * + 9 * + + 69 + 58 END AS col2, + 99 AS col0
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + COUNT( ALL 34 ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-4440
SELECT + COUNT ( ALL 34 ) * 74
----
74

query I rowsort
SELECT - ( + 62 ) * + 35
----
-2170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT ALL 7 DIV + 21 + + - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL 7 / + 21 + + - ( + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT CAST( + 22 AS SIGNED ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4443
SELECT CAST ( + 22 AS INTEGER ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4444
SELECT ALL 20 * 3 AS col0, CAST( ( + 22 ) AS SIGNED ) * - + 20 * 66
----
60
-29040

skipif mysql # not compatible
query II rowsort label-4444
SELECT ALL 20 * 3 AS col0, CAST ( ( + 22 ) AS INTEGER ) * - + 20 * 66
----
60
-29040

query I rowsort
SELECT - 26 * 40 - ( 92 ) + - 52 * 89 AS col0
----
-5760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4446
SELECT + ( + 91 ) * COALESCE ( + COALESCE ( - + 48, COALESCE ( - + COUNT( + - COALESCE ( 1, + - 65 ) ), + + ( 31 ), - + 10 ) DIV - 68 ), - + COUNT( * ) ) - - - 98 AS col1
----
-4466

skipif mysql # not compatible
query I rowsort label-4446
SELECT + ( + 91 ) * COALESCE ( + COALESCE ( - + 48, COALESCE ( - + COUNT ( + - COALESCE ( 1, + - 65 ) ), + + ( 31 ), - + 10 ) / - 68 ), - + COUNT ( * ) ) - - - 98 AS col1
----
-4466

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT ALL + ( - - ( ( - 62 ) ) ) * + 76 + - 18 * - 17 + 92 DIV - 97 + - 20 + - 65 + - 96 - - - 2 AS col1
----
-4589

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + ( - - ( ( - 62 ) ) ) * + 76 + - 18 * - 17 + 92 / - 97 + - 20 + - 65 + - 96 - - - 2 AS col1
----
-4589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4448
SELECT + COALESCE ( + - 30, MAX( + 48 ), - - 62 DIV 78 + + 62 + 89 * + 44 ) * - + MAX( DISTINCT - - 41 )
----
1230

skipif mysql # not compatible
query I rowsort label-4448
SELECT + COALESCE ( + - 30, MAX ( + 48 ), - - 62 / 78 + + 62 + 89 * + 44 ) * - + MAX ( DISTINCT - - 41 )
----
1230

query II rowsort
SELECT - - 8 * - - 75 AS col1, - 93 AS col2
----
600
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4450
SELECT ALL - COALESCE ( 54, - 36 * - 70 * CAST( NULL AS SIGNED ) DIV 24 + + ( + COUNT( + 4 ) ) + + 94 * + COUNT( * ) * - 4 * 39 * + COUNT( * ) ) DIV - + 46 - 9
----
-8

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - COALESCE ( 54, - 36 * - 70 * CAST ( NULL AS INTEGER ) / 24 + + ( + COUNT ( + 4 ) ) + + 94 * + COUNT ( * ) * - 4 * 39 * + COUNT ( * ) ) / - + 46 - 9
----
-8

query I rowsort
SELECT DISTINCT + 14 * 33 * + - 78 - + 57 + + + 51 * + NULLIF ( 69, + 86 ) AS col0
----
-32574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4452
SELECT ALL 40 * - 48 * 41 + - CAST( + COUNT( * ) AS SIGNED ) - 84 * SUM( + 95 ) - + 17 AS col0, 64 + - COUNT( * ) + - 1 * 73 + 3
----
-86718
-7

skipif mysql # not compatible
query II rowsort label-4452
SELECT ALL 40 * - 48 * 41 + - CAST ( + COUNT ( * ) AS INTEGER ) - 84 * SUM ( + 95 ) - + 17 AS col0, 64 + - COUNT ( * ) + - 1 * 73 + 3
----
-86718
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL - 53 * + COUNT( * ) * + ( - + 46 ) - + 85 + + COUNT( * ) * 7 AS col0
----
2360

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - 53 * + COUNT ( * ) * + ( - + 46 ) - + 85 + + COUNT ( * ) * 7 AS col0
----
2360

query I rowsort
SELECT ALL - 42 * + - ( - 15 )
----
-630

query I rowsort
SELECT DISTINCT + ( - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT - SUM( ALL - - 57 ) * + 28 AS col2
----
-1596

skipif mysql # not compatible
query I rowsort label-4456
SELECT - SUM ( ALL - - 57 ) * + 28 AS col2
----
-1596

query I rowsort
SELECT ALL + - 33 col1
----
-33

query I rowsort
SELECT ALL + 51 * - 44
----
-2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4459
SELECT + + NULLIF ( - CAST( NULL AS SIGNED ), + - ( + + 36 ) * - + COUNT( * ) * - COUNT( * ) * + 97 + 49 * + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT + + NULLIF ( - CAST ( NULL AS INTEGER ), + - ( + + 36 ) * - + COUNT ( * ) * - COUNT ( * ) * + 97 + 49 * + 26 )
----
NULL

query I rowsort
SELECT + - 7 * - + 76 * + + 95 AS col2
----
50540

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT - - SUM( - - 28 ) + NULLIF ( - 57, + 43 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4461
SELECT - - SUM ( - - 28 ) + NULLIF ( - 57, + 43 ) AS col1
----
-29

query I rowsort
SELECT + ( - - 40 ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT - CAST( 79 AS SIGNED ) + + - 64 + 37 * + 45 * + 5 + - 21 + - + 84
----
8077

skipif mysql # not compatible
query I rowsort label-4463
SELECT - CAST ( 79 AS INTEGER ) + + - 64 + 37 * + 45 * + 5 + - 21 + - + 84
----
8077

query I rowsort
SELECT + 99 * + 85
----
8415

query I rowsort
SELECT - 11 * - 5 * - + 68
----
-3740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4466
SELECT ALL 23 / CASE 81 WHEN + - COALESCE ( - - CAST( - - 87 AS SIGNED ), - 26 - + - SUM( DISTINCT - + 29 ) ) THEN + - 32 * + - MAX( ALL - 18 ) + - 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL 23 / CASE 81 WHEN + - COALESCE ( - - CAST ( - - 87 AS INTEGER ), - 26 - + - SUM ( DISTINCT - + 29 ) ) THEN + - 32 * + - MAX ( ALL - 18 ) + - 34 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 40 * 63 AS col0
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4468
SELECT ALL 75 + - 82 + - ( - CAST( COUNT( * ) AS SIGNED ) ) + + + COUNT( ALL + 78 ) - + 94 * 10 + + - 17 DIV 52 + 7 DIV COUNT( * ) AS col2
----
-938

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL 75 + - 82 + - ( - CAST ( COUNT ( * ) AS INTEGER ) ) + + + COUNT ( ALL + 78 ) - + 94 * 10 + + - 17 / 52 + 7 / COUNT ( * ) AS col2
----
-938

query II rowsort
SELECT + 81 + 87 - 44 + + 0 * - - 96, + 96 AS col1
----
124
96

query I rowsort
SELECT + 57 + + 64
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT DISTINCT 79 col0, COUNT( * ) * - + ( + COUNT( * ) ) + 18 col2
----
79
17

skipif mysql # not compatible
query II rowsort label-4471
SELECT DISTINCT 79 col0, COUNT ( * ) * - + ( + COUNT ( * ) ) + 18 col2
----
79
17

query I rowsort
SELECT ALL 39 + + - 41 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4473
SELECT - 45 + - ( 12 ) - - - 84 DIV 62 * 39 + - 22 DIV + 23 * 44 + 85 DIV 87 col1
----
-96

skipif mysql # not compatible
query I rowsort label-4473
SELECT - 45 + - ( 12 ) - - - 84 / 62 * 39 + - 22 / + 23 * 44 + 85 / 87 col1
----
-96

query I rowsort
SELECT + 51 - 63 + + 37 + - + 89
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4475
SELECT ALL CAST( NULL AS DECIMAL ) + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL CAST ( NULL AS REAL ) + 15
----
NULL

query I rowsort
SELECT + 97 + - + 51 AS col2
----
46

query I rowsort
SELECT ALL 9 + 15
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + 15 * - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-4478
SELECT + 15 * - + COUNT ( * )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT DISTINCT 26 DIV + + 5
----
5

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT 26 / + + 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT COUNT( * ) + - + 78 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT COUNT ( * ) + - + 78 AS col1
----
-77

query I rowsort
SELECT ALL 61 + 85
----
146

query I rowsort
SELECT 68 + + 29
----
97

query I rowsort
SELECT ALL - 87 * - 18
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL 25 - - 30 * - COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL 25 - - 30 * - COUNT ( * ) AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT + 33 DIV + 5 + 30 * + 12 col0
----
366

skipif mysql # not compatible
query I rowsort label-4485
SELECT + 33 / + 5 + 30 * + 12 col0
----
366

query I rowsort
SELECT ALL 19 * - 81 AS col2
----
-1539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT ALL + COUNT( * ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL - NULLIF ( - SUM( 90 ), + 23 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - NULLIF ( - SUM ( 90 ), + 23 ) AS col1
----
90

query I rowsort
SELECT DISTINCT - 43 - 0 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT 99 + - 73 * + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4490
SELECT 99 + - 73 * + COUNT ( * )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT DISTINCT - CAST( 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT - CAST ( 59 AS INTEGER )
----
-59

query I rowsort
SELECT NULLIF ( - 3, 97 ) * + 69 + 42
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-4493
SELECT DISTINCT - COALESCE ( + 5, 98 ) DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT - COALESCE ( + 5, 98 ) / + 32
----
0

query I rowsort
SELECT ALL + 25 * COALESCE ( 80, NULLIF ( 80, - ( ( 68 ) ) * - 54 ) * 75 )
----
2000

query I rowsort
SELECT - 51 * 70 + 96 * 8
----
-2802

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL - ( ( 81 ) ) * ( - COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL - ( ( 81 ) ) * ( - COUNT ( * ) )
----
81

query I rowsort
SELECT 8 * - 55 AS col0
----
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT ALL - CAST( 37 AS SIGNED ) + ( - 95 - 37 ) * - 5
----
623

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - CAST ( 37 AS INTEGER ) + ( - 95 - 37 ) * - 5
----
623

query I rowsort
SELECT 14 + + 84
----
98

query I rowsort
SELECT ALL + ( 20 ) + 0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT - CASE 95 WHEN - MIN( ALL - 7 ) THEN NULL WHEN - CAST( - 57 AS SIGNED ) + 25 THEN NULL WHEN 22 / + 75 THEN - 57 + + 86 ELSE NULL END * 30 + - 84 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT - CASE 95 WHEN - MIN ( ALL - 7 ) THEN NULL WHEN - CAST ( - 57 AS INTEGER ) + 25 THEN NULL WHEN 22 / + 75 THEN - 57 + + 86 ELSE NULL END * 30 + - 84 * - 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT DISTINCT + 8 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + 8 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 85
----
NULL

query I rowsort
SELECT 23 * 2 col2
----
46

query I rowsort
SELECT 59 + 66 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL - COUNT( * ) + 53
----
52

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL - COUNT ( * ) + 53
----
52

query I rowsort
SELECT DISTINCT 68 * 6 AS col1
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT 49 * + MAX( + 82 )
----
4018

skipif mysql # not compatible
query I rowsort label-4508
SELECT 49 * + MAX ( + 82 )
----
4018

query I rowsort
SELECT DISTINCT 20 - + ( + 27 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT - COUNT( * ) * - 69
----
69

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - COUNT ( * ) * - 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL 55 - + CASE + 44 + 26 WHEN 83 + + 51 * AVG ( 74 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL 55 - + CASE + 44 + 26 WHEN 83 + + 51 * AVG ( 74 ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT SUM( - 81 ) * - COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4512
SELECT SUM ( - 81 ) * - COUNT ( * ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4513
SELECT - ( CASE ( - COUNT( * ) ) WHEN 33 THEN 65 WHEN - 90 + - 92 * + 31 THEN - 34 + ( + CAST( NULL AS SIGNED ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT - ( CASE ( - COUNT ( * ) ) WHEN 33 THEN 65 WHEN - 90 + - 92 * + 31 THEN - 34 + ( + CAST ( NULL AS INTEGER ) ) END )
----
NULL

query I rowsort
SELECT - 13 - 17 * 60 AS col0
----
-1033

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - NULLIF ( 0, 94 * - 16 + - 38 * - COUNT( * ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT - NULLIF ( 0, 94 * - 16 + - 38 * - COUNT ( * ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT 52 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-4516
SELECT 52 + COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL MAX( DISTINCT - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL MAX ( DISTINCT - 20 )
----
-20

query I rowsort
SELECT ( 93 ) * - 98 AS col2
----
-9114

query I rowsort
SELECT + 49 * 12
----
588

query I rowsort
SELECT ALL - + 88 col2
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT ALL + COUNT( * ) DIV 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL + COUNT ( * ) / 57 col1
----
0

query I rowsort
SELECT + + 98 * 98 - 75
----
9529

query I rowsort
SELECT - 71 * 80
----
-5680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4524
SELECT 56 DIV 28 - + COUNT( * ) * ( + 2 )
----
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT 56 / 28 - + COUNT ( * ) * ( + 2 )
----
0

query I rowsort
SELECT DISTINCT - CASE 36 WHEN 75 - - 13 THEN 94 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT ALL - - CAST( + 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - - CAST ( + 64 AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT - COUNT( * ) * + ( 9 - + 42 ) + 43 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4527
SELECT - COUNT ( * ) * + ( 9 - + 42 ) + 43 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT + 35 / + ( + CASE CAST( NULL AS SIGNED ) WHEN - 6 THEN NULL WHEN 18 THEN COUNT( CAST( - 70 AS SIGNED ) ) + + 36 * + 65 ELSE NULL END / 31 ) + - 50 * 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT + 35 / + ( + CASE CAST ( NULL AS INTEGER ) WHEN - 6 THEN NULL WHEN 18 THEN COUNT ( CAST ( - 70 AS INTEGER ) ) + + 36 * + 65 ELSE NULL END / 31 ) + - 50 * 5 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT - - 97 * - 5 - - CASE - 57 WHEN + COALESCE ( 32, - CAST( NULL AS SIGNED ) * 70 ) + 16 * 85 THEN - 36 + - 85 END / COALESCE ( ( COUNT( * ) ), - 24 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT - - 97 * - 5 - - CASE - 57 WHEN + COALESCE ( 32, - CAST ( NULL AS INTEGER ) * 70 ) + 16 * 85 THEN - 36 + - 85 END / COALESCE ( ( COUNT ( * ) ), - 24 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + SUM( ALL 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4530
SELECT + SUM ( ALL 29 ) AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4531
SELECT CAST( + CASE 76 WHEN 53 THEN + 8 * 51 ELSE + CAST( + ( - COUNT( * ) ) AS DECIMAL ) END AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4531
SELECT CAST ( + CASE 76 WHEN 53 THEN + 8 * 51 ELSE + CAST ( + ( - COUNT ( * ) ) AS REAL ) END AS INTEGER ) col0
----
-1

query I rowsort
SELECT ALL + 19 + 64
----
83

query I rowsort
SELECT - 88 * 31 AS col2
----
-2728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4534
SELECT 33 DIV + - MAX( ALL 13 )
----
-2

skipif mysql # not compatible
query I rowsort label-4534
SELECT 33 / + - MAX ( ALL 13 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT ALL CASE - 7 WHEN ( - CAST( + 32 AS SIGNED ) ) THEN - 44 WHEN - 62 THEN + 95 ELSE + ( - ( + ( 26 ) ) ) * 24 END + 53
----
-571

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL CASE - 7 WHEN ( - CAST ( + 32 AS INTEGER ) ) THEN - 44 WHEN - 62 THEN + 95 ELSE + ( - ( + ( 26 ) ) ) * 24 END + 53
----
-571

query I rowsort
SELECT 14 + - 30 + - ( - 80 ) * + 33
----
2624

query I rowsort
SELECT ( 76 ) + 2 AS col0
----
78

query I rowsort
SELECT 59 / 1 * + CASE 12 WHEN + 29 * 83 - - 33 THEN 4 - 90 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL + COUNT( ALL - - 15 ) + - 98 * + COUNT( DISTINCT - 85 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL + COUNT ( ALL - - 15 ) + - 98 * + COUNT ( DISTINCT - 85 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT ( + + 61 ) + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT ( + + 61 ) + COUNT ( * )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT ALL + 59 + + 35 DIV 85
----
59

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL + 59 + + 35 / 85
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4542
SELECT - 8 * - - 36 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT - 8 * - - 36 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT ALL CAST( CAST( 82 AS SIGNED ) AS SIGNED ) * + 76 AS col1
----
6232

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL CAST ( CAST ( 82 AS INTEGER ) AS INTEGER ) * + 76 AS col1
----
6232

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT - 68 + + NULLIF ( + 80, + COUNT( * ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4544
SELECT - 68 + + NULLIF ( + 80, + COUNT ( * ) ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4545
SELECT ALL NULLIF ( + - 72, 20 / CAST( CASE COUNT( 45 ) WHEN 20 THEN + COALESCE ( + 18, - 53, 82, 57 * 24 ) + + ( 15 ) * 85 ELSE - CAST( - NULLIF ( 40, - 18 * CAST( NULL AS SIGNED ) ) AS DECIMAL ) END * 21 AS SIGNED ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL NULLIF ( + - 72, 20 / CAST ( CASE COUNT ( 45 ) WHEN 20 THEN + COALESCE ( + 18, - 53, 82, 57 * 24 ) + + ( 15 ) * 85 ELSE - CAST ( - NULLIF ( 40, - 18 * CAST ( NULL AS INTEGER ) ) AS REAL ) END * 21 AS INTEGER ) ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL CASE + - 6 WHEN + 76 * + COUNT( DISTINCT + 50 ) + 18 THEN 9 * 14 WHEN CASE 62 WHEN + 82 / 58 THEN 16 WHEN + ( + MAX( 7 ) ) THEN NULL WHEN 0 / - 53 THEN NULL END * - 52 + - ( + 50 + + 39 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL CASE + - 6 WHEN + 76 * + COUNT ( DISTINCT + 50 ) + 18 THEN 9 * 14 WHEN CASE 62 WHEN + 82 / 58 THEN 16 WHEN + ( + MAX ( 7 ) ) THEN NULL WHEN 0 / - 53 THEN NULL END * - 52 + - ( + 50 + + 39 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - MAX( 93 ) + - 62
----
-155

skipif mysql # not compatible
query I rowsort label-4547
SELECT - MAX ( 93 ) + - 62
----
-155

query I rowsort
SELECT - 32 + + + 81 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - - 27 + + COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4549
SELECT - - 27 + + COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + - COALESCE ( + MIN( ALL - ( - 34 ) ), - 58 ) - CASE COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE 4 END * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT + - COALESCE ( + MIN ( ALL - ( - 34 ) ), - 58 ) - CASE COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE 4 END * 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT - - MAX( DISTINCT 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4551
SELECT - - MAX ( DISTINCT 99 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4552
SELECT + + 46 + + 63 + CAST( NULL AS SIGNED ) * CASE WHEN + 57 * - 6 + 59 <= ( NULL ) THEN + COUNT( * ) ELSE - 43 * 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT + + 46 + + 63 + CAST ( NULL AS INTEGER ) * CASE WHEN + 57 * - 6 + 59 <= ( NULL ) THEN + COUNT ( * ) ELSE - 43 * 83 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 73 * 14 col0
----
1022

query I rowsort
SELECT - 47 + 9 * + 49 AS col0
----
394

query I rowsort
SELECT - 60 + ( - 97 ) * - 6 AS col1
----
522

query I rowsort
SELECT ALL 0 * + + 40 AS col0
----
0

query I rowsort
SELECT DISTINCT + 64 * + 44 * - 86
----
-242176

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT 83 DIV + 7 + 2 * + 97 + 22
----
227

skipif mysql # not compatible
query I rowsort label-4558
SELECT 83 / + 7 + 2 * + 97 + 22
----
227

query I rowsort
SELECT - COALESCE ( 43, - 7 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL - COUNT( * ) * + + CASE 13 WHEN - COUNT( * ) - - 62 THEN NULL WHEN + 39 THEN + 33 END - - COUNT( * ) * - 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL - COUNT ( * ) * + + CASE 13 WHEN - COUNT ( * ) - - 62 THEN NULL WHEN + 39 THEN + 33 END - - COUNT ( * ) * - 56 col0
----
NULL

query I rowsort
SELECT - + 8 + + - 25 + + 16 * - 6
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT + + 45 + 29 * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-4562
SELECT + + 45 + 29 * COUNT ( * )
----
74

query I rowsort
SELECT ALL - - 64 * - COALESCE ( 94, 72 * + 31, 91 * + 24 ) * + 43 + 13
----
-258675

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT - - 37 * COUNT( - 74 )
----
37

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - - 37 * COUNT ( - 74 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4565
SELECT ALL - COUNT( * ) * + 37 DIV + 24 + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - COUNT ( * ) * + 37 / + 24 + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - MIN( DISTINCT + 19 ) * COUNT( * ) + - ( 3 ) * + 48 AS col2
----
-163

skipif mysql # not compatible
query I rowsort label-4566
SELECT - MIN ( DISTINCT + 19 ) * COUNT ( * ) + - ( 3 ) * + 48 AS col2
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT DISTINCT - 31 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT - 31 / + 94 AS col0
----
0

query I rowsort
SELECT ALL 52 * - + 80 AS col1
----
-4160

query I rowsort
SELECT + 58 + - ( + 24 ) - - 95 * 27
----
2599

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + COALESCE ( - COUNT( * ), - + 19 ) * 87 + 10 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + COALESCE ( - COUNT ( * ), - + 19 ) * 87 + 10 AS col2
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4571
SELECT NULLIF ( 74, - CAST( NULL AS DECIMAL ) - - AVG ( + 26 ) )
----
74

skipif mysql # not compatible
query I rowsort label-4571
SELECT NULLIF ( 74, - CAST ( NULL AS REAL ) - - AVG ( + 26 ) )
----
74

query I rowsort
SELECT + 46 * + - 55
----
-2530

query I rowsort
SELECT 90 * - 71 + 14 + - 68 col0
----
-6444

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL ( MIN( - 66 ) ) * COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL ( MIN ( - 66 ) ) * COUNT ( * ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4575
SELECT CASE + 68 WHEN + COUNT( * ) THEN - ( + 94 ) * 14 + 70 * + CAST( NULL AS SIGNED ) ELSE + 39 END AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4575
SELECT CASE + 68 WHEN + COUNT ( * ) THEN - ( + 94 ) * 14 + 70 * + CAST ( NULL AS INTEGER ) ELSE + 39 END AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT + 4 * + - 65 * + 90 + + MIN( ALL + 51 + + ( + 90 ) DIV - COALESCE ( - 80 + + 27, 43 * 55 + + 82 ) ) col0
----
-23348

skipif mysql # not compatible
query I rowsort label-4576
SELECT + 4 * + - 65 * + 90 + + MIN ( ALL + 51 + + ( + 90 ) / - COALESCE ( - 80 + + 27, 43 * 55 + + 82 ) ) col0
----
-23348

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + COUNT( * ) * - 33 * 21
----
-693

skipif mysql # not compatible
query I rowsort label-4577
SELECT + COUNT ( * ) * - 33 * 21
----
-693

query I rowsort
SELECT DISTINCT NULLIF ( + + 15, + 10 + 71 ) * - 32 AS col2
----
-480

query I rowsort
SELECT + ( 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT + MAX( - - 56 ) * + + 58 * + 23 + - 33
----
74671

skipif mysql # not compatible
query I rowsort label-4580
SELECT + MAX ( - - 56 ) * + + 58 * + 23 + - 33
----
74671

query I rowsort
SELECT ALL ( - 12 ) * - 58
----
696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4582
SELECT DISTINCT + COUNT( * ) DIV + 79 * + + 43
----
0

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + COUNT ( * ) / + 79 * + + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT MAX( - ( 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4583
SELECT MAX ( - ( 2 ) )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT - CAST( NULL AS SIGNED ) * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT - CAST ( NULL AS INTEGER ) * + 43
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4585
SELECT - CAST( NULL AS DECIMAL ) + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT - CAST ( NULL AS REAL ) + - 54 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT ALL 44 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL 44 / - + 77
----
0

query I rowsort
SELECT - NULLIF ( + 74, + - 23 ) + 14 AS col0
----
-60

query I rowsort
SELECT + 85 * - ( + ( 23 ) ) col2
----
-1955

query I rowsort
SELECT - 78 + + 79 + + 87 * 29
----
2524

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT - 55 AS col0, NULLIF ( + - MAX( + 50 ), + NULLIF ( - 46, 80 * 90 ) ) + - 89
----
-55
-139

skipif mysql # not compatible
query II rowsort label-4590
SELECT - 55 AS col0, NULLIF ( + - MAX ( + 50 ), + NULLIF ( - 46, 80 * 90 ) ) + - 89
----
-55
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT ALL 87 DIV - - 41
----
2

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL 87 / - - 41
----
2

query I rowsort
SELECT ALL + + ( ( 81 ) ) * - 89
----
-7209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL + ( - ( - + COALESCE ( 90, - 21 / 11 ) ) ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + ( - ( - + COALESCE ( 90, - 21 / 11 ) ) ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - - 72 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4595
SELECT ALL + COALESCE ( CASE 29 WHEN 99 * 60 THEN NULL WHEN + 13 * 91 THEN 95 END, + 93 DIV - 68 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL + COALESCE ( CASE 29 WHEN 99 * 60 THEN NULL WHEN + 13 * 91 THEN 95 END, + 93 / - 68 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4596
SELECT - + CASE + 0 WHEN + + 52 THEN NULL WHEN COUNT( * ) THEN NULLIF ( 82, - COALESCE ( 59, + COUNT( * ) / NULLIF ( - 82, + SUM( 77 ) ) + 3, - COUNT( * ) ) ) + + 93 * CAST( - 22 * + CASE - COUNT( * ) * 36 WHEN - 7 THEN NULL ELSE CAST( 42 AS DECIMAL ) + - COALESCE ( 79, + 66 ) END + - 37 AS SIGNED ) END / + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT - + CASE + 0 WHEN + + 52 THEN NULL WHEN COUNT ( * ) THEN NULLIF ( 82, - COALESCE ( 59, + COUNT ( * ) / NULLIF ( - 82, + SUM ( 77 ) ) + 3, - COUNT ( * ) ) ) + + 93 * CAST ( - 22 * + CASE - COUNT ( * ) * 36 WHEN - 7 THEN NULL ELSE CAST ( 42 AS REAL ) + - COALESCE ( 79, + 66 ) END + - 37 AS INTEGER ) END / + 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL + 34 * CASE - 78 WHEN 11 THEN - 25 WHEN 37 * 27 + - 17 * 58 THEN + CASE + 41 WHEN - 64 + - 41 THEN - 68 WHEN ( 40 ) THEN NULL WHEN + 60 THEN - 75 * + SUM( + 59 * 82 ) END * - 43 END * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL + 34 * CASE - 78 WHEN 11 THEN - 25 WHEN 37 * 27 + - 17 * 58 THEN + CASE + 41 WHEN - 64 + - 41 THEN - 68 WHEN ( 40 ) THEN NULL WHEN + 60 THEN - 75 * + SUM ( + 59 * 82 ) END * - 43 END * + 88 AS col2
----
NULL

query II rowsort
SELECT 89 col1, - 68 col1
----
89
-68

query I rowsort
SELECT DISTINCT + 85 + + 26
----
111

query I rowsort
SELECT - - 79 + - 83
----
-4

query I rowsort
SELECT - ( - + 40 ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4602
SELECT DISTINCT + - COUNT( * ) + - CAST( - - 40 AS SIGNED ) - 15 * - 25 AS col2
----
334

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + - COUNT ( * ) + - CAST ( - - 40 AS INTEGER ) - 15 * - 25 AS col2
----
334

query I rowsort
SELECT ALL - 93 + + 4 AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT ALL + - 21 DIV + + 61 + 19 * - ( + 26 + - 17 * ( 41 * 76 ) ) col1
----
1005974

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + - 21 / + + 61 + 19 * - ( + 26 + - 17 * ( 41 * 76 ) ) col1
----
1005974

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4605
SELECT ALL + 2 * CAST( NULL AS DECIMAL ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + 2 * CAST ( NULL AS REAL ) + 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT - + 97 DIV 10 - 61
----
-70

skipif mysql # not compatible
query I rowsort label-4606
SELECT - + 97 / 10 - 61
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT CAST( - + 35 AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4607
SELECT CAST ( - + 35 AS INTEGER ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT - 75 * - MIN( - 86 ) * - + 71 * - CASE - CASE 50 WHEN - ( - 22 ) THEN NULL ELSE 1 END * 6 WHEN + 31 * 55 + 5 * - 94 THEN NULL WHEN 20 THEN + 37 END + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT - 75 * - MIN ( - 86 ) * - + 71 * - CASE - CASE 50 WHEN - ( - 22 ) THEN NULL ELSE 1 END * 6 WHEN + 31 * 55 + 5 * - 94 THEN NULL WHEN 20 THEN + 37 END + - 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT CAST( + AVG ( 86 ) AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-4609
SELECT CAST ( + AVG ( 86 ) AS INTEGER )
----
86

query II rowsort
SELECT ALL + ( - 71 ), - 36 AS col0
----
-71
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + MAX( + - ( 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-4611
SELECT + MAX ( + - ( 6 ) )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4612
SELECT CAST( - COUNT( ALL 21 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4612
SELECT CAST ( - COUNT ( ALL 21 ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT COALESCE ( + - 63, + 14 ) * 75 - + 23 AS col0
----
-4748

query I rowsort
SELECT ALL 69 - - - ( 68 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL - ( - - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL - ( - - COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT DISTINCT 45 - + 39 AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT ALL 63 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL 63 / 41
----
1

query I rowsort
SELECT 48 + - 8
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4619
SELECT CAST( COUNT( - 9 ) AS SIGNED ) * + COUNT( * ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-4619
SELECT CAST ( COUNT ( - 9 ) AS INTEGER ) * + COUNT ( * ) * - 71
----
-71

query I rowsort
SELECT ALL 3 * + + 63 AS col1
----
189

query I rowsort
SELECT ( + + 21 ) * 80 AS col0
----
1680

query I rowsort
SELECT ( + 64 ) * + 54 + + 61
----
3517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4623
SELECT AVG ( DISTINCT 4 ) + 49 * - - MAX( ALL - 45 ) + + 5 * CASE - CAST( NULL AS SIGNED ) / + 58 WHEN COUNT( * ) * MIN( ALL CAST( 75 AS SIGNED ) ) + 28 * 89 THEN CASE + COUNT( * ) WHEN 96 + 75 THEN + 29 / 48 ELSE NULL END WHEN + 88 THEN NULL ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT AVG ( DISTINCT 4 ) + 49 * - - MAX ( ALL - 45 ) + + 5 * CASE - CAST ( NULL AS INTEGER ) / + 58 WHEN COUNT ( * ) * MIN ( ALL CAST ( 75 AS INTEGER ) ) + 28 * 89 THEN CASE + COUNT ( * ) WHEN 96 + 75 THEN + 29 / 48 ELSE NULL END WHEN + 88 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 77 * - 13 AS col0
----
-1001

query I rowsort
SELECT + NULLIF ( + 65, + 82 ) + - + 46 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT + COALESCE ( CAST( + COUNT( * ) AS SIGNED ), - 40, 52, 64 ) + + 84
----
85

skipif mysql # not compatible
query I rowsort label-4626
SELECT + COALESCE ( CAST ( + COUNT ( * ) AS INTEGER ), - 40, 52, 64 ) + + 84
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT 19 + + 97 * - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4627
SELECT 19 + + 97 * - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - 65 + - CASE - NULLIF ( - - 61, COUNT( 15 ) * + 61 ) WHEN + 93 THEN 55 / COUNT( * ) END / - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 65 + - CASE - NULLIF ( - - 61, COUNT ( 15 ) * + 61 ) WHEN + 93 THEN 55 / COUNT ( * ) END / - 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL + 14 + - SUM( ALL 30 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + 14 + - SUM ( ALL 30 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT - NULLIF ( - ( + + COUNT( DISTINCT - + COALESCE ( - 4, - 37 ) ) ), 21 / 90 ) * NULLIF ( - 32 + - NULLIF ( - 41, + 92 + - 90 / 58 ), + 55 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4630
SELECT - NULLIF ( - ( + + COUNT ( DISTINCT - + COALESCE ( - 4, - 37 ) ) ), 21 / 90 ) * NULLIF ( - 32 + - NULLIF ( - 41, + 92 + - 90 / 58 ), + 55 ) AS col0
----
9

query I rowsort
SELECT ALL + + 12 + - 77
----
-65

query I rowsort
SELECT DISTINCT - - NULLIF ( 26, + 78 ) * 66 AS col2
----
1716

query I rowsort
SELECT 76 + 87
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL + COUNT( - ( 2 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + COUNT ( - ( 2 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT COUNT( * ) + + 30
----
31

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT COUNT ( * ) + + 30
----
31

query I rowsort
SELECT ALL + 62 + 57 AS col1
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4637
SELECT + 99 DIV 99 + + MAX( DISTINCT 48 ) * + 60 + 66 * 7
----
3343

skipif mysql # not compatible
query I rowsort label-4637
SELECT + 99 / 99 + + MAX ( DISTINCT 48 ) * + 60 + 66 * 7
----
3343

query I rowsort
SELECT - 25 * 51 AS col1
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT DISTINCT - SUM( - + 91 ) - + MIN( ALL - 48 ) + + - 75
----
64

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT - SUM ( - + 91 ) - + MIN ( ALL - 48 ) + + - 75
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT 42 * - SUM( DISTINCT + 13 )
----
-546

skipif mysql # not compatible
query I rowsort label-4640
SELECT 42 * - SUM ( DISTINCT + 13 )
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT COALESCE ( 47, + 18, + 86 + ( + NULLIF ( COUNT( * ), 37 * - 21 + - ( - COALESCE ( - 57, + 51 - + MIN( - ( + 37 ) ) * + 80 ) ) ) ) * 12 ) * - 59 + - 23 AS col2
----
-2796

skipif mysql # not compatible
query I rowsort label-4641
SELECT COALESCE ( 47, + 18, + 86 + ( + NULLIF ( COUNT ( * ), 37 * - 21 + - ( - COALESCE ( - 57, + 51 - + MIN ( - ( + 37 ) ) * + 80 ) ) ) ) * 12 ) * - 59 + - 23 AS col2
----
-2796

query I rowsort
SELECT DISTINCT - 55 * + 42 AS col2
----
-2310

query I rowsort
SELECT ALL - ( - 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4644
SELECT ALL - SUM( + + ( + 1 ) ) DIV + - 54 * - + 30 * 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL - SUM ( + + ( + 1 ) ) / + - 54 * - + 30 * 84 AS col0
----
0

query I rowsort
SELECT 68 + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + 0 END AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT - 55 * - - MAX( 17 ) AS col2
----
-935

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - 55 * - - MAX ( 17 ) AS col2
----
-935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4647
SELECT 87 / + CASE 9 WHEN - - 43 * 91 + COUNT( 89 ) THEN 46 + 92 WHEN - CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT 87 / + CASE 9 WHEN - - 43 * 91 + COUNT ( 89 ) THEN 46 + 92 WHEN - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT 58 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-4648
SELECT 58 * - COUNT ( * )
----
-58

query I rowsort
SELECT 65 * + 13 + 61 col0
----
906

onlyif mysql # aggregate syntax: 
query II rowsort label-4650
SELECT 38 AS col0, COUNT( * )
----
38
1

skipif mysql # not compatible
query II rowsort label-4650
SELECT 38 AS col0, COUNT ( * )
----
38
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT 77 DIV + + 36 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4651
SELECT 77 / + + 36 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT DISTINCT + 83 + + NULLIF ( - 78, + + MAX( ALL + - 81 ) * 45 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT + 83 + + NULLIF ( - 78, + + MAX ( ALL + - 81 ) * 45 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL 49 + + + MAX( + 58 ) + - + 96
----
11

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL 49 + + + MAX ( + 58 ) + - + 96
----
11

query I rowsort
SELECT - - ( - NULLIF ( 24, + 43 ) )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT DISTINCT + + 85 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT + + 85 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - 66 * + - COUNT( * ) + + + 13 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4656
SELECT - 66 * + - COUNT ( * ) + + + 13 AS col2
----
79

query I rowsort
SELECT DISTINCT - 85 + 47
----
-38

query I rowsort
SELECT ALL + 27 + - 66
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4659
SELECT DISTINCT 30 AS col0, COUNT( * ) * - 89 * + MIN( 77 )
----
30
-6853

skipif mysql # not compatible
query II rowsort label-4659
SELECT DISTINCT 30 AS col0, COUNT ( * ) * - 89 * + MIN ( 77 )
----
30
-6853

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT MAX( + 43 ) * - 45 AS col1
----
-1935

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT MAX ( + 43 ) * - 45 AS col1
----
-1935

query I rowsort
SELECT DISTINCT CASE - 10 WHEN 16 THEN NULL WHEN + - 62 THEN 16 * 74 END + + 96
----
NULL

query I rowsort
SELECT 90 * - 84 - + - 34
----
-7526

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT ALL 12 - - + 11 + 88 DIV 74 + + - 72
----
-48

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL 12 - - + 11 + 88 / 74 + + - 72
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT MIN( 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT MIN ( 56 ) AS col1
----
56

query I rowsort
SELECT 24 + - 23 col1
----
1

query I rowsort
SELECT 70 + - - 43 col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT 13 * - 26 * + + COUNT( * ) + - 5 + 49 - + 6 * + 67 * + COUNT( * )
----
-696

skipif mysql # not compatible
query I rowsort label-4667
SELECT 13 * - 26 * + + COUNT ( * ) + - 5 + 49 - + 6 * + 67 * + COUNT ( * )
----
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-4668
SELECT DISTINCT - COALESCE ( - 63, - 34 * + 88 * + + 45 + 40 ) DIV + 27 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - COALESCE ( - 63, - 34 * + 88 * + + 45 + 40 ) / + 27 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4669
SELECT - COUNT( * ), + 41 * - 39 * 3 col0
----
-1
-4797

skipif mysql # not compatible
query II rowsort label-4669
SELECT - COUNT ( * ), + 41 * - 39 * 3 col0
----
-1
-4797

query II rowsort
SELECT ALL 3 AS col2, + 66 + - 77
----
3
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4671
SELECT + 75 DIV 82 * - + 48
----
0

skipif mysql # not compatible
query I rowsort label-4671
SELECT + 75 / 82 * - + 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL + 32 * + COUNT( * ) * + CAST( NULL AS SIGNED ) * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + 32 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT ALL - 68 * + 4 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - 68 * + 4 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4674
SELECT + 92 / + MIN( - NULLIF ( - CAST( NULL AS SIGNED ), - 70 * 5 + 96 * 11 ) ) + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT + 92 / + MIN ( - NULLIF ( - CAST ( NULL AS INTEGER ), - 70 * 5 + 96 * 11 ) ) + - 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT ALL ( CAST( NULL AS SIGNED ) ) * 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * 26 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 92 * + - 78
----
-7176

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT + 57 - 78 - + + COUNT( * ) + - SUM( - 7 ) * + NULLIF ( - COUNT( * ), ( 10 ) + - 35 ) * + 19 + 77
----
-78

skipif mysql # not compatible
query I rowsort label-4677
SELECT + 57 - 78 - + + COUNT ( * ) + - SUM ( - 7 ) * + NULLIF ( - COUNT ( * ), ( 10 ) + - 35 ) * + 19 + 77
----
-78

query I rowsort
SELECT - 21 * COALESCE ( + 13, + - 60 ) * - 6 AS col2
----
1638

query I rowsort
SELECT ALL - 69 * COALESCE ( - 13, - 0 - + ( ( 4 ) ) )
----
897

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4680
SELECT + CAST( NULL AS SIGNED ) * 88 / 77 + - + 41 AS col0, 88 + - - 23 AS col2
----
NULL
111

skipif mysql # not compatible
query II rowsort label-4680
SELECT + CAST ( NULL AS INTEGER ) * 88 / 77 + - + 41 AS col0, 88 + - - 23 AS col2
----
NULL
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT COALESCE ( + 89, - + SUM( 44 ) )
----
89

skipif mysql # not compatible
query I rowsort label-4681
SELECT COALESCE ( + 89, - + SUM ( 44 ) )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT + CASE - 43 WHEN + NULLIF ( + ( 45 ), + CAST( - 38 AS SIGNED ) + - ( + CAST( + CAST( - CAST( MAX( - 28 ) AS SIGNED ) AS SIGNED ) AS SIGNED ) ) ) * - COUNT( * ) THEN 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT + CASE - 43 WHEN + NULLIF ( + ( 45 ), + CAST ( - 38 AS INTEGER ) + - ( + CAST ( + CAST ( - CAST ( MAX ( - 28 ) AS INTEGER ) AS INTEGER ) AS INTEGER ) ) ) * - COUNT ( * ) THEN 74 END
----
NULL

query I rowsort
SELECT COALESCE ( 6, NULLIF ( 1, 19 ) )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4684
SELECT ALL + 32 AS col2, - 12 + - 75 * + CAST( NULL AS SIGNED ) - + 14 - + 29 + COALESCE ( + 72, 9 * COALESCE ( ( 51 ), + AVG ( DISTINCT COALESCE ( 93, 45 ) ) - MAX( DISTINCT 48 ) ), - COUNT( * ) * COUNT( DISTINCT 31 ) ) AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-4684
SELECT ALL + 32 AS col2, - 12 + - 75 * + CAST ( NULL AS INTEGER ) - + 14 - + 29 + COALESCE ( + 72, 9 * COALESCE ( ( 51 ), + AVG ( DISTINCT COALESCE ( 93, 45 ) ) - MAX ( DISTINCT 48 ) ), - COUNT ( * ) * COUNT ( DISTINCT 31 ) ) AS col2
----
32
NULL

query I rowsort
SELECT - 85 * - 11 col0
----
935

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT ALL ( - 28 ) * - + 57 + + - 20 + 80 DIV - + 97 AS col2
----
1576

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL ( - 28 ) * - + 57 + + - 20 + 80 / - + 97 AS col2
----
1576

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4687
SELECT ALL CAST( NULL AS DECIMAL ) * + - 81 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL CAST ( NULL AS REAL ) * + - 81 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT COUNT( ALL - 9 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4688
SELECT COUNT ( ALL - 9 ) AS col0
----
1

query I rowsort
SELECT - + NULLIF ( + 89, 11 * - ( COALESCE ( + 13, 20 ) ) + 36 ) + 64 AS col2
----
-25

query I rowsort
SELECT ALL NULLIF ( - 19, + 22 ) * - + 10 + + 41
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - - 41 + - MAX( ALL - 86 )
----
127

skipif mysql # not compatible
query I rowsort label-4691
SELECT - - 41 + - MAX ( ALL - 86 )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - + ( COUNT( * ) ) + - 10 + - 93 * COUNT( * ) * - 18 + 47
----
1710

skipif mysql # not compatible
query I rowsort label-4692
SELECT - + ( COUNT ( * ) ) + - 10 + - 93 * COUNT ( * ) * - 18 + 47
----
1710

query I rowsort
SELECT ALL - 56 + - - 43
----
-13

query II rowsort
SELECT DISTINCT 41 AS col0, + 26
----
41
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT ALL + + NULLIF ( 0, - - ( + 39 ) ) * + COALESCE ( 3, 86, + 97 ) DIV 56 + + 48 * - 64 col0
----
-3072

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + + NULLIF ( 0, - - ( + 39 ) ) * + COALESCE ( 3, 86, + 97 ) / 56 + + 48 * - 64 col0
----
-3072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT - - 5 * + - COALESCE ( + 30, 44 * COUNT( * ) + + 35 * - CAST( - COUNT( * ) + 84 * 59 AS SIGNED ) ) + 6 * 16 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4696
SELECT - - 5 * + - COALESCE ( + 30, 44 * COUNT ( * ) + + 35 * - CAST ( - COUNT ( * ) + 84 * 59 AS INTEGER ) ) + 6 * 16 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT COUNT( ALL 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4697
SELECT COUNT ( ALL 0 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT + COUNT( ALL - 39 ) - - + 26
----
27

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT + COUNT ( ALL - 39 ) - - + 26
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT ALL 57 DIV + 13
----
4

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL 57 / + 13
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL 66 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL 66 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT + - COUNT( * ) * + ( 12 ) * 41 + - 59 * - 56
----
2812

skipif mysql # not compatible
query I rowsort label-4701
SELECT + - COUNT ( * ) * + ( 12 ) * 41 + - 59 * - 56
----
2812

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT DISTINCT + 4 DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT + 4 / - 92 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4703
SELECT + + 34 * MIN( CAST( NULL AS SIGNED ) ) * + COALESCE ( + 48, CASE - 27 WHEN 16 THEN 46 * 6 + 0 WHEN COUNT( * ) * + 67 - + COUNT( * ) / - 23 THEN NULL END, CAST( NULL AS SIGNED ) - + 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT + + 34 * MIN ( CAST ( NULL AS INTEGER ) ) * + COALESCE ( + 48, CASE - 27 WHEN 16 THEN 46 * 6 + 0 WHEN COUNT ( * ) * + 67 - + COUNT ( * ) / - 23 THEN NULL END, CAST ( NULL AS INTEGER ) - + 43 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL + MIN( + - 78 ) - - + 26 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL + MIN ( + - 78 ) - - + 26 AS col2
----
-52

query II rowsort
SELECT ALL - 74 AS col2, ( + 75 )
----
-74
75

query I rowsort
SELECT + 28 + - 0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT 93 * - COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT 93 * - COUNT ( * ) AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4708
SELECT + COALESCE ( + - COUNT( * ), 34 * + 41 * + 70 ) DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT + COALESCE ( + - COUNT ( * ), 34 * + 41 * + 70 ) / + 49
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT CAST( - ( - COALESCE ( + 67, - 96 ) ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-4709
SELECT CAST ( - ( - COALESCE ( + 67, - 96 ) ) AS INTEGER )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT - CAST( + 20 AS SIGNED ) + + + 22 * 8 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-4710
SELECT - CAST ( + 20 AS INTEGER ) + + + 22 * 8 AS col2
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-4711
SELECT ALL 80 DIV 19 * + 15 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL 80 / 19 * + 15 AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4712
SELECT ALL COUNT( * ) DIV + + 74 * 52 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL COUNT ( * ) / + + 74 * 52 + + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT SUM( ALL - CASE + 42 WHEN - 46 THEN NULL WHEN - + 71 THEN + + 51 ELSE NULL END ) / + + 73 + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT SUM ( ALL - CASE + 42 WHEN - 46 THEN NULL WHEN - + 71 THEN + + 51 ELSE NULL END ) / + + 73 + + COUNT ( * ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4714
SELECT ALL 31 DIV 95 + + - 55 AS col1, 18
----
-55
18

skipif mysql # not compatible
query II rowsort label-4714
SELECT ALL 31 / 95 + + - 55 AS col1, 18
----
-55
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4715
SELECT ( 14 ) * + - CAST( 99 AS SIGNED ) + - - 92 + 40 + + 83 DIV + 85
----
-1254

skipif mysql # not compatible
query I rowsort label-4715
SELECT ( 14 ) * + - CAST ( 99 AS INTEGER ) + - - 92 + 40 + + 83 / + 85
----
-1254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4716
SELECT ALL 44 * CAST( COUNT( * ) AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL 44 * CAST ( COUNT ( * ) AS INTEGER )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4717
SELECT + 49 / - CASE CASE - - COUNT( + 86 ) WHEN + - COUNT( + + 80 ) * COUNT( 62 ) THEN 83 + - SUM( - 81 ) WHEN + CAST( NULL AS SIGNED ) / 17 - - 53 * - 69 THEN NULL ELSE NULL END WHEN + COUNT( * ) / + COUNT( * ) THEN - 94 * CASE MAX( CAST( + 44 AS SIGNED ) ) WHEN + 79 / - ( COUNT( * ) ) THEN + MAX( CAST( NULL AS SIGNED ) ) / 84 + - 86 WHEN + 47 + + COUNT( * ) * + 24 THEN NULL END END * + 67 + + 9 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT + 49 / - CASE CASE - - COUNT ( + 86 ) WHEN + - COUNT ( + + 80 ) * COUNT ( 62 ) THEN 83 + - SUM ( - 81 ) WHEN + CAST ( NULL AS INTEGER ) / 17 - - 53 * - 69 THEN NULL ELSE NULL END WHEN + COUNT ( * ) / + COUNT ( * ) THEN - 94 * CASE MAX ( CAST ( + 44 AS INTEGER ) ) WHEN + 79 / - ( COUNT ( * ) ) THEN + MAX ( CAST ( NULL AS INTEGER ) ) / 84 + - 86 WHEN + 47 + + COUNT ( * ) * + 24 THEN NULL END END * + 67 + + 9 * 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4718
SELECT DISTINCT + NULLIF ( 1, - - 68 ) DIV + 14 + CAST( 36 AS SIGNED ) + - 84 + 60 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT + NULLIF ( 1, - - 68 ) / + 14 + CAST ( 36 AS INTEGER ) + - 84 + 60 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL 68 * - 58 * - 21 * MAX( + - 66 ) + - 72 - - MIN( 70 ) + COALESCE ( + COALESCE ( + 54, CAST( - 25 AS SIGNED ) + 29 ), - 99, + 90 * - 77 + 70 ) AS col2
----
-5466332

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL 68 * - 58 * - 21 * MAX ( + - 66 ) + - 72 - - MIN ( 70 ) + COALESCE ( + COALESCE ( + 54, CAST ( - 25 AS INTEGER ) + 29 ), - 99, + 90 * - 77 + 70 ) AS col2
----
-5466332

query I rowsort
SELECT + ( + 21 ) col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4721
SELECT + CAST( NULL AS SIGNED ) * + - SUM( - + 19 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT + CAST ( NULL AS INTEGER ) * + - SUM ( - + 19 ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4722
SELECT + 20 DIV + 42, + 90 + + - 58 * - COUNT( * ) AS col2
----
0
148

skipif mysql # not compatible
query II rowsort label-4722
SELECT + 20 / + 42, + 90 + + - 58 * - COUNT ( * ) AS col2
----
0
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT ALL + CAST( + + 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + CAST ( + + 66 AS INTEGER )
----
66

query II rowsort
SELECT - + ( + 82 ) AS col1, 14 AS col1
----
-82
14

query I rowsort
SELECT ALL + - ( 16 ) * 5
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT + + 63 * ( MAX( ALL + - 93 ) )
----
-5859

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + + 63 * ( MAX ( ALL + - 93 ) )
----
-5859

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT 84 DIV MIN( + 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4727
SELECT 84 / MIN ( + 57 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT SUM( ALL + + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4728
SELECT SUM ( ALL + + 31 ) AS col2
----
31

query I rowsort
SELECT DISTINCT + + ( - ( + 10 ) ) * 57 * + 29 AS col0
----
-16530

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT ( MIN( + 44 ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT ( MIN ( + 44 ) ) AS col2
----
44

query I rowsort
SELECT 68 * + 22
----
1496

query II rowsort
SELECT ALL 56, - NULLIF ( 23, + 37 ) col1
----
56
-23

query I rowsort
SELECT ALL - 14 + - - 5 * + 40 + 71 + 31
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT 42 + + + COALESCE ( - - 37, - 50 * - - 39, - - 21 + - 92 * - COUNT( * ) ) + - 44 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4734
SELECT 42 + + + COALESCE ( - - 37, - 50 * - - 39, - - 21 + - 92 * - COUNT ( * ) ) + - 44 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT 48 DIV 13
----
3

skipif mysql # not compatible
query I rowsort label-4735
SELECT 48 / 13
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT 52 + - - COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4736
SELECT 52 + - - COUNT ( * ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT COUNT( DISTINCT 43 ) - 74, 97 * - 18 * - CASE 0 WHEN - 50 * + 76 THEN - 17 END + NULLIF ( 39, + SUM( ALL 36 ) / + 52 ) AS col2
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-4737
SELECT COUNT ( DISTINCT 43 ) - 74, 97 * - 18 * - CASE 0 WHEN - 50 * + 76 THEN - 17 END + NULLIF ( 39, + SUM ( ALL 36 ) / + 52 ) AS col2
----
-73
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4738
SELECT - 19 AS col0, + CAST( + + 15 AS SIGNED ) AS col1
----
-19
15

skipif mysql # not compatible
query II rowsort label-4738
SELECT - 19 AS col0, + CAST ( + + 15 AS INTEGER ) AS col1
----
-19
15

query I rowsort
SELECT DISTINCT - 97 + + 60 * - + 93 AS col1
----
-5677

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT CASE WHEN NOT ( NOT - + 26 > NULL ) THEN NULL ELSE + 98 END * + COUNT( - 80 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4740
SELECT CASE WHEN NOT ( NOT - + 26 > NULL ) THEN NULL ELSE + 98 END * + COUNT ( - 80 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4741
SELECT COUNT( * ) * 69 * + + 37 + NULLIF ( - - 40, + 70 ) DIV + - NULLIF ( 76, - 16 ) AS col0
----
2553

skipif mysql # not compatible
query I rowsort label-4741
SELECT COUNT ( * ) * 69 * + + 37 + NULLIF ( - - 40, + 70 ) / + - NULLIF ( 76, - 16 ) AS col0
----
2553

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT ALL - COUNT( * ), - 23 col0
----
-1
-23

skipif mysql # not compatible
query II rowsort label-4742
SELECT ALL - COUNT ( * ), - 23 col0
----
-1
-23

query I rowsort
SELECT DISTINCT + 24 * + 35
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4744
SELECT + 45 / - - 34 * + SUM( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) + + 53 + + 45 * - ( - 42 ) + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT + 45 / - - 34 * + SUM ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) + + 53 + + 45 * - ( - 42 ) + + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT 35 AS col2, COUNT( DISTINCT + 39 ) + - 13 + ( - 80 ) + + ( + 31 ) * - 70 AS col1
----
35
-2262

skipif mysql # not compatible
query II rowsort label-4745
SELECT 35 AS col2, COUNT ( DISTINCT + 39 ) + - 13 + ( - 80 ) + + ( + 31 ) * - 70 AS col1
----
35
-2262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4746
SELECT DISTINCT 32 + + + 45 + - - COALESCE ( - COUNT( * ), + 25 * - NULLIF ( 70, COUNT( * ) * 79 ) + - 99 DIV SUM( DISTINCT - 88 ), COALESCE ( - CAST( - 90 AS SIGNED ), - 61 ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT 32 + + + 45 + - - COALESCE ( - COUNT ( * ), + 25 * - NULLIF ( 70, COUNT ( * ) * 79 ) + - 99 / SUM ( DISTINCT - 88 ), COALESCE ( - CAST ( - 90 AS INTEGER ), - 61 ) ) AS col0
----
76

query II rowsort
SELECT ALL - 57 AS col2, 25 * + - 41
----
-57
-1025

query I rowsort
SELECT ( + - 93 ) col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT - 44 * - - MIN( - - 57 ) * 78 - + NULLIF ( + 92, + 19 * - 89 + - 8 ) AS col1
----
-195716

skipif mysql # not compatible
query I rowsort label-4749
SELECT - 44 * - - MIN ( - - 57 ) * 78 - + NULLIF ( + 92, + 19 * - 89 + - 8 ) AS col1
----
-195716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT COUNT( DISTINCT 9 ) - - CASE WHEN ( NULL ) NOT IN ( + - AVG ( + - 63 ) ) THEN CAST( - 28 AS SIGNED ) ELSE + ( + NULLIF ( 83, 54 * + 78 ) ) END AS col2
----
84

skipif mysql # not compatible
query I rowsort label-4750
SELECT COUNT ( DISTINCT 9 ) - - CASE WHEN ( NULL ) NOT IN ( + - AVG ( + - 63 ) ) THEN CAST ( - 28 AS INTEGER ) ELSE + ( + NULLIF ( 83, 54 * + 78 ) ) END AS col2
----
84

query I rowsort
SELECT DISTINCT + 48 * 47
----
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT 61 * - COUNT( DISTINCT - 73 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT 61 * - COUNT ( DISTINCT - 73 ) AS col0
----
-61

query I rowsort
SELECT 99 * - 48 AS col2
----
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT 29 + 66 * + + ( + + CASE COUNT( * ) WHEN 35 - + 54 + - + 83 + + 82 * - 71 THEN + ( 97 ) * 24 ELSE NULL END ) * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT 29 + 66 * + + ( + + CASE COUNT ( * ) WHEN 35 - + 54 + - + 83 + + 82 * - 71 THEN + ( 97 ) * 24 ELSE NULL END ) * - 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4755
SELECT + 56 * 22 + - - 72 - 70 - + 60 / CASE - + 45 WHEN - + 77 * 18 THEN NULL WHEN 83 THEN NULL WHEN CAST( COUNT( ALL - CAST( + 35 AS DECIMAL ) ) AS SIGNED ) THEN 83 + 76 / + 62 ELSE NULL END + CAST( 66 + - 42 * 98 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT + 56 * 22 + - - 72 - 70 - + 60 / CASE - + 45 WHEN - + 77 * 18 THEN NULL WHEN 83 THEN NULL WHEN CAST ( COUNT ( ALL - CAST ( + 35 AS REAL ) ) AS INTEGER ) THEN 83 + 76 / + 62 ELSE NULL END + CAST ( 66 + - 42 * 98 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4756
SELECT 87 AS col1, - NULLIF ( - + COUNT( * ), + 16 * - - 29 + - - 23 ) col0
----
87
1

skipif mysql # not compatible
query II rowsort label-4756
SELECT 87 AS col1, - NULLIF ( - + COUNT ( * ), + 16 * - - 29 + - - 23 ) col0
----
87
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT 76 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT 76 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 19 - + 29 + + 6 AS col2
----
-4

query II rowsort
SELECT ALL - 78, 34 * - 9 col1
----
-78
-306

onlyif mysql # aggregate syntax: 
query II rowsort label-4760
SELECT + 77 AS col2, SUM( ALL - - 15 ) * - 46 * 64
----
77
-44160

skipif mysql # not compatible
query II rowsort label-4760
SELECT + 77 AS col2, SUM ( ALL - - 15 ) * - 46 * 64
----
77
-44160

query I rowsort
SELECT 68 * + - 59
----
-4012

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4762
SELECT ALL - 55, + CAST( - 12 AS SIGNED ) AS col0
----
-55
-12

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL - 55, + CAST ( - 12 AS INTEGER ) AS col0
----
-55
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT 45 + + - COUNT( * ) - + 6 + 15 + 77
----
130

skipif mysql # not compatible
query I rowsort label-4763
SELECT 45 + + - COUNT ( * ) - + 6 + 15 + 77
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT DISTINCT 90 + + CAST( + 58 AS SIGNED ) * - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT 90 + + CAST ( + 58 AS INTEGER ) * - COUNT ( * )
----
32

query I rowsort
SELECT 71 + - 9 AS col1
----
62

query I rowsort
SELECT DISTINCT - 28 * - - 10 AS col2
----
-280

query I rowsort
SELECT 52 * + 55 * + 5 AS col0
----
14300

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT 87 + 13 * + COUNT( DISTINCT + 42 ) + - 27 + - + 17 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4768
SELECT 87 + 13 * + COUNT ( DISTINCT + 42 ) + - 27 + - + 17 AS col1
----
56

query I rowsort
SELECT ALL - 10 * - 15
----
150

query II rowsort
SELECT DISTINCT + 55 + - - 98, + 3 AS col0
----
153
3

query I rowsort
SELECT DISTINCT 33 * 65 * + ( + 52 ) col1
----
111540

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL - 83 + - 5 + - MAX( + - 56 ) * + ( + 36 )
----
1928

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - 83 + - 5 + - MAX ( + - 56 ) * + ( + 36 )
----
1928

query I rowsort
SELECT 77 * - - 50
----
3850

query I rowsort
SELECT 83 + - + 21
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT - CASE + + 58 WHEN - MAX( DISTINCT - 5 ) THEN - 21 END + + COUNT( * ) / 84 + - 95 * 87 + COUNT( ALL - 65 ) * 37 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT - CASE + + 58 WHEN - MAX ( DISTINCT - 5 ) THEN - 21 END + + COUNT ( * ) / 84 + - 95 * 87 + COUNT ( ALL - 65 ) * 37 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL MIN( ALL - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL MIN ( ALL - 92 )
----
-92

query I rowsort
SELECT ALL + 38 + - 69
----
-31

query I rowsort
SELECT 67 * - 8 AS col0
----
-536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT 73 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT 73 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - 53 * + MIN( DISTINCT 10 ) - 43 AS col2
----
-573

skipif mysql # not compatible
query I rowsort label-4780
SELECT - 53 * + MIN ( DISTINCT 10 ) - 43 AS col2
----
-573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT 21 DIV + - MIN( + 68 )
----
0

skipif mysql # not compatible
query I rowsort label-4781
SELECT 21 / + - MIN ( + 68 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL - NULLIF ( + - COALESCE ( - COUNT( * ), - SUM( DISTINCT + + 16 ) ), 31 * 10 * - 56 ) * 91 - 47 * 91
----
-4368

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - NULLIF ( + - COALESCE ( - COUNT ( * ), - SUM ( DISTINCT + + 16 ) ), 31 * 10 * - 56 ) * 91 - 47 * 91
----
-4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL CAST( - + 60 AS SIGNED ) * - CASE + 74 WHEN + CAST( 74 AS SIGNED ) + + + 57 THEN NULL WHEN 19 THEN - ( 64 ) ELSE NULL END * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL CAST ( - + 60 AS INTEGER ) * - CASE + 74 WHEN + CAST ( 74 AS INTEGER ) + + + 57 THEN NULL WHEN 19 THEN - ( 64 ) ELSE NULL END * 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT - MIN( DISTINCT + + 38 ) * + COUNT( * ) * - COUNT( * ) + - + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4784
SELECT - MIN ( DISTINCT + + 38 ) * + COUNT ( * ) * - COUNT ( * ) + - + COUNT ( * )
----
37

query I rowsort
SELECT ALL - NULLIF ( ( + 40 ), - 65 )
----
-40

query II rowsort
SELECT - ( + 95 ) * 27 + - + 16, 38 + + 96 - 24 AS col1
----
-2581
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4787
SELECT + CAST( + - 70 AS SIGNED ) AS col0, + 16 + 33 * + ( - COUNT( * ) ) * + 59 - - ( - 75 ) - + COUNT( * )
----
-70
-2007

skipif mysql # not compatible
query II rowsort label-4787
SELECT + CAST ( + - 70 AS INTEGER ) AS col0, + 16 + 33 * + ( - COUNT ( * ) ) * + 59 - - ( - 75 ) - + COUNT ( * )
----
-70
-2007

onlyif mysql # aggregate syntax: 
query II rowsort label-4788
SELECT 42 + 61, COUNT( * ) AS col2
----
103
1

skipif mysql # not compatible
query II rowsort label-4788
SELECT 42 + 61, COUNT ( * ) AS col2
----
103
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4789
SELECT - COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4790
SELECT + 41 * SUM( DISTINCT 24 ) * 69 DIV 89 + - 88 * - 29 * - ( + 59 ) + COUNT( * ) DIV ( 90 )
----
-149806

skipif mysql # not compatible
query I rowsort label-4790
SELECT + 41 * SUM ( DISTINCT 24 ) * 69 / 89 + - 88 * - 29 * - ( + 59 ) + COUNT ( * ) / ( 90 )
----
-149806

query I rowsort
SELECT DISTINCT + ( - + 1 ) AS col0
----
-1

query I rowsort
SELECT ALL + 92 * 27 AS col2
----
2484

query I rowsort
SELECT + - COALESCE ( + ( 30 ), 60 * - + 20 ) AS col2
----
-30

query I rowsort
SELECT ALL 35 * + 64 AS col2
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL + 42 + - - COUNT( * ) * - + 7 + + - CASE 24 WHEN - - ( - 9 ) THEN ( - ( CASE 77 WHEN COUNT( * ) * + 47 + - 11 THEN + 22 ELSE NULL END ) ) WHEN 85 * - COUNT( * ) + - 55 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + 42 + - - COUNT ( * ) * - + 7 + + - CASE 24 WHEN - - ( - 9 ) THEN ( - ( CASE 77 WHEN COUNT ( * ) * + 47 + - 11 THEN + 22 ELSE NULL END ) ) WHEN 85 * - COUNT ( * ) + - 55 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT + 9 * 78 + + CAST( - 1 AS SIGNED ) + + 49
----
750

skipif mysql # not compatible
query I rowsort label-4796
SELECT + 9 * 78 + + CAST ( - 1 AS INTEGER ) + + 49
----
750

query I rowsort
SELECT ALL 79 + 60 + + 45 * - 50 AS col1
----
-2111

query I rowsort
SELECT + 23 * + + 58 AS col1
----
1334

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4799
SELECT + CAST( + 22 AS SIGNED ) - - 1 + + CASE + - 97 WHEN 19 THEN NULL ELSE + 42 END AS col1, 99 AS col2
----
65
99

skipif mysql # not compatible
query II rowsort label-4799
SELECT + CAST ( + 22 AS INTEGER ) - - 1 + + CASE + - 97 WHEN 19 THEN NULL ELSE + 42 END AS col1, 99 AS col2
----
65
99

query I rowsort
SELECT + 69 * - + 30 AS col2
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT + CASE + 25 WHEN 61 * - COUNT( * ) * + 28 + COUNT( * ) THEN - 86 WHEN 35 THEN 58 * + ( MAX( + 95 ) ) END - - COUNT( ALL 70 + 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT + CASE + 25 WHEN 61 * - COUNT ( * ) * + 28 + COUNT ( * ) THEN - 86 WHEN 35 THEN 58 * + ( MAX ( + 95 ) ) END - - COUNT ( ALL 70 + 85 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT CASE - 78 WHEN SUM( 63 ) THEN + 10 / COALESCE ( + 45, + 36 ) * + MAX( + 40 ) + + 99 * - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT CASE - 78 WHEN SUM ( 63 ) THEN + 10 / COALESCE ( + 45, + 36 ) * + MAX ( + 40 ) + + 99 * - 54 END
----
NULL

query I rowsort
SELECT ALL 21 - + 28
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4804
SELECT + 3 + - NULLIF ( + 39, + 82 * COUNT( DISTINCT - 26 ) + + 30 * - 52 / + - NULLIF ( - CAST( 41 AS DECIMAL ), - 41 * - 49 ) ) - + 15 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4804
SELECT + 3 + - NULLIF ( + 39, + 82 * COUNT ( DISTINCT - 26 ) + + 30 * - 52 / + - NULLIF ( - CAST ( 41 AS REAL ), - 41 * - 49 ) ) - + 15 AS col1
----
-51

query I rowsort
SELECT - 9 * + 43 AS col2
----
-387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT ALL - 79 * + ( - ( 26 ) ) * + ( COALESCE ( 85, + + 3 * - + 86 ) ) * CAST( + COALESCE ( + 97, - 2 + + CAST( + CASE 59 WHEN + 75 * + NULLIF ( 14, ( - 94 ) * 7 ) - AVG ( + 84 ) THEN - CAST( + COUNT( * ) AS SIGNED ) WHEN NULLIF ( - 86, + 84 ) * + 45 + 43 THEN NULL ELSE 60 END AS SIGNED ) ) AS SIGNED ) + - NULLIF ( CAST( NULL AS SIGNED ), + 36 ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - 79 * + ( - ( 26 ) ) * + ( COALESCE ( 85, + + 3 * - + 86 ) ) * CAST ( + COALESCE ( + 97, - 2 + + CAST ( + CASE 59 WHEN + 75 * + NULLIF ( 14, ( - 94 ) * 7 ) - AVG ( + 84 ) THEN - CAST ( + COUNT ( * ) AS INTEGER ) WHEN NULLIF ( - 86, + 84 ) * + 45 + 43 THEN NULL ELSE 60 END AS INTEGER ) ) AS INTEGER ) + - NULLIF ( CAST ( NULL AS INTEGER ), + 36 ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT + CAST( 2 AS SIGNED ) + + 47
----
49

skipif mysql # not compatible
query I rowsort label-4807
SELECT + CAST ( 2 AS INTEGER ) + + 47
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT - 85 - + COUNT( * ) - 55
----
-141

skipif mysql # not compatible
query I rowsort label-4808
SELECT - 85 - + COUNT ( * ) - 55
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4810
SELECT - 3 + + 0 * - 51 * - + 79 + - 31 DIV 27 * - 56 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4810
SELECT - 3 + + 0 * - 51 * - + 79 + - 31 / 27 * - 56 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4811
SELECT DISTINCT CASE + 89 WHEN MIN( ALL NULLIF ( 94, + 72 + - ( 56 ) ) ) * + COUNT( * ) + - SUM( ALL + 62 ) * + 90 THEN MIN( ALL + 45 ) + + 57 WHEN - COUNT( * ) * 14 - - 32 THEN 68 ELSE CAST( NULL AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT CASE + 89 WHEN MIN ( ALL NULLIF ( 94, + 72 + - ( 56 ) ) ) * + COUNT ( * ) + - SUM ( ALL + 62 ) * + 90 THEN MIN ( ALL + 45 ) + + 57 WHEN - COUNT ( * ) * 14 - - 32 THEN 68 ELSE CAST ( NULL AS REAL ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 14 * + 57 AS col0
----
798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT - COUNT( * ) DIV 43 * + + 34 + 66 * - 79 AS col0
----
-5214

skipif mysql # not compatible
query I rowsort label-4813
SELECT - COUNT ( * ) / 43 * + + 34 + 66 * - 79 AS col0
----
-5214

query I rowsort
SELECT - 64 * - 18 * - - 7 - + + 41 AS col1
----
8023

query I rowsort
SELECT + 8 * - 19 col2
----
-152

query I rowsort
SELECT - + 56 + - 16 * 27 AS col0
----
-488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT ALL + AVG ( - + 92 ) / COALESCE ( 78, - 35 ) * + 36 - 22 + + + CASE + + SUM( 39 ) WHEN - ( 13 ) THEN NULL WHEN CAST( NULL AS SIGNED ) + + 12 * - 97 THEN NULL WHEN - 89 THEN - COALESCE ( + 67, 38 ) * 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL + AVG ( - + 92 ) / COALESCE ( 78, - 35 ) * + 36 - 22 + + + CASE + + SUM ( 39 ) WHEN - ( 13 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) + + 12 * - 97 THEN NULL WHEN - 89 THEN - COALESCE ( + 67, 38 ) * 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - - 82 * - + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-4818
SELECT - - 82 * - + COUNT ( * )
----
-82

query I rowsort
SELECT - - 76 * + - ( - 32 )
----
2432

query I rowsort
SELECT - + 7 * + 41
----
-287

query I rowsort
SELECT + ( - + ( + - 67 ) )
----
67

query I rowsort
SELECT ALL + 73 * 69 + - 95 col1
----
4942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT - 97 DIV - + 24 - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4823
SELECT - 97 / - + 24 - COUNT ( * ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT - ( + COUNT( * ) ) * - + 92 + - 72 + + COALESCE ( - 63, ( - + ( 95 ) ) + - - 54, 40 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - ( + COUNT ( * ) ) * - + 92 + - 72 + + COALESCE ( - 63, ( - + ( 95 ) ) + - - 54, 40 ) AS col1
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-4825
SELECT ALL - 1 * 72 + + - ( - 72 ) + 48 * + 8 AS col2, 32 - + NULLIF ( + 48, - ( - 53 ) ) + - ( 6 ) DIV 79
----
384
-16

skipif mysql # not compatible
query II rowsort label-4825
SELECT ALL - 1 * 72 + + - ( - 72 ) + 48 * + 8 AS col2, 32 - + NULLIF ( + 48, - ( - 53 ) ) + - ( 6 ) / 79
----
384
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT ALL - + 12 * + CAST( + 0 AS SIGNED ) + - - ( + MIN( ALL + 11 ) )
----
11

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - + 12 * + CAST ( + 0 AS INTEGER ) + - - ( + MIN ( ALL + 11 ) )
----
11

query I rowsort
SELECT - 6 * + 74 + 3 * 65
----
-249

onlyif mysql # DIV for integer division: 
query II rowsort label-4828
SELECT - 96 AS col2, 76 DIV 63 * 87 AS col2
----
-96
87

skipif mysql # not compatible
query II rowsort label-4828
SELECT - 96 AS col2, 76 / 63 * 87 AS col2
----
-96
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4829
SELECT 75 * COUNT( * ) + - 22 - CAST( NULL AS SIGNED ) - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT 75 * COUNT ( * ) + - 22 - CAST ( NULL AS INTEGER ) - - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL + 72 * - COUNT( * ) + + 63 + - 26 * - 54 * - 6 AS col1
----
-8433

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + 72 * - COUNT ( * ) + + 63 + - 26 * - 54 * - 6 AS col1
----
-8433

query I rowsort
SELECT + + 0 - + - 79
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4832
SELECT ALL ( - COALESCE ( + + 31, + CASE + + CAST( NULL AS DECIMAL ) WHEN ( + 16 ) * + 25 + + AVG ( NULLIF ( - - 99, 26 + 72 ) ) THEN NULL ELSE - 32 END ) ) * + 52 + COUNT( * ) AS col2
----
-1611

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL ( - COALESCE ( + + 31, + CASE + + CAST ( NULL AS REAL ) WHEN ( + 16 ) * + 25 + + AVG ( NULLIF ( - - 99, 26 + 72 ) ) THEN NULL ELSE - 32 END ) ) * + 52 + COUNT ( * ) AS col2
----
-1611

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT - MIN( 56 ) * - CASE + 43 WHEN + 4 + - MIN( + 64 ) * + ( - 94 ) THEN NULL ELSE 61 + 38 END + 58
----
5602

skipif mysql # not compatible
query I rowsort label-4833
SELECT - MIN ( 56 ) * - CASE + 43 WHEN + 4 + - MIN ( + 64 ) * + ( - 94 ) THEN NULL ELSE 61 + 38 END + 58
----
5602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT ALL CAST( + MAX( DISTINCT - 38 ) AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL CAST ( + MAX ( DISTINCT - 38 ) AS INTEGER )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4835
SELECT ALL CAST( NULL AS SIGNED ) col1, ( + + ( + + 60 ) ) - - ( 36 )
----
NULL
96

skipif mysql # not compatible
query II rowsort label-4835
SELECT ALL CAST ( NULL AS INTEGER ) col1, ( + + ( + + 60 ) ) - - ( 36 )
----
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL CAST( + - 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL CAST ( + - 83 AS INTEGER ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT SUM( - - 92 ) * - + 30 + - 35 + - 5 * + 35 * - 49 + COUNT( * ) AS col1
----
5781

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT SUM ( - - 92 ) * - + 30 + - 35 + - 5 * + 35 * - 49 + COUNT ( * ) AS col1
----
5781

query I rowsort
SELECT ALL 10 * - - 66 * - - 12
----
7920

query I rowsort
SELECT + 16 + 67
----
83

query I rowsort
SELECT ALL 21 - + 16 + 32 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT DISTINCT 80 * - - CAST( 25 AS SIGNED ) AS col0
----
2000

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT 80 * - - CAST ( 25 AS INTEGER ) AS col0
----
2000

query I rowsort
SELECT + 92 + + - COALESCE ( 33, - 71 * 29 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT + 9 DIV + 84 * - + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT + 9 / + 84 * - + 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT + ( + 73 ) + + NULLIF ( - SUM( ALL + 15 ), + + 6 / - 36 * 39 ) + + 44
----
102

skipif mysql # not compatible
query I rowsort label-4844
SELECT + ( + 73 ) + + NULLIF ( - SUM ( ALL + 15 ), + + 6 / - 36 * 39 ) + + 44
----
102

query I rowsort
SELECT + 85 + - 37 AS col1
----
48

query II rowsort
SELECT 64, 60 AS col1
----
64
60

query III rowsort
SELECT - ( 73 ) col1, - ( - + 30 ) AS col2, 80 AS col0
----
-73
30
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL 38 * + COUNT( * ) * - 80 AS col1
----
-3040

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL 38 * + COUNT ( * ) * - 80 AS col1
----
-3040

query I rowsort
SELECT + 50 * + 67 AS col1
----
3350

query I rowsort
SELECT ALL COALESCE ( + 2, 50 + - 42 + - ( + + 4 ) - - 12 )
----
2

query I rowsort
SELECT + 67 + ( - - 61 )
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4852
SELECT 94 AS col1, + CAST( NULL AS SIGNED ) + 48
----
94
NULL

skipif mysql # not compatible
query II rowsort label-4852
SELECT 94 AS col1, + CAST ( NULL AS INTEGER ) + 48
----
94
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT ALL COUNT( * ) AS col1, - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-4853
SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) AS col0
----
1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4854
SELECT + - 2 * + + 23 * + + SUM( DISTINCT - 63 ) AS col0, 13
----
2898
13

skipif mysql # not compatible
query II rowsort label-4854
SELECT + - 2 * + + 23 * + + SUM ( DISTINCT - 63 ) AS col0, 13
----
2898
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + + 27 - - 42 + 64 * - 33 * - 35 - COUNT( - - 48 )
----
73988

skipif mysql # not compatible
query I rowsort label-4855
SELECT + + 27 - - 42 + 64 * - 33 * - 35 - COUNT ( - - 48 )
----
73988

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT - 50 * COUNT( * ) + + 59 + COUNT( * ) AS col2, + 27
----
10
27

skipif mysql # not compatible
query II rowsort label-4856
SELECT - 50 * COUNT ( * ) + + 59 + COUNT ( * ) AS col2, + 27
----
10
27

query I rowsort
SELECT + NULLIF ( + + 96, 32 ) AS col0
----
96

query I rowsort
SELECT - 28 * 32 + 87 AS col2
----
-809

query I rowsort
SELECT ALL + - 54 + + - 35 * 20 AS col0
----
-754

query I rowsort
SELECT ALL 11 + + 16 * + 64 col1
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT - 97 + + ( + 72 ) + + COUNT( * ) + - 63
----
-87

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT - 97 + + ( + 72 ) + + COUNT ( * ) + - 63
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-4862
SELECT + 34, - COUNT( * ) AS col0
----
34
-1

skipif mysql # not compatible
query II rowsort label-4862
SELECT + 34, - COUNT ( * ) AS col0
----
34
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT ALL + SUM( ( - 78 ) ) + - 33 + COUNT( * ) * CAST( - ( + 6 ) AS SIGNED ) + - CAST( NULL AS SIGNED ) + ( - 36 ) + 34 * - ( CASE 93 WHEN + 28 + CAST( - 19 + + ( 2 ) AS SIGNED ) THEN - MAX( 59 ) END / 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + SUM ( ( - 78 ) ) + - 33 + COUNT ( * ) * CAST ( - ( + 6 ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) + ( - 36 ) + 34 * - ( CASE 93 WHEN + 28 + CAST ( - 19 + + ( 2 ) AS INTEGER ) THEN - MAX ( 59 ) END / 85 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4864
SELECT + 78 + + COUNT( * ) DIV COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4864
SELECT + 78 + + COUNT ( * ) / COUNT ( * )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4865
SELECT DISTINCT + COUNT( * ) + - CASE - 62 WHEN - COALESCE ( - COUNT( * ), - 15 - + + 32, + + 41 ) THEN + COALESCE ( 64, COUNT( - 46 ), CAST( 86 AS SIGNED ) ) + 81 DIV + 76 ELSE - 4 END AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT + COUNT ( * ) + - CASE - 62 WHEN - COALESCE ( - COUNT ( * ), - 15 - + + 32, + + 41 ) THEN + COALESCE ( 64, COUNT ( - 46 ), CAST ( 86 AS INTEGER ) ) + 81 / + 76 ELSE - 4 END AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + COUNT( + 18 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4866
SELECT + COUNT ( + 18 ) AS col0
----
1

query I rowsort
SELECT 74 + - - 77
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT + COUNT( * ) * 80 + + ( - ( + 40 ) ) / + 74 * + ( 13 ) + 15 + + - 29 + + 51 + - CAST( NULL AS SIGNED ) / 58 * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT + COUNT ( * ) * 80 + + ( - ( + 40 ) ) / + 74 * + ( 13 ) + 15 + + - 29 + + 51 + - CAST ( NULL AS INTEGER ) / 58 * 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4869
SELECT - 82 * + 60 + 49 + 42 DIV - SUM( - 70 ) * 97 - + 2
----
-4873

skipif mysql # not compatible
query I rowsort label-4869
SELECT - 82 * + 60 + 49 + 42 / - SUM ( - 70 ) * 97 - + 2
----
-4873

query I rowsort
SELECT ALL + 49 + + 5 * 42
----
259

query I rowsort
SELECT DISTINCT + 69 - 67 * + 50
----
-3281

query I rowsort
SELECT ALL - 51 - + + 37 - - + 7
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4873
SELECT 67 - + 13 + 22 + - 74 / 19 * - CAST( NULL AS DECIMAL ) * NULLIF ( - - COUNT( * ), - CAST( NULL AS SIGNED ) * - 15 / + COUNT( * ) * - + 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT 67 - + 13 + 22 + - 74 / 19 * - CAST ( NULL AS REAL ) * NULLIF ( - - COUNT ( * ), - CAST ( NULL AS INTEGER ) * - 15 / + COUNT ( * ) * - + 42 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT COUNT( * ) * 88 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4874
SELECT COUNT ( * ) * 88 AS col1
----
88

query I rowsort
SELECT 77 - - 2 col2
----
79

query I rowsort
SELECT 92 * - ( - - 45 ) col1
----
-4140

query I rowsort
SELECT DISTINCT + 79 * - 8
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT COUNT( * ) - - 94 * 41 + COALESCE ( + COUNT( DISTINCT - NULLIF ( + + 51, 92 ) ), - + 13, - - 1 + NULLIF ( + ( + ( - 59 ) ), CASE WHEN NOT ( + COUNT( * ) ) NOT BETWEEN + 96 * 46 AND - 63 THEN NULL ELSE - 40 / + 80 END / + 15 - 79 * + MIN( ALL + 88 / + 24 ) ) - 22 * 2 )
----
3856

skipif mysql # not compatible
query I rowsort label-4878
SELECT COUNT ( * ) - - 94 * 41 + COALESCE ( + COUNT ( DISTINCT - NULLIF ( + + 51, 92 ) ), - + 13, - - 1 + NULLIF ( + ( + ( - 59 ) ), CASE WHEN NOT ( + COUNT ( * ) ) NOT BETWEEN + 96 * 46 AND - 63 THEN NULL ELSE - 40 / + 80 END / + 15 - 79 * + MIN ( ALL + 88 / + 24 ) ) - 22 * 2 )
----
3856

query I rowsort
SELECT ALL ( - 60 ) * - 51
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT COALESCE ( + ( + COALESCE ( - 29, COUNT( * ) + + + 83 ) ), - 73 * - 29 ) * + 23 * - MAX( ALL - - 17 ) AS col1
----
11339

skipif mysql # not compatible
query I rowsort label-4880
SELECT COALESCE ( + ( + COALESCE ( - 29, COUNT ( * ) + + + 83 ) ), - 73 * - 29 ) * + 23 * - MAX ( ALL - - 17 ) AS col1
----
11339

query I rowsort
SELECT ( - - 31 ) * 22
----
682

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT ( 52 ) DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-4882
SELECT ( 52 ) / + 41
----
1

query I rowsort
SELECT ALL ( 87 ) * + 34 AS col2
----
2958

query I rowsort
SELECT 11 + - 64
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4885
SELECT DISTINCT - 87 + 15 * CAST( + - SUM( DISTINCT CASE - + 39 WHEN - 58 THEN + 31 + + + CAST( NULL AS SIGNED ) / + - 4 * 2 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - 87 + 15 * CAST ( + - SUM ( DISTINCT CASE - + 39 WHEN - 58 THEN + 31 + + + CAST ( NULL AS INTEGER ) / + - 4 * 2 END ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + COUNT( * ) + + 23 * 37 AS col2
----
852

skipif mysql # not compatible
query I rowsort label-4886
SELECT + COUNT ( * ) + + 23 * 37 AS col2
----
852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT 9 - - 32 + 38 / - - CAST( NULL AS SIGNED ) * - + ( - 89 ) * + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT 9 - - 32 + 38 / - - CAST ( NULL AS INTEGER ) * - + ( - 89 ) * + 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL - MAX( DISTINCT 41 ) + + 28 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL - MAX ( DISTINCT 41 ) + + 28 AS col0
----
-13

query I rowsort
SELECT NULLIF ( - - 35, + 46 )
----
35

query I rowsort
SELECT DISTINCT 83 + 78 * + 14
----
1175

onlyif mysql # DIV for integer division: 
query II rowsort label-4891
SELECT + 68 DIV 65 + + 90 AS col0, + 48 + + - 98 AS col0
----
91
-50

skipif mysql # not compatible
query II rowsort label-4891
SELECT + 68 / 65 + + 90 AS col0, + 48 + + - 98 AS col0
----
91
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT ALL - MAX( 99 ) AS col0, 47
----
-99
47

skipif mysql # not compatible
query II rowsort label-4892
SELECT ALL - MAX ( 99 ) AS col0, 47
----
-99
47

query II rowsort
SELECT DISTINCT - - ( - - 86 ), 8 * + 76 + 87 col1
----
86
695

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT - - 21 DIV - 19 - - 12 * 50
----
599

skipif mysql # not compatible
query I rowsort label-4894
SELECT - - 21 / - 19 - - 12 * 50
----
599

query I rowsort
SELECT 99 + - 90
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT + 19 * + SUM( ALL COALESCE ( - NULLIF ( + 72, - - 87 + + 60 ), - - 52 ) ) + - COUNT( DISTINCT - 32 )
----
-1369

skipif mysql # not compatible
query I rowsort label-4896
SELECT + 19 * + SUM ( ALL COALESCE ( - NULLIF ( + 72, - - 87 + + 60 ), - - 52 ) ) + - COUNT ( DISTINCT - 32 )
----
-1369

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT + 51 * + 10 + - + COUNT( * ) + 22 AS col1
----
531

skipif mysql # not compatible
query I rowsort label-4897
SELECT + 51 * + 10 + - + COUNT ( * ) + 22 AS col1
----
531

query I rowsort
SELECT 88 * + 18
----
1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4899
SELECT - COUNT( * ) * 10 DIV 26 DIV 65 - + 84 + + + 99 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4899
SELECT - COUNT ( * ) * 10 / 26 / 65 - + 84 + + + 99 AS col2
----
15

query I rowsort
SELECT ALL 25 * 38 AS col0
----
950

query I rowsort
SELECT DISTINCT 30 - + 88
----
-58

query I rowsort
SELECT ALL - 92 * 42
----
-3864

query I rowsort
SELECT 87 + + 62 AS col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL 46 - + MIN( ALL - ( 13 ) )
----
59

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL 46 - + MIN ( ALL - ( 13 ) )
----
59

query I rowsort
SELECT ALL 5 * + - 87
----
-435

query I rowsort
SELECT 20 * + 8 + - 25 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT 3 * - ( + + COUNT( * ) ) * + 50
----
-150

skipif mysql # not compatible
query I rowsort label-4907
SELECT 3 * - ( + + COUNT ( * ) ) * + 50
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4908
SELECT ALL - COUNT( * ) AS col2, + CAST( - - COUNT( * ) AS SIGNED )
----
-1
1

skipif mysql # not compatible
query II rowsort label-4908
SELECT ALL - COUNT ( * ) AS col2, + CAST ( - - COUNT ( * ) AS INTEGER )
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4909
SELECT - 25 * - 40 * - 93 - 50 - - CASE + + 56 WHEN + + 12 THEN - CAST( - - 79 AS DECIMAL ) WHEN 90 + 2 THEN NULL END - - - 30 * + 76 * MIN( - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT - 25 * - 40 * - 93 - 50 - - CASE + + 56 WHEN + + 12 THEN - CAST ( - - 79 AS REAL ) WHEN 90 + 2 THEN NULL END - - - 30 * + 76 * MIN ( - 74 )
----
NULL

query I rowsort
SELECT 15 * + - 79
----
-1185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4911
SELECT 86 + - 90 + + - 85 / - 38 * 56 * - 74 * - 70 * + MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT 86 + - 90 + + - 85 / - 38 * 56 * - 74 * - 70 * + MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 22 - - 9 + 47 * - 61 + 63 + + ( + 49 )
----
-2724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4913
SELECT ALL - NULLIF ( + 1, + MIN( + 70 ) DIV 92 * + 64 ) DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL - NULLIF ( + 1, + MIN ( + 70 ) / 92 * + 64 ) / 46
----
0

query I rowsort
SELECT + 25 * - 94 + + 34
----
-2316

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT + ( + - COUNT( * ) ) * 80 * - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT + ( + - COUNT ( * ) ) * 80 * - COUNT ( * ) AS col1
----
80

query I rowsort
SELECT 21 + - + 1
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4917
SELECT ALL + 57 * + + 53 * + ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + 57 * + + 53 * + ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4918
SELECT DISTINCT COUNT( * ) AS col1, - 46 DIV 7 AS col0
----
1
-6

skipif mysql # not compatible
query II rowsort label-4918
SELECT DISTINCT COUNT ( * ) AS col1, - 46 / 7 AS col0
----
1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT + COUNT( * ) + + - 26 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT + COUNT ( * ) + + - 26 AS col2
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-4920
SELECT - 91, 64 DIV - 73 col1
----
-91
0

skipif mysql # not compatible
query II rowsort label-4920
SELECT - 91, 64 / - 73 col1
----
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT - 8 + + + 24 + - + 24 + 50 * COUNT( * ) * - ( + 27 ) + + - 98 + + - 7
----
-1463

skipif mysql # not compatible
query I rowsort label-4921
SELECT - 8 + + + 24 + - + 24 + 50 * COUNT ( * ) * - ( + 27 ) + + - 98 + + - 7
----
-1463

query I rowsort
SELECT DISTINCT + 13 + - 8
----
5

query I rowsort
SELECT ALL - - 20 + 32 * 57
----
1844

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL - COALESCE ( - + ( 18 ), CASE - - COUNT( * ) WHEN - COUNT( * ) THEN - 89 WHEN - + 3 * - 99 / + 11 * + 17 / COUNT( * ) + - 90 + + 78 THEN NULL ELSE NULL END ) + 6
----
24

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - COALESCE ( - + ( 18 ), CASE - - COUNT ( * ) WHEN - COUNT ( * ) THEN - 89 WHEN - + 3 * - 99 / + 11 * + 17 / COUNT ( * ) + - 90 + + 78 THEN NULL ELSE NULL END ) + 6
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4925
SELECT DISTINCT - CAST( CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) + - - 95
----
94

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT - CAST ( CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) + - - 95
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL CASE 56 WHEN COUNT( * ) / - 60 + + 91 THEN + + 97 + + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL CASE 56 WHEN COUNT ( * ) / - 60 + + 91 THEN + + 97 + + 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + + 70 * CASE + 3 WHEN 57 / + MIN( ALL 63 ) THEN - 22 * - - 67 + 45 * COUNT( * ) * - 71 + 8 WHEN - 11 THEN NULL END / + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT + + 70 * CASE + 3 WHEN 57 / + MIN ( ALL 63 ) THEN - 22 * - - 67 + 45 * COUNT ( * ) * - 71 + 8 WHEN - 11 THEN NULL END / + 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT ALL - 64 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL - 64 / 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4929
SELECT - 80 AS col0, COALESCE ( COUNT( * ), + 28 ) AS col0
----
-80
1

skipif mysql # not compatible
query II rowsort label-4929
SELECT - 80 AS col0, COALESCE ( COUNT ( * ), + 28 ) AS col0
----
-80
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT - 4 - + ( - ( CAST( - 14 AS SIGNED ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-4930
SELECT - 4 - + ( - ( CAST ( - 14 AS INTEGER ) ) )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT + 73 * 4 DIV + - 45 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4931
SELECT + 73 * 4 / + - 45 AS col0
----
-6

query II rowsort
SELECT ALL 57 * + 43 * 65, - 26 col1
----
159315
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4933
SELECT + COUNT( * ) AS col0, 37 AS col1
----
1
37

skipif mysql # not compatible
query II rowsort label-4933
SELECT + COUNT ( * ) AS col0, 37 AS col1
----
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT 53 * + COUNT( * ) - - 37
----
90

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT 53 * + COUNT ( * ) - - 37
----
90

query I rowsort
SELECT + + 43 * ( - 67 )
----
-2881

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4936
SELECT ALL + CAST( NULL AS SIGNED ) / + ( + 59 ) AS col2, - 94 * + + 18 col1
----
NULL
-1692

skipif mysql # not compatible
query II rowsort label-4936
SELECT ALL + CAST ( NULL AS INTEGER ) / + ( + 59 ) AS col2, - 94 * + + 18 col1
----
NULL
-1692

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT - 9 * + 7 - - 73 + + - SUM( 73 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - 9 * + 7 - - 73 + + - SUM ( 73 ) AS col0
----
-63

query I rowsort
SELECT ALL - 63 * - 43 + 0 AS col0
----
2709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT + + 59 / - 96 * CAST( NULL AS SIGNED ) + CAST( ( + COUNT( * ) ) AS SIGNED ) * - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT + + 59 / - 96 * CAST ( NULL AS INTEGER ) + CAST ( ( + COUNT ( * ) ) AS INTEGER ) * - 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL + NULLIF ( - - 72, MAX( ALL + 31 ) + - - 29 ) col0
----
72

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + NULLIF ( - - 72, MAX ( ALL + 31 ) + - - 29 ) col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4941
SELECT CASE + 38 WHEN + + COUNT( * ) THEN NULL WHEN 80 * + 10 + - 75 THEN + 1 END AS col2, + 85
----
NULL
85

skipif mysql # not compatible
query II rowsort label-4941
SELECT CASE + 38 WHEN + + COUNT ( * ) THEN NULL WHEN 80 * + 10 + - 75 THEN + 1 END AS col2, + 85
----
NULL
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4942
SELECT + 10 + + CAST( + 10 AS SIGNED ) * + COUNT( * ) + + 5 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4942
SELECT + 10 + + CAST ( + 10 AS INTEGER ) * + COUNT ( * ) + + 5 AS col1
----
25

query I rowsort
SELECT - 59 * - ( - 14 ) + 21 + - 40
----
-845

query II rowsort
SELECT + 57 * + - 54 col0, + 35 * 28 col2
----
-3078
980

query I rowsort
SELECT + ( 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL + MIN( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL + MIN ( DISTINCT - 1 )
----
-1

query II rowsort
SELECT + ( 29 ) AS col1, + 46 * - 15 + - 29 AS col1
----
29
-719

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT MAX( ALL - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4948
SELECT MAX ( ALL - 60 ) AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4949
SELECT - 44 DIV - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4949
SELECT - 44 / - COUNT ( * )
----
44

query I rowsort
SELECT DISTINCT + 40 * + - 84 + 76 * 56 + + 4
----
900

query II rowsort
SELECT ALL - 56 * + - 29 * - 84 + + 32 col2, - ( 71 )
----
-136384
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT - 79 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT - 79 / 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT 62 * - COUNT( * ) - - 86
----
24

skipif mysql # not compatible
query I rowsort label-4953
SELECT 62 * - COUNT ( * ) - - 86
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4954
SELECT + 67 + - 19 - - + ( - 8 ) + - + 38 * 37 - 45 - 49 DIV + 29 + - 27 * + 33 AS col0
----
-2303

skipif mysql # not compatible
query I rowsort label-4954
SELECT + 67 + - 19 - - + ( - 8 ) + - + 38 * 37 - 45 - 49 / + 29 + - 27 * + 33 AS col0
----
-2303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4955
SELECT DISTINCT - MAX( + + CASE WHEN + 99 IS NOT NULL THEN + - 86 ELSE NULL END ) DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT - MAX ( + + CASE WHEN + 99 IS NOT NULL THEN + - 86 ELSE NULL END ) / - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL COUNT( * ) + + 99 * + COUNT( - 45 ) * + - 98
----
-9701

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL COUNT ( * ) + + 99 * + COUNT ( - 45 ) * + - 98
----
-9701

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4957
SELECT DISTINCT ( - CASE - CAST( NULL AS SIGNED ) WHEN 20 THEN NULLIF ( - + 62, 41 ) + + - 81 + + 67 DIV - 21 DIV - 45 ELSE - 80 END ) + - + 64 + + - ( 25 ) + 86
----
77

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT ( - CASE - CAST ( NULL AS INTEGER ) WHEN 20 THEN NULLIF ( - + 62, 41 ) + + - 81 + + 67 / - 21 / - 45 ELSE - 80 END ) + - + 64 + + - ( 25 ) + 86
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL + + SUM( DISTINCT - 29 ) + + 5 + + 14 + + 35 + - 56 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + + SUM ( DISTINCT - 29 ) + + 5 + + 14 + + 35 + - 56 AS col1
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4959
SELECT - - 74 - - CAST( NULL AS DECIMAL ) + - ( + - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT - - 74 - - CAST ( NULL AS REAL ) + - ( + - 68 )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 45, + - 61 ) AS col0
----
45

query I rowsort
SELECT - 35 + - 48 + + 75 AS col1
----
-8

query I rowsort
SELECT + 74 * 86 + - + 39
----
6325

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL + - 5 - - COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + - 5 - - COUNT ( * ) AS col1
----
-4

query I rowsort
SELECT - - NULLIF ( + - 76, + 20 - + + 16 + 17 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL - + MAX( DISTINCT - - 38 ) * - 18
----
684

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - + MAX ( DISTINCT - - 38 ) * - 18
----
684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4966
SELECT - COALESCE ( 14, 90, - + CAST( ( - NULLIF ( 74, + + 68 + 81 * + 71 ) ) AS SIGNED ) * + ( - 55 ) ) AS col2, - 28 * - CASE + 67 WHEN 29 THEN ( - 96 ) - NULLIF ( COALESCE ( - 10, + 90 ), + 97 ) WHEN - 85 - 62 * CASE - 38 + ( - 15 ) WHEN - 93 THEN + 8 ELSE 84 * + COUNT( * ) END THEN + 22 ELSE NULL END / + 78 AS col0
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-4966
SELECT - COALESCE ( 14, 90, - + CAST ( ( - NULLIF ( 74, + + 68 + 81 * + 71 ) ) AS INTEGER ) * + ( - 55 ) ) AS col2, - 28 * - CASE + 67 WHEN 29 THEN ( - 96 ) - NULLIF ( COALESCE ( - 10, + 90 ), + 97 ) WHEN - 85 - 62 * CASE - 38 + ( - 15 ) WHEN - 93 THEN + 8 ELSE 84 * + COUNT ( * ) END THEN + 22 ELSE NULL END / + 78 AS col0
----
-14
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4967
SELECT DISTINCT - NULLIF ( + CASE + 56 WHEN 76 * 93 THEN NULL WHEN + - 73 THEN - 10 - + 3 ELSE - - 25 DIV - 87 + - + COUNT( DISTINCT - 23 ) + - - 49 END, - 92 * + 74 + + CAST( 50 + SUM( ( 41 ) ) AS SIGNED ) ) DIV - 13 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT - NULLIF ( + CASE + 56 WHEN 76 * 93 THEN NULL WHEN + - 73 THEN - 10 - + 3 ELSE - - 25 / - 87 + - + COUNT ( DISTINCT - 23 ) + - - 49 END, - 92 * + 74 + + CAST ( 50 + SUM ( ( 41 ) ) AS INTEGER ) ) / - 13 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - + 97 * - 20 - + + 13 + - MAX( DISTINCT + 14 )
----
1913

skipif mysql # not compatible
query I rowsort label-4968
SELECT - + 97 * - 20 - + + 13 + - MAX ( DISTINCT + 14 )
----
1913

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - MIN( + ( - ( 0 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4969
SELECT - MIN ( + ( - ( 0 ) ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4970
SELECT DISTINCT + + ( - CASE + + COUNT( 87 ) WHEN + - 16 * - + 40 * + 50 THEN - + 99 END ) / - COALESCE ( 93, + - MIN( 22 ) + NULLIF ( + - 56, CAST( NULL AS SIGNED ) ) / + COALESCE ( - 41, - 71 ) ) - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT + + ( - CASE + + COUNT ( 87 ) WHEN + - 16 * - + 40 * + 50 THEN - + 99 END ) / - COALESCE ( 93, + - MIN ( 22 ) + NULLIF ( + - 56, CAST ( NULL AS INTEGER ) ) / + COALESCE ( - 41, - 71 ) ) - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT + - CAST( + - 4 AS SIGNED ) / 13 * + - 25 + + CAST( NULL AS SIGNED ) + - MIN( + 65 ) - + COUNT( * ) - - ( 9 ) + + - 16 / - 91 * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT + - CAST ( + - 4 AS INTEGER ) / 13 * + - 25 + + CAST ( NULL AS INTEGER ) + - MIN ( + 65 ) - + COUNT ( * ) - - ( 9 ) + + - 16 / - 91 * - 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT - 4 DIV + 64 * 2
----
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT - 4 / + 64 * 2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT + MAX( + 67 ) * - 91
----
-6097

skipif mysql # not compatible
query I rowsort label-4973
SELECT + MAX ( + 67 ) * - 91
----
-6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 91
----
NULL

query I rowsort
SELECT DISTINCT - 20 * - - 96
----
-1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT ( - CASE + + 47 WHEN - + 11 THEN NULL ELSE - 97 END ) * + 31 + CASE + ( - ( + 1 ) ) WHEN + + 87 * + + SUM( + 61 ) THEN 7 END - - + CAST( NULL AS SIGNED ) * - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT ( - CASE + + 47 WHEN - + 11 THEN NULL ELSE - 97 END ) * + 31 + CASE + ( - ( + 1 ) ) WHEN + + 87 * + + SUM ( + 61 ) THEN 7 END - - + CAST ( NULL AS INTEGER ) * - 63 AS col2
----
NULL

query II rowsort
SELECT ALL + 60 AS col0, 16
----
60
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT DISTINCT - 75 * - + COUNT( DISTINCT 87 )
----
75

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - 75 * - + COUNT ( DISTINCT 87 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT + COUNT( * ) * - 64
----
-64

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + COUNT ( * ) * - 64
----
-64

query I rowsort
SELECT + 51 + - 54 col0
----
-3

query I rowsort
SELECT ALL - 57 * - 50 AS col2
----
2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4982
SELECT + COUNT( + CAST( + 92 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4982
SELECT + COUNT ( + CAST ( + 92 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT - 97 * 29
----
-2813

onlyif mysql # aggregate syntax: 
query II rowsort label-4984
SELECT 66 * 89 + - COUNT( * ) - - 89 + - COALESCE ( + 45, - CASE 33 WHEN 72 THEN NULL ELSE - - 64 + + - 48 END + - + 23 ) * + 92 AS col2, + ( - + 88 ) * 61
----
1822
-5368

skipif mysql # not compatible
query II rowsort label-4984
SELECT 66 * 89 + - COUNT ( * ) - - 89 + - COALESCE ( + 45, - CASE 33 WHEN 72 THEN NULL ELSE - - 64 + + - 48 END + - + 23 ) * + 92 AS col2, + ( - + 88 ) * 61
----
1822
-5368

query I rowsort
SELECT ALL 9 + 20 AS col1
----
29

query I rowsort
SELECT 94 * - + 60 + - 67 AS col2
----
-5707

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT 44 + + SUM( DISTINCT - 64 ) - - - 96 AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT 44 + + SUM ( DISTINCT - 64 ) - - - 96 AS col0
----
-116

query II rowsort
SELECT ALL - 82, + 53 col0
----
-82
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4989
SELECT 67 * - COUNT( * ) + - 53 AS col2, ( COUNT( * ) ) - - - 19 + + CAST( 23 AS SIGNED ) * + - 38 * - NULLIF ( - COUNT( * ), 15 * + COUNT( * ) )
----
-120
-892

skipif mysql # not compatible
query II rowsort label-4989
SELECT 67 * - COUNT ( * ) + - 53 AS col2, ( COUNT ( * ) ) - - - 19 + + CAST ( 23 AS INTEGER ) * + - 38 * - NULLIF ( - COUNT ( * ), 15 * + COUNT ( * ) )
----
-120
-892

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT SUM( + NULLIF ( - + 12, + - 80 ) ) - - 35 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4990
SELECT SUM ( + NULLIF ( - + 12, + - 80 ) ) - - 35 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT - MAX( + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT - MAX ( + 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT 8 + 32 + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT 8 + 32 + COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL 31 + ( - MAX( ALL + - 9 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL 31 + ( - MAX ( ALL + - 9 ) ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL COUNT( * ) * - - 98 * + ( + - 39 )
----
-3822

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL COUNT ( * ) * - - 98 * + ( + - 39 )
----
-3822

query II rowsort
SELECT DISTINCT 86 AS col1, + 31
----
86
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT DISTINCT - CASE - 0 WHEN + COUNT( - + 75 ) - + 40 THEN + + 74 * - SUM( DISTINCT + 28 ) * 26 * 16 WHEN + + 27 * - 31 THEN NULL END + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT - CASE - 0 WHEN + COUNT ( - + 75 ) - + 40 THEN + + 74 * - SUM ( DISTINCT + 28 ) * 26 * 16 WHEN + + 27 * - 31 THEN NULL END + - 24
----
NULL

query II rowsort
SELECT - NULLIF ( - + 99, - - 91 ), + 5 * - 35 - - 89 AS col2
----
99
-86

query I rowsort
SELECT 86 + - 44 + + 93 * 62 + - 7
----
5801

query I rowsort
SELECT ALL 89 - + 93
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + 28 * CASE - - 65 WHEN 19 THEN MIN( DISTINCT - 4 ) + + COUNT( * ) + + ( 63 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT + 28 * CASE - - 65 WHEN 19 THEN MIN ( DISTINCT - 4 ) + + COUNT ( * ) + + ( 63 ) END AS col1
----
NULL

query I rowsort
SELECT 4 + + 64
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT - - MIN( ALL 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5002
SELECT - - MIN ( ALL 80 ) AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT ALL + NULLIF ( - CAST( NULL AS SIGNED ), ( - + 39 ) + - 61 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), ( - + 39 ) + - 61 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - MIN( + 29 ) + - 62 + + 48
----
-43

skipif mysql # not compatible
query I rowsort label-5004
SELECT - MIN ( + 29 ) + - 62 + + 48
----
-43

query I rowsort
SELECT - - ( + 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT + 55 + - - 82 * - CASE WHEN NOT NULL NOT BETWEEN + 29 AND + CASE - - 60 WHEN - 60 * - 1 + - 40 THEN + 36 ELSE NULL END + + NULLIF ( - + NULLIF ( 63, - 84 ), 93 / COALESCE ( + MAX( CASE - 12 WHEN 95 THEN - 56 ELSE - ( COALESCE ( NULLIF ( + 34, 68 ), 73 * + ( - 32 ) ) ) * - 56 END ), 15 ) - - 22 ) + 36 THEN 64 * 43 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT + 55 + - - 82 * - CASE WHEN NOT NULL NOT BETWEEN + 29 AND + CASE - - 60 WHEN - 60 * - 1 + - 40 THEN + 36 ELSE NULL END + + NULLIF ( - + NULLIF ( 63, - 84 ), 93 / COALESCE ( + MAX ( CASE - 12 WHEN 95 THEN - 56 ELSE - ( COALESCE ( NULLIF ( + 34, 68 ), 73 * + ( - 32 ) ) ) * - 56 END ), 15 ) - - 22 ) + 36 THEN 64 * 43 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5007
SELECT - 95 * - 98 DIV 1
----
9310

skipif mysql # not compatible
query I rowsort label-5007
SELECT - 95 * - 98 / 1
----
9310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5008
SELECT ALL + MAX( - ( - - 59 ) ) DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL + MAX ( - ( - - 59 ) ) / - 78 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT - 22 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT - 22 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT + 31 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT + 31 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 60 AS col1, 97 AS col2
----
60
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5012
SELECT COALESCE ( - COALESCE ( + 47, + CAST( NULL AS SIGNED ) DIV - AVG ( - 29 ) ), - - 64 * - - 48 + + 97 + COALESCE ( COUNT( * ), - - 16 + - CAST( - - 49 AS SIGNED ) ) ) * 67 + + 19 * 48
----
-2237

skipif mysql # not compatible
query I rowsort label-5012
SELECT COALESCE ( - COALESCE ( + 47, + CAST ( NULL AS INTEGER ) / - AVG ( - 29 ) ), - - 64 * - - 48 + + 97 + COALESCE ( COUNT ( * ), - - 16 + - CAST ( - - 49 AS INTEGER ) ) ) * 67 + + 19 * 48
----
-2237

query I rowsort
SELECT + 44 + ( + + ( - 76 ) )
----
-32

query I rowsort
SELECT 53 + 18
----
71

query II rowsort
SELECT DISTINCT - 13 * ( 90 ), 64 col1
----
-1170
64

query I rowsort
SELECT 43 + 39 + + + 47
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT - 16 + 71 * - - SUM( ALL + - 34 )
----
-2430

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT - 16 + 71 * - - SUM ( ALL + - 34 )
----
-2430

query I rowsort
SELECT ALL + 34 + - 27 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT - MIN( ALL 64 ) * CAST( NULL AS SIGNED ) + - ( - + COALESCE ( + 96, + 27 ) ) + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT - MIN ( ALL 64 ) * CAST ( NULL AS INTEGER ) + - ( - + COALESCE ( + 96, + 27 ) ) + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT DISTINCT + COUNT( * ) + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT + COUNT ( * ) + - 93
----
-92

query I rowsort
SELECT ALL - 62 + - 85
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5022
SELECT ALL + 98 + + + CAST( NULL AS SIGNED ) * CAST( - 16 AS SIGNED ) + MAX( DISTINCT + + 68 ) / - + 8 + + - CAST( 25 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL + 98 + + + CAST ( NULL AS INTEGER ) * CAST ( - 16 AS INTEGER ) + MAX ( DISTINCT + + 68 ) / - + 8 + + - CAST ( 25 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5023
SELECT DISTINCT + 89 * + COUNT( * ) AS col1, 26 DIV + - ( 77 )
----
89
0

skipif mysql # not compatible
query II rowsort label-5023
SELECT DISTINCT + 89 * + COUNT ( * ) AS col1, 26 / + - ( 77 )
----
89
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5024
SELECT + 21, 94 * + CASE - CAST( NULL AS SIGNED ) WHEN - + 8 THEN - - 5 * + + 75 WHEN + - 49 * ( - + 52 ) * - 51 * - 53 THEN - 63 WHEN - ( COUNT( * ) ) + + - COUNT( * ) THEN 5 + 51 END AS col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-5024
SELECT + 21, 94 * + CASE - CAST ( NULL AS INTEGER ) WHEN - + 8 THEN - - 5 * + + 75 WHEN + - 49 * ( - + 52 ) * - 51 * - 53 THEN - 63 WHEN - ( COUNT ( * ) ) + + - COUNT ( * ) THEN 5 + 51 END AS col0
----
21
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5025
SELECT + 74 AS col2, + COUNT( * )
----
74
1

skipif mysql # not compatible
query II rowsort label-5025
SELECT + 74 AS col2, + COUNT ( * )
----
74
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT 21 DIV - + 10
----
-2

skipif mysql # not compatible
query I rowsort label-5026
SELECT 21 / - + 10
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5027
SELECT + CAST( NULL AS DECIMAL ) * - 55 + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT + CAST ( NULL AS REAL ) * - 55 + - 54 AS col0
----
NULL

query I rowsort
SELECT ALL 55 + + 22 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT ALL - COALESCE ( + 80, - ( - - COUNT( 87 ) ) ) * + - COUNT( * ) * - - COALESCE ( - 96, 73 * + NULLIF ( 90, - + 24 ) * + ( 3 ) + + ( + CAST( NULL AS SIGNED ) ) ) * + COALESCE ( 93, 70 ) AS col0
----
-714240

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL - COALESCE ( + 80, - ( - - COUNT ( 87 ) ) ) * + - COUNT ( * ) * - - COALESCE ( - 96, 73 * + NULLIF ( 90, - + 24 ) * + ( 3 ) + + ( + CAST ( NULL AS INTEGER ) ) ) * + COALESCE ( 93, 70 ) AS col0
----
-714240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5030
SELECT ALL 49 DIV ( - + COUNT( * ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL 49 / ( - + COUNT ( * ) ) AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT DISTINCT - CAST( - + 62 AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT - CAST ( - + 62 AS INTEGER ) AS col0
----
62

query I rowsort
SELECT ALL - 0 - - 90 * - 40 AS col1
----
-3600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT 27 * + COUNT( * ) DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT 27 * + COUNT ( * ) / 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT + COALESCE ( - COUNT( * ), - + 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-5034
SELECT + COALESCE ( - COUNT ( * ), - + 83 )
----
-1

query II rowsort
SELECT ALL - 99 AS col0, 7 AS col2
----
-99
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( * ) - + 92 + + 63 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) - + 92 + + 63 AS col1
----
-28

query I rowsort
SELECT 32 * 7 col2
----
224

query II rowsort
SELECT - - 19 col2, + 91
----
19
91

query I rowsort
SELECT + 70 + + 91 + + 51
----
212

query I rowsort
SELECT DISTINCT ( + 91 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT 11 * - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5041
SELECT 11 * - COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT ALL - COUNT( * ) * - 39 * 36
----
1404

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL - COUNT ( * ) * - 39 * 36
----
1404

query II rowsort
SELECT DISTINCT 49 AS col1, 74
----
49
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5044
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) / + + 32 * - + 3 / + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) / + + 32 * - + 3 / + 57
----
NULL

query I rowsort
SELECT + 29 * - 12
----
-348

onlyif mysql # DIV for integer division: 
query II rowsort label-5046
SELECT 97, + 72 DIV - 8 AS col2
----
97
-9

skipif mysql # not compatible
query II rowsort label-5046
SELECT 97, + 72 / - 8 AS col2
----
97
-9

query II rowsort
SELECT - 28 col0, + 16
----
-28
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT + MAX( ALL - 57 ) + COUNT( * ) - - NULLIF ( + 79, - ( - 44 ) )
----
23

skipif mysql # not compatible
query I rowsort label-5048
SELECT + MAX ( ALL - 57 ) + COUNT ( * ) - - NULLIF ( + 79, - ( - 44 ) )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5049
SELECT - 95 DIV NULLIF ( + - 97, CASE - 15 WHEN + - COUNT( * ) * - - 99 + + CAST( - 34 AS SIGNED ) THEN + + COUNT( * ) - + 43 + 20 + - + 31 END - + - COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5049
SELECT - 95 / NULLIF ( + - 97, CASE - 15 WHEN + - COUNT ( * ) * - - 99 + + CAST ( - 34 AS INTEGER ) THEN + + COUNT ( * ) - + 43 + 20 + - + 31 END - + - COUNT ( * ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT SUM( ALL - 75 ) * + 32 * + 4 * - + COALESCE ( + 15, + COALESCE ( - 89, - 65 + - 28, + + MAX( - ( - 98 ) ) * + 72 ), + 42 + + COUNT( * ) ) AS col2
----
144000

skipif mysql # not compatible
query I rowsort label-5050
SELECT SUM ( ALL - 75 ) * + 32 * + 4 * - + COALESCE ( + 15, + COALESCE ( - 89, - 65 + - 28, + + MAX ( - ( - 98 ) ) * + 72 ), + 42 + + COUNT ( * ) ) AS col2
----
144000

query I rowsort
SELECT DISTINCT - 93 + + - 8 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-5052
SELECT 60 * MIN( DISTINCT + + 14 ) * + - ( COUNT( * ) ) * 69 AS col1, 66 + - - 28 AS col1
----
-57960
94

skipif mysql # not compatible
query II rowsort label-5052
SELECT 60 * MIN ( DISTINCT + + 14 ) * + - ( COUNT ( * ) ) * 69 AS col1, 66 + - - 28 AS col1
----
-57960
94

query I rowsort
SELECT ALL - - 20 + + 95
----
115

query I rowsort
SELECT ALL + 75 + + + 96 + - 47 + + 33 + + 21 AS col1
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5055
SELECT ALL COUNT( * ) DIV + 59 * + + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL COUNT ( * ) / + 59 * + + 20 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT - CASE + 61 WHEN 0 + - + 57 THEN 17 WHEN + - 59 THEN NULL WHEN 19 * 34 + + + COUNT( * ) + + NULLIF ( COUNT( * ), + 54 ) + COUNT( * ) + 52 * - AVG ( - + 11 ) + - 51 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT - CASE + 61 WHEN 0 + - + 57 THEN 17 WHEN + - 59 THEN NULL WHEN 19 * 34 + + + COUNT ( * ) + + NULLIF ( COUNT ( * ), + 54 ) + COUNT ( * ) + 52 * - AVG ( - + 11 ) + - 51 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5057
SELECT ALL + 3 * + CASE + 79 WHEN - NULLIF ( + 67, + + MAX( COALESCE ( - 46, - 16 ) ) ) THEN - COUNT( * ) * + - 69 * 0 END AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5057
SELECT ALL + 3 * + CASE + 79 WHEN - NULLIF ( + 67, + + MAX ( COALESCE ( - 46, - 16 ) ) ) THEN - COUNT ( * ) * + - 69 * 0 END AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT 21 * COUNT( * ) * - + SUM( + 98 ) AS col0
----
-2058

skipif mysql # not compatible
query I rowsort label-5058
SELECT 21 * COUNT ( * ) * - + SUM ( + 98 ) AS col0
----
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL - MAX( 86 ) * 31 + 54 AS col2
----
-2612

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL - MAX ( 86 ) * 31 + 54 AS col2
----
-2612

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + 15 + COUNT( * ) col1
----
16

skipif mysql # not compatible
query I rowsort label-5060
SELECT + 15 + COUNT ( * ) col1
----
16

query I rowsort
SELECT COALESCE ( + + 79, - 14 + + 42 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL + ( - 99 ) * - ( + COUNT( * ) )
----
99

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + ( - 99 ) * - ( + COUNT ( * ) )
----
99

query I rowsort
SELECT + 92 + + 19 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT NULLIF ( + COUNT( * ), + 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5064
SELECT NULLIF ( + COUNT ( * ), + 80 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT 3 * - COUNT( * ) + - - COUNT( * ) - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-5065
SELECT 3 * - COUNT ( * ) + - - COUNT ( * ) - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL + 47 * + - ( - 8 ) + + - COUNT( * ) AS col2
----
375

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + 47 * + - ( - 8 ) + + - COUNT ( * ) AS col2
----
375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT - 33 / + CAST( NULL AS SIGNED ) + - 78 + 27 * + 19 / - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT - 33 / + CAST ( NULL AS INTEGER ) + - 78 + 27 * + 19 / - 45 AS col2
----
NULL

query I rowsort
SELECT + 26 * + 37
----
962

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5069
SELECT ( 1 ) * - - 44 + - COUNT( * ) * 1 DIV - + MAX( - 48 ) + - 19 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5069
SELECT ( 1 ) * - - 44 + - COUNT ( * ) * 1 / - + MAX ( - 48 ) + - 19 AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5070
SELECT - 2 + - - CAST( NULL AS SIGNED ) AS col1, + 71 DIV - 30 AS col2
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-5070
SELECT - 2 + - - CAST ( NULL AS INTEGER ) AS col1, + 71 / - 30 AS col2
----
NULL
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL + 31 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL + 31 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 41 + 33 + + 43 AS col2
----
35

query I rowsort
SELECT - + COALESCE ( + + 87, 59, - - 0 - 49 + + NULLIF ( + 60, + 47 + 52 ) * - - 54 ) * + 5 AS col2
----
-435

query I rowsort
SELECT + 90 * 62 * - + 41 + 69 + 13 AS col0
----
-228698

query I rowsort
SELECT - 68 * - 96 - + 99 AS col1
----
6429

query II rowsort
SELECT ALL - - 69 * + 36 AS col0, + 82 AS col2
----
2484
82

query I rowsort
SELECT ALL + 96 * + 11 AS col2
----
1056

onlyif mysql # aggregate syntax: 
query II rowsort label-5078
SELECT DISTINCT - COUNT( * ) * 97, - 47 + - 51 + + COUNT( * )
----
-97
-97

skipif mysql # not compatible
query II rowsort label-5078
SELECT DISTINCT - COUNT ( * ) * 97, - 47 + - 51 + + COUNT ( * )
----
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT ALL + 15 DIV + 73 + + - 28 * 11
----
-308

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + 15 / + 73 + + - 28 * 11
----
-308

query I rowsort
SELECT + + 10 + + + 3
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT + - 35 + + - COUNT( DISTINCT + NULLIF ( - 64, + + 66 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-5081
SELECT + - 35 + + - COUNT ( DISTINCT + NULLIF ( - 64, + + 66 ) )
----
-36

query I rowsort
SELECT - + 8 + NULLIF ( + - 92, + + 62 ) AS col1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-5083
SELECT - - ( - 15 ) + ( - - COUNT( * ) ) * + 74 AS col2, 69
----
59
69

skipif mysql # not compatible
query II rowsort label-5083
SELECT - - ( - 15 ) + ( - - COUNT ( * ) ) * + 74 AS col2, 69
----
59
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5084
SELECT - CASE + 8 WHEN - 18 * - - 37 THEN - + 9 ELSE NULL END * + 40 - + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT - CASE + 8 WHEN - 18 * - - 37 THEN - + 9 ELSE NULL END * + 40 - + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5085
SELECT ALL + - COUNT( * ) + + - 95, 74 * - + 57 * + - 65 * 73 AS col0
----
-96
20014410

skipif mysql # not compatible
query II rowsort label-5085
SELECT ALL + - COUNT ( * ) + + - 95, 74 * - + 57 * + - 65 * 73 AS col0
----
-96
20014410

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT ALL ( 77 ) * + 46 AS col2, - COUNT( * )
----
3542
-1

skipif mysql # not compatible
query II rowsort label-5086
SELECT ALL ( 77 ) * + 46 AS col2, - COUNT ( * )
----
3542
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL + + MIN( - 22 ) + - 29 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + + MIN ( - 22 ) + - 29 AS col2
----
-51

query I rowsort
SELECT ALL - 89 + + ( - 14 ) + - 82 - + 95 AS col2
----
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5089
SELECT DISTINCT + - 39 + - 3 + - + 14 * - 98 * + 83 + + 90 + 80 * 25 * 12 * - + COUNT( * ) - CAST( SUM( DISTINCT + 29 ) AS SIGNED ) + + - 70
----
89825

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + - 39 + - 3 + - + 14 * - 98 * + 83 + + 90 + 80 * 25 * 12 * - + COUNT ( * ) - CAST ( SUM ( DISTINCT + 29 ) AS INTEGER ) + + - 70
----
89825

query I rowsort
SELECT DISTINCT 57 + - 82 + - 20 col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) col2
----
0

query I rowsort
SELECT + 28 + 76
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL MIN( ALL 22 ) + - 74 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL MIN ( ALL 22 ) + - 74 AS col0
----
-52

query I rowsort
SELECT + 74 * 98 AS col1
----
7252

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT + 92 DIV 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5095
SELECT + 92 / 65 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT 68 AS col2, + 84 * + COUNT( * ) * - COUNT( * ) AS col1
----
68
-84

skipif mysql # not compatible
query II rowsort label-5096
SELECT 68 AS col2, + 84 * + COUNT ( * ) * - COUNT ( * ) AS col1
----
68
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5097
SELECT ALL + CAST( NULL AS SIGNED ) / + 67 - + NULLIF ( COUNT( * ), - 31 * + + 59 * 65 / + 42 + + ( MAX( + 13 ) ) + + 87 ) * - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL + CAST ( NULL AS INTEGER ) / + 67 - + NULLIF ( COUNT ( * ), - 31 * + + 59 * 65 / + 42 + + ( MAX ( + 13 ) ) + + 87 ) * - - 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5098
SELECT ALL 38 DIV 47 * - 74 * + 83 * + ( 96 ) * 3 * - COALESCE ( - COUNT( * ), - CASE - 29 WHEN ( + 14 ) THEN - 69 * - COUNT( ALL - - COALESCE ( 63, - 76 * + 15, ( 89 ) + + NULLIF ( CAST( NULL AS DECIMAL ) + + ( 46 ), - 38 ) ) ) + CAST( + 72 AS SIGNED ) END, + CAST( 11 AS SIGNED ) + CAST( NULL AS SIGNED ), 32 ) * 96 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL 38 / 47 * - 74 * + 83 * + ( 96 ) * 3 * - COALESCE ( - COUNT ( * ), - CASE - 29 WHEN ( + 14 ) THEN - 69 * - COUNT ( ALL - - COALESCE ( 63, - 76 * + 15, ( 89 ) + + NULLIF ( CAST ( NULL AS REAL ) + + ( 46 ), - 38 ) ) ) + CAST ( + 72 AS INTEGER ) END, + CAST ( 11 AS INTEGER ) + CAST ( NULL AS INTEGER ), 32 ) * 96 - + COUNT ( * )
----
-1

query II rowsort
SELECT ALL + 66 col1, 32 AS col2
----
66
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5100
SELECT + 62 DIV + SUM( + 87 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT + 62 / + SUM ( + 87 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT + ( + + COALESCE ( + 5, ( + + COUNT( * ) ) + + 62 + COUNT( * ) - ( + 48 ) * - 46, NULLIF ( - 78, + + 59 ) + 87 ) )
----
5

skipif mysql # not compatible
query I rowsort label-5101
SELECT + ( + + COALESCE ( + 5, ( + + COUNT ( * ) ) + + 62 + COUNT ( * ) - ( + 48 ) * - 46, NULLIF ( - 78, + + 59 ) + 87 ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT DISTINCT 85 / - + MAX( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT 85 / - + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 9 * + 8
----
-72

query I rowsort
SELECT ALL 20 * 26
----
520

query I rowsort
SELECT + 26 - - 35
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ( MAX( DISTINCT + + 85 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5106
SELECT ( MAX ( DISTINCT + + 85 ) ) AS col0
----
85

query I rowsort
SELECT + ( - 87 ) AS col1
----
-87

query I rowsort
SELECT - ( - COALESCE ( + - 88, + 99 ) ) * 94
----
-8272

query II rowsort
SELECT ALL + 10 AS col2, 16
----
10
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT + 55 * + COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT + 55 * + COUNT ( * ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT + + 63 * CAST( NULL AS SIGNED ) + + + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT + + 63 * CAST ( NULL AS INTEGER ) + + + 4 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + - 0 AS col1, + 20
----
0
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5113
SELECT + 83 AS col1, 6 * 82 * 69 DIV SUM( 7 ) - - 3 + 39 AS col0
----
83
4891

skipif mysql # not compatible
query II rowsort label-5113
SELECT + 83 AS col1, 6 * 82 * 69 / SUM ( 7 ) - - 3 + 39 AS col0
----
83
4891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5114
SELECT + - 45 + 22 + - MAX( ALL + 88 ) + + 65 * + CAST( NULL AS SIGNED ) / - 29 * - + 6 AS col1, 86 * - - MIN( ALL + 53 ) * + 21 + - 22 AS col2
----
NULL
95696

skipif mysql # not compatible
query II rowsort label-5114
SELECT + - 45 + 22 + - MAX ( ALL + 88 ) + + 65 * + CAST ( NULL AS INTEGER ) / - 29 * - + 6 AS col1, 86 * - - MIN ( ALL + 53 ) * + 21 + - 22 AS col2
----
NULL
95696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5115
SELECT - 34, + 88 * + 26 + - CAST( NULL AS SIGNED ) * - 8 AS col0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-5115
SELECT - 34, + 88 * + 26 + - CAST ( NULL AS INTEGER ) * - 8 AS col0
----
-34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL + - MAX( DISTINCT 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + - MAX ( DISTINCT 89 ) AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT DISTINCT + COALESCE ( + 44, - CAST( NULL AS SIGNED ) )
----
44

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT + COALESCE ( + 44, - CAST ( NULL AS INTEGER ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5118
SELECT - 41 - 84 + - + CAST( NULL AS SIGNED ) AS col0, - 82
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-5118
SELECT - 41 - 84 + - + CAST ( NULL AS INTEGER ) AS col0, - 82
----
NULL
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL - NULLIF ( - + 69, + - MIN( 90 ) + + 98 ) * + ( - 12 ) col1
----
-828

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL - NULLIF ( - + 69, + - MIN ( 90 ) + + 98 ) * + ( - 12 ) col1
----
-828

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT - - 37 DIV 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT - - 37 / 93 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT + CASE - 61 WHEN - 37 THEN + - 4 WHEN 71 * CAST( + - 47 AS SIGNED ) - + - CASE - AVG ( + 57 ) WHEN + - 83 + - 17 / COALESCE ( 45, + 65 + - 17 ) THEN + 92 WHEN + 95 * + 50 THEN NULL ELSE NULL END * 7 + - COUNT( * ) THEN NULL ELSE 24 END * + 15 + + COUNT( * ) AS col2
----
361

skipif mysql # not compatible
query I rowsort label-5121
SELECT + CASE - 61 WHEN - 37 THEN + - 4 WHEN 71 * CAST ( + - 47 AS INTEGER ) - + - CASE - AVG ( + 57 ) WHEN + - 83 + - 17 / COALESCE ( 45, + 65 + - 17 ) THEN + 92 WHEN + 95 * + 50 THEN NULL ELSE NULL END * 7 + - COUNT ( * ) THEN NULL ELSE 24 END * + 15 + + COUNT ( * ) AS col2
----
361

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - + MAX( DISTINCT + 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5122
SELECT - + MAX ( DISTINCT + 7 ) AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT - - CAST( - 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5123
SELECT - - CAST ( - 45 AS INTEGER ) AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5124
SELECT - - COALESCE ( - SUM( 43 ), + 18 * + - ( 42 ) + 9 * + 64 + - 67 + + COUNT( DISTINCT 80 ) * 88 * + - 78 + - 3 * + 3 DIV + CASE - + 45 WHEN - MAX( + 36 ) + ( + 54 ) THEN COUNT( * ) END * + 44 ) + + COUNT( * ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-5124
SELECT - - COALESCE ( - SUM ( 43 ), + 18 * + - ( 42 ) + 9 * + 64 + - 67 + + COUNT ( DISTINCT 80 ) * 88 * + - 78 + - 3 * + 3 / + CASE - + 45 WHEN - MAX ( + 36 ) + ( + 54 ) THEN COUNT ( * ) END * + 44 ) + + COUNT ( * ) col1
----
-42

query I rowsort
SELECT ALL - 93 * - 98
----
9114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5126
SELECT DISTINCT + 34 * ( + 65 ) + COUNT( * ) + - 54 + - + 44 * - + CAST( NULL AS DECIMAL ) + - 30 * - 78 * - - 44 / - - 8 * 45 + - 91 * - + 97 + + + 38 * MAX( + 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT + 34 * ( + 65 ) + COUNT ( * ) + - 54 + - + 44 * - + CAST ( NULL AS REAL ) + - 30 * - 78 * - - 44 / - - 8 * 45 + - 91 * - + 97 + + + 38 * MAX ( + 44 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 90 + + 2 AS col1
----
92

query I rowsort
SELECT 36 + - 69 col0
----
-33

query I rowsort
SELECT ALL + NULLIF ( - - ( + 62 ), + 71 ) + - + ( - 34 )
----
96

query I rowsort
SELECT 2 * - 87
----
-174

query I rowsort
SELECT 5 + 23 + + 76
----
104

query I rowsort
SELECT 15 + 43 col0
----
58

query I rowsort
SELECT 50 * - + 10
----
-500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5134
SELECT DISTINCT 98 * - 83, + CASE ( - 14 ) WHEN - CAST( NULL AS SIGNED ) * 55 THEN + COUNT( * ) END * + CAST( 5 AS SIGNED ) + + 86 * - NULLIF ( + 16, 35 * + 93 ) / - 2 * + + MAX( DISTINCT - 93 ) AS col2
----
-8134
NULL

skipif mysql # not compatible
query II rowsort label-5134
SELECT DISTINCT 98 * - 83, + CASE ( - 14 ) WHEN - CAST ( NULL AS INTEGER ) * 55 THEN + COUNT ( * ) END * + CAST ( 5 AS INTEGER ) + + 86 * - NULLIF ( + 16, 35 * + 93 ) / - 2 * + + MAX ( DISTINCT - 93 ) AS col2
----
-8134
NULL

query I rowsort
SELECT 40 * 8 AS col2
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT ALL 32 * CAST( + 95 AS SIGNED )
----
3040

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL 32 * CAST ( + 95 AS INTEGER )
----
3040

query I rowsort
SELECT 20 + + ( + 15 ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT - 62 / - CAST( NULL AS SIGNED ) + - 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT - 62 / - CAST ( NULL AS INTEGER ) + - 62 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT 65 * + COUNT( * ) * - 4 * - 34
----
8840

skipif mysql # not compatible
query I rowsort label-5139
SELECT 65 * + COUNT ( * ) * - 4 * - 34
----
8840

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT 68 DIV - - 89 * + COALESCE ( + 39, 42 ) - - 41 - + 52 + - 65 * + 69 AS col0
----
-4496

skipif mysql # not compatible
query I rowsort label-5140
SELECT 68 / - - 89 * + COALESCE ( + 39, 42 ) - - 41 - + 52 + - 65 * + 69 AS col0
----
-4496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT MIN( DISTINCT - 14 ) DIV + 1 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5141
SELECT MIN ( DISTINCT - 14 ) / + 1 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT DISTINCT - CAST( + - 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT - CAST ( + - 39 AS INTEGER )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT ALL 66 DIV + 40
----
1

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL 66 / + 40
----
1

query I rowsort
SELECT ( - 86 ) + + - 22
----
-108

query II rowsort
SELECT DISTINCT - ( + - 28 ) AS col0, 1
----
28
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5146
SELECT + 50 DIV - 49 + + MIN( DISTINCT + 75 ) + - + 0 col2
----
74

skipif mysql # not compatible
query I rowsort label-5146
SELECT + 50 / - 49 + + MIN ( DISTINCT + 75 ) + - + 0 col2
----
74

query I rowsort
SELECT ALL 89 + - 61 + CASE - ( + 61 ) WHEN + 52 THEN - 93 + 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT 63 + MIN( 35 )
----
98

skipif mysql # not compatible
query I rowsort label-5148
SELECT 63 + MIN ( 35 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT ALL 29 DIV 2 col1
----
14

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL 29 / 2 col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT - COALESCE ( - CAST( 75 AS SIGNED ), - - 72 ) * + - 20 + + + 66 + + + 20
----
-1414

skipif mysql # not compatible
query I rowsort label-5150
SELECT - COALESCE ( - CAST ( 75 AS INTEGER ), - - 72 ) * + - 20 + + + 66 + + + 20
----
-1414

query I rowsort
SELECT DISTINCT 47 * 49 col2
----
2303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT COUNT( * ) + NULLIF ( - 24, + COUNT( DISTINCT + 23 ) / - 33 ) - ( + CAST( 64 AS SIGNED ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5152
SELECT COUNT ( * ) + NULLIF ( - 24, + COUNT ( DISTINCT + 23 ) / - 33 ) - ( + CAST ( 64 AS INTEGER ) ) AS col1
----
-87

query I rowsort
SELECT + - ( - - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL - COUNT( * ) + 38 - 66 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - COUNT ( * ) + 38 - 66 AS col2
----
-29

query I rowsort
SELECT + 39 + + 22
----
61

query II rowsort
SELECT 32 + + 80, ( + 72 ) AS col1
----
112
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5157
SELECT ALL - ( + - ( 10 ) ) * + NULLIF ( 45, - ( 74 ) * - 36 * 65 * 1 ) + + - 30 - CAST( + - ( - 84 ) AS SIGNED ) + + 96 + - 2 DIV CASE + + 26 WHEN + - 63 THEN + MAX( ALL 32 ) ELSE - COUNT( * ) END AS col1
----
434

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - ( + - ( 10 ) ) * + NULLIF ( 45, - ( 74 ) * - 36 * 65 * 1 ) + + - 30 - CAST ( + - ( - 84 ) AS INTEGER ) + + 96 + - 2 / CASE + + 26 WHEN + - 63 THEN + MAX ( ALL 32 ) ELSE - COUNT ( * ) END AS col1
----
434

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5158
SELECT DISTINCT + 5 + - 16 AS col0, - CAST( NULL AS SIGNED ) * - 24 AS col1
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-5158
SELECT DISTINCT + 5 + - 16 AS col0, - CAST ( NULL AS INTEGER ) * - 24 AS col1
----
-11
NULL

query I rowsort
SELECT DISTINCT - 94 + 91 * + 18 + + 87 AS col1
----
1631

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL COUNT( - 99 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL COUNT ( - 99 ) col1
----
1

query I rowsort
SELECT ALL + - 51 + 58
----
7

query I rowsort
SELECT 4 + + 21 + + - 88
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT ALL + CAST( NULL AS SIGNED ) - - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL + CAST ( NULL AS INTEGER ) - - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT - ( 10 ) * - 36 * MAX( - 15 ) + - MAX( + 33 )
----
-5433

skipif mysql # not compatible
query I rowsort label-5164
SELECT - ( 10 ) * - 36 * MAX ( - 15 ) + - MAX ( + 33 )
----
-5433

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5165
SELECT 15 DIV - 83 * - - ( + 79 ) * + COALESCE ( NULLIF ( ( - 47 ), COUNT( * ) - + - ( - - 30 ) ), - - 65 * ( + 23 ) + + COUNT( * ) + - - NULLIF ( - COUNT( * ), 53 ) * - 81 + - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT 15 / - 83 * - - ( + 79 ) * + COALESCE ( NULLIF ( ( - 47 ), COUNT ( * ) - + - ( - - 30 ) ), - - 65 * ( + 23 ) + + COUNT ( * ) + - - NULLIF ( - COUNT ( * ), 53 ) * - 81 + - CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT 50 + 79 * 26 AS col0
----
2104

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL - COALESCE ( - 13, - COALESCE ( + 99, - - 89 ), + + 7 ) * 55 * - COUNT( ALL + 79 )
----
-715

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - COALESCE ( - 13, - COALESCE ( + 99, - - 89 ), + + 7 ) * 55 * - COUNT ( ALL + 79 )
----
-715

query I rowsort
SELECT 21 * - 12
----
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5169
SELECT ALL SUM( + 83 ) DIV - - 46, + 24 - CASE - - 55 WHEN - + 10 THEN + 54 ELSE NULL END + 73 - - 88 * + + 28 - + 62 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5169
SELECT ALL SUM ( + 83 ) / - - 46, + 24 - CASE - - 55 WHEN - + 10 THEN + 54 ELSE NULL END + 73 - - 88 * + + 28 - + 62 AS col1
----
1
NULL

query I rowsort
SELECT 46 + - + 87 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT DISTINCT + COUNT( * ) * - 63 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT + COUNT ( * ) * - 63 AS col0
----
-63

query I rowsort
SELECT 56 + + + 39
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT 30 DIV + ( 98 ) * NULLIF ( COUNT( * ), + + 40 + - COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5173
SELECT 30 / + ( 98 ) * NULLIF ( COUNT ( * ), + + 40 + - COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL MAX( 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL MAX ( 18 ) AS col2
----
18

query I rowsort
SELECT ALL + NULLIF ( + + 99, ( - 93 ) + 83 + - 50 ) + + 44 col2
----
143

query I rowsort
SELECT ALL 26 * + 27 * - 62 + - 12 AS col1
----
-43536

onlyif mysql # aggregate syntax: 
query II rowsort label-5177
SELECT ALL 39 * MIN( ALL - - 10 ) * + 93 * + 20 + + + 39, 68 AS col1
----
725439
68

skipif mysql # not compatible
query II rowsort label-5177
SELECT ALL 39 * MIN ( ALL - - 10 ) * + 93 * + 20 + + + 39, 68 AS col1
----
725439
68

query I rowsort
SELECT DISTINCT 16 * + - 5 + 24 + 16 * - 76 + + NULLIF ( 41, + 98 - 56 ) AS col0
----
-1231

query I rowsort
SELECT DISTINCT COALESCE ( - - 21, + - 48 ) * - 38 * + 45
----
-35910

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT 58 * + COALESCE ( + 11, 12 ) + - - CASE COUNT( * ) WHEN - - 64 THEN - - 3 * - - 29 * 53 * + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT 58 * + COALESCE ( + 11, 12 ) + - - CASE COUNT ( * ) WHEN - - 64 THEN - - 3 * - - 29 * 53 * + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - - MAX( ALL - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - - MAX ( ALL - 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5182
SELECT DISTINCT + 15 * + + COUNT( + - 15 ), 43 * + + 66 col2
----
15
2838

skipif mysql # not compatible
query II rowsort label-5182
SELECT DISTINCT + 15 * + + COUNT ( + - 15 ), 43 * + + 66 col2
----
15
2838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5183
SELECT ALL 95 * - NULLIF ( + - 11, CAST( NULL AS SIGNED ) ) + - 42 + - + COUNT( ALL - 48 ) * - - 44 + - + 46 + + 79 * ( - - 66 ) AS col2
----
6127

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL 95 * - NULLIF ( + - 11, CAST ( NULL AS INTEGER ) ) + - 42 + - + COUNT ( ALL - 48 ) * - - 44 + - + 46 + + 79 * ( - - 66 ) AS col2
----
6127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5184
SELECT DISTINCT - COALESCE ( + 71, + + 70 + - 60 + - 5 + - NULLIF ( - + 40, - 3 / 94 * 5 ) + COUNT( * ) + + + 17 * CAST( NULL AS SIGNED ) * - COUNT( ALL + + 93 ) * - MIN( - 59 ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT - COALESCE ( + 71, + + 70 + - 60 + - 5 + - NULLIF ( - + 40, - 3 / 94 * 5 ) + COUNT ( * ) + + + 17 * CAST ( NULL AS INTEGER ) * - COUNT ( ALL + + 93 ) * - MIN ( - 59 ) ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT 80 - + - COUNT( * ) + 97 * - 70 * NULLIF ( 22, 7 ) * COUNT( * )
----
-149299

skipif mysql # not compatible
query I rowsort label-5185
SELECT 80 - + - COUNT ( * ) + 97 * - 70 * NULLIF ( 22, 7 ) * COUNT ( * )
----
-149299

query I rowsort
SELECT ALL - + 29 col2
----
-29

query I rowsort
SELECT + + 96 * 85 AS col1
----
8160

query I rowsort
SELECT - ( + 30 ) col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT + MIN( DISTINCT 90 )
----
90

skipif mysql # not compatible
query I rowsort label-5189
SELECT + MIN ( DISTINCT 90 )
----
90

query I rowsort
SELECT + - 10 * - 70 + - 21 + - - 41 + + + 93 * + 11
----
1743

query I rowsort
SELECT + - 4 * - 39 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL + + MIN( + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL + + MIN ( + 19 ) AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT + + 35 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT + + 35 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT + NULLIF ( - 55, + CAST( - 92 AS SIGNED ) ) * + 41 + + - 37 AS col0
----
-2292

skipif mysql # not compatible
query I rowsort label-5194
SELECT + NULLIF ( - 55, + CAST ( - 92 AS INTEGER ) ) * + 41 + + - 37 AS col0
----
-2292

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT - MAX( DISTINCT - - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5195
SELECT - MAX ( DISTINCT - - 33 ) AS col1
----
-33

query I rowsort
SELECT + 28 + + - 51 + - - 63
----
40

query II rowsort
SELECT ALL 34 * - 71 AS col0, - 56
----
-2414
-56

query I rowsort
SELECT + 45 * - 6
----
-270

query I rowsort
SELECT + 9 * 16
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5200
SELECT ALL 61 AS col0, + 21 DIV COUNT( ALL - 6 ) * - COUNT( * ) + + - 9 + 24
----
61
-6

skipif mysql # not compatible
query II rowsort label-5200
SELECT ALL 61 AS col0, + 21 / COUNT ( ALL - 6 ) * - COUNT ( * ) + + - 9 + 24
----
61
-6

query II rowsort
SELECT - 15 AS col2, + 8 AS col1
----
-15
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT - ( COUNT( * ) ) * - 96 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5202
SELECT - ( COUNT ( * ) ) * - 96 AS col1
----
96

query I rowsort
SELECT DISTINCT + 5 * + + 49 col1
----
245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 52 AS col0
----
NULL

query I rowsort
SELECT - ( - NULLIF ( + 47, + 83 ) ) - + 85 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT + MIN( DISTINCT 39 ) + - - ( ( - 58 ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT + MIN ( DISTINCT 39 ) + - - ( ( - 58 ) ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5207
SELECT ALL + 87 * + COUNT( * ) AS col2, - CAST( + 86 AS SIGNED ), - - COUNT( * ) * - 77 + - 31 AS col0
----
87
-86
-108

skipif mysql # not compatible
query III rowsort label-5207
SELECT ALL + 87 * + COUNT ( * ) AS col2, - CAST ( + 86 AS INTEGER ), - - COUNT ( * ) * - 77 + - 31 AS col0
----
87
-86
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT - CAST( NULL AS SIGNED ) / + CASE - - 73 WHEN 89 / + 9 + + 49 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT - CAST ( NULL AS INTEGER ) / + CASE - - 73 WHEN 89 / + 9 + + 49 THEN COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT ALL - 33 DIV - 24 + + 76
----
77

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - 33 / - 24 + + 76
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5210
SELECT ALL 47 DIV - 25 + + 88
----
87

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL 47 / - 25 + + 88
----
87

query I rowsort
SELECT - ( 87 ) + + 41
----
-46

query I rowsort
SELECT NULLIF ( 77, 67 / - 27 * + 22 )
----
77

query II rowsort
SELECT ALL + - 51 AS col1, + 94 * + 38 * - - 62 + - 99 AS col2
----
-51
221365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT + - ( + - MAX( + 31 ) ) / 11 * - CAST( NULL AS SIGNED ) * 83 - - 70 + - + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT + - ( + - MAX ( + 31 ) ) / 11 * - CAST ( NULL AS INTEGER ) * 83 - - 70 + - + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT 93 * + - MIN( + 78 ) + + ( 44 ) AS col2
----
-7210

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT 93 * + - MIN ( + 78 ) + + ( 44 ) AS col2
----
-7210

query I rowsort
SELECT DISTINCT - ( - 7 ) * 13 AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT - + 0 + + CAST( + 25 AS SIGNED ) * 47 col0
----
1175

skipif mysql # not compatible
query I rowsort label-5217
SELECT - + 0 + + CAST ( + 25 AS INTEGER ) * 47 col0
----
1175

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT ALL + ( + - COUNT( * ) ) AS col0, + 21 AS col2
----
-1
21

skipif mysql # not compatible
query II rowsort label-5218
SELECT ALL + ( + - COUNT ( * ) ) AS col0, + 21 AS col2
----
-1
21

query II rowsort
SELECT ALL + + 18, - 69 AS col2
----
18
-69

query I rowsort
SELECT - 96 * 20 * + - 85 AS col0
----
163200

query I rowsort
SELECT DISTINCT + + 30 * + ( 12 ) AS col2
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL + COUNT( * ) * - - 59 + - + 2 - - + COUNT( * ) + + 10 * 7 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL + COUNT ( * ) * - - 59 + - + 2 - - + COUNT ( * ) + + 10 * 7 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5223
SELECT + 93 AS col1, + CAST( NULL AS SIGNED ) + + 46 + + - NULLIF ( - + 97, + 45 * - - MIN( ALL - - 57 ) ) + - 94 + - COUNT( * ) AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-5223
SELECT + 93 AS col1, + CAST ( NULL AS INTEGER ) + + 46 + + - NULLIF ( - + 97, + 45 * - - MIN ( ALL - - 57 ) ) + - 94 + - COUNT ( * ) AS col1
----
93
NULL

query I rowsort
SELECT ALL + 70 * + 53
----
3710

query I rowsort
SELECT + 93 * + - 67 + + 97 - 85 - + 17 * + 64 * - + 46
----
43829

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5226
SELECT 26 AS col2, - ( + 38 ) * - + CAST( 46 AS SIGNED ) + - 37 col2
----
26
1711

skipif mysql # not compatible
query II rowsort label-5226
SELECT 26 AS col2, - ( + 38 ) * - + CAST ( 46 AS INTEGER ) + - 37 col2
----
26
1711

query I rowsort
SELECT ALL + 9 * + ( 62 ) + - 44 * ( - COALESCE ( - + 40, - - 38 ) ) AS col1
----
-1202

query II rowsort
SELECT DISTINCT + - 25 AS col0, 73 AS col1
----
-25
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT ALL 57 DIV 99 DIV - 22 * - - ( - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL 57 / 99 / - 22 * - - ( - 26 )
----
0

query I rowsort
SELECT + NULLIF ( - 96, COALESCE ( 52, + 19 * + 12 ) )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT ALL + CASE + - 19 WHEN CAST( NULL AS SIGNED ) THEN 91 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL + CASE + - 19 WHEN CAST ( NULL AS INTEGER ) THEN 91 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5232
SELECT DISTINCT CAST( + 53 AS SIGNED ), 86 + COUNT( * ) - + 29 AS col0
----
53
58

skipif mysql # not compatible
query II rowsort label-5232
SELECT DISTINCT CAST ( + 53 AS INTEGER ), 86 + COUNT ( * ) - + 29 AS col0
----
53
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT - 10 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT - 10 / - - 69
----
0

query I rowsort
SELECT + 15 * COALESCE ( + - 54, - + 50 )
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT - MAX( ALL - + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5235
SELECT - MAX ( ALL - + 69 )
----
69

query I rowsort
SELECT + 3 + + 99 AS col0
----
102

query I rowsort
SELECT + 79 + 30 AS col1
----
109

query II rowsort
SELECT + 85 - + 52 AS col0, 34 - - 96 + - ( + - 33 ) * 81
----
33
2803

query I rowsort
SELECT ALL 50 * 20 AS col1
----
1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5240
SELECT ALL 67 + - + 25, + NULLIF ( + CAST( 73 AS SIGNED ), + - CASE - + NULLIF ( + 54, + COUNT( * ) ) WHEN - COUNT( * ) + + - ( - 18 ) THEN NULL WHEN COUNT( * ) THEN 90 * - COUNT( + 0 ) ELSE NULL END ) AS col1
----
42
73

skipif mysql # not compatible
query II rowsort label-5240
SELECT ALL 67 + - + 25, + NULLIF ( + CAST ( 73 AS INTEGER ), + - CASE - + NULLIF ( + 54, + COUNT ( * ) ) WHEN - COUNT ( * ) + + - ( - 18 ) THEN NULL WHEN COUNT ( * ) THEN 90 * - COUNT ( + 0 ) ELSE NULL END ) AS col1
----
42
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT DISTINCT CAST( + 14 AS SIGNED ) * ( + + 36 )
----
504

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT CAST ( + 14 AS INTEGER ) * ( + + 36 )
----
504

query I rowsort
SELECT ALL 44 + + 67 * - 28 * 51 AS col2
----
-95632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT DISTINCT 73 + + 89 * + - 20 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT 73 + + 89 * + - 20 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 8 + + + 61 + - 34 AS col0
----
35

query I rowsort
SELECT - ( - + 23 )
----
23

query I rowsort
SELECT + 78 * + 62
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL - MAX( - - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - MAX ( - - 4 ) AS col2
----
-4

query II rowsort
SELECT - + 89 + + + 34, 75 AS col1
----
-55
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL - COUNT( * ) * 25 + - + 81
----
-106

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL - COUNT ( * ) * 25 + - + 81
----
-106

query I rowsort
SELECT + + 4 * - 93 AS col1
----
-372

query I rowsort
SELECT ALL - 65 * - ( + 47 ) * + - 49 col1
----
-149695

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT COUNT( 71 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5252
SELECT COUNT ( 71 ) * COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5253
SELECT + + 92 * + 34 + - CAST( NULL AS SIGNED ) - ( - + 91 ) * - 83 * 99 * + + COUNT( DISTINCT - - CASE - - COALESCE ( + CAST( - + 16 AS DECIMAL ), + 50 * 24 + + - 34 ) WHEN 43 * - 7 * - 5 THEN - CAST( + 79 AS SIGNED ) - + 32 * - CAST( NULL AS SIGNED ) * + 99 WHEN ( 30 ) + - 25 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT + + 92 * + 34 + - CAST ( NULL AS INTEGER ) - ( - + 91 ) * - 83 * 99 * + + COUNT ( DISTINCT - - CASE - - COALESCE ( + CAST ( - + 16 AS REAL ), + 50 * 24 + + - 34 ) WHEN 43 * - 7 * - 5 THEN - CAST ( + 79 AS INTEGER ) - + 32 * - CAST ( NULL AS INTEGER ) * + 99 WHEN ( 30 ) + - 25 THEN NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT ( 51 ) DIV 44 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5254
SELECT ( 51 ) / 44 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5255
SELECT ALL - 82 DIV + 59 + CAST( - + MIN( - 39 ) AS SIGNED ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - 82 / + 59 + CAST ( - + MIN ( - 39 ) AS INTEGER ) AS col1
----
38

query I rowsort
SELECT ( + - 13 ) * - 15
----
195

query I rowsort
SELECT ALL + + CASE - 56 WHEN + + 72 THEN NULL WHEN + 45 * + 32 * + AVG ( DISTINCT - - 51 ) / 72 THEN - 58 ELSE NULL END * 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT - COUNT( * ) * + 87 * - CASE - - 4 WHEN - 70 THEN NULL WHEN - 12 + + 77 - + + 5 THEN NULL ELSE 26 END - + 17 + - 78 + - 29 * + COUNT( * )
----
2138

skipif mysql # not compatible
query I rowsort label-5258
SELECT - COUNT ( * ) * + 87 * - CASE - - 4 WHEN - 70 THEN NULL WHEN - 12 + + 77 - + + 5 THEN NULL ELSE 26 END - + 17 + - 78 + - 29 * + COUNT ( * )
----
2138

query I rowsort
SELECT ALL 34 * 61
----
2074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT DISTINCT - 77 + - 6 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - 77 + - 6 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT ALL - CAST( NULL AS SIGNED ) * - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL - CAST ( NULL AS INTEGER ) * - 74 AS col0
----
NULL

query I rowsort
SELECT - 46 * + 52 + 66 AS col1
----
-2326

query II rowsort
SELECT 60 col2, + 30 * - - 67
----
60
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT - 95 + - 98 * + COUNT( * )
----
-193

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT - 95 + - 98 * + COUNT ( * )
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ALL - COUNT( * ) + + 45 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - COUNT ( * ) + + 45 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT 68 + - COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT 68 + - COUNT ( * ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL 26 + - COUNT( ALL + - ( + 19 ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL 26 + - COUNT ( ALL + - ( + 19 ) ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL 3 + 18 - - COUNT( * ) * 39
----
60

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL 3 + 18 - - COUNT ( * ) * 39
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT 74 * + NULLIF ( 74, - COUNT( * ) ) AS col0
----
5476

skipif mysql # not compatible
query I rowsort label-5269
SELECT 74 * + NULLIF ( 74, - COUNT ( * ) ) AS col0
----
5476

onlyif mysql # DIV for integer division: 
query I rowsort label-5270
SELECT ALL 20 DIV - - 36
----
0

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL 20 / - - 36
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5271
SELECT 81 DIV + NULLIF ( + 57, MAX( DISTINCT + 80 ) * + 78 * + - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-5271
SELECT 81 / + NULLIF ( + 57, MAX ( DISTINCT + 80 ) * + 78 * + - 36 )
----
1

query I rowsort
SELECT ALL 8 + 82 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT 64 * - 7 * COUNT( * ) AS col2
----
-448

skipif mysql # not compatible
query I rowsort label-5273
SELECT 64 * - 7 * COUNT ( * ) AS col2
----
-448

query I rowsort
SELECT DISTINCT 2 * - 7 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL MAX( DISTINCT + 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL MAX ( DISTINCT + 86 ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5276
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5276
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT - 98 - + - 96 + - 50
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5278
SELECT - 37 AS col2, - ( - COUNT( * ) ) - 0 DIV - - 21 * 1
----
-37
1

skipif mysql # not compatible
query II rowsort label-5278
SELECT - 37 AS col2, - ( - COUNT ( * ) ) - 0 / - - 21 * 1
----
-37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT 86 - + + MIN( 95 ) + + 97
----
88

skipif mysql # not compatible
query I rowsort label-5279
SELECT 86 - + + MIN ( 95 ) + + 97
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5280
SELECT DISTINCT - NULLIF ( + 15, - 88 * + CAST( + 37 AS SIGNED ) - - + CAST( NULL AS SIGNED ) * 91 * + + 64 ) * - 70 * - CASE - 70 WHEN - 73 THEN + + 76 WHEN COUNT( * ) THEN - COUNT( * ) + + COUNT( * ) WHEN - 32 / - 8 * 12 THEN - - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT - NULLIF ( + 15, - 88 * + CAST ( + 37 AS INTEGER ) - - + CAST ( NULL AS INTEGER ) * 91 * + + 64 ) * - 70 * - CASE - 70 WHEN - 73 THEN + + 76 WHEN COUNT ( * ) THEN - COUNT ( * ) + + COUNT ( * ) WHEN - 32 / - 8 * 12 THEN - - CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT - NULLIF ( 66, - 25 ) AS col2
----
-66

query I rowsort
SELECT 35 * - + 41 AS col0
----
-1435

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - + MAX( - - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-5283
SELECT - + MAX ( - - 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5284
SELECT + CAST( - COUNT( * ) AS DECIMAL ) / - + CAST( NULL AS SIGNED ) + - 19 + + 57 + + 99 + - NULLIF ( - 47, - + 45 ) + + ( + 96 ) * - 86 + - ( - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT + CAST ( - COUNT ( * ) AS REAL ) / - + CAST ( NULL AS INTEGER ) + - 19 + + 57 + + 99 + - NULLIF ( - 47, - + 45 ) + + ( + 96 ) * - 86 + - ( - 7 )
----
NULL

query I rowsort
SELECT + 48 * + - 13
----
-624

query I rowsort
SELECT ALL - - ( - ( + 13 ) ) AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT ALL + 53 DIV - 28 + + 27
----
26

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL + 53 / - 28 + + 27
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5288
SELECT ALL - + 75, ( SUM( ALL - 53 ) ) * + COUNT( * ) - CAST( + + 43 AS SIGNED ) AS col0
----
-75
-96

skipif mysql # not compatible
query II rowsort label-5288
SELECT ALL - + 75, ( SUM ( ALL - 53 ) ) * + COUNT ( * ) - CAST ( + + 43 AS INTEGER ) AS col0
----
-75
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT - 15 / + 39 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT - 15 / + 39 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-5290
SELECT - 17 DIV + 66 + - 57 AS col2, + 81 AS col0, + 44
----
-57
81
44

skipif mysql # not compatible
query III rowsort label-5290
SELECT - 17 / + 66 + - 57 AS col2, + 81 AS col0, + 44
----
-57
81
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT - - 37 * - + COUNT( * ) + + - 57 - - ( + 52 ) + - + 85 * - 68 * - 52 * + 71 AS col2
----
-21339802

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - - 37 * - + COUNT ( * ) + + - 57 - - ( + 52 ) + - + 85 * - 68 * - 52 * + 71 AS col2
----
-21339802

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT + COALESCE ( - + 3, - + 96 ) DIV - + 80 * 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5292
SELECT + COALESCE ( - + 3, - + 96 ) / - + 80 * 96 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT ALL 2 DIV - - 35
----
0

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL 2 / - - 35
----
0

query I rowsort
SELECT - 42 + 93
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL - + SUM( ALL - - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - + SUM ( ALL - - 28 )
----
-28

query I rowsort
SELECT ALL + + 25 + + 92 AS col2
----
117

query I rowsort
SELECT ALL - - ( - 9 ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5298
SELECT ALL - CAST( 64 AS SIGNED ) + + ( + 54 ) * + - SUM( ALL 83 )
----
-4546

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL - CAST ( 64 AS INTEGER ) + + ( + 54 ) * + - SUM ( ALL 83 )
----
-4546

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT 46 * + COUNT( + - 93 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5299
SELECT 46 * + COUNT ( + - 93 ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5300
SELECT 49 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5300
SELECT 49 / 93 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5301
SELECT ALL COALESCE ( 66, + 37, - + CAST( - + 70 AS SIGNED ) ) + - COUNT( * ) + + + MAX( ALL 24 ) DIV - COALESCE ( - + 11, 25 + - CAST( + 70 AS SIGNED ), - 51 - + + COUNT( * ) + - 90 )
----
67

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL COALESCE ( 66, + 37, - + CAST ( - + 70 AS INTEGER ) ) + - COUNT ( * ) + + + MAX ( ALL 24 ) / - COALESCE ( - + 11, 25 + - CAST ( + 70 AS INTEGER ), - 51 - + + COUNT ( * ) + - 90 )
----
67

query I rowsort
SELECT DISTINCT - COALESCE ( 96, - 76 * 6 ) AS col0
----
-96

query I rowsort
SELECT DISTINCT - 73 * + 10 * + 82
----
-59860

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL MIN( - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL MIN ( - 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + 67 * 57 + - MIN( ALL - 1 )
----
3820

skipif mysql # not compatible
query I rowsort label-5305
SELECT + 67 * 57 + - MIN ( ALL - 1 )
----
3820

query I rowsort
SELECT DISTINCT + 46 + + + 91
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL MAX( ALL 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL MAX ( ALL 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - 56 * + - MIN( DISTINCT 13 ) AS col2
----
728

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - 56 * + - MIN ( DISTINCT 13 ) AS col2
----
728

query I rowsort
SELECT 80 + 54 AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT - COUNT( * ) - + 30
----
-31

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT - COUNT ( * ) - + 30
----
-31

query I rowsort
SELECT DISTINCT - 74 * - + 77 col0
----
5698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5312
SELECT DISTINCT - 76 / CAST( - 54 AS SIGNED ) * + 37 * + + CAST( COUNT( * ) AS SIGNED ) / - - MIN( DISTINCT ( - 32 ) ) + - NULLIF ( - - 67, + - 82 + 95 + COUNT( * ) - + 98 + + 68 ) + CASE 8 WHEN 81 THEN NULL WHEN 91 / 22 * - 71 THEN 93 END + + + COUNT( * ) + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT - 76 / CAST ( - 54 AS INTEGER ) * + 37 * + + CAST ( COUNT ( * ) AS INTEGER ) / - - MIN ( DISTINCT ( - 32 ) ) + - NULLIF ( - - 67, + - 82 + 95 + COUNT ( * ) - + 98 + + 68 ) + CASE 8 WHEN 81 THEN NULL WHEN 91 / 22 * - 71 THEN 93 END + + + COUNT ( * ) + + 25
----
NULL

query I rowsort
SELECT + + 12 + + 87 AS col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5314
SELECT ALL ( + 86 ), COUNT( * ) + 78 col0
----
86
79

skipif mysql # not compatible
query II rowsort label-5314
SELECT ALL ( + 86 ), COUNT ( * ) + 78 col0
----
86
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT - - 43 * + + COUNT( * ) * + 28
----
1204

skipif mysql # not compatible
query I rowsort label-5315
SELECT - - 43 * + + COUNT ( * ) * + 28
----
1204

query I rowsort
SELECT - + ( + + ( + 33 ) )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT + 46 + 70 + + + 34 + + - 48 * + 51 AS col0, - 5 * - SUM( + 38 )
----
-2298
190

skipif mysql # not compatible
query II rowsort label-5317
SELECT + 46 + 70 + + + 34 + + - 48 * + 51 AS col0, - 5 * - SUM ( + 38 )
----
-2298
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5318
SELECT + - 88 DIV + + 25 + - + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-5318
SELECT + - 88 / + + 25 + - + COUNT ( * )
----
-4

query I rowsort
SELECT ALL - 82 * - + 34 AS col0
----
2788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT - 90 * + 41 * 47 * - CAST( NULL AS SIGNED ) + + 51 - - CAST( NULL AS SIGNED ) + + 67 + - ( + 93 ) + + CASE 79 WHEN 52 * - SUM( + 14 ) THEN 46 * + COALESCE ( - 16, 58 / - - 26 + NULLIF ( + + ( + 95 ), + ( - COUNT( * ) ) + 10 * COALESCE ( 32 + 92 * + NULLIF ( 16 + - 8, - 67 ), 81, 5 - 49 * COUNT( * ) ) ) * 13, 86 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT - 90 * + 41 * 47 * - CAST ( NULL AS INTEGER ) + + 51 - - CAST ( NULL AS INTEGER ) + + 67 + - ( + 93 ) + + CASE 79 WHEN 52 * - SUM ( + 14 ) THEN 46 * + COALESCE ( - 16, 58 / - - 26 + NULLIF ( + + ( + 95 ), + ( - COUNT ( * ) ) + 10 * COALESCE ( 32 + 92 * + NULLIF ( 16 + - 8, - 67 ), 81, 5 - 49 * COUNT ( * ) ) ) * 13, 86 ) END
----
NULL

query I rowsort
SELECT ALL 29 * - 89 * 45
----
-116145

onlyif mysql # aggregate syntax: 
query II rowsort label-5322
SELECT MAX( 97 ) AS col2, + ( + + 14 ) AS col1
----
97
14

skipif mysql # not compatible
query II rowsort label-5322
SELECT MAX ( 97 ) AS col2, + ( + + 14 ) AS col1
----
97
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT DISTINCT + + 83 * - 86 + + 4 * MAX( - 4 ) + + 93 + + 50 * 36
----
-5261

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT + + 83 * - 86 + + 4 * MAX ( - 4 ) + + 93 + + 50 * 36
----
-5261

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL + COUNT( * ) * 37 + - 91
----
-54

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + COUNT ( * ) * 37 + - 91
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT + - COUNT( * ) * + + 27 * - 6
----
162

skipif mysql # not compatible
query I rowsort label-5325
SELECT + - COUNT ( * ) * + + 27 * - 6
----
162

query I rowsort
SELECT ALL - 18 * - 67 + - 47
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT + - COUNT( DISTINCT + ( + + 96 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5327
SELECT + - COUNT ( DISTINCT + ( + + 96 ) )
----
-1

query I rowsort
SELECT + ( - + 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT 59 * - 11 - + COUNT( 51 ) + ( ( + - 44 ) ) - - 42 * COUNT( - 58 )
----
-652

skipif mysql # not compatible
query I rowsort label-5329
SELECT 59 * - 11 - + COUNT ( 51 ) + ( ( + - 44 ) ) - - 42 * COUNT ( - 58 )
----
-652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5330
SELECT CASE + ( CAST( NULL AS SIGNED ) ) WHEN - - 61 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT CASE + ( CAST ( NULL AS INTEGER ) ) WHEN - - 61 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5331
SELECT + COALESCE ( + 31, + MIN( - - 6 ) * + COALESCE ( - 15, + COUNT( * ) ) - + 58, + COUNT( * ) + - - 37 DIV + - 3 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5331
SELECT + COALESCE ( + 31, + MIN ( - - 6 ) * + COALESCE ( - 15, + COUNT ( * ) ) - + 58, + COUNT ( * ) + - - 37 / + - 3 ) AS col2
----
31

query I rowsort
SELECT ALL 38 * + - 8 + - - 62 * 98
----
5772

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT + COUNT( * ) * + ( - - 51 ) * 47
----
2397

skipif mysql # not compatible
query I rowsort label-5333
SELECT + COUNT ( * ) * + ( - - 51 ) * 47
----
2397

onlyif mysql # aggregate syntax: 
query II rowsort label-5334
SELECT CASE - 24 WHEN + 73 THEN NULL ELSE - + SUM( + 88 ) END, + ( + 53 ) * + - 28 col0
----
-88
-1484

skipif mysql # not compatible
query II rowsort label-5334
SELECT CASE - 24 WHEN + 73 THEN NULL ELSE - + SUM ( + 88 ) END, + ( + 53 ) * + - 28 col0
----
-88
-1484

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL CASE + 98 WHEN 57 * + - COUNT( DISTINCT - 28 ) * + 90 + + 46 + - 60 + - + ( + - 47 ) / 47 THEN NULL WHEN 18 + 85 THEN 59 END * 23 - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL CASE + 98 WHEN 57 * + - COUNT ( DISTINCT - 28 ) * + 90 + + 46 + - 60 + - + ( + - 47 ) / 47 THEN NULL WHEN 18 + 85 THEN 59 END * 23 - 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5336
SELECT + MAX( ALL - 47 ) * + 40 * 45 * + + 68 AS col0, COUNT( * ) AS col1
----
-5752800
1

skipif mysql # not compatible
query II rowsort label-5336
SELECT + MAX ( ALL - 47 ) * + 40 * 45 * + + 68 AS col0, COUNT ( * ) AS col1
----
-5752800
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5337
SELECT COUNT( * ), + 92 DIV + 61 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-5337
SELECT COUNT ( * ), + 92 / + 61 AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT MAX( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5338
SELECT MAX ( DISTINCT - 0 )
----
0

query I rowsort
SELECT + 25 + - - 63
----
88

query I rowsort
SELECT ALL COALESCE ( - 88, - 81 - - + 11, + 15 * 0 * + 72 )
----
-88

query I rowsort
SELECT ALL + 97 - 82 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT ( + + MAX( + 51 ) )
----
51

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT ( + + MAX ( + 51 ) )
----
51

query I rowsort
SELECT ALL ( + ( + 35 ) ) AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5344
SELECT COUNT( * ) AS col1, - 47 * - - 77 * + CAST( NULL AS SIGNED ) * + - ( + 80 ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5344
SELECT COUNT ( * ) AS col1, - 47 * - - 77 * + CAST ( NULL AS INTEGER ) * + - ( + 80 ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5345
SELECT - + MAX( - CAST( NULL AS SIGNED ) ) * - 63 * - 68 * + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT - + MAX ( - CAST ( NULL AS INTEGER ) ) * - 63 * - 68 * + - 54
----
NULL

query I rowsort
SELECT ALL - 47 * - CASE 78 WHEN - 92 THEN 4 * + - 49 END * + 72 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5347
SELECT 93, 36 + - ( COALESCE ( + 44, + 25 + - 7, + - 14 + + 34 ) ) + + SUM( CAST( NULL AS SIGNED ) ) + - 54 AS col2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-5347
SELECT 93, 36 + - ( COALESCE ( + 44, + 25 + - 7, + - 14 + + 34 ) ) + + SUM ( CAST ( NULL AS INTEGER ) ) + - 54 AS col2
----
93
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT - - CAST( + + CASE 57 WHEN - ( + 74 ) THEN 43 + - AVG ( + 10 ) ELSE NULL END AS SIGNED ) + + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT - - CAST ( + + CASE 57 WHEN - ( + 74 ) THEN 43 + - AVG ( + 10 ) ELSE NULL END AS INTEGER ) + + 20 AS col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 75, 96, - ( - + 28 ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT - 47 - + MIN( 67 ) - - 13 AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-5350
SELECT - 47 - + MIN ( 67 ) - - 13 AS col2
----
-101

query I rowsort
SELECT - 21 * - 1 * - 30 * - 35 AS col1
----
22050

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT - 60 + COUNT( * ) - + NULLIF ( + 85, + 78 )
----
-144

skipif mysql # not compatible
query I rowsort label-5352
SELECT - 60 + COUNT ( * ) - + NULLIF ( + 85, + 78 )
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT ALL COUNT( * ) AS col1, 71 * + 85 AS col1
----
1
6035

skipif mysql # not compatible
query II rowsort label-5353
SELECT ALL COUNT ( * ) AS col1, 71 * + 85 AS col1
----
1
6035

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - - 40 - - COALESCE ( - COUNT( * ), COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-5354
SELECT - - 40 - - COALESCE ( - COUNT ( * ), COUNT ( * ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT - + 71 + - 28 + - COUNT( - - 6 ) - - - 39 * 66 AS col2
----
-2674

skipif mysql # not compatible
query I rowsort label-5355
SELECT - + 71 + - 28 + - COUNT ( - - 6 ) - - - 39 * 66 AS col2
----
-2674

query I rowsort
SELECT - + 65 + - - 35 + + - 24 AS col1
----
-54

query II rowsort
SELECT ALL - 23 AS col0, 20 - + - COALESCE ( ( + ( - 78 ) ), + + 26 + - 0 )
----
-23
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5358
SELECT DISTINCT + 43 + + ( - - CASE + + 45 WHEN - 88 THEN 23 + + 6 ELSE + COUNT( * ) END ) - - - ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT + 43 + + ( - - CASE + + 45 WHEN - 88 THEN 23 + + 6 ELSE + COUNT ( * ) END ) - - - ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5359
SELECT - ( 65 ) + - ( + - CAST( 77 AS SIGNED ) ) + 72 * + + 17
----
1236

skipif mysql # not compatible
query I rowsort label-5359
SELECT - ( 65 ) + - ( + - CAST ( 77 AS INTEGER ) ) + 72 * + + 17
----
1236

query I rowsort
SELECT - 90 + - - ( + 29 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5361
SELECT + + COUNT( * ) DIV 52 * 82 - + 84 + - 2 * 12 * - COUNT( * ) DIV + 71 AS col2, - SUM( + + 70 ) DIV COUNT( 59 )
----
-84
-70

skipif mysql # not compatible
query II rowsort label-5361
SELECT + + COUNT ( * ) / 52 * 82 - + 84 + - 2 * 12 * - COUNT ( * ) / + 71 AS col2, - SUM ( + + 70 ) / COUNT ( 59 )
----
-84
-70

query I rowsort
SELECT 63 * + 87 + 5
----
5486

onlyif mysql # aggregate syntax: 
query III rowsort label-5363
SELECT DISTINCT + SUM( 82 ) AS col1, + 10 + 62 - + 8 * - 98 * - COUNT( * ) AS col0, 61
----
82
-712
61

skipif mysql # not compatible
query III rowsort label-5363
SELECT DISTINCT + SUM ( 82 ) AS col1, + 10 + 62 - + 8 * - 98 * - COUNT ( * ) AS col0, 61
----
82
-712
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5364
SELECT ALL - COUNT( * ) DIV + 11 + - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL - COUNT ( * ) / + 11 + - + 81
----
-81

query I rowsort
SELECT + CASE + 47 WHEN 29 THEN NULL WHEN 69 THEN NULL WHEN 42 THEN - ( 46 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT ALL 71 DIV + 84 * 23 + - 54 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL 71 / + 84 * 23 + - 54 AS col0
----
-54

query I rowsort
SELECT ALL + 91 * - 77
----
-7007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5368
SELECT CAST( + + 78 AS SIGNED ) * - MAX( ALL - + 63 ) + + COUNT( * ) - NULLIF ( + 30, - 24 ) + + - ( + - ( + + 51 ) ) + - 24 + - 68
----
4844

skipif mysql # not compatible
query I rowsort label-5368
SELECT CAST ( + + 78 AS INTEGER ) * - MAX ( ALL - + 63 ) + + COUNT ( * ) - NULLIF ( + 30, - 24 ) + + - ( + - ( + + 51 ) ) + - 24 + - 68
----
4844

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5369
SELECT + COUNT( * ) col0, 81 DIV - 53 + - ( - COUNT( * ) ) * - 52 DIV + 30 AS col0
----
1
-2

skipif mysql # not compatible
query II rowsort label-5369
SELECT + COUNT ( * ) col0, 81 / - 53 + - ( - COUNT ( * ) ) * - 52 / + 30 AS col0
----
1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT - MAX( + - 88 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT - MAX ( + - 88 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT DISTINCT 83 * - 29 - CAST( + MIN( DISTINCT 2 ) AS SIGNED ) + - 91 AS col0
----
-2500

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT 83 * - 29 - CAST ( + MIN ( DISTINCT 2 ) AS INTEGER ) + - 91 AS col0
----
-2500

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL COUNT( * ) * COUNT( * ) * - 56
----
-56

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL COUNT ( * ) * COUNT ( * ) * - 56
----
-56

query I rowsort
SELECT + ( 10 ) * + ( - 83 ) + - - 54
----
-776

query II rowsort
SELECT 87 AS col1, NULLIF ( - - ( 20 ), - + 1 ) - 47 AS col1
----
87
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL COUNT( * ) * + 90
----
90

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL COUNT ( * ) * + 90
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT CAST( NULL AS SIGNED ) + - 70 + - AVG ( DISTINCT ( - + 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT CAST ( NULL AS INTEGER ) + - 70 + - AVG ( DISTINCT ( - + 25 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 48 * 50 * + + 0 + + - 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL 62 * + + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL 62 * + + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5379
SELECT COUNT( * ) DIV COUNT( 99 )
----
1

skipif mysql # not compatible
query I rowsort label-5379
SELECT COUNT ( * ) / COUNT ( 99 )
----
1

query I rowsort
SELECT - 73 * - 7 + 54
----
565

query I rowsort
SELECT 33 - - 32
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT DISTINCT + + 68 + - 38 * - + 19 * - - MAX( ALL + 70 ) + + 22 AS col0
----
50630

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT + + 68 + - 38 * - + 19 * - - MAX ( ALL + 70 ) + + 22 AS col0
----
50630

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT ALL - 66 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL - 66 / - 70 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5384
SELECT 10 DIV + + COUNT( DISTINCT - ( + + 52 ) ) + - 93
----
-83

skipif mysql # not compatible
query I rowsort label-5384
SELECT 10 / + + COUNT ( DISTINCT - ( + + 52 ) ) + - 93
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5385
SELECT ALL - 55 + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL - 55 + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT - MAX( ALL - 62 ) + - + 67 * - 75 * - 9 AS col1
----
-45163

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT - MAX ( ALL - 62 ) + - + 67 * - 75 * - 9 AS col1
----
-45163

query I rowsort
SELECT ALL + - 93 + - 85
----
-178

query I rowsort
SELECT ALL 64 + + 1 * 84
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-5389
SELECT ALL + 46 AS col2, + SUM( + 30 ) - + 94 * 96 * - 32 AS col2
----
46
288798

skipif mysql # not compatible
query II rowsort label-5389
SELECT ALL + 46 AS col2, + SUM ( + 30 ) - + 94 * 96 * - 32 AS col2
----
46
288798

query II rowsort
SELECT 43 AS col2, - ( + - 18 )
----
43
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5391
SELECT ALL + 14 + + + 75, 0 * - + CAST( + 91 AS SIGNED ) * - 56 col0
----
89
0

skipif mysql # not compatible
query II rowsort label-5391
SELECT ALL + 14 + + + 75, 0 * - + CAST ( + 91 AS INTEGER ) * - 56 col0
----
89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + 61 * + ( COUNT( * ) ) + SUM( - 32 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5392
SELECT + 61 * + ( COUNT ( * ) ) + SUM ( - 32 ) AS col0
----
29

query II rowsort
SELECT 18, + 79 AS col0
----
18
79

query I rowsort
SELECT ALL + 48 + 80
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5395
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) - + - 90
----
91

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) - + - 90
----
91

query I rowsort
SELECT 68 * - 58
----
-3944

query I rowsort
SELECT 58 * - COALESCE ( + 18, - - 73 ) AS col1
----
-1044

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT ALL - 33 DIV 16
----
-2

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL - 33 / 16
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT ALL - NULLIF ( - + 66, - CAST( 15 AS SIGNED ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - NULLIF ( - + 66, - CAST ( 15 AS INTEGER ) ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT COUNT( * ) * + + CASE - 5 WHEN + 78 THEN + NULLIF ( + COUNT( * ), - - COUNT( * ) / - 42 ) / + + COUNT( * ) WHEN + + 45 THEN NULL WHEN + - 25 THEN + 61 END * + - 38 AS col0, - 57 AS col1
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-5400
SELECT COUNT ( * ) * + + CASE - 5 WHEN + 78 THEN + NULLIF ( + COUNT ( * ), - - COUNT ( * ) / - 42 ) / + + COUNT ( * ) WHEN + + 45 THEN NULL WHEN + - 25 THEN + 61 END * + - 38 AS col0, - 57 AS col1
----
NULL
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL 38 * + - COUNT( * ) * COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL 38 * + - COUNT ( * ) * COUNT ( * )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT 90 DIV 29 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5402
SELECT 90 / 29 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT COUNT( * ) * COUNT( * ) AS col2, ( - 8 ) AS col1
----
1
-8

skipif mysql # not compatible
query II rowsort label-5403
SELECT COUNT ( * ) * COUNT ( * ) AS col2, ( - 8 ) AS col1
----
1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT 34 * - 0 - ( MAX( ALL + 56 ) ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5404
SELECT 34 * - 0 - ( MAX ( ALL + 56 ) ) AS col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT DISTINCT + COUNT( * ) * - - ( + + MIN( - 58 ) ) * + 63 * + 83 * - 80 * + - 3 + - CAST( NULL AS SIGNED ) * + + 79 * 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + COUNT ( * ) * - - ( + + MIN ( - 58 ) ) * + 63 * + 83 * - 80 * + - 3 + - CAST ( NULL AS INTEGER ) * + + 79 * 39 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5406
SELECT ( + CAST( + 39 AS SIGNED ) ) * 35
----
1365

skipif mysql # not compatible
query I rowsort label-5406
SELECT ( + CAST ( + 39 AS INTEGER ) ) * 35
----
1365

query I rowsort
SELECT 56 + + - 87
----
-31

query I rowsort
SELECT ALL + 59 + - 80
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT DISTINCT + NULLIF ( + - 43, - 58 + - - COUNT( * ) ) + - - 42 * + - 81
----
-3445

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT + NULLIF ( + - 43, - 58 + - - COUNT ( * ) ) + - - 42 * + - 81
----
-3445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5410
SELECT ALL ( + COUNT( * ) ) + + 47 / - 99 * + + ( + + 17 ) + + CAST( NULL AS SIGNED ) col1, + 55 + + 46
----
NULL
101

skipif mysql # not compatible
query II rowsort label-5410
SELECT ALL ( + COUNT ( * ) ) + + 47 / - 99 * + + ( + + 17 ) + + CAST ( NULL AS INTEGER ) col1, + 55 + + 46
----
NULL
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL 9 + - COUNT( * ) + - 99 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL 9 + - COUNT ( * ) + - 99 AS col0
----
-91

query I rowsort
SELECT 55 * + - 45 * 78 col1
----
-193050

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT - + MAX( + + 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-5413
SELECT - + MAX ( + + 10 )
----
-10

query I rowsort
SELECT ALL + ( - + 75 ) + + + 18
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ( - ( COUNT( * ) ) ) + - - 80 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5415
SELECT ( - ( COUNT ( * ) ) ) + - - 80 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - MIN( DISTINCT - + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5416
SELECT - MIN ( DISTINCT - + 61 ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5417
SELECT DISTINCT COUNT( * ) * CASE + 65 WHEN ( + 79 ) + + CAST( NULL AS DECIMAL ) + + 15 + 34 THEN + - 15 / 58 * - + 67 * + CASE - 6 WHEN + 63 * - 81 * - + 74 - + 58 + + + 81 THEN + 55 * 66 + + ( + COUNT( * ) ) END - + 73 - + 92 * - + 33 * - + 94 * 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT COUNT ( * ) * CASE + 65 WHEN ( + 79 ) + + CAST ( NULL AS REAL ) + + 15 + 34 THEN + - 15 / 58 * - + 67 * + CASE - 6 WHEN + 63 * - 81 * - + 74 - + 58 + + + 81 THEN + 55 * 66 + + ( + COUNT ( * ) ) END - + 73 - + 92 * - + 33 * - + 94 * 16 END
----
NULL

query I rowsort
SELECT DISTINCT + 49 - 41 + + 99 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT MIN( DISTINCT - - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT MIN ( DISTINCT - - 97 )
----
97

query I rowsort
SELECT 75 - + 28
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5421
SELECT CAST( - + 10 AS SIGNED ) * + - 12
----
120

skipif mysql # not compatible
query I rowsort label-5421
SELECT CAST ( - + 10 AS INTEGER ) * + - 12
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-5422
SELECT 82, + 23 - - 52 + COUNT( * ) AS col0
----
82
76

skipif mysql # not compatible
query II rowsort label-5422
SELECT 82, + 23 - - 52 + COUNT ( * ) AS col0
----
82
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT 3 * COUNT( * ) * + 77
----
231

skipif mysql # not compatible
query I rowsort label-5423
SELECT 3 * COUNT ( * ) * + 77
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5424
SELECT COUNT( * ) * + - ( + CAST( - - 61 AS SIGNED ) ) DIV - + 96 + - + 40 AS col0, - CASE - + 68 WHEN - COUNT( * ) THEN NULL WHEN + + COALESCE ( + 71, - 20 * - ( MAX( + - 36 ) ) ) + - ( 2 ) THEN NULL WHEN 8 THEN NULL WHEN + + 51 + + 8 - + 13 * - COUNT( * ) + + COUNT( * ) * 29 + - + COUNT( * ) THEN 51 * 56 ELSE - COALESCE ( 92, 72 * 14 ) END DIV + 53 + - 66 AS col0
----
-40
-65

skipif mysql # not compatible
query II rowsort label-5424
SELECT COUNT ( * ) * + - ( + CAST ( - - 61 AS INTEGER ) ) / - + 96 + - + 40 AS col0, - CASE - + 68 WHEN - COUNT ( * ) THEN NULL WHEN + + COALESCE ( + 71, - 20 * - ( MAX ( + - 36 ) ) ) + - ( 2 ) THEN NULL WHEN 8 THEN NULL WHEN + + 51 + + 8 - + 13 * - COUNT ( * ) + + COUNT ( * ) * 29 + - + COUNT ( * ) THEN 51 * 56 ELSE - COALESCE ( 92, 72 * 14 ) END / + 53 + - 66 AS col0
----
-40
-65

query I rowsort
SELECT ALL - 28 * - 4 AS col0
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT ALL - COUNT( * ), 37 AS col1
----
-1
37

skipif mysql # not compatible
query II rowsort label-5426
SELECT ALL - COUNT ( * ), 37 AS col1
----
-1
37

query II rowsort
SELECT + 63 AS col0, 53 + - + 22 AS col2
----
63
31

query I rowsort
SELECT - 3 * + 73
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL - 29 * - COUNT( * ) col0
----
29

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL - 29 * - COUNT ( * ) col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT - 96 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT - 96 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT SUM( ALL - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5431
SELECT SUM ( ALL - 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT COUNT( * ) col0, 57 AS col0
----
1
57

skipif mysql # not compatible
query II rowsort label-5432
SELECT COUNT ( * ) col0, 57 AS col0
----
1
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT - CAST( NULL AS SIGNED ) * 40 + 39 + + + ( + 7 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT - CAST ( NULL AS INTEGER ) * 40 + 39 + + + ( + 7 ) col2
----
NULL

query I rowsort
SELECT - 36 * 82
----
-2952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5435
SELECT ALL - + ( - MAX( - 97 ) ) * - + 76 + + CAST( NULL AS SIGNED ) / 67 AS col1, CASE + 86 WHEN - COUNT( * ) + + 80 * COUNT( * ) + - 43 / - + 51 THEN NULL ELSE - 60 * + 78 + 91 + - - ( + 39 ) END * - 98 AS col1
----
NULL
445900

skipif mysql # not compatible
query II rowsort label-5435
SELECT ALL - + ( - MAX ( - 97 ) ) * - + 76 + + CAST ( NULL AS INTEGER ) / 67 AS col1, CASE + 86 WHEN - COUNT ( * ) + + 80 * COUNT ( * ) + - 43 / - + 51 THEN NULL ELSE - 60 * + 78 + 91 + - - ( + 39 ) END * - 98 AS col1
----
NULL
445900

query I rowsort
SELECT - 27 + - 60 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL - 60 * + - COUNT( * ) + MAX( 2 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - 60 * + - COUNT ( * ) + MAX ( 2 ) col0
----
62

query I rowsort
SELECT ALL - - 29 * - 50 + - 8
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL - - SUM( + 31 ) * 31 + - 46 + 34
----
949

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - - SUM ( + 31 ) * 31 + - 46 + 34
----
949

query I rowsort
SELECT - ( + 21 ) * 43 + - 97 * + 15 AS col2
----
-2358

query I rowsort
SELECT ALL - - 9 + 37 + + 67 AS col0
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-5442
SELECT - - ( + CASE - COALESCE ( - + 52, + 5 + + 68 - + 31 + + - 12 + 42 ) WHEN COALESCE ( + COUNT( * ), SUM( ALL 96 ) * 87 + 29 ) + 0 - - + COUNT( * ) - + + 98 / - - 96 * MAX( - + 80 ) * - 63 * + 23 THEN - 99 END ) AS col2, + 89 AS col0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-5442
SELECT - - ( + CASE - COALESCE ( - + 52, + 5 + + 68 - + 31 + + - 12 + 42 ) WHEN COALESCE ( + COUNT ( * ), SUM ( ALL 96 ) * 87 + 29 ) + 0 - - + COUNT ( * ) - + + 98 / - - 96 * MAX ( - + 80 ) * - 63 * + 23 THEN - 99 END ) AS col2, + 89 AS col0
----
NULL
89

query I rowsort
SELECT - - 8 * - + 98 * + 3
----
-2352

query II rowsort
SELECT 16, - 80 * + 85 AS col2
----
16
-6800

query I rowsort
SELECT ALL - + 67 - + + ( + 58 )
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT + MIN( ALL + 64 ) * + 57
----
3648

skipif mysql # not compatible
query I rowsort label-5446
SELECT + MIN ( ALL + 64 ) * + 57
----
3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT + - ( - 59 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT + - ( - 59 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5448
SELECT DISTINCT NULLIF ( + 30, + CAST( + 1 AS DECIMAL ) - - 33 + + + 55 ), ( + + 13 ) * - 66 + - 99 AS col0
----
30
-957

skipif mysql # not compatible
query II rowsort label-5448
SELECT DISTINCT NULLIF ( + 30, + CAST ( + 1 AS REAL ) - - 33 + + + 55 ), ( + + 13 ) * - 66 + - 99 AS col0
----
30
-957

query I rowsort
SELECT + + 51 + + 64
----
115

query I rowsort
SELECT ALL 92 * - CASE 20 WHEN + + 17 / 76 THEN 88 WHEN - 68 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT - 98 DIV + 36 col2
----
-2

skipif mysql # not compatible
query I rowsort label-5451
SELECT - 98 / + 36 col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5452
SELECT - MIN( ALL + + 81 ), + 13 + - - 48 AS col2
----
-81
61

skipif mysql # not compatible
query II rowsort label-5452
SELECT - MIN ( ALL + + 81 ), + 13 + - - 48 AS col2
----
-81
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5453
SELECT + COUNT( * ) DIV + + COUNT( * ) AS col1, 25
----
1
25

skipif mysql # not compatible
query II rowsort label-5453
SELECT + COUNT ( * ) / + + COUNT ( * ) AS col1, 25
----
1
25

query I rowsort
SELECT - 56 + + 88
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5455
SELECT ALL 32 * - - 50, + 86 + + - MAX( DISTINCT - 67 ) + + ( NULLIF ( ( - CAST( NULL AS SIGNED ) ), + + 72 ) ) * - + 43 + 57 * + NULLIF ( 25, + COALESCE ( + 63, - + COUNT( * ), + - MIN( ALL - 2 ) + + 43 ) + + + 40 ) * + 29 + - 90 + - CASE - 59 WHEN 80 THEN NULL WHEN 44 + - 35 - + MAX( - 68 ) THEN 31 - + 37 * + 8 END + - NULLIF ( - NULLIF ( - 11, + 75 + - CAST( NULL AS DECIMAL ) * SUM( DISTINCT - 22 * - 60 - 86 ) ) + + 66, - 31 * + 30 ) * - 42 AS col2
----
1600
NULL

skipif mysql # not compatible
query II rowsort label-5455
SELECT ALL 32 * - - 50, + 86 + + - MAX ( DISTINCT - 67 ) + + ( NULLIF ( ( - CAST ( NULL AS INTEGER ) ), + + 72 ) ) * - + 43 + 57 * + NULLIF ( 25, + COALESCE ( + 63, - + COUNT ( * ), + - MIN ( ALL - 2 ) + + 43 ) + + + 40 ) * + 29 + - 90 + - CASE - 59 WHEN 80 THEN NULL WHEN 44 + - 35 - + MAX ( - 68 ) THEN 31 - + 37 * + 8 END + - NULLIF ( - NULLIF ( - 11, + 75 + - CAST ( NULL AS REAL ) * SUM ( DISTINCT - 22 * - 60 - 86 ) ) + + 66, - 31 * + 30 ) * - 42 AS col2
----
1600
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5456
SELECT ALL + 70 DIV + COUNT( - + 93 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL + 70 / + COUNT ( - + 93 ) col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5457
SELECT CAST( - COUNT( * ) AS SIGNED ), - 80 AS col0
----
-1
-80

skipif mysql # not compatible
query II rowsort label-5457
SELECT CAST ( - COUNT ( * ) AS INTEGER ), - 80 AS col0
----
-1
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5458
SELECT CAST( - SUM( DISTINCT - + 13 ) AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5458
SELECT CAST ( - SUM ( DISTINCT - + 13 ) AS INTEGER ) AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5459
SELECT ALL + ( - 89 ) DIV + - 46 + + 55 * - + ( - - 83 ) * 41 AS col2
----
-187164

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + ( - 89 ) / + - 46 + + 55 * - + ( - - 83 ) * 41 AS col2
----
-187164

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ( - ( - - MAX( + 77 ) ) ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5460
SELECT ( - ( - - MAX ( + 77 ) ) ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT + CAST( - 79 AS SIGNED ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-5461
SELECT + CAST ( - 79 AS INTEGER ) col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT DISTINCT + SUM( DISTINCT - - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT + SUM ( DISTINCT - - 19 )
----
19

query I rowsort
SELECT ALL + 12 * + - 30 - - - 57 AS col2
----
-417

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT - - 48 * + 43 * - + 68 + + + 8 DIV + 81 + - 35
----
-140387

skipif mysql # not compatible
query I rowsort label-5464
SELECT - - 48 * + 43 * - + 68 + + + 8 / + 81 + - 35
----
-140387

query II rowsort
SELECT - 88 * 38, 26 col1
----
-3344
26

query I rowsort
SELECT - 24 * - 34 * - 0 + 78 + - 7 + + 45 + + 80 * + CASE - 2 WHEN - + 88 THEN + 19 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT + - ( + + COUNT( * ) ) * + + 77
----
-77

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT + - ( + + COUNT ( * ) ) * + + 77
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5468
SELECT ALL - 76 * 7 * + 98 * + 99 - MIN( - 44 ) DIV + - MIN( + 23 )
----
-5161465

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL - 76 * 7 * + 98 * + 99 - MIN ( - 44 ) / + - MIN ( + 23 )
----
-5161465

query I rowsort
SELECT - - 71 * - 1 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5470
SELECT ALL + + ( - 54 ) * + CAST( - - COUNT( * ) AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL + + ( - 54 ) * + CAST ( - - COUNT ( * ) AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT - + MAX( ALL + - 39 ) * + MAX( 84 ) * + + COUNT( * ) AS col2
----
3276

skipif mysql # not compatible
query I rowsort label-5471
SELECT - + MAX ( ALL + - 39 ) * + MAX ( 84 ) * + + COUNT ( * ) AS col2
----
3276

query II rowsort
SELECT ALL + ( - 84 ), COALESCE ( - 7, - 67 * + 37 ) col2
----
-84
-7

query I rowsort
SELECT - + CASE + 66 WHEN + 99 THEN - 67 / - 26 - 92 END col2
----
NULL

query I rowsort
SELECT - - 36 * 99
----
3564

onlyif mysql # DIV for integer division: 
query I rowsort label-5475
SELECT + 4 * 30 DIV 78
----
1

skipif mysql # not compatible
query I rowsort label-5475
SELECT + 4 * 30 / 78
----
1

query I rowsort
SELECT - 75 + + 38
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT - SUM( - - CAST( 45 AS SIGNED ) )
----
-45

skipif mysql # not compatible
query I rowsort label-5477
SELECT - SUM ( - - CAST ( 45 AS INTEGER ) )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - ( - 68 ) + - COUNT( * ) col1
----
67

skipif mysql # not compatible
query I rowsort label-5478
SELECT - ( - 68 ) + - COUNT ( * ) col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT 84 + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-5479
SELECT 84 + COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL 15 + COUNT( ALL + ( - 19 ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL 15 + COUNT ( ALL + ( - 19 ) ) AS col2
----
16

query I rowsort
SELECT 90 + 75
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ( 56 ) * COUNT( * ) * + 80
----
4480

skipif mysql # not compatible
query I rowsort label-5482
SELECT ( 56 ) * COUNT ( * ) * + 80
----
4480

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL CASE SUM( ALL + + 25 ) WHEN + ( NULLIF ( COUNT( * ), COUNT( * ) ) ) + 0 / - + 6 + - + 67 + - 45 THEN NULL ELSE + 84 END * + MIN( ALL + 77 ) * + 48
----
310464

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL CASE SUM ( ALL + + 25 ) WHEN + ( NULLIF ( COUNT ( * ), COUNT ( * ) ) ) + 0 / - + 6 + - + 67 + - 45 THEN NULL ELSE + 84 END * + MIN ( ALL + 77 ) * + 48
----
310464

query I rowsort
SELECT ALL 31 + - 8 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5485
SELECT 75 * CAST( NULL AS SIGNED ) * 83 * 13 * + + 36 * - 40 + - + MAX( ALL 87 ) * + 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT 75 * CAST ( NULL AS INTEGER ) * 83 * 13 * + + 36 * - 40 + - + MAX ( ALL 87 ) * + 43 col0
----
NULL

query I rowsort
SELECT ALL - 39 + + - 74
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ( - + 83 ) * + MIN( COALESCE ( - 96, + + 80 * + 8 + 45 ) )
----
7968

skipif mysql # not compatible
query I rowsort label-5487
SELECT ( - + 83 ) * + MIN ( COALESCE ( - 96, + + 80 * + 8 + 45 ) )
----
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL COUNT( * ) + - 16 + + NULLIF ( - 84, + 51 ) * + NULLIF ( - 12, + 66 * 91 ) + + 5 AS col0
----
998

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL COUNT ( * ) + - 16 + + NULLIF ( - 84, + 51 ) * + NULLIF ( - 12, + 66 * 91 ) + + 5 AS col0
----
998

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT 1 - 66 + 3 - - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT 1 - 66 + 3 - - COUNT ( * )
----
-61

query II rowsort
SELECT + - ( ( - 75 ) ), 69 AS col0
----
75
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - 76 * 6 + + ( - COUNT( * ) ) AS col1
----
-457

skipif mysql # not compatible
query I rowsort label-5491
SELECT - 76 * 6 + + ( - COUNT ( * ) ) AS col1
----
-457

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT ALL ( - 56 ) - + 98 DIV - + 43 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL ( - 56 ) - + 98 / - + 43 AS col0
----
-54

query I rowsort
SELECT 10 * - - 44 AS col1
----
440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5494
SELECT + + ( - 67 ) DIV - + 87 + - 10 - + ( 56 ) + + COUNT( 8 ) + - 32 DIV + 78 + + 30 + - 93 * - 9 * ( + + 2 )
----
1639

skipif mysql # not compatible
query I rowsort label-5494
SELECT + + ( - 67 ) / - + 87 + - 10 - + ( 56 ) + + COUNT ( 8 ) + - 32 / + 78 + + 30 + - 93 * - 9 * ( + + 2 )
----
1639

onlyif mysql # aggregate syntax: 
query II rowsort label-5495
SELECT COUNT( * ) AS col2, SUM( - 97 ) + - 50 AS col2
----
1
-147

skipif mysql # not compatible
query II rowsort label-5495
SELECT COUNT ( * ) AS col2, SUM ( - 97 ) + - 50 AS col2
----
1
-147

query I rowsort
SELECT ALL 86 - NULLIF ( 86, 33 * - + 69 + + + 49 * - NULLIF ( 71, - 15 ) ) * + + 33 * + 5 AS col2
----
-14104

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT COUNT( * ) * 64 + 44 + 65 AS col0
----
173

skipif mysql # not compatible
query I rowsort label-5497
SELECT COUNT ( * ) * 64 + 44 + 65 AS col0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT + - COUNT( * ) * 70
----
-70

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + - COUNT ( * ) * 70
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + SUM( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-5499
SELECT + SUM ( - 55 )
----
-55

query II rowsort
SELECT ALL - 23, + 12 AS col0
----
-23
12

query II rowsort
SELECT ALL - 82 AS col1, 27 AS col0
----
-82
27

query I rowsort
SELECT DISTINCT - + ( + 7 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT 31 * - 56 + + MIN( - - ( 55 ) ) - 82 * 83
----
-8487

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT 31 * - 56 + + MIN ( - - ( 55 ) ) - 82 * 83
----
-8487

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT 2 + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5504
SELECT 2 + - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 48 + 35 + 3 * 7
----
104

query I rowsort
SELECT + 27 * + ( + - 18 ) - NULLIF ( - + ( - 85 ), 69 + - 35 - - 29 ) - - 86 + - + 46 * + 27 AS col2
----
-1727

query II rowsort
SELECT - 2 * + - 52 * + 81, + 39 col2
----
8424
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5508
SELECT 84 DIV + CAST( - - 44 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5508
SELECT 84 / + CAST ( - - 44 AS INTEGER ) AS col0
----
1

query I rowsort
SELECT ALL + 69 + - 86 - NULLIF ( 61, - 42 + - 85 ) * + + 76 AS col2
----
-4653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5510
SELECT ALL - 42 + CAST( - COALESCE ( - CASE + 67 WHEN + - COUNT( * ) THEN NULL WHEN + + ( 97 ) THEN 80 * 95 WHEN - COUNT( * ) THEN NULL ELSE + + MIN( + - 84 ) END, 50 ) AS SIGNED ) * + 79 * + CAST( NULL AS SIGNED ) / + 89 - - 74 + 7 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL - 42 + CAST ( - COALESCE ( - CASE + 67 WHEN + - COUNT ( * ) THEN NULL WHEN + + ( 97 ) THEN 80 * 95 WHEN - COUNT ( * ) THEN NULL ELSE + + MIN ( + - 84 ) END, 50 ) AS INTEGER ) * + 79 * + CAST ( NULL AS INTEGER ) / + 89 - - 74 + 7 + COUNT ( * )
----
NULL

query I rowsort
SELECT 0 + - 76
----
-76

query I rowsort
SELECT DISTINCT + 97 * + 36
----
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL - ( 55 ) + - MIN( - - 25 )
----
-80

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL - ( 55 ) + - MIN ( - - 25 )
----
-80

query II rowsort
SELECT 9 + + 61 col2, + ( - + 99 )
----
70
-99

query I rowsort
SELECT ALL - 70 + + + 3 AS col0
----
-67

query II rowsort
SELECT - 56 col0, - 90 * CASE - 37 WHEN + 94 - + - 27 THEN NULL WHEN + - 70 - - + 97 THEN NULL WHEN - 75 THEN 82 * 18 + + + ( 58 ) ELSE + 27 - 37 + - 33 END AS col1
----
-56
3870

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT 19 * - - ( + - MIN( ALL - 91 ) )
----
1729

skipif mysql # not compatible
query I rowsort label-5517
SELECT 19 * - - ( + - MIN ( ALL - 91 ) )
----
1729

query I rowsort
SELECT 9 * + 50 AS col0
----
450

query I rowsort
SELECT ALL + 7 + 32 + - 97 AS col1
----
-58

query I rowsort
SELECT ALL 25 + - 65
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT COUNT( * ) * 71 * 0
----
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT COUNT ( * ) * 71 * 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT DISTINCT 19 * + 19 * - CAST( COALESCE ( 87, + 34 * 40 - + + COALESCE ( 2, + ( - ( + - 70 ) ) * - - 79 * - 8 ) * - 92, - 41 ) AS SIGNED )
----
-31407

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT 19 * + 19 * - CAST ( COALESCE ( 87, + 34 * 40 - + + COALESCE ( 2, + ( - ( + - 70 ) ) * - - 79 * - 8 ) * - 92, - 41 ) AS INTEGER )
----
-31407

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL + 3 * + COUNT( ALL + + 6 ) - COUNT( DISTINCT - + 65 )
----
2

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL + 3 * + COUNT ( ALL + + 6 ) - COUNT ( DISTINCT - + 65 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + 43 * - + CASE - + COUNT( * ) WHEN - ( - + 1 ) * + 64 THEN 12 * + 26 + - + 80 + - 21 * + 18 * - COUNT( * ) ELSE NULL END - + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT + 43 * - + CASE - + COUNT ( * ) WHEN - ( - + 1 ) * + 64 THEN 12 * + 26 + - + 80 + - 21 * + 18 * - COUNT ( * ) ELSE NULL END - + - 20 AS col1
----
NULL

query I rowsort
SELECT ALL + 59 * 11
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT 96 * - 36 - + - COALESCE ( - 89, - MIN( - - 25 ) ) AS col0
----
-3545

skipif mysql # not compatible
query I rowsort label-5526
SELECT 96 * - 36 - + - COALESCE ( - 89, - MIN ( - - 25 ) ) AS col0
----
-3545

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5527
SELECT + 26 col0, + COALESCE ( + CAST( NULL AS SIGNED ), + 26 ) + 12
----
26
38

skipif mysql # not compatible
query II rowsort label-5527
SELECT + 26 col0, + COALESCE ( + CAST ( NULL AS INTEGER ), + 26 ) + 12
----
26
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5528
SELECT + NULLIF ( 52, - COALESCE ( - - 86, - 66 + 18, + + 43 ) ) + COUNT( * ) - - + CAST( COUNT( * ) AS SIGNED ) * + + 68 DIV - MAX( DISTINCT - - 17 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5528
SELECT + NULLIF ( 52, - COALESCE ( - - 86, - 66 + 18, + + 43 ) ) + COUNT ( * ) - - + CAST ( COUNT ( * ) AS INTEGER ) * + + 68 / - MAX ( DISTINCT - - 17 ) AS col1
----
49

query II rowsort
SELECT DISTINCT - - 74 AS col0, 37
----
74
37

query I rowsort
SELECT 17 + - 97
----
-80

query I rowsort
SELECT 48 * - 84 * + - 10 AS col0
----
40320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5532
SELECT ALL 76 / COUNT( * ) * + ( CASE - CASE - COUNT( * ) WHEN - + COUNT( * ) * + 57 - + 37 THEN NULL WHEN + 48 * + 17 / + - 49 THEN NULL ELSE 1 + - ( + - CAST( + 49 AS SIGNED ) ) END WHEN + 41 THEN 59 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL 76 / COUNT ( * ) * + ( CASE - CASE - COUNT ( * ) WHEN - + COUNT ( * ) * + 57 - + 37 THEN NULL WHEN + 48 * + 17 / + - 49 THEN NULL ELSE 1 + - ( + - CAST ( + 49 AS INTEGER ) ) END WHEN + 41 THEN 59 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) * - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 0 AS col2
----
NULL

query II rowsort
SELECT + ( - ( - - 40 ) ) * - 52 AS col2, + 84 * 53 AS col0
----
2080
4452

query I rowsort
SELECT 86 + - - 16
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT + AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT + AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5537
SELECT 66 col0, 81 * + CAST( + 93 AS SIGNED ) + - + 43
----
66
7490

skipif mysql # not compatible
query II rowsort label-5537
SELECT 66 col0, 81 * + CAST ( + 93 AS INTEGER ) + - + 43
----
66
7490

query I rowsort
SELECT 45 * - 36 + 51 + - + 42 + - 58 AS col0
----
-1669

onlyif mysql # aggregate syntax: 
query II rowsort label-5539
SELECT ALL + ( + 45 ) * - MAX( ALL 8 ) * - 81, + ( MAX( + - 75 ) ) - - - 81 AS col0
----
29160
-156

skipif mysql # not compatible
query II rowsort label-5539
SELECT ALL + ( + 45 ) * - MAX ( ALL 8 ) * - 81, + ( MAX ( + - 75 ) ) - - - 81 AS col0
----
29160
-156

query I rowsort
SELECT ALL 10 + - 2
----
8

query I rowsort
SELECT DISTINCT 68 + - 35 - 63 * + 38 AS col1
----
-2361

query I rowsort
SELECT + 85 + + - 38
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5543
SELECT + ( NULLIF ( - + 16, 67 * 99 / SUM( ALL - 15 ) + - 9 ) ) + 69 * + + 50 * + + 19 + + - CASE 38 WHEN - CAST( NULL AS DECIMAL ) * + + 99 * 58 THEN NULL WHEN ( - + 39 ) * + - 54 THEN 28 * - + 0 * + + NULLIF ( 25, + 77 / + 33 ) ELSE 13 END + + + 87 + + ( + 36 ) + + COUNT( * ) * 29 * + - MIN( ALL 22 ) + + COUNT( * )
----
65007

skipif mysql # not compatible
query I rowsort label-5543
SELECT + ( NULLIF ( - + 16, 67 * 99 / SUM ( ALL - 15 ) + - 9 ) ) + 69 * + + 50 * + + 19 + + - CASE 38 WHEN - CAST ( NULL AS REAL ) * + + 99 * 58 THEN NULL WHEN ( - + 39 ) * + - 54 THEN 28 * - + 0 * + + NULLIF ( 25, + 77 / + 33 ) ELSE 13 END + + + 87 + + ( + 36 ) + + COUNT ( * ) * 29 * + - MIN ( ALL 22 ) + + COUNT ( * )
----
65007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT + 20 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT + 20 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 38 + - - 87 col1
----
125

query I rowsort
SELECT - 14 + + + 67 * - + 25
----
-1689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5547
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - NULLIF ( - - 66, 0 / - COUNT( * ) ) * + - CASE - 74 WHEN 36 THEN 68 ELSE NULL END - 40 * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - NULLIF ( - - 66, 0 / - COUNT ( * ) ) * + - CASE - 74 WHEN 36 THEN 68 ELSE NULL END - 40 * - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT - 90 * - - 36 * - - COALESCE ( - 55, - 50 + 73 + - COUNT( * ) - 96 * 72, 95 )
----
178200

skipif mysql # not compatible
query I rowsort label-5548
SELECT - 90 * - - 36 * - - COALESCE ( - 55, - 50 + 73 + - COUNT ( * ) - 96 * 72, 95 )
----
178200

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5549
SELECT ALL 96 DIV 68 * 55 * ( - + 9 ) * + 72 * 7 AS col0, CAST( - 71 AS SIGNED ) + - 27 * - 8 - 82 - + 28 AS col1
----
-249480
35

skipif mysql # not compatible
query II rowsort label-5549
SELECT ALL 96 / 68 * 55 * ( - + 9 ) * + 72 * 7 AS col0, CAST ( - 71 AS INTEGER ) + - 27 * - 8 - 82 - + 28 AS col1
----
-249480
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT + COUNT( DISTINCT + 72 ) - - - 48 + 94 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT + COUNT ( DISTINCT + 72 ) - - - 48 + 94 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5551
SELECT - ( + CAST( - COUNT( * ) AS SIGNED ) ) col0, + 33 + - 69 + + 61 * + 50 + + COALESCE ( + - 62, - + 98 + + 25 ) + + - 14 * + ( 3 )
----
1
2910

skipif mysql # not compatible
query II rowsort label-5551
SELECT - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) col0, + 33 + - 69 + + 61 * + 50 + + COALESCE ( + - 62, - + 98 + + 25 ) + + - 14 * + ( 3 )
----
1
2910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT ALL + CAST( + - 33 AS SIGNED ) - - - 9 col2
----
-42

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL + CAST ( + - 33 AS INTEGER ) - - - 9 col2
----
-42

query I rowsort
SELECT + 95 * + 88 AS col2
----
8360

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT - 60 + + COALESCE ( 48, + COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-5554
SELECT - 60 + + COALESCE ( 48, + COUNT ( * ) )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT - 72 + - - 1 - + CAST( - - 7 AS SIGNED ) * + + 96
----
-743

skipif mysql # not compatible
query I rowsort label-5555
SELECT - 72 + - - 1 - + CAST ( - - 7 AS INTEGER ) * + + 96
----
-743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5556
SELECT ALL + + 0 * CASE WHEN + 66 IS NOT NULL THEN 19 DIV + 79 - 48 WHEN NOT - 25 + - 62 <> - COUNT( * ) THEN - 87 + + - 7 * + - 34 + - 62 ELSE + 52 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL + + 0 * CASE WHEN + 66 IS NOT NULL THEN 19 / + 79 - 48 WHEN NOT - 25 + - 62 <> - COUNT ( * ) THEN - 87 + + - 7 * + - 34 + - 62 ELSE + 52 END AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5557
SELECT - + ( COUNT( * ) ) + - CAST( NULL AS SIGNED ) + 88 + 44 + - + CASE WHEN 91 < NULL THEN - 65 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT - + ( COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) + 88 + 44 + - + CASE WHEN 91 < NULL THEN - 65 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT + ( + - COUNT( * ) ) * - 25 + 8
----
33

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT + ( + - COUNT ( * ) ) * - 25 + 8
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5559
SELECT - 7 * + - 27 / - - 3 - - + 86 * - MIN( ALL + 79 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT - 7 * + - 27 / - - 3 - - + 86 * - MIN ( ALL + 79 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - ( - ( + - 7 ) ) * + 78 * + - 91 + - 18
----
49668

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT ALL - 4 DIV - 65 col1
----
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL - 4 / - 65 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5562
SELECT - - ( - NULLIF ( - 40, COUNT( * ) * - - COUNT( * ) ) ) DIV - 87 + 53, 64 * + 73 + 26 AS col1, NULLIF ( + + 0, - SUM( ALL - + 39 ) ) * 60 + - - 20 + + - COUNT( * ) AS col0
----
53
4698
19

skipif mysql # not compatible
query III rowsort label-5562
SELECT - - ( - NULLIF ( - 40, COUNT ( * ) * - - COUNT ( * ) ) ) / - 87 + 53, 64 * + 73 + 26 AS col1, NULLIF ( + + 0, - SUM ( ALL - + 39 ) ) * 60 + - - 20 + + - COUNT ( * ) AS col0
----
53
4698
19

query I rowsort
SELECT + - 93 * - 8 * + 55
----
40920

query I rowsort
SELECT + - 77 * - - 63 + + 44
----
-4807

query I rowsort
SELECT + - ( + + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL 33 * - 59 - MIN( + 63 ) + 97 + ( 75 ) + COUNT( * ) AS col1
----
-1837

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL 33 * - 59 - MIN ( + 63 ) + 97 + ( 75 ) + COUNT ( * ) AS col1
----
-1837

query I rowsort
SELECT DISTINCT ( 46 ) * + 53 + 52 + - 48
----
2442

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5568
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 99 AS col0, 41 * + - 56 AS col2
----
NULL
-2296

skipif mysql # not compatible
query II rowsort label-5568
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 99 AS col0, 41 * + - 56 AS col2
----
NULL
-2296

query I rowsort
SELECT DISTINCT + + ( - + 65 ) AS col0
----
-65

query I rowsort
SELECT ALL - + 24 * ( - - 46 ) + - 86 col0
----
-1190

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5571
SELECT COALESCE ( 58, ( - + 17 ) * + + COALESCE ( 34, 86 ) DIV + - CAST( NULL AS SIGNED ) + + - 18 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-5571
SELECT COALESCE ( 58, ( - + 17 ) * + + COALESCE ( 34, 86 ) / + - CAST ( NULL AS INTEGER ) + + - 18 ) col1
----
58

query I rowsort
SELECT + 56 * - 73
----
-4088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5573
SELECT ALL 62 DIV + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL 62 / + COUNT ( * ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5574
SELECT + COUNT( * ) AS col2, - 95
----
1
-95

skipif mysql # not compatible
query II rowsort label-5574
SELECT + COUNT ( * ) AS col2, - 95
----
1
-95

query I rowsort
SELECT + 62 * 94
----
5828

query I rowsort
SELECT + 68 + - + 37 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT MIN( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-5577
SELECT MIN ( 51 )
----
51

query II rowsort
SELECT + 32 * + 71 * 70, 87 - + 73 * - 36 - + 40 AS col1
----
159040
2675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT - CAST( - 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-5579
SELECT - CAST ( - 83 AS INTEGER )
----
83

query II rowsort
SELECT ALL 68 AS col2, 48 * + + 80 * 9
----
68
34560

query I rowsort
SELECT + 96 * 44 col2
----
4224

query II rowsort
SELECT 4 AS col0, 0 * + + 97
----
4
0

query I rowsort
SELECT + 31 * + - ( + 24 ) AS col0
----
-744

query I rowsort
SELECT - 36 * + - 74 AS col2
----
2664

query I rowsort
SELECT DISTINCT - NULLIF ( + - 71, 64 + 32 ) AS col0
----
71

query I rowsort
SELECT DISTINCT COALESCE ( - 50, - 81 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-5587
SELECT - + 0 AS col0, + COUNT( * ) * 56 AS col0
----
0
56

skipif mysql # not compatible
query II rowsort label-5587
SELECT - + 0 AS col0, + COUNT ( * ) * 56 AS col0
----
0
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL + COUNT( * ) * + + 36
----
36

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL + COUNT ( * ) * + + 36
----
36

query I rowsort
SELECT + - 2 * 58
----
-116

onlyif mysql # aggregate syntax: 
query II rowsort label-5590
SELECT - + 38 * - 71 * 56, + COUNT( * ) AS col0
----
151088
1

skipif mysql # not compatible
query II rowsort label-5590
SELECT - + 38 * - 71 * 56, + COUNT ( * ) AS col0
----
151088
1

query I rowsort
SELECT DISTINCT - - ( CASE + 90 WHEN + COALESCE ( 11, 5 * + 21 ) / 16 + 57 THEN NULL ELSE 18 * - 99 - + ( - 53 ) END ) * - - 31
----
-53599

query II rowsort
SELECT + 34, 66 AS col1
----
34
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5593
SELECT + 45 AS col1, 78 * - - COALESCE ( - + 66, 40 * + COUNT( * ) DIV + + 15 ) AS col1
----
45
-5148

skipif mysql # not compatible
query II rowsort label-5593
SELECT + 45 AS col1, 78 * - - COALESCE ( - + 66, 40 * + COUNT ( * ) / + + 15 ) AS col1
----
45
-5148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5594
SELECT + CAST( + ( - - 52 ) AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5594
SELECT + CAST ( + ( - - 52 ) AS INTEGER ) AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5595
SELECT ALL 93 DIV - 85 + - 78 + 37 + + NULLIF ( + 60, - 52 )
----
18

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL 93 / - 85 + - 78 + 37 + + NULLIF ( + 60, - 52 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT + + ( - - 29 ) DIV - 10 + + 56 + + + 52
----
106

skipif mysql # not compatible
query I rowsort label-5596
SELECT + + ( - - 29 ) / - 10 + + 56 + + + 52
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT COUNT( * ) AS col2, 55
----
1
55

skipif mysql # not compatible
query II rowsort label-5597
SELECT COUNT ( * ) AS col2, 55
----
1
55

query I rowsort
SELECT DISTINCT - 14 * - 69 col2
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT - 56 + + 70 * - COUNT( * )
----
-126

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT - 56 + + 70 * - COUNT ( * )
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-5600
SELECT ALL - - COALESCE ( + NULLIF ( 59, + COUNT( * ) * + ( - MIN( ALL 98 ) ) ), - 5 + - 77 ), 34 AS col0
----
59
34

skipif mysql # not compatible
query II rowsort label-5600
SELECT ALL - - COALESCE ( + NULLIF ( 59, + COUNT ( * ) * + ( - MIN ( ALL 98 ) ) ), - 5 + - 77 ), 34 AS col0
----
59
34

query I rowsort
SELECT ALL + + 1 + - ( + 66 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - COALESCE ( ( + COUNT( * ) ), - 72 + - 72 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5602
SELECT - COALESCE ( ( + COUNT ( * ) ), - 72 + - 72 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL + COUNT( * ) + + 96
----
97

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL + COUNT ( * ) + + 96
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT ALL - CAST( 5 AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL - CAST ( 5 AS INTEGER ) AS col2
----
-5

query I rowsort
SELECT 93 * 79 col1
----
7347

query I rowsort
SELECT DISTINCT + 93 - - 71 AS col2
----
164

query I rowsort
SELECT - 7 * + NULLIF ( - + NULLIF ( - - 59, + + 46 ), 56 ) + - ( - 24 ) AS col0
----
437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5608
SELECT DISTINCT - COUNT( ALL + + 23 ) DIV + + ( 90 ) + 34
----
34

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT - COUNT ( ALL + + 23 ) / + + ( 90 ) + 34
----
34

query I rowsort
SELECT 18 * 92
----
1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5610
SELECT COUNT( * ) DIV + - 8
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT COUNT ( * ) / + - 8
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT DISTINCT ( - NULLIF ( 12, + MIN( + + ( + 76 ) ) + - + 93 ) ) DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT ( - NULLIF ( 12, + MIN ( + + ( + 76 ) ) + - + 93 ) ) / 97
----
0

query I rowsort
SELECT 24 + ( - - 54 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ( - CASE NULLIF ( SUM( - - 62 ), + 68 ) WHEN + 63 THEN NULL WHEN - 39 THEN - 62 ELSE 92 END ) - + - 23 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5613
SELECT ( - CASE NULLIF ( SUM ( - - 62 ), + 68 ) WHEN + 63 THEN NULL WHEN - 39 THEN - 62 ELSE 92 END ) - + - 23 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT COUNT( * ) + 19 + + 52 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5614
SELECT COUNT ( * ) + 19 + + 52 AS col0
----
72

query I rowsort
SELECT ALL + 28 + - 79
----
-51

query I rowsort
SELECT DISTINCT 41 * + - 4 * + + 74 + - + 75
----
-12211

query I rowsort
SELECT + 80 * + + 28 + - 30
----
2210

query I rowsort
SELECT ALL + 48 + + 42
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT ALL MAX( + + 64 ) * COUNT( DISTINCT 78 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL MAX ( + + 64 ) * COUNT ( DISTINCT 78 ) AS col2
----
64

query I rowsort
SELECT ALL + ( - + ( 74 ) ) AS col1
----
-74

query I rowsort
SELECT + 3 + - 29 + + - 88
----
-114

query I rowsort
SELECT 92 + + 99
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT - 30 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT - 30 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - ( - + 18 )
----
-18

query II rowsort
SELECT DISTINCT + 85 + + 60 AS col0, 47 AS col1
----
145
47

query I rowsort
SELECT DISTINCT - - 26 col1
----
26

query I rowsort
SELECT - 96 * + 1 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT ALL + SUM( ALL - 94 ) + - 52 + + 3
----
-143

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL + SUM ( ALL - 94 ) + - 52 + + 3
----
-143

query I rowsort
SELECT ALL + 71 + 93 AS col0
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT ALL 88 DIV - + ( - 18 ) - - 87 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL 88 / - + ( - 18 ) - - 87 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5631
SELECT - MIN( ALL - 63 ) * 89 + 49 + - 43 + 69 * + ( + + CASE + 63 WHEN + 48 THEN CAST( NULL AS SIGNED ) END ) / 82 + - - 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT - MIN ( ALL - 63 ) * 89 + 49 + - 43 + 69 * + ( + + CASE + 63 WHEN + 48 THEN CAST ( NULL AS INTEGER ) END ) / 82 + - - 13 col1
----
NULL

query I rowsort
SELECT ALL - 69 * ( 21 ) AS col1
----
-1449

onlyif mysql # aggregate syntax: 
query II rowsort label-5633
SELECT ALL + 11 - + 84 + COUNT( * ) + + - 5 * 42 - + 49 + + 38 - - ( + 53 ) AS col1, + 49
----
-240
49

skipif mysql # not compatible
query II rowsort label-5633
SELECT ALL + 11 - + 84 + COUNT ( * ) + + - 5 * 42 - + 49 + + 38 - - ( + 53 ) AS col1, + 49
----
-240
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT + CASE + + 91 WHEN + ( 18 ) THEN NULL WHEN - NULLIF ( - 95, - 19 - + 56 ) THEN + 9 * 67 * 18 END * - CAST( 22 AS SIGNED ) + + 94 - COUNT( * ) / 50 * - + CASE + - 23 WHEN - 47 THEN + 1 WHEN COUNT( * ) + MAX( 13 ) * 2 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT + CASE + + 91 WHEN + ( 18 ) THEN NULL WHEN - NULLIF ( - 95, - 19 - + 56 ) THEN + 9 * 67 * 18 END * - CAST ( 22 AS INTEGER ) + + 94 - COUNT ( * ) / 50 * - + CASE + - 23 WHEN - 47 THEN + 1 WHEN COUNT ( * ) + MAX ( 13 ) * 2 THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 3 * - 74 AS col2
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL - MAX( DISTINCT 24 ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - MAX ( DISTINCT 24 ) col1
----
-24

query I rowsort
SELECT ALL 44 * + 42 AS col1
----
1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5638
SELECT ALL - CAST( - + COUNT( + 90 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL - CAST ( - + COUNT ( + 90 ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT 28 * + + 82
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL - COUNT( DISTINCT - + 96 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - COUNT ( DISTINCT - + 96 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5641
SELECT - 21 * + CAST( NULL AS SIGNED ) + - - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT - 21 * + CAST ( NULL AS INTEGER ) + - - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT - MAX( 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT - MAX ( 70 )
----
-70

query I rowsort
SELECT 18 * + 24
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT 53 + ( 85 ) + - MAX( ALL - 69 ) + - 13 + MIN( + 32 ) * - 48
----
-1342

skipif mysql # not compatible
query I rowsort label-5644
SELECT 53 + ( 85 ) + - MAX ( ALL - 69 ) + - 13 + MIN ( + 32 ) * - 48
----
-1342

query I rowsort
SELECT ALL + ( + 80 ) * - + 52 - 1 + + 87 * - 3 * - 91 + - 41
----
19549

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT 69 + + COUNT( * ) * + 44
----
113

skipif mysql # not compatible
query I rowsort label-5646
SELECT 69 + + COUNT ( * ) * + 44
----
113

query I rowsort
SELECT ALL + 90 * + + 96 * - 64 * + NULLIF ( - - 94, + 62 )
----
-51978240

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT 43 * - COUNT( * ) * + COUNT( * ) * 48 AS col2
----
-2064

skipif mysql # not compatible
query I rowsort label-5648
SELECT 43 * - COUNT ( * ) * + COUNT ( * ) * 48 AS col2
----
-2064

query I rowsort
SELECT ALL + 17 + - 91
----
-74

query I rowsort
SELECT DISTINCT 54 + + 42 + - - 14 AS col0
----
110

query I rowsort
SELECT ALL 13 + + 29 + + 5 + 0 * - 20 * - 19 * + ( - 37 ) col0
----
47

query I rowsort
SELECT DISTINCT - 45 * + 6 AS col0
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT ALL + CAST( 46 AS SIGNED ) + - 54 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL + CAST ( 46 AS INTEGER ) + - 54 AS col1
----
-8

query I rowsort
SELECT 68 * + - 83
----
-5644

query I rowsort
SELECT ( - - 45 ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT - 0 DIV 91 * - 37
----
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT - 0 / 91 * - 37
----
0

query I rowsort
SELECT ALL 70 + + + 3 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT + NULLIF ( + 50, - COUNT( * ) ) * + CASE + 35 WHEN - 92 THEN + 47 * - ( - + 61 ) ELSE - 93 + - - 52 END + + COUNT( * )
----
-2049

skipif mysql # not compatible
query I rowsort label-5658
SELECT + NULLIF ( + 50, - COUNT ( * ) ) * + CASE + 35 WHEN - 92 THEN + 47 * - ( - + 61 ) ELSE - 93 + - - 52 END + + COUNT ( * )
----
-2049

onlyif mysql # aggregate syntax: 
query II rowsort label-5659
SELECT - + NULLIF ( - ( 80 ), + + MAX( - - 18 ) + - ( + 2 ) + + + 2 * COUNT( * ) ) * + 8 - + 24, 45 + - 44 AS col0
----
616
1

skipif mysql # not compatible
query II rowsort label-5659
SELECT - + NULLIF ( - ( 80 ), + + MAX ( - - 18 ) + - ( + 2 ) + + + 2 * COUNT ( * ) ) * + 8 - + 24, 45 + - 44 AS col0
----
616
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5660
SELECT ALL CAST( NULL AS DECIMAL ), ( + + 6 ) col0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-5660
SELECT ALL CAST ( NULL AS REAL ), ( + + 6 ) col0
----
NULL
6

query I rowsort
SELECT - ( - 92 ) AS col1
----
92

query I rowsort
SELECT ALL - + 10 + + 41
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT - MIN( ALL - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT - MIN ( ALL - 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL 20 + - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL 20 + - COUNT ( * ) AS col0
----
19

query I rowsort
SELECT + 89 * - 87 AS col1
----
-7743

onlyif mysql # aggregate syntax: 
query II rowsort label-5666
SELECT ALL - CASE + 76 WHEN 65 THEN - COUNT( * ) * 71 END, 57 AS col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-5666
SELECT ALL - CASE + 76 WHEN 65 THEN - COUNT ( * ) * 71 END, 57 AS col2
----
NULL
57

query I rowsort
SELECT + 16 * 54 AS col1
----
864

query I rowsort
SELECT ALL - 28 * 63 - - 4 + 26 + - 2 * + - 36 AS col1
----
-1662

onlyif mysql # DIV for integer division: 
query II rowsort label-5669
SELECT - + 63 DIV + + 9 + 41, - 88 AS col1
----
34
-88

skipif mysql # not compatible
query II rowsort label-5669
SELECT - + 63 / + + 9 + 41, - 88 AS col1
----
34
-88

query I rowsort
SELECT + 98 + - 83 + - 73 - - ( - 50 )
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5671
SELECT DISTINCT + 51 AS col0, CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
51
-1

skipif mysql # not compatible
query II rowsort label-5671
SELECT DISTINCT + 51 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
51
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT + 91 / - CASE - + COUNT( * ) WHEN + 18 / 36 * - - COUNT( * ) THEN - 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT + 91 / - CASE - + COUNT ( * ) WHEN + 18 / 36 * - - COUNT ( * ) THEN - 7 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT ALL ( + 40 ) DIV - - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL ( + 40 ) / - - 63 AS col1
----
0

query II rowsort
SELECT + 52, - 73 * + + 14 + - 5 + + 67 AS col0
----
52
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT 30 * + CASE - COUNT( * ) WHEN + 98 THEN NULL WHEN 74 * - 2 THEN NULL ELSE 84 END + 5 AS col2
----
2525

skipif mysql # not compatible
query I rowsort label-5675
SELECT 30 * + CASE - COUNT ( * ) WHEN + 98 THEN NULL WHEN 74 * - 2 THEN NULL ELSE 84 END + 5 AS col2
----
2525

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT + 55 DIV - 3
----
-18

skipif mysql # not compatible
query I rowsort label-5676
SELECT + 55 / - 3
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5677
SELECT - 61 DIV COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-5677
SELECT - 61 / COUNT ( * ) AS col0
----
-61

query II rowsort
SELECT ALL + 31 * + 85 AS col1, + 45 col1
----
2635
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT - COUNT( * ) * + COUNT( DISTINCT - + 12 ) * + + COUNT( * ) * - 14 + + - COUNT( * ) - + 49
----
-36

skipif mysql # not compatible
query I rowsort label-5679
SELECT - COUNT ( * ) * + COUNT ( DISTINCT - + 12 ) * + + COUNT ( * ) * - 14 + + - COUNT ( * ) - + 49
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT SUM( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-5680
SELECT SUM ( 19 )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5681
SELECT 31 * - 11 * + 99 + - 24 * COUNT( * ) + + - COUNT( * ) AS col1, + 73
----
-33784
73

skipif mysql # not compatible
query II rowsort label-5681
SELECT 31 * - 11 * + 99 + - 24 * COUNT ( * ) + + - COUNT ( * ) AS col1, + 73
----
-33784
73

query II rowsort
SELECT ALL + 8, - 76 + - 58 + + 86 AS col0
----
8
-48

query I rowsort
SELECT + ( - 43 ) col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL - 56 * + - 2 + - NULLIF ( + 87, MIN( ALL - 64 ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL - 56 * + - 2 + - NULLIF ( + 87, MIN ( ALL - 64 ) ) AS col2
----
25

query II rowsort
SELECT DISTINCT + 85, + 38 col1
----
85
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT COUNT( - - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT COUNT ( - - 69 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT ALL + 57 * - + 22 + + + 7 + COUNT( * ) * - CASE - 43 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 35 THEN - + MIN( ALL - - 44 ) * + 87 + + - 47 / 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL + 57 * - + 22 + + + 7 + COUNT ( * ) * - CASE - 43 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 35 THEN - + MIN ( ALL - - 44 ) * + 87 + + - 47 / 74 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT DISTINCT + 4 + - 5 DIV + + 64 + - 2
----
2

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT + 4 + - 5 / + + 64 + - 2
----
2

query II rowsort
SELECT - 81 AS col0, 57
----
-81
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL + 20 + + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL + 20 + + COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT - MAX( DISTINCT + + ( + 53 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-5691
SELECT - MAX ( DISTINCT + + ( + 53 ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT - - 40 + + + COUNT( * ) + 66
----
107

skipif mysql # not compatible
query I rowsort label-5692
SELECT - - 40 + + + COUNT ( * ) + 66
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT - ( + + CASE + 96 WHEN + 96 THEN - - COUNT( * ) + + - COUNT( * ) ELSE 62 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5693
SELECT - ( + + CASE + 96 WHEN + 96 THEN - - COUNT ( * ) + + - COUNT ( * ) ELSE 62 END ) AS col0
----
0

query I rowsort
SELECT - + 65 + + - 72
----
-137

query I rowsort
SELECT - - 90 + + - 59 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT DISTINCT - 26 * - 0 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - 26 * - 0 + - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL COUNT( * ) - ( 1 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL COUNT ( * ) - ( 1 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT - CAST( + ( - 85 ) AS SIGNED ) * 78 * CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT - CAST ( + ( - 85 ) AS INTEGER ) * 78 * CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL - - COUNT( 15 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL - - COUNT ( 15 ) * - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 35 * + + ( - + 30 ) * 49 * + 23
----
-1183350

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT - - 38 DIV - + 1
----
-38

skipif mysql # not compatible
query I rowsort label-5701
SELECT - - 38 / - + 1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + - 33 * + COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5702
SELECT + - 33 * + COUNT ( * ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5703
SELECT + - 74 + 32 - + + CAST( NULL AS SIGNED ) + - 91 / - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT + - 74 + 32 - + + CAST ( NULL AS INTEGER ) + - 91 / - 35
----
NULL

query I rowsort
SELECT - + 63 * - 68 AS col2
----
4284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5705
SELECT ALL + 98 AS col0, + 76 + COUNT( DISTINCT - + 45 ) * 49 + - - ( + - 72 ) AS col2, - - 90 * - - 64 * + CAST( NULL AS SIGNED ) * 20 * + 44 - + 93 * COUNT( * ) AS col0
----
98
53
NULL

skipif mysql # not compatible
query III rowsort label-5705
SELECT ALL + 98 AS col0, + 76 + COUNT ( DISTINCT - + 45 ) * 49 + - - ( + - 72 ) AS col2, - - 90 * - - 64 * + CAST ( NULL AS INTEGER ) * 20 * + 44 - + 93 * COUNT ( * ) AS col0
----
98
53
NULL

query I rowsort
SELECT + + ( 49 )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5707
SELECT DISTINCT + SUM( 12 ) AS col2, 17 AS col2
----
12
17

skipif mysql # not compatible
query II rowsort label-5707
SELECT DISTINCT + SUM ( 12 ) AS col2, 17 AS col2
----
12
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5708
SELECT + NULLIF ( SUM( 97 ), CAST( 76 AS SIGNED ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5708
SELECT + NULLIF ( SUM ( 97 ), CAST ( 76 AS INTEGER ) ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ALL + COUNT( DISTINCT + - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + COUNT ( DISTINCT + - 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT ALL + COUNT( * ) * 85 * 63
----
5355

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL + COUNT ( * ) * 85 * 63
----
5355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT CAST( - - ( 88 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-5711
SELECT CAST ( - - ( 88 ) AS INTEGER )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT CAST( - - 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-5712
SELECT CAST ( - - 87 AS INTEGER )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5713
SELECT DISTINCT + 62 DIV + - COUNT( * ) + - NULLIF ( + + ( + 10 ), 3 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT + 62 / + - COUNT ( * ) + - NULLIF ( + + ( + 10 ), 3 ) AS col0
----
-72

query I rowsort
SELECT ALL + ( + - 87 ) AS col0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT 50 * 80 DIV + - 58 + + 42
----
-26

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT 50 * 80 / + - 58 + + 42
----
-26

query I rowsort
SELECT ALL 25 * - - 45 + - - 77 + + 76 * + 7
----
1734

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT COUNT( * ) * + 66 * + 81 + COUNT( * )
----
5347

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT COUNT ( * ) * + 66 * + 81 + COUNT ( * )
----
5347

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT DISTINCT 87 * + CASE + 37 WHEN + 10 * - 84 * + + 93 + + 7 THEN - 76 END + + 51 * - COUNT( * ) - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT 87 * + CASE + 37 WHEN + 10 * - 84 * + + 93 + + 7 THEN - 76 END + + 51 * - COUNT ( * ) - 34 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT + ( - SUM( + ( 64 ) ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5719
SELECT + ( - SUM ( + ( 64 ) ) ) AS col0
----
-64

query I rowsort
SELECT ( + 64 ) * + 31 AS col1
----
1984

query I rowsort
SELECT ALL 91 - + 65 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT - COALESCE ( - 6, COUNT( * ), + + 44 + + 83 + - 86 )
----
6

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - COALESCE ( - 6, COUNT ( * ), + + 44 + + 83 + - 86 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL + + 22 - - - CASE - + MAX( ALL + - 94 ) WHEN - + 30 THEN - 53 END * - 86 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL + + 22 - - - CASE - + MAX ( ALL + - 94 ) WHEN - + 30 THEN - 53 END * - 86 * - 0
----
NULL

query I rowsort
SELECT DISTINCT - 97 * + 8
----
-776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5725
SELECT - + ( + COUNT( * ) ) AS col0, ( CAST( NULL AS SIGNED ) )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5725
SELECT - + ( + COUNT ( * ) ) AS col0, ( CAST ( NULL AS INTEGER ) )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL - 48 - COUNT( ALL - 64 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - 48 - COUNT ( ALL - 64 ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5727
SELECT ALL + CASE + COALESCE ( + 12, 71, - ( + ( - 48 ) ) ) WHEN 65 THEN NULL WHEN - 81 * + 50 + + 48 - + 13 THEN + 29 ELSE + + CAST( - - 52 AS SIGNED ) END
----
52

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL + CASE + COALESCE ( + 12, 71, - ( + ( - 48 ) ) ) WHEN 65 THEN NULL WHEN - 81 * + 50 + + 48 - + 13 THEN + 29 ELSE + + CAST ( - - 52 AS INTEGER ) END
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT - 38 - 52 * - COUNT( * ) * + 21 AS col2
----
1054

skipif mysql # not compatible
query I rowsort label-5728
SELECT - 38 - 52 * - COUNT ( * ) * + 21 AS col2
----
1054

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5729
SELECT - 7 * - NULLIF ( - 99, - 6 + - 62 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT - 7 * - NULLIF ( - 99, - 6 + - 62 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT DISTINCT - CASE - 17 WHEN - COUNT( * ) THEN NULL WHEN 73 / - 2 + - ( - - 43 ) - - SUM( DISTINCT + - 40 ) + + ( - + 37 ) * + + 75 THEN + 63 + + 59 ELSE NULL END * - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT - CASE - 17 WHEN - COUNT ( * ) THEN NULL WHEN 73 / - 2 + - ( - - 43 ) - - SUM ( DISTINCT + - 40 ) + + ( - + 37 ) * + + 75 THEN + 63 + + 59 ELSE NULL END * - 14 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5731
SELECT DISTINCT + 54 DIV + + 32 + + 56 DIV 22
----
3

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT + 54 / + + 32 + + 56 / 22
----
3

query I rowsort
SELECT - 65 * + 84 + - 3
----
-5463

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL - - 38 * - 82 - - COUNT( * )
----
-3115

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - - 38 * - 82 - - COUNT ( * )
----
-3115

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL + MIN( DISTINCT + 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL + MIN ( DISTINCT + 51 ) AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5735
SELECT ALL - COUNT( * ) * 88 * - COUNT( * ) AS col1, + 56 + + 29 + - - CAST( NULL AS SIGNED )
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5735
SELECT ALL - COUNT ( * ) * 88 * - COUNT ( * ) AS col1, + 56 + + 29 + - - CAST ( NULL AS INTEGER )
----
88
NULL

query I rowsort
SELECT 38 - + - 89 AS col2
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT 9 / + COALESCE ( + CASE - + 44 WHEN 71 THEN - - COUNT( * ) END, 27 / + 6, COUNT( * ) + COUNT( * ) + AVG ( DISTINCT - + 45 ) * + COALESCE ( - 95, + 94 ) ) * - MAX( - 94 ) * - 95 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT 9 / + COALESCE ( + CASE - + 44 WHEN 71 THEN - - COUNT ( * ) END, 27 / + 6, COUNT ( * ) + COUNT ( * ) + AVG ( DISTINCT - + 45 ) * + COALESCE ( - 95, + 94 ) ) * - MAX ( - 94 ) * - 95 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5738
SELECT 44 / - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT 44 / - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT DISTINCT - AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT 57 * - 36 * - - ( COUNT( * ) ) AS col0
----
-2052

skipif mysql # not compatible
query I rowsort label-5740
SELECT 57 * - 36 * - - ( COUNT ( * ) ) AS col0
----
-2052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5741
SELECT 34 DIV - SUM( DISTINCT 1 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5741
SELECT 34 / - SUM ( DISTINCT 1 ) AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5742
SELECT DISTINCT + MIN( + 3 ) + - 58 + + 13 + - - COUNT( * ) * - COALESCE ( + 2, NULLIF ( - NULLIF ( ( 86 ), - CAST( ( - SUM( - 0 ) ) AS SIGNED ) ), - 72 + + 42 ) + + 57 ) * + 29 * + 26 DIV + + COUNT( * ) + + + COUNT( * ) AS col1
----
-1549

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + MIN ( + 3 ) + - 58 + + 13 + - - COUNT ( * ) * - COALESCE ( + 2, NULLIF ( - NULLIF ( ( 86 ), - CAST ( ( - SUM ( - 0 ) ) AS INTEGER ) ), - 72 + + 42 ) + + 57 ) * + 29 * + 26 / + + COUNT ( * ) + + + COUNT ( * ) AS col1
----
-1549

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5743
SELECT 47 + + 13 + - 12 DIV + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5743
SELECT 47 + + 13 + - 12 / + - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT ALL - CASE + + COUNT( * ) WHEN + - ( ( 87 ) ) - - SUM( DISTINCT - 95 ) - + ( - 1 ) + - 70 * - 66 * - 76 THEN NULL WHEN - - 47 + - CASE 66 WHEN + + NULLIF ( - COUNT( 78 ), + - 22 * - - 63 - COUNT( * ) + + 13 ) THEN 58 + - 61 + COALESCE ( - CASE - 11 WHEN - CASE - 1 WHEN + COALESCE ( 97, + - 52, - 71 ) * + 25 THEN 47 WHEN + 95 - - 92 THEN - + 59 ELSE NULL END THEN 52 * - 49 + + 92 END, - 68 ) + 1 * 84 WHEN - 19 THEN 47 END + COUNT( DISTINCT 0 ) THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - CASE + + COUNT ( * ) WHEN + - ( ( 87 ) ) - - SUM ( DISTINCT - 95 ) - + ( - 1 ) + - 70 * - 66 * - 76 THEN NULL WHEN - - 47 + - CASE 66 WHEN + + NULLIF ( - COUNT ( 78 ), + - 22 * - - 63 - COUNT ( * ) + + 13 ) THEN 58 + - 61 + COALESCE ( - CASE - 11 WHEN - CASE - 1 WHEN + COALESCE ( 97, + - 52, - 71 ) * + 25 THEN 47 WHEN + 95 - - 92 THEN - + 59 ELSE NULL END THEN 52 * - 49 + + 92 END, - 68 ) + 1 * 84 WHEN - 19 THEN 47 END + COUNT ( DISTINCT 0 ) THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5745
SELECT ALL 90 * + 55 * + 57 AS col0, + CAST( - ( 16 ) AS SIGNED ) * 92 * - ( - 77 ) + + + 3
----
282150
-113341

skipif mysql # not compatible
query II rowsort label-5745
SELECT ALL 90 * + 55 * + 57 AS col0, + CAST ( - ( 16 ) AS INTEGER ) * 92 * - ( - 77 ) + + + 3
----
282150
-113341

query I rowsort
SELECT 69 * - + 80
----
-5520

query I rowsort
SELECT DISTINCT - 86 + + 94 + + - 36
----
-28

query I rowsort
SELECT ALL - ( - 6 ) AS col0
----
6

query II rowsort
SELECT + 70, 67 + + 16 AS col2
----
70
83

query I rowsort
SELECT 59 - - 63 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT DISTINCT COALESCE ( - ( - + 48 ), + MIN( DISTINCT + - ( - ( + 78 ) ) ) ) - + + 2 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT COALESCE ( - ( - + 48 ), + MIN ( DISTINCT + - ( - ( + 78 ) ) ) ) - + + 2 AS col1
----
46

query I rowsort
SELECT 15 * + 97 * - 52 * - 69 AS col2
----
5220540

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL - + NULLIF ( + COUNT( * ), + - MAX( - 91 ) ) * - 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL - + NULLIF ( + COUNT ( * ), + - MAX ( - 91 ) ) * - 14 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5754
SELECT DISTINCT - 74 AS col0, + COUNT( * ) AS col1
----
-74
1

skipif mysql # not compatible
query II rowsort label-5754
SELECT DISTINCT - 74 AS col0, + COUNT ( * ) AS col1
----
-74
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5755
SELECT ALL - - 63 AS col0, 58 * - COUNT( * ) AS col0
----
63
-58

skipif mysql # not compatible
query II rowsort label-5755
SELECT ALL - - 63 AS col0, 58 * - COUNT ( * ) AS col0
----
63
-58

query I rowsort
SELECT + 47 * - - 45 col2
----
2115

query I rowsort
SELECT + 86 + + 3 + - CASE + 62 WHEN 69 THEN - - 66 WHEN - + 61 THEN - 35 * 56 * - - 82 + - - 94 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5758
SELECT - COUNT( ALL + 95 ) - + ( COUNT( * ) ) * - CAST( NULL AS SIGNED ) + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT - COUNT ( ALL + 95 ) - + ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + - 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5759
SELECT ALL 25 - + 19 DIV ( + 37 ) - + - COUNT( DISTINCT + 84 )
----
26

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL 25 - + 19 / ( + 37 ) - + - COUNT ( DISTINCT + 84 )
----
26

query I rowsort
SELECT ALL ( + 31 ) AS col2
----
31

query I rowsort
SELECT + 19 * + - 21 + + + 72 + 57 + + - 0 AS col1
----
-270

query II rowsort
SELECT - + 15 AS col0, ( + 61 ) AS col1
----
-15
61

query I rowsort
SELECT 2 + - + ( 45 ) + + 16
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5764
SELECT - 13 * + 99 / 99 * - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT - 13 * + 99 / 99 * - + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 52 * + 45
----
2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5766
SELECT COUNT( - 8 ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-5766
SELECT COUNT ( - 8 ) / 34
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT ALL 66 * - - 36 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL 66 * - - 36 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT - 36 + 93 + - SUM( DISTINCT + - 26 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5768
SELECT - 36 + 93 + - SUM ( DISTINCT + - 26 ) AS col2
----
83

query I rowsort
SELECT DISTINCT 10 * - - 54
----
540

query I rowsort
SELECT DISTINCT + 25 * + + 76
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL CASE + - ( - ( 66 ) ) WHEN 95 * + MAX( ALL - - 85 ) * 21 THEN - + COUNT( * ) ELSE - 71 END col0
----
-71

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL CASE + - ( - ( 66 ) ) WHEN 95 * + MAX ( ALL - - 85 ) * 21 THEN - + COUNT ( * ) ELSE - 71 END col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5772
SELECT + 63 + + MIN( ALL - 49 ) + + 39 + + 42 + - - CAST( NULL AS DECIMAL ) + - COUNT( * ) + + 61 * + - CAST( - AVG ( DISTINCT - 96 ) AS DECIMAL ) * + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT + 63 + + MIN ( ALL - 49 ) + + 39 + + 42 + - - CAST ( NULL AS REAL ) + - COUNT ( * ) + + 61 * + - CAST ( - AVG ( DISTINCT - 96 ) AS REAL ) * + - 6
----
NULL

query I rowsort
SELECT ALL - 92 + + 62 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT DISTINCT MIN( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT MIN ( 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT DISTINCT 50 + + + 94 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT 50 + + + 94 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT - AVG ( ALL + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT 47 + 4
----
51

query I rowsort
SELECT DISTINCT - ( - 4 ) + + 18 + 54 * ( 7 )
----
400

query I rowsort
SELECT ALL + 35 + + + ( - + 3 )
----
32

query I rowsort
SELECT ALL - 72 + 53 - + - 96
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL COUNT( * ) + 63 * + 34 * + NULLIF ( - - 5, - COUNT( * ) ) + + 48 AS col2
----
10759

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL COUNT ( * ) + 63 * + 34 * + NULLIF ( - - 5, - COUNT ( * ) ) + + 48 AS col2
----
10759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5782
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) + COUNT( * ) / + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + COUNT ( * ) / + 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5783
SELECT DISTINCT + 45 * - 12 col2, CASE + AVG ( ( 43 ) ) WHEN COUNT( * ) THEN + 19 ELSE 65 END
----
-540
65

skipif mysql # not compatible
query II rowsort label-5783
SELECT DISTINCT + 45 * - 12 col2, CASE + AVG ( ( 43 ) ) WHEN COUNT ( * ) THEN + 19 ELSE 65 END
----
-540
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL + CASE + SUM( + + 88 ) WHEN + 56 * - 13 THEN - 37 ELSE NULL END * 40 + - + NULLIF ( - NULLIF ( + + 39, 74 + 86 + - COUNT( * ) * + 95 * + - 45 * 81 * 75 ), 39 ) * 88 + - 51 + + - 66 * + + 86 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL + CASE + SUM ( + + 88 ) WHEN + 56 * - 13 THEN - 37 ELSE NULL END * 40 + - + NULLIF ( - NULLIF ( + + 39, 74 + 86 + - COUNT ( * ) * + 95 * + - 45 * 81 * 75 ), 39 ) * 88 + - 51 + + - 66 * + + 86 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 8 * 7 + + 29 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT + NULLIF ( + 6, + - 76 + + - MAX( DISTINCT 70 ) )
----
6

skipif mysql # not compatible
query I rowsort label-5786
SELECT + NULLIF ( + 6, + - 76 + + - MAX ( DISTINCT 70 ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT - NULLIF ( + + COUNT( * ), + 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), + 83 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5788
SELECT 82 DIV COUNT( ALL 25 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5788
SELECT 82 / COUNT ( ALL 25 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT - COUNT( * ) * + ( COUNT( * ) ) * 18 * - 18 AS col2
----
324

skipif mysql # not compatible
query I rowsort label-5789
SELECT - COUNT ( * ) * + ( COUNT ( * ) ) * 18 * - 18 AS col2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT - CASE + 78 WHEN - 93 THEN - 4 * - MIN( + 79 ) + + ( + 90 ) WHEN 44 THEN NULL WHEN 75 + + - 35 + COUNT( * ) * + 9 * 60 * - + COUNT( * ) * + 46 + - 64 THEN NULL WHEN - 85 THEN ( COUNT( * ) ) END / - 70 + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT - CASE + 78 WHEN - 93 THEN - 4 * - MIN ( + 79 ) + + ( + 90 ) WHEN 44 THEN NULL WHEN 75 + + - 35 + COUNT ( * ) * + 9 * 60 * - + COUNT ( * ) * + 46 + - 64 THEN NULL WHEN - 85 THEN ( COUNT ( * ) ) END / - 70 + - 66
----
NULL

query I rowsort
SELECT - ( 37 ) * - 54 + + - 47 + - + 77 AS col2
----
1874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5792
SELECT ALL + NULLIF ( + + NULLIF ( ( + 32 ), + COUNT( * ) * - - CAST( NULL AS SIGNED ) ), - 78 )
----
32

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL + NULLIF ( + + NULLIF ( ( + 32 ), + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) ), - 78 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT ALL - 8 * - + 31 AS col1, COUNT( DISTINCT - - 14 ) AS col1
----
248
1

skipif mysql # not compatible
query II rowsort label-5793
SELECT ALL - 8 * - + 31 AS col1, COUNT ( DISTINCT - - 14 ) AS col1
----
248
1

query I rowsort
SELECT DISTINCT + - 52 AS col2
----
-52

query I rowsort
SELECT - COALESCE ( + 87, 81 ) + 52 + - ( - 73 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5796
SELECT + - 53 - - - CAST( - ( - 50 ) AS SIGNED ) * 81
----
-4103

skipif mysql # not compatible
query I rowsort label-5796
SELECT + - 53 - - - CAST ( - ( - 50 ) AS INTEGER ) * 81
----
-4103

query I rowsort
SELECT ALL - 48 * + 46 AS col1
----
-2208

query I rowsort
SELECT - 84 * 61 AS col1
----
-5124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5799
SELECT DISTINCT COUNT( * ) * - - 99 DIV + 44 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT COUNT ( * ) * - - 99 / + 44 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5800
SELECT + COUNT( DISTINCT + 14 ) * 19 * 17 col2, - 94 col1
----
323
-94

skipif mysql # not compatible
query II rowsort label-5800
SELECT + COUNT ( DISTINCT + 14 ) * 19 * 17 col2, - 94 col1
----
323
-94

query I rowsort
SELECT - + 76 * - - 15 + + 61 col0
----
-1079

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5802
SELECT ALL + 32 DIV 23 AS col2, 99 + + ( + COUNT( * ) ) DIV ( 24 )
----
1
99

skipif mysql # not compatible
query II rowsort label-5802
SELECT ALL + 32 / 23 AS col2, 99 + + ( + COUNT ( * ) ) / ( 24 )
----
1
99

query I rowsort
SELECT ALL NULLIF ( + - 60, - 47 ) + - - 22
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5804
SELECT - 13 DIV - 43, + 18 + - - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + 11 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5804
SELECT - 13 / - 43, + 18 + - - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 11 AS col0
----
0
NULL

query I rowsort
SELECT + 83 * - ( - + 71 )
----
5893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT DISTINCT CAST( - 34 AS SIGNED ) * - + CASE - 11 WHEN - COUNT( * ) * 48 THEN - + 19 ELSE NULL END * + - 41 * - - ( + - 89 ) + + AVG ( ALL + - 19 ) / + SUM( DISTINCT 34 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT CAST ( - 34 AS INTEGER ) * - + CASE - 11 WHEN - COUNT ( * ) * 48 THEN - + 19 ELSE NULL END * + - 41 * - - ( + - 89 ) + + AVG ( ALL + - 19 ) / + SUM ( DISTINCT 34 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL COUNT( * ) + + 51 + + 61 - CASE + + 60 WHEN - - COUNT( * ) THEN 17 * - CASE 20 WHEN + + 88 THEN + COALESCE ( + 19, 23 ) END - - ( MAX( ALL + ( - + 65 ) ) ) + + 21 / + - 37 / - ( + 86 ) * COALESCE ( SUM( - 64 ), - 23 + COUNT( * ) ) * - - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL COUNT ( * ) + + 51 + + 61 - CASE + + 60 WHEN - - COUNT ( * ) THEN 17 * - CASE 20 WHEN + + 88 THEN + COALESCE ( + 19, 23 ) END - - ( MAX ( ALL + ( - + 65 ) ) ) + + 21 / + - 37 / - ( + 86 ) * COALESCE ( SUM ( - 64 ), - 23 + COUNT ( * ) ) * - - 58 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5808
SELECT ALL ( - 87 ) DIV 8 col1
----
-10

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL ( - 87 ) / 8 col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT + COUNT( * ) - 62 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5809
SELECT + COUNT ( * ) - 62 AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT ALL AVG ( + + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL AVG ( + + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5811
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 36 / - 78 * + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 36 / - 78 * + + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT DISTINCT MAX( ALL + 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT MAX ( ALL + 83 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT + 49 + - NULLIF ( + + CASE - 23 WHEN - 30 THEN + + 44 WHEN - 12 * - + 3 THEN NULL END, - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT + 49 + - NULLIF ( + + CASE - 23 WHEN - 30 THEN + + 44 WHEN - 12 * - + 3 THEN NULL END, - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT + 62 * + COUNT( * ) + + + 14
----
76

skipif mysql # not compatible
query I rowsort label-5814
SELECT + 62 * + COUNT ( * ) + + + 14
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT + CAST( + 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5815
SELECT + CAST ( + 26 AS INTEGER ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT ALL 77 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL 77 / 82 AS col1
----
0

query II rowsort
SELECT DISTINCT + 26 col0, - 69 AS col1
----
26
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5818
SELECT DISTINCT 98 * - SUM( DISTINCT - - CAST( - 19 AS SIGNED ) ) - - + 47 AS col0
----
1909

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT 98 * - SUM ( DISTINCT - - CAST ( - 19 AS INTEGER ) ) - - + 47 AS col0
----
1909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT CAST( 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5819
SELECT CAST ( 14 AS INTEGER ) AS col2
----
14

query I rowsort
SELECT - 57 * + - 20 * + 66 - - 87 * - 54 * + 16 + - 70 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT ALL + + CAST( NULL AS SIGNED ) * - 61 * AVG ( - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 61 * AVG ( - 77 )
----
NULL

query I rowsort
SELECT + 68 * - 88 col1
----
-5984

query I rowsort
SELECT - - 66 * 6 AS col1
----
396

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5824
SELECT ALL + + 7 AS col0, + CAST( - CASE - + 31 WHEN 44 THEN - 79 ELSE 59 * + 35 - + 70 + + + 90 * - 47 END AS SIGNED ) AS col2
----
7
2235

skipif mysql # not compatible
query II rowsort label-5824
SELECT ALL + + 7 AS col0, + CAST ( - CASE - + 31 WHEN 44 THEN - 79 ELSE 59 * + 35 - + 70 + + + 90 * - 47 END AS INTEGER ) AS col2
----
7
2235

query I rowsort
SELECT ALL + ( 39 ) AS col1
----
39

query I rowsort
SELECT ALL + ( NULLIF ( + 56, + 85 * CASE - + COALESCE ( + + 62, - 60 ) WHEN - 26 THEN NULL ELSE - - 61 END ) )
----
56

query I rowsort
SELECT - ( + ( - - 33 ) ) * + 33 * - 8
----
8712

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL 44 * 24 + COUNT( * ) + + - 55 * + 12 col2
----
397

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL 44 * 24 + COUNT ( * ) + + - 55 * + 12 col2
----
397

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT DISTINCT - - 57 * - + 83 + - 77 * - 95 + 5 + 18 - + 81 + 82 DIV + + 46 + + 41 + + 59 * + 4
----
2804

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT - - 57 * - + 83 + - 77 * - 95 + 5 + 18 - + 81 + 82 / + + 46 + + 41 + + 59 * + 4
----
2804

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL + - COUNT( 81 ) * + MIN( ALL + + 28 ) + - + COUNT( * ) + - 62 - + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + - COUNT ( 81 ) * + MIN ( ALL + + 28 ) + - + COUNT ( * ) + - 62 - + COUNT ( * )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5831
SELECT - + COUNT( ALL - 50 ) * - - 54 + - + CAST( NULL AS SIGNED ) * + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT - + COUNT ( ALL - 50 ) * - - 54 + - + CAST ( NULL AS INTEGER ) * + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT + 70 * + MIN( + 96 ) + + 8 * 54
----
7152

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + 70 * + MIN ( + 96 ) + + 8 * 54
----
7152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5833
SELECT - 47 * + + 10 - - ( + + 36 ) + + COUNT( * ) DIV 64 AS col1
----
-434

skipif mysql # not compatible
query I rowsort label-5833
SELECT - 47 * + + 10 - - ( + + 36 ) + + COUNT ( * ) / 64 AS col1
----
-434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5834
SELECT - 18 AS col2, - COUNT( * ) * - 25 * CAST( + + COALESCE ( - COALESCE ( + AVG ( ALL + 74 ), - + 30 ), ( - 94 ) * - CASE - - 53 WHEN - 21 + 26 THEN - NULLIF ( 5, 12 ) * - - 89 * + 62 ELSE NULL END ) AS SIGNED ) * + COUNT( - 66 ) AS col2
----
-18
-1850

skipif mysql # not compatible
query II rowsort label-5834
SELECT - 18 AS col2, - COUNT ( * ) * - 25 * CAST ( + + COALESCE ( - COALESCE ( + AVG ( ALL + 74 ), - + 30 ), ( - 94 ) * - CASE - - 53 WHEN - 21 + 26 THEN - NULLIF ( 5, 12 ) * - - 89 * + 62 ELSE NULL END ) AS INTEGER ) * + COUNT ( - 66 ) AS col2
----
-18
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL - - 72 * - 9 + 82 * + - COUNT( * ) + - 24 AS col2
----
-754

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - - 72 * - 9 + 82 * + - COUNT ( * ) + - 24 AS col2
----
-754

query I rowsort
SELECT - - 4 + - 74 * + + 85 + - + 14 + 57 * + 94 * 6 AS col1
----
25848

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT + MIN( DISTINCT + + 41 ) + + 67 col1
----
108

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT + MIN ( DISTINCT + + 41 ) + + 67 col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT - AVG ( + + 91 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5838
SELECT - AVG ( + + 91 ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5839
SELECT ALL + CAST( + + CASE - 78 WHEN + 81 + 29 THEN + + 12 * + 80 WHEN ( + + CAST( NULL AS SIGNED ) ) + 59 THEN - + 44 END AS SIGNED ) + - ( + + COUNT( * ) ) * - 77 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL + CAST ( + + CASE - 78 WHEN + 81 + 29 THEN + + 12 * + 80 WHEN ( + + CAST ( NULL AS INTEGER ) ) + 59 THEN - + 44 END AS INTEGER ) + - ( + + COUNT ( * ) ) * - 77 * + 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5840
SELECT DISTINCT CAST( NULL AS SIGNED ), + 45 * 39 AS col2
----
NULL
1755

skipif mysql # not compatible
query II rowsort label-5840
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 45 * 39 AS col2
----
NULL
1755

onlyif mysql # DIV for integer division: 
query III rowsort label-5841
SELECT 56, - 79 * 5 DIV 88 AS col0, - + 6 + 18 * + 78 AS col0
----
56
-4
1398

skipif mysql # not compatible
query III rowsort label-5841
SELECT 56, - 79 * 5 / 88 AS col0, - + 6 + 18 * + 78 AS col0
----
56
-4
1398

query I rowsort
SELECT ALL 73 - 83 AS col2
----
-10

query I rowsort
SELECT + 79 + 61 + - - 96
----
236

query I rowsort
SELECT - 67 * + 52 AS col2
----
-3484

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT 91 + + - 20 AS col0, SUM( + 83 ) * 38 - + + 91 + CASE - 95 WHEN - COALESCE ( - 45, + COUNT( * ) ) THEN 96 - - 84 WHEN COALESCE ( - + COUNT( * ), 2, NULLIF ( + 10, + COUNT( * ) ) + - 7, - - 91 * - ( + 78 ) * + 94 ) THEN - - 96 ELSE NULL END
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5845
SELECT 91 + + - 20 AS col0, SUM ( + 83 ) * 38 - + + 91 + CASE - 95 WHEN - COALESCE ( - 45, + COUNT ( * ) ) THEN 96 - - 84 WHEN COALESCE ( - + COUNT ( * ), 2, NULLIF ( + 10, + COUNT ( * ) ) + - 7, - - 91 * - ( + 78 ) * + 94 ) THEN - - 96 ELSE NULL END
----
71
NULL

query II rowsort
SELECT ALL 14 * 24 AS col1, - 94 AS col1
----
336
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT ALL - 37 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - 37 / + 59
----
0

query I rowsort
SELECT DISTINCT - 28 * - 49
----
1372

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL COUNT( * ) * 93 col0
----
93

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL COUNT ( * ) * 93 col0
----
93

query II rowsort
SELECT ALL - 13, - 25 AS col2
----
-13
-25

query I rowsort
SELECT ALL 78 * - 35
----
-2730

query I rowsort
SELECT DISTINCT 36 * + 36
----
1296

query II rowsort
SELECT 85 col2, - ( - 44 ) * + 13 * ( - 72 )
----
85
-41184

query I rowsort
SELECT ALL 71 * + 81 * + + 63 AS col1
----
362313

query I rowsort
SELECT CASE - 77 WHEN - 57 THEN 42 ELSE NULL END * + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT + - MIN( 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5856
SELECT + - MIN ( 29 ) AS col2
----
-29

query I rowsort
SELECT ( + 69 ) + + + 44
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5858
SELECT + + 46 * CASE + - 23 WHEN 60 THEN NULL WHEN + 64 THEN NULL WHEN - - 34 THEN + CASE CASE - 41 WHEN + 49 THEN NULL WHEN 73 THEN NULL ELSE + + 82 END WHEN + - COUNT( * ) * - 93 THEN 16 ELSE - + SUM( - - 46 ) + - 73 END * + + 36 END * + 80 + - + 72 AS col0, + 91 * 98 * - + NULLIF ( + MAX( DISTINCT + - 15 ), + 38 ) + + 77 DIV + 9 AS col0
----
NULL
133778

skipif mysql # not compatible
query II rowsort label-5858
SELECT + + 46 * CASE + - 23 WHEN 60 THEN NULL WHEN + 64 THEN NULL WHEN - - 34 THEN + CASE CASE - 41 WHEN + 49 THEN NULL WHEN 73 THEN NULL ELSE + + 82 END WHEN + - COUNT ( * ) * - 93 THEN 16 ELSE - + SUM ( - - 46 ) + - 73 END * + + 36 END * + 80 + - + 72 AS col0, + 91 * 98 * - + NULLIF ( + MAX ( DISTINCT + - 15 ), + 38 ) + + 77 / + 9 AS col0
----
NULL
133778

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT CASE - 72 WHEN ( - 2 ) THEN COUNT( * ) WHEN + MAX( DISTINCT - - 49 ) + MIN( + 76 ) THEN + 21 * + 89 + - 36 - 7 END - - NULLIF ( + 48, - + 55 * - COUNT( - 62 ) / + 84 * 4 + - COALESCE ( + 70, + 51 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT CASE - 72 WHEN ( - 2 ) THEN COUNT ( * ) WHEN + MAX ( DISTINCT - - 49 ) + MIN ( + 76 ) THEN + 21 * + 89 + - 36 - 7 END - - NULLIF ( + 48, - + 55 * - COUNT ( - 62 ) / + 84 * 4 + - COALESCE ( + 70, + 51 ) )
----
NULL

query I rowsort
SELECT ALL 58 + - + 53 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT 46 * ( - MIN( ALL + 74 ) )
----
-3404

skipif mysql # not compatible
query I rowsort label-5861
SELECT 46 * ( - MIN ( ALL + 74 ) )
----
-3404

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL 76 + + COUNT( * ) * + 67 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL 76 + + COUNT ( * ) * + 67 AS col0
----
143

query I rowsort
SELECT DISTINCT + 37 * - - 87 - + - 56
----
3275

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT DISTINCT - COUNT( DISTINCT 73 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - COUNT ( DISTINCT 73 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5865
SELECT ALL + CAST( NULL AS SIGNED ) * - ( + 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( + 99 ) AS col0
----
NULL

query I rowsort
SELECT 15 + - 14
----
1

query I rowsort
SELECT ALL + 13 + - 49
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL - MAX( DISTINCT + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - MAX ( DISTINCT + 43 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5869
SELECT + CAST( 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-5869
SELECT + CAST ( 10 AS INTEGER )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT 49 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-5870
SELECT 49 / + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT DISTINCT - 22 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT - 22 / 79
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5872
SELECT ALL 36 AS col1, COALESCE ( - 80, - 56 DIV - - 40 * - 69 * - 44 + + + 78 - MIN( DISTINCT - ( 21 ) ) DIV 36 )
----
36
-80

skipif mysql # not compatible
query II rowsort label-5872
SELECT ALL 36 AS col1, COALESCE ( - 80, - 56 / - - 40 * - 69 * - 44 + + + 78 - MIN ( DISTINCT - ( 21 ) ) / 36 )
----
36
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT 95 * - CASE - 12 WHEN 43 THEN ( + + NULLIF ( 80, - MAX( 82 ) + 46 ) ) WHEN + COUNT( * ) - + 34 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT 95 * - CASE - 12 WHEN 43 THEN ( + + NULLIF ( 80, - MAX ( 82 ) + 46 ) ) WHEN + COUNT ( * ) - + 34 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5874
SELECT ALL 88 - + - MAX( CAST( NULL AS SIGNED ) ) + + 30 - + 15 / + COUNT( * ) * - 18 * - - 58 * - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL 88 - + - MAX ( CAST ( NULL AS INTEGER ) ) + + 30 - + 15 / + COUNT ( * ) * - 18 * - - 58 * - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT ALL - CAST( NULL AS SIGNED ) / - 25 * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - CAST ( NULL AS INTEGER ) / - 25 * - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5876
SELECT DISTINCT + CASE 58 WHEN 55 + - 40 THEN - + 58 END - COUNT( ALL - + 37 ) col0, NULLIF ( - 65, - 12 * - + COUNT( * ) ) AS col0
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-5876
SELECT DISTINCT + CASE 58 WHEN 55 + - 40 THEN - + 58 END - COUNT ( ALL - + 37 ) col0, NULLIF ( - 65, - 12 * - + COUNT ( * ) ) AS col0
----
NULL
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT DISTINCT - 31 DIV - - 14
----
-2

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT - 31 / - - 14
----
-2

query I rowsort
SELECT ALL + 40 * + CASE + 68 WHEN - 52 + - 87 THEN NULL ELSE - + 61 END * + 2
----
-4880

query I rowsort
SELECT 63 * - - 92
----
5796

query I rowsort
SELECT ALL + 41 * + - 71
----
-2911

query I rowsort
SELECT 53 * 93
----
4929

query II rowsort
SELECT 62 - + 20, - 57 AS col0
----
42
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5883
SELECT DISTINCT - 50 * + COUNT( * ) / + CASE + 4 WHEN + + 75 THEN SUM( ALL - - 49 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - 50 * + COUNT ( * ) / + CASE + 4 WHEN + + 75 THEN SUM ( ALL - - 49 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5884
SELECT 72 - - - 62 + ( - 35 ) * - 74 / COUNT( * ) / + COUNT( * ) + - 80 + - 35 * 81 * + - 61 * ( + 24 ) - - ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT 72 - - - 62 + ( - 35 ) * - 74 / COUNT ( * ) / + COUNT ( * ) + - 80 + - 35 * 81 * + - 61 * ( + 24 ) - - ( CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT ALL - 41 * - 35 AS col0, 3
----
1435
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT ALL 60 DIV + - 35 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL 60 / + - 35 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT 97 - - - SUM( + 3 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5887
SELECT 97 - - - SUM ( + 3 ) AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT DISTINCT 28 * + 38 + 31 DIV - 31 col0
----
1063

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT 28 * + 38 + 31 / - 31 col0
----
1063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5889
SELECT ALL 24 DIV + - ( + - 40 ) * + + COUNT( * ) * 97 - + 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL 24 / + - ( + - 40 ) * + + COUNT ( * ) * 97 - + 12 AS col0
----
-12

query I rowsort
SELECT DISTINCT - CASE - 7 WHEN + 46 THEN NULL WHEN 75 THEN 92 ELSE + 30 END AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5891
SELECT + SUM( DISTINCT + ( - 40 ) ) * - 99 * CAST( + - COUNT( + - ( + 26 ) ) AS SIGNED ) + + 85 AS col0
----
-3875

skipif mysql # not compatible
query I rowsort label-5891
SELECT + SUM ( DISTINCT + ( - 40 ) ) * - 99 * CAST ( + - COUNT ( + - ( + 26 ) ) AS INTEGER ) + + 85 AS col0
----
-3875

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT 52 * + 62 + - + MIN( - 6 )
----
3230

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT 52 * + 62 + - + MIN ( - 6 )
----
3230

query I rowsort
SELECT DISTINCT 21 + - 2
----
19

query I rowsort
SELECT DISTINCT - 78 + 97 * CASE - - 92 WHEN + 28 * + 32 + - 89 * + 7 THEN - 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5895
SELECT DISTINCT SUM( - 81 ) * 82 AS col1, + CASE - - 62 WHEN + + COUNT( * ) THEN 16 - + + 76 END col1
----
-6642
NULL

skipif mysql # not compatible
query II rowsort label-5895
SELECT DISTINCT SUM ( - 81 ) * 82 AS col1, + CASE - - 62 WHEN + + COUNT ( * ) THEN 16 - + + 76 END col1
----
-6642
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5896
SELECT ALL + 8 * - + 76 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL + 8 * - + 76 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT NULLIF ( + 20, + - 22 ), - 18 AS col0
----
20
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL 5 + NULLIF ( + 31, + + COUNT( * ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL 5 + NULLIF ( + 31, + + COUNT ( * ) ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT 87 * + - 98 + - 2 + - + COUNT( * ) AS col2
----
-8529

skipif mysql # not compatible
query I rowsort label-5899
SELECT 87 * + - 98 + - 2 + - + COUNT ( * ) AS col2
----
-8529

onlyif mysql # DIV for integer division: 
query I rowsort label-5900
SELECT ALL - 81 - + - 9 DIV + 20 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL - 81 - + - 9 / + 20 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5901
SELECT + MIN( - 49 ) col1, COUNT( * ) AS col1
----
-49
1

skipif mysql # not compatible
query II rowsort label-5901
SELECT + MIN ( - 49 ) col1, COUNT ( * ) AS col1
----
-49
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT DISTINCT - - CAST( 76 AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT - - CAST ( 76 AS INTEGER ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5903
SELECT - 95 * + - 2 + - 40 col2, + COUNT( * )
----
150
1

skipif mysql # not compatible
query II rowsort label-5903
SELECT - 95 * + - 2 + - 40 col2, + COUNT ( * )
----
150
1

query I rowsort
SELECT ALL 62 - + - 24 col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - MIN( ALL - - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5905
SELECT - MIN ( ALL - - 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - COUNT( * ) + + 21 + + + 64
----
84

skipif mysql # not compatible
query I rowsort label-5906
SELECT - COUNT ( * ) + + 21 + + + 64
----
84

query I rowsort
SELECT 73 * 13 + + + 2 - + 82
----
869

query I rowsort
SELECT + ( 34 ) + - 79
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5909
SELECT ALL + MAX( + 20 ) DIV + COALESCE ( + 64, - 59 ) + - - NULLIF ( 10, + 82 + - 83 )
----
10

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL + MAX ( + 20 ) / + COALESCE ( + 64, - 59 ) + - - NULLIF ( 10, + 82 + - 83 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - MIN( DISTINCT - 77 ) + - - 40 - - ( 32 ) + 16 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-5910
SELECT - MIN ( DISTINCT - 77 ) + - - 40 - - ( 32 ) + 16 AS col2
----
165

query II rowsort
SELECT - 72 + 83 * - NULLIF ( 17, + 26 + 30 ) AS col0, 11 AS col1
----
-1483
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT DISTINCT + 55 * + - CAST( + 12 AS SIGNED ) * - + 26 - + 3 - + 23 * + 83 * + 52 AS col1
----
-82111

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT + 55 * + - CAST ( + 12 AS INTEGER ) * - + 26 - + 3 - + 23 * + 83 * + 52 AS col1
----
-82111

query I rowsort
SELECT - 42 + 41
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5914
SELECT - 60 * + 41 * - COUNT( * ), 56 AS col0
----
2460
56

skipif mysql # not compatible
query II rowsort label-5914
SELECT - 60 * + 41 * - COUNT ( * ), 56 AS col0
----
2460
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT ALL + 47 + + 44 + + 68 + - + 47 DIV ( + + 53 )
----
159

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL + 47 + + 44 + + 68 + - + 47 / ( + + 53 )
----
159

query I rowsort
SELECT DISTINCT - CASE - + 63 WHEN - 9 THEN NULL ELSE + 69 + + 83 + + 50 * 19 END * - - 44 + - + 97
----
-48585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5917
SELECT ALL + 38 + COUNT( * ) + - COUNT( * ) DIV - + 86
----
39

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL + 38 + COUNT ( * ) + - COUNT ( * ) / - + 86
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT DISTINCT + 65 + - 14 + CAST( + 21 AS SIGNED ) * - + 56 + + - 72
----
-1197

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT + 65 + - 14 + CAST ( + 21 AS INTEGER ) * - + 56 + + - 72
----
-1197

query I rowsort
SELECT - - 92 + + 64
----
156

query I rowsort
SELECT DISTINCT - 87 + - - 94 + 4 + - ( + + 86 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT - 70 * - - CASE 97 WHEN - - 34 THEN + COUNT( * ) END * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - 70 * - - CASE 97 WHEN - - 34 THEN + COUNT ( * ) END * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT DISTINCT - 8 * - + 63 * + 36 + + + MIN( ALL 98 ) AS col0
----
18242

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT - 8 * - + 63 * + 36 + + + MIN ( ALL 98 ) AS col0
----
18242

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT ALL + 73 * - - MAX( ALL NULLIF ( + COALESCE ( - 8, + + 47 ), - 28 * - 77 ) ) * - NULLIF ( - COUNT( * ), - - COUNT( * ) + - 0 ) - - + MAX( DISTINCT - 14 ) + + 28 - - + 59 * - ( - 6 ) * + + 49 * - 2 + - 47
----
-35309

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + 73 * - - MAX ( ALL NULLIF ( + COALESCE ( - 8, + + 47 ), - 28 * - 77 ) ) * - NULLIF ( - COUNT ( * ), - - COUNT ( * ) + - 0 ) - - + MAX ( DISTINCT - 14 ) + + 28 - - + 59 * - ( - 6 ) * + + 49 * - 2 + - 47
----
-35309

query I rowsort
SELECT DISTINCT - + 3 * + + NULLIF ( - 10, - 2 ) + + 1 + + 41 * + - 68 AS col2
----
-2757

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT - 33 DIV 54 + - + 70 - - 53 + - 59 + - 36 AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-5925
SELECT - 33 / 54 + - + 70 - - 53 + - 59 + - 36 AS col1
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-5926
SELECT DISTINCT + - 38 * - 14 + + 33 col2, MIN( + 80 )
----
565
80

skipif mysql # not compatible
query II rowsort label-5926
SELECT DISTINCT + - 38 * - 14 + + 33 col2, MIN ( + 80 )
----
565
80

query II rowsort
SELECT + 25, + 84 * 38 * - - 58 AS col1
----
25
185136

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT ALL - - 73 * - 63 - COUNT( * ) + 73
----
-4527

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL - - 73 * - 63 - COUNT ( * ) + 73
----
-4527

query II rowsort
SELECT + 75 AS col1, 71
----
75
71

query I rowsort
SELECT DISTINCT - 50 * 35 - - + 12
----
-1738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT DISTINCT 21 * + CAST( 1 AS SIGNED ) * + 96 * CAST( NULL AS SIGNED ) * - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT 21 * + CAST ( 1 AS INTEGER ) * + 96 * CAST ( NULL AS INTEGER ) * - 65 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 36 * - - 29 + - 20 - + 26 * - 42
----
2116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 27 AS col1
----
NULL

query I rowsort
SELECT + - 92 * + 58 AS col1
----
-5336

query I rowsort
SELECT + 3 * - - 10
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + COUNT( * ) * - + 40
----
-40

skipif mysql # not compatible
query I rowsort label-5936
SELECT + COUNT ( * ) * - + 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL + MAX( - - 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL + MAX ( - - 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL MAX( DISTINCT - 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL MAX ( DISTINCT - 15 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT + MIN( DISTINCT - - 33 ) * - + 93 + + - COALESCE ( - + 92, + 89 + + 34, - 87 + 20 )
----
-2977

skipif mysql # not compatible
query I rowsort label-5939
SELECT + MIN ( DISTINCT - - 33 ) * - + 93 + + - COALESCE ( - + 92, + 89 + + 34, - 87 + 20 )
----
-2977

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT DISTINCT 96 DIV 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT 96 / 40 AS col2
----
2

query I rowsort
SELECT DISTINCT + 69 + + 52
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT + COALESCE ( 56, - 22 ) + COUNT( * ) * 83
----
139

skipif mysql # not compatible
query I rowsort label-5942
SELECT + COALESCE ( 56, - 22 ) + COUNT ( * ) * 83
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT - 43 * + 42 * - CASE + - 36 WHEN 42 * + 95 * + 72 * - - 61 THEN NULL WHEN CASE 46 WHEN - 86 THEN 76 + ( + - 37 ) * - 50 * 61 WHEN + + 52 THEN NULL END * + 8 + - MAX( ALL - ( + CAST( NULL AS SIGNED ) ) ) - + - 5 + + 20 * - - 89 * 20 THEN + 66 * - - 63 * 17 * 1 * + 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT - 43 * + 42 * - CASE + - 36 WHEN 42 * + 95 * + 72 * - - 61 THEN NULL WHEN CASE 46 WHEN - 86 THEN 76 + ( + - 37 ) * - 50 * 61 WHEN + + 52 THEN NULL END * + 8 + - MAX ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) - + - 5 + + 20 * - - 89 * 20 THEN + 66 * - - 63 * 17 * 1 * + 76 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT ALL 48 + 93 - - + ( + - 94 ) * + + COALESCE ( - COUNT( * ), - COUNT( * ) ) * - MIN( DISTINCT + 34 ) * - 1 + COUNT( 93 )
----
3338

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL 48 + 93 - - + ( + - 94 ) * + + COALESCE ( - COUNT ( * ), - COUNT ( * ) ) * - MIN ( DISTINCT + 34 ) * - 1 + COUNT ( 93 )
----
3338

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT - ( COUNT( ALL - 61 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5945
SELECT - ( COUNT ( ALL - 61 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5946
SELECT + 30 - + CAST( NULL AS SIGNED ) * MAX( DISTINCT + + 71 ), + COUNT( * ) + + 39 + + 81 AS col2
----
NULL
121

skipif mysql # not compatible
query II rowsort label-5946
SELECT + 30 - + CAST ( NULL AS INTEGER ) * MAX ( DISTINCT + + 71 ), + COUNT ( * ) + + 39 + + 81 AS col2
----
NULL
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL + 52 + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + 52 + COUNT ( * ) AS col1
----
53

query I rowsort
SELECT ALL 13 * + + 92
----
1196

query I rowsort
SELECT + 83 + - 29 * + + 16 AS col1
----
-381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT - - MAX( - - 3 ) DIV - 11 col2
----
0

skipif mysql # not compatible
query I rowsort label-5950
SELECT - - MAX ( - - 3 ) / - 11 col2
----
0

query I rowsort
SELECT - ( - 20 ) * + 70 * - 21 AS col1
----
-29400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5952
SELECT ALL COUNT( * ) DIV + - 69 AS col1, + CASE 20 WHEN + 16 + - ( 1 ) THEN NULL WHEN MIN( DISTINCT + + 31 ) + + 38 THEN + + COALESCE ( 88, 72 ) END + - + COUNT( * )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5952
SELECT ALL COUNT ( * ) / + - 69 AS col1, + CASE 20 WHEN + 16 + - ( 1 ) THEN NULL WHEN MIN ( DISTINCT + + 31 ) + + 38 THEN + + COALESCE ( 88, 72 ) END + - + COUNT ( * )
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL + + 89 * CAST( NULL AS SIGNED ) * - 8 * - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + + 89 * CAST ( NULL AS INTEGER ) * - 8 * - 14 AS col2
----
NULL

query I rowsort
SELECT - 82 - - 95
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT + 26 + + SUM( ALL + + 36 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-5955
SELECT + 26 + + SUM ( ALL + + 36 ) col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT COUNT( ALL + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-5956
SELECT COUNT ( ALL + 79 )
----
1

query I rowsort
SELECT - 9 + 82 AS col1
----
73

query I rowsort
SELECT - - 37 * 80
----
2960

query I rowsort
SELECT - ( + ( + - 37 ) )
----
37

query I rowsort
SELECT ALL + - 9 * 98
----
-882

query I rowsort
SELECT - - 87 + - 57 col1
----
30

query I rowsort
SELECT DISTINCT + + NULLIF ( - - 60, - 32 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL + + COUNT( * ) * - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + + COUNT ( * ) * - 36 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5964
SELECT DISTINCT - + SUM( - 11 ), + 35 AS col2
----
11
35

skipif mysql # not compatible
query II rowsort label-5964
SELECT DISTINCT - + SUM ( - 11 ), + 35 AS col2
----
11
35

query I rowsort
SELECT - 34 * 7 + - 83 * + + ( 67 )
----
-5799

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5966
SELECT 46 DIV - COUNT( * ) * - + COUNT( * ) + + 19, - 17 AS col2
----
65
-17

skipif mysql # not compatible
query II rowsort label-5966
SELECT 46 / - COUNT ( * ) * - + COUNT ( * ) + + 19, - 17 AS col2
----
65
-17

query I rowsort
SELECT 53 + + 6 col1
----
59

query I rowsort
SELECT ALL + 82 * - - 33
----
2706

onlyif mysql # DIV for integer division: 
query II rowsort label-5969
SELECT ALL + 9 DIV ( - 6 ), 80 AS col2
----
-1
80

skipif mysql # not compatible
query II rowsort label-5969
SELECT ALL + 9 / ( - 6 ), 80 AS col2
----
-1
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5970
SELECT ( - - 36 ) * - - 30 / + 31 + SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT ( - - 36 ) * - - 30 / + 31 + SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL 9 * 36 * + ( + - 31 ) * - + SUM( ALL 91 ) + + 51 AS col0
----
914055

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL 9 * 36 * + ( + - 31 ) * - + SUM ( ALL 91 ) + + 51 AS col0
----
914055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT + 11 * + 65 * - - CAST( NULL AS SIGNED ) * + 11 + - COUNT( DISTINCT + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT + 11 * + 65 * - - CAST ( NULL AS INTEGER ) * + 11 + - COUNT ( DISTINCT + 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5973
SELECT + 49 * + + 94 - - 61, 68 + + + COUNT( * ) col1
----
4667
69

skipif mysql # not compatible
query II rowsort label-5973
SELECT + 49 * + + 94 - - 61, 68 + + + COUNT ( * ) col1
----
4667
69

query I rowsort
SELECT DISTINCT ( + 88 ) + 23 + + ( - 32 ) * + 47
----
-1393

query I rowsort
SELECT 62 + + 7 * - 44 * + + 13 AS col2
----
-3942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5976
SELECT MAX( - 3 ) + - - CASE + - 54 WHEN + 10 THEN CAST( NULL AS SIGNED ) END AS col0, 2 + MIN( - 45 ) col2
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-5976
SELECT MAX ( - 3 ) + - - CASE + - 54 WHEN + 10 THEN CAST ( NULL AS INTEGER ) END AS col0, 2 + MIN ( - 45 ) col2
----
NULL
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL 1 + - 3 + + COUNT( * ) * - - 27
----
25

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL 1 + - 3 + + COUNT ( * ) * - - 27
----
25

query I rowsort
SELECT 97 + + + 51
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT ALL - 47 + + + 12 + + + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL - 47 + + + 12 + + + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 65 + + 57
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT DISTINCT 87 * + MAX( + - 68 ) * + CASE AVG ( ALL + 83 ) WHEN - ( + 48 ) * - 31 - 18 + + 64 + + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN - 30 ELSE NULL END - COUNT( DISTINCT - ( + 15 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT 87 * + MAX ( + - 68 ) * + CASE AVG ( ALL + 83 ) WHEN - ( + 48 ) * - 31 - 18 + + 64 + + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - 30 ELSE NULL END - COUNT ( DISTINCT - ( + 15 ) )
----
NULL

query I rowsort
SELECT ALL 27 * 31 AS col1
----
837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5983
SELECT 69 / - + CAST( NULL AS SIGNED ) + + 15 + + + ( - CAST( NULL AS SIGNED ) ) + - 47 + 41 + + + AVG ( + 45 ) * + CAST( COUNT( * ) AS SIGNED ) * - + CAST( NULL AS SIGNED ) * - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT 69 / - + CAST ( NULL AS INTEGER ) + + 15 + + + ( - CAST ( NULL AS INTEGER ) ) + - 47 + 41 + + + AVG ( + 45 ) * + CAST ( COUNT ( * ) AS INTEGER ) * - + CAST ( NULL AS INTEGER ) * - + 3
----
NULL

query I rowsort
SELECT + 66 + 12
----
78

query I rowsort
SELECT ALL + 21 * - - 15
----
315

query II rowsort
SELECT 78 AS col0, 66 AS col1
----
78
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5987
SELECT 59 + - 31 + - CAST( NULL AS SIGNED ) + 22 * + 53 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT 59 + - 31 + - CAST ( NULL AS INTEGER ) + 22 * + 53 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 46 - - 16
----
-30

query I rowsort
SELECT DISTINCT 54 * - 37
----
-1998

query I rowsort
SELECT + 93 + - + 95 + 1 AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5991
SELECT + CAST( NULL AS DECIMAL ) * - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT + CAST ( NULL AS REAL ) * - 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT 36 * - COUNT( * ) * - 60 + - + 78
----
2082

skipif mysql # not compatible
query I rowsort label-5992
SELECT 36 * - COUNT ( * ) * - 60 + - + 78
----
2082

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL COUNT( * ) * + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL COUNT ( * ) * + - 41
----
-41

query I rowsort
SELECT DISTINCT + 27 * 39
----
1053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT ALL - CAST( NULL AS SIGNED ) / - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL - CAST ( NULL AS INTEGER ) / - 6
----
NULL

query II rowsort
SELECT 71 AS col0, 83
----
71
83

query II rowsort
SELECT 55 * 77 - - 67, 66 AS col1
----
4302
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5998
SELECT ALL - COUNT( * ) DIV - 32 DIV 5 col0
----
0

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL - COUNT ( * ) / - 32 / 5 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5999
SELECT MAX( 92 ) DIV - 1
----
-92

skipif mysql # not compatible
query I rowsort label-5999
SELECT MAX ( 92 ) / - 1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6000
SELECT NULLIF ( - 84, MAX( DISTINCT - 97 ) * - 23 + - COUNT( * ) - - 36 / ( + 36 ) + 72 + + 90 * + + 88 ) + CAST( NULL AS SIGNED ) + + 8 - 70 / - + 77 col1, 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-6000
SELECT NULLIF ( - 84, MAX ( DISTINCT - 97 ) * - 23 + - COUNT ( * ) - - 36 / ( + 36 ) + 72 + + 90 * + + 88 ) + CAST ( NULL AS INTEGER ) + + 8 - 70 / - + 77 col1, 56
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT - MIN( 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6001
SELECT - MIN ( 84 ) AS col0
----
-84

query I rowsort
SELECT ALL - ( + + 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT + COUNT( * ) * - + 79
----
-79

skipif mysql # not compatible
query I rowsort label-6003
SELECT + COUNT ( * ) * - + 79
----
-79

query I rowsort
SELECT ALL + 53 * - - 17 * + 49 AS col1
----
44149

query I rowsort
SELECT ALL - + 2 + + 4
----
2

query I rowsort
SELECT ALL 86 * + 87 * - 95 * - 44
----
31274760

query I rowsort
SELECT DISTINCT 44 + + 1 * ( - 34 ) + - 61 - + 42 + + 66
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6008
SELECT ALL + 78 + - - 85 - + - 79 / + CASE + 0 WHEN 59 THEN NULL WHEN + 94 THEN - 37 + - CAST( NULL AS SIGNED ) - 99 WHEN COUNT( * ) THEN NULL ELSE - + CAST( NULL AS SIGNED ) * COALESCE ( 11, + 4 ) END + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL + 78 + - - 85 - + - 79 / + CASE + 0 WHEN 59 THEN NULL WHEN + 94 THEN - 37 + - CAST ( NULL AS INTEGER ) - 99 WHEN COUNT ( * ) THEN NULL ELSE - + CAST ( NULL AS INTEGER ) * COALESCE ( 11, + 4 ) END + 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT DISTINCT + 96 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT + 96 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 82 * + + 32 + - + 97 + - - 67
----
2594

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6011
SELECT ALL + 78 + + CAST( ( - 69 ) AS SIGNED ) DIV 59
----
77

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + 78 + + CAST ( ( - 69 ) AS INTEGER ) / 59
----
77

query II rowsort
SELECT 4, 47 * 50 AS col1
----
4
2350

query I rowsort
SELECT 7 + - + 48
----
-41

query I rowsort
SELECT DISTINCT - COALESCE ( 14, 6 )
----
-14

query I rowsort
SELECT ALL - 51 + - 42
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT 87 * COUNT( * ) * - + 48 * - + 87
----
363312

skipif mysql # not compatible
query I rowsort label-6016
SELECT 87 * COUNT ( * ) * - + 48 * - + 87
----
363312

query I rowsort
SELECT 23 * + 67 AS col1
----
1541

query I rowsort
SELECT ALL + 88 + - 16 AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6019
SELECT ALL - 61 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - 61 / - 68
----
0

query I rowsort
SELECT 13 * 61
----
793

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6021
SELECT DISTINCT 19 AS col2, + 70 + - AVG ( - + CAST( NULL AS DECIMAL ) ) AS col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-6021
SELECT DISTINCT 19 AS col2, + 70 + - AVG ( - + CAST ( NULL AS REAL ) ) AS col2
----
19
NULL

query I rowsort
SELECT DISTINCT - 34 - - 48 - + 73
----
-59

query I rowsort
SELECT 25 * - 99 * 28 AS col1
----
-69300

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT 32 DIV + 89 * + 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6024
SELECT 32 / + 89 * + 7 AS col2
----
0

query I rowsort
SELECT - NULLIF ( - 26, ( + + 73 ) * 62 * 92 * 6 + 29 + + 12 )
----
26

query I rowsort
SELECT - 17 - - 51 * 87 * + - 28 + + + 55 col0
----
-124198

query II rowsort
SELECT - 54, 51 AS col0
----
-54
51

query I rowsort
SELECT - 30 - 3 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6029
SELECT DISTINCT COUNT( * ) AS col0, COUNT( ALL - COALESCE ( + - 4, - 81 - + + 87 ) ) + - 68 AS col0
----
1
-67

skipif mysql # not compatible
query II rowsort label-6029
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( ALL - COALESCE ( + - 4, - 81 - + + 87 ) ) + - 68 AS col0
----
1
-67

query II rowsort
SELECT ALL - 43, 34 AS col0
----
-43
34

query I rowsort
SELECT - + 43 * + 9 AS col1
----
-387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT - + 85 + 15 * + NULLIF ( + 22, - ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
245

skipif mysql # not compatible
query I rowsort label-6032
SELECT - + 85 + 15 * + NULLIF ( + 22, - ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6033
SELECT + + ( - - 9 ) - - - COUNT( * ) + COALESCE ( 95, - - 15 ) + COUNT( * ) * - 76 DIV + + MAX( ( + 58 ) ) - - 37 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-6033
SELECT + + ( - - 9 ) - - - COUNT ( * ) + COALESCE ( 95, - - 15 ) + COUNT ( * ) * - 76 / + + MAX ( ( + 58 ) ) - - 37 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL CASE - + 22 WHEN - COALESCE ( + 29, + 7 + + COALESCE ( 34, 28, 52 ) + 29 / - 54 ) THEN NULL ELSE - COUNT( * ) + + 42 * 62 - + COUNT( * ) END AS col0
----
2602

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL CASE - + 22 WHEN - COALESCE ( + 29, + 7 + + COALESCE ( 34, 28, 52 ) + 29 / - 54 ) THEN NULL ELSE - COUNT ( * ) + + 42 * 62 - + COUNT ( * ) END AS col0
----
2602

onlyif mysql # aggregate syntax: 
query II rowsort label-6035
SELECT - - 63, + NULLIF ( 56, - - ( - ( COUNT( * ) ) ) * + 14 * 58 + - - 33 + - 3 ) AS col1
----
63
56

skipif mysql # not compatible
query II rowsort label-6035
SELECT - - 63, + NULLIF ( 56, - - ( - ( COUNT ( * ) ) ) * + 14 * 58 + - - 33 + - 3 ) AS col1
----
63
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6036
SELECT - + 7 AS col1, COUNT( * )
----
-7
1

skipif mysql # not compatible
query II rowsort label-6036
SELECT - + 7 AS col1, COUNT ( * )
----
-7
1

query I rowsort
SELECT + - 4 - - 16
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT + COUNT( * ) * + + MAX( ALL - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6038
SELECT + COUNT ( * ) * + + MAX ( ALL - 22 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL ( + 43 ) + CASE + COUNT( * ) WHEN + - 5 THEN - 85 WHEN + 49 + + - 21 + + - 79 * - 37 / 99 THEN + COUNT( * ) * 88 ELSE - + 47 END + - - 13
----
9

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL ( + 43 ) + CASE + COUNT ( * ) WHEN + - 5 THEN - 85 WHEN + 49 + + - 21 + + - 79 * - 37 / 99 THEN + COUNT ( * ) * 88 ELSE - + 47 END + - - 13
----
9

query II rowsort
SELECT ALL + 12 AS col1, 64
----
12
64

query II rowsort
SELECT + 0 AS col2, - 56
----
0
-56

query I rowsort
SELECT ALL + - ( - + 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT CASE + 41 WHEN - 94 THEN + 92 * - SUM( 88 ) - - - 77 + + 77 * + SUM( DISTINCT + ( + 18 ) ) WHEN CAST( + 54 AS SIGNED ) + + 33 / - 89 + - 21 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT CASE + 41 WHEN - 94 THEN + 92 * - SUM ( 88 ) - - - 77 + + 77 * + SUM ( DISTINCT + ( + 18 ) ) WHEN CAST ( + 54 AS INTEGER ) + + 33 / - 89 + - 21 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6044
SELECT COUNT( * ) * - + SUM( + 30 ) * - - CAST( NULL AS SIGNED ) + + - 77 + - + 8 - - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT COUNT ( * ) * - + SUM ( + 30 ) * - - CAST ( NULL AS INTEGER ) + + - 77 + - + 8 - - - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT DISTINCT COUNT( * ) * - 99 + - 5 + + 4 * - + 18 AS col0
----
-176

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT COUNT ( * ) * - 99 + - 5 + + 4 * - + 18 AS col0
----
-176

query II rowsort
SELECT - 44 * + 48, - 21 AS col0
----
-2112
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT CASE - - 31 WHEN + CASE - CASE + COUNT( * ) WHEN - 23 * - 18 THEN + 50 ELSE NULL END WHEN + ( + 86 ) THEN - 63 WHEN + 45 * + 93 * 98 / - + COUNT( * ) + + 8 THEN NULL END * + 88 + + ( + 2 ) THEN NULL ELSE - 84 END AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6047
SELECT CASE - - 31 WHEN + CASE - CASE + COUNT ( * ) WHEN - 23 * - 18 THEN + 50 ELSE NULL END WHEN + ( + 86 ) THEN - 63 WHEN + 45 * + 93 * 98 / - + COUNT ( * ) + + 8 THEN NULL END * + 88 + + ( + 2 ) THEN NULL ELSE - 84 END AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT + 8 + + MIN( + 31 )
----
39

skipif mysql # not compatible
query I rowsort label-6048
SELECT + 8 + + MIN ( + 31 )
----
39

query II rowsort
SELECT DISTINCT - 47 * - + 58 AS col0, - 61
----
2726
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT ALL + SUM( ALL + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + SUM ( ALL + 95 ) AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL + 14 * + - 85 * - 41 - CAST( NULL AS SIGNED ) + - 94 * - MIN( - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + 14 * + - 85 * - 41 - CAST ( NULL AS INTEGER ) + - 94 * - MIN ( - 81 )
----
NULL

query II rowsort
SELECT + ( - - 87 ) AS col0, 2 + + 16
----
87
18

query I rowsort
SELECT - 54 + + - 48 col0
----
-102

query I rowsort
SELECT ALL COALESCE ( - 7, - - ( 75 ) )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6055
SELECT - ( COUNT( * ) ) AS col1, - 0 * + + 8 * - COUNT( * ) * - - 10 * + 56 col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-6055
SELECT - ( COUNT ( * ) ) AS col1, - 0 * + + 8 * - COUNT ( * ) * - - 10 * + 56 col0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT - CASE + - 64 WHEN 73 THEN NULL WHEN + 92 + - 24 * + - 15 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT - CASE + - 64 WHEN 73 THEN NULL WHEN + 92 + - 24 * + - 15 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6057
SELECT - COUNT( * ) + + + 48 AS col2, - 71 DIV + + 88 * - 67, - 75 * - 13 AS col1
----
47
0
975

skipif mysql # not compatible
query III rowsort label-6057
SELECT - COUNT ( * ) + + + 48 AS col2, - 71 / + + 88 * - 67, - 75 * - 13 AS col1
----
47
0
975

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT - - 49 + + COUNT( * ) - NULLIF ( + 43, + ( - - 86 ) ) * - - 35, 45 AS col2
----
-1455
45

skipif mysql # not compatible
query II rowsort label-6058
SELECT - - 49 + + COUNT ( * ) - NULLIF ( + 43, + ( - - 86 ) ) * - - 35, 45 AS col2
----
-1455
45

query II rowsort
SELECT - + 33 * + ( + - 25 ) * + ( + 48 ) AS col2, - 28
----
39600
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6060
SELECT DISTINCT - + 86 DIV 10 col2, - CASE + 14 WHEN + COUNT( * ) THEN - 10 DIV - 50 * + 38 * + 66 * - COALESCE ( + 89, - ( - 28 ) ) + - 76 END
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-6060
SELECT DISTINCT - + 86 / 10 col2, - CASE + 14 WHEN + COUNT ( * ) THEN - 10 / - 50 * + 38 * + 66 * - COALESCE ( + 89, - ( - 28 ) ) + - 76 END
----
-8
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT - - 58 * + COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-6061
SELECT - - 58 * + COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT - + COUNT( * ) * 84 * - + 68
----
5712

skipif mysql # not compatible
query I rowsort label-6062
SELECT - + COUNT ( * ) * 84 * - + 68
----
5712

query I rowsort
SELECT ALL + ( + 81 ) AS col2
----
81

query I rowsort
SELECT - 90 + - - 52 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL - COUNT( * ) * 75 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - COUNT ( * ) * 75 AS col1
----
-75

query I rowsort
SELECT - 4 * - 94 col1
----
376

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT + CASE + + 54 WHEN + 92 THEN NULL WHEN + + NULLIF ( 21, + COUNT( * ) ) * - COALESCE ( + 21, 48, - 71 ) - - 87 + + 7 THEN + 71 END * + + SUM( - + 2 ), + 91 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-6067
SELECT + CASE + + 54 WHEN + 92 THEN NULL WHEN + + NULLIF ( 21, + COUNT ( * ) ) * - COALESCE ( + 21, 48, - 71 ) - - 87 + + 7 THEN + 71 END * + + SUM ( - + 2 ), + 91 AS col1
----
NULL
91

query I rowsort
SELECT - NULLIF ( - + 20, - 17 + - 14 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL + COUNT( * ) + - NULLIF ( - 93, 96 ) + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL + COUNT ( * ) + - NULLIF ( - 93, 96 ) + COUNT ( * ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT ALL MIN( 20 ) + - + ( - COUNT( * ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL MIN ( 20 ) + - + ( - COUNT ( * ) ) AS col1
----
21

query I rowsort
SELECT DISTINCT + + 68 + + + 72 AS col1
----
140

query I rowsort
SELECT + COALESCE ( 77, - 12 * + + 52 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT - - 56 + - - 27 + COUNT( DISTINCT + 82 ) * + 85
----
168

skipif mysql # not compatible
query I rowsort label-6073
SELECT - - 56 + - - 27 + COUNT ( DISTINCT + 82 ) * + 85
----
168

query I rowsort
SELECT ALL + - 18 + + 39 * - 89 + - + 13 AS col1
----
-3502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6075
SELECT ALL - CAST( NULL AS SIGNED ) / COUNT( * ) * - 55 + + - SUM( ALL 34 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - CAST ( NULL AS INTEGER ) / COUNT ( * ) * - 55 + + - SUM ( ALL 34 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6076
SELECT + COUNT( * ) DIV - 1 + - 68 * 11 AS col2
----
-749

skipif mysql # not compatible
query I rowsort label-6076
SELECT + COUNT ( * ) / - 1 + - 68 * 11 AS col2
----
-749

query I rowsort
SELECT + 26 * - - 3 AS col1
----
78

query II rowsort
SELECT ALL 32 * - + ( - + 27 ) AS col0, 11 AS col2
----
864
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6079
SELECT ALL 55 / COUNT( * ) + + + 73 + - MAX( - 94 ) + - - 46 + - - ( - COUNT( - CAST( NULL AS DECIMAL ) ) ) * + 26 * - + CAST( NULL AS SIGNED ) * 53 * - 88 * 1 AS col2, - 99 + 54 * + MIN( DISTINCT + 25 )
----
NULL
1251

skipif mysql # not compatible
query II rowsort label-6079
SELECT ALL 55 / COUNT ( * ) + + + 73 + - MAX ( - 94 ) + - - 46 + - - ( - COUNT ( - CAST ( NULL AS REAL ) ) ) * + 26 * - + CAST ( NULL AS INTEGER ) * 53 * - 88 * 1 AS col2, - 99 + 54 * + MIN ( DISTINCT + 25 )
----
NULL
1251

query I rowsort
SELECT - 49 * - 6 + - + ( + 10 ) + 58
----
342

query II rowsort
SELECT ALL + 52, 16 * - 30 AS col0
----
52
-480

query I rowsort
SELECT + 67 - + 87 - - 46 - + 20
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT ALL 67 DIV 34 - - + 19 col1
----
20

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL 67 / 34 - - + 19 col1
----
20

query I rowsort
SELECT + 60 * + - 94 AS col1
----
-5640

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT ALL + ( + + 76 ) DIV + - 40 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL + ( + + 76 ) / + - 40 col0
----
-1

query I rowsort
SELECT + 24 * - + 25 AS col1
----
-600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6087
SELECT ( - CAST( COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6087
SELECT ( - CAST ( COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6088
SELECT ALL COALESCE ( + 96, 79 ) DIV + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL COALESCE ( + 96, 79 ) / + COUNT ( * )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6089
SELECT + 42 DIV + - 15 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6089
SELECT + 42 / + - 15 AS col0
----
-2

query I rowsort
SELECT + 1 * - 23 * - - 40 AS col2
----
-920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6091
SELECT + CAST( NULL AS SIGNED ) AS col2, - 71 AS col0
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-6091
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 71 AS col0
----
NULL
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT DISTINCT - 16 * + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT - 16 * + + COUNT ( * )
----
-16

query I rowsort
SELECT ALL + - 38 col1
----
-38

query I rowsort
SELECT ALL - 9 * 51 + 29 AS col1
----
-430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT ALL + 98 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL + 98 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT DISTINCT CASE - - 15 WHEN COUNT( * ) * + 23 THEN 17 * + ( + 11 ) / - 42 + - 3 * + ( - 78 ) ELSE NULL END * - + 91 + - COUNT( - 99 ) + + - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT CASE - - 15 WHEN COUNT ( * ) * + 23 THEN 17 * + ( + 11 ) / - 42 + - 3 * + ( - 78 ) ELSE NULL END * - + 91 + - COUNT ( - 99 ) + + - 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT ALL - 24 AS col2, - COALESCE ( - - 92, + - NULLIF ( + - 86, + NULLIF ( - - 46, - 75 ) + - COALESCE ( + AVG ( + + 30 ), SUM( + 96 ) ) ) - 5 + - - 47 )
----
-24
-92

skipif mysql # not compatible
query II rowsort label-6097
SELECT ALL - 24 AS col2, - COALESCE ( - - 92, + - NULLIF ( + - 86, + NULLIF ( - - 46, - 75 ) + - COALESCE ( + AVG ( + + 30 ), SUM ( + 96 ) ) ) - 5 + - - 47 )
----
-24
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL - - 96 + MIN( DISTINCT - 85 ) + + - 0 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - - 96 + MIN ( DISTINCT - 85 ) + + - 0 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6099
SELECT 65 AS col1, CAST( + + 0 AS SIGNED ) - + 48
----
65
-48

skipif mysql # not compatible
query II rowsort label-6099
SELECT 65 AS col1, CAST ( + + 0 AS INTEGER ) - + 48
----
65
-48

query I rowsort
SELECT ALL + 82 + + 48 AS col1
----
130

query I rowsort
SELECT 93 - 89
----
4

query II rowsort
SELECT - + 70, 78 + - 13 col1
----
-70
65

query I rowsort
SELECT 85 + 54 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL - - COUNT( * ) + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL - - COUNT ( * ) + - 44
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-6105
SELECT + 97 AS col0, + 14 * - CASE + - 30 WHEN + MIN( - - NULLIF ( - 17, + COALESCE ( + - COALESCE ( + 52, + 16 * + 19 ), + - 71 + 31 + 25 * 67 + 84 ) / - 62 ) ) THEN NULL WHEN + 83 THEN ( + + 8 ) END
----
97
NULL

skipif mysql # not compatible
query II rowsort label-6105
SELECT + 97 AS col0, + 14 * - CASE + - 30 WHEN + MIN ( - - NULLIF ( - 17, + COALESCE ( + - COALESCE ( + 52, + 16 * + 19 ), + - 71 + 31 + 25 * 67 + 84 ) / - 62 ) ) THEN NULL WHEN + 83 THEN ( + + 8 ) END
----
97
NULL

query I rowsort
SELECT DISTINCT + 72 * + 85
----
6120

query I rowsort
SELECT 65 + + COALESCE ( - 67, + 19 + + 93 ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6108
SELECT COUNT( * ) - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6108
SELECT COUNT ( * ) - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 65 - + - 1 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT ALL + COALESCE ( COUNT( * ), 96 ) - + 98 + - ( + 3 ) + + COUNT( * ) + + - CAST( NULL AS SIGNED ) + + 34 * - + 78 * + NULLIF ( - COUNT( * ), - 60 / + - ( ( + 36 ) ) + 69 * ( 66 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL + COALESCE ( COUNT ( * ), 96 ) - + 98 + - ( + 3 ) + + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + + 34 * - + 78 * + NULLIF ( - COUNT ( * ), - 60 / + - ( ( + 36 ) ) + 69 * ( 66 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL + 20 - - - MIN( DISTINCT - ( 63 ) ) - + 60 col1
----
23

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + 20 - - - MIN ( DISTINCT - ( 63 ) ) - + 60 col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT ALL + 2 - - COUNT( - 26 ) + + COUNT( * ) + + + NULLIF ( - 48, - 52 ) DIV + 82 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + 2 - - COUNT ( - 26 ) + + COUNT ( * ) + + + NULLIF ( - 48, - 52 ) / + 82 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6113
SELECT 22 - - + 51 + - + 50 * - COUNT( * ) AS col1, ( + COUNT( * ) ) DIV + + NULLIF ( 44, + AVG ( - 61 ) ) AS col0
----
123
0

skipif mysql # not compatible
query II rowsort label-6113
SELECT 22 - - + 51 + - + 50 * - COUNT ( * ) AS col1, ( + COUNT ( * ) ) / + + NULLIF ( 44, + AVG ( - 61 ) ) AS col0
----
123
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT COUNT( * ) * + 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6114
SELECT COUNT ( * ) * + 50 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6115
SELECT ALL - CASE AVG ( 64 ) WHEN - 82 THEN - + CAST( - ( MAX( + 8 ) ) AS SIGNED ) WHEN + ( + 8 ) * + COUNT( * ) THEN NULL WHEN - AVG ( ALL + 16 ) THEN + COUNT( * ) * - ( 86 ) + - 15 + 49 * + - 63 * + NULLIF ( 72, + - 25 * + 30 + + + 0 ) * + 59 ELSE - - 36 END
----
-36

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL - CASE AVG ( 64 ) WHEN - 82 THEN - + CAST ( - ( MAX ( + 8 ) ) AS INTEGER ) WHEN + ( + 8 ) * + COUNT ( * ) THEN NULL WHEN - AVG ( ALL + 16 ) THEN + COUNT ( * ) * - ( 86 ) + - 15 + 49 * + - 63 * + NULLIF ( 72, + - 25 * + 30 + + + 0 ) * + 59 ELSE - - 36 END
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT 21 * + + 75 + - COUNT( * )
----
1574

skipif mysql # not compatible
query I rowsort label-6116
SELECT 21 * + + 75 + - COUNT ( * )
----
1574

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT - + 40 * + COUNT( * ) + 68
----
28

skipif mysql # not compatible
query I rowsort label-6117
SELECT - + 40 * + COUNT ( * ) + 68
----
28

query II rowsort
SELECT - 10 + - 72 + + - 35 * + 36 * + 55 AS col1, + 15
----
-69382
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6119
SELECT ALL CAST( NULL AS SIGNED ) + - 97 - - + COUNT( * ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL CAST ( NULL AS INTEGER ) + - 97 - - + COUNT ( * ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 93 + + 86 * - - 67 * + 4 + 85
----
23226

query I rowsort
SELECT 38 * + + 7 * + - 20
----
-5320

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT + - ( MAX( + 18 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6122
SELECT + - ( MAX ( + 18 ) ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6123
SELECT + CAST( + + 10 AS SIGNED ) * - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-6123
SELECT + CAST ( + + 10 AS INTEGER ) * - COUNT ( * )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6124
SELECT ALL - 86 + + 68 + - - 46 * + 78 AS col0, + 96 - 17 * CAST( 11 AS SIGNED ) AS col2
----
3570
-91

skipif mysql # not compatible
query II rowsort label-6124
SELECT ALL - 86 + + 68 + - - 46 * + 78 AS col0, + 96 - 17 * CAST ( 11 AS INTEGER ) AS col2
----
3570
-91

query I rowsort
SELECT + + 39 * - + NULLIF ( - - 32, + + 7 + + 70 ) * 86 * + 73 * - 34 + + + 69 + - 69 AS col1
----
266388096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6126
SELECT ALL - 37 + - ( - 40 ) * + 46 * - + 91 AS col0, + ( 31 ) + COALESCE ( + 29, 69 * - CAST( NULL AS SIGNED ) * - 76 + 88, COUNT( ALL + 29 ) )
----
-167477
60

skipif mysql # not compatible
query II rowsort label-6126
SELECT ALL - 37 + - ( - 40 ) * + 46 * - + 91 AS col0, + ( 31 ) + COALESCE ( + 29, 69 * - CAST ( NULL AS INTEGER ) * - 76 + 88, COUNT ( ALL + 29 ) )
----
-167477
60

query I rowsort
SELECT ALL 82 + - 95
----
-13

query I rowsort
SELECT ALL - ( - + 58 ) AS col2
----
58

query II rowsort
SELECT DISTINCT + - 31 + + 21 AS col0, + ( + - 77 )
----
-10
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT - MAX( DISTINCT - + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-6130
SELECT - MAX ( DISTINCT - + 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT 77 + 65 - - - 51 * 80 * + AVG ( ALL - 45 ) + - + 43 / - 22 - - ( + 14 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT 77 + 65 - - - 51 * 80 * + AVG ( ALL - 45 ) + - + 43 / - 22 - - ( + 14 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 76 + - 95
----
-19

query I rowsort
SELECT ( 11 ) * + 33 * ( + 76 )
----
27588

query II rowsort
SELECT 98, + 14 AS col0
----
98
14

query I rowsort
SELECT 6 + - 7 * - 63 AS col2
----
447

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6136
SELECT DISTINCT + CAST( - 78 AS SIGNED ) * - 85 AS col2
----
6630

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT + CAST ( - 78 AS INTEGER ) * - 85 AS col2
----
6630

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT DISTINCT + 15 DIV + - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT + 15 / + - 20 AS col1
----
0

query I rowsort
SELECT + 40 * + + 95 - - 44 * 16 + - 46 + - NULLIF ( + 60, - 12 ) AS col0
----
4398

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT 26 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-6139
SELECT 26 / + 73
----
0

query I rowsort
SELECT 96 * ( - + 71 )
----
-6816

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT 15 DIV 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-6141
SELECT 15 / 72 col0
----
0

query I rowsort
SELECT 22 * - 21 AS col0
----
-462

onlyif mysql # aggregate syntax: 
query II rowsort label-6143
SELECT COUNT( * ) AS col2, - 81 * + 0 col2
----
1
0

skipif mysql # not compatible
query II rowsort label-6143
SELECT COUNT ( * ) AS col2, - 81 * + 0 col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT 95 * + - 89 + COUNT( ( - 91 ) )
----
-8454

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT 95 * + - 89 + COUNT ( ( - 91 ) )
----
-8454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6145
SELECT - COUNT( * ) * - MAX( + 54 ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT - COUNT ( * ) * - MAX ( + 54 ) / - 64
----
0

query I rowsort
SELECT - 59 * + 34 AS col0
----
-2006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6147
SELECT ALL 1 * CAST( MAX( 19 ) AS SIGNED ) + + 89
----
108

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL 1 * CAST ( MAX ( 19 ) AS INTEGER ) + + 89
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6148
SELECT - COUNT( * ) DIV SUM( - 48 )
----
0

skipif mysql # not compatible
query I rowsort label-6148
SELECT - COUNT ( * ) / SUM ( - 48 )
----
0

query I rowsort
SELECT DISTINCT 40 * - ( - 8 )
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT DISTINCT + CASE 98 WHEN + ( 7 ) * 80 THEN 9 ELSE - COUNT( + 7 ) END + 0 * 32 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT + CASE 98 WHEN + ( 7 ) * 80 THEN 9 ELSE - COUNT ( + 7 ) END + 0 * 32 AS col2
----
-1

query I rowsort
SELECT + ( + 74 ) * 36 AS col1
----
2664

query I rowsort
SELECT ALL + 64 + - 13 * - 52
----
740

query I rowsort
SELECT DISTINCT 10 + COALESCE ( 42, 13 ) AS col2
----
52

query I rowsort
SELECT ALL 69 + + 54 * + 88 AS col0
----
4821

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT 0 * + COUNT( * ) + + 7
----
7

skipif mysql # not compatible
query I rowsort label-6155
SELECT 0 * + COUNT ( * ) + + 7
----
7

query I rowsort
SELECT DISTINCT 74 - + 99
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6157
SELECT - CASE 12 WHEN 6 THEN CAST( NULL AS SIGNED ) + 22 WHEN - CASE 3 WHEN 43 * + MIN( ALL 77 / CASE 84 WHEN 39 THEN NULLIF ( 29, + 2 ) WHEN ( 80 ) * - 93 THEN NULL END ) + - MAX( DISTINCT 81 + 15 ) * + CAST( NULL AS SIGNED ) THEN + 46 / 32 WHEN - ( 26 ) / + 15 THEN NULL WHEN 38 - + COALESCE ( 66 + COUNT( * ), ( + COUNT( * ) ), - 79 ) * 11 THEN - 37 - - 36 ELSE 79 - ( 23 + 6 ) * ( + 96 ) END + 25 THEN NULL ELSE + CASE + COUNT( * ) WHEN CASE - AVG ( - 11 ) WHEN - 62 * - COALESCE ( 93, + SUM( DISTINCT 48 ), CAST( - 84 AS DECIMAL ) * 0, 83 ) THEN 37 * 32 WHEN 36 - ( + 87 ) THEN NULL ELSE + 0 + 30 * - 14 END THEN NULL WHEN - 77 THEN - 28 END / COUNT( * ) + 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT - CASE 12 WHEN 6 THEN CAST ( NULL AS INTEGER ) + 22 WHEN - CASE 3 WHEN 43 * + MIN ( ALL 77 / CASE 84 WHEN 39 THEN NULLIF ( 29, + 2 ) WHEN ( 80 ) * - 93 THEN NULL END ) + - MAX ( DISTINCT 81 + 15 ) * + CAST ( NULL AS INTEGER ) THEN + 46 / 32 WHEN - ( 26 ) / + 15 THEN NULL WHEN 38 - + COALESCE ( 66 + COUNT ( * ), ( + COUNT ( * ) ), - 79 ) * 11 THEN - 37 - - 36 ELSE 79 - ( 23 + 6 ) * ( + 96 ) END + 25 THEN NULL ELSE + CASE + COUNT ( * ) WHEN CASE - AVG ( - 11 ) WHEN - 62 * - COALESCE ( 93, + SUM ( DISTINCT 48 ), CAST ( - 84 AS REAL ) * 0, 83 ) THEN 37 * 32 WHEN 36 - ( + 87 ) THEN NULL ELSE + 0 + 30 * - 14 END THEN NULL WHEN - 77 THEN - 28 END / COUNT ( * ) + 88 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT + 15 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT + 15 / - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT DISTINCT 38 / CASE COUNT( * ) WHEN 4 * 31 THEN 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT 38 / CASE COUNT ( * ) WHEN 4 * 31 THEN 99 END
----
NULL

query I rowsort
SELECT - CASE 93 WHEN 41 - + 84 * 11 THEN NULL WHEN 26 * ( 54 ) THEN + 72 WHEN - 48 THEN 45 * + ( - 3 * + 82 ) ELSE + 46 END
----
-46

query I rowsort
SELECT + 68 + 84 AS col0
----
152

query I rowsort
SELECT ALL 73 - 78 AS col2
----
-5

query I rowsort
SELECT - NULLIF ( 62, 21 ) col2
----
-62

query I rowsort
SELECT + 44 + - 78
----
-34

query I rowsort
SELECT + 61 * + 49 AS col2
----
2989

query I rowsort
SELECT - COALESCE ( 33, 84 )
----
-33

query I rowsort
SELECT + 25 * - 15
----
-375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6168
SELECT - 90 + + MAX( 20 + + 96 ) DIV 46 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6168
SELECT - 90 + + MAX ( 20 + + 96 ) / 46 AS col2
----
-88

query I rowsort
SELECT ALL + 30 + + 3 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6170
SELECT + 19 - 46 * COALESCE ( COUNT( * ) DIV COUNT( * ) - + 98, - COUNT( * ) )
----
4481

skipif mysql # not compatible
query I rowsort label-6170
SELECT + 19 - 46 * COALESCE ( COUNT ( * ) / COUNT ( * ) - + 98, - COUNT ( * ) )
----
4481

query I rowsort
SELECT + 54 + + 98
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT DISTINCT - 17 DIV 27 + ( 81 )
----
81

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT - 17 / 27 + ( 81 )
----
81

query I rowsort
SELECT ALL - 40 * + 22 AS col0
----
-880

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6174
SELECT DISTINCT 29 DIV - 31 + 52 * + CAST( + 81 AS SIGNED )
----
4212

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT 29 / - 31 + 52 * + CAST ( + 81 AS INTEGER )
----
4212

query I rowsort
SELECT 31 * + 5 + 92
----
247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT - 65 - ( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT - 65 - ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT - - 3 * 45 + - 25 DIV 50 col2
----
135

skipif mysql # not compatible
query I rowsort label-6177
SELECT - - 3 * 45 + - 25 / 50 col2
----
135

query I rowsort
SELECT ALL + 88 * 46 + - 63
----
3985

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT - 15 DIV + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6179
SELECT - 15 / + 82 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6180
SELECT COUNT( * ) DIV - 48 + 58 * - 84
----
-4872

skipif mysql # not compatible
query I rowsort label-6180
SELECT COUNT ( * ) / - 48 + 58 * - 84
----
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL + ( + COALESCE ( + 14, COUNT( * ) - 98 * - 87 ) ) * 89 + 44 AS col1
----
1290

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL + ( + COALESCE ( + 14, COUNT ( * ) - 98 * - 87 ) ) * 89 + 44 AS col1
----
1290

query I rowsort
SELECT - + ( 77 ) + - 76
----
-153

query I rowsort
SELECT ALL + + 21 col2
----
21

query I rowsort
SELECT + + 2 * - 74 + 89 * + 49 col1
----
4213

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL - 87 * + MIN( ALL 33 ) - 44 AS col0
----
-2915

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL - 87 * + MIN ( ALL 33 ) - 44 AS col0
----
-2915

query I rowsort
SELECT - 4 * + 31 AS col2
----
-124

query I rowsort
SELECT - - 40 + - 49 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL + SUM( 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL + SUM ( 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT DISTINCT + COUNT( * ) * 61 - + 77
----
-16

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT + COUNT ( * ) * 61 - + 77
----
-16

query I rowsort
SELECT + 31 + 65 AS col2
----
96

query I rowsort
SELECT - 70 * 46 AS col0
----
-3220

query I rowsort
SELECT - - 8 * - 81 + + 30 AS col1
----
-618

query I rowsort
SELECT - CASE 23 WHEN - 64 THEN 91 * NULLIF ( - 65 * 8, - NULLIF ( - 22, - CASE + 14 WHEN 50 * 85 THEN NULL ELSE - 96 END ) ) END
----
NULL

query I rowsort
SELECT ALL 28 * - 13 AS col1
----
-364

query I rowsort
SELECT ALL - 82 * 48
----
-3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6196
SELECT ALL - MIN( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL - MIN ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - - NULLIF ( - 51, - 12 * - 20 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT - 15 * + 4 * COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT - 15 * + 4 * COUNT ( * )
----
-60

query I rowsort
SELECT + 44 * 50 AS col0
----
2200

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT + 62 DIV 18 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6200
SELECT + 62 / 18 AS col0
----
3

query I rowsort
SELECT - 8 * 96 * + 16
----
-12288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6202
SELECT ALL COUNT( * ) DIV - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL COUNT ( * ) / - 66 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT - 26 DIV - ( - COUNT( ALL + 78 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6203
SELECT - 26 / - ( - COUNT ( ALL + 78 ) ) AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6204
SELECT + 31 DIV + - 41 * 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6204
SELECT + 31 / + - 41 * 59 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6205
SELECT - CAST( + 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-6205
SELECT - CAST ( + 32 AS INTEGER )
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6206
SELECT ALL CAST( NULL AS DECIMAL ) + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL CAST ( NULL AS REAL ) + + 28
----
NULL

query I rowsort
SELECT + 78 - + 87
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6208
SELECT + 95 + COUNT( * ) DIV 94
----
95

skipif mysql # not compatible
query I rowsort label-6208
SELECT + 95 + COUNT ( * ) / 94
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT 7 + - MIN( + 50 ) + - ( - 26 + COUNT( * ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT 7 + - MIN ( + 50 ) + - ( - 26 + COUNT ( * ) ) AS col2
----
-18

query I rowsort
SELECT ALL 66 * + 79
----
5214

query I rowsort
SELECT ALL 77 + - - 47 AS col1
----
124

query I rowsort
SELECT DISTINCT 12 + 20 + 61 * - NULLIF ( 63, + 93 + - 38 )
----
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT MIN( ALL - + 83 ) * 9 AS col1
----
-747

skipif mysql # not compatible
query I rowsort label-6213
SELECT MIN ( ALL - + 83 ) * 9 AS col1
----
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL - 88 - 80 + - 45 * SUM( DISTINCT 6 + 86 )
----
-4308

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL - 88 - 80 + - 45 * SUM ( DISTINCT 6 + 86 )
----
-4308

query I rowsort
SELECT DISTINCT - + 99 - + 24 * 85
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL - 49 * - - 38 * COUNT( * ) AS col1
----
-1862

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - 49 * - - 38 * COUNT ( * ) AS col1
----
-1862

query I rowsort
SELECT - ( 26 ) * + 18 AS col1
----
-468

onlyif mysql # DIV for integer division: 
query I rowsort label-6218
SELECT DISTINCT - NULLIF ( - 36, + 51 ) DIV - 27
----
-1

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT - NULLIF ( - 36, + 51 ) / - 27
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT 52 * + COUNT( * ) - - 20 * 91
----
1872

skipif mysql # not compatible
query I rowsort label-6219
SELECT 52 * + COUNT ( * ) - - 20 * 91
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT + COUNT( * ) * + - COUNT( * ) + ( + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6220
SELECT + COUNT ( * ) * + - COUNT ( * ) + ( + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL - 53 * 66 + + COUNT( * )
----
-3497

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL - 53 * 66 + + COUNT ( * )
----
-3497

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT DISTINCT - SUM( - 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT - SUM ( - 70 ) AS col0
----
70

query I rowsort
SELECT 19 * 10 AS col0
----
190

query II rowsort
SELECT ALL 30 AS col1, 84 + 14 + + 59 AS col0
----
30
157

query I rowsort
SELECT 97 * + + 8 AS col0
----
776

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT - 41 * COUNT( * ) - 26 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6226
SELECT - 41 * COUNT ( * ) - 26 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6227
SELECT 14 AS col0, - 94 - - COUNT( * )
----
14
-93

skipif mysql # not compatible
query II rowsort label-6227
SELECT 14 AS col0, - 94 - - COUNT ( * )
----
14
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6228
SELECT ALL + ( SUM( - + 38 ) ) + - 53 DIV - 5 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + ( SUM ( - + 38 ) ) + - 53 / - 5 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT DISTINCT - 85 * + MIN( - + 69 ) AS col0
----
5865

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT - 85 * + MIN ( - + 69 ) AS col0
----
5865

query I rowsort
SELECT 35 + - - 43 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL + ( - 41 ) + + + NULLIF ( + 44, - 2 * COUNT( * ) ) * 1
----
3

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + ( - 41 ) + + + NULLIF ( + 44, - 2 * COUNT ( * ) ) * 1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT ALL - COUNT( * ) + - - 41 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL - COUNT ( * ) + - - 41 AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6233
SELECT 21 + + - 61 + CAST( + 82 AS SIGNED ) * - 89 * 45
----
-328450

skipif mysql # not compatible
query I rowsort label-6233
SELECT 21 + + - 61 + CAST ( + 82 AS INTEGER ) * - 89 * 45
----
-328450

query I rowsort
SELECT 25 * - 4 AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6235
SELECT MAX( ALL + CAST( + 39 AS SIGNED ) ) * - 15
----
-585

skipif mysql # not compatible
query I rowsort label-6235
SELECT MAX ( ALL + CAST ( + 39 AS INTEGER ) ) * - 15
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT DISTINCT 65 DIV + 5
----
13

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT 65 / + 5
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT COUNT( DISTINCT + 13 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6237
SELECT COUNT ( DISTINCT + 13 ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT - COUNT( * ) - + SUM( ALL + 88 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6238
SELECT - COUNT ( * ) - + SUM ( ALL + 88 ) AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6239
SELECT DISTINCT + 0 DIV + 76 DIV - + SUM( DISTINCT + 35 ) + 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT + 0 / + 76 / - + SUM ( DISTINCT + 35 ) + 61 AS col2
----
61

query I rowsort
SELECT ALL - - ( - 64 )
----
-64

query II rowsort
SELECT + - 28 AS col2, ( + + 72 ) AS col0
----
-28
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT DISTINCT 37 - + COUNT( * ) + - COUNT( * ) + - 23
----
12

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT 37 - + COUNT ( * ) + - COUNT ( * ) + - 23
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6243
SELECT - 43 col1, + 19 * - COUNT( * ) col0
----
-43
-19

skipif mysql # not compatible
query II rowsort label-6243
SELECT - 43 col1, + 19 * - COUNT ( * ) col0
----
-43
-19

query I rowsort
SELECT + 22 * - 86 + - NULLIF ( - 88, - 3 ) + ( - 33 + 34 )
----
-1803

query I rowsort
SELECT + 86 - - 71 col1
----
157

query I rowsort
SELECT DISTINCT + 76 * + 24 * + 78
----
142272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6247
SELECT + 34 DIV - + 47 * + + 85 + + 86 DIV COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-6247
SELECT + 34 / - + 47 * + + 85 + + 86 / COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT + COUNT( * ) * 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6248
SELECT + COUNT ( * ) * 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT + COUNT( - COALESCE ( + - 65, 9 + 21 * - NULLIF ( 10, 87 ), + 64 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6249
SELECT + COUNT ( - COALESCE ( + - 65, 9 + 21 * - NULLIF ( 10, 87 ), + 64 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT - + COUNT( + 48 ) * - COUNT( + ( + 46 ) ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6250
SELECT - + COUNT ( + 48 ) * - COUNT ( + ( + 46 ) ) + + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6251
SELECT 69 DIV 77 * - + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6251
SELECT 69 / 77 * - + 54 AS col1
----
0

query I rowsort
SELECT 56 * + 2
----
112

query I rowsort
SELECT 0 + 92 + 54 * - 92 AS col1
----
-4876

query II rowsort
SELECT 35 + + + 87 AS col0, - 85
----
122
-85

query II rowsort
SELECT 42 * 6, + 39 * - 74 + + 98 col0
----
252
-2788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6256
SELECT ALL + CAST( NULL AS SIGNED ) + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + CAST ( NULL AS INTEGER ) + + 15
----
NULL

query I rowsort
SELECT ALL COALESCE ( 52, COALESCE ( - - ( - ( + 25 ) ), - 33 ) ) * - 25 AS col1
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT + COUNT( * ) + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT + COUNT ( * ) + - 87
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT ( - - 62 ) * - 55 * + SUM( ALL - COALESCE ( - 23, 77 + - 12, 66 ) ) AS col0
----
-78430

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT ( - - 62 ) * - 55 * + SUM ( ALL - COALESCE ( - 23, 77 + - 12, 66 ) ) AS col0
----
-78430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6260
SELECT DISTINCT 2 + - + 89 * + - CAST( - 64 AS SIGNED )
----
-5694

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT 2 + - + 89 * + - CAST ( - 64 AS INTEGER )
----
-5694

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT - 31 * COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-6261
SELECT - 31 * COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL - MAX( + 93 ) + + + 50 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL - MAX ( + 93 ) + + + 50 AS col2
----
-43

query I rowsort
SELECT + 60 + - - 73 + 13 AS col2
----
146

query I rowsort
SELECT + 19 - - + 0 * 25
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6265
SELECT DISTINCT COUNT( DISTINCT 64 ) AS col2, - 85
----
1
-85

skipif mysql # not compatible
query II rowsort label-6265
SELECT DISTINCT COUNT ( DISTINCT 64 ) AS col2, - 85
----
1
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6266
SELECT - 95 * 39 DIV NULLIF ( - - NULLIF ( 11, - COUNT( * ) + 0 ), 50 * + 67 )
----
-336

skipif mysql # not compatible
query I rowsort label-6266
SELECT - 95 * 39 / NULLIF ( - - NULLIF ( 11, - COUNT ( * ) + 0 ), 50 * + 67 )
----
-336

query I rowsort
SELECT ALL + 36 * - ( - 82 ) AS col0
----
2952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6268
SELECT ALL - 81 - CAST( + 9 AS SIGNED ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - 81 - CAST ( + 9 AS INTEGER ) AS col2
----
-90

query II rowsort
SELECT - 6 + + 60, + 18 AS col2
----
54
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT - COUNT( 75 ) - - 41
----
40

skipif mysql # not compatible
query I rowsort label-6270
SELECT - COUNT ( 75 ) - - 41
----
40

query I rowsort
SELECT ALL + 9 * + 30 * - ( + 85 ) AS col0
----
-22950

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT - CASE - AVG ( 56 ) WHEN + - 29 THEN COUNT( * ) / COUNT( * ) END + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT - CASE - AVG ( 56 ) WHEN + - 29 THEN COUNT ( * ) / COUNT ( * ) END + 61 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6273
SELECT ALL + 71 * + - ( - COALESCE ( - ( 89 ), - CAST( 69 AS SIGNED ) * 80 + CASE + 90 WHEN - ( + 21 ) THEN - 59 + 5 ELSE NULL END, - MAX( DISTINCT + 74 ) ) ) AS col1
----
-6319

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + 71 * + - ( - COALESCE ( - ( 89 ), - CAST ( 69 AS INTEGER ) * 80 + CASE + 90 WHEN - ( + 21 ) THEN - 59 + 5 ELSE NULL END, - MAX ( DISTINCT + 74 ) ) ) AS col1
----
-6319

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL - CASE WHEN + 15 = ( ( - 51 ) ) THEN NULL ELSE SUM( ALL + 17 ) END
----
-17

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL - CASE WHEN + 15 = ( ( - 51 ) ) THEN NULL ELSE SUM ( ALL + 17 ) END
----
-17

query I rowsort
SELECT - + 27 * - 30 + 11 AS col2
----
821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT - ( + NULLIF ( CAST( NULL AS SIGNED ), - + 94 - MIN( - 62 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT - ( + NULLIF ( CAST ( NULL AS INTEGER ), - + 94 - MIN ( - 62 ) ) ) AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( - 73, ( - 69 ) * 7 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6278
SELECT ALL + NULLIF ( + CAST( - COALESCE ( - 75, 45 * 8 ) AS SIGNED ), + 47 + 72 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + NULLIF ( + CAST ( - COALESCE ( - 75, 45 * 8 ) AS INTEGER ), + 47 + 72 ) AS col1
----
75

query II rowsort
SELECT - - 66 * 24, 89 AS col1
----
1584
89

query I rowsort
SELECT + 97 + - + 39 * - - 11 * - 65 + 68
----
28050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6281
SELECT DISTINCT + COALESCE ( + 18, + NULLIF ( - - 36, - CAST( 67 AS SIGNED ) ), MIN( ALL - 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT + COALESCE ( + 18, + NULLIF ( - - 36, - CAST ( 67 AS INTEGER ) ), MIN ( ALL - 18 ) )
----
18

query I rowsort
SELECT ALL 94 * 67
----
6298

onlyif mysql # aggregate syntax: 
query II rowsort label-6283
SELECT + 64 * - COUNT( * ) AS col2, 94 + + - 95 AS col2
----
-64
-1

skipif mysql # not compatible
query II rowsort label-6283
SELECT + 64 * - COUNT ( * ) AS col2, 94 + + - 95 AS col2
----
-64
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT ALL + 95 * + + CAST( + 99 AS SIGNED ) - COUNT( * ) * 44 + 36
----
9397

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL + 95 * + + CAST ( + 99 AS INTEGER ) - COUNT ( * ) * 44 + 36
----
9397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6285
SELECT DISTINCT + COUNT( * ) * + + 94 - 16 DIV - - 99 + 48 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + COUNT ( * ) * + + 94 - 16 / - - 99 + 48 AS col0
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6286
SELECT - + 40 - + 67 AS col1, + CAST( NULL AS SIGNED )
----
-107
NULL

skipif mysql # not compatible
query II rowsort label-6286
SELECT - + 40 - + 67 AS col1, + CAST ( NULL AS INTEGER )
----
-107
NULL

query II rowsort
SELECT + ( + 27 ), 72 AS col0
----
27
72

query I rowsort
SELECT ALL - 70 * - 17 * + 29 * CASE 4 WHEN - 22 + 20 THEN ( 86 ) - 63 WHEN 29 * - 99 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - - MAX( DISTINCT 18 ) * 11 - + 53 + + 77 AS col2
----
222

skipif mysql # not compatible
query I rowsort label-6289
SELECT - - MAX ( DISTINCT 18 ) * 11 - + 53 + + 77 AS col2
----
222

query I rowsort
SELECT + - 59 * 10 * ( + 28 )
----
-16520

onlyif mysql # aggregate syntax: 
query III rowsort label-6291
SELECT + COUNT( * ), + 80 * - 64 AS col0, + 40 AS col0
----
1
-5120
40

skipif mysql # not compatible
query III rowsort label-6291
SELECT + COUNT ( * ), + 80 * - 64 AS col0, + 40 AS col0
----
1
-5120
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT CASE COUNT( * ) WHEN + 69 * - 36 + 86 + + 14 * + 43 THEN - CAST( NULL AS SIGNED ) WHEN 26 * - COALESCE ( + 47 * + 75, + CAST( + 85 AS SIGNED ) ) + 99 THEN 17 / 27 + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT CASE COUNT ( * ) WHEN + 69 * - 36 + 86 + + 14 * + 43 THEN - CAST ( NULL AS INTEGER ) WHEN 26 * - COALESCE ( + 47 * + 75, + CAST ( + 85 AS INTEGER ) ) + 99 THEN 17 / 27 + 23 END
----
NULL

query I rowsort
SELECT - 32 * + + 20 - 78
----
-718

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL + 24 * + 56 + 7 + - - CASE - 89 WHEN 1 * - ( 91 ) THEN + COUNT( * ) WHEN 96 / 11 THEN 41 ELSE COUNT( DISTINCT 17 ) + - 79 END * CASE 55 * 82 WHEN - 75 * 91 THEN 39 * + ( 13 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL + 24 * + 56 + 7 + - - CASE - 89 WHEN 1 * - ( 91 ) THEN + COUNT ( * ) WHEN 96 / 11 THEN 41 ELSE COUNT ( DISTINCT 17 ) + - 79 END * CASE 55 * 82 WHEN - 75 * 91 THEN 39 * + ( 13 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT COUNT( + 33 )
----
1

skipif mysql # not compatible
query I rowsort label-6295
SELECT COUNT ( + 33 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6296
SELECT ALL CAST( 30 AS SIGNED ) DIV + ( - 5 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL CAST ( 30 AS INTEGER ) / + ( - 5 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT + 19 + + COUNT( * ) * 87
----
106

skipif mysql # not compatible
query I rowsort label-6297
SELECT + 19 + + COUNT ( * ) * 87
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-6298
SELECT + COUNT( * ) - MIN( - 43 ), 0 * COUNT( - 43 ) * CASE COUNT( * ) * 29 WHEN + 70 * ( ( + 57 ) ) + - 16 * + 83 THEN - 61 WHEN 52 / 5 THEN 68 END AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-6298
SELECT + COUNT ( * ) - MIN ( - 43 ), 0 * COUNT ( - 43 ) * CASE COUNT ( * ) * 29 WHEN + 70 * ( ( + 57 ) ) + - 16 * + 83 THEN - 61 WHEN 52 / 5 THEN 68 END AS col0
----
44
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6299
SELECT + 95 + + 1 DIV + 80
----
95

skipif mysql # not compatible
query I rowsort label-6299
SELECT + 95 + + 1 / + 80
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT 49 * + + 26 * + COUNT( * ) - + 48
----
1226

skipif mysql # not compatible
query I rowsort label-6300
SELECT 49 * + + 26 * + COUNT ( * ) - + 48
----
1226

query I rowsort
SELECT + 13 * - 9 * - 47 AS col0
----
5499

query I rowsort
SELECT - 19 * - 96 AS col2
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL 83 - + CASE + 68 WHEN 77 THEN NULL WHEN COUNT( * ) THEN - 20 * + 0 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL 83 - + CASE + 68 WHEN 77 THEN NULL WHEN COUNT ( * ) THEN - 20 * + 0 END col0
----
NULL

query I rowsort
SELECT - ( - 61 ) AS col2
----
61

query I rowsort
SELECT DISTINCT 54 * ( + 92 )
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT + 65 + - COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6306
SELECT + 65 + - COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL NULLIF ( + 43, + COUNT( * ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL NULLIF ( + 43, + COUNT ( * ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + 83 * MAX( ALL - 58 )
----
-4814

skipif mysql # not compatible
query I rowsort label-6308
SELECT + 83 * MAX ( ALL - 58 )
----
-4814

query I rowsort
SELECT DISTINCT 89 * 10 * 36 AS col1
----
32040

query I rowsort
SELECT ALL 47 - + 79 + - 8
----
-40

query II rowsort
SELECT DISTINCT - 53 AS col2, + 20 * 81 + + 20 AS col0
----
-53
1640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6312
SELECT ALL CAST( - - 20 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL CAST ( - - 20 AS INTEGER ) AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6313
SELECT + CAST( + 55 AS SIGNED ) + + - COUNT( * ) + 15 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6313
SELECT + CAST ( + 55 AS INTEGER ) + + - COUNT ( * ) + 15 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6314
SELECT - COALESCE ( - + ( - ( 54 ) ), + + 8 + ( ( + CASE + 75 WHEN - 12 - 65 THEN + 58 DIV + 92 WHEN + 33 + + 84 THEN NULL END ) ) * 0 )
----
-54

skipif mysql # not compatible
query I rowsort label-6314
SELECT - COALESCE ( - + ( - ( 54 ) ), + + 8 + ( ( + CASE + 75 WHEN - 12 - 65 THEN + 58 / + 92 WHEN + 33 + + 84 THEN NULL END ) ) * 0 )
----
-54

query I rowsort
SELECT - + 7 + + ( - 65 ) * 13
----
-852

query I rowsort
SELECT DISTINCT CASE + 4 WHEN 60 THEN - - 6 WHEN - 54 THEN + 7 * - AVG ( DISTINCT + 49 ) ELSE NULL END + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT ALL - 66 * + + NULLIF ( - 58, + - ( - 80 ) ) * COUNT( * ) + - COUNT( 58 ) * - 63
----
3891

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL - 66 * + + NULLIF ( - 58, + - ( - 80 ) ) * COUNT ( * ) + - COUNT ( 58 ) * - 63
----
3891

query I rowsort
SELECT DISTINCT - 33 * 65 * - 24
----
51480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6319
SELECT ALL - ( 2 ) DIV - - 72 * + 15 + ( + ( - MIN( - 36 ) ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL - ( 2 ) / - - 72 * + 15 + ( + ( - MIN ( - 36 ) ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + - NULLIF ( - 75, + 58 * + 85 * + - 72 * - MAX( DISTINCT 51 * 5 ) + 98 - COUNT( * ) ) * 15 + + 73 col1
----
1198

skipif mysql # not compatible
query I rowsort label-6320
SELECT + - NULLIF ( - 75, + 58 * + 85 * + - 72 * - MAX ( DISTINCT 51 * 5 ) + 98 - COUNT ( * ) ) * 15 + + 73 col1
----
1198

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT + + CASE - + COUNT( * ) WHEN 34 THEN + 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT + + CASE - + COUNT ( * ) WHEN 34 THEN + 25 ELSE NULL END
----
NULL

query I rowsort
SELECT - 37 * + - 36 * + CASE AVG ( DISTINCT - - 78 ) WHEN + 98 + 22 THEN NULL WHEN + ( + 77 ) THEN 69 * + 50 END / - 59 + + 92 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( 42, + 77 )
----
42

query I rowsort
SELECT + 11 * + 73 * - NULLIF ( 74, + NULLIF ( + 39, 37 ) ) + + 61
----
-59361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT - + 3 + CAST( - - 65 AS SIGNED ) * - 71 * - 34 * ( + 40 ) - - 41
----
6276438

skipif mysql # not compatible
query I rowsort label-6325
SELECT - + 3 + CAST ( - - 65 AS INTEGER ) * - 71 * - 34 * ( + 40 ) - - 41
----
6276438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6326
SELECT DISTINCT + 87, 6 * + COUNT( * ) - CAST( 84 AS SIGNED ) AS col1
----
87
-78

skipif mysql # not compatible
query II rowsort label-6326
SELECT DISTINCT + 87, 6 * + COUNT ( * ) - CAST ( 84 AS INTEGER ) AS col1
----
87
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6327
SELECT DISTINCT - 13 DIV - 53 + - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - 13 / - 53 + - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT - 66 * - + 58 + 64 + 28
----
3920

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT DISTINCT - 26 DIV 3 * - 2 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT - 26 / 3 * - 2 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL - MIN( + + 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - MIN ( + + 85 )
----
-85

query I rowsort
SELECT ALL + 53 * + + 57 AS col0
----
3021

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ( + MAX( DISTINCT + ( - - 10 ) ) ) + - - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-6332
SELECT ( + MAX ( DISTINCT + ( - - 10 ) ) ) + - - COUNT ( * )
----
11

query II rowsort
SELECT 50 * + 42, - ( + 95 ) + 86 AS col2
----
2100
-9

query II rowsort
SELECT DISTINCT 55 AS col1, 99 * 0
----
55
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT DISTINCT - 36 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT - 36 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 76 * - - 21 col2
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT MAX( 65 ) - + 97
----
-32

skipif mysql # not compatible
query I rowsort label-6337
SELECT MAX ( 65 ) - + 97
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT DISTINCT 0 DIV + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT 0 / + 93 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6339
SELECT COUNT( * ) * - + 74 * ( + - ( SUM( CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT COUNT ( * ) * - + 74 * ( + - ( SUM ( CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT CASE - + COUNT( * ) WHEN + 57 THEN 76 WHEN ( 55 ) THEN + 53 + + 88 WHEN 73 THEN - 51 * + ( COUNT( 95 ) ) WHEN + AVG ( DISTINCT + 13 ) * - 84 THEN 88 END + - 86 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT CASE - + COUNT ( * ) WHEN + 57 THEN 76 WHEN ( 55 ) THEN + 53 + + 88 WHEN 73 THEN - 51 * + ( COUNT ( 95 ) ) WHEN + AVG ( DISTINCT + 13 ) * - 84 THEN 88 END + - 86 * 29
----
NULL

query I rowsort
SELECT - 96 * 24 * - 83
----
191232

query I rowsort
SELECT DISTINCT ( + 70 ) * + NULLIF ( 63, - + 43 * + 89 * 19 ) * 65 AS col2
----
286650

query I rowsort
SELECT ALL - NULLIF ( 93, 83 ) + 12 + 79 + 85 AS col2
----
83

query I rowsort
SELECT 36 + + 92 AS col1
----
128

query I rowsort
SELECT DISTINCT 88 + + - 60
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6346
SELECT ( + NULLIF ( - 12, CAST( NULL AS SIGNED ) ) ) * + + 91 AS col1
----
-1092

skipif mysql # not compatible
query I rowsort label-6346
SELECT ( + NULLIF ( - 12, CAST ( NULL AS INTEGER ) ) ) * + + 91 AS col1
----
-1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6347
SELECT DISTINCT + + COUNT( * ) + 80 + + CASE - COUNT( * ) WHEN COUNT( * ) THEN + + 60 + ( 84 ) WHEN 61 + - MIN( 82 ) THEN NULL ELSE ( - CAST( COUNT( 77 ) AS SIGNED ) ) END * - 97
----
178

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + + COUNT ( * ) + 80 + + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN + + 60 + ( 84 ) WHEN 61 + - MIN ( 82 ) THEN NULL ELSE ( - CAST ( COUNT ( 77 ) AS INTEGER ) ) END * - 97
----
178

query I rowsort
SELECT DISTINCT 11 * 89 - + - 55 AS col1
----
1034

query I rowsort
SELECT - CASE - + CASE WHEN ( ( - - 17 ) IS NOT NULL ) THEN AVG ( ALL 79 ) ELSE NULL END WHEN 49 THEN 39 * 35 ELSE NULL END
----
NULL

query II rowsort
SELECT - 68 AS col1, 1
----
-68
1

query I rowsort
SELECT NULLIF ( + - 88, + 72 ) col1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-6352
SELECT 52 + + 1 AS col2, + COUNT( * ) col1
----
53
1

skipif mysql # not compatible
query II rowsort label-6352
SELECT 52 + + 1 AS col2, + COUNT ( * ) col1
----
53
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6353
SELECT ALL + + 31 + - - ( + - CASE - - NULLIF ( - - CAST( 47 AS SIGNED ), 26 ) WHEN - 83 THEN 39 + NULLIF ( + 34, 38 + 83 ) WHEN 42 THEN + 42 * 41 + 36 ELSE NULL END ) + - CAST( COALESCE ( - NULLIF ( AVG ( ALL + 37 ), COALESCE ( - 31, - 53 * 26 - - COUNT( * ) * 47 ) * + 40 ), - COUNT( * ) * - 96 + 87 ) + - COALESCE ( + 32, 57 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + + 31 + - - ( + - CASE - - NULLIF ( - - CAST ( 47 AS INTEGER ), 26 ) WHEN - 83 THEN 39 + NULLIF ( + 34, 38 + 83 ) WHEN 42 THEN + 42 * 41 + 36 ELSE NULL END ) + - CAST ( COALESCE ( - NULLIF ( AVG ( ALL + 37 ), COALESCE ( - 31, - 53 * 26 - - COUNT ( * ) * 47 ) * + 40 ), - COUNT ( * ) * - 96 + 87 ) + - COALESCE ( + 32, 57 ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT ALL - + CASE - - 8 WHEN + SUM( ALL - 50 ) + 80 * + 38 * + 7 THEN 52 WHEN 92 * + 99 THEN + 51 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL - + CASE - - 8 WHEN + SUM ( ALL - 50 ) + 80 * + 38 * + 7 THEN 52 WHEN 92 * + 99 THEN + 51 END AS col2
----
NULL

query II rowsort
SELECT ALL ( 83 ) - 58 + - 83 col1, 12
----
-58
12

query I rowsort
SELECT DISTINCT - ( + 53 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-6357
SELECT ALL - 12 - - + 37, COUNT( * ) + - + 44 * + 35 AS col0
----
25
-1539

skipif mysql # not compatible
query II rowsort label-6357
SELECT ALL - 12 - - + 37, COUNT ( * ) + - + 44 * + 35 AS col0
----
25
-1539

query I rowsort
SELECT - 24 * - + 19 - 97
----
359

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT 54 * - NULLIF ( + 5, + COUNT( * ) )
----
-270

skipif mysql # not compatible
query I rowsort label-6359
SELECT 54 * - NULLIF ( + 5, + COUNT ( * ) )
----
-270

query II rowsort
SELECT ALL - 21 * - 95 AS col2, - 92 - 60 - 88 * - 23 + + 85 AS col2
----
1995
1957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6361
SELECT 25 + - CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) * + 13 * - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6361
SELECT 25 + - CAST ( NULL AS REAL ) AS col1, COUNT ( * ) * + 13 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6362
SELECT 31 * CASE - ( - - 76 ) WHEN CAST( - ( - 50 ) AS SIGNED ) + - 20 THEN 94 ELSE 85 END DIV + ( 38 * COALESCE ( + COUNT( * ) * 13, + 98 ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6362
SELECT 31 * CASE - ( - - 76 ) WHEN CAST ( - ( - 50 ) AS INTEGER ) + - 20 THEN 94 ELSE 85 END / + ( 38 * COALESCE ( + COUNT ( * ) * 13, + 98 ) ) AS col0
----
5

query II rowsort
SELECT ALL + 49 - + 89 AS col2, 88 AS col2
----
-40
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6364
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN + 53 / + - COUNT( * ) THEN - 42 * - - 35 ELSE 80 + - 87 END AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN + 53 / + - COUNT ( * ) THEN - 42 * - - 35 ELSE 80 + - 87 END AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT ALL - 77 DIV - 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - 77 / - 46 AS col1
----
1

query II rowsort
SELECT ALL 54 * - - 16 AS col0, 86 - 89 AS col1
----
864
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-6367
SELECT 76 DIV - + 99, - 67 AS col1
----
0
-67

skipif mysql # not compatible
query II rowsort label-6367
SELECT 76 / - + 99, - 67 AS col1
----
0
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6368
SELECT 86 * - 1 + + - COUNT( * ) + CAST( - 13 AS SIGNED ) AS col0, 66 AS col1
----
-100
66

skipif mysql # not compatible
query II rowsort label-6368
SELECT 86 * - 1 + + - COUNT ( * ) + CAST ( - 13 AS INTEGER ) AS col0, 66 AS col1
----
-100
66

query II rowsort
SELECT 59 + 39 AS col1, - 70 AS col2
----
98
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6370
SELECT 69 + + 19 * + + CASE + - ( + - 35 ) WHEN - 20 + CAST( + 66 AS SIGNED ) THEN + 8 / - 85 + 80 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT 69 + + 19 * + + CASE + - ( + - 35 ) WHEN - 20 + CAST ( + 66 AS INTEGER ) THEN + 8 / - 85 + 80 * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 59 * + CASE - - 39 WHEN 13 THEN - - 68 WHEN + + 47 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 72 * - + 77 - + 99 AS col2
----
-5643

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT DISTINCT - 32 + - - MAX( - - 65 )
----
33

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT - 32 + - - MAX ( - - 65 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL COUNT( * ) + - + 44 - COALESCE ( + 86, - 31 * - ( + - 33 ) ) * 53 * 6 AS col0
----
-27391

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL COUNT ( * ) + - + 44 - COALESCE ( + 86, - 31 * - ( + - 33 ) ) * 53 * 6 AS col0
----
-27391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6375
SELECT ALL + COUNT( * ) + + COUNT( * ), + 79 + + COUNT( * ) * - - CAST( + + 80 AS SIGNED ) AS col1
----
2
159

skipif mysql # not compatible
query II rowsort label-6375
SELECT ALL + COUNT ( * ) + + COUNT ( * ), + 79 + + COUNT ( * ) * - - CAST ( + + 80 AS INTEGER ) AS col1
----
2
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT + 21 + MIN( ALL 58 )
----
79

skipif mysql # not compatible
query I rowsort label-6376
SELECT + 21 + MIN ( ALL 58 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT + CAST( + + 29 AS SIGNED ) + + 30 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6377
SELECT + CAST ( + + 29 AS INTEGER ) + + 30 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT 31 + - MIN( DISTINCT + 5 ) + 40 - + CAST( - + 99 AS SIGNED ) * 90 AS col0
----
8976

skipif mysql # not compatible
query I rowsort label-6378
SELECT 31 + - MIN ( DISTINCT + 5 ) + 40 - + CAST ( - + 99 AS INTEGER ) * 90 AS col0
----
8976

query II rowsort
SELECT DISTINCT + 16 + + 84 AS col2, + 41 col2
----
100
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT - SUM( DISTINCT + - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-6380
SELECT - SUM ( DISTINCT + - 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT - 70 + + COUNT( * ) + - 60 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-6381
SELECT - 70 + + COUNT ( * ) + - 60 AS col2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT ALL - MAX( DISTINCT - + 38 ) * + 24 + 49 col1
----
961

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL - MAX ( DISTINCT - + 38 ) * + 24 + 49 col1
----
961

query I rowsort
SELECT DISTINCT + ( - ( 7 ) ) - + - 65 + - 46 + + 97 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT + 32 + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6384
SELECT + 32 + COUNT ( * ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT ALL 2 - - 38 DIV - 42
----
2

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL 2 - - 38 / - 42
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6386
SELECT ALL + 22 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + 22 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT DISTINCT + 64 * - + 43 * - 43 * + 78 - COUNT( * ) * - 9
----
9230217

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT + 64 * - + 43 * - 43 * + 78 - COUNT ( * ) * - 9
----
9230217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6388
SELECT ALL 3 * CASE + - NULLIF ( + - 98, + + CASE 1 WHEN + - 12 THEN NULL WHEN - COUNT( * ) THEN + 16 + 96 / + COUNT( ALL - NULLIF ( + 6, + 93 ) * - 99 ) END / + NULLIF ( - 93 + - 72, + 18 ) ) WHEN + 98 THEN 83 WHEN + 82 + 20 THEN - 64 END - CAST( 82 AS SIGNED ) AS col0
----
167

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL 3 * CASE + - NULLIF ( + - 98, + + CASE 1 WHEN + - 12 THEN NULL WHEN - COUNT ( * ) THEN + 16 + 96 / + COUNT ( ALL - NULLIF ( + 6, + 93 ) * - 99 ) END / + NULLIF ( - 93 + - 72, + 18 ) ) WHEN + 98 THEN 83 WHEN + 82 + 20 THEN - 64 END - CAST ( 82 AS INTEGER ) AS col0
----
167

query I rowsort
SELECT ALL 38 * - 87
----
-3306

query I rowsort
SELECT + 44 + + 11 AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT - 58 * - 63 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT - 58 * - 63 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( - 40, - - 55 ) - 1 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL + MAX( DISTINCT + + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL + MAX ( DISTINCT + + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT + NULLIF ( - 74, - 88 + + 11 * + - 33 * CASE COUNT( * ) WHEN - - COUNT( DISTINCT + 21 ) THEN 72 + COUNT( * ) WHEN 51 THEN - 79 END + - 6 )
----
-74

skipif mysql # not compatible
query I rowsort label-6394
SELECT + NULLIF ( - 74, - 88 + + 11 * + - 33 * CASE COUNT ( * ) WHEN - - COUNT ( DISTINCT + 21 ) THEN 72 + COUNT ( * ) WHEN 51 THEN - 79 END + - 6 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT 53 * + 31 + - + COUNT( + 72 ) AS col1
----
1642

skipif mysql # not compatible
query I rowsort label-6395
SELECT 53 * + 31 + - + COUNT ( + 72 ) AS col1
----
1642

query I rowsort
SELECT + 14 * - 64 AS col1
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT CASE + 34 WHEN COUNT( * ) THEN - 62 WHEN - 76 THEN - 83 ELSE - 66 END
----
-66

skipif mysql # not compatible
query I rowsort label-6397
SELECT CASE + 34 WHEN COUNT ( * ) THEN - 62 WHEN - 76 THEN - 83 ELSE - 66 END
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6398
SELECT + ( + 1 ) DIV COALESCE ( ( 31 ), 7 ) + 65 + - 50 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6398
SELECT + ( + 1 ) / COALESCE ( ( 31 ), 7 ) + 65 + - 50 AS col0
----
15

query I rowsort
SELECT ALL - 90 * 4
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT 89 * - COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT 89 * - COUNT ( * ) AS col1
----
-89

query II rowsort
SELECT + 1 AS col1, 7 * + ( 57 ) col1
----
1
399

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6402
SELECT - COUNT( * ) * + 28 DIV + 24, - 88 AS col0
----
-1
-88

skipif mysql # not compatible
query II rowsort label-6402
SELECT - COUNT ( * ) * + 28 / + 24, - 88 AS col0
----
-1
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL 38 * MAX( ALL - + 37 ) + 10
----
-1396

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL 38 * MAX ( ALL - + 37 ) + 10
----
-1396

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT MIN( ALL - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6404
SELECT MIN ( ALL - 27 ) AS col2
----
-27

query I rowsort
SELECT + ( - - ( 41 ) ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT - 12 + + 68 + 5 * 61 - 77 * + COUNT( * ) * - 67
----
5520

skipif mysql # not compatible
query I rowsort label-6406
SELECT - 12 + + 68 + 5 * 61 - 77 * + COUNT ( * ) * - 67
----
5520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6407
SELECT - 88 + COUNT( * ) + + 62 / - + 94 + + 7 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6407
SELECT - 88 + COUNT ( * ) + + 62 / - + 94 + + 7 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6408
SELECT + 67 AS col0, - 27 + - COUNT( * ) / + 22 + + CAST( NULL AS SIGNED )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-6408
SELECT + 67 AS col0, - 27 + - COUNT ( * ) / + 22 + + CAST ( NULL AS INTEGER )
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6409
SELECT DISTINCT 25 * + 37 + - 57 - COALESCE ( - COUNT( DISTINCT + 75 ), 50 * + COUNT( CASE + 1 WHEN 64 THEN 82 - 59 END ), ( COUNT( * ) ) * 9 - 56 ) + ( - 5 ) * CAST( 78 AS SIGNED ) DIV + MAX( 88 DIV 20 + 71 )
----
864

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT 25 * + 37 + - 57 - COALESCE ( - COUNT ( DISTINCT + 75 ), 50 * + COUNT ( CASE + 1 WHEN 64 THEN 82 - 59 END ), ( COUNT ( * ) ) * 9 - 56 ) + ( - 5 ) * CAST ( 78 AS INTEGER ) / + MAX ( 88 / 20 + 71 )
----
864

query I rowsort
SELECT DISTINCT ( + 14 ) + - 85 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6411
SELECT - MAX( DISTINCT - CASE + 75 WHEN - + 15 * - + 99 - + 16 THEN 76 WHEN + COALESCE ( + CAST( - 18 AS SIGNED ), + 51, ( + 33 ) ) THEN 57 * 88 + 60 ELSE 63 END ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT - MAX ( DISTINCT - CASE + 75 WHEN - + 15 * - + 99 - + 16 THEN 76 WHEN + COALESCE ( + CAST ( - 18 AS INTEGER ), + 51, ( + 33 ) ) THEN 57 * 88 + 60 ELSE 63 END ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 49 * - 72 * - - 97
----
-342216

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT ALL + - ( COUNT( * ) ) + 53
----
52

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL + - ( COUNT ( * ) ) + 53
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT - + 67 * + 91 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT - + 67 * + 91 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6415
SELECT - CAST( NULL AS DECIMAL ) AS col2, 57 + - + CAST( 63 AS SIGNED ) + - CASE + + 54 WHEN MIN( + 71 ) THEN - 77 WHEN + 59 THEN - 23 + ( 99 ) * ( - 66 ) END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6415
SELECT - CAST ( NULL AS REAL ) AS col2, 57 + - + CAST ( 63 AS INTEGER ) + - CASE + + 54 WHEN MIN ( + 71 ) THEN - 77 WHEN + 59 THEN - 23 + ( 99 ) * ( - 66 ) END AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6416
SELECT - - 98 - MAX( DISTINCT + + 90 ) + - 90 * CASE 19 WHEN - COUNT( * ) * + 37 + + 81 THEN NULL ELSE 15 END DIV - 67
----
28

skipif mysql # not compatible
query I rowsort label-6416
SELECT - - 98 - MAX ( DISTINCT + + 90 ) + - 90 * CASE 19 WHEN - COUNT ( * ) * + 37 + + 81 THEN NULL ELSE 15 END / - 67
----
28

query I rowsort
SELECT + - 92 * + 97 AS col2
----
-8924

query I rowsort
SELECT ALL - 87 * - - 80 AS col0
----
-6960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6419
SELECT - 53, + 57 - + 49 + - 72 * - + COALESCE ( - 48, - 50, - + NULLIF ( + 82, + 43 ) * + 15 - - CAST( NULL AS SIGNED ) * - 19 ) * COUNT( * ) AS col0
----
-53
-3448

skipif mysql # not compatible
query II rowsort label-6419
SELECT - 53, + 57 - + 49 + - 72 * - + COALESCE ( - 48, - 50, - + NULLIF ( + 82, + 43 ) * + 15 - - CAST ( NULL AS INTEGER ) * - 19 ) * COUNT ( * ) AS col0
----
-53
-3448

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT - - ( + ( + SUM( 71 ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-6420
SELECT - - ( + ( + SUM ( 71 ) ) )
----
71

query II rowsort
SELECT - + 91 AS col1, 32 AS col2
----
-91
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT + 64 + + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6422
SELECT + 64 + + COUNT ( * ) AS col2
----
65

query II rowsort
SELECT ALL + 79, + 31 AS col0
----
79
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6424
SELECT - 3 + - 69 * + ( + - 24 ) * + + CAST( NULL AS SIGNED ) + + 18 - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT - 3 + - 69 * + ( + - 24 ) * + + CAST ( NULL AS INTEGER ) + + 18 - 58
----
NULL

query I rowsort
SELECT ALL + + 84 * + - 81
----
-6804

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6426
SELECT - ( + CAST( 63 AS SIGNED ) ) + + + 14 col1, - 74 * 57
----
-49
-4218

skipif mysql # not compatible
query II rowsort label-6426
SELECT - ( + CAST ( 63 AS INTEGER ) ) + + + 14 col1, - 74 * 57
----
-49
-4218

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - 21 - + 18 - - 26 + + + 21 * + + 22 * + - 44 + - COUNT( * ) * - 95
----
-20246

skipif mysql # not compatible
query I rowsort label-6427
SELECT - 21 - + 18 - - 26 + + + 21 * + + 22 * + - 44 + - COUNT ( * ) * - 95
----
-20246

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT DISTINCT + MAX( - 30 ) * - COUNT( DISTINCT 25 )
----
30

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT + MAX ( - 30 ) * - COUNT ( DISTINCT 25 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT + + 66 * + COUNT( * ) + - COUNT( - 65 ) col1
----
65

skipif mysql # not compatible
query I rowsort label-6429
SELECT + + 66 * + COUNT ( * ) + - COUNT ( - 65 ) col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT + - COALESCE ( + 93, - - 89, + 34 + - ( + - COUNT( * ) ) + + 25 ) + + CASE + 28 WHEN + 92 THEN 87 + + 50 * 94 ELSE 17 + - 71 END
----
-147

skipif mysql # not compatible
query I rowsort label-6430
SELECT + - COALESCE ( + 93, - - 89, + 34 + - ( + - COUNT ( * ) ) + + 25 ) + + CASE + 28 WHEN + 92 THEN 87 + + 50 * 94 ELSE 17 + - 71 END
----
-147

query I rowsort
SELECT - NULLIF ( 14, 87 ) AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT + 26 + + + 89 - + + 59 * 91 DIV 81
----
49

skipif mysql # not compatible
query I rowsort label-6432
SELECT + 26 + + + 89 - + + 59 * 91 / 81
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6433
SELECT ALL CAST( - 19 AS SIGNED ) DIV - - SUM( 32 ) * - - 5 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL CAST ( - 19 AS INTEGER ) / - - SUM ( 32 ) * - - 5 AS col0
----
0

query I rowsort
SELECT - 97 * + 40 AS col0
----
-3880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6435
SELECT + NULLIF ( + + 71, 95 ) + + 99 + ( + CAST( - 38 AS SIGNED ) ) AS col0
----
132

skipif mysql # not compatible
query I rowsort label-6435
SELECT + NULLIF ( + + 71, 95 ) + + 99 + ( + CAST ( - 38 AS INTEGER ) ) AS col0
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT DISTINCT + COUNT( * ) DIV + 1
----
1

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT + COUNT ( * ) / + 1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6437
SELECT ALL + COUNT( + CAST( - + 45 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL + COUNT ( + CAST ( - + 45 AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT + CASE 31 WHEN + COUNT( * ) THEN NULL WHEN COALESCE ( + - MIN( ( - + 56 ) ), - - 70 * + - 88, 21 ) THEN NULL ELSE COUNT( * ) END * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-6438
SELECT + CASE 31 WHEN + COUNT ( * ) THEN NULL WHEN COALESCE ( + - MIN ( ( - + 56 ) ), - - 70 * + - 88, 21 ) THEN NULL ELSE COUNT ( * ) END * - 72
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT DISTINCT ( - - 47 ) DIV 41 + + 66 + + 2 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT ( - - 47 ) / 41 + + 66 + + 2 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT ALL 65 DIV + 31 + 92
----
94

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL 65 / + 31 + 92
----
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6441
SELECT + CAST( 83 AS SIGNED ), 29 DIV 37 AS col1
----
83
0

skipif mysql # not compatible
query II rowsort label-6441
SELECT + CAST ( 83 AS INTEGER ), 29 / 37 AS col1
----
83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT + COUNT( * ) + + ( + - 59 ) * 51 * 72 AS col1
----
-216647

skipif mysql # not compatible
query I rowsort label-6442
SELECT + COUNT ( * ) + + ( + - 59 ) * 51 * 72 AS col1
----
-216647

query I rowsort
SELECT ( - ( 87 ) ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6444
SELECT ( - 23 ) * + COUNT( * ) * + 8 + - CAST( NULL AS SIGNED ) + COUNT( * ) + + 60 / + + 93 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT ( - 23 ) * + COUNT ( * ) * + 8 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 60 / + + 93 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ( SUM( - - 60 ) )
----
60

skipif mysql # not compatible
query I rowsort label-6445
SELECT ( SUM ( - - 60 ) )
----
60

query I rowsort
SELECT DISTINCT 52 * 3 + 51
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6447
SELECT + 53 - 79 + - 58 + - CAST( NULL AS SIGNED ) * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT + 53 - 79 + - 58 + - CAST ( NULL AS INTEGER ) * 70
----
NULL

query I rowsort
SELECT DISTINCT 99 * - 68 + - 17
----
-6749

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT COUNT( - 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6449
SELECT COUNT ( - 93 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL + 46 * + - COALESCE ( 18, CAST( NULL AS SIGNED ), - MAX( ALL + 23 ) ) * - - 72 + - + ( COUNT( * ) ) col0
----
-59617

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL + 46 * + - COALESCE ( 18, CAST ( NULL AS INTEGER ), - MAX ( ALL + 23 ) ) * - - 72 + - + ( COUNT ( * ) ) col0
----
-59617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6451
SELECT 2 * - CASE + 64 WHEN + 0 THEN NULL WHEN CAST( NULL AS SIGNED ) * + 66 / 12 * + 61 THEN ( ( - 31 ) ) + 43 WHEN - COUNT( * ) + ( + 44 ) THEN NULL WHEN - 0 * CASE - 87 WHEN - 1 THEN + 44 * + 3 - + 92 END THEN NULL ELSE NULL END + CAST( + 77 AS SIGNED ) + + 49 * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT 2 * - CASE + 64 WHEN + 0 THEN NULL WHEN CAST ( NULL AS INTEGER ) * + 66 / 12 * + 61 THEN ( ( - 31 ) ) + 43 WHEN - COUNT ( * ) + ( + 44 ) THEN NULL WHEN - 0 * CASE - 87 WHEN - 1 THEN + 44 * + 3 - + 92 END THEN NULL ELSE NULL END + CAST ( + 77 AS INTEGER ) + + 49 * 60 AS col0
----
NULL

query I rowsort
SELECT + + COALESCE ( + 30, + 85 ) + - NULLIF ( - 98, - - 35 )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT - 45 * + COUNT( * ) - 22 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-6453
SELECT - 45 * + COUNT ( * ) - 22 AS col0
----
-67

query I rowsort
SELECT ALL + + 61 - + + 40
----
21

query I rowsort
SELECT ALL - NULLIF ( 61, 29 )
----
-61

query I rowsort
SELECT - + ( + + 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6457
SELECT ALL - COUNT( * ) DIV - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL - COUNT ( * ) / - + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT COUNT( * ) * MIN( ALL - 81 ) * + 65 + + CASE COALESCE ( 91, - 47 + 80 * 97 ) WHEN 66 / - 42 THEN 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT COUNT ( * ) * MIN ( ALL - 81 ) * + 65 + + CASE COALESCE ( 91, - 47 + 80 * 97 ) WHEN 66 / - 42 THEN 17 ELSE NULL END
----
NULL

query I rowsort
SELECT - 67 + + - 56 AS col0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6460
SELECT - CAST( - 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-6460
SELECT - CAST ( - 91 AS INTEGER )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT + ( - COUNT( * ) ) * - 51 * + + 67 * - + ( + + 33 )
----
-112761

skipif mysql # not compatible
query I rowsort label-6461
SELECT + ( - COUNT ( * ) ) * - 51 * + + 67 * - + ( + + 33 )
----
-112761

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6462
SELECT - 81 + + CAST( NULL AS SIGNED ) AS col2, + 16 * - + 23 AS col1
----
NULL
-368

skipif mysql # not compatible
query II rowsort label-6462
SELECT - 81 + + CAST ( NULL AS INTEGER ) AS col2, + 16 * - + 23 AS col1
----
NULL
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT 9 + + + COALESCE ( - COUNT( * ), 92 + + + 20 )
----
8

skipif mysql # not compatible
query I rowsort label-6463
SELECT 9 + + + COALESCE ( - COUNT ( * ), 92 + + + 20 )
----
8

query I rowsort
SELECT 44 * + + COALESCE ( 14, - 25 + + 62, - 52 ) AS col2
----
616

query I rowsort
SELECT ALL + 90 * + 27 col2
----
2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( + 75 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( + 75 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 8 + + + COALESCE ( - ( 75 ), - - 20 - + 59, 45 ) AS col1
----
-67

query I rowsort
SELECT DISTINCT - 45 + + 35 AS col2
----
-10

query I rowsort
SELECT 85 - - 3
----
88

query I rowsort
SELECT + 11 * + + 71 * - 98 + - + 76
----
-76614

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT 36 + - COUNT( * ) * + 91 + - 63 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT 36 + - COUNT ( * ) * + 91 + - 63 AS col1
----
-118

query I rowsort
SELECT ALL - ( 45 )
----
-45

query I rowsort
SELECT DISTINCT - 46 + - - 2 AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6474
SELECT 65 * - + CAST( + + 89 AS SIGNED ) + ( - - 89 ) - - - 69, + 81 AS col2
----
-5765
81

skipif mysql # not compatible
query II rowsort label-6474
SELECT 65 * - + CAST ( + + 89 AS INTEGER ) + ( - - 89 ) - - - 69, + 81 AS col2
----
-5765
81

query I rowsort
SELECT ALL 35 - + 99 AS col1
----
-64

query I rowsort
SELECT DISTINCT - 53 * + 54 AS col1
----
-2862

query I rowsort
SELECT 6 * 13
----
78

query I rowsort
SELECT 36 + + - 53 AS col1
----
-17

query I rowsort
SELECT 95 + ( - 49 ) + 87
----
133

query II rowsort
SELECT DISTINCT - 54 AS col2, + 6
----
-54
6

query I rowsort
SELECT DISTINCT - + ( + - 25 )
----
25

query I rowsort
SELECT - 99 + - 39 AS col0
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT 44 DIV - 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6483
SELECT 44 / - 39 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6484
SELECT - 65 * 85 DIV + ( - - 54 )
----
-102

skipif mysql # not compatible
query I rowsort label-6484
SELECT - 65 * 85 / + ( - - 54 )
----
-102

query II rowsort
SELECT - + 77 AS col0, + 59 * 65
----
-77
3835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6486
SELECT COUNT( * ) DIV + + 81
----
0

skipif mysql # not compatible
query I rowsort label-6486
SELECT COUNT ( * ) / + + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL + MAX( DISTINCT + - 31 ) * - - 95 * - 82 AS col2
----
241490

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL + MAX ( DISTINCT + - 31 ) * - - 95 * - 82 AS col2
----
241490

query I rowsort
SELECT DISTINCT 14 + - + 9 + + 19 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL CAST( - 37 AS SIGNED ) + 64 * - + 69
----
-4453

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL CAST ( - 37 AS INTEGER ) + 64 * - + 69
----
-4453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6490
SELECT ALL - 31 DIV + + SUM( DISTINCT - + 34 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL - 31 / + + SUM ( DISTINCT - + 34 ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT 69 DIV 32 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6491
SELECT 69 / 32 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6492
SELECT ALL - 59 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL - 59 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 4 + + 81
----
85

query II rowsort
SELECT 89 AS col2, 65 * - 58 AS col1
----
89
-3770

query II rowsort
SELECT - 84 AS col0, 60 AS col0
----
-84
60

query I rowsort
SELECT ALL - 32 * + COALESCE ( - - 97, - + 77 + + 63 * 26 ) AS col0
----
-3104

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT 59 DIV + 38 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6497
SELECT 59 / + 38 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6498
SELECT + 95 AS col1, - CAST( + 95 AS SIGNED ) + COUNT( * ) AS col1
----
95
-94

skipif mysql # not compatible
query II rowsort label-6498
SELECT + 95 AS col1, - CAST ( + 95 AS INTEGER ) + COUNT ( * ) AS col1
----
95
-94

query I rowsort
SELECT COALESCE ( - 3, - 52 ) * - 47 AS col0
----
141

query I rowsort
SELECT DISTINCT - NULLIF ( - 58, - - 79 * + + 19 / - 7 ) col2
----
58

query II rowsort
SELECT ALL - 14 AS col1, - 3
----
-14
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6502
SELECT + 52 AS col2, MAX( ALL + + 20 ) AS col1
----
52
20

skipif mysql # not compatible
query II rowsort label-6502
SELECT + 52 AS col2, MAX ( ALL + + 20 ) AS col1
----
52
20

query I rowsort
SELECT 94 * + 94 * - 53
----
-468308

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL COUNT( * ) * + 50 - 31 + 84
----
103

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL COUNT ( * ) * + 50 - 31 + 84
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6505
SELECT ALL - 68, 58 + 98 - - CAST( NULL AS SIGNED ) * 48 AS col1
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-6505
SELECT ALL - 68, 58 + 98 - - CAST ( NULL AS INTEGER ) * 48 AS col1
----
-68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL COUNT( * ) * + - 42 - + - 14
----
-28

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL COUNT ( * ) * + - 42 - + - 14
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-6507
SELECT COUNT( * ) AS col0, + 55
----
1
55

skipif mysql # not compatible
query II rowsort label-6507
SELECT COUNT ( * ) AS col0, + 55
----
1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT ALL - MIN( + - 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL - MIN ( + - 3 ) AS col2
----
3

query I rowsort
SELECT ALL - - ( - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT COUNT( * ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6510
SELECT COUNT ( * ) + + + COUNT ( * )
----
2

query I rowsort
SELECT ALL + + NULLIF ( - 73, 20 )
----
-73

query I rowsort
SELECT - 74 * + 36 - + 58 AS col1
----
-2722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6513
SELECT DISTINCT + - 39 AS col0, - SUM( + 94 ) + - 32 + + CASE - 44 WHEN + NULLIF ( - 63, COALESCE ( - + 66, COUNT( * ), 42 + - NULLIF ( + CAST( 39 AS SIGNED ), 20 ) ) ) + 74 THEN NULL WHEN 98 / 52 THEN - 59 * 17 END + COUNT( * ) * - 60 AS col0
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-6513
SELECT DISTINCT + - 39 AS col0, - SUM ( + 94 ) + - 32 + + CASE - 44 WHEN + NULLIF ( - 63, COALESCE ( - + 66, COUNT ( * ), 42 + - NULLIF ( + CAST ( 39 AS INTEGER ), 20 ) ) ) + 74 THEN NULL WHEN 98 / 52 THEN - 59 * 17 END + COUNT ( * ) * - 60 AS col0
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL - - 78 * 90 + + - COUNT( * ) AS col1
----
7019

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL - - 78 * 90 + + - COUNT ( * ) AS col1
----
7019

onlyif mysql # DIV for integer division: 
query II rowsort label-6515
SELECT ALL + 79 col0, 10 DIV 20 - + + ( - - 27 )
----
79
-27

skipif mysql # not compatible
query II rowsort label-6515
SELECT ALL + 79 col0, 10 / 20 - + + ( - - 27 )
----
79
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT DISTINCT - ( + 11 ) * - 61 * + 6 + - COUNT( * ) - 72 + - - 23 + + 45
----
4021

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT - ( + 11 ) * - 61 * + 6 + - COUNT ( * ) - 72 + - - 23 + + 45
----
4021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6517
SELECT + MIN( + - 18 ) * - 64 + - + COUNT( * ) + - - 33 + 48 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT + MIN ( + - 18 ) * - 64 + - + COUNT ( * ) + - - 33 + 48 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 54 + 70, 93 * + 42 AS col2
----
124
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT + 98 * - + 23 - + - COUNT( * ) AS col1
----
-2253

skipif mysql # not compatible
query I rowsort label-6519
SELECT + 98 * - + 23 - + - COUNT ( * ) AS col1
----
-2253

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT + + SUM( 18 ) * 87 + - - 89 * - + 99 AS col1
----
-7245

skipif mysql # not compatible
query I rowsort label-6520
SELECT + + SUM ( 18 ) * 87 + - - 89 * - + 99 AS col1
----
-7245

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT - 81 + COUNT( * ) * + 34 col0
----
-47

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT - 81 + COUNT ( * ) * + 34 col0
----
-47

query I rowsort
SELECT - - ( 57 ) AS col0
----
57

query I rowsort
SELECT ALL 29 + + 27 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL 73 + MAX( ALL 51 ) col0
----
124

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL 73 + MAX ( ALL 51 ) col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL + 90 + 44 + ( - COUNT( - + 72 ) ) * + NULLIF ( + + 80, 83 )
----
54

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL + 90 + 44 + ( - COUNT ( - + 72 ) ) * + NULLIF ( + + 80, 83 )
----
54

query I rowsort
SELECT ALL 26 + NULLIF ( + 6, 92 )
----
32

query I rowsort
SELECT + 31 + + 40 AS col0
----
71

query I rowsort
SELECT + 37 * + + CASE - - AVG ( ALL + 54 ) WHEN + 27 THEN 31 + - 61 WHEN - 19 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT + 84 + 38 + - - ( + + 95 ) + - CASE - 5 WHEN - CASE + CAST( - - 44 AS SIGNED ) WHEN + 94 THEN + 82 * - 41 + - 10 WHEN - 45 * + COALESCE ( 35 / - ( - 35 ), - ( - 43 ) ) THEN NULL END * COUNT( * ) - - 83 THEN 92 ELSE 90 - 56 END / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT + 84 + 38 + - - ( + + 95 ) + - CASE - 5 WHEN - CASE + CAST ( - - 44 AS INTEGER ) WHEN + 94 THEN + 82 * - 41 + - 10 WHEN - 45 * + COALESCE ( 35 / - ( - 35 ), - ( - 43 ) ) THEN NULL END * COUNT ( * ) - - 83 THEN 92 ELSE 90 - 56 END / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL - COUNT( * ) + - 52 * + 33 + + 33 AS col0
----
-1684

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL - COUNT ( * ) + - 52 * + 33 + + 33 AS col0
----
-1684

onlyif mysql # aggregate syntax: 
query II rowsort label-6531
SELECT + COUNT( * ) + + 47, + 82 AS col1
----
48
82

skipif mysql # not compatible
query II rowsort label-6531
SELECT + COUNT ( * ) + + 47, + 82 AS col1
----
48
82

query I rowsort
SELECT DISTINCT 25 - 65 + - + ( 1 )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-6533
SELECT + COUNT( * ) * + 43 AS col0, ( - + 74 )
----
43
-74

skipif mysql # not compatible
query II rowsort label-6533
SELECT + COUNT ( * ) * + 43 AS col0, ( - + 74 )
----
43
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6534
SELECT ALL - COUNT( * ) DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL - COUNT ( * ) / 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT ALL 60 - - 4 + + ( + - COUNT( * ) ) + - - CASE + 84 WHEN - + 33 + + + 39 - - 26 * 73 THEN - 56 END * - + 37 - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL 60 - - 4 + + ( + - COUNT ( * ) ) + - - CASE + 84 WHEN - + 33 + + + 39 - - 26 * 73 THEN - 56 END * - + 37 - + 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT 1 DIV 49 + - 84 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6536
SELECT 1 / 49 + - 84 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT + COALESCE ( + ( 84 ), - - 11 * + - 79, + + CAST( NULL AS SIGNED ) * - 73 + - 32 + - + 11 * + - 16 + - 0 ) * ( 38 ) AS col2
----
3192

skipif mysql # not compatible
query I rowsort label-6537
SELECT + COALESCE ( + ( 84 ), - - 11 * + - 79, + + CAST ( NULL AS INTEGER ) * - 73 + - 32 + - + 11 * + - 16 + - 0 ) * ( 38 ) AS col2
----
3192

onlyif mysql # DIV for integer division: 
query I rowsort label-6538
SELECT ALL + 1 DIV 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + 1 / 20 AS col0
----
0

query II rowsort
SELECT ( + 15 ) AS col1, 30 + 48 AS col0
----
15
78

query I rowsort
SELECT - 24 + - 73 + + + 45 * 76 * + - 74 + + 51
----
-253126

query I rowsort
SELECT ALL - 65 * - 37 - - 53 + - - 96
----
2554

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT - 18 * - + 48 + + - ( + + COUNT( * ) )
----
863

skipif mysql # not compatible
query I rowsort label-6542
SELECT - 18 * - + 48 + + - ( + + COUNT ( * ) )
----
863

query I rowsort
SELECT DISTINCT - 70 * + 65
----
-4550

query I rowsort
SELECT - 45 + 81 AS col1
----
36

query II rowsort
SELECT DISTINCT - 26 * - 89 * - + 87, 81 col1
----
-201318
81

query I rowsort
SELECT DISTINCT - - 75 * + ( + 50 ) AS col1
----
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT + 71 * 64 * - + 60 + + COUNT( * )
----
-272639

skipif mysql # not compatible
query I rowsort label-6547
SELECT + 71 * 64 * - + 60 + + COUNT ( * )
----
-272639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6548
SELECT DISTINCT - ( - + 37 ) * - COUNT( * ) * - - 41 DIV - COALESCE ( + + COUNT( * ), 84 ) + 23 + + MIN( + - 22 )
----
1518

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - ( - + 37 ) * - COUNT ( * ) * - - 41 / - COALESCE ( + + COUNT ( * ), 84 ) + 23 + + MIN ( + - 22 )
----
1518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6549
SELECT ALL COALESCE ( + 11, 35 DIV - ( + + 36 ), 70 ) * + CASE - ( - 44 ) WHEN - - 11 * 86 + - 52 THEN 91 DIV 8 WHEN 82 * - COUNT( * ) + 3 THEN CASE 40 WHEN + 20 * 41 THEN NULL ELSE - 16 END ELSE + 17 + 20 END + 3 * + 73
----
626

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL COALESCE ( + 11, 35 / - ( + + 36 ), 70 ) * + CASE - ( - 44 ) WHEN - - 11 * 86 + - 52 THEN 91 / 8 WHEN 82 * - COUNT ( * ) + 3 THEN CASE 40 WHEN + 20 * 41 THEN NULL ELSE - 16 END ELSE + 17 + 20 END + 3 * + 73
----
626

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT - + MIN( + - 94 ) + + 9
----
103

skipif mysql # not compatible
query I rowsort label-6550
SELECT - + MIN ( + - 94 ) + + 9
----
103

query I rowsort
SELECT DISTINCT + + 92 * 49 * - 99 + + 82
----
-446210

query II rowsort
SELECT DISTINCT + 33 * 54, + 22 + - - 40 AS col2
----
1782
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT - COUNT( * ) * - 41 * + + 0
----
0

skipif mysql # not compatible
query I rowsort label-6553
SELECT - COUNT ( * ) * - 41 * + + 0
----
0

query I rowsort
SELECT ALL + 31 * + + 43 AS col2
----
1333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT - COUNT( * ) / + - 53 * - 86 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT - COUNT ( * ) / + - 53 * - 86 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 90 - - 94
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT MAX( DISTINCT + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-6557
SELECT MAX ( DISTINCT + 28 )
----
28

query I rowsort
SELECT + 14 + - + ( 77 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT + 90 + ( + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-6559
SELECT + 90 + ( + COUNT ( * ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ALL 55 - 11 - 39 + - - 67 + MIN( + 90 ) + - - COUNT( * ) * 3 * - ( + + 12 ) * + - 65 AS col2
----
2502

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL 55 - 11 - 39 + - - 67 + MIN ( + 90 ) + - - COUNT ( * ) * 3 * - ( + + 12 ) * + - 65 AS col2
----
2502

query I rowsort
SELECT - COALESCE ( + 4, + 89, + + 16 + 88, + + 49 ) AS col1
----
-4

query I rowsort
SELECT DISTINCT - 60 - 2 * CASE - - 36 WHEN + + 79 + - - 20 THEN + - ( - - 62 ) ELSE NULL END + + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT ALL MIN( + + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL MIN ( + + 96 ) AS col0
----
96

query I rowsort
SELECT DISTINCT 7 * 99 AS col1
----
693

query I rowsort
SELECT DISTINCT 54 * + 98 AS col2
----
5292

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL COUNT( * ) * - + 51
----
-51

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL COUNT ( * ) * - + 51
----
-51

query I rowsort
SELECT 50 * + 86
----
4300

query I rowsort
SELECT ALL 90 * - 36 * - + 22 AS col1
----
71280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6569
SELECT DISTINCT + + COUNT( ALL 48 ) DIV 55 * COALESCE ( + - 94, - + COUNT( * ) * 45 + + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + + COUNT ( ALL 48 ) / 55 * COALESCE ( + - 94, - + COUNT ( * ) * 45 + + 15 )
----
0

query I rowsort
SELECT - + 50 * - + 54 + - 96 + - + 62
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT SUM( - 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6571
SELECT SUM ( - 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6572
SELECT ALL COUNT( * ) DIV 49 * - ( ( - 33 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL COUNT ( * ) / 49 * - ( ( - 33 ) )
----
0

query I rowsort
SELECT ALL + 48 + + 72
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT + 9 + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-6574
SELECT + 9 + + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6575
SELECT + COUNT( * ) AS col0, 49
----
1
49

skipif mysql # not compatible
query II rowsort label-6575
SELECT + COUNT ( * ) AS col0, 49
----
1
49

query I rowsort
SELECT - 18 * COALESCE ( 42, - 35 ) * - 5 + + + 28 AS col1
----
3808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT CASE 15 WHEN + + 8 THEN + + 34 END + - + 95 + + - CAST( - 41 AS SIGNED ) * 8 + + + 99 / - CASE 66 WHEN + 5 * - COUNT( * ) + 92 THEN NULL ELSE 12 + CAST( - 85 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT CASE 15 WHEN + + 8 THEN + + 34 END + - + 95 + + - CAST ( - 41 AS INTEGER ) * 8 + + + 99 / - CASE 66 WHEN + 5 * - COUNT ( * ) + 92 THEN NULL ELSE 12 + CAST ( - 85 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT - ( + + COUNT( * ) ) * - 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6578
SELECT - ( + + COUNT ( * ) ) * - 74 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6579
SELECT ALL + - COUNT( * ) * - NULLIF ( - 86, + + 84 ) * + - 53 / + - CASE + 88 WHEN + 44 THEN - + 56 * - SUM( + 37 ) WHEN + 87 + CAST( NULL AS SIGNED ) + 81 THEN NULL END + 92 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL + - COUNT ( * ) * - NULLIF ( - 86, + + 84 ) * + - 53 / + - CASE + 88 WHEN + 44 THEN - + 56 * - SUM ( + 37 ) WHEN + 87 + CAST ( NULL AS INTEGER ) + 81 THEN NULL END + 92 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6580
SELECT MAX( ( - + 97 ) ) * 44 + - COUNT( * ) + + 57 + 83 * 21 DIV - 41 + 41
----
-4213

skipif mysql # not compatible
query I rowsort label-6580
SELECT MAX ( ( - + 97 ) ) * 44 + - COUNT ( * ) + + 57 + 83 * 21 / - 41 + 41
----
-4213

query I rowsort
SELECT 42 * + 62 * + + 13
----
33852

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT DISTINCT + 54 + - COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + 54 + - COUNT ( * ) AS col0
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6583
SELECT ALL + 32 + + 60 + + CAST( NULL AS DECIMAL ) * - + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + 32 + + 60 + + CAST ( NULL AS REAL ) * - + 21 AS col1
----
NULL

query I rowsort
SELECT 21 + - 81
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL + + 31 + + - COUNT( * ) * - - COUNT( * ) + - + 52 + + - 7 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + + 31 + + - COUNT ( * ) * - - COUNT ( * ) + - + 52 + + - 7 AS col0
----
-29

query I rowsort
SELECT ALL + + 6 * + 50 AS col2
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT 53 + + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6587
SELECT 53 + + COUNT ( * ) AS col1
----
54

query I rowsort
SELECT 89 * + - 54 col2
----
-4806

query I rowsort
SELECT ALL + 46 - 2
----
44

query I rowsort
SELECT 79 * + - 96 AS col1
----
-7584

query I rowsort
SELECT DISTINCT + 28 - - - 64 + + 45 * + 93 * - + 46 AS col1
----
-192546

query I rowsort
SELECT ALL + 10 * - - ( + 4 )
----
40

query I rowsort
SELECT ALL + 1 * - + ( + + 2 ) AS col0
----
-2

query I rowsort
SELECT 75 + 41
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL - 37 * + COUNT( * ) * 14 * + + 29
----
-15022

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL - 37 * + COUNT ( * ) * 14 * + + 29
----
-15022

onlyif mysql # aggregate syntax: 
query II rowsort label-6596
SELECT DISTINCT + 29 * 80 col0, COUNT( + 90 ) * - 93 * - 10
----
2320
930

skipif mysql # not compatible
query II rowsort label-6596
SELECT DISTINCT + 29 * 80 col0, COUNT ( + 90 ) * - 93 * - 10
----
2320
930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6597
SELECT 94 + - 81 + 47 * - 52 - 45 - + CASE - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) WHEN + - 17 THEN NULL WHEN - 51 THEN NULL ELSE + - 46 END
----
-2430

skipif mysql # not compatible
query I rowsort label-6597
SELECT 94 + - 81 + 47 * - 52 - 45 - + CASE - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) WHEN + - 17 THEN NULL WHEN - 51 THEN NULL ELSE + - 46 END
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT 3 * + SUM( + 83 ) * ( + 6 ) + - 34 * - + 91 + 0
----
4588

skipif mysql # not compatible
query I rowsort label-6598
SELECT 3 * + SUM ( + 83 ) * ( + 6 ) + - 34 * - + 91 + 0
----
4588

query I rowsort
SELECT 19 + + 42
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT MAX( - ( - 35 ) ) + + ( + 26 ) + COALESCE ( + 74, + 43, + 36 )
----
135

skipif mysql # not compatible
query I rowsort label-6600
SELECT MAX ( - ( - 35 ) ) + + ( + 26 ) + COALESCE ( + 74, + 43, + 36 )
----
135

query I rowsort
SELECT ALL + COALESCE ( - + 62, - 14 ) * + 99 AS col1
----
-6138

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT DISTINCT ( + COUNT( * ) ) + - - 49
----
50

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT ( + COUNT ( * ) ) + - - 49
----
50

query I rowsort
SELECT ALL - 51 + + 32 * - 61 AS col0
----
-2003

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT MIN( DISTINCT + - 58 ) * 91 - - 21 + + + 80 * + - ( + - 95 )
----
2343

skipif mysql # not compatible
query I rowsort label-6604
SELECT MIN ( DISTINCT + - 58 ) * 91 - - 21 + + + 80 * + - ( + - 95 )
----
2343

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT ALL + 77 + COALESCE ( - COUNT( * ), - ( + - 53 ) * - COUNT( * ) + + 20, - ( - 93 ) + + + 81 ) + - 42 * - 27 * + COUNT( * )
----
1210

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + 77 + COALESCE ( - COUNT ( * ), - ( + - 53 ) * - COUNT ( * ) + + 20, - ( - 93 ) + + + 81 ) + - 42 * - 27 * + COUNT ( * )
----
1210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6606
SELECT 18 + + 79 - + - 48 * + - COUNT( * ) DIV + 72 * COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6606
SELECT 18 + + 79 - + - 48 * + - COUNT ( * ) / + 72 * COUNT ( * ) AS col2
----
97

query I rowsort
SELECT DISTINCT 51 * + 31 AS col0
----
1581

onlyif mysql # DIV for integer division: 
query I rowsort label-6608
SELECT 67 DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6608
SELECT 67 / 69 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT DISTINCT 94 + - 12 + - 39 DIV + ( - - 28 ) + 18 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT 94 + - 12 + - 39 / + ( - - 28 ) + 18 AS col2
----
99

query I rowsort
SELECT DISTINCT 78 + + NULLIF ( + + 8, - 91 * - - 72 ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6611
SELECT ALL - CAST( NULL AS DECIMAL ) / + COUNT( * ) + - + MIN( DISTINCT - 43 ) + - ( CAST( - + COUNT( * ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - CAST ( NULL AS REAL ) / + COUNT ( * ) + - + MIN ( DISTINCT - 43 ) + - ( CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT - 23 DIV - ( - - 79 ) + 43 col1
----
43

skipif mysql # not compatible
query I rowsort label-6612
SELECT - 23 / - ( - - 79 ) + 43 col1
----
43

query I rowsort
SELECT 13 * + - 89
----
-1157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6614
SELECT ALL 62 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL 62 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 98 + - 7 * 13 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + SUM( ALL + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-6616
SELECT + SUM ( ALL + 59 )
----
59

query I rowsort
SELECT DISTINCT 8 - + 56 AS col2
----
-48

query II rowsort
SELECT ALL - 50 col2, 27 col1
----
-50
27

query I rowsort
SELECT ALL + 14 * + 36 AS col1
----
504

query I rowsort
SELECT 88 * + 33 AS col2
----
2904

onlyif mysql # aggregate syntax: 
query II rowsort label-6621
SELECT ALL COUNT( * ) AS col2, 89 AS col2
----
1
89

skipif mysql # not compatible
query II rowsort label-6621
SELECT ALL COUNT ( * ) AS col2, 89 AS col2
----
1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL + COUNT( * ) * - + ( - - 77 ) * 57 AS col1
----
-4389

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL + COUNT ( * ) * - + ( - - 77 ) * 57 AS col1
----
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT COUNT( * ) + + ( + + 52 )
----
53

skipif mysql # not compatible
query I rowsort label-6623
SELECT COUNT ( * ) + + ( + + 52 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6624
SELECT 4, COALESCE ( + - 79, 29 * 63 + - 33, + 14 - - MAX( + 86 ) * 71 ) AS col2
----
4
-79

skipif mysql # not compatible
query II rowsort label-6624
SELECT 4, COALESCE ( + - 79, 29 * 63 + - 33, + 14 - - MAX ( + 86 ) * 71 ) AS col2
----
4
-79

query II rowsort
SELECT - 1 + - 6 * 14 AS col2, + 83
----
-85
83

query I rowsort
SELECT - 71 * 83
----
-5893

query II rowsort
SELECT - 77 + + + ( 82 ) AS col2, - 72 AS col2
----
5
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT ALL - ( 90 ) DIV + 82
----
-1

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - ( 90 ) / + 82
----
-1

query II rowsort
SELECT DISTINCT 5, 77 AS col2
----
5
77

query I rowsort
SELECT ALL + COALESCE ( + 92, + - 69 ) + + - 87 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6631
SELECT DISTINCT - 52 * + + NULLIF ( 92, + MIN( DISTINCT - CAST( + ( - 99 ) AS SIGNED ) ) ) * - ( - 97 ) + CASE - + 18 WHEN + - AVG ( 59 ) + - 53 + + + 56 THEN 12 * 64 END - + AVG ( ALL + 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT - 52 * + + NULLIF ( 92, + MIN ( DISTINCT - CAST ( + ( - 99 ) AS INTEGER ) ) ) * - ( - 97 ) + CASE - + 18 WHEN + - AVG ( 59 ) + - 53 + + + 56 THEN 12 * 64 END - + AVG ( ALL + 31 ) AS col0
----
NULL

query I rowsort
SELECT ALL 53 * - 76 AS col2
----
-4028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6633
SELECT ALL + + CAST( NULL AS SIGNED ) + SUM( + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL + + CAST ( NULL AS INTEGER ) + SUM ( + 6 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT - 77 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT - 77 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6635
SELECT + - MAX( ALL 83 ) * - 39, + 49 + - 96 AS col1
----
3237
-47

skipif mysql # not compatible
query II rowsort label-6635
SELECT + - MAX ( ALL 83 ) * - 39, + 49 + - 96 AS col1
----
3237
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT - ( - 80 ) * + - 10 + - SUM( 12 ) AS col1
----
-812

skipif mysql # not compatible
query I rowsort label-6636
SELECT - ( - 80 ) * + - 10 + - SUM ( 12 ) AS col1
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT + 35 * COUNT( * ) - - 78 + - 38 - - 50 * - 77
----
-3775

skipif mysql # not compatible
query I rowsort label-6637
SELECT + 35 * COUNT ( * ) - - 78 + - 38 - - 50 * - 77
----
-3775

query II rowsort
SELECT ALL + 10 AS col2, 18 AS col1
----
10
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6639
SELECT ALL + 71, 50 * + COUNT( * ) AS col0
----
71
50

skipif mysql # not compatible
query II rowsort label-6639
SELECT ALL + 71, 50 * + COUNT ( * ) AS col0
----
71
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL + - SUM( + - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL + - SUM ( + - 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT + 63 * - 18 + + + ( COUNT( * ) ) * + CASE - 26 WHEN 9 THEN NULL WHEN - + 29 THEN - CASE + - ( + + 70 ) WHEN 49 + - - 86 THEN - COUNT( * ) ELSE NULL END * - 91 / 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT + 63 * - 18 + + + ( COUNT ( * ) ) * + CASE - 26 WHEN 9 THEN NULL WHEN - + 29 THEN - CASE + - ( + + 70 ) WHEN 49 + - - 86 THEN - COUNT ( * ) ELSE NULL END * - 91 / 97 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT - COUNT( * ) + 21 + COUNT( * ) * + 77 - - + 9 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-6642
SELECT - COUNT ( * ) + 21 + COUNT ( * ) * + 77 - - + 9 AS col0
----
106

query I rowsort
SELECT DISTINCT 51 * + 13 + 7
----
670

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT + 21 + - 94 + - - 12 * + CASE CASE SUM( 31 ) WHEN + 21 THEN + 78 + + + 41 END WHEN + + 74 THEN CASE + - COUNT( * ) WHEN 18 THEN NULL WHEN - 6 * - ( ( + 67 ) ) THEN + 58 / 54 END + 28 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6644
SELECT + 21 + - 94 + - - 12 * + CASE CASE SUM ( 31 ) WHEN + 21 THEN + 78 + + + 41 END WHEN + + 74 THEN CASE + - COUNT ( * ) WHEN 18 THEN NULL WHEN - 6 * - ( ( + 67 ) ) THEN + 58 / 54 END + 28 END col1
----
NULL

query I rowsort
SELECT + + 33 * - 98 * - 11 AS col0
----
35574

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT + + ( - MIN( DISTINCT - 46 ) ) * 63
----
2898

skipif mysql # not compatible
query I rowsort label-6646
SELECT + + ( - MIN ( DISTINCT - 46 ) ) * 63
----
2898

query I rowsort
SELECT DISTINCT 69 * 67 AS col0
----
4623

query I rowsort
SELECT ALL 43 * + 24 AS col1
----
1032

query II rowsort
SELECT DISTINCT + 30 AS col0, + 28 AS col2
----
30
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT ALL + MAX( + 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL + MAX ( + 50 ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT + 7 DIV 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6651
SELECT + 7 / 25 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6652
SELECT + COUNT( * ) * 3, - 2 AS col2
----
3
-2

skipif mysql # not compatible
query II rowsort label-6652
SELECT + COUNT ( * ) * 3, - 2 AS col2
----
3
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6653
SELECT + CAST( - ( + 78 ) AS SIGNED ) + 83 + - 78 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6653
SELECT + CAST ( - ( + 78 ) AS INTEGER ) + 83 + - 78 AS col2
----
-73

query II rowsort
SELECT - 88, - 91 * + 21 AS col1
----
-88
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL MIN( ALL + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL MIN ( ALL + 69 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT + 71 DIV + 9
----
7

skipif mysql # not compatible
query I rowsort label-6656
SELECT + 71 / + 9
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6657
SELECT ALL - ( COALESCE ( - + 86, COUNT( * ), + 44 * - COUNT( * ) DIV - COUNT( * ) + + 84 * + 22 ) ) + 88 AS col2
----
174

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - ( COALESCE ( - + 86, COUNT ( * ), + 44 * - COUNT ( * ) / - COUNT ( * ) + + 84 * + 22 ) ) + 88 AS col2
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6658
SELECT + 24 + - CAST( NULL AS SIGNED ) / + 25 * - 73 * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT + 24 + - CAST ( NULL AS INTEGER ) / + 25 * - 73 * + 35
----
NULL

query I rowsort
SELECT ALL ( - + 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT + 29 + + COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6660
SELECT + 29 + + COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT - ( + SUM( DISTINCT - 53 ) )
----
53

skipif mysql # not compatible
query I rowsort label-6661
SELECT - ( + SUM ( DISTINCT - 53 ) )
----
53

query I rowsort
SELECT - + 24 - + 89
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT + - CASE 39 WHEN 9 + - + 64 THEN NULL ELSE - 92 END + - CASE + 25 WHEN - COUNT( * ) THEN NULL WHEN - 50 THEN NULL WHEN + 70 * 75 * + + 59 + + 82 + 6 THEN + 31 ELSE 91 * - COUNT( * ) + - 39 END * 23 AS col2
----
3082

skipif mysql # not compatible
query I rowsort label-6663
SELECT + - CASE 39 WHEN 9 + - + 64 THEN NULL ELSE - 92 END + - CASE + 25 WHEN - COUNT ( * ) THEN NULL WHEN - 50 THEN NULL WHEN + 70 * 75 * + + 59 + + 82 + 6 THEN + 31 ELSE 91 * - COUNT ( * ) + - 39 END * 23 AS col2
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - - 49 * COUNT( * ) col0
----
49

skipif mysql # not compatible
query I rowsort label-6664
SELECT - - 49 * COUNT ( * ) col0
----
49

query I rowsort
SELECT ALL + + 4 + + 59 + + - 40 + + 33
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - 98 + + 72 - - COUNT( * ) + - 93 + + + MAX( ALL - 50 ) * - + 46
----
2182

skipif mysql # not compatible
query I rowsort label-6666
SELECT - 98 + + 72 - - COUNT ( * ) + - 93 + + + MAX ( ALL - 50 ) * - + 46
----
2182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6667
SELECT DISTINCT - + SUM( - - 33 ) * + 49 + - 32 + + 89 * + 85 * - + 7 + 1 * - 3 + 25 + + 60 DIV - COUNT( * )
----
-54642

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT - + SUM ( - - 33 ) * + 49 + - 32 + + 89 * + 85 * - + 7 + 1 * - 3 + 25 + + 60 / - COUNT ( * )
----
-54642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6668
SELECT DISTINCT - CASE CAST( 38 AS SIGNED ) WHEN - + 75 THEN - - 57 ELSE + 13 * + 29 * - 28 * + - CASE + 40 WHEN - + 26 THEN + COUNT( * ) + + 50 + - 48 ELSE + 84 END + COUNT( * ) + + 38 END DIV + 13 col0
----
-68211

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - CASE CAST ( 38 AS INTEGER ) WHEN - + 75 THEN - - 57 ELSE + 13 * + 29 * - 28 * + - CASE + 40 WHEN - + 26 THEN + COUNT ( * ) + + 50 + - 48 ELSE + 84 END + COUNT ( * ) + + 38 END / + 13 col0
----
-68211

query I rowsort
SELECT ALL + ( - 82 ) - - 14
----
-68

query I rowsort
SELECT ALL 69 * 9 AS col2
----
621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6671
SELECT - + NULLIF ( SUM( DISTINCT + + 79 ), - + 27 ) DIV + 55 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6671
SELECT - + NULLIF ( SUM ( DISTINCT + + 79 ), - + 27 ) / + 55 col2
----
-1

query I rowsort
SELECT - + 22 * 53 * + 64 * + + 87
----
-6492288

query I rowsort
SELECT ALL - 17 * - + 12 + 95 AS col1
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT - - COUNT( * ) + + - 91 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6674
SELECT - - COUNT ( * ) + + - 91 AS col0
----
-90

query I rowsort
SELECT ALL - + 11 * - 99 + + 28 * - 59 - 48 col1
----
-611

query I rowsort
SELECT + + ( 33 ) AS col2
----
33

query I rowsort
SELECT + + 85 * + 18 + 32 * + 56 + 19
----
3341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6678
SELECT - 14 DIV - MIN( 28 ) * + COALESCE ( + COALESCE ( 31, + 87 ), + 49 * + 3 + - COUNT( * ) + - 73 - - ( - 38 ) DIV + 1 + SUM( + 97 ) * 12 ) + 85 DIV 75
----
1

skipif mysql # not compatible
query I rowsort label-6678
SELECT - 14 / - MIN ( 28 ) * + COALESCE ( + COALESCE ( 31, + 87 ), + 49 * + 3 + - COUNT ( * ) + - 73 - - ( - 38 ) / + 1 + SUM ( + 97 ) * 12 ) + 85 / 75
----
1

query I rowsort
SELECT - ( ( + 78 ) ) AS col1
----
-78

query II rowsort
SELECT ALL + 86 AS col0, + 61 AS col0
----
86
61

query I rowsort
SELECT - 27 * - 71 + 32
----
1949

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6682
SELECT ALL - + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) * + 74 * - 99, + 24 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-6682
SELECT ALL - + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * + 74 * - 99, + 24 AS col1
----
NULL
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6683
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2, 91 + 58
----
NULL
149

skipif mysql # not compatible
query II rowsort label-6683
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2, 91 + 58
----
NULL
149

query I rowsort
SELECT + 31 * - 19 * - - 61
----
-35929

query I rowsort
SELECT ALL ( + + 93 ) + + + 73
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6686
SELECT ALL COUNT( * ) + 22 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL COUNT ( * ) + 22 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 79 * + 53
----
-4187

query I rowsort
SELECT DISTINCT + 25 + 73 + - 53 * 14
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT COUNT( * ) * + 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6689
SELECT COUNT ( * ) * + 31 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL COUNT( * ) + - 36 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL COUNT ( * ) + - 36 AS col1
----
-35

query I rowsort
SELECT ALL 82 + + - 25 + + 95 * + - 45 AS col0
----
-4218

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT 19 * COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6692
SELECT 19 * COUNT ( * ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT 54 + COALESCE ( - - MIN( DISTINCT ( - 13 ) ), - 30 * - + COUNT( * ), + 11 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6693
SELECT 54 + COALESCE ( - - MIN ( DISTINCT ( - 13 ) ), - 30 * - + COUNT ( * ), + 11 ) AS col0
----
41

query I rowsort
SELECT ( 42 ) * - 90 * 77 AS col0
----
-291060

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL 99 + + - COALESCE ( + - COUNT( * ), - 96, + 94 ) * + + 21
----
120

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL 99 + + - COALESCE ( + - COUNT ( * ), - 96, + 94 ) * + + 21
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT DISTINCT 38 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT 38 / - 33
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT ALL COUNT( * ) + + - 73 - - NULLIF ( COUNT( * ), - 3 * - + SUM( - CAST( - 34 AS SIGNED ) ) + - AVG ( 39 ) ) * - + 7
----
-79

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL COUNT ( * ) + + - 73 - - NULLIF ( COUNT ( * ), - 3 * - + SUM ( - CAST ( - 34 AS INTEGER ) ) + - AVG ( 39 ) ) * - + 7
----
-79

query II rowsort
SELECT 4 * + + 97 AS col1, - 45 AS col0
----
388
-45

query I rowsort
SELECT ALL - + 89 * + 66
----
-5874

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT - CASE - + 70 WHEN 20 * - 97 THEN 26 ELSE NULLIF ( + 66, 56 ) * + NULLIF ( - + 59, + + MAX( + + 93 ) ) * + 78 - + - COUNT( * ) END
----
303731

skipif mysql # not compatible
query I rowsort label-6700
SELECT - CASE - + 70 WHEN 20 * - 97 THEN 26 ELSE NULLIF ( + 66, 56 ) * + NULLIF ( - + 59, + + MAX ( + + 93 ) ) * + 78 - + - COUNT ( * ) END
----
303731

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL + COUNT( * ) * + + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL + COUNT ( * ) * + + ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT DISTINCT + COUNT( ALL + 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT + COUNT ( ALL + 17 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT COUNT( * ) - ( - - 32 ) * COUNT( DISTINCT - 86 )
----
-31

skipif mysql # not compatible
query I rowsort label-6703
SELECT COUNT ( * ) - ( - - 32 ) * COUNT ( DISTINCT - 86 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6704
SELECT + CAST( COUNT( + 28 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6704
SELECT + CAST ( COUNT ( + 28 ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT DISTINCT + SUM( DISTINCT + 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT + SUM ( DISTINCT + 36 ) AS col2
----
36

query I rowsort
SELECT + - 10 * + 73 - - 75 + + - 96 + - COALESCE ( + 48, + 26 )
----
-799

query I rowsort
SELECT DISTINCT + COALESCE ( - 96, - 57 ) * + 8 - 87 + 94
----
-761

query I rowsort
SELECT DISTINCT - ( + - 41 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6709
SELECT 90 * 44, + CAST( + ( + NULLIF ( + 98, - - 16 * ( - + ( + 12 ) ) * - 71 ) ) AS SIGNED ) + + + 36 AS col1
----
3960
134

skipif mysql # not compatible
query II rowsort label-6709
SELECT 90 * 44, + CAST ( + ( + NULLIF ( + 98, - - 16 * ( - + ( + 12 ) ) * - 71 ) ) AS INTEGER ) + + + 36 AS col1
----
3960
134

onlyif mysql # DIV for integer division: 
query I rowsort label-6710
SELECT ALL + 61 DIV 57 + - + 47 * + NULLIF ( + + 59, 79 ) AS col0
----
-2772

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + 61 / 57 + - + 47 * + NULLIF ( + + 59, 79 ) AS col0
----
-2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6711
SELECT 4 DIV COALESCE ( 2, + 38 * COALESCE ( COALESCE ( - + 69, 47 + + - COUNT( ALL + 5 ), - + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ), + + NULLIF ( CAST( - 10 AS SIGNED ), 3 * + 22 + + 64 ) * + CAST( CASE COALESCE ( + 92, 75 ) WHEN COUNT( * ) THEN 56 ELSE + 13 END AS SIGNED ) ), - MIN( ALL 33 ) ) + - 54, + ( 19 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6711
SELECT 4 / COALESCE ( 2, + 38 * COALESCE ( COALESCE ( - + 69, 47 + + - COUNT ( ALL + 5 ), - + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ), + + NULLIF ( CAST ( - 10 AS INTEGER ), 3 * + 22 + + 64 ) * + CAST ( CASE COALESCE ( + 92, 75 ) WHEN COUNT ( * ) THEN 56 ELSE + 13 END AS INTEGER ) ), - MIN ( ALL 33 ) ) + - 54, + ( 19 ) ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT 88 + - + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-6712
SELECT 88 + - + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - ( 68 ) * - 5 + - COUNT( * ) + - 93 - + 7 AS col2
----
239

skipif mysql # not compatible
query I rowsort label-6713
SELECT - ( 68 ) * - 5 + - COUNT ( * ) + - 93 - + 7 AS col2
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT 94 / - + CASE + 43 WHEN 34 + 95 - + + 92 THEN - NULLIF ( + 14, + 54 * 29 + 15 + - 10 + + COUNT( * ) * + 77 * - - 8 ) * - 79 WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT 94 / - + CASE + 43 WHEN 34 + 95 - + + 92 THEN - NULLIF ( + 14, + 54 * 29 + 15 + - 10 + + COUNT ( * ) * + 77 * - - 8 ) * - 79 WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT ALL - COUNT( * ) * 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL - COUNT ( * ) * 34 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL + COUNT( * ) + - 86 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL + COUNT ( * ) + - 86 AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6717
SELECT ALL + COALESCE ( - 97, + NULLIF ( + 28, COUNT( * ) ) + + CAST( ( - 96 ) AS SIGNED ) ) DIV + - 77 AS col1, + COUNT( 49 )
----
1
1

skipif mysql # not compatible
query II rowsort label-6717
SELECT ALL + COALESCE ( - 97, + NULLIF ( + 28, COUNT ( * ) ) + + CAST ( ( - 96 ) AS INTEGER ) ) / + - 77 AS col1, + COUNT ( 49 )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT DISTINCT + COUNT( * ) + - 91 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT + COUNT ( * ) + - 91 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT COUNT( * ) + + + MAX( - 71 ) + 92 col2
----
22

skipif mysql # not compatible
query I rowsort label-6719
SELECT COUNT ( * ) + + + MAX ( - 71 ) + 92 col2
----
22

query I rowsort
SELECT ALL + 20 + - 53 * 77 + - 0 AS col0
----
-4061

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT DISTINCT - SUM( ALL + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT - SUM ( ALL + 5 )
----
-5

query I rowsort
SELECT 9 + 15
----
24

query I rowsort
SELECT 13 * - 33
----
-429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6724
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) * - + 11 + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) * - + 11 + - 19
----
NULL

query I rowsort
SELECT + 66 - + - 84 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL SUM( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL SUM ( 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT ALL - + 20 - - ( + + NULLIF ( 52, - - 3 / - ( - NULLIF ( - 83, 81 - + COUNT( - 9 ) + 54 + 4 / - 5 * + + 90 * + - 61 ) ) * - - ( + 60 ) + 62 / ( + 55 * - 11 ) ) ) + - 74 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL - + 20 - - ( + + NULLIF ( 52, - - 3 / - ( - NULLIF ( - 83, 81 - + COUNT ( - 9 ) + 54 + 4 / - 5 * + + 90 * + - 61 ) ) * - - ( + 60 ) + 62 / ( + 55 * - 11 ) ) ) + - 74 AS col1
----
-42

query I rowsort
SELECT ALL - 66 * 11 AS col1
----
-726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT - CAST( - - 32 AS SIGNED ) col1
----
-32

skipif mysql # not compatible
query I rowsort label-6729
SELECT - CAST ( - - 32 AS INTEGER ) col1
----
-32

query I rowsort
SELECT - 16 - - 23 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6731
SELECT - 60 + + 36 + 92 / AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT - 60 + + 36 + 92 / AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 41 AS col2
----
NULL

query II rowsort
SELECT - + 3, - 53 * + 35 * + 81 AS col0
----
-3
-150255

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT - 43 + - + 29 + - 25 - - 6 * + MIN( + 11 ) - - - 0 * 35 - - + 79
----
48

skipif mysql # not compatible
query I rowsort label-6733
SELECT - 43 + - + 29 + - 25 - - 6 * + MIN ( + 11 ) - - - 0 * 35 - - + 79
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL COUNT( * ) * + - 79 + + 50 + + 32 + - 86
----
-83

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL COUNT ( * ) * + - 79 + + 50 + + 32 + - 86
----
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-6735
SELECT 36 DIV + + 86 * 93, ( + + 18 ) * 79 AS col1
----
0
1422

skipif mysql # not compatible
query II rowsort label-6735
SELECT 36 / + + 86 * 93, ( + + 18 ) * 79 AS col1
----
0
1422

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT CASE 76 WHEN - - 29 / + 85 * 92 + 34 THEN 71 * + + 82 + - COUNT( * ) * - + ( + COUNT( - 23 ) ) + + COUNT( * ) * + 39 ELSE NULL END + + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT CASE 76 WHEN - - 29 / + 85 * 92 + 34 THEN 71 * + + 82 + - COUNT ( * ) * - + ( + COUNT ( - 23 ) ) + + COUNT ( * ) * + 39 ELSE NULL END + + - 14
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6737
SELECT ALL - 76 * - + 13 DIV COUNT( DISTINCT + + 62 ) AS col1
----
988

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL - 76 * - + 13 / COUNT ( DISTINCT + + 62 ) AS col1
----
988

query I rowsort
SELECT + 9 + - - 40 * + 84
----
3369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6739
SELECT ALL + 90 + + 95 * + 50 * + COALESCE ( + 9, - MIN( - CAST( 46 AS SIGNED ) ) ) * 17 + 69 + MAX( 73 ) + - COUNT( * ) * + ( - + 49 ) + COALESCE ( - + 34, 13 + 65 ) + + 89 DIV 92
----
726997

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL + 90 + + 95 * + 50 * + COALESCE ( + 9, - MIN ( - CAST ( 46 AS INTEGER ) ) ) * 17 + 69 + MAX ( 73 ) + - COUNT ( * ) * + ( - + 49 ) + COALESCE ( - + 34, 13 + 65 ) + + 89 / 92
----
726997

query II rowsort
SELECT ALL 0, 24 AS col2
----
0
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6741
SELECT - 11 AS col1, + COUNT( + 28 ) col1
----
-11
1

skipif mysql # not compatible
query II rowsort label-6741
SELECT - 11 AS col1, + COUNT ( + 28 ) col1
----
-11
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT 25 AS col0, 43 - - 73 * + + CASE ( + 16 ) WHEN + COUNT( * ) THEN - + ( + 61 ) ELSE NULL END AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-6742
SELECT 25 AS col0, 43 - - 73 * + + CASE ( + 16 ) WHEN + COUNT ( * ) THEN - + ( + 61 ) ELSE NULL END AS col1
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT ALL COUNT( * ) * - - ( - + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL COUNT ( * ) * - - ( - + 11 )
----
-11

query I rowsort
SELECT ALL + 90 * - - 15 + - + 71 * + + 37 AS col0
----
-1277

query I rowsort
SELECT + CASE AVG ( DISTINCT + 51 ) WHEN + + 69 + + 24 + 37 + - 83 THEN NULL ELSE - 14 END col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL SUM( DISTINCT - CASE 26 WHEN - + 54 THEN NULL ELSE 12 END ) * ( + 52 ) * + CASE - 31 WHEN - MAX( 32 ) * COALESCE ( - + COUNT( * ), - 33 ) + + COUNT( * ) * + - 3 THEN - - 22 WHEN + 21 * + 22 + + 36 THEN ( 2 ) + - 50 ELSE NULL END * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL SUM ( DISTINCT - CASE 26 WHEN - + 54 THEN NULL ELSE 12 END ) * ( + 52 ) * + CASE - 31 WHEN - MAX ( 32 ) * COALESCE ( - + COUNT ( * ), - 33 ) + + COUNT ( * ) * + - 3 THEN - - 22 WHEN + 21 * + 22 + + 36 THEN ( 2 ) + - 50 ELSE NULL END * + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL + MAX( DISTINCT + 30 ) col0
----
30

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL + MAX ( DISTINCT + 30 ) col0
----
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6748
SELECT DISTINCT 36 * - CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) * + - 3 + + - NULLIF ( 88, 36 * - - AVG ( ALL - - 8 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT 36 * - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) * + - 3 + + - NULLIF ( 88, 36 * - - AVG ( ALL - - 8 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6749
SELECT - CASE 62 WHEN + CASE + + 69 WHEN + - CAST( NULL AS SIGNED ) * - 10 THEN - ( - 78 ) END + + 24 / + COALESCE ( + 62, - 18 + - 67 ) THEN - + 57 WHEN COUNT( * ) * - + CASE - - 65 WHEN 79 THEN ( 46 ) WHEN - 84 THEN ( - 3 ) END THEN - 98 WHEN 29 * - CAST( NULL AS SIGNED ) - - 93 THEN ( ( 10 ) ) ELSE + 26 END * 74
----
-1924

skipif mysql # not compatible
query I rowsort label-6749
SELECT - CASE 62 WHEN + CASE + + 69 WHEN + - CAST ( NULL AS INTEGER ) * - 10 THEN - ( - 78 ) END + + 24 / + COALESCE ( + 62, - 18 + - 67 ) THEN - + 57 WHEN COUNT ( * ) * - + CASE - - 65 WHEN 79 THEN ( 46 ) WHEN - 84 THEN ( - 3 ) END THEN - 98 WHEN 29 * - CAST ( NULL AS INTEGER ) - - 93 THEN ( ( 10 ) ) ELSE + 26 END * 74
----
-1924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6750
SELECT ALL + 16 * + 80 AS col0, 79 + + NULLIF ( - 96, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
1280
-17

skipif mysql # not compatible
query II rowsort label-6750
SELECT ALL + 16 * + 80 AS col0, 79 + + NULLIF ( - 96, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
1280
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6751
SELECT DISTINCT - 64 * 97 - ( ( - 83 ) ) * CASE - 85 WHEN + 25 THEN - 17 * + 73 / CAST( NULL AS SIGNED ) + - 71 * - 96 + - - 4 + 94 + + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT - 64 * 97 - ( ( - 83 ) ) * CASE - 85 WHEN + 25 THEN - 17 * + 73 / CAST ( NULL AS INTEGER ) + - 71 * - 96 + - - 4 + 94 + + 86 END
----
NULL

query I rowsort
SELECT - 59 * + 5 AS col1
----
-295

query I rowsort
SELECT ALL 64 * + 72
----
4608

query I rowsort
SELECT DISTINCT + 62 * 74
----
4588

query II rowsort
SELECT ALL + ( 55 ) AS col0, 4 AS col1
----
55
4

query I rowsort
SELECT - - 18 - + 60
----
-42

query I rowsort
SELECT - 78 * 47
----
-3666

query II rowsort
SELECT - 21 * + 88 AS col1, - 67
----
-1848
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT - COALESCE ( COUNT( * ), + 26 ) + - + 51 + + - CAST( + 38 AS SIGNED ) - + 1 * 2 * + COUNT( * ) * - - COALESCE ( + COUNT( * ), - - SUM( COALESCE ( - - 53, - 52, 40 * - 2 * - - 86 ) ) * - + CASE 70 WHEN 92 + 1 THEN - 89 WHEN - 45 THEN NULL WHEN 15 * + 4 + - 79 / 6 THEN NULL END + ( + 82 ) ) * 32
----
-154

skipif mysql # not compatible
query I rowsort label-6759
SELECT - COALESCE ( COUNT ( * ), + 26 ) + - + 51 + + - CAST ( + 38 AS INTEGER ) - + 1 * 2 * + COUNT ( * ) * - - COALESCE ( + COUNT ( * ), - - SUM ( COALESCE ( - - 53, - 52, 40 * - 2 * - - 86 ) ) * - + CASE 70 WHEN 92 + 1 THEN - 89 WHEN - 45 THEN NULL WHEN 15 * + 4 + - 79 / 6 THEN NULL END + ( + 82 ) ) * 32
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-6760
SELECT ALL + SUM( - 67 ), - 3 AS col1
----
-67
-3

skipif mysql # not compatible
query II rowsort label-6760
SELECT ALL + SUM ( - 67 ), - 3 AS col1
----
-67
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6761
SELECT + - 35 + - COUNT( * ) AS col2, COUNT( * )
----
-36
1

skipif mysql # not compatible
query II rowsort label-6761
SELECT + - 35 + - COUNT ( * ) AS col2, COUNT ( * )
----
-36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT DISTINCT + COUNT( * ) * + 63 * + 31 AS col1
----
1953

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT + COUNT ( * ) * + 63 * + 31 AS col1
----
1953

query I rowsort
SELECT + ( - + 76 ) * + - 97
----
7372

query II rowsort
SELECT - 47 - - - 68 AS col0, 33
----
-115
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT + ( + 21 ) DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT + ( + 21 ) / 95
----
0

query I rowsort
SELECT ALL 90 + 67
----
157

query I rowsort
SELECT - 60 - - 95 AS col0
----
35

query I rowsort
SELECT - NULLIF ( + 46, - 11 * - - 15 + 65 - - + 84 + 79 )
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6769
SELECT - 74 + - - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT - 74 + - - ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT - - MIN( ALL 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6770
SELECT - - MIN ( ALL 94 ) AS col1
----
94

query I rowsort
SELECT ALL 67 + 79 AS col0
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT + 73 * + - 0 DIV ( - 45 )
----
0

skipif mysql # not compatible
query I rowsort label-6772
SELECT + 73 * + - 0 / ( - 45 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6773
SELECT ALL ( + COUNT( * ) ) * + + CAST( NULL AS SIGNED ) + ( + - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL ( + COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) + ( + - 19 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6774
SELECT ALL - CAST( NULL AS SIGNED ) / CAST( NULL AS DECIMAL ) + SUM( + 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - CAST ( NULL AS INTEGER ) / CAST ( NULL AS REAL ) + SUM ( + 83 ) AS col0
----
NULL

query I rowsort
SELECT + 25 - + 91
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6776
SELECT ALL - 52 DIV + 10 + SUM( + ( - 4 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL - 52 / + 10 + SUM ( + ( - 4 ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT + ( - - ( + COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6777
SELECT + ( - - ( + COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6778
SELECT CAST( - 44 AS SIGNED ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-6778
SELECT CAST ( - 44 AS INTEGER ) col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + NULLIF ( - 92, COUNT( * ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6779
SELECT + NULLIF ( - 92, COUNT ( * ) ) AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6780
SELECT + 65 + + CAST( NULL AS SIGNED ) + COUNT( * ) / - + 22 * - CAST( COUNT( * ) AS SIGNED ) * - - 63 * + ( 57 ) + + MIN( 40 ) * - - 23 + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT + 65 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / - + 22 * - CAST ( COUNT ( * ) AS INTEGER ) * - - 63 * + ( 57 ) + + MIN ( 40 ) * - - 23 + - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL + SUM( - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL + SUM ( - 63 ) AS col2
----
-63

query I rowsort
SELECT ( - - ( + - NULLIF ( - 16, + 41 ) ) ) AS col2
----
16

query I rowsort
SELECT 30 * + ( + 83 ) + + 21
----
2511

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6784
SELECT - COUNT( * ) - - ( - - COUNT( * ) ) + - 0 * 38 * 25 DIV 33 * + ( + 10 ) + 78, - 46 * + COUNT( * ) AS col2
----
78
-46

skipif mysql # not compatible
query II rowsort label-6784
SELECT - COUNT ( * ) - - ( - - COUNT ( * ) ) + - 0 * 38 * 25 / 33 * + ( + 10 ) + 78, - 46 * + COUNT ( * ) AS col2
----
78
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT DISTINCT + COUNT( * ) * - + 9 - - COUNT( * ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT + COUNT ( * ) * - + 9 - - COUNT ( * ) col2
----
-8

query I rowsort
SELECT ALL - 85 * - 16 AS col1
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT + COUNT( * ) + + + 1
----
2

skipif mysql # not compatible
query I rowsort label-6787
SELECT + COUNT ( * ) + + + 1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6788
SELECT - 66 + - 46 + - 75 DIV - + 12 + MIN( ALL 63 )
----
-43

skipif mysql # not compatible
query I rowsort label-6788
SELECT - 66 + - 46 + - 75 / - + 12 + MIN ( ALL 63 )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT + 6 DIV + + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6789
SELECT + 6 / + + 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ALL + SUM( ALL - - 79 ) * + 46
----
3634

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL + SUM ( ALL - - 79 ) * + 46
----
3634

query I rowsort
SELECT ALL - + 90 * - + 17 * - 82 AS col1
----
-125460

query I rowsort
SELECT + - 95 * - 99 + + ( - 63 ) + 25 AS col0
----
9367

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT - + COUNT( * ) * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6793
SELECT - + COUNT ( * ) * - 0 AS col2
----
0

query I rowsort
SELECT - 64 - + ( - 7 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT DISTINCT 34 * + + 33 + - 73 + + 87 * + - COUNT( * ) AS col1
----
962

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT 34 * + + 33 + - 73 + + 87 * + - COUNT ( * ) AS col1
----
962

query I rowsort
SELECT DISTINCT 48 * 84 + - 94
----
3938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6797
SELECT + - 43 + 77 + + CAST( NULL AS SIGNED ) AS col0, COALESCE ( + COUNT( * ), 74 * + 98 + CASE 39 WHEN + 87 * + + COALESCE ( + + 68, SUM( 69 ), 4 * - + MAX( + - 20 ) - - ( + - 48 ) - - 44 ) THEN NULLIF ( + COALESCE ( 74, - ( + 5 ) ), 70 + - MIN( DISTINCT + ( + 77 ) ) ) ELSE + ( - 77 ) DIV + NULLIF ( - NULLIF ( + 65, - 24 * 43 ) DIV + MIN( DISTINCT 7 ), + 34 ) END * 69 ) + + COUNT( * ) * - 72 AS col1
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-6797
SELECT + - 43 + 77 + + CAST ( NULL AS INTEGER ) AS col0, COALESCE ( + COUNT ( * ), 74 * + 98 + CASE 39 WHEN + 87 * + + COALESCE ( + + 68, SUM ( 69 ), 4 * - + MAX ( + - 20 ) - - ( + - 48 ) - - 44 ) THEN NULLIF ( + COALESCE ( 74, - ( + 5 ) ), 70 + - MIN ( DISTINCT + ( + 77 ) ) ) ELSE + ( - 77 ) / + NULLIF ( - NULLIF ( + 65, - 24 * 43 ) / + MIN ( DISTINCT 7 ), + 34 ) END * 69 ) + + COUNT ( * ) * - 72 AS col1
----
NULL
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6798
SELECT ALL + + CASE 95 WHEN + 16 * MIN( - - CAST( NULL AS SIGNED ) ) - - 5 + - 63 + + 4 THEN + 17 + + + 99 * + 77 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL + + CASE 95 WHEN + 16 * MIN ( - - CAST ( NULL AS INTEGER ) ) - - 5 + - 63 + + 4 THEN + 17 + + + 99 * + 77 END + COUNT ( * )
----
NULL

query II rowsort
SELECT + 44 + - - 23 * 6 col1, - 59 - - + 28
----
182
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT - + CASE 3 WHEN 92 - + + 90 + + - ( - 44 ) THEN NULL WHEN + 13 THEN NULL WHEN MAX( ALL + 7 ) + - 38 THEN 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6800
SELECT - + CASE 3 WHEN 92 - + + 90 + + - ( - 44 ) THEN NULL WHEN + 13 THEN NULL WHEN MAX ( ALL + 7 ) + - 38 THEN 79 END
----
NULL

query I rowsort
SELECT 76 + + 15 * + + 64 + - 67 AS col0
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT + 28 - + + CASE 99 WHEN + + ( - 45 ) * - 67 * + 82 + + 31 THEN NULL WHEN 39 THEN COUNT( * ) ELSE NULL END / + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT + 28 - + + CASE 99 WHEN + + ( - 45 ) * - 67 * + 82 + + 31 THEN NULL WHEN 39 THEN COUNT ( * ) ELSE NULL END / + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6803
SELECT ALL - ( - - CASE - + CASE + 52 WHEN 14 THEN - CAST( + + 8 AS DECIMAL ) END WHEN - 7 - 1 + - 53 * 32 * 61 THEN COALESCE ( + - 8, 51 ) END ) + - CASE + 43 WHEN + 24 THEN NULL WHEN 99 - + 63 THEN - COUNT( * ) * COUNT( * ) ELSE NULL END * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - ( - - CASE - + CASE + 52 WHEN 14 THEN - CAST ( + + 8 AS REAL ) END WHEN - 7 - 1 + - 53 * 32 * 61 THEN COALESCE ( + - 8, 51 ) END ) + - CASE + 43 WHEN + 24 THEN NULL WHEN 99 - + 63 THEN - COUNT ( * ) * COUNT ( * ) ELSE NULL END * + 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT + CASE 38 WHEN 96 + - 45 + 37 THEN + - 62 + + CAST( 38 AS SIGNED ) / + - ( 23 ) + AVG ( ALL 13 ) + - 77 ELSE - 15 * + + 62 END AS col2
----
-930

skipif mysql # not compatible
query I rowsort label-6804
SELECT + CASE 38 WHEN 96 + - 45 + 37 THEN + - 62 + + CAST ( 38 AS INTEGER ) / + - ( 23 ) + AVG ( ALL 13 ) + - 77 ELSE - 15 * + + 62 END AS col2
----
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6805
SELECT ( SUM( + - 49 ) ) + - 6 - + NULLIF ( + 1, 55 + - CAST( NULL AS DECIMAL ) + + CAST( - 1 AS SIGNED ) + - 88 * - 76 * CAST( 66 AS SIGNED ) ) * - 2
----
-53

skipif mysql # not compatible
query I rowsort label-6805
SELECT ( SUM ( + - 49 ) ) + - 6 - + NULLIF ( + 1, 55 + - CAST ( NULL AS REAL ) + + CAST ( - 1 AS INTEGER ) + - 88 * - 76 * CAST ( 66 AS INTEGER ) ) * - 2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT DISTINCT - 49 * CASE - 86 WHEN + 80 THEN - 49 WHEN + - CAST( - 39 AS SIGNED ) THEN NULL ELSE - COUNT( ALL + CAST( NULL AS SIGNED ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - 49 * CASE - 86 WHEN + 80 THEN - 49 WHEN + - CAST ( - 39 AS INTEGER ) THEN NULL ELSE - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) END
----
0

query I rowsort
SELECT ALL 43 + - 41 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT 13 + + COUNT( * ) * + 85 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6808
SELECT 13 + + COUNT ( * ) * + 85 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT COUNT( * ) + 94 + + 8
----
103

skipif mysql # not compatible
query I rowsort label-6809
SELECT COUNT ( * ) + 94 + + 8
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6810
SELECT DISTINCT - NULLIF ( - 28, - 15 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT - NULLIF ( - 28, - 15 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 3 * 48 * 40
----
5760

query I rowsort
SELECT 39 * 31 AS col1
----
1209

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT DISTINCT - COUNT( * ) - - + 39 col0
----
38

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT - COUNT ( * ) - - + 39 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT COUNT( * ) * + 16 + - 71
----
-55

skipif mysql # not compatible
query I rowsort label-6814
SELECT COUNT ( * ) * + 16 + - 71
----
-55

query I rowsort
SELECT 29 * + 70 AS col1
----
2030

onlyif mysql # aggregate syntax: 
query II rowsort label-6816
SELECT DISTINCT 65 * 18, SUM( DISTINCT 3 ) * 60 + + 95 AS col1
----
1170
275

skipif mysql # not compatible
query II rowsort label-6816
SELECT DISTINCT 65 * 18, SUM ( DISTINCT 3 ) * 60 + + 95 AS col1
----
1170
275

query I rowsort
SELECT ALL 23 * + - 86 * 89 AS col0
----
-176042

onlyif mysql # aggregate syntax: 
query II rowsort label-6818
SELECT 53 * + COUNT( * ) + + - ( + 78 ) AS col0, + 74 AS col1
----
-25
74

skipif mysql # not compatible
query II rowsort label-6818
SELECT 53 * + COUNT ( * ) + + - ( + 78 ) AS col0, + 74 AS col1
----
-25
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6819
SELECT CASE - 92 WHEN - + 5 THEN + 52 * CAST( + COALESCE ( ( 83 ), - MIN( DISTINCT - 31 ) * ( + ( - 82 ) ) ) AS DECIMAL ) WHEN + 84 + + 29 THEN NULL ELSE NULL END / + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT CASE - 92 WHEN - + 5 THEN + 52 * CAST ( + COALESCE ( ( 83 ), - MIN ( DISTINCT - 31 ) * ( + ( - 82 ) ) ) AS REAL ) WHEN + 84 + + 29 THEN NULL ELSE NULL END / + - 10
----
NULL

query II rowsort
SELECT ALL - 9, 67 AS col0
----
-9
67

query I rowsort
SELECT ALL + 21 * - - 86 AS col0
----
1806

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + 4 - + - COUNT( + 54 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6822
SELECT + 4 - + - COUNT ( + 54 ) AS col2
----
5

query I rowsort
SELECT - 13 * - 87
----
1131

query II rowsort
SELECT + NULLIF ( + - 61, 12 * 70 ) AS col1, + 12
----
-61
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT + COUNT( DISTINCT + 18 ) + + COUNT( * ) + - COALESCE ( - 49, ( + - 41 ) ) * - ( + - 29 ) AS col1
----
1423

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT + COUNT ( DISTINCT + 18 ) + + COUNT ( * ) + - COALESCE ( - 49, ( + - 41 ) ) * - ( + - 29 ) AS col1
----
1423

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL + 60 + - 25 * - 65 * + NULLIF ( + + 64, + + COUNT( * ) - 73 ) - 95 AS col0
----
103965

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL + 60 + - 25 * - 65 * + NULLIF ( + + 64, + + COUNT ( * ) - 73 ) - 95 AS col0
----
103965

query II rowsort
SELECT DISTINCT - 14 AS col2, 84 * + 45 AS col1
----
-14
3780

query II rowsort
SELECT ALL 79 + - + 92 + + COALESCE ( + - 39, - ( 87 ) * - - ( + 28 ), - 62 * + 48 + - NULLIF ( + 21, 47 * 7 - - 48 ) * + ( - 93 ) ) AS col0, - 94
----
-52
-94

query I rowsort
SELECT DISTINCT + 27 + + 67
----
94

query I rowsort
SELECT + 62 + + + 17
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT + COUNT( DISTINCT - 83 ) DIV + + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6831
SELECT + COUNT ( DISTINCT - 83 ) / + + 93 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6832
SELECT ALL + 77 + + + CAST( - + 88 AS SIGNED ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL + 77 + + + CAST ( - + 88 AS INTEGER ) AS col1
----
-11

query I rowsort
SELECT - - ( - - 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT CASE 36 WHEN + 45 + + + 38 / + COALESCE ( + - 44, + + 69, - 8 ) THEN + COUNT( * ) + - + MAX( + 74 ) WHEN 63 * - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT CASE 36 WHEN + 45 + + + 38 / + COALESCE ( + - 44, + + 69, - 8 ) THEN + COUNT ( * ) + - + MAX ( + 74 ) WHEN 63 * - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6835
SELECT - COUNT( * ) DIV - COALESCE ( - 36, + 54 ) * COUNT( 95 ) + - + 43, + 73 col1
----
-43
73

skipif mysql # not compatible
query II rowsort label-6835
SELECT - COUNT ( * ) / - COALESCE ( - 36, + 54 ) * COUNT ( 95 ) + - + 43, + 73 col1
----
-43
73

query I rowsort
SELECT - - 92 * - + 86 + - 72 AS col2
----
-7984

query I rowsort
SELECT ALL + - 45 + 64 AS col0
----
19

query II rowsort
SELECT ALL + 34, + 13 AS col0
----
34
13

query I rowsort
SELECT DISTINCT - 84 + - 49
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT ALL MAX( + COALESCE ( - 77, + 73 * - 8 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL MAX ( + COALESCE ( - 77, + 73 * - 8 ) )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT + 78 DIV + 68 * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6841
SELECT + 78 / + 68 * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 51 * - - 53 AS col0
----
-2703

query I rowsort
SELECT ALL 14 * - + 54 * 74 AS col2
----
-55944

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ( 51 ) - + MAX( DISTINCT - 38 ) + + 66 * ( - - NULLIF ( - 62, - ( 74 ) ) ) + + - 9 + + 84 AS col2
----
-3928

skipif mysql # not compatible
query I rowsort label-6844
SELECT ( 51 ) - + MAX ( DISTINCT - 38 ) + + 66 * ( - - NULLIF ( - 62, - ( 74 ) ) ) + + - 9 + + 84 AS col2
----
-3928

onlyif mysql # DIV for integer division: 
query I rowsort label-6845
SELECT 13 - + 47 DIV + 72 * 97 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6845
SELECT 13 - + 47 / + 72 * 97 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT 48 * + COALESCE ( SUM( - + 28 ), 45 + 18 )
----
-1344

skipif mysql # not compatible
query I rowsort label-6846
SELECT 48 * + COALESCE ( SUM ( - + 28 ), 45 + 18 )
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL - COUNT( * ) * + - 8
----
8

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - COUNT ( * ) * + - 8
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6848
SELECT 38 * + + COUNT( * ) AS col0, + 85
----
38
85

skipif mysql # not compatible
query II rowsort label-6848
SELECT 38 * + + COUNT ( * ) AS col0, + 85
----
38
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT ALL - ( - COUNT( * ) ), ( - - COUNT( * ) ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-6849
SELECT ALL - ( - COUNT ( * ) ), ( - - COUNT ( * ) ) AS col0
----
1
1

query I rowsort
SELECT DISTINCT - 3 * 13 AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6851
SELECT 57 - - NULLIF ( - + COALESCE ( + - 5, + ( - - 42 ) + + - 46 - + 52 * - 23, - 26 * - CAST( - - COUNT( * ) AS SIGNED ) ), + 83 + - + COUNT( - 53 ) / - NULLIF ( + + COUNT( * ), 2 * + COUNT( * ) ) )
----
62

skipif mysql # not compatible
query I rowsort label-6851
SELECT 57 - - NULLIF ( - + COALESCE ( + - 5, + ( - - 42 ) + + - 46 - + 52 * - 23, - 26 * - CAST ( - - COUNT ( * ) AS INTEGER ) ), + 83 + - + COUNT ( - 53 ) / - NULLIF ( + + COUNT ( * ), 2 * + COUNT ( * ) ) )
----
62

query I rowsort
SELECT 94 * + ( - - 53 ) + + 93 AS col1
----
5075

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL - COALESCE ( 64, - MIN( DISTINCT + 81 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - COALESCE ( 64, - MIN ( DISTINCT + 81 ) )
----
-64

query I rowsort
SELECT 54 * - 44 AS col2
----
-2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6855
SELECT 57 + + 73 * - 79, - COUNT( * ) DIV COALESCE ( 64, + 12 ) * - 9 col0
----
-5710
0

skipif mysql # not compatible
query II rowsort label-6855
SELECT 57 + + 73 * - 79, - COUNT ( * ) / COALESCE ( 64, + 12 ) * - 9 col0
----
-5710
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6856
SELECT + NULLIF ( ( + ( - 64 ) ), + 82 ) DIV 20 * + 39 - + + 95 col0
----
-212

skipif mysql # not compatible
query I rowsort label-6856
SELECT + NULLIF ( ( + ( - 64 ) ), + 82 ) / 20 * + 39 - + + 95 col0
----
-212

query I rowsort
SELECT ALL 35 * + 94 * 44 + - 92 AS col1
----
144668

query II rowsort
SELECT DISTINCT + 40 + + 72 AS col0, - 67 AS col1
----
112
-67

query I rowsort
SELECT + NULLIF ( 57, - 73 )
----
57

query I rowsort
SELECT ALL 30 + - 32
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6861
SELECT - NULLIF ( + - CAST( - 90 AS SIGNED ), - 50 + 4 ) + - 63 AS col2
----
-153

skipif mysql # not compatible
query I rowsort label-6861
SELECT - NULLIF ( + - CAST ( - 90 AS INTEGER ), - 50 + 4 ) + - 63 AS col2
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT + + CAST( - - 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-6862
SELECT + + CAST ( - - 83 AS INTEGER )
----
83

query I rowsort
SELECT DISTINCT - 55 * + 47
----
-2585

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT + MAX( DISTINCT + - 56 ) * - + COUNT( * ) + + 59 + + - 51 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6864
SELECT + MAX ( DISTINCT + - 56 ) * - + COUNT ( * ) + + 59 + + - 51 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + - ( - + 46 ) + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6865
SELECT + - ( - + 46 ) + - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT ALL COUNT( * ) AS col2, 59 AS col0
----
1
59

skipif mysql # not compatible
query II rowsort label-6866
SELECT ALL COUNT ( * ) AS col2, 59 AS col0
----
1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT 97 * + + 52 + + 6 + - COUNT( * ) col2
----
5049

skipif mysql # not compatible
query I rowsort label-6867
SELECT 97 * + + 52 + + 6 + - COUNT ( * ) col2
----
5049

query II rowsort
SELECT ALL 14 AS col0, + 7 AS col2
----
14
7

query I rowsort
SELECT + 14 + - 54
----
-40

query I rowsort
SELECT + 73 * + - 91
----
-6643

query I rowsort
SELECT + 90 + - 6
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT DISTINCT ( - 41 ) * 83 + + - 54 DIV - 79 col1
----
-3403

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT ( - 41 ) * 83 + + - 54 / - 79 col1
----
-3403

query II rowsort
SELECT ALL 23 AS col0, 27 AS col1
----
23
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6874
SELECT - 72 + + CAST( + MAX( ALL 21 ) AS SIGNED ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-6874
SELECT - 72 + + CAST ( + MAX ( ALL 21 ) AS INTEGER ) col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - NULLIF ( + + 45, + - COUNT( * ) * - 60 + - - 82 )
----
-45

skipif mysql # not compatible
query I rowsort label-6875
SELECT - NULLIF ( + + 45, + - COUNT ( * ) * - 60 + - - 82 )
----
-45

query I rowsort
SELECT + 42 * - 11 * - + 51
----
23562

query I rowsort
SELECT ALL + 62 * + - 61 * 7
----
-26474

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT 90 AS col0, COUNT( * ) + + - 27
----
90
-26

skipif mysql # not compatible
query II rowsort label-6878
SELECT 90 AS col0, COUNT ( * ) + + - 27
----
90
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6879
SELECT ALL ( + 9 ) * 28 * + 46, - COUNT( * ) + 69 + + - CAST( NULL AS SIGNED ) * - 3 + - 28 AS col2
----
11592
NULL

skipif mysql # not compatible
query II rowsort label-6879
SELECT ALL ( + 9 ) * 28 * + 46, - COUNT ( * ) + 69 + + - CAST ( NULL AS INTEGER ) * - 3 + - 28 AS col2
----
11592
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT + 36 + - 27 + - CASE + 22 WHEN 8 * - 94 + - 14 + SUM( ALL + 66 ) + + - COUNT( * ) * + - 49 THEN NULL ELSE - 52 END * + 70
----
3649

skipif mysql # not compatible
query I rowsort label-6880
SELECT + 36 + - 27 + - CASE + 22 WHEN 8 * - 94 + - 14 + SUM ( ALL + 66 ) + + - COUNT ( * ) * + - 49 THEN NULL ELSE - 52 END * + 70
----
3649

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6881
SELECT ALL + 26 DIV + ( + - CAST( ( - 70 ) AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + 26 / + ( + - CAST ( ( - 70 ) AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6882
SELECT ALL - 99 + + - CAST( NULL AS SIGNED ) + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL - 99 + + - CAST ( NULL AS INTEGER ) + 73
----
NULL

query I rowsort
SELECT - 82 + + 25
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT - MAX( 7 ) * - 50
----
350

skipif mysql # not compatible
query I rowsort label-6884
SELECT - MAX ( 7 ) * - 50
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT + ( + + COUNT( * ) ) * - + 32 * - 16 + 51 AS col2
----
563

skipif mysql # not compatible
query I rowsort label-6885
SELECT + ( + + COUNT ( * ) ) * - + 32 * - 16 + 51 AS col2
----
563

onlyif mysql # aggregate syntax: 
query II rowsort label-6886
SELECT ALL 83 * COUNT( * ) + CASE + COUNT( * ) WHEN COUNT( * ) THEN 63 END * - - COALESCE ( + 58, - 82 * + COUNT( * ) - + - 70 * + - 50 * 35 ), + 17 - 43 AS col1
----
3737
-26

skipif mysql # not compatible
query II rowsort label-6886
SELECT ALL 83 * COUNT ( * ) + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN 63 END * - - COALESCE ( + 58, - 82 * + COUNT ( * ) - + - 70 * + - 50 * 35 ), + 17 - 43 AS col1
----
3737
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT ALL + COUNT( * ) * - + 80 + - 19 + - ( + 64 ) * - 99 * 80 + - 11 + - 4 + - - 65 * - MAX( 40 ) + + 27
----
504193

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL + COUNT ( * ) * - + 80 + - 19 + - ( + 64 ) * - 99 * 80 + - 11 + - 4 + - - 65 * - MAX ( 40 ) + + 27
----
504193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6888
SELECT DISTINCT + - CAST( - + MIN( ALL + 99 ) AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT + - CAST ( - + MIN ( ALL + 99 ) AS INTEGER ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL + - 71 * 28 * COUNT( * ) AS col1
----
-1988

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + - 71 * 28 * COUNT ( * ) AS col1
----
-1988

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - 31 + - 53 - - MIN( 69 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6890
SELECT - 31 + - 53 - - MIN ( 69 ) AS col1
----
-15

query I rowsort
SELECT DISTINCT 54 * 71 + 63 * + 6
----
4212

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6892
SELECT - 75 * - CAST( NULL AS DECIMAL ) + - 97 + - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT - 75 * - CAST ( NULL AS REAL ) + - 97 + - + 36
----
NULL

query II rowsort
SELECT + + 48 col1, + 43
----
48
43

query II rowsort
SELECT 30 col2, 11 * + ( - - 78 ) * - 62 AS col0
----
30
-53196

query II rowsort
SELECT ALL + - 41 col0, - 62
----
-41
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT + + 75 + - MAX( - + 56 ) * - 64
----
-3509

skipif mysql # not compatible
query I rowsort label-6896
SELECT + + 75 + - MAX ( - + 56 ) * - 64
----
-3509

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT + 85 * COALESCE ( + + 78, + - COUNT( * ) )
----
6630

skipif mysql # not compatible
query I rowsort label-6897
SELECT + 85 * COALESCE ( + + 78, + - COUNT ( * ) )
----
6630

query II rowsort
SELECT DISTINCT + 0 AS col1, 54 AS col2
----
0
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT - - 56 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6899
SELECT - - 56 / 82 AS col2
----
0

query I rowsort
SELECT ALL + 45 * 19
----
855

query II rowsort
SELECT 11 AS col1, 9
----
11
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6902
SELECT - 15 AS col0, 88 + - 49 * - COUNT( * ) * - COUNT( * ) * - 13 * ( 71 ) AS col2
----
-15
45315

skipif mysql # not compatible
query II rowsort label-6902
SELECT - 15 AS col0, 88 + - 49 * - COUNT ( * ) * - COUNT ( * ) * - 13 * ( 71 ) AS col2
----
-15
45315

query I rowsort
SELECT DISTINCT - 1 * 66 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT + MAX( ALL + 99 ) + 27 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-6904
SELECT + MAX ( ALL + 99 ) + 27 AS col1
----
126

query I rowsort
SELECT - NULLIF ( - 69, + - 25 * + - 81 ) AS col1
----
69

query I rowsort
SELECT - NULLIF ( - 43, - + 27 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT + COUNT( * ) * + 67 * - + 18 AS col2
----
-1206

skipif mysql # not compatible
query I rowsort label-6907
SELECT + COUNT ( * ) * + 67 * - + 18 AS col2
----
-1206

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ALL + 3 * + SUM( DISTINCT + 62 ) AS col2
----
186

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL + 3 * + SUM ( DISTINCT + 62 ) AS col2
----
186

query II rowsort
SELECT ALL 7 + + 20 AS col2, 14 AS col1
----
27
14

query I rowsort
SELECT + ( ( - ( + - 72 ) ) ) * - 71
----
-5112

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT + COUNT( * ) - + MIN( + 17 ) + - 12 + - 3 + - + 10 * + 65 * - 97
----
63019

skipif mysql # not compatible
query I rowsort label-6911
SELECT + COUNT ( * ) - + MIN ( + 17 ) + - 12 + - 3 + - + 10 * + 65 * - 97
----
63019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6912
SELECT ALL 47 + - CAST( COUNT( * ) AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL 47 + - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT + ( - 91 ) + + 67 + + - 74 + - + 34 * - + COUNT( DISTINCT + + 45 ) + 82 * + + 29 * - - 78 * + + 40 + 69 - + 35
----
7419330

skipif mysql # not compatible
query I rowsort label-6913
SELECT + ( - 91 ) + + 67 + + - 74 + - + 34 * - + COUNT ( DISTINCT + + 45 ) + 82 * + + 29 * - - 78 * + + 40 + 69 - + 35
----
7419330

query II rowsort
SELECT - 59 * + 19, - ( + ( - + 26 ) ) AS col1
----
-1121
26

query I rowsort
SELECT DISTINCT 82 + + + ( + 19 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL 41 + + COUNT( * ) * 97 * - + COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL 41 + + COUNT ( * ) * 97 * - + COUNT ( * ) AS col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6917
SELECT - CAST( + MAX( + 18 ) AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-6917
SELECT - CAST ( + MAX ( + 18 ) AS INTEGER )
----
-18

query I rowsort
SELECT ALL 11 + 19 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6919
SELECT 62 DIV - COUNT( * ) - - + 64 + - 23 * 63 - + + 47
----
-1494

skipif mysql # not compatible
query I rowsort label-6919
SELECT 62 / - COUNT ( * ) - - + 64 + - 23 * 63 - + + 47
----
-1494

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT - COUNT( * ) + + COUNT( * ) * 21 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6920
SELECT - COUNT ( * ) + + COUNT ( * ) * 21 AS col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6921
SELECT ALL + COUNT( * ) DIV - 36 + - SUM( DISTINCT - - 87 ) + + 4
----
-83

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + COUNT ( * ) / - 36 + - SUM ( DISTINCT - - 87 ) + + 4
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT - COALESCE ( + 66, - COUNT( ALL 69 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6922
SELECT - COALESCE ( + 66, - COUNT ( ALL 69 ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT COUNT( * ) * + - 29 + 6 + - 31 + - ( - + 25 ) + - 0 - MAX( + - 52 ) * 51 * 7
----
18535

skipif mysql # not compatible
query I rowsort label-6923
SELECT COUNT ( * ) * + - 29 + 6 + - 31 + - ( - + 25 ) + - 0 - MAX ( + - 52 ) * 51 * 7
----
18535

onlyif mysql # DIV for integer division: 
query I rowsort label-6924
SELECT ALL + 90 DIV - 23 col2
----
-3

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL + 90 / - 23 col2
----
-3

query I rowsort
SELECT 19 + + - 98 AS col2
----
-79

query I rowsort
SELECT + 56 * 75 * - + 70 * + 43 * + + 11
----
-139062000

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT + + COUNT( + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-6927
SELECT + + COUNT ( + 10 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6928
SELECT - COUNT( DISTINCT + CASE 44 WHEN 33 THEN 4 DIV - 63 END ) DIV - 75 * MIN( ALL - 14 ) + COUNT( * ) - - ( - + CASE - 0 WHEN - 70 THEN NULL WHEN + 1 * - - 20 THEN - + 82 DIV + 38 + 73 + + 5 ELSE - - 64 END ) - + ( - 34 )
----
-29

skipif mysql # not compatible
query I rowsort label-6928
SELECT - COUNT ( DISTINCT + CASE 44 WHEN 33 THEN 4 / - 63 END ) / - 75 * MIN ( ALL - 14 ) + COUNT ( * ) - - ( - + CASE - 0 WHEN - 70 THEN NULL WHEN + 1 * - - 20 THEN - + 82 / + 38 + 73 + + 5 ELSE - - 64 END ) - + ( - 34 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT + COUNT( + 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6929
SELECT + COUNT ( + 95 ) AS col2
----
1

query I rowsort
SELECT + 22 * + - 94
----
-2068

query I rowsort
SELECT DISTINCT - + 96 col2
----
-96

query I rowsort
SELECT ALL + 5 * - 84 AS col2
----
-420

query I rowsort
SELECT - 88 * + - 92 * 80
----
647680

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT DISTINCT - 72 * + NULLIF ( + - 74, + 94 ) * + ( + - 97 ) * - COUNT( * ) * COUNT( * ) + + + 19 + + - COUNT( * ) col0
----
516834

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - 72 * + NULLIF ( + - 74, + 94 ) * + ( + - 97 ) * - COUNT ( * ) * COUNT ( * ) + + + 19 + + - COUNT ( * ) col0
----
516834

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT - - 65 * + + ( - 80 ) + + 47 + 25 * COUNT( * ) + + 15
----
-5113

skipif mysql # not compatible
query I rowsort label-6935
SELECT - - 65 * + + ( - 80 ) + + 47 + 25 * COUNT ( * ) + + 15
----
-5113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6936
SELECT ALL 68, 9 + - COUNT( * ) * + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
68
NULL

skipif mysql # not compatible
query II rowsort label-6936
SELECT ALL 68, 9 + - COUNT ( * ) * + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
68
NULL

query I rowsort
SELECT 38 + + 70 * 35
----
2488

query II rowsort
SELECT DISTINCT 71, - 20 AS col2
----
71
-20

query II rowsort
SELECT DISTINCT + ( 98 ) + + + 3 + + 92 + 11, 46 AS col1
----
204
46

query I rowsort
SELECT DISTINCT 48 * + 15 AS col0
----
720

query I rowsort
SELECT ALL 7 + + - 58 AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6942
SELECT ALL - CAST( NULL AS SIGNED ) / - + 12 * + 59 * - 9 * - 61, ( - 67 ) AS col0
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-6942
SELECT ALL - CAST ( NULL AS INTEGER ) / - + 12 * + 59 * - 9 * - 61, ( - 67 ) AS col0
----
NULL
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6943
SELECT 67 + + + CAST( 10 AS SIGNED ) * + 39 * + 88 + + 72 DIV ( 24 ) + ( 54 ) col1
----
34444

skipif mysql # not compatible
query I rowsort label-6943
SELECT 67 + + + CAST ( 10 AS INTEGER ) * + 39 * + 88 + + 72 / ( 24 ) + ( 54 ) col1
----
34444

query I rowsort
SELECT ALL + 72 + - 38 * - 80
----
3112

query I rowsort
SELECT DISTINCT 6 + - + 95
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6946
SELECT - 46 AS col0, + COUNT( * ) DIV + + 73 + + 71
----
-46
71

skipif mysql # not compatible
query II rowsort label-6946
SELECT - 46 AS col0, + COUNT ( * ) / + + 73 + + 71
----
-46
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT ALL COUNT( * ) + 54
----
55

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL COUNT ( * ) + 54
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6948
SELECT DISTINCT - 54 + 80 * 94 + 14 + - 6, + COUNT( * ) AS col2
----
7474
1

skipif mysql # not compatible
query II rowsort label-6948
SELECT DISTINCT - 54 + 80 * 94 + 14 + - 6, + COUNT ( * ) AS col2
----
7474
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL 5 - COUNT( * ) + - ( 34 ) + - 72 AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL 5 - COUNT ( * ) + - ( 34 ) + - 72 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT - CASE MIN( ALL 53 ) WHEN + + 92 THEN - 1 WHEN + 22 * + 34 / COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT - CASE MIN ( ALL 53 ) WHEN + + 92 THEN - 1 WHEN + 22 * + 34 / COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6951
SELECT ( + + 67 ) + CAST( NULL AS SIGNED ) * - 20 + + MIN( DISTINCT - CAST( + 65 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT ( + + 67 ) + CAST ( NULL AS INTEGER ) * - 20 + + MIN ( DISTINCT - CAST ( + 65 AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT + 9, 23 - - 31 + - - ( + 38 ) AS col0
----
9
92

query II rowsort
SELECT ALL - - 62 AS col1, + 87
----
62
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6954
SELECT 11 DIV - SUM( DISTINCT 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6954
SELECT 11 / - SUM ( DISTINCT 74 ) AS col0
----
0

query II rowsort
SELECT DISTINCT - 70 AS col0, + 40 col1
----
-70
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6956
SELECT + ( + ( + 17 ) ) + + - CASE + 27 WHEN + 6 * + 21 - - CAST( + 1 AS SIGNED ) / + 90 + + 39 * - 38 * + COUNT( * ) + - - 44 THEN - COUNT( * ) - + + 57 + + + 10 END + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT + ( + ( + 17 ) ) + + - CASE + 27 WHEN + 6 * + 21 - - CAST ( + 1 AS INTEGER ) / + 90 + + 39 * - 38 * + COUNT ( * ) + - - 44 THEN - COUNT ( * ) - + + 57 + + + 10 END + 0 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT 90 DIV - + 63
----
-1

skipif mysql # not compatible
query I rowsort label-6957
SELECT 90 / - + 63
----
-1

query I rowsort
SELECT 34 * 6 AS col2
----
204

query I rowsort
SELECT ( 56 ) * - + 23 * - - 59
----
-75992

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT DISTINCT - 84 DIV - 82 + 90 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT - 84 / - 82 + 90 AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6961
SELECT 13 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-6961
SELECT 13 / 77
----
0

query I rowsort
SELECT ALL 49 + 53
----
102

query I rowsort
SELECT DISTINCT - 57 * + ( - - 24 ) AS col2
----
-1368

query I rowsort
SELECT DISTINCT ( 70 ) + + 70 AS col1
----
140

query I rowsort
SELECT ALL - 39 + + 22 AS col0
----
-17

query II rowsort
SELECT 57 * - 87 AS col2, - 47
----
-4959
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + MAX( DISTINCT + - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6967
SELECT + MAX ( DISTINCT + - 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT - MAX( ( - 42 ) ) col2
----
42

skipif mysql # not compatible
query I rowsort label-6968
SELECT - MAX ( ( - 42 ) ) col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL - 40 + + 68 * + COALESCE ( - COUNT( * ), - 71 * - 1 + + 46 * - 98 )
----
-108

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - 40 + + 68 * + COALESCE ( - COUNT ( * ), - 71 * - 1 + + 46 * - 98 )
----
-108

query I rowsort
SELECT 47 * - + NULLIF ( - 84, 70 )
----
3948

query I rowsort
SELECT 83 * + - 72
----
-5976

query I rowsort
SELECT ALL + 68 + + + 39 + + 77 col0
----
184

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT DISTINCT 91 col1, ( + COALESCE ( - ( - NULLIF ( + 3, - 38 ) ), + ( 77 ), - - COUNT( * ) ) ) AS col1
----
91
3

skipif mysql # not compatible
query II rowsort label-6973
SELECT DISTINCT 91 col1, ( + COALESCE ( - ( - NULLIF ( + 3, - 38 ) ), + ( 77 ), - - COUNT ( * ) ) ) AS col1
----
91
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT DISTINCT - 95 DIV - - 41
----
-2

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT - 95 / - - 41
----
-2

query I rowsort
SELECT ALL - 68 - + 7 * - - 93
----
-719

query II rowsort
SELECT 39 AS col1, 71 + ( - 25 )
----
39
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6977
SELECT DISTINCT COUNT( * ), + ( + 13 ) AS col1
----
1
13

skipif mysql # not compatible
query II rowsort label-6977
SELECT DISTINCT COUNT ( * ), + ( + 13 ) AS col1
----
1
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6978
SELECT - 6 AS col1, CASE - 15 WHEN + + 58 THEN - + 39 / + SUM( 94 ) + - NULLIF ( - 46, - 81 + + 36 ) ELSE NULL END
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-6978
SELECT - 6 AS col1, CASE - 15 WHEN + + 58 THEN - + 39 / + SUM ( 94 ) + - NULLIF ( - 46, - 81 + + 36 ) ELSE NULL END
----
-6
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6979
SELECT - 87 + - CASE + 76 WHEN - MAX( + 88 ) THEN - 54 * - COUNT( * ) + + ( - - COUNT( * ) ) WHEN - NULLIF ( + AVG ( 32 ), COALESCE ( - 28, 48, - 65 + + - 6 * + CAST( NULL AS SIGNED ) * 22 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT - 87 + - CASE + 76 WHEN - MAX ( + 88 ) THEN - 54 * - COUNT ( * ) + + ( - - COUNT ( * ) ) WHEN - NULLIF ( + AVG ( 32 ), COALESCE ( - 28, 48, - 65 + + - 6 * + CAST ( NULL AS INTEGER ) * 22 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 90 * - 99 col1
----
-8910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6981
SELECT - 54 + + MAX( + 52 ) DIV 9 - CAST( + - MIN( DISTINCT CASE + 33 WHEN - 48 THEN - 49 ELSE 94 + - COALESCE ( 69, + 19 ) DIV + + 65 - - 46 END ) AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-6981
SELECT - 54 + + MAX ( + 52 ) / 9 - CAST ( + - MIN ( DISTINCT CASE + 33 WHEN - 48 THEN - 49 ELSE 94 + - COALESCE ( 69, + 19 ) / + + 65 - - 46 END ) AS INTEGER )
----
90

query I rowsort
SELECT + 24 / + + CASE 34 WHEN - 49 THEN ( - ( + 45 ) ) - 61 WHEN - 99 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 68 + + 51 col0
----
-17

query II rowsort
SELECT 18 AS col0, - 80 AS col1
----
18
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6985
SELECT ALL CAST( NULL AS DECIMAL ) - + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL CAST ( NULL AS REAL ) - + 88 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6986
SELECT ALL 71 AS col2, 20 + CASE - 54 WHEN 61 + + NULLIF ( CAST( NULL AS SIGNED ), 23 * - 26 ) + + - 2 * - 8 THEN NULL ELSE + + ( - + COUNT( * ) ) DIV - ( + 41 ) END
----
71
20

skipif mysql # not compatible
query II rowsort label-6986
SELECT ALL 71 AS col2, 20 + CASE - 54 WHEN 61 + + NULLIF ( CAST ( NULL AS INTEGER ), 23 * - 26 ) + + - 2 * - 8 THEN NULL ELSE + + ( - + COUNT ( * ) ) / - ( + 41 ) END
----
71
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL COUNT( - + 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL COUNT ( - + 38 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL - COALESCE ( - + 1, + + 21 ) * + + COALESCE ( + 7, CASE - 11 WHEN - 15 THEN 77 ELSE NULL END * + 17, MAX( 14 ) + - + 6 )
----
7

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL - COALESCE ( - + 1, + + 21 ) * + + COALESCE ( + 7, CASE - 11 WHEN - 15 THEN 77 ELSE NULL END * + 17, MAX ( 14 ) + - + 6 )
----
7

query I rowsort
SELECT + - 27 * + 70 * + + 97 + - 60 * - - 44
----
-185970

query I rowsort
SELECT + - 69 + + - 58 AS col2
----
-127

query I rowsort
SELECT + - ( - + 74 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT 99 AS col1, 33 + + + COUNT( * ) col2
----
99
34

skipif mysql # not compatible
query II rowsort label-6992
SELECT 99 AS col1, 33 + + + COUNT ( * ) col2
----
99
34

query I rowsort
SELECT - 79 * + 32 AS col2
----
-2528

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT - + NULLIF ( - COUNT( * ), 8 ) + ( 87 ) * - - 39 * 36 + - 77 AS col2
----
122072

skipif mysql # not compatible
query I rowsort label-6994
SELECT - + NULLIF ( - COUNT ( * ), 8 ) + ( 87 ) * - - 39 * 36 + - 77 AS col2
----
122072

onlyif mysql # DIV for integer division: 
query II rowsort label-6995
SELECT + - 95 AS col1, + 34 DIV + 45
----
-95
0

skipif mysql # not compatible
query II rowsort label-6995
SELECT + - 95 AS col1, + 34 / + 45
----
-95
0

query II rowsort
SELECT + - 26 col2, 36 AS col1
----
-26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ALL COUNT( * ) * - 78 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL COUNT ( * ) * - 78 AS col1
----
-78

query II rowsort
SELECT DISTINCT + + 41 AS col2, 30 * - - 22 * + - 52
----
41
-34320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6999
SELECT ALL - + 63 * - 71 + ( - COUNT( * ) ) * CASE + 88 WHEN + COUNT( * ) THEN NULL WHEN + 30 THEN + 67 ELSE + - 64 END + + + 75 col2, + 35 DIV + + 62 AS col2
----
4612
0

skipif mysql # not compatible
query II rowsort label-6999
SELECT ALL - + 63 * - 71 + ( - COUNT ( * ) ) * CASE + 88 WHEN + COUNT ( * ) THEN NULL WHEN + 30 THEN + 67 ELSE + - 64 END + + + 75 col2, + 35 / + + 62 AS col2
----
4612
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7000
SELECT ALL + 20 * + CASE - COUNT( * ) WHEN - + 1 * - + NULLIF ( - NULLIF ( - 37, - 71 ), 4 + - ( - 35 ) ) + - MIN( + 17 ) - NULLIF ( COUNT( * ), + - 58 ) * + 89 THEN - - CAST( 83 AS SIGNED ) WHEN + 29 THEN NULL END + + 94 + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL + 20 * + CASE - COUNT ( * ) WHEN - + 1 * - + NULLIF ( - NULLIF ( - 37, - 71 ), 4 + - ( - 35 ) ) + - MIN ( + 17 ) - NULLIF ( COUNT ( * ), + - 58 ) * + 89 THEN - - CAST ( 83 AS INTEGER ) WHEN + 29 THEN NULL END + + 94 + - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT + NULLIF ( ( ( + - 72 ) ), - COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-7001
SELECT + NULLIF ( ( ( + - 72 ) ), - COUNT ( * ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL NULLIF ( 80, - + 34 ) * - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL NULLIF ( 80, - + 34 ) * - COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7003
SELECT + COUNT( * ) DIV + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7003
SELECT + COUNT ( * ) / + 40 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7004
SELECT + 72 + 69 AS col1, - COUNT( + CASE - 79 WHEN + + ( 75 ) THEN - - 97 - 51 + + - 43 + - - 42 END ) DIV + + 8
----
141
0

skipif mysql # not compatible
query II rowsort label-7004
SELECT + 72 + 69 AS col1, - COUNT ( + CASE - 79 WHEN + + ( 75 ) THEN - - 97 - 51 + + - 43 + - - 42 END ) / + + 8
----
141
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7005
SELECT CASE + CASE - - 21 WHEN 74 THEN NULL WHEN CAST( NULL AS DECIMAL ) + - COALESCE ( - 33, + 58 + + + 14 * - 65 ) + - - 47 + - CASE - 77 WHEN + 87 + + CAST( NULL AS SIGNED ) * 5 - + 23 / + + CAST( NULL AS SIGNED ) - 98 + + 27 + - 20 * + NULLIF ( COALESCE ( - - 37, - - 17 + - SUM( 75 ) ), - COUNT( * ) ) * 8 THEN 90 * + 27 WHEN + COUNT( * ) * - 95 THEN NULL WHEN + 93 * 72 + 90 THEN NULL END * COUNT( 71 ) THEN + 59 + 46 END WHEN + 67 * - 79 THEN NULL WHEN + 95 THEN ( 49 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT CASE + CASE - - 21 WHEN 74 THEN NULL WHEN CAST ( NULL AS REAL ) + - COALESCE ( - 33, + 58 + + + 14 * - 65 ) + - - 47 + - CASE - 77 WHEN + 87 + + CAST ( NULL AS INTEGER ) * 5 - + 23 / + + CAST ( NULL AS INTEGER ) - 98 + + 27 + - 20 * + NULLIF ( COALESCE ( - - 37, - - 17 + - SUM ( 75 ) ), - COUNT ( * ) ) * 8 THEN 90 * + 27 WHEN + COUNT ( * ) * - 95 THEN NULL WHEN + 93 * 72 + 90 THEN NULL END * COUNT ( 71 ) THEN + 59 + 46 END WHEN + 67 * - 79 THEN NULL WHEN + 95 THEN ( 49 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT + 1 + + COUNT( * ) + - 21 + 28 + - 53 * + + 99 * + 16 * - 10 * - COUNT( * ) * 58 AS col1
----
-48692151

skipif mysql # not compatible
query I rowsort label-7006
SELECT + 1 + + COUNT ( * ) + - 21 + 28 + - 53 * + + 99 * + 16 * - 10 * - COUNT ( * ) * 58 AS col1
----
-48692151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT COUNT( * ) * 87 + + ( 93 ) + - 52 / + ( 8 ) - - COUNT( * ) * - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT COUNT ( * ) * 87 + + ( 93 ) + - 52 / + ( 8 ) - - COUNT ( * ) * - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - SUM( + - 25 ) * 15 - + 66 + + NULLIF ( - - 23, - + 38 ) * + 95 AS col1
----
2494

skipif mysql # not compatible
query I rowsort label-7008
SELECT - SUM ( + - 25 ) * 15 - + 66 + + NULLIF ( - - 23, - + 38 ) * + 95 AS col1
----
2494

query I rowsort
SELECT ALL + NULLIF ( 0, - + 59 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT COUNT( ALL - 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7010
SELECT COUNT ( ALL - 82 ) AS col0
----
1

query I rowsort
SELECT ALL - 9 * + + 94 AS col2
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - COUNT( * ) + - + 20 * 56 + - ( MAX( DISTINCT - + ( + 51 ) ) ) + + - 47
----
-1117

skipif mysql # not compatible
query I rowsort label-7012
SELECT - COUNT ( * ) + - + 20 * 56 + - ( MAX ( DISTINCT - + ( + 51 ) ) ) + + - 47
----
-1117

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT COUNT( ALL - 39 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7013
SELECT COUNT ( ALL - 39 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT + COUNT( DISTINCT - + 0 ) * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7014
SELECT + COUNT ( DISTINCT - + 0 ) * + 0 AS col1
----
0

query I rowsort
SELECT - 76 + + 77 * + 22 col0
----
1618

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL + COUNT( * ) * + 34 * 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + COUNT ( * ) * + 34 * 0 col2
----
0

query I rowsort
SELECT - 93 * - 7
----
651

query I rowsort
SELECT DISTINCT + 91 * + - 48 * 54 * 72
----
-16982784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7019
SELECT ALL - COALESCE ( + 47, + 83 * ( - + 21 ) + - NULLIF ( - CAST( NULL AS SIGNED ), + NULLIF ( + COUNT( ALL + 34 ), 41 ) * + 70 + + COUNT( * ) + + - 20 ) + + 73 * - 0 * - CAST( + 99 AS SIGNED ) + - + 68 + - 63 + 15 - + 43 * 23, - NULLIF ( + 11, + 32 * + + 21 * - COUNT( * ) ) DIV + COUNT( * ) + 36 * 83 )
----
-47

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL - COALESCE ( + 47, + 83 * ( - + 21 ) + - NULLIF ( - CAST ( NULL AS INTEGER ), + NULLIF ( + COUNT ( ALL + 34 ), 41 ) * + 70 + + COUNT ( * ) + + - 20 ) + + 73 * - 0 * - CAST ( + 99 AS INTEGER ) + - + 68 + - 63 + 15 - + 43 * 23, - NULLIF ( + 11, + 32 * + + 21 * - COUNT ( * ) ) / + COUNT ( * ) + 36 * 83 )
----
-47

query I rowsort
SELECT - + 22 * 41 AS col0
----
-902

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7021
SELECT DISTINCT + CAST( - 39 AS SIGNED ) AS col0, 42
----
-39
42

skipif mysql # not compatible
query II rowsort label-7021
SELECT DISTINCT + CAST ( - 39 AS INTEGER ) AS col0, 42
----
-39
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7022
SELECT ALL + 78 DIV + 19
----
4

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL + 78 / + 19
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7023
SELECT - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - + 24 * 94 * - MAX( DISTINCT + 52 ) + - + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 24 * 94 * - MAX ( DISTINCT + 52 ) + - + 51 AS col0
----
NULL

query I rowsort
SELECT - 11 * - - 52 * 63
----
-36036

onlyif mysql # aggregate syntax: 
query II rowsort label-7025
SELECT - + 23 * + COUNT( * ) col1, - COUNT( * )
----
-23
-1

skipif mysql # not compatible
query II rowsort label-7025
SELECT - + 23 * + COUNT ( * ) col1, - COUNT ( * )
----
-23
-1

query I rowsort
SELECT DISTINCT + 84 + ( + - 81 ) + 30 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7027
SELECT - + COUNT( * ) * + 35 col2, + 91 + 11 AS col2
----
-35
102

skipif mysql # not compatible
query II rowsort label-7027
SELECT - + COUNT ( * ) * + 35 col2, + 91 + 11 AS col2
----
-35
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT + COALESCE ( 85, COUNT( * ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7028
SELECT + COALESCE ( 85, COUNT ( * ) ) AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT DISTINCT + - 19 DIV - 19 + + + 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT + - 19 / - 19 + + + 67 AS col2
----
68

query I rowsort
SELECT - ( + 98 ) + + + CASE + - 86 WHEN - - 24 THEN + 53 / 65 * + - 39 * - 96 WHEN - - 76 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT + 27 + CASE + 96 WHEN + + 72 * + - 11 * - CASE + 7 WHEN + 56 * 17 / + - 2 THEN NULL WHEN - 16 * 29 + ( 9 ) THEN NULL WHEN + 76 THEN + - 32 * + NULLIF ( 33, 58 + COALESCE ( - 50, + - 23 * - + 61 / 6 * + - 50, 0 + + MAX( + 61 ) + 61 ) ) * 60 END - - 60 THEN + 32 END * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT + 27 + CASE + 96 WHEN + + 72 * + - 11 * - CASE + 7 WHEN + 56 * 17 / + - 2 THEN NULL WHEN - 16 * 29 + ( 9 ) THEN NULL WHEN + 76 THEN + - 32 * + NULLIF ( 33, 58 + COALESCE ( - 50, + - 23 * - + 61 / 6 * + - 50, 0 + + MAX ( + 61 ) + 61 ) ) * 60 END - - 60 THEN + 32 END * 45 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7032
SELECT + COUNT( DISTINCT - + 47 ) * 77 - - - CAST( NULL AS SIGNED ) + - 1 * + 85, 45 * - + COUNT( * ) AS col1
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-7032
SELECT + COUNT ( DISTINCT - + 47 ) * 77 - - - CAST ( NULL AS INTEGER ) + - 1 * + 85, 45 * - + COUNT ( * ) AS col1
----
NULL
-45

query I rowsort
SELECT + ( + 85 ) AS col1
----
85

query I rowsort
SELECT - 2 * - 86 * + COALESCE ( - 17, + 54 )
----
-2924

query I rowsort
SELECT + ( - 37 ) AS col0
----
-37

query II rowsort
SELECT ( + - ( - 17 ) ) AS col1, + 36 + - 24
----
17
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT DISTINCT ( + 41 ) DIV - 94 + + 24 * + 53 + + + 49
----
1321

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT ( + 41 ) / - 94 + + 24 * + 53 + + + 49
----
1321

query I rowsort
SELECT ALL 48 * + 98 col2
----
4704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7039
SELECT + ( - 46 ) + - CAST( - 99 AS SIGNED ) * - + 91 + - ( - 73 ) * + 3 - - CASE - - 20 WHEN + 2 * - + 29 THEN ( 22 ) ELSE NULL END * 1 * 80, + 16 * - SUM( DISTINCT - 10 ) col1
----
NULL
160

skipif mysql # not compatible
query II rowsort label-7039
SELECT + ( - 46 ) + - CAST ( - 99 AS INTEGER ) * - + 91 + - ( - 73 ) * + 3 - - CASE - - 20 WHEN + 2 * - + 29 THEN ( 22 ) ELSE NULL END * 1 * 80, + 16 * - SUM ( DISTINCT - 10 ) col1
----
NULL
160

query I rowsort
SELECT + COALESCE ( + 82, - ( + 98 ) ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7041
SELECT DISTINCT + COUNT( * ) AS col0, + 37 * + + 46 col0
----
1
1702

skipif mysql # not compatible
query II rowsort label-7041
SELECT DISTINCT + COUNT ( * ) AS col0, + 37 * + + 46 col0
----
1
1702

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7042
SELECT 86 - - - COUNT( * ) DIV - 15, + 98 * + 23 AS col2
----
86
2254

skipif mysql # not compatible
query II rowsort label-7042
SELECT 86 - - - COUNT ( * ) / - 15, + 98 * + 23 AS col2
----
86
2254

query I rowsort
SELECT DISTINCT 47 * + + 61
----
2867

query I rowsort
SELECT 63 - + 86 AS col2
----
-23

query III rowsort
SELECT - 97 AS col1, + 56 + 82 + - + 83, + ( + 30 ) col1
----
-97
55
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7046
SELECT ALL 53 AS col2, SUM( ALL + + ( + 85 ) ) AS col2
----
53
85

skipif mysql # not compatible
query II rowsort label-7046
SELECT ALL 53 AS col2, SUM ( ALL + + ( + 85 ) ) AS col2
----
53
85

query I rowsort
SELECT 91 * 35 AS col0
----
3185

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT ALL 7, + ( CASE - 80 WHEN + MIN( + COALESCE ( + 15, - 80 ) ) THEN 16 END ) AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-7048
SELECT ALL 7, + ( CASE - 80 WHEN + MIN ( + COALESCE ( + 15, - 80 ) ) THEN 16 END ) AS col1
----
7
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7049
SELECT 98 DIV - + 28
----
-3

skipif mysql # not compatible
query I rowsort label-7049
SELECT 98 / - + 28
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT + 50 * - + ( + COUNT( DISTINCT + ( 80 ) ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7050
SELECT + 50 * - + ( + COUNT ( DISTINCT + ( 80 ) ) ) AS col1
----
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7051
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, 53 AS col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-7051
SELECT ALL CAST ( NULL AS REAL ) AS col1, 53 AS col0
----
NULL
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7052
SELECT CAST( - CASE COUNT( * ) WHEN + + 92 - - - COUNT( * ) THEN - 21 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT CAST ( - CASE COUNT ( * ) WHEN + + 92 - - - COUNT ( * ) THEN - 21 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7053
SELECT DISTINCT + 80 + - COALESCE ( - + 40, + COALESCE ( + - COALESCE ( - ( - + 38 ), + 51 + - 57, COUNT( * ) * - + 80 * 14 ), - - 5 + - COUNT( * ) - + 64, - - 79 DIV - - NULLIF ( - 18, - 54 ) * ( + 57 ) + + CAST( + 20 AS SIGNED ) + 45 * 96 ) )
----
120

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT + 80 + - COALESCE ( - + 40, + COALESCE ( + - COALESCE ( - ( - + 38 ), + 51 + - 57, COUNT ( * ) * - + 80 * 14 ), - - 5 + - COUNT ( * ) - + 64, - - 79 / - - NULLIF ( - 18, - 54 ) * ( + 57 ) + + CAST ( + 20 AS INTEGER ) + 45 * 96 ) )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT - - MAX( - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7054
SELECT - - MAX ( - 4 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7055
SELECT NULLIF ( + 65, + - CAST( - - 61 AS SIGNED ) / 32 - + + ( - 97 ) + - COUNT( * ) * + - 28 * + - COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-7055
SELECT NULLIF ( + 65, + - CAST ( - - 61 AS INTEGER ) / 32 - + + ( - 97 ) + - COUNT ( * ) * + - 28 * + - COUNT ( * ) )
----
65

query I rowsort
SELECT ALL 69 + - 92 AS col1
----
-23

query I rowsort
SELECT - 39 + 59 AS col2
----
20

query I rowsort
SELECT - + ( 45 ) AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7059
SELECT + 66 + - 88 * CAST( + - 44 AS SIGNED ) DIV + NULLIF ( - + 4, 51 ) - ( 16 ) col0
----
-918

skipif mysql # not compatible
query I rowsort label-7059
SELECT + 66 + - 88 * CAST ( + - 44 AS INTEGER ) / + NULLIF ( - + 4, 51 ) - ( 16 ) col0
----
-918

query I rowsort
SELECT ALL - 86 + 27
----
-59

query I rowsort
SELECT DISTINCT - + 12 + + 29 AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7062
SELECT ALL 29 col1, - COUNT( * ) + - 38 * MAX( DISTINCT - 30 ) DIV 67 + 5
----
29
21

skipif mysql # not compatible
query II rowsort label-7062
SELECT ALL 29 col1, - COUNT ( * ) + - 38 * MAX ( DISTINCT - 30 ) / 67 + 5
----
29
21

query I rowsort
SELECT DISTINCT + 3 + - 75 + + - ( + + 16 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - MIN( DISTINCT - - 17 ) * - 98
----
1666

skipif mysql # not compatible
query I rowsort label-7064
SELECT - MIN ( DISTINCT - - 17 ) * - 98
----
1666

query I rowsort
SELECT ALL + 53 + + 6 + 70
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7066
SELECT 51 + - CAST( NULL AS SIGNED ) - - 73 - 86 + + AVG ( + 99 ) * - 19 + - 11 + + + MIN( DISTINCT 32 ) * + CASE + 0 WHEN 45 THEN - - COUNT( - 38 ) WHEN + 15 - COUNT( * ) THEN NULL END + - 84 + - COUNT( * ) + + COUNT( * ) + + MAX( DISTINCT 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT 51 + - CAST ( NULL AS INTEGER ) - - 73 - 86 + + AVG ( + 99 ) * - 19 + - 11 + + + MIN ( DISTINCT 32 ) * + CASE + 0 WHEN 45 THEN - - COUNT ( - 38 ) WHEN + 15 - COUNT ( * ) THEN NULL END + - 84 + - COUNT ( * ) + + COUNT ( * ) + + MAX ( DISTINCT 49 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT COUNT( * ) DIV + 98 * + 11 - 23 * COALESCE ( + 70, + - 8, - - 4 )
----
-1610

skipif mysql # not compatible
query I rowsort label-7067
SELECT COUNT ( * ) / + 98 * + 11 - 23 * COALESCE ( + 70, + - 8, - - 4 )
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL - NULLIF ( - ( - 44 ), + 72 ) * + + 34 + COUNT( * ) + + SUM( DISTINCT - 14 ) * - + 56 * 54
----
40841

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL - NULLIF ( - ( - 44 ), + 72 ) * + + 34 + COUNT ( * ) + + SUM ( DISTINCT - 14 ) * - + 56 * 54
----
40841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT ALL + 54 - + CASE + 92 WHEN + COUNT( DISTINCT 63 ) - - 18 - - 35 * - 28 + - - 36 THEN NULL WHEN - - COALESCE ( AVG ( + CAST( 0 AS SIGNED ) ), 97, 14 ) THEN + SUM( - + 86 ) ELSE 78 END
----
-24

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL + 54 - + CASE + 92 WHEN + COUNT ( DISTINCT 63 ) - - 18 - - 35 * - 28 + - - 36 THEN NULL WHEN - - COALESCE ( AVG ( + CAST ( 0 AS INTEGER ) ), 97, 14 ) THEN + SUM ( - + 86 ) ELSE 78 END
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL - 54 - 87 + + + 58 * + SUM( - 12 ) - + ( + 99 ) AS col0
----
-936

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL - 54 - 87 + + + 58 * + SUM ( - 12 ) - + ( + 99 ) AS col0
----
-936

onlyif mysql # aggregate syntax: 
query II rowsort label-7071
SELECT ALL - ( - 87 ) AS col0, + NULLIF ( CASE COUNT( * ) WHEN 75 * - 65 * 75 * 6 + + 73 THEN + 55 END, + 79 )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-7071
SELECT ALL - ( - 87 ) AS col0, + NULLIF ( CASE COUNT ( * ) WHEN 75 * - 65 * 75 * 6 + + 73 THEN + 55 END, + 79 )
----
87
NULL

query I rowsort
SELECT 72 + - + ( - 26 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7073
SELECT 76 * + ( MIN( + 23 ) ) AS col1, 83
----
1748
83

skipif mysql # not compatible
query II rowsort label-7073
SELECT 76 * + ( MIN ( + 23 ) ) AS col1, 83
----
1748
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT ( + + CASE + SUM( + - ( - 72 ) ) WHEN AVG ( DISTINCT + 50 ) - + ( 95 ) + 36 * + CASE + + 6 WHEN + + AVG ( + 17 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE + 36 END + - + 45 THEN + 60 + - 47 ELSE 14 + + 80 * + 0 * - 42 + 77 + - - 49 * + ( 37 ) END ) * + 39
----
74256

skipif mysql # not compatible
query I rowsort label-7074
SELECT ( + + CASE + SUM ( + - ( - 72 ) ) WHEN AVG ( DISTINCT + 50 ) - + ( 95 ) + 36 * + CASE + + 6 WHEN + + AVG ( + 17 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE + 36 END + - + 45 THEN + 60 + - 47 ELSE 14 + + 80 * + 0 * - 42 + 77 + - - 49 * + ( 37 ) END ) * + 39
----
74256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7075
SELECT ALL 29 * CASE - COALESCE ( COUNT( * ), 19 * - 25 / - 85 * + - 44 * + 38 / 96, + 34 ) WHEN COALESCE ( - NULLIF ( - CAST( - 66 AS SIGNED ), + 81 / - + CAST( NULL AS SIGNED ) ), 0 + + - COUNT( * ) * - SUM( DISTINCT + 14 ), CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) ) THEN - 84 * - 96 + + 35 + - 3 ELSE ( + NULLIF ( + 23, - ( 64 ) ) ) + 79 / - CAST( + CAST( NULL AS SIGNED ) * ( 90 * 80 ) + ( + 47 + ( - 15 ) ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL 29 * CASE - COALESCE ( COUNT ( * ), 19 * - 25 / - 85 * + - 44 * + 38 / 96, + 34 ) WHEN COALESCE ( - NULLIF ( - CAST ( - 66 AS INTEGER ), + 81 / - + CAST ( NULL AS INTEGER ) ), 0 + + - COUNT ( * ) * - SUM ( DISTINCT + 14 ), CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) ) THEN - 84 * - 96 + + 35 + - 3 ELSE ( + NULLIF ( + 23, - ( 64 ) ) ) + 79 / - CAST ( + CAST ( NULL AS INTEGER ) * ( 90 * 80 ) + ( + 47 + ( - 15 ) ) AS INTEGER ) END
----
NULL

query II rowsort
SELECT 7 + - 8 AS col2, - 64 AS col2
----
-1
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7077
SELECT DISTINCT - 74 DIV - COUNT( * ) AS col0, 30
----
74
30

skipif mysql # not compatible
query II rowsort label-7077
SELECT DISTINCT - 74 / - COUNT ( * ) AS col0, 30
----
74
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7078
SELECT ALL 1 + ( + 30 ) + + + 32 DIV - 45
----
31

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL 1 + ( + 30 ) + + + 32 / - 45
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT CASE WHEN NULL IS NULL THEN - 81 WHEN NOT NULL IS NOT NULL THEN NULL END * COUNT( * ) + + MAX( ALL 33 ) * - 52 AS col1
----
-1797

skipif mysql # not compatible
query I rowsort label-7079
SELECT CASE WHEN NULL IS NULL THEN - 81 WHEN NOT NULL IS NOT NULL THEN NULL END * COUNT ( * ) + + MAX ( ALL 33 ) * - 52 AS col1
----
-1797

query I rowsort
SELECT ALL - 51 + 44
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT + 37 * - - COALESCE ( + COALESCE ( - - NULLIF ( + 72, - COUNT( * ) ), + + 80 + - - 30 + - 7 DIV COUNT( * ) * - - 63, - + 23 + - 0 ), - COUNT( * ) )
----
2664

skipif mysql # not compatible
query I rowsort label-7081
SELECT + 37 * - - COALESCE ( + COALESCE ( - - NULLIF ( + 72, - COUNT ( * ) ), + + 80 + - - 30 + - 7 / COUNT ( * ) * - - 63, - + 23 + - 0 ), - COUNT ( * ) )
----
2664

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT NULLIF ( + 69, + - SUM( + 16 ) + 15 ) + 84 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-7082
SELECT NULLIF ( + 69, + - SUM ( + 16 ) + 15 ) + 84 AS col0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7083
SELECT CAST( NULL AS SIGNED ) * 77 * - + 16 * + CAST( ( 68 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7083
SELECT CAST ( NULL AS INTEGER ) * 77 * - + 16 * + CAST ( ( 68 ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 15 + + 40
----
25

query I rowsort
SELECT ALL 3 + 50
----
53

query I rowsort
SELECT ALL + 44 * + + 68 AS col1
----
2992

onlyif mysql # aggregate syntax: 
query II rowsort label-7087
SELECT ALL + 74 - MAX( ( - - 50 ) ) AS col1, 77 AS col2
----
24
77

skipif mysql # not compatible
query II rowsort label-7087
SELECT ALL + 74 - MAX ( ( - - 50 ) ) AS col1, 77 AS col2
----
24
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT COUNT( ALL + 91 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7088
SELECT COUNT ( ALL + 91 ) AS col0
----
1

query I rowsort
SELECT + 53 * - 55 AS col0
----
-2915

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT NULLIF ( 11, + + 37 * + NULLIF ( COALESCE ( + COUNT( * ), + 96 * + SUM( 76 ) ), - - 56 + - 98 ) + - + 98 * 99 ) * + 17 AS col0, 52
----
187
52

skipif mysql # not compatible
query II rowsort label-7090
SELECT NULLIF ( 11, + + 37 * + NULLIF ( COALESCE ( + COUNT ( * ), + 96 * + SUM ( 76 ) ), - - 56 + - 98 ) + - + 98 * 99 ) * + 17 AS col0, 52
----
187
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT - SUM( DISTINCT - CASE 84 WHEN + 51 THEN + 27 ELSE NULL END ) + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT - SUM ( DISTINCT - CASE 84 WHEN + 51 THEN + 27 ELSE NULL END ) + + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT - MIN( + 38 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7092
SELECT - MIN ( + 38 ) AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT CASE - - 20 WHEN + + 96 * - 29 + - - 64 + + 22 * + 52 * + CAST( NULL AS SIGNED ) THEN - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT CASE - - 20 WHEN + + 96 * - 29 + - - 64 + + 22 * + 52 * + CAST ( NULL AS INTEGER ) THEN - 38 END
----
NULL

query I rowsort
SELECT ALL 19 * 82 AS col1
----
1558

query I rowsort
SELECT 67 * - 61
----
-4087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT ALL 37 * + CAST( + 56 AS SIGNED ) * - 18
----
-37296

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL 37 * + CAST ( + 56 AS INTEGER ) * - 18
----
-37296

query I rowsort
SELECT ALL - NULLIF ( - 39, 27 ) AS col0
----
39

query I rowsort
SELECT COALESCE ( - 33, + 77, + 13 ) AS col2
----
-33

query I rowsort
SELECT - ( 15 ) + + 0 AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT 14 * - - 56 + + + 64 / - 26 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT 14 * - - 56 + + + 64 / - 26 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT ALL + 27, COUNT( * ) + - - 83 AS col0
----
27
84

skipif mysql # not compatible
query II rowsort label-7101
SELECT ALL + 27, COUNT ( * ) + - - 83 AS col0
----
27
84

query II rowsort
SELECT ALL + COALESCE ( + 41, + 4 ), 23 col0
----
41
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT COUNT( DISTINCT - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-7103
SELECT COUNT ( DISTINCT - 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT + 47 - COUNT( * ) col1
----
46

skipif mysql # not compatible
query I rowsort label-7104
SELECT + 47 - COUNT ( * ) col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT - 53 DIV + 43 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7105
SELECT - 53 / + 43 AS col0
----
-1

query I rowsort
SELECT ALL - 50 * - - 62
----
-3100

onlyif mysql # aggregate syntax: 
query II rowsort label-7107
SELECT COUNT( * ) AS col0, 13 AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-7107
SELECT COUNT ( * ) AS col0, 13 AS col0
----
1
13

query II rowsort
SELECT + 93 AS col0, 19 col2
----
93
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT ALL + MIN( - 8 ) * - - 24 + 49 * - 79 AS col2
----
-4063

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL + MIN ( - 8 ) * - - 24 + 49 * - 79 AS col2
----
-4063

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT + COALESCE ( 17, SUM( DISTINCT 32 ), + 54 )
----
17

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + COALESCE ( 17, SUM ( DISTINCT 32 ), + 54 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT ALL 34 * + 68 + + + ( - + COALESCE ( - 63, - 40 + - - 13 DIV - 90, - + 20, - 10 ) ) + + 71
----
2446

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL 34 * + 68 + + + ( - + COALESCE ( - 63, - 40 + - - 13 / - 90, - + 20, - 10 ) ) + + 71
----
2446

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7112
SELECT CASE + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + - CAST( NULL AS DECIMAL ) THEN + 30 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT CASE + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + - CAST ( NULL AS REAL ) THEN + 30 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + ( + + ( 84 ) ) * - ( + 42 ) - - 31 col1
----
-3497

query II rowsort
SELECT + + 92 AS col0, + 89 * - ( - 65 ) * - + 94 AS col1
----
92
-543790

query II rowsort
SELECT - 46 AS col2, 40 AS col2
----
-46
40

query I rowsort
SELECT - + 33 * - + 68 AS col2
----
2244

query I rowsort
SELECT DISTINCT - ( - 45 ) AS col0
----
45

query I rowsort
SELECT - - 58 - 50 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT DISTINCT MAX( ALL + 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT MAX ( ALL + 64 ) AS col2
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7120
SELECT DISTINCT + - 29 + + CAST( + 76 AS SIGNED ) DIV + 49
----
-28

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT + - 29 + + CAST ( + 76 AS INTEGER ) / + 49
----
-28

query I rowsort
SELECT - + 98 + + - 77 * 36 AS col1
----
-2870

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT - 37 + - + 91 - - ( + COUNT( * ) ) AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-7122
SELECT - 37 + - + 91 - - ( + COUNT ( * ) ) AS col2
----
-127

query I rowsort
SELECT + 7 * 86
----
602

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT + MIN( ALL 30 )
----
30

skipif mysql # not compatible
query I rowsort label-7124
SELECT + MIN ( ALL 30 )
----
30

query I rowsort
SELECT + 64 + - + 41
----
23

query I rowsort
SELECT ALL 25 - + 52 AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7127
SELECT ALL CAST( + COUNT( + 35 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL CAST ( + COUNT ( + 35 ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT + 7 + - 15 - - 5 DIV + 59 + + 98 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7128
SELECT + 7 + - 15 - - 5 / + 59 + + 98 AS col0
----
90

query II rowsort
SELECT ALL + 31 col2, 72 AS col2
----
31
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7130
SELECT + COALESCE ( - - CASE 63 WHEN - - 94 + COUNT( * ) THEN 84 WHEN - COUNT( * ) THEN + COUNT( * ) * - 60 ELSE - - 95 END, + + 35 DIV + COUNT( * ) * + 35 + MIN( DISTINCT - 60 ) + + + ( + 65 ) ) AS col1, 65
----
95
65

skipif mysql # not compatible
query II rowsort label-7130
SELECT + COALESCE ( - - CASE 63 WHEN - - 94 + COUNT ( * ) THEN 84 WHEN - COUNT ( * ) THEN + COUNT ( * ) * - 60 ELSE - - 95 END, + + 35 / + COUNT ( * ) * + 35 + MIN ( DISTINCT - 60 ) + + + ( + 65 ) ) AS col1, 65
----
95
65

query I rowsort
SELECT + 77 * 54
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT + CASE 43 WHEN + 25 + - - 33 + + + COUNT( * ) * 75 THEN NULL WHEN - + 53 THEN + 54 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT + CASE 43 WHEN + 25 + - - 33 + + + COUNT ( * ) * 75 THEN NULL WHEN - + 53 THEN + 54 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT ( MAX( + - ( + - COALESCE ( 27, + 58, CASE + 83 WHEN + - ( - 26 ) THEN 61 WHEN + CAST( NULL AS SIGNED ) THEN + + 40 END ) ) ) ) col1
----
27

skipif mysql # not compatible
query I rowsort label-7133
SELECT ( MAX ( + - ( + - COALESCE ( 27, + 58, CASE + 83 WHEN + - ( - 26 ) THEN 61 WHEN + CAST ( NULL AS INTEGER ) THEN + + 40 END ) ) ) ) col1
----
27

query I rowsort
SELECT ( 64 ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT DISTINCT + ( - MIN( DISTINCT - - 93 ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT + ( - MIN ( DISTINCT - - 93 ) ) AS col0
----
-93

query I rowsort
SELECT - 11 * + 71 AS col2
----
-781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7137
SELECT ALL - 90 * - 92 + - COUNT( + - 39 ) + CASE - - 28 WHEN 50 + + 56 * 73 - - 25 THEN NULL WHEN 86 - 2 THEN - 90 DIV + 28 - - + 98 - + 45 ELSE + + 77 DIV - ( - 62 ) END * + COUNT( * ) - + 11 * - 60
----
8940

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL - 90 * - 92 + - COUNT ( + - 39 ) + CASE - - 28 WHEN 50 + + 56 * 73 - - 25 THEN NULL WHEN 86 - 2 THEN - 90 / + 28 - - + 98 - + 45 ELSE + + 77 / - ( - 62 ) END * + COUNT ( * ) - + 11 * - 60
----
8940

query I rowsort
SELECT + 99 + - - 27 AS col0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7139
SELECT + CAST( 29 AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7139
SELECT + CAST ( 29 AS INTEGER ) AS col2
----
29

query II rowsort
SELECT + 92 + + 82, + 89 AS col0
----
174
89

query III rowsort
SELECT ALL + - 36 AS col2, 86 * + 94 - - 48 AS col2, - 61
----
-36
8132
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT + 23 * + MIN( DISTINCT 32 ) * + - 19 + - + 32 + + + 59 + + + MAX( DISTINCT 96 )
----
-13861

skipif mysql # not compatible
query I rowsort label-7142
SELECT + 23 * + MIN ( DISTINCT 32 ) * + - 19 + - + 32 + + + 59 + + + MAX ( DISTINCT 96 )
----
-13861

query I rowsort
SELECT - 75 - + 50
----
-125

query I rowsort
SELECT DISTINCT + + ( - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT - - 62 * COUNT( * ) + + 82 AS col2
----
144

skipif mysql # not compatible
query I rowsort label-7145
SELECT - - 62 * COUNT ( * ) + + 82 AS col2
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-7146
SELECT ALL + + 2 AS col2, + 20 + - ( + CASE + + 41 WHEN - - 25 * 44 THEN 18 + 46 * - 39 WHEN - + 28 THEN NULL ELSE - COUNT( * ) END )
----
2
21

skipif mysql # not compatible
query II rowsort label-7146
SELECT ALL + + 2 AS col2, + 20 + - ( + CASE + + 41 WHEN - - 25 * 44 THEN 18 + 46 * - 39 WHEN - + 28 THEN NULL ELSE - COUNT ( * ) END )
----
2
21

query II rowsort
SELECT ALL + 20 AS col0, + 68 AS col0
----
20
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7148
SELECT - - COUNT( * ) + - COUNT( * ) AS col2, 16 * COALESCE ( COUNT( * ), 81 ) - - + 70
----
0
86

skipif mysql # not compatible
query II rowsort label-7148
SELECT - - COUNT ( * ) + - COUNT ( * ) AS col2, 16 * COALESCE ( COUNT ( * ), 81 ) - - + 70
----
0
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7149
SELECT ( - + CAST( + 66 AS SIGNED ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-7149
SELECT ( - + CAST ( + 66 AS INTEGER ) ) AS col0
----
-66

query I rowsort
SELECT - 47 * - 51 + - 45 + - - 39 AS col2
----
2391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7151
SELECT - ( CAST( NULL AS SIGNED ) ) + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT - ( CAST ( NULL AS INTEGER ) ) + 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT - 96 * + COALESCE ( + 27, COUNT( * ) * COUNT( * ) ) * + + 51
----
-132192

skipif mysql # not compatible
query I rowsort label-7152
SELECT - 96 * + COALESCE ( + 27, COUNT ( * ) * COUNT ( * ) ) * + + 51
----
-132192

onlyif mysql # aggregate syntax: 
query II rowsort label-7153
SELECT ALL 82, MIN( - 13 ) * - 50 AS col2
----
82
650

skipif mysql # not compatible
query II rowsort label-7153
SELECT ALL 82, MIN ( - 13 ) * - 50 AS col2
----
82
650

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT DISTINCT MAX( DISTINCT - 30 ) * + 89 AS col1
----
-2670

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT MAX ( DISTINCT - 30 ) * + 89 AS col1
----
-2670

query I rowsort
SELECT DISTINCT + 77 * + 4 * + 38 * + + NULLIF ( + 27, - AVG ( ALL ( 62 ) ) )
----
316008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT SUM( DISTINCT CAST( + 17 AS SIGNED ) ) * + - 11 + - 37 * - 35 col1
----
1108

skipif mysql # not compatible
query I rowsort label-7156
SELECT SUM ( DISTINCT CAST ( + 17 AS INTEGER ) ) * + - 11 + - 37 * - 35 col1
----
1108

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT 76 - + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7157
SELECT 76 - + COUNT ( * ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT DISTINCT COUNT( * ) + - ( + 42 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT COUNT ( * ) + - ( + 42 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT MAX( ALL + + 92 ) * + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7159
SELECT MAX ( ALL + + 92 ) * + COUNT ( * ) AS col2
----
92

query I rowsort
SELECT DISTINCT - 5 * 5
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL + 51 + - 59 + COUNT( * ) * 69 - + 57
----
4

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + 51 + - 59 + COUNT ( * ) * 69 - + 57
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7162
SELECT DISTINCT - 78 + ( - - CAST( NULL AS SIGNED ) ) + + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT - 78 + ( - - CAST ( NULL AS INTEGER ) ) + + - 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7163
SELECT ALL CAST( NULL AS SIGNED ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL CAST ( NULL AS INTEGER ) * - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT DISTINCT COUNT( * ) * MAX( DISTINCT - - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT COUNT ( * ) * MAX ( DISTINCT - - 89 ) AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7165
SELECT - COUNT( * ) * - CAST( - 97 AS SIGNED ) + + 91 col2
----
-6

skipif mysql # not compatible
query I rowsort label-7165
SELECT - COUNT ( * ) * - CAST ( - 97 AS INTEGER ) + + 91 col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7166
SELECT CASE + 6 WHEN - 82 + + 86 THEN + - 54 + - 61 * - COUNT( * ) END col0, + 86
----
NULL
86

skipif mysql # not compatible
query II rowsort label-7166
SELECT CASE + 6 WHEN - 82 + + 86 THEN + - 54 + - 61 * - COUNT ( * ) END col0, + 86
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT - COUNT( * ) * ( 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-7167
SELECT - COUNT ( * ) * ( 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT 95 - + - 80 + ( 18 ) + - 40 + - 58 * COUNT( DISTINCT 2 )
----
95

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT 95 - + - 80 + ( 18 ) + - 40 + - 58 * COUNT ( DISTINCT 2 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7169
SELECT DISTINCT + - ( + 73 ) DIV - 63 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT + - ( + 73 ) / - 63 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7170
SELECT COALESCE ( 3, COUNT( * ) * + COUNT( * ) DIV - + 26 DIV + ( - - COUNT( * ) ) ) * 34 DIV + 99
----
1

skipif mysql # not compatible
query I rowsort label-7170
SELECT COALESCE ( 3, COUNT ( * ) * + COUNT ( * ) / - + 26 / + ( - - COUNT ( * ) ) ) * 34 / + 99
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT DISTINCT + 45 DIV + + 26
----
1

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT + 45 / + + 26
----
1

query I rowsort
SELECT + 6 - + - 97 AS col2
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7173
SELECT + 75 * + + 81, CAST( - + 96 AS SIGNED ) AS col0
----
6075
-96

skipif mysql # not compatible
query II rowsort label-7173
SELECT + 75 * + + 81, CAST ( - + 96 AS INTEGER ) AS col0
----
6075
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7174
SELECT - ( + COUNT( * ) ) AS col2, - 48
----
-1
-48

skipif mysql # not compatible
query II rowsort label-7174
SELECT - ( + COUNT ( * ) ) AS col2, - 48
----
-1
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7175
SELECT DISTINCT 98 DIV + 4
----
24

skipif mysql # not compatible
query I rowsort label-7175
SELECT DISTINCT 98 / + 4
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7176
SELECT + COUNT( * ) DIV - 95 AS col1, ( + 1 ) + + 32
----
0
33

skipif mysql # not compatible
query II rowsort label-7176
SELECT + COUNT ( * ) / - 95 AS col1, ( + 1 ) + + 32
----
0
33

query I rowsort
SELECT ALL + 51 * - 73 + + 24
----
-3699

query I rowsort
SELECT ALL 25 * 55 AS col1
----
1375

query I rowsort
SELECT 92 * 71 * + + 92 * 71 col1
----
42667024

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT 5 * - COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7180
SELECT 5 * - COUNT ( * ) AS col1
----
-5

query I rowsort
SELECT ALL + 64 + + ( - - 65 )
----
129

query I rowsort
SELECT 76 + + 19 AS col1
----
95

query I rowsort
SELECT 85 + - 4
----
81

query I rowsort
SELECT ALL - 19 + + 88
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT ALL + 64 + + + 71 DIV + 80 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL + 64 + + + 71 / + 80 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT ALL + 19 + + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL + 19 + + COUNT ( * )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7187
SELECT ALL CAST( + + 61 AS SIGNED ) + - ( + COUNT( * ) ) + + - COUNT( * ) + + 77 DIV COUNT( * ) + + 58 + - 34
----
160

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL CAST ( + + 61 AS INTEGER ) + - ( + COUNT ( * ) ) + + - COUNT ( * ) + + 77 / COUNT ( * ) + + 58 + - 34
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT DISTINCT - MAX( DISTINCT - + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT - MAX ( DISTINCT - + 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT MIN( 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7189
SELECT MIN ( 7 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7190
SELECT ALL - SUM( DISTINCT - ( 58 ) ) AS col1, 68
----
58
68

skipif mysql # not compatible
query II rowsort label-7190
SELECT ALL - SUM ( DISTINCT - ( 58 ) ) AS col1, 68
----
58
68

query I rowsort
SELECT ( - 82 ) * - 38 AS col0
----
3116

query II rowsort
SELECT + 2 AS col0, ( 60 ) AS col2
----
2
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT + 86 * 90 - COUNT( - 43 )
----
7739

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + 86 * 90 - COUNT ( - 43 )
----
7739

query I rowsort
SELECT DISTINCT - NULLIF ( 12, 58 / + + 10 * + 58 ) * + 65
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT 24 * 1 * ( 16 ) + - CASE + - 35 WHEN - 61 THEN + SUM( - 47 ) / 53 * - - CASE 93 WHEN + - ( + 91 ) THEN 3 + - - ( + + 85 ) END * 70 + 4 END - + COUNT( * ) * 79 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT 24 * 1 * ( 16 ) + - CASE + - 35 WHEN - 61 THEN + SUM ( - 47 ) / 53 * - - CASE 93 WHEN + - ( + 91 ) THEN 3 + - - ( + + 85 ) END * 70 + 4 END - + COUNT ( * ) * 79 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7196
SELECT ALL 40 DIV + + ( + - 46 ) AS col2, - 60 * CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7196
SELECT ALL 40 / + + ( + - 46 ) AS col2, - 60 * CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7197
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 63 * + + 95 / + + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 63 * + + 95 / + + 15 AS col0
----
NULL

query II rowsort
SELECT 39 AS col0, 54 col1
----
39
54

query I rowsort
SELECT ALL - + 7 col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7200
SELECT 34 + - + 22 * - 60 + - + MIN( ALL + - 50 ) + + + 89 + - + COUNT( * ) * ( + - MAX( DISTINCT + NULLIF ( 72, 88 ) ) ) * - - 74, 65 AS col0
----
6821
65

skipif mysql # not compatible
query II rowsort label-7200
SELECT 34 + - + 22 * - 60 + - + MIN ( ALL + - 50 ) + + + 89 + - + COUNT ( * ) * ( + - MAX ( DISTINCT + NULLIF ( 72, 88 ) ) ) * - - 74, 65 AS col0
----
6821
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT - 81 * + 19 - COALESCE ( - 36, + - 25 + - CAST( + + 46 AS SIGNED ), - - 47 ) * - 75 AS col2
----
-4239

skipif mysql # not compatible
query I rowsort label-7201
SELECT - 81 * + 19 - COALESCE ( - 36, + - 25 + - CAST ( + + 46 AS INTEGER ), - - 47 ) * - 75 AS col2
----
-4239

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT 93 * - + COALESCE ( COUNT( * ), + 16 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-7202
SELECT 93 * - + COALESCE ( COUNT ( * ), + 16 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL + 16 * + - ( 44 ) + - ( + MAX( - + 76 ) ) - + + ( - + 85 ) AS col0
----
-543

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + 16 * + - ( 44 ) + - ( + MAX ( - + 76 ) ) - + + ( - + 85 ) AS col0
----
-543

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT - + 19 * - - 9 + + - 8 DIV - 81
----
-171

skipif mysql # not compatible
query I rowsort label-7204
SELECT - + 19 * - - 9 + + - 8 / - 81
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7205
SELECT - 73 - + COALESCE ( - 55, MIN( + 47 ) + - COUNT( * ), 37 + - CASE + ( + 30 ) WHEN COUNT( * ) / CAST( NULL AS SIGNED ) THEN NULL WHEN + 5 THEN CAST( NULL AS SIGNED ) ELSE NULL END * + + 68 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7205
SELECT - 73 - + COALESCE ( - 55, MIN ( + 47 ) + - COUNT ( * ), 37 + - CASE + ( + 30 ) WHEN COUNT ( * ) / CAST ( NULL AS INTEGER ) THEN NULL WHEN + 5 THEN CAST ( NULL AS INTEGER ) ELSE NULL END * + + 68 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ALL + 66 * + SUM( + 55 ) - - - 6 + 11
----
3635

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + 66 * + SUM ( + 55 ) - - - 6 + 11
----
3635

onlyif mysql # DIV for integer division: 
query II rowsort label-7207
SELECT ( - 44 ) * - 72 AS col0, + 98 DIV - 19
----
3168
-5

skipif mysql # not compatible
query II rowsort label-7207
SELECT ( - 44 ) * - 72 AS col0, + 98 / - 19
----
3168
-5

query I rowsort
SELECT ALL 87 * + 91 * 48 + 32 + + ( + 72 ) * + 4 + + 67 - - 60 AS col0
----
380463

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT + 26 + COUNT( - + ( 11 ) )
----
27

skipif mysql # not compatible
query I rowsort label-7209
SELECT + 26 + COUNT ( - + ( 11 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + 40 + + 94 * + COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-7210
SELECT + 40 + + 94 * + COUNT ( * )
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7211
SELECT + 53 + - 54 + + 77 + + COUNT( * ) - + + 87 + - - 35 DIV 47 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7211
SELECT + 53 + - 54 + + 77 + + COUNT ( * ) - + + 87 + - - 35 / 47 AS col1
----
-10

query I rowsort
SELECT + + 20 + + 34 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT ALL + COUNT( * ) + - ( - 59 ) * - - ( - 10 ) col1
----
-589

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL + COUNT ( * ) + - ( - 59 ) * - - ( - 10 ) col1
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT + CASE - MAX( ALL + - 95 ) WHEN + ( + 60 ) * + - 27 THEN - COUNT( * ) + - - 53 * 83 + - + COUNT( * ) ELSE + SUM( ALL + 66 ) + 25 END
----
91

skipif mysql # not compatible
query I rowsort label-7214
SELECT + CASE - MAX ( ALL + - 95 ) WHEN + ( + 60 ) * + - 27 THEN - COUNT ( * ) + - - 53 * 83 + - + COUNT ( * ) ELSE + SUM ( ALL + 66 ) + 25 END
----
91

query I rowsort
SELECT ALL 43 + 79 col1
----
122

query I rowsort
SELECT - 54 + - ( - 96 ) * + 94
----
8970

onlyif mysql # aggregate syntax: 
query II rowsort label-7217
SELECT - CASE - 47 WHEN - 89 THEN - 46 ELSE + 19 END col1, - MAX( + - 64 )
----
-19
64

skipif mysql # not compatible
query II rowsort label-7217
SELECT - CASE - 47 WHEN - 89 THEN - 46 ELSE + 19 END col1, - MAX ( + - 64 )
----
-19
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7218
SELECT + 1 DIV + CAST( - + 3 AS SIGNED ) * - 67 * + 85 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7218
SELECT + 1 / + CAST ( - + 3 AS INTEGER ) * - 67 * + 85 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL 7 + 10 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT ALL + ( - COUNT( * ) ) + - 60 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL + ( - COUNT ( * ) ) + - 60 AS col2
----
-61

query I rowsort
SELECT DISTINCT 59 * 28 col2
----
1652

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL + COUNT( * ) - + + 14 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + COUNT ( * ) - + + 14 AS col0
----
-13

query I rowsort
SELECT + 59 * + ( - 76 ) AS col0
----
-4484

query I rowsort
SELECT + 35 - + + ( - 73 ) AS col2
----
108

query I rowsort
SELECT - 58 + 91 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL CASE - 70 WHEN 57 * - 88 + + 25 THEN + COUNT( * ) - - 58 ELSE 38 END
----
38

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL CASE - 70 WHEN 57 * - 88 + + 25 THEN + COUNT ( * ) - - 58 ELSE 38 END
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ( MAX( ALL - 62 ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7227
SELECT ( MAX ( ALL - 62 ) ) AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT - CAST( NULL AS SIGNED ) / - SUM( DISTINCT - - 0 ) + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT - CAST ( NULL AS INTEGER ) / - SUM ( DISTINCT - - 0 ) + + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT DISTINCT - + COUNT( * ) * + MIN( ALL + 0 ) + + 23 - + + 23 + - + 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT - + COUNT ( * ) * + MIN ( ALL + 0 ) + + 23 - + + 23 + - + 47 AS col1
----
-47

query I rowsort
SELECT ALL + - ( + 28 )
----
-28

query I rowsort
SELECT - - 0 + 74
----
74

query I rowsort
SELECT + + NULLIF ( - - 95, 4 ) AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT - + 56 DIV + 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7233
SELECT - + 56 / + 48 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT COUNT( * ) * 94 * NULLIF ( 82, + COUNT( * ) + - 12 ) * + 12 + - 75 + ( - SUM( ALL + 57 ) ) + - 43 * MIN( ALL 23 ) * - 36 * - - 24 + - 94 + - COALESCE ( + 37, + 29 )
----
946729

skipif mysql # not compatible
query I rowsort label-7234
SELECT COUNT ( * ) * 94 * NULLIF ( 82, + COUNT ( * ) + - 12 ) * + 12 + - 75 + ( - SUM ( ALL + 57 ) ) + - 43 * MIN ( ALL 23 ) * - 36 * - - 24 + - 94 + - COALESCE ( + 37, + 29 )
----
946729

onlyif mysql # DIV for integer division: 
query I rowsort label-7235
SELECT - 1 DIV - + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7235
SELECT - 1 / - + 96 AS col1
----
0

query I rowsort
SELECT ALL + 29 * + - 12 + - COALESCE ( 79, - 54, 4 )
----
-427

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT DISTINCT 59 DIV - 54 - + - 77 - - + 36 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT 59 / - 54 - + - 77 - - + 36 AS col0
----
112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7238
SELECT ALL - CAST( NULL AS DECIMAL ) / + + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL - CAST ( NULL AS REAL ) / + + 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT - 43 * ( + SUM( DISTINCT - 69 ) ) + 70 * COUNT( * ) + + + 43 - + COUNT( * ) AS col2
----
3079

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT - 43 * ( + SUM ( DISTINCT - 69 ) ) + 70 * COUNT ( * ) + + + 43 - + COUNT ( * ) AS col2
----
3079

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT DISTINCT 15 * + COUNT( * ) * + 65 + + 11 col1
----
986

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT 15 * + COUNT ( * ) * + 65 + + 11 col1
----
986

query I rowsort
SELECT ALL - 0 * + - 9 * - - 20 + 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - CASE + 1 WHEN - + 43 / 42 * + COUNT( * ) * - 19 * - MIN( DISTINCT 21 ) + + 40 THEN - + 74 + - 31 * + - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT - CASE + 1 WHEN - + 43 / 42 * + COUNT ( * ) * - 19 * - MIN ( DISTINCT 21 ) + + 40 THEN - + 74 + - 31 * + - COUNT ( * ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 56, 59 AS col0
----
56
59

query I rowsort
SELECT + 25 * + 72 AS col1
----
1800

query I rowsort
SELECT ALL 89 + + 34
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7246
SELECT ALL 1 * COALESCE ( + 56, + COUNT( * ) + - 24 DIV 67 )
----
56

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL 1 * COALESCE ( + 56, + COUNT ( * ) + - 24 / 67 )
----
56

query I rowsort
SELECT + 71 - - ( - 94 ) + - - 95
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7248
SELECT - CAST( NULL AS SIGNED ), 63 - + 3 * + + COALESCE ( 0, + ( + - 3 ) ) + - 99 AS col1, + 62 * - 97 AS col1
----
NULL
-36
-6014

skipif mysql # not compatible
query III rowsort label-7248
SELECT - CAST ( NULL AS INTEGER ), 63 - + 3 * + + COALESCE ( 0, + ( + - 3 ) ) + - 99 AS col1, + 62 * - 97 AS col1
----
NULL
-36
-6014

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT ALL 53 - - 72 + + 12 DIV - ( + 33 ) + + 51 + - - 28
----
204

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL 53 - - 72 + + 12 / - ( + 33 ) + + 51 + - - 28
----
204

query I rowsort
SELECT + 59 + + 40 AS col0
----
99

query I rowsort
SELECT + 35 + 61 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL COUNT( + + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL COUNT ( + + 49 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT - ( + - NULLIF ( - - CASE - - CAST( NULL AS SIGNED ) WHEN - - 67 THEN 32 END, - 3 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT - ( + - NULLIF ( - - CASE - - CAST ( NULL AS INTEGER ) WHEN - - 67 THEN 32 END, - 3 ) ) AS col0
----
NULL

query I rowsort
SELECT + 11 + + 45
----
56

query I rowsort
SELECT ALL 17 - 76
----
-59

query I rowsort
SELECT + 29 * + 34
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT DISTINCT - SUM( + - 89 ) * 52
----
4628

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT - SUM ( + - 89 ) * 52
----
4628

onlyif mysql # aggregate syntax: 
query II rowsort label-7258
SELECT DISTINCT COUNT( - + 17 ) - + 32 AS col0, COUNT( * )
----
-31
1

skipif mysql # not compatible
query II rowsort label-7258
SELECT DISTINCT COUNT ( - + 17 ) - + 32 AS col0, COUNT ( * )
----
-31
1

query I rowsort
SELECT ALL ( + ( - 89 ) ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT + 81 + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7260
SELECT + 81 + COUNT ( * ) AS col2
----
82

query I rowsort
SELECT DISTINCT 46 * 32 * + 18 AS col2
----
26496

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT DISTINCT ( - 79 ) * - - 36 * - 84 * - - ( SUM( - 9 ) ) AS col2
----
-2150064

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT ( - 79 ) * - - 36 * - 84 * - - ( SUM ( - 9 ) ) AS col2
----
-2150064

query I rowsort
SELECT + + 60 * + 22 + - - ( 35 ) + + - 29 col2
----
1326

query I rowsort
SELECT ALL 75 * + 76 + 21 - - 76 + - 56 AS col2
----
5741

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7265
SELECT + 49 AS col0, COUNT( * ) DIV - 66
----
49
0

skipif mysql # not compatible
query II rowsort label-7265
SELECT + 49 AS col0, COUNT ( * ) / - 66
----
49
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT ALL - CAST( NULL AS SIGNED ) / 57 + ( - + 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL - CAST ( NULL AS INTEGER ) / 57 + ( - + 72 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7267
SELECT ALL + 8 + + - COALESCE ( - + NULLIF ( 23, - + 45 ), - 67 - + - 7 DIV - 75, COUNT( * ) * + 83 - 75 + 64 ) DIV - - COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL + 8 + + - COALESCE ( - + NULLIF ( 23, - + 45 ), - 67 - + - 7 / - 75, COUNT ( * ) * + 83 - 75 + 64 ) / - - COUNT ( * ) AS col1
----
31

query II rowsort
SELECT DISTINCT - 84 col2, 66
----
-84
66

query I rowsort
SELECT ALL - ( + 54 ) + - ( 33 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT DISTINCT - COALESCE ( - - 18, + - NULLIF ( 36, + - 8 / - + 83 * COUNT( * ) ) ) + + 64 + - 28
----
18

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT - COALESCE ( - - 18, + - NULLIF ( 36, + - 8 / - + 83 * COUNT ( * ) ) ) + + 64 + - 28
----
18

query I rowsort
SELECT ALL + ( + 94 ) + 87 * + + 73 AS col1
----
6445

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL - - 12 + + 94 * + 54 - 31 * 44 + - + COUNT( * ) + COUNT( * )
----
3724

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - - 12 + + 94 * + 54 - 31 * 44 + - + COUNT ( * ) + COUNT ( * )
----
3724

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT DISTINCT - 56 * + - 54 + + 47 AS col2, 74 * + + COUNT( * ) * + COUNT( * )
----
3071
74

skipif mysql # not compatible
query II rowsort label-7273
SELECT DISTINCT - 56 * + - 54 + + 47 AS col2, 74 * + + COUNT ( * ) * + COUNT ( * )
----
3071
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT - COUNT( - 12 ) - - + 22 + + - 52 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7274
SELECT - COUNT ( - 12 ) - - + 22 + + - 52 AS col1
----
-31

query I rowsort
SELECT ALL - + ( + 41 ) col2
----
-41

query I rowsort
SELECT ALL + 12 + - 86
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7277
SELECT DISTINCT - CASE + 80 WHEN - + COUNT( - 72 ) THEN 72 * - - 77 * - + NULLIF ( + COUNT( * ), 4 ) / + 50 * - 60 * 22 / + + SUM( DISTINCT - 80 ) + - 57 WHEN + 96 THEN 55 ELSE NULL END, 77 col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-7277
SELECT DISTINCT - CASE + 80 WHEN - + COUNT ( - 72 ) THEN 72 * - - 77 * - + NULLIF ( + COUNT ( * ), 4 ) / + 50 * - 60 * 22 / + + SUM ( DISTINCT - 80 ) + - 57 WHEN + 96 THEN 55 ELSE NULL END, 77 col1
----
NULL
77

query I rowsort
SELECT ALL - 32 + 1 * 46 AS col1
----
14

query II rowsort
SELECT ALL - 37, 85 AS col0
----
-37
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL - COALESCE ( - 92, - + COUNT( * ) - + - 40 + + COUNT( * ) )
----
92

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - COALESCE ( - 92, - + COUNT ( * ) - + - 40 + + COUNT ( * ) )
----
92

query I rowsort
SELECT 11 + - + 37 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-7282
SELECT ALL COALESCE ( MIN( + + 83 ), - 11 * + 43 * - COUNT( * ) + + 19, - - 8 * 62, 1 ) * + - 31 AS col2, - ( COUNT( * ) ) AS col0
----
-2573
-1

skipif mysql # not compatible
query II rowsort label-7282
SELECT ALL COALESCE ( MIN ( + + 83 ), - 11 * + 43 * - COUNT ( * ) + + 19, - - 8 * 62, 1 ) * + - 31 AS col2, - ( COUNT ( * ) ) AS col0
----
-2573
-1

query I rowsort
SELECT 69 * + + 89 + 26
----
6167

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL - NULLIF ( 93, + 86 ) - + SUM( - ( - 82 ) ) + + 47
----
-128

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL - NULLIF ( 93, + 86 ) - + SUM ( - ( - 82 ) ) + + 47
----
-128

query II rowsort
SELECT - 21, - 18 + - 1 * + ( - 92 ) AS col0
----
-21
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT NULLIF ( 5, 15 ) + + + 5 DIV + + 21 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7286
SELECT NULLIF ( 5, 15 ) + + + 5 / + + 21 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT ALL + AVG ( 18 ) / + - CAST( NULL AS SIGNED ) - COUNT( * ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL + AVG ( 18 ) / + - CAST ( NULL AS INTEGER ) - COUNT ( * ) + + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 76 AS col1, 3 AS col1
----
76
3

query I rowsort
SELECT 46 + 74 col1
----
120

query I rowsort
SELECT ALL 47 * + 42
----
1974

query II rowsort
SELECT - 32, + 97 col2
----
-32
97

query II rowsort
SELECT ALL 84 AS col1, 92 + - - 52
----
84
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT ALL - 98 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - 98 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7294
SELECT ALL 93 AS col1, - COUNT( * ) + 11 AS col2
----
93
10

skipif mysql # not compatible
query II rowsort label-7294
SELECT ALL 93 AS col1, - COUNT ( * ) + 11 AS col2
----
93
10

query II rowsort
SELECT 66 AS col2, - 11 + - + 59 + - 42 col1
----
66
-112

query I rowsort
SELECT ( - NULLIF ( - - ( + 34 ), 62 + - 20 ) ) + + ( - 64 ) AS col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7297
SELECT 26 DIV - + MIN( + 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7297
SELECT 26 / - + MIN ( + 84 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7298
SELECT - 34 - 63 + + CAST( - 28 AS SIGNED )
----
-125

skipif mysql # not compatible
query I rowsort label-7298
SELECT - 34 - 63 + + CAST ( - 28 AS INTEGER )
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT MAX( ALL 88 )
----
88

skipif mysql # not compatible
query I rowsort label-7299
SELECT MAX ( ALL 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - MIN( 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-7300
SELECT - MIN ( 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7301
SELECT + MAX( DISTINCT + - 66 ) DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7301
SELECT + MAX ( DISTINCT + - 66 ) / + 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT ALL COUNT( * ) + NULLIF ( - - 23, - 55 + - 56 / 73 ) col0
----
24

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL COUNT ( * ) + NULLIF ( - - 23, - 55 + - 56 / 73 ) col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7303
SELECT ALL + 79 + COUNT( * ) / + CASE - 76 WHEN + + ( - + 92 ) THEN CAST( NULL AS SIGNED ) WHEN + 81 - + 77 THEN NULL WHEN + 62 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL + 79 + COUNT ( * ) / + CASE - 76 WHEN + + ( - + 92 ) THEN CAST ( NULL AS INTEGER ) WHEN + 81 - + 77 THEN NULL WHEN + 62 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7304
SELECT ( + 62 ) * + + 6 * 46 - + 84 * 57 * COUNT( * ) AS col0, - 83 + 98 * - 38 + - - COUNT( * )
----
12324
-3806

skipif mysql # not compatible
query II rowsort label-7304
SELECT ( + 62 ) * + + 6 * 46 - + 84 * 57 * COUNT ( * ) AS col0, - 83 + 98 * - 38 + - - COUNT ( * )
----
12324
-3806

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7305
SELECT + - 58, + COUNT( * ) DIV - MIN( + + COALESCE ( - + 7, - 99 * + 77 * 86 + + + 29 * - + 22, + + 90 ) ) * - 67 col2
----
-58
0

skipif mysql # not compatible
query II rowsort label-7305
SELECT + - 58, + COUNT ( * ) / - MIN ( + + COALESCE ( - + 7, - 99 * + 77 * 86 + + + 29 * - + 22, + + 90 ) ) * - 67 col2
----
-58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL SUM( DISTINCT - 1 ) + - + 14 + 29
----
14

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL SUM ( DISTINCT - 1 ) + - + 14 + 29
----
14

query I rowsort
SELECT ALL 80 * 49 + 70
----
3990

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7308
SELECT + 59 DIV + 75 AS col1, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-7308
SELECT + 59 / + 75 AS col1, COUNT ( * ) AS col2
----
0
1

query III rowsort
SELECT - 63 AS col0, - 73, - + 39 AS col0
----
-63
-73
-39

query I rowsort
SELECT ALL - NULLIF ( + 57, + 75 )
----
-57

query II rowsort
SELECT + 47, + 83 AS col0
----
47
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL + COUNT( * ) + - 79 + + + 86 * - + 82 AS col1
----
-7130

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL + COUNT ( * ) + - 79 + + + 86 * - + 82 AS col1
----
-7130

query II rowsort
SELECT DISTINCT - - 64, 91 AS col0
----
64
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT + COUNT( DISTINCT - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-7314
SELECT + COUNT ( DISTINCT - 26 )
----
1

query I rowsort
SELECT 39 * + 76 col1
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL + 74 * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + 74 * COUNT ( * )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7317
SELECT 10 + + + SUM( ALL + CAST( - - 87 AS SIGNED ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7317
SELECT 10 + + + SUM ( ALL + CAST ( - - 87 AS INTEGER ) ) AS col1
----
97

query I rowsort
SELECT 20 + - + 51 AS col1
----
-31

query I rowsort
SELECT DISTINCT - 29 * 53 * - 1
----
1537

query I rowsort
SELECT 36 - 5 - - 5 AS col0
----
36

query I rowsort
SELECT 19 + 10 + - 87 * 72 AS col1
----
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT MIN( ALL - - 77 ) + - 44
----
33

skipif mysql # not compatible
query I rowsort label-7322
SELECT MIN ( ALL - - 77 ) + - 44
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7323
SELECT ALL + ( 9 ) DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL + ( 9 ) / 89 AS col1
----
0

query I rowsort
SELECT + 31 + - - 4 AS col1
----
35

query I rowsort
SELECT 14 - ( - ( 83 ) )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7326
SELECT - ( + CAST( + ( + 15 ) AS SIGNED ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7326
SELECT - ( + CAST ( + ( + 15 ) AS INTEGER ) ) AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT - + 94 + - 95 + + 7 + 93 + - COALESCE ( 88, 63 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT - + 94 + - 95 + + 7 + 93 + - COALESCE ( 88, 63 ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 46 + 67 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL + 83 * - COUNT( * ) + + 72 * + - 96 * 46 + 66 + + + 13 col0
----
-317956

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL + 83 * - COUNT ( * ) + + 72 * + - 96 * 46 + 66 + + + 13 col0
----
-317956

query I rowsort
SELECT ALL + 72 + - + 96 AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7331
SELECT ALL - COALESCE ( - - CAST( 85 AS SIGNED ), + 17 * - 17 DIV - 77 * - 89 ) + + 92 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL - COALESCE ( - - CAST ( 85 AS INTEGER ), + 17 * - 17 / - 77 * - 89 ) + + 92 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT DISTINCT + + 71 + - 74 + - ( 60 ) DIV - + 46
----
-2

skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT + + 71 + - 74 + - ( 60 ) / - + 46
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT DISTINCT - + COUNT( * ) + 15
----
14

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT - + COUNT ( * ) + 15
----
14

query II rowsort
SELECT ALL - 6 + 85, 83 AS col0
----
79
83

query I rowsort
SELECT ALL 64 + + 13 AS col0
----
77

query I rowsort
SELECT 25 * 6 + + 34 AS col2
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7337
SELECT + - ( - ( - - 12 ) ) + - COUNT( * ) * + + NULLIF ( ( CAST( - 96 AS SIGNED ) ), - 70 ) col1
----
108

skipif mysql # not compatible
query I rowsort label-7337
SELECT + - ( - ( - - 12 ) ) + - COUNT ( * ) * + + NULLIF ( ( CAST ( - 96 AS INTEGER ) ), - 70 ) col1
----
108

query I rowsort
SELECT ALL - 6 * - - 15
----
-90

query I rowsort
SELECT + 84 * + 51 * - 33 * - + 86 + 91 AS col1
----
12158083

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT DISTINCT - 73 * 92 * - 88 + - COUNT( * ) AS col1
----
591007

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT - 73 * 92 * - 88 + - COUNT ( * ) AS col1
----
591007

query I rowsort
SELECT ALL + 22 * + 38 - + + 85
----
751

query I rowsort
SELECT + 66 * 8 col0
----
528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT ALL 78 * + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL 78 * + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT + 84 + + COUNT( - + 77 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7344
SELECT + 84 + + COUNT ( - + 77 ) AS col1
----
85

query I rowsort
SELECT DISTINCT 95 * - 91
----
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT + 60 + - COUNT( DISTINCT - 17 ) * + 76 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7346
SELECT + 60 + - COUNT ( DISTINCT - 17 ) * + 76 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT - 42 - 1 + - COUNT( * ) * - 17 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7347
SELECT - 42 - 1 + - COUNT ( * ) * - 17 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ALL COUNT( * ) * NULLIF ( + + COUNT( * ), 86 * - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL COUNT ( * ) * NULLIF ( + + COUNT ( * ), 86 * - 61 )
----
1

query II rowsort
SELECT DISTINCT + 59 AS col2, 3 AS col2
----
59
3

query II rowsort
SELECT ALL + 94 AS col2, 36 - - ( + - 7 ) AS col0
----
94
29

query II rowsort
SELECT ALL + 65 AS col0, + 84 + - 31
----
65
53

query II rowsort
SELECT + 6 + - ( + - 51 ) AS col1, 51 * - - 42 AS col0
----
57
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT COUNT( * ) * - + 42 * + 8 + - 20 + + + ( + 42 ) AS col2
----
-314

skipif mysql # not compatible
query I rowsort label-7353
SELECT COUNT ( * ) * - + 42 * + 8 + - 20 + + + ( + 42 ) AS col2
----
-314

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT MAX( - 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7354
SELECT MAX ( - 91 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7355
SELECT DISTINCT - CAST( - - MAX( + 40 ) AS SIGNED ) + + ( + CAST( NULL AS SIGNED ) ) + 63 AS col0, + 32 AS col2
----
NULL
32

skipif mysql # not compatible
query II rowsort label-7355
SELECT DISTINCT - CAST ( - - MAX ( + 40 ) AS INTEGER ) + + ( + CAST ( NULL AS INTEGER ) ) + 63 AS col0, + 32 AS col2
----
NULL
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT COUNT( 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7356
SELECT COUNT ( 17 ) AS col2
----
1

query I rowsort
SELECT ALL + 35 * - 69 AS col0
----
-2415

query I rowsort
SELECT ALL - 80 + - 43 * + - 90 * - ( - ( 96 ) ) - + + 37 AS col1
----
371403

query I rowsort
SELECT DISTINCT 87 * + 92
----
8004

query I rowsort
SELECT - 99 * + 27 AS col2
----
-2673

query I rowsort
SELECT ALL + + 19 + + - 87 col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ALL - MAX( ALL + - 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL - MAX ( ALL + - 99 ) AS col1
----
99

query I rowsort
SELECT - 79 * - 46
----
3634

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT DISTINCT - 18 DIV - - 46 * - ( 16 )
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT - 18 / - - 46 * - ( 16 )
----
0

query I rowsort
SELECT ALL - COALESCE ( 8, 84 * + + 34, 44 + 60 + + - 9 )
----
-8

query I rowsort
SELECT - + 96 - + COALESCE ( + 20, - + ( - 99 ) ) + - - 52 * ( + 81 )
----
4096

query I rowsort
SELECT + + 91 * - CASE - 70 WHEN + 66 * - 4 / - + 37 THEN + + 39 WHEN - 78 THEN - - 97 * 43 + - + 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL - + ( + + 18 ) * SUM( - + 84 ) * - 99 - + 81 + 23
----
-149746

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL - + ( + + 18 ) * SUM ( - + 84 ) * - 99 - + 81 + 23
----
-149746

query II rowsort
SELECT DISTINCT 14 AS col1, - 17
----
14
-17

query I rowsort
SELECT - - 21 - + 61 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-7371
SELECT DISTINCT - 77 * - + 32 * - COUNT( * ), SUM( + 72 ) - + - COUNT( ALL 20 ) AS col1
----
-2464
73

skipif mysql # not compatible
query II rowsort label-7371
SELECT DISTINCT - 77 * - + 32 * - COUNT ( * ), SUM ( + 72 ) - + - COUNT ( ALL 20 ) AS col1
----
-2464
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT DISTINCT + MIN( 62 ) * - - 73 AS col2
----
4526

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT + MIN ( 62 ) * - - 73 AS col2
----
4526

onlyif mysql # aggregate syntax: 
query II rowsort label-7373
SELECT - MIN( + - 40 ) * - 26 AS col1, 20 AS col1
----
-1040
20

skipif mysql # not compatible
query II rowsort label-7373
SELECT - MIN ( + - 40 ) * - 26 AS col1, 20 AS col1
----
-1040
20

query I rowsort
SELECT DISTINCT + 33 * 40 AS col2
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT CASE 22 WHEN MIN( DISTINCT - 10 ) THEN - 25 + - + COUNT( * ) ELSE ( - 49 ) END
----
-49

skipif mysql # not compatible
query I rowsort label-7375
SELECT CASE 22 WHEN MIN ( DISTINCT - 10 ) THEN - 25 + - + COUNT ( * ) ELSE ( - 49 ) END
----
-49

query I rowsort
SELECT ALL + + ( - + 31 )
----
-31

query I rowsort
SELECT + 49 * - 4 AS col2
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT - 29 DIV + - 64 + + + 56
----
56

skipif mysql # not compatible
query I rowsort label-7378
SELECT - 29 / + - 64 + + + 56
----
56

query I rowsort
SELECT DISTINCT + CASE + ( - + 5 ) WHEN - - 86 THEN NULL WHEN + - 54 THEN NULL ELSE + 83 END
----
83

query I rowsort
SELECT ALL 24 * 79 AS col0
----
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ( - MIN( ALL 16 ) ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-7381
SELECT ( - MIN ( ALL 16 ) ) col0
----
-16

query I rowsort
SELECT ALL + 77 * - 13 + 8
----
-993

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT DISTINCT - AVG ( DISTINCT 54 ) / 50 + - CASE 87 WHEN + 45 / + AVG ( ALL + 39 ) THEN + - COUNT( 37 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT - AVG ( DISTINCT 54 ) / 50 + - CASE 87 WHEN + 45 / + AVG ( ALL + 39 ) THEN + - COUNT ( 37 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL 59 * - COUNT( * ) * + ( - ( + + SUM( 26 ) ) ) + 91 AS col1
----
1625

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL 59 * - COUNT ( * ) * + ( - ( + + SUM ( 26 ) ) ) + 91 AS col1
----
1625

query I rowsort
SELECT + 82 * + ( 18 ) col0
----
1476

query I rowsort
SELECT ALL 88 * - 24 AS col1
----
-2112

query I rowsort
SELECT - 66 * + + 23 + - + 66 * 46 - - - 2 * 29 + 18 AS col2
----
-4594

onlyif mysql # aggregate syntax: 
query II rowsort label-7388
SELECT ( - + COUNT( * ) ) AS col1, - 42 AS col0
----
-1
-42

skipif mysql # not compatible
query II rowsort label-7388
SELECT ( - + COUNT ( * ) ) AS col1, - 42 AS col0
----
-1
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT DISTINCT + 45 * 18 + + COUNT( * )
----
811

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + 45 * 18 + + COUNT ( * )
----
811

query I rowsort
SELECT ALL 97 * - - COALESCE ( 60, + - ( 38 ) * + + ( 94 ) ) + - + 16 AS col0
----
5804

query I rowsort
SELECT ALL 3 * 55 + 65 + - + 6 AS col1
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + COUNT( * ) + + 22 col2
----
23

skipif mysql # not compatible
query I rowsort label-7392
SELECT + COUNT ( * ) + + 22 col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( + + COALESCE ( - NULLIF ( + + COUNT( * ), - 96 ), + - 59 + + CASE + - 16 WHEN ( - 18 ) THEN NULL WHEN - 29 + + 27 THEN NULL ELSE + MIN( ALL + 0 ) * + CASE + COALESCE ( 89, COUNT( 83 ) ) WHEN + 80 THEN - COUNT( * ) WHEN 30 THEN NULL END END, - + 13 ) ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( + + COALESCE ( - NULLIF ( + + COUNT ( * ), - 96 ), + - 59 + + CASE + - 16 WHEN ( - 18 ) THEN NULL WHEN - 29 + + 27 THEN NULL ELSE + MIN ( ALL + 0 ) * + CASE + COALESCE ( 89, COUNT ( 83 ) ) WHEN + 80 THEN - COUNT ( * ) WHEN 30 THEN NULL END END, - + 13 ) ) * 13
----
NULL

query I rowsort
SELECT ALL 81 + + 13 + + 37 * - - 65 * ( + 40 ) - + 86
----
96208

onlyif mysql # aggregate syntax: 
query II rowsort label-7395
SELECT DISTINCT COUNT( * ) + + + ( - COUNT( * ) ) + + - 86, + NULLIF ( + 99, 40 / COUNT( * ) + - 79 * - 27 + 83 * - COUNT( * ) + - 66 ) AS col1
----
-86
99

skipif mysql # not compatible
query II rowsort label-7395
SELECT DISTINCT COUNT ( * ) + + + ( - COUNT ( * ) ) + + - 86, + NULLIF ( + 99, 40 / COUNT ( * ) + - 79 * - 27 + 83 * - COUNT ( * ) + - 66 ) AS col1
----
-86
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT ALL + - CAST( 18 AS SIGNED ) + - - 38 + + - 68 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL + - CAST ( 18 AS INTEGER ) + - - 38 + + - 68 AS col1
----
-48

query I rowsort
SELECT 76 - 15 * - 30
----
526

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT COALESCE ( + 34, - COUNT( * ), - 3 * 17 + + 7 * 48 * - - 94 ) + - + 92 * 61
----
-5578

skipif mysql # not compatible
query I rowsort label-7398
SELECT COALESCE ( + 34, - COUNT ( * ), - 3 * 17 + + 7 * 48 * - - 94 ) + - + 92 * 61
----
-5578

query I rowsort
SELECT - 2 * - 13 col0
----
26

query I rowsort
SELECT ALL 42 * + ( - ( + 72 ) )
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT - - MAX( - - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-7401
SELECT - - MAX ( - - 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT - 30 + - MIN( 54 ) * - COUNT( DISTINCT 57 ) + - 84 col1
----
-60

skipif mysql # not compatible
query I rowsort label-7402
SELECT - 30 + - MIN ( 54 ) * - COUNT ( DISTINCT 57 ) + - 84 col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL MIN( DISTINCT + 73 ) - - + NULLIF ( - 37, - - 75 * - + 70 * + - 13 )
----
36

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL MIN ( DISTINCT + 73 ) - - + NULLIF ( - 37, - - 75 * - + 70 * + - 13 )
----
36

query I rowsort
SELECT ALL - ( - 29 ) * + + 14 AS col2
----
406

query I rowsort
SELECT 33 * 33 * + 30 AS col1
----
32670

query I rowsort
SELECT ALL - 29 * - - 73
----
-2117

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL COUNT( * ) * - + 65 + - 8 * - 85 col2
----
615

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL COUNT ( * ) * - + 65 + - 8 * - 85 col2
----
615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7408
SELECT DISTINCT 31 - CAST( + - ( 2 ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT 31 - CAST ( + - ( 2 ) AS INTEGER )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT ALL - 73 DIV - + 24 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL - 73 / - + 24 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT - 2 * 63 * + COUNT( * ) + - - 54 - 64 * - 50 * + 43 + + MIN( ALL + - 3 ) + + 54
----
137579

skipif mysql # not compatible
query I rowsort label-7410
SELECT - 2 * 63 * + COUNT ( * ) + - - 54 - 64 * - 50 * + 43 + + MIN ( ALL + - 3 ) + + 54
----
137579

onlyif mysql # DIV for integer division: 
query I rowsort label-7411
SELECT 42 DIV - 13 + + 98 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7411
SELECT 42 / - 13 + + 98 AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7412
SELECT ALL + 52 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + 52 / 90
----
0

query I rowsort
SELECT 20 + + 98 AS col0
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7414
SELECT ALL - CAST( 83 AS SIGNED ) * 46 AS col1
----
-3818

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL - CAST ( 83 AS INTEGER ) * 46 AS col1
----
-3818

query I rowsort
SELECT 30 * - 84 * + 21
----
-52920

onlyif mysql # DIV for integer division: 
query I rowsort label-7416
SELECT ALL 77 + - 73 DIV - 18
----
81

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL 77 + - 73 / - 18
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT ALL + CAST( NULL AS SIGNED ) + + 14 / 55 + 70 - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + CAST ( NULL AS INTEGER ) + + 14 / 55 + 70 - 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT ALL - COUNT( CAST( NULL AS SIGNED ) ) * + COUNT( DISTINCT + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL - COUNT ( CAST ( NULL AS INTEGER ) ) * + COUNT ( DISTINCT + 61 )
----
0

query I rowsort
SELECT 19 * - 5 AS col2
----
-95

query I rowsort
SELECT 26 + + 70 + 96 - 67 AS col1
----
125

query II rowsort
SELECT + 33 AS col0, + 77 * - 68
----
33
-5236

query I rowsort
SELECT 80 * + 19 * - 92 + - 89 AS col0
----
-139929

query I rowsort
SELECT DISTINCT - ( - 71 )
----
71

query I rowsort
SELECT ALL + 80 + + + NULLIF ( + 94, + - 99 / + 93 )
----
174

query I rowsort
SELECT DISTINCT 70 * - - 15
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL - COUNT( 6 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - COUNT ( 6 ) col1
----
-1

query I rowsort
SELECT 70 + - - 19 * 68 * - - 56 AS col0
----
72422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7428
SELECT ALL - 8 DIV COUNT( * ) DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - 8 / COUNT ( * ) / 72
----
0

query I rowsort
SELECT 80 + 84 * - 15 AS col0
----
-1180

onlyif mysql # aggregate syntax: 
query II rowsort label-7430
SELECT ALL ( + 49 ) - + 31 + + - 54 + - + ( 26 ), - COUNT( * ) AS col0
----
-62
-1

skipif mysql # not compatible
query II rowsort label-7430
SELECT ALL ( + 49 ) - + 31 + + - 54 + - + ( 26 ), - COUNT ( * ) AS col0
----
-62
-1

query II rowsort
SELECT - NULLIF ( + 20, + 96 ) col2, 15
----
-20
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT + - 4 * 33 + + + ( 96 ) - 50 DIV + - 83 * - ( 18 )
----
-36

skipif mysql # not compatible
query I rowsort label-7432
SELECT + - 4 * 33 + + + ( 96 ) - 50 / + - 83 * - ( 18 )
----
-36

query I rowsort
SELECT 78 * - - 44
----
3432

query I rowsort
SELECT 22 * - - 62 col1
----
1364

query I rowsort
SELECT DISTINCT + 18 * 81
----
1458

query I rowsort
SELECT - 0 * - + 24 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL MIN( DISTINCT 65 )
----
65

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL MIN ( DISTINCT 65 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL + ( + 37 ) * + + AVG ( DISTINCT - 91 ) + 34 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + ( + 37 ) * + + AVG ( DISTINCT - 91 ) + 34 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 47 * - 72 + 53 AS col0
----
-3331

query I rowsort
SELECT ALL - CASE 92 WHEN ( - 62 ) THEN - - 38 WHEN 43 / + + 73 + + ( 72 ) THEN - - 64 WHEN - 21 + + - 42 + 86 * - ( 81 ) * + 84 * + - 59 * - + 12 THEN NULL ELSE 73 END AS col2
----
-73

query II rowsort
SELECT 27 * 48 * - - 45 col0, 75 * + 66
----
58320
4950

query I rowsort
SELECT 70 + 66
----
136

query II rowsort
SELECT - 71 AS col2, 91
----
-71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT CASE - + 71 WHEN - 3 THEN NULL WHEN - NULLIF ( + 71, - 18 + + 58 ) THEN + COUNT( * ) + COUNT( * ) END AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7444
SELECT CASE - + 71 WHEN - 3 THEN NULL WHEN - NULLIF ( + 71, - 18 + + 58 ) THEN + COUNT ( * ) + COUNT ( * ) END AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7445
SELECT 46 AS col2, CAST( NULL AS SIGNED ) col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-7445
SELECT 46 AS col2, CAST ( NULL AS INTEGER ) col1
----
46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7446
SELECT CASE - 94 WHEN + 65 THEN + - CAST( NULL AS SIGNED ) + - 30 END * - + NULLIF ( + 4, 75 + + SUM( - 8 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT CASE - 94 WHEN + 65 THEN + - CAST ( NULL AS INTEGER ) + - 30 END * - + NULLIF ( + 4, 75 + + SUM ( - 8 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT DISTINCT + ( - 59 ) + + - 70 + + 36 + 71 DIV - 99 * 53 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT + ( - 59 ) + + - 70 + + 36 + 71 / - 99 * 53 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL 8 * - 16 + + COALESCE ( + + 65, CASE + 53 WHEN + COALESCE ( 90, - + COUNT( - + 11 ) * - - SUM( ALL - - 44 ) ) THEN - COUNT( * ) END ) + + 42 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL 8 * - 16 + + COALESCE ( + + 65, CASE + 53 WHEN + COALESCE ( 90, - + COUNT ( - + 11 ) * - - SUM ( ALL - - 44 ) ) THEN - COUNT ( * ) END ) + + 42 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-7449
SELECT 36 * + NULLIF ( + + 26, - - 74 ), SUM( DISTINCT + 66 ) AS col2
----
936
66

skipif mysql # not compatible
query II rowsort label-7449
SELECT 36 * + NULLIF ( + + 26, - - 74 ), SUM ( DISTINCT + 66 ) AS col2
----
936
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7450
SELECT DISTINCT - 23 * CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT - 23 * CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT NULLIF ( 69, 58 + 20 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT - 95 * - - 29 - 72 + 80 * - 76 + - - 78 + - - COUNT( * )
----
-8828

skipif mysql # not compatible
query I rowsort label-7452
SELECT - 95 * - - 29 - 72 + 80 * - 76 + - - 78 + - - COUNT ( * )
----
-8828

onlyif mysql # aggregate syntax: 
query II rowsort label-7453
SELECT ALL - MIN( + + 77 ), 9 AS col2
----
-77
9

skipif mysql # not compatible
query II rowsort label-7453
SELECT ALL - MIN ( + + 77 ), 9 AS col2
----
-77
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT + MAX( DISTINCT - + 62 ) col1
----
-62

skipif mysql # not compatible
query I rowsort label-7454
SELECT + MAX ( DISTINCT - + 62 ) col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT 55 DIV - ( + 26 )
----
-2

skipif mysql # not compatible
query I rowsort label-7455
SELECT 55 / - ( + 26 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT DISTINCT 20 * + COUNT( * ) + - 79 * - 13
----
1047

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT 20 * + COUNT ( * ) + - 79 * - 13
----
1047

query I rowsort
SELECT 39 * - 30 AS col0
----
-1170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7458
SELECT ALL 95 * - + 5 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL 95 * - + 5 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7459
SELECT + 33 AS col2, COUNT( * ) * - + 66 * - + CASE - - 93 WHEN + + NULLIF ( COUNT( * ), - 17 ) THEN - 79 * - + CAST( NULL AS DECIMAL ) / - - 49 * - 53 + + - 97 END + 53 + - 61 * + 39 AS col2
----
33
NULL

skipif mysql # not compatible
query II rowsort label-7459
SELECT + 33 AS col2, COUNT ( * ) * - + 66 * - + CASE - - 93 WHEN + + NULLIF ( COUNT ( * ), - 17 ) THEN - 79 * - + CAST ( NULL AS REAL ) / - - 49 * - 53 + + - 97 END + 53 + - 61 * + 39 AS col2
----
33
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7460
SELECT DISTINCT + COALESCE ( + COUNT( * ), 89 ) * - 50 + - COALESCE ( - + 41, - + 27 ) AS col0, ( 48 ) AS col2, + - 70
----
-9
48
-70

skipif mysql # not compatible
query III rowsort label-7460
SELECT DISTINCT + COALESCE ( + COUNT ( * ), 89 ) * - 50 + - COALESCE ( - + 41, - + 27 ) AS col0, ( 48 ) AS col2, + - 70
----
-9
48
-70

query II rowsort
SELECT DISTINCT - 3 * + 1 AS col0, - CASE - 32 WHEN + 96 THEN - 97 ELSE NULL END AS col0
----
-3
NULL

query I rowsort
SELECT ALL COALESCE ( - + 72, 27 ) * + 34 - + 71 AS col1
----
-2519

onlyif mysql # aggregate syntax: 
query II rowsort label-7463
SELECT COUNT( * ), 86 - + 77 AS col1
----
1
9

skipif mysql # not compatible
query II rowsort label-7463
SELECT COUNT ( * ), 86 - + 77 AS col1
----
1
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7464
SELECT - MIN( + CASE + + 28 WHEN - 82 + 29 + + CAST( NULL AS SIGNED ) THEN NULL WHEN + 19 * - 52 - 39 THEN NULL ELSE - 68 END ) * 48 col2, + 67
----
3264
67

skipif mysql # not compatible
query II rowsort label-7464
SELECT - MIN ( + CASE + + 28 WHEN - 82 + 29 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 19 * - 52 - 39 THEN NULL ELSE - 68 END ) * 48 col2, + 67
----
3264
67

query I rowsort
SELECT - 81 * + - 71 AS col2
----
5751

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT + 19 * - - 3 + - MIN( - 54 ) - + - 86 AS col2
----
197

skipif mysql # not compatible
query I rowsort label-7466
SELECT + 19 * - - 3 + - MIN ( - 54 ) - + - 86 AS col2
----
197

query I rowsort
SELECT + COALESCE ( + - 82, 45 * - + 61 ) AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT - - CAST( + + 24 AS SIGNED ) + - 75 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7468
SELECT - - CAST ( + + 24 AS INTEGER ) + - 75 AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7469
SELECT + + 78 * + - 66 DIV 1
----
-5148

skipif mysql # not compatible
query I rowsort label-7469
SELECT + + 78 * + - 66 / 1
----
-5148

query I rowsort
SELECT ALL + + COALESCE ( + + 91, - - 43 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT - + COUNT( * ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-7471
SELECT - + COUNT ( * ) + - 64
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7472
SELECT ALL 15, + ( - NULLIF ( - COUNT( ALL 53 ), AVG ( DISTINCT + 79 ) ) ) * - + ( - 46 ) AS col1
----
15
46

skipif mysql # not compatible
query II rowsort label-7472
SELECT ALL 15, + ( - NULLIF ( - COUNT ( ALL 53 ), AVG ( DISTINCT + 79 ) ) ) * - + ( - 46 ) AS col1
----
15
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT - - 34 + - ( - COUNT( * ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7473
SELECT - - 34 + - ( - COUNT ( * ) ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT ALL + COALESCE ( 40, - 31 * + 51 * + CAST( NULL AS SIGNED ) * + 97 * + + 88 )
----
40

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + COALESCE ( 40, - 31 * + 51 * + CAST ( NULL AS INTEGER ) * + 97 * + + 88 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7475
SELECT DISTINCT - COUNT( * ) AS col0, CASE + + 13 WHEN - + CAST( NULL AS SIGNED ) THEN NULL WHEN + + COUNT( * ) THEN + + MIN( - 90 ) * + 77 * 79 + 41 END / - MIN( ALL ( ( 92 ) ) ) + + MIN( ALL - 27 ) + - - 54 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7475
SELECT DISTINCT - COUNT ( * ) AS col0, CASE + + 13 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL WHEN + + COUNT ( * ) THEN + + MIN ( - 90 ) * + 77 * 79 + 41 END / - MIN ( ALL ( ( 92 ) ) ) + + MIN ( ALL - 27 ) + - - 54 AS col2
----
-1
NULL

query I rowsort
SELECT DISTINCT 60 * 21 * + 82 AS col0
----
103320

query I rowsort
SELECT DISTINCT COALESCE ( - + ( 37 ), + 45 ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT DISTINCT + - 45 DIV 40 + - + 17 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT + - 45 / 40 + - + 17 AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7479
SELECT - CASE + CAST( 60 AS SIGNED ) WHEN + ( 23 ) THEN NULL WHEN + NULLIF ( - + 6, - 67 * - COALESCE ( + 31, + 76 ) / + 57 ) + - NULLIF ( - + CAST( + 17 AS SIGNED ), - + 86 - - + COUNT( * ) ) THEN - - COUNT( * ) END + 81 + ( 81 ) + 25 + - - ( + 61 ) - - - 30 * 4 AS col1, - 15
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-7479
SELECT - CASE + CAST ( 60 AS INTEGER ) WHEN + ( 23 ) THEN NULL WHEN + NULLIF ( - + 6, - 67 * - COALESCE ( + 31, + 76 ) / + 57 ) + - NULLIF ( - + CAST ( + 17 AS INTEGER ), - + 86 - - + COUNT ( * ) ) THEN - - COUNT ( * ) END + 81 + ( 81 ) + 25 + - - ( + 61 ) - - - 30 * 4 AS col1, - 15
----
NULL
-15

query I rowsort
SELECT + 48 + 24
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT + - 51 * + 25 + + - 46 * + COUNT( * )
----
-1321

skipif mysql # not compatible
query I rowsort label-7481
SELECT + - 51 * + 25 + + - 46 * + COUNT ( * )
----
-1321

query I rowsort
SELECT DISTINCT - 46 * + - 47 AS col1
----
2162

query II rowsort
SELECT + + ( - 23 ) * - - 14 * - 7 AS col1, COALESCE ( + 13, 67 + - 16 * - 8 ) * + 63 + - ( + - 79 ) + + 29 * + 61 * - - 45 AS col0
----
2254
80503

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL COUNT( * ) + - - 24
----
25

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL COUNT ( * ) + - - 24
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT - - 7 + COUNT( * ) * - + COUNT( * ) - + 97
----
-91

skipif mysql # not compatible
query I rowsort label-7485
SELECT - - 7 + COUNT ( * ) * - + COUNT ( * ) - + 97
----
-91

query II rowsort
SELECT ALL 22 col0, 37 AS col1
----
22
37

query I rowsort
SELECT DISTINCT + ( + 63 ) + - 44 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ALL CASE + 42 WHEN - - MIN( 40 ) THEN 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL CASE + 42 WHEN - - MIN ( 40 ) THEN 10 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL 60 + - COUNT( * ) - - - 72 - - 21 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL 60 + - COUNT ( * ) - - - 72 - - 21 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + 42 + + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7490
SELECT + 42 + + COUNT ( * ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL 65 + + - COUNT( * ) * + - 55 * - + MIN( + 25 ) AS col0
----
-1310

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL 65 + + - COUNT ( * ) * + - 55 * - + MIN ( + 25 ) AS col0
----
-1310

query I rowsort
SELECT ALL ( - + 29 ) + + - 89 * 25 AS col0
----
-2254

query I rowsort
SELECT + NULLIF ( 64, - - 70 ) AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7494
SELECT 16 DIV + - 31 + + - MIN( ALL + ( ( - - 0 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7494
SELECT 16 / + - 31 + + - MIN ( ALL + ( ( - - 0 ) ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7495
SELECT ALL - 2 DIV - 8 + - 67 AS col0, 70 AS col2
----
-67
70

skipif mysql # not compatible
query II rowsort label-7495
SELECT ALL - 2 / - 8 + - 67 AS col0, 70 AS col2
----
-67
70

query I rowsort
SELECT ALL 94 * + 83 * + + 72
----
561744

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT + COUNT( * ) + COUNT( * ) + 88
----
90

skipif mysql # not compatible
query I rowsort label-7497
SELECT + COUNT ( * ) + COUNT ( * ) + 88
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7498
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - CASE - NULLIF ( - COUNT( * ), + 42 + 75 ) WHEN - 20 THEN NULL ELSE 43 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - CASE - NULLIF ( - COUNT ( * ), + 42 + 75 ) WHEN - 20 THEN NULL ELSE 43 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + 94 + - COUNT( * ) * 10
----
84

skipif mysql # not compatible
query I rowsort label-7499
SELECT + 94 + - COUNT ( * ) * 10
----
84

query I rowsort
SELECT - ( + ( - 40 ) ) * + 15
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - 40 + COUNT( DISTINCT - 93 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7501
SELECT - 40 + COUNT ( DISTINCT - 93 ) AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7502
SELECT ALL - 2 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL - 2 / - 64
----
0

query I rowsort
SELECT - 9 * - 4 + + + 79
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7504
SELECT ALL + + MAX( ALL 9 ) * - + MIN( - - NULLIF ( - + 38, + - 84 ) ) * + - 56 - + + 45 - - CAST( NULL AS SIGNED ) + 76 + + + CAST( + 4 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL + + MAX ( ALL 9 ) * - + MIN ( - - NULLIF ( - + 38, + - 84 ) ) * + - 56 - + + 45 - - CAST ( NULL AS INTEGER ) + 76 + + + CAST ( + 4 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7505
SELECT ALL + 61 * + + 29 AS col1, + COUNT( * ) AS col1
----
1769
1

skipif mysql # not compatible
query II rowsort label-7505
SELECT ALL + 61 * + + 29 AS col1, + COUNT ( * ) AS col1
----
1769
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT DISTINCT + 50 * + 24 * - + COUNT( * ) + - - 32 AS col1
----
-1168

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT + 50 * + 24 * - + COUNT ( * ) + - - 32 AS col1
----
-1168

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT - + SUM( DISTINCT 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-7507
SELECT - + SUM ( DISTINCT 14 )
----
-14

query I rowsort
SELECT - - ( 97 ) col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7509
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) * + 97 - - - 46 + + NULLIF ( CASE - 68 WHEN + - 33 - 61 THEN - 83 WHEN + 2 / - - AVG ( ALL 77 ) * - + 9 THEN NULL END, + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 97 - - - 46 + + NULLIF ( CASE - 68 WHEN + - 33 - 61 THEN - 83 WHEN + 2 / - - AVG ( ALL 77 ) * - + 9 THEN NULL END, + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT 63 * 51 + + - COUNT( * ) AS col2
----
3212

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT 63 * 51 + + - COUNT ( * ) AS col2
----
3212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7511
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - NULLIF ( + 28, 16 ) + + + 63 + + - 32 * - - 84 * + COALESCE ( + 39, + COUNT( * ) + + 41 ) ) * + 91 + - ( - - COUNT( ALL 64 ) ) + - COUNT( * ) - + 20 * + NULLIF ( 87, + COUNT( * ) ) + - - 85 col1
----
-9538184

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - NULLIF ( + 28, 16 ) + + + 63 + + - 32 * - - 84 * + COALESCE ( + 39, + COUNT ( * ) + + 41 ) ) * + 91 + - ( - - COUNT ( ALL 64 ) ) + - COUNT ( * ) - + 20 * + NULLIF ( 87, + COUNT ( * ) ) + - - 85 col1
----
-9538184

onlyif mysql # aggregate syntax: 
query II rowsort label-7512
SELECT DISTINCT - 92 + 57 AS col0, + COUNT( * ) * + 30 AS col1
----
-35
30

skipif mysql # not compatible
query II rowsort label-7512
SELECT DISTINCT - 92 + 57 AS col0, + COUNT ( * ) * + 30 AS col1
----
-35
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT + 34 + COUNT( * ) + + 79 * - COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT + 34 + COUNT ( * ) + + 79 * - COUNT ( * ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT ALL SUM( 65 ) + 48 col2
----
113

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL SUM ( 65 ) + 48 col2
----
113

query I rowsort
SELECT - 48 * - + 98 * 56 + + + 57
----
263481

query I rowsort
SELECT ALL + 84 * - 21 AS col2
----
-1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT + 84 + + + 35 + CAST( NULL AS SIGNED ) - 23 * - + 82 / - + COUNT( * ) + - 37 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 84 + + + 35 + CAST ( NULL AS INTEGER ) - 23 * - + 82 / - + COUNT ( * ) + - 37 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT ALL - 93 + CAST( NULL AS SIGNED ) * ( - 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL - 93 + CAST ( NULL AS INTEGER ) * ( - 15 ) AS col1
----
NULL

query I rowsort
SELECT - 30 * + 10 AS col2
----
-300

query I rowsort
SELECT - ( - + 14 ) AS col0
----
14

query I rowsort
SELECT 39 - - 56
----
95

query I rowsort
SELECT ALL 18 * 54
----
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT ALL - CAST( + 72 AS SIGNED ) - - - 12 - + 47
----
-131

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - CAST ( + 72 AS INTEGER ) - - - 12 - + 47
----
-131

query I rowsort
SELECT 55 * + 44
----
2420

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT ALL 12 DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL 12 / + 55 AS col0
----
0

query I rowsort
SELECT ALL + 21 * 91
----
1911

query I rowsort
SELECT DISTINCT 47 - + + ( + 6 )
----
41

query II rowsort
SELECT 75, 30 AS col1
----
75
30

query II rowsort
SELECT ALL - 15 AS col1, + 8
----
-15
8

query II rowsort
SELECT + 87 AS col2, - 0 AS col0
----
87
0

query II rowsort
SELECT DISTINCT - 31 AS col0, 73 AS col1
----
-31
73

query I rowsort
SELECT 9 * + + 41
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL COALESCE ( - COALESCE ( + + 8, - 31 * - + COUNT( * ) * - COUNT( * ) ), + 22 ) * ( COUNT( * ) )
----
-8

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL COALESCE ( - COALESCE ( + + 8, - 31 * - + COUNT ( * ) * - COUNT ( * ) ), + 22 ) * ( COUNT ( * ) )
----
-8

query II rowsort
SELECT + + 22 AS col0, + 35 * - 85 * 67
----
22
-199325

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + MIN( DISTINCT 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7535
SELECT + MIN ( DISTINCT 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7536
SELECT DISTINCT - - COUNT( * ), MIN( ALL - 62 ) AS col1
----
1
-62

skipif mysql # not compatible
query II rowsort label-7536
SELECT DISTINCT - - COUNT ( * ), MIN ( ALL - 62 ) AS col1
----
1
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7537
SELECT + 57 * + ( - COUNT( * ) ) + CASE + CAST( NULL AS SIGNED ) WHEN - - 88 THEN NULL ELSE - 95 + 37 + - 23 END AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-7537
SELECT + 57 * + ( - COUNT ( * ) ) + CASE + CAST ( NULL AS INTEGER ) WHEN - - 88 THEN NULL ELSE - 95 + 37 + - 23 END AS col2
----
-138

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7538
SELECT + COUNT( * ) * + + COALESCE ( 85, NULLIF ( + 22, - 86 ), - 75 - + 57 - + + 65 ) * - + CAST( NULL AS DECIMAL ) - - 70 + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT + COUNT ( * ) * + + COALESCE ( 85, NULLIF ( + 22, - 86 ), - 75 - + 57 - + + 65 ) * - + CAST ( NULL AS REAL ) - - 70 + 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL + COUNT( * ) + + ( 11 ) + + + 98 * + 6 * - 20 + 66 + + - 73
----
-11755

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL + COUNT ( * ) + + ( 11 ) + + + 98 * + 6 * - 20 + 66 + + - 73
----
-11755

query I rowsort
SELECT + 44 * - 87 * 36 * 29 + - 88 AS col2
----
-3996520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT DISTINCT NULLIF ( + - CAST( - 48 AS SIGNED ), - 7 ) + + 21 + - 71 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT NULLIF ( + - CAST ( - 48 AS INTEGER ), - 7 ) + + 21 + - 71 AS col2
----
-2

query I rowsort
SELECT 25 + 12 * + + 99 * 9 AS col0
----
10717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7543
SELECT ALL - - 77 + - + 71 + - ( 31 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL - - 77 + - + 71 + - ( 31 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL 66 + COUNT( * ) * - - SUM( + 96 )
----
162

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL 66 + COUNT ( * ) * - - SUM ( + 96 )
----
162

query I rowsort
SELECT - 81 * - ( + 89 ) + - 97 col0
----
7112

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL + 5 + SUM( DISTINCT + 28 ) * 24
----
677

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL + 5 + SUM ( DISTINCT + 28 ) * 24
----
677

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT - + COUNT( * ), - 33 AS col2
----
-1
-33

skipif mysql # not compatible
query II rowsort label-7547
SELECT - + COUNT ( * ), - 33 AS col2
----
-1
-33

query I rowsort
SELECT ALL 93 + 97
----
190

query I rowsort
SELECT + 69 * - - 34 * - 96 + + + 50
----
-225166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7550
SELECT + 46 + - COALESCE ( 84, 17 + 18 + - CAST( - 5 AS SIGNED ) * ( + - 96 ), 48 + - 32 ) * + 33
----
-2726

skipif mysql # not compatible
query I rowsort label-7550
SELECT + 46 + - COALESCE ( 84, 17 + 18 + - CAST ( - 5 AS INTEGER ) * ( + - 96 ), 48 + - 32 ) * + 33
----
-2726

query I rowsort
SELECT ALL + + 73 + COALESCE ( - ( - 23 ), 38 )
----
96

query I rowsort
SELECT COALESCE ( + ( + 37 ), - 88 ) col0
----
37

query I rowsort
SELECT ALL + 61 - 82 col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7555
SELECT 48 + - - ( 86 ) DIV - 40 + - - 27 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7555
SELECT 48 + - - ( 86 ) / - 40 + - - 27 AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7556
SELECT ALL - 62 - - SUM( ALL + CAST( NULL AS SIGNED ) ) * 56 * 57 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - 62 - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) * 56 * 57 * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT 64 * - ( - COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-7557
SELECT 64 * - ( - COUNT ( * ) )
----
64

query I rowsort
SELECT 70 - - 97
----
167

query I rowsort
SELECT 83 + - + 47 col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT ALL - 63 DIV - NULLIF ( - 17, + 24 )
----
-3

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL - 63 / - NULLIF ( - 17, + 24 )
----
-3

query I rowsort
SELECT 54 * ( - 71 )
----
-3834

query I rowsort
SELECT 60 + + 28
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7563
SELECT DISTINCT - 45 * + + CAST( + ( + - 18 ) AS SIGNED )
----
810

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - 45 * + + CAST ( + ( + - 18 ) AS INTEGER )
----
810

query I rowsort
SELECT + 44 * - 79 * + + 76 + - 35 AS col0
----
-264211

query I rowsort
SELECT ( 3 ) - - COALESCE ( + + 6, - 81 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT 9 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-7566
SELECT 9 / + 40
----
0

query II rowsort
SELECT DISTINCT - 45 * - 19 AS col0, 38
----
855
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT CASE + + 47 WHEN - 0 + + 60 THEN 29 ELSE COUNT( * ) END + + 89 col1
----
90

skipif mysql # not compatible
query I rowsort label-7568
SELECT CASE + + 47 WHEN - 0 + + 60 THEN 29 ELSE COUNT ( * ) END + + 89 col1
----
90

query I rowsort
SELECT ALL + + 13 + - 79 + - 21 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7570
SELECT DISTINCT - + CASE MIN( DISTINCT 40 ) WHEN - ( + CASE + 13 WHEN 32 THEN CAST( NULL AS DECIMAL ) ELSE + 7 END ) * + 3 - - 72 * - 67 THEN NULL WHEN - + 16 THEN NULL WHEN - - 3 * - ( + 2 ) THEN 61 * - 21 END + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT - + CASE MIN ( DISTINCT 40 ) WHEN - ( + CASE + 13 WHEN 32 THEN CAST ( NULL AS REAL ) ELSE + 7 END ) * + 3 - - 72 * - 67 THEN NULL WHEN - + 16 THEN NULL WHEN - - 3 * - ( + 2 ) THEN 61 * - 21 END + 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7571
SELECT MAX( ALL + 67 ) * + 56 * + 63, MAX( ALL 2 ) AS col0
----
236376
2

skipif mysql # not compatible
query II rowsort label-7571
SELECT MAX ( ALL + 67 ) * + 56 * + 63, MAX ( ALL 2 ) AS col0
----
236376
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT 55 * - 57 + + + 21 + + 44 * COUNT( * ) * 46 AS col2
----
-1090

skipif mysql # not compatible
query I rowsort label-7572
SELECT 55 * - 57 + + + 21 + + 44 * COUNT ( * ) * 46 AS col2
----
-1090

query II rowsort
SELECT ALL - ( 25 ) col2, 57
----
-25
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT 60 + - CAST( - 9 AS SIGNED ) + + 21
----
90

skipif mysql # not compatible
query I rowsort label-7574
SELECT 60 + - CAST ( - 9 AS INTEGER ) + + 21
----
90

query I rowsort
SELECT - 28 + + ( 11 ) AS col1
----
-17

query I rowsort
SELECT - ( 84 ) * 83 AS col0
----
-6972

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + COUNT( * ) + + + 41
----
42

skipif mysql # not compatible
query I rowsort label-7577
SELECT + COUNT ( * ) + + + 41
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7578
SELECT ALL - 9 + + 4, + 16 * - CAST( NULL AS SIGNED ) - + 28 + + - SUM( DISTINCT - 83 ) + - 52 AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-7578
SELECT ALL - 9 + + 4, + 16 * - CAST ( NULL AS INTEGER ) - + 28 + + - SUM ( DISTINCT - 83 ) + - 52 AS col2
----
-5
NULL

query I rowsort
SELECT DISTINCT - + 59 AS col0
----
-59

query I rowsort
SELECT ALL + 34 + 83
----
117

query I rowsort
SELECT + 3 * 53 AS col2
----
159

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7582
SELECT 9 DIV 84 AS col1, CAST( NULL AS DECIMAL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7582
SELECT 9 / 84 AS col1, CAST ( NULL AS REAL )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL 0 - - - COUNT( * ) + - 83
----
-84

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL 0 - - - COUNT ( * ) + - 83
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7584
SELECT + 7 DIV 37 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7584
SELECT + 7 / 37 / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7585
SELECT - COUNT( * ) DIV + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7585
SELECT - COUNT ( * ) / + 38 AS col1
----
0

query I rowsort
SELECT + 25 * 88 AS col1
----
2200

query I rowsort
SELECT - NULLIF ( - 1, 66 ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7588
SELECT ALL COUNT( * ), - 91 AS col2
----
1
-91

skipif mysql # not compatible
query II rowsort label-7588
SELECT ALL COUNT ( * ), - 91 AS col2
----
1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT - COALESCE ( - 75, 84 + + + 23, + 56 * + COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-7589
SELECT - COALESCE ( - 75, 84 + + + 23, + 56 * + COUNT ( * ) )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7590
SELECT ALL + 30 - + 24 * - - 85 AS col1, - COUNT( * ) * + - COUNT( * )
----
-2010
1

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL + 30 - + 24 * - - 85 AS col1, - COUNT ( * ) * + - COUNT ( * )
----
-2010
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT + 65 * - - MIN( ALL - 21 ) * + 13
----
-17745

skipif mysql # not compatible
query I rowsort label-7591
SELECT + 65 * - - MIN ( ALL - 21 ) * + 13
----
-17745

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT DISTINCT MAX( ALL + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT MAX ( ALL + 58 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7593
SELECT ALL - 59 * + + COALESCE ( - CASE - 8 WHEN + - NULLIF ( + ( - 21 ), + 94 * COUNT( - 79 ) + - - 36 * - 64 - - 28 ) THEN - + 14 * + 12 DIV + 32 ELSE + 28 - - 47 END, - + COUNT( * ) ) AS col1
----
4425

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL - 59 * + + COALESCE ( - CASE - 8 WHEN + - NULLIF ( + ( - 21 ), + 94 * COUNT ( - 79 ) + - - 36 * - 64 - - 28 ) THEN - + 14 * + 12 / + 32 ELSE + 28 - - 47 END, - + COUNT ( * ) ) AS col1
----
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT - COUNT( * ) + + + 58 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT - COUNT ( * ) + + + 58 AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT DISTINCT CASE 45 WHEN - 52 THEN - COALESCE ( + 97, + + COUNT( ALL 60 ), - 95 ) WHEN + - 62 THEN - - 40 END AS col0, - 89 AS col0
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-7595
SELECT DISTINCT CASE 45 WHEN - 52 THEN - COALESCE ( + 97, + + COUNT ( ALL 60 ), - 95 ) WHEN + - 62 THEN - - 40 END AS col0, - 89 AS col0
----
NULL
-89

query I rowsort
SELECT ALL COALESCE ( + 32, + 79 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7597
SELECT - COUNT( DISTINCT - 8 ) * + 25, 51 AS col0
----
-25
51

skipif mysql # not compatible
query II rowsort label-7597
SELECT - COUNT ( DISTINCT - 8 ) * + 25, 51 AS col0
----
-25
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT ALL - 59 + 81 DIV + 26
----
-56

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL - 59 + 81 / + 26
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7599
SELECT ALL CASE + + 93 WHEN - COUNT( * ) + CASE - - 51 WHEN - - ( 0 ) / - 65 + - 43 + - 52 THEN 26 WHEN + 38 * + + 89 THEN NULL WHEN + + 89 THEN NULL END * + MAX( 45 ) + - 38 * 58 * 9 + + 6 THEN 82 + + 86 ELSE + + 49 + - 24 - + 60 END AS col0, COUNT( * ) / + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * + 56 * + 98 + + + 32 * COUNT( * ) AS col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-7599
SELECT ALL CASE + + 93 WHEN - COUNT ( * ) + CASE - - 51 WHEN - - ( 0 ) / - 65 + - 43 + - 52 THEN 26 WHEN + 38 * + + 89 THEN NULL WHEN + + 89 THEN NULL END * + MAX ( 45 ) + - 38 * 58 * 9 + + 6 THEN 82 + + 86 ELSE + + 49 + - 24 - + 60 END AS col0, COUNT ( * ) / + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 56 * + 98 + + + 32 * COUNT ( * ) AS col0
----
-35
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT DISTINCT - 14 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - 14 / 74
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT ALL + CASE + ( - - 72 ) WHEN + 49 THEN + - 30 DIV 66 WHEN + 2 THEN + + 26 ELSE 92 DIV - 11 END + + - 26 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL + CASE + ( - - 72 ) WHEN + 49 THEN + - 30 / 66 WHEN + 2 THEN + + 26 ELSE 92 / - 11 END + + - 26 AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7602
SELECT - COUNT( * ) DIV + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7602
SELECT - COUNT ( * ) / + 47 AS col0
----
0

query I rowsort
SELECT - 85 * + CASE - 0 WHEN + 77 THEN 74 WHEN - 72 / - 71 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + + 25 AS col0, 16 AS col0
----
25
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL - 60 * - - 30 + - 82 - - 13 * + COUNT( * ) - - 13 AS col0
----
-1856

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL - 60 * - - 30 + - 82 - - 13 * + COUNT ( * ) - - 13 AS col0
----
-1856

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL + ( + 96 ) * + 5 - COUNT( * ) * + 44 * + + 70 + + + 77
----
-2523

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL + ( + 96 ) * + 5 - COUNT ( * ) * + 44 * + + 70 + + + 77
----
-2523

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT SUM( 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7607
SELECT SUM ( 37 ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7608
SELECT 83 DIV + + 85 - - 3 + + 47 - + 72
----
-22

skipif mysql # not compatible
query I rowsort label-7608
SELECT 83 / + + 85 - - 3 + + 47 - + 72
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT 22 * + + 2 * + COALESCE ( + - COUNT( * ), - - 76 * + ( + 48 ) * + - 3 - - - 47 - 42 + + 9 + + 4 * + 35 * + - 48 + 2, 54 ) + - + 30 * - 47
----
1366

skipif mysql # not compatible
query I rowsort label-7609
SELECT 22 * + + 2 * + COALESCE ( + - COUNT ( * ), - - 76 * + ( + 48 ) * + - 3 - - - 47 - 42 + + 9 + + 4 * + 35 * + - 48 + 2, 54 ) + - + 30 * - 47
----
1366

query II rowsort
SELECT + - 17 * - + 11 * + 44 AS col1, + 32 AS col0
----
8228
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL + + NULLIF ( + 55, + + COALESCE ( - COUNT( * ), + AVG ( DISTINCT 57 ) * 23 * + 77, + - 34 * 64 ) + - 0 - - + 46 * 83 * + - 28 * + 60 )
----
55

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL + + NULLIF ( + 55, + + COALESCE ( - COUNT ( * ), + AVG ( DISTINCT 57 ) * 23 * + 77, + - 34 * 64 ) + - 0 - - + 46 * 83 * + - 28 * + 60 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT - + NULLIF ( CAST( - - 54 AS SIGNED ), - 9 ) + - 78 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT - + NULLIF ( CAST ( - - 54 AS INTEGER ), - 9 ) + - 78 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 73 + - 48 AS col0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT + COUNT( * ) * + 56, CASE ( + - 12 ) WHEN - 54 / 10 * + 13 THEN - + 7 / - 31 * + + 8 ELSE NULL END AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-7614
SELECT + COUNT ( * ) * + 56, CASE ( + - 12 ) WHEN - 54 / 10 * + 13 THEN - + 7 / - 31 * + + 8 ELSE NULL END AS col1
----
56
NULL

query I rowsort
SELECT ALL + 89 * 95 * - 42 AS col2
----
-355110

query II rowsort
SELECT ALL 4 AS col2, 44
----
4
44

query I rowsort
SELECT - COALESCE ( + 92, 59, + - 62 - + 29 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7618
SELECT ALL MAX( ( + - ( + CAST( 93 AS SIGNED ) ) ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL MAX ( ( + - ( + CAST ( 93 AS INTEGER ) ) ) ) AS col0
----
-93

query I rowsort
SELECT ALL 59 * - 30
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT - 65 * - MAX( - 26 )
----
-1690

skipif mysql # not compatible
query I rowsort label-7620
SELECT - 65 * - MAX ( - 26 )
----
-1690

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT + CASE WHEN - ( ( 77 ) ) = NULL THEN NULL ELSE 62 END * - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-7621
SELECT + CASE WHEN - ( ( 77 ) ) = NULL THEN NULL ELSE 62 END * - COUNT ( * )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7622
SELECT + 30 + - COUNT( + CAST( - + 64 AS SIGNED ) )
----
29

skipif mysql # not compatible
query I rowsort label-7622
SELECT + 30 + - COUNT ( + CAST ( - + 64 AS INTEGER ) )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7623
SELECT - COALESCE ( - 61, - + 80 * - 36 + - NULLIF ( + - CASE + 76 WHEN - 1 DIV + 90 DIV 74 DIV - MAX( 16 ) + 89 THEN - 23 DIV + - 31 - + COALESCE ( + 59, - 98 ) * + CASE - ( - 4 ) WHEN 77 THEN 43 ELSE NULL END * + COUNT( * ) END, + + 6 * - ( + 11 ) ) + - CAST( 12 AS SIGNED ) + - 52 + - MAX( ALL + 37 ), 48 * + 64 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7623
SELECT - COALESCE ( - 61, - + 80 * - 36 + - NULLIF ( + - CASE + 76 WHEN - 1 / + 90 / 74 / - MAX ( 16 ) + 89 THEN - 23 / + - 31 - + COALESCE ( + 59, - 98 ) * + CASE - ( - 4 ) WHEN 77 THEN 43 ELSE NULL END * + COUNT ( * ) END, + + 6 * - ( + 11 ) ) + - CAST ( 12 AS INTEGER ) + - 52 + - MAX ( ALL + 37 ), 48 * + 64 ) AS col0
----
61

query II rowsort
SELECT ALL 19, 79 AS col0
----
19
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7625
SELECT + CAST( NULL AS SIGNED ) / + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT + CAST ( NULL AS INTEGER ) / + 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL MAX( - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL MAX ( - 93 )
----
-93

query II rowsort
SELECT 72, 9 AS col2
----
72
9

query I rowsort
SELECT DISTINCT 23 + + 61 AS col0
----
84

query I rowsort
SELECT DISTINCT - 45 + 63 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL - NULLIF ( 71, 89 + + - NULLIF ( COUNT( * ), - 71 / - COUNT( * ) * 25 * 54 ) / + 26 ) + + 30 * - - COALESCE ( - - NULLIF ( + 45, + 91 * 55 / + 55 + - 60 + 32 ), + 19 ) AS col2
----
1279

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - NULLIF ( 71, 89 + + - NULLIF ( COUNT ( * ), - 71 / - COUNT ( * ) * 25 * 54 ) / + 26 ) + + 30 * - - COALESCE ( - - NULLIF ( + 45, + 91 * 55 / + 55 + - 60 + 32 ), + 19 ) AS col2
----
1279

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7631
SELECT + 81 - + ( - CASE 33 WHEN - 41 * - CAST( NULL AS DECIMAL ) + - COUNT( * ) THEN NULL WHEN + - SUM( ALL 24 ) THEN - 33 END ) * 93 - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT + 81 - + ( - CASE 33 WHEN - 41 * - CAST ( NULL AS REAL ) + - COUNT ( * ) THEN NULL WHEN + - SUM ( ALL 24 ) THEN - 33 END ) * 93 - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL MIN( - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL MIN ( - 60 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT + + 53 + 53 + - COUNT( * ) + + 20 + - + 65 * - + 95 * + 74 + NULLIF ( - CAST( NULL AS SIGNED ), + - CAST( NULL AS SIGNED ) + - + COUNT( * ) + + - 58 * + 8 / - - 2 ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT + + 53 + 53 + - COUNT ( * ) + + 20 + - + 65 * - + 95 * + 74 + NULLIF ( - CAST ( NULL AS INTEGER ), + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + + - 58 * + 8 / - - 2 ) + + 68
----
NULL

query I rowsort
SELECT - ( 10 ) - 15 * - + 34 AS col2
----
500

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT ALL - + 94 DIV 73 + + - 14
----
-15

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL - + 94 / 73 + + - 14
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7636
SELECT DISTINCT + + CAST( + COUNT( - - 52 ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT + + CAST ( + COUNT ( - - 52 ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT DISTINCT - COUNT( * ) DIV 95 - - 3 * - + 98 col2
----
-294

skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT - COUNT ( * ) / 95 - - 3 * - + 98 col2
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT ALL + + 58 * + - 50 * - COUNT( * ) * - ( - + COUNT( * ) ) * + 79 / - NULLIF ( + COUNT( * ), COUNT( * ) ) * + 33 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL + + 58 * + - 50 * - COUNT ( * ) * - ( - + COUNT ( * ) ) * + 79 / - NULLIF ( + COUNT ( * ), COUNT ( * ) ) * + 33 * - 85
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7639
SELECT ALL + - MIN( 69 ) DIV + - 92 + + + 66 - - - 52 * + 16 AS col0
----
-766

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL + - MIN ( 69 ) / + - 92 + + + 66 - - - 52 * + 16 AS col0
----
-766

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL + MIN( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL + MIN ( 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT COUNT( * ) * - 61 + 53 + - 26
----
-34

skipif mysql # not compatible
query I rowsort label-7641
SELECT COUNT ( * ) * - 61 + 53 + - 26
----
-34

query I rowsort
SELECT - 21 * - 41 * - 98
----
-84378

query II rowsort
SELECT ALL - 82 col1, 40 * + 4 AS col0
----
-82
160

query I rowsort
SELECT + ( + + 76 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT ALL - - 53 * - - COUNT( * ) + + NULLIF ( + CASE + 64 WHEN - 26 THEN 56 + + - COUNT( * ) + 22 + 45 + 85 + CASE - 57 WHEN - 21 * - NULLIF ( ( 84 ), - 87 * COUNT( * ) * - CAST( + + 29 AS SIGNED ) ) * + 83 + - + NULLIF ( 19, + - COUNT( * ) * - 54 ) - - 19 * - - 78 + - ( - 81 ) THEN + NULLIF ( - 53, + 57 ) + 46 END * 33 / 49 + + 30 * 26 - ( 75 ) * - 19 ELSE NULL END, + AVG ( ALL + + CAST( - 64 AS SIGNED ) ) ) / + - 31 - - CAST( NULL AS SIGNED ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - - 53 * - - COUNT ( * ) + + NULLIF ( + CASE + 64 WHEN - 26 THEN 56 + + - COUNT ( * ) + 22 + 45 + 85 + CASE - 57 WHEN - 21 * - NULLIF ( ( 84 ), - 87 * COUNT ( * ) * - CAST ( + + 29 AS INTEGER ) ) * + 83 + - + NULLIF ( 19, + - COUNT ( * ) * - 54 ) - - 19 * - - 78 + - ( - 81 ) THEN + NULLIF ( - 53, + 57 ) + 46 END * 33 / 49 + + 30 * 26 - ( 75 ) * - 19 ELSE NULL END, + AVG ( ALL + + CAST ( - 64 AS INTEGER ) ) ) / + - 31 - - CAST ( NULL AS INTEGER ) * + 2
----
NULL

query II rowsort
SELECT 2 col0, - 3 AS col0
----
2
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT - 88 DIV + - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7647
SELECT - 88 / + - 96 AS col1
----
0

query II rowsort
SELECT + 38, 89 * - - 50 AS col1
----
38
4450

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL - COUNT( * ) * - - 89
----
-89

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - COUNT ( * ) * - - 89
----
-89

query I rowsort
SELECT DISTINCT + 49 * + + 0 col0
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( - - 79, - - 71 + - - 93 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7652
SELECT MIN( DISTINCT 24 ) * - - NULLIF ( - - 66, + - CASE COUNT( * ) WHEN 57 THEN - + 82 + - CAST( - 79 AS SIGNED ) ELSE NULL END ) AS col1
----
1584

skipif mysql # not compatible
query I rowsort label-7652
SELECT MIN ( DISTINCT 24 ) * - - NULLIF ( - - 66, + - CASE COUNT ( * ) WHEN 57 THEN - + 82 + - CAST ( - 79 AS INTEGER ) ELSE NULL END ) AS col1
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL + 58 + - COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL + 58 + - COUNT ( * ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7654
SELECT 70 + - CAST( - COUNT( * ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-7654
SELECT 70 + - CAST ( - COUNT ( * ) AS INTEGER )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT DISTINCT 47 + 65 * NULLIF ( + + 68, + CASE 31 WHEN + + 15 * - - 61 - CAST( 4 AS SIGNED ) THEN NULL ELSE + 23 END ) AS col0
----
4467

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT 47 + 65 * NULLIF ( + + 68, + CASE 31 WHEN + + 15 * - - 61 - CAST ( 4 AS INTEGER ) THEN NULL ELSE + 23 END ) AS col0
----
4467

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT ALL COUNT( * ) * + NULLIF ( - 95, 42 )
----
-95

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL COUNT ( * ) * + NULLIF ( - 95, 42 )
----
-95

query I rowsort
SELECT ALL + 59 + + + 72 + - 18 AS col0
----
113

query I rowsort
SELECT DISTINCT NULLIF ( - 88, COALESCE ( + + 32, 53 ) / - 51 ) * - + 61
----
5368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7659
SELECT ALL 99 + + 82 + + - 53 + + - CAST( 21 AS SIGNED ) * - 63 + - 60 + - 87 + - 35 DIV + + 83 * - + 29 * + 63
----
1304

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL 99 + + 82 + + - 53 + + - CAST ( 21 AS INTEGER ) * - 63 + - 60 + - 87 + - 35 / + + 83 * - + 29 * + 63
----
1304

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT ALL ( - ( - - 6 ) ) + - 10 DIV - - 88 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL ( - ( - - 6 ) ) + - 10 / - - 88 AS col1
----
-6

query I rowsort
SELECT ( - 49 ) + - 58
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT COUNT( * ) + - 23 * - 35 * - 38 AS col1
----
-30589

skipif mysql # not compatible
query I rowsort label-7662
SELECT COUNT ( * ) + - 23 * - 35 * - 38 AS col1
----
-30589

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7663
SELECT CAST( NULL AS SIGNED ) * - + 73, + 92 * 23 + + 90 DIV + + 65 AS col2
----
NULL
2117

skipif mysql # not compatible
query II rowsort label-7663
SELECT CAST ( NULL AS INTEGER ) * - + 73, + 92 * 23 + + 90 / + + 65 AS col2
----
NULL
2117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7664
SELECT CASE + COUNT( * ) WHEN + - 89 + - + 85 THEN + 78 WHEN + 99 THEN NULL WHEN + 95 * AVG ( + - CASE - 26 WHEN + 48 THEN - 14 * - - CAST( 38 AS SIGNED ) + - - 15 - + + ( CAST( NULL AS SIGNED ) ) WHEN 18 THEN - 39 END ) THEN NULL END * - - 52 * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT CASE + COUNT ( * ) WHEN + - 89 + - + 85 THEN + 78 WHEN + 99 THEN NULL WHEN + 95 * AVG ( + - CASE - 26 WHEN + 48 THEN - 14 * - - CAST ( 38 AS INTEGER ) + - - 15 - + + ( CAST ( NULL AS INTEGER ) ) WHEN 18 THEN - 39 END ) THEN NULL END * - - 52 * 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7665
SELECT DISTINCT - COUNT( * ) + + 7 * + + 95 * - 0 + CASE + - AVG ( 87 ) WHEN + 83 THEN NULL WHEN + 25 THEN + 84 - - 0 + - 47 + COUNT( * ) * - 15 / COALESCE ( COUNT( * ), - 78 ) / - MIN( ALL - 63 ) + - 77 + - NULLIF ( 18, + 17 * - ( - + ( + - 57 ) ) - + 6 ) ELSE NULL END, + ( - 87 ) AS col2
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-7665
SELECT DISTINCT - COUNT ( * ) + + 7 * + + 95 * - 0 + CASE + - AVG ( 87 ) WHEN + 83 THEN NULL WHEN + 25 THEN + 84 - - 0 + - 47 + COUNT ( * ) * - 15 / COALESCE ( COUNT ( * ), - 78 ) / - MIN ( ALL - 63 ) + - 77 + - NULLIF ( 18, + 17 * - ( - + ( + - 57 ) ) - + 6 ) ELSE NULL END, + ( - 87 ) AS col2
----
NULL
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT ALL 64 DIV ( 6 ) * 51 AS col1
----
510

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL 64 / ( 6 ) * 51 AS col1
----
510

onlyif mysql # aggregate syntax: 
query II rowsort label-7667
SELECT ALL + COUNT( - 94 ) AS col0, 79 * - 64
----
1
-5056

skipif mysql # not compatible
query II rowsort label-7667
SELECT ALL + COUNT ( - 94 ) AS col0, 79 * - 64
----
1
-5056

query I rowsort
SELECT DISTINCT - ( - + 86 )
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7669
SELECT ALL - 47 * - ( - + 59 ) * - 3 * 73 AS col2, 14 * CAST( NULL AS DECIMAL )
----
607287
NULL

skipif mysql # not compatible
query II rowsort label-7669
SELECT ALL - 47 * - ( - + 59 ) * - 3 * 73 AS col2, 14 * CAST ( NULL AS REAL )
----
607287
NULL

query I rowsort
SELECT ( - 20 ) col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7671
SELECT + ( - CAST( NULL AS SIGNED ) ), 66 * - - 97 + - - COUNT( * ) * 58 AS col1
----
NULL
6460

skipif mysql # not compatible
query II rowsort label-7671
SELECT + ( - CAST ( NULL AS INTEGER ) ), 66 * - - 97 + - - COUNT ( * ) * 58 AS col1
----
NULL
6460

query I rowsort
SELECT ( + 96 ) * 54 * - 74 AS col1
----
-383616

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT 94 - 74 + + SUM( DISTINCT - 9 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7673
SELECT 94 - 74 + + SUM ( DISTINCT - 9 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT DISTINCT - 84 * - - 75 + MAX( ALL + 92 )
----
-6208

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT - 84 * - - 75 + MAX ( ALL + 92 )
----
-6208

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL - - 51 + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - - 51 + - COUNT ( * )
----
50

query I rowsort
SELECT 83 * COALESCE ( - 72, + + 28, - 34 * 79 + + + 57 )
----
-5976

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT + COUNT( * ) AS col0, + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-7677
SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col0
----
1
1

query II rowsort
SELECT + 56 AS col2, 88 AS col0
----
56
88

query I rowsort
SELECT ALL + 72 + + + 12
----
84

query I rowsort
SELECT + 16 * 84 + 11
----
1355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7681
SELECT 73 + + + ( + SUM( ALL 2 ) ) DIV 44
----
73

skipif mysql # not compatible
query I rowsort label-7681
SELECT 73 + + + ( + SUM ( ALL 2 ) ) / 44
----
73

query I rowsort
SELECT ALL - 0 * 1
----
0

query I rowsort
SELECT ALL + 72 + + 33 AS col1
----
105

query I rowsort
SELECT DISTINCT + 27 + 78 * + + 7
----
573

onlyif mysql # aggregate syntax: 
query II rowsort label-7685
SELECT ALL - MIN( DISTINCT 60 ) + - - 28, ( 2 ) col2
----
-32
2

skipif mysql # not compatible
query II rowsort label-7685
SELECT ALL - MIN ( DISTINCT 60 ) + - - 28, ( 2 ) col2
----
-32
2

query I rowsort
SELECT 99 * - + 76
----
-7524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7687
SELECT 73 * + ( + CASE + NULLIF ( 11, - 47 ) WHEN 10 + - CAST( NULL AS SIGNED ) THEN - COUNT( * ) * - 18 - 81 ELSE - 11 END ) AS col0
----
-803

skipif mysql # not compatible
query I rowsort label-7687
SELECT 73 * + ( + CASE + NULLIF ( 11, - 47 ) WHEN 10 + - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) * - 18 - 81 ELSE - 11 END ) AS col0
----
-803

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT COUNT( * ) + - 16
----
-15

skipif mysql # not compatible
query I rowsort label-7688
SELECT COUNT ( * ) + - 16
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT DISTINCT + COUNT( * ) + + 48
----
49

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + COUNT ( * ) + + 48
----
49

query I rowsort
SELECT ALL + ( 93 ) - + NULLIF ( 66, + 25 ) * 82 * - 26 AS col1
----
140805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT 98 * - CAST( - 93 AS SIGNED ) AS col2
----
9114

skipif mysql # not compatible
query I rowsort label-7691
SELECT 98 * - CAST ( - 93 AS INTEGER ) AS col2
----
9114

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT COUNT( * ) + + 36
----
37

skipif mysql # not compatible
query I rowsort label-7692
SELECT COUNT ( * ) + + 36
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT DISTINCT COUNT( - 51 ) * - 24 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT COUNT ( - 51 ) * - 24 AS col2
----
-24

query I rowsort
SELECT ( - 34 ) * + 12 + - 18 AS col1
----
-426

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL - SUM( ALL - + ( - 69 ) ) * 6
----
-414

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - SUM ( ALL - + ( - 69 ) ) * 6
----
-414

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT ALL - CASE - + 45 WHEN - - COUNT( + 27 ) THEN - 63 ELSE + 36 END AS col2, MAX( DISTINCT + 42 ) col2
----
-36
42

skipif mysql # not compatible
query II rowsort label-7696
SELECT ALL - CASE - + 45 WHEN - - COUNT ( + 27 ) THEN - 63 ELSE + 36 END AS col2, MAX ( DISTINCT + 42 ) col2
----
-36
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7697
SELECT - SUM( ALL - 45 ) + + 80, - 24 AS col1
----
125
-24

skipif mysql # not compatible
query II rowsort label-7697
SELECT - SUM ( ALL - 45 ) + + 80, - 24 AS col1
----
125
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7698
SELECT CAST( - 54 AS SIGNED ) * + ( - COUNT( * ) ) * + ( + 96 ) + + + 89 + 88 * + - CASE - - CASE 28 WHEN - COUNT( * ) * + 5 THEN - CAST( - COALESCE ( - SUM( - ( - 87 ) ), 87 ) AS SIGNED ) * + - COUNT( * ) * COALESCE ( - NULLIF ( - 81, NULLIF ( 82, - 84 ) ), + 7 * ( - ( - 45 ) ) + - COALESCE ( - 69, + 78 ) * 93 - + 59 - - AVG ( 34 ) + 55 * 69 / - - 82 ) * + - 85 + - 99 WHEN - 28 + - 21 THEN - + 94 ELSE NULL END WHEN - 41 * - COALESCE ( 56, + 22 * 93 - + 15 * 38 ) THEN 57 WHEN + AVG ( 42 ) THEN - 17 ELSE NULL END * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT CAST ( - 54 AS INTEGER ) * + ( - COUNT ( * ) ) * + ( + 96 ) + + + 89 + 88 * + - CASE - - CASE 28 WHEN - COUNT ( * ) * + 5 THEN - CAST ( - COALESCE ( - SUM ( - ( - 87 ) ), 87 ) AS INTEGER ) * + - COUNT ( * ) * COALESCE ( - NULLIF ( - 81, NULLIF ( 82, - 84 ) ), + 7 * ( - ( - 45 ) ) + - COALESCE ( - 69, + 78 ) * 93 - + 59 - - AVG ( 34 ) + 55 * 69 / - - 82 ) * + - 85 + - 99 WHEN - 28 + - 21 THEN - + 94 ELSE NULL END WHEN - 41 * - COALESCE ( 56, + 22 * 93 - + 15 * 38 ) THEN 57 WHEN + AVG ( 42 ) THEN - 17 ELSE NULL END * 16 AS col2
----
NULL

query I rowsort
SELECT ALL 37 * + 63
----
2331

query I rowsort
SELECT - 20 + - 26
----
-46

query I rowsort
SELECT ALL + - ( 94 )
----
-94

query II rowsort
SELECT ALL + 52, - 8 AS col1
----
52
-8

query I rowsort
SELECT ALL + 74 * + - 44 AS col2
----
-3256

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT ALL 39 DIV + + 85 * + + 49
----
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL 39 / + + 85 * + + 49
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT + COUNT( * ) AS col0, 46 AS col0
----
1
46

skipif mysql # not compatible
query II rowsort label-7705
SELECT + COUNT ( * ) AS col0, 46 AS col0
----
1
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7706
SELECT + - 19, + CAST( NULL AS SIGNED ) AS col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-7706
SELECT + - 19, + CAST ( NULL AS INTEGER ) AS col1
----
-19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL 7 * MIN( + 81 ) + - - COUNT( * ) + + 3 + + 88 AS col0
----
659

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL 7 * MIN ( + 81 ) + - - COUNT ( * ) + + 3 + + 88 AS col0
----
659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7708
SELECT CASE NULLIF ( ( + NULLIF ( 98, 95 ) ), + - COUNT( * ) + - - CAST( COUNT( + 46 ) AS SIGNED ) ) WHEN + + 89 THEN - - 92 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT CASE NULLIF ( ( + NULLIF ( 98, 95 ) ), + - COUNT ( * ) + - - CAST ( COUNT ( + 46 ) AS INTEGER ) ) WHEN + + 89 THEN - - 92 END AS col0
----
NULL

query I rowsort
SELECT + ( 20 ) AS col2
----
20

query II rowsort
SELECT - 7 + + 14 AS col0, 78 AS col0
----
7
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7711
SELECT CASE - - CAST( NULL AS SIGNED ) WHEN 36 THEN ( 37 ) / + 51 + COUNT( * ) END AS col1, AVG ( - CASE + 65 WHEN 93 / - CAST( 50 AS SIGNED ) THEN + + 36 END ) * - 74 - - COUNT( * ) + + + AVG ( DISTINCT - 81 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7711
SELECT CASE - - CAST ( NULL AS INTEGER ) WHEN 36 THEN ( 37 ) / + 51 + COUNT ( * ) END AS col1, AVG ( - CASE + 65 WHEN 93 / - CAST ( 50 AS INTEGER ) THEN + + 36 END ) * - 74 - - COUNT ( * ) + + + AVG ( DISTINCT - 81 )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7712
SELECT DISTINCT 94 * 95 + - SUM( 9 ) + + 79 + + 11 * + 3 AS col0, + 80
----
9033
80

skipif mysql # not compatible
query II rowsort label-7712
SELECT DISTINCT 94 * 95 + - SUM ( 9 ) + + 79 + + 11 * + 3 AS col0, + 80
----
9033
80

query I rowsort
SELECT + 71 * + - 36 * 54 AS col2
----
-138024

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT SUM( ALL 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7714
SELECT SUM ( ALL 74 ) AS col2
----
74

query I rowsort
SELECT + 35 * + 91 AS col2
----
3185

query I rowsort
SELECT - 41 * 35 AS col2
----
-1435

query I rowsort
SELECT ALL - 52 * 80 - - 96 col1
----
-4064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7718
SELECT SUM( ALL + 53 ), - 6 * + 75 * + - 96 + 17 + - 48 + + COALESCE ( 58, + + 32 ) * 47 DIV 69 DIV + 85 AS col2
----
53
43169

skipif mysql # not compatible
query II rowsort label-7718
SELECT SUM ( ALL + 53 ), - 6 * + 75 * + - 96 + 17 + - 48 + + COALESCE ( 58, + + 32 ) * 47 / 69 / + 85 AS col2
----
53
43169

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT + COUNT( * ) - 37
----
-36

skipif mysql # not compatible
query I rowsort label-7719
SELECT + COUNT ( * ) - 37
----
-36

query I rowsort
SELECT - 11 * - 68 AS col0
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL - 69 * - MAX( ALL - - 2 )
----
138

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL - 69 * - MAX ( ALL - - 2 )
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT DISTINCT 28 DIV + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT 28 / + 71 AS col2
----
0

query I rowsort
SELECT DISTINCT ( 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7724
SELECT ALL ( - 86 ), + NULLIF ( - 23, + CASE - + 60 WHEN + - 6 - + 97 THEN - 94 ELSE NULL END * - + 97 ) + - COUNT( * ) AS col1
----
-86
-24

skipif mysql # not compatible
query II rowsort label-7724
SELECT ALL ( - 86 ), + NULLIF ( - 23, + CASE - + 60 WHEN + - 6 - + 97 THEN - 94 ELSE NULL END * - + 97 ) + - COUNT ( * ) AS col1
----
-86
-24

query I rowsort
SELECT ALL - 10 * + 32 + + 96
----
-224

query I rowsort
SELECT - 42 - 96 col1
----
-138

query I rowsort
SELECT - 82 * 54 * + 41
----
-181548

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL - CASE - 3 WHEN + 33 THEN MAX( - - 6 ) WHEN - 44 THEN NULL WHEN + 46 * + COUNT( * ) + - - 42 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL - CASE - 3 WHEN + 33 THEN MAX ( - - 6 ) WHEN - 44 THEN NULL WHEN + 46 * + COUNT ( * ) + - - 42 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT - 95 * + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7729
SELECT - 95 * + - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT - MIN( DISTINCT + 38 ) * + 70
----
-2660

skipif mysql # not compatible
query I rowsort label-7730
SELECT - MIN ( DISTINCT + 38 ) * + 70
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL CASE - + 1 WHEN - 60 * - 41 THEN - MAX( - 76 ) + + 51 ELSE NULL END * - - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL CASE - + 1 WHEN - 60 * - 41 THEN - MAX ( - 76 ) + + 51 ELSE NULL END * - - 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7732
SELECT ALL 84 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL 84 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 45 * + 15
----
-675

query II rowsort
SELECT - CASE 23 WHEN 91 - + 10 / ( + + 56 ) THEN - 99 WHEN - COALESCE ( 77, + 27 ) THEN NULL END * 49 * - 97 AS col2, + 78 AS col2
----
NULL
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7735
SELECT + 67 * 83 AS col2, COUNT( * ) DIV + - 74
----
5561
0

skipif mysql # not compatible
query II rowsort label-7735
SELECT + 67 * 83 AS col2, COUNT ( * ) / + - 74
----
5561
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7736
SELECT + NULLIF ( + CAST( - - 1 AS SIGNED ), + - COUNT( * ) ) * - - 16 + 28 + - + 64 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-7736
SELECT + NULLIF ( + CAST ( - - 1 AS INTEGER ), + - COUNT ( * ) ) * - - 16 + 28 + - + 64 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7737
SELECT DISTINCT + 35, - 52 * 61 * - 74 + - CASE + 65 WHEN + + COUNT( * ) * + - 31 THEN NULL WHEN - 72 THEN + 73 WHEN + - 1 + ( 53 ) THEN NULL ELSE NULL END + - 63 AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-7737
SELECT DISTINCT + 35, - 52 * 61 * - 74 + - CASE + 65 WHEN + + COUNT ( * ) * + - 31 THEN NULL WHEN - 72 THEN + 73 WHEN + - 1 + ( 53 ) THEN NULL ELSE NULL END + - 63 AS col1
----
35
NULL

query I rowsort
SELECT + 95 + - + 63 + + 3 + + 18 AS col2
----
53

query I rowsort
SELECT + 20 * + COALESCE ( 27, + 64 - - 89 ) + - + 82 AS col1
----
458

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + 41 - COUNT( * ) - - 46 * 45
----
2110

skipif mysql # not compatible
query I rowsort label-7740
SELECT + 41 - COUNT ( * ) - - 46 * 45
----
2110

query I rowsort
SELECT ALL - 8 * + 67 - - 87 AS col1
----
-449

query I rowsort
SELECT + 29 * + + 42 AS col2
----
1218

query I rowsort
SELECT ( - 72 ) col0
----
-72

query I rowsort
SELECT + 70 * + 36 + + + 59
----
2579

query I rowsort
SELECT ALL 75 * + 16 AS col2
----
1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7746
SELECT CASE + CASE + 37 WHEN 6 THEN NULL ELSE + 3 + + ( + + 17 ) END WHEN + 96 * 48 * + CAST( + COUNT( * ) AS SIGNED ) THEN - ( + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT CASE + CASE + 37 WHEN 6 THEN NULL ELSE + 3 + + ( + + 17 ) END WHEN + 96 * 48 * + CAST ( + COUNT ( * ) AS INTEGER ) THEN - ( + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT + 57 + - - 31 DIV - 14 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7747
SELECT + 57 + - - 31 / - 14 AS col0
----
55

query I rowsort
SELECT ALL + 93 * - 74 - - + 67 AS col1
----
-6815

query I rowsort
SELECT CASE + 26 WHEN - - 60 THEN NULL ELSE 81 * + 90 * 2 * 19 + 20 + ( - - 76 ) + - + 3 + 8 END AS col2
----
277121

query I rowsort
SELECT ALL ( 43 ) AS col1
----
43

query I rowsort
SELECT + 51 * 9 col0
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT + 63 + - - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-7752
SELECT + 63 + - - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT CASE + 21 WHEN ( + 66 ) THEN SUM( ALL - 14 ) WHEN + 13 THEN 66 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT CASE + 21 WHEN ( + 66 ) THEN SUM ( ALL - 14 ) WHEN + 13 THEN 66 + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 43 + 27 AS col0
----
70

query I rowsort
SELECT 52 + 40 AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7756
SELECT NULLIF ( - NULLIF ( 22, + 41 ), 92 ) DIV 17 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7756
SELECT NULLIF ( - NULLIF ( 22, + 41 ), 92 ) / 17 AS col0
----
-1

query I rowsort
SELECT 39 + 2 AS col1
----
41

query I rowsort
SELECT ALL 15 + - ( + 22 ) AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT 49 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-7759
SELECT 49 / + 46
----
1

query I rowsort
SELECT ALL + 3 + 7 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT DISTINCT ( + COUNT( * ) ) * 56
----
56

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT ( + COUNT ( * ) ) * 56
----
56

query I rowsort
SELECT 64 - + 27
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT 74 + - MAX( ALL 3 )
----
71

skipif mysql # not compatible
query I rowsort label-7763
SELECT 74 + - MAX ( ALL 3 )
----
71

query I rowsort
SELECT ALL + 3 + 17 * 5 AS col2
----
88

query I rowsort
SELECT 83 + + 77
----
160

query I rowsort
SELECT 54 + - 66
----
-12

query I rowsort
SELECT 64 + + 91
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT MAX( 66 ) - - 3 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7768
SELECT MAX ( 66 ) - - 3 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT 73 + - 51 DIV 73 col0
----
73

skipif mysql # not compatible
query I rowsort label-7769
SELECT 73 + - 51 / 73 col0
----
73

query I rowsort
SELECT ALL - 40 + 35 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ALL - COALESCE ( + 70, COALESCE ( COUNT( * ), - ( 99 ) ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL - COALESCE ( + 70, COALESCE ( COUNT ( * ), - ( 99 ) ) ) AS col1
----
-70

query I rowsort
SELECT 83 + 45
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL COUNT( * ) * - 89 col0
----
-89

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL COUNT ( * ) * - 89 col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - 41 - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - 41 - COUNT ( * )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT - 66 DIV - 68 + + ( - 14 ) * 88 AS col0
----
-1232

skipif mysql # not compatible
query I rowsort label-7775
SELECT - 66 / - 68 + + ( - 14 ) * 88 AS col0
----
-1232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7776
SELECT 89 * COUNT( CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7776
SELECT 89 * COUNT ( CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT COUNT( * ) * - 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7777
SELECT COUNT ( * ) * - 20 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 9 AS col1
----
NULL

query I rowsort
SELECT 7 + 41
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT 14 * MIN( DISTINCT + 37 ) AS col2
----
518

skipif mysql # not compatible
query I rowsort label-7780
SELECT 14 * MIN ( DISTINCT + 37 ) AS col2
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT COUNT( * ) + + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7781
SELECT COUNT ( * ) + + 83 AS col2
----
84

query I rowsort
SELECT + 24 * 33 AS col0
----
792

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT 35 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-7783
SELECT 35 / 49
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT CAST( NULL AS SIGNED ) - + 83 / + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT CAST ( NULL AS INTEGER ) - + 83 / + 22 AS col2
----
NULL

query I rowsort
SELECT 68 * - 80
----
-5440

query I rowsort
SELECT ALL - 67 + + 22 * + 16
----
285

query I rowsort
SELECT DISTINCT 88 + 65
----
153

query I rowsort
SELECT 38 + - 15
----
23

query I rowsort
SELECT DISTINCT 6 + 69 * 2 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT - ( + CASE 60 WHEN + 83 - 13 * 28 THEN NULL ELSE - CASE - CASE + COUNT( * ) WHEN - 75 * - 63 THEN 87 - 14 WHEN COUNT( * ) THEN NULL END WHEN 18 THEN + COUNT( * ) END * - 11 + + 44 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT - ( + CASE 60 WHEN + 83 - 13 * 28 THEN NULL ELSE - CASE - CASE + COUNT ( * ) WHEN - 75 * - 63 THEN 87 - 14 WHEN COUNT ( * ) THEN NULL END WHEN 18 THEN + COUNT ( * ) END * - 11 + + 44 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - COUNT( ( 33 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7791
SELECT - COUNT ( ( 33 ) ) col2
----
-1

query I rowsort
SELECT + 7 * - CASE + 39 + + 37 WHEN 72 THEN - 1 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL + + 87 + ( 52 + MAX( 31 ) )
----
170

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + + 87 + ( 52 + MAX ( 31 ) )
----
170

query I rowsort
SELECT - + NULLIF ( 60, 51 / - 37 + 57 )
----
-60

query I rowsort
SELECT ALL 54 * + 55
----
2970

query I rowsort
SELECT DISTINCT 13 - + 32 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7797
SELECT CASE NULLIF ( 64, + MAX( 58 ) ) WHEN COALESCE ( - COUNT( * ), 50 * - 5 ) + + COALESCE ( + 83, 11, 81 * - 55 ) THEN 38 - + 0 WHEN 54 * + 11 - + CAST( NULL AS DECIMAL ) THEN NULL WHEN + 83 THEN NULL END + - NULLIF ( CAST( - ( 12 ) AS SIGNED ), - COUNT( ALL - CAST( NULL AS SIGNED ) ) * 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT CASE NULLIF ( 64, + MAX ( 58 ) ) WHEN COALESCE ( - COUNT ( * ), 50 * - 5 ) + + COALESCE ( + 83, 11, 81 * - 55 ) THEN 38 - + 0 WHEN 54 * + 11 - + CAST ( NULL AS REAL ) THEN NULL WHEN + 83 THEN NULL END + - NULLIF ( CAST ( - ( 12 ) AS INTEGER ), - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * 36 ) AS col0
----
NULL

query I rowsort
SELECT ALL 0 * + + 20 - - 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT MIN( DISTINCT + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-7799
SELECT MIN ( DISTINCT + 63 )
----
63

query I rowsort
SELECT 82 * 30 * ( + 55 )
----
135300

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT 34 * 4 * MIN( DISTINCT + ( ( 8 ) ) )
----
1088

skipif mysql # not compatible
query I rowsort label-7801
SELECT 34 * 4 * MIN ( DISTINCT + ( ( 8 ) ) )
----
1088

query I rowsort
SELECT 24 * - - COALESCE ( + 97, + ( 90 ) ) AS col0
----
2328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 49 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 49 col2
----
NULL

query I rowsort
SELECT - 74 * ( 51 ) + 8 * 40
----
-3454

query I rowsort
SELECT ALL + 47 * - 69 col0
----
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT DISTINCT + COUNT( DISTINCT + + ( 92 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT + COUNT ( DISTINCT + + ( 92 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT 20 * + + 6 + + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-7807
SELECT 20 * + + 6 + + COUNT ( * )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT MIN( ALL 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7808
SELECT MIN ( ALL 95 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL - COUNT( * ) * 8 + + 79 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL - COUNT ( * ) * 8 + + 79 AS col2
----
71

query I rowsort
SELECT ALL + + 46 * + 41 + 46 AS col2
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT - 62 + + COUNT( * ) + - 30 * - 86
----
2519

skipif mysql # not compatible
query I rowsort label-7811
SELECT - 62 + + COUNT ( * ) + - 30 * - 86
----
2519

query I rowsort
SELECT ALL + + 48 * - - 68 AS col0
----
3264

query I rowsort
SELECT DISTINCT - + 86 + + 20
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT DISTINCT - 29 * - CAST( NULL AS SIGNED ) + + 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT - 29 * - CAST ( NULL AS INTEGER ) + + 67 col2
----
NULL

query I rowsort
SELECT ALL + 71 + + + 69 AS col2
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7816
SELECT + - COALESCE ( 48, + ( - COUNT( * ) ) + NULLIF ( + CAST( COUNT( * ) AS SIGNED ), - 45 - 63 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-7816
SELECT + - COALESCE ( 48, + ( - COUNT ( * ) ) + NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), - 45 - 63 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL + 91 + - - COUNT( * ) + 95 * - 77
----
-7223

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL + 91 + - - COUNT ( * ) + 95 * - 77
----
-7223

query I rowsort
SELECT DISTINCT - 80 + + - 49 + + 45
----
-84

query I rowsort
SELECT + 20 * + 53 + 42 * - 44
----
-788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7820
SELECT ALL + ( COUNT( * ) ) / - MAX( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + ( COUNT ( * ) ) / - MAX ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT ALL COUNT( * ) * + 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL COUNT ( * ) * + 55 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7822
SELECT - + CAST( + 31 AS SIGNED ) + ( COUNT( * ) ) * + 95
----
64

skipif mysql # not compatible
query I rowsort label-7822
SELECT - + CAST ( + 31 AS INTEGER ) + ( COUNT ( * ) ) * + 95
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT + 91 DIV + - 17
----
-5

skipif mysql # not compatible
query I rowsort label-7823
SELECT + 91 / + - 17
----
-5

query I rowsort
SELECT + - 75 + + - 37 AS col1
----
-112

query I rowsort
SELECT DISTINCT + 64 - - 59 - - NULLIF ( 81, + 62 ) col0
----
204

query I rowsort
SELECT + + 0 + + NULLIF ( NULLIF ( 8, + 51 * 36 + + 49 ), + 72 * + 87 )
----
8

query I rowsort
SELECT ALL + 95 * + + 38 AS col1
----
3610

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL - COALESCE ( + 86, CASE MIN( + 76 ) WHEN + 53 THEN + 93 ELSE NULL END ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL - COALESCE ( + 86, CASE MIN ( + 76 ) WHEN + 53 THEN + 93 ELSE NULL END ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + COUNT( * ) + - + MAX( ( 5 ) ) + - 92 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7829
SELECT + COUNT ( * ) + - + MAX ( ( 5 ) ) + - 92 AS col0
----
-96

query I rowsort
SELECT + 42 + 68
----
110

query II rowsort
SELECT DISTINCT 1 AS col1, - 14 * 6 AS col1
----
1
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT - 94 * - COUNT( * ) * + + 49
----
4606

skipif mysql # not compatible
query I rowsort label-7832
SELECT - 94 * - COUNT ( * ) * + + 49
----
4606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7833
SELECT ALL 0 DIV - COUNT( * ) * - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL 0 / - COUNT ( * ) * - 55 AS col0
----
0

query I rowsort
SELECT + 6 + 98
----
104

query I rowsort
SELECT + 82 + - 97 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL - COALESCE ( - 89, + COUNT( ALL 0 ) ) * 72 AS col1
----
6408

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL - COALESCE ( - 89, + COUNT ( ALL 0 ) ) * 72 AS col1
----
6408

query I rowsort
SELECT + 58 * + 22 AS col0
----
1276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7838
SELECT ALL 64 DIV + CASE + + 37 WHEN + 92 THEN 0 WHEN - 79 THEN NULL ELSE COUNT( * ) END col0
----
64

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL 64 / + CASE + + 37 WHEN + 92 THEN 0 WHEN - 79 THEN NULL ELSE COUNT ( * ) END col0
----
64

query I rowsort
SELECT ( - 59 ) AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT + CAST( 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-7840
SELECT + CAST ( 2 AS INTEGER )
----
2

query I rowsort
SELECT - 7 * 44 + + 67
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL + MIN( ALL + + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + MIN ( ALL + + 69 )
----
69

query I rowsort
SELECT + 22 * - ( + 28 )
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT + ( + + CASE WHEN 13 <= ( - AVG ( - 36 ) * + COUNT( * ) ) THEN + 88 + 43 * + 99 WHEN NOT 69 / - 60 >= ( NULLIF ( - 94, 78 + - 88 ) ) THEN 6 + + COUNT( * ) END ) col0
----
4345

skipif mysql # not compatible
query I rowsort label-7844
SELECT + ( + + CASE WHEN 13 <= ( - AVG ( - 36 ) * + COUNT ( * ) ) THEN + 88 + 43 * + 99 WHEN NOT 69 / - 60 >= ( NULLIF ( - 94, 78 + - 88 ) ) THEN 6 + + COUNT ( * ) END ) col0
----
4345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7845
SELECT + 99 * - ( - CAST( - NULLIF ( 20, + COUNT( * ) * 19 ) AS SIGNED ) ) AS col0
----
-1980

skipif mysql # not compatible
query I rowsort label-7845
SELECT + 99 * - ( - CAST ( - NULLIF ( 20, + COUNT ( * ) * 19 ) AS INTEGER ) ) AS col0
----
-1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7846
SELECT - COALESCE ( COUNT( * ), + AVG ( 73 ) + - 52 ) + - 23 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT - COALESCE ( COUNT ( * ), + AVG ( 73 ) + - 52 ) + - 23 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( CASE - ( - 86 ) WHEN + 1 THEN 25 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7848
SELECT - 81 DIV 80
----
-1

skipif mysql # not compatible
query I rowsort label-7848
SELECT - 81 / 80
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT ALL + MAX( ALL + + 27 ) * - 56 + 53 AS col0
----
-1459

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL + MAX ( ALL + + 27 ) * - 56 + 53 AS col0
----
-1459

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + 92 * + + COUNT( * ) * - 62 * 54 AS col0
----
-308016

skipif mysql # not compatible
query I rowsort label-7850
SELECT + 92 * + + COUNT ( * ) * - 62 * 54 AS col0
----
-308016

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT + MIN( ALL + + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT + MIN ( ALL + + 38 )
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7852
SELECT DISTINCT - 40 * + CAST( NULL AS DECIMAL ) * - 99 + - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - 40 * + CAST ( NULL AS REAL ) * - 99 + - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL + COALESCE ( CASE - 68 WHEN COUNT( * ) THEN - 56 ELSE NULL END, + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL + COALESCE ( CASE - 68 WHEN COUNT ( * ) THEN - 56 ELSE NULL END, + 49 ) AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT + + CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-7854
SELECT + + CAST ( - 88 AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-7855
SELECT - 96 AS col1, COUNT( 5 ) * CASE + 26 WHEN COUNT( ALL + 21 ) THEN NULL WHEN 16 THEN - 72 * MAX( 57 * 48 ) END + 65
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-7855
SELECT - 96 AS col1, COUNT ( 5 ) * CASE + 26 WHEN COUNT ( ALL + 21 ) THEN NULL WHEN 16 THEN - 72 * MAX ( 57 * 48 ) END + 65
----
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL 37 * - 48 + MAX( DISTINCT 74 ) * - 51 AS col2
----
-5550

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL 37 * - 48 + MAX ( DISTINCT 74 ) * - 51 AS col2
----
-5550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT - 4 + CAST( NULL AS SIGNED ) - + 52 + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT - 4 + CAST ( NULL AS INTEGER ) - + 52 + + 41
----
NULL

query I rowsort
SELECT DISTINCT - - 71 * + 28
----
1988

query I rowsort
SELECT - 62 * - 49
----
3038

onlyif mysql # aggregate syntax: 
query II rowsort label-7860
SELECT - COUNT( * ) col0, 76
----
-1
76

skipif mysql # not compatible
query II rowsort label-7860
SELECT - COUNT ( * ) col0, 76
----
-1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT - - SUM( - + ( + 27 ) ) * 16 AS col0
----
-432

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT - - SUM ( - + ( + 27 ) ) * 16 AS col0
----
-432

query I rowsort
SELECT - - NULLIF ( - + 4, - 12 ) * - 85
----
340

query I rowsort
SELECT - CASE + + 86 WHEN - AVG ( 24 ) + + 73 THEN 33 + 55 WHEN 89 / + 58 + 77 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT ALL + 80 AS col1, COUNT( * )
----
80
1

skipif mysql # not compatible
query II rowsort label-7864
SELECT ALL + 80 AS col1, COUNT ( * )
----
80
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7865
SELECT - - CASE - 27 WHEN - NULLIF ( COUNT( * ), + NULLIF ( - CAST( NULL AS SIGNED ), 92 ) ) THEN 34 + 44 WHEN + 17 THEN NULL END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT - - CASE - 27 WHEN - NULLIF ( COUNT ( * ), + NULLIF ( - CAST ( NULL AS INTEGER ), 92 ) ) THEN 34 + 44 WHEN + 17 THEN NULL END + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT + 25 DIV + 54 + 93
----
93

skipif mysql # not compatible
query I rowsort label-7866
SELECT + 25 / + 54 + 93
----
93

query I rowsort
SELECT - 64 * - 70 AS col1
----
4480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7868
SELECT COUNT( * ) AS col1, 77 DIV - - MIN( - 30 ) AS col0
----
1
-2

skipif mysql # not compatible
query II rowsort label-7868
SELECT COUNT ( * ) AS col1, 77 / - - MIN ( - 30 ) AS col0
----
1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT + CAST( NULL AS SIGNED ) - + - ( ( 61 ) ) * - CASE 87 WHEN NULLIF ( 24, 59 ) + - 10 * NULLIF ( COUNT( * ), 91 * 27 - CASE - MAX( DISTINCT 20 ) WHEN + 13 / COUNT( * ) THEN NULL ELSE 58 + + 15 END ) THEN + 80 ELSE 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT + CAST ( NULL AS INTEGER ) - + - ( ( 61 ) ) * - CASE 87 WHEN NULLIF ( 24, 59 ) + - 10 * NULLIF ( COUNT ( * ), 91 * 27 - CASE - MAX ( DISTINCT 20 ) WHEN + 13 / COUNT ( * ) THEN NULL ELSE 58 + + 15 END ) THEN + 80 ELSE 65 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7870
SELECT DISTINCT - COUNT( * ) DIV - - 43, ( - + COUNT( * ) ) + - ( - 91 + 65 ) AS col2
----
0
25

skipif mysql # not compatible
query II rowsort label-7870
SELECT DISTINCT - COUNT ( * ) / - - 43, ( - + COUNT ( * ) ) + - ( - 91 + 65 ) AS col2
----
0
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7871
SELECT - COUNT( - + 63 ) AS col0, 29
----
-1
29

skipif mysql # not compatible
query II rowsort label-7871
SELECT - COUNT ( - + 63 ) AS col0, 29
----
-1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT - CASE + 89 WHEN + SUM( DISTINCT + + 9 ) * COUNT( * ) + + ( 0 ) THEN 35 WHEN COUNT( * ) * - COALESCE ( 66, SUM( ALL + ( 37 ) ) * 31 ) THEN - 96 END / 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT - CASE + 89 WHEN + SUM ( DISTINCT + + 9 ) * COUNT ( * ) + + ( 0 ) THEN 35 WHEN COUNT ( * ) * - COALESCE ( 66, SUM ( ALL + ( 37 ) ) * 31 ) THEN - 96 END / 89 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT + 95 DIV + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7873
SELECT + 95 / + + COUNT ( * )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7874
SELECT - NULLIF ( + CASE + - COUNT( ALL - 92 ) WHEN + COUNT( * ) THEN 54 + 90 WHEN 45 THEN - 9 DIV + 28 + - 70 WHEN + 28 + - CASE 70 + 65 WHEN COUNT( * ) * 17 + 34 * + 32 THEN - 46 * + ( 77 ) WHEN SUM( 66 ) * - 30 THEN - NULLIF ( 31, 4 ) END THEN 39 * - CAST( 37 * 19 AS SIGNED ) + + 46 * 88 ELSE + 54 END, AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * + 21 )
----
-54

skipif mysql # not compatible
query I rowsort label-7874
SELECT - NULLIF ( + CASE + - COUNT ( ALL - 92 ) WHEN + COUNT ( * ) THEN 54 + 90 WHEN 45 THEN - 9 / + 28 + - 70 WHEN + 28 + - CASE 70 + 65 WHEN COUNT ( * ) * 17 + 34 * + 32 THEN - 46 * + ( 77 ) WHEN SUM ( 66 ) * - 30 THEN - NULLIF ( 31, 4 ) END THEN 39 * - CAST ( 37 * 19 AS INTEGER ) + + 46 * 88 ELSE + 54 END, AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 21 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7875
SELECT DISTINCT CAST( + 2 AS SIGNED ) col2, - COUNT( * )
----
2
-1

skipif mysql # not compatible
query II rowsort label-7875
SELECT DISTINCT CAST ( + 2 AS INTEGER ) col2, - COUNT ( * )
----
2
-1

query II rowsort
SELECT - ( - 52 ), + 26 AS col0
----
52
26

query I rowsort
SELECT ALL 47 + + 93 + + + ( + 54 ) AS col0
----
194

query I rowsort
SELECT ALL 58 * - 75 AS col1
----
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT COUNT( * ) + - 90 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-7879
SELECT COUNT ( * ) + - 90 AS col1
----
-89

query I rowsort
SELECT 17 * + 13
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT 52 * - NULLIF ( COUNT( * ), - 34 / 22 )
----
-52

skipif mysql # not compatible
query I rowsort label-7881
SELECT 52 * - NULLIF ( COUNT ( * ), - 34 / 22 )
----
-52

query I rowsort
SELECT ALL 11 + + + 74 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT COALESCE ( + 76, - 16, + + COUNT( * ) ) + - 95 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-7883
SELECT COALESCE ( + 76, - 16, + + COUNT ( * ) ) + - 95 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7884
SELECT DISTINCT - NULLIF ( - + 4, + - CAST( - 35 AS SIGNED ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT - NULLIF ( - + 4, + - CAST ( - 35 AS INTEGER ) ) AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7885
SELECT + MIN( - 76 ) * - + 31 + COALESCE ( COUNT( * ), 9, 0, - 23 DIV + COUNT( * ) ) + - 29 AS col2
----
2328

skipif mysql # not compatible
query I rowsort label-7885
SELECT + MIN ( - 76 ) * - + 31 + COALESCE ( COUNT ( * ), 9, 0, - 23 / + COUNT ( * ) ) + - 29 AS col2
----
2328

onlyif mysql # DIV for integer division: 
query I rowsort label-7886
SELECT - 10 + + 80 DIV 68 * - 66 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7886
SELECT - 10 + + 80 / 68 * - 66 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7887
SELECT + ( + CAST( NULL AS SIGNED ) ) / 60 - - CASE + 68 WHEN - MIN( + 60 ) + + CAST( NULL AS SIGNED ) THEN 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT + ( + CAST ( NULL AS INTEGER ) ) / 60 - - CASE + 68 WHEN - MIN ( + 60 ) + + CAST ( NULL AS INTEGER ) THEN 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL 49 * + MAX( DISTINCT 95 ) + - + 78 + - 33 * + 84 AS col2
----
1805

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL 49 * + MAX ( DISTINCT 95 ) + - + 78 + - 33 * + 84 AS col2
----
1805

query I rowsort
SELECT - 10 * + 65 + + + 31 AS col1
----
-619

query I rowsort
SELECT + NULLIF ( - 91, 72 * + + 13 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT + 14 * 82 + 56 + - 65 DIV 29 AS col0
----
1202

skipif mysql # not compatible
query I rowsort label-7891
SELECT + 14 * 82 + 56 + - 65 / 29 AS col0
----
1202

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL - COUNT( * ) - - 16 + + + 79
----
94

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL - COUNT ( * ) - - 16 + + + 79
----
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7893
SELECT MIN( CAST( NULL AS DECIMAL ) ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT MIN ( CAST ( NULL AS REAL ) ) / + 89
----
NULL

query I rowsort
SELECT ALL + 69 - 53 AS col2
----
16

query I rowsort
SELECT 61 * + + 82
----
5002

query I rowsort
SELECT + 49 + + 59
----
108

query I rowsort
SELECT - 23 + 9 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT COUNT( * ) * - + NULLIF ( 61, + CAST( + MIN( 61 ) AS SIGNED ) + - COUNT( * ) * + COUNT( * ) ) * 56
----
-3416

skipif mysql # not compatible
query I rowsort label-7898
SELECT COUNT ( * ) * - + NULLIF ( 61, + CAST ( + MIN ( 61 ) AS INTEGER ) + - COUNT ( * ) * + COUNT ( * ) ) * 56
----
-3416

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT + ( 70 ) * + ( - MIN( DISTINCT - CASE 56 WHEN + 6 THEN 28 WHEN 36 THEN NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT + ( 70 ) * + ( - MIN ( DISTINCT - CASE 56 WHEN + 6 THEN 28 WHEN 36 THEN NULL END ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7900
SELECT ALL - - 1 * + 71 / - SUM( - 5 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL - - 1 * + 71 / - SUM ( - 5 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 98 + 72 AS col0
----
170

query I rowsort
SELECT ALL - ( - + 54 ) + - 72 AS col0
----
-18

query I rowsort
SELECT 24 + + 40 AS col1
----
64

query I rowsort
SELECT 98 * + 33
----
3234

query I rowsort
SELECT 33 + - 25
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT + ( + CASE + - 8 WHEN - - 59 THEN NULL ELSE - COALESCE ( + COUNT( * ), - 26 ) END ) + + 49 * 49 AS col2
----
2400

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT + ( + CASE + - 8 WHEN - - 59 THEN NULL ELSE - COALESCE ( + COUNT ( * ), - 26 ) END ) + + 49 * 49 AS col2
----
2400

query I rowsort
SELECT ALL + 88 + 19 * 28 AS col2
----
620

query I rowsort
SELECT 23 + + - 15 AS col2
----
8

query I rowsort
SELECT DISTINCT + 7 + + 43
----
50

query I rowsort
SELECT ALL 5 * + 69 * + 60
----
20700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7911
SELECT COUNT( * ) DIV - + 36
----
0

skipif mysql # not compatible
query I rowsort label-7911
SELECT COUNT ( * ) / - + 36
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT ALL + ( - 8 ) + 57 + + + 52 + + - 89 DIV 80 * 47 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL + ( - 8 ) + 57 + + + 52 + + - 89 / 80 * 47 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT MAX( ALL 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-7913
SELECT MAX ( ALL 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL 57 + + + COUNT( * ) * - 7 * 90
----
-573

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL 57 + + + COUNT ( * ) * - 7 * 90
----
-573

query I rowsort
SELECT 58 * + - ( + 64 )
----
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL - ( - + 40 ) * 45 * + - COALESCE ( + COUNT( * ), 31 + 42 * 36 ) AS col1
----
-1800

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL - ( - + 40 ) * 45 * + - COALESCE ( + COUNT ( * ), 31 + 42 * 36 ) AS col1
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT + + 89 * - 33 * - 89 + - 87 - - - COUNT( * ) + 93 * 0 AS col1
----
261305

skipif mysql # not compatible
query I rowsort label-7917
SELECT + + 89 * - 33 * - 89 + - 87 - - - COUNT ( * ) + 93 * 0 AS col1
----
261305

query I rowsort
SELECT ALL - - 38 col2
----
38

query I rowsort
SELECT + 17 * + 56 * ( - 20 )
----
-19040

query I rowsort
SELECT + ( + 83 ) col0
----
83

query I rowsort
SELECT + ( + + 60 ) + - 78 AS col1
----
-18

query II rowsort
SELECT + - 7, + 37 AS col1
----
-7
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT ALL CAST( + + 32 AS SIGNED ) * - + 43 + - - 11 * + - 65 + 95
----
-1996

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL CAST ( + + 32 AS INTEGER ) * - + 43 + - - 11 * + - 65 + 95
----
-1996

query II rowsort
SELECT ALL - 96, + 0 AS col0
----
-96
0

query I rowsort
SELECT DISTINCT - + COALESCE ( 30, + - 56 - + 59 * + 81 * + 30, 16 * - ( 40 ) )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT ALL CAST( NULL AS SIGNED ) * + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL CAST ( NULL AS INTEGER ) * + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL - COUNT( * ) * - 78 / - - CASE + ( + 46 ) WHEN + 31 THEN 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL - COUNT ( * ) * - 78 / - - CASE + ( + 46 ) WHEN + 31 THEN 20 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT 43 * - - ( - + COALESCE ( - MIN( - + ( 71 ) ), + 89 * + 34, 35 + + 87 ) ) + - 35 AS col2
----
-3088

skipif mysql # not compatible
query I rowsort label-7928
SELECT 43 * - - ( - + COALESCE ( - MIN ( - + ( 71 ) ), + 89 * + 34, 35 + + 87 ) ) + - 35 AS col2
----
-3088

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT DISTINCT CASE - 77 WHEN 13 * - - 40 - COUNT( * ) THEN - SUM( + 3 ) WHEN COUNT( * ) * ( 9 ) THEN NULL WHEN - 64 THEN NULL END * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT CASE - 77 WHEN 13 * - - 40 - COUNT ( * ) THEN - SUM ( + 3 ) WHEN COUNT ( * ) * ( 9 ) THEN NULL WHEN - 64 THEN NULL END * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT + 46 DIV + 77 * 45 DIV - 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 46 / + 77 * 45 / - 41 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT - - COUNT( + - 57 ) * - 6 + - 67 + CASE CAST( NULL AS SIGNED ) WHEN 41 + - NULLIF ( COUNT( * ) + + 31, - 99 ) THEN 67 + 69 ELSE NULL END + 55 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT - - COUNT ( + - 57 ) * - 6 + - 67 + CASE CAST ( NULL AS INTEGER ) WHEN 41 + - NULLIF ( COUNT ( * ) + + 31, - 99 ) THEN 67 + 69 ELSE NULL END + 55 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 90 col0
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7933
SELECT - CAST( NULL AS DECIMAL ) * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT - CAST ( NULL AS REAL ) * + 44
----
NULL

query I rowsort
SELECT DISTINCT - 13 + 72
----
59

query I rowsort
SELECT DISTINCT 39 * + - 55 AS col1
----
-2145

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT ALL + 91 DIV - 74 - - ( 28 )
----
27

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL + 91 / - 74 - - ( 28 )
----
27

query I rowsort
SELECT COALESCE ( 0, + - 8, - ( - + 56 ) ) * 60 AS col1
----
0

query I rowsort
SELECT ALL - 65 + - + 35 AS col2
----
-100

query I rowsort
SELECT ALL 41 + - + 47 - 17 * 28
----
-482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT - CASE + - 6 WHEN + 12 * - - COUNT( ALL - 78 ) + + + ( + ( - ( 79 ) ) ) * + ( 78 ) + - 55 THEN CAST( NULL AS SIGNED ) ELSE 74 END
----
-74

skipif mysql # not compatible
query I rowsort label-7940
SELECT - CASE + - 6 WHEN + 12 * - - COUNT ( ALL - 78 ) + + + ( + ( - ( 79 ) ) ) * + ( 78 ) + - 55 THEN CAST ( NULL AS INTEGER ) ELSE 74 END
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT - 29 * + + COUNT( * ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-7941
SELECT - 29 * + + COUNT ( * ) col1
----
-29

query I rowsort
SELECT ALL + 20 + 65
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7943
SELECT - 14 AS col0, 16 * - SUM( ALL NULLIF ( + CAST( NULL AS DECIMAL ), - 63 ) ) AS col1
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-7943
SELECT - 14 AS col0, 16 * - SUM ( ALL NULLIF ( + CAST ( NULL AS REAL ), - 63 ) ) AS col1
----
-14
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7944
SELECT 0 AS col1, COUNT( DISTINCT 1 ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-7944
SELECT 0 AS col1, COUNT ( DISTINCT 1 ) AS col0
----
0
1

query II rowsort
SELECT - 69 AS col0, 96 * - + 49 AS col2
----
-69
-4704

query I rowsort
SELECT DISTINCT 40 + - - 29 * + 30 AS col0
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL CASE - + 5 WHEN 82 + + + 85 THEN - 7 * + - ( - 19 ) WHEN MAX( - 63 ) + 30 THEN NULL END + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL CASE - + 5 WHEN 82 + + + 85 THEN - 7 * + - ( - 19 ) WHEN MAX ( - 63 ) + 30 THEN NULL END + + 20 AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( 51, 53 )
----
51

query I rowsort
SELECT ALL 75 + - 46 + 0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT - CASE + 55 WHEN - ( - + COUNT( * ) ) * + NULLIF ( + ( 25 ), SUM( DISTINCT 51 ) + - COUNT( * ) ) + 69 * 9 + 29 THEN NULL ELSE 69 END - - 96 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7950
SELECT - CASE + 55 WHEN - ( - + COUNT ( * ) ) * + NULLIF ( + ( 25 ), SUM ( DISTINCT 51 ) + - COUNT ( * ) ) + 69 * 9 + 29 THEN NULL ELSE 69 END - - 96 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT DISTINCT COUNT( DISTINCT + ( + 46 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT COUNT ( DISTINCT + ( + 46 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7952
SELECT 35, COUNT( * ) AS col0
----
35
1

skipif mysql # not compatible
query II rowsort label-7952
SELECT 35, COUNT ( * ) AS col0
----
35
1

query II rowsort
SELECT 43 AS col2, COALESCE ( 42, - - 42, + 6 * - + 17 )
----
43
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT ALL + 58 - + CAST( 3 AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL + 58 - + CAST ( 3 AS INTEGER ) AS col1
----
55

query I rowsort
SELECT - 1 * - - 21 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - - 99 + 6 * COUNT( * ) AS col0
----
105

skipif mysql # not compatible
query I rowsort label-7956
SELECT - - 99 + 6 * COUNT ( * ) AS col0
----
105

query II rowsort
SELECT + - 42 AS col0, 96
----
-42
96

onlyif mysql # aggregate syntax: 
query III rowsort label-7958
SELECT + 81 col0, 39 AS col0, + COUNT( * )
----
81
39
1

skipif mysql # not compatible
query III rowsort label-7958
SELECT + 81 col0, 39 AS col0, + COUNT ( * )
----
81
39
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7959
SELECT ALL - + 47 DIV + 86 AS col2, + 53
----
0
53

skipif mysql # not compatible
query II rowsort label-7959
SELECT ALL - + 47 / + 86 AS col2, + 53
----
0
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7960
SELECT - 28 + + + 43 + - 49 - + 5 * + + COUNT( * ) DIV - 90 * + 52 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7960
SELECT - 28 + + + 43 + - 49 - + 5 * + + COUNT ( * ) / - 90 * + 52 AS col1
----
-34

query I rowsort
SELECT ALL 22 * + 41 - - 57
----
959

query I rowsort
SELECT ALL + + NULLIF ( 99, + 28 ) col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7963
SELECT MIN( DISTINCT - 68 ) DIV + 52 + + 86 + - - 77 DIV - 89 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7963
SELECT MIN ( DISTINCT - 68 ) / + 52 + + 86 + - - 77 / - 89 AS col2
----
85

query I rowsort
SELECT - + 73 + - ( - ( 88 ) )
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7965
SELECT + - MIN( - 78 ) - 82 + - - CAST( NULL AS DECIMAL ) / 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT + - MIN ( - 78 ) - 82 + - - CAST ( NULL AS REAL ) / 29 AS col1
----
NULL

query I rowsort
SELECT - 17 * - 63 AS col0
----
1071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT + + CAST( ( - + 23 ) AS SIGNED ) + + 4 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-7967
SELECT + + CAST ( ( - + 23 ) AS INTEGER ) + + 4 AS col1
----
-19

query II rowsort
SELECT ALL + - 61 AS col1, ( - ( - 74 ) )
----
-61
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT + + MIN( DISTINCT 94 )
----
94

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT + + MIN ( DISTINCT 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL - + 8 * - 42 * - 45 + - COALESCE ( - 16, 91, + 35 ) * 64 + + MIN( DISTINCT - 87 ) AS col0
----
-14183

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL - + 8 * - 42 * - 45 + - COALESCE ( - 16, 91, + 35 ) * 64 + + MIN ( DISTINCT - 87 ) AS col0
----
-14183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7971
SELECT + + MAX( CAST( NULL AS SIGNED ) ) * + 21 - - - CAST( + - 55 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT + + MAX ( CAST ( NULL AS INTEGER ) ) * + 21 - - - CAST ( + - 55 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT + 71 + + 68 * - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7972
SELECT + 71 + + 68 * - COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL - COUNT( * ) * 76 * - 55 + + COALESCE ( COUNT( * ), + - ( + 29 ) ) col0
----
4181

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL - COUNT ( * ) * 76 * - 55 + + COALESCE ( COUNT ( * ), + - ( + 29 ) ) col0
----
4181

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL + 73 * + COUNT( ALL + 9 ) + + 61
----
134

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL + 73 * + COUNT ( ALL + 9 ) + + 61
----
134

query I rowsort
SELECT ALL - 1 * ( 48 ) + 87
----
39

query II rowsort
SELECT + ( - 13 ) AS col1, 25 * + - 60 AS col2
----
-13
-1500

query I rowsort
SELECT DISTINCT + 57 * + 16 + - + 4
----
908

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT + 29 DIV + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7978
SELECT + 29 / + 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL - COUNT( * ) * - 91 + + 85 * + + 12 col2
----
1111

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL - COUNT ( * ) * - 91 + + 85 * + + 12 col2
----
1111

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT - CASE 86 WHEN + ( + 85 ) / + - NULLIF ( + + 9, + 68 ) * - 95 + 61 THEN 50 * + SUM( DISTINCT 7 ) ELSE + 79 END AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7980
SELECT - CASE 86 WHEN + ( + 85 ) / + - NULLIF ( + + 9, + 68 ) * - 95 + 61 THEN 50 * + SUM ( DISTINCT 7 ) ELSE + 79 END AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT MIN( ALL + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-7981
SELECT MIN ( ALL + 50 )
----
50

query I rowsort
SELECT ALL 99 - - + 87 * + 45 * + 79 + + 47
----
309431

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL CASE + 83 WHEN - 82 THEN NULL WHEN 34 / 69 - 28 * + 28 THEN 71 * + 79 END * SUM( ALL - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL CASE + 83 WHEN - 82 THEN NULL WHEN 34 / 69 - 28 * + 28 THEN 71 * + 79 END * SUM ( ALL - 5 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7984
SELECT ALL + 89 - - 88 / - - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL + 89 - - 88 / - - CAST ( NULL AS REAL ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT + 63 + + CAST( + + 37 AS SIGNED )
----
100

skipif mysql # not compatible
query I rowsort label-7985
SELECT + 63 + + CAST ( + + 37 AS INTEGER )
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT - CAST( - 24 AS SIGNED ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7986
SELECT - CAST ( - 24 AS INTEGER ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL COUNT( + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL COUNT ( + 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT - 16 + + + 53 + + - NULLIF ( + + COUNT( * ), + 52 * 54 )
----
36

skipif mysql # not compatible
query I rowsort label-7988
SELECT - 16 + + + 53 + + - NULLIF ( + + COUNT ( * ), + 52 * 54 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL + 71 * SUM( - 19 )
----
-1349

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + 71 * SUM ( - 19 )
----
-1349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7990
SELECT - CAST( 92 AS SIGNED ) + - + COUNT( 31 ) * + MAX( DISTINCT 92 ) + + - ( - 74 ) + - ( + 93 + CAST( NULL AS SIGNED ) ) * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT - CAST ( 92 AS INTEGER ) + - + COUNT ( 31 ) * + MAX ( DISTINCT 92 ) + + - ( - 74 ) + - ( + 93 + CAST ( NULL AS INTEGER ) ) * + 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7991
SELECT - - COUNT( * ) * + ( 8 ) AS col0, - 31
----
8
-31

skipif mysql # not compatible
query II rowsort label-7991
SELECT - - COUNT ( * ) * + ( 8 ) AS col0, - 31
----
8
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + - 13 + + 95
----
81

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + - 13 + + 95
----
81

query I rowsort
SELECT DISTINCT 87 * - 1 AS col0
----
-87

query I rowsort
SELECT ALL - CASE 27 WHEN + CASE + 48 WHEN + AVG ( + ( 15 ) ) THEN 21 - - 28 * 80 END THEN - AVG ( DISTINCT ( 81 ) ) / 37 WHEN - 89 * AVG ( DISTINCT 64 ) THEN + 94 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7995
SELECT - 35 DIV COUNT( * ) + - 89 + + + 15 + 82 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7995
SELECT - 35 / COUNT ( * ) + - 89 + + + 15 + 82 AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7996
SELECT DISTINCT NULLIF ( 11, - 30 * - 59 + + 63 + - 24 + + NULLIF ( - CASE COUNT( * ) WHEN - 18 THEN 86 * 80 + CAST( 72 AS DECIMAL ) ELSE NULL END, 87 / 94 ) ) * 99
----
1089

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT NULLIF ( 11, - 30 * - 59 + + 63 + - 24 + + NULLIF ( - CASE COUNT ( * ) WHEN - 18 THEN 86 * 80 + CAST ( 72 AS REAL ) ELSE NULL END, 87 / 94 ) ) * 99
----
1089

query I rowsort
SELECT ALL + + ( 76 )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT - 89 * 63 * - - ( + + NULLIF ( - 18, + 17 + + - ( COALESCE ( + 10, + 97, ( 71 ) ) ) + 19 DIV + 2 ) ) DIV - 6
----
-16821

skipif mysql # not compatible
query I rowsort label-7998
SELECT - 89 * 63 * - - ( + + NULLIF ( - 18, + 17 + + - ( COALESCE ( + 10, + 97, ( 71 ) ) ) + 19 / + 2 ) ) / - 6
----
-16821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT ALL - COALESCE ( + 11, - 72 ) * - ( + - 38 ) DIV - ( + COUNT( * ) ) - ( + 77 ) AS col0
----
341

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL - COALESCE ( + 11, - 72 ) * - ( + - 38 ) / - ( + COUNT ( * ) ) - ( + 77 ) AS col0
----
341

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT ALL + + 64 DIV 72 + - - 29
----
29

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL + + 64 / 72 + - - 29
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT ALL - 57 / CAST( NULL AS SIGNED ) + - 11 + CAST( - + 53 AS SIGNED ) * 62 + + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - 57 / CAST ( NULL AS INTEGER ) + - 11 + CAST ( - + 53 AS INTEGER ) * 62 + + 77 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8002
SELECT DISTINCT - + 52 DIV 1 * - ( CAST( - 91 AS SIGNED ) ) + - 30 AS col1
----
-4762

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT - + 52 / 1 * - ( CAST ( - 91 AS INTEGER ) ) + - 30 AS col1
----
-4762

query I rowsort
SELECT DISTINCT - NULLIF ( + + 37, COALESCE ( + 98, 33 ) )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8004
SELECT - MIN( - 8 ) AS col0, - COUNT( * ) DIV 80
----
8
0

skipif mysql # not compatible
query II rowsort label-8004
SELECT - MIN ( - 8 ) AS col0, - COUNT ( * ) / 80
----
8
0

query I rowsort
SELECT 43 + + 81 AS col2
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL - CAST( NULL AS SIGNED ) + - 83 / + - 70 * - CASE - + 15 WHEN - - 88 * - + 62 THEN NULL WHEN 25 THEN - 80 ELSE NULL END * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL - CAST ( NULL AS INTEGER ) + - 83 / + - 70 * - CASE - + 15 WHEN - - 88 * - + 62 THEN NULL WHEN 25 THEN - 80 ELSE NULL END * + 79
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 34 WHEN - 50 THEN 74 * + - 94 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT + 56 - - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT + 56 - - COUNT ( * )
----
57

query I rowsort
SELECT DISTINCT 82 - + 30 AS col2
----
52

query II rowsort
SELECT ALL 68 AS col0, ( + 64 ) col0
----
68
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8011
SELECT DISTINCT - 75 DIV - NULLIF ( 58, + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT - 75 / - NULLIF ( 58, + 20 )
----
1

query I rowsort
SELECT 62 * 98 col1
----
6076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8013
SELECT ALL 46 - - - 20 - + COUNT( * ) / CAST( NULL AS SIGNED ) AS col2, + 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-8013
SELECT ALL 46 - - - 20 - + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2, + 56
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT COUNT( * ) - - 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8014
SELECT COUNT ( * ) - - 3 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT 52 * - + COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8015
SELECT 52 * - + COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT 58 - + COUNT( * ) + - + 11 col2
----
46

skipif mysql # not compatible
query I rowsort label-8016
SELECT 58 - + COUNT ( * ) + - + 11 col2
----
46

query I rowsort
SELECT ALL 86 * + 95 * + - 27
----
-220590

query II rowsort
SELECT ALL 60 AS col2, - 95 AS col0
----
60
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8019
SELECT DISTINCT ( + + 83 ) * - 46, - CAST( NULL AS SIGNED ) - - 42 * COUNT( * ) * + COALESCE ( + 52, 1 ) * 46 + 6 AS col1
----
-3818
NULL

skipif mysql # not compatible
query II rowsort label-8019
SELECT DISTINCT ( + + 83 ) * - 46, - CAST ( NULL AS INTEGER ) - - 42 * COUNT ( * ) * + COALESCE ( + 52, 1 ) * 46 + 6 AS col1
----
-3818
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8020
SELECT ALL 50 DIV - 5
----
-10

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL 50 / - 5
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT COUNT( * ) * CASE + 61 WHEN - ( + MIN( - 49 ) ) THEN - NULLIF ( - 40, - 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT COUNT ( * ) * CASE + 61 WHEN - ( + MIN ( - 49 ) ) THEN - NULLIF ( - 40, - 58 ) END
----
NULL

query I rowsort
SELECT ALL 93 + 55 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - 77 + - - MIN( 52 ) - SUM( DISTINCT - 94 )
----
69

skipif mysql # not compatible
query I rowsort label-8023
SELECT - 77 + - - MIN ( 52 ) - SUM ( DISTINCT - 94 )
----
69

query I rowsort
SELECT ALL NULLIF ( 87, + + 31 + - - 16 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8025
SELECT - COUNT( * ) AS col1, + COUNT( ALL 1 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-8025
SELECT - COUNT ( * ) AS col1, + COUNT ( ALL 1 )
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8026
SELECT ALL - + 82 AS col1, NULLIF ( + 45, CASE - 78 WHEN - + CAST( 93 AS SIGNED ) - - - COUNT( 49 ) THEN NULL ELSE 19 END - 97 ) AS col1
----
-82
45

skipif mysql # not compatible
query II rowsort label-8026
SELECT ALL - + 82 AS col1, NULLIF ( + 45, CASE - 78 WHEN - + CAST ( 93 AS INTEGER ) - - - COUNT ( 49 ) THEN NULL ELSE 19 END - 97 ) AS col1
----
-82
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT + 26 + - - 57 DIV - 73 * + - 98 + 75
----
101

skipif mysql # not compatible
query I rowsort label-8027
SELECT + 26 + - - 57 / - 73 * + - 98 + 75
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8028
SELECT DISTINCT COUNT( * ) + + CAST( 14 AS SIGNED ) * + COUNT( * ) DIV 47 + + - 69 * - 19
----
1312

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT COUNT ( * ) + + CAST ( 14 AS INTEGER ) * + COUNT ( * ) / 47 + + - 69 * - 19
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL + - 79 + COUNT( * ) + - CASE - + NULLIF ( + 46, + 48 - - COUNT( * ) ) WHEN - 47 + + 82 THEN 90 + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL + - 79 + COUNT ( * ) + - CASE - + NULLIF ( + 46, + 48 - - COUNT ( * ) ) WHEN - 47 + + 82 THEN 90 + 69 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT DISTINCT - + CASE - + COALESCE ( + SUM( DISTINCT + + CAST( NULL AS SIGNED ) ), COUNT( * ) + 92, 23 ) WHEN - 25 - 31 THEN NULL WHEN CAST( NULL AS SIGNED ) * + 20 THEN - 50 + 33 * - COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT - + CASE - + COALESCE ( + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ), COUNT ( * ) + 92, 23 ) WHEN - 25 - 31 THEN NULL WHEN CAST ( NULL AS INTEGER ) * + 20 THEN - 50 + 33 * - COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8031
SELECT - 8 DIV 76 - + CASE + 24 WHEN - 90 DIV - ( + CAST( ( + 96 ) AS SIGNED ) ) * - CAST( + MAX( DISTINCT + 36 ) AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 99 END + 82 DIV 73 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-8031
SELECT - 8 / 76 - + CASE + 24 WHEN - 90 / - ( + CAST ( ( + 96 ) AS INTEGER ) ) * - CAST ( + MAX ( DISTINCT + 36 ) AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 99 END + 82 / 73 AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8032
SELECT ALL 23 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL 23 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 76 + + 69 AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8034
SELECT DISTINCT - - 50 + - - COALESCE ( + COUNT( * ), 84 DIV - 93, + + 9 + 48 * - 43 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT - - 50 + - - COALESCE ( + COUNT ( * ), 84 / - 93, + + 9 + 48 * - 43 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL - NULLIF ( - 15, + - CASE 65 WHEN - - 21 THEN + 56 * - - 32 / 27 * COUNT( * ) END + 49 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL - NULLIF ( - 15, + - CASE 65 WHEN - - 21 THEN + 56 * - - 32 / 27 * COUNT ( * ) END + 49 ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8036
SELECT 65 AS col1, 7 * + - COUNT( * ) * - SUM( + CAST( NULL AS DECIMAL ) ) / 34
----
65
NULL

skipif mysql # not compatible
query II rowsort label-8036
SELECT 65 AS col1, 7 * + - COUNT ( * ) * - SUM ( + CAST ( NULL AS REAL ) ) / 34
----
65
NULL

query I rowsort
SELECT + NULLIF ( 24, 4 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT 46 + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8038
SELECT 46 + COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT 17 * ( - COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-8039
SELECT 17 * ( - COUNT ( * ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT DISTINCT + 43 * - - COALESCE ( - + 26, - 83 * + - COUNT( * ) + + 34 + - + CASE + 4 WHEN + + 98 + 59 THEN NULL WHEN - 11 THEN + 35 * - ( 95 ) WHEN COUNT( * ) + + 92 * 23 THEN 39 ELSE 67 * - COUNT( 95 ) END + - COUNT( * ) ) AS col0
----
-1118

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT + 43 * - - COALESCE ( - + 26, - 83 * + - COUNT ( * ) + + 34 + - + CASE + 4 WHEN + + 98 + 59 THEN NULL WHEN - 11 THEN + 35 * - ( 95 ) WHEN COUNT ( * ) + + 92 * 23 THEN 39 ELSE 67 * - COUNT ( 95 ) END + - COUNT ( * ) ) AS col0
----
-1118

query I rowsort
SELECT 36 + - 98
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8042
SELECT ALL + COUNT( ALL + 5 ) DIV + + 76 * - NULLIF ( + + 75, + + SUM( ALL + 71 ) - + - 58 - + - 32 ) DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL + COUNT ( ALL + 5 ) / + + 76 * - NULLIF ( + + 75, + + SUM ( ALL + 71 ) - + - 58 - + - 32 ) / + 56
----
0

query I rowsort
SELECT 43 * + + CASE - + 25 WHEN - - 51 THEN - 75 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT ALL + ( + 31 ) DIV 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL + ( + 31 ) / 32 AS col0
----
0

query I rowsort
SELECT ALL - 70 * 86
----
-6020

query I rowsort
SELECT DISTINCT - ( - - 16 )
----
-16

query I rowsort
SELECT DISTINCT + 43 * 22 AS col1
----
946

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT DISTINCT - ( + 69 ) * 79 + 8 - - 48 - + 60 - + NULLIF ( 24, 96 ) + + 78 DIV 25 AS col1
----
-5476

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT - ( + 69 ) * 79 + 8 - - 48 - + 60 - + NULLIF ( 24, 96 ) + + 78 / 25 AS col1
----
-5476

query I rowsort
SELECT ALL - 71 * - + 90 col2
----
6390

query I rowsort
SELECT 42 * 22 AS col2
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL MAX( DISTINCT 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL MAX ( DISTINCT 16 )
----
16

query I rowsort
SELECT 58 + - 79
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT MIN( + CAST( NULL AS SIGNED ) ) + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + 67
----
NULL

query I rowsort
SELECT ALL + 99 + + + 0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8055
SELECT ALL 38 * - NULLIF ( + 6, 32 * 98 ) + + COUNT( * ) DIV + - 35
----
-228

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL 38 * - NULLIF ( + 6, 32 * 98 ) + + COUNT ( * ) / + - 35
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT ALL - 40 + 79 + 60 + + COUNT( * ) * + + 31 * + 26 + - - 89
----
994

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL - 40 + 79 + 60 + + COUNT ( * ) * + + 31 * + 26 + - - 89
----
994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT DISTINCT - COUNT( * ) DIV 67 * 86
----
0

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - COUNT ( * ) / 67 * 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL + 49 + 91 + - SUM( - 4 ) col0
----
144

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL + 49 + 91 + - SUM ( - 4 ) col0
----
144

query I rowsort
SELECT 96 + 47 * + 53
----
2587

query I rowsort
SELECT ALL + 99 + 15
----
114

query I rowsort
SELECT DISTINCT - 41 + 42 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8062
SELECT DISTINCT 68 DIV + 49, 66 + - SUM( ALL + + 81 ) * - 67 + - + 84 AS col0
----
1
5409

skipif mysql # not compatible
query II rowsort label-8062
SELECT DISTINCT 68 / + 49, 66 + - SUM ( ALL + + 81 ) * - 67 + - + 84 AS col0
----
1
5409

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL - COUNT( * ) * - + 42 + - ( + + 42 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - COUNT ( * ) * - + 42 + - ( + + 42 ) AS col0
----
0

query I rowsort
SELECT + - 78 * - 88 + + 35 + + 2 - + 52 * + 27
----
5497

onlyif mysql # aggregate syntax: 
query II rowsort label-8065
SELECT + ( - - COUNT( * ) ) AS col1, + 54 AS col2
----
1
54

skipif mysql # not compatible
query II rowsort label-8065
SELECT + ( - - COUNT ( * ) ) AS col1, + 54 AS col2
----
1
54

query I rowsort
SELECT + + ( + + ( 93 ) ) AS col1
----
93

query II rowsort
SELECT ALL + 62 AS col1, + 61
----
62
61

query I rowsort
SELECT + 94 + + 82 col0
----
176

query I rowsort
SELECT + NULLIF ( 67, - 42 * + + 38 * 17 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8070
SELECT CASE + + 71 WHEN + CAST( + MAX( - 46 ) AS SIGNED ) THEN 22 / 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT CASE + + 71 WHEN + CAST ( + MAX ( - 46 ) AS INTEGER ) THEN 22 / 95 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT ALL COALESCE ( - ( ( - + 46 ) ), + 83, + 46 * + 61 * - COUNT( * ) * - 45 ) * - + 14 AS col0
----
-644

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL COALESCE ( - ( ( - + 46 ) ), + 83, + 46 * + 61 * - COUNT ( * ) * - 45 ) * - + 14 AS col0
----
-644

onlyif mysql # aggregate syntax: 
query II rowsort label-8072
SELECT + NULLIF ( - 21, 40 ), + 87 * - MIN( ALL - 35 ) AS col0
----
-21
3045

skipif mysql # not compatible
query II rowsort label-8072
SELECT + NULLIF ( - 21, 40 ), + 87 * - MIN ( ALL - 35 ) AS col0
----
-21
3045

onlyif mysql # aggregate syntax: 
query II rowsort label-8073
SELECT - 41 + - COUNT( * ) + + 7 AS col2, - ( 76 ) + + + 37
----
-35
-39

skipif mysql # not compatible
query II rowsort label-8073
SELECT - 41 + - COUNT ( * ) + + 7 AS col2, - ( 76 ) + + + 37
----
-35
-39

query I rowsort
SELECT + 11 * + 74 AS col2
----
814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8075
SELECT - COALESCE ( - - 61, 63 DIV - CASE 30 WHEN - 89 THEN + 71 + - - CAST( + MIN( ALL - 46 ) AS SIGNED ) DIV + 13 END, - CASE 36 WHEN 64 THEN + 63 ELSE NULL END + 37 ) + - 39 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-8075
SELECT - COALESCE ( - - 61, 63 / - CASE 30 WHEN - 89 THEN + 71 + - - CAST ( + MIN ( ALL - 46 ) AS INTEGER ) / + 13 END, - CASE 36 WHEN 64 THEN + 63 ELSE NULL END + 37 ) + - 39 AS col1
----
-100

query II rowsort
SELECT ALL + 23 AS col2, - 45 + + ( - 46 )
----
23
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT MAX( ALL + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8077
SELECT MAX ( ALL + 65 ) AS col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8078
SELECT DISTINCT 84 * - CASE - - COUNT( * ) WHEN - COUNT( * ) * + 76 THEN 76 END + - - 69 * 41, 54 DIV + COUNT( * ) - - 74 AS col1
----
NULL
128

skipif mysql # not compatible
query II rowsort label-8078
SELECT DISTINCT 84 * - CASE - - COUNT ( * ) WHEN - COUNT ( * ) * + 76 THEN 76 END + - - 69 * 41, 54 / + COUNT ( * ) - - 74 AS col1
----
NULL
128

query I rowsort
SELECT ALL NULLIF ( 57, - 30 * - 46 + - - 81 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL - 67 + + MIN( - 36 )
----
-103

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - 67 + + MIN ( - 36 )
----
-103

query I rowsort
SELECT ALL + 13 + + + 45 AS col0
----
58

query I rowsort
SELECT DISTINCT - NULLIF ( - - 0, 9 ) + 40 - - 26 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8083
SELECT - CAST( + CASE 59 WHEN + 64 + - - ( 54 ) * - 48 * 72 THEN + - 76 / 48 * COUNT( * ) WHEN - COUNT( COALESCE ( 75, COALESCE ( + 53, + 1, 5 ) * - 84 ) ) * - 66 + - 19 * - MAX( 18 ) THEN NULL ELSE NULL END AS SIGNED ) * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT - CAST ( + CASE 59 WHEN + 64 + - - ( 54 ) * - 48 * 72 THEN + - 76 / 48 * COUNT ( * ) WHEN - COUNT ( COALESCE ( 75, COALESCE ( + 53, + 1, 5 ) * - 84 ) ) * - 66 + - 19 * - MAX ( 18 ) THEN NULL ELSE NULL END AS INTEGER ) * 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT + 95 * COUNT( * ) * 99
----
9405

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT + 95 * COUNT ( * ) * 99
----
9405

query I rowsort
SELECT ALL - 95 * - 18
----
1710

onlyif mysql # aggregate syntax: 
query II rowsort label-8086
SELECT - - COUNT( 15 ) * - COUNT( * ) + MAX( ALL + 68 ) AS col2, + COUNT( * ) AS col1
----
67
1

skipif mysql # not compatible
query II rowsort label-8086
SELECT - - COUNT ( 15 ) * - COUNT ( * ) + MAX ( ALL + 68 ) AS col2, + COUNT ( * ) AS col1
----
67
1

query I rowsort
SELECT - - 84 * + + 9 + - 39
----
717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8088
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN ( + + 27 ) THEN NULL WHEN + 57 * + 0 + + NULLIF ( + 81, - 47 + + - COUNT( * ) - 54 ) - COUNT( * ) THEN + 45 + 73 WHEN - CAST( + 27 AS DECIMAL ) * + 58 - - 35 THEN NULL ELSE + SUM( DISTINCT ( 32 ) ) END
----
32

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN ( + + 27 ) THEN NULL WHEN + 57 * + 0 + + NULLIF ( + 81, - 47 + + - COUNT ( * ) - 54 ) - COUNT ( * ) THEN + 45 + 73 WHEN - CAST ( + 27 AS REAL ) * + 58 - - 35 THEN NULL ELSE + SUM ( DISTINCT ( 32 ) ) END
----
32

query I rowsort
SELECT - - ( - 48 ) AS col2
----
-48

query II rowsort
SELECT 2 AS col0, COALESCE ( 71, - 56 ) AS col2
----
2
71

query I rowsort
SELECT ALL + - 88 + - + 10
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT - 68 - - 13 DIV ( - 51 )
----
-68

skipif mysql # not compatible
query I rowsort label-8092
SELECT - 68 - - 13 / ( - 51 )
----
-68

query I rowsort
SELECT ALL + - 83 * - 8 * + + ( + - 3 ) AS col1
----
-1992

query I rowsort
SELECT DISTINCT + + 58 + + 31 + ( - 94 ) + - 72
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL + - COALESCE ( + 30, + 53, - 89 + 28 ) + 17 * - 97 * - COUNT( * ) AS col0
----
1619

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL + - COALESCE ( + 30, + 53, - 89 + 28 ) + 17 * - 97 * - COUNT ( * ) AS col0
----
1619

query I rowsort
SELECT DISTINCT - + 46 + + 44 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8097
SELECT DISTINCT 57 * 23 * - COALESCE ( - - 44, - + CASE 15 WHEN 67 THEN NULL WHEN 98 * + - 75 THEN + 59 + 29 ELSE + 88 * 90 END ) * + 1 + COUNT( * ) DIV + ( COUNT( * ) + 81 )
----
-57684

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT 57 * 23 * - COALESCE ( - - 44, - + CASE 15 WHEN 67 THEN NULL WHEN 98 * + - 75 THEN + 59 + 29 ELSE + 88 * 90 END ) * + 1 + COUNT ( * ) / + ( COUNT ( * ) + 81 )
----
-57684

query I rowsort
SELECT + - 82 - + - 85
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT ALL + - 33 DIV - 56 * 52 * - - 19 * - - COALESCE ( 55, + 53 * CASE - - 87 WHEN + 74 THEN 88 WHEN 10 * COUNT( * ) THEN NULL END + 56 + 93 ) * - 8
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL + - 33 / - 56 * 52 * - - 19 * - - COALESCE ( 55, + 53 * CASE - - 87 WHEN + 74 THEN 88 WHEN 10 * COUNT ( * ) THEN NULL END + 56 + 93 ) * - 8
----
0

query I rowsort
SELECT - - 38 + 18 AS col2
----
56

query I rowsort
SELECT ALL 28 - + - 85 AS col0
----
113

query II rowsort
SELECT + + 6 AS col1, - 57
----
6
-57

query I rowsort
SELECT ALL COALESCE ( - + 5, + + 8 ) * - 89
----
445

query II rowsort
SELECT DISTINCT + 52 AS col1, 98 * 53
----
52
5194

query I rowsort
SELECT DISTINCT + + 91 * 40 col2
----
3640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT CAST( + 38 AS SIGNED ) col0
----
38

skipif mysql # not compatible
query I rowsort label-8106
SELECT CAST ( + 38 AS INTEGER ) col0
----
38

query I rowsort
SELECT - 35 * - 49 AS col2
----
1715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT + 0 + - CASE - SUM( DISTINCT - 56 ) WHEN - - CAST( 4 AS SIGNED ) THEN NULL WHEN 48 * + 26 / - - ( 77 ) * + 69 THEN 45 END * CAST( - NULLIF ( 22, - 40 ) / ( + 84 * COUNT( * ) ) + - COALESCE ( 0 - SUM( NULLIF ( 98, + 12 ) ), COUNT( * ) * - 82 + + MIN( ALL - 79 ) * 32, CAST( NULL AS SIGNED ) / 87 + 13 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT + 0 + - CASE - SUM ( DISTINCT - 56 ) WHEN - - CAST ( 4 AS INTEGER ) THEN NULL WHEN 48 * + 26 / - - ( 77 ) * + 69 THEN 45 END * CAST ( - NULLIF ( 22, - 40 ) / ( + 84 * COUNT ( * ) ) + - COALESCE ( 0 - SUM ( NULLIF ( 98, + 12 ) ), COUNT ( * ) * - 82 + + MIN ( ALL - 79 ) * 32, CAST ( NULL AS INTEGER ) / 87 + 13 ) AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ( 53 ) col1, - 5 AS col0
----
53
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8110
SELECT DISTINCT + 13, COUNT( DISTINCT + 59 ) col1
----
13
1

skipif mysql # not compatible
query II rowsort label-8110
SELECT DISTINCT + 13, COUNT ( DISTINCT + 59 ) col1
----
13
1

query II rowsort
SELECT ALL + 16 AS col0, - 9 * 71
----
16
-639

query I rowsort
SELECT ALL COALESCE ( 92, + 93 * COALESCE ( + - 67, + 49 ) + - 80 ) * - ( + + 32 ) + + - 72 AS col1
----
-3016

query II rowsort
SELECT ALL + 32 AS col2, 60
----
32
60

query I rowsort
SELECT + ( ( 5 ) ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL 86 * - - COUNT( * ) + + 46
----
132

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL 86 * - - COUNT ( * ) + + 46
----
132

query I rowsort
SELECT ALL 55 * - 7 + - 91
----
-476

query I rowsort
SELECT DISTINCT 81 * - COALESCE ( + + 93, 48 + 83 )
----
-7533

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL 16 * MIN( - 74 )
----
-1184

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL 16 * MIN ( - 74 )
----
-1184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8119
SELECT - 23 * + + ( - CAST( NULL AS SIGNED ) ) + 96 AS col0, 75 + + 57 * 88 AS col1
----
NULL
5091

skipif mysql # not compatible
query II rowsort label-8119
SELECT - 23 * + + ( - CAST ( NULL AS INTEGER ) ) + 96 AS col0, 75 + + 57 * 88 AS col1
----
NULL
5091

query II rowsort
SELECT + 24 AS col1, 14 col2
----
24
14

query I rowsort
SELECT + + 27 + - 54
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8122
SELECT + 24 col2, + CAST( + 72 AS SIGNED ) AS col2
----
24
72

skipif mysql # not compatible
query II rowsort label-8122
SELECT + 24 col2, + CAST ( + 72 AS INTEGER ) AS col2
----
24
72

query I rowsort
SELECT - + 77 + + 65 * - 78
----
-5147

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT ALL - 97 DIV - + NULLIF ( + 77, 27 )
----
1

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL - 97 / - + NULLIF ( + 77, 27 )
----
1

query I rowsort
SELECT DISTINCT 71 * - + 64 AS col2
----
-4544

query I rowsort
SELECT 36 + - - 73 AS col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT + 20 * - 74 * + + 67 + + CAST( NULL AS SIGNED ) * + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT + 20 * - 74 * + + 67 + + CAST ( NULL AS INTEGER ) * + 74 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 89 * 13 + 24 * - 28 AS col1
----
485

onlyif mysql # aggregate syntax: 
query II rowsort label-8129
SELECT - 64 AS col1, - 28 - - 31 - COUNT( * ) + - 40 - + + 50 * - COUNT( * )
----
-64
12

skipif mysql # not compatible
query II rowsort label-8129
SELECT - 64 AS col1, - 28 - - 31 - COUNT ( * ) + - 40 - + + 50 * - COUNT ( * )
----
-64
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8130
SELECT COUNT( * ) col2, 6 AS col1
----
1
6

skipif mysql # not compatible
query II rowsort label-8130
SELECT COUNT ( * ) col2, 6 AS col1
----
1
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8131
SELECT 16 * + - 2 * - - 14 * + + 60 + + 17 + CAST( CASE - 7 WHEN - - 39 - NULLIF ( 22, CASE MIN( ALL 94 ) WHEN ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) + 16 THEN + 23 END ) + - 44 THEN + 67 + 74 WHEN - CAST( 74 AS SIGNED ) - ( + 6 ) THEN NULL END AS SIGNED ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT 16 * + - 2 * - - 14 * + + 60 + + 17 + CAST ( CASE - 7 WHEN - - 39 - NULLIF ( 22, CASE MIN ( ALL 94 ) WHEN ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + 16 THEN + 23 END ) + - 44 THEN + 67 + 74 WHEN - CAST ( 74 AS INTEGER ) - ( + 6 ) THEN NULL END AS INTEGER ) * 72
----
NULL

query I rowsort
SELECT 59 * - 63 * - + ( - 98 )
----
-364266

query I rowsort
SELECT 74 + - 69 * + - 1
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8134
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - MAX( ALL - 59 ) * 34 AS col0
----
NULL
2006

skipif mysql # not compatible
query II rowsort label-8134
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - MAX ( ALL - 59 ) * 34 AS col0
----
NULL
2006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8135
SELECT ALL + 51 col0, - CAST( NULL AS SIGNED ) AS col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8135
SELECT ALL + 51 col0, - CAST ( NULL AS INTEGER ) AS col1
----
51
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8136
SELECT 38 * - 61 * - 63 + 56 DIV + ( - 38 ) AS col1
----
146033

skipif mysql # not compatible
query I rowsort label-8136
SELECT 38 * - 61 * - 63 + 56 / + ( - 38 ) AS col1
----
146033

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL - MIN( - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - MIN ( - 92 ) AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8138
SELECT - 2 DIV 99 - + 94 * 75 * 42 + - 36 + + + 49 col0
----
-296087

skipif mysql # not compatible
query I rowsort label-8138
SELECT - 2 / 99 - + 94 * 75 * 42 + - 36 + + + 49 col0
----
-296087

query I rowsort
SELECT 33 * - NULLIF ( 3, - 14 * + 31 + + + 17 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT - 30 * + - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT - 30 * + - COUNT ( * ) AS col1
----
30

query I rowsort
SELECT 45 * + - 33 AS col2
----
-1485

query I rowsort
SELECT 81 * - - NULLIF ( + + 40, - - 73 ) AS col1
----
3240

query I rowsort
SELECT ALL - 12 * + 53 * - 26
----
16536

query I rowsort
SELECT DISTINCT - ( - - 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + 58 * 45 - + MIN( - - NULLIF ( - 99, + + 98 * - 82 - - 5 ) )
----
2709

skipif mysql # not compatible
query I rowsort label-8145
SELECT + 58 * 45 - + MIN ( - - NULLIF ( - 99, + + 98 * - 82 - - 5 ) )
----
2709

query I rowsort
SELECT DISTINCT - 21 + + 0 + - + 14 AS col1
----
-35

query I rowsort
SELECT 71 * 38
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT COUNT( * ) + + ( + ( 75 ) )
----
76

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT COUNT ( * ) + + ( + ( 75 ) )
----
76

query I rowsort
SELECT DISTINCT 75 + 47 + - 14 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT 33 + - 66 * + 51 + 66 + 79 + MIN( - 80 ) + + 72 * - SUM( - - 63 ) * - 44 + - 19
----
196297

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT 33 + - 66 * + 51 + 66 + 79 + MIN ( - 80 ) + + 72 * - SUM ( - - 63 ) * - 44 + - 19
----
196297

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT + MAX( ALL - 74 ) + 47 + 40
----
13

skipif mysql # not compatible
query I rowsort label-8151
SELECT + MAX ( ALL - 74 ) + 47 + 40
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT ALL - COUNT( * ) * MAX( 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL - COUNT ( * ) * MAX ( 78 )
----
-78

query I rowsort
SELECT ALL 33 - + - ( - + 34 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8154
SELECT DISTINCT + 79 * + CAST( NULL AS SIGNED ) AS col2, + 82 AS col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-8154
SELECT DISTINCT + 79 * + CAST ( NULL AS INTEGER ) AS col2, + 82 AS col0
----
NULL
82

query I rowsort
SELECT ALL 16 - 97
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8156
SELECT ALL 60 * - COUNT( * ) + + 87, + 94 AS col1
----
27
94

skipif mysql # not compatible
query II rowsort label-8156
SELECT ALL 60 * - COUNT ( * ) + + 87, + 94 AS col1
----
27
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT 61 + SUM( + 31 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8157
SELECT 61 + SUM ( + 31 ) AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8158
SELECT 5 DIV - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8158
SELECT 5 / - - COUNT ( * )
----
5

query I rowsort
SELECT COALESCE ( - 20, 4 ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8160
SELECT ( 44 ) - - NULLIF ( + 88, + 51 / - CAST( + 5 AS SIGNED ) + + 13 + - - CASE 56 WHEN - 16 / + 91 - - 82 THEN - 73 + CASE + 70 WHEN + 31 THEN NULL WHEN COUNT( ALL - 64 ) - - 15 THEN NULL WHEN 23 * + ( NULLIF ( - 40, 73 ) ) THEN + 19 END ELSE NULL END / 64 ) - - 80
----
212

skipif mysql # not compatible
query I rowsort label-8160
SELECT ( 44 ) - - NULLIF ( + 88, + 51 / - CAST ( + 5 AS INTEGER ) + + 13 + - - CASE 56 WHEN - 16 / + 91 - - 82 THEN - 73 + CASE + 70 WHEN + 31 THEN NULL WHEN COUNT ( ALL - 64 ) - - 15 THEN NULL WHEN 23 * + ( NULLIF ( - 40, 73 ) ) THEN + 19 END ELSE NULL END / 64 ) - - 80
----
212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8161
SELECT ALL - - 66 DIV - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL - - 66 / - COUNT ( * ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT + CASE + 47 WHEN + + 44 THEN NULL WHEN + ( - + ( - COUNT( * ) ) ) THEN AVG ( - 36 ) WHEN 39 * - COUNT( * ) * + 78 THEN - SUM( ALL 52 ) * - NULLIF ( + ( - 68 ), 23 ) END * - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT + CASE + 47 WHEN + + 44 THEN NULL WHEN + ( - + ( - COUNT ( * ) ) ) THEN AVG ( - 36 ) WHEN 39 * - COUNT ( * ) * + 78 THEN - SUM ( ALL 52 ) * - NULLIF ( + ( - 68 ), 23 ) END * - 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT - COUNT( * ) * ( 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT - COUNT ( * ) * ( 94 ) AS col0
----
-94

query I rowsort
SELECT ALL + 44 * + + 62
----
2728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8165
SELECT DISTINCT - - CASE - 79 WHEN + 67 THEN + 17 - + 31 * + + 14 WHEN - 64 * COUNT( * ) - - + COALESCE ( - 0, COUNT( * ) * - ( + 7 ) * - 89 ) * 75 THEN NULL WHEN - 45 + - 57 * COUNT( - ( 79 ) + 53 * 7 ) THEN NULL ELSE CASE - 91 WHEN - 58 * - 43 THEN 0 * 19 ELSE NULL END * + 57 END * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - - CASE - 79 WHEN + 67 THEN + 17 - + 31 * + + 14 WHEN - 64 * COUNT ( * ) - - + COALESCE ( - 0, COUNT ( * ) * - ( + 7 ) * - 89 ) * 75 THEN NULL WHEN - 45 + - 57 * COUNT ( - ( 79 ) + 53 * 7 ) THEN NULL ELSE CASE - 91 WHEN - 58 * - 43 THEN 0 * 19 ELSE NULL END * + 57 END * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8166
SELECT - COALESCE ( - COALESCE ( + - 44, + 97 + COALESCE ( + 79, - + 56 + 50 - + COUNT( * ) + + 44 * + CASE WHEN + COALESCE ( + 14, - 54 * - 92 ) >= 81 - CAST( NULL AS DECIMAL ) THEN 29 * - MIN( 59 * 44 ) ELSE 78 * - 7 END + 9 * + 95 * 11 ) * 76 ), 90 * + 97, + 88 + + 72 DIV ( 69 - 24 ) ) DIV 9
----
-4

skipif mysql # not compatible
query I rowsort label-8166
SELECT - COALESCE ( - COALESCE ( + - 44, + 97 + COALESCE ( + 79, - + 56 + 50 - + COUNT ( * ) + + 44 * + CASE WHEN + COALESCE ( + 14, - 54 * - 92 ) >= 81 - CAST ( NULL AS REAL ) THEN 29 * - MIN ( 59 * 44 ) ELSE 78 * - 7 END + 9 * + 95 * 11 ) * 76 ), 90 * + 97, + 88 + + 72 / ( 69 - 24 ) ) / 9
----
-4

query I rowsort
SELECT ALL + 52 * - 45
----
-2340

query I rowsort
SELECT 71 - - ( 47 ) AS col2
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8169
SELECT ALL + 43 * + 42 * 2 DIV + - COUNT( * ) AS col1
----
-3612

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL + 43 * + 42 * 2 / + - COUNT ( * ) AS col1
----
-3612

query I rowsort
SELECT ALL + 80 + - 17 AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8171
SELECT 36 col0, 50 * + + COUNT( * ) + + - 69 * - - SUM( - 97 )
----
36
6743

skipif mysql # not compatible
query II rowsort label-8171
SELECT 36 col0, 50 * + + COUNT ( * ) + + - 69 * - - SUM ( - 97 )
----
36
6743

query I rowsort
SELECT ALL 4 * + 63 * 51 + 97 AS col0
----
12949

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT DISTINCT - MIN( DISTINCT - - 1 ) * - MIN( DISTINCT 43 ) + ( - 22 )
----
21

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT - MIN ( DISTINCT - - 1 ) * - MIN ( DISTINCT 43 ) + ( - 22 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT + 91 * 27 * + 47 + - - 47 + + - 16 + + COUNT( - 29 ) * 83 + 71 * + 8 AS col0
----
116161

skipif mysql # not compatible
query I rowsort label-8174
SELECT + 91 * 27 * + 47 + - - 47 + + - 16 + + COUNT ( - 29 ) * 83 + 71 * + 8 AS col0
----
116161

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL COUNT( * ) * + CASE - 58 WHEN MIN( ALL - ( - 38 ) ) * 69 - - COUNT( * ) THEN - + 70 ELSE NULL END * - 11 + - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL COUNT ( * ) * + CASE - 58 WHEN MIN ( ALL - ( - 38 ) ) * 69 - - COUNT ( * ) THEN - + 70 ELSE NULL END * - 11 + - 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT 53 * + + 12 + + + MAX( + 24 ) col2
----
660

skipif mysql # not compatible
query I rowsort label-8176
SELECT 53 * + + 12 + + + MAX ( + 24 ) col2
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL - 1 * - 87 * + - COALESCE ( 95, - 86 ) + + - 87 * + COUNT( * ) * - ( ( + + 72 ) ) AS col1
----
-2001

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - 1 * - 87 * + - COALESCE ( 95, - 86 ) + + - 87 * + COUNT ( * ) * - ( ( + + 72 ) ) AS col1
----
-2001

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8178
SELECT 72 DIV - - COUNT( * ) + 12, + 29 * CASE 70 WHEN - COUNT( * ) THEN + COUNT( DISTINCT - + 9 ) WHEN - ( + 19 ) + + - 18 + - - 78 THEN 94 - - 90 END + 85 * MAX( DISTINCT - 47 + 88 ) col2
----
84
NULL

skipif mysql # not compatible
query II rowsort label-8178
SELECT 72 / - - COUNT ( * ) + 12, + 29 * CASE 70 WHEN - COUNT ( * ) THEN + COUNT ( DISTINCT - + 9 ) WHEN - ( + 19 ) + + - 18 + - - 78 THEN 94 - - 90 END + 85 * MAX ( DISTINCT - 47 + 88 ) col2
----
84
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8179
SELECT COUNT( * ) AS col0, + 21 + + 17 - + MAX( 6 ) * 79
----
1
-436

skipif mysql # not compatible
query II rowsort label-8179
SELECT COUNT ( * ) AS col0, + 21 + + 17 - + MAX ( 6 ) * 79
----
1
-436

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT 70 DIV + 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8180
SELECT 70 / + 53 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT 6 + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8181
SELECT 6 + COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT - SUM( DISTINCT + 14 ) * + 37 + 76 AS col0
----
-442

skipif mysql # not compatible
query I rowsort label-8182
SELECT - SUM ( DISTINCT + 14 ) * + 37 + 76 AS col0
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL + 74 * 72 - + 38 * - + COUNT( * )
----
5366

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL + 74 * 72 - + 38 * - + COUNT ( * )
----
5366

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT COUNT( - ( + - ( + - 60 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8184
SELECT COUNT ( - ( + - ( + - 60 ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT ALL - CAST( - + 26 AS SIGNED ) col0
----
26

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL - CAST ( - + 26 AS INTEGER ) col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT COUNT( * ) * COUNT( * ) - - + 96 - 41 * - + 25 + + COUNT( * ) col2
----
1123

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) - - + 96 - 41 * - + 25 + + COUNT ( * ) col2
----
1123

query I rowsort
SELECT + 85 * + - 37 - - - 70 * - 38 + - - 25
----
-460

query I rowsort
SELECT ALL - + 77 * 92 + 21
----
-7063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8189
SELECT DISTINCT MAX( DISTINCT + 55 ) - - ( + + 90 ) * 14 * CAST( - - MAX( + 72 ) AS SIGNED ) * - 50
----
-4535945

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT MAX ( DISTINCT + 55 ) - - ( + + 90 ) * 14 * CAST ( - - MAX ( + 72 ) AS INTEGER ) * - 50
----
-4535945

query I rowsort
SELECT DISTINCT - 13 * + 66 col0
----
-858

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8191
SELECT ALL ( + 31 ) DIV + NULLIF ( + 60, + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL ( + 31 ) / + NULLIF ( + 60, + COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT + COUNT( 7 ) * 2 * - + 0 + + NULLIF ( SUM( + 80 ), 98 ) * - 31 * 14 AS col0
----
-34720

skipif mysql # not compatible
query I rowsort label-8192
SELECT + COUNT ( 7 ) * 2 * - + 0 + + NULLIF ( SUM ( + 80 ), 98 ) * - 31 * 14 AS col0
----
-34720

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL + MIN( ALL + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL + MIN ( ALL + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT + 93 * + - MIN( - 73 ) + + 79 + + + 74 AS col0
----
6942

skipif mysql # not compatible
query I rowsort label-8194
SELECT + 93 * + - MIN ( - 73 ) + + 79 + + + 74 AS col0
----
6942

query I rowsort
SELECT + - ( - 40 ) - 47 + + 21 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8196
SELECT DISTINCT 62 DIV - 84 + SUM( - 57 ) * + 51 AS col1
----
-2907

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT 62 / - 84 + SUM ( - 57 ) * + 51 AS col1
----
-2907

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL + + COUNT( ALL + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + + COUNT ( ALL + 88 )
----
1

query I rowsort
SELECT - 50 + - - 45 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT - - MAX( + 84 ) * 6
----
504

skipif mysql # not compatible
query I rowsort label-8199
SELECT - - MAX ( + 84 ) * 6
----
504

query II rowsort
SELECT ALL - 55 AS col0, + 27 AS col0
----
-55
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8201
SELECT + CAST( + + 39 AS SIGNED ) + - + 62 + + 8 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8201
SELECT + CAST ( + + 39 AS INTEGER ) + - + 62 + + 8 AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT - COALESCE ( - + COUNT( * ), 92 DIV + 66 * + 54, - 57 + ( - SUM( ALL - 70 ) ) + + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT - COALESCE ( - + COUNT ( * ), 92 / + 66 * + 54, - 57 + ( - SUM ( ALL - 70 ) ) + + 96 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8203
SELECT - NULLIF ( - COUNT( * ), ( + + MIN( ALL - 61 ) ) * 63 + CASE - 57 WHEN - 3 * + + 91 THEN NULL WHEN ( + COUNT( * ) ) * 47 * 37 + - 21 + - MIN( ALL + 60 ) THEN 12 ELSE NULL END + - 25 * - CAST( NULL AS DECIMAL ) + 74 * + ( 94 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8203
SELECT - NULLIF ( - COUNT ( * ), ( + + MIN ( ALL - 61 ) ) * 63 + CASE - 57 WHEN - 3 * + + 91 THEN NULL WHEN ( + COUNT ( * ) ) * 47 * 37 + - 21 + - MIN ( ALL + 60 ) THEN 12 ELSE NULL END + - 25 * - CAST ( NULL AS REAL ) + 74 * + ( 94 ) )
----
1

query I rowsort
SELECT + + 93 + 64
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8205
SELECT + - 18 + 14 + COUNT( * ) AS col1, 95 + - ( - - CAST( - - CAST( - - 64 AS DECIMAL ) AS SIGNED ) ) DIV COUNT( * ) col2
----
-3
31

skipif mysql # not compatible
query II rowsort label-8205
SELECT + - 18 + 14 + COUNT ( * ) AS col1, 95 + - ( - - CAST ( - - CAST ( - - 64 AS REAL ) AS INTEGER ) ) / COUNT ( * ) col2
----
-3
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL 6 + 6 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL 6 + 6 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8207
SELECT - CAST( + 97 AS SIGNED ) + 64 + - 47 + - + 82 col0
----
-162

skipif mysql # not compatible
query I rowsort label-8207
SELECT - CAST ( + 97 AS INTEGER ) + 64 + - 47 + - + 82 col0
----
-162

query I rowsort
SELECT ALL 59 + - 9 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT + MIN( 26 ) * + + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8209
SELECT + MIN ( 26 ) * + + COUNT ( * ) AS col1
----
26

query II rowsort
SELECT - ( - - 90 ) AS col1, 67 AS col0
----
-90
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL 47 + + COUNT( * ) + - 34
----
14

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL 47 + + COUNT ( * ) + - 34
----
14

query I rowsort
SELECT - ( + 64 ) AS col2
----
-64

query I rowsort
SELECT ALL + 49 + + 18 + - 15 + 27
----
79

query II rowsort
SELECT - NULLIF ( 36, - + 64 ) * + 94 col1, 48 AS col0
----
-3384
48

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT ( - 72 ) AS col0, + COUNT( * )
----
-72
1

skipif mysql # not compatible
query II rowsort label-8215
SELECT ( - 72 ) AS col0, + COUNT ( * )
----
-72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + COALESCE ( - COUNT( * ), + + 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-8216
SELECT + COALESCE ( - COUNT ( * ), + + 65 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8217
SELECT DISTINCT 18 DIV - CAST( - + 40 AS SIGNED ) - 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT 18 / - CAST ( - + 40 AS INTEGER ) - 7 AS col1
----
-7

query I rowsort
SELECT - 11 * - 23 + - 82
----
171

query I rowsort
SELECT + 75 * - - 3 col0
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT + COALESCE ( 3, + SUM( + + CAST( - CASE + + 13 WHEN - 84 THEN - 5 END AS SIGNED ) ) ) * 41 - - - CAST( - 96 AS SIGNED ) AS col2
----
219

skipif mysql # not compatible
query I rowsort label-8220
SELECT + COALESCE ( 3, + SUM ( + + CAST ( - CASE + + 13 WHEN - 84 THEN - 5 END AS INTEGER ) ) ) * 41 - - - CAST ( - 96 AS INTEGER ) AS col2
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT 23 DIV - 73 - + ( - - 15 ) * - + 66 + 45
----
1035

skipif mysql # not compatible
query I rowsort label-8221
SELECT 23 / - 73 - + ( - - 15 ) * - + 66 + 45
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL COUNT( * ) * + 81 - - 41 + + + 72
----
194

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL COUNT ( * ) * + 81 - - 41 + + + 72
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL + MAX( ALL - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL + MAX ( ALL - 56 )
----
-56

query I rowsort
SELECT - 45 * + 62 AS col1
----
-2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8225
SELECT ALL - - ( - 64 ) * + 67 - - - COUNT( * ) DIV 68 AS col0
----
-4288

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL - - ( - 64 ) * + 67 - - - COUNT ( * ) / 68 AS col0
----
-4288

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT - ( COUNT( DISTINCT + 96 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8226
SELECT - ( COUNT ( DISTINCT + 96 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - 91 * - NULLIF ( - 34, - COUNT( * ) + + + COUNT( * ) ) + - 63 * + 4 * - 84 AS col2
----
18074

skipif mysql # not compatible
query I rowsort label-8227
SELECT - 91 * - NULLIF ( - 34, - COUNT ( * ) + + + COUNT ( * ) ) + - 63 * + 4 * - 84 AS col2
----
18074

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - + COUNT( * ) * - + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8228
SELECT - + COUNT ( * ) * - + 6 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT - + 29 * + COUNT( * ) DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-8229
SELECT - + 29 * + COUNT ( * ) / - + 58
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT DISTINCT + 18 DIV + COALESCE ( + - ( 82 ), - - 58 ) + - 72
----
-72

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT + 18 / + COALESCE ( + - ( 82 ), - - 58 ) + - 72
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8231
SELECT - COUNT( * ) / + 43 * + 93 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT - COUNT ( * ) / + 43 * + 93 - - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL + 69 * + 59 * 23 + 0, - 98 AS col1
----
93633
-98

query I rowsort
SELECT - 48 * + - 89 col1
----
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL + 58 * + - MIN( 22 ) + - NULLIF ( 94, - ( + ( - 55 ) ) ) + - 65 * - + COUNT( * )
----
-1305

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + 58 * + - MIN ( 22 ) + - NULLIF ( 94, - ( + ( - 55 ) ) ) + - 65 * - + COUNT ( * )
----
-1305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL + 24 * + CAST( - + 33 AS SIGNED ) * - 67 col1
----
53064

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + 24 * + CAST ( - + 33 AS INTEGER ) * - 67 col1
----
53064

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL - 41 * + MIN( DISTINCT + 82 ) + + 50 * - 68 * - COUNT( * ) * + 54 + + + COUNT( * )
----
180239

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL - 41 * + MIN ( DISTINCT + 82 ) + + 50 * - 68 * - COUNT ( * ) * + 54 + + + COUNT ( * )
----
180239

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT ALL - - COUNT( - 23 ) * - + COUNT( * ) + + 83 + - 79 + - + 99 + - - 92 * 42 + - 3 + 29 * 70 + + 81 * - + 1 * - 2
----
5957

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL - - COUNT ( - 23 ) * - + COUNT ( * ) + + 83 + - 79 + - + 99 + - - 92 * 42 + - 3 + 29 * 70 + + 81 * - + 1 * - 2
----
5957

query I rowsort
SELECT - - 28 + + 26 * 44 * + + 85
----
97268

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT - + 53 DIV + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8239
SELECT - + 53 / + 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL + - MIN( - 16 ) + 19 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + - MIN ( - 16 ) + 19 AS col0
----
35

query I rowsort
SELECT - 89 - - 60
----
-29

query II rowsort
SELECT 75, - 61 AS col2
----
75
-61

query I rowsort
SELECT ALL 59 + - 12
----
47

query I rowsort
SELECT - ( + 89 ) - 76
----
-165

query I rowsort
SELECT ALL + ( + 65 ) + - 34 + + 57 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT + COUNT( * ) + - 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8246
SELECT + COUNT ( * ) + - 65 AS col2
----
-64

query I rowsort
SELECT ALL 53 * + + 62 col1
----
3286

query I rowsort
SELECT ALL - 53 + + 90
----
37

query II rowsort
SELECT - ( + ( 15 ) ) AS col2, 14
----
-15
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT - COUNT( * ) + + 18 * - 20 AS col1
----
-361

skipif mysql # not compatible
query I rowsort label-8250
SELECT - COUNT ( * ) + + 18 * - 20 AS col1
----
-361

query I rowsort
SELECT + ( + ( + 15 ) ) - + 65
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8252
SELECT ALL 17 * - + ( - COUNT( + 76 ) ) * + - 88 * + - CAST( 35 AS SIGNED ) AS col2
----
52360

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL 17 * - + ( - COUNT ( + 76 ) ) * + - 88 * + - CAST ( 35 AS INTEGER ) AS col2
----
52360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8253
SELECT + 87 - + COALESCE ( 24, - 81, + 86 + 12 * 27 DIV MAX( - CAST( NULL AS SIGNED ) ) * + - 75 * + + 65 )
----
63

skipif mysql # not compatible
query I rowsort label-8253
SELECT + 87 - + COALESCE ( 24, - 81, + 86 + 12 * 27 / MAX ( - CAST ( NULL AS INTEGER ) ) * + - 75 * + + 65 )
----
63

query I rowsort
SELECT - COALESCE ( + 51, - 50 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8255
SELECT DISTINCT NULLIF ( + - 81, COALESCE ( + ( - - 64 ), + 56 ) ) - - 84 * - 99 AS col0, COUNT( * ) AS col2
----
-8397
1

skipif mysql # not compatible
query II rowsort label-8255
SELECT DISTINCT NULLIF ( + - 81, COALESCE ( + ( - - 64 ), + 56 ) ) - - 84 * - 99 AS col0, COUNT ( * ) AS col2
----
-8397
1

query I rowsort
SELECT - 45 * - - NULLIF ( + 17, - - 11 - - 41 ) + + + 77
----
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ( 85 ) * - 24
----
-2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8259
SELECT ALL - 50, - 16 * + COALESCE ( - + 12, 80 + - + 67 ) * + + MIN( DISTINCT 74 ) DIV COUNT( * ) + 32 col0
----
-50
14240

skipif mysql # not compatible
query II rowsort label-8259
SELECT ALL - 50, - 16 * + COALESCE ( - + 12, 80 + - + 67 ) * + + MIN ( DISTINCT 74 ) / COUNT ( * ) + 32 col0
----
-50
14240

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8260
SELECT + CAST( NULL AS DECIMAL ) AS col1, + 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-8260
SELECT + CAST ( NULL AS REAL ) AS col1, + 92
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL COUNT( * ) * - + 3
----
-3

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL COUNT ( * ) * - + 3
----
-3

query I rowsort
SELECT - 96 + + 11
----
-85

query I rowsort
SELECT 57 * + 97 col2
----
5529

query I rowsort
SELECT ALL 40 * - 36 AS col2
----
-1440

query I rowsort
SELECT 59 * + 32 AS col1
----
1888

query I rowsort
SELECT ALL - 28 * + 13 * + 0 AS col0
----
0

query I rowsort
SELECT DISTINCT 11 + + + 55 * + - ( 47 ) AS col2
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT DISTINCT + + 21 + - COUNT( - - 26 ) + 78 + + 75 * 76
----
5798

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT + + 21 + - COUNT ( - - 26 ) + 78 + + 75 * 76
----
5798

query I rowsort
SELECT ALL - + ( 76 ) AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8270
SELECT DISTINCT + - CAST( - 38 AS SIGNED ) + - + ( - - 31 )
----
7

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT + - CAST ( - 38 AS INTEGER ) + - + ( - - 31 )
----
7

query I rowsort
SELECT + COALESCE ( 40, - 78 * - + 15 ) AS col2
----
40

query I rowsort
SELECT DISTINCT + - 30 + - + 6 + - + ( 33 )
----
-69

query I rowsort
SELECT ALL + - 79 * + - 9
----
711

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT MAX( DISTINCT - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT MAX ( DISTINCT - 24 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8275
SELECT ALL + - CAST( + COUNT( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED ) + + 29 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL + - CAST ( + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ( + 37 ) + + 56 * COALESCE ( - - 64, 64 ) + - 16 * + 28 + - + 14 + - COUNT( * ) * 67 * - MAX( 35 ) * - ( 13 ) * 91 AS col0
----
-2770976

skipif mysql # not compatible
query I rowsort label-8276
SELECT ( + 37 ) + + 56 * COALESCE ( - - 64, 64 ) + - 16 * + 28 + - + 14 + - COUNT ( * ) * 67 * - MAX ( 35 ) * - ( 13 ) * 91 AS col0
----
-2770976

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT + 62 + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8277
SELECT + 62 + COUNT ( * ) AS col0
----
63

query I rowsort
SELECT ALL + 94 * - 32 col0
----
-3008

query I rowsort
SELECT ALL + 49 + - + 56 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT + 67 - COUNT( ALL - 71 ) * - 3 col2
----
70

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT + 67 - COUNT ( ALL - 71 ) * - 3 col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT COUNT( DISTINCT - 1 ) * - 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8281
SELECT COUNT ( DISTINCT - 1 ) * - 70 AS col2
----
-70

query II rowsort
SELECT ALL 55, 2 + + 1 col2
----
55
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT COUNT( * ) + 28 + - + 91 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8283
SELECT COUNT ( * ) + 28 + - + 91 AS col0
----
-62

query II rowsort
SELECT 77 * - + 5 AS col0, - ( 11 ) AS col2
----
-385
-11

query I rowsort
SELECT 80 * + - 79 * - 62
----
391840

query I rowsort
SELECT 86 / + 83 * - 13 * + - CASE - 59 WHEN 48 * ( + 1 ) + + + 29 THEN + 99 WHEN - 84 * 65 * + - 1 * + 87 * + 31 THEN - 40 * 27 + + 46 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 14, ( + - 44 ) AS col2
----
14
-44

query II rowsort
SELECT ALL 67 AS col1, 8 + - 96 AS col2
----
67
-88

query II rowsort
SELECT ALL 24 AS col2, - ( 26 ) - 29 + - ( - + 79 ) + 43 * 75 AS col2
----
24
3249

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8290
SELECT DISTINCT ( - COUNT( * ) ) * + CAST( NULL AS DECIMAL ) + COUNT( * ) / - 6 * + + 61 + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT ( - COUNT ( * ) ) * + CAST ( NULL AS REAL ) + COUNT ( * ) / - 6 * + + 61 + 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT ALL + 59 * - CAST( 85 AS SIGNED )
----
-5015

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL + 59 * - CAST ( 85 AS INTEGER )
----
-5015

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8292
SELECT 92 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT 92 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT ( - 92 ) * + SUM( - 52 ) - - COUNT( * ) AS col0
----
4785

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT ( - 92 ) * + SUM ( - 52 ) - - COUNT ( * ) AS col0
----
4785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT - 85 * 17 * - CAST( - 5 AS SIGNED ) * - 84
----
606900

skipif mysql # not compatible
query I rowsort label-8294
SELECT - 85 * 17 * - CAST ( - 5 AS INTEGER ) * - 84
----
606900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT CAST( - + 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-8295
SELECT CAST ( - + 77 AS INTEGER )
----
-77

query I rowsort
SELECT - + 26 * 14 + - + 26
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL + 2 + + 68 * + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL + 2 + + 68 * + COUNT ( * )
----
70

query I rowsort
SELECT ALL 38 + 55
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8299
SELECT ALL + MAX( - 5 ) + 54 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL + MAX ( - 5 ) + 54 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - 24 * - COUNT( ALL + 47 ) - - - 87 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8300
SELECT - 24 * - COUNT ( ALL + 47 ) - - - 87 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8301
SELECT - NULLIF ( - - NULLIF ( + - 70, - + ( 61 ) ), - - CAST( 56 AS SIGNED ) + - CASE - COUNT( * ) WHEN + 88 THEN + ( - - AVG ( + 59 ) ) * - 57 * - + 48 + - 10 WHEN - 92 * + ( 70 * 62 ) THEN NULL END ) DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-8301
SELECT - NULLIF ( - - NULLIF ( + - 70, - + ( 61 ) ), - - CAST ( 56 AS INTEGER ) + - CASE - COUNT ( * ) WHEN + 88 THEN + ( - - AVG ( + 59 ) ) * - 57 * - + 48 + - 10 WHEN - 92 * + ( 70 * 62 ) THEN NULL END ) / 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ALL ( 82 ) + 43 + + 80 + COUNT( * ) AS col2
----
206

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL ( 82 ) + 43 + + 80 + COUNT ( * ) AS col2
----
206

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT + 32 * + 73 * 38 + - 95, - COUNT( * ) + + 30 + - + 8 + 54 - COUNT( * ) * 85 * 41 AS col2
----
88673
-3410

skipif mysql # not compatible
query II rowsort label-8303
SELECT + 32 * + 73 * 38 + - 95, - COUNT ( * ) + + 30 + - + 8 + 54 - COUNT ( * ) * 85 * 41 AS col2
----
88673
-3410

query II rowsort
SELECT - 95, - 82 * - 88 * + - 13 AS col0
----
-95
-93808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8305
SELECT - 96 DIV - - ( + 74 ) + + 85 - COALESCE ( + + 26, - 96, + COUNT( * ) ) * - + 64 * + ( + 19 )
----
31700

skipif mysql # not compatible
query I rowsort label-8305
SELECT - 96 / - - ( + 74 ) + + 85 - COALESCE ( + + 26, - 96, + COUNT ( * ) ) * - + 64 * + ( + 19 )
----
31700

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8306
SELECT 74 + + - 4 + 78 + - 46 + - + 25 - - CAST( NULL AS DECIMAL ) / 96 * + - CASE - 1 WHEN + + 9 THEN 97 ELSE 51 + - + 17 + + 51 * - 95 END - 95 + 19 * 11 * - MIN( 22 - + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT 74 + + - 4 + 78 + - 46 + - + 25 - - CAST ( NULL AS REAL ) / 96 * + - CASE - 1 WHEN + + 9 THEN 97 ELSE 51 + - + 17 + + 51 * - 95 END - 95 + 19 * 11 * - MIN ( 22 - + 95 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8307
SELECT DISTINCT - 75 + 15 * - CAST( - NULLIF ( - 93, + COUNT( COALESCE ( - 60, + 32 ) ) ) AS SIGNED ) - - - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - 98 AS col1, + 4 col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-8307
SELECT DISTINCT - 75 + 15 * - CAST ( - NULLIF ( - 93, + COUNT ( COALESCE ( - 60, + 32 ) ) ) AS INTEGER ) - - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 98 AS col1, + 4 col0
----
NULL
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8308
SELECT DISTINCT 58 * + CAST( + + 31 AS SIGNED ) * + 3 * - COUNT( * ) AS col0
----
-5394

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT 58 * + CAST ( + + 31 AS INTEGER ) * + 3 * - COUNT ( * ) AS col0
----
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL - 25 + + 9 + 20 + + 5 + - 45 - - + CASE 55 WHEN - 63 + - + COUNT( * ) THEN - 86 + 85 END - - 5 + + 39 + 21 * 54 * 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL - 25 + + 9 + 20 + + 5 + - 45 - - + CASE 55 WHEN - 63 + - + COUNT ( * ) THEN - 86 + 85 END - - 5 + + 39 + 21 * 54 * 38 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 5 ) * + 54
----
-270

query I rowsort
SELECT ALL - NULLIF ( 67, + 38 ) AS col2
----
-67

query I rowsort
SELECT 87 * - 14 * - 34 + - 50 AS col1
----
41362

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ALL MIN( 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL MIN ( 0 ) AS col1
----
0

query I rowsort
SELECT ALL + 53 - - - 73
----
-20

query I rowsort
SELECT 87 * + 31
----
2697

query I rowsort
SELECT 77 * - 11 AS col0
----
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT - 45 * COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT - 45 * COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL MIN( DISTINCT - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL MIN ( DISTINCT - 18 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT ALL 40 DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL 40 / + + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT - 52 + + - CASE - ( 11 ) WHEN - 51 THEN NULL WHEN + 35 THEN COUNT( * ) WHEN 71 THEN NULL ELSE NULL END / - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT - 52 + + - CASE - ( 11 ) WHEN - 51 THEN NULL WHEN + 35 THEN COUNT ( * ) WHEN 71 THEN NULL ELSE NULL END / - 40 AS col1
----
NULL

query I rowsort
SELECT ALL CASE + + 79 WHEN - 65 + 62 THEN + ( + + 25 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - 28 + - COUNT( * ) + - COUNT( * ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-8322
SELECT - 28 + - COUNT ( * ) + - COUNT ( * ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT COALESCE ( 47, + COUNT( * ) + + 12 )
----
47

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT COALESCE ( 47, + COUNT ( * ) + + 12 )
----
47

query I rowsort
SELECT - 4 * - - 30
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT + 16 + + - COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8325
SELECT + 16 + + - COUNT ( * ) AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT - CAST( + 79 AS SIGNED ) + + - 69 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-8326
SELECT - CAST ( + 79 AS INTEGER ) + + - 69 AS col1
----
-148

query I rowsort
SELECT - 98 - 65 * 52 + + 97 + 75 * 31 AS col2
----
-1056

query II rowsort
SELECT - 10 * 62, 24 AS col2
----
-620
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT ALL + CAST( 75 AS SIGNED ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL + CAST ( 75 AS INTEGER ) AS col0
----
75

query I rowsort
SELECT DISTINCT - - 1 + ( COALESCE ( - 8, - - 24, + 33 ) )
----
-7

query I rowsort
SELECT - - 92 + + + 10
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT - 64 * + 74 + COUNT( * )
----
-4735

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT - 64 * + 74 + COUNT ( * )
----
-4735

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT - 96 * - 96 + - 43 + ( + 74 ) + + COUNT( * )
----
9248

skipif mysql # not compatible
query I rowsort label-8333
SELECT - 96 * - 96 + - 43 + ( + 74 ) + + COUNT ( * )
----
9248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT DISTINCT + NULLIF ( + 29, + CAST( NULL AS SIGNED ) + + 35 ) * CAST( - - 54 AS SIGNED ) + + 44 - + + 43 * + 40
----
-110

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT + NULLIF ( + 29, + CAST ( NULL AS INTEGER ) + + 35 ) * CAST ( - - 54 AS INTEGER ) + + 44 - + + 43 * + 40
----
-110

query I rowsort
SELECT DISTINCT - 79 * 92
----
-7268

query I rowsort
SELECT - 85 * - + 58 + - 60
----
4870

query I rowsort
SELECT + 55 + + - 14 * - 63 AS col0
----
937

query I rowsort
SELECT ALL - 46 * + - 18 AS col0
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT - - COALESCE ( 33, - 48 * - COUNT( * ) ) + - + COUNT( DISTINCT - + 86 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8339
SELECT - - COALESCE ( 33, - 48 * - COUNT ( * ) ) + - + COUNT ( DISTINCT - + 86 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT 62 * + 73 + + - MAX( + + 7 ) AS col2
----
4519

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT 62 * + 73 + + - MAX ( + + 7 ) AS col2
----
4519

onlyif mysql # aggregate syntax: 
query II rowsort label-8341
SELECT DISTINCT + COUNT( - 77 ) AS col1, - 75 * - 1 * + 58 + - + ( + COUNT( * ) ) AS col1
----
1
4349

skipif mysql # not compatible
query II rowsort label-8341
SELECT DISTINCT + COUNT ( - 77 ) AS col1, - 75 * - 1 * + 58 + - + ( + COUNT ( * ) ) AS col1
----
1
4349

query I rowsort
SELECT - ( - ( 56 ) )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8343
SELECT + 44 + 64 + - ( + + 38 ) DIV + 91
----
108

skipif mysql # not compatible
query I rowsort label-8343
SELECT + 44 + 64 + - ( + + 38 ) / + 91
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT - 87 * + 58 + + MAX( - - 50 )
----
-4996

skipif mysql # not compatible
query I rowsort label-8344
SELECT - 87 * + 58 + + MAX ( - - 50 )
----
-4996

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + + ( COUNT( * ) ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-8345
SELECT + + ( COUNT ( * ) ) + 36
----
37

query II rowsort
SELECT ALL + 26, + ( + + 1 ) col1
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT + SUM( 91 )
----
91

skipif mysql # not compatible
query I rowsort label-8347
SELECT + SUM ( 91 )
----
91

query I rowsort
SELECT 58 * + 19 + - 14
----
1088

query I rowsort
SELECT ALL 94 * + 95
----
8930

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT - 64 + 26 DIV + 39 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8350
SELECT - 64 + 26 / + 39 AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT ALL CASE - - 72 WHEN + ( + 10 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) * 58 - - + SUM( ALL 87 ) END * - 98 * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL CASE - - 72 WHEN + ( + 10 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) * 58 - - + SUM ( ALL 87 ) END * - 98 * 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT + 76 + - + COUNT( * ) + 88 - 0
----
163

skipif mysql # not compatible
query I rowsort label-8352
SELECT + 76 + - + COUNT ( * ) + 88 - 0
----
163

query I rowsort
SELECT ALL 40 * 58
----
2320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT DISTINCT 99 * + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT 99 * + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL SUM( DISTINCT + ( 36 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL SUM ( DISTINCT + ( 36 ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8356
SELECT ALL COUNT( * ) AS col0, COUNT( ALL - 50 )
----
1
1

skipif mysql # not compatible
query II rowsort label-8356
SELECT ALL COUNT ( * ) AS col0, COUNT ( ALL - 50 )
----
1
1

query I rowsort
SELECT + 28 + - 92 AS col0
----
-64

query I rowsort
SELECT ALL 34 * - 41 col0
----
-1394

query I rowsort
SELECT - 22 + + 46 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL MIN( 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL MIN ( 61 ) AS col2
----
61

query I rowsort
SELECT + 92 * + 16 col2
----
1472

onlyif mysql # aggregate syntax: 
query II rowsort label-8362
SELECT - 98 + + MAX( 89 ) * + 95 AS col2, + COUNT( * )
----
8357
1

skipif mysql # not compatible
query II rowsort label-8362
SELECT - 98 + + MAX ( 89 ) * + 95 AS col2, + COUNT ( * )
----
8357
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL SUM( DISTINCT - - CASE - 57 WHEN - - 28 THEN NULL ELSE 53 END ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL SUM ( DISTINCT - - CASE - 57 WHEN - - 28 THEN NULL ELSE 53 END ) AS col1
----
53

query I rowsort
SELECT DISTINCT - 14 + + 73 AS col2
----
59

query I rowsort
SELECT ALL + ( - + 57 ) + + - 37 AS col1
----
-94

query I rowsort
SELECT - 51 + - ( 49 ) col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8367
SELECT ALL - 52 * - + CAST( COUNT( * ) AS SIGNED ), - COUNT( * ) AS col2
----
52
-1

skipif mysql # not compatible
query II rowsort label-8367
SELECT ALL - 52 * - + CAST ( COUNT ( * ) AS INTEGER ), - COUNT ( * ) AS col2
----
52
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8368
SELECT - 3 * - MAX( 33 ), 34 AS col1
----
99
34

skipif mysql # not compatible
query II rowsort label-8368
SELECT - 3 * - MAX ( 33 ), 34 AS col1
----
99
34

query I rowsort
SELECT ALL 73 + + 33
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT - - 15 + - + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - - 15 + - + COUNT ( * )
----
14

query I rowsort
SELECT + + 61 - + 86
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8372
SELECT - COUNT( * ) AS col1, + 87
----
-1
87

skipif mysql # not compatible
query II rowsort label-8372
SELECT - COUNT ( * ) AS col1, + 87
----
-1
87

query I rowsort
SELECT - + 80 * + + 68
----
-5440

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT DISTINCT + CASE - 25 WHEN - - 26 THEN - 60 + - 75 * - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT + CASE - 25 WHEN - - 26 THEN - 60 + - 75 * - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8375
SELECT ALL 60 / COUNT( * ) * 17 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL 60 / COUNT ( * ) * 17 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8376
SELECT NULLIF ( - 69, + 32 - - CASE - 37 WHEN + COUNT( * ) THEN - 58 * + 49 + + 36 + + + COUNT( * ) * + + 26 END ), - 64 AS col1
----
-69
-64

skipif mysql # not compatible
query II rowsort label-8376
SELECT NULLIF ( - 69, + 32 - - CASE - 37 WHEN + COUNT ( * ) THEN - 58 * + 49 + + 36 + + + COUNT ( * ) * + + 26 END ), - 64 AS col1
----
-69
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT ALL - 95 DIV - + 4 - + 59 + + 51 + - - 30 * - ( + - 94 ) AS col0
----
2835

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL - 95 / - + 4 - + 59 + + 51 + - - 30 * - ( + - 94 ) AS col0
----
2835

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT DISTINCT + NULLIF ( - COUNT( * ), - - 22 * + + MIN( DISTINCT + + 18 ) / - 36 ) AS col1, 32 + - 50 + + - 48 * + 25 * + + 82
----
-1
-98418

skipif mysql # not compatible
query II rowsort label-8378
SELECT DISTINCT + NULLIF ( - COUNT ( * ), - - 22 * + + MIN ( DISTINCT + + 18 ) / - 36 ) AS col1, 32 + - 50 + + - 48 * + 25 * + + 82
----
-1
-98418

query I rowsort
SELECT DISTINCT - 45 * - 44 col1
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL 53 * ( - COUNT( * ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL 53 * ( - COUNT ( * ) ) AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8381
SELECT COUNT( * ) * + + 89 DIV + - 80 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8381
SELECT COUNT ( * ) * + + 89 / + - 80 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT DISTINCT - COUNT( * ) * + 75 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT - COUNT ( * ) * + 75 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT 82 + + COUNT( * ) + - 22 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT 82 + + COUNT ( * ) + - 22 AS col0
----
61

query I rowsort
SELECT 95 + - 41 - 87 + + 86 * ( - - 84 ) AS col1
----
7191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT ALL 81 + 28 - CAST( + ( 73 ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL 81 + 28 - CAST ( + ( 73 ) AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT ( - - 87 ) * COUNT( * ) + - + 39 - ( - 46 )
----
94

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT ( - - 87 ) * COUNT ( * ) + - + 39 - ( - 46 )
----
94

query I rowsort
SELECT ALL + 1 + - + 74
----
-73

query I rowsort
SELECT 30 + 8
----
38

query II rowsort
SELECT ALL 45 + 32 AS col1, - 16 AS col1
----
77
-16

query I rowsort
SELECT ( + 13 ) + 67
----
80

query I rowsort
SELECT ALL + 65 + - + 66 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8392
SELECT 18 + + 0 AS col1, CAST( NULL AS SIGNED ) + + - 25
----
18
NULL

skipif mysql # not compatible
query II rowsort label-8392
SELECT 18 + + 0 AS col1, CAST ( NULL AS INTEGER ) + + - 25
----
18
NULL

query I rowsort
SELECT + 40 + + - 20 AS col1
----
20

query I rowsort
SELECT 51 + 18 + + 39 AS col2
----
108

query II rowsort
SELECT - 23 - 67, 54 AS col0
----
-90
54

query I rowsort
SELECT 41 + - 48 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL ( + + 42 ) - - 96 * + - MAX( 1 ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL ( + + 42 ) - - 96 * + - MAX ( 1 ) col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT COUNT( * ) * - COUNT( * ) * - 88 * + 77 * - ( CAST( 58 AS SIGNED ) )
----
-393008

skipif mysql # not compatible
query I rowsort label-8398
SELECT COUNT ( * ) * - COUNT ( * ) * - 88 * + 77 * - ( CAST ( 58 AS INTEGER ) )
----
-393008

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + CASE 59 WHEN + COALESCE ( + COUNT( * ), 62 ) THEN + CASE - COUNT( * ) WHEN - CASE + + SUM( + 11 ) WHEN + 16 + 39 THEN - 39 * 99 * - ( - + COUNT( - 85 ) ) WHEN 89 THEN 44 ELSE NULL END * 49 - + 4 THEN NULL ELSE + 59 END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT + CASE 59 WHEN + COALESCE ( + COUNT ( * ), 62 ) THEN + CASE - COUNT ( * ) WHEN - CASE + + SUM ( + 11 ) WHEN + 16 + 39 THEN - 39 * 99 * - ( - + COUNT ( - 85 ) ) WHEN 89 THEN 44 ELSE NULL END * 49 - + 4 THEN NULL ELSE + 59 END ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT - 90 + + - 97 + 10 + CAST( - 19 AS SIGNED )
----
-196

skipif mysql # not compatible
query I rowsort label-8400
SELECT - 90 + + - 97 + 10 + CAST ( - 19 AS INTEGER )
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT - + COALESCE ( - + CASE - + 11 WHEN 11 * + 43 THEN NULL WHEN + - COUNT( * ) THEN - - COUNT( * ) * 48 + - + MAX( ALL 2 ) END, MAX( - 70 ) + - ( + 47 ), + - 82 + + 72 ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-8401
SELECT - + COALESCE ( - + CASE - + 11 WHEN 11 * + 43 THEN NULL WHEN + - COUNT ( * ) THEN - - COUNT ( * ) * 48 + - + MAX ( ALL 2 ) END, MAX ( - 70 ) + - ( + 47 ), + - 82 + + 72 ) AS col2
----
117

query I rowsort
SELECT ALL + CASE - + ( + - 44 ) WHEN 49 THEN 2 END / 21
----
NULL

query I rowsort
SELECT 99 * 4 + + 54 + - - 61 * 17 AS col0
----
1487

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL - + COUNT( + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL - + COUNT ( + 49 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8405
SELECT + 39 DIV COUNT( * ) + 22 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8405
SELECT + 39 / COUNT ( * ) + 22 AS col0
----
61

query I rowsort
SELECT - 79 + - ( - 65 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT + MIN( ALL 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8407
SELECT + MIN ( ALL 36 ) AS col1
----
36

query I rowsort
SELECT 90 + 31 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT - SUM( - 39 ) * + COUNT( * ) + 87 - 82 + MIN( 41 ) + + - 15
----
70

skipif mysql # not compatible
query I rowsort label-8409
SELECT - SUM ( - 39 ) * + COUNT ( * ) + 87 - 82 + MIN ( 41 ) + + - 15
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8410
SELECT - 6 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-8410
SELECT - 6 / + 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8411
SELECT COUNT( * ) DIV - 85 * + + 5 * - ( 96 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8411
SELECT COUNT ( * ) / - 85 * + + 5 * - ( 96 ) * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8412
SELECT + 39 AS col1, MAX( ( + 66 ) )
----
39
66

skipif mysql # not compatible
query II rowsort label-8412
SELECT + 39 AS col1, MAX ( ( + 66 ) )
----
39
66

query I rowsort
SELECT ALL - 59 + - 6 * 75 + - 77 * + 22 col0
----
-2203

query I rowsort
SELECT 6 + + + 98
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL + AVG ( + 25 ) + + CAST( NULL AS SIGNED ) - - - ( 45 ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL + AVG ( + 25 ) + + CAST ( NULL AS INTEGER ) - - - ( 45 ) * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8416
SELECT 15 * - MAX( - + 42 ) AS col0, ( + ( 1 ) )
----
630
1

skipif mysql # not compatible
query II rowsort label-8416
SELECT 15 * - MAX ( - + 42 ) AS col0, ( + ( 1 ) )
----
630
1

query I rowsort
SELECT ALL + 32 + - 60
----
-28

query I rowsort
SELECT 21 + COALESCE ( - 11, + 37 + 6 - 20 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT MAX( - - 11 ) * + + 25 + - 65 + + + 83 * + 14 + + 32
----
1404

skipif mysql # not compatible
query I rowsort label-8419
SELECT MAX ( - - 11 ) * + + 25 + - 65 + + + 83 * + 14 + + 32
----
1404

query I rowsort
SELECT ALL - 60 + 5
----
-55

query I rowsort
SELECT DISTINCT + 15 + - 97
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8422
SELECT COUNT( * ) * + SUM( + + 25 ) DIV + 73 * + 59
----
0

skipif mysql # not compatible
query I rowsort label-8422
SELECT COUNT ( * ) * + SUM ( + + 25 ) / + 73 * + 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT ALL + COUNT( ALL - - CAST( NULL AS SIGNED ) ) + + - ( - - MAX( + 93 ) ) - 20 - 14
----
-127

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL + COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) + + - ( - - MAX ( + 93 ) ) - 20 - 14
----
-127

query I rowsort
SELECT DISTINCT 68 + + 66
----
134

query I rowsort
SELECT ALL 27 + - 17 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT 58 AS col0, + MAX( ALL 93 )
----
58
93

skipif mysql # not compatible
query II rowsort label-8426
SELECT 58 AS col0, + MAX ( ALL 93 )
----
58
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT 74 DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-8427
SELECT 74 / 73
----
1

query I rowsort
SELECT - 94 + - + 59 + - ( + 48 ) - 12
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT 64 + + CAST( + 27 AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8429
SELECT 64 + + CAST ( + 27 AS INTEGER ) AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8430
SELECT ALL + COUNT( * ) AS col0, - ( + 46 ) DIV - COUNT( * ) AS col0
----
1
46

skipif mysql # not compatible
query II rowsort label-8430
SELECT ALL + COUNT ( * ) AS col0, - ( + 46 ) / - COUNT ( * ) AS col0
----
1
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8431
SELECT - 21 + - 61 * - - 76 * + 47 - 25 DIV 14
----
-217914

skipif mysql # not compatible
query I rowsort label-8431
SELECT - 21 + - 61 * - - 76 * + 47 - 25 / 14
----
-217914

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT + 42 * - COUNT( DISTINCT - 14 ) + - 7
----
-49

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT + 42 * - COUNT ( DISTINCT - 14 ) + - 7
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT DISTINCT - + 39 DIV 13
----
-3

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT - + 39 / 13
----
-3

query I rowsort
SELECT ALL - 67 * - 58 + 18 AS col2
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT - COALESCE ( + COUNT( DISTINCT - + 26 ), - 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-8435
SELECT - COALESCE ( + COUNT ( DISTINCT - + 26 ), - 67 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT + COUNT( * ) * 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT + COUNT ( * ) * 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT - 10 * COALESCE ( NULLIF ( + COUNT( * ), - - 87 * + ( + 50 ) * + 59 + COUNT( * ) ), + 62 * + 21 + - SUM( DISTINCT ( - 70 ) ), + 29 ) + 99 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8437
SELECT - 10 * COALESCE ( NULLIF ( + COUNT ( * ), - - 87 * + ( + 50 ) * + 59 + COUNT ( * ) ), + 62 * + 21 + - SUM ( DISTINCT ( - 70 ) ), + 29 ) + 99 AS col1
----
89

query I rowsort
SELECT ALL - COALESCE ( + 16, + 94 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT 15 + + CASE + 81 WHEN + - 16 THEN - NULLIF ( - - CAST( NULL AS SIGNED ), - 50 ) / - 7 ELSE NULL END * + + 53 - + 32 / - COUNT( * ) + COUNT( * ) + - COUNT( * ) / + + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT 15 + + CASE + 81 WHEN + - 16 THEN - NULLIF ( - - CAST ( NULL AS INTEGER ), - 50 ) / - 7 ELSE NULL END * + + 53 - + 32 / - COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) / + + 74 AS col1
----
NULL

query I rowsort
SELECT + 77 * + COALESCE ( 74, + 91 ) * + - 35 + 67 + - 19
----
-199382

onlyif mysql # aggregate syntax: 
query II rowsort label-8441
SELECT - - MAX( DISTINCT 99 ) * - NULLIF ( - SUM( ALL + + 81 ), + 50 ) + + - 27 + + 42 col0, 14 AS col1
----
8034
14

skipif mysql # not compatible
query II rowsort label-8441
SELECT - - MAX ( DISTINCT 99 ) * - NULLIF ( - SUM ( ALL + + 81 ), + 50 ) + + - 27 + + 42 col0, 14 AS col1
----
8034
14

query I rowsort
SELECT ALL + ( - + ( + 60 ) ) * + - 51 + 91 * 38 AS col1
----
6518

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT DISTINCT + - MIN( DISTINCT + + 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT + - MIN ( DISTINCT + + 77 ) col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8444
SELECT + CAST( + 19 AS SIGNED ) * COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8444
SELECT + CAST ( + 19 AS INTEGER ) * COUNT ( * ) AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT 9 DIV - - 99 - + 93 - - 78 DIV - 6 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-8445
SELECT 9 / - - 99 - + 93 - - 78 / - 6 AS col2
----
-106

query I rowsort
SELECT ALL - 56 * - 10 + 28
----
588

query I rowsort
SELECT ALL - 95 * + 24 + - - 71
----
-2209

query I rowsort
SELECT - 23 * 81 * - 93
----
173259

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT COUNT( * ) AS col1, 20 AS col1
----
1
20

skipif mysql # not compatible
query II rowsort label-8449
SELECT COUNT ( * ) AS col1, 20 AS col1
----
1
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT ALL - 79 * - CAST( NULL AS SIGNED ) * - 91 + ( - + 77 ) + 1 + + - 27 + ( + 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL - 79 * - CAST ( NULL AS INTEGER ) * - 91 + ( - + 77 ) + 1 + + - 27 + ( + 58 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + NULLIF ( - 5, - 75 / 36 + + COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8451
SELECT + NULLIF ( - 5, - 75 / 36 + + COUNT ( * ) ) AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT - 75 DIV 52 * + 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8452
SELECT - 75 / 52 * + 6 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT 28 * - COUNT( * ) - - - NULLIF ( + 37, - 25 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8453
SELECT 28 * - COUNT ( * ) - - - NULLIF ( + 37, - 25 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT SUM( - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-8454
SELECT SUM ( - 65 ) AS col2
----
-65

query I rowsort
SELECT - 63 * + 62 AS col1
----
-3906

query I rowsort
SELECT ALL + 2 * + 52 + + 99 AS col2
----
203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8457
SELECT ALL - COUNT( * ) / - + CASE - 79 WHEN - COUNT( * ) + CAST( NULL AS SIGNED ) THEN - ( 94 ) ELSE - CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL - COUNT ( * ) / - + CASE - 79 WHEN - COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN - ( 94 ) ELSE - CAST ( NULL AS REAL ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT - 39 DIV 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-8458
SELECT - 39 / 57 col1
----
0

query I rowsort
SELECT ALL + 65 - + 62
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT - COUNT( * ) * 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8460
SELECT - COUNT ( * ) * 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8461
SELECT COUNT( * ), + COUNT( * ) * - MAX( - 70 ) AS col1
----
1
70

skipif mysql # not compatible
query II rowsort label-8461
SELECT COUNT ( * ), + COUNT ( * ) * - MAX ( - 70 ) AS col1
----
1
70

query I rowsort
SELECT + 3 + - 72
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8463
SELECT - 29 AS col1, CAST( + + 70 AS SIGNED )
----
-29
70

skipif mysql # not compatible
query II rowsort label-8463
SELECT - 29 AS col1, CAST ( + + 70 AS INTEGER )
----
-29
70

query I rowsort
SELECT - 80 + - 25
----
-105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8465
SELECT ALL + CASE - + 97 WHEN + 8 THEN - + NULLIF ( 80, + 66 + ( + 18 ) * 70 / + + CAST( NULL AS DECIMAL ) ) + - - 56 ELSE NULL END - 28 + - - ( COUNT( * ) ) + + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL + CASE - + 97 WHEN + 8 THEN - + NULLIF ( 80, + 66 + ( + 18 ) * 70 / + + CAST ( NULL AS REAL ) ) + - - 56 ELSE NULL END - 28 + - - ( COUNT ( * ) ) + + - 54
----
NULL

query I rowsort
SELECT - - 57 * 44
----
2508

query I rowsort
SELECT - - CASE - + 70 WHEN + 44 THEN - + 24 WHEN AVG ( ALL - 73 ) THEN NULLIF ( - + 74, - 39 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT - ( + CAST( 27 AS SIGNED ) ) + COUNT( DISTINCT - - 57 )
----
-26

skipif mysql # not compatible
query I rowsort label-8468
SELECT - ( + CAST ( 27 AS INTEGER ) ) + COUNT ( DISTINCT - - 57 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8469
SELECT DISTINCT - 17, - 97 * COALESCE ( 81, ( - 63 ), ( + COUNT( * ) ) ) + - - 66 + 8 + + + CAST( NULL AS SIGNED ) * - 30 AS col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-8469
SELECT DISTINCT - 17, - 97 * COALESCE ( 81, ( - 63 ), ( + COUNT ( * ) ) ) + - - 66 + 8 + + + CAST ( NULL AS INTEGER ) * - 30 AS col1
----
-17
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + - 1, - 58 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8471
SELECT ALL ( + - 81 ) DIV 10 * - + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL ( + - 81 ) / 10 * - + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT - MIN( - + 43 ) DIV 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8472
SELECT - MIN ( - + 43 ) / 48 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8473
SELECT - 38 + + AVG ( 75 ) - - 22 + + 39 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT - 38 + + AVG ( 75 ) - - 22 + + 39 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 55 ) + + 71
----
16

query I rowsort
SELECT - - 80 / + + ( - + 25 ) * + ( - 22 ) * + 42 * ( + COALESCE ( - + 17, 28 ) ) - + 91 - + 23 * + 37 + CASE - 47 WHEN 94 THEN - 15 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8476
SELECT + - 75 DIV COUNT( * ) * + 39
----
-2925

skipif mysql # not compatible
query I rowsort label-8476
SELECT + - 75 / COUNT ( * ) * + 39
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT + - 17 + + + 20 - - 18 * - COALESCE ( + + 26, + 22 + - 28 + + - 4 * + 40 + - COUNT( * ) ) * + + 49 - + 61 AS col0
----
-22990

skipif mysql # not compatible
query I rowsort label-8477
SELECT + - 17 + + + 20 - - 18 * - COALESCE ( + + 26, + 22 + - 28 + + - 4 * + 40 + - COUNT ( * ) ) * + + 49 - + 61 AS col0
----
-22990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT ALL + 36 + - 19 + + - NULLIF ( 94, - 35 ) - + CASE + + 91 WHEN CASE - CAST( NULL AS SIGNED ) WHEN - + 37 THEN + 69 ELSE 92 END THEN ( + 49 ) / + CAST( NULL AS SIGNED ) + - + MAX( DISTINCT - 9 ) END * 2 * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL + 36 + - 19 + + - NULLIF ( 94, - 35 ) - + CASE + + 91 WHEN CASE - CAST ( NULL AS INTEGER ) WHEN - + 37 THEN + 69 ELSE 92 END THEN ( + 49 ) / + CAST ( NULL AS INTEGER ) + - + MAX ( DISTINCT - 9 ) END * 2 * + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT ALL - COUNT( * ) * + - 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL - COUNT ( * ) * + - 15 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8480
SELECT + 97 DIV + SUM( DISTINCT COALESCE ( - 24, + + 10 + - + 1 + - 61, + + CAST( 85 AS SIGNED ) ) ) + - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-8480
SELECT + 97 / + SUM ( DISTINCT COALESCE ( - 24, + + 10 + - + 1 + - 61, + + CAST ( 85 AS INTEGER ) ) ) + - - COUNT ( * )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT + ( - CAST( + - 30 AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-8481
SELECT + ( - CAST ( + - 30 AS INTEGER ) )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8482
SELECT 32 DIV + 42 + + COUNT( + 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8482
SELECT 32 / + 42 + + COUNT ( + 46 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8483
SELECT DISTINCT - CASE + 82 WHEN + 97 - 46 THEN + COUNT( * ) WHEN - - ( - 60 ) THEN - 43 + 51 + - + 49 ELSE - 9 END DIV 76 DIV - - NULLIF ( + 3, 86 * - MIN( - 39 ) ) + + - 88 + + + ( + - 14 ) + + - 88 - + 26 col0
----
-216

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT - CASE + 82 WHEN + 97 - 46 THEN + COUNT ( * ) WHEN - - ( - 60 ) THEN - 43 + 51 + - + 49 ELSE - 9 END / 76 / - - NULLIF ( + 3, 86 * - MIN ( - 39 ) ) + + - 88 + + + ( + - 14 ) + + - 88 - + 26 col0
----
-216

query I rowsort
SELECT + 58 + - + 79 * - ( 29 ) AS col2
----
2349

onlyif mysql # aggregate syntax: 
query III rowsort label-8485
SELECT ( + 12 ) col0, + 66 AS col0, + 76 + - + CASE + 68 WHEN COUNT( * ) * - + 31 THEN - 47 * + 76 * + - 26 END
----
12
66
NULL

skipif mysql # not compatible
query III rowsort label-8485
SELECT ( + 12 ) col0, + 66 AS col0, + 76 + - + CASE + 68 WHEN COUNT ( * ) * - + 31 THEN - 47 * + 76 * + - 26 END
----
12
66
NULL

query I rowsort
SELECT ALL 58 * - - ( - 31 )
----
-1798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8487
SELECT - 29 DIV - + 36 * 39 + + + ( - - 64 ) + + - COUNT( * ) * - 76 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-8487
SELECT - 29 / - + 36 * 39 + + + ( - - 64 ) + + - COUNT ( * ) * - 76 AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT ALL - 42 * + 43 * - CAST( - 85 AS SIGNED )
----
-153510

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - 42 * + 43 * - CAST ( - 85 AS INTEGER )
----
-153510

query II rowsort
SELECT + ( COALESCE ( - 61, - + 80, 91 ) ), + 3 * - - 26 AS col1
----
-61
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT - COUNT( * ) + - COALESCE ( - + COUNT( * ), + 52 * - 25, + - 21 ) + - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8490
SELECT - COUNT ( * ) + - COALESCE ( - + COUNT ( * ), + 52 * - 25, + - 21 ) + - 6 AS col2
----
-6

query I rowsort
SELECT - 68 * - 55
----
3740

query I rowsort
SELECT CASE + 85 WHEN 47 THEN - 17 + - - 27 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8493
SELECT - ( - 69 ) + + + CAST( - COUNT( * ) AS SIGNED ) col1
----
68

skipif mysql # not compatible
query I rowsort label-8493
SELECT - ( - 69 ) + + + CAST ( - COUNT ( * ) AS INTEGER ) col1
----
68

query I rowsort
SELECT + + 53 * ( + ( - - 55 ) ) + - 80 + - 60 * - 9 * 46 AS col0
----
27675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT ALL - - COUNT( * ) DIV - - 56
----
0

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL - - COUNT ( * ) / - - 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT DISTINCT - + 64 DIV 5 col1
----
-12

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT - + 64 / 5 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL - - 39 * - + SUM( ALL + 64 ) * 2 + 83 + - 85 + - 64 * + 87
----
-10562

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - - 39 * - + SUM ( ALL + 64 ) * 2 + 83 + - 85 + - 64 * + 87
----
-10562

query I rowsort
SELECT - 70 * - NULLIF ( - + 80, - + 12 ) AS col2
----
-5600

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT ALL 39 DIV - 94 * - 62
----
0

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL 39 / - 94 * - 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8500
SELECT - 83 * COALESCE ( + COUNT( * ), - 85, - 95 ) + - + MIN( DISTINCT - 25 ) AS col2, + 38 + + - 34 + - ( CAST( NULL AS SIGNED ) ) * - - 68 / 87 * COUNT( * ) + + COUNT( * ) col2
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-8500
SELECT - 83 * COALESCE ( + COUNT ( * ), - 85, - 95 ) + - + MIN ( DISTINCT - 25 ) AS col2, + 38 + + - 34 + - ( CAST ( NULL AS INTEGER ) ) * - - 68 / 87 * COUNT ( * ) + + COUNT ( * ) col2
----
-58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8501
SELECT - - NULLIF ( + - CAST( - 90 AS SIGNED ), - 61 * + 60 )
----
90

skipif mysql # not compatible
query I rowsort label-8501
SELECT - - NULLIF ( + - CAST ( - 90 AS INTEGER ), - 61 * + 60 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8502
SELECT DISTINCT - + CASE + + 45 WHEN - CAST( NULL AS SIGNED ) THEN - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ELSE NULL END * + MIN( DISTINCT 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - + CASE + + 45 WHEN - CAST ( NULL AS INTEGER ) THEN - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ELSE NULL END * + MIN ( DISTINCT 26 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 84 + + - 43 AS col1
----
41

query I rowsort
SELECT 21 * + 69 + - - 24
----
1473

onlyif mysql # aggregate syntax: 
query II rowsort label-8505
SELECT ALL - + COUNT( * ) + + ( + 94 ) AS col1, 64 AS col2
----
93
64

skipif mysql # not compatible
query II rowsort label-8505
SELECT ALL - + COUNT ( * ) + + ( + 94 ) AS col1, 64 AS col2
----
93
64

query I rowsort
SELECT ALL + - 54 + 6 AS col0
----
-48

query II rowsort
SELECT ALL 37 col2, - 46
----
37
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT 31 + COUNT( * ) + - MIN( ALL 13 ) - MAX( ALL + 27 ) * - - 2 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8508
SELECT 31 + COUNT ( * ) + - MIN ( ALL 13 ) - MAX ( ALL + 27 ) * - - 2 AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8509
SELECT + 93, 61 + - + CAST( NULL AS SIGNED ) AS col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-8509
SELECT + 93, 61 + - + CAST ( NULL AS INTEGER ) AS col0
----
93
NULL

query I rowsort
SELECT DISTINCT - ( + - 19 )
----
19

query I rowsort
SELECT ALL 17 - 43 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT DISTINCT + CASE + - COALESCE ( + NULLIF ( - + 39, + NULLIF ( - COUNT( + 74 ), - 50 ) ), - 30 + + 90 ) WHEN + 47 + - - COUNT( * ) * + ( - ( + 46 ) ) / - 89 / + + 87 THEN 4 ELSE NULL END * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT + CASE + - COALESCE ( + NULLIF ( - + 39, + NULLIF ( - COUNT ( + 74 ), - 50 ) ), - 30 + + 90 ) WHEN + 47 + - - COUNT ( * ) * + ( - ( + 46 ) ) / - 89 / + + 87 THEN 4 ELSE NULL END * 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL + 38 * - + 98 * - + MIN( 13 ) AS col1
----
48412

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + 38 * - + 98 * - + MIN ( 13 ) AS col1
----
48412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8514
SELECT ALL - ( + 95 ) - COUNT( * ) AS col2, - 51 * - 59 + CAST( NULL AS SIGNED ) AS col0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-8514
SELECT ALL - ( + 95 ) - COUNT ( * ) AS col2, - 51 * - 59 + CAST ( NULL AS INTEGER ) AS col0
----
-96
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8515
SELECT 66, COUNT( * ) * - COUNT( * ) + ( - 35 ) AS col1
----
66
-36

skipif mysql # not compatible
query II rowsort label-8515
SELECT 66, COUNT ( * ) * - COUNT ( * ) + ( - 35 ) AS col1
----
66
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT 40 * - + SUM( ALL 19 ) AS col1
----
-760

skipif mysql # not compatible
query I rowsort label-8516
SELECT 40 * - + SUM ( ALL 19 ) AS col1
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT COUNT( * ) * + COUNT( DISTINCT - + 36 ) - + 44
----
-43

skipif mysql # not compatible
query I rowsort label-8517
SELECT COUNT ( * ) * + COUNT ( DISTINCT - + 36 ) - + 44
----
-43

query I rowsort
SELECT DISTINCT 3 * 98
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT + 40 * + - COALESCE ( - COALESCE ( COUNT( * ), + 54, - MAX( DISTINCT - 5 ) + - - COALESCE ( - COUNT( * ), + - COUNT( + 31 ) * MIN( DISTINCT + - 64 ) - - 29 ) ), + 73 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8519
SELECT + 40 * + - COALESCE ( - COALESCE ( COUNT ( * ), + 54, - MAX ( DISTINCT - 5 ) + - - COALESCE ( - COUNT ( * ), + - COUNT ( + 31 ) * MIN ( DISTINCT + - 64 ) - - 29 ) ), + 73 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL - ( + MIN( 72 ) ) * + - 75 + - - 45
----
5445

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL - ( + MIN ( 72 ) ) * + - 75 + - - 45
----
5445

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8521
SELECT DISTINCT - - COALESCE ( + ( + 42 ), - + COALESCE ( 5, COALESCE ( - + 26, 46, - 90 ) + + - 49, + COUNT( * ) ) * 39, 91 DIV - 2 * - 59 - - + 68 + - - 36 ) + + COUNT( * ) AS col0, 44 - + + 92 AS col2
----
43
-48

skipif mysql # not compatible
query II rowsort label-8521
SELECT DISTINCT - - COALESCE ( + ( + 42 ), - + COALESCE ( 5, COALESCE ( - + 26, 46, - 90 ) + + - 49, + COUNT ( * ) ) * 39, 91 / - 2 * - 59 - - + 68 + - - 36 ) + + COUNT ( * ) AS col0, 44 - + + 92 AS col2
----
43
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT CAST( NULL AS SIGNED ) + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT CAST ( NULL AS INTEGER ) + 80 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT + - 16 * - 93 + - 69 * - CAST( ( - ( + - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT + - 16 * - 93 + - 69 * - CAST ( ( - ( + - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 10 * 26
----
260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT ALL + 58 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL + 58 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8526
SELECT - 56 + + 7 DIV + + ( 27 ) + + 51
----
-5

skipif mysql # not compatible
query I rowsort label-8526
SELECT - 56 + + 7 / + + ( 27 ) + + 51
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT ALL 40, - ( 12 ) + COUNT( * ) - + 40 + - 37 + + + 45 * + - COUNT( * ) * - ( + 59 ) + + - 46 col0
----
40
2521

skipif mysql # not compatible
query II rowsort label-8527
SELECT ALL 40, - ( 12 ) + COUNT ( * ) - + 40 + - 37 + + + 45 * + - COUNT ( * ) * - ( + 59 ) + + - 46 col0
----
40
2521

query I rowsort
SELECT + 83 + - 65 AS col2
----
18

query I rowsort
SELECT - ( + ( + 62 ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - SUM( ALL + - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-8530
SELECT - SUM ( ALL + - 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT 34 + MAX( ALL - ( - ( - 89 ) ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8531
SELECT 34 + MAX ( ALL - ( - ( - 89 ) ) ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8532
SELECT ALL + COUNT( * ) - - 39, + ( + 13 ) + + COUNT( ALL + - 77 ) + - CAST( NULL AS SIGNED ) col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-8532
SELECT ALL + COUNT ( * ) - - 39, + ( + 13 ) + + COUNT ( ALL + - 77 ) + - CAST ( NULL AS INTEGER ) col1
----
40
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8533
SELECT ALL - COUNT( DISTINCT - 71 ) AS col2, - 47 + - 32 AS col1
----
-1
-79

skipif mysql # not compatible
query II rowsort label-8533
SELECT ALL - COUNT ( DISTINCT - 71 ) AS col2, - 47 + - 32 AS col1
----
-1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT 14 * - - COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8534
SELECT 14 * - - COUNT ( * ) AS col2
----
14

query I rowsort
SELECT 50 * + 27
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT - 20 DIV 84 + - 69 col1
----
-69

skipif mysql # not compatible
query I rowsort label-8536
SELECT - 20 / 84 + - 69 col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT 40 * + - 86 * + - COUNT( * ) AS col0
----
3440

skipif mysql # not compatible
query I rowsort label-8537
SELECT 40 * + - 86 * + - COUNT ( * ) AS col0
----
3440

query I rowsort
SELECT ALL + 7 * + + 87 AS col1
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT 46 + + - NULLIF ( - + 2, + + AVG ( ALL - 10 ) ) * + - 14 + + - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8539
SELECT 46 + + - NULLIF ( - + 2, + + AVG ( ALL - 10 ) ) * + - 14 + + - COUNT ( * )
----
17

query I rowsort
SELECT DISTINCT - CASE - 91 WHEN - - ( + 9 ) THEN - 21 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT DISTINCT 62 * - CASE + + CAST( - 57 AS SIGNED ) WHEN - 92 THEN 20 ELSE + 16 END col1
----
-992

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT 62 * - CASE + + CAST ( - 57 AS INTEGER ) WHEN - 92 THEN 20 ELSE + 16 END col1
----
-992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8542
SELECT ALL + 7 + ( - + 97 ) DIV + - ( + + COUNT( * ) )
----
104

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL + 7 + ( - + 97 ) / + - ( + + COUNT ( * ) )
----
104

query I rowsort
SELECT + 38 + + 79 AS col1
----
117

query I rowsort
SELECT DISTINCT + 81 + 92 AS col2
----
173

query II rowsort
SELECT 87 + - 72, 15 * + 2 * + 42 + - + 90 col1
----
15
1170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8546
SELECT - COUNT( * ) * + + 21 + + + 57 + 7 AS col0, - COUNT( ALL - 42 ) DIV 38 + CAST( ( + 86 ) AS SIGNED ) AS col1
----
43
86

skipif mysql # not compatible
query II rowsort label-8546
SELECT - COUNT ( * ) * + + 21 + + + 57 + 7 AS col0, - COUNT ( ALL - 42 ) / 38 + CAST ( ( + 86 ) AS INTEGER ) AS col1
----
43
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT - ( - - 39 ) * ( - CAST( NULL AS SIGNED ) ) + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT - ( - - 39 ) * ( - CAST ( NULL AS INTEGER ) ) + 24 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8548
SELECT + 88 + - ( + 51 ) + + + COALESCE ( - ( + 24 ), + 25 * CAST( NULL AS SIGNED ) + - COUNT( DISTINCT - 67 ) * + + 34 )
----
13

skipif mysql # not compatible
query I rowsort label-8548
SELECT + 88 + - ( + 51 ) + + + COALESCE ( - ( + 24 ), + 25 * CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT - 67 ) * + + 34 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT ALL - 98 + + 64 + - + CAST( NULL AS SIGNED ) / COUNT( * ) + + COALESCE ( ( 57 ), 43 + + - 97 + - 39 / - 40 + NULLIF ( - 0, MAX( ALL + 83 ) + + 30 ) ) + CAST( + - SUM( DISTINCT ( 90 ) ) AS SIGNED ) - - 27 * - 79 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL - 98 + + 64 + - + CAST ( NULL AS INTEGER ) / COUNT ( * ) + + COALESCE ( ( 57 ), 43 + + - 97 + - 39 / - 40 + NULLIF ( - 0, MAX ( ALL + 83 ) + + 30 ) ) + CAST ( + - SUM ( DISTINCT ( 90 ) ) AS INTEGER ) - - 27 * - 79 / + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 19 + + + ( - 30 ) AS col1
----
-11

query I rowsort
SELECT ALL - 38 + + 68
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8552
SELECT + 77 * + - 89 - + COUNT( + 63 ) + + 12 * - ( + + ( - 5 ) ) * - + 77 + COUNT( * ) - COUNT( - 3 ) * - + 48 + - - MAX( ALL - 56 ) * + 94 / + + 45 * + CASE + MIN( - 64 ) WHEN + COUNT( ALL 73 ) THEN NULL WHEN - 49 * - 9 THEN NULL WHEN - 50 THEN CAST( - NULLIF ( + 1, + 60 + + 49 ) AS SIGNED ) * - COUNT( * ) ELSE NULL END + 22 / ( 88 - + 91 * + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT + 77 * + - 89 - + COUNT ( + 63 ) + + 12 * - ( + + ( - 5 ) ) * - + 77 + COUNT ( * ) - COUNT ( - 3 ) * - + 48 + - - MAX ( ALL - 56 ) * + 94 / + + 45 * + CASE + MIN ( - 64 ) WHEN + COUNT ( ALL 73 ) THEN NULL WHEN - 49 * - 9 THEN NULL WHEN - 50 THEN CAST ( - NULLIF ( + 1, + 60 + + 49 ) AS INTEGER ) * - COUNT ( * ) ELSE NULL END + 22 / ( 88 - + 91 * + 65 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8553
SELECT ALL 46 * + 40 DIV - COUNT( * )
----
-1840

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL 46 * + 40 / - COUNT ( * )
----
-1840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8554
SELECT + 4 DIV + ( + COUNT( * ) ) - CAST( NULL AS SIGNED ), + MAX( DISTINCT + + 44 ) DIV 19 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-8554
SELECT + 4 / + ( + COUNT ( * ) ) - CAST ( NULL AS INTEGER ), + MAX ( DISTINCT + + 44 ) / 19 AS col0
----
NULL
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT + - 91 * + COUNT( * ) + ( 57 ) + MAX( DISTINCT + + CAST( + 48 AS SIGNED ) )
----
14

skipif mysql # not compatible
query I rowsort label-8555
SELECT + - 91 * + COUNT ( * ) + ( 57 ) + MAX ( DISTINCT + + CAST ( + 48 AS INTEGER ) )
----
14

query I rowsort
SELECT ALL 53 * 68
----
3604

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8557
SELECT ALL COALESCE ( - 41, - COALESCE ( + 12, 15 + + 52 - + 29 * COUNT( * ) * + 11 DIV + CASE - - CASE - 25 WHEN - NULLIF ( - - 76, + CASE COUNT( * ) WHEN - 78 THEN + 37 * - 60 END ) - - 0 THEN - 75 * - 28 + + 41 + + + CAST( + COUNT( * ) AS DECIMAL ) * - 9 WHEN + ( 59 ) + - 35 THEN NULL ELSE NULL END WHEN - COALESCE ( 67, 13 ) * - 37 THEN 31 * ( + 32 ) ELSE NULL END, + COUNT( * ) ) * - 57 ) * - 22 AS col1
----
902

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL COALESCE ( - 41, - COALESCE ( + 12, 15 + + 52 - + 29 * COUNT ( * ) * + 11 / + CASE - - CASE - 25 WHEN - NULLIF ( - - 76, + CASE COUNT ( * ) WHEN - 78 THEN + 37 * - 60 END ) - - 0 THEN - 75 * - 28 + + 41 + + + CAST ( + COUNT ( * ) AS REAL ) * - 9 WHEN + ( 59 ) + - 35 THEN NULL ELSE NULL END WHEN - COALESCE ( 67, 13 ) * - 37 THEN 31 * ( + 32 ) ELSE NULL END, + COUNT ( * ) ) * - 57 ) * - 22 AS col1
----
902

onlyif mysql # DIV for integer division: 
query I rowsort label-8558
SELECT + 23 DIV + + ( 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT + 23 / + + ( 94 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8559
SELECT ALL + COUNT( * ) DIV + 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL + COUNT ( * ) / + 14 AS col0
----
0

query I rowsort
SELECT + 87 + + - ( + 68 )
----
19

query I rowsort
SELECT + 5 * - + 75 col0
----
-375

query I rowsort
SELECT + 63 + 70
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + 81 * 60 * COUNT( * ) AS col0
----
4860

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 81 * 60 * COUNT ( * ) AS col0
----
4860

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - SUM( ALL - 89 ) + + - MIN( ALL 1 ) + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8564
SELECT - SUM ( ALL - 89 ) + + - MIN ( ALL 1 ) + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT DISTINCT + 38 * + - COUNT( * ) * - COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT + 38 * + - COUNT ( * ) * - COUNT ( * ) AS col1
----
38

query I rowsort
SELECT ALL + 20 * - - 41 AS col0
----
820

query II rowsort
SELECT ALL ( - - 95 ) * + 39, - 86 AS col2
----
3705
-86

query I rowsort
SELECT ALL + 21 * + - 47
----
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - ( COALESCE ( + 69, + + COUNT( * ) ) ) * - - 12
----
-828

skipif mysql # not compatible
query I rowsort label-8569
SELECT - ( COALESCE ( + 69, + + COUNT ( * ) ) ) * - - 12
----
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT + COUNT( * ) - + - 33 + SUM( + CAST( + - 31 AS SIGNED ) ) - 45 * + 49 * NULLIF ( NULLIF ( + + NULLIF ( + SUM( DISTINCT - 50 ), 28 * + 47 * 83 + - COUNT( ALL - 37 ) * + CAST( NULL AS SIGNED ) + + 70 ), + 98 ), + 46 * - 37 + + 50 + - 84 + - - SUM( ALL 58 ) + - NULLIF ( - 80, - 32 / COUNT( * ) ) * + 32 )
----
110253

skipif mysql # not compatible
query I rowsort label-8570
SELECT + COUNT ( * ) - + - 33 + SUM ( + CAST ( + - 31 AS INTEGER ) ) - 45 * + 49 * NULLIF ( NULLIF ( + + NULLIF ( + SUM ( DISTINCT - 50 ), 28 * + 47 * 83 + - COUNT ( ALL - 37 ) * + CAST ( NULL AS INTEGER ) + + 70 ), + 98 ), + 46 * - 37 + + 50 + - 84 + - - SUM ( ALL 58 ) + - NULLIF ( - 80, - 32 / COUNT ( * ) ) * + 32 )
----
110253

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + CASE - - ( - 73 ) WHEN 37 THEN - CASE COUNT( ALL 63 ) WHEN 66 * - - 45 * 67 * COUNT( * ) THEN + ( COUNT( * ) ) + - + COUNT( * ) ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT + CASE - - ( - 73 ) WHEN 37 THEN - CASE COUNT ( ALL 63 ) WHEN 66 * - - 45 * 67 * COUNT ( * ) THEN + ( COUNT ( * ) ) + - + COUNT ( * ) ELSE NULL END END AS col2
----
NULL

query I rowsort
SELECT - - 8 * 69 * 0 + - 31 + - 38 * + 17
----
-677

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT + MIN( ALL 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8573
SELECT + MIN ( ALL 8 ) AS col2
----
8

query I rowsort
SELECT DISTINCT 73 * 98 + 33 AS col1
----
7187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT ALL + ( ( 5 ) ) * + NULLIF ( + 88, CAST( NULL AS SIGNED ) )
----
440

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL + ( ( 5 ) ) * + NULLIF ( + 88, CAST ( NULL AS INTEGER ) )
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT + - MAX( - 77 ) * - 14 + + 59 * - 10
----
-1668

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + - MAX ( - 77 ) * - 14 + + 59 * - 10
----
-1668

query I rowsort
SELECT + + 81 * + 11 AS col1
----
891

query I rowsort
SELECT DISTINCT - - 10 * - ( - + 61 ) + - 94 AS col0
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT + - COUNT( * ) - - ( - 48 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8579
SELECT + - COUNT ( * ) - - ( - 48 ) AS col2
----
-49

query I rowsort
SELECT - + 37 + + + 84 * 81
----
6767

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT SUM( DISTINCT + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8581
SELECT SUM ( DISTINCT + 86 ) AS col2
----
86

query I rowsort
SELECT ALL + - 12 * - - 86 - - - ( 54 ) + + - 6 + - 27 * - 91 - + 62
----
1303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT - + CAST( 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-8583
SELECT - + CAST ( 50 AS INTEGER )
----
-50

query I rowsort
SELECT ALL + 57 * - 52
----
-2964

query II rowsort
SELECT ALL - 16 AS col2, - 90 * - + 34 AS col1
----
-16
3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT DISTINCT CAST( - 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT CAST ( - 71 AS INTEGER )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT ALL CAST( - 68 AS SIGNED ) * + 14
----
-952

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL CAST ( - 68 AS INTEGER ) * + 14
----
-952

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8588
SELECT + COUNT( * ) + - 31 col2, 78 - + COUNT( * ) + 75 DIV + + 35 + - + ( - 33 ) - ( 54 ) + + 21 DIV + 77 AS col0
----
-30
58

skipif mysql # not compatible
query II rowsort label-8588
SELECT + COUNT ( * ) + - 31 col2, 78 - + COUNT ( * ) + 75 / + + 35 + - + ( - 33 ) - ( 54 ) + + 21 / + 77 AS col0
----
-30
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT + COUNT( * ) * - + 59 * 47 AS col1
----
-2773

skipif mysql # not compatible
query I rowsort label-8589
SELECT + COUNT ( * ) * - + 59 * 47 AS col1
----
-2773

query I rowsort
SELECT + 76 + + 84 AS col1
----
160

query II rowsort
SELECT 47 AS col2, 88 * - COALESCE ( + 21, - 57 + + - 10, + ( + 54 ) )
----
47
-1848

query I rowsort
SELECT + ( + 67 ) + + 73 AS col0
----
140

query I rowsort
SELECT + 87 * 41 AS col2
----
3567

query I rowsort
SELECT DISTINCT 93 * 30
----
2790

query I rowsort
SELECT - ( - - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT 57 + - 33 + 44 * - + COUNT( * ) + COUNT( * ) * + + 49
----
29

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT 57 + - 33 + 44 * - + COUNT ( * ) + COUNT ( * ) * + + 49
----
29

query I rowsort
SELECT + 86 * ( + ( 32 ) ) AS col1
----
2752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL CAST( NULL AS SIGNED ) / - + 80 * 43 + 37 + + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL CAST ( NULL AS INTEGER ) / - + 80 * 43 + 37 + + 1 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 7 AS col0, - 85 + - - 55 * - - 79 AS col0
----
7
4260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8600
SELECT 44 * + - 77 * - + 95 + CAST( NULL AS SIGNED ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT 44 * + - 77 * - + 95 + CAST ( NULL AS INTEGER ) + 27
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-8601
SELECT ALL + 20 AS col2, 17 DIV ( 38 ), + - 10 col1
----
20
0
-10

skipif mysql # not compatible
query III rowsort label-8601
SELECT ALL + 20 AS col2, 17 / ( 38 ), + - 10 col1
----
20
0
-10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8602
SELECT + CAST( - 2 AS SIGNED ) DIV - 85 + - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8602
SELECT + CAST ( - 2 AS INTEGER ) / - 85 + - 50 AS col1
----
-50

query I rowsort
SELECT 94 * + + 29 AS col1
----
2726

query II rowsort
SELECT + 51, + 85 col2
----
51
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8605
SELECT + 71 DIV 35 + - 11 * - ( + NULLIF ( - COUNT( * ), - 95 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-8605
SELECT + 71 / 35 + - 11 * - ( + NULLIF ( - COUNT ( * ), - 95 ) )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8606
SELECT ALL 12 + + 4 - - 9 + - 87 * - COUNT( * ) DIV + MIN( ALL - 93 ) * + + MIN( DISTINCT + 40 )
----
25

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL 12 + + 4 - - 9 + - 87 * - COUNT ( * ) / + MIN ( ALL - 93 ) * + + MIN ( DISTINCT + 40 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8607
SELECT ALL - 16 col2, + COUNT( * ) AS col0
----
-16
1

skipif mysql # not compatible
query II rowsort label-8607
SELECT ALL - 16 col2, + COUNT ( * ) AS col0
----
-16
1

query I rowsort
SELECT DISTINCT - 4 + + 89
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT + CAST( ( - - 36 ) AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8609
SELECT + CAST ( ( - - 36 ) AS INTEGER ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT 95 + + SUM( DISTINCT + 4 ) + + 43 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-8610
SELECT 95 + + SUM ( DISTINCT + 4 ) + + 43 AS col1
----
142

query I rowsort
SELECT DISTINCT + 80 * - 50
----
-4000

query I rowsort
SELECT + NULLIF ( + 76, 6 + + - 72 )
----
76

query I rowsort
SELECT 72 + + - 84 + + NULLIF ( + ( - 47 ), 54 ) * + + 35
----
-1657

query I rowsort
SELECT + NULLIF ( 13, + NULLIF ( - 75, 28 ) )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8615
SELECT DISTINCT - 97 / ( - CASE - + 19 WHEN - ( COUNT( ALL - 93 ) ) + - + 83 - - - 36 * - - 57 * + 79 THEN CAST( NULL AS SIGNED ) ELSE - 52 + + - 7 END ) + + + 42 + + + 97 + - - 59 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT - 97 / ( - CASE - + 19 WHEN - ( COUNT ( ALL - 93 ) ) + - + 83 - - - 36 * - - 57 * + 79 THEN CAST ( NULL AS INTEGER ) ELSE - 52 + + - 7 END ) + + + 42 + + + 97 + - - 59 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8616
SELECT ALL - + 86 AS col1, - MAX( + + CAST( NULL AS SIGNED ) ) AS col1
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-8616
SELECT ALL - + 86 AS col1, - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
-86
NULL

query I rowsort
SELECT DISTINCT - ( + 12 )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8618
SELECT DISTINCT - 53 DIV - 18 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT - 53 / - 18 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT 40 DIV - ( + 11 )
----
-3

skipif mysql # not compatible
query I rowsort label-8619
SELECT 40 / - ( + 11 )
----
-3

query I rowsort
SELECT 14 - + 65 AS col1
----
-51

query I rowsort
SELECT 24 * + - 80 AS col0
----
-1920

query I rowsort
SELECT ALL + 93 + + 21
----
114

query I rowsort
SELECT DISTINCT - ( + - 65 ) + - ( - + 43 ) + + 78 AS col0
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT ALL 45 + + - 75 - + CAST( - 88 AS SIGNED ) + + 5
----
63

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL 45 + + - 75 - + CAST ( - 88 AS INTEGER ) + + 5
----
63

query I rowsort
SELECT ALL 4 + + - ( - 22 )
----
26

query I rowsort
SELECT 59 - 94 AS col1
----
-35

query I rowsort
SELECT 65 * - 45 AS col0
----
-2925

onlyif mysql # DIV for integer division: 
query I rowsort label-8628
SELECT DISTINCT 39 + 22 DIV - 39 + - - 88
----
127

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT 39 + 22 / - 39 + - - 88
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT ALL + 48 + 11 DIV - 19 + - 0
----
48

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL + 48 + 11 / - 19 + - 0
----
48

query I rowsort
SELECT 49 + - 88 * - 9 * - 43 * + + ( - - 25 ) AS col1
----
-851351

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT MIN( DISTINCT + - 53 ) + - 53 * - 57 - 81 AS col0
----
2887

skipif mysql # not compatible
query I rowsort label-8631
SELECT MIN ( DISTINCT + - 53 ) + - 53 * - 57 - 81 AS col0
----
2887

query I rowsort
SELECT ( 60 ) + - - 66 AS col2
----
126

query I rowsort
SELECT 3 * 14
----
42

query II rowsort
SELECT DISTINCT - NULLIF ( + 84, + 72 ), 4 * + 71 col2
----
-84
284

query II rowsort
SELECT DISTINCT + - 81 - - 71 AS col0, 91 AS col2
----
-10
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT DISTINCT - 75 - - MAX( DISTINCT - 75 )
----
-150

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT - 75 - - MAX ( DISTINCT - 75 )
----
-150

query II rowsort
SELECT ALL - 20 - + 75 * + 83 * - - 31 * 83, 94 col0
----
-16016945
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL - + MIN( ALL + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL - + MIN ( ALL + 28 )
----
-28

query I rowsort
SELECT + ( + + 39 ) - + 40
----
-1

query I rowsort
SELECT + COALESCE ( - 74, + 30 + 83 ) * - 27 * - 41 AS col0
----
-81918

query II rowsort
SELECT ALL 13 - + 29 AS col0, - 17 AS col1
----
-16
-17

query I rowsort
SELECT + - 90 col2
----
-90

query I rowsort
SELECT DISTINCT - 68 * - 70 AS col0
----
4760

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT DISTINCT - + MIN( 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT - + MIN ( 44 ) AS col2
----
-44

query I rowsort
SELECT - NULLIF ( - + ( + 26 ), + - 91 - - - 79 ) * - 68 * - ( - - 18 ) * + + NULLIF ( - 7, - 36 - 12 ) * - 2
----
445536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT ALL - + 80 * SUM( DISTINCT + 5 ) DIV 66 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL - + 80 * SUM ( DISTINCT + 5 ) / 66 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8647
SELECT ALL - COALESCE ( + + 70, + CASE + 64 WHEN + 0 * + MAX( + + 55 ) + 20 * 20 THEN 66 + 54 + 71 WHEN - CAST( - NULLIF ( - 72, + 50 ) AS DECIMAL ) THEN - COUNT( * ) * 3 ELSE 79 * - 40 - 74 END ) * - - 17 * - 85 - + CAST( 46 AS SIGNED )
----
101104

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL - COALESCE ( + + 70, + CASE + 64 WHEN + 0 * + MAX ( + + 55 ) + 20 * 20 THEN 66 + 54 + 71 WHEN - CAST ( - NULLIF ( - 72, + 50 ) AS REAL ) THEN - COUNT ( * ) * 3 ELSE 79 * - 40 - 74 END ) * - - 17 * - 85 - + CAST ( 46 AS INTEGER )
----
101104

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT DISTINCT COUNT( * ) * ( 99 ), 99 + - - 36 AS col1
----
99
135

skipif mysql # not compatible
query II rowsort label-8648
SELECT DISTINCT COUNT ( * ) * ( 99 ), 99 + - - 36 AS col1
----
99
135

query I rowsort
SELECT ALL - 74 + - 1 AS col1
----
-75

query II rowsort
SELECT 16 AS col2, 13 * - 80 AS col2
----
16
-1040

query I rowsort
SELECT 61 * 62 + - 73
----
3709

query I rowsort
SELECT 69 - + 56 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT - NULLIF ( - COUNT( + 7 ), - 98 - MIN( DISTINCT + 77 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8653
SELECT - NULLIF ( - COUNT ( + 7 ), - 98 - MIN ( DISTINCT + 77 ) )
----
1

query I rowsort
SELECT ALL + 61 + + 20 AS col2
----
81

query I rowsort
SELECT 59 + + - ( + ( + 3 ) ) AS col1
----
56

query II rowsort
SELECT DISTINCT 4 AS col1, 22 AS col1
----
4
22

query I rowsort
SELECT DISTINCT + 80 + - 25
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8658
SELECT - MAX( DISTINCT - - 28 ) * CAST( - 34 AS SIGNED ) + ( 94 ) + 30 DIV ( 40 ) * + COUNT( * ) DIV NULLIF ( + + 95, - 76 ) + - COUNT( * ) AS col0
----
1045

skipif mysql # not compatible
query I rowsort label-8658
SELECT - MAX ( DISTINCT - - 28 ) * CAST ( - 34 AS INTEGER ) + ( 94 ) + 30 / ( 40 ) * + COUNT ( * ) / NULLIF ( + + 95, - 76 ) + - COUNT ( * ) AS col0
----
1045

onlyif mysql # aggregate syntax: 
query II rowsort label-8659
SELECT - CASE + COUNT( * ) WHEN + COUNT( * ) + + 93 THEN + - 54 WHEN + 12 THEN NULL END * + + 12 + 12 col1, - 31 col0
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-8659
SELECT - CASE + COUNT ( * ) WHEN + COUNT ( * ) + + 93 THEN + - 54 WHEN + 12 THEN NULL END * + + 12 + 12 col1, - 31 col0
----
NULL
-31

query I rowsort
SELECT - 51 * + 18
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT - 56 + + COUNT( DISTINCT 11 )
----
-55

skipif mysql # not compatible
query I rowsort label-8661
SELECT - 56 + + COUNT ( DISTINCT 11 )
----
-55

query I rowsort
SELECT ALL - 90 * 53 AS col2
----
-4770

query II rowsort
SELECT 15, 63 + + 96 AS col1
----
15
159

query I rowsort
SELECT + 33 + - + 62
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT NULLIF ( + 35, - 88 * - 86 * + COUNT( * ) + - + 15 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT NULLIF ( + 35, - 88 * - 86 * + COUNT ( * ) + - + 15 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT + 45 - - 47 * + + COUNT( * ) + - + 5 col2
----
87

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT + 45 - - 47 * + + COUNT ( * ) + - + 5 col2
----
87

query I rowsort
SELECT - + ( + - 91 ) + - - 24 AS col2
----
115

query I rowsort
SELECT + + 85 * + 98
----
8330

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - - COUNT( * ) - 91 + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-8669
SELECT - - COUNT ( * ) - 91 + - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8670
SELECT - 58 + - SUM( + - 68 ) AS col1, 74 AS col1
----
10
74

skipif mysql # not compatible
query II rowsort label-8670
SELECT - 58 + - SUM ( + - 68 ) AS col1, 74 AS col1
----
10
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - - 73 * - NULLIF ( - SUM( - + 62 ), + 8 * 53 ) + + 90 AS col1
----
-4436

skipif mysql # not compatible
query I rowsort label-8671
SELECT - - 73 * - NULLIF ( - SUM ( - + 62 ), + 8 * 53 ) + + 90 AS col1
----
-4436

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL 2 * COUNT( 1 ) + - 58
----
-56

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL 2 * COUNT ( 1 ) + - 58
----
-56

query I rowsort
SELECT - 71 * + ( 92 )
----
-6532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8674
SELECT - 24 DIV + 11 + COUNT( * ) * + 33 * 28 + 85 AS col0
----
1007

skipif mysql # not compatible
query I rowsort label-8674
SELECT - 24 / + 11 + COUNT ( * ) * + 33 * 28 + 85 AS col0
----
1007

onlyif mysql # aggregate syntax: 
query II rowsort label-8675
SELECT + 71, MIN( DISTINCT + 99 ) AS col2
----
71
99

skipif mysql # not compatible
query II rowsort label-8675
SELECT + 71, MIN ( DISTINCT + 99 ) AS col2
----
71
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8676
SELECT + 98 DIV + - 78
----
-1

skipif mysql # not compatible
query I rowsort label-8676
SELECT + 98 / + - 78
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL + ( + COALESCE ( + + 58, COUNT( * ) + 13 + - 27, - 21 ) ) * - COALESCE ( + 27, + 84 ) * + + 32 AS col0
----
-50112

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL + ( + COALESCE ( + + 58, COUNT ( * ) + 13 + - 27, - 21 ) ) * - COALESCE ( + 27, + 84 ) * + + 32 AS col0
----
-50112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8678
SELECT DISTINCT - - 28 * - - COUNT( * ) + - 19 + 60 DIV + COUNT( * ) + 73 + - 65 * - - 58 + + CAST( - + 47 AS SIGNED ) * - 44
----
-1560

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - - 28 * - - COUNT ( * ) + - 19 + 60 / + COUNT ( * ) + 73 + - 65 * - - 58 + + CAST ( - + 47 AS INTEGER ) * - 44
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL + 65 * + + 84 + + 69 + + + COUNT( * ) AS col0
----
5530

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL + 65 * + + 84 + + 69 + + + COUNT ( * ) AS col0
----
5530

query I rowsort
SELECT + 43 + - - 49
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT ALL CAST( NULL AS SIGNED ) / - + 45 * 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL CAST ( NULL AS INTEGER ) / - + 45 * 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT + 41 DIV ( + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-8682
SELECT + 41 / ( + 42 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT + COALESCE ( ( 27 ), - CAST( NULL AS SIGNED ), - 15 + + + 95 + - + 71 - - NULLIF ( + 9, + 84 ) ) * AVG ( DISTINCT - 71 ) + + + CAST( NULL AS SIGNED ) - + 9 * - + AVG ( DISTINCT 58 ) * + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT + COALESCE ( ( 27 ), - CAST ( NULL AS INTEGER ), - 15 + + + 95 + - + 71 - - NULLIF ( + 9, + 84 ) ) * AVG ( DISTINCT - 71 ) + + + CAST ( NULL AS INTEGER ) - + 9 * - + AVG ( DISTINCT 58 ) * + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + MAX( ALL 52 ) * + + 51
----
2652

skipif mysql # not compatible
query I rowsort label-8684
SELECT + MAX ( ALL 52 ) * + + 51
----
2652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT + NULLIF ( 87, - CAST( - CAST( - 3 AS SIGNED ) AS SIGNED ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-8685
SELECT + NULLIF ( 87, - CAST ( - CAST ( - 3 AS INTEGER ) AS INTEGER ) ) AS col0
----
87

query I rowsort
SELECT ALL 63 * + + 82 * + 36 + + 1 + - 59
----
185918

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT + NULLIF ( CASE COUNT( ALL + - 45 ) WHEN + COALESCE ( + COUNT( * ), 40, + 3 + - + 94 ) + - 93 THEN NULL WHEN - 87 THEN 95 END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT + NULLIF ( CASE COUNT ( ALL + - 45 ) WHEN + COALESCE ( + COUNT ( * ), 40, + 3 + - + 94 ) + - 93 THEN NULL WHEN - 87 THEN 95 END, COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL MAX( - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL MAX ( - 20 ) AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT + ( + 42 ) + + - CAST( + 64 AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8689
SELECT + ( + 42 ) + + - CAST ( + 64 AS INTEGER ) AS col2
----
-22

query II rowsort
SELECT ALL 93 + + 58 AS col0, - 15
----
151
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8691
SELECT MIN( ALL + - 61 ) col2, - ( + 15 ) + + COUNT( ALL 68 ) AS col2
----
-61
-14

skipif mysql # not compatible
query II rowsort label-8691
SELECT MIN ( ALL + - 61 ) col2, - ( + 15 ) + + COUNT ( ALL 68 ) AS col2
----
-61
-14

query I rowsort
SELECT ALL 69 + 78
----
147

query I rowsort
SELECT + 75 - - 11
----
86

query II rowsort
SELECT - ( + + 99 ), + 82 col0
----
-99
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - ( - COUNT( * ) ) * - 92
----
-92

skipif mysql # not compatible
query I rowsort label-8695
SELECT - ( - COUNT ( * ) ) * - 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL MAX( DISTINCT + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL MAX ( DISTINCT + 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8697
SELECT - ( + CAST( + 67 AS SIGNED ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-8697
SELECT - ( + CAST ( + 67 AS INTEGER ) ) AS col2
----
-67

query I rowsort
SELECT - 74 + - 95 * - 89 * - 26
----
-219904

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL NULLIF ( - 79, + MAX( - + 95 ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL NULLIF ( - 79, + MAX ( - + 95 ) ) AS col0
----
-79

query I rowsort
SELECT - ( + + 87 ) - ( 25 )
----
-112

query I rowsort
SELECT - 97 - + - 96 AS col1
----
-1

query I rowsort
SELECT ALL ( + - 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL + COUNT( * ) * 6 * - 26 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + COUNT ( * ) * 6 * - 26 AS col0
----
-156

query II rowsort
SELECT - 89 * + 76 - + 64 * 93 AS col0, 67 AS col0
----
-12716
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT - MAX( + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-8705
SELECT - MAX ( + 11 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT + NULLIF ( - 33, + 61 + + + 31 ) + - CAST( NULL AS SIGNED ) - + COUNT( DISTINCT + + 51 ) + - + 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT + NULLIF ( - 33, + 61 + + + 31 ) + - CAST ( NULL AS INTEGER ) - + COUNT ( DISTINCT + + 51 ) + - + 99 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT - - 23 + 14 AS col2, + NULLIF ( + + MIN( - + CASE - + ( - 15 ) WHEN + 1 THEN + 11 END ), + 58 )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-8707
SELECT - - 23 + 14 AS col2, + NULLIF ( + + MIN ( - + CASE - + ( - 15 ) WHEN + 1 THEN + 11 END ), + 58 )
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT - 16 - - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-8708
SELECT - 16 - - COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT - + 48 + - MAX( + 5 ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-8709
SELECT - + 48 + - MAX ( + 5 ) col2
----
-53

query I rowsort
SELECT - 30 - - + 9
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT 34 * + MAX( ALL - - 48 )
----
1632

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT 34 * + MAX ( ALL - - 48 )
----
1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8712
SELECT ALL - ( COUNT( * ) ) DIV + 77 + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL - ( COUNT ( * ) ) / + 77 + - 15
----
-15

query I rowsort
SELECT ALL + + NULLIF ( - + 51, - + 83 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL + + CASE - COUNT( * ) WHEN - - 48 THEN - - 87 ELSE - 40 END col2
----
-40

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + + CASE - COUNT ( * ) WHEN - - 48 THEN - - 87 ELSE - 40 END col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8715
SELECT DISTINCT + - COUNT( * ) / CAST( NULL AS SIGNED ) + 69 - - - 45 * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT + - COUNT ( * ) / CAST ( NULL AS INTEGER ) + 69 - - - 45 * 89 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT - + 47 DIV 59 + + 43
----
43

skipif mysql # not compatible
query I rowsort label-8716
SELECT - + 47 / 59 + + 43
----
43

query I rowsort
SELECT - 58 + + 67
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT - + 46 * - 33 + + + 88 + + + 17 + + + CAST( + 20 AS SIGNED ) AS col0
----
1643

skipif mysql # not compatible
query I rowsort label-8718
SELECT - + 46 * - 33 + + + 88 + + + 17 + + + CAST ( + 20 AS INTEGER ) AS col0
----
1643

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT + ( - COUNT( * ) ), - COUNT( * ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8719
SELECT + ( - COUNT ( * ) ), - COUNT ( * ) AS col2
----
-1
-1

query II rowsort
SELECT DISTINCT + 75 AS col2, 67 AS col0
----
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL 90 * MIN( ALL + 19 ) + + + COUNT( * )
----
1711

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL 90 * MIN ( ALL + 19 ) + + + COUNT ( * )
----
1711

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - COUNT( * ) - - 56
----
55

skipif mysql # not compatible
query I rowsort label-8722
SELECT - COUNT ( * ) - - 56
----
55

query I rowsort
SELECT - 40 * 13 + - 1
----
-521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT + CAST( NULL AS SIGNED ) * - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT + CAST ( NULL AS INTEGER ) * - 62 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT 49 + - CAST( NULL AS SIGNED ) + - 58 - + ( 24 ) * - AVG ( ALL - + 23 ) * - - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT 49 + - CAST ( NULL AS INTEGER ) + - 58 - + ( 24 ) * - AVG ( ALL - + 23 ) * - - 19 AS col1
----
NULL

query I rowsort
SELECT 94 - 79 + - 67 + - 55 * - 64 * + 97 + + + 45
----
341433

query I rowsort
SELECT + 58 * - NULLIF ( - 33, 10 ) + 80 + - - 14 * - 94
----
678

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8728
SELECT NULLIF ( + COUNT( 23 ), + 3 ) - - 55 DIV + 60 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8728
SELECT NULLIF ( + COUNT ( 23 ), + 3 ) - - 55 / + 60 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT DISTINCT - 44 - + ( - 31 ), COUNT( * ) * - 72 AS col2
----
-13
-72

skipif mysql # not compatible
query II rowsort label-8729
SELECT DISTINCT - 44 - + ( - 31 ), COUNT ( * ) * - 72 AS col2
----
-13
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT 84 + + MIN( - 4 ) - 35
----
45

skipif mysql # not compatible
query I rowsort label-8730
SELECT 84 + + MIN ( - 4 ) - 35
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT ALL NULLIF ( COALESCE ( + + COUNT( * ), + 33 * - 48 + + - 83 - + - 49, + 10 + 85 * + 57, - - 6 * - 91 + 61 + + COUNT( * ) + + - 57 ), - 50 * 27 + - - 46 ) * - AVG ( CASE + + 78 WHEN 21 + + - 57 * + 22 THEN - + 67 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL NULLIF ( COALESCE ( + + COUNT ( * ), + 33 * - 48 + + - 83 - + - 49, + 10 + 85 * + 57, - - 6 * - 91 + 61 + + COUNT ( * ) + + - 57 ), - 50 * 27 + - - 46 ) * - AVG ( CASE + + 78 WHEN 21 + + - 57 * + 22 THEN - + 67 END )
----
NULL

query II rowsort
SELECT - 27 col1, + 19 AS col1
----
-27
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT + SUM( ALL - 49 ) * 93
----
-4557

skipif mysql # not compatible
query I rowsort label-8733
SELECT + SUM ( ALL - 49 ) * 93
----
-4557

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8734
SELECT - 99 AS col2, CAST( NULL AS DECIMAL )
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-8734
SELECT - 99 AS col2, CAST ( NULL AS REAL )
----
-99
NULL

query I rowsort
SELECT 8 + - + 77
----
-69

query I rowsort
SELECT - 62 + + 67 * 40 * + 5 * - 74
----
-991662

query I rowsort
SELECT DISTINCT + 69 + - + 0 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL + COUNT( * ) + ( + 83 )
----
84

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL + COUNT ( * ) + ( + 83 )
----
84

query I rowsort
SELECT ALL - 47 * + 99 AS col1
----
-4653

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT 65 + 41 + + - 88 - + + NULLIF ( + - 77, - COUNT( - 28 ) ) + 74 + - - SUM( DISTINCT 48 ) * 40
----
2089

skipif mysql # not compatible
query I rowsort label-8740
SELECT 65 + 41 + + - 88 - + + NULLIF ( + - 77, - COUNT ( - 28 ) ) + 74 + - - SUM ( DISTINCT 48 ) * 40
----
2089

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL - 36 + - NULLIF ( + - COUNT( * ), - COUNT( * ) ) * - - 75 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - 36 + - NULLIF ( + - COUNT ( * ), - COUNT ( * ) ) * - - 75 * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8742
SELECT + + COUNT( * ), 28 + - 26 AS col0
----
1
2

skipif mysql # not compatible
query II rowsort label-8742
SELECT + + COUNT ( * ), 28 + - 26 AS col0
----
1
2

query I rowsort
SELECT ALL - 87 * - 10 * + 94 * - 68
----
-5561040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8744
SELECT COUNT( * ) DIV + - 85 - + 42 - + 79
----
-121

skipif mysql # not compatible
query I rowsort label-8744
SELECT COUNT ( * ) / + - 85 - + 42 - + 79
----
-121

query II rowsort
SELECT 86 col0, + 14 * + 23 AS col0
----
86
322

query I rowsort
SELECT - 78 + - 43 * + - 68 AS col1
----
2846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT DISTINCT 48 * + CAST( + 71 AS SIGNED ) col2
----
3408

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT 48 * + CAST ( + 71 AS INTEGER ) col2
----
3408

onlyif mysql # aggregate syntax: 
query II rowsort label-8748
SELECT + 73 * + 30 * - - 23 * + COUNT( * ) + - 20, 85 AS col1
----
50350
85

skipif mysql # not compatible
query II rowsort label-8748
SELECT + 73 * + 30 * - - 23 * + COUNT ( * ) + - 20, 85 AS col1
----
50350
85

query I rowsort
SELECT ALL + 2 * + 50 * 81
----
8100

query I rowsort
SELECT ALL + 93 - + + 9 AS col0
----
84

query I rowsort
SELECT 69 + - - 56 + + 56 * 61 * 56 * - + 12
----
-2295427

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8752
SELECT ALL - CAST( NULL AS DECIMAL ) col0, + 13 + - 24
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-8752
SELECT ALL - CAST ( NULL AS REAL ) col0, + 13 + - 24
----
NULL
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8753
SELECT COALESCE ( - 91, - 49 ) * + - ( - 44 ) * + - 76 + + 48 + - 93 * + ( - 11 ) + - 71 * - - 27 DIV + ( - COUNT( * ) ) AS col2
----
307292

skipif mysql # not compatible
query I rowsort label-8753
SELECT COALESCE ( - 91, - 49 ) * + - ( - 44 ) * + - 76 + + 48 + - 93 * + ( - 11 ) + - 71 * - - 27 / + ( - COUNT ( * ) ) AS col2
----
307292

query I rowsort
SELECT DISTINCT - COALESCE ( + - 20, - 81 ) AS col2
----
20

query I rowsort
SELECT ALL - 31 * 93
----
-2883

query I rowsort
SELECT ALL - 58 * - 79
----
4582

query I rowsort
SELECT DISTINCT 74 - + 27 AS col2
----
47

query II rowsort
SELECT DISTINCT 64, 55 AS col0
----
64
55

query I rowsort
SELECT ALL - 31 * 35 AS col2
----
-1085

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL MAX( DISTINCT + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL MAX ( DISTINCT + 13 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL MIN( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL MIN ( DISTINCT - 0 )
----
0

query I rowsort
SELECT 83 - - 95 * + 62 AS col0
----
5973

onlyif mysql # DIV for integer division: 
query II rowsort label-8763
SELECT 90 DIV + - NULLIF ( + 61, 37 ), - 66 AS col1
----
-1
-66

skipif mysql # not compatible
query II rowsort label-8763
SELECT 90 / + - NULLIF ( + 61, 37 ), - 66 AS col1
----
-1
-66

query I rowsort
SELECT DISTINCT 63 + - 52 col0
----
11

query I rowsort
SELECT ALL 68 * - 79 * + ( - - ( + + 70 ) ) col0
----
-376040

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT - CASE + 17 WHEN 8 THEN + SUM( ALL + + 26 ) END - + 50 / - 31 * + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT - CASE + 17 WHEN 8 THEN + SUM ( ALL + + 26 ) END - + 50 / - 31 * + 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + 60 * + CASE 55 WHEN + 39 * - COUNT( * ) + + 61 THEN + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT + 60 * + CASE 55 WHEN + 39 * - COUNT ( * ) + + 61 THEN + 61 END
----
NULL

query I rowsort
SELECT DISTINCT - 40 + - ( 73 )
----
-113

query II rowsort
SELECT ALL + 46, - 61 col2
----
46
-61

query I rowsort
SELECT - ( - 85 ) col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT ALL - COALESCE ( - 52, 83 ) + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL - COALESCE ( - 52, 83 ) + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8772
SELECT CASE - + 49 WHEN - 63 - + NULLIF ( + 99, + 86 * + COUNT( * ) ) THEN NULL WHEN + - 89 + - 54 THEN + 35 / + COALESCE ( - NULLIF ( - 84, + COUNT( * ) / + ( COALESCE ( - 5, - 58, + + 38 ) ) ), - COUNT( * ) * - 95 / + - 84 + + + CAST( + - 52 AS SIGNED ) * - 92 + 2 + + + 20 + + 24 + + COUNT( * ) + - 2 * + 46 - + ( - NULLIF ( + CASE 24 WHEN + 26 + + 8 THEN - 25 WHEN 37 + 99 THEN + 10 END, MIN( DISTINCT 65 ) ) ) * COALESCE ( + 26, + 26 ) * 21, 78 + - 91 ) * 10 + - ( + CASE AVG ( DISTINCT 13 ) WHEN + 60 - AVG ( DISTINCT 58 ) THEN + 41 * 7 ELSE 64 END ) * 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8772
SELECT CASE - + 49 WHEN - 63 - + NULLIF ( + 99, + 86 * + COUNT ( * ) ) THEN NULL WHEN + - 89 + - 54 THEN + 35 / + COALESCE ( - NULLIF ( - 84, + COUNT ( * ) / + ( COALESCE ( - 5, - 58, + + 38 ) ) ), - COUNT ( * ) * - 95 / + - 84 + + + CAST ( + - 52 AS INTEGER ) * - 92 + 2 + + + 20 + + 24 + + COUNT ( * ) + - 2 * + 46 - + ( - NULLIF ( + CASE 24 WHEN + 26 + + 8 THEN - 25 WHEN 37 + 99 THEN + 10 END, MIN ( DISTINCT 65 ) ) ) * COALESCE ( + 26, + 26 ) * 21, 78 + - 91 ) * 10 + - ( + CASE AVG ( DISTINCT 13 ) WHEN + 60 - AVG ( DISTINCT 58 ) THEN + 41 * 7 ELSE 64 END ) * 15 END
----
NULL

query I rowsort
SELECT ALL - 91 * 73
----
-6643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT CASE - 6 WHEN + 51 + + + 36 THEN 56 END + + - CAST( - - 48 AS SIGNED ) + 2 + + 20 - - COUNT( * ) * + + 6 * + - ( + 58 ) * + + 29 * + + 90 * - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT CASE - 6 WHEN + 51 + + + 36 THEN 56 END + + - CAST ( - - 48 AS INTEGER ) + 2 + + 20 - - COUNT ( * ) * + + 6 * + - ( + 58 ) * + + 29 * + + 90 * - - 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT ALL - CAST( - 50 AS SIGNED ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL - CAST ( - 50 AS INTEGER ) AS col1
----
50

query I rowsort
SELECT DISTINCT - ( - + 50 ) + 69
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL MAX( 25 ) + - 83 + 98
----
40

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL MAX ( 25 ) + - 83 + 98
----
40

query II rowsort
SELECT ALL 85 col2, - 23
----
85
-23

query II rowsort
SELECT ALL - 48, 70 AS col2
----
-48
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT 51 * + - COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8780
SELECT 51 * + - COUNT ( * ) AS col0
----
-51

query I rowsort
SELECT ALL - - 54 * - 38
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT - ( MAX( ALL + 94 ) ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-8782
SELECT - ( MAX ( ALL + 94 ) ) col0
----
-94

query I rowsort
SELECT DISTINCT - 16 * 24 AS col1
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT + SUM( DISTINCT - - 47 ) + + - MAX( DISTINCT - ( 34 ) )
----
81

skipif mysql # not compatible
query I rowsort label-8784
SELECT + SUM ( DISTINCT - - 47 ) + + - MAX ( DISTINCT - ( 34 ) )
----
81

query I rowsort
SELECT + 58 * ( NULLIF ( + 61, + 66 * + + 92 ) ) AS col2
----
3538

query I rowsort
SELECT ALL 70 * CASE + + 70 WHEN ( 79 ) * - 76 - ( + - 60 ) THEN NULL WHEN + NULLIF ( - 98, - + 37 + - + 26 ) THEN NULL ELSE + + 3 END AS col1
----
210

query I rowsort
SELECT + 76 + 7 + + - 10 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8788
SELECT - SUM( + 43 ) DIV - - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8788
SELECT - SUM ( + 43 ) / - - 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL COUNT( * ) * + 19 * - - ( - 61 ) - 96
----
-1255

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL COUNT ( * ) * + 19 * - - ( - 61 ) - 96
----
-1255

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT + COUNT( * ) * - - 56 * 10 AS col1, + MIN( 44 )
----
560
44

skipif mysql # not compatible
query II rowsort label-8790
SELECT + COUNT ( * ) * - - 56 * 10 AS col1, + MIN ( 44 )
----
560
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT DISTINCT 51 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT 51 * COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - 22 - - COALESCE ( - - 89, 56 * + 60 + 62 ) + + COUNT( * ) * + 44 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-8792
SELECT - 22 - - COALESCE ( - - 89, 56 * + 60 + 62 ) + + COUNT ( * ) * + 44 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - CASE - ( - 99 ) WHEN + + 89 + - COUNT( * ) THEN + COUNT( * ) - - - MAX( - 72 ) ELSE - 79 END + + 69 + + + 54
----
202

skipif mysql # not compatible
query I rowsort label-8793
SELECT - CASE - ( - 99 ) WHEN + + 89 + - COUNT ( * ) THEN + COUNT ( * ) - - - MAX ( - 72 ) ELSE - 79 END + + 69 + + + 54
----
202

query I rowsort
SELECT 72 * + 95 + - - 46 * - + 57 + - 7 * + 14 AS col0
----
4120

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ( + 81 ) * - COUNT( * ) + - 34 + - 51 * 80 + + 70
----
-4125

skipif mysql # not compatible
query I rowsort label-8795
SELECT ( + 81 ) * - COUNT ( * ) + - 34 + - 51 * 80 + + 70
----
-4125

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL + 72 + + COUNT( ALL + 70 ) + - + 35 * - 97 * - 71
----
-240972

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + 72 + + COUNT ( ALL + 70 ) + - + 35 * - 97 * - 71
----
-240972

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - ( - 92 ) + - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8797
SELECT - ( - 92 ) + - COUNT ( * ) AS col1
----
91

query I rowsort
SELECT - 38 + - 90
----
-128

query I rowsort
SELECT - 44 - 56 col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL - COUNT( * ) * + 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL - COUNT ( * ) * + 86 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT + 61 * + SUM( ALL - + 48 ) * + COALESCE ( - - CASE WHEN + 96 = + 53 * - 76 THEN NULL ELSE 54 + 60 - + 49 END, - COUNT( * ) ) AS col2
----
-190320

skipif mysql # not compatible
query I rowsort label-8801
SELECT + 61 * + SUM ( ALL - + 48 ) * + COALESCE ( - - CASE WHEN + 96 = + 53 * - 76 THEN NULL ELSE 54 + 60 - + 49 END, - COUNT ( * ) ) AS col2
----
-190320

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL + - MIN( - 78 ) + - 10 col2
----
68

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + - MIN ( - 78 ) + - 10 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL - COUNT( * ) + - 18 col1
----
-19

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL - COUNT ( * ) + - 18 col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT DISTINCT + 44 + - 78 * + + CASE + 93 WHEN 55 * + COUNT( * ) + - 22 / 72 * - 34 THEN 97 WHEN 33 THEN + 8 * - 28 / - 73 - + - 42 END * + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT + 44 + - 78 * + + CASE + 93 WHEN 55 * + COUNT ( * ) + - 22 / 72 * - 34 THEN 97 WHEN 33 THEN + 8 * - 28 / - 73 - + - 42 END * + 44 AS col0
----
NULL

query I rowsort
SELECT - - 42 + - 45 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT - + 31 * COUNT( * ) + + 15 + COALESCE ( - + COUNT( * ), - 37 ) * - - ( - COUNT( * ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8806
SELECT - + 31 * COUNT ( * ) + + 15 + COALESCE ( - + COUNT ( * ), - 37 ) * - - ( - COUNT ( * ) ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8807
SELECT - 11 + - - COUNT( * ) AS col2, 57 * - - CAST( NULL AS SIGNED ) + + 84 * + - 29 AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-8807
SELECT - 11 + - - COUNT ( * ) AS col2, 57 * - - CAST ( NULL AS INTEGER ) + + 84 * + - 29 AS col0
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT + 94 * MAX( ALL + 1 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8808
SELECT + 94 * MAX ( ALL + 1 ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT DISTINCT + - 48 DIV + - 41
----
1

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT + - 48 / + - 41
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8810
SELECT DISTINCT - - 85 - + 93 + + NULLIF ( + + COUNT( * ), - 0 ) AS col0, 19
----
-7
19

skipif mysql # not compatible
query II rowsort label-8810
SELECT DISTINCT - - 85 - + 93 + + NULLIF ( + + COUNT ( * ), - 0 ) AS col0, 19
----
-7
19

query II rowsort
SELECT - 27 + + 11, - 33 AS col0
----
-16
-33

query II rowsort
SELECT ALL + 14 AS col1, 90
----
14
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8813
SELECT + 40 * + + 32 + - COALESCE ( + CAST( NULL AS SIGNED ), 15 * - + 63 + 19 )
----
2206

skipif mysql # not compatible
query I rowsort label-8813
SELECT + 40 * + + 32 + - COALESCE ( + CAST ( NULL AS INTEGER ), 15 * - + 63 + 19 )
----
2206

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT + COUNT( * ) * - 76 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8814
SELECT + COUNT ( * ) * - 76 AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8815
SELECT CAST( + 75 AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8815
SELECT CAST ( + 75 AS INTEGER ) AS col1
----
75

query II rowsort
SELECT ALL + 29 AS col0, + 16
----
29
16

query I rowsort
SELECT + ( + 61 ) + + ( 6 ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT + COUNT( * ) * - - 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8818
SELECT + COUNT ( * ) * - - 25 AS col1
----
25

query I rowsort
SELECT 67 * - + 82 + + 25 col1
----
-5469

query I rowsort
SELECT + 74 * 67
----
4958

query I rowsort
SELECT DISTINCT 98 * - 98
----
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL 14 * 61 * COUNT( * ) + + + NULLIF ( - - 93, + 43 * + 22 * 90 * - + COUNT( * ) * + + 7 * + + 94 * 35 )
----
947

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL 14 * 61 * COUNT ( * ) + + + NULLIF ( - - 93, + 43 * + 22 * 90 * - + COUNT ( * ) * + + 7 * + + 94 * 35 )
----
947

query I rowsort
SELECT - 45 * - COALESCE ( + 16, 31, - 38 * - 18 * 96, - 85 + + 61 ) * 52 + - + 52 + + 8
----
37396

onlyif mysql # aggregate syntax: 
query II rowsort label-8824
SELECT ALL + MIN( + + 58 ) * - 2 + 11 AS col1, - 20 * - COUNT( + - 51 ) col1
----
-105
20

skipif mysql # not compatible
query II rowsort label-8824
SELECT ALL + MIN ( + + 58 ) * - 2 + 11 AS col1, - 20 * - COUNT ( + - 51 ) col1
----
-105
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT + 15 * - - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-8825
SELECT + 15 * - - COUNT ( * )
----
15

query I rowsort
SELECT ALL 51 * - 46 + + 30
----
-2316

query I rowsort
SELECT - + 46 * - - 96 * - + 10 AS col0
----
44160

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT + 86 - + CASE 22 WHEN - 3 THEN NULL WHEN + 24 * 81 / - + NULLIF ( - 24, 46 ) * CASE 55 WHEN + - 1 THEN NULL WHEN + + CASE + 21 WHEN 78 * - + 8 THEN NULL WHEN COUNT( * ) THEN 82 ELSE - - COUNT( * ) * + + COUNT( * ) + - - 0 * - 68 + - + 1 END + 76 / - - 14 THEN - CASE - 33 WHEN + COALESCE ( + 56, + 9 ) THEN NULL WHEN 9 * + 83 + - - 67 * - 55 THEN CASE ( + COUNT( * ) ) WHEN 3 + - 20 THEN ( 66 ) WHEN 30 + 71 THEN + 5 * - 90 + 82 * + 45 ELSE 95 / 81 END END + 85 / 9 WHEN 2 THEN - COUNT( * ) * + COUNT( * ) + + 10 END + + 34 * - 39 THEN NULL ELSE 99 END * + COUNT( * ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-8828
SELECT + 86 - + CASE 22 WHEN - 3 THEN NULL WHEN + 24 * 81 / - + NULLIF ( - 24, 46 ) * CASE 55 WHEN + - 1 THEN NULL WHEN + + CASE + 21 WHEN 78 * - + 8 THEN NULL WHEN COUNT ( * ) THEN 82 ELSE - - COUNT ( * ) * + + COUNT ( * ) + - - 0 * - 68 + - + 1 END + 76 / - - 14 THEN - CASE - 33 WHEN + COALESCE ( + 56, + 9 ) THEN NULL WHEN 9 * + 83 + - - 67 * - 55 THEN CASE ( + COUNT ( * ) ) WHEN 3 + - 20 THEN ( 66 ) WHEN 30 + 71 THEN + 5 * - 90 + 82 * + 45 ELSE 95 / 81 END END + 85 / 9 WHEN 2 THEN - COUNT ( * ) * + COUNT ( * ) + + 10 END + + 34 * - 39 THEN NULL ELSE 99 END * + COUNT ( * ) col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8829
SELECT ALL - CAST( + 10 AS SIGNED ) * + 21 + 97 - 7 * - 57 * - 10 * 77 - - CAST( NULL AS DECIMAL ) + + MIN( 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL - CAST ( + 10 AS INTEGER ) * + 21 + 97 - 7 * - 57 * - 10 * 77 - - CAST ( NULL AS REAL ) + + MIN ( 43 ) AS col2
----
NULL

query II rowsort
SELECT - - 50, ( 47 ) * + ( 69 ) AS col0
----
50
3243

query I rowsort
SELECT - 13 + - + 6 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8832
SELECT ALL 47 col2, MAX( 54 ) * + 77 + + 2 * SUM( 84 )
----
47
4326

skipif mysql # not compatible
query II rowsort label-8832
SELECT ALL 47 col2, MAX ( 54 ) * + 77 + + 2 * SUM ( 84 )
----
47
4326

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT MIN( ALL - + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-8833
SELECT MIN ( ALL - + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL MIN( ALL + + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL MIN ( ALL + + 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8835
SELECT ALL + 8 * - 97 + + - CAST( NULL AS DECIMAL ) AS col2, - CAST( - CAST( + 96 AS SIGNED ) AS SIGNED )
----
NULL
96

skipif mysql # not compatible
query II rowsort label-8835
SELECT ALL + 8 * - 97 + + - CAST ( NULL AS REAL ) AS col2, - CAST ( - CAST ( + 96 AS INTEGER ) AS INTEGER )
----
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT DISTINCT - CAST( + 51 AS SIGNED ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT - CAST ( + 51 AS INTEGER ) AS col0
----
-51

query I rowsort
SELECT - - 69 - - - 59
----
10

query I rowsort
SELECT ALL + 64 * - + 67 * 20
----
-85760

query I rowsort
SELECT - 72 * + - 30 col2
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL + - 70 * - + 82 / + - 62 / - MIN( ALL CASE - - 5 WHEN - 18 THEN NULL WHEN - - 84 + + 81 * 57 THEN + 3 END ) * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL + - 70 * - + 82 / + - 62 / - MIN ( ALL CASE - - 5 WHEN - 18 THEN NULL WHEN - - 84 + + 81 * 57 THEN + 3 END ) * 59 AS col1
----
NULL

query II rowsort
SELECT + 93, 11 col1
----
93
11

query I rowsort
SELECT - 29 + + + 26 + + 25 - + ( - 53 ) * 39 * + - 36 - + 45
----
-74435

query I rowsort
SELECT 59 * + + 90
----
5310

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT ( NULLIF ( - + ( 16 ), + NULLIF ( - + 1, - 68 * - 58 + 89 ) ) ) + - MAX( - 88 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT ( NULLIF ( - + ( 16 ), + NULLIF ( - + 1, - 68 * - 58 + 89 ) ) ) + - MAX ( - 88 ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8845
SELECT ALL - MAX( + CAST( NULL AS SIGNED ) ) + 48 + - 69 * + ( - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL - MAX ( + CAST ( NULL AS INTEGER ) ) + 48 + - 69 * + ( - 58 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT ALL 57 + - - 7 - - 59 * + + 74 + + 74 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL 57 + - - 7 - - 59 * + + 74 + + 74 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 83 + + 86 * + 85 col2
----
7393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8848
SELECT ALL AVG ( DISTINCT + 24 ) * + 63 * 38 * + - COUNT( * ) - COALESCE ( - 27, + - 1, + 40 + - CAST( + + 91 AS SIGNED ) ) * + CASE 46 WHEN + + NULLIF ( - CAST( NULL AS DECIMAL ), 17 ) * - 71 + + 72 * 51 * SUM( ALL CAST( NULL AS SIGNED ) ) THEN 34 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL AVG ( DISTINCT + 24 ) * + 63 * 38 * + - COUNT ( * ) - COALESCE ( - 27, + - 1, + 40 + - CAST ( + + 91 AS INTEGER ) ) * + CASE 46 WHEN + + NULLIF ( - CAST ( NULL AS REAL ), 17 ) * - 71 + + 72 * 51 * SUM ( ALL CAST ( NULL AS INTEGER ) ) THEN 34 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT COUNT( * ) * - + 96 + - 15 * - + 81
----
1119

skipif mysql # not compatible
query I rowsort label-8849
SELECT COUNT ( * ) * - + 96 + - 15 * - + 81
----
1119

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT ALL 50 + - ( + COUNT( * ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL 50 + - ( + COUNT ( * ) ) AS col1
----
49

query I rowsort
SELECT ALL 3 + NULLIF ( 52, - 15 + + 80 + + 33 * 54 * 86 ) AS col2
----
55

query I rowsort
SELECT 8 + + 6
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT + 44 * - + 13 + - COUNT( * ) - - COALESCE ( + 18, - - 50 ) AS col1
----
-555

skipif mysql # not compatible
query I rowsort label-8853
SELECT + 44 * - + 13 + - COUNT ( * ) - - COALESCE ( + 18, - - 50 ) AS col1
----
-555

query I rowsort
SELECT ALL ( 70 ) + - - 49 AS col1
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-8855
SELECT - COUNT( - 9 ) + + - 42 - - 89 AS col0, - 10 + + 11 AS col0
----
46
1

skipif mysql # not compatible
query II rowsort label-8855
SELECT - COUNT ( - 9 ) + + - 42 - - 89 AS col0, - 10 + + 11 AS col0
----
46
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8856
SELECT 88 + - 25 AS col0, + COUNT( * ) AS col0
----
63
1

skipif mysql # not compatible
query II rowsort label-8856
SELECT 88 + - 25 AS col0, + COUNT ( * ) AS col0
----
63
1

query I rowsort
SELECT + 53 - - 56 AS col2
----
109

query I rowsort
SELECT ALL + 3 * + 83
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL - 28 * COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL - 28 * COUNT ( * ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8860
SELECT DISTINCT - 70 * + CASE + + 64 WHEN + 82 THEN + MAX( ALL 90 ) WHEN - AVG ( ALL + 30 ) * 36 THEN 3 ELSE 41 + - + NULLIF ( + NULLIF ( 70, - 72 ), + 30 ) - - CAST( ( + 36 ) AS SIGNED ) * - + 71 * + 2 END
----
359870

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT - 70 * + CASE + + 64 WHEN + 82 THEN + MAX ( ALL 90 ) WHEN - AVG ( ALL + 30 ) * 36 THEN 3 ELSE 41 + - + NULLIF ( + NULLIF ( 70, - 72 ), + 30 ) - - CAST ( ( + 36 ) AS INTEGER ) * - + 71 * + 2 END
----
359870

query II rowsort
SELECT ALL - 59 * + - 95 * + ( - 90 ) col2, + 58
----
-504450
58

query I rowsort
SELECT DISTINCT 85 - 39 + 77
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 91 + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 91 + 33 AS col2
----
NULL

query I rowsort
SELECT 3 + - - 85 * - 69
----
-5862

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL + COUNT( ALL 52 )
----
1

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL + COUNT ( ALL 52 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ( + COUNT( * ) ) + 62 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8866
SELECT ( + COUNT ( * ) ) + 62 AS col2
----
63

query I rowsort
SELECT ALL ( 11 ) col1
----
11

query I rowsort
SELECT 13 + + 40
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT COUNT( DISTINCT 34 ) + - 64
----
-63

skipif mysql # not compatible
query I rowsort label-8869
SELECT COUNT ( DISTINCT 34 ) + - 64
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT 68 * - COUNT( * ) * COUNT( * ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-8870
SELECT 68 * - COUNT ( * ) * COUNT ( * ) col0
----
-68

query I rowsort
SELECT ALL + 3 + 35 AS col2
----
38

query I rowsort
SELECT 84 + 78 AS col1
----
162

query I rowsort
SELECT ALL + 13 * + 21
----
273

query I rowsort
SELECT DISTINCT - 58 + - 48
----
-106

query I rowsort
SELECT DISTINCT + 67 + - 1
----
66

query I rowsort
SELECT DISTINCT + 86 + + + 67 AS col0
----
153

query I rowsort
SELECT 84 * - 92
----
-7728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8878
SELECT ALL - CASE + - 82 WHEN + COUNT( * ) - - COALESCE ( - ( - 39 ), CASE ( + + 65 ) WHEN - - 64 THEN - ( COUNT( * ) ) WHEN + 35 * - 82 + - + CAST( NULL AS SIGNED ) THEN + 4 WHEN + - COUNT( * ) THEN NULL END ) THEN + MIN( 81 ) * 37 * 44 WHEN + 55 + + 74 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL - CASE + - 82 WHEN + COUNT ( * ) - - COALESCE ( - ( - 39 ), CASE ( + + 65 ) WHEN - - 64 THEN - ( COUNT ( * ) ) WHEN + 35 * - 82 + - + CAST ( NULL AS INTEGER ) THEN + 4 WHEN + - COUNT ( * ) THEN NULL END ) THEN + MIN ( 81 ) * 37 * 44 WHEN + 55 + + 74 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 93 * - 93
----
-8649

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8880
SELECT - 0 DIV + 49 * + + CAST( 75 AS SIGNED ) * COALESCE ( - 39, - 91 * 11 * - 19 + 22, + - 3 * - + 86 - - - 91 ) + 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8880
SELECT - 0 / + 49 * + + CAST ( 75 AS INTEGER ) * COALESCE ( - 39, - 91 * 11 * - 19 + 22, + - 3 * - + 86 - - - 91 ) + 56 AS col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8881
SELECT ALL - 50 DIV - - MAX( ALL 63 )
----
0

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL - 50 / - - MAX ( ALL 63 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8882
SELECT ALL - 51 * 34 DIV - - MIN( ALL + + 12 ) + - COUNT( * ) + - 84 * - 74 * - + 85
----
-528505

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL - 51 * 34 / - - MIN ( ALL + + 12 ) + - COUNT ( * ) + - 84 * - 74 * - + 85
----
-528505

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8883
SELECT 9 * - 73 * + 98, 54 - - ( - + 65 ) DIV - + 64 DIV + COUNT( * ) * ( - - 10 ) - + - COUNT( * ) AS col1
----
-64386
65

skipif mysql # not compatible
query II rowsort label-8883
SELECT 9 * - 73 * + 98, 54 - - ( - + 65 ) / - + 64 / + COUNT ( * ) * ( - - 10 ) - + - COUNT ( * ) AS col1
----
-64386
65

query I rowsort
SELECT 18 * + 63
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL + ( - 1 ) * - COALESCE ( 97, 21 * - - 35 * - + COUNT( * ) ) * 48 + - 35 AS col2
----
4621

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + ( - 1 ) * - COALESCE ( 97, 21 * - - 35 * - + COUNT ( * ) ) * 48 + - 35 AS col2
----
4621

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT 10 * - NULLIF ( - 24, COUNT( * ) + - 21 * 24 / + + 47 ) * 11
----
2640

skipif mysql # not compatible
query I rowsort label-8886
SELECT 10 * - NULLIF ( - 24, COUNT ( * ) + - 21 * 24 / + + 47 ) * 11
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT MAX( 85 ) * 74 * - 69
----
-434010

skipif mysql # not compatible
query I rowsort label-8887
SELECT MAX ( 85 ) * 74 * - 69
----
-434010

query I rowsort
SELECT DISTINCT 3 - + 93 * + 46 * 46 AS col2
----
-196785

query I rowsort
SELECT ALL - 74 * 6 AS col0
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT + COUNT( * ) * 26 + - ( - + COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-8890
SELECT + COUNT ( * ) * 26 + - ( - + COUNT ( * ) )
----
27

query I rowsort
SELECT 33 * + 80 AS col1
----
2640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8892
SELECT DISTINCT + 30 - - + CASE - 96 WHEN - 60 THEN COALESCE ( - 15, 15 ) + + 26 WHEN - + 26 THEN NULL END * 8 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT + 30 - - + CASE - 96 WHEN - 60 THEN COALESCE ( - 15, 15 ) + + 26 WHEN - + 26 THEN NULL END * 8 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT DISTINCT + CASE + ( + 74 ) WHEN 83 THEN - 53 END - ( - COUNT( * ) ) + + 50 + COUNT( DISTINCT + + 76 ) + - - CAST( + - COUNT( * ) AS SIGNED ) * - CASE + 81 WHEN - 65 + - 69 + - 12 * + 37 THEN + ( - + 91 ) WHEN + 13 * - + 37 * + 67 + - - 10 THEN - MAX( DISTINCT - 70 ) ELSE NULL END * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT + CASE + ( + 74 ) WHEN 83 THEN - 53 END - ( - COUNT ( * ) ) + + 50 + COUNT ( DISTINCT + + 76 ) + - - CAST ( + - COUNT ( * ) AS INTEGER ) * - CASE + 81 WHEN - 65 + - 69 + - 12 * + 37 THEN + ( - + 91 ) WHEN + 13 * - + 37 * + 67 + - - 10 THEN - MAX ( DISTINCT - 70 ) ELSE NULL END * - 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8894
SELECT ALL + 91 DIV + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL + 91 / + COUNT ( * ) AS col0
----
91

query I rowsort
SELECT + - 86 + - - 49 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT MIN( DISTINCT + + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8896
SELECT MIN ( DISTINCT + + 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8897
SELECT - - NULLIF ( + 63, + 45 - + 65 * + + COUNT( * ) + 74 ) col2, 93 * - 31 + - 28
----
63
-2911

skipif mysql # not compatible
query II rowsort label-8897
SELECT - - NULLIF ( + 63, + 45 - + 65 * + + COUNT ( * ) + 74 ) col2, 93 * - 31 + - 28
----
63
-2911

query I rowsort
SELECT ALL + ( + 92 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT ALL + 47 DIV 27
----
1

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + 47 / 27
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8900
SELECT + - 36 DIV COUNT( - 11 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8900
SELECT + - 36 / COUNT ( - 11 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + 93 * - 99 - COUNT( * )
----
-9208

skipif mysql # not compatible
query I rowsort label-8901
SELECT + 93 * - 99 - COUNT ( * )
----
-9208

query II rowsort
SELECT + + 63 * - 91 + - - 9, 61 * - 85 AS col1
----
-5724
-5185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT - CAST( - 48 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8903
SELECT - CAST ( - 48 AS INTEGER ) AS col2
----
48

query I rowsort
SELECT + + 92 + - 98 AS col0
----
-6

query II rowsort
SELECT - 5, - 94 col0
----
-5
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8906
SELECT + 20 DIV - + 69 + 66
----
66

skipif mysql # not compatible
query I rowsort label-8906
SELECT + 20 / - + 69 + 66
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8907
SELECT ALL 60 + - - 21 + - - CASE - + COUNT( * ) WHEN - + 22 THEN CAST( NULL AS SIGNED ) / 16 WHEN 87 THEN SUM( DISTINCT - 54 ) - NULLIF ( + 71, - 36 * + 90 ) + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL 60 + - - 21 + - - CASE - + COUNT ( * ) WHEN - + 22 THEN CAST ( NULL AS INTEGER ) / 16 WHEN 87 THEN SUM ( DISTINCT - 54 ) - NULLIF ( + 71, - 36 * + 90 ) + - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT + 54 * + + 4 AS col2
----
216

query II rowsort
SELECT - 87, + 14 - + - 23 AS col1
----
-87
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT + CAST( NULL AS SIGNED ) + 14 + COUNT( DISTINCT - 93 ) * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT + CAST ( NULL AS INTEGER ) + 14 + COUNT ( DISTINCT - 93 ) * - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL MIN( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL MIN ( - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT - 4 - - 94 * + 7 * + + 60 * + COUNT( * ) AS col1
----
39476

skipif mysql # not compatible
query I rowsort label-8912
SELECT - 4 - - 94 * + 7 * + + 60 * + COUNT ( * ) AS col1
----
39476

query I rowsort
SELECT - 33 - + + 7 * + 81
----
-600

query I rowsort
SELECT DISTINCT - 37 * + + 10
----
-370

query I rowsort
SELECT + 56 * + 56 AS col2
----
3136

query I rowsort
SELECT + 73 + + + 91
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT - 79 * - NULLIF ( + ( + - 89 ), MAX( - ( 7 ) ) + - ( SUM( ALL + 36 ) ) ) AS col0
----
-7031

skipif mysql # not compatible
query I rowsort label-8917
SELECT - 79 * - NULLIF ( + ( + - 89 ), MAX ( - ( 7 ) ) + - ( SUM ( ALL + 36 ) ) ) AS col0
----
-7031

query II rowsort
SELECT DISTINCT + 79 AS col0, - 10 * - - 5
----
79
-50

query II rowsort
SELECT + 53 AS col1, 74 AS col2
----
53
74

query II rowsort
SELECT ALL + 27 AS col2, 64 AS col1
----
27
64

query I rowsort
SELECT + ( 56 ) * - 56 + + 21
----
-3115

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT - - 81 DIV 10 col2
----
8

skipif mysql # not compatible
query I rowsort label-8922
SELECT - - 81 / 10 col2
----
8

query I rowsort
SELECT - 79 + 15 + 27
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8924
SELECT DISTINCT + 76 AS col0, 27 / + 82 * - - CAST( NULL AS SIGNED )
----
76
NULL

skipif mysql # not compatible
query II rowsort label-8924
SELECT DISTINCT + 76 AS col0, 27 / + 82 * - - CAST ( NULL AS INTEGER )
----
76
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8925
SELECT DISTINCT - - 6 DIV + - 65, + 20 DIV + 70
----
0
0

skipif mysql # not compatible
query II rowsort label-8925
SELECT DISTINCT - - 6 / + - 65, + 20 / + 70
----
0
0

query II rowsort
SELECT ALL + 7 AS col1, + 17 AS col0
----
7
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT - - 31 + MIN( - + 68 ) * + 42 AS col1
----
-2825

skipif mysql # not compatible
query I rowsort label-8927
SELECT - - 31 + MIN ( - + 68 ) * + 42 AS col1
----
-2825

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL - COUNT( * ) * - - 14
----
-14

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL - COUNT ( * ) * - - 14
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8929
SELECT + 85 * - 38 DIV + COUNT( * ) + - SUM( - COALESCE ( - 91, - 51, + 14 * - 48 - + 31 + + + 25 + - 35 * - CAST( NULL AS SIGNED ) ) )
----
-3321

skipif mysql # not compatible
query I rowsort label-8929
SELECT + 85 * - 38 / + COUNT ( * ) + - SUM ( - COALESCE ( - 91, - 51, + 14 * - 48 - + 31 + + + 25 + - 35 * - CAST ( NULL AS INTEGER ) ) )
----
-3321

query I rowsort
SELECT ALL + + 99 col0
----
99

query II rowsort
SELECT + - 17, + ( + - 61 ) * - 22 * - 52 * - 12 + 35 + 12 AS col0
----
-17
837455

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL + - COALESCE ( 54, COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL + - COALESCE ( 54, COUNT ( * ) )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT - 82 + - 28 DIV COALESCE ( - 70, - + COUNT( * ), + + 39 )
----
-82

skipif mysql # not compatible
query I rowsort label-8933
SELECT - 82 + - 28 / COALESCE ( - 70, - + COUNT ( * ), + + 39 )
----
-82

query I rowsort
SELECT ALL - 85 * + + 45 + + 35
----
-3790

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT - - COUNT( * ) * - 86 + - 24
----
-110

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - - COUNT ( * ) * - 86 + - 24
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-8936
SELECT SUM( DISTINCT - 16 ) AS col1, - COALESCE ( - 23, - 60, + 38 ) AS col1
----
-16
23

skipif mysql # not compatible
query II rowsort label-8936
SELECT SUM ( DISTINCT - 16 ) AS col1, - COALESCE ( - 23, - 60, + 38 ) AS col1
----
-16
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT + 40 + - CASE + 92 WHEN + COUNT( * ) THEN NULL ELSE + COUNT( * ) END AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT + 40 + - CASE + 92 WHEN + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT DISTINCT 99 DIV + - 68
----
-1

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT 99 / + - 68
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT + CAST( + + 71 AS SIGNED ) + - 21
----
50

skipif mysql # not compatible
query I rowsort label-8939
SELECT + CAST ( + + 71 AS INTEGER ) + - 21
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8940
SELECT + COUNT( * ) * 71 AS col2, + 49 + - - 63 * + + 63 + + - COUNT( * ) AS col2
----
71
4017

skipif mysql # not compatible
query II rowsort label-8940
SELECT + COUNT ( * ) * 71 AS col2, + 49 + - - 63 * + + 63 + + - COUNT ( * ) AS col2
----
71
4017

query I rowsort
SELECT + 28 * - 50
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL 34 * - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL 34 * - COUNT ( * )
----
-34

query I rowsort
SELECT ALL 51 + - 6 AS col0
----
45

query II rowsort
SELECT ALL 98 * + 60 AS col2, - 49 - + + 56 col0
----
5880
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT 57 * - - SUM( DISTINCT - 21 ) AS col2
----
-1197

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT 57 * - - SUM ( DISTINCT - 21 ) AS col2
----
-1197

query I rowsort
SELECT DISTINCT CASE - 57 WHEN 75 THEN NULL ELSE + 21 END
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL 92 * - CASE - 50 WHEN - + 38 THEN NULL WHEN - - COUNT( * ) - - - 54 THEN - ( SUM( ALL + 4 ) ) WHEN - 26 + + + 69 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL 92 * - CASE - 50 WHEN - + 38 THEN NULL WHEN - - COUNT ( * ) - - - 54 THEN - ( SUM ( ALL + 4 ) ) WHEN - 26 + + + 69 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 97 * + 34 col1
----
3298

query II rowsort
SELECT - ( + 18 ) AS col0, - 36 + + 61
----
-18
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT + ( + - COUNT( * ) ) AS col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8950
SELECT + ( + - COUNT ( * ) ) AS col2, - COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT MIN( - 94 ) * ( + 11 ) + - 3 + + 5 * 76 * - MAX( - 57 ) AS col0
----
20623

skipif mysql # not compatible
query I rowsort label-8951
SELECT MIN ( - 94 ) * ( + 11 ) + - 3 + + 5 * 76 * - MAX ( - 57 ) AS col0
----
20623

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL + MAX( ALL ( + 71 ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL + MAX ( ALL ( + 71 ) ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8953
SELECT + 53 DIV + - 65 + - MAX( - 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8953
SELECT + 53 / + - 65 + - MAX ( - 16 ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8954
SELECT + CAST( - MAX( 12 ) AS SIGNED ) * 26 col0
----
-312

skipif mysql # not compatible
query I rowsort label-8954
SELECT + CAST ( - MAX ( 12 ) AS INTEGER ) * 26 col0
----
-312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8955
SELECT ALL + MIN( - + 43 ) AS col0, + CAST( NULL AS SIGNED )
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-8955
SELECT ALL + MIN ( - + 43 ) AS col0, + CAST ( NULL AS INTEGER )
----
-43
NULL

query I rowsort
SELECT DISTINCT - - 3 * - 7 + + ( - 81 ) + + 41
----
-61

query I rowsort
SELECT DISTINCT ( + 23 ) * - - 3 + + 12 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT + 0 * - + 33 + - + CAST( 79 AS SIGNED ) * - - 94 col0
----
-7426

skipif mysql # not compatible
query I rowsort label-8958
SELECT + 0 * - + 33 + - + CAST ( 79 AS INTEGER ) * - - 94 col0
----
-7426

onlyif mysql # aggregate syntax: 
query II rowsort label-8959
SELECT + - ( 52 ), - COUNT( * ) - + 46 col2
----
-52
-47

skipif mysql # not compatible
query II rowsort label-8959
SELECT + - ( 52 ), - COUNT ( * ) - + 46 col2
----
-52
-47

query I rowsort
SELECT DISTINCT + 98 + - COALESCE ( 1, - 75 ) + - 18 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT ALL - 39 + - MIN( ( - 91 ) )
----
52

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL - 39 + - MIN ( ( - 91 ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL + + 61 + SUM( 47 ) + 28 + - SUM( - 18 ) * - 41 col1
----
-602

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + + 61 + SUM ( 47 ) + 28 + - SUM ( - 18 ) * - 41 col1
----
-602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT CAST( NULL AS SIGNED ) - + 73 * - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT CAST ( NULL AS INTEGER ) - + 73 * - - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT DISTINCT + ( + + COUNT( * ) ) + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT + ( + + COUNT ( * ) ) + - 63
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT + COUNT( * ) + 98 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT + COUNT ( * ) + 98 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8966
SELECT + 29 / + 83 + CASE + 53 WHEN + 94 THEN CAST( NULL AS SIGNED ) * 39 / 29 * + + 24 * + ( + COUNT( * ) ) * 82 + + + COALESCE ( - ( - 68 ), - + 15 - - 79 ) * - 98 ELSE NULL END - - COUNT( DISTINCT + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT + 29 / + 83 + CASE + 53 WHEN + 94 THEN CAST ( NULL AS INTEGER ) * 39 / 29 * + + 24 * + ( + COUNT ( * ) ) * 82 + + + COALESCE ( - ( - 68 ), - + 15 - - 79 ) * - 98 ELSE NULL END - - COUNT ( DISTINCT + 13 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT 91 * + - 53 * - - COUNT( * ) AS col1
----
-4823

skipif mysql # not compatible
query I rowsort label-8967
SELECT 91 * + - 53 * - - COUNT ( * ) AS col1
----
-4823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8968
SELECT 77 + - CASE 65 WHEN CAST( + + NULLIF ( + + 81, - 29 * - + 57 * + 99 ) AS SIGNED ) * + 76 * - + 76 - COUNT( * ) THEN + + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT 77 + - CASE 65 WHEN CAST ( + + NULLIF ( + + 81, - 29 * - + 57 * + 99 ) AS INTEGER ) * + 76 * - + 76 - COUNT ( * ) THEN + + 28 END
----
NULL

query I rowsort
SELECT ALL - 81 * + ( + 90 )
----
-7290

query II rowsort
SELECT - 30 AS col1, 62 * - 16
----
-30
-992

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT DISTINCT - ( - - 7 ) * + 94 * COUNT( ALL - + 98 )
----
-658

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT - ( - - 7 ) * + 94 * COUNT ( ALL - + 98 )
----
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT + COUNT( * ) - 47 * - MIN( - 65 ) * 81 AS col2
----
-247454

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT + COUNT ( * ) - 47 * - MIN ( - 65 ) * 81 AS col2
----
-247454

query II rowsort
SELECT 43 AS col1, 96 - - - 39
----
43
57

query II rowsort
SELECT ALL 96 AS col0, - ( + 33 )
----
96
-33

query I rowsort
SELECT DISTINCT + 9 - - 9
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8976
SELECT 12 DIV 3
----
4

skipif mysql # not compatible
query I rowsort label-8976
SELECT 12 / 3
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8977
SELECT NULLIF ( + CASE + 77 WHEN 35 THEN - 9 END, + - 28 ) * - 34 / + + 41 + - COUNT( * ), 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-8977
SELECT NULLIF ( + CASE + 77 WHEN 35 THEN - 9 END, + - 28 ) * - 34 / + + 41 + - COUNT ( * ), 87 AS col2
----
NULL
87

query II rowsort
SELECT - 62, 45 AS col1
----
-62
45

query I rowsort
SELECT + 61 * 0 AS col2
----
0

query I rowsort
SELECT DISTINCT - 42 * + 54 AS col1
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL COUNT( * ) * + + NULLIF ( 39, - 23 ) + + COUNT( DISTINCT - 33 )
----
40

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL COUNT ( * ) * + + NULLIF ( 39, - 23 ) + + COUNT ( DISTINCT - 33 )
----
40

query I rowsort
SELECT 77 * - + 19 col2
----
-1463

query I rowsort
SELECT ALL 54 + + - 24 col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT + - CASE 35 WHEN - + 47 + - - COUNT( * ) - - CASE + ( - 27 ) WHEN + COUNT( + 36 ) * + AVG ( + - 56 ) THEN - + ( 91 ) END THEN 38 + + 80 ELSE - - ( + 43 ) END
----
-43

skipif mysql # not compatible
query I rowsort label-8984
SELECT + - CASE 35 WHEN - + 47 + - - COUNT ( * ) - - CASE + ( - 27 ) WHEN + COUNT ( + 36 ) * + AVG ( + - 56 ) THEN - + ( 91 ) END THEN 38 + + 80 ELSE - - ( + 43 ) END
----
-43

query I rowsort
SELECT ALL 81 + + - COALESCE ( - + 79, 98 + 97 ) AS col1
----
160

query I rowsort
SELECT + + 1 * + 94 + 11
----
105

query I rowsort
SELECT + 20 - 48
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT - COALESCE ( - + ( + 46 ), 41 ) / + + 97 + - CASE + - 26 WHEN + CAST( - - COUNT( * ) AS SIGNED ) + 69 THEN - 99 * + 89 * + ( 45 ) + - 1 * 92 WHEN - NULLIF ( - 24, + 24 ) THEN - 80 ELSE NULL END + - + ( + + 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT - COALESCE ( - + ( + 46 ), 41 ) / + + 97 + - CASE + - 26 WHEN + CAST ( - - COUNT ( * ) AS INTEGER ) + 69 THEN - 99 * + 89 * + ( 45 ) + - 1 * 92 WHEN - NULLIF ( - 24, + 24 ) THEN - 80 ELSE NULL END + - + ( + + 41 )
----
NULL

query I rowsort
SELECT ALL + 68 + 85
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL - CASE - 18 WHEN + + COUNT( * ) THEN MAX( ( + 34 ) ) END + 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL - CASE - 18 WHEN + + COUNT ( * ) THEN MAX ( ( + 34 ) ) END + 57 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - COUNT( + - 74 ) + + - 27 - + - 83 + + + 85 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-8991
SELECT - COUNT ( + - 74 ) + + - 27 - + - 83 + + + 85 AS col1
----
140

query I rowsort
SELECT ALL + + 34 + 27 AS col0
----
61

query I rowsort
SELECT 26 + + 47
----
73

query I rowsort
SELECT 39 * 18 * + + 71 + - ( 33 )
----
49809

query I rowsort
SELECT ALL 83 + - 3
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT + + MIN( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-8996
SELECT + + MIN ( - 96 )
----
-96

query II rowsort
SELECT - 50 * - + 97 + - 42, - 3 * - NULLIF ( + 75, + 71 ) + 34 AS col0
----
4808
259

query I rowsort
SELECT 5 * + + 25 AS col1
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT ALL + 42 * + 25 + + 8 * - COUNT( * ) DIV + 17
----
1050

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + 42 * + 25 + + 8 * - COUNT ( * ) / + 17
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT DISTINCT + COUNT( * ) - + 27
----
-26

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT + COUNT ( * ) - + 27
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT 3 * COUNT( 15 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9001
SELECT 3 * COUNT ( 15 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9002
SELECT DISTINCT + COUNT( * ) / - + COUNT( * ) * CAST( NULL AS SIGNED ) / - - 1 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) * CAST ( NULL AS INTEGER ) / - - 1 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9003
SELECT ALL + NULLIF ( + 41, 63 ) DIV - 60 AS col0, + 42
----
0
42

skipif mysql # not compatible
query II rowsort label-9003
SELECT ALL + NULLIF ( + 41, 63 ) / - 60 AS col0, + 42
----
0
42

query I rowsort
SELECT 28 * + 55 AS col2
----
1540

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9005
SELECT COALESCE ( + NULLIF ( + 62, + - 37 ), COALESCE ( 24, - 22 ) * + 44 + + 0 ) * - - NULLIF ( COALESCE ( + - COUNT( * ), - + MAX( DISTINCT - 0 ) + + 8 ), - CAST( NULL AS DECIMAL ) + - 62 + + 34 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9005
SELECT COALESCE ( + NULLIF ( + 62, + - 37 ), COALESCE ( 24, - 22 ) * + 44 + + 0 ) * - - NULLIF ( COALESCE ( + - COUNT ( * ), - + MAX ( DISTINCT - 0 ) + + 8 ), - CAST ( NULL AS REAL ) + - 62 + + 34 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL SUM( DISTINCT 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL SUM ( DISTINCT 65 ) AS col1
----
65

query I rowsort
SELECT 9 + + + 18 - + - 30 col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT 18 + - - MIN( DISTINCT - 46 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-9008
SELECT 18 + - - MIN ( DISTINCT - 46 ) col1
----
-28

query I rowsort
SELECT 54 - 66 AS col0
----
-12

query I rowsort
SELECT 28 * + 21 * 65
----
38220

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL + COUNT( * ) * COUNT( * ) * + SUM( 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL + COUNT ( * ) * COUNT ( * ) * + SUM ( 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL NULLIF ( - + COUNT( * ), - - 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL NULLIF ( - + COUNT ( * ), - - 39 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT CASE - 40 WHEN - - 54 THEN 92 + + - 17 + - 93 END AS col0
----
NULL

query I rowsort
SELECT ALL 91 + + 35
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9015
SELECT - MIN( - 49 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT - MIN ( - 49 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL COUNT( 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL COUNT ( 55 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9017
SELECT + - COUNT( * ) + + 93 + ( - CAST( NULL AS SIGNED ) ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT + - COUNT ( * ) + + 93 + ( - CAST ( NULL AS INTEGER ) ) * 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 58 * + - 37 * 74 + 50 * + - COALESCE ( + COALESCE ( 29, 52 ), + 49 * + 7, 30 ) AS col2
----
-160254

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9020
SELECT - CAST( + - 8 AS SIGNED ), - ( + 17 ) AS col1
----
8
-17

skipif mysql # not compatible
query II rowsort label-9020
SELECT - CAST ( + - 8 AS INTEGER ), - ( + 17 ) AS col1
----
8
-17

query I rowsort
SELECT ALL + ( 75 ) * + 84 + - - 9 + - - 13
----
6322

query I rowsort
SELECT + CASE 0 WHEN - 60 THEN + 60 WHEN 36 - + - 51 THEN - + 34 * - COALESCE ( + 88, - 61 ) * 14 + 55 END / + 87 col2
----
NULL

query I rowsort
SELECT ALL 77 * - + 1 * CASE - 63 WHEN - 39 - - 94 THEN NULL WHEN + - 14 * + 59 + 49 - + - 47 THEN - 29 ELSE - 93 END + + 58 col2
----
7219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9024
SELECT DISTINCT CASE - + COUNT( * ) WHEN + 88 - + - 76 THEN + - 7 WHEN COALESCE ( + + 71, - + ( - 97 ), + 80 * - 51 + 73 ) + - - CAST( NULL AS SIGNED ) THEN - 98 ELSE - 51 DIV 35 + + 75 END * - - ( - 51 ) AS col2
----
-3774

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT CASE - + COUNT ( * ) WHEN + 88 - + - 76 THEN + - 7 WHEN COALESCE ( + + 71, - + ( - 97 ), + 80 * - 51 + 73 ) + - - CAST ( NULL AS INTEGER ) THEN - 98 ELSE - 51 / 35 + + 75 END * - - ( - 51 ) AS col2
----
-3774

query I rowsort
SELECT + 81 * 77 - + + 26
----
6211

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT + MAX( + 60 ) * + ( + + 32 ) - + ( + COUNT( * ) )
----
1919

skipif mysql # not compatible
query I rowsort label-9026
SELECT + MAX ( + 60 ) * + ( + + 32 ) - + ( + COUNT ( * ) )
----
1919

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL - 97 * - - COUNT( * ) - - + COUNT( * ) * + 95 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL - 97 * - - COUNT ( * ) - - + COUNT ( * ) * + 95 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT + SUM( 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT + SUM ( 84 ) AS col1
----
84

query I rowsort
SELECT + 93 - - 19 AS col2
----
112

query I rowsort
SELECT + ( 5 ) col1
----
5

query I rowsort
SELECT DISTINCT NULLIF ( 86, + 81 ) * - 47
----
-4042

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT COUNT( 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9032
SELECT COUNT ( 41 ) AS col2
----
1

query I rowsort
SELECT + 57 * + + 63 * + 16 AS col1
----
57456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT ALL ( 85 ) * + + CAST( + 16 AS SIGNED ) * - - 6 + 93
----
8253

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL ( 85 ) * + + CAST ( + 16 AS INTEGER ) * - - 6 + 93
----
8253

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT DISTINCT COUNT( * ) AS col2, - NULLIF ( - 94, - SUM( ALL + + 60 ) ) AS col2
----
1
94

skipif mysql # not compatible
query II rowsort label-9035
SELECT DISTINCT COUNT ( * ) AS col2, - NULLIF ( - 94, - SUM ( ALL + + 60 ) ) AS col2
----
1
94

query I rowsort
SELECT + 9 + - 66 + + 17 * 18 * 50 * - - 36
----
550743

query I rowsort
SELECT - 15 - + - 73
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL 33 + 56 + - + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL 33 + 56 + - + COUNT ( * )
----
88

query I rowsort
SELECT DISTINCT NULLIF ( + - 71, - - 79 * + 15 ) AS col0
----
-71

query I rowsort
SELECT ALL + 20 + + 98 * - - 39 + - - 46 + + 16 AS col1
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT DISTINCT SUM( 53 )
----
53

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT SUM ( 53 )
----
53

query I rowsort
SELECT - 97 * 29 AS col0
----
-2813

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT - SUM( + - 65 ) + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9043
SELECT - SUM ( + - 65 ) + COUNT ( * )
----
66

query I rowsort
SELECT + 85 - 17 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT - CAST( MIN( - CASE + 11 WHEN 13 THEN + 96 END ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT - CAST ( MIN ( - CASE + 11 WHEN 13 THEN + 96 END ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT + COUNT( * ) - + 20 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9046
SELECT + COUNT ( * ) - + 20 AS col0
----
-19

query I rowsort
SELECT - 19 * + 83
----
-1577

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT - 89 * COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-9048
SELECT - 89 * COUNT ( * )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT ALL CAST( NULL AS SIGNED ) + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL CAST ( NULL AS INTEGER ) + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT - - COUNT( * ) - - 40
----
41

skipif mysql # not compatible
query I rowsort label-9050
SELECT - - COUNT ( * ) - - 40
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL + ( COUNT( * ) ) + 86 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL + ( COUNT ( * ) ) + 86 AS col2
----
87

query I rowsort
SELECT - + 46 - - 47
----
1

query I rowsort
SELECT ALL + + 25 * - 8
----
-200

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT + COUNT( * ) AS col1, - COUNT( ALL + + ( - 72 ) ) + + 35 AS col2
----
1
34

skipif mysql # not compatible
query II rowsort label-9054
SELECT + COUNT ( * ) AS col1, - COUNT ( ALL + + ( - 72 ) ) + + 35 AS col2
----
1
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9055
SELECT ALL + + 8 AS col1, 37 DIV - + COALESCE ( + 40, 86, ( - SUM( - 83 ) ) ) AS col1
----
8
0

skipif mysql # not compatible
query II rowsort label-9055
SELECT ALL + + 8 AS col1, 37 / - + COALESCE ( + 40, 86, ( - SUM ( - 83 ) ) ) AS col1
----
8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT + + COALESCE ( NULLIF ( 71, - COUNT( * ) + - + AVG ( 92 ) ), 53 + + - 47 * - 62 )
----
71

skipif mysql # not compatible
query I rowsort label-9056
SELECT + + COALESCE ( NULLIF ( 71, - COUNT ( * ) + - + AVG ( 92 ) ), 53 + + - 47 * - 62 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT - 35 + + COUNT( * ) + + - 67 + 67 + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-9057
SELECT - 35 + + COUNT ( * ) + + - 67 + 67 + - COUNT ( * )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT - - 13 DIV + 48 + - ( + - 38 ) - 27 * - 59
----
1631

skipif mysql # not compatible
query I rowsort label-9058
SELECT - - 13 / + 48 + - ( + - 38 ) - 27 * - 59
----
1631

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT + + 47 * + COUNT( + 39 ) + - + 62 + + + 69 * - 89 AS col2
----
-6156

skipif mysql # not compatible
query I rowsort label-9059
SELECT + + 47 * + COUNT ( + 39 ) + - + 62 + + + 69 * - 89 AS col2
----
-6156

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT + COUNT( * ) - + 5 + - 48
----
-52

skipif mysql # not compatible
query I rowsort label-9060
SELECT + COUNT ( * ) - + 5 + - 48
----
-52

query I rowsort
SELECT ALL 88 * 47
----
4136

query I rowsort
SELECT - - 20 * - 57 * - ( 20 )
----
22800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9063
SELECT + MIN( ALL 63 ) DIV 50 + - ( - MAX( - 65 ) ) + - 48 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-9063
SELECT + MIN ( ALL 63 ) / 50 + - ( - MAX ( - 65 ) ) + - 48 AS col0
----
-112

query I rowsort
SELECT DISTINCT 6 * - - 42 * + ( + 97 )
----
24444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT - ( CAST( + ( + 77 ) AS SIGNED ) ) * + 5 * - 40 - - 90 + + 92
----
15582

skipif mysql # not compatible
query I rowsort label-9065
SELECT - ( CAST ( + ( + 77 ) AS INTEGER ) ) * + 5 * - 40 - - 90 + + 92
----
15582

query II rowsort
SELECT ALL 87 * + - 80, 21 AS col0
----
-6960
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT ALL - COALESCE ( 7, - CAST( + 50 AS SIGNED ) * + 62 + + 90 ) * - 91 AS col0
----
637

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL - COALESCE ( 7, - CAST ( + 50 AS INTEGER ) * + 62 + + 90 ) * - 91 AS col0
----
637

query I rowsort
SELECT DISTINCT - 5 * + + 25 AS col2
----
-125

query II rowsort
SELECT ALL + 73 AS col1, 27 AS col0
----
73
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9070
SELECT ALL + 76, + MIN( ALL - - 37 ) + - + 67 * - ( + - 18 ) AS col0
----
76
-1169

skipif mysql # not compatible
query II rowsort label-9070
SELECT ALL + 76, + MIN ( ALL - - 37 ) + - + 67 * - ( + - 18 ) AS col0
----
76
-1169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9071
SELECT + CAST( - CASE 8 WHEN + 15 * 71 * 54 / - 18 THEN NULL WHEN - + COUNT( * ) THEN - - MAX( 18 ) * - + 27 + 84 ELSE + 52 + - NULLIF ( + - CASE + COUNT( ALL - 30 ) WHEN ( + 12 ) * 3 + + 64 + - 22 + CAST( + + COUNT( * ) AS SIGNED ) + 13 * + 26 * + 34 THEN + 2 * - COUNT( * ) ELSE - COUNT( * ) + - - 72 - - 38 + - - ( ( - 85 ) ) * + COUNT( * ) * - 97 + - 79 END, + 18 ) END AS SIGNED ), - 11 AS col1
----
-8327
-11

skipif mysql # not compatible
query II rowsort label-9071
SELECT + CAST ( - CASE 8 WHEN + 15 * 71 * 54 / - 18 THEN NULL WHEN - + COUNT ( * ) THEN - - MAX ( 18 ) * - + 27 + 84 ELSE + 52 + - NULLIF ( + - CASE + COUNT ( ALL - 30 ) WHEN ( + 12 ) * 3 + + 64 + - 22 + CAST ( + + COUNT ( * ) AS INTEGER ) + 13 * + 26 * + 34 THEN + 2 * - COUNT ( * ) ELSE - COUNT ( * ) + - - 72 - - 38 + - - ( ( - 85 ) ) * + COUNT ( * ) * - 97 + - 79 END, + 18 ) END AS INTEGER ), - 11 AS col1
----
-8327
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9072
SELECT + 51 * - + COALESCE ( + + 82, - - 24 DIV - COUNT( * ) + - COUNT( * ) ) AS col0
----
-4182

skipif mysql # not compatible
query I rowsort label-9072
SELECT + 51 * - + COALESCE ( + + 82, - - 24 / - COUNT ( * ) + - COUNT ( * ) ) AS col0
----
-4182

query I rowsort
SELECT + 10 * 11 * 61 AS col2
----
6710

query I rowsort
SELECT + 16 + - 33
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9075
SELECT - ( + CASE SUM( - + COALESCE ( + COALESCE ( + CAST( NULL AS SIGNED ), - - 5 * + 52 ), - 54 ) ) WHEN - 74 THEN + + 24 ELSE NULL END ) AS col2, 70 * 60 col1
----
NULL
4200

skipif mysql # not compatible
query II rowsort label-9075
SELECT - ( + CASE SUM ( - + COALESCE ( + COALESCE ( + CAST ( NULL AS INTEGER ), - - 5 * + 52 ), - 54 ) ) WHEN - 74 THEN + + 24 ELSE NULL END ) AS col2, 70 * 60 col1
----
NULL
4200

query I rowsort
SELECT ALL 74 + + 48 + + 32 * + - 16
----
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9077
SELECT 75 AS col2, + 93 * + 8 - 64 + + - COUNT( * ) - CAST( NULL AS SIGNED ) * + 14
----
75
NULL

skipif mysql # not compatible
query II rowsort label-9077
SELECT 75 AS col2, + 93 * + 8 - 64 + + - COUNT ( * ) - CAST ( NULL AS INTEGER ) * + 14
----
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9078
SELECT ALL 57 col2, + MIN( DISTINCT 86 ) - - CASE + 64 WHEN - COUNT( * ) THEN - 72 END - CAST( + CAST( + + 40 AS SIGNED ) AS SIGNED ) / - 96 AS col1
----
57
NULL

skipif mysql # not compatible
query II rowsort label-9078
SELECT ALL 57 col2, + MIN ( DISTINCT 86 ) - - CASE + 64 WHEN - COUNT ( * ) THEN - 72 END - CAST ( + CAST ( + + 40 AS INTEGER ) AS INTEGER ) / - 96 AS col1
----
57
NULL

query II rowsort
SELECT - 13, 17 AS col2
----
-13
17

query I rowsort
SELECT 63 * - ( - 54 ) col2
----
3402

query II rowsort
SELECT - 67, 79 - + 64 AS col1
----
-67
15

query I rowsort
SELECT ALL 55 + 63
----
118

query I rowsort
SELECT 46 - 13 col0
----
33

query I rowsort
SELECT + 73 - - - 54 AS col2
----
19

onlyif mysql # aggregate syntax: 
query III rowsort label-9085
SELECT DISTINCT - 31 + 8, COUNT( - 72 ) AS col2, + 33 + + 79 AS col2
----
-23
1
112

skipif mysql # not compatible
query III rowsort label-9085
SELECT DISTINCT - 31 + 8, COUNT ( - 72 ) AS col2, + 33 + + 79 AS col2
----
-23
1
112

onlyif mysql # aggregate syntax: 
query II rowsort label-9086
SELECT ALL COUNT( * ) AS col0, 39 AS col1
----
1
39

skipif mysql # not compatible
query II rowsort label-9086
SELECT ALL COUNT ( * ) AS col0, 39 AS col1
----
1
39

query II rowsort
SELECT ALL 2, 12 AS col0
----
2
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT + 39 + 81 DIV - + 99
----
39

skipif mysql # not compatible
query I rowsort label-9088
SELECT + 39 + 81 / - + 99
----
39

query I rowsort
SELECT DISTINCT 9 - + - 9 * 80 * + - 90 * 13 col0
----
-842391

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ( 41 ) + - - MAX( DISTINCT 21 ) * - ( - 0 )
----
41

skipif mysql # not compatible
query I rowsort label-9090
SELECT ( 41 ) + - - MAX ( DISTINCT 21 ) * - ( - 0 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT DISTINCT + 19 col0, + SUM( + - 4 ) + - + COUNT( * ) - - + 51 + 35 + + 20
----
19
101

skipif mysql # not compatible
query II rowsort label-9091
SELECT DISTINCT + 19 col0, + SUM ( + - 4 ) + - + COUNT ( * ) - - + 51 + 35 + + 20
----
19
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT + 97 * - SUM( 5 ) AS col2
----
-485

skipif mysql # not compatible
query I rowsort label-9092
SELECT + 97 * - SUM ( 5 ) AS col2
----
-485

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT ALL 36 DIV 12
----
3

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL 36 / 12
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9094
SELECT - 6 DIV 60 * - 7
----
0

skipif mysql # not compatible
query I rowsort label-9094
SELECT - 6 / 60 * - 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT - COUNT( + 16 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9095
SELECT - COUNT ( + 16 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9096
SELECT ALL 75 AS col0, - 7 + + COUNT( * ) AS col1
----
75
-6

skipif mysql # not compatible
query II rowsort label-9096
SELECT ALL 75 AS col0, - 7 + + COUNT ( * ) AS col1
----
75
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT DISTINCT + + CASE - 1 WHEN - COUNT( - 92 ) THEN NULL WHEN + - 47 * - 38 * + NULLIF ( + 91, + + ( + 62 ) - - + 93 ) THEN + 83 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT + + CASE - 1 WHEN - COUNT ( - 92 ) THEN NULL WHEN + - 47 * - 38 * + NULLIF ( + 91, + + ( + 62 ) - - + 93 ) THEN + 83 END * + COUNT ( * )
----
NULL

query I rowsort
SELECT 70 * + - 63 AS col0
----
-4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9099
SELECT - 18 DIV + - 77 + + 18 + + 7 + + ( + COUNT( 24 ) ) col0
----
26

skipif mysql # not compatible
query I rowsort label-9099
SELECT - 18 / + - 77 + + 18 + + 7 + + ( + COUNT ( 24 ) ) col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL + - COUNT( * ) - 40 * - 68 AS col2
----
2719

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL + - COUNT ( * ) - 40 * - 68 AS col2
----
2719

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT + 55 * - - COUNT( ALL NULLIF ( - + 39, - 46 ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9101
SELECT + 55 * - - COUNT ( ALL NULLIF ( - + 39, - 46 ) ) AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9102
SELECT + - 50 AS col2, + 7 * CAST( 65 AS SIGNED )
----
-50
455

skipif mysql # not compatible
query II rowsort label-9102
SELECT + - 50 AS col2, + 7 * CAST ( 65 AS INTEGER )
----
-50
455

query II rowsort
SELECT DISTINCT - ( - 25 ) AS col0, 24 * - 46 * + 16 AS col2
----
25
-17664

query I rowsort
SELECT 41 * COALESCE ( - + 35, - + 53, + ( - + 16 ) ) AS col0
----
-1435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9105
SELECT ALL - 1 + + - NULLIF ( + CAST( 79 AS SIGNED ), + + COUNT( * ) ) + + COUNT( DISTINCT - + 97 ) + - 45 * 89 + - 5 - - 72 * - 55 * + 83 AS col0
----
-332769

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL - 1 + + - NULLIF ( + CAST ( 79 AS INTEGER ), + + COUNT ( * ) ) + + COUNT ( DISTINCT - + 97 ) + - 45 * 89 + - 5 - - 72 * - 55 * + 83 AS col0
----
-332769

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT 64 * COUNT( * ) - + - 24
----
88

skipif mysql # not compatible
query I rowsort label-9106
SELECT 64 * COUNT ( * ) - + - 24
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL - MIN( DISTINCT - 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL - MIN ( DISTINCT - 67 ) AS col1
----
67

query I rowsort
SELECT 18 * + 4
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT ALL - CAST( + 86 AS SIGNED ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL - CAST ( + 86 AS INTEGER ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL - ( ( + - 12 ) ) + CASE - SUM( + 3 ) WHEN + + 28 + ( - ( MAX( DISTINCT 55 ) ) ) THEN ( - 35 ) WHEN 81 THEN + SUM( ALL 60 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL - ( ( + - 12 ) ) + CASE - SUM ( + 3 ) WHEN + + 28 + ( - ( MAX ( DISTINCT 55 ) ) ) THEN ( - 35 ) WHEN 81 THEN + SUM ( ALL 60 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 74 + - 42
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT COUNT( 0 ) * - COUNT( * ) - - + 41 * + - 34 * + + 93 * + COUNT( * ) - - 52 AS col2
----
-129591

skipif mysql # not compatible
query I rowsort label-9112
SELECT COUNT ( 0 ) * - COUNT ( * ) - - + 41 * + - 34 * + + 93 * + COUNT ( * ) - - 52 AS col2
----
-129591

query I rowsort
SELECT ALL - 2 + - ( - 10 ) + 97 + - + 33 AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT 91 - + + COUNT( * ) + - - 32 AS col2, + 12
----
122
12

skipif mysql # not compatible
query II rowsort label-9114
SELECT 91 - + + COUNT ( * ) + - - 32 AS col2, + 12
----
122
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL MAX( ( - - 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL MAX ( ( - - 97 ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL 40 - - 90 * - - MIN( - + 24 )
----
-2120

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL 40 - - 90 * - - MIN ( - + 24 )
----
-2120

query I rowsort
SELECT + NULLIF ( 44, - 13 + 35 * - 15 * - 78 ) AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9118
SELECT CAST( - 48 AS SIGNED ) * ( 59 ) DIV - 26
----
108

skipif mysql # not compatible
query I rowsort label-9118
SELECT CAST ( - 48 AS INTEGER ) * ( 59 ) / - 26
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-9119
SELECT COUNT( * ) + + 57 + + COUNT( * ) AS col2, ( - 82 )
----
59
-82

skipif mysql # not compatible
query II rowsort label-9119
SELECT COUNT ( * ) + + 57 + + COUNT ( * ) AS col2, ( - 82 )
----
59
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9120
SELECT ALL + MAX( DISTINCT + 22 ), - 53 AS col0
----
22
-53

skipif mysql # not compatible
query II rowsort label-9120
SELECT ALL + MAX ( DISTINCT + 22 ), - 53 AS col0
----
22
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT 49 * + + CAST( - 9 AS SIGNED ) AS col0
----
-441

skipif mysql # not compatible
query I rowsort label-9121
SELECT 49 * + + CAST ( - 9 AS INTEGER ) AS col0
----
-441

query I rowsort
SELECT - 64 * + + 73
----
-4672

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT DISTINCT + MIN( - 27 ) * + 90 AS col0
----
-2430

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT + MIN ( - 27 ) * + 90 AS col0
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT COUNT( * ) * + + ( + + 61 ) col1
----
61

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT COUNT ( * ) * + + ( + + 61 ) col1
----
61

query I rowsort
SELECT - 53 - + - 95 + 24 AS col1
----
66

query I rowsort
SELECT ALL - NULLIF ( - 75, + 14 ) AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9127
SELECT - + CASE WHEN - 96 IS NULL THEN NULL ELSE + 13 * + 22 * - NULLIF ( + 44, - 39 ) * + COUNT( * ) + COUNT( * ) * - 13 DIV MAX( DISTINCT 18 ) END * + 11 * - - 27 + + + 19 - - 9 + 28 - - COUNT( * ) + COUNT( - + 44 ) DIV 49 AS col0
----
3737505

skipif mysql # not compatible
query I rowsort label-9127
SELECT - + CASE WHEN - 96 IS NULL THEN NULL ELSE + 13 * + 22 * - NULLIF ( + 44, - 39 ) * + COUNT ( * ) + COUNT ( * ) * - 13 / MAX ( DISTINCT 18 ) END * + 11 * - - 27 + + + 19 - - 9 + 28 - - COUNT ( * ) + COUNT ( - + 44 ) / 49 AS col0
----
3737505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9128
SELECT 2 + - 54 * + - ( + 70 ) + 99 - - 66 + - 2 + + MIN( - 15 ) + + + 67 DIV ( + 41 ) AS col2
----
3931

skipif mysql # not compatible
query I rowsort label-9128
SELECT 2 + - 54 * + - ( + 70 ) + 99 - - 66 + - 2 + + MIN ( - 15 ) + + + 67 / ( + 41 ) AS col2
----
3931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9129
SELECT + 24, 70 * + NULLIF ( CAST( NULL AS SIGNED ), 45 + + 0 * + + 35 ) * + COUNT( ALL + 48 ) * - - COUNT( * ) + NULLIF ( - ( + + COUNT( * ) ), - + 68 ) + - ( + MIN( - 50 ) ) AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-9129
SELECT + 24, 70 * + NULLIF ( CAST ( NULL AS INTEGER ), 45 + + 0 * + + 35 ) * + COUNT ( ALL + 48 ) * - - COUNT ( * ) + NULLIF ( - ( + + COUNT ( * ) ), - + 68 ) + - ( + MIN ( - 50 ) ) AS col2
----
24
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT 41 DIV MIN( ALL 72 ) DIV - 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-9130
SELECT 41 / MIN ( ALL 72 ) / - 90 col1
----
0

query I rowsort
SELECT ( - 29 ) + - + 46
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL + COUNT( + 86 ) * - 65 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + COUNT ( + 86 ) * - 65 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT 69 * + 92 + - 91 AS col2, + 32 + COUNT( * ) * + COUNT( * ) + 21 - ( + 60 ) AS col1
----
6257
-6

skipif mysql # not compatible
query II rowsort label-9133
SELECT 69 * + 92 + - 91 AS col2, + 32 + COUNT ( * ) * + COUNT ( * ) + 21 - ( + 60 ) AS col1
----
6257
-6

query I rowsort
SELECT 57 - + - 39 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT + NULLIF ( - - ( 82 ), MIN( - + 5 ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9135
SELECT + NULLIF ( - - ( 82 ), MIN ( - + 5 ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL MAX( ALL + 81 ) * SUM( ALL + + 63 ) + - COUNT( * ) * + 13 + - + 2 AS col0
----
5088

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL MAX ( ALL + 81 ) * SUM ( ALL + + 63 ) + - COUNT ( * ) * + 13 + - + 2 AS col0
----
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT - 80 + - - COUNT( * ) + - + 66
----
-145

skipif mysql # not compatible
query I rowsort label-9137
SELECT - 80 + - - COUNT ( * ) + - + 66
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT - ( + 75 ) * - - ( - + ( - - 73 ) ) + + 40 + + - 80 + - 67 * + ( COUNT( * ) ) * 24 AS col2
----
3827

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT - ( + 75 ) * - - ( - + ( - - 73 ) ) + + 40 + + - 80 + - 67 * + ( COUNT ( * ) ) * 24 AS col2
----
3827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9139
SELECT ALL 41 * + CASE - - 33 WHEN + 10 THEN - 90 / CAST( 9 AS SIGNED ) / + 59 * + 61 * + NULLIF ( - + ( 69 ), - 63 ) + + 70 * 70 / MIN( + - 50 ) END + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL 41 * + CASE - - 33 WHEN + 10 THEN - 90 / CAST ( 9 AS INTEGER ) / + 59 * + 61 * + NULLIF ( - + ( 69 ), - 63 ) + + 70 * 70 / MIN ( + - 50 ) END + + 92
----
NULL

query I rowsort
SELECT - 44 * - 66 AS col1
----
2904

query II rowsort
SELECT ALL + 17, - 2 AS col0
----
17
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9142
SELECT - 38 + - - ( - + COUNT( * ) ) * + 32 DIV SUM( 88 ) + + + 13 col0
----
-25

skipif mysql # not compatible
query I rowsort label-9142
SELECT - 38 + - - ( - + COUNT ( * ) ) * + 32 / SUM ( 88 ) + + + 13 col0
----
-25

query I rowsort
SELECT ALL + 25 * 11
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL - COUNT( ALL 22 ) - - ( 7 )
----
6

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL - COUNT ( ALL 22 ) - - ( 7 )
----
6

query II rowsort
SELECT - 21 AS col0, 36 * + + 43 AS col2
----
-21
1548

query II rowsort
SELECT ALL + 36 AS col1, - 23 * 9 AS col2
----
36
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9147
SELECT 34 * CAST( + + 41 AS SIGNED ) + CAST( NULL AS SIGNED ) * - MAX( ALL + 79 ) AS col2, + 16 * 58
----
NULL
928

skipif mysql # not compatible
query II rowsort label-9147
SELECT 34 * CAST ( + + 41 AS INTEGER ) + CAST ( NULL AS INTEGER ) * - MAX ( ALL + 79 ) AS col2, + 16 * 58
----
NULL
928

onlyif mysql # DIV for integer division: 
query I rowsort label-9148
SELECT - 12 DIV + + 17 col2
----
0

skipif mysql # not compatible
query I rowsort label-9148
SELECT - 12 / + + 17 col2
----
0

query I rowsort
SELECT - + 59 + 11 col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT ALL + - COALESCE ( + 33, + 91, - + 42 + + + 49 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL + - COALESCE ( + 33, + 91, - + 42 + + + 49 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 73 + + 76
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT - + 15 DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-9152
SELECT - + 15 / + - 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT + - 35 * - 75 + - ( + 4 ) - - CAST( NULL AS SIGNED ) + + + 12 * + 97 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT + - 35 * - 75 + - ( + 4 ) - - CAST ( NULL AS INTEGER ) + + + 12 * + 97 * 28
----
NULL

query I rowsort
SELECT - - 24 + + 89 AS col1
----
113

query I rowsort
SELECT ALL - ( - 82 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9156
SELECT - COUNT( * ) DIV - COUNT( * ) + + 98 + - 8 * + 60 * - COALESCE ( - 85, 69 * - COUNT( * ) * 22, - 49 * + COALESCE ( COUNT( * ), - 36 * - 62 - - ( - - 68 ) ) + + CAST( NULL AS SIGNED ) ) + - + ( + 97 ) * + + 77 col0
----
-48170

skipif mysql # not compatible
query I rowsort label-9156
SELECT - COUNT ( * ) / - COUNT ( * ) + + 98 + - 8 * + 60 * - COALESCE ( - 85, 69 * - COUNT ( * ) * 22, - 49 * + COALESCE ( COUNT ( * ), - 36 * - 62 - - ( - - 68 ) ) + + CAST ( NULL AS INTEGER ) ) + - + ( + 97 ) * + + 77 col0
----
-48170

query I rowsort
SELECT DISTINCT NULLIF ( 23, + 93 * - 93 ) AS col1
----
23

query II rowsort
SELECT 14 AS col2, - 7 + - - 0
----
14
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT + - MIN( + 99 ) + + 67 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9159
SELECT + - MIN ( + 99 ) + + 67 AS col2
----
-32

query I rowsort
SELECT ALL - 77 + - 87 - COALESCE ( + NULLIF ( 68, + 31 ), - - 6 ) AS col2
----
-232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9161
SELECT - CASE 89 WHEN + 47 THEN + ( 65 ) * + 67 WHEN + - ( - COUNT( * ) ) THEN - SUM( - - CAST( + 20 AS SIGNED ) ) * + 42 END * 78 * 36 + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT - CASE 89 WHEN + 47 THEN + ( 65 ) * + 67 WHEN + - ( - COUNT ( * ) ) THEN - SUM ( - - CAST ( + 20 AS INTEGER ) ) * + 42 END * 78 * 36 + 87
----
NULL

query I rowsort
SELECT + + 8 + - 86
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT CAST( + ( - 87 ) AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9163
SELECT CAST ( + ( - 87 ) AS INTEGER ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT + NULLIF ( + COUNT( * ), MAX( DISTINCT - 96 ) ) AS col0, + 5 col1
----
1
5

skipif mysql # not compatible
query II rowsort label-9164
SELECT + NULLIF ( + COUNT ( * ), MAX ( DISTINCT - 96 ) ) AS col0, + 5 col1
----
1
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9165
SELECT ALL 25 / - ( - 27 ) * + - 1 + + + CASE MAX( DISTINCT + + 48 ) WHEN 42 + + COUNT( * ) THEN 40 WHEN ( 36 ) + - 85 THEN - CASE + 54 WHEN - CAST( NULL AS SIGNED ) * - ( CAST( + 33 AS SIGNED ) ) THEN - 76 END WHEN - + COUNT( * ) THEN NULL END + - + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL 25 / - ( - 27 ) * + - 1 + + + CASE MAX ( DISTINCT + + 48 ) WHEN 42 + + COUNT ( * ) THEN 40 WHEN ( 36 ) + - 85 THEN - CASE + 54 WHEN - CAST ( NULL AS INTEGER ) * - ( CAST ( + 33 AS INTEGER ) ) THEN - 76 END WHEN - + COUNT ( * ) THEN NULL END + - + 3 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9166
SELECT ( + CASE - 3 WHEN + MIN( + + 33 ) / 24 THEN + + SUM( + + ( - - 7 ) ) * - - 87 - - - 85 + + + CASE + CASE + CASE - 40 WHEN - 28 / + 84 / - AVG ( - 88 ) - - + COUNT( * ) THEN + - CAST( NULL AS SIGNED ) END WHEN + 96 * + COUNT( * ) THEN NULL ELSE - + 98 + - - NULLIF ( - 84, - + COALESCE ( 36, - - COUNT( ALL 1 ) * + - 96 - + + ( + 56 ) ) ) END WHEN 88 THEN NULL ELSE + + COALESCE ( 96, - + 60 / + 85 ) END * - + 34 * + - 16 + + - 7 WHEN 25 THEN + MAX( + 6 ) * 8 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT ( + CASE - 3 WHEN + MIN ( + + 33 ) / 24 THEN + + SUM ( + + ( - - 7 ) ) * - - 87 - - - 85 + + + CASE + CASE + CASE - 40 WHEN - 28 / + 84 / - AVG ( - 88 ) - - + COUNT ( * ) THEN + - CAST ( NULL AS INTEGER ) END WHEN + 96 * + COUNT ( * ) THEN NULL ELSE - + 98 + - - NULLIF ( - 84, - + COALESCE ( 36, - - COUNT ( ALL 1 ) * + - 96 - + + ( + 56 ) ) ) END WHEN 88 THEN NULL ELSE + + COALESCE ( 96, - + 60 / + 85 ) END * - + 34 * + - 16 + + - 7 WHEN 25 THEN + MAX ( + 6 ) * 8 END ) AS col0
----
NULL

query I rowsort
SELECT + ( + NULLIF ( - 17, - 4 ) ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL ( + MAX( - + 69 ) ) * 24 AS col2
----
-1656

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL ( + MAX ( - + 69 ) ) * 24 AS col2
----
-1656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9169
SELECT ALL + 2 * NULLIF ( + 63, 15 * + 26 - 24 ) + + - NULLIF ( + + CASE + + 35 WHEN + CAST( NULL AS SIGNED ) THEN + - 29 * - SUM( ALL ( - + 46 ) ) WHEN - 45 * + 86 + 41 + + - 92 * + + ( + 80 ) * - COUNT( * ) + + 22 * - - 91 THEN 33 END, + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL + 2 * NULLIF ( + 63, 15 * + 26 - 24 ) + + - NULLIF ( + + CASE + + 35 WHEN + CAST ( NULL AS INTEGER ) THEN + - 29 * - SUM ( ALL ( - + 46 ) ) WHEN - 45 * + 86 + 41 + + - 92 * + + ( + 80 ) * - COUNT ( * ) + + 22 * - - 91 THEN 33 END, + 89 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT - CAST( 39 AS SIGNED ) * + 58
----
-2262

skipif mysql # not compatible
query I rowsort label-9170
SELECT - CAST ( 39 AS INTEGER ) * + 58
----
-2262

onlyif mysql # DIV for integer division: 
query I rowsort label-9171
SELECT ALL 56 DIV 34 * + + 75 * - 93 AS col2
----
-6975

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL 56 / 34 * + + 75 * - 93 AS col2
----
-6975

query I rowsort
SELECT - 87 * 59 - + 6 - 92 AS col1
----
-5231

query II rowsort
SELECT DISTINCT - 11 * + - 59 AS col0, + ( + ( - ( 11 ) ) ) AS col0
----
649
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9174
SELECT ( + 44 ) AS col1, + CAST( + - 0 AS SIGNED ) AS col1
----
44
0

skipif mysql # not compatible
query II rowsort label-9174
SELECT ( + 44 ) AS col1, + CAST ( + - 0 AS INTEGER ) AS col1
----
44
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9175
SELECT ALL - 75 * 60 - + - ( - 17 ) * - 28 * ( - 17 ) * CAST( NULL AS SIGNED ) * MAX( - - 62 ) - + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-9175
SELECT ALL - 75 * 60 - + - ( - 17 ) * - 28 * ( - 17 ) * CAST ( NULL AS INTEGER ) * MAX ( - - 62 ) - + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) AS col2, 36
----
NULL
36

query I rowsort
SELECT + 14 * - 61 * 78
----
-66612

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL COUNT( * ) * 90 - 19 + - MIN( DISTINCT + + 77 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL COUNT ( * ) * 90 - 19 + - MIN ( DISTINCT + + 77 ) AS col2
----
-6

query I rowsort
SELECT + + 19 * 73
----
1387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9179
SELECT - + 13 * + + 12 + CAST( NULL AS SIGNED ) * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT - + 13 * + + 12 + CAST ( NULL AS INTEGER ) * - 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9180
SELECT + NULLIF ( - + CAST( - COUNT( * ) AS SIGNED ), 39 / + 45 - NULLIF ( + CASE - 84 WHEN 72 + + COUNT( * ) + 91 * - - 64 THEN + COUNT( * ) - 4 WHEN - - 23 * 79 + + - 10 * - + 68 * - + COUNT( * ) + + 74 * 81 THEN + 93 / 20 ELSE NULL END, - COUNT( * ) ) ) * 4 + + ( + ( - + COUNT( * ) ) ) * + 42 * + - 1 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9180
SELECT + NULLIF ( - + CAST ( - COUNT ( * ) AS INTEGER ), 39 / + 45 - NULLIF ( + CASE - 84 WHEN 72 + + COUNT ( * ) + 91 * - - 64 THEN + COUNT ( * ) - 4 WHEN - - 23 * 79 + + - 10 * - + 68 * - + COUNT ( * ) + + 74 * 81 THEN + 93 / 20 ELSE NULL END, - COUNT ( * ) ) ) * 4 + + ( + ( - + COUNT ( * ) ) ) * + 42 * + - 1 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT - SUM( - - ( + 79 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-9181
SELECT - SUM ( - - ( + 79 ) )
----
-79

query I rowsort
SELECT - 86 * - 92 AS col0
----
7912

query I rowsort
SELECT DISTINCT COALESCE ( 37, 34 ) AS col0
----
37

query I rowsort
SELECT ALL + - 41 * + 44 col0
----
-1804

query I rowsort
SELECT DISTINCT - + CASE + 13 WHEN - 60 THEN NULL WHEN - 84 THEN + 57 ELSE NULL END * 22 col2
----
NULL

query I rowsort
SELECT - + ( + 14 ) AS col0
----
-14

query I rowsort
SELECT ALL + 6 + + ( 63 ) - + 2 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT - MAX( + + 22 ) - NULLIF ( + COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT - MAX ( + + 22 ) - NULLIF ( + COUNT ( * ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT - ( - - 69 ) AS col2, COUNT( * ) AS col2
----
-69
1

skipif mysql # not compatible
query II rowsort label-9189
SELECT - ( - - 69 ) AS col2, COUNT ( * ) AS col2
----
-69
1

query I rowsort
SELECT ALL + 57 + 70 + - + 86 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9191
SELECT - 2 + + COUNT( * ), - COUNT( * ) DIV - 61 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-9191
SELECT - 2 + + COUNT ( * ), - COUNT ( * ) / - 61 AS col0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT DISTINCT + - 86 + 1 + - - 52 + COUNT( * ) * - 31 + 0
----
-64

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT + - 86 + 1 + - - 52 + COUNT ( * ) * - 31 + 0
----
-64

query I rowsort
SELECT ALL 23 + - 60 + + + 17 - + 20
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT COUNT( * ) - - ( - 29 )
----
-28

skipif mysql # not compatible
query I rowsort label-9194
SELECT COUNT ( * ) - - ( - 29 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9195
SELECT ALL 29 AS col1, COUNT( * ) * COUNT( * ) AS col1
----
29
1

skipif mysql # not compatible
query II rowsort label-9195
SELECT ALL 29 AS col1, COUNT ( * ) * COUNT ( * ) AS col1
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT + 88 + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT + 88 + COUNT ( * )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9197
SELECT ALL 33, CASE - CAST( NULL AS SIGNED ) WHEN - 35 THEN + + 52 - + 67 + MAX( ALL - - CAST( + 14 AS SIGNED ) ) ELSE + - 78 END + ( - 60 ) + + 36 DIV - - 18 + + - 70 * - 95 AS col0
----
33
6514

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL 33, CASE - CAST ( NULL AS INTEGER ) WHEN - 35 THEN + + 52 - + 67 + MAX ( ALL - - CAST ( + 14 AS INTEGER ) ) ELSE + - 78 END + ( - 60 ) + + 36 / - - 18 + + - 70 * - 95 AS col0
----
33
6514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT ALL + ( 88 ) - + + 99 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + ( 88 ) - + + 99 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 27 * - 54
----
-1458

query I rowsort
SELECT 37 + 23 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9201
SELECT ALL 15 * + 9 * MAX( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL 15 * + 9 * MAX ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT - 14 * - 32 * + 86 * - 92 * SUM( DISTINCT + + 57 ) + 45 + - - 73 AS col0
----
-202040714

skipif mysql # not compatible
query I rowsort label-9202
SELECT - 14 * - 32 * + 86 * - 92 * SUM ( DISTINCT + + 57 ) + 45 + - - 73 AS col0
----
-202040714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT CAST( + 57 AS SIGNED ) - - COALESCE ( - 67, - 67 ) + MIN( ALL 55 )
----
45

skipif mysql # not compatible
query I rowsort label-9203
SELECT CAST ( + 57 AS INTEGER ) - - COALESCE ( - 67, - 67 ) + MIN ( ALL 55 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9204
SELECT + COUNT( * ) * + 62 + + 51 DIV - - 20 + + 84 * + 80 + - 38 AS col1
----
6746

skipif mysql # not compatible
query I rowsort label-9204
SELECT + COUNT ( * ) * + 62 + + 51 / - - 20 + + 84 * + 80 + - 38 AS col1
----
6746

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT ALL 9 - + 41 + + CAST( AVG ( - - 71 ) AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL 9 - + 41 + + CAST ( AVG ( - - 71 ) AS INTEGER )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9206
SELECT ALL - 36 AS col2, CAST( 49 AS SIGNED ) * - + 89 * - 93
----
-36
405573

skipif mysql # not compatible
query II rowsort label-9206
SELECT ALL - 36 AS col2, CAST ( 49 AS INTEGER ) * - + 89 * - 93
----
-36
405573

query I rowsort
SELECT 72 * + 26
----
1872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT CASE - CAST( - - 16 AS SIGNED ) WHEN - - 48 * + 52 THEN - + CAST( - 99 AS SIGNED ) WHEN 55 + 54 THEN + + 94 ELSE NULL END + + 5 + + - ( - - 95 ) + 46 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT CASE - CAST ( - - 16 AS INTEGER ) WHEN - - 48 * + 52 THEN - + CAST ( - 99 AS INTEGER ) WHEN 55 + 54 THEN + + 94 ELSE NULL END + + 5 + + - ( - - 95 ) + 46 + + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL - SUM( + 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - SUM ( + 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT COUNT( * ) * - 89 * 61 + - 51 + + + 9 + + - 55 AS col0
----
-5526

skipif mysql # not compatible
query I rowsort label-9210
SELECT COUNT ( * ) * - 89 * 61 + - 51 + + + 9 + + - 55 AS col0
----
-5526

query I rowsort
SELECT 52 * 72
----
3744

query I rowsort
SELECT DISTINCT + 71 * + - 69 AS col1
----
-4899

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL COUNT( * ) * - 8 * + - 93 + 12
----
756

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL COUNT ( * ) * - 8 * + - 93 + 12
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL - 2 + + ( + CAST( + + 44 AS SIGNED ) ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - 2 + + ( + CAST ( + + 44 AS INTEGER ) ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9215
SELECT - - COUNT( * ) AS col2, 82 * - 88
----
1
-7216

skipif mysql # not compatible
query II rowsort label-9215
SELECT - - COUNT ( * ) AS col2, 82 * - 88
----
1
-7216

query I rowsort
SELECT ALL - - 76 + 11 * - COALESCE ( - 69, - 29 ) * - + 30
----
-22694

query I rowsort
SELECT DISTINCT 76 + 63
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL + COUNT( * ) + - 25 - - + 28 * 47 AS col2
----
1292

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + COUNT ( * ) + - 25 - - + 28 * 47 AS col2
----
1292

query I rowsort
SELECT 1 + + 15
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 42 * + 46 + + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 42 * + 46 + + 83 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9221
SELECT COALESCE ( - 70, + - COUNT( * ) * - + COUNT( * ) + - 45 ) + 25 - 21 + - 12 DIV 20 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9221
SELECT COALESCE ( - 70, + - COUNT ( * ) * - + COUNT ( * ) + - 45 ) + 25 - 21 + - 12 / 20 AS col2
----
-66

query I rowsort
SELECT ALL + 94 + + 25 * 86 + + 95 AS col2
----
2339

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT ALL - - 21 DIV + 70 + - + 4 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - - 21 / + 70 + - + 4 AS col0
----
-4

query I rowsort
SELECT 37 + - + 1 AS col2
----
36

query II rowsort
SELECT - 71, 34 AS col2
----
-71
34

query II rowsort
SELECT ALL 73, 94 AS col0
----
73
94

query I rowsort
SELECT 47 + + + 54
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT ALL + CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 11 * + 79
----
-869

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT 57 + - - 21 * + 15 * - + COUNT( * )
----
-258

skipif mysql # not compatible
query I rowsort label-9230
SELECT 57 + - - 21 * + 15 * - + COUNT ( * )
----
-258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT 27 * - + ( + COUNT( * ) ) DIV MAX( DISTINCT + 46 ) - + - 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9231
SELECT 27 * - + ( + COUNT ( * ) ) / MAX ( DISTINCT + 46 ) - + - 7 AS col1
----
7

query II rowsort
SELECT 43 AS col0, + 10 * - - ( - - 48 ) AS col2
----
43
480

query I rowsort
SELECT 76 * - 1 AS col1
----
-76

query II rowsort
SELECT DISTINCT 90, 2 * - 97 AS col2
----
90
-194

query II rowsort
SELECT 24 col0, 46 AS col1
----
24
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT DISTINCT + 66 * - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT + 66 * - COUNT ( * ) AS col2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT 72 DIV - - 19 * + 1
----
3

skipif mysql # not compatible
query I rowsort label-9237
SELECT 72 / - - 19 * + 1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT DISTINCT 3 DIV - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT 3 / - 50 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9239
SELECT DISTINCT - NULLIF ( 81, + CAST( + COUNT( - 16 ) AS DECIMAL ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT - NULLIF ( 81, + CAST ( + COUNT ( - 16 ) AS REAL ) ) AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9240
SELECT COUNT( * ) AS col1, CAST( 19 AS SIGNED ) + + 93
----
1
112

skipif mysql # not compatible
query II rowsort label-9240
SELECT COUNT ( * ) AS col1, CAST ( 19 AS INTEGER ) + + 93
----
1
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT SUM( ALL - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9241
SELECT SUM ( ALL - 98 ) AS col1
----
-98

query I rowsort
SELECT 0 * - 52
----
0

query II rowsort
SELECT ALL 75 + - + 69 - + - NULLIF ( + 52, - - 41 ) * 70 AS col1, + 84
----
3646
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT + - 10 / + CAST( NULL AS SIGNED ) - + 81 * 25 * - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT + - 10 / + CAST ( NULL AS INTEGER ) - + 81 * 25 * - 86 AS col1
----
NULL

query I rowsort
SELECT 16 + - - ( + 95 ) AS col0
----
111

query I rowsort
SELECT ALL + 42 * - 29
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - MIN( ALL + - 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9247
SELECT - MIN ( ALL + - 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9248
SELECT ALL - + 32 + - + ( + COUNT( * ) ) * 16 col2, 49
----
-48
49

skipif mysql # not compatible
query II rowsort label-9248
SELECT ALL - + 32 + - + ( + COUNT ( * ) ) * 16 col2, 49
----
-48
49

query I rowsort
SELECT ALL + 92 + - 65 + + 51 + + - 58 * - + 20 AS col2
----
1238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT - CAST( 64 AS SIGNED ) * - 44 + - 50 - 61 AS col0
----
2705

skipif mysql # not compatible
query I rowsort label-9250
SELECT - CAST ( 64 AS INTEGER ) * - 44 + - 50 - 61 AS col0
----
2705

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT 70 DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9251
SELECT 70 / - 98 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT - 8 - CAST( - 90 AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9252
SELECT - 8 - CAST ( - 90 AS INTEGER ) AS col2
----
82

query II rowsort
SELECT - 40 AS col1, - 75
----
-40
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT SUM( - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9254
SELECT SUM ( - 44 ) AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT DISTINCT - 98 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT - 98 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT - COUNT( ALL + 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9256
SELECT - COUNT ( ALL + 96 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT ALL - ( - 33 ) DIV + - 36 * + + 2
----
0

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - ( - 33 ) / + - 36 * + + 2
----
0

query I rowsort
SELECT DISTINCT + 96 - - - 84 + - 33 * + 3 * - - 25 + - - 69 + + 29 * + + 38
----
-1292

query II rowsort
SELECT 89 AS col2, 28 AS col1
----
89
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL - + SUM( - 24 ) * - 24 * + ( - + 55 ) col0
----
31680

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - + SUM ( - 24 ) * - 24 * + ( - + 55 ) col0
----
31680

query I rowsort
SELECT + 69 - + - 79 * - 17 col1
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT + COUNT( * ) + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-9262
SELECT + COUNT ( * ) + - 15
----
-14

query I rowsort
SELECT + 15 * - - ( 46 )
----
690

query I rowsort
SELECT DISTINCT - 98 * + 66 AS col0
----
-6468

query I rowsort
SELECT - ( + 41 ) - + 59 AS col0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9266
SELECT ALL + 7 DIV - COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL + 7 / - COUNT ( * ) AS col1
----
-7

query I rowsort
SELECT - 44 + 16 + + 65 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9268
SELECT - 37 DIV - - MAX( - + 88 ) + ( + COUNT( * ) ) + + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9268
SELECT - 37 / - - MAX ( - + 88 ) + ( + COUNT ( * ) ) + + 83 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL 49 * - + ( + - MAX( ALL - 33 ) ) + - 48 AS col2
----
-1665

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL 49 * - + ( + - MAX ( ALL - 33 ) ) + - 48 AS col2
----
-1665

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT 81 * - + COUNT( * ) + - 96
----
-177

skipif mysql # not compatible
query I rowsort label-9270
SELECT 81 * - + COUNT ( * ) + - 96
----
-177

query I rowsort
SELECT - 14 - + 54 * + 51
----
-2768

query I rowsort
SELECT - 26 * - + 82
----
2132

query I rowsort
SELECT DISTINCT 80 * 98 + + 71 * - 98
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9274
SELECT DISTINCT - + COALESCE ( + 61, COUNT( * ) * 16, COUNT( * ) + - COUNT( * ) * - 58, + - 27 * COALESCE ( + 89, + 99, - + CAST( + - 48 AS SIGNED ) ) + + 52 ) * + COUNT( * ) * 79 + - + 12 - + 16 - 74 * - - 14 * + COUNT( * ) + + + COUNT( * ) AS col2, 88
----
-5882
88

skipif mysql # not compatible
query II rowsort label-9274
SELECT DISTINCT - + COALESCE ( + 61, COUNT ( * ) * 16, COUNT ( * ) + - COUNT ( * ) * - 58, + - 27 * COALESCE ( + 89, + 99, - + CAST ( + - 48 AS INTEGER ) ) + + 52 ) * + COUNT ( * ) * 79 + - + 12 - + 16 - 74 * - - 14 * + COUNT ( * ) + + + COUNT ( * ) AS col2, 88
----
-5882
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT - COUNT( * ) * - + 87 - - 1 + + - 81 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - COUNT ( * ) * - + 87 - - 1 + + - 81 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL - 19 * - 89 + CASE + + 46 WHEN + 29 * - + 31 * + CAST( - 75 AS SIGNED ) THEN + 43 WHEN 44 + + - COUNT( * ) + 63 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - 19 * - 89 + CASE + + 46 WHEN + 29 * - + 31 * + CAST ( - 75 AS INTEGER ) THEN + 43 WHEN 44 + + - COUNT ( * ) + 63 THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + COUNT( * ) * - 0 + ( 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9277
SELECT + COUNT ( * ) * - 0 + ( 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT + MAX( + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9278
SELECT + MAX ( + 66 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9279
SELECT - + 39 + - - 58 AS col2, 23 * + COALESCE ( 91, - COUNT( * ) - 76 ) AS col0
----
19
2093

skipif mysql # not compatible
query II rowsort label-9279
SELECT - + 39 + - - 58 AS col2, 23 * + COALESCE ( 91, - COUNT ( * ) - 76 ) AS col0
----
19
2093

query I rowsort
SELECT - + 80 * - 10
----
800

query I rowsort
SELECT ALL + 58 * 53 * 26 + - 47 + NULLIF ( 90, 31 + - 87 )
----
79967

query II rowsort
SELECT DISTINCT + 36 * + - 86 * - - 73, - 96 AS col1
----
-226008
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) - - MIN( DISTINCT + 46 ) + + - 61 * + 40
----
-2395

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) - - MIN ( DISTINCT + 46 ) + + - 61 * + 40
----
-2395

query I rowsort
SELECT + - 23 + 93
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT - 28 * + + COUNT( * ) * - - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9285
SELECT - 28 * + + COUNT ( * ) * - - COUNT ( * )
----
-28

query I rowsort
SELECT + 28 + - 19 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT COUNT( * ) * + 3 col2
----
3

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT COUNT ( * ) * + 3 col2
----
3

query I rowsort
SELECT ALL 86 * 51 * 0 * - 24 * 76
----
0

query I rowsort
SELECT + 38 * - 29 * 78 AS col2
----
-85956

query II rowsort
SELECT 63 AS col2, 2 AS col2
----
63
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT DISTINCT 85 + + 89 * + COUNT( DISTINCT - 98 ) * - - 36 * COUNT( * ) + + - 86 col2
----
3203

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT 85 + + 89 * + COUNT ( DISTINCT - 98 ) * - - 36 * COUNT ( * ) + + - 86 col2
----
3203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT - 14 + - 11 + - CAST( NULL AS SIGNED ) + - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT - 14 + - 11 + - CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL CASE + 98 WHEN NULLIF ( - 3, - + 16 ) THEN - 53 / + 14 * - COUNT( * ) * + COUNT( * ) / + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL CASE + 98 WHEN NULLIF ( - 3, - + 16 ) THEN - 53 / + 14 * - COUNT ( * ) * + COUNT ( * ) / + 42 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9294
SELECT - CAST( 38 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-9294
SELECT - CAST ( 38 AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT 32 + - MAX( DISTINCT - + 79 ) - 95 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT 32 + - MAX ( DISTINCT - + 79 ) - 95 AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9296
SELECT ALL COALESCE ( + + 79, + + 69 ) DIV 69 DIV - + COALESCE ( + + 78, - 30 + + COALESCE ( - CASE + - 31 WHEN 4 * - COUNT( * ) THEN + + ( + 36 ) WHEN + 8 THEN - COUNT( + 4 ) END, + COALESCE ( - 91, + 62, 37 + 53, + 50 ) * - 71 * - COUNT( DISTINCT - 7 ) + + + 7 * + 33 + CASE + 75 WHEN + - 29 THEN - 66 * - CASE + ( + 31 ) WHEN - 56 * - SUM( + - 99 ) * 51 + - CASE - - 62 WHEN 80 THEN NULL ELSE + - 52 END THEN - 65 ELSE NULL END ELSE NULL END ) ) + COUNT( * ) + 53
----
54

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL COALESCE ( + + 79, + + 69 ) / 69 / - + COALESCE ( + + 78, - 30 + + COALESCE ( - CASE + - 31 WHEN 4 * - COUNT ( * ) THEN + + ( + 36 ) WHEN + 8 THEN - COUNT ( + 4 ) END, + COALESCE ( - 91, + 62, 37 + 53, + 50 ) * - 71 * - COUNT ( DISTINCT - 7 ) + + + 7 * + 33 + CASE + 75 WHEN + - 29 THEN - 66 * - CASE + ( + 31 ) WHEN - 56 * - SUM ( + - 99 ) * 51 + - CASE - - 62 WHEN 80 THEN NULL ELSE + - 52 END THEN - 65 ELSE NULL END ELSE NULL END ) ) + COUNT ( * ) + 53
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT DISTINCT - + 24 DIV - + 56 + - SUM( - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT - + 24 / - + 56 + - SUM ( - 96 )
----
96

query I rowsort
SELECT + ( - - 94 ) col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9299
SELECT 28 * - 88 + + MIN( - 97 ) + + - 90 DIV 77
----
-2562

skipif mysql # not compatible
query I rowsort label-9299
SELECT 28 * - 88 + + MIN ( - 97 ) + + - 90 / 77
----
-2562

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT DISTINCT + 79 DIV 93 + + 95 col1
----
95

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + 79 / 93 + + 95 col1
----
95

query I rowsort
SELECT + + 59 * + - 72 * ( + - 43 ) AS col2
----
182664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT ALL - + 39 / 19 * + + 68 + - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - + 39 / 19 * + + 68 + - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9303
SELECT - COUNT( * ) * + ( - ( - CAST( 24 AS SIGNED ) ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9303
SELECT - COUNT ( * ) * + ( - ( - CAST ( 24 AS INTEGER ) ) ) AS col2
----
-24

query I rowsort
SELECT - 52 * + + 88
----
-4576

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9305
SELECT ALL CAST( NULL AS DECIMAL ) * 41 + + + 17 * - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL CAST ( NULL AS REAL ) * 41 + + + 17 * - 42 AS col0
----
NULL

query I rowsort
SELECT ALL 26 - 11
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT ALL - AVG ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL - AVG ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT ALL - + 14 - 85 + + + NULLIF ( + 28, - + CAST( NULL AS SIGNED ) * 12 + - 98 )
----
-71

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - + 14 - 85 + + + NULLIF ( + 28, - + CAST ( NULL AS INTEGER ) * 12 + - 98 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9309
SELECT - 79 DIV COUNT( * ) DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-9309
SELECT - 79 / COUNT ( * ) / + - 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9310
SELECT ALL - CASE + + ( + 4 ) WHEN - 78 THEN - 14 + 75 * 76 + + 42 ELSE NULL END AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9310
SELECT ALL - CASE + + ( + 4 ) WHEN - 78 THEN - 14 + 75 * 76 + + 42 ELSE NULL END AS col1, COUNT ( * ) AS col2
----
NULL
1

query II rowsort
SELECT NULLIF ( + - 94, 79 * + - 90 * + - 21 ) - - - 12 AS col1, + 29 + 69
----
-106
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9312
SELECT ALL - COUNT( * ) AS col0, 60 AS col0
----
-1
60

skipif mysql # not compatible
query II rowsort label-9312
SELECT ALL - COUNT ( * ) AS col0, 60 AS col0
----
-1
60

query I rowsort
SELECT 50 + - 55 - 7 + + 84 AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT DISTINCT 51 * + + CAST( + 68 AS SIGNED )
----
3468

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT 51 * + + CAST ( + 68 AS INTEGER )
----
3468

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT + ( - COUNT( * ) ) * 32 col1
----
-32

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT + ( - COUNT ( * ) ) * 32 col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL COUNT( ALL 99 ) + + COUNT( * ) + - 25 + - 95 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL COUNT ( ALL 99 ) + + COUNT ( * ) + - 25 + - 95 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT MIN( 27 ) + 29 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9317
SELECT MIN ( 27 ) + 29 AS col2
----
56

query I rowsort
SELECT 81 + 39 + + 9 AS col1
----
129

query I rowsort
SELECT 16 * - 89 AS col2
----
-1424

query I rowsort
SELECT DISTINCT - 63 + + 20 + ( - - COALESCE ( - 3, - 23 ) ) * - 23 col1
----
26

query I rowsort
SELECT 6 + - 47 * NULLIF ( - - 33, - - 62 ) AS col2
----
-1545

query I rowsort
SELECT ALL 84 * 58 AS col0
----
4872

query I rowsort
SELECT 45 + - + 95 * + 4 AS col2
----
-335

query I rowsort
SELECT DISTINCT 26 * - + 42 * - 3 * + 64 * + 28
----
5870592

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT + 75 + - MAX( DISTINCT - - 98 )
----
-23

skipif mysql # not compatible
query I rowsort label-9325
SELECT + 75 + - MAX ( DISTINCT - - 98 )
----
-23

query II rowsort
SELECT 24 + - + 23, - 75 AS col1
----
1
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT 38 * - - CAST( NULL AS SIGNED ) + + 37 - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT 38 * - - CAST ( NULL AS INTEGER ) + + 37 - 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT - 79 / + CASE - ( + - ( - COUNT( ALL + 53 ) ) ) WHEN 54 THEN NULL WHEN - 98 THEN - + COUNT( * ) END * - - 22 - 71 - - NULLIF ( - + 65, - - COUNT( * ) ) * + + 36 + COUNT( * ) + + 51 + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT - 79 / + CASE - ( + - ( - COUNT ( ALL + 53 ) ) ) WHEN 54 THEN NULL WHEN - 98 THEN - + COUNT ( * ) END * - - 22 - 71 - - NULLIF ( - + 65, - - COUNT ( * ) ) * + + 36 + COUNT ( * ) + + 51 + - 62 AS col0
----
NULL

query I rowsort
SELECT ALL - + 94 col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT - MAX( 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - MAX ( 93 ) AS col2
----
-93

query I rowsort
SELECT - 16 * + 17 AS col2
----
-272

query II rowsort
SELECT 49 + - 27 AS col1, - 86
----
22
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT ALL - NULLIF ( 30, + COUNT( * ) + 24 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - NULLIF ( 30, + COUNT ( * ) + 24 ) AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT ALL 81 + 20 + + 45 + ( + + CAST( NULL AS SIGNED ) ) - 95 * - + 5 + + 55 * + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL 81 + 20 + + 45 + ( + + CAST ( NULL AS INTEGER ) ) - 95 * - + 5 + + 55 * + 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT 72 + 31 + + COALESCE ( - 14, NULLIF ( + + 23, + + 89 * - 87 + + 16 ), + COUNT( ALL + - NULLIF ( - - 86, - 8 * - - 89 ) ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9336
SELECT 72 + 31 + + COALESCE ( - 14, NULLIF ( + + 23, + + 89 * - 87 + + 16 ), + COUNT ( ALL + - NULLIF ( - - 86, - 8 * - - 89 ) ) ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT DISTINCT - 39 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT - 39 / 64
----
0

query I rowsort
SELECT DISTINCT - 66 + + 3
----
-63

query I rowsort
SELECT 85 * 94 AS col1
----
7990

query I rowsort
SELECT ALL + 94 + + 67 + + ( + - ( + - 96 ) ) * 11 AS col0
----
1217

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT COUNT( * ) + - 18 col0
----
-17

skipif mysql # not compatible
query I rowsort label-9341
SELECT COUNT ( * ) + - 18 col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT COUNT( * ) + + 8 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9342
SELECT COUNT ( * ) + + 8 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT DISTINCT MIN( 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT MIN ( 91 ) AS col1
----
91

query II rowsort
SELECT ALL 99, 88 AS col2
----
99
88

query I rowsort
SELECT ALL - ( + + 94 ) + + - 90 * - 73 + - 13
----
6463

query I rowsort
SELECT 97 * COALESCE ( - + 36, + 40 ) AS col2
----
-3492

query I rowsort
SELECT DISTINCT 32 + 89 AS col1
----
121

query I rowsort
SELECT ALL - 59 * + 49
----
-2891

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT DISTINCT MIN( + + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT MIN ( + + 20 ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9350
SELECT 87 * - + ( - COALESCE ( - 98, - + 44 * + - 59, + - COALESCE ( - 5, + - COUNT( * ) + + 38, - 52 ) DIV - CAST( - COUNT( * ) AS SIGNED ) ) ) AS col1
----
-8526

skipif mysql # not compatible
query I rowsort label-9350
SELECT 87 * - + ( - COALESCE ( - 98, - + 44 * + - 59, + - COALESCE ( - 5, + - COUNT ( * ) + + 38, - 52 ) / - CAST ( - COUNT ( * ) AS INTEGER ) ) ) AS col1
----
-8526

query I rowsort
SELECT ALL + 86 - 10
----
76

query I rowsort
SELECT 0 * 80 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9353
SELECT 6 DIV COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9353
SELECT 6 / COUNT ( * ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 87 - - 7 * + 27
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT + 89 DIV + 34 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9356
SELECT + 89 / + 34 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT ALL - ( - 13 ) DIV 41 col0
----
0

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - ( - 13 ) / 41 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT ALL + CAST( 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + CAST ( 92 AS INTEGER )
----
92

query I rowsort
SELECT ALL 77 * 49 AS col1
----
3773

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT - 53 DIV - ( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-9360
SELECT - 53 / - ( - 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT + 59 * COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9361
SELECT + 59 * COUNT ( * ) AS col2
----
59

query I rowsort
SELECT ALL 23 * 98
----
2254

query I rowsort
SELECT NULLIF ( 35, 51 ) col1
----
35

query I rowsort
SELECT + 35 * - 84
----
-2940

query I rowsort
SELECT - 41 * + 47 - - 5
----
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT + MIN( - ( - 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9366
SELECT + MIN ( - ( - 0 ) )
----
0

query I rowsort
SELECT + 82 + 91 AS col2
----
173

query I rowsort
SELECT ALL 87 * 77
----
6699

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + 99 * + SUM( + 87 * - 7 )
----
-60291

skipif mysql # not compatible
query I rowsort label-9369
SELECT + 99 * + SUM ( + 87 * - 7 )
----
-60291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT DISTINCT 9 * + ( + CAST( + 56 AS SIGNED ) ) + 59
----
563

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT 9 * + ( + CAST ( + 56 AS INTEGER ) ) + 59
----
563

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT DISTINCT MAX( ALL + 78 ) * 44 + 0 AS col2
----
3432

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT MAX ( ALL + 78 ) * 44 + 0 AS col2
----
3432

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL COUNT( * ) * - 43 + 36
----
-7

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL COUNT ( * ) * - 43 + 36
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT + 69 * COUNT( + 47 )
----
69

skipif mysql # not compatible
query I rowsort label-9373
SELECT + 69 * COUNT ( + 47 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9374
SELECT DISTINCT ( 79 ) * + SUM( + 77 + - 98 ) + + CAST( NULL AS SIGNED ) * 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT ( 79 ) * + SUM ( + 77 + - 98 ) + + CAST ( NULL AS INTEGER ) * 98 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT SUM( ALL 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9375
SELECT SUM ( ALL 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT MAX( ALL + 51 ) col0
----
51

skipif mysql # not compatible
query I rowsort label-9376
SELECT MAX ( ALL + 51 ) col0
----
51

query I rowsort
SELECT + 33 * 67 AS col1
----
2211

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT - ( - CASE - CASE 30 WHEN - NULLIF ( - COUNT( ALL - 84 ), - SUM( DISTINCT + 44 ) ) THEN NULL ELSE - 3 END WHEN + ( + 94 ) + NULLIF ( 28 - 92 * 90, COUNT( * ) + COUNT( * ) ) THEN NULL WHEN 82 THEN - 17 WHEN COUNT( * ) * 27 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT - ( - CASE - CASE 30 WHEN - NULLIF ( - COUNT ( ALL - 84 ), - SUM ( DISTINCT + 44 ) ) THEN NULL ELSE - 3 END WHEN + ( + 94 ) + NULLIF ( 28 - 92 * 90, COUNT ( * ) + COUNT ( * ) ) THEN NULL WHEN 82 THEN - 17 WHEN COUNT ( * ) * 27 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT ALL 74 * + ( CAST( 35 AS SIGNED ) ) AS col2
----
2590

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL 74 * + ( CAST ( 35 AS INTEGER ) ) AS col2
----
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT - ( CASE 38 WHEN + 62 THEN - 93 WHEN - 95 / - COUNT( * ) + + 82 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT - ( CASE 38 WHEN + 62 THEN - 93 WHEN - 95 / - COUNT ( * ) + + 82 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9381
SELECT ALL - ( + 96 ) + + 66 DIV + CASE - COALESCE ( - CAST( NULL AS SIGNED ), - 45 ) DIV + 50 WHEN + COUNT( * ) THEN 6 WHEN ( 98 ) * + 25 - ( COUNT( ( 65 ) ) - CAST( 57 AS SIGNED ) * + ( 26 + 7 * - 86 ) ) THEN NULL ELSE + 22 - + 43 END col2
----
-99

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL - ( + 96 ) + + 66 / + CASE - COALESCE ( - CAST ( NULL AS INTEGER ), - 45 ) / + 50 WHEN + COUNT ( * ) THEN 6 WHEN ( 98 ) * + 25 - ( COUNT ( ( 65 ) ) - CAST ( 57 AS INTEGER ) * + ( 26 + 7 * - 86 ) ) THEN NULL ELSE + 22 - + 43 END col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT 26 - + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT 26 - + COUNT ( * )
----
25

query I rowsort
SELECT - 38 * + 7
----
-266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9384
SELECT ALL + MAX( 3 ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL + MAX ( 3 ) / + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL + COUNT( * ) - 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL + COUNT ( * ) - 58 AS col0
----
-57

query I rowsort
SELECT + 43 + 46 AS col0
----
89

query I rowsort
SELECT - 49 * + 39
----
-1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9388
SELECT - + 66 - - 76 * NULLIF ( - CASE + COALESCE ( + 5, 31 ) WHEN 38 THEN + CASE - 58 WHEN COUNT( * ) + 7 * 62 THEN - 99 * - ( + 50 / MIN( ALL + 69 * - 38 ) ) + 86 * 88 WHEN CAST( + 17 AS SIGNED ) + 73 / - ( CAST( NULL AS SIGNED ) ) THEN NULL END ELSE + 42 * 79 END * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ), + 73 * 95 + + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT - + 66 - - 76 * NULLIF ( - CASE + COALESCE ( + 5, 31 ) WHEN 38 THEN + CASE - 58 WHEN COUNT ( * ) + 7 * 62 THEN - 99 * - ( + 50 / MIN ( ALL + 69 * - 38 ) ) + 86 * 88 WHEN CAST ( + 17 AS INTEGER ) + 73 / - ( CAST ( NULL AS INTEGER ) ) THEN NULL END ELSE + 42 * 79 END * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), + 73 * 95 + + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT - + 8 * 83 AS col2
----
-664

query I rowsort
SELECT - - 97 + - 94
----
3

query I rowsort
SELECT - 5 * + 20
----
-100

query I rowsort
SELECT - + 22 + - 69
----
-91

query I rowsort
SELECT DISTINCT COALESCE ( - 72, + 87 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT - COUNT( 55 ) * + 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9394
SELECT - COUNT ( 55 ) * + 38 AS col1
----
-38

query I rowsort
SELECT - 59 + 47 AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT + + COUNT( ( 13 ) ) DIV + CASE - 40 + 40 WHEN - COUNT( - ( 37 ) ) THEN - 21 WHEN - 63 * ( - 34 ) THEN NULL ELSE 82 * + 98 + MIN( DISTINCT 12 ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT + + COUNT ( ( 13 ) ) / + CASE - 40 + 40 WHEN - COUNT ( - ( 37 ) ) THEN - 21 WHEN - 63 * ( - 34 ) THEN NULL ELSE 82 * + 98 + MIN ( DISTINCT 12 ) END AS col1
----
0

query I rowsort
SELECT - - 95 + ( 95 + - 88 )
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT + COALESCE ( 32, - 3 * - ( 32 DIV 39 ) - + 12 )
----
32

skipif mysql # not compatible
query I rowsort label-9398
SELECT + COALESCE ( 32, - 3 * - ( 32 / 39 ) - + 12 )
----
32

query I rowsort
SELECT + 20 * - ( - 89 ) + 6 * 24 AS col0
----
1924

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9400
SELECT ALL + - 38 DIV 7 + CAST( - 21 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL + - 38 / 7 + CAST ( - 21 AS INTEGER )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9401
SELECT ALL 15 DIV - 34 + 60 col0
----
60

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL 15 / - 34 + 60 col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT ALL 36 DIV 78 + - 43 * 0
----
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL 36 / 78 + - 43 * 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT DISTINCT - 72 DIV + 47 + + 31
----
30

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT - 72 / + 47 + + 31
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT ALL MAX( + + 37 ) * 40 AS col1
----
1480

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL MAX ( + + 37 ) * 40 AS col1
----
1480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9405
SELECT DISTINCT MIN( ALL + + 90 ) / 91 + - CASE - 32 WHEN 1 THEN + 46 * 37 WHEN CAST( NULL AS SIGNED ) + 74 THEN + 17 / 96 + ( 4 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT MIN ( ALL + + 90 ) / 91 + - CASE - 32 WHEN 1 THEN + 46 * 37 WHEN CAST ( NULL AS INTEGER ) + 74 THEN + 17 / 96 + ( 4 ) END AS col0
----
NULL

query I rowsort
SELECT + 36 * - 92 + 36 AS col0
----
-3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT - COALESCE ( - MIN( DISTINCT + 51 ), + 63, 69 + 55, 31 * - 58 + - 78 ) * + CAST( 55 + 22 AS SIGNED )
----
3927

skipif mysql # not compatible
query I rowsort label-9407
SELECT - COALESCE ( - MIN ( DISTINCT + 51 ), + 63, 69 + 55, 31 * - 58 + - 78 ) * + CAST ( 55 + 22 AS INTEGER )
----
3927

query I rowsort
SELECT + 92 * 0
----
0

query I rowsort
SELECT + 10 + 6 + 89 AS col0
----
105

query I rowsort
SELECT ALL 86 * + 99 + 19 AS col0
----
8533

query I rowsort
SELECT + ( + 53 ) AS col2
----
53

query I rowsort
SELECT 86 * + - 54 + 11 AS col0
----
-4633

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT SUM( 68 ) * + 87 - COALESCE ( - 54, - 3 * 57 )
----
5970

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT SUM ( 68 ) * + 87 - COALESCE ( - 54, - 3 * 57 )
----
5970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT 22 * - - NULLIF ( - CAST( 69 AS SIGNED ), - COUNT( * ) ) + + 81 AS col0
----
-1437

skipif mysql # not compatible
query I rowsort label-9414
SELECT 22 * - - NULLIF ( - CAST ( 69 AS INTEGER ), - COUNT ( * ) ) + + 81 AS col0
----
-1437

onlyif mysql # DIV for integer division: 
query I rowsort label-9415
SELECT + COALESCE ( - 18, 14 DIV 96 ) * 92
----
-1656

skipif mysql # not compatible
query I rowsort label-9415
SELECT + COALESCE ( - 18, 14 / 96 ) * 92
----
-1656

query I rowsort
SELECT + 32 + + 47 + - 11 * - 82
----
981

query I rowsort
SELECT 41 + 60 AS col1
----
101

query I rowsort
SELECT 45 * - - 64 * 8
----
23040

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT - COUNT( * ) * - CASE 93 WHEN - 77 * 89 - 57 THEN NULL ELSE MIN( DISTINCT - 71 ) * - 13 END
----
923

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT - COUNT ( * ) * - CASE 93 WHEN - 77 * 89 - 57 THEN NULL ELSE MIN ( DISTINCT - 71 ) * - 13 END
----
923

query I rowsort
SELECT ALL 77 * + + 56 AS col1
----
4312

query I rowsort
SELECT DISTINCT - 13 * 81 col2
----
-1053

query I rowsort
SELECT ALL NULLIF ( + 29, - 67 * 22 + 73 * 52 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - MIN( - 85 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-9423
SELECT - MIN ( - 85 ) col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9424
SELECT CASE CASE + 40 WHEN ( 7 ) + CAST( 37 + + 60 AS DECIMAL ) THEN + 65 + + 11 * + CAST( NULL AS SIGNED ) WHEN COALESCE ( 90, - 70 + + MIN( 98 + 54 ) ) THEN NULL ELSE - 15 END WHEN ( 43 ) * SUM( 54 ) THEN CASE + AVG ( ALL - CAST( NULL AS SIGNED ) ) WHEN - 89 THEN + ( 71 ) ELSE - ( CAST( 89 AS SIGNED ) ) END + - 26 / + 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT CASE CASE + 40 WHEN ( 7 ) + CAST ( 37 + + 60 AS REAL ) THEN + 65 + + 11 * + CAST ( NULL AS INTEGER ) WHEN COALESCE ( 90, - 70 + + MIN ( 98 + 54 ) ) THEN NULL ELSE - 15 END WHEN ( 43 ) * SUM ( 54 ) THEN CASE + AVG ( ALL - CAST ( NULL AS INTEGER ) ) WHEN - 89 THEN + ( 71 ) ELSE - ( CAST ( 89 AS INTEGER ) ) END + - 26 / + 46 END AS col0
----
NULL

query I rowsort
SELECT + 43 * 75 + 49 * 13
----
3862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9426
SELECT DISTINCT + + 39 DIV MIN( 70 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + + 39 / MIN ( 70 ) + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT DISTINCT + COUNT( * ) + + 96 + + NULLIF ( + 60, + COUNT( * ) + 8 ) * + 82
----
5017

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT + COUNT ( * ) + + 96 + + NULLIF ( + 60, + COUNT ( * ) + 8 ) * + 82
----
5017

query I rowsort
SELECT DISTINCT + 47 + - 65
----
-18

query I rowsort
SELECT DISTINCT + - 34 + + 59 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL - NULLIF ( + 55, NULLIF ( 4, 39 ) + + CASE 63 WHEN + 61 * 17 + 78 THEN - SUM( 51 ) ELSE NULL END )
----
-55

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - NULLIF ( + 55, NULLIF ( 4, 39 ) + + CASE 63 WHEN + 61 * 17 + 78 THEN - SUM ( 51 ) ELSE NULL END )
----
-55

query I rowsort
SELECT + 59 * 34 AS col1
----
2006

query I rowsort
SELECT ALL + 3 + 94 + 54 * + 85 AS col1
----
4687

query II rowsort
SELECT DISTINCT - 24 AS col1, + 46
----
-24
46

query II rowsort
SELECT + 19 AS col2, + 78 col0
----
19
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT COUNT( * ) * + 74 * - 9 * 62
----
-41292

skipif mysql # not compatible
query I rowsort label-9435
SELECT COUNT ( * ) * + 74 * - 9 * 62
----
-41292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT 84 + 1 + + 80 * COALESCE ( + CAST( NULL AS SIGNED ) * 27, - 21 )
----
-1595

skipif mysql # not compatible
query I rowsort label-9436
SELECT 84 + 1 + + 80 * COALESCE ( + CAST ( NULL AS INTEGER ) * 27, - 21 )
----
-1595

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - COUNT( ALL - ( - 5 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - COUNT ( ALL - ( - 5 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL + 35 - - - NULLIF ( COUNT( ALL 65 ), + 45 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + 35 - - - NULLIF ( COUNT ( ALL 65 ), + 45 ) AS col1
----
34

query I rowsort
SELECT ALL ( + 44 ) * 72
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT DISTINCT + COUNT( * ) - 58 col0
----
-57

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + COUNT ( * ) - 58 col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9441
SELECT ALL - COUNT( * ), + 54 AS col1
----
-1
54

skipif mysql # not compatible
query II rowsort label-9441
SELECT ALL - COUNT ( * ), + 54 AS col1
----
-1
54

query II rowsort
SELECT + 43, 76 / CASE - ( + 12 ) WHEN + 26 THEN 71 + 27 END AS col1
----
43
NULL

query I rowsort
SELECT 90 * 87 AS col1
----
7830

query I rowsort
SELECT 97 - - 26 AS col1
----
123

query I rowsort
SELECT 0 * 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL COUNT( * ) * + 15 * + + 6 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL COUNT ( * ) * + 15 * + + 6 AS col0
----
90

query II rowsort
SELECT DISTINCT - 74 col2, + 42
----
-74
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT 36 * + + 67 + 93 + - MIN( + 61 )
----
2444

skipif mysql # not compatible
query I rowsort label-9448
SELECT 36 * + + 67 + 93 + - MIN ( + 61 )
----
2444

query I rowsort
SELECT DISTINCT + 46 * - + 18 col2
----
-828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9450
SELECT COUNT( * ) * + - ( + 97 ) DIV - 95
----
1

skipif mysql # not compatible
query I rowsort label-9450
SELECT COUNT ( * ) * + - ( + 97 ) / - 95
----
1

query I rowsort
SELECT ALL + NULLIF ( - 14, 13 ) * - ( + 19 )
----
266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9452
SELECT - CASE + 12 WHEN + COUNT( + 31 ) THEN NULL ELSE + 22 DIV + COUNT( * ) END * + 2 - - 25 DIV ( - COUNT( * ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-9452
SELECT - CASE + 12 WHEN + COUNT ( + 31 ) THEN NULL ELSE + 22 / + COUNT ( * ) END * + 2 - - 25 / ( - COUNT ( * ) ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9453
SELECT 43, 52 * + + CAST( + 58 AS SIGNED ) + 4 col0
----
43
3020

skipif mysql # not compatible
query II rowsort label-9453
SELECT 43, 52 * + + CAST ( + 58 AS INTEGER ) + 4 col0
----
43
3020

query I rowsort
SELECT ALL + 94 + 82
----
176

query I rowsort
SELECT + COALESCE ( + + 83, - 45, 85, 55 + - 32 ) - 10 * 54 AS col2
----
-457

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9456
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, + 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-9456
SELECT ALL + CAST ( NULL AS REAL ) AS col1, + 23
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT + 44 + - + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9457
SELECT + 44 + - + COUNT ( * ) AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9458
SELECT 6 DIV - 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9458
SELECT 6 / - 30 AS col2
----
0

query I rowsort
SELECT 93 + - 1 * - 86
----
179

query I rowsort
SELECT - 50 - 58 - - 88 + ( - 47 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT DISTINCT + COUNT( * ) + - - 40 + - - 45 - 69 * - 43 AS col1
----
3053

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT + COUNT ( * ) + - - 40 + - - 45 - 69 * - 43 AS col1
----
3053

query I rowsort
SELECT ALL - 68 + + 22 col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL 77 + + 36 * - 85 * CASE COUNT( * ) * + 34 WHEN - 39 * - 47 THEN 32 * + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL 77 + + 36 * - 85 * CASE COUNT ( * ) * + 34 WHEN - 39 * - 47 THEN 32 * + 22 END
----
NULL

query I rowsort
SELECT + 44 + + + 98
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL COUNT( * ) - ( 74 )
----
-73

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL COUNT ( * ) - ( 74 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-9466
SELECT + 58 AS col1, - COUNT( * ) AS col2
----
58
-1

skipif mysql # not compatible
query II rowsort label-9466
SELECT + 58 AS col1, - COUNT ( * ) AS col2
----
58
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9467
SELECT ALL - COUNT( * ) / - 90 * CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - COUNT ( * ) / - 90 * CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT MAX( ALL - - 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9468
SELECT MAX ( ALL - - 21 ) AS col1
----
21

query I rowsort
SELECT 10 * + 81 * 27 * + NULLIF ( 54, 15 ) AS col2
----
1180980

query I rowsort
SELECT ALL + 31 * + - 12
----
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT CAST( - 62 AS SIGNED ) * - + 35 * - 92 col2
----
-199640

skipif mysql # not compatible
query I rowsort label-9471
SELECT CAST ( - 62 AS INTEGER ) * - + 35 * - 92 col2
----
-199640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT + COALESCE ( 54, + + 90, - CAST( NULL AS SIGNED ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9472
SELECT + COALESCE ( 54, + + 90, - CAST ( NULL AS INTEGER ) ) AS col0
----
54

query II rowsort
SELECT ALL + ( + + 57 ) AS col2, 99 col1
----
57
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT - 3 DIV - - NULLIF ( + 52, + 26 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9474
SELECT - 3 / - - NULLIF ( + 52, + 26 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9475
SELECT - COUNT( * ) * + 18 DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-9475
SELECT - COUNT ( * ) * + 18 / - 29
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9476
SELECT - 52 * 11 * + CAST( 47 AS SIGNED ) + - CASE - 68 WHEN + 76 THEN 17 WHEN COALESCE ( COUNT( * ), + NULLIF ( 6, 2 * 22 ) ) THEN - 70 ELSE 28 END AS col0
----
-26912

skipif mysql # not compatible
query I rowsort label-9476
SELECT - 52 * 11 * + CAST ( 47 AS INTEGER ) + - CASE - 68 WHEN + 76 THEN 17 WHEN COALESCE ( COUNT ( * ), + NULLIF ( 6, 2 * 22 ) ) THEN - 70 ELSE 28 END AS col0
----
-26912

query I rowsort
SELECT DISTINCT - 14 * 19
----
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - 73 * MAX( DISTINCT - + 36 ) * - + 36
----
-94608

skipif mysql # not compatible
query I rowsort label-9478
SELECT - 73 * MAX ( DISTINCT - + 36 ) * - + 36
----
-94608

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9479
SELECT ALL 61 + - CASE - 1 WHEN + 40 THEN - CAST( 0 AS DECIMAL ) + - 50 END / 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL 61 + - CASE - 1 WHEN + 40 THEN - CAST ( 0 AS REAL ) + - 50 END / 2 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9480
SELECT ALL - + SUM( ALL 4 ) / 11 * + - 33 * CAST( NULL AS SIGNED ) + + ( ( 14 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL - + SUM ( ALL 4 ) / 11 * + - 33 * CAST ( NULL AS INTEGER ) + + ( ( 14 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9481
SELECT - 29 DIV 48 * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9481
SELECT - 29 / 48 * - 0 AS col2
----
0

query I rowsort
SELECT - ( - + 57 ) + - ( + + 62 ) col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT - NULLIF ( 2, - COUNT( * ) ) + - COALESCE ( 55, + NULLIF ( + 33, - 48 ) ) + + 64 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT - NULLIF ( 2, - COUNT ( * ) ) + - COALESCE ( 55, + NULLIF ( + 33, - 48 ) ) + + 64 AS col0
----
7

query I rowsort
SELECT ALL + ( + ( + - 25 ) ) + + 59 + 81
----
115

query I rowsort
SELECT DISTINCT - + 22 + + 48
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9486
SELECT - + COUNT( + ( + 28 ) ) DIV - 42 * - ( - COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9486
SELECT - + COUNT ( + ( + 28 ) ) / - 42 * - ( - COUNT ( * ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9487
SELECT + - 77 + - CAST( CASE - 27 WHEN 5 * 25 THEN SUM( 19 ) WHEN + COUNT( * ) + COUNT( * ) * COUNT( * ) THEN - 34 * COUNT( * ) END AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT + - 77 + - CAST ( CASE - 27 WHEN 5 * 25 THEN SUM ( 19 ) WHEN + COUNT ( * ) + COUNT ( * ) * COUNT ( * ) THEN - 34 * COUNT ( * ) END AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 61 + - + 40 * + 64 * 6 + 85
----
-15336

query I rowsort
SELECT ALL + + 92 + + + 27 - + 80
----
39

query I rowsort
SELECT ALL - NULLIF ( 46, + 72 * + AVG ( DISTINCT + 42 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - + ( - COALESCE ( 66, + COUNT( * ) * 60, + 52, 63 + - 51 ) ) col1
----
66

skipif mysql # not compatible
query I rowsort label-9491
SELECT - + ( - COALESCE ( 66, + COUNT ( * ) * 60, + 52, 63 + - 51 ) ) col1
----
66

query I rowsort
SELECT DISTINCT + 69 + + 76 + + 91 AS col1
----
236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9493
SELECT ALL + COUNT( * ) + + COUNT( * ) - - - COALESCE ( + 73, 8 * 95 - + AVG ( ALL - 35 + - 20 ) DIV MIN( DISTINCT 77 DIV - ( 35 DIV 24 ) + CASE NULLIF ( + 74, + 10 ) WHEN + 76 THEN 17 END ) ) * 78
----
-5692

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL + COUNT ( * ) + + COUNT ( * ) - - - COALESCE ( + 73, 8 * 95 - + AVG ( ALL - 35 + - 20 ) / MIN ( DISTINCT 77 / - ( 35 / 24 ) + CASE NULLIF ( + 74, + 10 ) WHEN + 76 THEN 17 END ) ) * 78
----
-5692

query I rowsort
SELECT + 14 * ( - - 93 ) col0
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT + CASE + + 56 WHEN + CASE + + MAX( 39 ) WHEN + 12 + 64 THEN + CASE + COUNT( * ) WHEN + COALESCE ( 57, + MAX( 23 ) ) THEN ( 58 ) ELSE NULL END * COUNT( - ( - 81 ) ) ELSE COUNT( * ) * 73 END * - 35 THEN NULL WHEN + 16 THEN - 31 / + 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT + CASE + + 56 WHEN + CASE + + MAX ( 39 ) WHEN + 12 + 64 THEN + CASE + COUNT ( * ) WHEN + COALESCE ( 57, + MAX ( 23 ) ) THEN ( 58 ) ELSE NULL END * COUNT ( - ( - 81 ) ) ELSE COUNT ( * ) * 73 END * - 35 THEN NULL WHEN + 16 THEN - 31 / + 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT ALL ( - ( - SUM( 87 ) ) ) - 88 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL ( - ( - SUM ( 87 ) ) ) - 88 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + 81 - 53 + - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9497
SELECT + 81 - 53 + - COUNT ( * ) AS col0
----
27

query I rowsort
SELECT + - 75 * 58 AS col1
----
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT 29 - CAST( NULL AS SIGNED ) * + MAX( DISTINCT 4 ) / + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT 29 - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT 4 ) / + 28 AS col1
----
NULL

query III rowsort
SELECT 67, ( - 32 ) AS col1, + - 88 col0
----
67
-32
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT ALL 75 DIV 40 * 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL 75 / 40 * 65 AS col2
----
65

query I rowsort
SELECT + 87 * + 75
----
6525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9503
SELECT DISTINCT 42 DIV - 49 * 40 * 90 DIV - 60 - - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT 42 / - 49 * 40 * 90 / - 60 - - COUNT ( * ) col2
----
1

query II rowsort
SELECT ALL + 74, 46 + + - 12 col1
----
74
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT 36 DIV 83 - 98
----
-98

skipif mysql # not compatible
query I rowsort label-9505
SELECT 36 / 83 - 98
----
-98

query I rowsort
SELECT + 51 * - 15 * - 85 AS col1
----
65025

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ( MIN( DISTINCT 17 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9507
SELECT ( MIN ( DISTINCT 17 ) ) AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT + CAST( NULL AS SIGNED ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT + CAST ( NULL AS INTEGER ) * - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL + MAX( - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + MAX ( - 50 ) AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT ALL 97 DIV - 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL 97 / - 58 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT + NULLIF ( 92, - COUNT( * ) * - COUNT( * ) )
----
92

skipif mysql # not compatible
query I rowsort label-9511
SELECT + NULLIF ( 92, - COUNT ( * ) * - COUNT ( * ) )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT - 9 DIV 32 * - 49
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT - 9 / 32 * - 49
----
0

query I rowsort
SELECT + 21 * - 28 AS col0
----
-588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9514
SELECT - ( + + 62 ) DIV - - 82 + - 71 + - - NULLIF ( - 6, - MAX( ALL + 24 ) ) + 20 * + 55 * - 91 + + CASE MIN( DISTINCT 84 ) + + 47 DIV + 86 WHEN MAX( + 67 ) THEN - ( + MAX( + 2 ) ) DIV 48 WHEN COUNT( * ) DIV + 97 THEN + 55 DIV + 90 + - COUNT( ( + 50 ) + - 65 ) ELSE - 74 END AS col0
----
-100251

skipif mysql # not compatible
query I rowsort label-9514
SELECT - ( + + 62 ) / - - 82 + - 71 + - - NULLIF ( - 6, - MAX ( ALL + 24 ) ) + 20 * + 55 * - 91 + + CASE MIN ( DISTINCT 84 ) + + 47 / + 86 WHEN MAX ( + 67 ) THEN - ( + MAX ( + 2 ) ) / 48 WHEN COUNT ( * ) / + 97 THEN + 55 / + 90 + - COUNT ( ( + 50 ) + - 65 ) ELSE - 74 END AS col0
----
-100251

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9515
SELECT + 97 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT + 97 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( + + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT NULLIF ( + COUNT( + 16 ), 58 * 21 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9517
SELECT NULLIF ( + COUNT ( + 16 ), 58 * 21 ) AS col0
----
1

query I rowsort
SELECT - 67 * 58
----
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - 39 * + 17 + 73 * + MIN( 25 )
----
1162

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - 39 * + 17 + 73 * + MIN ( 25 )
----
1162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9520
SELECT + - MAX( ALL - ( ( - 18 ) ) ) - + NULLIF ( + CASE + ( + MIN( 60 ) ) WHEN 19 THEN - 57 END, + COALESCE ( - AVG ( ALL - 11 ), - CASE 42 WHEN COUNT( * ) THEN + CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN + COUNT( * ) / + 53 WHEN + 67 THEN 97 END ELSE NULL END - + 83, + ( 53 ) * 27 ) ) / + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT + - MAX ( ALL - ( ( - 18 ) ) ) - + NULLIF ( + CASE + ( + MIN ( 60 ) ) WHEN 19 THEN - 57 END, + COALESCE ( - AVG ( ALL - 11 ), - CASE 42 WHEN COUNT ( * ) THEN + CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN + COUNT ( * ) / + 53 WHEN + 67 THEN 97 END ELSE NULL END - + 83, + ( 53 ) * 27 ) ) / + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - + 12 + - + 75 * - 86
----
6438

query I rowsort
SELECT ALL + ( - 20 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL + 6 * 44 * + COALESCE ( - COUNT( * ), - ( 71 ) ) * 22 + - NULLIF ( + ( - 77 ) + + COUNT( * ), - 31 * 29 ) * 67 + 92 * 32 AS col2
----
2228

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL + 6 * 44 * + COALESCE ( - COUNT ( * ), - ( 71 ) ) * 22 + - NULLIF ( + ( - 77 ) + + COUNT ( * ), - 31 * 29 ) * 67 + 92 * 32 AS col2
----
2228

query I rowsort
SELECT DISTINCT - ( + - 6 ) * - 38 + + + 30
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT + MAX( DISTINCT ( 90 ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9525
SELECT + MAX ( DISTINCT ( 90 ) ) AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9526
SELECT + + 84 * + 54 - 45 AS col2, CAST( + 14 AS SIGNED ) - 46 AS col0
----
4491
-32

skipif mysql # not compatible
query II rowsort label-9526
SELECT + + 84 * + 54 - 45 AS col2, CAST ( + 14 AS INTEGER ) - 46 AS col0
----
4491
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT + MIN( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT + MIN ( - 38 )
----
-38

query I rowsort
SELECT + 81 * 68 + - + CASE - - 32 WHEN + + 60 THEN NULL WHEN - AVG ( ALL 34 ) THEN 63 / - 40 ELSE NULL END
----
NULL

query I rowsort
SELECT - 56 * 42
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9530
SELECT ALL - COUNT( * ) * - NULLIF ( + 52, + 64 + CAST( NULL AS SIGNED ) + 24 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - COUNT ( * ) * - NULLIF ( + 52, + 64 + CAST ( NULL AS INTEGER ) + 24 ) AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9531
SELECT + + 5 DIV + - ( 49 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9531
SELECT + + 5 / + - ( 49 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + + 52 * ( + 24 ) + - 66
----
1182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9533
SELECT + - COUNT( * ) - MAX( ALL + + CAST( - 17 AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) * MIN( 95 / - CAST( 97 AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT + - COUNT ( * ) - MAX ( ALL + + CAST ( - 17 AS INTEGER ) ) * - CAST ( NULL AS REAL ) * MIN ( 95 / - CAST ( 97 AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT ALL - 24 * - + 86 + + 94 AS col2
----
2158

query I rowsort
SELECT DISTINCT - + 48 * 32
----
-1536

query I rowsort
SELECT ALL - ( - - 65 )
----
-65

query I rowsort
SELECT DISTINCT - - ( - - ( + 24 ) ) * + 39 * + + 21 + 58 AS col1
----
19714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9538
SELECT DISTINCT CAST( + 80 AS SIGNED ), - 68 AS col1
----
80
-68

skipif mysql # not compatible
query II rowsort label-9538
SELECT DISTINCT CAST ( + 80 AS INTEGER ), - 68 AS col1
----
80
-68

query I rowsort
SELECT ALL - 31 * - 71 * + 68
----
149668

query I rowsort
SELECT + 39 + + + 85
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT - 10 * - CAST( + ( - + AVG ( DISTINCT + 1 ) ) AS SIGNED ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9541
SELECT - 10 * - CAST ( + ( - + AVG ( DISTINCT + 1 ) ) AS INTEGER ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT + 16 + COUNT( * ) col1
----
17

skipif mysql # not compatible
query I rowsort label-9542
SELECT + 16 + COUNT ( * ) col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT 26 * + 37 * - + COUNT( * ) AS col2
----
-962

skipif mysql # not compatible
query I rowsort label-9543
SELECT 26 * + 37 * - + COUNT ( * ) AS col2
----
-962

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9544
SELECT DISTINCT 56 DIV - COUNT( * ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT 56 / - COUNT ( * ) col1
----
-56

query II rowsort
SELECT ALL - 71, 24 AS col0
----
-71
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL SUM( - 67 ) * + 66 * - CASE - NULLIF ( + 69, 89 ) WHEN 91 THEN 43 / + COUNT( * ) WHEN 15 - 54 THEN 60 WHEN - COUNT( * ) + 94 THEN + 14 * + 12 + - 87 END + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL SUM ( - 67 ) * + 66 * - CASE - NULLIF ( + 69, 89 ) WHEN 91 THEN 43 / + COUNT ( * ) WHEN 15 - 54 THEN 60 WHEN - COUNT ( * ) + 94 THEN + 14 * + 12 + - 87 END + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT ALL - 96 + + + ( + COUNT( * ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL - 96 + + + ( + COUNT ( * ) ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + COUNT( * ) + - 40 - 24 * + + 69
----
-1695

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + COUNT ( * ) + - 40 - 24 * + + 69
----
-1695

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL NULLIF ( - 64, COUNT( * ) ) + 27 + 36 + 53 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL NULLIF ( - 64, COUNT ( * ) ) + 27 + 36 + 53 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT 14 + MAX( + 8 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT 14 + MAX ( + 8 ) col0
----
22

query I rowsort
SELECT 51 * - 81
----
-4131

query I rowsort
SELECT ALL - + CASE 48 WHEN + 81 * - 58 THEN + 79 WHEN + - 66 + 24 THEN - 66 + 33 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT 35 * COUNT( * ) - - + 0
----
35

skipif mysql # not compatible
query I rowsort label-9553
SELECT 35 * COUNT ( * ) - - + 0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9554
SELECT ALL - 72 DIV + 54 + COALESCE ( + + 64, - 87 )
----
63

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL - 72 / + 54 + COALESCE ( + + 64, - 87 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9555
SELECT - 47 + + 20 + + COALESCE ( + COUNT( * ), - + 37 DIV 46 * 28 ) + 85
----
59

skipif mysql # not compatible
query I rowsort label-9555
SELECT - 47 + + 20 + + COALESCE ( + COUNT ( * ), - + 37 / 46 * 28 ) + 85
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL ( + COUNT( * ) ) + - 74 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL ( + COUNT ( * ) ) + - 74 AS col2
----
-73

query I rowsort
SELECT ALL + 2 + - ( - 41 ) AS col1
----
43

query I rowsort
SELECT + 69 + 27
----
96

query I rowsort
SELECT - 87 * 30 * + 91 + + - 75
----
-237585

onlyif mysql # aggregate syntax: 
query II rowsort label-9560
SELECT + 30 AS col1, + CASE 13 WHEN + 15 THEN NULL WHEN + 95 * - + 79 THEN NULL WHEN COUNT( * ) THEN - 69 + - 83 * - 92 END
----
30
NULL

skipif mysql # not compatible
query II rowsort label-9560
SELECT + 30 AS col1, + CASE 13 WHEN + 15 THEN NULL WHEN + 95 * - + 79 THEN NULL WHEN COUNT ( * ) THEN - 69 + - 83 * - 92 END
----
30
NULL

query I rowsort
SELECT + 36 * NULLIF ( + COALESCE ( + 43, + 55 ), - 1 ) AS col1
----
1548

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT - 86 - + - 12 + + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT - 86 - + - 12 + + COUNT ( * )
----
-73

query I rowsort
SELECT + 54 * + + 20 AS col0
----
1080

query I rowsort
SELECT 37 + - 36 AS col2
----
1

query II rowsort
SELECT DISTINCT 43 AS col2, 50 + - NULLIF ( - + 56, + 8 ) AS col1
----
43
106

query I rowsort
SELECT 86 * - COALESCE ( - COALESCE ( + + 47, + 63 ), 75 + + 10, 63, 19 - + 86 ) * + 69 + 65
----
278963

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT ALL + + 49 DIV + 46 col0
----
1

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + + 49 / + 46 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT 84 * - CAST( NULL AS SIGNED ) * - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT 84 * - CAST ( NULL AS INTEGER ) * - 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT 19 * COUNT( 54 )
----
19

skipif mysql # not compatible
query I rowsort label-9569
SELECT 19 * COUNT ( 54 )
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-9570
SELECT ALL + 72 DIV - 67 col2, - 89 * 71 col0
----
-1
-6319

skipif mysql # not compatible
query II rowsort label-9570
SELECT ALL + 72 / - 67 col2, - 89 * 71 col0
----
-1
-6319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9571
SELECT COUNT( * ) DIV 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9571
SELECT COUNT ( * ) / 14 AS col2
----
0

query I rowsort
SELECT 0 - + + 55 + + 44 * + 28 * + 93 * - 43 col2
----
-4926823

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL + COALESCE ( NULLIF ( 2, 56 * + + AVG ( - + 7 ) ), 74 * + 6, 44 * 50 ) + - COALESCE ( - 59 + - 26, COUNT( * ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + COALESCE ( NULLIF ( 2, 56 * + + AVG ( - + 7 ) ), 74 * + 6, 44 * 50 ) + - COALESCE ( - 59 + - 26, COUNT ( * ) ) AS col2
----
87

query I rowsort
SELECT 9 - + ( + 79 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT 19 * - CASE + 53 WHEN + + 3 THEN + 74 * 81 + + + ( + 79 ) - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT 19 * - CASE + 53 WHEN + + 3 THEN + 74 * 81 + + + ( + 79 ) - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT ALL - COALESCE ( 32, + - 49 + - + COUNT( * ) + - 13 DIV 16, - - 52 * + 62 ) + 59
----
27

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL - COALESCE ( 32, + - 49 + - + COUNT ( * ) + - 13 / 16, - - 52 * + 62 ) + 59
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT ALL - CAST( - + 8 AS SIGNED ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - CAST ( - + 8 AS INTEGER ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT - 82 + - + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT - 82 + - + COUNT ( * )
----
-83

query I rowsort
SELECT DISTINCT + NULLIF ( - 93, ( - + 87 ) * - 58 - + - 89 ) + - 37
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9580
SELECT DISTINCT + CASE + ( 86 ) WHEN - + 79 THEN - NULLIF ( - 77, + 85 * - COUNT( * ) + ( ( CAST( NULL AS SIGNED ) ) + - 89 / - 86 ) ) WHEN + 33 * - 52 THEN + 28 + 38 END + 42 / MIN( ALL ( - 39 ) + - 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT + CASE + ( 86 ) WHEN - + 79 THEN - NULLIF ( - 77, + 85 * - COUNT ( * ) + ( ( CAST ( NULL AS INTEGER ) ) + - 89 / - 86 ) ) WHEN + 33 * - 52 THEN + 28 + 38 END + 42 / MIN ( ALL ( - 39 ) + - 95 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9581
SELECT - 95 * 71 / 75 * - 45 * 32 * + 95 / + CASE + COUNT( ALL - 96 ) WHEN + 92 * SUM( ALL - 68 ) THEN + CAST( NULL AS DECIMAL ) ELSE NULL END * - 60 + - 32 * + 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT - 95 * 71 / 75 * - 45 * 32 * + 95 / + CASE + COUNT ( ALL - 96 ) WHEN + 92 * SUM ( ALL - 68 ) THEN + CAST ( NULL AS REAL ) ELSE NULL END * - 60 + - 32 * + 57 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT MIN( DISTINCT + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-9582
SELECT MIN ( DISTINCT + 92 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9583
SELECT ALL 2 * + 77, + 37 * - 74 * + CASE - 92 WHEN 44 * - 36 + 0 THEN NULL WHEN + 12 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN - 9 * + CASE - 50 WHEN - MIN( ( + 72 ) ) THEN - CASE 46 WHEN COUNT( * ) THEN + 75 / 50 - + 33 END END WHEN + 86 * - ( 84 / 47 ) + COUNT( * ) THEN COUNT( * ) END AS col2
----
154
NULL

skipif mysql # not compatible
query II rowsort label-9583
SELECT ALL 2 * + 77, + 37 * - 74 * + CASE - 92 WHEN 44 * - 36 + 0 THEN NULL WHEN + 12 THEN NULL WHEN CAST ( NULL AS REAL ) THEN - 9 * + CASE - 50 WHEN - MIN ( ( + 72 ) ) THEN - CASE 46 WHEN COUNT ( * ) THEN + 75 / 50 - + 33 END END WHEN + 86 * - ( 84 / 47 ) + COUNT ( * ) THEN COUNT ( * ) END AS col2
----
154
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9584
SELECT COUNT( * ) DIV 46 + + 23 + CAST( - 6 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9584
SELECT COUNT ( * ) / 46 + + 23 + CAST ( - 6 AS INTEGER ) AS col0
----
17

query I rowsort
SELECT DISTINCT - ( - - 9 ) * - + 65 * + + 97 AS col0
----
56745

query I rowsort
SELECT DISTINCT - 84 - + + 28 - - 42 * 36
----
1400

onlyif mysql # DIV for integer division: 
query I rowsort label-9587
SELECT ALL 75 * 3 DIV 84 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL 75 * 3 / 84 AS col0
----
2

query I rowsort
SELECT ALL + - 86 * + - NULLIF ( + 53, + 71 )
----
4558

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL 89 - + + 76 + - COUNT( DISTINCT + 63 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL 89 - + + 76 + - COUNT ( DISTINCT + 63 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT + COUNT( * ) * - + 78 * 56
----
-4368

skipif mysql # not compatible
query I rowsort label-9590
SELECT + COUNT ( * ) * - + 78 * 56
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT + COUNT( DISTINCT - 10 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9591
SELECT + COUNT ( DISTINCT - 10 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9592
SELECT 16 - - 18 AS col1, + 19 * - 89 * + + CAST( NULL AS SIGNED ) - COUNT( * ) + + + MAX( ALL 28 )
----
34
NULL

skipif mysql # not compatible
query II rowsort label-9592
SELECT 16 - - 18 AS col1, + 19 * - 89 * + + CAST ( NULL AS INTEGER ) - COUNT ( * ) + + + MAX ( ALL 28 )
----
34
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT CAST( NULL AS SIGNED ) / - 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT CAST ( NULL AS INTEGER ) / - 12 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT 75 * - COALESCE ( MAX( + 66 ), - 33 * + + CASE SUM( - 54 ) WHEN 40 THEN + 16 * 29 ELSE SUM( DISTINCT - 30 ) + + 41 END * 81 + + COALESCE ( + 58, 16 ) )
----
-4950

skipif mysql # not compatible
query I rowsort label-9594
SELECT 75 * - COALESCE ( MAX ( + 66 ), - 33 * + + CASE SUM ( - 54 ) WHEN 40 THEN + 16 * 29 ELSE SUM ( DISTINCT - 30 ) + + 41 END * 81 + + COALESCE ( + 58, 16 ) )
----
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT ALL 78 DIV - + NULLIF ( - 46, - 58 + + + 44 ) + - 73 * + 81 AS col0
----
-5912

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL 78 / - + NULLIF ( - 46, - 58 + + + 44 ) + - 73 * + 81 AS col0
----
-5912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT DISTINCT + CAST( - NULLIF ( + 1, + + 42 / - + 39 ) AS SIGNED ) * - 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT + CAST ( - NULLIF ( + 1, + + 42 / - + 39 ) AS INTEGER ) * - 64 AS col1
----
64

query II rowsort
SELECT ALL - ( 99 ) AS col0, 62 AS col2
----
-99
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT + SUM( + + NULLIF ( + ( 70 ), - - ( - 62 ) ) )
----
70

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + SUM ( + + NULLIF ( + ( 70 ), - - ( - 62 ) ) )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT + - 83 + - 56 + - - 18 DIV + ( + 35 ) * 30 * - 45 - - 65 * + 85
----
5386

skipif mysql # not compatible
query I rowsort label-9599
SELECT + - 83 + - 56 + - - 18 / + ( + 35 ) * 30 * - 45 - - 65 * + 85
----
5386

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9600
SELECT - 16 + 87 DIV - 74 AS col2, - 89 * 50 - - MIN( DISTINCT 67 ) * + + NULLIF ( 65, 4 ) + - COUNT( * ) col0
----
-17
-96

skipif mysql # not compatible
query II rowsort label-9600
SELECT - 16 + 87 / - 74 AS col2, - 89 * 50 - - MIN ( DISTINCT 67 ) * + + NULLIF ( 65, 4 ) + - COUNT ( * ) col0
----
-17
-96

query I rowsort
SELECT ALL 22 + - + 18 + 21 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9602
SELECT - COUNT( * ) AS col0, 66 * 46
----
-1
3036

skipif mysql # not compatible
query II rowsort label-9602
SELECT - COUNT ( * ) AS col0, 66 * 46
----
-1
3036

query I rowsort
SELECT + ( - - 64 ) * - + 79
----
-5056

query I rowsort
SELECT - 92 * 10
----
-920

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT ALL 71 AS col1, COUNT( * ) * + 96
----
71
96

skipif mysql # not compatible
query II rowsort label-9605
SELECT ALL 71 AS col1, COUNT ( * ) * + 96
----
71
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT ALL - NULLIF ( - CAST( - COUNT( * ) AS SIGNED ), - 60 ) + + + ( 86 ) * - 59 * + CASE ( + 56 ) WHEN + 59 * 88 THEN - 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL - NULLIF ( - CAST ( - COUNT ( * ) AS INTEGER ), - 60 ) + + + ( 86 ) * - 59 * + CASE ( + 56 ) WHEN + 59 * 88 THEN - 17 END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9607
SELECT + 80 + + + CASE + + 10 WHEN + + CAST( NULL AS DECIMAL ) THEN - 41 * 68 - - + NULLIF ( - 35, + 64 ) + 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT + 80 + + + CASE + + 10 WHEN + + CAST ( NULL AS REAL ) THEN - 41 * 68 - - + NULLIF ( - 35, + 64 ) + 19 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT ALL 86 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL 86 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT DISTINCT COUNT( * ) * - - 83
----
83

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT COUNT ( * ) * - - 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT + 56 + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9610
SELECT + 56 + + COUNT ( * )
----
57

query I rowsort
SELECT ALL + ( 81 ) + 68
----
149

query II rowsort
SELECT ALL 82 col2, - 57
----
82
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9613
SELECT ALL 38 + + + 84 + + + 63 + NULLIF ( + MAX( ALL + 64 ), - 47 ) DIV + 61 AS col0
----
186

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL 38 + + + 84 + + + 63 + NULLIF ( + MAX ( ALL + 64 ), - 47 ) / + 61 AS col0
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT DISTINCT + 23 DIV 38 * 7
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT + 23 / 38 * 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL NULLIF ( - + 57, - + 46 + - COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL NULLIF ( - + 57, - + 46 + - COUNT ( * ) )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT ALL + 42 DIV + - 41
----
-1

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL + 42 / + - 41
----
-1

query II rowsort
SELECT - CASE - ( 70 ) WHEN - AVG ( DISTINCT 15 ) THEN NULL ELSE - 77 END AS col2, 46 col1
----
77
46

query I rowsort
SELECT ALL - 78 + + 99
----
21

query I rowsort
SELECT - ( - 94 ) AS col2
----
94

query I rowsort
SELECT - ( - - 68 ) + - + 57 + 24 * - + 14
----
-461

query I rowsort
SELECT - 90 * - + 35
----
3150

query I rowsort
SELECT - 96 * 29 AS col2
----
-2784

query I rowsort
SELECT ALL - 6 * 56 AS col1
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT - 8 + 18 * + 46 + + + CAST( - 26 AS SIGNED ) + - + COALESCE ( 74, - 55 ) AS col1
----
720

skipif mysql # not compatible
query I rowsort label-9624
SELECT - 8 + 18 * + 46 + + + CAST ( - 26 AS INTEGER ) + - + COALESCE ( 74, - 55 ) AS col1
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT DISTINCT - 24 * + 62 * - + MAX( - + 56 )
----
-83328

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT - 24 * + 62 * - + MAX ( - + 56 )
----
-83328

onlyif mysql # aggregate syntax: 
query II rowsort label-9626
SELECT + 10 AS col1, - 71 + - COUNT( DISTINCT 89 )
----
10
-72

skipif mysql # not compatible
query II rowsort label-9626
SELECT + 10 AS col1, - 71 + - COUNT ( DISTINCT 89 )
----
10
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9627
SELECT ALL + 24 AS col0, - COUNT( * ) * - CAST( 4 AS SIGNED ) * + - 24
----
24
-96

skipif mysql # not compatible
query II rowsort label-9627
SELECT ALL + 24 AS col0, - COUNT ( * ) * - CAST ( 4 AS INTEGER ) * + - 24
----
24
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9628
SELECT DISTINCT + 0 AS col0, - ( COUNT( * ) ) * COUNT( * ) + - 45
----
0
-46

skipif mysql # not compatible
query II rowsort label-9628
SELECT DISTINCT + 0 AS col0, - ( COUNT ( * ) ) * COUNT ( * ) + - 45
----
0
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT - + SUM( ALL 11 ) * + + 54
----
-594

skipif mysql # not compatible
query I rowsort label-9629
SELECT - + SUM ( ALL 11 ) * + + 54
----
-594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9630
SELECT ALL + 62 AS col2, + 67 + - 83 + + ( - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col2, + 71 AS col1
----
62
NULL
71

skipif mysql # not compatible
query III rowsort label-9630
SELECT ALL + 62 AS col2, + 67 + - 83 + + ( - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col2, + 71 AS col1
----
62
NULL
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9631
SELECT + COUNT( * ) DIV 90 + 70 * + 49 * - - 38 AS col2
----
130340

skipif mysql # not compatible
query I rowsort label-9631
SELECT + COUNT ( * ) / 90 + 70 * + 49 * - - 38 AS col2
----
130340

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT + + ( + NULLIF ( + 93, - 28 * + 3 + - COUNT( * ) ) )
----
93

skipif mysql # not compatible
query I rowsort label-9632
SELECT + + ( + NULLIF ( + 93, - 28 * + 3 + - COUNT ( * ) ) )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9633
SELECT ALL 83 * + CAST( - + ( + - 27 ) AS SIGNED ) - - ( - 86 ) AS col1, 20 DIV - COALESCE ( - COUNT( * ), + 12 ) AS col1
----
2155
20

skipif mysql # not compatible
query II rowsort label-9633
SELECT ALL 83 * + CAST ( - + ( + - 27 ) AS INTEGER ) - - ( - 86 ) AS col1, 20 / - COALESCE ( - COUNT ( * ), + 12 ) AS col1
----
2155
20

query I rowsort
SELECT - NULLIF ( 15, - 45 ) * + 79
----
-1185

query I rowsort
SELECT + 79 * - 29 * - - 19
----
-43529

query II rowsort
SELECT + + 44 AS col2, 70
----
44
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT - + 23 + + 5 + - COALESCE ( ( - 43 ), + NULLIF ( COUNT( * ), MIN( ALL - 81 ) * - 47 ) + - 84, 17 - + 79 * + COUNT( * ), 68 ) * + COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9637
SELECT - + 23 + + 5 + - COALESCE ( ( - 43 ), + NULLIF ( COUNT ( * ), MIN ( ALL - 81 ) * - 47 ) + - 84, 17 - + 79 * + COUNT ( * ), 68 ) * + COUNT ( * ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT DISTINCT CAST( CAST( 65 AS SIGNED ) AS SIGNED ) * + - 22 - - 32 col1
----
-1398

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT CAST ( CAST ( 65 AS INTEGER ) AS INTEGER ) * + - 22 - - 32 col1
----
-1398

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT DISTINCT + 9 * + COALESCE ( 18, + - ( + 99 ) ) + + 92 col2, COUNT( * ) AS col2
----
254
1

skipif mysql # not compatible
query II rowsort label-9639
SELECT DISTINCT + 9 * + COALESCE ( 18, + - ( + 99 ) ) + + 92 col2, COUNT ( * ) AS col2
----
254
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL - CAST( NULL AS SIGNED ) * + 29 + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL - CAST ( NULL AS INTEGER ) * + 29 + + 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9641
SELECT ALL SUM( ALL 66 ) * - ( + - COUNT( + + 67 ) ) - - - 28 + - + 94 + 6 - + MIN( + 80 - - 44 ) * CAST( NULL AS DECIMAL ) / + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL SUM ( ALL 66 ) * - ( + - COUNT ( + + 67 ) ) - - - 28 + - + 94 + 6 - + MIN ( + 80 - - 44 ) * CAST ( NULL AS REAL ) / + 47 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9642
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) col0
----
NULL

query I rowsort
SELECT + 95 + - - ( 3 ) AS col1
----
98

query II rowsort
SELECT DISTINCT + 5 AS col2, + ( 39 )
----
5
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT DISTINCT - + 88 * - COUNT( * ) - + 0 + + 7 + + + 58 * - COUNT( * ) * - NULLIF ( + COUNT( * ), 0 ) + COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT - + 88 * - COUNT ( * ) - + 0 + + 7 + + + 58 * - COUNT ( * ) * - NULLIF ( + COUNT ( * ), 0 ) + COUNT ( * )
----
154

query I rowsort
SELECT + 4 * - 32 * 79
----
-10112

query I rowsort
SELECT - ( - 83 ) col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL CASE - 17 WHEN SUM( ALL + 47 ) THEN - ( + 44 ) / 26 END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL CASE - 17 WHEN SUM ( ALL + 47 ) THEN - ( + 44 ) / 26 END + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9649
SELECT + 57 DIV + 37 * + + NULLIF ( + COUNT( 7 ), ( - 89 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9649
SELECT + 57 / + 37 * + + NULLIF ( + COUNT ( 7 ), ( - 89 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9650
SELECT ALL 68 + CAST( - COUNT( 97 ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL 68 + CAST ( - COUNT ( 97 ) AS INTEGER )
----
67

query I rowsort
SELECT + 74 * - - 79 * + 32 col0
----
187072

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT DISTINCT 80 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT 80 / 69
----
1

query I rowsort
SELECT DISTINCT 98 + + 40
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT + 21 + CAST( + 23 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-9654
SELECT + 21 + CAST ( + 23 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT - CASE + 98 WHEN COUNT( * ) * + 20 * - 70 THEN NULL WHEN + 38 THEN + 86 + + 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT - CASE + 98 WHEN COUNT ( * ) * + 20 * - 70 THEN NULL WHEN + 38 THEN + 86 + + 24 END AS col0
----
NULL

query II rowsort
SELECT + COALESCE ( - 27, 7 ) * + 16 AS col0, - 75
----
-432
-75

query II rowsort
SELECT + 15 * 62 AS col0, + 98
----
930
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL CASE - 0 WHEN + - COUNT( * ) THEN - + 76 + + 60 ELSE 59 * - - 56 END AS col0
----
3304

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL CASE - 0 WHEN + - COUNT ( * ) THEN - + 76 + + 60 ELSE 59 * - - 56 END AS col0
----
3304

query I rowsort
SELECT + CASE - 23 WHEN - - 65 THEN + - 61 END - + - 76
----
NULL

query I rowsort
SELECT ALL NULLIF ( 95, - 48 * 56 + - ( - AVG ( DISTINCT - 90 ) ) + + 15 )
----
95

query I rowsort
SELECT + 84 * + 5
----
420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9662
SELECT DISTINCT 90 * - 4 * CAST( NULL AS SIGNED ) * 23 * - - 20 AS col2, ( + 94 )
----
NULL
94

skipif mysql # not compatible
query II rowsort label-9662
SELECT DISTINCT 90 * - 4 * CAST ( NULL AS INTEGER ) * 23 * - - 20 AS col2, ( + 94 )
----
NULL
94

query I rowsort
SELECT ALL ( + 57 ) col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT 84 - - NULLIF ( - - 77, - 12 ) + - ( + - 86 ) + - + NULLIF ( + - 96, + + ( 49 ) * 25 ) + 23 * ( - COUNT( * ) + + COUNT( * ) )
----
343

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT 84 - - NULLIF ( - - 77, - 12 ) + - ( + - 86 ) + - + NULLIF ( + - 96, + + ( 49 ) * 25 ) + 23 * ( - COUNT ( * ) + + COUNT ( * ) )
----
343

query I rowsort
SELECT ALL - 93 * 74 AS col2
----
-6882

query I rowsort
SELECT - 54 - - 9
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT + 93 DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-9667
SELECT + 93 / 73
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT - + COUNT( * ) * MIN( ALL - 71 )
----
71

skipif mysql # not compatible
query I rowsort label-9668
SELECT - + COUNT ( * ) * MIN ( ALL - 71 )
----
71

query I rowsort
SELECT + + 27 * 34 * 15 AS col0
----
13770

query I rowsort
SELECT - - 63 * - 23
----
-1449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9671
SELECT - - 94 + - 78 * COUNT( * ) DIV + 96 col2
----
94

skipif mysql # not compatible
query I rowsort label-9671
SELECT - - 94 + - 78 * COUNT ( * ) / + 96 col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT - - COUNT( * ) * 82 * 10
----
820

skipif mysql # not compatible
query I rowsort label-9672
SELECT - - COUNT ( * ) * 82 * 10
----
820

query I rowsort
SELECT DISTINCT + + 14 * - 22 col2
----
-308

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9674
SELECT ALL - 5 + + 78 AS col1, CAST( NULL AS SIGNED ) AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-9674
SELECT ALL - 5 + + 78 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT + - COUNT( * ) + - MAX( ALL + 43 ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT + - COUNT ( * ) + - MAX ( ALL + 43 ) col2
----
-44

query I rowsort
SELECT ALL + 56 + 70 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + COUNT( - 60 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9677
SELECT + COUNT ( - 60 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL - CAST( NULL AS SIGNED ) * + + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL + COUNT( * ) + - 64 + 56 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + COUNT ( * ) + - 64 + 56 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL 27 * COUNT( * ) col2
----
27

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL 27 * COUNT ( * ) col2
----
27

query II rowsort
SELECT DISTINCT 70 col1, + 45 * 69
----
70
3105

query I rowsort
SELECT 9 + + 55
----
64

query I rowsort
SELECT ALL + 78 - 65 * + 44 col1
----
-2782

query I rowsort
SELECT 54 + + 70 AS col1
----
124

query I rowsort
SELECT 25 * + ( + - 64 ) * + 48
----
-76800

query I rowsort
SELECT 60 * 21 AS col0
----
1260

query II rowsort
SELECT DISTINCT 36 AS col2, - 21
----
36
-21

query II rowsort
SELECT ALL 87 AS col1, + 48
----
87
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT COUNT( * ) + + + 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9689
SELECT COUNT ( * ) + + + 52 AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT 44 + + 49 - - CAST( - 77 AS SIGNED ) * + 80
----
-6067

skipif mysql # not compatible
query I rowsort label-9690
SELECT 44 + + 49 - - CAST ( - 77 AS INTEGER ) * + 80
----
-6067

onlyif mysql # DIV for integer division: 
query I rowsort label-9691
SELECT ALL 79 DIV - + 61
----
-1

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL 79 / - + 61
----
-1

query I rowsort
SELECT 50 * - + CASE 4 WHEN - 53 THEN + 77 WHEN 2 THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 47 AS col1, 67
----
47
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9694
SELECT 60 * + + ( + + COUNT( * ) ) * ( 43 ) * - 6 + + - 35 - + 85 + - + 58 DIV - COUNT( * ) - SUM( + 27 ) * - 29 * 17
----
-2231

skipif mysql # not compatible
query I rowsort label-9694
SELECT 60 * + + ( + + COUNT ( * ) ) * ( 43 ) * - 6 + + - 35 - + 85 + - + 58 / - COUNT ( * ) - SUM ( + 27 ) * - 29 * 17
----
-2231

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9695
SELECT ALL COALESCE ( 32, - 44 * + - 9 + - 18 - - 48 + + 42, 67 + - 51 - 94 ) DIV CAST( - 84 * + 6 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL COALESCE ( 32, - 44 * + - 9 + - 18 - - 48 + + 42, 67 + - 51 - 94 ) / CAST ( - 84 * + 6 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT 79 + MIN( ALL - - 80 ) AS col1
----
159

skipif mysql # not compatible
query I rowsort label-9696
SELECT 79 + MIN ( ALL - - 80 ) AS col1
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT + 64 * + 32 + 63 + 37 DIV 40 * - - 85
----
2111

skipif mysql # not compatible
query I rowsort label-9697
SELECT + 64 * + 32 + 63 + 37 / 40 * - - 85
----
2111

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9698
SELECT CASE - 67 WHEN 81 THEN - 36 / - + 2 END * CASE + + CAST( NULL AS DECIMAL ) WHEN + 80 + + 20 THEN - + CAST( NULL AS SIGNED ) * 99 WHEN + 84 * 84 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT CASE - 67 WHEN 81 THEN - 36 / - + 2 END * CASE + + CAST ( NULL AS REAL ) WHEN + 80 + + 20 THEN - + CAST ( NULL AS INTEGER ) * 99 WHEN + 84 * 84 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 36 * - 95 * + 12
----
-41040

query I rowsort
SELECT - - ( 82 ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT DISTINCT - + CAST( 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT - + CAST ( 48 AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT DISTINCT - MIN( + + 44 ) * 73 * - 87 AS col0
----
279444

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT - MIN ( + + 44 ) * 73 * - 87 AS col0
----
279444

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT DISTINCT - + SUM( DISTINCT 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT - + SUM ( DISTINCT 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL - COUNT( * ) + + + COUNT( * ) * - 4 * - - 30 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) * - 4 * - - 30 AS col2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT - 95 / + 55 + + CAST( NULL AS SIGNED ) * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT - 95 / + 55 + + CAST ( NULL AS INTEGER ) * - 20
----
NULL

query I rowsort
SELECT ALL - 60 + - 18 AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT + + CASE 28 WHEN 60 THEN + 67 + + 36 + + 46 - 11 * 89 * - - 18 / - CASE - 90 WHEN - ( CAST( NULL AS SIGNED ) ) + + 51 THEN NULL ELSE 19 END WHEN 79 + + 59 / 88 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT + + CASE 28 WHEN 60 THEN + 67 + + 36 + + 46 - 11 * 89 * - - 18 / - CASE - 90 WHEN - ( CAST ( NULL AS INTEGER ) ) + + 51 THEN NULL ELSE 19 END WHEN 79 + + 59 / 88 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + - ( + + 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL + + COUNT( * ) + + 70
----
71

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + + COUNT ( * ) + + 70
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9710
SELECT + + 76 AS col1, COUNT( ALL - 88 )
----
76
1

skipif mysql # not compatible
query II rowsort label-9710
SELECT + + 76 AS col1, COUNT ( ALL - 88 )
----
76
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9711
SELECT - COUNT( * ) DIV COALESCE ( + 87, 53, - - 19, - 19 DIV CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 24 )
----
0

skipif mysql # not compatible
query I rowsort label-9711
SELECT - COUNT ( * ) / COALESCE ( + 87, 53, - - 19, - 19 / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 24 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9712
SELECT DISTINCT + + ( + COUNT( * ) ) + + 54 + - 2 * CAST( NULL AS DECIMAL ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT + + ( + COUNT ( * ) ) + + 54 + - 2 * CAST ( NULL AS REAL ) * 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT ALL - + 36 * + + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL - + 36 * + + COUNT ( * )
----
-36

query I rowsort
SELECT ALL 13 + - 40 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT COUNT( * ) + ( - 30 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT COUNT ( * ) + ( - 30 ) AS col2
----
-29

query I rowsort
SELECT 29 * + 59
----
1711

query I rowsort
SELECT ALL - NULLIF ( + 95, 75 * - 3 )
----
-95

query I rowsort
SELECT - 61 * + 97 + - 94 + - 42 - - + 17 * 60 col0
----
-5033

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL - MIN( - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - MIN ( - 78 ) AS col1
----
78

query I rowsort
SELECT 82 * - 75 + + 65 AS col1
----
-6085

onlyif mysql # aggregate syntax: 
query II rowsort label-9721
SELECT ALL COUNT( * ) AS col2, + 79
----
1
79

skipif mysql # not compatible
query II rowsort label-9721
SELECT ALL COUNT ( * ) AS col2, + 79
----
1
79

query II rowsort
SELECT - 32, 6 AS col2
----
-32
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9723
SELECT 70 + - 87 * - 22 - + 18 + 46 DIV - - ( - ( + + 64 ) ) AS col2
----
1966

skipif mysql # not compatible
query I rowsort label-9723
SELECT 70 + - 87 * - 22 - + 18 + 46 / - - ( - ( + + 64 ) ) AS col2
----
1966

query II rowsort
SELECT ALL 84 col2, 78
----
84
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT DISTINCT 36 AS col1, SUM( DISTINCT - - 29 ) AS col1
----
36
29

skipif mysql # not compatible
query II rowsort label-9725
SELECT DISTINCT 36 AS col1, SUM ( DISTINCT - - 29 ) AS col1
----
36
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT DISTINCT MAX( ALL 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT MAX ( ALL 71 ) AS col2
----
71

query II rowsort
SELECT DISTINCT 93 AS col2, 98
----
93
98

query II rowsort
SELECT DISTINCT 73 * + 1, 64 AS col1
----
73
64

query I rowsort
SELECT DISTINCT - 2 * 36 AS col1
----
-72

query I rowsort
SELECT DISTINCT 90 * - - 17 col0
----
1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9731
SELECT ALL + 93 * COUNT( + - 69 ) DIV - 97, + 76 DIV + 76 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-9731
SELECT ALL + 93 * COUNT ( + - 69 ) / - 97, + 76 / + 76 AS col0
----
0
1

query I rowsort
SELECT 44 + + + 66
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9733
SELECT 50 DIV COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9733
SELECT 50 / COUNT ( * ) AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT MAX( + 45 ) + + 83 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT MAX ( + 45 ) + + 83 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT + 75 * 69 * + COUNT( * ) AS col2
----
5175

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT + 75 * 69 * + COUNT ( * ) AS col2
----
5175

query I rowsort
SELECT 6 - + - ( - 43 )
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9737
SELECT DISTINCT - COUNT( DISTINCT + 2 ) * + + ( 43 ) AS col2, + 98 AS col2
----
-43
98

skipif mysql # not compatible
query II rowsort label-9737
SELECT DISTINCT - COUNT ( DISTINCT + 2 ) * + + ( 43 ) AS col2, + 98 AS col2
----
-43
98

query I rowsort
SELECT DISTINCT + + 34 + + + 54
----
88

query I rowsort
SELECT DISTINCT 33 + 84 + + 28 col1
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9740
SELECT - 2 + COUNT( * ) DIV - 31 + + 28
----
26

skipif mysql # not compatible
query I rowsort label-9740
SELECT - 2 + COUNT ( * ) / - 31 + + 28
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT - SUM( 94 ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT - SUM ( 94 ) col2
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9742
SELECT ALL + 49 + + 74 * - COUNT( * ) + + 73 + 73 DIV - 88 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL + 49 + + 74 * - COUNT ( * ) + + 73 + 73 / - 88 AS col2
----
48

query II rowsort
SELECT - 95 AS col2, 89 AS col0
----
-95
89

query II rowsort
SELECT ALL ( 35 ), - 15 + - 36 * - 47 AS col2
----
35
1677

query I rowsort
SELECT DISTINCT 9 * 11 + - 60 + + - 77
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - - NULLIF ( - - 26, 56 + + - 9 + + SUM( - 4 ) + + 2 * NULLIF ( 51, + 18 * - - 35 * - 15 ) - - 4 * - COUNT( * ) ) + NULLIF ( - 70, + ( + 61 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-9746
SELECT - - NULLIF ( - - 26, 56 + + - 9 + + SUM ( - 4 ) + + 2 * NULLIF ( 51, + 18 * - - 35 * - 15 ) - - 4 * - COUNT ( * ) ) + NULLIF ( - 70, + ( + 61 ) )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT - CAST( 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-9747
SELECT - CAST ( 88 AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL - CASE - 38 WHEN + + 59 - + 63 THEN - - SUM( ALL + 76 ) * 71 - - 97 ELSE NULL END * + 23 + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - CASE - 38 WHEN + + 59 - + 63 THEN - - SUM ( ALL + 76 ) * 71 - - 97 ELSE NULL END * + 23 + 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL + COUNT( * ) * + ( 6 ) * - + 57 + NULLIF ( + 52, 70 )
----
-290

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL + COUNT ( * ) * + ( 6 ) * - + 57 + NULLIF ( + 52, 70 )
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT + NULLIF ( 40, + - COUNT( * ) ) * 93 - - - 24 AS col2
----
3696

skipif mysql # not compatible
query I rowsort label-9750
SELECT + NULLIF ( 40, + - COUNT ( * ) ) * 93 - - - 24 AS col2
----
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9751
SELECT - 0 DIV - 53 + + + 45 * - 88 AS col1, - 2 DIV COUNT( + 16 ) * - ( + - 13 ) + - 89 * - 30 + NULLIF ( + 89, - 16 + CAST( NULL AS SIGNED ) * ( + 72 ) ) AS col1
----
-3960
2733

skipif mysql # not compatible
query II rowsort label-9751
SELECT - 0 / - 53 + + + 45 * - 88 AS col1, - 2 / COUNT ( + 16 ) * - ( + - 13 ) + - 89 * - 30 + NULLIF ( + 89, - 16 + CAST ( NULL AS INTEGER ) * ( + 72 ) ) AS col1
----
-3960
2733

onlyif mysql # aggregate syntax: 
query II rowsort label-9752
SELECT COALESCE ( + ( - + COUNT( * ) ), - 50 ) AS col2, 76 + + + 59 AS col1
----
-1
135

skipif mysql # not compatible
query II rowsort label-9752
SELECT COALESCE ( + ( - + COUNT ( * ) ), - 50 ) AS col2, 76 + + + 59 AS col1
----
-1
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL + - CASE - 92 WHEN + + 19 * - 38 / + COUNT( * ) + + 25 + 26 THEN - ( - - 73 ) WHEN - - 4 - 52 THEN 77 * - 87 + COALESCE ( - 98, 27 + + 84 * 65, + 26 * 30 ) END * 39 - CASE 67 WHEN - 16 + COUNT( * ) THEN + 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + - CASE - 92 WHEN + + 19 * - 38 / + COUNT ( * ) + + 25 + 26 THEN - ( - - 73 ) WHEN - - 4 - 52 THEN 77 * - 87 + COALESCE ( - 98, 27 + + 84 * 65, + 26 * 30 ) END * 39 - CASE 67 WHEN - 16 + COUNT ( * ) THEN + 28 END AS col2
----
NULL

query II rowsort
SELECT 89, 90 * + 83 * - 1 + - 98 AS col2
----
89
-7568

query I rowsort
SELECT + 10 * + CASE 15 WHEN - 53 / 51 + + 33 THEN 74 + 81 + 67 * - 0 * - - 6 + 16 + 4 * + 88 * + 41 END
----
NULL

query I rowsort
SELECT + 74 * + 32
----
2368

onlyif mysql # aggregate syntax: 
query II rowsort label-9757
SELECT + 92 + - COUNT( - + 33 ) AS col1, ( + - 69 ) * + - 32
----
91
2208

skipif mysql # not compatible
query II rowsort label-9757
SELECT + 92 + - COUNT ( - + 33 ) AS col1, ( + - 69 ) * + - 32
----
91
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT - CASE + COUNT( * ) WHEN COUNT( DISTINCT - 24 ) THEN NULL WHEN + 82 THEN + + 85 ELSE + + 14 + CASE - 87 WHEN 42 THEN NULL WHEN - 44 THEN + - SUM( + 61 ) + - 75 END END / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT - CASE + COUNT ( * ) WHEN COUNT ( DISTINCT - 24 ) THEN NULL WHEN + 82 THEN + + 85 ELSE + + 14 + CASE - 87 WHEN 42 THEN NULL WHEN - 44 THEN + - SUM ( + 61 ) + - 75 END END / 90
----
NULL

query I rowsort
SELECT DISTINCT + 78 * - 56 AS col1
----
-4368

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT ALL + 61 * 63 DIV - 14
----
-274

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL + 61 * 63 / - 14
----
-274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9761
SELECT - NULLIF ( - COUNT( * ), + - 3 ) + SUM( NULLIF ( 91, 4 ) ) DIV + 71 + + 60 - - + 55 * - 73
----
-3953

skipif mysql # not compatible
query I rowsort label-9761
SELECT - NULLIF ( - COUNT ( * ), + - 3 ) + SUM ( NULLIF ( 91, 4 ) ) / + 71 + + 60 - - + 55 * - 73
----
-3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9762
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) * + - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) * + - 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL NULLIF ( - 54, - + COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL NULLIF ( - 54, - + COUNT ( * ) )
----
-54

query I rowsort
SELECT ALL 44 * 72 * - 3 * + ( - 62 ) AS col2
----
589248

query I rowsort
SELECT - 81 * 97 + 16 AS col0
----
-7841

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9766
SELECT - CAST( NULL AS DECIMAL ) + + 49 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT - CAST ( NULL AS REAL ) + + 49 * 42
----
NULL

query I rowsort
SELECT + 84 * + 88 AS col2
----
7392

query I rowsort
SELECT ALL + 89 + + 6
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9769
SELECT + COUNT( * ) + CAST( + - 81 AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9769
SELECT + COUNT ( * ) + CAST ( + - 81 AS INTEGER ) AS col0
----
-80

query I rowsort
SELECT - 66 + 98 AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9771
SELECT ALL NULLIF ( - CASE + - 32 WHEN + ( + 39 ) THEN + 80 WHEN - 69 THEN + 75 - - + 11 * + ( AVG ( - 63 ) ) * NULLIF ( 85 + 98 * NULLIF ( 48, 1 / 26 ), 34 ) WHEN + 6 * - 55 THEN NULL END, - CAST( NULL AS SIGNED ) * SUM( ALL + 75 ) + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL NULLIF ( - CASE + - 32 WHEN + ( + 39 ) THEN + 80 WHEN - 69 THEN + 75 - - + 11 * + ( AVG ( - 63 ) ) * NULLIF ( 85 + 98 * NULLIF ( 48, 1 / 26 ), 34 ) WHEN + 6 * - 55 THEN NULL END, - CAST ( NULL AS INTEGER ) * SUM ( ALL + 75 ) + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT ALL + 86 + 9 * + + CAST( NULL AS SIGNED ) * + - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + 86 + 9 * + + CAST ( NULL AS INTEGER ) * + - 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9773
SELECT - 73 + - COUNT( * ) * + 1 AS col1, ( - 99 ) AS col2
----
-74
-99

skipif mysql # not compatible
query II rowsort label-9773
SELECT - 73 + - COUNT ( * ) * + 1 AS col1, ( - 99 ) AS col2
----
-74
-99

query I rowsort
SELECT ALL + 75 + + 26
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-9775
SELECT - - COUNT( ALL - 45 ), + 0 + - 93 * + + 89 AS col2
----
1
-8277

skipif mysql # not compatible
query II rowsort label-9775
SELECT - - COUNT ( ALL - 45 ), + 0 + - 93 * + + 89 AS col2
----
1
-8277

onlyif mysql # aggregate syntax: 
query II rowsort label-9776
SELECT ALL - + 36 + 34 - 29, - COUNT( * ) * - SUM( DISTINCT + 83 ) AS col1
----
-31
83

skipif mysql # not compatible
query II rowsort label-9776
SELECT ALL - + 36 + 34 - 29, - COUNT ( * ) * - SUM ( DISTINCT + 83 ) AS col1
----
-31
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9777
SELECT - COALESCE ( 46, 14, 73 DIV - COUNT( * ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-9777
SELECT - COALESCE ( 46, 14, 73 / - COUNT ( * ) ) AS col2
----
-46

query I rowsort
SELECT ALL - 20 + - + 34 * + 9
----
-326

query I rowsort
SELECT - + 15 + - ( + - 69 )
----
54

query II rowsort
SELECT ALL + + 32 * - - 10, 95 + - 36 * 65 * + 57 col0
----
320
-133285

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT + COALESCE ( SUM( ALL + 53 ), - + 35 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT + COALESCE ( SUM ( ALL + 53 ), - + 35 ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + COALESCE ( - 27, - COUNT( * ) + + 20 / - AVG ( - 30 ), + 73 + + ( 86 ) * - 92 + - 88 + 55, COUNT( * ) ) + - 51 * - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + COALESCE ( - 27, - COUNT ( * ) + + 20 / - AVG ( - 30 ), + 73 + + ( 86 ) * - 92 + - 88 + 55, COUNT ( * ) ) + - 51 * - 56 AS col1
----
NULL

query I rowsort
SELECT ALL - 18 + ( 94 ) AS col0
----
76

query I rowsort
SELECT ALL + + 57 + - - 9 AS col0
----
66

query I rowsort
SELECT - 76 * - 18
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT - + MIN( - 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9786
SELECT - + MIN ( - 97 ) AS col1
----
97

query I rowsort
SELECT - - NULLIF ( - 65, 98 ) + - + 82 + + + 40
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL + + MIN( 91 )
----
91

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL + + MIN ( 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9789
SELECT ALL + ( 10 ) / + - 23 * - + CASE + ( 90 ) WHEN + 84 - - 88 - + CAST( - 12 AS SIGNED ) + - 25 THEN + CAST( + 84 AS SIGNED ) WHEN 76 THEN NULL ELSE 4 * - 35 END + COUNT( * ) * 51 - CASE COUNT( * ) WHEN + 73 / + 39 - + 91 THEN 23 ELSE NULL END * + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL + ( 10 ) / + - 23 * - + CASE + ( 90 ) WHEN + 84 - - 88 - + CAST ( - 12 AS INTEGER ) + - 25 THEN + CAST ( + 84 AS INTEGER ) WHEN 76 THEN NULL ELSE 4 * - 35 END + COUNT ( * ) * 51 - CASE COUNT ( * ) WHEN + 73 / + 39 - + 91 THEN 23 ELSE NULL END * + 79 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT - - 88 * 26 * - NULLIF ( CAST( + 18 AS SIGNED ), + - 59 )
----
-41184

skipif mysql # not compatible
query I rowsort label-9790
SELECT - - 88 * 26 * - NULLIF ( CAST ( + 18 AS INTEGER ), + - 59 )
----
-41184

onlyif mysql # DIV for integer division: 
query I rowsort label-9791
SELECT + - 38 DIV - 76 * - ( CASE + 78 WHEN + ( 58 ) THEN NULL ELSE 11 END ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9791
SELECT + - 38 / - 76 * - ( CASE + 78 WHEN + ( 58 ) THEN NULL ELSE 11 END ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT ALL - 33 DIV + - 60 * + + 48 + + - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL - 33 / + - 60 * + + 48 + + - 42 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9793
SELECT - 78 * SUM( DISTINCT 59 ) + + + CAST( + 47 AS SIGNED ) AS col0, NULLIF ( - CAST( + COALESCE ( + - NULLIF ( - CAST( NULL AS SIGNED ), + - 16 ), + + 84 ) AS SIGNED ), 1 / AVG ( DISTINCT NULLIF ( - 46, 94 ) ) ) AS col2
----
-4555
-84

skipif mysql # not compatible
query II rowsort label-9793
SELECT - 78 * SUM ( DISTINCT 59 ) + + + CAST ( + 47 AS INTEGER ) AS col0, NULLIF ( - CAST ( + COALESCE ( + - NULLIF ( - CAST ( NULL AS INTEGER ), + - 16 ), + + 84 ) AS INTEGER ), 1 / AVG ( DISTINCT NULLIF ( - 46, 94 ) ) ) AS col2
----
-4555
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT + COUNT( * ) + - 3 + 19 col1
----
17

skipif mysql # not compatible
query I rowsort label-9794
SELECT + COUNT ( * ) + - 3 + 19 col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + SUM( DISTINCT 74 ) * + 80 * + ( - ( CASE - 92 WHEN 68 THEN + - 68 END ) ) * 53 * - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT + SUM ( DISTINCT 74 ) * + 80 * + ( - ( CASE - 92 WHEN 68 THEN + - 68 END ) ) * 53 * - + 78
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT - 98 * - - 96 * - 8 DIV - - COUNT( * )
----
75264

skipif mysql # not compatible
query I rowsort label-9796
SELECT - 98 * - - 96 * - 8 / - - COUNT ( * )
----
75264

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT + COUNT( * ) + - + 57 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9797
SELECT + COUNT ( * ) + - + 57 AS col0
----
-56

query II rowsort
SELECT ALL ( 18 ) * + + 12 AS col0, - 2 AS col2
----
216
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT + MAX( 23 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-9799
SELECT + MAX ( 23 ) col2
----
23

query I rowsort
SELECT ( + 96 ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9801
SELECT + CAST( NULL AS DECIMAL ) AS col1, 60 + + COUNT( * )
----
NULL
61

skipif mysql # not compatible
query II rowsort label-9801
SELECT + CAST ( NULL AS REAL ) AS col1, 60 + + COUNT ( * )
----
NULL
61

query I rowsort
SELECT ALL + ( + ( + + 16 ) ) * - 93 AS col0
----
-1488

query I rowsort
SELECT ( - 47 ) col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9804
SELECT ALL CAST( NULL AS DECIMAL ) * CASE - - 40 WHEN + 6 / COUNT( * ) * + COUNT( DISTINCT - 49 ) * - 74 + 91 THEN NULL WHEN - 30 THEN - 17 END AS col0, 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-9804
SELECT ALL CAST ( NULL AS REAL ) * CASE - - 40 WHEN + 6 / COUNT ( * ) * + COUNT ( DISTINCT - 49 ) * - 74 + 91 THEN NULL WHEN - 30 THEN - 17 END AS col0, 23 AS col0
----
NULL
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT CASE + COUNT( * ) WHEN - COUNT( * ) * - 89 - + 65 THEN NULL ELSE - + 20 END AS col1, - 13 AS col0
----
-20
-13

skipif mysql # not compatible
query II rowsort label-9805
SELECT CASE + COUNT ( * ) WHEN - COUNT ( * ) * - 89 - + 65 THEN NULL ELSE - + 20 END AS col1, - 13 AS col0
----
-20
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT + CAST( + 26 AS SIGNED ) * + - 72 * - 40
----
74880

skipif mysql # not compatible
query I rowsort label-9806
SELECT + CAST ( + 26 AS INTEGER ) * + - 72 * - 40
----
74880

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9807
SELECT COALESCE ( - 92, + + 69 DIV - + CAST( NULL AS SIGNED ) )
----
-92

skipif mysql # not compatible
query I rowsort label-9807
SELECT COALESCE ( - 92, + + 69 / - + CAST ( NULL AS INTEGER ) )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9808
SELECT DISTINCT COUNT( * ) DIV + 27 * + + 80
----
0

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT COUNT ( * ) / + 27 * + + 80
----
0

query II rowsort
SELECT ALL 51 * - 31 + 47 col0, 0 * 16 AS col0
----
-1534
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9810
SELECT + 54 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-9810
SELECT + 54 / + 77
----
0

query I rowsort
SELECT + - 35 * + 21 AS col2
----
-735

query II rowsort
SELECT - 56 AS col2, + COALESCE ( 39, - ( 21 ) * - 40 ) * + - 88
----
-56
-3432

query I rowsort
SELECT ALL + 55 + + 73
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT - 93 * 88 DIV - 41 AS col1
----
199

skipif mysql # not compatible
query I rowsort label-9814
SELECT - 93 * 88 / - 41 AS col1
----
199

onlyif mysql # aggregate syntax: 
query II rowsort label-9815
SELECT - COUNT( * ) AS col2, 57 * + + 79
----
-1
4503

skipif mysql # not compatible
query II rowsort label-9815
SELECT - COUNT ( * ) AS col2, 57 * + + 79
----
-1
4503

query I rowsort
SELECT 15 + - 40
----
-25

query I rowsort
SELECT 84 + 14 AS col0
----
98

query I rowsort
SELECT ALL + 48 - 58
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT - 9 * - MAX( - 37 ) AS col1
----
-333

skipif mysql # not compatible
query I rowsort label-9819
SELECT - 9 * - MAX ( - 37 ) AS col1
----
-333

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT - + 62 * + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT - + 62 * + COUNT ( * )
----
-62

query II rowsort
SELECT 53 - - 17 * - 7, + 77 AS col0
----
-66
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT ALL - 87 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL - 87 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 76 * - 53 AS col0
----
4028

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT 33 DIV - 72 + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-9824
SELECT 33 / - 72 + - 38
----
-38

query I rowsort
SELECT 44 * - 77 AS col2
----
-3388

query I rowsort
SELECT ALL - 61 + - + 45 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT + 6 + COUNT( 44 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT + 6 + COUNT ( 44 ) AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT - 36 DIV ( - NULLIF ( + 10, - 55 ) ) * + - 89 + COUNT( DISTINCT - 85 ) AS col0
----
-266

skipif mysql # not compatible
query I rowsort label-9828
SELECT - 36 / ( - NULLIF ( + 10, - 55 ) ) * + - 89 + COUNT ( DISTINCT - 85 ) AS col0
----
-266

query I rowsort
SELECT ALL + 88 + - + CASE + + 3 WHEN + 91 THEN 8 + - + ( + + 10 ) END + - 22 + - 84 / - 13 * 19 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL SUM( DISTINCT + 74 ) + - 56 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL SUM ( DISTINCT + 74 ) + - 56 AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9831
SELECT ALL + 89 + + 95 DIV - 61 - - MIN( 13 ) + - 58 + + - 29
----
14

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL + 89 + + 95 / - 61 - - MIN ( 13 ) + - 58 + + - 29
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9832
SELECT DISTINCT - COALESCE ( MAX( 32 ), - 29 + COUNT( * ) - 97 DIV + - 35 + - 82 )
----
-32

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT - COALESCE ( MAX ( 32 ), - 29 + COUNT ( * ) - 97 / + - 35 + - 82 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9833
SELECT ALL 43 + + SUM( DISTINCT + + 24 ) - + - 67 AS col0, CASE - + 55 WHEN 85 THEN NULL WHEN + - COUNT( * ) * - 94 * + 69 * - - COALESCE ( 11, 82 ) THEN NULL ELSE 30 * - 6 + + 92 END * - 55 + + 64
----
134
4904

skipif mysql # not compatible
query II rowsort label-9833
SELECT ALL 43 + + SUM ( DISTINCT + + 24 ) - + - 67 AS col0, CASE - + 55 WHEN 85 THEN NULL WHEN + - COUNT ( * ) * - 94 * + 69 * - - COALESCE ( 11, 82 ) THEN NULL ELSE 30 * - 6 + + 92 END * - 55 + + 64
----
134
4904

query I rowsort
SELECT 94 * - 98 col0
----
-9212

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT + 26 + - - COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT + 26 + - - COUNT ( * ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL - CASE + COUNT( * ) WHEN - 49 THEN NULL WHEN + + MAX( ALL - 4 ) THEN NULL WHEN - 42 THEN - 58 ELSE + + COUNT( * ) * COUNT( * ) - + - 49 + - 83 * + + 58 * - - 31 * + 39 * 60 END - - 91
----
349207601

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL - CASE + COUNT ( * ) WHEN - 49 THEN NULL WHEN + + MAX ( ALL - 4 ) THEN NULL WHEN - 42 THEN - 58 ELSE + + COUNT ( * ) * COUNT ( * ) - + - 49 + - 83 * + + 58 * - - 31 * + 39 * 60 END - - 91
----
349207601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT + 30 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT + 30 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( 89, + 36 ) + + 12 + + 32 + + 25
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ( - + SUM( DISTINCT NULLIF ( + - 19, - - 53 ) ) ) + - 23 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9839
SELECT ( - + SUM ( DISTINCT NULLIF ( + - 19, - - 53 ) ) ) + - 23 AS col2
----
-4

query I rowsort
SELECT 19 + - + 88
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9841
SELECT ALL - COALESCE ( + 89, MAX( + 11 ), AVG ( - + 18 ) - - + COALESCE ( + COALESCE ( 94, COUNT( * ) ), + + 21, - + COUNT( DISTINCT - COALESCE ( + 63, ( 51 ) / 53 + 92 / - 74 ) ) ) + - 77, 79 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - COALESCE ( + 89, MAX ( + 11 ), AVG ( - + 18 ) - - + COALESCE ( + COALESCE ( 94, COUNT ( * ) ), + + 21, - + COUNT ( DISTINCT - COALESCE ( + 63, ( 51 ) / 53 + 92 / - 74 ) ) ) + - 77, 79 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9842
SELECT ALL - CASE 28 WHEN - 9 THEN NULL WHEN - CAST( + 17 AS SIGNED ) THEN NULL WHEN 19 THEN - MAX( DISTINCT - 83 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - CASE 28 WHEN - 9 THEN NULL WHEN - CAST ( + 17 AS INTEGER ) THEN NULL WHEN 19 THEN - MAX ( DISTINCT - 83 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 67 * - 17 AS col2
----
1139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT DISTINCT - 99 DIV COUNT( DISTINCT 55 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT - 99 / COUNT ( DISTINCT 55 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT 78 * - 59 * + MAX( - + 92 ) col1, COUNT( * )
----
423384
1

skipif mysql # not compatible
query II rowsort label-9845
SELECT 78 * - 59 * + MAX ( - + 92 ) col1, COUNT ( * )
----
423384
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT COUNT( * ) + COUNT( * ) + + - 8 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9846
SELECT COUNT ( * ) + COUNT ( * ) + + - 8 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL + CASE 59 WHEN - 24 + + 29 + + NULLIF ( + 30, 30 * + 45 + - + CAST( NULL AS SIGNED ) + - ( - COUNT( * ) ) * - - 42 * - COUNT( * ) ) THEN + - 47 + 66 WHEN - 31 + 20 THEN 26 * - COUNT( ALL - 91 ) + 29 ELSE 92 END
----
92

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL + CASE 59 WHEN - 24 + + 29 + + NULLIF ( + 30, 30 * + 45 + - + CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) * - - 42 * - COUNT ( * ) ) THEN + - 47 + 66 WHEN - 31 + 20 THEN 26 * - COUNT ( ALL - 91 ) + 29 ELSE 92 END
----
92

query I rowsort
SELECT 68 + - 58 + 35 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT CASE + ( - + 93 ) WHEN - + 71 THEN + 52 WHEN - - COUNT( * ) * - 14 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT CASE + ( - + 93 ) WHEN - + 71 THEN + 52 WHEN - - COUNT ( * ) * - 14 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9850
SELECT - ( + 46 ) + 98 DIV + 5 AS col2, + 34 col0
----
-27
34

skipif mysql # not compatible
query II rowsort label-9850
SELECT - ( + 46 ) + 98 / + 5 AS col2, + 34 col0
----
-27
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9851
SELECT DISTINCT 52 * 43 * COALESCE ( - + 21, + CAST( + ( + 41 ) AS SIGNED ) * MIN( ALL + - 15 ) * + ( + 39 ), - COALESCE ( 85, + 63 * COUNT( 52 * - ( 14 ) + 94 / 29 ) - COALESCE ( - 40, 30 ) ) )
----
-46956

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT 52 * 43 * COALESCE ( - + 21, + CAST ( + ( + 41 ) AS INTEGER ) * MIN ( ALL + - 15 ) * + ( + 39 ), - COALESCE ( 85, + 63 * COUNT ( 52 * - ( 14 ) + 94 / 29 ) - COALESCE ( - 40, 30 ) ) )
----
-46956

onlyif mysql # aggregate syntax: 
query II rowsort label-9852
SELECT DISTINCT - COALESCE ( 7, - COUNT( * ), - - 42 + - COUNT( * ) * 35 * + 59 * - 59 ) AS col2, - 61 AS col2
----
-7
-61

skipif mysql # not compatible
query II rowsort label-9852
SELECT DISTINCT - COALESCE ( 7, - COUNT ( * ), - - 42 + - COUNT ( * ) * 35 * + 59 * - 59 ) AS col2, - 61 AS col2
----
-7
-61

query I rowsort
SELECT ALL - 65 * 10
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL - NULLIF ( - 50, - COUNT( * ) / 47 )
----
50

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - NULLIF ( - 50, - COUNT ( * ) / 47 )
----
50

query I rowsort
SELECT DISTINCT - 47 * - 88 AS col2
----
4136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9856
SELECT ALL MIN( 76 ) * - CAST( - COUNT( * ) AS SIGNED ) + + 47 * - ( 23 ) - - - 17 * + 10 * - 19 + + 27 / 20 * - 71 * - - 99 + - 39 + - CASE - 70 WHEN COUNT( * ) THEN 50 WHEN + 95 - 81 THEN NULL ELSE NULL END + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL MIN ( 76 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + + 47 * - ( 23 ) - - - 17 * + 10 * - 19 + + 27 / 20 * - 71 * - - 99 + - 39 + - CASE - 70 WHEN COUNT ( * ) THEN 50 WHEN + 95 - 81 THEN NULL ELSE NULL END + 21
----
NULL

query I rowsort
SELECT DISTINCT 82 * + 76 * - 70 * - - 33 * - + 67 + + 60
----
964526700

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT 44 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT 44 / - 82
----
0

query I rowsort
SELECT 79 + - ( + 7 )
----
72

query I rowsort
SELECT ALL - COALESCE ( 22, + - 42, + 23 )
----
-22

query I rowsort
SELECT DISTINCT - 48 * + 19 AS col2
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL 0 * COUNT( DISTINCT + 76 ) + + - COUNT( * ) * 3 + - 78 + - 9 + - 62 * + 5
----
-400

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL 0 * COUNT ( DISTINCT + 76 ) + + - COUNT ( * ) * 3 + - 78 + - 9 + - 62 * + 5
----
-400

query I rowsort
SELECT 69 * + 51
----
3519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9864
SELECT ALL NULLIF ( 58, - 85 ) * + - MIN( + + 19 ) + CAST( + COUNT( * ) AS SIGNED ) + - CAST( CAST( - - 20 AS SIGNED ) AS SIGNED ) col1
----
-1121

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL NULLIF ( 58, - 85 ) * + - MIN ( + + 19 ) + CAST ( + COUNT ( * ) AS INTEGER ) + - CAST ( CAST ( - - 20 AS INTEGER ) AS INTEGER ) col1
----
-1121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT ALL - NULLIF ( - CAST( 79 AS SIGNED ), - - AVG ( - + 39 ) + - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - NULLIF ( - CAST ( 79 AS INTEGER ), - - AVG ( - + 39 ) + - 40 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9866
SELECT DISTINCT 75 * + + 99 * + - 19 * + 18 + + CASE + - CAST( NULL AS SIGNED ) WHEN - + COUNT( * ) - - ( + 34 ) THEN - + 66 * + 41 + - 64 END + - 30 * + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT 75 * + + 99 * + - 19 * + 18 + + CASE + - CAST ( NULL AS INTEGER ) WHEN - + COUNT ( * ) - - ( + 34 ) THEN - + 66 * + 41 + - 64 END + - 30 * + 73 AS col1
----
NULL

query II rowsort
SELECT ALL + 7 * NULLIF ( 53, - - 89 ) + + 53 * + COALESCE ( 15, + 4 ), + 12 AS col0
----
1166
12

query I rowsort
SELECT - COALESCE ( + 90, 68 * + + 29, - + 89 + + - CASE 54 WHEN + 60 THEN - + 90 END * + 52 ) * + ( + 87 )
----
-7830

query I rowsort
SELECT DISTINCT + 12 - - - 6 + + 55
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT - + 16 DIV - 9
----
1

skipif mysql # not compatible
query I rowsort label-9870
SELECT - + 16 / - 9
----
1

query I rowsort
SELECT - 28 * 1
----
-28

query I rowsort
SELECT DISTINCT 68 * + 47
----
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9873
SELECT DISTINCT + COUNT( * ) - + 68 * 82 DIV + 2
----
-2787

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT + COUNT ( * ) - + 68 * 82 / + 2
----
-2787

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT + COUNT( 32 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + COUNT ( 32 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9875
SELECT + + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + - 56 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT + + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - 56 col2
----
NULL

query I rowsort
SELECT DISTINCT - + 21 * 23 + 26 + - 25 + + 11 + 90 * + 64 * 48
----
276009

query I rowsort
SELECT - + 31 + - + 49
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT ALL CAST( + 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL CAST ( + 36 AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - + 15 * - SUM( + 5 ) * CASE + 60 WHEN + - 35 - - - 20 THEN + 35 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9879
SELECT - + 15 * - SUM ( + 5 ) * CASE + 60 WHEN + - 35 - - - 20 THEN + 35 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9880
SELECT - - 57 + - - 49 DIV - 22 + MAX( ALL - 85 ) + + 37 * - - 27
----
969

skipif mysql # not compatible
query I rowsort label-9880
SELECT - - 57 + - - 49 / - 22 + MAX ( ALL - 85 ) + + 37 * - - 27
----
969

query I rowsort
SELECT ( - + ( ( - - 77 ) ) )
----
-77

query I rowsort
SELECT + + 76 * - 60 AS col2
----
-4560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9883
SELECT + 58 - 50 + + ( - CAST( + 33 AS SIGNED ) ) * - + ( + CAST( - 47 AS SIGNED ) ) AS col1, 75 + - 66 + CAST( NULL AS SIGNED ) + + 43 + - 51 / + ( - NULLIF ( - ( + AVG ( ALL + 74 ) ), + ( 6 ) * AVG ( 19 ) + + 69 ) ) * + AVG ( - 48 )
----
-1543
NULL

skipif mysql # not compatible
query II rowsort label-9883
SELECT + 58 - 50 + + ( - CAST ( + 33 AS INTEGER ) ) * - + ( + CAST ( - 47 AS INTEGER ) ) AS col1, 75 + - 66 + CAST ( NULL AS INTEGER ) + + 43 + - 51 / + ( - NULLIF ( - ( + AVG ( ALL + 74 ) ), + ( 6 ) * AVG ( 19 ) + + 69 ) ) * + AVG ( - 48 )
----
-1543
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT + 28 DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-9884
SELECT + 28 / + - 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT ALL 97 DIV - + 76
----
-1

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL 97 / - + 76
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT ALL - 96 + - 22 * + 30 + - CAST( 36 AS SIGNED ) AS col1
----
-792

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL - 96 + - 22 * + 30 + - CAST ( 36 AS INTEGER ) AS col1
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + COUNT( ALL 36 ) + - 93 + - ( + 45 ) AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-9887
SELECT + COUNT ( ALL 36 ) + - 93 + - ( + 45 ) AS col2
----
-137

query I rowsort
SELECT + 85 + 79 AS col2
----
164

query I rowsort
SELECT ALL 39 * ( + + 76 ) AS col2
----
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT DISTINCT 98 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT 98 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT MAX( ALL + 11 ) col0
----
11

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT MAX ( ALL + 11 ) col0
----
11

query I rowsort
SELECT ALL - 61 + - + 85
----
-146

query II rowsort
SELECT 63 AS col2, + NULLIF ( + 60, - + 19 ) AS col0
----
63
60

query I rowsort
SELECT - 74 - + ( - 53 )
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-9895
SELECT ALL ( + + 40 ) DIV 67 + - 88 AS col0, + 36
----
-88
36

skipif mysql # not compatible
query II rowsort label-9895
SELECT ALL ( + + 40 ) / 67 + - 88 AS col0, + 36
----
-88
36

query I rowsort
SELECT + 3 - 34
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT ( - CAST( 83 AS SIGNED ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9897
SELECT ( - CAST ( 83 AS INTEGER ) ) AS col1
----
-83

query I rowsort
SELECT + ( - - 97 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT 7 DIV 10 + - + 15 col1
----
-15

skipif mysql # not compatible
query I rowsort label-9899
SELECT 7 / 10 + - + 15 col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT ALL 44 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL 44 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 63 * - CASE + 3 WHEN - - 71 * 38 THEN 64 END * - + 14 - 38
----
NULL

query II rowsort
SELECT ( + 90 ) AS col0, + 19 - - 27
----
90
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT DISTINCT NULLIF ( + 5, + 75 * 17 * - 18 + CAST( NULL AS SIGNED ) ) * + - 89 - + 48 + + 6 + ( + ( - 59 ) ) * - 67 * - CAST( - 80 AS SIGNED )
----
315753

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT NULLIF ( + 5, + 75 * 17 * - 18 + CAST ( NULL AS INTEGER ) ) * + - 89 - + 48 + + 6 + ( + ( - 59 ) ) * - 67 * - CAST ( - 80 AS INTEGER )
----
315753

query I rowsort
SELECT - 25 * + - 65
----
1625

query I rowsort
SELECT + 96 + + 99
----
195

query II rowsort
SELECT + 57, 36 AS col0
----
57
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL + + MIN( - 58 ) * COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL + + MIN ( - 58 ) * COUNT ( * ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL + COALESCE ( COUNT( * ), - - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL + COALESCE ( COUNT ( * ), - - 46 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9909
SELECT - - 5 / - - 10 - + + ( + 44 ) * 65 * - + MAX( DISTINCT + 32 ) / + - CAST( NULL AS SIGNED ) * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT - - 5 / - - 10 - + + ( + 44 ) * 65 * - + MAX ( DISTINCT + 32 ) / + - CAST ( NULL AS INTEGER ) * 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT - - 46 + MAX( ALL + 17 ) + - 46
----
17

skipif mysql # not compatible
query I rowsort label-9910
SELECT - - 46 + MAX ( ALL + 17 ) + - 46
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL + MAX( + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL + MAX ( + 9 ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9912
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2, 88 AS col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-9912
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2, 88 AS col1
----
NULL
88

query II rowsort
SELECT DISTINCT 4 AS col2, 59 * - 89 * - 98
----
4
514598

query I rowsort
SELECT - - 60 * + 61
----
3660

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT - - 55 + + COUNT( * ) col0
----
56

skipif mysql # not compatible
query I rowsort label-9915
SELECT - - 55 + + COUNT ( * ) col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9916
SELECT ALL + 49 DIV - NULLIF ( - + COALESCE ( MAX( ALL - 3 ), + 94 ), COUNT( * ) + MIN( CAST( + 37 AS SIGNED ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL + 49 / - NULLIF ( - + COALESCE ( MAX ( ALL - 3 ), + 94 ), COUNT ( * ) + MIN ( CAST ( + 37 AS INTEGER ) ) )
----
-16

query I rowsort
SELECT + 98 * - 64 col2
----
-6272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT DISTINCT - + CASE - - 96 WHEN + 44 / - COUNT( * ) + 47 THEN - - CASE - - ( + 4 ) WHEN - 71 + - - 53 * + + NULLIF ( 57, - - COUNT( * ) ) + 97 THEN - + 67 + - - 32 WHEN - 63 * - 59 THEN + 55 + + 58 ELSE 27 END * - 0 ELSE NULL END * - 42 + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT - + CASE - - 96 WHEN + 44 / - COUNT ( * ) + 47 THEN - - CASE - - ( + 4 ) WHEN - 71 + - - 53 * + + NULLIF ( 57, - - COUNT ( * ) ) + 97 THEN - + 67 + - - 32 WHEN - 63 * - 59 THEN + 55 + + 58 ELSE 27 END * - 0 ELSE NULL END * - 42 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL + COUNT( * ) + + ( + 76 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + COUNT ( * ) + + ( + 76 ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9920
SELECT DISTINCT - 67 + + 46 * + - 24 + - - 36, + CAST( NULL AS SIGNED ) + - 74 AS col1
----
-1135
NULL

skipif mysql # not compatible
query II rowsort label-9920
SELECT DISTINCT - 67 + + 46 * + - 24 + - - 36, + CAST ( NULL AS INTEGER ) + - 74 AS col1
----
-1135
NULL

query I rowsort
SELECT ALL - 9 * 47
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT - - COUNT( * ) + + ( + 66 )
----
67

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT - - COUNT ( * ) + + ( + 66 )
----
67

query I rowsort
SELECT DISTINCT 18 + - 89 + 52
----
-19

query I rowsort
SELECT DISTINCT - COALESCE ( - 87, - - 40, + 37 ) + - 35
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT - 33 + - COALESCE ( - + COUNT( * ), 30 )
----
-32

skipif mysql # not compatible
query I rowsort label-9925
SELECT - 33 + - COALESCE ( - + COUNT ( * ), 30 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT + 98 + - 19 + COUNT( * ) * 0
----
79

skipif mysql # not compatible
query I rowsort label-9926
SELECT + 98 + - 19 + COUNT ( * ) * 0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9927
SELECT - MIN( ALL 32 ) AS col1, 47
----
-32
47

skipif mysql # not compatible
query II rowsort label-9927
SELECT - MIN ( ALL 32 ) AS col1, 47
----
-32
47

query II rowsort
SELECT ALL 56 + - 88, 15 AS col2
----
-32
15

query I rowsort
SELECT + 79 + + 90 col0
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT ALL 44 * 41 * - 21 * - CASE + 79 WHEN - 28 / 9 THEN + - COUNT( - 5 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL 44 * 41 * - 21 * - CASE + 79 WHEN - 28 / 9 THEN + - COUNT ( - 5 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9931
SELECT - 23 DIV + 50 + + + 11
----
11

skipif mysql # not compatible
query I rowsort label-9931
SELECT - 23 / + 50 + + + 11
----
11

query I rowsort
SELECT ALL 90 * + ( - 51 ) AS col1
----
-4590

query II rowsort
SELECT 88 * - 80, 20 AS col1
----
-7040
20

query I rowsort
SELECT 4 * + 26 + - + 9 AS col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9935
SELECT MIN( ALL 66 ) * - 99 AS col2, 99 * - ( - ( - ( - - 85 ) ) ) AS col1
----
-6534
-8415

skipif mysql # not compatible
query II rowsort label-9935
SELECT MIN ( ALL 66 ) * - 99 AS col2, 99 * - ( - ( - ( - - 85 ) ) ) AS col1
----
-6534
-8415

query I rowsort
SELECT 5 * ( + 45 ) + + + 45 + + - 41 AS col2
----
229

query I rowsort
SELECT ALL + ( + 56 ) * + 93 * + 39 AS col2
----
203112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9938
SELECT + + CASE - + 73 WHEN 16 * + + 67 THEN 45 * + + COUNT( * ) * - COUNT( ALL 76 ) + + + NULLIF ( - 96, CAST( 78 AS SIGNED ) + - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT + + CASE - + 73 WHEN 16 * + + 67 THEN 45 * + + COUNT ( * ) * - COUNT ( ALL 76 ) + + + NULLIF ( - 96, CAST ( 78 AS INTEGER ) + - COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT ALL 34 * 41
----
1394

query I rowsort
SELECT 84 * + 65
----
5460

onlyif mysql # DIV for integer division: 
query II rowsort label-9941
SELECT 27 * - 90, - 61 DIV + 72 AS col2
----
-2430
0

skipif mysql # not compatible
query II rowsort label-9941
SELECT 27 * - 90, - 61 / + 72 AS col2
----
-2430
0

query I rowsort
SELECT ALL - 29 + - 31 * 58
----
-1827

query II rowsort
SELECT ALL 1 + 23, 60 col1
----
24
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9944
SELECT COUNT( * ) * COUNT( * ) + + 90 DIV - - 68 - 11
----
-9

skipif mysql # not compatible
query I rowsort label-9944
SELECT COUNT ( * ) * COUNT ( * ) + + 90 / - - 68 - 11
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9945
SELECT ALL - CAST( - COALESCE ( - 70, - + CAST( + COUNT( * ) AS SIGNED ) + + 8 * 64, 13 ) AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL - CAST ( - COALESCE ( - 70, - + CAST ( + COUNT ( * ) AS INTEGER ) + + 8 * 64, 13 ) AS INTEGER ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL - 79 + 67 + - CASE - 97 WHEN + - 35 * COUNT( * ) / - 12 + + 35 THEN NULL ELSE 90 + + 51 * - 40 END AS col1
----
1938

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - 79 + 67 + - CASE - 97 WHEN + - 35 * COUNT ( * ) / - 12 + + 35 THEN NULL ELSE 90 + + 51 * - 40 END AS col1
----
1938

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT + ( 94 ) DIV - - 86 + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-9947
SELECT + ( 94 ) / - - 86 + - 84
----
-83

query I rowsort
SELECT ALL - + 3 + 97 * - NULLIF ( 57, + 93 * + 79 ) AS col1
----
-5532

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT - COUNT( ALL + - 92 ) * - 34 * + COALESCE ( + 36, + 67 + - - 14 ) * - COUNT( * ) AS col1
----
-1224

skipif mysql # not compatible
query I rowsort label-9949
SELECT - COUNT ( ALL + - 92 ) * - 34 * + COALESCE ( + 36, + 67 + - - 14 ) * - COUNT ( * ) AS col1
----
-1224

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT DISTINCT - 15 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT - 15 / 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9951
SELECT 47 + - - COUNT( * ) * + 83 + - 0 DIV - COUNT( * ) + + + ( - 40 ) - - 67 * 6 AS col2
----
492

skipif mysql # not compatible
query I rowsort label-9951
SELECT 47 + - - COUNT ( * ) * + 83 + - 0 / - COUNT ( * ) + + + ( - 40 ) - - 67 * 6 AS col2
----
492

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT 82 DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-9952
SELECT 82 / - 73
----
-1

query I rowsort
SELECT 53 * + 51 AS col2
----
2703

query I rowsort
SELECT 63 + + + 92
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-9955
SELECT 53 col2, COUNT( * )
----
53
1

skipif mysql # not compatible
query II rowsort label-9955
SELECT 53 col2, COUNT ( * )
----
53
1

query I rowsort
SELECT DISTINCT + 16 * + 51 AS col2
----
816

query I rowsort
SELECT ALL + 44 - - + 19 * + 48 * - 30 + - 95
----
-27411

query I rowsort
SELECT ALL 3 - 26 AS col0
----
-23

query I rowsort
SELECT COALESCE ( 93, + 55 * + 25 + 16 + + COALESCE ( - ( 27 ), - + 35 + + 1 * 13 ) * + 14 * - - 13 * 67 + - 61 * - 64 * - - 2, - 49 * + 60 ) + 86 AS col2
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9960
SELECT 94 - - COALESCE ( - 61, + 43 * + NULLIF ( + + 99, + 11 * + 51 * - + CASE - COUNT( * ) WHEN 42 THEN NULL WHEN - 39 THEN - 99 - + COUNT( * ) WHEN ( 88 ) DIV 45 THEN - - 78 WHEN + COUNT( * ) THEN NULL ELSE NULL END * CAST( COUNT( * ) * 38 AS SIGNED ) ) ) DIV + 8 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9960
SELECT 94 - - COALESCE ( - 61, + 43 * + NULLIF ( + + 99, + 11 * + 51 * - + CASE - COUNT ( * ) WHEN 42 THEN NULL WHEN - 39 THEN - 99 - + COUNT ( * ) WHEN ( 88 ) / 45 THEN - - 78 WHEN + COUNT ( * ) THEN NULL ELSE NULL END * CAST ( COUNT ( * ) * 38 AS INTEGER ) ) ) / + 8 AS col0
----
87

query I rowsort
SELECT DISTINCT 95 * + + 12
----
1140

onlyif mysql # DIV for integer division: 
query II rowsort label-9962
SELECT 73 DIV 51 * + 9, + 31 col2
----
9
31

skipif mysql # not compatible
query II rowsort label-9962
SELECT 73 / 51 * + 9, + 31 col2
----
9
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT COUNT( * ) - 19 + 53 * + - 57 * ( 82 ), 14 AS col1
----
-247740
14

skipif mysql # not compatible
query II rowsort label-9963
SELECT COUNT ( * ) - 19 + 53 * + - 57 * ( 82 ), 14 AS col1
----
-247740
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT - 43 * - 29 + + 20 + - MIN( DISTINCT - 48 )
----
1315

skipif mysql # not compatible
query I rowsort label-9964
SELECT - 43 * - 29 + + 20 + - MIN ( DISTINCT - 48 )
----
1315

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL - 33 + + ( + COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - 33 + + ( + COUNT ( * ) )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9966
SELECT CAST( NULL AS SIGNED ) / 40 + CASE + + COALESCE ( + + MIN( ALL + 46 ), + 41 ) WHEN 94 THEN - - 71 WHEN SUM( ALL + - 72 ) THEN 61 WHEN + COUNT( * ) + - 14 + 30 THEN 84 ELSE NULL END * 57 * COUNT( * ) + ( - 96 ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT CAST ( NULL AS INTEGER ) / 40 + CASE + + COALESCE ( + + MIN ( ALL + 46 ), + 41 ) WHEN 94 THEN - - 71 WHEN SUM ( ALL + - 72 ) THEN 61 WHEN + COUNT ( * ) + - 14 + 30 THEN 84 ELSE NULL END * 57 * COUNT ( * ) + ( - 96 ) * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ( + COUNT( * ) ) + 42
----
43

skipif mysql # not compatible
query I rowsort label-9967
SELECT ( + COUNT ( * ) ) + 42
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT + - CAST( 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-9968
SELECT + - CAST ( 66 AS INTEGER )
----
-66

query I rowsort
SELECT ALL - ( - 1 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT DISTINCT - CAST( - - 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT - CAST ( - - 66 AS INTEGER )
----
-66

query I rowsort
SELECT 68 + - - 85
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL - COALESCE ( + COUNT( * ), - COUNT( * ) ) + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - COALESCE ( + COUNT ( * ), - COUNT ( * ) ) + + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9973
SELECT 99 + + - COUNT( * ) - 83 - - - 47 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT 99 + + - COUNT ( * ) - 83 - - - 47 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT ALL - 57, 53 AS col1
----
-57
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT COUNT( * ) * MIN( DISTINCT - 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9975
SELECT COUNT ( * ) * MIN ( DISTINCT - 92 ) AS col2
----
-92

query I rowsort
SELECT - 74 + + 0 - - 92 * + - 26 AS col2
----
-2466

query I rowsort
SELECT DISTINCT - 15 * - 33 * + 96
----
47520

query I rowsort
SELECT - - ( - - 3 )
----
3

query II rowsort
SELECT 92 + - 40 col1, 87 AS col2
----
52
87

query I rowsort
SELECT 63 * + + 42
----
2646

query I rowsort
SELECT 98 * - + NULLIF ( - 28, 61 )
----
2744

query II rowsort
SELECT ALL - 2 * + ( + 62 ) * + 62, - 54 + + 75 AS col0
----
-7688
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9983
SELECT DISTINCT 86 * - COUNT( * ), - 32 * - 63 + - + ( + - 81 ) DIV + 38 + 67 AS col0
----
-86
2085

skipif mysql # not compatible
query II rowsort label-9983
SELECT DISTINCT 86 * - COUNT ( * ), - 32 * - 63 + - + ( + - 81 ) / + 38 + 67 AS col0
----
-86
2085

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT MIN( ALL + 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT MIN ( ALL + 46 ) AS col0
----
46

query I rowsort
SELECT - 32 * 61 * - 48 * 56 AS col0
----
5246976

query I rowsort
SELECT ALL CASE 66 WHEN 56 + + 36 THEN - AVG ( DISTINCT - + 21 ) WHEN 84 THEN - 35 END AS col1
----
NULL

query II rowsort
SELECT + 97 * 25 AS col0, 60 + + + 39 * 5 + - 53 AS col0
----
2425
202

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT ALL - 67 DIV - - 8
----
-8

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - 67 / - - 8
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9989
SELECT ALL MIN( ALL - 39 ), - COUNT( ALL + 51 ) col2
----
-39
-1

skipif mysql # not compatible
query II rowsort label-9989
SELECT ALL MIN ( ALL - 39 ), - COUNT ( ALL + 51 ) col2
----
-39
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT - CAST( + + 55 AS SIGNED ) + - - 29 - + 40 - NULLIF ( - 93, - NULLIF ( - MAX( DISTINCT + 13 ), - SUM( 74 ) * - 61 ) / 18 + 51 + + 39 + - 93 + - - 45 + 95 / 36 / - 56 ) * 80 col0
----
7374

skipif mysql # not compatible
query I rowsort label-9990
SELECT - CAST ( + + 55 AS INTEGER ) + - - 29 - + 40 - NULLIF ( - 93, - NULLIF ( - MAX ( DISTINCT + 13 ), - SUM ( 74 ) * - 61 ) / 18 + 51 + + 39 + - 93 + - - 45 + 95 / 36 / - 56 ) * 80 col0
----
7374

query I rowsort
SELECT - 66 + 40 + 81 AS col2
----
55

query I rowsort
SELECT - 43 + + - 14 AS col0
----
-57

query I rowsort
SELECT ALL - - NULLIF ( + 96, - - 76 * + + 26 ) * 44 - + ( - 34 )
----
4258

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT - + NULLIF ( - + 24, 49 + - 99 - + + 73 * + 64 ) * + - 11 * MIN( 43 ) - + ( 25 )
----
-11377

skipif mysql # not compatible
query I rowsort label-9994
SELECT - + NULLIF ( - + 24, 49 + - 99 - + + 73 * + 64 ) * + - 11 * MIN ( 43 ) - + ( 25 )
----
-11377

query I rowsort
SELECT + + 68 + - 23 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9996
SELECT ALL + ( - - 5 ) * + 27 * 38 * + CAST( - SUM( ALL - CAST( 99 AS SIGNED ) ) AS SIGNED ) + 23 col0, - 56
----
507893
-56

skipif mysql # not compatible
query II rowsort label-9996
SELECT ALL + ( - - 5 ) * + 27 * 38 * + CAST ( - SUM ( ALL - CAST ( 99 AS INTEGER ) ) AS INTEGER ) + 23 col0, - 56
----
507893
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT 93 * + NULLIF ( CASE - 5 WHEN - - MIN( 10 ) * - 7 THEN + - 62 + 3 + + - ( COUNT( * ) ) ELSE 7 END, - 73 + - 86 ) + - MIN( ALL 23 ) * - COUNT( * ) * + 20
----
1111

skipif mysql # not compatible
query I rowsort label-9997
SELECT 93 * + NULLIF ( CASE - 5 WHEN - - MIN ( 10 ) * - 7 THEN + - 62 + 3 + + - ( COUNT ( * ) ) ELSE 7 END, - 73 + - 86 ) + - MIN ( ALL 23 ) * - COUNT ( * ) * + 20
----
1111

query I rowsort
SELECT - 95 * - - 83 AS col2
----
-7885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9999
SELECT ALL + 73 * 44 DIV - 76 + + COUNT( * ), MIN( 15 ) * + - 16 * + + CASE + + 85 WHEN 91 THEN + 44 WHEN 80 * - 83 - - 71 THEN - + CAST( NULL AS SIGNED ) ELSE NULL END + - CAST( 0 AS SIGNED ) * - 53 AS col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-9999
SELECT ALL + 73 * 44 / - 76 + + COUNT ( * ), MIN ( 15 ) * + - 16 * + + CASE + + 85 WHEN 91 THEN + 44 WHEN 80 * - 83 - - 71 THEN - + CAST ( NULL AS INTEGER ) ELSE NULL END + - CAST ( 0 AS INTEGER ) * - 53 AS col1
----
-41
NULL

