sqllogictest
Artifact Content
Not logged in

Artifact 2f22ee408f9e3ad04670fa516e16bac223ad32ff:


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