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 + 22 + + 32 AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-1
SELECT MAX( - 89 ) * 61 + 20 + - - 98 - 6 + 74, + ( - + 90 ) AS col1
----
-5243
-90

skipif mysql # not compatible
query II rowsort label-1
SELECT MAX ( - 89 ) * 61 + 20 + - - 98 - 6 + 74, + ( - + 90 ) AS col1
----
-5243
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL + 42 * + - ( MAX( + 84 ) ) AS col0
----
-3528

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL + 42 * + - ( MAX ( + 84 ) ) AS col0
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT COUNT( * ) * - 87 + ( - + 2 ) * NULLIF ( - - 79, - 25 + - - COALESCE ( + 34, ( - + 79 ) * 69, 51, 66 ) ) + + - 0 + - 95
----
-340

skipif mysql # not compatible
query I rowsort label-3
SELECT COUNT ( * ) * - 87 + ( - + 2 ) * NULLIF ( - - 79, - 25 + - - COALESCE ( + 34, ( - + 79 ) * 69, 51, 66 ) ) + + - 0 + - 95
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT NULLIF ( - 23, COUNT( * ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4
SELECT NULLIF ( - 23, COUNT ( * ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT - + SUM( DISTINCT 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5
SELECT - + SUM ( DISTINCT 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6
SELECT ALL + + 39 * + - CASE - 38 WHEN 61 + + 41 THEN + 43 WHEN + - 37 * 99 + + CAST( NULL AS DECIMAL ) THEN - 59 WHEN + + ( + COUNT( * ) ) THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL + + 39 * + - CASE - 38 WHEN 61 + + 41 THEN + 43 WHEN + - 37 * 99 + + CAST ( NULL AS REAL ) THEN - 59 WHEN + + ( + COUNT ( * ) ) THEN + 19 END
----
NULL

query I rowsort
SELECT - 88 * 82 * - 48
----
346368

query I rowsort
SELECT 39 * + + 56 AS col0
----
2184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT ALL - CASE 49 WHEN 2 THEN - - 38 - 93 / + COALESCE ( 34, 71 * + 34 + - - CASE + + 59 WHEN - + CAST( COUNT( * ) AS SIGNED ) + - 37 THEN + 26 WHEN + - 96 THEN + - 80 ELSE - 82 + - - COALESCE ( - - 31, - 20 / 73 ) * + 90 / + + 44 END, + + 96 ) END * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - CASE 49 WHEN 2 THEN - - 38 - 93 / + COALESCE ( 34, 71 * + 34 + - - CASE + + 59 WHEN - + CAST ( COUNT ( * ) AS INTEGER ) + - 37 THEN + 26 WHEN + - 96 THEN + - 80 ELSE - 82 + - - COALESCE ( - - 31, - 20 / 73 ) * + 90 / + + 44 END, + + 96 ) END * 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL ( 78 ) * + CAST( - - 4 AS SIGNED )
----
312

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL ( 78 ) * + CAST ( - - 4 AS INTEGER )
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT 44 * COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-11
SELECT 44 * COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-12
SELECT ALL 35 AS col1, 14 + - 74 * - 81 * - 44 + - - 72 + - MAX( ALL + 38 )
----
35
-263688

skipif mysql # not compatible
query II rowsort label-12
SELECT ALL 35 AS col1, 14 + - 74 * - 81 * - 44 + - - 72 + - MAX ( ALL + 38 )
----
35
-263688

query II rowsort
SELECT ALL 95 col0, - 33
----
95
-33

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

skipif mysql # not compatible
query II rowsort label-14
SELECT - 48 AS col0, COUNT ( * ) col1
----
-48
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT ALL 37 + + 83 + + CASE - - 51 WHEN - + CAST( 34 AS SIGNED ) + + ( - COALESCE ( - COUNT( * ), - COUNT( * ) * - COALESCE ( - 76, 31 ) + + 27, - 92 ) ) THEN + 74 * - 72 END - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL 37 + + 83 + + CASE - - 51 WHEN - + CAST ( 34 AS INTEGER ) + + ( - COALESCE ( - COUNT ( * ), - COUNT ( * ) * - COALESCE ( - 76, 31 ) + + 27, - 92 ) ) THEN + 74 * - 72 END - - 23 AS col2
----
NULL

query I rowsort
SELECT 59 * 94
----
5546

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

skipif mysql # not compatible
query I rowsort label-17
SELECT 65 / + 98
----
0

query I rowsort
SELECT 49 + + - 43 col2
----
6

query I rowsort
SELECT 59 + - - 95 AS col2
----
154

query I rowsort
SELECT DISTINCT - NULLIF ( - 84, + 77 ) * - 75 + + 2
----
-6298

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-21
SELECT ALL 71 + + - 83 DIV - CAST( 74 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL 71 + + - 83 / - CAST ( 74 AS INTEGER )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-22
SELECT 74 * + + ( 20 ), 29 + CAST( 29 AS SIGNED ) AS col1
----
1480
58

skipif mysql # not compatible
query II rowsort label-22
SELECT 74 * + + ( 20 ), 29 + CAST ( 29 AS INTEGER ) AS col1
----
1480
58

query I rowsort
SELECT DISTINCT + 66 + - 67 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-24
SELECT + + 59 AS col2, + SUM( - 57 )
----
59
-57

skipif mysql # not compatible
query II rowsort label-24
SELECT + + 59 AS col2, + SUM ( - 57 )
----
59
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT + + SUM( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-25
SELECT + + SUM ( 42 )
----
42

query I rowsort
SELECT ALL + 45 * - - 97
----
4365

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-27
SELECT + CAST( NULL AS SIGNED ), 58 AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-27
SELECT + CAST ( NULL AS INTEGER ), 58 AS col0
----
NULL
58

query I rowsort
SELECT 13 * - 95 AS col0
----
-1235

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-30
SELECT 92 - - + 76 * + 94 AS col1, - 34 * + COUNT( - 42 ) AS col2
----
7236
-34

skipif mysql # not compatible
query II rowsort label-30
SELECT 92 - - + 76 * + 94 AS col1, - 34 * + COUNT ( - 42 ) AS col2
----
7236
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT DISTINCT CASE MIN( 1 ) WHEN 0 THEN 91 - + - 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT CASE MIN ( 1 ) WHEN 0 THEN 91 - + - 63 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 54 * - 11 AS col2
----
-594

query II rowsort
SELECT DISTINCT 48 AS col1, 13 + 43 - - 77 + - - 19
----
48
152

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT - COUNT( + - 51 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-34
SELECT - COUNT ( + - 51 ) AS col1
----
-1

query I rowsort
SELECT + 52 + 75 + - + COALESCE ( - 57, + + 44 ) AS col1
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT 33 DIV + - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-36
SELECT 33 / + - 71 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-37
SELECT ALL + 69 DIV 18 - SUM( - 63 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL + 69 / 18 - SUM ( - 63 ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-38
SELECT + 36 - + + 86 + 79 - - 26 + + - 34 * + ( - ( + COALESCE ( - ( 17 ), + + 39 ) ) ) + - + 51 * 51 * + - CASE - 46 WHEN - 3 * + - CASE - ( - - 32 ) WHEN + 38 THEN NULL WHEN + + 41 * - 49 + - - COUNT( * ) + + + COUNT( + 96 ) THEN NULL ELSE - 43 END * + 2 * - + SUM( - 95 ) * - CAST( 70 AS SIGNED ) THEN NULL WHEN 32 THEN + 40 ELSE NULL END + + - 16 * - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-38
SELECT + 36 - + + 86 + 79 - - 26 + + - 34 * + ( - ( + COALESCE ( - ( 17 ), + + 39 ) ) ) + - + 51 * 51 * + - CASE - 46 WHEN - 3 * + - CASE - ( - - 32 ) WHEN + 38 THEN NULL WHEN + + 41 * - 49 + - - COUNT ( * ) + + + COUNT ( + 96 ) THEN NULL ELSE - 43 END * + 2 * - + SUM ( - 95 ) * - CAST ( 70 AS INTEGER ) THEN NULL WHEN 32 THEN + 40 ELSE NULL END + + - 16 * - + 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT DISTINCT 62 DIV + - 62
----
-1

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT 62 / + - 62
----
-1

query I rowsort
SELECT DISTINCT + 68 * - + 85 AS col1
----
-5780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-41
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ), MAX( ALL 45 ) col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-41
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ), MAX ( ALL 45 ) col1
----
NULL
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-42
SELECT ALL CAST( ( NULLIF ( + CAST( - 93 AS SIGNED ), + + CAST( + 77 AS SIGNED ) * - 84 - + - 67 + + - 56 + + 78 * + + ( - 20 ) * CASE + ( + 10 ) WHEN + COUNT( * ) THEN COUNT( * ) + - 50 * + + MAX( ALL + 76 ) WHEN 18 THEN NULL WHEN - COUNT( * ) THEN NULL END ) ) AS SIGNED ) + - - 67 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL CAST ( ( NULLIF ( + CAST ( - 93 AS INTEGER ), + + CAST ( + 77 AS INTEGER ) * - 84 - + - 67 + + - 56 + + 78 * + + ( - 20 ) * CASE + ( + 10 ) WHEN + COUNT ( * ) THEN COUNT ( * ) + - 50 * + + MAX ( ALL + 76 ) WHEN 18 THEN NULL WHEN - COUNT ( * ) THEN NULL END ) ) AS INTEGER ) + - - 67 AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-43
SELECT DISTINCT COUNT( * ) + + 43 * 45 DIV ( + 96 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT COUNT ( * ) + + 43 * 45 / ( + 96 ) AS col1
----
21

query I rowsort
SELECT ALL - 96 + - 14
----
-110

query I rowsort
SELECT 59 + 1 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL NULLIF ( COUNT( * ), + 94 ) + - MIN( 37 )
----
-36

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL NULLIF ( COUNT ( * ), + 94 ) + - MIN ( 37 )
----
-36

query I rowsort
SELECT 33 * + ( + 16 ) AS col0
----
528

query I rowsort
SELECT 69 + + 68 AS col2
----
137

query I rowsort
SELECT ALL + 97 + ( + 85 ) col0
----
182

query I rowsort
SELECT + 83 * + - 99 AS col2
----
-8217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-51
SELECT COALESCE ( - + COUNT( * ), + 29 * + 72 + + 9, ( CAST( NULL AS SIGNED ) ) - + MIN( + - 32 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-51
SELECT COALESCE ( - + COUNT ( * ), + 29 * + 72 + + 9, ( CAST ( NULL AS INTEGER ) ) - + MIN ( + - 32 ) ) AS col2
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL - SUM( + + 6 ) * + 2
----
-12

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL - SUM ( + + 6 ) * + 2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT + COUNT( * ) * + 58 + + 42 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-54
SELECT + COUNT ( * ) * + 58 + + 42 AS col1
----
100

query I rowsort
SELECT DISTINCT - - 10 * + 22 AS col1
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-56
SELECT - - 86 * + 29 AS col0, + CAST( - 95 AS SIGNED ) * + - 98 * + 0
----
2494
0

skipif mysql # not compatible
query II rowsort label-56
SELECT - - 86 * + 29 AS col0, + CAST ( - 95 AS INTEGER ) * + - 98 * + 0
----
2494
0

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT - - SUM( - 22 ) * - - 23 AS col2
----
-506

skipif mysql # not compatible
query I rowsort label-57
SELECT - - SUM ( - 22 ) * - - 23 AS col2
----
-506

onlyif mysql # aggregate syntax: 
query II rowsort label-58
SELECT ALL - + SUM( ALL - 15 ) * ( - 60 ) * + 28, - 71 AS col0
----
-25200
-71

skipif mysql # not compatible
query II rowsort label-58
SELECT ALL - + SUM ( ALL - 15 ) * ( - 60 ) * + 28, - 71 AS col0
----
-25200
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT ALL + - CASE - - 2 WHEN + 56 THEN - + COUNT( * ) WHEN COUNT( * ) * - + AVG ( ALL 25 ) + 87 * + 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL + - CASE - - 2 WHEN + 56 THEN - + COUNT ( * ) WHEN COUNT ( * ) * - + AVG ( ALL 25 ) + 87 * + 7 THEN NULL END
----
NULL

query I rowsort
SELECT - 48 * - 35 AS col2
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-63
SELECT ALL - + 68 * - CASE - CAST( - - 20 AS SIGNED ) WHEN - 71 THEN + COUNT( * ) * - + 30 WHEN 96 THEN NULL ELSE + 9 * + ( - - NULLIF ( - 99, - NULLIF ( - 12, + ( ( 40 ) ) ) ) ) END + - 3 AS col0
----
-60591

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - + 68 * - CASE - CAST ( - - 20 AS INTEGER ) WHEN - 71 THEN + COUNT ( * ) * - + 30 WHEN 96 THEN NULL ELSE + 9 * + ( - - NULLIF ( - 99, - NULLIF ( - 12, + ( ( 40 ) ) ) ) ) END + - 3 AS col0
----
-60591

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

query I rowsort
SELECT 28 * - ( 80 ) + - 80 AS col2
----
-2320

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

query I rowsort
SELECT - - 84 * + 39 * + + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT + 33 + + COUNT( * ) col0
----
34

skipif mysql # not compatible
query I rowsort label-68
SELECT + 33 + + COUNT ( * ) col0
----
34

query I rowsort
SELECT DISTINCT - 96 * + 50 * + 57
----
-273600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-70
SELECT ALL + NULLIF ( + 88, + CAST( NULL AS DECIMAL ) ) + 5 * - 18 + + 93 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL + NULLIF ( + 88, + CAST ( NULL AS REAL ) ) + 5 * - 18 + + 93 AS col0
----
91

query I rowsort
SELECT ALL 61 + + - NULLIF ( + NULLIF ( + + 50, 78 * ( - ( - 84 ) ) ), - - 22 ) AS col1
----
11

query I rowsort
SELECT + 67 * + + ( - - 53 ) AS col1
----
3551

query I rowsort
SELECT ALL 38 + 78 * - + 30
----
-2302

query I rowsort
SELECT + 31 - 35 + + - 90 AS col2
----
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL 2 + + 67 * - COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL 2 + + 67 * - COUNT ( * ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT DISTINCT 60 + + MIN( DISTINCT COALESCE ( + 8, - + 78 ) )
----
68

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT 60 + + MIN ( DISTINCT COALESCE ( + 8, - + 78 ) )
----
68

query I rowsort
SELECT - COALESCE ( - + ( + 89 ), + - 82 ) AS col2
----
89

query I rowsort
SELECT ALL 95 * - 61
----
-5795

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-81
SELECT ALL 7 DIV 9 * - COUNT( * ) DIV - 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL 7 / 9 * - COUNT ( * ) / - 11 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-82
SELECT ALL 66 - + 36 + - 89 AS col2, - 79 * + 36 - - 49 - - 6 * + COUNT( * )
----
-59
-2789

skipif mysql # not compatible
query II rowsort label-82
SELECT ALL 66 - + 36 + - 89 AS col2, - 79 * + 36 - - 49 - - 6 * + COUNT ( * )
----
-59
-2789

query I rowsort
SELECT - ( - 55 )
----
55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-85
SELECT ALL 59 * + 9 / + - SUM( DISTINCT + 16 ) * + - ( + 53 ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL 59 * + 9 / + - SUM ( DISTINCT + 16 ) * + - ( + 53 ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + ( 99 ) + - - ( - 14 )
----
85

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

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

query I rowsort
SELECT ALL 53 * - 10 AS col0
----
-530

query I rowsort
SELECT + 9 + + 80 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT - MAX( 46 ) * - 74 AS col0
----
3404

skipif mysql # not compatible
query I rowsort label-90
SELECT - MAX ( 46 ) * - 74 AS col0
----
3404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-91
SELECT ALL + 58, - 32 + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-91
SELECT ALL + 58, - 32 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
58
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT ALL - - NULLIF ( 6, 9 ) * + NULLIF ( - - 35, + COUNT( * ) ) AS col0
----
210

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL - - NULLIF ( 6, 9 ) * + NULLIF ( - - 35, + COUNT ( * ) ) AS col0
----
210

query I rowsort
SELECT DISTINCT + - 24 AS col1
----
-24

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

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

query I rowsort
SELECT + + 22 AS col1
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-97
SELECT + + 13 DIV - + 82 * 20 col0, - 78 + + 0 AS col2
----
0
-78

skipif mysql # not compatible
query II rowsort label-97
SELECT + + 13 / - + 82 * 20 col0, - 78 + + 0 AS col2
----
0
-78

query I rowsort
SELECT - 82 * + 69 AS col2
----
-5658

query I rowsort
SELECT + 21 - 55 AS col0
----
-34

query I rowsort
SELECT - 39 + 86 * + + 5
----
391

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

skipif mysql # not compatible
query I rowsort label-101
SELECT - 48 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL + - SUM( DISTINCT - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL + - SUM ( DISTINCT - 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT DISTINCT - 25 * - - COUNT( * ) + - - 9 * - 90
----
-835

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT - 25 * - - COUNT ( * ) + - - 9 * - 90
----
-835

query I rowsort
SELECT - + 39 col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-105
SELECT ALL + 73 * CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + 73 * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + 22 col0
----
NULL

query I rowsort
SELECT - 44 * - - ( - 63 ) AS col1
----
2772

query II rowsort
SELECT 16 AS col2, - 97 + 50 * - - 12
----
16
503

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

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL + 96 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-109
SELECT 40 + + 99 + + - COUNT( DISTINCT CASE + 0 WHEN + 85 THEN 27 * + - 9 + + 89 + - - 77 END ) DIV + 40 AS col1, + ( - + 31 ) AS col2
----
139
-31

skipif mysql # not compatible
query II rowsort label-109
SELECT 40 + + 99 + + - COUNT ( DISTINCT CASE + 0 WHEN + 85 THEN 27 * + - 9 + + 89 + - - 77 END ) / + 40 AS col1, + ( - + 31 ) AS col2
----
139
-31

query II rowsort
SELECT 59, - 34 AS col1
----
59
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT 49 + - CASE 13 WHEN + 22 * + + 9 * 27 + - - COUNT( * ) THEN + 20 * ( 16 ) + - 38 * + - 40 + COALESCE ( + + 49, 59 + 22 + - 28 + - + 89 ) + - COUNT( * ) END + + 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-111
SELECT 49 + - CASE 13 WHEN + 22 * + + 9 * 27 + - - COUNT ( * ) THEN + 20 * ( 16 ) + - 38 * + - 40 + COALESCE ( + + 49, 59 + 22 + - 28 + - + 89 ) + - COUNT ( * ) END + + 72 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT COUNT( + 45 ) + - 20 * - 1 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-112
SELECT COUNT ( + 45 ) + - 20 * - 1 AS col2
----
21

query I rowsort
SELECT DISTINCT 54 * 92
----
4968

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

skipif mysql # not compatible
query I rowsort label-114
SELECT 68 + + COUNT ( * ) * - 59 AS col0
----
9

query I rowsort
SELECT DISTINCT - 79 - ( + 10 ) AS col1
----
-89

query I rowsort
SELECT DISTINCT + 7 * - ( - 11 ) AS col2
----
77

query I rowsort
SELECT NULLIF ( 35, - 73 ) * + 27 * - 45
----
-42525

query II rowsort
SELECT - 76 AS col1, + 60 AS col0
----
-76
60

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT - 63 DIV - + NULLIF ( 64, - 93 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-119
SELECT - 63 / - + NULLIF ( 64, - 93 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-120
SELECT ALL - 58 DIV + CAST( + 82 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - 58 / + CAST ( + 82 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-121
SELECT DISTINCT CAST( NULL AS SIGNED ), - 70 + - - 92 AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-121
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 70 + - - 92 AS col1
----
NULL
22

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

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

query I rowsort
SELECT DISTINCT - 64 + + NULLIF ( - 23, 89 ) - + 20 * ( + - 53 ) - + 65
----
908

onlyif mysql # DIV for integer division: 
query II rowsort label-124
SELECT - 49 AS col0, 8 DIV + 57
----
-49
0

skipif mysql # not compatible
query II rowsort label-124
SELECT - 49 AS col0, 8 / + 57
----
-49
0

query I rowsort
SELECT ALL ( 21 ) + 69
----
90

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

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL CAST ( NULL AS INTEGER ) + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-127
SELECT + COUNT( * ) AS col0, - 7 * - + 98 AS col2
----
1
686

skipif mysql # not compatible
query II rowsort label-127
SELECT + COUNT ( * ) AS col0, - 7 * - + 98 AS col2
----
1
686

query I rowsort
SELECT 70 + 9 + + 1 col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT - 17 * + CAST( NULL AS SIGNED ) * + 72 + + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT - 17 * + CAST ( NULL AS INTEGER ) * + 72 + + + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL + 71 + COUNT( * ) + CASE + 90 WHEN - NULLIF ( + + 10, 4 ) * - 55 * 48 * + - COUNT( * ) * + 48 * COUNT( * ) THEN + 29 ELSE NULL END * + + 29 + + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + 71 + COUNT ( * ) + CASE + 90 WHEN - NULLIF ( + + 10, 4 ) * - 55 * 48 * + - COUNT ( * ) * + 48 * COUNT ( * ) THEN + 29 ELSE NULL END * + + 29 + + 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-131
SELECT DISTINCT - - 81, 68 * + COUNT( * ) + + 53 AS col1
----
81
121

skipif mysql # not compatible
query II rowsort label-131
SELECT DISTINCT - - 81, 68 * + COUNT ( * ) + + 53 AS col1
----
81
121

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT - + 92 * COUNT( * ) + + 6 + + 16 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-132
SELECT - + 92 * COUNT ( * ) + + 6 + + 16 AS col2
----
-70

query I rowsort
SELECT 39 + + 56
----
95

query I rowsort
SELECT + 73 * + NULLIF ( + 13, + ( + 60 ) ) AS col0
----
949

query I rowsort
SELECT 1 * 1 * + 4 + - 56 AS col2
----
-52

query I rowsort
SELECT ALL - 64 + + 2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT DISTINCT + 10 - + + 39 - - + 92 DIV + - 30 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT + 10 - + + 39 - - + 92 / + - 30 AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-138
SELECT + 78 * + 55 + 77 AS col1, - COUNT( * ) DIV SUM( + 12 ) * + - 97
----
4367
0

skipif mysql # not compatible
query II rowsort label-138
SELECT + 78 * + 55 + 77 AS col1, - COUNT ( * ) / SUM ( + 12 ) * + - 97
----
4367
0

query I rowsort
SELECT ALL + 92 * - 45 AS col1
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT 68 * - 55 * + COUNT( * ) AS col2
----
-3740

skipif mysql # not compatible
query I rowsort label-140
SELECT 68 * - 55 * + COUNT ( * ) AS col2
----
-3740

query I rowsort
SELECT DISTINCT - 47 - + + 49 * + 45 AS col0
----
-2252

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL MIN( DISTINCT 44 )
----
44

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL MIN ( DISTINCT 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT 58 * COALESCE ( - - 28, + 6, + - COUNT( * ) ) AS col2
----
1624

skipif mysql # not compatible
query I rowsort label-143
SELECT 58 * COALESCE ( - - 28, + 6, + - COUNT ( * ) ) AS col2
----
1624

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT 0 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-144
SELECT 0 / 76
----
0

query I rowsort
SELECT 74 - + 61
----
13

query I rowsort
SELECT 36 * 47
----
1692

query I rowsort
SELECT - ( 45 )
----
-45

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

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + - ( MIN ( DISTINCT - 46 ) ) * + COUNT ( * ) AS col1
----
46

query I rowsort
SELECT 28 - - - 53
----
-25

query I rowsort
SELECT DISTINCT - + 11 + 14
----
3

query I rowsort
SELECT ALL + 53 * + 91 + 10 AS col2
----
4833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT 54 + - COALESCE ( - 49, - CAST( + - 35 AS SIGNED ) - - 54 + + + COUNT( * ) + + 43, - 60 )
----
103

skipif mysql # not compatible
query I rowsort label-152
SELECT 54 + - COALESCE ( - 49, - CAST ( + - 35 AS INTEGER ) - - 54 + + + COUNT ( * ) + + 43, - 60 )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT DISTINCT + + 18 * COALESCE ( + + 56, + + COUNT( * ) * 2 * 52 + + - 51 ) + - 83 * 54
----
-3474

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT + + 18 * COALESCE ( + + 56, + + COUNT ( * ) * 2 * 52 + + - 51 ) + - 83 * 54
----
-3474

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL + - 96 * - 76 + + 71 + - + 44 + - 50 * - - 69 + + 68 + - + CASE + COUNT( * ) WHEN - 4 - + + 3 THEN + - 32 * 63 - 58 + + 99 * - + COUNT( * ) - + 29 - 39 * - 68 * - - 6 + + 6 + + 96 + - ( 13 ) * + - 82 / + 57 + - 5 END * + 11 / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + - 96 * - 76 + + 71 + - + 44 + - 50 * - - 69 + + 68 + - + CASE + COUNT ( * ) WHEN - 4 - + + 3 THEN + - 32 * 63 - 58 + + 99 * - + COUNT ( * ) - + 29 - 39 * - 68 * - - 6 + + 6 + + 96 + - ( 13 ) * + - 82 / + 57 + - 5 END * + 11 / 7
----
NULL

query I rowsort
SELECT COALESCE ( - 32, + - 5 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT ALL 73 * + + COUNT( * ) + - COUNT( * ) col2
----
72

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL 73 * + + COUNT ( * ) + - COUNT ( * ) col2
----
72

query I rowsort
SELECT + 53 * + 52
----
2756

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL + CASE - 2 WHEN + + 87 THEN + 50 ELSE NULL END * + ( + CASE + 91 WHEN 91 / + 61 THEN - ( COUNT( * ) ) END ) + - 82 * 49 * 7 - 42 * - + MAX( DISTINCT + 55 ) - + + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL + CASE - 2 WHEN + + 87 THEN + 50 ELSE NULL END * + ( + CASE + 91 WHEN 91 / + 61 THEN - ( COUNT ( * ) ) END ) + - 82 * 49 * 7 - 42 * - + MAX ( DISTINCT + 55 ) - + + 54 AS col0
----
NULL

query I rowsort
SELECT - CASE 6 WHEN + 75 / - + 60 THEN + - 1 ELSE ( 81 ) END
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-160
SELECT + COUNT( * ) - 53 - + 33 * 10 DIV + 55 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-160
SELECT + COUNT ( * ) - 53 - + 33 * 10 / + 55 AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-161
SELECT + COUNT( * ), + CASE - COUNT( * ) WHEN - - COUNT( * ) / MIN( + + 71 ) * 64 / - 35 THEN - 52 / 48 * - 10 + 70 + 26 * - - 87 * - + 59 * - 76 * - 94 * + 98 WHEN - 59 * + COALESCE ( + CAST( - 95 AS SIGNED ), - 52 ) * - 13 THEN - ( + 8 ) END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-161
SELECT + COUNT ( * ), + CASE - COUNT ( * ) WHEN - - COUNT ( * ) / MIN ( + + 71 ) * 64 / - 35 THEN - 52 / 48 * - 10 + 70 + 26 * - - 87 * - + 59 * - 76 * - 94 * + 98 WHEN - 59 * + COALESCE ( + CAST ( - 95 AS INTEGER ), - 52 ) * - 13 THEN - ( + 8 ) END AS col0
----
1
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT ALL CAST( - 36 AS SIGNED ) * 97 * + ( - + 53 ) AS col0
----
185076

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL CAST ( - 36 AS INTEGER ) * 97 * + ( - + 53 ) AS col0
----
185076

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT DISTINCT - SUM( DISTINCT - 11 ) * + ( 62 ) AS col2
----
682

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT - SUM ( DISTINCT - 11 ) * + ( 62 ) AS col2
----
682

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-167
SELECT - 53 AS col1, + 50 DIV 75 * + - 34 * + 79
----
-53
0

skipif mysql # not compatible
query II rowsort label-167
SELECT - 53 AS col1, + 50 / 75 * + - 34 * + 79
----
-53
0

query I rowsort
SELECT + 1 * 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT - 7 * SUM( ALL 90 )
----
-630

skipif mysql # not compatible
query I rowsort label-169
SELECT - 7 * SUM ( ALL 90 )
----
-630

query I rowsort
SELECT + 19 + + - 78 AS col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT DISTINCT - 62 * - 0 DIV - 2 * + 35
----
0

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT - 62 * - 0 / - 2 * + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - 1 - CASE - + COUNT( * ) WHEN - 87 THEN NULL ELSE - 84 END AS col0
----
83

skipif mysql # not compatible
query I rowsort label-172
SELECT - 1 - CASE - + COUNT ( * ) WHEN - 87 THEN NULL ELSE - 84 END AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-173
SELECT ALL - COUNT( * ) * - CASE + - CAST( NULL AS SIGNED ) WHEN 83 - + + 7 THEN + 82 * - 41 * - 88 * + 28 + + 19 WHEN CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL - COUNT ( * ) * - CASE + - CAST ( NULL AS INTEGER ) WHEN 83 - + + 7 THEN + 82 * - 41 * - 88 * + 28 + + 19 WHEN CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT - 71 + + 6 + + - 49 + - 93
----
-207

query I rowsort
SELECT ALL 77 * - 89 AS col0
----
-6853

query I rowsort
SELECT - 47 + + 80
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT DISTINCT COALESCE ( + 2, - + COUNT( * ), - ( + 28 ) )
----
2

skipif mysql # not compatible
query I rowsort label-177
SELECT DISTINCT COALESCE ( + 2, - + COUNT ( * ), - ( + 28 ) )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-178
SELECT - - 70 DIV COUNT( + ( + 34 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-178
SELECT - - 70 / COUNT ( + ( + 34 ) ) AS col1
----
70

query I rowsort
SELECT DISTINCT - ( 91 ) + ( + 28 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - + COUNT( * ) + - + 11 * - ( + - 35 ) - - - 84
----
-470

skipif mysql # not compatible
query I rowsort label-180
SELECT - + COUNT ( * ) + - + 11 * - ( + - 35 ) - - - 84
----
-470

query I rowsort
SELECT - - ( 48 ) * - + 95 * 87
----
-396720

query I rowsort
SELECT - 87 + + 79 col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-183
SELECT DISTINCT - 23 + - COALESCE ( 55, - + 65 + + 91 * + 64 * - CAST( NULL AS SIGNED ), + - 22 ) + + 22 AS col1, 15 DIV - MIN( ALL + ( - 4 ) )
----
-56
3

skipif mysql # not compatible
query II rowsort label-183
SELECT DISTINCT - 23 + - COALESCE ( 55, - + 65 + + 91 * + 64 * - CAST ( NULL AS INTEGER ), + - 22 ) + + 22 AS col1, 15 / - MIN ( ALL + ( - 4 ) )
----
-56
3

query II rowsort
SELECT - COALESCE ( 66, 25 * + 89 + + 38 * + 56, - + 65 ) * - 89 + - 28 AS col2, + 15 AS col1
----
5846
15

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

query I rowsort
SELECT ALL + + ( + 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-187
SELECT ALL - 76 * + COUNT( * ) - - COUNT( * ) + - 48, 27 col0
----
-123
27

skipif mysql # not compatible
query II rowsort label-187
SELECT ALL - 76 * + COUNT ( * ) - - COUNT ( * ) + - 48, 27 col0
----
-123
27

query I rowsort
SELECT - - 24 * - 71 AS col2
----
-1704

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

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

query I rowsort
SELECT - 17 + - 0 AS col2
----
-17

query I rowsort
SELECT + 73 * 91 * 96
----
637728

query I rowsort
SELECT - 85 * + 40 AS col2
----
-3400

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT ALL - 74 DIV + - 18
----
4

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL - 74 / + - 18
----
4

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-198
SELECT - COUNT ( * ) / 31 AS col1
----
0

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

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

query I rowsort
SELECT + 83 * - 61 col1
----
-5063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-201
SELECT ALL ( + + 36 ) * 13 + + COUNT( * ) DIV 62 - + 86 + + CASE 60 WHEN + + 68 THEN NULL WHEN - SUM( - 2 ) + + + 56 THEN + ( + 14 ) ELSE + + 10 END + - 34 AS col2
----
358

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL ( + + 36 ) * 13 + + COUNT ( * ) / 62 - + 86 + + CASE 60 WHEN + + 68 THEN NULL WHEN - SUM ( - 2 ) + + + 56 THEN + ( + 14 ) ELSE + + 10 END + - 34 AS col2
----
358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-202
SELECT 3 * + CASE WHEN NOT 88 IS NULL THEN NULL WHEN + 47 * + 40 <= NULL THEN + COUNT( * ) END + 44 + 99 + - COALESCE ( + 93, + + CAST( 13 AS SIGNED ) + - 23 ) * + 79 + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-202
SELECT 3 * + CASE WHEN NOT 88 IS NULL THEN NULL WHEN + 47 * + 40 <= NULL THEN + COUNT ( * ) END + 44 + 99 + - COALESCE ( + 93, + + CAST ( 13 AS INTEGER ) + - 23 ) * + 79 + + 27
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL SUM( ALL + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL SUM ( ALL + 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT SUM( + 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-205
SELECT SUM ( + 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query III rowsort label-206
SELECT DISTINCT COALESCE ( MIN( + + 66 ), 92 + + 95 ), 50 * + 31 AS col2, + 41 AS col2
----
66
1550
41

skipif mysql # not compatible
query III rowsort label-206
SELECT DISTINCT COALESCE ( MIN ( + + 66 ), 92 + + 95 ), 50 * + 31 AS col2, + 41 AS col2
----
66
1550
41

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT + + 46 * - 39 + + COUNT( ALL + 27 ) * - - 40 * + 12 * - COUNT( * ) AS col0
----
-2274

skipif mysql # not compatible
query I rowsort label-207
SELECT + + 46 * - 39 + + COUNT ( ALL + 27 ) * - - 40 * + 12 * - COUNT ( * ) AS col0
----
-2274

query II rowsort
SELECT + + 41 * + 76, - 60 AS col2
----
3116
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - NULLIF ( - + 40, COUNT( DISTINCT + 43 ) ) + + 35 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - NULLIF ( - + 40, COUNT ( DISTINCT + 43 ) ) + + 35 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-210
SELECT + MIN( - - 94 ) - + + 34 DIV + 70
----
94

skipif mysql # not compatible
query I rowsort label-210
SELECT + MIN ( - - 94 ) - + + 34 / + 70
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-211
SELECT ALL - 86 + + + 65 + + ( + 75 ) DIV - - 99 AS col1, + 83 + + 91
----
-21
174

skipif mysql # not compatible
query II rowsort label-211
SELECT ALL - 86 + + + 65 + + ( + 75 ) / - - 99 AS col1, + 83 + + 91
----
-21
174

onlyif mysql # aggregate syntax: 
query II rowsort label-212
SELECT + 76 - + - 99 + + 4 * 2 AS col2, - COUNT( * ) * - 98
----
183
98

skipif mysql # not compatible
query II rowsort label-212
SELECT + 76 - + - 99 + + 4 * 2 AS col2, - COUNT ( * ) * - 98
----
183
98

onlyif mysql # aggregate syntax: 
query II rowsort label-213
SELECT - 46 * - - 24, + 13 * + MIN( ALL 76 ) AS col2
----
-1104
988

skipif mysql # not compatible
query II rowsort label-213
SELECT - 46 * - - 24, + 13 * + MIN ( ALL 76 ) AS col2
----
-1104
988

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT DISTINCT - - 81 + + 41 DIV + 77
----
81

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT - - 81 + + 41 / + 77
----
81

query I rowsort
SELECT ALL 73 * - 22 col1
----
-1606

query I rowsort
SELECT - + 14 * + 7 * - + 61
----
5978

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

query I rowsort
SELECT ALL + + 39 - 77
----
-38

query I rowsort
SELECT 37 * - 72 col2
----
-2664

onlyif mysql # aggregate syntax: 
query II rowsort label-221
SELECT + SUM( + 52 ) AS col0, - 94
----
52
-94

skipif mysql # not compatible
query II rowsort label-221
SELECT + SUM ( + 52 ) AS col0, - 94
----
52
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-222
SELECT 86 + + 23 AS col1, - 81 * COALESCE ( + COUNT( * ), - + 3 - + + 68 DIV + - 66 * - + 24 ) + COUNT( + + ( 36 ) )
----
109
-80

skipif mysql # not compatible
query II rowsort label-222
SELECT 86 + + 23 AS col1, - 81 * COALESCE ( + COUNT ( * ), - + 3 - + + 68 / + - 66 * - + 24 ) + COUNT ( + + ( 36 ) )
----
109
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT 68 * - MAX( - 18 ) AS col1
----
1224

skipif mysql # not compatible
query I rowsort label-224
SELECT 68 * - MAX ( - 18 ) AS col1
----
1224

query I rowsort
SELECT DISTINCT - NULLIF ( - 8, - 10 )
----
8

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-227
SELECT 94 * COUNT( * ) DIV + 82, 75 + 94 AS col1
----
1
169

skipif mysql # not compatible
query II rowsort label-227
SELECT 94 * COUNT ( * ) / + 82, 75 + 94 AS col1
----
1
169

query I rowsort
SELECT 65 - 67
----
-2

query I rowsort
SELECT 74 - 71
----
3

query I rowsort
SELECT ALL + NULLIF ( 29, + 87 ) + + 8 - - 40 * - + 58
----
-2283

onlyif mysql # DIV for integer division: 
query I rowsort label-231
SELECT ALL 83 + - - COALESCE ( 87, + + 2, + - 87 - - 61 ) * 72 DIV - + 17 AS col1
----
-285

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL 83 + - - COALESCE ( 87, + + 2, + - 87 - - 61 ) * 72 / - + 17 AS col1
----
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 44 + 87 AS col1
----
131

query I rowsort
SELECT DISTINCT - 89 + 37 col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ALL 36 + 67 + + + 12 * - 10 * + - COUNT( * ) + - + ( + 77 )
----
146

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL 36 + 67 + + + 12 * - 10 * + - COUNT ( * ) + - + ( + 77 )
----
146

query I rowsort
SELECT ALL - 72 + + + 39
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-237
SELECT - 8 * + ( - 64 ) * + + ( + 80 ) + CAST( + 25 AS SIGNED ) - + + 61 * 0 * + ( 71 ) AS col1
----
40985

skipif mysql # not compatible
query I rowsort label-237
SELECT - 8 * + ( - 64 ) * + + ( + 80 ) + CAST ( + 25 AS INTEGER ) - + + 61 * 0 * + ( 71 ) AS col1
----
40985

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT MAX( ALL - 12 ) * 72
----
-864

skipif mysql # not compatible
query I rowsort label-238
SELECT MAX ( ALL - 12 ) * 72
----
-864

query I rowsort
SELECT 9 + 47 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT COALESCE ( 74, - MIN( ALL - 40 ) * + 29 ) + + 34
----
108

skipif mysql # not compatible
query I rowsort label-240
SELECT COALESCE ( 74, - MIN ( ALL - 40 ) * + 29 ) + + 34
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-241
SELECT CAST( 69 AS SIGNED ) - + 62
----
7

skipif mysql # not compatible
query I rowsort label-241
SELECT CAST ( 69 AS INTEGER ) - + 62
----
7

query I rowsort
SELECT DISTINCT - 54 * 34
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ALL MAX( - 54 ) * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL MAX ( - 54 ) * - 0 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT MAX( - 25 ) + + 48 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-245
SELECT MAX ( - 25 ) + + 48 AS col1
----
23

query I rowsort
SELECT 24 * 80
----
1920

query I rowsort
SELECT 63 + 23 AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-248
SELECT DISTINCT 69 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT 69 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT NULLIF ( + MIN( DISTINCT + 13 ), - 87 ) + 90 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-249
SELECT NULLIF ( + MIN ( DISTINCT + 13 ), - 87 ) + 90 AS col0
----
103

query I rowsort
SELECT DISTINCT 21 * - 25 AS col2
----
-525

query I rowsort
SELECT DISTINCT ( + 49 ) * + 36
----
1764

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

skipif mysql # not compatible
query I rowsort label-252
SELECT ( 3 ) / 17 AS col2
----
0

query I rowsort
SELECT ALL 68 * + 82
----
5576

query I rowsort
SELECT DISTINCT 85 * - 91
----
-7735

query I rowsort
SELECT 84 + 35 AS col1
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT ( ( - 1 ) ) DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-256
SELECT ( ( - 1 ) ) / + 97 AS col0
----
0

query I rowsort
SELECT + 36 * 75 + - ( 10 ) AS col0
----
2690

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT MAX( ALL 76 )
----
76

skipif mysql # not compatible
query I rowsort label-258
SELECT MAX ( ALL 76 )
----
76

query I rowsort
SELECT 3 * 99
----
297

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

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - 75 + COUNT ( * ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT COUNT( DISTINCT 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-261
SELECT COUNT ( DISTINCT 77 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT 84 + 11 DIV 8 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-262
SELECT 84 + 11 / 8 AS col0
----
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-264
SELECT DISTINCT + 3 + CAST( NULL AS DECIMAL ) / + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT + 3 + CAST ( NULL AS REAL ) / + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT 93 * - 80
----
-7440

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT ALL 78 + - 35 DIV 80
----
78

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL 78 + - 35 / 80
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-267
SELECT DISTINCT + 30 * CAST( 75 DIV + SUM( ALL NULLIF ( - 82, + 36 ) ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT + 30 * CAST ( 75 / + SUM ( ALL NULLIF ( - 82, + 36 ) ) AS INTEGER ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 58 + - 94 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL + COUNT( * ) + + 66
----
67

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL + COUNT ( * ) + + 66
----
67

query I rowsort
SELECT 19 + 65 AS col0
----
84

query I rowsort
SELECT ALL + 40 + 14 AS col2
----
54

query I rowsort
SELECT 28 + 78 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT 9 * CASE - 18 WHEN 37 / COALESCE ( COALESCE ( + 4, 81 ), - ( - COALESCE ( ( - 16 ), COUNT( * ) ) ) ) THEN NULL ELSE 67 END AS col2
----
603

skipif mysql # not compatible
query I rowsort label-273
SELECT 9 * CASE - 18 WHEN 37 / COALESCE ( COALESCE ( + 4, 81 ), - ( - COALESCE ( ( - 16 ), COUNT ( * ) ) ) ) THEN NULL ELSE 67 END AS col2
----
603

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - 79 * - 23 + - MAX( - 7 )
----
1824

skipif mysql # not compatible
query I rowsort label-274
SELECT - 79 * - 23 + - MAX ( - 7 )
----
1824

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT DISTINCT + 86 - 63 DIV 70 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT + 86 - 63 / 70 AS col2
----
86

query I rowsort
SELECT ALL - COALESCE ( 50, + 31 * 77 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT - + ( - SUM( DISTINCT 69 ) )
----
69

skipif mysql # not compatible
query I rowsort label-277
SELECT - + ( - SUM ( DISTINCT 69 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT DISTINCT COUNT( * ) * 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-278
SELECT DISTINCT COUNT ( * ) * 44 AS col2
----
44

query I rowsort
SELECT DISTINCT + + 97 - + ( + 23 ) AS col0
----
74

query I rowsort
SELECT ALL 24 * 78 col1
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL + 92 - + SUM( - 3 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + 92 - + SUM ( - 3 ) AS col0
----
95

query I rowsort
SELECT + - 81 + 63 AS col2
----
-18

query I rowsort
SELECT ALL - 1 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL - COUNT( * ) * - 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL - COUNT ( * ) * - 16 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT - - COALESCE ( - 50, CASE 45 WHEN 68 THEN 57 + - 23 * 68 WHEN 91 * + 34 THEN NULL WHEN 10 * + CAST( NULL AS SIGNED ) THEN - 44 * + 7 ELSE NULL END + - 19 ) - - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-285
SELECT - - COALESCE ( - 50, CASE 45 WHEN 68 THEN 57 + - 23 * 68 WHEN 91 * + 34 THEN NULL WHEN 10 * + CAST ( NULL AS INTEGER ) THEN - 44 * + 7 ELSE NULL END + - 19 ) - - COUNT ( * )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-286
SELECT + - 31 DIV + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-286
SELECT + - 31 / + 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT - 70 * COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-287
SELECT - 70 * COUNT ( * ) AS col1
----
-70

query I rowsort
SELECT - + 62 - 20
----
-82

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

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

query I rowsort
SELECT ALL + NULLIF ( + 73, 89 ) * - 11
----
-803

query I rowsort
SELECT ALL + COALESCE ( ( + 50 ), 6 ) col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT CASE - 33 WHEN - 20 * COUNT( * ) THEN 7 - + 25 * 26 WHEN - 83 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT CASE - 33 WHEN - 20 * COUNT ( * ) THEN 7 - + 25 * 26 WHEN - 83 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-293
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) * 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) * 35 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT + + 79 * + CAST( 91 AS SIGNED )
----
7189

skipif mysql # not compatible
query I rowsort label-294
SELECT + + 79 * + CAST ( 91 AS INTEGER )
----
7189

query I rowsort
SELECT + 14 - + ( 79 ) AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-296
SELECT + CAST( - 71 AS SIGNED ) - 83 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-296
SELECT + CAST ( - 71 AS INTEGER ) - 83 AS col0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT + SUM( 44 )
----
44

skipif mysql # not compatible
query I rowsort label-297
SELECT + SUM ( 44 )
----
44

query I rowsort
SELECT ( + + NULLIF ( - 67, + COALESCE ( 82, - 44 / - 75 ) ) )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-299
SELECT + ( - 17 ) * + AVG ( DISTINCT + 2 / CASE 81 WHEN - 61 THEN CAST( CAST( - 87 AS SIGNED ) AS SIGNED ) ELSE NULL END + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT + ( - 17 ) * + AVG ( DISTINCT + 2 / CASE 81 WHEN - 61 THEN CAST ( CAST ( - 87 AS INTEGER ) AS INTEGER ) ELSE NULL END + 21 )
----
NULL

query I rowsort
SELECT + 79 + + 4 * + 53 AS col1
----
291

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

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

query I rowsort
SELECT + COALESCE ( - + 45, - 8 + 89 * 74, - 93 )
----
-45

query I rowsort
SELECT 7 * + COALESCE ( + 58, - ( NULLIF ( COALESCE ( + 11, 53 * - 7, - 41 * 77 ), 3 ) ) ) + - 15
----
391

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT DISTINCT - 50 * - + 26 + + 5 DIV 19 AS col0
----
1300

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT - 50 * - + 26 + + 5 / 19 AS col0
----
1300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-305
SELECT ALL + 51 * + - CAST( NULL AS SIGNED ) + + ( + ( - 32 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + 51 * + - CAST ( NULL AS INTEGER ) + + ( + ( - 32 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT CASE COALESCE ( + ( + 63 ), 37 ) WHEN - 43 * + 36 THEN + COUNT( * ) + 98 * + 52 WHEN - 15 THEN NULL WHEN 41 + + 51 * 60 THEN - 3 ELSE 40 END
----
40

skipif mysql # not compatible
query I rowsort label-306
SELECT CASE COALESCE ( + ( + 63 ), 37 ) WHEN - 43 * + 36 THEN + COUNT ( * ) + 98 * + 52 WHEN - 15 THEN NULL WHEN 41 + + 51 * 60 THEN - 3 ELSE 40 END
----
40

query I rowsort
SELECT + 25 * - 43 AS col1
----
-1075

query I rowsort
SELECT ALL 30 * 60
----
1800

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT + 42 DIV - 46 * 69
----
0

skipif mysql # not compatible
query I rowsort label-309
SELECT + 42 / - 46 * 69
----
0

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

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

query I rowsort
SELECT COALESCE ( 99, 69 * + 13 ) AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT ALL - 81 DIV - - 52
----
-1

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL - 81 / - - 52
----
-1

query I rowsort
SELECT 45 * - + CASE - 70 WHEN - 95 + 79 THEN NULL WHEN 49 / - 69 + 84 THEN + 84 * - 73 ELSE - 60 + + 35 END * 86 + + 94 AS col1
----
96844

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - ( COUNT( * ) ) * - 7 + 35 col1
----
42

skipif mysql # not compatible
query I rowsort label-314
SELECT - ( COUNT ( * ) ) * - 7 + 35 col1
----
42

query I rowsort
SELECT ALL + 8 * + 82 - 57 AS col2
----
599

query I rowsort
SELECT - 42 + 49
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-317
SELECT DISTINCT + ( - COALESCE ( - CASE + 61 WHEN 37 THEN 67 ELSE - CAST( + 62 AS SIGNED ) * - MAX( ALL 57 ) END, - 26, + COUNT( ALL - 39 ) ) )
----
3534

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT + ( - COALESCE ( - CASE + 61 WHEN 37 THEN 67 ELSE - CAST ( + 62 AS INTEGER ) * - MAX ( ALL 57 ) END, - 26, + COUNT ( ALL - 39 ) ) )
----
3534

query I rowsort
SELECT - 65 - + 67
----
-132

query I rowsort
SELECT ALL + 96 * + + 98 * 48 + ( + 24 ) AS col0
----
451608

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT + 22 * - MIN( 2 ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-321
SELECT + 22 * - MIN ( 2 ) col0
----
-44

query I rowsort
SELECT + NULLIF ( - 30, 51 * ( 52 ) ) * + 12 + 14
----
-346

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT - - COUNT( * ) + - - 30
----
31

skipif mysql # not compatible
query I rowsort label-323
SELECT - - COUNT ( * ) + - - 30
----
31

query I rowsort
SELECT - + 35 * 71 col1
----
-2485

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

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

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

query I rowsort
SELECT - + 66 + - 43
----
-109

query I rowsort
SELECT - 67 * - 72 AS col0
----
4824

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT DISTINCT + CASE COUNT( * ) WHEN 30 * 49 THEN NULL WHEN 83 THEN NULL ELSE + COUNT( * ) + 54 END AS col2
----
55

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT + CASE COUNT ( * ) WHEN 30 * 49 THEN NULL WHEN 83 THEN NULL ELSE + COUNT ( * ) + 54 END AS col2
----
55

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

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL + COUNT ( * ) + - 13 AS col2
----
-12

query I rowsort
SELECT DISTINCT COALESCE ( 48, - 55, - 5 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT DISTINCT - 89 + COUNT( * ) + - 11 * - COUNT( * ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT - 89 + COUNT ( * ) + - 11 * - COUNT ( * ) col1
----
-77

query I rowsort
SELECT - 94 + 45 AS col1
----
-49

query I rowsort
SELECT - - 50 + + - 44 * + 47
----
-2018

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT - MIN( - 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-335
SELECT - MIN ( - 99 ) AS col1
----
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT DISTINCT + - 15 + + + 57 - - 95 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT + - 15 + + + 57 - - 95 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - 26, - 29 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-339
SELECT ALL + SUM( 21 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL + SUM ( 21 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT - SUM( ALL + + 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-340
SELECT - SUM ( ALL + + 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT - MIN( + + 44 ) + COALESCE ( COUNT( * ), + 61 + NULLIF ( - SUM( ALL + 63 ), - ( - COUNT( DISTINCT + ( 1 ) ) ) ) ) + ( 31 ) * - 37 col2
----
-1190

skipif mysql # not compatible
query I rowsort label-341
SELECT - MIN ( + + 44 ) + COALESCE ( COUNT ( * ), + 61 + NULLIF ( - SUM ( ALL + 63 ), - ( - COUNT ( DISTINCT + ( 1 ) ) ) ) ) + ( 31 ) * - 37 col2
----
-1190

query I rowsort
SELECT ALL - 12 * + 7 * + 43
----
-3612

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-343
SELECT DISTINCT + COUNT( * ) AS col2, - 71 DIV + 52 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-343
SELECT DISTINCT + COUNT ( * ) AS col2, - 71 / + 52 AS col0
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT ALL + NULLIF ( - 42, - 69 * CASE 84 * 29 - ( + COUNT( * ) ) WHEN + 13 THEN 95 + ( - 98 + + CAST( 89 AS SIGNED ) ) * - 3 WHEN MIN( + 38 ) THEN NULL END )
----
-42

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL + NULLIF ( - 42, - 69 * CASE 84 * 29 - ( + COUNT ( * ) ) WHEN + 13 THEN 95 + ( - 98 + + CAST ( 89 AS INTEGER ) ) * - 3 WHEN MIN ( + 38 ) THEN NULL END )
----
-42

query II rowsort
SELECT DISTINCT + 51 AS col1, ( - 60 ) * + 66
----
51
-3960

query I rowsort
SELECT + 1 * + + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT - 33 * 95 + + + MIN( + 32 ) AS col0
----
-3103

skipif mysql # not compatible
query I rowsort label-347
SELECT - 33 * 95 + + + MIN ( + 32 ) AS col0
----
-3103

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT + 71 * + COUNT( * ) * SUM( 55 ) AS col0
----
3905

skipif mysql # not compatible
query I rowsort label-348
SELECT + 71 * + COUNT ( * ) * SUM ( 55 ) AS col0
----
3905

query II rowsort
SELECT ALL + 92 AS col2, - 11 AS col0
----
92
-11

query I rowsort
SELECT DISTINCT 12 * + - 28 * 55
----
-18480

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT DISTINCT 23 * - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT 23 * - COUNT ( * ) AS col2
----
-23

query I rowsort
SELECT + 64 * - 3 + - 38 AS col0
----
-230

query I rowsort
SELECT ALL + 25 * - 37 AS col1
----
-925

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT - 2 * 64 * + 42 + 96 * COUNT( DISTINCT 89 ) AS col2
----
-5280

skipif mysql # not compatible
query I rowsort label-354
SELECT - 2 * 64 * + 42 + 96 * COUNT ( DISTINCT 89 ) AS col2
----
-5280

query I rowsort
SELECT NULLIF ( - - 72, + 80 ) * 73 AS col1
----
5256

query I rowsort
SELECT + ( + + 73 ) + + CASE 48 WHEN - ( + 36 ) THEN - 62 - - 59 END + 92 / + 88
----
NULL

query I rowsort
SELECT ALL - - 46 AS col0
----
46

query II rowsort
SELECT + 99 AS col2, + 58 * - 84
----
99
-4872

onlyif mysql # DIV for integer division: 
query I rowsort label-359
SELECT - 85 DIV + 23 - 60
----
-63

skipif mysql # not compatible
query I rowsort label-359
SELECT - 85 / + 23 - 60
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT + + ( + - 81 ) * + 99 + 20 * COUNT( * ) + + 24 AS col0
----
-7975

skipif mysql # not compatible
query I rowsort label-360
SELECT + + ( + - 81 ) * + 99 + 20 * COUNT ( * ) + + 24 AS col0
----
-7975

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT ALL - - 68 AS col2, 9 * + - 78 * - COUNT( * )
----
68
702

skipif mysql # not compatible
query II rowsort label-361
SELECT ALL - - 68 AS col2, 9 * + - 78 * - COUNT ( * )
----
68
702

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT DISTINCT + 73 + + - ( + + 56 ) + + NULLIF ( + 14, 38 + 72 ) * COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT + 73 + + - ( + + 56 ) + + NULLIF ( + 14, 38 + 72 ) * COUNT ( * ) AS col1
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL COUNT( * ) + + - ( + 13 )
----
-12

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL COUNT ( * ) + + - ( + 13 )
----
-12

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

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

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

query I rowsort
SELECT ALL + 60 + + - 20 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT - 1 * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT - 1 * - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL + 90 + - ( 79 ) - 67 * ( 23 ) AS col0
----
-1530

query I rowsort
SELECT + 92 * - + 17
----
-1564

query I rowsort
SELECT DISTINCT - 57 + 46
----
-11

query I rowsort
SELECT ALL + 99 + - - 11
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT DISTINCT - - MIN( ALL 29 ) * - 21 AS col0
----
-609

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT - - MIN ( ALL 29 ) * - 21 AS col0
----
-609

query I rowsort
SELECT + 19 * 78 * + - 63
----
-93366

query I rowsort
SELECT - 59 - - 6 + 71 * ( - 34 * + ( 15 ) ) AS col1
----
-36263

query I rowsort
SELECT ALL 61 + + 44 AS col1
----
105

query I rowsort
SELECT 3 * + 15 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT DISTINCT SUM( - 87 ) * - - 49 AS col1
----
-4263

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT SUM ( - 87 ) * - - 49 AS col1
----
-4263

query I rowsort
SELECT DISTINCT + 44 - + - 81 + - ( - 27 )
----
152

query I rowsort
SELECT 93 * + 96
----
8928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-381
SELECT ALL + COALESCE ( - 95, CAST( + - ( + 19 ) AS SIGNED ), 41 ) - 55
----
-150

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL + COALESCE ( - 95, CAST ( + - ( + 19 ) AS INTEGER ), 41 ) - 55
----
-150

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

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

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

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

query I rowsort
SELECT ALL - CASE 75 WHEN + 56 - + 36 THEN 92 * 58 + - 0 / - 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT 18 * - COUNT( * ) * + 25 * + - 94
----
42300

skipif mysql # not compatible
query I rowsort label-385
SELECT 18 * - COUNT ( * ) * + 25 * + - 94
----
42300

query I rowsort
SELECT ALL + CASE - 52 WHEN + 27 THEN - 34 ELSE NULL END * + 85 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ALL - 27 - + - MAX( DISTINCT 52 ) + + + NULLIF ( - COUNT( * ), + SUM( DISTINCT + 31 ) ) * 68
----
-43

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL - 27 - + - MAX ( DISTINCT 52 ) + + + NULLIF ( - COUNT ( * ), + SUM ( DISTINCT + 31 ) ) * 68
----
-43

query I rowsort
SELECT ALL - 99 col2
----
-99

query I rowsort
SELECT DISTINCT - ( 32 ) * 63
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL - CASE 76 WHEN 98 - - COUNT( * ) + ( + 76 ) THEN NULL WHEN - 78 THEN + 28 + - 28 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL - CASE 76 WHEN 98 - - COUNT ( * ) + ( + 76 ) THEN NULL WHEN - 78 THEN + 28 + - 28 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT 47 * + SUM( + + 79 ) * + - 65 * 54
----
-13032630

skipif mysql # not compatible
query I rowsort label-391
SELECT 47 * + SUM ( + + 79 ) * + - 65 * 54
----
-13032630

query I rowsort
SELECT 18 + + + 3 + + + COALESCE ( + 16, 88, NULLIF ( + 74, 31 ) ) * 11 col2
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT ALL - - COALESCE ( + COUNT( * ), + MAX( - 3 ) + 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL - - COALESCE ( + COUNT ( * ), + MAX ( - 3 ) + 20 ) AS col2
----
1

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 77, - AVG ( ALL - 12 ) )
----
77

query I rowsort
SELECT + NULLIF ( - 78, 33 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-397
SELECT DISTINCT - COUNT( * ) * - 41 DIV + 13 - 79 + 87 * + 6 * 19 AS col1
----
9842

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT - COUNT ( * ) * - 41 / + 13 - 79 + 87 * + 6 * 19 AS col1
----
9842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-398
SELECT ALL MIN( ALL 17 ) + - 25 + - ( + 19 ) DIV - 35 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL MIN ( ALL 17 ) + - 25 + - ( + 19 ) / - 35 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT + 57 * - + COUNT( * ) + + 70
----
13

skipif mysql # not compatible
query I rowsort label-399
SELECT + 57 * - + COUNT ( * ) + + 70
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT + 40 + 84 - - 87 + + + ( - 80 ) * 79 * COUNT( ALL - 39 )
----
-6109

skipif mysql # not compatible
query I rowsort label-400
SELECT + 40 + 84 - - 87 + + + ( - 80 ) * 79 * COUNT ( ALL - 39 )
----
-6109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-401
SELECT ALL - CASE + + 99 WHEN + 64 THEN - + MAX( - 58 ) WHEN 53 THEN NULL END + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL - CASE + + 99 WHEN + 64 THEN - + MAX ( - 58 ) WHEN 53 THEN NULL END + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 19 * - + 76 AS col1
----
-1444

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT ALL + 94 + CASE + 79 WHEN 67 THEN NULL WHEN 64 * + MAX( 64 ) THEN 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + 94 + CASE + 79 WHEN 67 THEN NULL WHEN 64 * + MAX ( 64 ) THEN 58 END
----
NULL

query I rowsort
SELECT 52 - - - 55 * 59 AS col2
----
-3193

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-405
SELECT ALL - 19 * - MAX( - 3 ) / + 77 * CASE - 46 * 60 WHEN + 1 + ( 0 ) THEN - 3 WHEN - 81 * ( CAST( CASE 55 WHEN 33 THEN ( - COUNT( * ) ) + 27 WHEN + 62 THEN NULL END AS DECIMAL ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL - 19 * - MAX ( - 3 ) / + 77 * CASE - 46 * 60 WHEN + 1 + ( 0 ) THEN - 3 WHEN - 81 * ( CAST ( CASE 55 WHEN 33 THEN ( - COUNT ( * ) ) + 27 WHEN + 62 THEN NULL END AS REAL ) ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT + + 86 * - 87 + + 46 + - 43 + - COUNT( * ) * 92
----
-7571

skipif mysql # not compatible
query I rowsort label-406
SELECT + + 86 * - 87 + + 46 + - 43 + - COUNT ( * ) * 92
----
-7571

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT - MAX( DISTINCT + + 97 ) + - 10 * - 97 * ( + 22 * + 46 ) + 17 AS col2
----
981560

skipif mysql # not compatible
query I rowsort label-407
SELECT - MAX ( DISTINCT + + 97 ) + - 10 * - 97 * ( + 22 * + 46 ) + 17 AS col2
----
981560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-408
SELECT 31 + + NULLIF ( + 70, - 61 ) + - MIN( ALL + 79 ) DIV - 93
----
101

skipif mysql # not compatible
query I rowsort label-408
SELECT 31 + + NULLIF ( + 70, - 61 ) + - MIN ( ALL + 79 ) / - 93
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT - COALESCE ( ( + - 3 ), - 21, - CAST( NULL AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-409
SELECT - COALESCE ( ( + - 3 ), - 21, - CAST ( NULL AS INTEGER ) )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-410
SELECT ALL + COALESCE ( SUM( - 9 ), - SUM( 8 ) ) DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL + COALESCE ( SUM ( - 9 ), - SUM ( 8 ) ) / - 61 AS col1
----
0

query I rowsort
SELECT + 56 + + 10 + + 12 * + 13
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT ALL - 67 - - 54 DIV + 63 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL - 67 - - 54 / + 63 AS col1
----
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL + COUNT( DISTINCT - 23 ) - 3 + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL + COUNT ( DISTINCT - 23 ) - 3 + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-415
SELECT CAST( NULL AS SIGNED ) * + - 70 * 23, - 79 AS col1
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-415
SELECT CAST ( NULL AS INTEGER ) * + - 70 * 23, - 79 AS col1
----
NULL
-79

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

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

query II rowsort
SELECT 74 col0, 36 AS col2
----
74
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-418
SELECT 22 + 6 - - - CASE 51 WHEN ( CAST( NULL AS SIGNED ) ) - 45 THEN + COUNT( * ) WHEN 60 * + 72 + + COUNT( * ) THEN - COUNT( * ) * + 39 + - 44 ELSE NULL END / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-418
SELECT 22 + 6 - - - CASE 51 WHEN ( CAST ( NULL AS INTEGER ) ) - 45 THEN + COUNT ( * ) WHEN 60 * + 72 + + COUNT ( * ) THEN - COUNT ( * ) * + 39 + - 44 ELSE NULL END / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT - COUNT( - 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-419
SELECT - COUNT ( - 4 ) AS col0
----
-1

query I rowsort
SELECT 32 + 86 AS col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-421
SELECT ALL - CASE + 95 WHEN + + 56 THEN - COUNT( * ) * + + 89 * COALESCE ( 81 * 52, - CAST( NULL AS SIGNED ) * + 52 + + 0 ) + 81 * - COUNT( * ) + 12 * + 10 ELSE + 95 + - ( - COUNT( * ) ) END * - 62 AS col1
----
5952

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - CASE + 95 WHEN + + 56 THEN - COUNT ( * ) * + + 89 * COALESCE ( 81 * 52, - CAST ( NULL AS INTEGER ) * + 52 + + 0 ) + 81 * - COUNT ( * ) + 12 * + 10 ELSE + 95 + - ( - COUNT ( * ) ) END * - 62 AS col1
----
5952

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-422
SELECT DISTINCT 94 AS col2, ( 90 ) * - - ( - COUNT( * ) ) + 49 DIV - 94
----
94
-90

skipif mysql # not compatible
query II rowsort label-422
SELECT DISTINCT 94 AS col2, ( 90 ) * - - ( - COUNT ( * ) ) + 49 / - 94
----
94
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT ALL - 85 * + COALESCE ( - - SUM( - 21 ), - SUM( 91 ) ) col2
----
1785

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL - 85 * + COALESCE ( - - SUM ( - 21 ), - SUM ( 91 ) ) col2
----
1785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-424
SELECT - CASE - MIN( DISTINCT + 82 ) WHEN + - 84 THEN + 4 WHEN + 27 * 87 + + CAST( NULL AS SIGNED ) THEN NULL ELSE 37 END AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-424
SELECT - CASE - MIN ( DISTINCT + 82 ) WHEN + - 84 THEN + 4 WHEN + 27 * 87 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE 37 END AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-425
SELECT 18 + 32 + - + 51 DIV + - NULLIF ( + 95, - 16 ) * CAST( - 1 * 34 + - 44 * 85 AS SIGNED ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-425
SELECT 18 + 32 + - + 51 / + - NULLIF ( + 95, - 16 ) * CAST ( - 1 * 34 + - 44 * 85 AS INTEGER ) AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT ALL COUNT( * ) * + CASE - + CAST( + 42 AS SIGNED ) WHEN + + 57 THEN - 24 ELSE NULL END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL COUNT ( * ) * + CASE - + CAST ( + 42 AS INTEGER ) WHEN + + 57 THEN - 24 ELSE NULL END * + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 5 AS col0, - ( + + 4 ) * + 96
----
5
-384

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

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

query I rowsort
SELECT NULLIF ( - 0, - 79 )
----
0

query I rowsort
SELECT + 24 * 69 AS col2
----
1656

query I rowsort
SELECT ALL + 75 * + 25 * + - 26 * 2 + + ( + 73 ) AS col2
----
-97427

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-432
SELECT CAST( NULL AS SIGNED ) AS col0, - 51 + - + 1 AS col0
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-432
SELECT CAST ( NULL AS INTEGER ) AS col0, - 51 + - + 1 AS col0
----
NULL
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-433
SELECT - 58 DIV - - 32
----
-1

skipif mysql # not compatible
query I rowsort label-433
SELECT - 58 / - - 32
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-434
SELECT ALL 13 * + - CAST( NULL AS SIGNED ) * 5 * + 80 + - 82 + - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL 13 * + - CAST ( NULL AS INTEGER ) * 5 * + 80 + - 82 + - 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT - + CASE - - 99 WHEN 64 + - 87 THEN - + MIN( + 73 ) + 32 END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT - + CASE - - 99 WHEN 64 + - 87 THEN - + MIN ( + 73 ) + 32 END * 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT + + CASE + COUNT( * ) WHEN - - 87 THEN 44 / - + 77 ELSE NULL END * + 10 + 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-436
SELECT + + CASE + COUNT ( * ) WHEN - - 87 THEN 44 / - + 77 ELSE NULL END * + 10 + 53 col1
----
NULL

query I rowsort
SELECT + CASE 66 WHEN - 42 THEN + 43 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-438
SELECT ALL - 83 * - + CASE + COUNT( * ) WHEN + CAST( + - 21 AS SIGNED ) * 33 THEN NULL WHEN - 20 THEN + 0 * + 26 + + 8 WHEN 77 / - 19 + NULLIF ( + 67 + 15, ( - COUNT( * ) ) ) THEN 7 ELSE NULL END * + 27 + MIN( DISTINCT + ( + 12 ) ) * 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - 83 * - + CASE + COUNT ( * ) WHEN + CAST ( + - 21 AS INTEGER ) * 33 THEN NULL WHEN - 20 THEN + 0 * + 26 + + 8 WHEN 77 / - 19 + NULLIF ( + 67 + 15, ( - COUNT ( * ) ) ) THEN 7 ELSE NULL END * + 27 + MIN ( DISTINCT + ( + 12 ) ) * 28 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-439
SELECT ALL + + 29 * - 91 + + CAST( NULL AS SIGNED ) AS col1, 23 + 20 * 80
----
NULL
1623

skipif mysql # not compatible
query II rowsort label-439
SELECT ALL + + 29 * - 91 + + CAST ( NULL AS INTEGER ) AS col1, 23 + 20 * 80
----
NULL
1623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-440
SELECT DISTINCT + NULLIF ( - - 30, - COUNT( * ) ) * 12 + + COUNT( - 71 ) DIV + 87
----
360

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT + NULLIF ( - - 30, - COUNT ( * ) ) * 12 + + COUNT ( - 71 ) / + 87
----
360

query I rowsort
SELECT ALL ( + + 34 ) * 14 + 37
----
513

query I rowsort
SELECT - ( + 94 ) * + - 34 * 63 AS col0
----
201348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-443
SELECT ALL 33 * - NULLIF ( - - 21, + 76 * - COUNT( CAST( + 78 AS SIGNED ) ) + - 32 ) * 71 + + 15 + - COUNT( * ) AS col2
----
-49189

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL 33 * - NULLIF ( - - 21, + 76 * - COUNT ( CAST ( + 78 AS INTEGER ) ) + - 32 ) * 71 + + 15 + - COUNT ( * ) AS col2
----
-49189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-444
SELECT DISTINCT 71 * 58 + ( + CAST( 69 AS SIGNED ) ) + + 53 + + 74 col2
----
4314

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT 71 * 58 + ( + CAST ( 69 AS INTEGER ) ) + + 53 + + 74 col2
----
4314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-445
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 27 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 27 + 84
----
NULL

query I rowsort
SELECT - + 52 * - 63 * + 74
----
242424

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL + COUNT( * ) * + + NULLIF ( + + 90, - - 27 * + - ( AVG ( 28 ) ) - + 9 )
----
90

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + COUNT ( * ) * + + NULLIF ( + + 90, - - 27 * + - ( AVG ( 28 ) ) - + 9 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT DISTINCT + 80 DIV + ( - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT + 80 / + ( - 89 )
----
0

query I rowsort
SELECT ALL 94 - + 47 AS col2
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ALL COUNT( * ) * - - 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL COUNT ( * ) * - - 56 AS col2
----
56

query II rowsort
SELECT DISTINCT 25, - 6 AS col2
----
25
-6

query I rowsort
SELECT - ( + 37 ) * - ( 80 ) + - 22
----
2938

query I rowsort
SELECT ALL 8 - - 72 + - CASE WHEN 95 IS NOT NULL THEN - + 41 * + 61 + 60 ELSE NULL END AS col0
----
2521

onlyif mysql # aggregate syntax: 
query II rowsort label-457
SELECT - COUNT( * ) AS col1, + COUNT( + ( - + 53 ) ) + + MIN( - 7 ) + ( + 4 )
----
-1
-2

skipif mysql # not compatible
query II rowsort label-457
SELECT - COUNT ( * ) AS col1, + COUNT ( + ( - + 53 ) ) + + MIN ( - 7 ) + ( + 4 )
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT - ( + CASE 53 WHEN - + 6 THEN NULL ELSE CASE 88 WHEN + 76 * 70 THEN NULL WHEN - 34 THEN NULL WHEN + 71 + 8 THEN NULL ELSE - 25 * - AVG ( + 65 ) END * + CAST( NULL AS SIGNED ) + - 76 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT - ( + CASE 53 WHEN - + 6 THEN NULL ELSE CASE 88 WHEN + 76 * 70 THEN NULL WHEN - 34 THEN NULL WHEN + 71 + 8 THEN NULL ELSE - 25 * - AVG ( + 65 ) END * + CAST ( NULL AS INTEGER ) + - 76 END )
----
NULL

query II rowsort
SELECT ALL 89 AS col2, COALESCE ( 32, + - 5 - - 26 ) AS col2
----
89
32

query II rowsort
SELECT ALL 40 col1, 92 AS col1
----
40
92

query I rowsort
SELECT + 66 - - 47 + 82 * 81
----
6755

query I rowsort
SELECT - 72 * + 71 AS col1
----
-5112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT DISTINCT CAST( NULL AS SIGNED ) / 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-464
SELECT + 42 + - ( - + 42 ) + + COUNT( * ) + 0 DIV + MIN( 23 ) + - 85 DIV NULLIF ( NULLIF ( + 62, 86 ) + 69, ( 42 ) + - COUNT( * ) * + 71 ) * + MAX( + 97 ) DIV - 64 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-464
SELECT + 42 + - ( - + 42 ) + + COUNT ( * ) + 0 / + MIN ( 23 ) + - 85 / NULLIF ( NULLIF ( + 62, 86 ) + 69, ( 42 ) + - COUNT ( * ) * + 71 ) * + MAX ( + 97 ) / - 64 AS col0
----
85

query II rowsort
SELECT DISTINCT 48 AS col1, + 28 * + 14 AS col2
----
48
392

onlyif mysql # DIV for integer division: 
query I rowsort label-466
SELECT ALL 66 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL 66 / - 77
----
0

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

query I rowsort
SELECT DISTINCT 1 + - 73
----
-72

query I rowsort
SELECT + 12 - - 74
----
86

query II rowsort
SELECT - 11 AS col1, + 57 AS col0
----
-11
57

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT 35 + + ( - 4 ) - COUNT( + 31 ) - - COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT 35 + + ( - 4 ) - COUNT ( + 31 ) - - COUNT ( * ) AS col2
----
31

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-476
SELECT + + 20 col2, 7 * - COUNT( * ) * + COUNT( * ) col0
----
20
-7

skipif mysql # not compatible
query II rowsort label-476
SELECT + + 20 col2, 7 * - COUNT ( * ) * + COUNT ( * ) col0
----
20
-7

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

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

query I rowsort
SELECT ALL - COALESCE ( + 16, + 45, - - CASE WHEN NOT ( - 16 ) IS NULL THEN 51 + + 41 * 21 ELSE NULL END ) * 48 AS col0
----
-768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-479
SELECT + CASE + CAST( COUNT( * ) AS SIGNED ) WHEN - 60 THEN - 55 * - + ( 6 ) + + 46 END * ( - 80 * NULLIF ( 53, 36 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-479
SELECT + CASE + CAST ( COUNT ( * ) AS INTEGER ) WHEN - 60 THEN - 55 * - + ( 6 ) + + 46 END * ( - 80 * NULLIF ( 53, 36 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT - MIN( - - 74 ) * 28 AS col2
----
-2072

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT - MIN ( - - 74 ) * 28 AS col2
----
-2072

onlyif mysql # DIV for integer division: 
query I rowsort label-481
SELECT ALL + - 53 DIV + 49 - - 88 + - + 47 + + - ( 45 )
----
-5

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL + - 53 / + 49 - - 88 + - + 47 + + - ( 45 )
----
-5

query I rowsort
SELECT - + 16 - + 32 * - + 22
----
688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-483
SELECT + 67 AS col0, CAST( - 78 AS SIGNED ) AS col0
----
67
-78

skipif mysql # not compatible
query II rowsort label-483
SELECT + 67 AS col0, CAST ( - 78 AS INTEGER ) AS col0
----
67
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT ALL 69 DIV + COUNT( * ) + - - 52 + COUNT( * ) + - 7 - - + COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL 69 / + COUNT ( * ) + - - 52 + COUNT ( * ) + - 7 - - + COUNT ( * )
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-485
SELECT + - ( + 67 ) + - + ( - CAST( 35 AS SIGNED ) ) * + 16
----
493

skipif mysql # not compatible
query I rowsort label-485
SELECT + - ( + 67 ) + - + ( - CAST ( 35 AS INTEGER ) ) * + 16
----
493

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-487
SELECT ALL - NULLIF ( - - 50, 28 ) DIV + COUNT( - 75 ) + - 51 + 27 * - 11 AS col2
----
-398

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL - NULLIF ( - - 50, 28 ) / + COUNT ( - 75 ) + - 51 + 27 * - 11 AS col2
----
-398

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-488
SELECT - 74, - CAST( NULL AS SIGNED ) / - 18 col0
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-488
SELECT - 74, - CAST ( NULL AS INTEGER ) / - 18 col0
----
-74
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-489
SELECT + + COALESCE ( - 31, ( 8 ) ) AS col2, CASE - CAST( NULL AS SIGNED ) WHEN 85 + COALESCE ( + 20, - 55 / - 3 ) THEN 31 WHEN - COUNT( * ) - + 65 THEN NULL END
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-489
SELECT + + COALESCE ( - 31, ( 8 ) ) AS col2, CASE - CAST ( NULL AS INTEGER ) WHEN 85 + COALESCE ( + 20, - 55 / - 3 ) THEN 31 WHEN - COUNT ( * ) - + 65 THEN NULL END
----
-31
NULL

query I rowsort
SELECT - - ( - + 68 ) + + 26
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-491
SELECT - 68 * + 81 AS col0, - COUNT( * ) DIV + 68 * ( 34 ) AS col2
----
-5508
0

skipif mysql # not compatible
query II rowsort label-491
SELECT - 68 * + 81 AS col0, - COUNT ( * ) / + 68 * ( 34 ) AS col2
----
-5508
0

query I rowsort
SELECT ALL + CASE + ( - ( + + 87 ) ) WHEN 60 THEN 19 ELSE 3 * + 64 END AS col1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT + 97 * COUNT( * ) + + + ( + 89 )
----
186

skipif mysql # not compatible
query I rowsort label-493
SELECT + 97 * COUNT ( * ) + + + ( + 89 )
----
186

query I rowsort
SELECT COALESCE ( 32, + - 4 ) AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT ALL - ( + + 56 ) DIV - + 24
----
2

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL - ( + + 56 ) / - + 24
----
2

query I rowsort
SELECT - 25 + 90
----
65

query I rowsort
SELECT ALL + - 93 * - 88 - + 96 AS col0
----
8088

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT - NULLIF ( - + 5, COUNT( * ) * + COUNT( * ) + + AVG ( ALL 48 ) ) * - 59 col2
----
-295

skipif mysql # not compatible
query I rowsort label-498
SELECT - NULLIF ( - + 5, COUNT ( * ) * + COUNT ( * ) + + AVG ( ALL 48 ) ) * - 59 col2
----
-295

query I rowsort
SELECT DISTINCT - - 76 * 38 - 86
----
2802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-500
SELECT ALL + + 14 * - CAST( + COUNT( * ) AS SIGNED ) + - + NULLIF ( + 71, - - 59 )
----
-85

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL + + 14 * - CAST ( + COUNT ( * ) AS INTEGER ) + - + NULLIF ( + 71, - - 59 )
----
-85

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

skipif mysql # not compatible
query I rowsort label-501
SELECT - - 40 * + + COUNT ( DISTINCT + - 81 ) AS col1
----
40

query I rowsort
SELECT - 52 * - + ( - 21 )
----
-1092

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-504
SELECT - CAST( NULL AS DECIMAL ) * CASE + - 54 WHEN + 66 * + 15 * - 89 * + COUNT( * ) * COUNT( * ) + + 70 / + 82 - 69 THEN + 26 * + 58 WHEN - 39 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-504
SELECT - CAST ( NULL AS REAL ) * CASE + - 54 WHEN + 66 * + 15 * - 89 * + COUNT ( * ) * COUNT ( * ) + + 70 / + 82 - 69 THEN + 26 * + 58 WHEN - 39 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-505
SELECT + 20 * + COUNT( * ) * + 83, - 52 AS col1
----
1660
-52

skipif mysql # not compatible
query II rowsort label-505
SELECT + 20 * + COUNT ( * ) * + 83, - 52 AS col1
----
1660
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-506
SELECT + 79 + - + ( - - 55 ) * CASE + - CAST( NULL AS SIGNED ) WHEN + + 2 * - 17 + - 97 THEN NULL WHEN - 56 THEN NULL ELSE + 48 + MAX( ALL + 4 ) END col2
----
-2781

skipif mysql # not compatible
query I rowsort label-506
SELECT + 79 + - + ( - - 55 ) * CASE + - CAST ( NULL AS INTEGER ) WHEN + + 2 * - 17 + - 97 THEN NULL WHEN - 56 THEN NULL ELSE + 48 + MAX ( ALL + 4 ) END col2
----
-2781

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-507
SELECT - 90 + - 14 DIV + CAST( 76 AS SIGNED ) * + 90 + + - 97 + + - 12 * 5
----
-247

skipif mysql # not compatible
query I rowsort label-507
SELECT - 90 + - 14 / + CAST ( 76 AS INTEGER ) * + 90 + + - 97 + + - 12 * 5
----
-247

query I rowsort
SELECT - 66 + NULLIF ( - 70, 39 )
----
-136

onlyif mysql # DIV for integer division: 
query II rowsort label-509
SELECT ALL ( + 18 ) AS col2, - 69 DIV + + 62 AS col2
----
18
-1

skipif mysql # not compatible
query II rowsort label-509
SELECT ALL ( + 18 ) AS col2, - 69 / + + 62 AS col2
----
18
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT - 84 * 33 AS col2, - 54 - NULLIF ( - + COALESCE ( + 13, 81, + COUNT( * ) ), 89 ) AS col2
----
-2772
-41

skipif mysql # not compatible
query II rowsort label-510
SELECT - 84 * 33 AS col2, - 54 - NULLIF ( - + COALESCE ( + 13, 81, + COUNT ( * ) ), 89 ) AS col2
----
-2772
-41

query I rowsort
SELECT - 43 + + + 70
----
27

query I rowsort
SELECT ALL + 68 + + 5
----
73

query I rowsort
SELECT ALL 48 + - 25
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT - CASE + 38 WHEN 39 THEN NULL WHEN - NULLIF ( + - 67, - ( - COUNT( ALL 42 ) ) ) / 32 THEN + 98 END + 85 * + AVG ( 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT - CASE + 38 WHEN 39 THEN NULL WHEN - NULLIF ( + - 67, - ( - COUNT ( ALL 42 ) ) ) / 32 THEN + 98 END + 85 * + AVG ( 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-515
SELECT 57 + COALESCE ( - 21, + 11 ) * - - 47 col0, COALESCE ( + 69, 92 * + ( ( - 5 ) ), NULLIF ( + MIN( 57 ), - 15 ) ) * 46 AS col2
----
-930
3174

skipif mysql # not compatible
query II rowsort label-515
SELECT 57 + COALESCE ( - 21, + 11 ) * - - 47 col0, COALESCE ( + 69, 92 * + ( ( - 5 ) ), NULLIF ( + MIN ( 57 ), - 15 ) ) * 46 AS col2
----
-930
3174

query I rowsort
SELECT ALL 95 * - NULLIF ( 86, 55 ) * + + NULLIF ( 92, + 12 ) * - 59
----
44346760

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

skipif mysql # not compatible
query I rowsort label-517
SELECT 63 / COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT ALL 12 + + 85 - - 25 * + + MAX( DISTINCT - 83 ) + 18 * - 80 * 90 AS col0
----
-131578

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL 12 + + 85 - - 25 * + + MAX ( DISTINCT - 83 ) + 18 * - 80 * 90 AS col0
----
-131578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-519
SELECT COUNT( * ) + - CAST( 47 AS SIGNED ) + 24 * CAST( + - 36 AS SIGNED ) col2
----
-910

skipif mysql # not compatible
query I rowsort label-519
SELECT COUNT ( * ) + - CAST ( 47 AS INTEGER ) + 24 * CAST ( + - 36 AS INTEGER ) col2
----
-910

query I rowsort
SELECT 47 * + + 41 AS col1
----
1927

query II rowsort
SELECT DISTINCT - 26 + + 35 AS col1, 31
----
9
31

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

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT - ( MIN ( DISTINCT - 59 ) )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT DISTINCT 67 + 72 + 2 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT 67 + 72 + 2 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT 27 * COUNT( * ) + + 2 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-524
SELECT 27 * COUNT ( * ) + + 2 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL - 76 * + ( + + COUNT( * ) ) + - 80 + 8 * - 55 + + 2 + - 8 AS col0
----
-602

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - 76 * + ( + + COUNT ( * ) ) + - 80 + 8 * - 55 + + 2 + - 8 AS col0
----
-602

query I rowsort
SELECT DISTINCT + 65 + 49 AS col0
----
114

query I rowsort
SELECT ALL - COALESCE ( + + 47, 98 + - 17 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-528
SELECT ALL - - ( + 16 ) AS col1, - COUNT( * ) * - - 17 * + + COUNT( * ) col1
----
16
-17

skipif mysql # not compatible
query II rowsort label-528
SELECT ALL - - ( + 16 ) AS col1, - COUNT ( * ) * - - 17 * + + COUNT ( * ) col1
----
16
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT + CASE + 20 WHEN 33 THEN NULL ELSE + - 36 * - - 78 END * + COUNT( ALL 2 ) col1
----
-2808

skipif mysql # not compatible
query I rowsort label-529
SELECT + CASE + 20 WHEN 33 THEN NULL ELSE + - 36 * - - 78 END * + COUNT ( ALL 2 ) col1
----
-2808

onlyif mysql # DIV for integer division: 
query II rowsort label-530
SELECT ALL 26 * 72 + + ( + 67 ) DIV + - 19 col0, 35 - 88 + - 93
----
1869
-146

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL 26 * 72 + + ( + 67 ) / + - 19 col0, 35 - 88 + - 93
----
1869
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT DISTINCT - MAX( ALL 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT - MAX ( ALL 17 )
----
-17

query I rowsort
SELECT DISTINCT + NULLIF ( - NULLIF ( + 55, + + 18 + - - 21 ), + 64 * - 70 + 14 ) * + 75
----
-4125

query I rowsort
SELECT ALL - - 53 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT 75 * COUNT( * ) - + + 57
----
18

skipif mysql # not compatible
query I rowsort label-534
SELECT 75 * COUNT ( * ) - + + 57
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ALL - 80 * - CASE COUNT( 18 ) WHEN - CASE WHEN ( 49 ) IN ( + 13 + - 69 ) THEN 53 / - COUNT( * ) + 57 ELSE NULL END + 21 * COUNT( * ) THEN + ( + 10 ) WHEN 50 THEN NULL WHEN - 91 THEN - 97 WHEN + 85 THEN - 98 ELSE + COUNT( * ) END AS col2
----
80

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL - 80 * - CASE COUNT ( 18 ) WHEN - CASE WHEN ( 49 ) IN ( + 13 + - 69 ) THEN 53 / - COUNT ( * ) + 57 ELSE NULL END + 21 * COUNT ( * ) THEN + ( + 10 ) WHEN 50 THEN NULL WHEN - 91 THEN - 97 WHEN + 85 THEN - 98 ELSE + COUNT ( * ) END AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-536
SELECT DISTINCT - + COUNT( * ) DIV + - 35, CAST( NULL AS DECIMAL ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-536
SELECT DISTINCT - + COUNT ( * ) / + - 35, CAST ( NULL AS REAL ) AS col2
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT 85 DIV - 68 + 87
----
86

skipif mysql # not compatible
query I rowsort label-537
SELECT 85 / - 68 + 87
----
86

query II rowsort
SELECT + 74, + 68 col1
----
74
68

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT - CASE + ( + 92 ) WHEN - 69 * - 92 + 71 + + COUNT( * ) THEN 31 WHEN 58 THEN NULL WHEN 76 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT - CASE + ( + 92 ) WHEN - 69 * - 92 + 71 + + COUNT ( * ) THEN 31 WHEN 58 THEN NULL WHEN 76 THEN COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 90 + 3 * + 38 * 3 AS col0
----
432

onlyif mysql # aggregate syntax: 
query III rowsort label-541
SELECT 17 AS col0, + COUNT( * ) * + 75 + - - 94, 16 * + 2 AS col0
----
17
169
32

skipif mysql # not compatible
query III rowsort label-541
SELECT 17 AS col0, + COUNT ( * ) * + 75 + - - 94, 16 * + 2 AS col0
----
17
169
32

query II rowsort
SELECT ALL 87 col2, ( + 51 )
----
87
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT DISTINCT + CAST( + 55 AS SIGNED ) + 50
----
105

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT + CAST ( + 55 AS INTEGER ) + 50
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL + 36 + 60 * MAX( DISTINCT - 28 ) * + 99
----
-166284

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL + 36 + 60 * MAX ( DISTINCT - 28 ) * + 99
----
-166284

query I rowsort
SELECT ALL + 63 * + 88 AS col2
----
5544

query I rowsort
SELECT DISTINCT - ( - 10 ) + CASE - 66 WHEN + NULLIF ( + 93, + 9 ) * - 59 THEN NULL ELSE + 10 END AS col2
----
20

query I rowsort
SELECT 21 + - 79 * COALESCE ( + 96, 48 )
----
-7563

query I rowsort
SELECT ALL + 91 + + 84
----
175

query I rowsort
SELECT 37 - 16 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-550
SELECT 43 * + ( - CAST( + - 93 AS SIGNED ) )
----
3999

skipif mysql # not compatible
query I rowsort label-550
SELECT 43 * + ( - CAST ( + - 93 AS INTEGER ) )
----
3999

query I rowsort
SELECT 47 + 20 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-552
SELECT 33 AS col0, CAST( NULL AS SIGNED ) + + 73 + + + NULLIF ( - + 47, + 47 * - + 58 ) + + ( - 28 ) * ( - 25 + CAST( NULL AS DECIMAL ) * - COUNT( * ) ) * + COUNT( + 95 )
----
33
NULL

skipif mysql # not compatible
query II rowsort label-552
SELECT 33 AS col0, CAST ( NULL AS INTEGER ) + + 73 + + + NULLIF ( - + 47, + 47 * - + 58 ) + + ( - 28 ) * ( - 25 + CAST ( NULL AS REAL ) * - COUNT ( * ) ) * + COUNT ( + 95 )
----
33
NULL

query I rowsort
SELECT ALL 41 * - 59
----
-2419

onlyif mysql # DIV for integer division: 
query II rowsort label-554
SELECT ALL 19 AS col2, 54 DIV 54
----
19
1

skipif mysql # not compatible
query II rowsort label-554
SELECT ALL 19 AS col2, 54 / 54
----
19
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-555
SELECT ALL 58 + + 83 - - 58 DIV 1 DIV COUNT( * )
----
199

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL 58 + + 83 - - 58 / 1 / COUNT ( * )
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT DISTINCT - - MAX( DISTINCT + 39 ) * 45 AS col1
----
1755

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT - - MAX ( DISTINCT + 39 ) * 45 AS col1
----
1755

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT 41 - - MAX( ALL 76 )
----
117

skipif mysql # not compatible
query I rowsort label-557
SELECT 41 - - MAX ( ALL 76 )
----
117

query II rowsort
SELECT - 63 AS col0, + 32 AS col2
----
-63
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT + ( 81 ) + + + COUNT( * ) + - - MAX( DISTINCT - 94 ) - 88 + - CASE + + 10 WHEN - MIN( ALL + 91 ) + 7 THEN - COUNT( * ) / 99 END - + 13 / + SUM( ( 23 ) + 56 / CASE - 79 WHEN COALESCE ( CAST( + COALESCE ( 83, + 4 ) AS SIGNED ), + 18 ) + + 84 THEN - 11 END ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-559
SELECT + ( 81 ) + + + COUNT ( * ) + - - MAX ( DISTINCT - 94 ) - 88 + - CASE + + 10 WHEN - MIN ( ALL + 91 ) + 7 THEN - COUNT ( * ) / 99 END - + 13 / + SUM ( ( 23 ) + 56 / CASE - 79 WHEN COALESCE ( CAST ( + COALESCE ( 83, + 4 ) AS INTEGER ), + 18 ) + + 84 THEN - 11 END ) * 90
----
NULL

query II rowsort
SELECT - - 75 AS col0, + 2
----
75
2

query II rowsort
SELECT - 66 - 66 + 78 * + 83, 78 * + 83 AS col2
----
6342
6474

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT 64 * MAX( + 73 ) * + COUNT( * ) * + - 95 * - 23 * - 48 col2
----
-489999360

skipif mysql # not compatible
query I rowsort label-562
SELECT 64 * MAX ( + 73 ) * + COUNT ( * ) * + - 95 * - 23 * - 48 col2
----
-489999360

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT - 84 + COUNT( * ) - - 73 - 88 + 76 + 19 AS col2, + 65
----
-3
65

skipif mysql # not compatible
query II rowsort label-563
SELECT - 84 + COUNT ( * ) - - 73 - 88 + 76 + 19 AS col2, + 65
----
-3
65

query II rowsort
SELECT ALL - 11 AS col1, 22
----
-11
22

query II rowsort
SELECT ALL - 54, 17 * 28 * 50 AS col2
----
-54
23800

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT ALL + 20 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL + 20 / + - 98
----
0

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

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

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

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

query I rowsort
SELECT - 16 - - 38 AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT DISTINCT 86 DIV - 45 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT 86 / - 45 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ALL + NULLIF ( 91, + 11 * COUNT( * ) ) * + + ( 32 )
----
2912

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL + NULLIF ( 91, + 11 * COUNT ( * ) ) * + + ( 32 )
----
2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-572
SELECT ALL - - CASE 16 WHEN + + CAST( NULL AS SIGNED ) * 2 * - 84 + - 64 + 46 + + 63 * MAX( ALL - 91 ) THEN + 54 WHEN + 41 * - NULLIF ( + 37 * 39, 5 * 14 ) THEN 51 ELSE 78 END AS col1
----
78

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL - - CASE 16 WHEN + + CAST ( NULL AS INTEGER ) * 2 * - 84 + - 64 + 46 + + 63 * MAX ( ALL - 91 ) THEN + 54 WHEN + 41 * - NULLIF ( + 37 * 39, 5 * 14 ) THEN 51 ELSE 78 END AS col1
----
78

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

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

query I rowsort
SELECT 23 + + 12 * - 31 * - 18 + + - 0 - - 9
----
6728

query I rowsort
SELECT - 83 + + 73 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT 69 * + + COUNT( * ) + 14 col2
----
83

skipif mysql # not compatible
query I rowsort label-576
SELECT 69 * + + COUNT ( * ) + 14 col2
----
83

query I rowsort
SELECT 13 * + + 74 col2
----
962

query I rowsort
SELECT ALL COALESCE ( + 29, + + 39 ) * 65
----
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT - ( - - 57 ) * 50 + + + MAX( DISTINCT + 23 ) AS col1
----
-2827

skipif mysql # not compatible
query I rowsort label-579
SELECT - ( - - 57 ) * 50 + + + MAX ( DISTINCT + 23 ) AS col1
----
-2827

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL - SUM( DISTINCT + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL - SUM ( DISTINCT + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL 49 + - CASE - 29 WHEN + + 79 + + - NULLIF ( + SUM( ( - 1 ) ), - 70 ) * 24 THEN NULL WHEN + 31 * 25 + - 43 / - 38 THEN NULL ELSE 32 END * + 66 AS col2
----
-2063

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL 49 + - CASE - 29 WHEN + + 79 + + - NULLIF ( + SUM ( ( - 1 ) ), - 70 ) * 24 THEN NULL WHEN + 31 * 25 + - 43 / - 38 THEN NULL ELSE 32 END * + 66 AS col2
----
-2063

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT + 19 + - COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-582
SELECT + 19 + - COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-583
SELECT + COUNT( * ) + + - 55 AS col1, ( + 23 )
----
-54
23

skipif mysql # not compatible
query II rowsort label-583
SELECT + COUNT ( * ) + + - 55 AS col1, ( + 23 )
----
-54
23

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT - 13 + COALESCE ( + + NULLIF ( + 19, + 20 ), 45 * - - 49 - - MIN( + 75 ) + + 11 * + 47 * + ( COUNT( ALL - 96 ) * 57 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-584
SELECT - 13 + COALESCE ( + + NULLIF ( + 19, + 20 ), 45 * - - 49 - - MIN ( + 75 ) + + 11 * + 47 * + ( COUNT ( ALL - 96 ) * 57 ) ) AS col1
----
6

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

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT COUNT ( * ) + + 85 AS col1
----
86

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

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

query I rowsort
SELECT + 77 * - + ( + 41 )
----
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT - NULLIF ( + SUM( - 3 ), + 88 * - 71 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-588
SELECT - NULLIF ( + SUM ( - 3 ), + 88 * - 71 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT DISTINCT + 78 * - 88 * COUNT( * ) * SUM( + 95 ) AS col0
----
-652080

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT + 78 * - 88 * COUNT ( * ) * SUM ( + 95 ) AS col0
----
-652080

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ALL - 6 - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - 6 - COUNT ( * )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-591
SELECT - 89 + + 49 DIV - NULLIF ( 8, 16 * - CASE - - 64 WHEN + COUNT( * ) THEN - - 96 WHEN + COUNT( * ) - + 66 DIV 30 THEN NULL END * CAST( + 99 AS SIGNED ) )
----
-95

skipif mysql # not compatible
query I rowsort label-591
SELECT - 89 + + 49 / - NULLIF ( 8, 16 * - CASE - - 64 WHEN + COUNT ( * ) THEN - - 96 WHEN + COUNT ( * ) - + 66 / 30 THEN NULL END * CAST ( + 99 AS INTEGER ) )
----
-95

query I rowsort
SELECT + 28 * + - 23 * + 20
----
-12880

query I rowsort
SELECT - 42 * + + 16
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT CASE 92 WHEN + ( + 44 ) * + 13 + - + COUNT( * ) THEN 12 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT CASE 92 WHEN + ( + 44 ) * + 13 + - + COUNT ( * ) THEN 12 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT - - 93 + + 79 / + SUM( DISTINCT 63 ) - + 5 - - 62 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT - - 93 + + 79 / + SUM ( DISTINCT 63 ) - + 5 - - 62 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-596
SELECT DISTINCT + - 62 - 63 * - CAST( NULL AS SIGNED ) * + 3, MIN( DISTINCT + CAST( + - 23 AS SIGNED ) ) * - 88 * + 97 - 42 AS col1
----
NULL
196286

skipif mysql # not compatible
query II rowsort label-596
SELECT DISTINCT + - 62 - 63 * - CAST ( NULL AS INTEGER ) * + 3, MIN ( DISTINCT + CAST ( + - 23 AS INTEGER ) ) * - 88 * + 97 - 42 AS col1
----
NULL
196286

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

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

query I rowsort
SELECT ALL + 75 * + 96
----
7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-600
SELECT - COALESCE ( + 51, - + 66 * - 99 * - + 87 + - CASE CAST( NULL AS SIGNED ) WHEN + 57 + - 11 + + 91 * COUNT( * ) THEN - 99 + + COUNT( * ) ELSE ( - 45 ) END ) * 79
----
-4029

skipif mysql # not compatible
query I rowsort label-600
SELECT - COALESCE ( + 51, - + 66 * - 99 * - + 87 + - CASE CAST ( NULL AS INTEGER ) WHEN + 57 + - 11 + + 91 * COUNT ( * ) THEN - 99 + + COUNT ( * ) ELSE ( - 45 ) END ) * 79
----
-4029

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

onlyif mysql # aggregate syntax: 
query II rowsort label-602
SELECT + CASE - 93 WHEN + 31 THEN - 20 WHEN 79 * - MAX( ALL - 73 ) THEN NULL END, - 2 AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-602
SELECT + CASE - 93 WHEN + 31 THEN - 20 WHEN 79 * - MAX ( ALL - 73 ) THEN NULL END, - 2 AS col0
----
NULL
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT - 71 DIV 14 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-603
SELECT - 71 / 14 AS col1
----
-5

query I rowsort
SELECT ALL + 21 * 32 + - 22 + 38 - - 91
----
779

query I rowsort
SELECT - - CASE WHEN NOT 40 NOT BETWEEN - 96 * AVG ( - 74 ) AND NULL THEN - 47 ELSE - 11 END * - 12 + - 1 AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT DISTINCT + 44 * + - 45 + + 67 + 12 * - NULLIF ( + 98, 97 * + 51 + + - 35 ) * - COUNT( * ) AS col1
----
-737

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT + 44 * + - 45 + + 67 + 12 * - NULLIF ( + 98, 97 * + 51 + + - 35 ) * - COUNT ( * ) AS col1
----
-737

query I rowsort
SELECT DISTINCT + 55 * 70 * - 27 + + COALESCE ( - 92, - 63 ) * - 3
----
-103674

query I rowsort
SELECT + NULLIF ( 36, + 1 + 2 )
----
36

query II rowsort
SELECT ALL 18 * 24 + 43 AS col2, 46 AS col1
----
475
46

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT COALESCE ( + + 49, - - MIN( 54 ), + ( - - 60 ), + 19 )
----
49

skipif mysql # not compatible
query I rowsort label-612
SELECT COALESCE ( + + 49, - - MIN ( 54 ), + ( - - 60 ), + 19 )
----
49

query I rowsort
SELECT CASE + 34 WHEN + 50 THEN - 18 WHEN 16 * 87 THEN NULL ELSE NULL END
----
NULL

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

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

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

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

query I rowsort
SELECT CASE + - 73 WHEN + - 80 + 6 / + 42 * - 10 THEN 74 ELSE 42 END
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-617
SELECT DISTINCT - 51 * AVG ( ALL + 15 ) + - CASE + 53 WHEN CAST( + 18 AS SIGNED ) + - CASE + + 35 WHEN + SUM( DISTINCT - 23 ) THEN 71 ELSE 98 END * 7 THEN NULL WHEN 70 * 94 THEN 11 WHEN 82 THEN 94 END + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - 51 * AVG ( ALL + 15 ) + - CASE + 53 WHEN CAST ( + 18 AS INTEGER ) + - CASE + + 35 WHEN + SUM ( DISTINCT - 23 ) THEN 71 ELSE 98 END * 7 THEN NULL WHEN 70 * 94 THEN 11 WHEN 82 THEN 94 END + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-618
SELECT ALL - CAST( NULL AS SIGNED ) * - 62 * 32 - - 60 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - CAST ( NULL AS INTEGER ) * - 62 * 32 - - 60 col2
----
NULL

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

query II rowsort
SELECT ALL 17 * + + 11 * - 84 - 6 + + + 55, 42 * + - 1 AS col0
----
-15659
-42

query I rowsort
SELECT + NULLIF ( + 88, - 7 ) * 14
----
1232

query I rowsort
SELECT + 94 + + 3 col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-623
SELECT ALL - COUNT( * ) - ( - 5 ) + - CAST( + + 8 AS SIGNED ) * - - 49 AS col0
----
-388

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL - COUNT ( * ) - ( - 5 ) + - CAST ( + + 8 AS INTEGER ) * - - 49 AS col0
----
-388

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

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

query II rowsort
SELECT - - NULLIF ( ( 3 ), + 88 ) * + 72, 7 - - - 51 AS col0
----
216
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT + + 39 + - SUM( - 6 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-626
SELECT + + 39 + - SUM ( - 6 ) AS col0
----
45

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-628
SELECT + - 64 + + 69 + + 34 * COUNT( * ) * + + 19 + CAST( NULL AS DECIMAL ) / - - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT + - 64 + + 69 + + 34 * COUNT ( * ) * + + 19 + CAST ( NULL AS REAL ) / - - 85 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT ALL + CAST( - + 36 AS SIGNED ) * + 12 + - ( - ( + 31 ) ) + - ( - - 77 ) * 17 AS col2
----
-1710

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + CAST ( - + 36 AS INTEGER ) * + 12 + - ( - ( + 31 ) ) + - ( - - 77 ) * 17 AS col2
----
-1710

query I rowsort
SELECT + 62 * CASE 66 WHEN 14 THEN + + 91 * - 51 * ( - 88 ) + + - 42 ELSE 25 END
----
1550

query I rowsort
SELECT DISTINCT + - 34 * - 94 + - 54 AS col1
----
3142

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT + + 87 * + + 68 - + 48 * NULLIF ( NULLIF ( + 7, - CASE - NULLIF ( + MIN( + 70 ), + COUNT( * ) * 35 ) WHEN + 52 THEN 74 / 97 + 25 END ), - COUNT( * ) / 56 ) col2
----
5580

skipif mysql # not compatible
query I rowsort label-632
SELECT + + 87 * + + 68 - + 48 * NULLIF ( NULLIF ( + 7, - CASE - NULLIF ( + MIN ( + 70 ), + COUNT ( * ) * 35 ) WHEN + 52 THEN 74 / 97 + 25 END ), - COUNT ( * ) / 56 ) col2
----
5580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-633
SELECT - CAST( NULL AS SIGNED ) + + - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT - CAST ( NULL AS INTEGER ) + + - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT - - 7 * - + 63 + - - MAX( + 74 ) + - - MAX( - - 26 ) + + - COUNT( * ) * 49 * 96 AS col2
----
-5045

skipif mysql # not compatible
query I rowsort label-634
SELECT - - 7 * - + 63 + - - MAX ( + 74 ) + - - MAX ( - - 26 ) + + - COUNT ( * ) * 49 * 96 AS col2
----
-5045

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

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

query I rowsort
SELECT - + COALESCE ( ( 95 ), + 47 + 31 - + 99 * - 90 ) AS col2
----
-95

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

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

query II rowsort
SELECT - - 53 col2, + 31 AS col1
----
53
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-639
SELECT ALL + SUM( - 29 ) DIV 17 * - + 8 + + 92 DIV 97 * - 11 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL + SUM ( - 29 ) / 17 * - + 8 + + 92 / 97 * - 11 AS col1
----
8

query I rowsort
SELECT ALL 48 + 32 AS col1
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-641
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col1, 27 AS col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL - - CAST ( NULL AS REAL ) AS col1, 27 AS col2
----
NULL
27

query I rowsort
SELECT DISTINCT + 19 + 34
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL - 60 + + 58 + + NULLIF ( + - 40, + COUNT( * ) + COUNT( * ) ) * - MAX( - 72 ) - + + ( - 10 )
----
-2872

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - 60 + + 58 + + NULLIF ( + - 40, + COUNT ( * ) + COUNT ( * ) ) * - MAX ( - 72 ) - + + ( - 10 )
----
-2872

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-644
SELECT 20 AS col2, CASE + COUNT( * ) WHEN 7 THEN - + 79 ELSE - - COUNT( * ) DIV + 40 * + MAX( + 92 ) + - + 88 END
----
20
-88

skipif mysql # not compatible
query II rowsort label-644
SELECT 20 AS col2, CASE + COUNT ( * ) WHEN 7 THEN - + 79 ELSE - - COUNT ( * ) / + 40 * + MAX ( + 92 ) + - + 88 END
----
20
-88

query II rowsort
SELECT 38 - + 44, 20 AS col1
----
-6
20

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT + COUNT( * ) * - + 23 * + 75 AS col0
----
-1725

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT + COUNT ( * ) * - + 23 * + 75 AS col0
----
-1725

query I rowsort
SELECT DISTINCT 49 * + 37 * + 84
----
152292

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT 12 + - - COUNT( 20 )
----
13

skipif mysql # not compatible
query I rowsort label-648
SELECT 12 + - - COUNT ( 20 )
----
13

query I rowsort
SELECT 4 * - 29 - + ( - ( + 30 ) ) * 98 AS col2
----
2824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-650
SELECT COUNT( - 12 ) DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-650
SELECT COUNT ( - 12 ) / + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT COUNT( * ) * MAX( + 28 ) * 89 + + + 47 * - 49
----
189

skipif mysql # not compatible
query I rowsort label-651
SELECT COUNT ( * ) * MAX ( + 28 ) * 89 + + + 47 * - 49
----
189

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

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

query I rowsort
SELECT - 7 * - 47 + + 22 AS col2
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT SUM( - + 85 ) * - - COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-654
SELECT SUM ( - + 85 ) * - - COUNT ( * ) AS col0
----
-85

query I rowsort
SELECT 72 + - + 54
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-656
SELECT ALL - 69 DIV + 95 DIV COUNT( - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL - 69 / + 95 / COUNT ( - 79 )
----
0

query I rowsort
SELECT + 62 * - + 9 + - + 36
----
-594

query I rowsort
SELECT 56 * - - 5
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ( - + 41 ) * + 69 - + ( + + COUNT( * ) ) + 26 * 91
----
-464

skipif mysql # not compatible
query I rowsort label-659
SELECT ( - + 41 ) * + 69 - + ( + + COUNT ( * ) ) + 26 * 91
----
-464

query I rowsort
SELECT ALL 82 * 70
----
5740

onlyif mysql # DIV for integer division: 
query I rowsort label-661
SELECT 62 DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-661
SELECT 62 / - 59
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-662
SELECT COALESCE ( - COUNT( * ), 86 - + + 55 ) + + 30 + 34 AS col0, - CASE 25 WHEN COUNT( * ) THEN 70 ELSE NULL END * + COUNT( * ) * 37
----
63
NULL

skipif mysql # not compatible
query II rowsort label-662
SELECT COALESCE ( - COUNT ( * ), 86 - + + 55 ) + + 30 + 34 AS col0, - CASE 25 WHEN COUNT ( * ) THEN 70 ELSE NULL END * + COUNT ( * ) * 37
----
63
NULL

query I rowsort
SELECT 70 * + 8 * + 76 AS col0
----
42560

query I rowsort
SELECT ALL 63 * - + 18 * 85
----
-96390

onlyif mysql # aggregate syntax: 
query II rowsort label-665
SELECT - 71 AS col1, SUM( 70 ) + + - 9 * - + CASE - + 39 WHEN MIN( DISTINCT + ( + + ( + - ( 19 ) ) ) ) THEN + 66 WHEN + 45 - MAX( DISTINCT 43 ) THEN NULL END AS col0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-665
SELECT - 71 AS col1, SUM ( 70 ) + + - 9 * - + CASE - + 39 WHEN MIN ( DISTINCT + ( + + ( + - ( 19 ) ) ) ) THEN + 66 WHEN + 45 - MAX ( DISTINCT 43 ) THEN NULL END AS col0
----
-71
NULL

query II rowsort
SELECT ALL + 97 * 82 AS col2, - 69 col0
----
7954
-69

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

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

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

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

query I rowsort
SELECT - ( 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT COUNT( * ) + 26 - 44 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-670
SELECT COUNT ( * ) + 26 - 44 AS col1
----
-17

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

skipif mysql # not compatible
query I rowsort label-671
SELECT ( + 15 ) / + COUNT ( * ) col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL - 72 + + MIN( ALL - 63 ) * - + 18 * - + 78 AS col2
----
-88524

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL - 72 + + MIN ( ALL - 63 ) * - + 18 * - + 78 AS col2
----
-88524

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-673
SELECT 6 + 61 + 48 DIV COALESCE ( + COUNT( * ), 98, - + 15 ) + - - 71 + - COALESCE ( 1, + 48 ) + 77 * - 0
----
185

skipif mysql # not compatible
query I rowsort label-673
SELECT 6 + 61 + 48 / COALESCE ( + COUNT ( * ), 98, - + 15 ) + - - 71 + - COALESCE ( 1, + 48 ) + 77 * - 0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT + 53 - + 55 * + CASE - 51 WHEN 3 THEN NULL WHEN + 98 - 44 * + 81 THEN NULL WHEN ( 66 ) THEN NULL ELSE COUNT( * ) * - 25 END AS col2
----
1428

skipif mysql # not compatible
query I rowsort label-674
SELECT + 53 - + 55 * + CASE - 51 WHEN 3 THEN NULL WHEN + 98 - 44 * + 81 THEN NULL WHEN ( 66 ) THEN NULL ELSE COUNT ( * ) * - 25 END AS col2
----
1428

query II rowsort
SELECT 11 AS col2, 84 AS col1
----
11
84

query I rowsort
SELECT ALL 93 * - 67 AS col2
----
-6231

query I rowsort
SELECT ALL 32 + + - 55 col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-678
SELECT - 62 AS col1, COUNT( * ) - + - 43 DIV - 44 + - 51 col1
----
-62
-50

skipif mysql # not compatible
query II rowsort label-678
SELECT - 62 AS col1, COUNT ( * ) - + - 43 / - 44 + - 51 col1
----
-62
-50

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

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL + + 27 + COUNT ( * ) AS col1
----
28

query I rowsort
SELECT ALL - 31 * + 27
----
-837

query II rowsort
SELECT 48, + 11 * - 5 AS col1
----
48
-55

query I rowsort
SELECT ALL - NULLIF ( + 42, + NULLIF ( - + 77, + 36 ) ) * - 79
----
3318

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-684
SELECT CAST( 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-684
SELECT CAST ( 36 AS INTEGER )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-685
SELECT ALL + 45 * + + COUNT( * ) DIV 56 * - 57 * 86 * 52 + CASE - - AVG ( DISTINCT 49 ) WHEN - + 80 THEN NULL ELSE - 69 END AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL + 45 * + + COUNT ( * ) / 56 * - 57 * 86 * 52 + CASE - - AVG ( DISTINCT 49 ) WHEN - + 80 THEN NULL ELSE - 69 END AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT DISTINCT 61 + - - CASE MIN( ALL + CAST( 81 AS SIGNED ) ) WHEN - COUNT( * ) THEN NULL ELSE ( - + 64 ) * 88 END - - CASE 75 WHEN 38 * CAST( - 18 AS SIGNED ) THEN COUNT( * ) * COALESCE ( + 37, COUNT( * ) * 35 ) WHEN COUNT( * ) + 10 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT 61 + - - CASE MIN ( ALL + CAST ( 81 AS INTEGER ) ) WHEN - COUNT ( * ) THEN NULL ELSE ( - + 64 ) * 88 END - - CASE 75 WHEN 38 * CAST ( - 18 AS INTEGER ) THEN COUNT ( * ) * COALESCE ( + 37, COUNT ( * ) * 35 ) WHEN COUNT ( * ) + 10 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL ( - + COUNT( * ) ) + + 47 + 14 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL ( - + COUNT ( * ) ) + + 47 + 14 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT COALESCE ( + 29, + 17, - 63, + COALESCE ( - + 39, + 70 * COUNT( * ) + - COUNT( DISTINCT + + 11 ) + - + COUNT( * ), + 7 ) * 66 ) * - 21 + COUNT( * ) * 10
----
-599

skipif mysql # not compatible
query I rowsort label-688
SELECT COALESCE ( + 29, + 17, - 63, + COALESCE ( - + 39, + 70 * COUNT ( * ) + - COUNT ( DISTINCT + + 11 ) + - + COUNT ( * ), + 7 ) * 66 ) * - 21 + COUNT ( * ) * 10
----
-599

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT 28 DIV 27 * - - 43
----
43

skipif mysql # not compatible
query I rowsort label-689
SELECT 28 / 27 * - - 43
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT SUM( + + 34 ) AS col0, + 28
----
34
28

skipif mysql # not compatible
query II rowsort label-690
SELECT SUM ( + + 34 ) AS col0, + 28
----
34
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-691
SELECT CAST( NULL AS DECIMAL ) * 97 * + + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT CAST ( NULL AS REAL ) * 97 * + + 39 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-692
SELECT + COUNT( * ) * - CAST( + 49 AS SIGNED ) + + - ( 62 ) + + 26 col2
----
-85

skipif mysql # not compatible
query I rowsort label-692
SELECT + COUNT ( * ) * - CAST ( + 49 AS INTEGER ) + + - ( 62 ) + + 26 col2
----
-85

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

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

query II rowsort
SELECT ALL + 73 - - + 53 AS col1, + 13 + + 33 + 17
----
126
63

query I rowsort
SELECT 63 * 40
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT DISTINCT + MIN( 27 ) * + 51
----
1377

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT + MIN ( 27 ) * + 51
----
1377

query I rowsort
SELECT ALL - 74 * + 12
----
-888

query I rowsort
SELECT 53 * - 81 AS col2
----
-4293

query I rowsort
SELECT DISTINCT - NULLIF ( + + 48, + + 86 )
----
-48

query I rowsort
SELECT 72 - + 43 - 39 * 76 AS col2
----
-2935

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT ALL - ( + CASE 80 WHEN ( - 71 ) THEN NULL ELSE - + COUNT( ALL - 53 ) END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL - ( + CASE 80 WHEN ( - 71 ) THEN NULL ELSE - + COUNT ( ALL - 53 ) END ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT ALL + COALESCE ( - 93, + 90 * - - 93 + COUNT( * ) + + 91 DIV + 22 DIV - 80 * ( - 16 ) ) DIV - + 29
----
3

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL + COALESCE ( - 93, + 90 * - - 93 + COUNT ( * ) + + 91 / + 22 / - 80 * ( - 16 ) ) / - + 29
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-703
SELECT ALL - 76 DIV 74 * + - 13, - 97 + + 33 col2
----
13
-64

skipif mysql # not compatible
query II rowsort label-703
SELECT ALL - 76 / 74 * + - 13, - 97 + + 33 col2
----
13
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-704
SELECT ALL 54 + + CASE 74 WHEN - + 12 * - COUNT( * ) THEN - 57 WHEN CAST( NULL AS SIGNED ) + + - 42 THEN + 46 * + 14 ELSE NULL END + + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL 54 + + CASE 74 WHEN - + 12 * - COUNT ( * ) THEN - 57 WHEN CAST ( NULL AS INTEGER ) + + - 42 THEN + 46 * + 14 ELSE NULL END + + 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT + 43 * + + COUNT( * ) + - 96 * - 36
----
3499

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + 43 * + + COUNT ( * ) + - 96 * - 36
----
3499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-706
SELECT ALL 63 + - - COALESCE ( + 19, + 0 * - CAST( + 32 AS SIGNED ) / - 36 ) + 91 * 41 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL 63 + - - COALESCE ( + 19, + 0 * - CAST ( + 32 AS INTEGER ) / - 36 ) + 91 * 41 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 90 + CASE + 59 WHEN - 14 THEN + - 71 WHEN - 13 / + 72 * - 71 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT + MIN( - - 53 ) + 49 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-708
SELECT + MIN ( - - 53 ) + 49 AS col1
----
102

query I rowsort
SELECT ALL - 19 + - 40 + - 38 * 12 AS col0
----
-515

query I rowsort
SELECT + - CASE - 88 WHEN 96 THEN 6 END * + 9 AS col0
----
NULL

query I rowsort
SELECT ALL 66 - + 60 + 53 + - 59 * - 42 * + 99 col2
----
245381

query I rowsort
SELECT + 2 - + 48 AS col1
----
-46

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-714
SELECT 96, + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) * + 25 - 45 AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-714
SELECT 96, + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) * + 25 - 45 AS col0
----
96
NULL

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

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

query I rowsort
SELECT + 78 - + - 55
----
133

query I rowsort
SELECT - 84 * - 76 AS col2
----
6384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-718
SELECT ALL 87 * - MIN( ALL - 25 ) - 41 DIV - - COUNT( * ) AS col1
----
2134

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL 87 * - MIN ( ALL - 25 ) - 41 / - - COUNT ( * ) AS col1
----
2134

onlyif mysql # aggregate syntax: 
query II rowsort label-719
SELECT DISTINCT + 89 AS col2, 40 * - + ( + MIN( ALL 24 ) ) AS col1
----
89
-960

skipif mysql # not compatible
query II rowsort label-719
SELECT DISTINCT + 89 AS col2, 40 * - + ( + MIN ( ALL 24 ) ) AS col1
----
89
-960

query I rowsort
SELECT ALL - 42 * + 72
----
-3024

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-721
SELECT + 48 DIV - 7 DIV - - COUNT( * ), 75 * - + 13 * - + 8 + - + 5 + + - 18 - + COUNT( * ) * SUM( DISTINCT + - NULLIF ( + 26, - ( - 33 ) ) ) AS col1
----
-6
7803

skipif mysql # not compatible
query II rowsort label-721
SELECT + 48 / - 7 / - - COUNT ( * ), 75 * - + 13 * - + 8 + - + 5 + + - 18 - + COUNT ( * ) * SUM ( DISTINCT + - NULLIF ( + 26, - ( - 33 ) ) ) AS col1
----
-6
7803

query I rowsort
SELECT DISTINCT 72 * + + ( + 47 ) AS col0
----
3384

query II rowsort
SELECT 78 * 26 - 49, - 8 AS col2
----
1979
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT + 12 DIV - 13 * - - 11 * + NULLIF ( + 86, + 64 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-724
SELECT + 12 / - 13 * - - 11 * + NULLIF ( + 86, + 64 ) col0
----
0

query I rowsort
SELECT + 88 + - 66
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-726
SELECT ALL + 15 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL + 15 / + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT COALESCE ( - 68, MIN( DISTINCT - 64 ) ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-727
SELECT COALESCE ( - 68, MIN ( DISTINCT - 64 ) ) col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT ALL 48 * + + 70 * COUNT( * ) + + 99 col1
----
3459

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL 48 * + + 70 * COUNT ( * ) + + 99 col1
----
3459

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT COUNT( * ) * + 88 + 98 * + 88 * + - 63
----
-543224

skipif mysql # not compatible
query I rowsort label-729
SELECT COUNT ( * ) * + 88 + 98 * + 88 * + - 63
----
-543224

query II rowsort
SELECT ALL + 52 AS col0, - 0 AS col2
----
52
0

query I rowsort
SELECT - 58 * 74 col1
----
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-732
SELECT ALL - CAST( - ( + SUM( ALL + 1 ) ) AS SIGNED ) * + ( + + ( - CAST( NULL AS SIGNED ) ) ) + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL - CAST ( - ( + SUM ( ALL + 1 ) ) AS INTEGER ) * + ( + + ( - CAST ( NULL AS INTEGER ) ) ) + + 7
----
NULL

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

skipif mysql # not compatible
query II rowsort label-733
SELECT - 66 AS col1, COUNT ( * ) AS col0
----
-66
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-734
SELECT - + 2 * - - CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT - + 2 * - - CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL 73 * + COUNT( * ) + + 17 + + - 85 * + 58 + - 57 + NULLIF ( + 33, - CASE - 30 WHEN ( - - 91 ) + + 18 / 21 THEN 17 ELSE NULLIF ( - 33, - COUNT( * ) ) END / 77 ) AS col1
----
-4864

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL 73 * + COUNT ( * ) + + 17 + + - 85 * + 58 + - 57 + NULLIF ( + 33, - CASE - 30 WHEN ( - - 91 ) + + 18 / 21 THEN 17 ELSE NULLIF ( - 33, - COUNT ( * ) ) END / 77 ) AS col1
----
-4864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT DISTINCT - 27 * CAST( + 43 AS SIGNED ) + - 91 + 58 * - 36 AS col2
----
-3340

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT - 27 * CAST ( + 43 AS INTEGER ) + - 91 + 58 * - 36 AS col2
----
-3340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-737
SELECT DISTINCT 23 * - CAST( - 63 AS SIGNED ) * + 24 + + 37 AS col1
----
34813

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT 23 * - CAST ( - 63 AS INTEGER ) * + 24 + + 37 AS col1
----
34813

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT + - COUNT( + 76 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-738
SELECT + - COUNT ( + 76 ) AS col1
----
-1

query I rowsort
SELECT - 69 + + 5 - + + 90
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT - - SUM( - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-740
SELECT - - SUM ( - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT ALL - - 48 * COUNT( * ) * - CASE 88 WHEN - COUNT( * ) * 83 THEN NULL WHEN - ( 52 ) THEN + 29 * - + 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL - - 48 * COUNT ( * ) * - CASE 88 WHEN - COUNT ( * ) * 83 THEN NULL WHEN - ( 52 ) THEN + 29 * - + 21 END AS col0
----
NULL

query II rowsort
SELECT ALL + 2 AS col1, 81
----
2
81

query I rowsort
SELECT - - 34 + - 67
----
-33

query I rowsort
SELECT - - 75 * - + 95 * - - 19 * + COALESCE ( 43, 80 ) AS col1
----
-5821125

onlyif mysql # aggregate syntax: 
query II rowsort label-745
SELECT - 81 + 57 * - 33 AS col2, NULLIF ( MAX( + 5 ), + - CASE - 49 WHEN + + 15 * - 57 THEN + MIN( DISTINCT - 91 ) END ) col1
----
-1962
5

skipif mysql # not compatible
query II rowsort label-745
SELECT - 81 + 57 * - 33 AS col2, NULLIF ( MAX ( + 5 ), + - CASE - 49 WHEN + + 15 * - 57 THEN + MIN ( DISTINCT - 91 ) END ) col1
----
-1962
5

query I rowsort
SELECT DISTINCT + 87 - 26 * 9 AS col1
----
-147

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

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT + - COUNT ( * ) / - 57 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT - 38 DIV 38 - + + 90 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-748
SELECT - 38 / 38 - + + 90 AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-749
SELECT ALL - CAST( NULL AS DECIMAL ) * - - 59 * COUNT( * ) * + 77 * 63 * + MIN( ALL + + CAST( + 61 AS SIGNED ) ) * - 48 - + + 20 - - 29 + ( + CASE COUNT( * ) WHEN CASE COUNT( * ) WHEN 83 THEN NULL WHEN + 77 THEN - NULLIF ( 37, 43 ) END THEN + 40 ELSE 90 END ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - CAST ( NULL AS REAL ) * - - 59 * COUNT ( * ) * + 77 * 63 * + MIN ( ALL + + CAST ( + 61 AS INTEGER ) ) * - 48 - + + 20 - - 29 + ( + CASE COUNT ( * ) WHEN CASE COUNT ( * ) WHEN 83 THEN NULL WHEN + 77 THEN - NULLIF ( 37, 43 ) END THEN + 40 ELSE 90 END ) * 49
----
NULL

query I rowsort
SELECT - 79 + ( + 49 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT 67 * - + 77 AS col2
----
-5159

query I rowsort
SELECT DISTINCT 31 * + 63 * + 46
----
89838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-753
SELECT + CAST( NULL AS SIGNED ) + - 34 * - 64 + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT + CAST ( NULL AS INTEGER ) + - 34 * - 64 + 57
----
NULL

query I rowsort
SELECT - 71 * 60
----
-4260

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT + COALESCE ( - ( - 58 ), 15 + COUNT( * ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-755
SELECT + COALESCE ( - ( - 58 ), 15 + COUNT ( * ) ) AS col1
----
58

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-758
SELECT ALL + NULLIF ( - - CAST( + - 79 AS SIGNED ), + - CAST( NULL AS SIGNED ) - - 87 * + AVG ( DISTINCT + + 13 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL + NULLIF ( - - CAST ( + - 79 AS INTEGER ), + - CAST ( NULL AS INTEGER ) - - 87 * + AVG ( DISTINCT + + 13 ) )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-759
SELECT DISTINCT 37 / + + MIN( ALL - 85 ) * CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + 78 * - AVG ( DISTINCT 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT 37 / + + MIN ( ALL - 85 ) * CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 78 * - AVG ( DISTINCT 11 ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT ALL - 61 DIV + - 10 + - 74
----
-68

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - 61 / + - 10 + - 74
----
-68

query I rowsort
SELECT + 11 * 99 AS col2
----
1089

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

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

query I rowsort
SELECT + 70 * - ( - 16 )
----
1120

query I rowsort
SELECT DISTINCT + - 14 col0
----
-14

query II rowsort
SELECT + + 65 * - 61 + + + 82 - + 1, - COALESCE ( 81, ( + 3 ), 32 ) AS col1
----
-3884
-81

query I rowsort
SELECT - - 48 * - 30 AS col1
----
-1440

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

skipif mysql # not compatible
query I rowsort label-768
SELECT + 6 - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-770
SELECT CAST( NULLIF ( 18, + - 83 ) AS SIGNED ) - 52
----
-34

skipif mysql # not compatible
query I rowsort label-770
SELECT CAST ( NULLIF ( 18, + - 83 ) AS INTEGER ) - 52
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT 50 * COUNT( * ) * 81 AS col1
----
4050

skipif mysql # not compatible
query I rowsort label-772
SELECT 50 * COUNT ( * ) * 81 AS col1
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT - CASE - + COUNT( * ) WHEN + ( - 55 ) THEN + 26 ELSE + 25 END AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-773
SELECT - CASE - + COUNT ( * ) WHEN + ( - 55 ) THEN + 26 ELSE + 25 END AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-774
SELECT COUNT( * ) - - - 38 + + 42 / + + 85 + + CAST( NULL AS SIGNED ) - + + CAST( NULL AS SIGNED ) * - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-774
SELECT COUNT ( * ) - - - 38 + + 42 / + + 85 + + CAST ( NULL AS INTEGER ) - + + CAST ( NULL AS INTEGER ) * - + 36
----
NULL

query I rowsort
SELECT + 9 * - - 49 AS col1
----
441

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

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT - + MAX( DISTINCT 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-777
SELECT - + MAX ( DISTINCT 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT + CASE - 94 WHEN - + 84 / AVG ( + - 27 ) - - 40 * + 35 * - 86 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE 17 END
----
17

skipif mysql # not compatible
query I rowsort label-778
SELECT + CASE - 94 WHEN - + 84 / AVG ( + - 27 ) - - 40 * + 35 * - 86 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE 17 END
----
17

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

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

query I rowsort
SELECT 22 + - - 15 col2
----
37

query I rowsort
SELECT ALL - 97 * + 39
----
-3783

onlyif mysql # DIV for integer division: 
query II rowsort label-782
SELECT 50 + + - 4 + - 4 DIV - 26 + - 93 AS col1, + 76 + + 13 AS col1
----
-47
89

skipif mysql # not compatible
query II rowsort label-782
SELECT 50 + + - 4 + - 4 / - 26 + - 93 AS col1, + 76 + + 13 AS col1
----
-47
89

query I rowsort
SELECT ALL 73 col0
----
73

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

skipif mysql # not compatible
query I rowsort label-784
SELECT 66 / - COUNT ( * ) AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT ALL + 14 DIV + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + 14 / + 38 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-786
SELECT - 29 AS col1, - CAST( NULL AS SIGNED )
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-786
SELECT - 29 AS col1, - CAST ( NULL AS INTEGER )
----
-29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT SUM( ALL + 1 ) + + + 96 * 3 AS col1
----
289

skipif mysql # not compatible
query I rowsort label-787
SELECT SUM ( ALL + 1 ) + + + 96 * 3 AS col1
----
289

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT 56 DIV + + 19
----
2

skipif mysql # not compatible
query I rowsort label-788
SELECT 56 / + + 19
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-789
SELECT ALL + 15 + + + 78 + + + 35 DIV 31 * - 31 * MIN( DISTINCT - 41 )
----
1364

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + 15 + + + 78 + + + 35 / 31 * - 31 * MIN ( DISTINCT - 41 )
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT 62 - - ( 73 ) / + CASE + - 18 WHEN + 84 * + + SUM( DISTINCT + 91 ) * - - 71 + + MIN( DISTINCT + + 17 ) * - 5 + + 62 + - 77 * - - ( - 43 ) THEN + 92 + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT 62 - - ( 73 ) / + CASE + - 18 WHEN + 84 * + + SUM ( DISTINCT + 91 ) * - - 71 + + MIN ( DISTINCT + + 17 ) * - 5 + + 62 + - 77 * - - ( - 43 ) THEN + 92 + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT 1 * + + MAX( 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-791
SELECT 1 * + + MAX ( 32 ) AS col2
----
32

query I rowsort
SELECT 72 + - 84
----
-12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-794
SELECT DISTINCT - 70 + - COUNT( * ) * - + CAST( - 6 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT - 70 + - COUNT ( * ) * - + CAST ( - 6 AS INTEGER )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-795
SELECT ALL COUNT( * ) * CAST( + 4 AS SIGNED ) AS col0, 42 AS col1
----
4
42

skipif mysql # not compatible
query II rowsort label-795
SELECT ALL COUNT ( * ) * CAST ( + 4 AS INTEGER ) AS col0, 42 AS col1
----
4
42

query I rowsort
SELECT ALL + 52 + 29
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT ALL 6 + - CAST( + 92 AS SIGNED ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL 6 + - CAST ( + 92 AS INTEGER ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT 16 * - 41 * + + 72 - - COUNT( * ) AS col1
----
-47231

skipif mysql # not compatible
query I rowsort label-798
SELECT 16 * - 41 * + + 72 - - COUNT ( * ) AS col1
----
-47231

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

query I rowsort
SELECT ALL - 89 + 91 + - + 22 * 61 + + 85 * - 97 * - COALESCE ( - - 60, - 3 ) * ( 46 )
----
22754860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT 50 + - CASE - + 96 WHEN - 56 * + ( + + COUNT( * ) ) * - + ( 60 ) + 69 THEN 88 * 43 * - 59 ELSE NULL END + + CAST( NULL AS SIGNED ) * + - 69 * - + 41 * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT 50 + - CASE - + 96 WHEN - 56 * + ( + + COUNT ( * ) ) * - + ( 60 ) + 69 THEN 88 * 43 * - 59 ELSE NULL END + + CAST ( NULL AS INTEGER ) * + - 69 * - + 41 * - 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-802
SELECT + + 93, CAST( NULL AS SIGNED ) / - COUNT( * ) + + 90 AS col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-802
SELECT + + 93, CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + 90 AS col0
----
93
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-803
SELECT ALL - + NULLIF ( 69, COUNT( - - 58 ) * - - 22 - 69 ) AS col0, - COUNT( * ) AS col1
----
-69
-1

skipif mysql # not compatible
query II rowsort label-803
SELECT ALL - + NULLIF ( 69, COUNT ( - - 58 ) * - - 22 - 69 ) AS col0, - COUNT ( * ) AS col1
----
-69
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-804
SELECT ALL 30 DIV + + SUM( - - ( 86 ) ) - + 46
----
-46

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL 30 / + + SUM ( - - ( 86 ) ) - + 46
----
-46

query I rowsort
SELECT DISTINCT - 70 col2
----
-70

query I rowsort
SELECT 88 + 19
----
107

onlyif mysql # DIV for integer division: 
query II rowsort label-807
SELECT ALL 87 DIV - ( + + 1 ) AS col1, + 43 * + 76 AS col2
----
-87
3268

skipif mysql # not compatible
query II rowsort label-807
SELECT ALL 87 / - ( + + 1 ) AS col1, + 43 * + 76 AS col2
----
-87
3268

query I rowsort
SELECT DISTINCT + 31 * - 62 * - + 56 * - - NULLIF ( + 79, - 95 ) col0
----
8502928

query I rowsort
SELECT + COALESCE ( 28, + + ( - - ( NULLIF ( - + 3, + 83 ) ) ) ) + - ( + 26 ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-810
SELECT DISTINCT 14 * 24 * ( + COALESCE ( + 6, - ( - - 21 ) * + + 44 + COUNT( * ), - - ( + - 94 ) DIV - 57 ) )
----
2016

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT 14 * 24 * ( + COALESCE ( + 6, - ( - - 21 ) * + + 44 + COUNT ( * ), - - ( + - 94 ) / - 57 ) )
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT - SUM( ALL + 21 ) * 41
----
-861

skipif mysql # not compatible
query I rowsort label-811
SELECT - SUM ( ALL + 21 ) * 41
----
-861

query I rowsort
SELECT - 6 * 42 AS col2
----
-252

query I rowsort
SELECT 88 * - - 76
----
6688

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

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

query I rowsort
SELECT 67 * + 35 col1
----
2345

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT MIN( ALL + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT MIN ( ALL + 81 ) AS col1
----
81

query II rowsort
SELECT DISTINCT 68 AS col0, 85 + - 15 AS col1
----
68
70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT 72 + - CASE 94 WHEN SUM( DISTINCT - - 68 ) THEN + - SUM( + 43 ) WHEN 65 * 63 THEN COALESCE ( 6, + 44 DIV - - 8 ) WHEN - 25 + - 2 DIV 17 * 39 THEN 43 * - COALESCE ( + 63, - 54 * + SUM( 46 ) ) - 55 ELSE + 59 END
----
13

skipif mysql # not compatible
query I rowsort label-819
SELECT 72 + - CASE 94 WHEN SUM ( DISTINCT - - 68 ) THEN + - SUM ( + 43 ) WHEN 65 * 63 THEN COALESCE ( 6, + 44 / - - 8 ) WHEN - 25 + - 2 / 17 * 39 THEN 43 * - COALESCE ( + 63, - 54 * + SUM ( 46 ) ) - 55 ELSE + 59 END
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-820
SELECT 6 col2, 42 + - - SUM( 53 ) + + + 26 * COUNT( * ) AS col1
----
6
121

skipif mysql # not compatible
query II rowsort label-820
SELECT 6 col2, 42 + - - SUM ( 53 ) + + + 26 * COUNT ( * ) AS col1
----
6
121

query I rowsort
SELECT ( 20 ) * - - 92 - - 65 * - 62
----
-2190

query I rowsort
SELECT 82 + + - 28 - ( - 38 )
----
92

query II rowsort
SELECT 85, 98 AS col1
----
85
98

query I rowsort
SELECT 91 + 66
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-825
SELECT ALL - 83 + + CASE + - 24 WHEN + + COUNT( * ) THEN + - 54 WHEN + + 25 * - - COALESCE ( + SUM( ALL + - 10 ), - - COALESCE ( + 78, - + COALESCE ( CAST( NULL AS SIGNED ), - - ( + 40 ), - 66 ) ), - CASE 19 WHEN CASE MAX( DISTINCT 8 ) WHEN 99 + 19 THEN NULL WHEN + SUM( DISTINCT + 59 ) THEN + CAST( NULL AS SIGNED ) * - 97 END * - 8 THEN 69 WHEN + 38 + 63 THEN NULL ELSE NULL END, - MAX( ALL - 18 ) + CAST( 3 AS SIGNED ) ) THEN NULL WHEN 94 * + COUNT( * ) THEN 34 * COUNT( * ) + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL - 83 + + CASE + - 24 WHEN + + COUNT ( * ) THEN + - 54 WHEN + + 25 * - - COALESCE ( + SUM ( ALL + - 10 ), - - COALESCE ( + 78, - + COALESCE ( CAST ( NULL AS INTEGER ), - - ( + 40 ), - 66 ) ), - CASE 19 WHEN CASE MAX ( DISTINCT 8 ) WHEN 99 + 19 THEN NULL WHEN + SUM ( DISTINCT + 59 ) THEN + CAST ( NULL AS INTEGER ) * - 97 END * - 8 THEN 69 WHEN + 38 + 63 THEN NULL ELSE NULL END, - MAX ( ALL - 18 ) + CAST ( 3 AS INTEGER ) ) THEN NULL WHEN 94 * + COUNT ( * ) THEN 34 * COUNT ( * ) + 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT COUNT( - 55 ) + + 37 * NULLIF ( + + 0, 50 ) - + 23
----
-22

skipif mysql # not compatible
query I rowsort label-826
SELECT COUNT ( - 55 ) + + 37 * NULLIF ( + + 0, 50 ) - + 23
----
-22

query II rowsort
SELECT 93 AS col2, 15
----
93
15

query II rowsort
SELECT - 84, + 26 AS col2
----
-84
26

query I rowsort
SELECT 75 - - 69 col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT - COUNT( * ) + 82 col1
----
81

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT - COUNT ( * ) + 82 col1
----
81

query I rowsort
SELECT ALL + 84 + - 69 AS col2
----
15

query I rowsort
SELECT 97 + - 30 - + 70
----
-3

query I rowsort
SELECT ALL + 20 + - - 35 * - 7 AS col2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT 7 + + 5 + - NULLIF ( - 51, 67 * ( + COUNT( * ) ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-834
SELECT 7 + + 5 + - NULLIF ( - 51, 67 * ( + COUNT ( * ) ) ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT 10 * - + 37 * - - COUNT( * ) AS col0
----
-370

skipif mysql # not compatible
query I rowsort label-835
SELECT 10 * - + 37 * - - COUNT ( * ) AS col0
----
-370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-836
SELECT ALL COUNT( * ), COUNT( * ) * + 35 - - CAST( + 89 AS SIGNED ) AS col2
----
1
124

skipif mysql # not compatible
query II rowsort label-836
SELECT ALL COUNT ( * ), COUNT ( * ) * + 35 - - CAST ( + 89 AS INTEGER ) AS col2
----
1
124

query I rowsort
SELECT 87 * 57 * - + 33 AS col0
----
-163647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-838
SELECT COALESCE ( + + CAST( NULL AS SIGNED ), - MAX( 90 ) DIV + ( - 78 ), 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-838
SELECT COALESCE ( + + CAST ( NULL AS INTEGER ), - MAX ( 90 ) / + ( - 78 ), 51 ) AS col2
----
1

query I rowsort
SELECT ALL + 96 * + - 94 - - + 97 + 12 * 3
----
-8891

query I rowsort
SELECT - 34 * + 62
----
-2108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-841
SELECT + 35 AS col2, CAST( - + 97 AS SIGNED ) AS col1
----
35
-97

skipif mysql # not compatible
query II rowsort label-841
SELECT + 35 AS col2, CAST ( - + 97 AS INTEGER ) AS col1
----
35
-97

query I rowsort
SELECT ALL - + 41 * 13 * 65 * - 43 AS col2
----
1489735

query I rowsort
SELECT + CASE 61 WHEN + 51 THEN - - 48 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-845
SELECT ALL + 31 AS col0, + 55 + - COUNT( * )
----
31
54

skipif mysql # not compatible
query II rowsort label-845
SELECT ALL + 31 AS col0, + 55 + - COUNT ( * )
----
31
54

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-848
SELECT - - ( 38 ) * + + 73 + + SUM( ALL - 45 ) DIV 85, 97 - + COUNT( * ) AS col0
----
2774
96

skipif mysql # not compatible
query II rowsort label-848
SELECT - - ( 38 ) * + + 73 + + SUM ( ALL - 45 ) / 85, 97 - + COUNT ( * ) AS col0
----
2774
96

query II rowsort
SELECT + + 26 AS col1, 91 AS col1
----
26
91

onlyif mysql # aggregate syntax: 
query II rowsort label-850
SELECT ALL + - COUNT( * ), SUM( 63 ) * - 63 + 49 AS col1
----
-1
-3920

skipif mysql # not compatible
query II rowsort label-850
SELECT ALL + - COUNT ( * ), SUM ( 63 ) * - 63 + 49 AS col1
----
-1
-3920

query II rowsort
SELECT ALL + + 44 AS col1, 72 AS col2
----
44
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-852
SELECT DISTINCT COUNT( * ) * - - MAX( + CAST( 96 AS SIGNED ) ) + 74 * - 97 * + 2 * - + 66 AS col0
----
947592

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT COUNT ( * ) * - - MAX ( + CAST ( 96 AS INTEGER ) ) + 74 * - 97 * + 2 * - + 66 AS col0
----
947592

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT + 18 + - MAX( + 29 )
----
-11

skipif mysql # not compatible
query I rowsort label-853
SELECT + 18 + - MAX ( + 29 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT + + 70 DIV - + 23
----
-3

skipif mysql # not compatible
query I rowsort label-854
SELECT + + 70 / - + 23
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT DISTINCT 66 + - 78 * + 37 + + CASE + COALESCE ( + 2, 34 + - - 2, + - 59 + + 11 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN COUNT( * ) * + 21 WHEN - + 42 + - 76 THEN + 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT 66 + - 78 * + 37 + + CASE + COALESCE ( + 2, 34 + - - 2, + - 59 + + 11 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN COUNT ( * ) * + 21 WHEN - + 42 + - 76 THEN + 24 END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-857
SELECT - 79 + - 88 DIV + 50
----
-80

skipif mysql # not compatible
query I rowsort label-857
SELECT - 79 + - 88 / + 50
----
-80

query I rowsort
SELECT + 84 - - 13 * - + 23
----
-215

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT - 96 DIV - - 4
----
-24

skipif mysql # not compatible
query I rowsort label-859
SELECT - 96 / - - 4
----
-24

query I rowsort
SELECT DISTINCT 8 + - 24 AS col1
----
-16

query I rowsort
SELECT - ( 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT DISTINCT 13 + + + COUNT( * ) - - ( - COUNT( * ) ) - 16
----
-3

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT 13 + + + COUNT ( * ) - - ( - COUNT ( * ) ) - 16
----
-3

query I rowsort
SELECT + ( + COALESCE ( 96, 1 ) ) + + 34
----
130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT ALL 7 + + COUNT( * ) * - 62
----
-55

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL 7 + + COUNT ( * ) * - 62
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT DISTINCT MIN( ALL - 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT MIN ( ALL - 53 ) AS col0
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-867
SELECT ALL - 52 + - 31 - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - 52 + - 31 - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ALL SUM( DISTINCT - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL SUM ( DISTINCT - 40 )
----
-40

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

query I rowsort
SELECT + 12 * - - ( + 69 ) col0
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT + MAX( + 79 ) + - COUNT( * ) col0
----
78

skipif mysql # not compatible
query I rowsort label-871
SELECT + MAX ( + 79 ) + - COUNT ( * ) col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL 94 - - 92 + + COUNT( * ) AS col2
----
187

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL 94 - - 92 + + COUNT ( * ) AS col2
----
187

query II rowsort
SELECT - ( + 93 ) AS col2, 99
----
-93
99

query II rowsort
SELECT - ( - - 31 ) AS col1, - 99
----
-31
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT DISTINCT 99 * NULLIF ( + - 27, + COUNT( * ) * 1 * 18 )
----
-2673

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT 99 * NULLIF ( + - 27, + COUNT ( * ) * 1 * 18 )
----
-2673

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-877
SELECT - + ( COUNT( * ) ) + + + COUNT( * ) DIV 7 - - 99 AS col2, - 71 DIV - 92 DIV - + COUNT( * ) + 44
----
98
44

skipif mysql # not compatible
query II rowsort label-877
SELECT - + ( COUNT ( * ) ) + + + COUNT ( * ) / 7 - - 99 AS col2, - 71 / - 92 / - + COUNT ( * ) + 44
----
98
44

query I rowsort
SELECT ALL + 86 * 16 col0
----
1376

query I rowsort
SELECT DISTINCT + NULLIF ( + 77, 83 )
----
77

query I rowsort
SELECT - 95 - 3
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-881
SELECT - 30 * 84 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-881
SELECT - 30 * 84 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-882
SELECT NULLIF ( COUNT( * ), + 18 * + ( - COUNT( * ) ) / 77 + - 95 + - CAST( NULL AS SIGNED ) * + - 51 * 19 ) AS col2, + 4
----
1
4

skipif mysql # not compatible
query II rowsort label-882
SELECT NULLIF ( COUNT ( * ), + 18 * + ( - COUNT ( * ) ) / 77 + - 95 + - CAST ( NULL AS INTEGER ) * + - 51 * 19 ) AS col2, + 4
----
1
4

onlyif mysql # DIV for integer division: 
query I rowsort label-883
SELECT + 43 DIV - + 63 + - - 44 + 65 * - + 98 + - - 48
----
-6278

skipif mysql # not compatible
query I rowsort label-883
SELECT + 43 / - + 63 + - - 44 + 65 * - + 98 + - - 48
----
-6278

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL + - CASE + + 48 WHEN 46 + + - 9 THEN NULL WHEN + 2 / + + SUM( ALL 53 ) * CASE - - COUNT( * ) WHEN - - 14 THEN + 13 END THEN + COALESCE ( 8, + NULLIF ( + ( - 45 ), + 93 ) ) * 21 + 59 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + - CASE + + 48 WHEN 46 + + - 9 THEN NULL WHEN + 2 / + + SUM ( ALL 53 ) * CASE - - COUNT ( * ) WHEN - - 14 THEN + 13 END THEN + COALESCE ( 8, + NULLIF ( + ( - 45 ), + 93 ) ) * 21 + 59 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT + - CASE + 33 WHEN - 53 * + 8 + - MIN( + 23 ) + + + 44 / - + 85 THEN - - 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT + - CASE + 33 WHEN - 53 * + 8 + - MIN ( + 23 ) + + + 44 / - + 85 THEN - - 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL - 54 * COUNT( * ) + - COUNT( * ) + + + 27
----
-28

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - 54 * COUNT ( * ) + - COUNT ( * ) + + + 27
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-888
SELECT DISTINCT MIN( - 33 ) DIV - 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT MIN ( - 33 ) / - 76 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT ALL + - 34 * + ( 19 ) * 49 * + COALESCE ( + ( + 55 ), - - 24 * + 63 + + COUNT( * ) ) AS col0
----
-1740970

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL + - 34 * + ( 19 ) * 49 * + COALESCE ( + ( + 55 ), - - 24 * + 63 + + COUNT ( * ) ) AS col0
----
-1740970

query I rowsort
SELECT - - ( + - 71 ) * 7
----
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - - 15 + - COUNT( * ) * + - 37 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-891
SELECT - - 15 + - COUNT ( * ) * + - 37 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-892
SELECT ALL - 10 / - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - 10 / - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 76 col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT - + 41 + + + 46 * 67 * 24 * + 97 - - - 4 DIV - 7 + + 76 + - 12 - - 96
----
7175015

skipif mysql # not compatible
query I rowsort label-894
SELECT - + 41 + + + 46 * 67 * 24 * + 97 - - - 4 / - 7 + + 76 + - 12 - - 96
----
7175015

query I rowsort
SELECT - 64 + - + 54 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT + + SUM( + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-896
SELECT + + SUM ( + 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL 35 * - 55 * - 15 + - MIN( DISTINCT 84 ) AS col2
----
28791

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL 35 * - 55 * - 15 + - MIN ( DISTINCT 84 ) AS col2
----
28791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-898
SELECT NULLIF ( + ( + - 47 ), - + 19 * - CASE + - 83 WHEN - 48 + - 80 + - 51 THEN + 4 WHEN - 27 + - - 63 * + CASE WHEN NOT - ( + 61 ) BETWEEN ( + 64 * + 2 + + 49 + AVG ( 33 ) ) AND 82 THEN - 0 * + CAST( NULL AS SIGNED ) END THEN NULL ELSE - 36 + + MIN( DISTINCT ( NULLIF ( - 71, ( 10 ) / + 73 + - 82 ) ) ) END + 74 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-898
SELECT NULLIF ( + ( + - 47 ), - + 19 * - CASE + - 83 WHEN - 48 + - 80 + - 51 THEN + 4 WHEN - 27 + - - 63 * + CASE WHEN NOT - ( + 61 ) BETWEEN ( + 64 * + 2 + + 49 + AVG ( 33 ) ) AND 82 THEN - 0 * + CAST ( NULL AS INTEGER ) END THEN NULL ELSE - 36 + + MIN ( DISTINCT ( NULLIF ( - 71, ( 10 ) / + 73 + - 82 ) ) ) END + 74 ) AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-899
SELECT COALESCE ( - + 39, 16 DIV + 42 + 4, - 58 * + 38 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-899
SELECT COALESCE ( - + 39, 16 / + 42 + 4, - 58 * + 38 ) col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-900
SELECT DISTINCT ( MIN( ALL 6 ) ) * 86 + - - 59 DIV - - 74 + - 62 * - + COUNT( DISTINCT - 35 ) + + 28 AS col0
----
606

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT ( MIN ( ALL 6 ) ) * 86 + - - 59 / - - 74 + - 62 * - + COUNT ( DISTINCT - 35 ) + + 28 AS col0
----
606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-901
SELECT - CASE COUNT( * ) WHEN - 63 THEN + + CAST( NULL AS SIGNED ) + - + 97 + + COUNT( * ) ELSE - CASE 44 WHEN - 12 - + - 12 * + - NULLIF ( + COUNT( * ), - + 16 * - 83 + - 40 - + COUNT( * ) ) THEN CASE + + 11 WHEN - 88 * 35 - + 48 THEN NULL WHEN + COUNT( * ) THEN + 56 ELSE + CAST( + 95 AS SIGNED ) * ( + ( 74 ) * + ( COALESCE ( - 96, - 82 ) + - 18 ) ) END DIV + 36 ELSE + 15 END * 97 END AS col2
----
1455

skipif mysql # not compatible
query I rowsort label-901
SELECT - CASE COUNT ( * ) WHEN - 63 THEN + + CAST ( NULL AS INTEGER ) + - + 97 + + COUNT ( * ) ELSE - CASE 44 WHEN - 12 - + - 12 * + - NULLIF ( + COUNT ( * ), - + 16 * - 83 + - 40 - + COUNT ( * ) ) THEN CASE + + 11 WHEN - 88 * 35 - + 48 THEN NULL WHEN + COUNT ( * ) THEN + 56 ELSE + CAST ( + 95 AS INTEGER ) * ( + ( 74 ) * + ( COALESCE ( - 96, - 82 ) + - 18 ) ) END / + 36 ELSE + 15 END * 97 END AS col2
----
1455

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT ALL - 93 DIV + 41 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - 93 / + 41 AS col0
----
-2

query I rowsort
SELECT + 12 + + + 32 AS col0
----
44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-906
SELECT + 88 + + ( + 8 ) AS col2, + CAST( 3 AS SIGNED )
----
96
3

skipif mysql # not compatible
query II rowsort label-906
SELECT + 88 + + ( + 8 ) AS col2, + CAST ( 3 AS INTEGER )
----
96
3

query I rowsort
SELECT 90 * - + 15
----
-1350

query I rowsort
SELECT 97 + - 31 AS col1
----
66

query II rowsort
SELECT ALL 4 AS col2, 11 * - 71 - - - 73
----
4
-854

query I rowsort
SELECT 6 + + 17 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL - 21 * + COALESCE ( 48, + - 80, - SUM( ALL + 27 ) )
----
-1008

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - 21 * + COALESCE ( 48, + - 80, - SUM ( ALL + 27 ) )
----
-1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-912
SELECT COUNT( * ) * - MAX( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT COUNT ( * ) * - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT 25 + + ( + + SUM( DISTINCT 51 ) )
----
76

skipif mysql # not compatible
query I rowsort label-913
SELECT 25 + + ( + + SUM ( DISTINCT 51 ) )
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-914
SELECT NULLIF ( - + CAST( NULL AS DECIMAL ), + NULLIF ( + 95, 65 ) + + - 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT NULLIF ( - + CAST ( NULL AS REAL ), + NULLIF ( + 95, 65 ) + + - 74 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-916
SELECT MAX( ALL + 64 ) * + 22 col0, 87 AS col1
----
1408
87

skipif mysql # not compatible
query II rowsort label-916
SELECT MAX ( ALL + 64 ) * + 22 col0, 87 AS col1
----
1408
87

query I rowsort
SELECT ALL - + 76 col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-918
SELECT + - 4, CAST( NULL AS SIGNED ) * 91 AS col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-918
SELECT + - 4, CAST ( NULL AS INTEGER ) * 91 AS col0
----
-4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT + - MAX( 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-919
SELECT + - MAX ( 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT + + ( CASE + + 93 WHEN + + 96 * - COALESCE ( - COUNT( - - 88 ), 51 ) * - + 50 * + ( + + 70 ) + + - 14 + - COUNT( * ) - + 38 / + 61 / AVG ( + 6 ) * - 2 + + 6 / + 12 THEN + 2 ELSE 42 * + 6 + + ( 19 ) END )
----
271

skipif mysql # not compatible
query I rowsort label-920
SELECT + + ( CASE + + 93 WHEN + + 96 * - COALESCE ( - COUNT ( - - 88 ), 51 ) * - + 50 * + ( + + 70 ) + + - 14 + - COUNT ( * ) - + 38 / + 61 / AVG ( + 6 ) * - 2 + + 6 / + 12 THEN + 2 ELSE 42 * + 6 + + ( 19 ) END )
----
271

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT MAX( DISTINCT + + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-923
SELECT MAX ( DISTINCT + + 19 ) AS col1
----
19

query I rowsort
SELECT DISTINCT 65 + + + 42 + 98 AS col0
----
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-925
SELECT DISTINCT - ( COALESCE ( + 64, + + COUNT( ALL - + ( + - 72 ) ) DIV - - COUNT( * ) ) )
----
-64

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT - ( COALESCE ( + 64, + + COUNT ( ALL - + ( + - 72 ) ) / - - COUNT ( * ) ) )
----
-64

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

query I rowsort
SELECT 84 * 17 + - + 10 * 6 + + 24 AS col0
----
1392

query I rowsort
SELECT ALL + + 27 + + 95 * + ( - 95 ) AS col1
----
-8998

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT ALL + 70 + 32 * - 56 - COUNT( * )
----
-1723

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL + 70 + 32 * - 56 - COUNT ( * )
----
-1723

query I rowsort
SELECT 75 - + + 86 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-931
SELECT ALL 31 DIV + 8 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL 31 / + 8 AS col2
----
3

query I rowsort
SELECT 70 * - 56 * - 88 + + ( 43 ) + + - 49 AS col1
----
344954

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT ALL - 97 * COUNT( 31 )
----
-97

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL - 97 * COUNT ( 31 )
----
-97

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

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

query I rowsort
SELECT 75 + + 27 * - 96
----
-2517

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT 10 - COALESCE ( - ( - COUNT( * ) ), + + MAX( - + 21 ) + + + 69, - COUNT( * ) ) + COUNT( * ) + - - 42 * + 63
----
2656

skipif mysql # not compatible
query I rowsort label-936
SELECT 10 - COALESCE ( - ( - COUNT ( * ) ), + + MAX ( - + 21 ) + + + 69, - COUNT ( * ) ) + COUNT ( * ) + - - 42 * + 63
----
2656

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

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL + COUNT ( * ) - - 23 AS col1
----
24

query I rowsort
SELECT 0 * + 17 * + 65
----
0

query I rowsort
SELECT 10 + - - 4
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT 25 * + CASE MIN( - 78 ) WHEN COUNT( * ) * + 56 - + 75 THEN 85 + + + 77 - - + 13 * 52 / + - 7 + + 1 * - + 72 + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT 25 * + CASE MIN ( - 78 ) WHEN COUNT ( * ) * + 56 - + 75 THEN 85 + + + 77 - - + 13 * 52 / + - 7 + + 1 * - + 72 + 41 END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT CAST( + + 7 AS SIGNED ) * + 83 AS col1
----
581

skipif mysql # not compatible
query I rowsort label-942
SELECT CAST ( + + 7 AS INTEGER ) * + 83 AS col1
----
581

query I rowsort
SELECT 19 + + ( + 71 ) AS col1
----
90

query I rowsort
SELECT ALL 87 + - 21 * + - 54 + + 33
----
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - CASE - 57 WHEN 0 THEN NULL WHEN - - 20 * - 53 * 48 THEN - ( + + 63 ) * + 50 * 62 + COUNT( * ) + 3 + + 59 * AVG ( DISTINCT + 29 ) END + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT - CASE - 57 WHEN 0 THEN NULL WHEN - - 20 * - 53 * 48 THEN - ( + + 63 ) * + 50 * 62 + COUNT ( * ) + 3 + + 59 * AVG ( DISTINCT + 29 ) END + + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT ALL + - 63 + + 17 - + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL + - 63 + + 17 - + COUNT ( * )
----
-47

query I rowsort
SELECT ALL - 85 * 4 + + 10 AS col0
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT - CASE 41 WHEN COALESCE ( + 33, + MIN( ( - 7 ) ) - - 4 ) THEN - 26 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT - CASE 41 WHEN COALESCE ( + 33, + MIN ( ( - 7 ) ) - - 4 ) THEN - 26 END AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-950
SELECT ALL + + CAST( NULL AS SIGNED ) * - - CAST( - + MIN( ALL + + ( - + 78 ) ) AS SIGNED ) + COALESCE ( - 12, ( + + 49 ) * + 83 ) + + - 62 * 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL + + CAST ( NULL AS INTEGER ) * - - CAST ( - + MIN ( ALL + + ( - + 78 ) ) AS INTEGER ) + COALESCE ( - 12, ( + + 49 ) * + 83 ) + + - 62 * 10 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT 88 - 11 DIV 59 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-951
SELECT 88 - 11 / 59 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT MAX( 21 ) + - ( - 38 ) * + - ( - + 20 ) - COUNT( * ) AS col2
----
780

skipif mysql # not compatible
query I rowsort label-952
SELECT MAX ( 21 ) + - ( - 38 ) * + - ( - + 20 ) - COUNT ( * ) AS col2
----
780

query I rowsort
SELECT ALL - ( 79 ) AS col0
----
-79

query I rowsort
SELECT ( 59 ) + 95 col2
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT ALL 27 * - + 68 DIV 34 - + - 31 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL 27 * - + 68 / 34 - + - 31 AS col1
----
-23

query I rowsort
SELECT DISTINCT 90 * 21 AS col2
----
1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-957
SELECT ( - 19 ) + + CAST( - COUNT( * ) AS SIGNED ) + - 49 * - 18 * 11
----
9682

skipif mysql # not compatible
query I rowsort label-957
SELECT ( - 19 ) + + CAST ( - COUNT ( * ) AS INTEGER ) + - 49 * - 18 * 11
----
9682

onlyif mysql # aggregate syntax: 
query II rowsort label-958
SELECT ( - 2 ) * 92 + 40 + + 45 + 84 + - MAX( DISTINCT 3 ) + 66 + - 83 * - ( ( + 59 ) ), + 74 AS col2
----
4945
74

skipif mysql # not compatible
query II rowsort label-958
SELECT ( - 2 ) * 92 + 40 + + 45 + 84 + - MAX ( DISTINCT 3 ) + 66 + - 83 * - ( ( + 59 ) ), + 74 AS col2
----
4945
74

query I rowsort
SELECT ALL 25 * + + 63 * - 41
----
-64575

query II rowsort
SELECT ALL - 30 AS col1, + 7 * + 53 + 43 col1
----
-30
414

query I rowsort
SELECT - 70 * 76 + + - 88
----
-5408

query I rowsort
SELECT 39 * + 62 + - ( - - 28 )
----
2390

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT + 36 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-963
SELECT + 36 / - 76
----
0

query I rowsort
SELECT ALL - 3 * 18
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT - 6 DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-965
SELECT - 6 / + 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT DISTINCT SUM( DISTINCT - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT SUM ( DISTINCT - 13 ) AS col1
----
-13

query I rowsort
SELECT + 93 * + 15 * - - ( + 30 ) AS col1
----
41850

query I rowsort
SELECT - 99 + - + 12 AS col0
----
-111

query I rowsort
SELECT DISTINCT + 25 + - 38
----
-13

query III rowsort
SELECT ALL - 82 AS col1, 16 + - 58 * - - 64 * 60 + - 41 col2, - - 15
----
-82
-222745
15

query I rowsort
SELECT - - 26 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-972
SELECT ALL - + 48 + - 16 + - - CAST( + - 67 AS SIGNED )
----
-131

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL - + 48 + - 16 + - - CAST ( + - 67 AS INTEGER )
----
-131

query II rowsort
SELECT + 90 AS col2, + 74 AS col2
----
90
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-974
SELECT - - 42 DIV + + COUNT( * ) + - 50 + - COUNT( * ) - 24 * + + 82 * + SUM( ALL 70 ) - + - 92 AS col0
----
-137677

skipif mysql # not compatible
query I rowsort label-974
SELECT - - 42 / + + COUNT ( * ) + - 50 + - COUNT ( * ) - 24 * + + 82 * + SUM ( ALL 70 ) - + - 92 AS col0
----
-137677

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

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

query I rowsort
SELECT ALL + 31 + - 7
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT ALL - SUM( DISTINCT 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL - SUM ( DISTINCT 28 )
----
-28

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-979
SELECT - SUM( DISTINCT 44 ) DIV COALESCE ( + ( + 3 ), - 51, + - 29 * + + CAST( - 84 AS SIGNED ) ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-979
SELECT - SUM ( DISTINCT 44 ) / COALESCE ( + ( + 3 ), - 51, + - 29 * + + CAST ( - 84 AS INTEGER ) ) col0
----
-14

query I rowsort
SELECT ALL - - 44 * - 49
----
-2156

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

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - COUNT ( * ) * + + 60 AS col0
----
-60

query I rowsort
SELECT + 20 * + + 96
----
1920

query I rowsort
SELECT ALL + ( + - 16 ) col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ( NULLIF ( - COUNT( * ), - COUNT( * ) * + 33 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-984
SELECT ( NULLIF ( - COUNT ( * ), - COUNT ( * ) * + 33 ) )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-985
SELECT ALL + 46 AS col2, - 30 DIV - 97 AS col1
----
46
0

skipif mysql # not compatible
query II rowsort label-985
SELECT ALL + 46 AS col2, - 30 / - 97 AS col1
----
46
0

query I rowsort
SELECT NULLIF ( + 37, 5 ) AS col0
----
37

query I rowsort
SELECT + 89 + 57 col1
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT + CAST( + 2 AS SIGNED ) * - + 7 * - ( CAST( NULL AS SIGNED ) ) * - - 56 * 99 + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT + CAST ( + 2 AS INTEGER ) * - + 7 * - ( CAST ( NULL AS INTEGER ) ) * - - 56 * 99 + - 57
----
NULL

query I rowsort
SELECT + 66 * - - 42
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT ALL CASE COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + SUM( DISTINCT - 44 ) THEN + - 11 * + 53 + + 50 ELSE 20 END * 6 + + + 99 AS col0
----
219

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + SUM ( DISTINCT - 44 ) THEN + - 11 * + 53 + + 50 ELSE 20 END * 6 + + + 99 AS col0
----
219

query I rowsort
SELECT + 12 + - + 60 AS col2
----
-48

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

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL CAST ( NULL AS INTEGER ) * - + 82
----
NULL

query I rowsort
SELECT + 30 * + + 73
----
2190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-994
SELECT ALL COALESCE ( - 30, - 16, + 23 DIV 87 * + COUNT( * ) + + - 67 ) * ( - 18 ) + + 61 + + COUNT( * )
----
602

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL COALESCE ( - 30, - 16, + 23 / 87 * + COUNT ( * ) + + - 67 ) * ( - 18 ) + + 61 + + COUNT ( * )
----
602

query I rowsort
SELECT ALL - 60 * + - 36 + + 81
----
2241

query I rowsort
SELECT + 76 + - 22 + 14
----
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT - 58 - - COALESCE ( MAX( ALL + + 58 ), - 13, - 11 ) + + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-998
SELECT - 58 - - COALESCE ( MAX ( ALL + + 58 ), - 13, - 11 ) + + 23 AS col0
----
23

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

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

query I rowsort
SELECT - 34 - - 22
----
-12

query I rowsort
SELECT - ( 74 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1002
SELECT ALL + CAST( NULL AS SIGNED ) * SUM( 88 ) + - MAX( - CASE + 61 WHEN + 30 THEN NULL ELSE - 50 END ) * + AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + CAST ( NULL AS INTEGER ) * SUM ( 88 ) + - MAX ( - CASE + 61 WHEN + 30 THEN NULL ELSE - 50 END ) * + AVG ( ALL CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + - 82 * + SUM( DISTINCT 93 ) col2
----
-7626

skipif mysql # not compatible
query I rowsort label-1003
SELECT + - 82 * + SUM ( DISTINCT 93 ) col2
----
-7626

query II rowsort
SELECT + 30 + 42 AS col0, 4 AS col0
----
72
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL + CAST( NULL AS SIGNED ) + - - 99 * 15 + + COALESCE ( - 70, + - 97, 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 99 * 15 + + COALESCE ( - 70, + - 97, 69 ) AS col1
----
NULL

query I rowsort
SELECT - - 82 * 73 AS col1
----
5986

query I rowsort
SELECT + 19 + - 46 + 25 col1
----
-2

query I rowsort
SELECT - + 80 + 17
----
-63

query I rowsort
SELECT - - 5 + - 11 AS col1
----
-6

query II rowsort
SELECT DISTINCT + 25, - 39 AS col2
----
25
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL - ( - - NULLIF ( - MIN( DISTINCT - + 19 ), COUNT( - 84 ) ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL - ( - - NULLIF ( - MIN ( DISTINCT - + 19 ), COUNT ( - 84 ) ) ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL ( 44 ) * + CASE + + COUNT( * ) WHEN 99 + + 16 THEN + COUNT( * ) WHEN 64 THEN - 89 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL ( 44 ) * + CASE + + COUNT ( * ) WHEN 99 + + 16 THEN + COUNT ( * ) WHEN 64 THEN - 89 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT - ( 63 ) * - 34 * - 87 + + COUNT( * )
----
-186353

skipif mysql # not compatible
query I rowsort label-1014
SELECT - ( 63 ) * - 34 * - 87 + + COUNT ( * )
----
-186353

query II rowsort
SELECT DISTINCT - 48 * - 82, 39 AS col2
----
3936
39

query I rowsort
SELECT 84 * + 12 * 81 * - 91
----
-7429968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1017
SELECT 26 DIV + - MAX( - 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1017
SELECT 26 / + - MAX ( - 97 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 48 * - 13
----
624

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT 16 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-1019
SELECT 16 / - 63
----
0

query I rowsort
SELECT DISTINCT - 30 + + 68
----
38

query I rowsort
SELECT 0 * + + 19 * + - 88 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1022
SELECT ALL - CASE 36 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - + 35 END
----
35

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL - CASE 36 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - + 35 END
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1023
SELECT 67 * CAST( NULL AS SIGNED ) * - + 20 + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT 67 * CAST ( NULL AS INTEGER ) * - + 20 + 91
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1024
SELECT DISTINCT COUNT( * ) + 44, 2 AS col0
----
45
2

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT COUNT ( * ) + 44, 2 AS col0
----
45
2

onlyif mysql # DIV for integer division: 
query II rowsort label-1025
SELECT DISTINCT 82 + - 74 AS col1, + 23 DIV - 71 + + 46 AS col0
----
8
46

skipif mysql # not compatible
query II rowsort label-1025
SELECT DISTINCT 82 + - 74 AS col1, + 23 / - 71 + + 46 AS col0
----
8
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT COUNT( * ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-1026
SELECT COUNT ( * ) + - 55
----
-54

query I rowsort
SELECT DISTINCT 61 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL - - 44 + + - COUNT( * ) + - 3 * + 82
----
-203

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL - - 44 + + - COUNT ( * ) + - 3 * + 82
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT ALL SUM( DISTINCT + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL SUM ( DISTINCT + 5 )
----
5

query I rowsort
SELECT + 65 * - - 35 + - 49 AS col1
----
2226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT ALL - CAST( - ( 82 ) AS SIGNED ) + ( + ( - 37 ) ) col0
----
45

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL - CAST ( - ( 82 ) AS INTEGER ) + ( + ( - 37 ) ) col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL SUM( DISTINCT + - 42 ) + - ( + 69 ) * - + 15 col1
----
993

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL SUM ( DISTINCT + - 42 ) + - ( + 69 ) * - + 15 col1
----
993

query I rowsort
SELECT + 59 + - 69 + 65 * + + 47 AS col2
----
3045

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT 55 * - + SUM( - 50 ) col0
----
2750

skipif mysql # not compatible
query I rowsort label-1034
SELECT 55 * - + SUM ( - 50 ) col0
----
2750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1035
SELECT 73 DIV + COALESCE ( - + 87, - 84 * + - 87 ) * - 17 * 60 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1035
SELECT 73 / + COALESCE ( - + 87, - 84 * + - 87 ) * - 17 * 60 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT 32 + - 31 * - 8 + + 55 * - - COUNT( * ) * - 21
----
-875

skipif mysql # not compatible
query I rowsort label-1036
SELECT 32 + - 31 * - 8 + + 55 * - - COUNT ( * ) * - 21
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT NULLIF ( + COUNT( * ), COUNT( * ) ) * - - COUNT( + - 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT NULLIF ( + COUNT ( * ), COUNT ( * ) ) * - - COUNT ( + - 23 ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 21 - - + 29, 90 * + 7 * 38 AS col1
----
50
23940

query I rowsort
SELECT - 66 * - 83 * - - 2 * + 79
----
865524

query I rowsort
SELECT - + 88 col2
----
-88

query II rowsort
SELECT 81 * - NULLIF ( + 81, + 49 ), + 99 AS col1
----
-6561
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT DISTINCT - CASE - 70 WHEN 50 THEN - - COALESCE ( COUNT( * ), 6 ) * - - 93 * + 86 * 67 WHEN + CAST( - 33 AS SIGNED ) THEN + COALESCE ( CASE + 0 WHEN - + ( + 80 ) - 36 THEN 50 - 32 ELSE - 44 END, + + COALESCE ( + + 45, - COUNT( 1 ) ) * MAX( CAST( NULL AS SIGNED ) ), CAST( 95 AS SIGNED ) ) + - COUNT( ALL - 23 ) END * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - CASE - 70 WHEN 50 THEN - - COALESCE ( COUNT ( * ), 6 ) * - - 93 * + 86 * 67 WHEN + CAST ( - 33 AS INTEGER ) THEN + COALESCE ( CASE + 0 WHEN - + ( + 80 ) - 36 THEN 50 - 32 ELSE - 44 END, + + COALESCE ( + + 45, - COUNT ( 1 ) ) * MAX ( CAST ( NULL AS INTEGER ) ), CAST ( 95 AS INTEGER ) ) + - COUNT ( ALL - 23 ) END * 10 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - MIN ( 45 )
----
-45

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

query I rowsort
SELECT 29 * 57
----
1653

query I rowsort
SELECT DISTINCT 60 + + + ( + 27 )
----
87

query I rowsort
SELECT 19 * + 20
----
380

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1049
SELECT - 45 DIV 24 - - 57, COALESCE ( - + 53, 92 DIV - + CAST( NULL AS SIGNED ) ) * 75 + - + 92 * - + 26 AS col2
----
56
-1583

skipif mysql # not compatible
query II rowsort label-1049
SELECT - 45 / 24 - - 57, COALESCE ( - + 53, 92 / - + CAST ( NULL AS INTEGER ) ) * 75 + - + 92 * - + 26 AS col2
----
56
-1583

query I rowsort
SELECT ALL - ( + 81 ) AS col1
----
-81

query I rowsort
SELECT 81 * 61 + + 34 + + CASE - + 78 WHEN 92 * + 28 + - - 97 * + 20 * 63 * - 2 THEN + + 2 END * + - 47 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1053
SELECT 45, - 77 + 39 + + - ( - 64 ) DIV 88 AS col1, + NULLIF ( + 14, + 14 + - + 1 + + CASE 10 WHEN + - 76 + - 82 THEN + COUNT( * ) + + - 56 END + + - CAST( + - 25 AS SIGNED ) ) * 0 - - 96 + - 3 + + + 90 + + + 69 * - 64 col1
----
45
-38
-4233

skipif mysql # not compatible
query III rowsort label-1053
SELECT 45, - 77 + 39 + + - ( - 64 ) / 88 AS col1, + NULLIF ( + 14, + 14 + - + 1 + + CASE 10 WHEN + - 76 + - 82 THEN + COUNT ( * ) + + - 56 END + + - CAST ( + - 25 AS INTEGER ) ) * 0 - - 96 + - 3 + + + 90 + + + 69 * - 64 col1
----
45
-38
-4233

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL + COUNT( * ) + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL + COUNT ( * ) + - 30
----
-29

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

query I rowsort
SELECT - 65 + + 94
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT - 48 - + + COUNT( * ) + - NULLIF ( - + MIN( 33 ), COUNT( * ) ) * - - 95 AS col0
----
3086

skipif mysql # not compatible
query I rowsort label-1057
SELECT - 48 - + + COUNT ( * ) + - NULLIF ( - + MIN ( 33 ), COUNT ( * ) ) * - - 95 AS col0
----
3086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1058
SELECT + ( NULLIF ( - COALESCE ( 6, + COUNT( * ) * + 75 ), + + COUNT( * ) * 25 + + - MAX( + - CAST( NULL AS SIGNED ) ) ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1058
SELECT + ( NULLIF ( - COALESCE ( 6, + COUNT ( * ) * + 75 ), + + COUNT ( * ) * 25 + + - MAX ( + - CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1059
SELECT ALL + 85 - - COUNT( * ) + 75 * - 46 + - CASE + CAST( NULL AS SIGNED ) WHEN + NULLIF ( + 33, - + 45 ) THEN NULL WHEN - 76 THEN - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + 85 - - COUNT ( * ) + 75 * - 46 + - CASE + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( + 33, - + 45 ) THEN NULL WHEN - 76 THEN - + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ( COUNT( * ) ) * - 33 * 55 - - 1 AS col0
----
-1814

skipif mysql # not compatible
query I rowsort label-1060
SELECT ( COUNT ( * ) ) * - 33 * 55 - - 1 AS col0
----
-1814

query II rowsort
SELECT DISTINCT + 16 AS col2, 73 AS col0
----
16
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1062
SELECT - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1062
SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER )
----
NULL
NULL

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

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

query II rowsort
SELECT ALL 75 col1, 61 * + + 81 * - 46 AS col0
----
75
-227286

query I rowsort
SELECT + 90 + + ( 26 ) AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT + 64 * + 0 - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1066
SELECT + 64 * + 0 - ( - - COUNT ( * ) )
----
-1

query I rowsort
SELECT + + 78 + - - COALESCE ( + 22, + 55 ) * 79 * - + 34 * 76 AS col1
----
-4490914

query I rowsort
SELECT + 26 + - 87 - + 78 AS col2
----
-139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1069
SELECT + ( + ( + 66 ) ) DIV - CAST( + + 97 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1069
SELECT + ( + ( + 66 ) ) / - CAST ( + + 97 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT 84 + - 5 * - - 60 AS col2
----
-216

onlyif mysql # DIV for integer division: 
query II rowsort label-1071
SELECT ALL NULLIF ( + 65, + 95 ) DIV 28 AS col0, - 71
----
2
-71

skipif mysql # not compatible
query II rowsort label-1071
SELECT ALL NULLIF ( + 65, + 95 ) / 28 AS col0, - 71
----
2
-71

query I rowsort
SELECT ALL 7 + 91 - + - 95
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT + 13 + - COALESCE ( + 36, - 63 - + + 73 + - 60 + + - 14 * + COUNT( * ), 44 + - 64 * + + MIN( - - ( - + 12 ) ) )
----
-23

skipif mysql # not compatible
query I rowsort label-1073
SELECT + 13 + - COALESCE ( + 36, - 63 - + + 73 + - 60 + + - 14 * + COUNT ( * ), 44 + - 64 * + + MIN ( - - ( - + 12 ) ) )
----
-23

query I rowsort
SELECT ALL 19 + 84
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-1075
SELECT + 89 + + MAX( ALL - ( + 40 ) ) AS col2, + 83 AS col0
----
49
83

skipif mysql # not compatible
query II rowsort label-1075
SELECT + 89 + + MAX ( ALL - ( + 40 ) ) AS col2, + 83 AS col0
----
49
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL - SUM( + 21 ) * - 53 + + NULLIF ( + + 33, 66 * + - ( 38 ) - 3 ) + + 15 col0
----
1161

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL - SUM ( + 21 ) * - 53 + + NULLIF ( + + 33, 66 * + - ( 38 ) - 3 ) + + 15 col0
----
1161

onlyif mysql # DIV for integer division: 
query II rowsort label-1077
SELECT + 53 DIV + 40 col1, - 17
----
1
-17

skipif mysql # not compatible
query II rowsort label-1077
SELECT + 53 / + 40 col1, - 17
----
1
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1078
SELECT - 78 / 58 * + 51 * - 68 * - - CAST( NULL AS DECIMAL ) + + ( + 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT - 78 / 58 * + 51 * - 68 * - - CAST ( NULL AS REAL ) + + ( + 86 ) AS col1
----
NULL

query I rowsort
SELECT - 35 + 33 * 26 + - 85
----
738

onlyif mysql # aggregate syntax: 
query II rowsort label-1080
SELECT ALL - 67 * + - SUM( 47 ) + + - NULLIF ( 54, + 80 + ( + 27 ) ) + + 2 AS col2, - ( 14 ) * + 54
----
3097
-756

skipif mysql # not compatible
query II rowsort label-1080
SELECT ALL - 67 * + - SUM ( 47 ) + + - NULLIF ( 54, + 80 + ( + 27 ) ) + + 2 AS col2, - ( 14 ) * + 54
----
3097
-756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1081
SELECT DISTINCT + 23 * 34 + - + SUM( - 81 ) + 0 DIV + 43 + 69 DIV - + 23 AS col0
----
860

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT + 23 * 34 + - + SUM ( - 81 ) + 0 / + 43 + 69 / - + 23 AS col0
----
860

query I rowsort
SELECT NULLIF ( + - ( + 9 ), 37 * 48 + + 9 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT ALL 52 * + + NULLIF ( - + NULLIF ( - 1, 49 * 95 ), + 56 * + - 18 * - 51 ) - CASE 24 WHEN + CAST( NULL AS SIGNED ) / CASE + COALESCE ( - AVG ( DISTINCT + 97 ), - - 67 ) WHEN - 52 * COUNT( * ) / - COUNT( * ) THEN + 59 + - - 38 + - 78 * - ( 58 ) / 51 WHEN 16 THEN NULL ELSE 51 * 54 END THEN - 98 END * - SUM( ALL 85 * - 67 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL 52 * + + NULLIF ( - + NULLIF ( - 1, 49 * 95 ), + 56 * + - 18 * - 51 ) - CASE 24 WHEN + CAST ( NULL AS INTEGER ) / CASE + COALESCE ( - AVG ( DISTINCT + 97 ), - - 67 ) WHEN - 52 * COUNT ( * ) / - COUNT ( * ) THEN + 59 + - - 38 + - 78 * - ( 58 ) / 51 WHEN 16 THEN NULL ELSE 51 * 54 END THEN - 98 END * - SUM ( ALL 85 * - 67 ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT NULLIF ( + CAST( 71 AS SIGNED ), + NULLIF ( + + 4, 78 + - - 6 ) * 23 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-1084
SELECT NULLIF ( + CAST ( 71 AS INTEGER ), + NULLIF ( + + 4, 78 + - - 6 ) * 23 ) AS col1
----
71

query I rowsort
SELECT + - 75 * - 59 * 6 * - ( + + COALESCE ( + - 54, + 55 + - + 35, - 6 ) )
----
1433700

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

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

query I rowsort
SELECT - 85 * 70 AS col1
----
-5950

query I rowsort
SELECT - - 18 + 88
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT ALL + CASE - ( - 2 ) WHEN + 57 THEN - 99 END * + 9 / CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL + CASE - ( - 2 ) WHEN + 57 THEN - 99 END * + 9 / CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 77 col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT - - MAX( + 61 ) * 1 + + + 91 + + 20 * 64 * + 70 + - - 80 + - + 97 * MAX( DISTINCT 44 ) AS col2
----
85564

skipif mysql # not compatible
query I rowsort label-1091
SELECT - - MAX ( + 61 ) * 1 + + + 91 + + 20 * 64 * + 70 + - - 80 + - + 97 * MAX ( DISTINCT 44 ) AS col2
----
85564

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT SUM( + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1092
SELECT SUM ( + 85 ) AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1093
SELECT - + 82 * COALESCE ( - 28, 79 ) * COALESCE ( - 41, 52, COUNT( * ) DIV + + COALESCE ( 84, - 62 + + 85 * - + 37, - + CASE - CAST( + - ( - + ( - 3 ) ) AS DECIMAL ) WHEN - 84 + + COALESCE ( - 64, + COUNT( * ), + - MAX( ALL 85 ), 66 ) + - 94 * + 31 THEN 52 WHEN ( - 22 ) * + ( + 64 * 14 ) THEN 27 END ) + + 15 DIV + COUNT( * ), + MAX( - 99 ) ) - + 12 AS col1
----
-94148

skipif mysql # not compatible
query I rowsort label-1093
SELECT - + 82 * COALESCE ( - 28, 79 ) * COALESCE ( - 41, 52, COUNT ( * ) / + + COALESCE ( 84, - 62 + + 85 * - + 37, - + CASE - CAST ( + - ( - + ( - 3 ) ) AS REAL ) WHEN - 84 + + COALESCE ( - 64, + COUNT ( * ), + - MAX ( ALL 85 ), 66 ) + - 94 * + 31 THEN 52 WHEN ( - 22 ) * + ( + 64 * 14 ) THEN 27 END ) + + 15 / + COUNT ( * ), + MAX ( - 99 ) ) - + 12 AS col1
----
-94148

onlyif mysql # aggregate syntax: 
query II rowsort label-1094
SELECT - COUNT( * ) * + 88 * + 49 * - 89 AS col2, 85 + + 76 * - 63 AS col2
----
383768
-4703

skipif mysql # not compatible
query II rowsort label-1094
SELECT - COUNT ( * ) * + 88 * + 49 * - 89 AS col2, 85 + + 76 * - 63 AS col2
----
383768
-4703

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT + 71 + + CASE - 54 WHEN - 71 THEN NULL ELSE ( + ( + + 18 ) ) + + COUNT( * ) END AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 71 + + CASE - 54 WHEN - 71 THEN NULL ELSE ( + ( + + 18 ) ) + + COUNT ( * ) END AS col2
----
90

query I rowsort
SELECT DISTINCT - ( NULLIF ( + - 5, - - 62 ) ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1097
SELECT DISTINCT + CAST( + 73 AS SIGNED ) + 81
----
154

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT + CAST ( + 73 AS INTEGER ) + 81
----
154

query I rowsort
SELECT - 13 * + 72
----
-936

query I rowsort
SELECT ALL + 44 + - 9 * 30 AS col2
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT DISTINCT ( SUM( DISTINCT + 16 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT ( SUM ( DISTINCT + 16 ) ) AS col0
----
16

query I rowsort
SELECT ALL 1 + + + 9 * - 35 + - 98 AS col0
----
-412

query I rowsort
SELECT - 77 * + COALESCE ( - 2, + 11 ) AS col2
----
154

query I rowsort
SELECT + 83 * - 82
----
-6806

query I rowsort
SELECT DISTINCT ( + 75 ) + + 31 * - 20
----
-545

query I rowsort
SELECT ALL 65 + - ( + + 42 ) + - - ( 99 )
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-1106
SELECT - 36 DIV 36 - - 46
----
45

skipif mysql # not compatible
query I rowsort label-1106
SELECT - 36 / 36 - - 46
----
45

query II rowsort
SELECT DISTINCT + 96 AS col1, - 68 - - - 76
----
96
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT DISTINCT + 79 DIV - 85 * - - 67 DIV - 13 - + 66
----
-66

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT + 79 / - 85 * - - 67 / - 13 - + 66
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1109
SELECT ALL 94 / - NULLIF ( + ( - ( + CAST( - 43 AS SIGNED ) ) ), 83 ) / - + CAST( + SUM( ALL + ( 32 ) ) AS DECIMAL ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL 94 / - NULLIF ( + ( - ( + CAST ( - 43 AS INTEGER ) ) ), 83 ) / - + CAST ( + SUM ( ALL + ( 32 ) ) AS REAL ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1110
SELECT CAST( - 39 AS SIGNED ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1110
SELECT CAST ( - 39 AS INTEGER ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1111
SELECT ALL - NULLIF ( - 58, + NULLIF ( + 61, + 31 ) ) / - - ( - CAST( NULL AS SIGNED ) ) * 21 + - + 70 - SUM( DISTINCT + 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - NULLIF ( - 58, + NULLIF ( + 61, + 31 ) ) / - - ( - CAST ( NULL AS INTEGER ) ) * 21 + - + 70 - SUM ( DISTINCT + 56 ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( 31, + + 55 ) * - - 88
----
2728

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1113
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT CAST ( NULL AS REAL ) / + - 11 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT ALL 58 DIV + - 7
----
-8

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL 58 / + - 7
----
-8

query I rowsort
SELECT + 64 + + + 38
----
102

query I rowsort
SELECT + 81 * + ( 89 )
----
7209

query I rowsort
SELECT - 91 * + 98 + - 92
----
-9010

onlyif mysql # aggregate syntax: 
query II rowsort label-1119
SELECT + 56 * + 3 + - - COUNT( + 43 ) * - + 10 AS col2, 49
----
158
49

skipif mysql # not compatible
query II rowsort label-1119
SELECT + 56 * + 3 + - - COUNT ( + 43 ) * - + 10 AS col2, 49
----
158
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT + MIN( - 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT + MIN ( - 76 ) AS col1
----
-76

query I rowsort
SELECT ALL + CASE 8 WHEN COALESCE ( - - 3, 4 * + 50 ) THEN - 53 + 32 ELSE + - 13 END * 79 AS col1
----
-1027

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1123
SELECT + + ( - 5 ) * - 61 + 34 DIV - + COUNT( * ) + - 97 AS col0
----
174

skipif mysql # not compatible
query I rowsort label-1123
SELECT + + ( - 5 ) * - 61 + 34 / - + COUNT ( * ) + - 97 AS col0
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1124
SELECT + CAST( + + 39 AS SIGNED ) + - + 60 - - + COUNT( * ) + + ( - 50 ) * + - 15 AS col1
----
730

skipif mysql # not compatible
query I rowsort label-1124
SELECT + CAST ( + + 39 AS INTEGER ) + - + 60 - - + COUNT ( * ) + + ( - 50 ) * + - 15 AS col1
----
730

query I rowsort
SELECT DISTINCT 71 * + 63 * + 70 AS col0
----
313110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT ALL + SUM( DISTINCT - NULLIF ( + 30, + CAST( NULL AS SIGNED ) ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL + SUM ( DISTINCT - NULLIF ( + 30, + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-30

query I rowsort
SELECT ALL + COALESCE ( - 40, + 98 + - 61, - 63 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT 51 * + - 58 + + + 90 * + MAX( DISTINCT - 26 ), + 0 * + 90 AS col0
----
-5298
0

skipif mysql # not compatible
query II rowsort label-1128
SELECT 51 * + - 58 + + + 90 * + MAX ( DISTINCT - 26 ), + 0 * + 90 AS col0
----
-5298
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1129
SELECT DISTINCT - 38 AS col1, COALESCE ( 51, CAST( - ( 93 ) AS SIGNED ) ) AS col1
----
-38
51

skipif mysql # not compatible
query II rowsort label-1129
SELECT DISTINCT - 38 AS col1, COALESCE ( 51, CAST ( - ( 93 ) AS INTEGER ) ) AS col1
----
-38
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL - + 69 + + 40 * COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL - + 69 + + 40 * COUNT ( * ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT ALL + + 7 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL + + 7 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 86 * - 74
----
-6364

query I rowsort
SELECT + 95 - + 79 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT DISTINCT + + 57 * + + MIN( + 63 ) AS col1, - ( + 32 )
----
3591
-32

skipif mysql # not compatible
query II rowsort label-1134
SELECT DISTINCT + + 57 * + + MIN ( + 63 ) AS col1, - ( + 32 )
----
3591
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL + + 94 + - 53 * + - COUNT( * ) * 8
----
518

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + + 94 + - 53 * + - COUNT ( * ) * 8
----
518

query I rowsort
SELECT ALL + COALESCE ( - ( + 18 ), - 55, 39 ) + + 27 + - + 48
----
-39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1138
SELECT 66 DIV COUNT( * ) - - + 95 AS col2
----
161

skipif mysql # not compatible
query I rowsort label-1138
SELECT 66 / COUNT ( * ) - - + 95 AS col2
----
161

query I rowsort
SELECT DISTINCT - 3 * - 55
----
165

query I rowsort
SELECT ALL + COALESCE ( 80, + - 45 ) + 88 + - 0 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT 26 - + COUNT( * ) AS col1
----
25

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1142
SELECT 35 - + COUNT( * ) + - 27 + - - 7 + + + 75 + CAST( + 98 AS SIGNED ) DIV 76
----
90

skipif mysql # not compatible
query I rowsort label-1142
SELECT 35 - + COUNT ( * ) + - 27 + - - 7 + + + 75 + CAST ( + 98 AS INTEGER ) / 76
----
90

query II rowsort
SELECT ALL 19 col1, 60 AS col0
----
19
60

query I rowsort
SELECT 9 + - + 71 * 99 + + 57 AS col1
----
-6963

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT COUNT( * ) * - 58 col2
----
-58

skipif mysql # not compatible
query I rowsort label-1145
SELECT COUNT ( * ) * - 58 col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL + NULLIF ( 28, 20 ) + + COUNT( * ) + + 35 col2
----
64

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL + NULLIF ( 28, 20 ) + + COUNT ( * ) + + 35 col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT ALL - 58 DIV ( - - 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL - 58 / ( - - 82 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1148
SELECT COUNT( * ) + - - 90 AS col0, 84 AS col1
----
91
84

skipif mysql # not compatible
query II rowsort label-1148
SELECT COUNT ( * ) + - - 90 AS col0, 84 AS col1
----
91
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL + 13 - - - COUNT( * ) * + 77
----
-64

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL + 13 - - - COUNT ( * ) * + 77
----
-64

query I rowsort
SELECT 44 + + 97
----
141

query I rowsort
SELECT DISTINCT 90 col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT CASE - CAST( + + CASE 82 WHEN CAST( NULL AS SIGNED ) * + - AVG ( - 68 ) * AVG ( DISTINCT - + 84 ) + 43 + 16 + COUNT( * ) * 73 / 6 * + ( + + 90 ) THEN + - 78 * - 36 + + NULLIF ( + 2, - ( + 96 ) ) / - 2 END AS SIGNED ) WHEN + - 3 * + 45 THEN + 44 * 55 END + - COALESCE ( 21 + + ( 25 ), 99 + 77 ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT CASE - CAST ( + + CASE 82 WHEN CAST ( NULL AS INTEGER ) * + - AVG ( - 68 ) * AVG ( DISTINCT - + 84 ) + 43 + 16 + COUNT ( * ) * 73 / 6 * + ( + + 90 ) THEN + - 78 * - 36 + + NULLIF ( + 2, - ( + 96 ) ) / - 2 END AS INTEGER ) WHEN + - 3 * + 45 THEN + 44 * 55 END + - COALESCE ( 21 + + ( 25 ), 99 + 77 ) * 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT ALL + CAST( + 8 AS SIGNED ) * - 76 - + - 21 AS col0
----
-587

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL + CAST ( + 8 AS INTEGER ) * - 76 - + - 21 AS col0
----
-587

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT CASE + 66 WHEN + - 29 THEN NULL WHEN + 63 THEN NULL ELSE + 96 END * + + COUNT( DISTINCT 31 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-1154
SELECT CASE + 66 WHEN + - 29 THEN NULL WHEN + 63 THEN NULL ELSE + 96 END * + + COUNT ( DISTINCT 31 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT + 47 AS col2, - SUM( - 35 )
----
47
35

skipif mysql # not compatible
query II rowsort label-1155
SELECT + 47 AS col2, - SUM ( - 35 )
----
47
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1156
SELECT ALL - COALESCE ( - 45, + 87 - + NULLIF ( + CAST( NULL AS SIGNED ), 74 / 87 * - + MAX( 86 ) ) * - 81 )
----
45

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL - COALESCE ( - 45, + 87 - + NULLIF ( + CAST ( NULL AS INTEGER ), 74 / 87 * - + MAX ( 86 ) ) * - 81 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL 52 * - + 98 * - COUNT( * )
----
5096

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL 52 * - + 98 * - COUNT ( * )
----
5096

query I rowsort
SELECT 50 * - 88 AS col1
----
-4400

query I rowsort
SELECT 86 * + 77
----
6622

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

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

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

query I rowsort
SELECT DISTINCT - - 42
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT DISTINCT 16 DIV - 3 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT 16 / - 3 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL 60 + - COUNT( * ) col2
----
59

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL 60 + - COUNT ( * ) col2
----
59

query I rowsort
SELECT 65 * - + 50
----
-3250

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT + 26 + - + SUM( + 68 )
----
-42

skipif mysql # not compatible
query I rowsort label-1166
SELECT + 26 + - + SUM ( + 68 )
----
-42

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1168
SELECT CASE CASE + COALESCE ( 84, - ( 79 ) * - 91 ) WHEN MIN( + + 68 ) + + 66 THEN NULL WHEN - 89 * + 4 THEN + 21 ELSE NULL END WHEN - 29 + + 92 THEN NULL WHEN CASE + 37 WHEN + + CAST( - - SUM( 21 ) AS DECIMAL ) * - 42 * 34 + - 91 * + 29 * - 83 THEN NULL ELSE - 18 END THEN NULL ELSE + ( 88 ) END DIV 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1168
SELECT CASE CASE + COALESCE ( 84, - ( 79 ) * - 91 ) WHEN MIN ( + + 68 ) + + 66 THEN NULL WHEN - 89 * + 4 THEN + 21 ELSE NULL END WHEN - 29 + + 92 THEN NULL WHEN CASE + 37 WHEN + + CAST ( - - SUM ( 21 ) AS REAL ) * - 42 * 34 + - 91 * + 29 * - 83 THEN NULL ELSE - 18 END THEN NULL ELSE + ( 88 ) END / 66 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT - COALESCE ( COUNT( * ), + 43 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1169
SELECT - COALESCE ( COUNT ( * ), + 43 ) AS col2
----
-1

query II rowsort
SELECT DISTINCT + 89 + + - 56 AS col1, 82
----
33
82

query I rowsort
SELECT ( - - 44 )
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1172
SELECT DISTINCT 31 + 44 DIV + NULLIF ( 99, CAST( - + 45 AS SIGNED ) * AVG ( DISTINCT - 48 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT 31 + 44 / + NULLIF ( 99, CAST ( - + 45 AS INTEGER ) * AVG ( DISTINCT - 48 ) ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT 45 + + COUNT( - 27 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1173
SELECT 45 + + COUNT ( - 27 ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1174
SELECT 28 * ( - ( + 27 ) ) * SUM( + CAST( NULL AS SIGNED ) ) * + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT 28 * ( - ( + 27 ) ) * SUM ( + CAST ( NULL AS INTEGER ) ) * + - 72
----
NULL

query I rowsort
SELECT ALL - 54 * + + 92 AS col2
----
-4968

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT + 99 - + COUNT( DISTINCT + 9 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT + 99 - + COUNT ( DISTINCT + 9 ) col0
----
98

query I rowsort
SELECT ALL + 82 - 46
----
36

query I rowsort
SELECT 54 * + + ( - 70 ) * - + 82 + - + 51 + + 13 + + + 77 * + 80 AS col2
----
316082

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

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

query I rowsort
SELECT 44 * 52
----
2288

onlyif mysql # DIV for integer division: 
query II rowsort label-1181
SELECT 50 DIV + + 38 AS col2, + 43
----
1
43

skipif mysql # not compatible
query II rowsort label-1181
SELECT 50 / + + 38 AS col2, + 43
----
1
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT 86 DIV - + 5
----
-17

skipif mysql # not compatible
query I rowsort label-1182
SELECT 86 / - + 5
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1183
SELECT DISTINCT + 10 DIV + 45 * COUNT( * ) AS col0, 28 + - CAST( 34 AS SIGNED )
----
0
-6

skipif mysql # not compatible
query II rowsort label-1183
SELECT DISTINCT + 10 / + 45 * COUNT ( * ) AS col0, 28 + - CAST ( 34 AS INTEGER )
----
0
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT 60 - - - COUNT( 52 ) col1
----
59

skipif mysql # not compatible
query I rowsort label-1184
SELECT 60 - - - COUNT ( 52 ) col1
----
59

query I rowsort
SELECT DISTINCT - + 9 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT ALL COUNT( * ) * - 88 + MIN( ALL 55 ) + 73, + 12 AS col2
----
40
12

skipif mysql # not compatible
query II rowsort label-1186
SELECT ALL COUNT ( * ) * - 88 + MIN ( ALL 55 ) + 73, + 12 AS col2
----
40
12

query I rowsort
SELECT DISTINCT - - 65 * - 23 * 68
----
-101660

query I rowsort
SELECT + - 81 - + 42 AS col2
----
-123

query I rowsort
SELECT ALL - + NULLIF ( + + 31, + ( + 52 ) ) * 63 + - - 61
----
-1892

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1190
SELECT + ( + 11 ) AS col2, - COALESCE ( + 9, - 58 + 95 * + 80 ) + + CAST( NULL AS SIGNED ) AS col2
----
11
NULL

skipif mysql # not compatible
query II rowsort label-1190
SELECT + ( + 11 ) AS col2, - COALESCE ( + 9, - 58 + 95 * + 80 ) + + CAST ( NULL AS INTEGER ) AS col2
----
11
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1192
SELECT ALL + + 41 * COUNT( DISTINCT + 58 ) + - 17 DIV + 41 + + MIN( DISTINCT - 62 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL + + 41 * COUNT ( DISTINCT + 58 ) + - 17 / + 41 + + MIN ( DISTINCT - 62 ) col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1193
SELECT DISTINCT - ( - CAST( - 47 AS SIGNED ) ) * + 22 + + 71 + + 12
----
-951

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT - ( - CAST ( - 47 AS INTEGER ) ) * + 22 + + 71 + + 12
----
-951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1194
SELECT ALL - + 23 * + 63 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - + 23 * + 63 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT - CASE COALESCE ( 99, NULLIF ( + - 86, + 66 ), 98 ) WHEN 11 THEN NULLIF ( MIN( - + 69 ), + 72 * - + 18 ) + - - 64 ELSE NULL END / + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT - CASE COALESCE ( 99, NULLIF ( + - 86, + 66 ), 98 ) WHEN 11 THEN NULLIF ( MIN ( - + 69 ), + 72 * - + 18 ) + - - 64 ELSE NULL END / + 37
----
NULL

query I rowsort
SELECT ALL 11 * + 99 + ( - 95 ) AS col0
----
994

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT ALL 34 DIV - - NULLIF ( 61, + - 30 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL 34 / - - NULLIF ( 61, + - 30 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1198
SELECT DISTINCT - 32 DIV - 81 - + + COALESCE ( - MAX( - 63 ), + - ( - + 76 ) * - COUNT( * ) * + - CAST( + MAX( ALL + 97 ) AS SIGNED ) * - + 22 - - 81 ) + + 12 * - 63 AS col1
----
-819

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT - 32 / - 81 - + + COALESCE ( - MAX ( - 63 ), + - ( - + 76 ) * - COUNT ( * ) * + - CAST ( + MAX ( ALL + 97 ) AS INTEGER ) * - + 22 - - 81 ) + + 12 * - 63 AS col1
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT + COUNT( * ) * - ( + 95 ) + 51
----
-44

skipif mysql # not compatible
query I rowsort label-1199
SELECT + COUNT ( * ) * - ( + 95 ) + 51
----
-44

query I rowsort
SELECT + + 63 * 3
----
189

query I rowsort
SELECT DISTINCT + ( 73 ) - 92
----
-19

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

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

query I rowsort
SELECT ALL 42 * - 92 AS col2
----
-3864

query I rowsort
SELECT + 48 - NULLIF ( + - 0, - 58 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL 6 * - - 20 * + - COUNT( * ) AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL 6 * - - 20 * + - COUNT ( * ) AS col1
----
-120

query II rowsort
SELECT ALL 80 AS col1, - ( + 69 ) + - ( 46 ) AS col0
----
80
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT + CASE + - COUNT( * ) WHEN AVG ( + 87 ) THEN NULL ELSE + + ( - COUNT( * ) ) END - - + 99 * + 2 + 65 + 13 + - 94
----
181

skipif mysql # not compatible
query I rowsort label-1207
SELECT + CASE + - COUNT ( * ) WHEN AVG ( + 87 ) THEN NULL ELSE + + ( - COUNT ( * ) ) END - - + 99 * + 2 + 65 + 13 + - 94
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1208
SELECT - 71 - + COALESCE ( 97, + COUNT( * ), - + 6 + - - 69 * + - 6 ) DIV + 60
----
-72

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 71 - + COALESCE ( 97, + COUNT ( * ), - + 6 + - - 69 * + - 6 ) / + 60
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-1209
SELECT ALL 38, MIN( + 83 ) * COUNT( * ) + - 38 * + 62 AS col2
----
38
-2273

skipif mysql # not compatible
query II rowsort label-1209
SELECT ALL 38, MIN ( + 83 ) * COUNT ( * ) + - 38 * + 62 AS col2
----
38
-2273

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + COUNT( * ) + 4 * + + 74 + 80 * + + ( + 28 )
----
2537

skipif mysql # not compatible
query I rowsort label-1210
SELECT + COUNT ( * ) + 4 * + + 74 + 80 * + + ( + 28 )
----
2537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1211
SELECT - CAST( NULL AS SIGNED ) + - - 15 + + NULLIF ( + 37, - 66 * + 6 - - COUNT( * ) + 33 ) + CAST( NULL AS SIGNED ) + + CAST( COUNT( * ) AS SIGNED ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT - CAST ( NULL AS INTEGER ) + - - 15 + + NULLIF ( + 37, - 66 * + 6 - - COUNT ( * ) + 33 ) + CAST ( NULL AS INTEGER ) + + CAST ( COUNT ( * ) AS INTEGER ) * - 97
----
NULL

query I rowsort
SELECT + 17 * + + 78 AS col1
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT - COUNT( * ) * + - COALESCE ( - 78, + - 47 )
----
-78

skipif mysql # not compatible
query I rowsort label-1213
SELECT - COUNT ( * ) * + - COALESCE ( - 78, + - 47 )
----
-78

query I rowsort
SELECT ALL - 23 * + 39 AS col2
----
-897

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

skipif mysql # not compatible
query I rowsort label-1215
SELECT + COUNT ( * ) + - 61 AS col1
----
-60

query II rowsort
SELECT ALL 0 col2, 71 * 30
----
0
2130

query I rowsort
SELECT + 11 + 54
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1218
SELECT DISTINCT 34 + + 59 * COUNT( * ) AS col2, - 8
----
93
-8

skipif mysql # not compatible
query II rowsort label-1218
SELECT DISTINCT 34 + + 59 * COUNT ( * ) AS col2, - 8
----
93
-8

query I rowsort
SELECT ALL 93 + - ( - ( - 19 ) ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT - MAX( DISTINCT + - 24 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-1220
SELECT - MAX ( DISTINCT + - 24 ) col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1221
SELECT ALL 33 + + 87 DIV + COUNT( * ), + ( + - 20 ) AS col1
----
120
-20

skipif mysql # not compatible
query II rowsort label-1221
SELECT ALL 33 + + 87 / + COUNT ( * ), + ( + - 20 ) AS col1
----
120
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT - 84 * 58 + CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN + + CAST( NULL AS SIGNED ) + COUNT( * ) ELSE 47 * + COUNT( * ) END + - 78 * - 75 - + - 57 + - 60 + + 93 AS col2
----
1115

skipif mysql # not compatible
query I rowsort label-1222
SELECT - 84 * 58 + CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN + + CAST ( NULL AS INTEGER ) + COUNT ( * ) ELSE 47 * + COUNT ( * ) END + - 78 * - 75 - + - 57 + - 60 + + 93 AS col2
----
1115

query II rowsort
SELECT ALL + + 55, + 99 AS col2
----
55
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1224
SELECT + + 3, COUNT( * ) + - + 69 * 17 AS col2
----
3
-1172

skipif mysql # not compatible
query II rowsort label-1224
SELECT + + 3, COUNT ( * ) + - + 69 * 17 AS col2
----
3
-1172

query I rowsort
SELECT + - 41 * 74 * ( - 24 ) * ( - + 58 )
----
-4223328

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT ALL - + 98 DIV - 73 + 99
----
100

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL - + 98 / - 73 + 99
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT - 52 * ( + 2 ) - - 81 * + SUM( + 24 ) AS col0
----
1840

skipif mysql # not compatible
query I rowsort label-1227
SELECT - 52 * ( + 2 ) - - 81 * + SUM ( + 24 ) AS col0
----
1840

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

query I rowsort
SELECT - - 8 * 15 + - - 82 - 26 * - - 12 AS col2
----
-110

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1231
SELECT - COUNT( * ) + + + ( + 95 ) DIV COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1231
SELECT - COUNT ( * ) + + + ( + 95 ) / COUNT ( * ) AS col1
----
94

query I rowsort
SELECT + CASE + - 48 WHEN + ( + NULLIF ( + 7, + - 15 ) ) THEN + 28 ELSE - 77 END
----
-77

query I rowsort
SELECT ALL + ( 82 ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1234
SELECT + - 59 DIV - NULLIF ( + 21, + AVG ( ALL - + 78 ) * - - CAST( NULL AS SIGNED ) ) + - 47 col2
----
-45

skipif mysql # not compatible
query I rowsort label-1234
SELECT + - 59 / - NULLIF ( + 21, + AVG ( ALL - + 78 ) * - - CAST ( NULL AS INTEGER ) ) + - 47 col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT - 68 * COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-1235
SELECT - 68 * COUNT ( * ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT ALL + ( NULLIF ( + 3, - 49 * + MIN( - 12 ) * - 11 + - - 41 + - 8 * - + ( + COUNT( * ) ) ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL + ( NULLIF ( + 3, - 49 * + MIN ( - 12 ) * - 11 + - - 41 + - 8 * - + ( + COUNT ( * ) ) ) ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT - 49 + + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-1237
SELECT - 49 + + COUNT ( * ) AS col0
----
-48

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1239
SELECT + COUNT( * ) + COUNT( * ) * - + 63 / + CAST( NULL AS DECIMAL ) + - + 63 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1239
SELECT + COUNT ( * ) + COUNT ( * ) * - + 63 / + CAST ( NULL AS REAL ) + - + 63 col1
----
NULL

query I rowsort
SELECT - COALESCE ( + 57, + 41 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT - MAX( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-1241
SELECT - MAX ( 93 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1242
SELECT + CASE - 35 WHEN CAST( NULL AS DECIMAL ) + 82 THEN + 63 WHEN + 96 * 10 THEN - 88 - + - 42 END / - AVG ( + 19 ) * - + 59 + MIN( 61 ) / - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT + CASE - 35 WHEN CAST ( NULL AS REAL ) + 82 THEN + 63 WHEN + 96 * 10 THEN - 88 - + - 42 END / - AVG ( + 19 ) * - + 59 + MIN ( 61 ) / - 82 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1243
SELECT ALL CAST( + 83 AS SIGNED ) DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL CAST ( + 83 AS INTEGER ) / - 58
----
-1

query I rowsort
SELECT + CASE + - 88 WHEN + + 61 / - 87 - - - ( - + AVG ( ALL 1 ) ) + ( 39 ) * + 0 THEN 54 END + - + ( - - 29 ) * + 58 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1245
SELECT - COALESCE ( - - COALESCE ( 66, - 37 DIV - SUM( ALL + ( - + 97 ) ) + - ( 90 ) * + 83 ), + - 17 DIV + NULLIF ( + + 53, + - 98 DIV - + 32 * - + 77 * - ( + + COUNT( * ) ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1245
SELECT - COALESCE ( - - COALESCE ( 66, - 37 / - SUM ( ALL + ( - + 97 ) ) + - ( 90 ) * + 83 ), + - 17 / + NULLIF ( + + 53, + - 98 / - + 32 * - + 77 * - ( + + COUNT ( * ) ) ) )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1246
SELECT + CAST( NULL AS SIGNED ) + ( + 36 ) + 89 / - 87 + 16 * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT + CAST ( NULL AS INTEGER ) + ( + 36 ) + 89 / - 87 + 16 * + 29 AS col1
----
NULL

query I rowsort
SELECT ALL 29 + 29 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL + COUNT( * ) * - SUM( DISTINCT - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + COUNT ( * ) * - SUM ( DISTINCT - 46 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1249
SELECT ALL 93 + + 3 * CASE - + 13 WHEN CAST( ( + ( - - 93 ) ) AS SIGNED ) * - 5 * + CAST( - CASE 0 WHEN - 40 * 43 + 16 - + 3 + + 79 * + + 93 THEN - + SUM( - 20 ) * + 29 WHEN + CAST( + - 15 AS SIGNED ) + CASE + + CAST( NULL AS SIGNED ) WHEN 87 THEN NULL WHEN 43 THEN NULL ELSE + - CAST( 6 AS SIGNED ) END THEN NULL END AS SIGNED ) - - 43 THEN 43 * COUNT( 82 ) - - 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL 93 + + 3 * CASE - + 13 WHEN CAST ( ( + ( - - 93 ) ) AS INTEGER ) * - 5 * + CAST ( - CASE 0 WHEN - 40 * 43 + 16 - + 3 + + 79 * + + 93 THEN - + SUM ( - 20 ) * + 29 WHEN + CAST ( + - 15 AS INTEGER ) + CASE + + CAST ( NULL AS INTEGER ) WHEN 87 THEN NULL WHEN 43 THEN NULL ELSE + - CAST ( 6 AS INTEGER ) END THEN NULL END AS INTEGER ) - - 43 THEN 43 * COUNT ( 82 ) - - 69 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT DISTINCT 52 * SUM( ALL 4 )
----
208

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT 52 * SUM ( ALL 4 )
----
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1251
SELECT - CAST( NULL AS SIGNED ) * 1, - 46 + + + 0 * + COUNT( * ) AS col1
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-1251
SELECT - CAST ( NULL AS INTEGER ) * 1, - 46 + + + 0 * + COUNT ( * ) AS col1
----
NULL
-46

query I rowsort
SELECT 30 * + - 88
----
-2640

query I rowsort
SELECT ALL 53 + 59 AS col2
----
112

query I rowsort
SELECT ALL - + 6 AS col2
----
-6

query I rowsort
SELECT DISTINCT - 56 + - + 21 + - 92 col0
----
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1256
SELECT DISTINCT 37 * - COALESCE ( 2, + 95 * + 50, - 84 - - - COALESCE ( 94, - - 1 + - - 22 ) * - CAST( NULL AS SIGNED ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT 37 * - COALESCE ( 2, + 95 * + 50, - 84 - - - COALESCE ( 94, - - 1 + - - 22 ) * - CAST ( NULL AS INTEGER ) )
----
-74

query I rowsort
SELECT + 86 * + 50 * 95 * 75
----
30637500

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL CASE - 47 WHEN - AVG ( + 86 ) THEN NULL WHEN 98 THEN NULL WHEN + COUNT( * ) THEN 63 ELSE NULL END * + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL CASE - 47 WHEN - AVG ( + 86 ) THEN NULL WHEN 98 THEN NULL WHEN + COUNT ( * ) THEN 63 ELSE NULL END * + 72 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT - 89 * + 67 + - 37 + - - 61 + - 76 * + 26 * CAST( + NULLIF ( - + 71, - CAST( NULL AS SIGNED ) ) AS SIGNED ) - - 13 AS col0
----
134370

skipif mysql # not compatible
query I rowsort label-1259
SELECT - 89 * + 67 + - 37 + - - 61 + - 76 * + 26 * CAST ( + NULLIF ( - + 71, - CAST ( NULL AS INTEGER ) ) AS INTEGER ) - - 13 AS col0
----
134370

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

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

query II rowsort
SELECT 58 * - + 94 AS col2, + 4
----
-5452
4

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

query II rowsort
SELECT DISTINCT - 70, 19 + - 43 AS col0
----
-70
-24

query I rowsort
SELECT 54 * + 31
----
1674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1265
SELECT - 16 * + 7 + + + COUNT( * ) - 42 + NULLIF ( 51, - 24 - + 33 / + 41 + COUNT( * ) ) + - 66 + 36 * + - COALESCE ( 34, CAST( + 28 AS SIGNED ) ) * + COUNT( * ) - - - NULLIF ( - 1, + 17 * - 96 - - + 43 + + COUNT( * ) )
----
-1391

skipif mysql # not compatible
query I rowsort label-1265
SELECT - 16 * + 7 + + + COUNT ( * ) - 42 + NULLIF ( 51, - 24 - + 33 / + 41 + COUNT ( * ) ) + - 66 + 36 * + - COALESCE ( 34, CAST ( + 28 AS INTEGER ) ) * + COUNT ( * ) - - - NULLIF ( - 1, + 17 * - 96 - - + 43 + + COUNT ( * ) )
----
-1391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1266
SELECT DISTINCT - CASE + 61 WHEN - 98 + - 48 + ( 36 ) + - ( + 19 ) / + + 63 + + CAST( - + 52 AS SIGNED ) + + 54 - - 39 THEN NULL WHEN + MAX( DISTINCT 58 ) THEN NULL WHEN - + 90 * - + 69 THEN 17 END AS col2, 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-1266
SELECT DISTINCT - CASE + 61 WHEN - 98 + - 48 + ( 36 ) + - ( + 19 ) / + + 63 + + CAST ( - + 52 AS INTEGER ) + + 54 - - 39 THEN NULL WHEN + MAX ( DISTINCT 58 ) THEN NULL WHEN - + 90 * - + 69 THEN 17 END AS col2, 48
----
NULL
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1267
SELECT ALL - 99 AS col0, - COUNT( * ) * + - 5
----
-99
5

skipif mysql # not compatible
query II rowsort label-1267
SELECT ALL - 99 AS col0, - COUNT ( * ) * + - 5
----
-99
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT 34 + ( 47 ) * + COUNT( * ) + - - 72
----
153

skipif mysql # not compatible
query I rowsort label-1268
SELECT 34 + ( 47 ) * + COUNT ( * ) + - - 72
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-1269
SELECT 44 * + 74 * COALESCE ( - 10, + 41 DIV + 78 + + 23 )
----
-32560

skipif mysql # not compatible
query I rowsort label-1269
SELECT 44 * + 74 * COALESCE ( - 10, + 41 / + 78 + + 23 )
----
-32560

query I rowsort
SELECT ALL + 23 + - 53
----
-30

query I rowsort
SELECT ALL + 33 * - 75
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL COUNT( * ) + 2 * - - 44 + ( + + 33 ) AS col0
----
122

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL COUNT ( * ) + 2 * - - 44 + ( + + 33 ) AS col0
----
122

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT 79 + + 38 / CASE - 23 WHEN + + 87 * + - ( - 99 ) THEN - + COUNT( * ) * + COUNT( * ) * 75 * - 55 + + 7 WHEN - 33 * + 39 - - 29 * + 53 * AVG ( DISTINCT - 26 ) THEN 37 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1274
SELECT 79 + + 38 / CASE - 23 WHEN + + 87 * + - ( - 99 ) THEN - + COUNT ( * ) * + COUNT ( * ) * 75 * - 55 + + 7 WHEN - 33 * + 39 - - 29 * + 53 * AVG ( DISTINCT - 26 ) THEN 37 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1275
SELECT ALL - 60 + + 11 + + SUM( + 88 ) DIV - - ( 98 ) + + 21
----
-28

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - 60 + + 11 + + SUM ( + 88 ) / - - ( 98 ) + + 21
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1276
SELECT 59 + + 34 * CAST( + 50 AS SIGNED ) * 15, + 63 + 12 AS col1
----
25559
75

skipif mysql # not compatible
query II rowsort label-1276
SELECT 59 + + 34 * CAST ( + 50 AS INTEGER ) * 15, + 63 + 12 AS col1
----
25559
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1277
SELECT ALL - 88 DIV + 25
----
-3

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL - 88 / + 25
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1278
SELECT COUNT( * ) - + + NULLIF ( + 5, - CAST( - 10 AS DECIMAL ) ) * 73 col0
----
-364

skipif mysql # not compatible
query I rowsort label-1278
SELECT COUNT ( * ) - + + NULLIF ( + 5, - CAST ( - 10 AS REAL ) ) * 73 col0
----
-364

query I rowsort
SELECT - + 40 col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1280
SELECT 55 + - MAX( - 63 ) DIV - - 5 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-1280
SELECT 55 + - MAX ( - 63 ) / - - 5 AS col0
----
67

query II rowsort
SELECT ALL + 88 + - 32 + + 63, 38 AS col2
----
119
38

query I rowsort
SELECT CASE + 0 WHEN + - 31 THEN NULL ELSE + 44 * + 59 END * - + 38
----
-98648

query I rowsort
SELECT + ( 78 ) + + 35 + + 92 * - CASE + 91 WHEN - - 88 THEN 1 / - 99 WHEN + 56 THEN NULL ELSE NULL END / + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT ALL - - 16 - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL - - 16 - COUNT ( * )
----
15

query I rowsort
SELECT 24 + + 20
----
44

query I rowsort
SELECT ALL - 52 - 32
----
-84

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

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL CAST ( NULL AS INTEGER ) * 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1288
SELECT 56 * SUM( 46 ) + + - 44 + + + 94, + 51 * - 42 + 23 * 29 + - ( - - SUM( ALL - - 6 ) ) AS col0
----
2626
-1481

skipif mysql # not compatible
query II rowsort label-1288
SELECT 56 * SUM ( 46 ) + + - 44 + + + 94, + 51 * - 42 + 23 * 29 + - ( - - SUM ( ALL - - 6 ) ) AS col0
----
2626
-1481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1289
SELECT DISTINCT - CASE NULLIF ( + + 29, 92 ) WHEN - 22 THEN NULL WHEN - 34 + + 12 * ( CAST( - 69 AS SIGNED ) ) THEN + 78 WHEN + - AVG ( - + CAST( NULL AS SIGNED ) ) + - CASE - 44 WHEN 27 THEN - 79 + 11 ELSE NULL END / + ( - 47 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT - CASE NULLIF ( + + 29, 92 ) WHEN - 22 THEN NULL WHEN - 34 + + 12 * ( CAST ( - 69 AS INTEGER ) ) THEN + 78 WHEN + - AVG ( - + CAST ( NULL AS INTEGER ) ) + - CASE - 44 WHEN 27 THEN - 79 + 11 ELSE NULL END / + ( - 47 ) THEN NULL END AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT - + 62 AS col1
----
-62

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

query I rowsort
SELECT ALL - 20 * 61
----
-1220

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT COUNT( * ) * + CASE + 11 WHEN 53 * - 53 THEN + 26 END + + 4 + 29 * CASE - 94 WHEN 30 THEN NULL WHEN 30 + ( - 20 ) + - 71 THEN ( 19 ) END / - - 32 * - ( - - 8 ) * 29 - - 88 + - + COALESCE ( + - 53, 16 ) + + + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT COUNT ( * ) * + CASE + 11 WHEN 53 * - 53 THEN + 26 END + + 4 + 29 * CASE - 94 WHEN 30 THEN NULL WHEN 30 + ( - 20 ) + - 71 THEN ( 19 ) END / - - 32 * - ( - - 8 ) * 29 - - 88 + - + COALESCE ( + - 53, 16 ) + + + 18 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1295
SELECT ALL - + 33 AS col2, - 68 DIV 84 * - - 56 col2
----
-33
0

skipif mysql # not compatible
query II rowsort label-1295
SELECT ALL - + 33 AS col2, - 68 / 84 * - - 56 col2
----
-33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT - COUNT( * ) * + COUNT( * ) + + 39 + + NULLIF ( - 37, - - 54 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1296
SELECT - COUNT ( * ) * + COUNT ( * ) + + 39 + + NULLIF ( - 37, - - 54 ) * + COUNT ( * )
----
1

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

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

query I rowsort
SELECT ALL 66 * + ( ( 34 ) )
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT - 12 * + - NULLIF ( + 44, - + 78 * + - COUNT( * ) + + + COUNT( ALL - ( - 97 ) ) + - + 78 - 34 ) - - - 63 AS col2
----
465

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 12 * + - NULLIF ( + 44, - + 78 * + - COUNT ( * ) + + + COUNT ( ALL - ( - 97 ) ) + - + 78 - 34 ) - - - 63 AS col2
----
465

onlyif mysql # aggregate syntax: 
query II rowsort label-1300
SELECT ALL - 99 AS col2, - COUNT( * ) * + - 74
----
-99
74

skipif mysql # not compatible
query II rowsort label-1300
SELECT ALL - 99 AS col2, - COUNT ( * ) * + - 74
----
-99
74

query I rowsort
SELECT 70 + 63 * - ( 86 ) * - 61
----
330568

query I rowsort
SELECT DISTINCT 77 + + 30 * - 94 AS col0
----
-2743

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT 44 DIV - 34
----
-1

skipif mysql # not compatible
query I rowsort label-1303
SELECT 44 / - 34
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT COUNT( * ) * + 56 * + - MIN( ALL - ( - 39 ) ) * + 53 + - 24
----
-115776

skipif mysql # not compatible
query I rowsort label-1304
SELECT COUNT ( * ) * + 56 * + - MIN ( ALL - ( - 39 ) ) * + 53 + - 24
----
-115776

query I rowsort
SELECT ALL - 91 + - 82 * - 36 AS col1
----
2861

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

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

query I rowsort
SELECT 89 * 71
----
6319

query I rowsort
SELECT DISTINCT 83 + 75
----
158

query II rowsort
SELECT + COALESCE ( + 61, 37 * + 35 - + 52 * 26 ), + 89 - - 28 * 7 AS col0
----
61
285

query II rowsort
SELECT ALL - 64 + - 47 * + 46 * 77 AS col1, - 38 AS col2
----
-166538
-38

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

skipif mysql # not compatible
query I rowsort label-1311
SELECT 69 + 22 + - CAST ( NULL AS INTEGER ) - - 72 AS col2
----
NULL

query I rowsort
SELECT ALL 18 + + - 88 AS col1
----
-70

query II rowsort
SELECT + 87 col0, 94
----
87
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1314
SELECT ALL + 92 + - + 43 AS col0, CASE WHEN NOT - 74 IS NOT NULL THEN NULL ELSE 66 - + + 58 END + + - 4 DIV + - 44
----
49
8

skipif mysql # not compatible
query II rowsort label-1314
SELECT ALL + 92 + - + 43 AS col0, CASE WHEN NOT - 74 IS NOT NULL THEN NULL ELSE 66 - + + 58 END + + - 4 / + - 44
----
49
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1315
SELECT 21, ( ( + - 38 ) ) + - COALESCE ( + 67, - 61 * 10, 20 DIV + 57 ) DIV + COUNT( * ) AS col1
----
21
-105

skipif mysql # not compatible
query II rowsort label-1315
SELECT 21, ( ( + - 38 ) ) + - COALESCE ( + 67, - 61 * 10, 20 / + 57 ) / + COUNT ( * ) AS col1
----
21
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1316
SELECT ALL COUNT( * ), COUNT( * ) DIV - COUNT( * ) - - - COUNT( * ) AS col0
----
1
-2

skipif mysql # not compatible
query II rowsort label-1316
SELECT ALL COUNT ( * ), COUNT ( * ) / - COUNT ( * ) - - - COUNT ( * ) AS col0
----
1
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1317
SELECT 91, - 98 * + COUNT( * ) AS col2
----
91
-98

skipif mysql # not compatible
query II rowsort label-1317
SELECT 91, - 98 * + COUNT ( * ) AS col2
----
91
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT - CASE ( - 88 ) WHEN - + COUNT( * ) THEN MAX( DISTINCT - 99 ) ELSE + 68 END
----
-68

skipif mysql # not compatible
query I rowsort label-1319
SELECT - CASE ( - 88 ) WHEN - + COUNT ( * ) THEN MAX ( DISTINCT - 99 ) ELSE + 68 END
----
-68

query I rowsort
SELECT - 34 + - 12 + - - 7 * 27 * 97 col2
----
18287

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL + 29 - - SUM( ALL + 25 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + 29 - - SUM ( ALL + 25 ) AS col0
----
54

query I rowsort
SELECT DISTINCT - CASE - - ( + 31 ) WHEN - 88 THEN - - 14 + + 68 WHEN - - 23 THEN NULL WHEN 70 * - 99 + - 5 THEN + 15 END * - + 74 / - - 76 AS col1
----
NULL

query II rowsort
SELECT - 52 col2, + 47
----
-52
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT ALL - - MIN( DISTINCT - 56 ) * + CAST( 10 AS SIGNED ) AS col2
----
-560

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - - MIN ( DISTINCT - 56 ) * + CAST ( 10 AS INTEGER ) AS col2
----
-560

query I rowsort
SELECT DISTINCT + - ( - 36 ) - - 73 AS col2
----
109

query I rowsort
SELECT ( - - 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1327
SELECT - - 93, 34 * + + CAST( + ( + 21 ) AS SIGNED ) AS col2
----
93
714

skipif mysql # not compatible
query II rowsort label-1327
SELECT - - 93, 34 * + + CAST ( + ( + 21 ) AS INTEGER ) AS col2
----
93
714

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT ALL 71 - - 80 - + 21 DIV - + 49 * + + 32 * + 9
----
151

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL 71 - - 80 - + 21 / - + 49 * + + 32 * + 9
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1329
SELECT - 41 * + - CASE + - COUNT( * ) WHEN + 36 * + 22 * - ( + 17 ) + - AVG ( - 87 ) * - ( - - 12 ) - - NULLIF ( + 64, 47 ) / - 74 * 19 * + 30 THEN - + 82 + ( + 33 ) + CAST( NULL AS SIGNED ) * ( - - CASE + COUNT( * ) WHEN - 15 THEN - + 60 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1329
SELECT - 41 * + - CASE + - COUNT ( * ) WHEN + 36 * + 22 * - ( + 17 ) + - AVG ( - 87 ) * - ( - - 12 ) - - NULLIF ( + 64, 47 ) / - 74 * 19 * + 30 THEN - + 82 + ( + 33 ) + CAST ( NULL AS INTEGER ) * ( - - CASE + COUNT ( * ) WHEN - 15 THEN - + 60 END ) END
----
NULL

query I rowsort
SELECT - 85 - - + 39
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT - - MIN( DISTINCT - NULLIF ( 88, + 82 + + + 45 ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-1331
SELECT - - MIN ( DISTINCT - NULLIF ( 88, + 82 + + + 45 ) ) AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT ALL - - 14 DIV 89 + + 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL - - 14 / 89 + + 8 AS col2
----
8

query I rowsort
SELECT - 98 + - 18
----
-116

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1335
SELECT ALL - 15 DIV + ( 80 )
----
0

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL - 15 / + ( 80 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT - - 10 DIV - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1336
SELECT - - 10 / - 18 AS col1
----
0

query I rowsort
SELECT - + 35 * - + 36 * 89
----
112140

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1339
SELECT ALL - 71 DIV COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL - 71 / COUNT ( * )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1340
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) * - 89 + - - 69 + 97 + + 58 - + 60 * - 8
----
793

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) * - 89 + - - 69 + 97 + + 58 - + 60 * - 8
----
793

query II rowsort
SELECT ALL + - 18 AS col2, - 99
----
-18
-99

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

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

query II rowsort
SELECT - 48 + + 64, 5 AS col0
----
16
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1344
SELECT - 66 * + COALESCE ( + CAST( - SUM( DISTINCT - 29 ) AS SIGNED ), + - 10 DIV 45 + + - 5 ) AS col0
----
-1914

skipif mysql # not compatible
query I rowsort label-1344
SELECT - 66 * + COALESCE ( + CAST ( - SUM ( DISTINCT - 29 ) AS INTEGER ), + - 10 / 45 + + - 5 ) AS col0
----
-1914

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

skipif mysql # not compatible
query II rowsort label-1345
SELECT + 72 * + - COUNT ( * ) AS col0, ( 55 )
----
-72
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT DISTINCT 2 * - 88 * - 1 + + + 15 + - + 67 + + 81 * + - 54 * + 55 * + - COUNT( * ) + + COALESCE ( - 48, + 87 * 50, + - 95 * + + 74 )
----
240646

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT 2 * - 88 * - 1 + + + 15 + - + 67 + + 81 * + - 54 * + 55 * + - COUNT ( * ) + + COALESCE ( - 48, + 87 * 50, + - 95 * + + 74 )
----
240646

query II rowsort
SELECT ( - + 18 ) col1, - 76
----
-18
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT ALL 76 * COALESCE ( + 92, CAST( 42 AS SIGNED ) ) + + - 80 + + 4 AS col2
----
6916

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL 76 * COALESCE ( + 92, CAST ( 42 AS INTEGER ) ) + + - 80 + + 4 AS col2
----
6916

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL COUNT( * ) * - 72 + + 97
----
25

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL COUNT ( * ) * - 72 + + 97
----
25

query I rowsort
SELECT + 36 * - 34
----
-1224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1351
SELECT + CASE - CAST( + + 21 AS SIGNED ) WHEN 28 + ( + CASE + + 4 WHEN - CAST( NULL AS SIGNED ) THEN + 25 WHEN - 77 + - AVG ( 34 ) THEN - 15 ELSE - + 86 - - 45 END ) THEN + CASE - 76 WHEN + 45 THEN NULL WHEN - COUNT( * ) THEN - ( - + 35 ) + 28 END WHEN - - COUNT( * ) * + 93 + + 18 + 24 * - 55 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1351
SELECT + CASE - CAST ( + + 21 AS INTEGER ) WHEN 28 + ( + CASE + + 4 WHEN - CAST ( NULL AS INTEGER ) THEN + 25 WHEN - 77 + - AVG ( 34 ) THEN - 15 ELSE - + 86 - - 45 END ) THEN + CASE - 76 WHEN + 45 THEN NULL WHEN - COUNT ( * ) THEN - ( - + 35 ) + 28 END WHEN - - COUNT ( * ) * + 93 + + 18 + 24 * - 55 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 45 * 46 + ( + 40 ) col2
----
2110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1353
SELECT + CAST( - + 51 AS SIGNED ) * 18 + 3 + + 47 + + + 9 + - ( - 13 ) + + - COUNT( * ) * 82 DIV + 81
----
-847

skipif mysql # not compatible
query I rowsort label-1353
SELECT + CAST ( - + 51 AS INTEGER ) * 18 + 3 + + 47 + + + 9 + - ( - 13 ) + + - COUNT ( * ) * 82 / + 81
----
-847

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1354
SELECT + MAX( ALL CAST( NULL AS DECIMAL ) ) + - - 84 + + - 97 - + 86 + + + 20 / + 78 * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT + MAX ( ALL CAST ( NULL AS REAL ) ) + - - 84 + + - 97 - + 86 + + + 20 / + 78 * - 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT - 58 DIV + 51 col1
----
-1

skipif mysql # not compatible
query I rowsort label-1355
SELECT - 58 / + 51 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL COUNT( * ) * 91 - - 18 * + 59 AS col1
----
1153

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL COUNT ( * ) * 91 - - 18 * + 59 AS col1
----
1153

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1358
SELECT + CAST( NULL AS SIGNED ) - - AVG ( DISTINCT + 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT + CAST ( NULL AS INTEGER ) - - AVG ( DISTINCT + 27 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT + NULLIF ( - - 97, - - COALESCE ( + 41, + COUNT( * ) ) + + COUNT( * ) ) * 61
----
5917

skipif mysql # not compatible
query I rowsort label-1359
SELECT + NULLIF ( - - 97, - - COALESCE ( + 41, + COUNT ( * ) ) + + COUNT ( * ) ) * 61
----
5917

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1360
SELECT ALL CASE - - CAST( NULL AS DECIMAL ) WHEN 66 - + 40 + - 79 * 41 THEN + 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL CASE - - CAST ( NULL AS REAL ) WHEN 66 - + 40 + - 79 * 41 THEN + 4 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1361
SELECT + COALESCE ( + 42, 84, 24 / + COUNT( * ) / + COUNT( * ) + + 21 + - + COUNT( * ) + - 29 + NULLIF ( + CASE 74 WHEN - - 21 THEN 31 END, 98 ) ) + - COUNT( * ) + - 51 * + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT + COALESCE ( + 42, 84, 24 / + COUNT ( * ) / + COUNT ( * ) + + 21 + - + COUNT ( * ) + - 29 + NULLIF ( + CASE 74 WHEN - - 21 THEN 31 END, 98 ) ) + - COUNT ( * ) + - 51 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT - 45 * + 84 * COUNT( * ) * 92 - 5 + + 94
----
-347671

skipif mysql # not compatible
query I rowsort label-1362
SELECT - 45 * + 84 * COUNT ( * ) * 92 - 5 + + 94
----
-347671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1363
SELECT ALL COALESCE ( - - 15, + COUNT( * ) DIV 64 + - ( - CAST( + 14 AS SIGNED ) ) * 7, - 94 )
----
15

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL COALESCE ( - - 15, + COUNT ( * ) / 64 + - ( - CAST ( + 14 AS INTEGER ) ) * 7, - 94 )
----
15

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

query II rowsort
SELECT ( - 90 ) AS col1, - 75
----
-90
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - - 25 - 35 + 28 * - 69 * COUNT( * ) * - COUNT( * ) AS col0
----
1922

skipif mysql # not compatible
query I rowsort label-1366
SELECT - - 25 - 35 + 28 * - 69 * COUNT ( * ) * - COUNT ( * ) AS col0
----
1922

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ALL - 86 * + COUNT( * ) + - 88
----
-174

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - 86 * + COUNT ( * ) + - 88
----
-174

query I rowsort
SELECT - - 75 + 46 * - + 94 AS col2
----
-4249

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT + MIN( 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT + MIN ( 33 ) AS col1
----
33

query I rowsort
SELECT - - NULLIF ( - 25, 76 )
----
-25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 17 + - - 20 + - + NULLIF ( 78, + MIN( + + 46 ) + 4 + + 0 * - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 17 + - - 20 + - + NULLIF ( 78, + MIN ( + + 46 ) + 4 + + 0 * - 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT - 32 + + SUM( + + 45 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1374
SELECT - 32 + + SUM ( + + 45 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL + SUM( - + 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL + SUM ( - + 74 ) AS col0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT - + 98 DIV + 41 + 62
----
60

skipif mysql # not compatible
query I rowsort label-1376
SELECT - + 98 / + 41 + 62
----
60

query I rowsort
SELECT DISTINCT - + 45 + + 36 + - 71 AS col0
----
-80

query II rowsort
SELECT ALL + - 94 + - 19 AS col0, 38 AS col1
----
-113
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1379
SELECT + MAX( ALL - - 9 ) AS col1, 31 + + 26
----
9
57

skipif mysql # not compatible
query II rowsort label-1379
SELECT + MAX ( ALL - - 9 ) AS col1, 31 + + 26
----
9
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT DISTINCT + 82 DIV + 10 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT + 82 / + 10 AS col0
----
8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT ALL 10 DIV + COUNT( * ) + + 86
----
96

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL 10 / + COUNT ( * ) + + 86
----
96

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

skipif mysql # not compatible
query II rowsort label-1383
SELECT + COUNT ( * ) col0, 76 col2
----
1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL + 74 * MAX( ALL 88 ) AS col1
----
6512

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL + 74 * MAX ( ALL 88 ) AS col1
----
6512

query I rowsort
SELECT DISTINCT - 19 * 86
----
-1634

query I rowsort
SELECT ALL + 65 * + - 81 AS col2
----
-5265

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

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

query II rowsort
SELECT ALL - 43, 37 * - 10 - 92 AS col2
----
-43
-462

query I rowsort
SELECT 2 * - 37 + - NULLIF ( 23, 30 ) + 72 + + 5 * + 49 + + 11
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1390
SELECT DISTINCT - 56 AS col2, CASE + 45 WHEN + - 21 THEN + COUNT( * ) * 28 + + - COUNT( * ) - + + ( - CAST( + - 10 AS SIGNED ) ) WHEN + 60 / COUNT( * ) + MAX( 95 ) THEN + COUNT( * ) ELSE + 59 END AS col1
----
-56
59

skipif mysql # not compatible
query II rowsort label-1390
SELECT DISTINCT - 56 AS col2, CASE + 45 WHEN + - 21 THEN + COUNT ( * ) * 28 + + - COUNT ( * ) - + + ( - CAST ( + - 10 AS INTEGER ) ) WHEN + 60 / COUNT ( * ) + MAX ( 95 ) THEN + COUNT ( * ) ELSE + 59 END AS col1
----
-56
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1391
SELECT ( ( + - CAST( + + 70 AS SIGNED ) ) ) + - + 46 * + - 60 col2, - 10 DIV - COUNT( * )
----
2690
10

skipif mysql # not compatible
query II rowsort label-1391
SELECT ( ( + - CAST ( + + 70 AS INTEGER ) ) ) + - + 46 * + - 60 col2, - 10 / - COUNT ( * )
----
2690
10

query I rowsort
SELECT DISTINCT + 29 - - + CASE + - 36 WHEN + - 32 / 34 THEN - 91 END - - 69 * - 92 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT COUNT ( * ) - + - 28 AS col1
----
29

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

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

query II rowsort
SELECT ALL - 74 AS col1, NULLIF ( - ( + - 4 ), + + 7 )
----
-74
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT 33 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT 33 / 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1397
SELECT + 70 AS col0, ( + - SUM( - 73 ) ) + - - 88 + + NULLIF ( + 81, 68 ) DIV - - 43 - + - COUNT( * ) * 82
----
70
244

skipif mysql # not compatible
query II rowsort label-1397
SELECT + 70 AS col0, ( + - SUM ( - 73 ) ) + - - 88 + + NULLIF ( + 81, 68 ) / - - 43 - + - COUNT ( * ) * 82
----
70
244

query I rowsort
SELECT 99 + + COALESCE ( - 46, + - 30, - 67 ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1399
SELECT - COUNT( * ) col0, - CAST( + CASE + ( - 95 ) WHEN + 9 THEN - - 60 END AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1399
SELECT - COUNT ( * ) col0, - CAST ( + CASE + ( - 95 ) WHEN + 9 THEN - - 60 END AS INTEGER ) AS col2
----
-1
NULL

query I rowsort
SELECT 2 * - - 62 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT ALL COUNT( * ) + - 68 + 77 col2
----
10

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL COUNT ( * ) + - 68 + 77 col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT DISTINCT + - 72 DIV 77 + 83 + + + 86 * + 92 AS col0
----
7995

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT + - 72 / 77 + 83 + + + 86 * + 92 AS col0
----
7995

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

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

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

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

query I rowsort
SELECT + 30 * + + 11 + 4
----
334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1406
SELECT ALL + 63 + - MIN( ALL - + CAST( - 67 AS SIGNED ) ) AS col0, 24
----
-4
24

skipif mysql # not compatible
query II rowsort label-1406
SELECT ALL + 63 + - MIN ( ALL - + CAST ( - 67 AS INTEGER ) ) AS col0, 24
----
-4
24

query II rowsort
SELECT - 5 AS col1, 37
----
-5
37

query I rowsort
SELECT ALL - 89 + + 74
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT 58 + - 11 + - - MAX( DISTINCT 32 ) + - CASE - COUNT( * ) WHEN + + NULLIF ( + + 5, + COUNT( ALL - - 88 ) ) * - + MAX( + + 98 ) THEN NULL WHEN - 48 THEN SUM( DISTINCT + + 71 ) + + 56 ELSE 60 * 34 * 56 END DIV COUNT( * )
----
-114161

skipif mysql # not compatible
query I rowsort label-1409
SELECT 58 + - 11 + - - MAX ( DISTINCT 32 ) + - CASE - COUNT ( * ) WHEN + + NULLIF ( + + 5, + COUNT ( ALL - - 88 ) ) * - + MAX ( + + 98 ) THEN NULL WHEN - 48 THEN SUM ( DISTINCT + + 71 ) + + 56 ELSE 60 * 34 * 56 END / COUNT ( * )
----
-114161

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1411
SELECT 48 * - + 94 + - + 18 * - CAST( - + AVG ( ALL - - 32 ) AS DECIMAL ) * 89 * + 45 + - 38 + - 75 * - CASE COUNT( * ) WHEN 18 - + 57 THEN NULL WHEN 71 THEN 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT 48 * - + 94 + - + 18 * - CAST ( - + AVG ( ALL - - 32 ) AS REAL ) * 89 * + 45 + - 38 + - 75 * - CASE COUNT ( * ) WHEN 18 - + 57 THEN NULL WHEN 71 THEN 69 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1412
SELECT 79 + + + MIN( + 39 ) * - COUNT( * ) - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT 79 + + + MIN ( + 39 ) * - COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 81 + - + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT 63 - 29 * COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1414
SELECT 63 - 29 * COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL ( - MAX( + + COALESCE ( + + ( 70 ), - + 51 ) ) ) * - 98 AS col2
----
6860

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL ( - MAX ( + + COALESCE ( + + ( 70 ), - + 51 ) ) ) * - 98 AS col2
----
6860

query I rowsort
SELECT DISTINCT + 87 * 65
----
5655

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1418
SELECT + 62 DIV 84 DIV + 4 + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 62 / 84 / + 4 + ( COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL + 78 - - COUNT( DISTINCT - - 93 ) + 12 * + ( - 37 ) AS col1
----
-365

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + 78 - - COUNT ( DISTINCT - - 93 ) + 12 * + ( - 37 ) AS col1
----
-365

query I rowsort
SELECT 89 * - + 36 * - CASE 25 WHEN 60 THEN NULL ELSE + 2 * - 15 END AS col2
----
-96120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1421
SELECT 63 + + COUNT( * ) col2, ( + + CAST( - 51 AS SIGNED ) ) DIV + 10
----
64
-5

skipif mysql # not compatible
query II rowsort label-1421
SELECT 63 + + COUNT ( * ) col2, ( + + CAST ( - 51 AS INTEGER ) ) / + 10
----
64
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1422
SELECT + 99 * COUNT( * ) + + 64 + - 53 * + + CAST( NULL AS SIGNED ) + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1422
SELECT + 99 * COUNT ( * ) + + 64 + - 53 * + + CAST ( NULL AS INTEGER ) + 60 AS col0
----
NULL

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

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

query II rowsort
SELECT 79 * 43 AS col1, 15
----
3397
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT NULLIF ( COUNT( * ), - 76 + 19 ) * 21 + + + MIN( + 95 )
----
116

skipif mysql # not compatible
query I rowsort label-1425
SELECT NULLIF ( COUNT ( * ), - 76 + 19 ) * 21 + + + MIN ( + 95 )
----
116

query I rowsort
SELECT ALL + 34 * + 58
----
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT COUNT( ALL - 50 ) + 51
----
52

skipif mysql # not compatible
query I rowsort label-1427
SELECT COUNT ( ALL - 50 ) + 51
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1428
SELECT ALL + COUNT( * ) DIV + NULLIF ( - 45, + + 53 ) * - ( + 88 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + COUNT ( * ) / + NULLIF ( - 45, + + 53 ) * - ( + 88 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT COUNT( * ) * + - COUNT( * ) * + NULLIF ( + COALESCE ( + MAX( ALL - ( + + 23 ) ), - ( 68 ) ), - 92 )
----
23

skipif mysql # not compatible
query I rowsort label-1429
SELECT COUNT ( * ) * + - COUNT ( * ) * + NULLIF ( + COALESCE ( + MAX ( ALL - ( + + 23 ) ), - ( 68 ) ), - 92 )
----
23

query I rowsort
SELECT DISTINCT - 25 * 25 AS col2
----
-625

query I rowsort
SELECT DISTINCT - 16 * + - 52 AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT 89 * - 42 * - 15 + + + ( + 93 ) + + 12 * - 72 * - MIN( DISTINCT - 50 )
----
12963

skipif mysql # not compatible
query I rowsort label-1432
SELECT 89 * - 42 * - 15 + + + ( + 93 ) + + 12 * - 72 * - MIN ( DISTINCT - 50 )
----
12963

query I rowsort
SELECT DISTINCT - - 77 AS col2
----
77

query I rowsort
SELECT 78 + - 5
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT + MAX( 12 ) col2
----
12

skipif mysql # not compatible
query I rowsort label-1435
SELECT + MAX ( 12 ) col2
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-1436
SELECT 24 + - + 6 AS col0, - 62 DIV + - 10
----
18
6

skipif mysql # not compatible
query II rowsort label-1436
SELECT 24 + - + 6 AS col0, - 62 / + - 10
----
18
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT CASE + 44 WHEN + 72 - 47 THEN NULL WHEN CASE + 90 WHEN - 3 THEN NULL WHEN - 54 * - - 91 THEN - + 63 ELSE ( + + AVG ( + 26 ) ) * 45 END THEN COUNT( * ) * - 17 END + - 79 * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT CASE + 44 WHEN + 72 - 47 THEN NULL WHEN CASE + 90 WHEN - 3 THEN NULL WHEN - 54 * - - 91 THEN - + 63 ELSE ( + + AVG ( + 26 ) ) * 45 END THEN COUNT ( * ) * - 17 END + - 79 * + 33
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1439
SELECT + 87 + 33 * - MAX( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT + 87 + 33 * - MAX ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT + + 53 + + + 41 AS col0
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1441
SELECT ALL - 4 * CAST( NULL AS DECIMAL ) - - + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL - 4 * CAST ( NULL AS REAL ) - - + 78 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 49 + 78 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT - NULLIF ( COUNT( * ), + + 18 * + 10 ) + + - 30 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - NULLIF ( COUNT ( * ), + + 18 * + 10 ) + + - 30 AS col2
----
-31

query II rowsort
SELECT 27 + 61 + 91 * 12, 70 * - - 88 + 12 * 28 + - 47 AS col0
----
1180
6449

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT - ( + 88 ) + + SUM( - 42 ) col0
----
-130

skipif mysql # not compatible
query I rowsort label-1445
SELECT - ( + 88 ) + + SUM ( - 42 ) col0
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT ALL 11 * CAST( NULL AS SIGNED ) * - - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL 11 * CAST ( NULL AS INTEGER ) * - - 23 AS col1
----
NULL

query I rowsort
SELECT 16 + 33 AS col2
----
49

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

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

query I rowsort
SELECT ALL - 52 + + ( 92 ) - + 3
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - COALESCE ( - MIN( + 86 ), - + 49 )
----
86

skipif mysql # not compatible
query I rowsort label-1450
SELECT - COALESCE ( - MIN ( + 86 ), - + 49 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT ALL + 77 + - MIN( - + 48 )
----
125

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + 77 + - MIN ( - + 48 )
----
125

query I rowsort
SELECT 63 + + 96
----
159

onlyif mysql # DIV for integer division: 
query II rowsort label-1453
SELECT ALL 7 DIV - 33 * + 52, 17 DIV - + 21 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-1453
SELECT ALL 7 / - 33 * + 52, 17 / - + 21 AS col2
----
0
0

query II rowsort
SELECT ALL 61, - 85 AS col0
----
61
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1455
SELECT + 48 + + 12 DIV - 50
----
48

skipif mysql # not compatible
query I rowsort label-1455
SELECT + 48 + + 12 / - 50
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1456
SELECT ALL 54 DIV 19
----
2

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL 54 / 19
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT + 60 DIV - 38 * + - 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1457
SELECT + 60 / - 38 * + - 1 AS col2
----
1

query I rowsort
SELECT + 65 * - 81 AS col2
----
-5265

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

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT 89 - + COUNT ( * ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT + SUM( ALL - ( - 90 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1460
SELECT + SUM ( ALL - ( - 90 ) ) AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT 47 DIV + 80 * COUNT( * ) + - 12 + + - COUNT( ALL - + 47 ) DIV 95 + - 65 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1461
SELECT 47 / + 80 * COUNT ( * ) + - 12 + + - COUNT ( ALL - + 47 ) / 95 + - 65 AS col0
----
-77

query I rowsort
SELECT - 94 + + + 33 + - 51 * 15 AS col0
----
-826

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT ALL + 47 * + - 89 * COUNT( * )
----
-4183

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL + 47 * + - 89 * COUNT ( * )
----
-4183

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

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

query I rowsort
SELECT ALL 11 * + 94
----
1034

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1467
SELECT ALL + 69 AS col1, + COUNT( * ) * - 84 + + 45 - + 50 * + + COALESCE ( 39, + + 44 * + 36, 94 + 4 ) * + 83
----
69
-161889

skipif mysql # not compatible
query II rowsort label-1467
SELECT ALL + 69 AS col1, + COUNT ( * ) * - 84 + + 45 - + 50 * + + COALESCE ( 39, + + 44 * + 36, 94 + 4 ) * + 83
----
69
-161889

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT 39 * 51 * 72 * - + 55 + - MIN( DISTINCT ( + 35 ) )
----
-7876475

skipif mysql # not compatible
query I rowsort label-1468
SELECT 39 * 51 * 72 * - + 55 + - MIN ( DISTINCT ( + 35 ) )
----
-7876475

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT NULLIF ( 56, - + 42 ) AS col2, 67 + COALESCE ( + 80, - COUNT( + + 46 ) )
----
56
147

skipif mysql # not compatible
query II rowsort label-1473
SELECT NULLIF ( 56, - + 42 ) AS col2, 67 + COALESCE ( + 80, - COUNT ( + + 46 ) )
----
56
147

query I rowsort
SELECT - - 43 * + CASE - COALESCE ( 36, + 4, 68 ) WHEN - AVG ( 34 ) + - + 34 + + 39 THEN - 40 WHEN 93 THEN NULL END * - - 53 / - - 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1475
SELECT - - 37 + 38 + - + CAST( NULL AS SIGNED ) * + + CASE + 24 WHEN + COUNT( * ) * + AVG ( DISTINCT + 15 ) * - 53 * COALESCE ( - 5, NULLIF ( 55, - COUNT( * ) ) + - + SUM( 47 ), - CAST( - + 58 AS SIGNED ) - + 71 ) - - 73 + 45 + + + COALESCE ( + - 68, CAST( NULL AS SIGNED ) ) + - - ( MAX( + 32 ) ) THEN + + 5 * + COUNT( * ) ELSE - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT - - 37 + 38 + - + CAST ( NULL AS INTEGER ) * + + CASE + 24 WHEN + COUNT ( * ) * + AVG ( DISTINCT + 15 ) * - 53 * COALESCE ( - 5, NULLIF ( 55, - COUNT ( * ) ) + - + SUM ( 47 ), - CAST ( - + 58 AS INTEGER ) - + 71 ) - - 73 + 45 + + + COALESCE ( + - 68, CAST ( NULL AS INTEGER ) ) + - - ( MAX ( + 32 ) ) THEN + + 5 * + COUNT ( * ) ELSE - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1476
SELECT ALL + + 41 * COUNT( * ) * 82 DIV + - 39 + + - 12 * + COUNT( * ), + COUNT( * ) AS col2
----
-98
1

skipif mysql # not compatible
query II rowsort label-1476
SELECT ALL + + 41 * COUNT ( * ) * 82 / + - 39 + + - 12 * + COUNT ( * ), + COUNT ( * ) AS col2
----
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT CASE - - 33 WHEN - AVG ( DISTINCT - 18 ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT CASE - - 33 WHEN - AVG ( DISTINCT - 18 ) THEN - COUNT ( * ) END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1479
SELECT ALL + 7 * - CAST( NULL AS SIGNED ) * 16 * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL + 7 * - CAST ( NULL AS INTEGER ) * 16 * + 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT - 85 * - 61 + - - 81 + - COUNT( * ) AS col0
----
5265

skipif mysql # not compatible
query I rowsort label-1480
SELECT - 85 * - 61 + - - 81 + - COUNT ( * ) AS col0
----
5265

query I rowsort
SELECT ALL + + 88 * - 55 * + + 1 * - 12 + + 33 AS col0
----
58113

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1483
SELECT - NULLIF ( 20, + + COUNT( * ) ) * + CAST( 8 AS SIGNED ), 58 + 41 * - CAST( NULL AS SIGNED ) AS col2
----
-160
NULL

skipif mysql # not compatible
query II rowsort label-1483
SELECT - NULLIF ( 20, + + COUNT ( * ) ) * + CAST ( 8 AS INTEGER ), 58 + 41 * - CAST ( NULL AS INTEGER ) AS col2
----
-160
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + + 36 * + + COALESCE ( COUNT( * ), + - 98, + MIN( ALL + 28 ) ) * + 59 * + - 30
----
-63720

skipif mysql # not compatible
query I rowsort label-1485
SELECT + + 36 * + + COALESCE ( COUNT ( * ), + - 98, + MIN ( ALL + 28 ) ) * + 59 * + - 30
----
-63720

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL + + 50 * - 6 * - - 25 + + COALESCE ( + + 43, + SUM( - + 52 ) ) * - + 28 * 94 * - 79 AS col1
----
8933404

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL + + 50 * - 6 * - - 25 + + COALESCE ( + + 43, + SUM ( - + 52 ) ) * - + 28 * 94 * - 79 AS col1
----
8933404

onlyif mysql # aggregate syntax: 
query II rowsort label-1487
SELECT ALL 79 col2, + MAX( DISTINCT + 95 )
----
79
95

skipif mysql # not compatible
query II rowsort label-1487
SELECT ALL 79 col2, + MAX ( DISTINCT + 95 )
----
79
95

query I rowsort
SELECT DISTINCT + - 25 + + - 16 + - ( + 87 )
----
-128

query II rowsort
SELECT 61, - 5 AS col0
----
61
-5

query I rowsort
SELECT ALL + 81 - + 95 + + - 16 AS col1
----
-30

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT DISTINCT - 48 - + COUNT( * ) + 35 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT - 48 - + COUNT ( * ) + 35 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT ALL + COUNT( * ) * - 40 * - + 90 AS col1
----
3600

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL + COUNT ( * ) * - 40 * - + 90 AS col1
----
3600

query I rowsort
SELECT ALL - + 83 - + + 35 * + 9 * + 1 col1
----
-398

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT - SUM( 92 ) + + + 53
----
-39

skipif mysql # not compatible
query I rowsort label-1496
SELECT - SUM ( 92 ) + + + 53
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1497
SELECT + 42 DIV + + 33 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1497
SELECT + 42 / + + 33 AS col2
----
1

query I rowsort
SELECT ALL 48 * + 30 AS col0
----
1440

query II rowsort
SELECT 83 AS col0, - 62 col2
----
83
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - COALESCE ( 40, + COUNT( * ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1500
SELECT - COALESCE ( 40, + COUNT ( * ) ) AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1501
SELECT ALL - 43 * + 1 DIV + - 81 * - ( 99 )
----
0

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL - 43 * + 1 / + - 81 * - ( 99 )
----
0

query I rowsort
SELECT DISTINCT + 88 * + 89 col0
----
7832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1503
SELECT + CAST( 31 AS SIGNED ) - + - ( - 9 ) + - + 39 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1503
SELECT + CAST ( 31 AS INTEGER ) - + - ( - 9 ) + - + 39 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-1504
SELECT ALL SUM( ALL - ( + ( + - 89 ) ) ), 9 + NULLIF ( - 89, + 4 * - + ( + 69 ) - - 1 / + 5 * + 18 ) AS col2
----
89
-80

skipif mysql # not compatible
query II rowsort label-1504
SELECT ALL SUM ( ALL - ( + ( + - 89 ) ) ), 9 + NULLIF ( - 89, + 4 * - + ( + 69 ) - - 1 / + 5 * + 18 ) AS col2
----
89
-80

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1507
SELECT 53 * ( + 78 ) + + 4 + - NULLIF ( CASE - COUNT( * ) WHEN - 38 THEN 72 END, 76 / ( - COUNT( * ) ) + 95 * + 45 * + 60 + - COUNT( * ) / + 88 ) + - - COALESCE ( + - COUNT( * ), - 65 * + 29 ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1507
SELECT 53 * ( + 78 ) + + 4 + - NULLIF ( CASE - COUNT ( * ) WHEN - 38 THEN 72 END, 76 / ( - COUNT ( * ) ) + 95 * + 45 * + 60 + - COUNT ( * ) / + 88 ) + - - COALESCE ( + - COUNT ( * ), - 65 * + 29 ), COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT CAST( - - 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-1508
SELECT CAST ( - - 21 AS INTEGER )
----
21

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1510
SELECT DISTINCT + 11 / 82 / 2 + - - CAST( NULLIF ( + CASE + - MAX( DISTINCT 60 ) WHEN - - 97 THEN ( + ( - + 94 ) ) END, - 40 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT + 11 / 82 / 2 + - - CAST ( NULLIF ( + CASE + - MAX ( DISTINCT 60 ) WHEN - - 97 THEN ( + ( - + 94 ) ) END, - 40 ) AS REAL )
----
NULL

query I rowsort
SELECT - 3 * - + 97 AS col2
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT ALL - + 31 DIV - 60 + 67
----
67

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL - + 31 / - 60 + 67
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1513
SELECT ALL + - 64 DIV + COALESCE ( + + 94, - + 28 + - - ( + + 96 ) ) + - 67 + - 99 + + 65
----
-101

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL + - 64 / + COALESCE ( + + 94, - + 28 + - - ( + + 96 ) ) + - 67 + - 99 + + 65
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1514
SELECT DISTINCT + COUNT( * ) DIV - - 66 + MAX( ALL 28 ) * + 63 + - - COUNT( * ) AS col1
----
1765

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT + COUNT ( * ) / - - 66 + MAX ( ALL 28 ) * + 63 + - - COUNT ( * ) AS col1
----
1765

query I rowsort
SELECT + 60 + + 41
----
101

query I rowsort
SELECT + ( - 42 ) * + 94 AS col1
----
-3948

query I rowsort
SELECT ALL + 62 * 82 + + 9 AS col2
----
5093

query I rowsort
SELECT - 15 * - - 28 + 41 AS col2
----
-379

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

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

query I rowsort
SELECT + 27 * - + 34 + + 26
----
-892

query I rowsort
SELECT - - 65 * - 91 * 43 AS col1
----
-254345

query I rowsort
SELECT + - 96 + 14
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT ALL + 68 * + ( - SUM( DISTINCT - - COALESCE ( 15, 85 * - + 76 ) ) ) - - NULLIF ( 59, - - 84 )
----
-961

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL + 68 * + ( - SUM ( DISTINCT - - COALESCE ( 15, 85 * - + 76 ) ) ) - - NULLIF ( 59, - - 84 )
----
-961

query I rowsort
SELECT - 72 + - 52
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT - + COALESCE ( - + 36, + 15 + + + COUNT( * ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1525
SELECT - + COALESCE ( - + 36, + 15 + + + COUNT ( * ) ) AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT DISTINCT + COUNT( ALL + - 33 ) DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT + COUNT ( ALL + - 33 ) / - 37
----
0

query I rowsort
SELECT - 99 + + + 31
----
-68

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

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

query II rowsort
SELECT 89 * - - 38, - 29 AS col2
----
3382
-29

query I rowsort
SELECT ALL - 74 * - - 45
----
-3330

onlyif mysql # aggregate syntax: 
query II rowsort label-1531
SELECT 98 + + 23 AS col2, 11 * 59 + + MIN( 36 ) AS col2
----
121
685

skipif mysql # not compatible
query II rowsort label-1531
SELECT 98 + + 23 AS col2, 11 * 59 + + MIN ( 36 ) AS col2
----
121
685

query I rowsort
SELECT 8 + - - 49
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT 79 * - COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-1533
SELECT 79 * - COUNT ( * ) AS col0
----
-79

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

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

query I rowsort
SELECT 17 * 52
----
884

query I rowsort
SELECT 94 + + 38 - + 47 * - 52 + - + 44 * 7
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL COUNT( * ) * - - ( + COUNT( DISTINCT 28 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL COUNT ( * ) * - - ( + COUNT ( DISTINCT 28 ) )
----
1

query I rowsort
SELECT ALL 87 + ( 91 )
----
178

query I rowsort
SELECT DISTINCT + - 21 + - - NULLIF ( + - 8, - 37 ) * 33 + - + 83 + - 5 AS col1
----
-373

onlyif mysql # aggregate syntax: 
query II rowsort label-1540
SELECT DISTINCT - + 59 + + SUM( DISTINCT + 82 ) AS col2, + NULLIF ( - 63, - + 9 * 20 )
----
23
-63

skipif mysql # not compatible
query II rowsort label-1540
SELECT DISTINCT - + 59 + + SUM ( DISTINCT + 82 ) AS col2, + NULLIF ( - 63, - + 9 * 20 )
----
23
-63

query I rowsort
SELECT ALL - 10 col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1542
SELECT DISTINCT + COUNT( * ) + - NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) + - + 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT + COUNT ( * ) + - NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) + - + 59 AS col2
----
-59

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

query II rowsort
SELECT + 6 * + 42, + 10 AS col0
----
252
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1545
SELECT 2 * - 39 AS col2, + MIN( ALL - - 16 ) AS col2
----
-78
16

skipif mysql # not compatible
query II rowsort label-1545
SELECT 2 * - 39 AS col2, + MIN ( ALL - - 16 ) AS col2
----
-78
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + 81 * + SUM( DISTINCT - 25 )
----
-2025

skipif mysql # not compatible
query I rowsort label-1546
SELECT + 81 * + SUM ( DISTINCT - 25 )
----
-2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1547
SELECT ALL - COALESCE ( COUNT( * ), - CASE 42 WHEN 93 THEN + - CAST( NULL AS SIGNED ) * COALESCE ( AVG ( COALESCE ( 17, - + CAST( NULL AS SIGNED ) * + - ( - 5 ) + - ( - 99 ) ) ), ( - 81 ) * + + 49 + 84 ) + 45 WHEN - + 34 DIV 47 THEN NULL ELSE NULL END ) DIV - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - COALESCE ( COUNT ( * ), - CASE 42 WHEN 93 THEN + - CAST ( NULL AS INTEGER ) * COALESCE ( AVG ( COALESCE ( 17, - + CAST ( NULL AS INTEGER ) * + - ( - 5 ) + - ( - 99 ) ) ), ( - 81 ) * + + 49 + 84 ) + 45 WHEN - + 34 / 47 THEN NULL ELSE NULL END ) / - 8 AS col1
----
0

query I rowsort
SELECT 22 + + 36
----
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT + MIN( ALL - + 82 ) AS col0, - 84 * + + 10 AS col2
----
-82
-840

skipif mysql # not compatible
query II rowsort label-1550
SELECT + MIN ( ALL - + 82 ) AS col0, - 84 * + + 10 AS col2
----
-82
-840

query I rowsort
SELECT 71 * + - 72 AS col0
----
-5112

query I rowsort
SELECT ALL 0 * - 8
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1553
SELECT ALL - 53 - - - COUNT( * ) + - 36 DIV + - CASE - 54 WHEN + 6 * + CAST( NULL AS SIGNED ) THEN NULL WHEN 93 * + ( + + 53 ) THEN - NULLIF ( - 7, + + 32 * 49 * - 13 ) WHEN - + ( 79 ) THEN NULL ELSE 18 * - 5 END AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - 53 - - - COUNT ( * ) + - 36 / + - CASE - 54 WHEN + 6 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN 93 * + ( + + 53 ) THEN - NULLIF ( - 7, + + 32 * 49 * - 13 ) WHEN - + ( 79 ) THEN NULL ELSE 18 * - 5 END AS col0
----
-54

query I rowsort
SELECT + + COALESCE ( + + 16, 98 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT - SUM( + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1555
SELECT - SUM ( + 48 )
----
-48

query I rowsort
SELECT ALL 95 + 84
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT 15 * - COUNT( * ) - - 85 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1557
SELECT 15 * - COUNT ( * ) - - 85 AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT ALL 89 DIV - 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL 89 / - 34 AS col2
----
-2

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

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - COUNT ( * ) + - 56 AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1560
SELECT ALL - COALESCE ( - - 2, + - 54 - + CAST( NULL AS SIGNED ) + 14 ) * - COUNT( * ) AS col1, + 76
----
2
76

skipif mysql # not compatible
query II rowsort label-1560
SELECT ALL - COALESCE ( - - 2, + - 54 - + CAST ( NULL AS INTEGER ) + 14 ) * - COUNT ( * ) AS col1, + 76
----
2
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1561
SELECT CAST( - + 14 AS SIGNED ) + + 71 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1561
SELECT CAST ( - + 14 AS INTEGER ) + + 71 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL - 25 + + 79 * - 4 + 78 * + 22 + + COUNT( * ) + 32 AS col0
----
1408

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - 25 + + 79 * - 4 + 78 * + 22 + + COUNT ( * ) + 32 AS col0
----
1408

query I rowsort
SELECT 97 + + 45
----
142

query I rowsort
SELECT 7 + + 31 AS col2
----
38

query I rowsort
SELECT ALL + 53 + - + ( + - 36 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1566
SELECT ALL - COUNT( * ) + + 80 + + 39 * - + 60, - MAX( ALL + + COALESCE ( - - 11, - 48 ) ) * COUNT( * ) AS col0
----
-2261
-11

skipif mysql # not compatible
query II rowsort label-1566
SELECT ALL - COUNT ( * ) + + 80 + + 39 * - + 60, - MAX ( ALL + + COALESCE ( - - 11, - 48 ) ) * COUNT ( * ) AS col0
----
-2261
-11

query I rowsort
SELECT 29 * 18 AS col0
----
522

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

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

query I rowsort
SELECT - 85 * - 48 + - 92 * 7 + + + 41 + - + 25
----
3452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1570
SELECT - 78 * + - 95 + - 76 + + 85 * - ( - - 31 ) * CAST( + 85 AS SIGNED ) + + - 60
----
-216701

skipif mysql # not compatible
query I rowsort label-1570
SELECT - 78 * + - 95 + - 76 + + 85 * - ( - - 31 ) * CAST ( + 85 AS INTEGER ) + + - 60
----
-216701

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL + 43 * MIN( ALL 92 )
----
3956

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + 43 * MIN ( ALL 92 )
----
3956

query II rowsort
SELECT + 8 AS col2, 48 * - + 72 - + 45 AS col0
----
8
-3501

query I rowsort
SELECT DISTINCT + 15 * 80 + + 20
----
1220

query I rowsort
SELECT - 45 * + 50 + - + 92 - ( - 61 )
----
-2281

query I rowsort
SELECT ALL + ( - 36 ) AS col1
----
-36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1577
SELECT ALL + + 28, COUNT( * ) - + 49 * + CASE - - 48 WHEN - CAST( + 38 AS SIGNED ) THEN + 57 END AS col0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-1577
SELECT ALL + + 28, COUNT ( * ) - + 49 * + CASE - - 48 WHEN - CAST ( + 38 AS INTEGER ) THEN + 57 END AS col0
----
28
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT DISTINCT COUNT( * ) DIV - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT COUNT ( * ) / - 49 AS col0
----
0

query I rowsort
SELECT + 90 - + 69 - + 99 * + 49 + + 87 AS col1
----
-4743

query I rowsort
SELECT + 94 * + 5 AS col0
----
470

query I rowsort
SELECT - 72 * + + 83 - - ( - 72 ) AS col2
----
-6048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1582
SELECT ALL + CASE - 65 WHEN + ( 90 ) + - - 19 * CASE + 76 WHEN - + 93 THEN NULL ELSE - 36 END / 13 / CAST( NULL AS SIGNED ) + - + 90 - - - COUNT( * ) THEN + CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL + CASE - 65 WHEN + ( 90 ) + - - 19 * CASE + 76 WHEN - + 93 THEN NULL ELSE - 36 END / 13 / CAST ( NULL AS INTEGER ) + - + 90 - - - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1583
SELECT + CASE 7 WHEN + + COUNT( * ) * COUNT( * ) THEN + COUNT( * ) * + + COUNT( - 94 ) WHEN CAST( + 27 AS SIGNED ) THEN - 90 WHEN + + 2 + - + 97 THEN NULL WHEN 39 + NULLIF ( CAST( NULL AS SIGNED ), AVG ( ALL - 31 ) ) THEN NULL END * + + ( + + 37 ), + 15 + - ( COUNT( * ) ) * 88 AS col1
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-1583
SELECT + CASE 7 WHEN + + COUNT ( * ) * COUNT ( * ) THEN + COUNT ( * ) * + + COUNT ( - 94 ) WHEN CAST ( + 27 AS INTEGER ) THEN - 90 WHEN + + 2 + - + 97 THEN NULL WHEN 39 + NULLIF ( CAST ( NULL AS INTEGER ), AVG ( ALL - 31 ) ) THEN NULL END * + + ( + + 37 ), + 15 + - ( COUNT ( * ) ) * 88 AS col1
----
NULL
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT ALL + 56 + + - 96 - + COUNT( * ) + - 57 * + 59
----
-3404

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL + 56 + + - 96 - + COUNT ( * ) + - 57 * + 59
----
-3404

query I rowsort
SELECT - COALESCE ( - 31, + 14 )
----
31

query I rowsort
SELECT ALL 77 + + 80 * 24 AS col2
----
1997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1587
SELECT CAST( NULL AS SIGNED ) * + - 75 * 11 + - CAST( + + 75 AS SIGNED ) + 21 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT CAST ( NULL AS INTEGER ) * + - 75 * 11 + - CAST ( + + 75 AS INTEGER ) + 21 * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL 48 * 93
----
4464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT + 59 + - 64 * - CAST( + 66 AS SIGNED )
----
4283

skipif mysql # not compatible
query I rowsort label-1589
SELECT + 59 + - 64 * - CAST ( + 66 AS INTEGER )
----
4283

query I rowsort
SELECT ALL 41 + - 49 + + ( 20 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1591
SELECT + CAST( NULL AS SIGNED ) * NULLIF ( - - 24, - + 18 * - + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT + CAST ( NULL AS INTEGER ) * NULLIF ( - - 24, - + 18 * - + 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT - 29 + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-1592
SELECT - 29 + - COUNT ( * )
----
-30

query I rowsort
SELECT - 5 + + + 28 + 13
----
36

query I rowsort
SELECT ALL - 21 + - - 13 * + + 33
----
408

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT 40 + - MAX( ALL + 37 ) + - MAX( + CASE 52 WHEN + 4 THEN 75 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT 40 + - MAX ( ALL + 37 ) + - MAX ( + CASE 52 WHEN + 4 THEN 75 END )
----
NULL

query I rowsort
SELECT ALL + 49 * 28 * 17 col1
----
23324

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT ALL COALESCE ( SUM( 41 ), 99 )
----
41

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL COALESCE ( SUM ( 41 ), 99 )
----
41

query I rowsort
SELECT DISTINCT + 40 - 48 + - - 32
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT DISTINCT ( + 97 ) DIV - - 37
----
2

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT ( + 97 ) / - - 37
----
2

query I rowsort
SELECT DISTINCT - 76 - + 63
----
-139

query I rowsort
SELECT ALL + 22 * 43
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL - ( - COUNT( DISTINCT - 33 ) ) * + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - ( - COUNT ( DISTINCT - 33 ) ) * + - 54
----
-54

query I rowsort
SELECT + 79 * - - 22 col1
----
1738

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT + + ( 12 ) + - + 50 + - + SUM( 59 ) + + COUNT( * ) * - - 59 * - 80 - 35 AS col2
----
-4852

skipif mysql # not compatible
query I rowsort label-1605
SELECT + + ( 12 ) + - + 50 + - + SUM ( 59 ) + + COUNT ( * ) * - - 59 * - 80 - 35 AS col2
----
-4852

query I rowsort
SELECT DISTINCT + + 91 - + - 12
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT - - 83 * + 44 * + + ( + MAX( 52 ) )
----
189904

skipif mysql # not compatible
query I rowsort label-1607
SELECT - - 83 * + 44 * + + ( + MAX ( 52 ) )
----
189904

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT - + 8 * COUNT( * ) * + - 25
----
200

skipif mysql # not compatible
query I rowsort label-1608
SELECT - + 8 * COUNT ( * ) * + - 25
----
200

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT DISTINCT + ( - + COALESCE ( + 34, - COUNT( * ) ) ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT + ( - + COALESCE ( + 34, - COUNT ( * ) ) ) AS col0
----
-34

query I rowsort
SELECT DISTINCT 91 * - 8 AS col0
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL + - SUM( DISTINCT - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL + - SUM ( DISTINCT - 23 )
----
23

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

query I rowsort
SELECT + 66 * + 3 - - 8 * + 51
----
606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT - CAST( + 86 AS SIGNED ) * - 39
----
3354

skipif mysql # not compatible
query I rowsort label-1615
SELECT - CAST ( + 86 AS INTEGER ) * - 39
----
3354

query I rowsort
SELECT + - 76 + - 61 - + + 91 AS col0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT DISTINCT + MAX( ALL + 52 ) * + 34
----
1768

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT + MAX ( ALL + 52 ) * + 34
----
1768

query I rowsort
SELECT + 45 * - 70 * + 60 * + ( - ( + + 22 ) ) + - + 46 * - COALESCE ( - 42, + - ( 90 ) * - 33 * ( + 97 ) ) AS col2
----
4156068

query I rowsort
SELECT ALL + 37 * - - 38
----
1406

query I rowsort
SELECT ALL + 94 * + + 38 + + + 86 AS col1
----
3658

query I rowsort
SELECT COALESCE ( - 70, 44, 1, - 31 * + 77 + - 72 ) AS col1
----
-70

query I rowsort
SELECT ALL - 97 * - - 73 * 63 AS col1
----
-446103

query I rowsort
SELECT ALL + 78 * - CASE - - CASE - - 30 WHEN - 16 THEN 81 - 54 + + + 35 ELSE NULL END WHEN 73 THEN 63 WHEN - 32 THEN - - 94 - 20 WHEN - + 86 THEN - 46 ELSE NULL END * - 95 + + 11 + - - 50 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT + NULLIF ( - - 12, - COUNT( * ) * + - 53 * + 86 )
----
12

skipif mysql # not compatible
query I rowsort label-1624
SELECT + NULLIF ( - - 12, - COUNT ( * ) * + - 53 * + 86 )
----
12

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

query I rowsort
SELECT - 24 / CASE + 11 WHEN + + 12 THEN + + ( 38 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT + 29 DIV + - 56
----
0

skipif mysql # not compatible
query I rowsort label-1627
SELECT + 29 / + - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT - 41 * - 24 * + + COUNT( * ) AS col1
----
984

skipif mysql # not compatible
query I rowsort label-1628
SELECT - 41 * - 24 * + + COUNT ( * ) AS col1
----
984

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT MAX( + - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-1630
SELECT MAX ( + - 23 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1631
SELECT ALL + 1 * - 86 - 47 * + 12 + CAST( - 63 AS DECIMAL ) * + - 59 * - CAST( NULL AS SIGNED ) + - 6 + 62 * - COUNT( * ) * - 42 * + NULLIF ( - AVG ( ALL 67 ), ( + - ( - 81 ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL + 1 * - 86 - 47 * + 12 + CAST ( - 63 AS REAL ) * + - 59 * - CAST ( NULL AS INTEGER ) + - 6 + 62 * - COUNT ( * ) * - 42 * + NULLIF ( - AVG ( ALL 67 ), ( + - ( - 81 ) ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT + 93 - + 84 - + + NULLIF ( 54, 53 + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT + 93 - + 84 - + + NULLIF ( 54, 53 + + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT ALL CAST( + + 65 AS SIGNED ) * + 81
----
5265

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL CAST ( + + 65 AS INTEGER ) * + 81
----
5265

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT + 70 * + SUM( ALL 10 ) AS col0
----
700

skipif mysql # not compatible
query I rowsort label-1634
SELECT + 70 * + SUM ( ALL 10 ) AS col0
----
700

query I rowsort
SELECT ALL 81 * - + 32 AS col2
----
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT DISTINCT ( - + 34 ) * - MAX( DISTINCT - 73 ) AS col1
----
-2482

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT ( - + 34 ) * - MAX ( DISTINCT - 73 ) AS col1
----
-2482

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL NULLIF ( + 52, SUM( - 99 ) ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL NULLIF ( + 52, SUM ( - 99 ) ) AS col0
----
52

query I rowsort
SELECT + 34 + - 88 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT + - COUNT( * ) + - 7
----
-8

skipif mysql # not compatible
query I rowsort label-1639
SELECT + - COUNT ( * ) + - 7
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1640
SELECT ALL CAST( MAX( - 50 ) AS SIGNED ) AS col0
----
-50

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

query II rowsort
SELECT 92 col0, + 66 + + COALESCE ( - 68, - + ( + + 72 ) * + 17 - + - 63 - 94, + 4 )
----
92
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT - 56 + 35 - - - MIN( - ( + + 34 ) )
----
13

skipif mysql # not compatible
query I rowsort label-1642
SELECT - 56 + 35 - - - MIN ( - ( + + 34 ) )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1643
SELECT ALL + NULLIF ( 91, 94 + - NULLIF ( + AVG ( DISTINCT - 53 ), 56 + - NULLIF ( + 77, - 34 * + NULLIF ( - - 39, - 37 ) * - CAST( COUNT( * ) AS SIGNED ) + COUNT( ALL - + 91 ) + 70 ) ) + 47 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL + NULLIF ( 91, 94 + - NULLIF ( + AVG ( DISTINCT - 53 ), 56 + - NULLIF ( + 77, - 34 * + NULLIF ( - - 39, - 37 ) * - CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( ALL - + 91 ) + 70 ) ) + 47 ) AS col0
----
91

query I rowsort
SELECT ALL - CASE - 54 WHEN - 10 * 37 * 0 THEN NULL WHEN 78 * + 80 THEN + 22 ELSE NULL END * + 11 AS col0
----
NULL

query I rowsort
SELECT - 27 + 97 + - 56 + - 40 AS col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT ALL + 66 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL + 66 / - 38
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT + 49 * - + COUNT( ALL + + 28 ) + - 30
----
-79

skipif mysql # not compatible
query I rowsort label-1647
SELECT + 49 * - + COUNT ( ALL + + 28 ) + - 30
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1648
SELECT + + CAST( 50 AS SIGNED ) DIV - + 35 + 85 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1648
SELECT + + CAST ( 50 AS INTEGER ) / - + 35 + 85 AS col0
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-1649
SELECT + 2 DIV 29 * + - 81 AS col1, 32 AS col0
----
0
32

skipif mysql # not compatible
query II rowsort label-1649
SELECT + 2 / 29 * + - 81 AS col1, 32 AS col0
----
0
32

query I rowsort
SELECT + 16 * 9 * - + 66 AS col0
----
-9504

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

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

query I rowsort
SELECT ALL - 50 + 29
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT 44 * COUNT( * ) - - 8 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1653
SELECT 44 * COUNT ( * ) - - 8 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT DISTINCT 8 + - COUNT( * ) * - 11
----
19

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT 8 + - COUNT ( * ) * - 11
----
19

query I rowsort
SELECT - 52 * - - 57 col2
----
-2964

onlyif mysql # aggregate syntax: 
query II rowsort label-1656
SELECT ALL + MIN( 64 ) + + 45 * - 21 AS col0, - 39 col1
----
-881
-39

skipif mysql # not compatible
query II rowsort label-1656
SELECT ALL + MIN ( 64 ) + + 45 * - 21 AS col0, - 39 col1
----
-881
-39

query II rowsort
SELECT + 6 AS col1, 89 + - 13
----
6
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1658
SELECT SUM( DISTINCT 12 ) * + - 79 + - 62 + + - 69 + - COUNT( * ) * 86 DIV + 89 + + 14 * + - ( + 55 ) + + 47 * 34 * - 22
----
-37005

skipif mysql # not compatible
query I rowsort label-1658
SELECT SUM ( DISTINCT 12 ) * + - 79 + - 62 + + - 69 + - COUNT ( * ) * 86 / + 89 + + 14 * + - ( + 55 ) + + 47 * 34 * - 22
----
-37005

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT ALL - ( + + NULLIF ( - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + CAST( - + 54 AS SIGNED ) / - 21 * + 99 ) ) * + - 67 * NULLIF ( + COALESCE ( + 76, 93 * + 3 ), - + 77 + 87 ) + - 9 + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - ( + + NULLIF ( - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + CAST ( - + 54 AS INTEGER ) / - 21 * + 99 ) ) * + - 67 * NULLIF ( + COALESCE ( + 76, 93 * + 3 ), - + 77 + 87 ) + - 9 + - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT 7 + + - COUNT( * ) + - + 71
----
-65

skipif mysql # not compatible
query I rowsort label-1661
SELECT 7 + + - COUNT ( * ) + - + 71
----
-65

query I rowsort
SELECT 13 * - 66 col1
----
-858

query I rowsort
SELECT 23 + + + 41 * + 73
----
3016

query II rowsort
SELECT ALL 76 AS col1, 66
----
76
66

query II rowsort
SELECT ALL 83, + 37 AS col1
----
83
37

query II rowsort
SELECT ALL 85 AS col1, - 92 col1
----
85
-92

query II rowsort
SELECT 19 AS col1, 11 * 79 AS col0
----
19
869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1668
SELECT 51 + - COALESCE ( - 69, - + CAST( + 49 AS SIGNED ) + + - 70 * - + 31 - - 67 + + 86, 72 )
----
120

skipif mysql # not compatible
query I rowsort label-1668
SELECT 51 + - COALESCE ( - 69, - + CAST ( + 49 AS INTEGER ) + + - 70 * - + 31 - - 67 + + 86, 72 )
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1669
SELECT - 41, + ( + NULLIF ( + COUNT( * ), 53 ) ) * + + 92 DIV 34 + + 75 - COUNT( * ) AS col1
----
-41
76

skipif mysql # not compatible
query II rowsort label-1669
SELECT - 41, + ( + NULLIF ( + COUNT ( * ), 53 ) ) * + + 92 / 34 + + 75 - COUNT ( * ) AS col1
----
-41
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1670
SELECT 58 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-1670
SELECT 58 / 34
----
1

query II rowsort
SELECT ALL 43 AS col0, + 30 AS col1
----
43
30

query II rowsort
SELECT 35 AS col0, 76 + + 92
----
35
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ( - - COUNT( + + 73 ) ) + NULLIF ( 22, 32 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1673
SELECT ( - - COUNT ( + + 73 ) ) + NULLIF ( 22, 32 ) AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT DISTINCT 81 DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT 81 / + 44
----
1

query I rowsort
SELECT 41 * + + 96 * 70
----
275520

query II rowsort
SELECT DISTINCT ( + 98 ), 30 * + 42 AS col2
----
98
1260

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1678
SELECT DISTINCT 55 + + - CAST( NULL AS SIGNED ) * MIN( + - 12 ) * + - 62 + 4 AS col1, 51 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-1678
SELECT DISTINCT 55 + + - CAST ( NULL AS INTEGER ) * MIN ( + - 12 ) * + - 62 + 4 AS col1, 51 AS col1
----
NULL
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1679
SELECT + CASE + 94 WHEN - 68 - 15 * - 9 * - 10 THEN NULL ELSE + - COUNT( * ) END AS col2, 30 + 88 * + - 82 AS col1
----
-1
-7186

skipif mysql # not compatible
query II rowsort label-1679
SELECT + CASE + 94 WHEN - 68 - 15 * - 9 * - 10 THEN NULL ELSE + - COUNT ( * ) END AS col2, 30 + 88 * + - 82 AS col1
----
-1
-7186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT CAST( + COALESCE ( + COUNT( * ), + 53 / - - 65 ) AS SIGNED ) - 45
----
-44

skipif mysql # not compatible
query I rowsort label-1680
SELECT CAST ( + COALESCE ( + COUNT ( * ), + 53 / - - 65 ) AS INTEGER ) - 45
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1681
SELECT - CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) - COUNT( * ) + 57 + 59
----
NULL
116

skipif mysql # not compatible
query II rowsort label-1681
SELECT - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) - COUNT ( * ) + 57 + 59
----
NULL
116

query II rowsort
SELECT - 33, 29 + - - 41 AS col1
----
-33
70

query I rowsort
SELECT - 56 + - 14 AS col0
----
-70

query I rowsort
SELECT DISTINCT + 12 + 54
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT ALL 39 + - MIN( + 90 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL 39 + - MIN ( + 90 ) AS col0
----
-51

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

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT - 43 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 23 + - - 45 * + 39 AS col1
----
1778

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT 40 * - 61 * - + COUNT( * ) AS col2
----
2440

skipif mysql # not compatible
query I rowsort label-1688
SELECT 40 * - 61 * - + COUNT ( * ) AS col2
----
2440

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

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

query I rowsort
SELECT DISTINCT 1 + + 89
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1691
SELECT + 34 AS col0, + 20 * + COUNT( ALL + 6 ) col2, 20 + COALESCE ( + COUNT( * ), - 45, - 45 ) DIV + 45 col1
----
34
20
20

skipif mysql # not compatible
query III rowsort label-1691
SELECT + 34 AS col0, + 20 * + COUNT ( ALL + 6 ) col2, 20 + COALESCE ( + COUNT ( * ), - 45, - 45 ) / + 45 col1
----
34
20
20

query I rowsort
SELECT - 86 * - 0 + 60 * + ( + 60 ) + + + 65 + - - 40
----
3705

query I rowsort
SELECT ALL + 18 + - ( 35 )
----
-17

query I rowsort
SELECT ALL + 60 + + + 70 col2
----
130

query I rowsort
SELECT 19 * + ( - 92 )
----
-1748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1696
SELECT MIN( + - 67 ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-1696
SELECT MIN ( + - 67 ) / + 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1697
SELECT - COALESCE ( + NULLIF ( NULLIF ( + ( - 48 ), - 97 ), - 49 ), + 72 ) DIV 92 + 75 * 29 + COUNT( * ) AS col2
----
2176

skipif mysql # not compatible
query I rowsort label-1697
SELECT - COALESCE ( + NULLIF ( NULLIF ( + ( - 48 ), - 97 ), - 49 ), + 72 ) / 92 + 75 * 29 + COUNT ( * ) AS col2
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT MIN( + + 60 ) * - 72 AS col1
----
-4320

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT MIN ( + + 60 ) * - 72 AS col1
----
-4320

query I rowsort
SELECT 33 + - 37
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT 36 * + - COUNT( - 53 ) * + + 96 AS col0
----
-3456

skipif mysql # not compatible
query I rowsort label-1700
SELECT 36 * + - COUNT ( - 53 ) * + + 96 AS col0
----
-3456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1701
SELECT - 29 * + ( - - ( + 33 ) ) DIV - - COUNT( * ) + - + 88 - - 62 * 46 + + + 51 + + + 50 col0
----
1908

skipif mysql # not compatible
query I rowsort label-1701
SELECT - 29 * + ( - - ( + 33 ) ) / - - COUNT ( * ) + - + 88 - - 62 * 46 + + + 51 + + + 50 col0
----
1908

query I rowsort
SELECT ALL + 26 - + 39 + + + 55
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1703
SELECT ( - ( 19 ) ) DIV MIN( 44 )
----
0

skipif mysql # not compatible
query I rowsort label-1703
SELECT ( - ( 19 ) ) / MIN ( 44 )
----
0

query I rowsort
SELECT DISTINCT 17 * - - 88
----
1496

query I rowsort
SELECT ALL - ( - - ( - 67 ) ) AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1706
SELECT 13 - - CASE + - 11 WHEN + COALESCE ( 24, - - AVG ( + + 55 ) * CAST( NULL AS SIGNED ) ) + + 37 THEN NULL WHEN 92 THEN 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT 13 - - CASE + - 11 WHEN + COALESCE ( 24, - - AVG ( + + 55 ) * CAST ( NULL AS INTEGER ) ) + + 37 THEN NULL WHEN 92 THEN 77 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT 48 * + + 42 * + CAST( NULL AS SIGNED ) * + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT 48 * + + 42 * + CAST ( NULL AS INTEGER ) * + 64 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1708
SELECT CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) col2, 22 DIV + - 84
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1708
SELECT CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) col2, 22 / + - 84
----
NULL
0

query I rowsort
SELECT DISTINCT - 18 * - 99 * + 11 * + 8
----
156816

query I rowsort
SELECT - + 21 - - 59 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT DISTINCT + 77 + + - 51 * 62 + + COUNT( * ) col1
----
-3084

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT + 77 + + - 51 * 62 + + COUNT ( * ) col1
----
-3084

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

skipif mysql # not compatible
query I rowsort label-1712
SELECT - + 71 * - - CAST ( - - 40 AS INTEGER ) AS col1
----
-2840

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT - - CASE MIN( + 85 ) WHEN 29 * - 82 + 7 THEN - 98 END + ( + 98 ) / 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT - - CASE MIN ( + 85 ) WHEN 29 * - 82 + 7 THEN - 98 END + ( + 98 ) / 99 AS col1
----
NULL

query I rowsort
SELECT - 62 + 93 * - 14 * + - 38 * - 3
----
-148490

query I rowsort
SELECT - 75 + ( + 77 ) AS col0
----
2

query I rowsort
SELECT + 45 - 34 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1717
SELECT + + MAX( DISTINCT - + 54 ) DIV + - ( 20 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1717
SELECT + + MAX ( DISTINCT - + 54 ) / + - ( 20 ) AS col0
----
2

query I rowsort
SELECT DISTINCT + 83 + + COALESCE ( - - 59, 95 ) + - 64 + - + ( - 81 ) + + + 51 AS col1
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL 28 + - 19 + + MAX( + - 94 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL 28 + - 19 + + MAX ( + - 94 ) AS col0
----
-85

query I rowsort
SELECT - - 44 + + 69 + 73
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT ALL - CASE - - COUNT( * ) WHEN + CAST( + COUNT( - 40 ) AS SIGNED ) THEN - 18 WHEN + + 45 + - 64 THEN + COUNT( - 7 ) ELSE + 95 * 15 - + CAST( + - COUNT( ALL - - 78 ) AS SIGNED ) END AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL - CASE - - COUNT ( * ) WHEN + CAST ( + COUNT ( - 40 ) AS INTEGER ) THEN - 18 WHEN + + 45 + - 64 THEN + COUNT ( - 7 ) ELSE + 95 * 15 - + CAST ( + - COUNT ( ALL - - 78 ) AS INTEGER ) END AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1722
SELECT ALL 75 * - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) DIV + 52 - 2 + 48 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL 75 * - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / + 52 - 2 + 48 AS col1
----
46

query I rowsort
SELECT + 61 * - 15 * - 24 AS col2
----
21960

query I rowsort
SELECT + 89 + - + 59 col2
----
30

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

query II rowsort
SELECT ALL + 78, 73 * + - 87 AS col2
----
78
-6351

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

skipif mysql # not compatible
query I rowsort label-1727
SELECT + 77 * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT + COUNT( * ) * + 43 * + 82 * + 13 AS col2
----
45838

skipif mysql # not compatible
query I rowsort label-1729
SELECT + COUNT ( * ) * + 43 * + 82 * + 13 AS col2
----
45838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1730
SELECT DISTINCT ( - 74 ) DIV ( 38 ), - CAST( + COUNT( * ) AS SIGNED ) + CASE + COUNT( * ) WHEN + 87 + + - COUNT( * ) + + - 65 THEN NULL WHEN - + COUNT( * ) + - - COUNT( * ) THEN + - 78 END * + - 63 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1730
SELECT DISTINCT ( - 74 ) / ( 38 ), - CAST ( + COUNT ( * ) AS INTEGER ) + CASE + COUNT ( * ) WHEN + 87 + + - COUNT ( * ) + + - 65 THEN NULL WHEN - + COUNT ( * ) + - - COUNT ( * ) THEN + - 78 END * + - 63 AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT - 40 - + COALESCE ( - 44, + 8, COALESCE ( - 91, - 64 ) + - 42 * COUNT( * ) ) * + 4 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-1731
SELECT - 40 - + COALESCE ( - 44, + 8, COALESCE ( - 91, - 64 ) + - 42 * COUNT ( * ) ) * + 4 AS col0
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1732
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT + 11 + + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1733
SELECT + 11 + + COUNT ( * ) AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1734
SELECT + 49 * 89 - + MAX( ALL - 96 ) - + 29 + - 76, 77 + + + CAST( NULL AS SIGNED ) + - - 61 AS col2
----
4352
NULL

skipif mysql # not compatible
query II rowsort label-1734
SELECT + 49 * 89 - + MAX ( ALL - 96 ) - + 29 + - 76, 77 + + + CAST ( NULL AS INTEGER ) + - - 61 AS col2
----
4352
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1735
SELECT + COUNT( * ) DIV + - COUNT( * ) AS col2
----
-1

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

query I rowsort
SELECT CASE - 5 WHEN - 56 THEN 5 + 55 ELSE - 90 END
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT MIN( - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-1737
SELECT MIN ( - 78 ) AS col2
----
-78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1739
SELECT + 86 * - COALESCE ( + CAST( NULL AS SIGNED ), - 27 ) * + 66 + + NULLIF ( + - 48, - - COALESCE ( - 98, + + 97 ) ) * + + MIN( - + 48 ) + - + 35, NULLIF ( + + 8, + - CASE + - 17 WHEN + 20 THEN + - 70 ELSE NULL END ) + - 54 * - + COUNT( * ) + 56 DIV + 96 AS col2
----
155521
62

skipif mysql # not compatible
query II rowsort label-1739
SELECT + 86 * - COALESCE ( + CAST ( NULL AS INTEGER ), - 27 ) * + 66 + + NULLIF ( + - 48, - - COALESCE ( - 98, + + 97 ) ) * + + MIN ( - + 48 ) + - + 35, NULLIF ( + + 8, + - CASE + - 17 WHEN + 20 THEN + - 70 ELSE NULL END ) + - 54 * - + COUNT ( * ) + 56 / + 96 AS col2
----
155521
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT COUNT( ALL - - 27 ) * - - 71 + + + 20 * + COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1740
SELECT COUNT ( ALL - - 27 ) * - - 71 + + + 20 * + COUNT ( * ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT - - ( + - NULLIF ( - COUNT( * ), - + COUNT( * ) ) ) + + + COUNT( * ) * ( 38 ) + - COUNT( + NULLIF ( - 28, + + ( + + 17 ) * - - ( + 17 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT - - ( + - NULLIF ( - COUNT ( * ), - + COUNT ( * ) ) ) + + + COUNT ( * ) * ( 38 ) + - COUNT ( + NULLIF ( - 28, + + ( + + 17 ) * - - ( + 17 ) ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - 70, - + 53, - + NULLIF ( + 87, 2 ) + - + 18 )
----
70

query I rowsort
SELECT + 46 * 67
----
3082

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

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

query I rowsort
SELECT - ( - ( - 1 ) )
----
-1

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

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

query I rowsort
SELECT - 5 + ( 45 ) + + 94 * - + ( + 7 ) + + - 42
----
-660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1748
SELECT ALL + + CAST( NULL AS SIGNED ) - AVG ( ALL 71 ), 52 * + NULLIF ( - 21, - + 42 ) AS col2
----
NULL
-1092

skipif mysql # not compatible
query II rowsort label-1748
SELECT ALL + + CAST ( NULL AS INTEGER ) - AVG ( ALL 71 ), 52 * + NULLIF ( - 21, - + 42 ) AS col2
----
NULL
-1092

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1749
SELECT ALL NULLIF ( - COUNT( * ), - + 30 ) AS col2, - COUNT( * ) - - 49 + COUNT( * ) + 24 + 30 + - 32 DIV ( ( + 69 ) ) AS col2
----
-1
103

skipif mysql # not compatible
query II rowsort label-1749
SELECT ALL NULLIF ( - COUNT ( * ), - + 30 ) AS col2, - COUNT ( * ) - - 49 + COUNT ( * ) + 24 + 30 + - 32 / ( ( + 69 ) ) AS col2
----
-1
103

query I rowsort
SELECT - + ( - 92 ) + + + 33
----
125

query II rowsort
SELECT DISTINCT + 5, + ( + 24 ) AS col2
----
5
24

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

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 59 * - 32 + COUNT ( * ) AS col1
----
-1887

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT + 7 + - 6 DIV - 45 - ( 17 ) - 6 * + 57 * + + 38 AS col0
----
-13006

skipif mysql # not compatible
query I rowsort label-1753
SELECT + 7 + - 6 / - 45 - ( 17 ) - 6 * + 57 * + + 38 AS col0
----
-13006

onlyif mysql # DIV for integer division: 
query II rowsort label-1754
SELECT - 77 DIV + 91 AS col1, 7
----
0
7

skipif mysql # not compatible
query II rowsort label-1754
SELECT - 77 / + 91 AS col1, 7
----
0
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT ALL - COALESCE ( + + 91, + 32 / - 10 ) / 92 + + 64 * - COUNT( * ) * + - 35 * - COUNT( * ) * 93 - CASE - - 66 WHEN 36 THEN - COUNT( * ) / - 20 * 69 END + CAST( - 11 AS SIGNED ) * ( + 98 ) * COUNT( * ) - ( + + ( + 24 ) ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL - COALESCE ( + + 91, + 32 / - 10 ) / 92 + + 64 * - COUNT ( * ) * + - 35 * - COUNT ( * ) * 93 - CASE - - 66 WHEN 36 THEN - COUNT ( * ) / - 20 * 69 END + CAST ( - 11 AS INTEGER ) * ( + 98 ) * COUNT ( * ) - ( + + ( + 24 ) ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1756
SELECT - 53 * + 95, + CASE - + COUNT( * ) WHEN - - NULLIF ( + 81, - COUNT( * ) ) THEN - 9 * - 96 END + + + 67 AS col0
----
-5035
NULL

skipif mysql # not compatible
query II rowsort label-1756
SELECT - 53 * + 95, + CASE - + COUNT ( * ) WHEN - - NULLIF ( + 81, - COUNT ( * ) ) THEN - 9 * - 96 END + + + 67 AS col0
----
-5035
NULL

query I rowsort
SELECT ALL ( + 50 ) * - + 63 AS col2
----
-3150

query I rowsort
SELECT ALL + CASE - 88 WHEN + 10 THEN NULL ELSE - 65 END
----
-65

query I rowsort
SELECT + NULLIF ( 51, - 15 )
----
51

query I rowsort
SELECT - 17 * 74 * + + COALESCE ( 36, 48 ) AS col1
----
-45288

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT + NULLIF ( 22, - + 65 + - CASE - 13 WHEN - 49 THEN 0 * 98 + - - COALESCE ( 17, + 64 ) - - CAST( NULL AS SIGNED ) WHEN + 71 THEN NULL WHEN - 77 * 98 * - 12 * + 35 * + + 79 - 90 - + 18 - - 90 + - AVG ( - 72 ) / + 81 THEN 69 * + CASE - + 14 WHEN - - ( - 99 ) * + COUNT( * ) * ( + 31 ) THEN NULL WHEN + COUNT( * ) * - + ( - + 64 ) THEN + 15 WHEN + + CAST( NULL AS SIGNED ) / 94 THEN NULL END * + ( - ( + + 27 ) ) + - SUM( ALL + CAST( + 83 AS SIGNED ) ) ELSE - CAST( NULL AS SIGNED ) END )
----
22

skipif mysql # not compatible
query I rowsort label-1762
SELECT + NULLIF ( 22, - + 65 + - CASE - 13 WHEN - 49 THEN 0 * 98 + - - COALESCE ( 17, + 64 ) - - CAST ( NULL AS INTEGER ) WHEN + 71 THEN NULL WHEN - 77 * 98 * - 12 * + 35 * + + 79 - 90 - + 18 - - 90 + - AVG ( - 72 ) / + 81 THEN 69 * + CASE - + 14 WHEN - - ( - 99 ) * + COUNT ( * ) * ( + 31 ) THEN NULL WHEN + COUNT ( * ) * - + ( - + 64 ) THEN + 15 WHEN + + CAST ( NULL AS INTEGER ) / 94 THEN NULL END * + ( - ( + + 27 ) ) + - SUM ( ALL + CAST ( + 83 AS INTEGER ) ) ELSE - CAST ( NULL AS INTEGER ) END )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT 67 + + MAX( DISTINCT - 83 ) + 38 * + 21
----
782

skipif mysql # not compatible
query I rowsort label-1763
SELECT 67 + + MAX ( DISTINCT - 83 ) + 38 * + 21
----
782

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1765
SELECT ALL + CAST( NULL AS SIGNED ) + + CASE - NULLIF ( 14, + CASE - 94 WHEN 12 THEN - + 16 * CAST( NULL AS SIGNED ) * + 99 + 99 ELSE - 62 END ) WHEN + + COALESCE ( - - 50, + + 93 + 15 * + 93 ) + + MIN( DISTINCT - - 84 ) THEN - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + CAST ( NULL AS INTEGER ) + + CASE - NULLIF ( 14, + CASE - 94 WHEN 12 THEN - + 16 * CAST ( NULL AS INTEGER ) * + 99 + 99 ELSE - 62 END ) WHEN + + COALESCE ( - - 50, + + 93 + 15 * + 93 ) + + MIN ( DISTINCT - - 84 ) THEN - + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 18 + 34 * - 28
----
-934

query I rowsort
SELECT ( + + 56 ) * + 89 * - 34 * + 86
----
-14573216

query I rowsort
SELECT 47 - - ( + 63 ) col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL 61 + + 74 * - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL 61 + + 74 * - COUNT ( * )
----
-13

query II rowsort
SELECT NULLIF ( - - ( + 48 ), 53 ) * + 71 + + COALESCE ( + 27, 76 ) + 81, + 93 AS col2
----
3516
93

query II rowsort
SELECT ALL + 89 + + + 64 AS col1, + 45
----
153
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1772
SELECT 0 * + - 92 AS col2, + 88 + - + COALESCE ( + COUNT( * ), 51 ) AS col2
----
0
87

skipif mysql # not compatible
query II rowsort label-1772
SELECT 0 * + - 92 AS col2, + 88 + - + COALESCE ( + COUNT ( * ), 51 ) AS col2
----
0
87

query I rowsort
SELECT ALL - 14 * - 37 + + - 16
----
502

onlyif mysql # aggregate syntax: 
query II rowsort label-1774
SELECT DISTINCT - MAX( DISTINCT + 91 ) - + + 22 * + 97 AS col0, + CASE - - 95 WHEN + 49 THEN - 26 END + + - 69 AS col0
----
-2225
NULL

skipif mysql # not compatible
query II rowsort label-1774
SELECT DISTINCT - MAX ( DISTINCT + 91 ) - + + 22 * + 97 AS col0, + CASE - - 95 WHEN + 49 THEN - 26 END + + - 69 AS col0
----
-2225
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT ALL 63 - COALESCE ( - - 85, + CAST( NULL AS SIGNED ) * + COUNT( * ), 73 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL 63 - COALESCE ( - - 85, + CAST ( NULL AS INTEGER ) * + COUNT ( * ), 73 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT MAX( 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1776
SELECT MAX ( 29 ) AS col1
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT CASE - AVG ( DISTINCT + 90 ) WHEN + 78 THEN + - ( + - 70 ) END * - MIN( DISTINCT - + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT CASE - AVG ( DISTINCT + 90 ) WHEN + 78 THEN + - ( + - 70 ) END * - MIN ( DISTINCT - + 97 )
----
NULL

query I rowsort
SELECT + 60 + - 45 + 27 + 27
----
69

query I rowsort
SELECT - ( + - 55 ) col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT COALESCE ( + + 74, - 82 + 12 * ( - 54 ) + - 84 + - 51 * + 14, - 28 * - + 68 + - - 51 * 34 * - + COUNT( ALL + + 82 ), + 80 * - + 54 - - 8 ) + 30 * - 91 * 26
----
-70906

skipif mysql # not compatible
query I rowsort label-1781
SELECT COALESCE ( + + 74, - 82 + 12 * ( - 54 ) + - 84 + - 51 * + 14, - 28 * - + 68 + - - 51 * 34 * - + COUNT ( ALL + + 82 ), + 80 * - + 54 - - 8 ) + 30 * - 91 * 26
----
-70906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1782
SELECT 48 * + - 56 * - 63 * + + 35 - COUNT( * ) DIV - NULLIF ( + 30, + - 37 DIV - - 41 ) * 89 + + 49 AS col2
----
5927089

skipif mysql # not compatible
query I rowsort label-1782
SELECT 48 * + - 56 * - 63 * + + 35 - COUNT ( * ) / - NULLIF ( + 30, + - 37 / - - 41 ) * 89 + + 49 AS col2
----
5927089

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT DISTINCT + + 45 * COALESCE ( + - 25, - - ( COUNT( ALL - - ( - + 14 ) ) ) ) col0
----
-1125

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT + + 45 * COALESCE ( + - 25, - - ( COUNT ( ALL - - ( - + 14 ) ) ) ) col0
----
-1125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1784
SELECT ALL 49 col0, 41 + + 79 DIV - 37 * + + COUNT( * ) AS col1
----
49
39

skipif mysql # not compatible
query II rowsort label-1784
SELECT ALL 49 col0, 41 + + 79 / - 37 * + + COUNT ( * ) AS col1
----
49
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT 26 + + MIN( DISTINCT - 24 ) * - SUM( DISTINCT 97 ) AS col2
----
2354

skipif mysql # not compatible
query I rowsort label-1785
SELECT 26 + + MIN ( DISTINCT - 24 ) * - SUM ( DISTINCT 97 ) AS col2
----
2354

query I rowsort
SELECT 32 * + 59 AS col1
----
1888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1787
SELECT 36 + + 32 + 3 - + 4 * - + CAST( NULL AS SIGNED ) * ( 72 ) * ( + - 73 ) + - + 46 + + 7 / + - COUNT( * ) * - + 74 + + + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT 36 + + 32 + 3 - + 4 * - + CAST ( NULL AS INTEGER ) * ( 72 ) * ( + - 73 ) + - + 46 + + 7 / + - COUNT ( * ) * - + 74 + + + 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT DISTINCT - ( + + 67 ) * + MAX( ALL 41 ) AS col2
----
-2747

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT - ( + + 67 ) * + MAX ( ALL 41 ) AS col2
----
-2747

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT 52 DIV 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-1789
SELECT 52 / 89 col0
----
0

query II rowsort
SELECT + 16 AS col2, - 35 AS col1
----
16
-35

query II rowsort
SELECT 42 AS col2, + 92 * + 43
----
42
3956

query I rowsort
SELECT 32 + - 86 - - 43 * + 26
----
1064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT ALL + 31 + - - 8 + - + MIN( + CAST( NULL AS SIGNED ) ) * - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + 31 + - - 8 + - + MIN ( + CAST ( NULL AS INTEGER ) ) * - 64 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT 41 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT 41 / - 42
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1795
SELECT ALL - CAST( NULL AS SIGNED ) + 60 / + 19, - 48 AS col2
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-1795
SELECT ALL - CAST ( NULL AS INTEGER ) + 60 / + 19, - 48 AS col2
----
NULL
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT ALL + 4 + + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL + 4 + + + COUNT ( * )
----
5

query I rowsort
SELECT 67 + 35 AS col0
----
102

query I rowsort
SELECT ALL - NULLIF ( - 85, - 64 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT 5 * - CAST( NULL AS SIGNED ) + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1799
SELECT 5 * - CAST ( NULL AS INTEGER ) + - 62 AS col0
----
NULL

query I rowsort
SELECT 69 * - + 21 - 23 col2
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ( + + 95 ) + - 2 * + COALESCE ( - 94, COUNT( DISTINCT - + 35 ), 33 - ( - + SUM( 99 ) ) * - 23 )
----
283

skipif mysql # not compatible
query I rowsort label-1801
SELECT ( + + 95 ) + - 2 * + COALESCE ( - 94, COUNT ( DISTINCT - + 35 ), 33 - ( - + SUM ( 99 ) ) * - 23 )
----
283

query I rowsort
SELECT DISTINCT - 76 * + 95
----
-7220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT DISTINCT - + 81 - - 46 + - + 14 + - 17 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT - + 81 - - 46 + - + 14 + - 17 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 85 - + 81 + 53 - - 0 AS col2
----
57

query I rowsort
SELECT 61 + + - 81 * 2 * - 16 * + 80 + - ( 35 ) AS col0
----
207386

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT 94 DIV - 46 + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1807
SELECT 94 / - 46 + + COUNT ( * ) AS col2
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-1809
SELECT - MIN ( - 52 )
----
52

query I rowsort
SELECT 71 + 90 * + 42 * + - 69
----
-260749

query I rowsort
SELECT ( - - 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT 30 + + - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1812
SELECT 30 + + - COUNT ( * ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT - 67 DIV + ( + - 28 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1813
SELECT - 67 / + ( + - 28 ) AS col2
----
2

query I rowsort
SELECT ALL NULLIF ( - + 13, + 86 ) * + 74
----
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT - AVG ( - - 13 ) * - 70 - - - CASE 70 WHEN - 42 THEN - + 48 WHEN + - SUM( DISTINCT - 48 ) THEN 12 * 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT - AVG ( - - 13 ) * - 70 - - - CASE 70 WHEN - 42 THEN - + 48 WHEN + - SUM ( DISTINCT - 48 ) THEN 12 * 46 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL + SUM( ALL 78 ) * 31 col0
----
2418

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL + SUM ( ALL 78 ) * 31 col0
----
2418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1817
SELECT CAST( NULL AS SIGNED ) + + COUNT( ALL 6 ) AS col2, SUM( DISTINCT - 16 ) * + 62 * - 76 + 42 AS col0
----
NULL
75434

skipif mysql # not compatible
query II rowsort label-1817
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( ALL 6 ) AS col2, SUM ( DISTINCT - 16 ) * + 62 * - 76 + 42 AS col0
----
NULL
75434

query I rowsort
SELECT DISTINCT 88 + 10 AS col1
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1819
SELECT 26 - + 66 / ( - + 37 ) + - - CAST( NULL AS DECIMAL ) * - 80 AS col0, + 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-1819
SELECT 26 - + 66 / ( - + 37 ) + - - CAST ( NULL AS REAL ) * - 80 AS col0, + 91
----
NULL
91

query I rowsort
SELECT + 12 * - - 30 AS col0
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1821
SELECT - 18 + - + 48 + + COALESCE ( + 90, - 64 ) DIV - 32 AS col1, - 96 * - 91 - + + COUNT( * ) + + 18
----
-68
8753

skipif mysql # not compatible
query II rowsort label-1821
SELECT - 18 + - + 48 + + COALESCE ( + 90, - 64 ) / - 32 AS col1, - 96 * - 91 - + + COUNT ( * ) + + 18
----
-68
8753

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

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

query II rowsort
SELECT DISTINCT + 83, 76 * - 76 col1
----
83
-5776

query I rowsort
SELECT - 82 + 91 AS col1
----
9

query I rowsort
SELECT DISTINCT + 17 * 36 * - 60 * + 31 * + 23 + - 83 AS col2
----
-26181443

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + MIN( 3 ) * 43 + - 37 + + - 70 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1827
SELECT + MIN ( 3 ) * 43 + - 37 + + - 70 AS col0
----
22

query I rowsort
SELECT DISTINCT 99 * - 18 + - + 29
----
-1811

query I rowsort
SELECT + 46 * - 71 * + 46
----
-150236

query II rowsort
SELECT + CASE 67 WHEN + + 58 * + - 84 THEN 41 ELSE - + 57 END AS col0, 29 * + 70
----
-57
2030

query I rowsort
SELECT COALESCE ( 22, + - 78 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1832
SELECT - CAST( NULL AS SIGNED ) + - + 34 * - + CASE + 45 WHEN + 89 THEN 74 END, 96 + - + 18 + 96 AS col0
----
NULL
174

skipif mysql # not compatible
query II rowsort label-1832
SELECT - CAST ( NULL AS INTEGER ) + - + 34 * - + CASE + 45 WHEN + 89 THEN 74 END, 96 + - + 18 + 96 AS col0
----
NULL
174

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

skipif mysql # not compatible
query I rowsort label-1833
SELECT - COUNT ( ALL + 22 ) * + 88 AS col1
----
-88

query I rowsort
SELECT - 4 + 22 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT DISTINCT + + 58 DIV + 63 + 61
----
61

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT + + 58 / + 63 + 61
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT DISTINCT - MAX( - + 47 ) * + MAX( ALL 92 ) - - CAST( 28 AS SIGNED )
----
4352

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT - MAX ( - + 47 ) * + MAX ( ALL 92 ) - - CAST ( 28 AS INTEGER )
----
4352

query I rowsort
SELECT - 39 * - 97 * 54
----
204282

query I rowsort
SELECT ALL + - COALESCE ( - 69, - 19 + + 56 * - - 62 + 19 * - 85 ) * 21
----
1449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1839
SELECT ALL + - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1839
SELECT ALL + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

query I rowsort
SELECT ALL - 75 * + + 24 * + 48 * - 88
----
7603200

query II rowsort
SELECT DISTINCT + - 41 AS col1, 35 + - 42 AS col1
----
-41
-7

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

query I rowsort
SELECT - NULLIF ( - 33, + 27 ) - - - 53 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1844
SELECT + - 37 * + 39 - - NULLIF ( 45, 83 ) + + COUNT( * ) * + - ( + 45 ) * - 4 AS col0, - SUM( ALL + 11 )
----
-1218
-11

skipif mysql # not compatible
query II rowsort label-1844
SELECT + - 37 * + 39 - - NULLIF ( 45, 83 ) + + COUNT ( * ) * + - ( + 45 ) * - 4 AS col0, - SUM ( ALL + 11 )
----
-1218
-11

query I rowsort
SELECT - 28 + + 70 col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL - + 4 * MIN( ALL - 55 )
----
220

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL - + 4 * MIN ( ALL - 55 )
----
220

query I rowsort
SELECT - 37 * + 25 - - - 83 AS col2
----
-1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT - - 53 * - + COALESCE ( + - 24, - 28 * + COUNT( * ) * + + CAST( NULL AS SIGNED ) - + 55 + + 29 * 24 + CAST( NULL AS SIGNED ) + + CAST( - 96 AS SIGNED ) * 4 + - ( + 83 ) ) + + 96 * + 14 * - + NULLIF ( + + CAST( NULL AS SIGNED ), - 51 ) + - + 79 * 50 + - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT - - 53 * - + COALESCE ( + - 24, - 28 * + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) - + 55 + + 29 * 24 + CAST ( NULL AS INTEGER ) + + CAST ( - 96 AS INTEGER ) * 4 + - ( + 83 ) ) + + 96 * + 14 * - + NULLIF ( + + CAST ( NULL AS INTEGER ), - 51 ) + - + 79 * 50 + - 97 AS col1
----
NULL

query I rowsort
SELECT - 55 * - 85 AS col2
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - 70 * 80 * + COUNT( * ) + 34 + - 69 - + 91 + - 50 + 48
----
-5728

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - 70 * 80 * + COUNT ( * ) + 34 + - 69 - + 91 + - 50 + 48
----
-5728

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT + - ( MIN( DISTINCT + - 34 ) ) - - 35 col2
----
69

skipif mysql # not compatible
query I rowsort label-1851
SELECT + - ( MIN ( DISTINCT + - 34 ) ) - - 35 col2
----
69

query I rowsort
SELECT + + 10 - 56 AS col1
----
-46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT + 1 DIV - 11 * 53 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-1854
SELECT + 1 / - 11 * 53 / - 15
----
0

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

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL CAST ( NULL AS INTEGER ) + - - 24 + - 14
----
NULL

query I rowsort
SELECT - 18 + 45
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT - COALESCE ( 17, - 64 * - COUNT( * ), + + 42 + - - 62 )
----
-17

skipif mysql # not compatible
query I rowsort label-1857
SELECT - COALESCE ( 17, - 64 * - COUNT ( * ), + + 42 + - - 62 )
----
-17

query I rowsort
SELECT - 95 + - 59
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-1859
SELECT ALL COALESCE ( + 4, - - ( + + 33 ) ) * 92 col2, 19 * COUNT( * ) * + 86 * + + 66 AS col1
----
368
107844

skipif mysql # not compatible
query II rowsort label-1859
SELECT ALL COALESCE ( + 4, - - ( + + 33 ) ) * 92 col2, 19 * COUNT ( * ) * + 86 * + + 66 AS col1
----
368
107844

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1860
SELECT + COUNT( * ) DIV 75, 86 DIV MAX( 5 ) * + 37 + - CASE + 61 WHEN - + 62 DIV 46 THEN 5 END - + 60 + + - MAX( + NULLIF ( - 38, - 95 ) ) - + - COUNT( * ) * MIN( DISTINCT - - NULLIF ( + - 44, + 44 ) ) * + MAX( DISTINCT - 3 ) * + - CASE + 24 WHEN - 60 - 34 THEN - COUNT( ALL 57 ) DIV + + 84 DIV 59 * + + 19 * MAX( 24 ) DIV - ( + 57 ) + + 53 END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1860
SELECT + COUNT ( * ) / 75, 86 / MAX ( 5 ) * + 37 + - CASE + 61 WHEN - + 62 / 46 THEN 5 END - + 60 + + - MAX ( + NULLIF ( - 38, - 95 ) ) - + - COUNT ( * ) * MIN ( DISTINCT - - NULLIF ( + - 44, + 44 ) ) * + MAX ( DISTINCT - 3 ) * + - CASE + 24 WHEN - 60 - 34 THEN - COUNT ( ALL 57 ) / + + 84 / 59 * + + 19 * MAX ( 24 ) / - ( + 57 ) + + 53 END AS col2
----
0
NULL

query I rowsort
SELECT + 77 - + 12 AS col1
----
65

query I rowsort
SELECT - NULLIF ( + 36, - 15 * + 69 * - - 0 )
----
-36

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

query I rowsort
SELECT ALL ( + 20 ) * 88 AS col0
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL 46 * CASE - 82 WHEN 27 + + 22 THEN NULL WHEN + - 2 THEN - 70 - + 95 - - 1 + + - COUNT( * ) * + 39 + - - 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL 46 * CASE - 82 WHEN 27 + + 22 THEN NULL WHEN + - 2 THEN - 70 - + 95 - - 1 + + - COUNT ( * ) * + 39 + - - 97 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT - CASE 65 WHEN + - 88 * 97 * + + ( - COUNT( * ) ) + + + 20 / - COALESCE ( - 60, 58 ) - + - ( + + 63 ) + 89 + + 81 THEN - 20 * + COUNT( * ) * ( 57 ) WHEN - 54 * COUNT( * ) + COUNT( ALL + - 37 ) + - 97 * - 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT - CASE 65 WHEN + - 88 * 97 * + + ( - COUNT ( * ) ) + + + 20 / - COALESCE ( - 60, 58 ) - + - ( + + 63 ) + 89 + + 81 THEN - 20 * + COUNT ( * ) * ( 57 ) WHEN - 54 * COUNT ( * ) + COUNT ( ALL + - 37 ) + - 97 * - 21 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT - 32 DIV - 74 + - 82
----
-82

skipif mysql # not compatible
query I rowsort label-1867
SELECT - 32 / - 74 + - 82
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT CAST( 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-1868
SELECT CAST ( 7 AS INTEGER )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1869
SELECT DISTINCT 63 DIV + COUNT( * ) - + 40 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT 63 / + COUNT ( * ) - + 40 AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT DISTINCT + NULLIF ( ( - - 47 ), ( + - 55 ) + - + 9 + 93 * + 32 * - + CAST( 26 AS SIGNED ) )
----
47

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT + NULLIF ( ( - - 47 ), ( + - 55 ) + - + 9 + 93 * + 32 * - + CAST ( 26 AS INTEGER ) )
----
47

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1872
SELECT CAST( NULL AS DECIMAL ) * 33 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT CAST ( NULL AS REAL ) * 33 + - 91
----
NULL

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

query I rowsort
SELECT DISTINCT + - 72 AS col2
----
-72

query I rowsort
SELECT DISTINCT + - 11 AS col1
----
-11

query I rowsort
SELECT + NULLIF ( + 12, - 18 * + - 87 / 73 * + NULLIF ( - 44, 47 ) + + 78 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1877
SELECT - 60 + - - CAST( NULL AS SIGNED ) + - 95 + 94 * 97 * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT - 60 + - - CAST ( NULL AS INTEGER ) + - 95 + 94 * 97 * - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - ( + - 40 ) * - 86 AS col0
----
-3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT + CAST( + COUNT( * ) AS SIGNED ) * + 55 + 10
----
65

skipif mysql # not compatible
query I rowsort label-1879
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * + 55 + 10
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT - ( COALESCE ( + + 27, COUNT( * ) ) ) * - MIN( - 63 )
----
-1701

skipif mysql # not compatible
query I rowsort label-1880
SELECT - ( COALESCE ( + + 27, COUNT ( * ) ) ) * - MIN ( - 63 )
----
-1701

query I rowsort
SELECT - - 89 + - + 23
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1882
SELECT DISTINCT + CASE - - 51 WHEN ( + - COUNT( DISTINCT 47 ) ) THEN - 15 + - 5 * 98 * - - COUNT( * ) * + 27 + ( 70 ) + - MAX( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) WHEN - 27 / - 94 + - 70 * + + 82 * - + 90 * + 50 * + + 53 THEN - 24 / - 31 WHEN + 82 + 78 THEN NULL END * - + 55 + + 7 + 23 * + 90 + - - 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + CASE - - 51 WHEN ( + - COUNT ( DISTINCT 47 ) ) THEN - 15 + - 5 * 98 * - - COUNT ( * ) * + 27 + ( 70 ) + - MAX ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) WHEN - 27 / - 94 + - 70 * + + 82 * - + 90 * + 50 * + + 53 THEN - 24 / - 31 WHEN + 82 + 78 THEN NULL END * - + 55 + + 7 + 23 * + 90 + - - 32 col1
----
NULL

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

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

query I rowsort
SELECT ALL - + 51 * - 92 + - 72 AS col1
----
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT CASE + CASE CAST( NULL AS SIGNED ) WHEN 52 - + + 68 THEN + - 11 / - 44 WHEN - AVG ( DISTINCT + - 35 ) THEN NULL END WHEN COUNT( * ) THEN - - 46 / 66 END + - - 66 + + + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT CASE + CASE CAST ( NULL AS INTEGER ) WHEN 52 - + + 68 THEN + - 11 / - 44 WHEN - AVG ( DISTINCT + - 35 ) THEN NULL END WHEN COUNT ( * ) THEN - - 46 / 66 END + - - 66 + + + 13 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1886
SELECT ALL 99 AS col1, + 3 * - CAST( NULL AS SIGNED ) + + + 91 - 12 AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-1886
SELECT ALL 99 AS col1, + 3 * - CAST ( NULL AS INTEGER ) + + + 91 - 12 AS col1
----
99
NULL

query I rowsort
SELECT DISTINCT + 90 * 91 AS col2
----
8190

query I rowsort
SELECT 35 * + 42 AS col2
----
1470

query I rowsort
SELECT ALL + 72 + + 73
----
145

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

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

query I rowsort
SELECT DISTINCT + 91 * - - 20 AS col0
----
1820

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT MIN( 39 ) * - 97, COUNT( + 40 ) AS col0
----
-3783
1

skipif mysql # not compatible
query II rowsort label-1892
SELECT MIN ( 39 ) * - 97, COUNT ( + 40 ) AS col0
----
-3783
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1893
SELECT MIN( CAST( - 88 AS SIGNED ) ) + - + 59, + 97 AS col0
----
-147
97

skipif mysql # not compatible
query II rowsort label-1893
SELECT MIN ( CAST ( - 88 AS INTEGER ) ) + - + 59, + 97 AS col0
----
-147
97

query I rowsort
SELECT ALL + 73 + - 44
----
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1896
SELECT CASE 59 WHEN - - CAST( + 33 AS SIGNED ) THEN NULL WHEN + + COALESCE ( - 21, + + 58 ) THEN - 53 * - 57 * 31 + - 71 + + - CAST( NULL AS SIGNED ) * - 21 + + - COALESCE ( 30, 27 ) + - CAST( - 88 AS DECIMAL ) END * 98 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT CASE 59 WHEN - - CAST ( + 33 AS INTEGER ) THEN NULL WHEN + + COALESCE ( - 21, + + 58 ) THEN - 53 * - 57 * 31 + - 71 + + - CAST ( NULL AS INTEGER ) * - 21 + + - COALESCE ( 30, 27 ) + - CAST ( - 88 AS REAL ) END * 98 + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1897
SELECT - 78 AS col1, - SUM( - 11 )
----
-78
11

skipif mysql # not compatible
query II rowsort label-1897
SELECT - 78 AS col1, - SUM ( - 11 )
----
-78
11

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

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

query II rowsort
SELECT - 32 AS col2, + 78 AS col2
----
-32
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT ALL 45 - - 11 * 63 - COUNT( * ) * + + 85 * 49 DIV - - 94 AS col0
----
694

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL 45 - - 11 * 63 - COUNT ( * ) * + + 85 * 49 / - - 94 AS col0
----
694

query I rowsort
SELECT DISTINCT + 29 * + + 46 * - - 46
----
61364

onlyif mysql # DIV for integer division: 
query II rowsort label-1902
SELECT + 90 DIV - - 52 - + 36 AS col2, 9 + + NULLIF ( - - 26, - - 27 + - 73 ) AS col1
----
-35
35

skipif mysql # not compatible
query II rowsort label-1902
SELECT + 90 / - - 52 - + 36 AS col2, 9 + + NULLIF ( - - 26, - - 27 + - 73 ) AS col1
----
-35
35

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

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

query I rowsort
SELECT 66 * 35 col0
----
2310

query I rowsort
SELECT 69 * + + 44
----
3036

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT - 98, - 63 * - COUNT( * ) * + 70 * + + ( ( + - 7 ) ) AS col2
----
-98
-30870

skipif mysql # not compatible
query II rowsort label-1906
SELECT - 98, - 63 * - COUNT ( * ) * + 70 * + + ( ( + - 7 ) ) AS col2
----
-98
-30870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1907
SELECT - COUNT( * ) DIV 72 DIV + - 1 + + 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1907
SELECT - COUNT ( * ) / 72 / + - 1 + + 8 AS col2
----
8

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

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

query II rowsort
SELECT DISTINCT - 66 AS col0, + ( 57 ) * - - 76
----
-66
4332

query I rowsort
SELECT ALL 63 + - 76
----
-13

query I rowsort
SELECT DISTINCT + 65 * + + 3 AS col0
----
195

query I rowsort
SELECT ALL + - 36 * 87
----
-3132

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

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - - ( - - 46 ) + + ( COUNT ( * ) ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1914
SELECT + 83 AS col1, 24 + + + COUNT( * ) AS col2
----
83
25

skipif mysql # not compatible
query II rowsort label-1914
SELECT + 83 AS col1, 24 + + + COUNT ( * ) AS col2
----
83
25

query I rowsort
SELECT ALL 30 + - 31 * - - 72 AS col1
----
-2202

query II rowsort
SELECT + 5, 67 AS col2
----
5
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1917
SELECT + 67, + 18 * - + MIN( - + 60 ) + + 40 col2
----
67
1120

skipif mysql # not compatible
query II rowsort label-1917
SELECT + 67, + 18 * - + MIN ( - + 60 ) + + 40 col2
----
67
1120

query I rowsort
SELECT + 26 + - 62
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1919
SELECT - COUNT( * ) AS col1, 75 * + 78
----
-1
5850

skipif mysql # not compatible
query II rowsort label-1919
SELECT - COUNT ( * ) AS col1, 75 * + 78
----
-1
5850

query I rowsort
SELECT - - 15 * - - 0 + 63
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1921
SELECT DISTINCT - 31 DIV - + COUNT( * ), + 98 AS col2
----
31
98

skipif mysql # not compatible
query II rowsort label-1921
SELECT DISTINCT - 31 / - + COUNT ( * ), + 98 AS col2
----
31
98

query I rowsort
SELECT ALL - 14 * - 17
----
238

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT DISTINCT - 41 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT - 41 / - 77
----
0

query I rowsort
SELECT 51 + - + 40 + + - 47 * - 78 AS col0
----
3677

query I rowsort
SELECT 60 + + - ( + 13 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT COUNT( DISTINCT - ( - CAST( - + 42 AS SIGNED ) ) ) - CASE ( 78 ) WHEN - 81 THEN - + 65 END + - COUNT( * ) / 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT COUNT ( DISTINCT - ( - CAST ( - + 42 AS INTEGER ) ) ) - CASE ( 78 ) WHEN - 81 THEN - + 65 END + - COUNT ( * ) / 85 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 42 * - 23 AS col1
----
-966

query I rowsort
SELECT 86 * + 34 * - + 22
----
-64328

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT DISTINCT + 42 * - - COUNT( ALL + 36 )
----
42

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT + 42 * - - COUNT ( ALL + 36 )
----
42

query I rowsort
SELECT DISTINCT 93 col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT ALL MIN( COALESCE ( + 53, - - 76 + 5 + - - 57 ) ) col1
----
53

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL MIN ( COALESCE ( + 53, - - 76 + 5 + - - 57 ) ) col1
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-1932
SELECT 76 DIV - 66, + 44 AS col2
----
-1
44

skipif mysql # not compatible
query II rowsort label-1932
SELECT 76 / - 66, + 44 AS col2
----
-1
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1933
SELECT + 28 * - + CAST( + 61 AS SIGNED )
----
-1708

skipif mysql # not compatible
query I rowsort label-1933
SELECT + 28 * - + CAST ( + 61 AS INTEGER )
----
-1708

query I rowsort
SELECT 4 * - - 13
----
52

query I rowsort
SELECT ALL + 77 * 80 - 96 + - + 95 AS col0
----
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL + 26 * - 15 * - COUNT( * ) * + 74 + 83
----
28943

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL + 26 * - 15 * - COUNT ( * ) * + 74 + 83
----
28943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT ALL - + CAST( NULL AS SIGNED ) * 79 * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL - + CAST ( NULL AS INTEGER ) * 79 * + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT + 44 + - COUNT( * ) + CASE + + COALESCE ( - 20, + MIN( ALL 49 ) ) WHEN + 15 THEN 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT + 44 + - COUNT ( * ) + CASE + + COALESCE ( - 20, + MIN ( ALL 49 ) ) WHEN + 15 THEN 85 END
----
NULL

query I rowsort
SELECT ALL - 40 * - 10 + 3 AS col1
----
403

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1940
SELECT - CAST( NULL AS DECIMAL ) * NULLIF ( - - 17, - + 61 * + 97 ) * - 72 + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT - CAST ( NULL AS REAL ) * NULLIF ( - - 17, - + 61 * + 97 ) * - 72 + 34 AS col1
----
NULL

query I rowsort
SELECT ( 53 ) * + 36 + 48 * 74 AS col0
----
5460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT + + 11 * + COUNT( * ) + - COALESCE ( + - COUNT( * ), + ( - + 73 ) ) col1
----
12

skipif mysql # not compatible
query I rowsort label-1943
SELECT + + 11 * + COUNT ( * ) + - COALESCE ( + - COUNT ( * ), + ( - + 73 ) ) col1
----
12

query I rowsort
SELECT ALL 77 * - 57
----
-4389

query I rowsort
SELECT + 46 * 28 * 17 + 90
----
21986

query I rowsort
SELECT + 29 * 37 col0
----
1073

query I rowsort
SELECT + 35 * + 32
----
1120

query I rowsort
SELECT ALL 41 * 53 * - 61
----
-132553

query II rowsort
SELECT 4 AS col0, 60
----
4
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - 88 + - MAX( ALL + - 40 ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-1951
SELECT - 88 + - MAX ( ALL + - 40 ) col0
----
-48

query I rowsort
SELECT + 99 * - 74 AS col0
----
-7326

query I rowsort
SELECT - 5 * 96
----
-480

onlyif mysql # aggregate syntax: 
query II rowsort label-1954
SELECT ALL + MAX( ALL ( ( - 19 ) ) ) - 7, - 63 col1
----
-26
-63

skipif mysql # not compatible
query II rowsort label-1954
SELECT ALL + MAX ( ALL ( ( - 19 ) ) ) - 7, - 63 col1
----
-26
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT DISTINCT MIN( - 14 ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT MIN ( - 14 ) col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT ALL - SUM( ALL 0 ) DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - SUM ( ALL 0 ) / 96 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT - 45 + - + 76 + 14 + 14 DIV + 45
----
-107

skipif mysql # not compatible
query I rowsort label-1957
SELECT - 45 + - + 76 + 14 + 14 / + 45
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-1958
SELECT ALL - 93 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL - 93 / + - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT DISTINCT MIN( ALL 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT MIN ( ALL 15 ) AS col1
----
15

query I rowsort
SELECT ALL - 84 + + - 68
----
-152

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

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

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

skipif mysql # not compatible
query I rowsort label-1962
SELECT + CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) - - + 89
----
90

query I rowsort
SELECT ALL + 20 * 96
----
1920

query I rowsort
SELECT - 15 + - 53 AS col1
----
-68

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

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL + ( + 69 ) + COUNT ( * ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL - AVG ( ALL + 48 ) * - CASE + 5 * - 51 WHEN 34 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL - AVG ( ALL + 48 ) * - CASE + 5 * - 51 WHEN 34 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 66 + 15
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT ALL + 33 DIV 82 + - 81
----
-81

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + 33 / 82 + - 81
----
-81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1970
SELECT 49 DIV 68 - 22 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1970
SELECT 49 / 68 - 22 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1971
SELECT ALL - CAST( 23 AS SIGNED ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - CAST ( 23 AS INTEGER ) / 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT - 96 DIV 78 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1972
SELECT - 96 / 78 col0
----
-1

query I rowsort
SELECT + 2 * - 65 AS col2
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT ALL CAST( NULL AS SIGNED ) * CAST( 85 AS SIGNED ) - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( 85 AS INTEGER ) - + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT - 46 * NULLIF ( - 19, 45 + COUNT( * ) ) - COALESCE ( + 48 + - 71, + 52 + COALESCE ( - 47 + ( 57 ), + 13 * - 42 ) ) AS col0
----
897

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT - 46 * NULLIF ( - 19, 45 + COUNT ( * ) ) - COALESCE ( + 48 + - 71, + 52 + COALESCE ( - 47 + ( 57 ), + 13 * - 42 ) ) AS col0
----
897

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

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

query I rowsort
SELECT DISTINCT - 32 * - 61
----
1952

query I rowsort
SELECT + COALESCE ( + 81, 4, - 78 )
----
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1980
SELECT CASE + 82 WHEN 67 THEN - MAX( DISTINCT - CAST( COALESCE ( 18, - 45, 54 * - 34 ) AS SIGNED ) ) ELSE 90 END AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1980
SELECT CASE + 82 WHEN 67 THEN - MAX ( DISTINCT - CAST ( COALESCE ( 18, - 45, 54 * - 34 ) AS INTEGER ) ) ELSE 90 END AS col2
----
90

query I rowsort
SELECT - 6 + 64
----
58

query I rowsort
SELECT + 12 * - 81 AS col1
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT - SUM( + 89 ) + 37
----
-52

skipif mysql # not compatible
query I rowsort label-1983
SELECT - SUM ( + 89 ) + 37
----
-52

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

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

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

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

query I rowsort
SELECT + ( - 31 ) - + 87 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL MIN( DISTINCT 95 ) col1
----
95

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL MIN ( DISTINCT 95 ) col1
----
95

query I rowsort
SELECT - ( 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT + 28 + - COUNT( * ) * - 68
----
96

skipif mysql # not compatible
query I rowsort label-1989
SELECT + 28 + - COUNT ( * ) * - 68
----
96

query I rowsort
SELECT + 46 * - ( + 42 ) AS col2
----
-1932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1991
SELECT + 4 + + COALESCE ( 1, CAST( NULL AS SIGNED ) - + NULLIF ( CAST( - 76 AS SIGNED ), + 33 ), 67 DIV + MIN( 60 ) ) DIV - 32
----
4

skipif mysql # not compatible
query I rowsort label-1991
SELECT + 4 + + COALESCE ( 1, CAST ( NULL AS INTEGER ) - + NULLIF ( CAST ( - 76 AS INTEGER ), + 33 ), 67 / + MIN ( 60 ) ) / - 32
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT - CAST( NULLIF ( 93, + 74 ) AS SIGNED ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1992
SELECT - CAST ( NULLIF ( 93, + 74 ) AS INTEGER ) AS col2
----
-93

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

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

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

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

query I rowsort
SELECT - 16 * 95
----
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1996
SELECT DISTINCT 21 + + 58 * COALESCE ( - 29, 17 * + 8, + SUM( 67 ) DIV + ( - SUM( 22 ) - + CAST( NULL AS SIGNED ) ) )
----
-1661

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT 21 + + 58 * COALESCE ( - 29, 17 * + 8, + SUM ( 67 ) / + ( - SUM ( 22 ) - + CAST ( NULL AS INTEGER ) ) )
----
-1661

query I rowsort
SELECT ALL + 91 + + 33 col0
----
124

query I rowsort
SELECT DISTINCT 51 + - 41 * + 74 AS col1
----
-2983

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT 55 + COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT 55 + COUNT ( * ) AS col0
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT + 99 * MAX( ALL 97 + 9 ) AS col0
----
10494

skipif mysql # not compatible
query I rowsort label-2001
SELECT + 99 * MAX ( ALL 97 + 9 ) AS col0
----
10494

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

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + COUNT ( * ) / 96 AS col0
----
0

query I rowsort
SELECT - 66 + - ( - 63 )
----
-3

query I rowsort
SELECT 44 - 33
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT - COUNT( DISTINCT + 48 ) + 82 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2005
SELECT - COUNT ( DISTINCT + 48 ) + 82 AS col1
----
81

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

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

query I rowsort
SELECT ALL - 26 * - 38
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT NULLIF ( - 98, 95 ) * COUNT( * ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-2008
SELECT NULLIF ( - 98, 95 ) * COUNT ( * ) AS col0
----
-98

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

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

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

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - ( MIN ( 10 ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT 81 * - COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT 81 * - COUNT ( * ) AS col0
----
-81

query I rowsort
SELECT 85 * ( + 15 ) AS col2
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL - MIN( DISTINCT - 85 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL - MIN ( DISTINCT - 85 ) col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT - 66 DIV - 33 + - 78 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2014
SELECT - 66 / - 33 + - 78 AS col2
----
-76

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

query I rowsort
SELECT 62 + 85 * 12 AS col1
----
1082

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

skipif mysql # not compatible
query I rowsort label-2017
SELECT 86 + + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT DISTINCT + 10 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT + 10 / 63
----
0

query I rowsort
SELECT 70 * + 86
----
6020

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT DISTINCT + 10 DIV 5
----
2

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT + 10 / 5
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL COUNT( * ) + + + 31 * 33
----
1024

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL COUNT ( * ) + + + 31 * 33
----
1024

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2022
SELECT + 99 * NULLIF ( 86, - CASE WHEN NOT COUNT( * ) BETWEEN 84 AND 54 THEN NULLIF ( - 59, COUNT( * ) ) + CAST( NULL AS DECIMAL ) END ) DIV 48 + 27 * COALESCE ( + 76 * 67, 96 * 80 + 38, 13 * COUNT( * ) )
----
137661

skipif mysql # not compatible
query I rowsort label-2022
SELECT + 99 * NULLIF ( 86, - CASE WHEN NOT COUNT ( * ) BETWEEN 84 AND 54 THEN NULLIF ( - 59, COUNT ( * ) ) + CAST ( NULL AS REAL ) END ) / 48 + 27 * COALESCE ( + 76 * 67, 96 * 80 + 38, 13 * COUNT ( * ) )
----
137661

query I rowsort
SELECT ALL + 92 * + 20 AS col2
----
1840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2024
SELECT COUNT( * ) DIV + NULLIF ( 66, 69 )
----
0

skipif mysql # not compatible
query I rowsort label-2024
SELECT COUNT ( * ) / + NULLIF ( 66, 69 )
----
0

query I rowsort
SELECT DISTINCT + 83 + - + 75 + + 97 AS col2
----
105

query I rowsort
SELECT ALL - 20 + - 5 + + 81
----
56

query I rowsort
SELECT 85 * - 36 AS col2
----
-3060

query I rowsort
SELECT 95 * + 37 AS col1
----
3515

query I rowsort
SELECT 30 + - 36
----
-6

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

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL - COUNT ( * ) + + 97 AS col1
----
96

query I rowsort
SELECT ALL + 66 + 62 AS col2
----
128

query I rowsort
SELECT ALL 0 + 86 * 59 AS col0
----
5074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2033
SELECT DISTINCT + COUNT( * ) + ( 75 ) + + COUNT( * ) DIV COUNT( * )
----
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2034
SELECT 89 + - CAST( NULL AS SIGNED ) * 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT 89 + - CAST ( NULL AS INTEGER ) * 35 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT + 48 + - MIN( ALL 82 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + 48 + - MIN ( ALL 82 ) AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2036
SELECT - 97 + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-2036
SELECT - 97 + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT 38 * 54 DIV 7
----
293

skipif mysql # not compatible
query I rowsort label-2037
SELECT 38 * 54 / 7
----
293

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL + 4 * + COUNT( * ) + 86
----
90

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL + 4 * + COUNT ( * ) + 86
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT - CAST( + 70 AS SIGNED ) - 7
----
-77

skipif mysql # not compatible
query I rowsort label-2039
SELECT - CAST ( + 70 AS INTEGER ) - 7
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2040
SELECT MAX( + 17 ) + - 73 DIV 33
----
15

skipif mysql # not compatible
query I rowsort label-2040
SELECT MAX ( + 17 ) + - 73 / 33
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2041
SELECT DISTINCT + 13 - + COUNT( * ) DIV 99 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT + 13 - + COUNT ( * ) / 99 AS col2
----
13

query I rowsort
SELECT ALL - NULLIF ( 98, - 82 * - 7 )
----
-98

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

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

query I rowsort
SELECT ALL + 44 * 92
----
4048

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT COALESCE ( + + 93, CAST( 55 AS SIGNED ) + 38, + 21 ) - - 4
----
97

skipif mysql # not compatible
query I rowsort label-2046
SELECT COALESCE ( + + 93, CAST ( 55 AS INTEGER ) + 38, + 21 ) - - 4
----
97

query I rowsort
SELECT + ( + - 52 ) * 11 AS col1
----
-572

query I rowsort
SELECT 76 * + 22 col2
----
1672

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT ALL - 28 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL - 28 / 77
----
0

query I rowsort
SELECT ALL 18 * + ( ( + 70 ) )
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL - COUNT( * ) * - + COUNT( ALL - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - COUNT ( * ) * - + COUNT ( ALL - 67 )
----
1

query I rowsort
SELECT CASE - 9 WHEN + AVG ( 77 ) THEN + 89 + NULLIF ( 97, + ( - 57 ) * 20 ) * 75 ELSE NULL END * - 29 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT DISTINCT + 14 + - CAST( 90 AS SIGNED ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT + 14 + - CAST ( 90 AS INTEGER ) col1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2054
SELECT + COUNT( * ) AS col0, 89 + - 32 * 37
----
1
-1095

skipif mysql # not compatible
query II rowsort label-2054
SELECT + COUNT ( * ) AS col0, 89 + - 32 * 37
----
1
-1095

query I rowsort
SELECT 79 * ( 19 )
----
1501

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT ALL + 96 + + 79 + - 6 - 56 DIV 63
----
169

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + 96 + + 79 + - 6 - 56 / 63
----
169

query I rowsort
SELECT 86 - ( + + 67 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2058
SELECT ALL 58 * NULLIF ( COUNT( * ), + AVG ( DISTINCT + 92 ) ) DIV + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL 58 * NULLIF ( COUNT ( * ), + AVG ( DISTINCT + 92 ) ) / + 63 AS col2
----
0

query I rowsort
SELECT ALL 17 + - 53
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT + CASE WHEN ( COUNT( * ) ) <> ( 31 ) THEN + 53 END + 30
----
83

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT + CASE WHEN ( COUNT ( * ) ) <> ( 31 ) THEN + 53 END + 30
----
83

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

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

query I rowsort
SELECT ( + - 19 ) + - 46 AS col0
----
-65

query I rowsort
SELECT ALL + 97 + - + 68 col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT ( + 67 ) + 56 DIV 26
----
69

skipif mysql # not compatible
query I rowsort label-2064
SELECT ( + 67 ) + 56 / 26
----
69

query I rowsort
SELECT ALL - COALESCE ( - 76, + + 84 + 15 ) + 45 * + 68
----
3136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT 85 + - - 52 / + ( + CAST( NULL AS SIGNED ) ) * + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT 85 + - - 52 / + ( + CAST ( NULL AS INTEGER ) ) * + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + 70 * + 12 * + COUNT( * ) + COUNT( * ) * - 69 AS col0
----
771

skipif mysql # not compatible
query I rowsort label-2067
SELECT + 70 * + 12 * + COUNT ( * ) + COUNT ( * ) * - 69 AS col0
----
771

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT COUNT( * ) * + - 13 * - - 88 col0
----
-1144

skipif mysql # not compatible
query I rowsort label-2068
SELECT COUNT ( * ) * + - 13 * - - 88 col0
----
-1144

query I rowsort
SELECT ALL COALESCE ( + ( + NULLIF ( + 18, - 76 ) ), + COALESCE ( CASE WHEN 4 IS NULL THEN - 32 ELSE NULL END, + 25 + 5 ) - 22 )
----
18

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

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL + COUNT ( * ) + + 87 AS col2
----
88

query I rowsort
SELECT ALL + 62 * - 87
----
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT - SUM( 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2072
SELECT - SUM ( 47 ) AS col2
----
-47

query II rowsort
SELECT 63 AS col0, 90 AS col2
----
63
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL - - 58 * - SUM( + - 26 ) * + 92 + 85 AS col1
----
138821

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL - - 58 * - SUM ( + - 26 ) * + 92 + 85 AS col1
----
138821

query I rowsort
SELECT ALL - + 96 - + - 50 col0
----
-46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2077
SELECT - CAST( NULL AS SIGNED ), 10 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-2077
SELECT - CAST ( NULL AS INTEGER ), 10 AS col0
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT - + 70 + ( - + NULLIF ( CASE 98 WHEN + COUNT( * ) THEN NULL WHEN + 9 / - COUNT( * ) THEN - 10 ELSE 97 END, - 43 * 88 ) )
----
-167

skipif mysql # not compatible
query I rowsort label-2078
SELECT - + 70 + ( - + NULLIF ( CASE 98 WHEN + COUNT ( * ) THEN NULL WHEN + 9 / - COUNT ( * ) THEN - 10 ELSE 97 END, - 43 * 88 ) )
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT - + CASE + MAX( DISTINCT + - 52 ) WHEN 81 * 23 THEN - 68 WHEN 77 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT - + CASE + MAX ( DISTINCT + - 52 ) WHEN 81 * 23 THEN - 68 WHEN 77 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL + ( + MAX( DISTINCT - + 39 ) ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + ( + MAX ( DISTINCT - + 39 ) ) col1
----
-39

query II rowsort
SELECT 0 AS col1, 82 + 9 AS col1
----
0
91

query I rowsort
SELECT + - 89 - 16 - 45 AS col1
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-2083
SELECT ALL + 86 col0, 96 + - COUNT( DISTINCT 80 ) + ( + COUNT( * ) + 16 * 90 ) * 80
----
86
115375

skipif mysql # not compatible
query II rowsort label-2083
SELECT ALL + 86 col0, 96 + - COUNT ( DISTINCT 80 ) + ( + COUNT ( * ) + 16 * 90 ) * 80
----
86
115375

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT DISTINCT - NULLIF ( - + 97, + ( COUNT( * ) ) )
----
97

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT - NULLIF ( - + 97, + ( COUNT ( * ) ) )
----
97

query I rowsort
SELECT DISTINCT + 50 col0
----
50

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

query I rowsort
SELECT - 41 * + ( + 66 ) * 39
----
-105534

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT - - COALESCE ( + CAST( NULL AS SIGNED ), + 89 + + 57 ) + - 21
----
125

skipif mysql # not compatible
query I rowsort label-2089
SELECT - - COALESCE ( + CAST ( NULL AS INTEGER ), + 89 + + 57 ) + - 21
----
125

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

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

query I rowsort
SELECT - - NULLIF ( - 76, + 41 ) AS col2
----
-76

query I rowsort
SELECT - + 51 + 76
----
25

query I rowsort
SELECT + 34 - + + 51 * - 16 * 23
----
18802

query I rowsort
SELECT DISTINCT + - 3
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL - 82 * + ( + + CAST( 96 AS SIGNED ) )
----
-7872

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - 82 * + ( + + CAST ( 96 AS INTEGER ) )
----
-7872

query I rowsort
SELECT + - ( 8 ) + - 81
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT COUNT( * ) * 90 + - 7 + + 37
----
120

skipif mysql # not compatible
query I rowsort label-2097
SELECT COUNT ( * ) * 90 + - 7 + + 37
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL COUNT( * ) * - 50 + COUNT( * ) * NULLIF ( 67, COUNT( * ) * - 17 ) + - SUM( ALL + 80 ) * 16 AS col1
----
-1263

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL COUNT ( * ) * - 50 + COUNT ( * ) * NULLIF ( 67, COUNT ( * ) * - 17 ) + - SUM ( ALL + 80 ) * 16 AS col1
----
-1263

query I rowsort
SELECT ALL 29 * 70 + - + 17
----
2013

query I rowsort
SELECT ( + + 81 ) * - 21 + + - 12 AS col0
----
-1713

query I rowsort
SELECT + COALESCE ( + 8, - 81 + + + 30 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL - 66 * - 99 + ( - 84 ) + - MIN( - 33 ) AS col2
----
6483

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - 66 * - 99 + ( - 84 ) + - MIN ( - 33 ) AS col2
----
6483

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT CASE - MIN( 81 ) WHEN + ( - 2 ) + 42 THEN 68 WHEN - 46 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT CASE - MIN ( 81 ) WHEN + ( - 2 ) + 42 THEN 68 WHEN - 46 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL 72 * - + 70 + - - 17 - + - 42 AS col2
----
-4981

query I rowsort
SELECT CASE - 75 WHEN + + 89 THEN + - 35 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2106
SELECT - MAX( - 68 ) * CASE - CAST( + SUM( DISTINCT 65 ) AS SIGNED ) WHEN - 82 THEN + CASE 18 WHEN + 24 * 11 THEN NULL WHEN - 9 * + 17 THEN + 70 * - COUNT( * ) END * + 61 END + 28 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT - MAX ( - 68 ) * CASE - CAST ( + SUM ( DISTINCT 65 ) AS INTEGER ) WHEN - 82 THEN + CASE 18 WHEN + 24 * 11 THEN NULL WHEN - 9 * + 17 THEN + 70 * - COUNT ( * ) END * + 61 END + 28 * 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT - COUNT( * ) * + - 67 + + - 91
----
-24

skipif mysql # not compatible
query I rowsort label-2107
SELECT - COUNT ( * ) * + - 67 + + - 91
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2108
SELECT ALL 64 * 93 AS col0, + COUNT( * ) * + CAST( NULL AS SIGNED ) * 39
----
5952
NULL

skipif mysql # not compatible
query II rowsort label-2108
SELECT ALL 64 * 93 AS col0, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 39
----
5952
NULL

query I rowsort
SELECT + 87 * - 48 AS col1
----
-4176

query I rowsort
SELECT ALL 15 * + - 16 + - 93 * - - 80 * 22 AS col2
----
-163920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT ALL + 73 * + 77 + - + 70 + - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + 73 * + 77 + - + 70 + - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2112
SELECT CASE + 3 WHEN - ( + - AVG ( DISTINCT - 73 ) ) + + 75 THEN CAST( - 66 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT CASE + 3 WHEN - ( + - AVG ( DISTINCT - 73 ) ) + + 75 THEN CAST ( - 66 AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - 24 * + 96 * - - 90 - - + 79 + 63
----
-207218

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT DISTINCT COALESCE ( - + 12, + 86 + - NULLIF ( - COUNT( * ), 91 + + COALESCE ( + 65, - 29 ) * 5 ) ) * + COUNT( + 7 )
----
-12

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT COALESCE ( - + 12, + 86 + - NULLIF ( - COUNT ( * ), 91 + + COALESCE ( + 65, - 29 ) * 5 ) ) * + COUNT ( + 7 )
----
-12

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2116
SELECT ALL SUM( + 70 ) AS col2, - 54 + - 83 AS col0
----
70
-137

skipif mysql # not compatible
query II rowsort label-2116
SELECT ALL SUM ( + 70 ) AS col2, - 54 + - 83 AS col0
----
70
-137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT - 93 * + 2 * + COUNT( * )
----
-186

skipif mysql # not compatible
query I rowsort label-2118
SELECT - 93 * + 2 * + COUNT ( * )
----
-186

query I rowsort
SELECT - COALESCE ( - 89, 25 * - ( + 62 ), 96 ) + - 61
----
28

query I rowsort
SELECT DISTINCT - + CASE - 78 WHEN - + 66 * - + 75 + 10 * - NULLIF ( 1, 85 * + 3 ) + - 74 THEN - 1 WHEN - 17 THEN - 59 * 25 END * 89 AS col0
----
NULL

query I rowsort
SELECT - 59 * + 38 + 31 + + 58 AS col2
----
-2153

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT - + NULLIF ( + - 89, - + 32 ) + 41 + ( 99 - + 37 * - NULLIF ( + 17, COUNT( * ) + + COUNT( * ) ) ) * 55 AS col2
----
40170

skipif mysql # not compatible
query I rowsort label-2122
SELECT - + NULLIF ( + - 89, - + 32 ) + 41 + ( 99 - + 37 * - NULLIF ( + 17, COUNT ( * ) + + COUNT ( * ) ) ) * 55 AS col2
----
40170

query I rowsort
SELECT DISTINCT - 94 * - 40
----
3760

query I rowsort
SELECT ALL COALESCE ( - ( - 40 ), 90 * - 58 + 16 )
----
40

query I rowsort
SELECT - + ( + - 40 ) * + 74 AS col2
----
2960

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT ALL - - MIN( DISTINCT - 21 ) * + + CASE + 83 WHEN - 82 THEN NULL WHEN 89 THEN NULL WHEN 24 * 24 THEN 75 ELSE NULL END * 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL - - MIN ( DISTINCT - 21 ) * + + CASE + 83 WHEN - 82 THEN NULL WHEN 89 THEN NULL WHEN 24 * 24 THEN 75 ELSE NULL END * 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2127
SELECT ALL + 3 * - - 71 * - - 34 - - 13 DIV NULLIF ( NULLIF ( 67, 3 ) - 53, - COUNT( * ) )
----
7242

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL + 3 * - - 71 * - - 34 - - 13 / NULLIF ( NULLIF ( 67, 3 ) - 53, - COUNT ( * ) )
----
7242

onlyif mysql # aggregate syntax: 
query II rowsort label-2128
SELECT DISTINCT - COUNT( * ) * + 1 col0, 75 * 30 AS col2
----
-1
2250

skipif mysql # not compatible
query II rowsort label-2128
SELECT DISTINCT - COUNT ( * ) * + 1 col0, 75 * 30 AS col2
----
-1
2250

query I rowsort
SELECT + 31 + + 78
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT ALL + 42 * + NULLIF ( COUNT( * ), ( 2 ) - CAST( NULL AS SIGNED ) / 82 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + 42 * + NULLIF ( COUNT ( * ), ( 2 ) - CAST ( NULL AS INTEGER ) / 82 ) AS col2
----
42

query I rowsort
SELECT ALL + 20 + + 95
----
115

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

query I rowsort
SELECT DISTINCT COALESCE ( + 17, - + 62 ) + + 92
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2134
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - 42 * + 87
----
NULL
-3654

skipif mysql # not compatible
query II rowsort label-2134
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - 42 * + 87
----
NULL
-3654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2135
SELECT DISTINCT COUNT( * ) DIV - - 68 + + ( - 94 ) + - - 66 * 94 AS col0
----
6110

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT COUNT ( * ) / - - 68 + + ( - 94 ) + - - 66 * 94 AS col0
----
6110

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL COUNT( DISTINCT + - 97 ) / CASE - 68 WHEN + 93 THEN + COUNT( ALL 61 ) * + 61 END + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL COUNT ( DISTINCT + - 97 ) / CASE - 68 WHEN + 93 THEN + COUNT ( ALL 61 ) * + 61 END + + 71
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT ALL 0 DIV 34 DIV - + 77 + 17 + + ( 34 ) * 59 * + 61
----
122383

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL 0 / 34 / - + 77 + 17 + + ( 34 ) * 59 * + 61
----
122383

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT CAST( - 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-2139
SELECT CAST ( - 64 AS INTEGER )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT - 93 * 92 DIV + - 63
----
135

skipif mysql # not compatible
query I rowsort label-2140
SELECT - 93 * 92 / + - 63
----
135

query I rowsort
SELECT + 99 * - + 30 * + 44
----
-130680

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

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

query I rowsort
SELECT DISTINCT - 79 * 69 * - + 12 col0
----
65412

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2145
SELECT ALL + 29 DIV - - COUNT( * ) - - ( - + ( + 35 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL + 29 / - - COUNT ( * ) - - ( - + ( + 35 ) )
----
-6

query I rowsort
SELECT + 63 * + + 53 AS col1
----
3339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2147
SELECT ALL - COUNT( DISTINCT + 17 ) * ( - 93 ) * CASE ( - 34 ) WHEN + CAST( - 70 AS SIGNED ) + - ( - COUNT( * ) ) THEN 41 + 62 / MAX( + 33 * - 41 + 88 ) ELSE NULL END + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - COUNT ( DISTINCT + 17 ) * ( - 93 ) * CASE ( - 34 ) WHEN + CAST ( - 70 AS INTEGER ) + - ( - COUNT ( * ) ) THEN 41 + 62 / MAX ( + 33 * - 41 + 88 ) ELSE NULL END + 80 AS col0
----
NULL

query I rowsort
SELECT + 40 - + - 76
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2149
SELECT ALL COUNT( * ) DIV ( - ( - - 52 ) ) * 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL COUNT ( * ) / ( - ( - - 52 ) ) * 49 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT 1 * - SUM( ALL - 88 ) * + ( - - 27 )
----
2376

skipif mysql # not compatible
query I rowsort label-2151
SELECT 1 * - SUM ( ALL - 88 ) * + ( - - 27 )
----
2376

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

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

query I rowsort
SELECT - ( + + 78 ) + 34
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT 34 DIV - + ( - - 18 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2154
SELECT 34 / - + ( - - 18 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + 16 * + 98 * + + COALESCE ( + 2, + COUNT( * ) ) + MAX( DISTINCT - 11 ) AS col2
----
3125

skipif mysql # not compatible
query I rowsort label-2155
SELECT + 16 * + 98 * + + COALESCE ( + 2, + COUNT ( * ) ) + MAX ( DISTINCT - 11 ) AS col2
----
3125

query I rowsort
SELECT - 33 * 21 + - 79 + + + 23 + ( + 22 ) + 61
----
-666

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2157
SELECT DISTINCT COUNT( ALL 20 ) DIV - 22 AS col1, - NULLIF ( + 9, SUM( ( 72 ) ) ) + 67
----
0
58

skipif mysql # not compatible
query II rowsort label-2157
SELECT DISTINCT COUNT ( ALL 20 ) / - 22 AS col1, - NULLIF ( + 9, SUM ( ( 72 ) ) ) + 67
----
0
58

query I rowsort
SELECT - - ( 73 ) col2
----
73

query I rowsort
SELECT DISTINCT 18 * - 95 col1
----
-1710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2160
SELECT - CAST( - ( + - 27 ) AS SIGNED ) * + 89 AS col2
----
-2403

skipif mysql # not compatible
query I rowsort label-2160
SELECT - CAST ( - ( + - 27 ) AS INTEGER ) * + 89 AS col2
----
-2403

query I rowsort
SELECT ALL ( - - 68 ) AS col2
----
68

query I rowsort
SELECT ALL - ( 6 ) AS col1
----
-6

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2164
SELECT ALL - - 24 + - 95 DIV - - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL - - 24 + - 95 / - - COUNT ( * )
----
-71

query I rowsort
SELECT - 32 + - 46
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT DISTINCT - + ( + - ( - - COUNT( * ) ) ) + - 55 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT - + ( + - ( - - COUNT ( * ) ) ) + - 55 AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2167
SELECT DISTINCT + - 11 + + 45 + + 7 DIV - CAST( 8 AS SIGNED ) * 55 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT + - 11 + + 45 + + 7 / - CAST ( 8 AS INTEGER ) * 55 AS col0
----
34

query I rowsort
SELECT ALL - NULLIF ( - - 71, + - 24 / 72 * - 25 + + 63 ) + 83 AS col1
----
12

query I rowsort
SELECT ALL + 91 + 27 * - 69
----
-1772

query I rowsort
SELECT - CASE - - 76 WHEN - COALESCE ( - + 31, - + 91, - 33 ) THEN + 29 WHEN 23 + - 6 * 23 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT DISTINCT NULLIF ( + 8, + COUNT( * ) ) + + 14
----
22

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT NULLIF ( + 8, + COUNT ( * ) ) + + 14
----
22

query I rowsort
SELECT ALL - 37 * - + 62
----
2294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT 95 / 57 * + CASE - 11 WHEN - - 5 * - COUNT( * ) * COUNT( DISTINCT 48 ) THEN CAST( 77 AS SIGNED ) * + 75 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT 95 / 57 * + CASE - 11 WHEN - - 5 * - COUNT ( * ) * COUNT ( DISTINCT 48 ) THEN CAST ( 77 AS INTEGER ) * + 75 END col2
----
NULL

query I rowsort
SELECT ALL - 65 + + 91 + + + 13 + 82 AS col1
----
121

query II rowsort
SELECT - 98 AS col0, + 29 + - 49 AS col0
----
-98
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2176
SELECT 76 + 95 AS col1, + CASE WHEN ( - 71 ) IS NULL THEN - ( 19 ) - + COUNT( * ) END * + 60
----
171
NULL

skipif mysql # not compatible
query II rowsort label-2176
SELECT 76 + 95 AS col1, + CASE WHEN ( - 71 ) IS NULL THEN - ( 19 ) - + COUNT ( * ) END * + 60
----
171
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2178
SELECT 85 + CAST( + 79 AS SIGNED ) + + + 29 AS col2, 48 AS col0
----
193
48

skipif mysql # not compatible
query II rowsort label-2178
SELECT 85 + CAST ( + 79 AS INTEGER ) + + + 29 AS col2, 48 AS col0
----
193
48

query I rowsort
SELECT 21 - + 13 AS col2
----
8

query I rowsort
SELECT 95 + - - 21
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2181
SELECT ALL - CASE CAST( NULL AS SIGNED ) WHEN + 90 THEN - 39 * + CAST( NULL AS DECIMAL ) + - 41 WHEN COUNT( * ) THEN NULL WHEN - 14 + CAST( NULL AS SIGNED ) THEN - COALESCE ( 4, - 65 + + 66 * 31, + 20, - 3 + - COUNT( * ) ) * COUNT( * ) WHEN + 37 THEN 68 * + 2 ELSE NULL END - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL - CASE CAST ( NULL AS INTEGER ) WHEN + 90 THEN - 39 * + CAST ( NULL AS REAL ) + - 41 WHEN COUNT ( * ) THEN NULL WHEN - 14 + CAST ( NULL AS INTEGER ) THEN - COALESCE ( 4, - 65 + + 66 * 31, + 20, - 3 + - COUNT ( * ) ) * COUNT ( * ) WHEN + 37 THEN 68 * + 2 ELSE NULL END - 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT DISTINCT - AVG ( DISTINCT + CASE - 69 WHEN - CAST( NULL AS SIGNED ) + + 47 THEN NULL WHEN 41 THEN + ( 86 ) ELSE NULL END ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT - AVG ( DISTINCT + CASE - 69 WHEN - CAST ( NULL AS INTEGER ) + + 47 THEN NULL WHEN 41 THEN + ( 86 ) ELSE NULL END ) * 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2183
SELECT ALL + COALESCE ( - + 52, - COUNT( + 30 ) * + 47 * - - 85 + 71 + COUNT( * ) * 43, + 41 DIV - 75 ) - 25
----
-77

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL + COALESCE ( - + 52, - COUNT ( + 30 ) * + 47 * - - 85 + 71 + COUNT ( * ) * 43, + 41 / - 75 ) - 25
----
-77

query I rowsort
SELECT ALL - COALESCE ( - - 21, - 51 + + ( CASE + 69 WHEN 21 + 42 THEN - ( + 6 ) ELSE NULL END ), NULLIF ( + 91, - 96 ) ) AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2185
SELECT DISTINCT - 82 AS col0, + 60 DIV - 96 * 53 - NULLIF ( 12, 4 + CAST( - 15 - + 3 AS SIGNED ) * + AVG ( ALL CAST( NULL AS SIGNED ) * + NULLIF ( ( 69 ), + ( 31 ) * CAST( NULL AS SIGNED ) ) + 45 ) ) AS col0
----
-82
-12

skipif mysql # not compatible
query II rowsort label-2185
SELECT DISTINCT - 82 AS col0, + 60 / - 96 * 53 - NULLIF ( 12, 4 + CAST ( - 15 - + 3 AS INTEGER ) * + AVG ( ALL CAST ( NULL AS INTEGER ) * + NULLIF ( ( 69 ), + ( 31 ) * CAST ( NULL AS INTEGER ) ) + 45 ) ) AS col0
----
-82
-12

query II rowsort
SELECT ALL - 94, + 40 * - 52 AS col0
----
-94
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT COUNT( * ) + - 14 - + 47 col0
----
-60

skipif mysql # not compatible
query I rowsort label-2187
SELECT COUNT ( * ) + - 14 - + 47 col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL - ( + SUM( DISTINCT + - 53 ) )
----
53

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - ( + SUM ( DISTINCT + - 53 ) )
----
53

query I rowsort
SELECT 4 * - 69 * + ( - + 97 )
----
26772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2190
SELECT 39 + - COUNT( + 64 ) DIV - 48 * ( + 73 ) + 90 * 34
----
3099

skipif mysql # not compatible
query I rowsort label-2190
SELECT 39 + - COUNT ( + 64 ) / - 48 * ( + 73 ) + 90 * 34
----
3099

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

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

query I rowsort
SELECT ALL - 30 * + + 35
----
-1050

query II rowsort
SELECT + 90, - 88 AS col1
----
90
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT + 14 * + COUNT( * ) + - 55
----
-41

skipif mysql # not compatible
query I rowsort label-2195
SELECT + 14 * + COUNT ( * ) + - 55
----
-41

query II rowsort
SELECT 94 AS col2, - 98
----
94
-98

query I rowsort
SELECT ALL + - 10 + 97 * - - 83 AS col0
----
8041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT DISTINCT - - COALESCE ( + - 62, - COALESCE ( + 41, + 51, - 27 * 87 ) - CAST( NULL AS SIGNED ) )
----
-62

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT - - COALESCE ( + - 62, - COALESCE ( + 41, + 51, - 27 * 87 ) - CAST ( NULL AS INTEGER ) )
----
-62

query I rowsort
SELECT DISTINCT - 94 + - 67
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT NULLIF ( COUNT( * ), - + ( ( + 58 ) ) - + - 55 + - ( - 90 + 32 / 67 ) * 32 * - 82 ) + ( COALESCE ( MAX( 4 ), + 24 + 95 ) + - COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-2200
SELECT NULLIF ( COUNT ( * ), - + ( ( + 58 ) ) - + - 55 + - ( - 90 + 32 / 67 ) * 32 * - 82 ) + ( COALESCE ( MAX ( 4 ), + 24 + 95 ) + - COUNT ( * ) )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2201
SELECT + 13 * COUNT( * ) - + SUM( - 24 ), + 20 AS col0
----
37
20

skipif mysql # not compatible
query II rowsort label-2201
SELECT + 13 * COUNT ( * ) - + SUM ( - 24 ), + 20 AS col0
----
37
20

query I rowsort
SELECT 28 + - 0 - - + 68 AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT DISTINCT 70 + + 4 * - 86 DIV + 43
----
62

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT 70 + + 4 * - 86 / + 43
----
62

query I rowsort
SELECT ALL + ( + + 93 ) * 91
----
8463

query II rowsort
SELECT + 61, + 74 * - 35 AS col2
----
61
-2590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2206
SELECT ALL + 84 + - 87 DIV NULLIF ( 58, - COALESCE ( + 94, - COUNT( * ), - 35 ) ) DIV - 99
----
84

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL + 84 + - 87 / NULLIF ( 58, - COALESCE ( + 94, - COUNT ( * ), - 35 ) ) / - 99
----
84

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

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - COUNT ( * ) + - 99 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-2208
SELECT DISTINCT - 48 AS col2, COUNT( * ) + - 84 AS col2
----
-48
-83

skipif mysql # not compatible
query II rowsort label-2208
SELECT DISTINCT - 48 AS col2, COUNT ( * ) + - 84 AS col2
----
-48
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT 7 + - COUNT( * ) * - + ( + 20 )
----
27

skipif mysql # not compatible
query I rowsort label-2209
SELECT 7 + - COUNT ( * ) * - + ( + 20 )
----
27

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

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

query I rowsort
SELECT ALL 49 + - 52 col2
----
-3

query I rowsort
SELECT ALL 54 * - 79 - + 3 AS col0
----
-4269

onlyif mysql # aggregate syntax: 
query II rowsort label-2213
SELECT - SUM( DISTINCT - 48 ), - 51 AS col1
----
48
-51

skipif mysql # not compatible
query II rowsort label-2213
SELECT - SUM ( DISTINCT - 48 ), - 51 AS col1
----
48
-51

query I rowsort
SELECT 21 + - - 72 AS col1
----
93

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

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

query I rowsort
SELECT DISTINCT + 16 * + + 28 AS col1
----
448

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT 14 * 89 * - 73 * - COUNT( + 51 ), - ( + 59 ) AS col1
----
90958
-59

skipif mysql # not compatible
query II rowsort label-2217
SELECT 14 * 89 * - 73 * - COUNT ( + 51 ), - ( + 59 ) AS col1
----
90958
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL COUNT( * ) - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2219
SELECT + NULLIF ( NULLIF ( + 26, + + 24 ), + + CAST( NULL AS DECIMAL ) ), 47 AS col2
----
26
47

skipif mysql # not compatible
query II rowsort label-2219
SELECT + NULLIF ( NULLIF ( + 26, + + 24 ), + + CAST ( NULL AS REAL ) ), 47 AS col2
----
26
47

query I rowsort
SELECT + 87 * - 35 * - 91 AS col0
----
277095

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT - MIN( + 70 ) * - - 9, 75 * + COUNT( * ) + + 24 + - + 77 * + ( COUNT( * ) * - COUNT( * ) ) AS col0
----
-630
176

skipif mysql # not compatible
query II rowsort label-2221
SELECT - MIN ( + 70 ) * - - 9, 75 * + COUNT ( * ) + + 24 + - + 77 * + ( COUNT ( * ) * - COUNT ( * ) ) AS col0
----
-630
176

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT + 98 * - NULLIF ( + 25, - COUNT( * ) - - 99 + - 77 * + + 17 * - 19 ) AS col0
----
-2450

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + 98 * - NULLIF ( + 25, - COUNT ( * ) - - 99 + - 77 * + + 17 * - 19 ) AS col0
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT 8 * + COUNT( * ) * + + 57 - - NULLIF ( - COUNT( * ), 60 )
----
455

skipif mysql # not compatible
query I rowsort label-2223
SELECT 8 * + COUNT ( * ) * + + 57 - - NULLIF ( - COUNT ( * ), 60 )
----
455

onlyif mysql # DIV for integer division: 
query II rowsort label-2224
SELECT - 57 * 20 * 14 AS col0, + ( + 3 ) DIV 94 AS col0
----
-15960
0

skipif mysql # not compatible
query II rowsort label-2224
SELECT - 57 * 20 * 14 AS col0, + ( + 3 ) / 94 AS col0
----
-15960
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT DISTINCT + CASE WHEN 25 NOT IN ( - CAST( 37 AS SIGNED ) ) THEN 10 + 17 END
----
27

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT + CASE WHEN 25 NOT IN ( - CAST ( 37 AS INTEGER ) ) THEN 10 + 17 END
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL - + 94 * - MAX( ALL + 21 ) + 23
----
1997

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - + 94 * - MAX ( ALL + 21 ) + 23
----
1997

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL + COUNT( DISTINCT 34 ) * + 45 + - 3 * - NULLIF ( - COUNT( * ), - - COUNT( * ) * + 39 ) + 46
----
88

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + COUNT ( DISTINCT 34 ) * + 45 + - 3 * - NULLIF ( - COUNT ( * ), - - COUNT ( * ) * + 39 ) + 46
----
88

query I rowsort
SELECT - ( + - 17 ) - + - 9
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL + - MIN( 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + - MIN ( 15 ) AS col0
----
-15

query II rowsort
SELECT - - 10 + - 92 * + - 86 col1, 67 + - 43 + 23 AS col2
----
7922
47

query I rowsort
SELECT + 86 * + - 55 * + + 66 + 81
----
-312099

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ALL + 55 + + NULLIF ( + MIN( DISTINCT + 15 ), ( + 45 ) ) - + 75 * - 60 AS col2
----
4570

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL + 55 + + NULLIF ( + MIN ( DISTINCT + 15 ), ( + 45 ) ) - + 75 * - 60 AS col2
----
4570

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

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

query I rowsort
SELECT DISTINCT + 22 + + + 21 AS col1
----
43

query I rowsort
SELECT - + 83 * + 59
----
-4897

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - - 66 + - 61 - COUNT( * ) + + 10 * - 20 + - 75
----
-271

skipif mysql # not compatible
query I rowsort label-2237
SELECT - - 66 + - 61 - COUNT ( * ) + + 10 * - 20 + - 75
----
-271

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2238
SELECT - MAX( + 37 ) + + COUNT( * ) DIV + COUNT( * ) AS col1, - COUNT( * ) AS col0
----
-36
-1

skipif mysql # not compatible
query II rowsort label-2238
SELECT - MAX ( + 37 ) + + COUNT ( * ) / + COUNT ( * ) AS col1, - COUNT ( * ) AS col0
----
-36
-1

query I rowsort
SELECT + 0 * + 23 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT DISTINCT 11 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT 11 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 23 / - CASE 49 WHEN + 41 + 20 * - AVG ( 95 ) + 14 THEN 59 WHEN + 46 * - 98 THEN 13 ELSE NULL END col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT + 17 + + 35 - + - 7 + + - 30 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT + 17 + + 35 - + - 7 + + - 30 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 28 + - 87 AS col2
----
-59

query I rowsort
SELECT - NULLIF ( 55, + 96 - + 35 + + - 61 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT + 5 + 39 - + COUNT( * ) * 1 * - + 48 * + 16, 22 + COUNT( * ) * ( + CASE 32 WHEN - 51 THEN 76 WHEN 43 / + 60 THEN NULL ELSE NULL END ) AS col2
----
812
NULL

skipif mysql # not compatible
query II rowsort label-2246
SELECT + 5 + 39 - + COUNT ( * ) * 1 * - + 48 * + 16, 22 + COUNT ( * ) * ( + CASE 32 WHEN - 51 THEN 76 WHEN 43 / + 60 THEN NULL ELSE NULL END ) AS col2
----
812
NULL

query I rowsort
SELECT + 63 * + 13
----
819

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT DISTINCT NULLIF ( - - ( CAST( COUNT( * ) AS SIGNED ) ), - + NULLIF ( 5, + COUNT( * ) ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT NULLIF ( - - ( CAST ( COUNT ( * ) AS INTEGER ) ), - + NULLIF ( 5, + COUNT ( * ) ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 67 * + + 0 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT ALL 42 DIV 41 + - 56 + + 81 * 54 AS col0
----
4319

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL 42 / 41 + - 56 + + 81 * 54 AS col0
----
4319

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT DISTINCT 84 DIV - ( 26 )
----
-3

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT 84 / - ( 26 )
----
-3

query I rowsort
SELECT - + 99 + - 14
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT ALL 30 DIV + 11 + - ( - 34 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL 30 / + 11 + - ( - 34 ) AS col2
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT ALL 42 * + + CASE - MIN( 33 ) WHEN - 79 THEN + 67 END + - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL 42 * + + CASE - MIN ( 33 ) WHEN - 79 THEN + 67 END + - + 65
----
NULL

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

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

query II rowsort
SELECT + - 21 AS col1, 31 + + 12
----
-21
43

query I rowsort
SELECT DISTINCT 68 * 2 AS col2
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2262
SELECT ALL 30 * - 32 + + 58, + COUNT( * ) * - CAST( NULL AS SIGNED ) * - 65 * 41 col1
----
-902
NULL

skipif mysql # not compatible
query II rowsort label-2262
SELECT ALL 30 * - 32 + + 58, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 65 * 41 col1
----
-902
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT + + CASE 2 WHEN 37 THEN NULL WHEN + ( + 53 ) THEN 9 + + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + + CASE 2 WHEN 37 THEN NULL WHEN + ( + 53 ) THEN 9 + + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2264
SELECT ALL - 62 DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - 62 / 64 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT ALL - - CASE + + ( - 53 ) WHEN - 41 - 84 THEN 0 WHEN - + COUNT( * ) - + COUNT( * ) * 89 THEN 87 * 37 ELSE 96 END * NULLIF ( + COUNT( DISTINCT - 62 ) * + 64, 71 ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL - - CASE + + ( - 53 ) WHEN - 41 - 84 THEN 0 WHEN - + COUNT ( * ) - + COUNT ( * ) * 89 THEN 87 * 37 ELSE 96 END * NULLIF ( + COUNT ( DISTINCT - 62 ) * + 64, 71 ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 98 * + 11 AS col2
----
-1078

query II rowsort
SELECT ALL + + 9 AS col1, - 42
----
9
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + 54 * 57 * - - ( - 76 ) * - + 72 * + COUNT( - 49 ) - - 35 AS col1
----
16842851

skipif mysql # not compatible
query I rowsort label-2270
SELECT + 54 * 57 * - - ( - 76 ) * - + 72 * + COUNT ( - 49 ) - - 35 AS col1
----
16842851

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT 20 + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-2275
SELECT 20 + - COUNT ( * )
----
19

query II rowsort
SELECT ALL - 16 * - 25 col0, - 74
----
400
-74

query II rowsort
SELECT 95 * 85 AS col2, 87 + 2 + - 91 * + 80 AS col2
----
8075
-7191

query I rowsort
SELECT 30 + + + 12 - - + 40
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT 49 DIV - + 59 col0
----
0

skipif mysql # not compatible
query I rowsort label-2279
SELECT 49 / - + 59 col0
----
0

query II rowsort
SELECT 20 * - ( + ( + 30 ) ) AS col0, 92
----
-600
92

query II rowsort
SELECT 55 + - 46 AS col2, 67
----
9
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT ALL 93 DIV + 29 col0
----
3

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL 93 / + 29 col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2283
SELECT ALL + COUNT( * ) + - 53 + - + 50 * - CAST( - ( + 77 ) AS SIGNED ) + - 70 AS col1
----
-3972

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + COUNT ( * ) + - 53 + - + 50 * - CAST ( - ( + 77 ) AS INTEGER ) + - 70 AS col1
----
-3972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2284
SELECT ALL 28 * - - 56 AS col2, - 8 + - 24 * MIN( ALL 9 ) * - 86 + 66 + 67 * CAST( NULL AS SIGNED )
----
1568
NULL

skipif mysql # not compatible
query II rowsort label-2284
SELECT ALL 28 * - - 56 AS col2, - 8 + - 24 * MIN ( ALL 9 ) * - 86 + 66 + 67 * CAST ( NULL AS INTEGER )
----
1568
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT 39 DIV + 86 * + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2285
SELECT 39 / + 86 * + 80 AS col0
----
0

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

query I rowsort
SELECT ALL 21 + 22 * + ( 4 ) col1
----
109

query I rowsort
SELECT DISTINCT 80 + - - 13 AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2289
SELECT COUNT( * ) DIV + COALESCE ( - + 92, + 11 ) * 4 + COUNT( * ) + - 96 DIV - 70 - - - COUNT( * ) * 93
----
-91

skipif mysql # not compatible
query I rowsort label-2289
SELECT COUNT ( * ) / + COALESCE ( - + 92, + 11 ) * 4 + COUNT ( * ) + - 96 / - 70 - - - COUNT ( * ) * 93
----
-91

query I rowsort
SELECT ALL ( + - 8 ) + - 50
----
-58

query I rowsort
SELECT 13 - + + 55 + - + 7
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT + + ( - CASE + 33 WHEN + + COUNT( * ) THEN + 58 ELSE NULL END ) * + 19 + + + 47 + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT + + ( - CASE + 33 WHEN + + COUNT ( * ) THEN + 58 ELSE NULL END ) * + 19 + + + 47 + - 39
----
NULL

query I rowsort
SELECT DISTINCT - ( - COALESCE ( - 67, + 44, - NULLIF ( + ( + 9 ), - - 36 * + 41 * 76 ) ) )
----
-67

query I rowsort
SELECT DISTINCT - NULLIF ( 70, 72 + - 22 ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2295
SELECT ALL + - 2 - - + 75, - 9 + + 12 + + 72 - - ( 72 ) + CAST( - 91 AS SIGNED ) * MIN( ALL - NULLIF ( 68, 35 ) ) AS col1
----
73
6335

skipif mysql # not compatible
query II rowsort label-2295
SELECT ALL + - 2 - - + 75, - 9 + + 12 + + 72 - - ( 72 ) + CAST ( - 91 AS INTEGER ) * MIN ( ALL - NULLIF ( 68, 35 ) ) AS col1
----
73
6335

query I rowsort
SELECT ( + - 40 ) - - 80 AS col1
----
40

query I rowsort
SELECT + 24 - + 17 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2298
SELECT 15 * - + ( - + 65 ) * - COUNT( * ) + + CAST( + 89 AS SIGNED ) * - MAX( + 90 ) AS col0
----
-8985

skipif mysql # not compatible
query I rowsort label-2298
SELECT 15 * - + ( - + 65 ) * - COUNT ( * ) + + CAST ( + 89 AS INTEGER ) * - MAX ( + 90 ) AS col0
----
-8985

query I rowsort
SELECT + 67 + 54
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT + - 68 * + 71 - CASE 13 WHEN - + 11 * + CASE 56 WHEN + COUNT( * ) * SUM( DISTINCT + 78 ) THEN + 42 + - 84 WHEN + 6 + + NULLIF ( - 51 - - 76 * + 25, - 90 ) THEN 39 + 7 END THEN - 91 + - 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT + - 68 * + 71 - CASE 13 WHEN - + 11 * + CASE 56 WHEN + COUNT ( * ) * SUM ( DISTINCT + 78 ) THEN + 42 + - 84 WHEN + 6 + + NULLIF ( - 51 - - 76 * + 25, - 90 ) THEN 39 + 7 END THEN - 91 + - 77 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2301
SELECT MAX( + + 58 ) AS col1, 53 AS col1
----
58
53

skipif mysql # not compatible
query II rowsort label-2301
SELECT MAX ( + + 58 ) AS col1, 53 AS col1
----
58
53

query I rowsort
SELECT ALL 20 * - - 93 AS col1
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - 90 + COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-2303
SELECT - 90 + COUNT ( * ) AS col1
----
-89

query I rowsort
SELECT 51 * + + 61 AS col0
----
3111

query I rowsort
SELECT ALL 87 * 12 * 4
----
4176

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2306
SELECT ( + CASE - ( - 71 ) WHEN - 53 + 43 + ( - 62 ) + + 92 THEN 72 WHEN 36 + CAST( NULL AS DECIMAL ) THEN + CAST( 27 AS SIGNED ) ELSE NULL END ) / - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT ( + CASE - ( - 71 ) WHEN - 53 + 43 + ( - 62 ) + + 92 THEN 72 WHEN 36 + CAST ( NULL AS REAL ) THEN + CAST ( 27 AS INTEGER ) ELSE NULL END ) / - 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT ALL - MIN( DISTINCT - 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - MIN ( DISTINCT - 43 ) AS col2
----
43

query I rowsort
SELECT 14 * 53
----
742

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2309
SELECT DISTINCT - CAST( - 2 AS SIGNED ) DIV + - 15 * - + 14
----
0

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - CAST ( - 2 AS INTEGER ) / + - 15 * - + 14
----
0

query I rowsort
SELECT 24 + + 85 col0
----
109

query I rowsort
SELECT 40 * - - ( + - 11 )
----
-440

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

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

query II rowsort
SELECT 10 + + 65 - - 1, - 93 AS col1
----
76
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT - 60, - MIN( DISTINCT + 51 ) * + - 50 + 94 AS col1
----
-60
2644

skipif mysql # not compatible
query II rowsort label-2314
SELECT - 60, - MIN ( DISTINCT + 51 ) * + - 50 + 94 AS col1
----
-60
2644

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT ALL - COUNT( * ) + - 75
----
-76

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL - COUNT ( * ) + - 75
----
-76

query I rowsort
SELECT DISTINCT + 58 + - 67
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT - 67 + + - 63 + - MIN( DISTINCT + 80 ) + + + 10 + + + 82 + - 27 AS col0
----
-145

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT - 67 + + - 63 + - MIN ( DISTINCT + 80 ) + + + 10 + + + 82 + - 27 AS col0
----
-145

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

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + 13 + 7 * + 31 / + COUNT ( * ) AS col0
----
230

query I rowsort
SELECT 45 - + + 31 * + 34 + - + 75 * 24 AS col0
----
-2809

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL - 85 * - + CASE 42 WHEN COALESCE ( + 77, - ( + COUNT( * ) ) * - 93 * + - 68 * - 15, + COUNT( * ) * - COUNT( ALL 84 ) + COUNT( DISTINCT - 83 ), 99 * - 30 + 71 ) THEN - 37 / COUNT( * ) WHEN - 50 * CASE 32 WHEN + 49 THEN - 24 * + 13 END + 43 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - 85 * - + CASE 42 WHEN COALESCE ( + 77, - ( + COUNT ( * ) ) * - 93 * + - 68 * - 15, + COUNT ( * ) * - COUNT ( ALL 84 ) + COUNT ( DISTINCT - 83 ), 99 * - 30 + 71 ) THEN - 37 / COUNT ( * ) WHEN - 50 * CASE 32 WHEN + 49 THEN - 24 * + 13 END + 43 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 55 + 87 AS col2
----
142

query II rowsort
SELECT - 81, 60 * + 75 AS col0
----
-81
4500

query I rowsort
SELECT ALL + 13 + + + 75 col1
----
88

query I rowsort
SELECT 35 + 25 AS col0
----
60

query I rowsort
SELECT ALL - 50 + + 69 + 54 * + ( - 35 ) AS col1
----
-1871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT 45 + 63 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT 45 + 63 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 14 - - - 60 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT DISTINCT SUM( DISTINCT - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT SUM ( DISTINCT - 23 ) AS col0
----
-23

query I rowsort
SELECT 71 - 88 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2330
SELECT ALL 2 DIV 17 + - 53 - - - COALESCE ( - 50, CASE + - COUNT( DISTINCT - COALESCE ( 90, - - 65, - 91 ) ) WHEN - CAST( NULL AS SIGNED ) + 69 * + 51 THEN + CASE + 93 WHEN + MAX( DISTINCT 92 ) THEN + NULLIF ( 53, - 49 ) END ELSE NULL END ) + - 99 * ( + 34 * 70 ) col2
----
-235623

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL 2 / 17 + - 53 - - - COALESCE ( - 50, CASE + - COUNT ( DISTINCT - COALESCE ( 90, - - 65, - 91 ) ) WHEN - CAST ( NULL AS INTEGER ) + 69 * + 51 THEN + CASE + 93 WHEN + MAX ( DISTINCT 92 ) THEN + NULLIF ( 53, - 49 ) END ELSE NULL END ) + - 99 * ( + 34 * 70 ) col2
----
-235623

query I rowsort
SELECT DISTINCT 20 * - + 91 AS col0
----
-1820

query II rowsort
SELECT ALL - 36 * + + ( - 52 ) AS col2, - 30 + - + 94
----
1872
-124

query I rowsort
SELECT COALESCE ( + 65, + 5, 12 - + + 44 ) * 79 + - - 46 * + 41
----
7021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT ALL - - CASE - + 74 WHEN - + 47 + 33 * - + 9 + ( + COUNT( * ) ) * + CAST( NULL AS SIGNED ) THEN - 26 * + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - - CASE - + 74 WHEN - + 47 + 33 * - + 9 + ( + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) THEN - 26 * + 35 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2335
SELECT ALL + - CASE - 39 WHEN + COUNT( * ) THEN + 83 WHEN + 25 * + 52 - + 55 + - CASE - 43 WHEN - 65 THEN NULL WHEN - 9 * - 59 + 3 * 65 THEN COUNT( * ) ELSE 48 * ( 78 ) END * CAST( NULL AS SIGNED ) THEN 1 * + 19 WHEN 37 THEN NULL ELSE COALESCE ( 94, 95 - 77 ) END * - COALESCE ( - COALESCE ( + CAST( NULL AS SIGNED ), 5 DIV - 92 ), + 41 DIV 68 - CAST( + 28 + - 73 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + - CASE - 39 WHEN + COUNT ( * ) THEN + 83 WHEN + 25 * + 52 - + 55 + - CASE - 43 WHEN - 65 THEN NULL WHEN - 9 * - 59 + 3 * 65 THEN COUNT ( * ) ELSE 48 * ( 78 ) END * CAST ( NULL AS INTEGER ) THEN 1 * + 19 WHEN 37 THEN NULL ELSE COALESCE ( 94, 95 - 77 ) END * - COALESCE ( - COALESCE ( + CAST ( NULL AS INTEGER ), 5 / - 92 ), + 41 / 68 - CAST ( + 28 + - 73 AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT - 47 * 52 * - 77 * + + 28 * ( + + SUM( + - ( + 98 ) ) )
----
-516387872

skipif mysql # not compatible
query I rowsort label-2336
SELECT - 47 * 52 * - 77 * + + 28 * ( + + SUM ( + - ( + 98 ) ) )
----
-516387872

query I rowsort
SELECT + - 99 col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL SUM( DISTINCT + 25 ) * - 74 + 31
----
-1819

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL SUM ( DISTINCT + 25 ) * - 74 + 31
----
-1819

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT 30 * + + COUNT( * ) + - CASE - ( + 89 ) WHEN + - 45 THEN NULL ELSE - + MAX( DISTINCT - - 29 ) * 63 END + 94 AS col0
----
1951

skipif mysql # not compatible
query I rowsort label-2339
SELECT 30 * + + COUNT ( * ) + - CASE - ( + 89 ) WHEN + - 45 THEN NULL ELSE - + MAX ( DISTINCT - - 29 ) * 63 END + 94 AS col0
----
1951

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT + COALESCE ( + 56, - - COUNT( * ) - - 5 - + + COUNT( * ) ) * + - ( + + 67 ) AS col2
----
-3752

skipif mysql # not compatible
query I rowsort label-2340
SELECT + COALESCE ( + 56, - - COUNT ( * ) - - 5 - + + COUNT ( * ) ) * + - ( + + 67 ) AS col2
----
-3752

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

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

query I rowsort
SELECT + ( + + 10 ) * - - 87 + + 93 AS col0
----
963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2343
SELECT + CASE + 41 WHEN - COALESCE ( 6, - + 81 / + ( + 23 ) * + - CAST( 99 AS SIGNED ) - + + 53 + CASE WHEN NOT - 96 IS NULL THEN 37 ELSE NULL END ) THEN NULL WHEN - SUM( 15 ) / CAST( NULL AS DECIMAL ) THEN 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT + CASE + 41 WHEN - COALESCE ( 6, - + 81 / + ( + 23 ) * + - CAST ( 99 AS INTEGER ) - + + 53 + CASE WHEN NOT - 96 IS NULL THEN 37 ELSE NULL END ) THEN NULL WHEN - SUM ( 15 ) / CAST ( NULL AS REAL ) THEN 90 END
----
NULL

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

query II rowsort
SELECT - 9 AS col2, + 5
----
-9
5

query II rowsort
SELECT DISTINCT - 27 AS col2, + 0 + + 33 AS col2
----
-27
33

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

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL + 60 / + COUNT ( * )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), 95 * - + ( - + 71 ), + NULLIF ( ( + 94 ), + 88 + - + 87 + + ( - 80 ) ) + 69 )
----
6745

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), 95 * - + ( - + 71 ), + NULLIF ( ( + 94 ), + 88 + - + 87 + + ( - 80 ) ) + 69 )
----
6745

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT - 44 * - 95 + - MIN( + 2 ) AS col1
----
4178

skipif mysql # not compatible
query I rowsort label-2351
SELECT - 44 * - 95 + - MIN ( + 2 ) AS col1
----
4178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT - 94 DIV 51 * 39 DIV - + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-2352
SELECT - 94 / 51 * 39 / - + COUNT ( * )
----
39

query I rowsort
SELECT 89 * 49 - 1
----
4360

query I rowsort
SELECT - NULLIF ( + 96, - - 20 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - 87 + + 20 * + COALESCE ( + + 38, 35, + COUNT( * ) * - 9 )
----
673

skipif mysql # not compatible
query I rowsort label-2355
SELECT - 87 + + 20 * + COALESCE ( + + 38, 35, + COUNT ( * ) * - 9 )
----
673

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2357
SELECT DISTINCT CASE + + 55 WHEN - 38 * + AVG ( ALL - 63 ) + + ( - ( + 46 ) ) - + CASE - - 46 WHEN - - CAST( NULL AS SIGNED ) THEN + 7 WHEN - 87 THEN NULL WHEN 24 THEN 12 ELSE - 91 / CAST( NULLIF ( + 4, 6 ) AS SIGNED ) + 95 END * 95 THEN + COUNT( * ) WHEN 81 * - ( - 35 / 56 ) + + 6 * - ( 21 + 74 ) THEN 64 - + COUNT( CASE - 15 WHEN 9 * CAST( NULL AS SIGNED ) THEN COALESCE ( 85, + 60 ) ELSE NULL END ) * 64 END * CAST( - 39 AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT CASE + + 55 WHEN - 38 * + AVG ( ALL - 63 ) + + ( - ( + 46 ) ) - + CASE - - 46 WHEN - - CAST ( NULL AS INTEGER ) THEN + 7 WHEN - 87 THEN NULL WHEN 24 THEN 12 ELSE - 91 / CAST ( NULLIF ( + 4, 6 ) AS INTEGER ) + 95 END * 95 THEN + COUNT ( * ) WHEN 81 * - ( - 35 / 56 ) + + 6 * - ( 21 + 74 ) THEN 64 - + COUNT ( CASE - 15 WHEN 9 * CAST ( NULL AS INTEGER ) THEN COALESCE ( 85, + 60 ) ELSE NULL END ) * 64 END * CAST ( - 39 AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL - 81 + + NULLIF ( 51, 60 ) + 38
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT - COUNT( * ) * + + COUNT( * ) * + 31 * + 80 AS col0
----
-2480

skipif mysql # not compatible
query I rowsort label-2359
SELECT - COUNT ( * ) * + + COUNT ( * ) * + 31 * + 80 AS col0
----
-2480

query II rowsort
SELECT ALL 70 AS col0, + 80 col0
----
70
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT DISTINCT 75 + 80 DIV - - 65
----
76

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT 75 + 80 / - - 65
----
76

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

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

query I rowsort
SELECT ALL - 81 + - 17 - - + 91 col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL + 27 + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + 27 + + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2365
SELECT 25 col1, + NULLIF ( + - COUNT( * ), - 29 + - ( - 57 ) ) * - 54 * + + 28
----
25
1512

skipif mysql # not compatible
query II rowsort label-2365
SELECT 25 col1, + NULLIF ( + - COUNT ( * ), - 29 + - ( - 57 ) ) * - 54 * + + 28
----
25
1512

query I rowsort
SELECT DISTINCT - 63 - - 11 AS col1
----
-52

query I rowsort
SELECT + 51 * 77
----
3927

query I rowsort
SELECT ALL NULLIF ( - 53, - - 14 / 78 )
----
-53

query II rowsort
SELECT - 37 AS col2, - COALESCE ( + - 71, + 77, + 61 )
----
-37
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - COUNT( DISTINCT 70 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2370
SELECT - COUNT ( DISTINCT 70 ) + COUNT ( * )
----
0

query I rowsort
SELECT ALL ( - 82 ) AS col2
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT - 79 * - ( - MIN( DISTINCT 6 ) ) AS col2
----
-474

skipif mysql # not compatible
query I rowsort label-2373
SELECT - 79 * - ( - MIN ( DISTINCT 6 ) ) AS col2
----
-474

query II rowsort
SELECT DISTINCT - 7, + 23 + 95 AS col1
----
-7
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2375
SELECT DISTINCT + COALESCE ( - 90, + CAST( NULL AS SIGNED ) * - 53 DIV + 31 ) * - COUNT( * ) col2, 29 * - - ( + - 0 ) * 58 * + - NULLIF ( + 21, 31 DIV - 71 + + MAX( 74 ) ) * 84 - SUM( DISTINCT 70 ) * 71 col0
----
90
-4970

skipif mysql # not compatible
query II rowsort label-2375
SELECT DISTINCT + COALESCE ( - 90, + CAST ( NULL AS INTEGER ) * - 53 / + 31 ) * - COUNT ( * ) col2, 29 * - - ( + - 0 ) * 58 * + - NULLIF ( + 21, 31 / - 71 + + MAX ( 74 ) ) * 84 - SUM ( DISTINCT 70 ) * 71 col0
----
90
-4970

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2376
SELECT - 64 AS col0, CAST( + - 26 AS SIGNED ) - + 44 AS col1
----
-64
-70

skipif mysql # not compatible
query II rowsort label-2376
SELECT - 64 AS col0, CAST ( + - 26 AS INTEGER ) - + 44 AS col1
----
-64
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT - - 94 * - 11 - + ( ( - + 86 ) ) * + 36 * + COUNT( * ) AS col1
----
2062

skipif mysql # not compatible
query I rowsort label-2377
SELECT - - 94 * - 11 - + ( ( - + 86 ) ) * + 36 * + COUNT ( * ) AS col1
----
2062

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

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

query I rowsort
SELECT - + 25 - + 60 AS col1
----
-85

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

query I rowsort
SELECT ALL + + 2 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT + + 31 * + + 58 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT + + 31 * + + 58 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 24, - 87 AS col2
----
24
-87

query II rowsort
SELECT + 98 col1, 36 + + 48 AS col1
----
98
84

query I rowsort
SELECT ALL 38 * + 88
----
3344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT - 8 - + 56 * + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT - 8 - + 56 * + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 73 * 43 col2
----
3139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2388
SELECT + - 92 * - 28 * - 6 DIV - COUNT( * )
----
15456

skipif mysql # not compatible
query I rowsort label-2388
SELECT + - 92 * - 28 * - 6 / - COUNT ( * )
----
15456

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT + CASE COUNT( * ) WHEN + COUNT( * ) * - ( 77 ) - 60 - + NULLIF ( + 41, 82 ) + - + 56 - 35 + - 5 THEN 5 + COUNT( * ) WHEN - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT + CASE COUNT ( * ) WHEN + COUNT ( * ) * - ( 77 ) - 60 - + NULLIF ( + 41, 82 ) + - + 56 - 35 + - 5 THEN 5 + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT - 64 + - - ( + MAX( - 87 ) ) * ( - 44 ) AS col0
----
3764

skipif mysql # not compatible
query I rowsort label-2390
SELECT - 64 + - - ( + MAX ( - 87 ) ) * ( - 44 ) AS col0
----
3764

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT - 82 * 87 DIV + 24 col0
----
-297

skipif mysql # not compatible
query I rowsort label-2391
SELECT - 82 * 87 / + 24 col0
----
-297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT 94 * + CASE - 92 WHEN 83 THEN - - COUNT( DISTINCT - 34 ) ELSE ( - 48 ) * - ( + 6 ) + + - ( CAST( 93 AS SIGNED ) ) + + 23 * - 4 * 16 END * COUNT( * ) + + 97 * - 84 AS col0
----
-128186

skipif mysql # not compatible
query I rowsort label-2392
SELECT 94 * + CASE - 92 WHEN 83 THEN - - COUNT ( DISTINCT - 34 ) ELSE ( - 48 ) * - ( + 6 ) + + - ( CAST ( 93 AS INTEGER ) ) + + 23 * - 4 * 16 END * COUNT ( * ) + + 97 * - 84 AS col0
----
-128186

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT + NULLIF ( COUNT( * ), - - 43 * + 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2393
SELECT + NULLIF ( COUNT ( * ), - - 43 * + 81 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT 39 * ( + COUNT( + + 93 ) ) + 50 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT 39 * ( + COUNT ( + + 93 ) ) + 50 AS col2
----
89

query II rowsort
SELECT + CASE + 10 WHEN + 59 THEN ( 14 ) ELSE NULL END, 24 AS col1
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT - CASE - COUNT( * ) WHEN + 88 THEN - 81 ELSE + 10 * + COUNT( * ) * - - 47 + - 22 END col1
----
-448

skipif mysql # not compatible
query I rowsort label-2396
SELECT - CASE - COUNT ( * ) WHEN + 88 THEN - 81 ELSE + 10 * + COUNT ( * ) * - - 47 + - 22 END col1
----
-448

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

skipif mysql # not compatible
query I rowsort label-2397
SELECT SUM ( ALL 66 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2398
SELECT + 92 + - + COALESCE ( + SUM( ALL - 28 ), - + CASE - 16 WHEN + 51 THEN NULL WHEN - 44 THEN ( - - ( - 6 ) ) * - 84 + 47 DIV 84 END, - 46 + 62 ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-2398
SELECT + 92 + - + COALESCE ( + SUM ( ALL - 28 ), - + CASE - 16 WHEN + 51 THEN NULL WHEN - 44 THEN ( - - ( - 6 ) ) * - 84 + 47 / 84 END, - 46 + 62 ) AS col2
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2399
SELECT - ( + - CAST( ( - 8 ) AS SIGNED ) ) * + 86 AS col1
----
-688

skipif mysql # not compatible
query I rowsort label-2399
SELECT - ( + - CAST ( ( - 8 ) AS INTEGER ) ) * + 86 AS col1
----
-688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT ALL 62 * + NULLIF ( + ( + 55 ), 46 + - + CASE - 31 WHEN - - COUNT( * ) * 35 * + COALESCE ( - + 43, 49 * COALESCE ( + COUNT( 69 ), - 8 + - CASE - COUNT( * ) WHEN 84 THEN 12 WHEN 47 THEN NULL ELSE NULL END ), COUNT( * ) * + 24 ) / 9 THEN NULL WHEN + COUNT( ALL + 44 ) * NULLIF ( - 75, 53 ) THEN NULL WHEN - 52 / + 55 THEN 8 * - 30 WHEN - 49 * - CAST( NULL AS SIGNED ) + - CASE - 48 + COUNT( * ) WHEN - 58 THEN - 21 * ( 90 ) + + 83 ELSE 13 * - 10 END THEN NULL ELSE NULLIF ( + CASE 80 WHEN + 44 THEN NULL ELSE - ( 86 ) END, 39 ) * 2 END + - 66 * + 80 )
----
3410

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL 62 * + NULLIF ( + ( + 55 ), 46 + - + CASE - 31 WHEN - - COUNT ( * ) * 35 * + COALESCE ( - + 43, 49 * COALESCE ( + COUNT ( 69 ), - 8 + - CASE - COUNT ( * ) WHEN 84 THEN 12 WHEN 47 THEN NULL ELSE NULL END ), COUNT ( * ) * + 24 ) / 9 THEN NULL WHEN + COUNT ( ALL + 44 ) * NULLIF ( - 75, 53 ) THEN NULL WHEN - 52 / + 55 THEN 8 * - 30 WHEN - 49 * - CAST ( NULL AS INTEGER ) + - CASE - 48 + COUNT ( * ) WHEN - 58 THEN - 21 * ( 90 ) + + 83 ELSE 13 * - 10 END THEN NULL ELSE NULLIF ( + CASE 80 WHEN + 44 THEN NULL ELSE - ( 86 ) END, 39 ) * 2 END + - 66 * + 80 )
----
3410

query I rowsort
SELECT + 44 + - + 94 AS col0
----
-50

query I rowsort
SELECT ALL NULLIF ( + + 51, - NULLIF ( - 65, 12 ) - - - 82 )
----
51

query II rowsort
SELECT + 62 - - 76 AS col0, 0 col0
----
138
0

query I rowsort
SELECT ALL 23 * 38 * - 90 * 26
----
-2045160

onlyif mysql # aggregate syntax: 
query II rowsort label-2405
SELECT + 67 * COUNT( * ) col2, - 15 * - 6 - + - 82 - - 82
----
67
254

skipif mysql # not compatible
query II rowsort label-2405
SELECT + 67 * COUNT ( * ) col2, - 15 * - 6 - + - 82 - - 82
----
67
254

query I rowsort
SELECT - + 14 + - 68
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2407
SELECT + - 3 * + - CAST( NULL AS SIGNED ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT + - 3 * + - CAST ( NULL AS INTEGER ) * - 65
----
NULL

query I rowsort
SELECT + - 45 * 98
----
-4410

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2410
SELECT + + 29 + ( CASE 39 WHEN + - CASE CAST( + 86 AS SIGNED ) WHEN + 92 * 43 THEN NULL WHEN - 44 THEN - - 37 * - 97 END THEN + 29 + 63 ELSE 18 END ) DIV + 67
----
29

skipif mysql # not compatible
query I rowsort label-2410
SELECT + + 29 + ( CASE 39 WHEN + - CASE CAST ( + 86 AS INTEGER ) WHEN + 92 * 43 THEN NULL WHEN - 44 THEN - - 37 * - 97 END THEN + 29 + 63 ELSE 18 END ) / + 67
----
29

query I rowsort
SELECT + + 70 * - ( + 47 ) col1
----
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT - + 65 + COUNT( DISTINCT - 27 )
----
-64

skipif mysql # not compatible
query I rowsort label-2412
SELECT - + 65 + COUNT ( DISTINCT - 27 )
----
-64

query I rowsort
SELECT ALL CASE - - 15 WHEN - 68 THEN 74 - + 21 ELSE - + 39 END
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT + SUM( - - 87 ) + 79
----
166

skipif mysql # not compatible
query I rowsort label-2414
SELECT + SUM ( - - 87 ) + 79
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT - 70 * + COUNT( * ) AS col2, + ( 42 ) + 12 col2
----
-70
54

skipif mysql # not compatible
query II rowsort label-2415
SELECT - 70 * + COUNT ( * ) AS col2, + ( 42 ) + 12 col2
----
-70
54

query I rowsort
SELECT ALL + 93 * 87 * - - 76 * 36 * - 20 + + 82 - + 59 - 16 AS col2
----
-442739513

onlyif mysql # aggregate syntax: 
query II rowsort label-2417
SELECT ALL + COUNT( * ) + 59, 13 col0
----
60
13

skipif mysql # not compatible
query II rowsort label-2417
SELECT ALL + COUNT ( * ) + 59, 13 col0
----
60
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2418
SELECT - 20 DIV + COUNT( 42 ) + + 95 + 81, ( 49 ) col1
----
156
49

skipif mysql # not compatible
query II rowsort label-2418
SELECT - 20 / + COUNT ( 42 ) + + 95 + 81, ( 49 ) col1
----
156
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL + + 11 + MIN( DISTINCT - + 90 ) - - - 67
----
-146

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + + 11 + MIN ( DISTINCT - + 90 ) - - - 67
----
-146

query I rowsort
SELECT + + COALESCE ( - 52, + 51 )
----
-52

query II rowsort
SELECT + 19 + + 26 AS col2, NULLIF ( + 0, + 88 ) * - - 59 - + 15 AS col2
----
45
-15

query I rowsort
SELECT DISTINCT - - 94 col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT + 33 DIV - + 4 + - 41 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2423
SELECT + 33 / - + 4 + - 41 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT 14 * - - COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2424
SELECT 14 * - - COUNT ( * ) AS col1
----
14

query I rowsort
SELECT - 36 * - 7 + - 97
----
155

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

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

skipif mysql # not compatible
query I rowsort label-2427
SELECT COUNT ( * ) / - 73
----
0

query I rowsort
SELECT ALL - 26 + - 19
----
-45

query I rowsort
SELECT 39 * 68
----
2652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT ALL - SUM( + 59 ) DIV + - 31 + + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - SUM ( + 59 ) / + - 31 + + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL 23 * + 55 col1
----
1265

query II rowsort
SELECT + 91 * - 66 + - 6 AS col0, 46
----
-6012
46

query I rowsort
SELECT 29 * + - 58 AS col0
----
-1682

query I rowsort
SELECT 54 * - - 18 + - - 36 col2
----
1008

query I rowsort
SELECT ALL + 54 * 97
----
5238

query II rowsort
SELECT 63 * - 49 - 85 col2, ( - 19 )
----
-3172
-19

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

query II rowsort
SELECT - + 49 AS col1, 39 AS col0
----
-49
39

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT 95 * + 29 * - COUNT( * ) AS col2, ( - 28 ) + + 67 + + - COALESCE ( - - 82, - 11, + - 4 + - 78 + + 95 ) col0
----
-2755
-43

skipif mysql # not compatible
query II rowsort label-2439
SELECT 95 * + 29 * - COUNT ( * ) AS col2, ( - 28 ) + + 67 + + - COALESCE ( - - 82, - 11, + - 4 + - 78 + + 95 ) col0
----
-2755
-43

query I rowsort
SELECT DISTINCT - 55 + + 46 + + 36
----
27

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT ALL + ( 14 ) + + 71 / + + 4 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + ( 14 ) + + 71 / + + 4 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2443
SELECT DISTINCT 16 col0, + 76 DIV + + 60 AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-2443
SELECT DISTINCT 16 col0, + 76 / + + 60 AS col0
----
16
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2445
SELECT DISTINCT COALESCE ( - SUM( - NULLIF ( + + 92, - CAST( + + 72 AS SIGNED ) ) ), ( + 53 ) * - - SUM( ALL - 64 ) * - 14 + + ( + COUNT( * ) ) ) + - 29
----
63

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT COALESCE ( - SUM ( - NULLIF ( + + 92, - CAST ( + + 72 AS INTEGER ) ) ), ( + 53 ) * - - SUM ( ALL - 64 ) * - 14 + + ( + COUNT ( * ) ) ) + - 29
----
63

query I rowsort
SELECT + 90 * + 51 AS col2
----
4590

query I rowsort
SELECT ALL 60 + - NULLIF ( 7, + + 58 + - + 80 + - 36 * + 56 * + COALESCE ( - 14, + 20, 48 ) ) * + 6
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT + 34 + - - SUM( DISTINCT + + 8 )
----
42

skipif mysql # not compatible
query I rowsort label-2448
SELECT + 34 + - - SUM ( DISTINCT + + 8 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT ( - COALESCE ( + 90, + COUNT( * ) + - CAST( NULL AS SIGNED ), - + COALESCE ( + + 95, + + COUNT( * ) + COUNT( * ) ) * + MAX( + 26 ), NULLIF ( - 16, MAX( ALL 48 ) ) ) ) * 70 AS col2
----
-6300

skipif mysql # not compatible
query I rowsort label-2449
SELECT ( - COALESCE ( + 90, + COUNT ( * ) + - CAST ( NULL AS INTEGER ), - + COALESCE ( + + 95, + + COUNT ( * ) + COUNT ( * ) ) * + MAX ( + 26 ), NULLIF ( - 16, MAX ( ALL 48 ) ) ) ) * 70 AS col2
----
-6300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2450
SELECT - 43 - + 99 * - - CAST( NULL AS SIGNED ) col2, - 78 * - - 7 + - COUNT( * ) - - + 68
----
NULL
-479

skipif mysql # not compatible
query II rowsort label-2450
SELECT - 43 - + 99 * - - CAST ( NULL AS INTEGER ) col2, - 78 * - - 7 + - COUNT ( * ) - - + 68
----
NULL
-479

query I rowsort
SELECT DISTINCT - - 82 col2
----
82

query I rowsort
SELECT ALL 87 + - - 95 AS col0
----
182

query I rowsort
SELECT COALESCE ( + 4, + 15 ) * 6 + - + 26 + - 21
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT - 1 * + + CASE - ( + + 84 ) WHEN 1 * - + 80 + - 4 * - 73 + + + 45 THEN - 68 + + + COUNT( * ) * - - 89 END + + + 31 + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT - 1 * + + CASE - ( + + 84 ) WHEN 1 * - + 80 + - 4 * - 73 + + + 45 THEN - 68 + + + COUNT ( * ) * - - 89 END + + + 31 + + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2455
SELECT + MAX( ALL - - CAST( + 8 AS SIGNED ) )
----
8

skipif mysql # not compatible
query I rowsort label-2455
SELECT + MAX ( ALL - - CAST ( + 8 AS INTEGER ) )
----
8

query I rowsort
SELECT ALL - 65 col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL - 94 + + 49 - COUNT( - 26 ) * - + 89 * 52 AS col1
----
4583

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - 94 + + 49 - COUNT ( - 26 ) * - + 89 * 52 AS col1
----
4583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2458
SELECT ALL CAST( NULL AS SIGNED ) * + + AVG ( 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL CAST ( NULL AS INTEGER ) * + + AVG ( 68 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT - CASE 92 WHEN 13 + - 21 THEN 74 WHEN + + COUNT( + + 52 ) THEN - - 27 + + 45 * COUNT( * ) * + 21 * - + 76 ELSE + + COUNT( * ) END / + 7 + - CASE 44 + + SUM( + 91 + 13 ) WHEN - 64 THEN 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT - CASE 92 WHEN 13 + - 21 THEN 74 WHEN + + COUNT ( + + 52 ) THEN - - 27 + + 45 * COUNT ( * ) * + 21 * - + 76 ELSE + + COUNT ( * ) END / + 7 + - CASE 44 + + SUM ( + 91 + 13 ) WHEN - 64 THEN 71 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2460
SELECT + 87 * + - 93 - CASE + + 51 WHEN - CAST( + 48 AS DECIMAL ) THEN NULL WHEN + 87 + + 27 THEN - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT + 87 * + - 93 - CASE + + 51 WHEN - CAST ( + 48 AS REAL ) THEN NULL WHEN + 87 + + 27 THEN - 55 END AS col2
----
NULL

query II rowsort
SELECT 74 * + - 8 AS col1, ( + 68 ) - + 53
----
-592
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2462
SELECT 48 + 26 + 37 + - 21 + - 92 + - 23 * - + 22 * 52 * + 37 AS col2, + 28 + ( - 42 ) * + COUNT( * )
----
973542
-14

skipif mysql # not compatible
query II rowsort label-2462
SELECT 48 + 26 + 37 + - 21 + - 92 + - 23 * - + 22 * 52 * + 37 AS col2, + 28 + ( - 42 ) * + COUNT ( * )
----
973542
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT 68 * COUNT( * ) + - 52
----
16

skipif mysql # not compatible
query I rowsort label-2463
SELECT 68 * COUNT ( * ) + - 52
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-2464
SELECT ALL - 95 DIV + 84 col1, + 54
----
-1
54

skipif mysql # not compatible
query II rowsort label-2464
SELECT ALL - 95 / + 84 col1, + 54
----
-1
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT DISTINCT - 5 DIV + - 84
----
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT - 5 / + - 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT ALL 9 * - + SUM( ALL + 91 ) * + + COALESCE ( + 84, - 44, + 90 * - CAST( + - 99 AS SIGNED ) * - 39 + - + 57 + - + 90 )
----
-68796

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL 9 * - + SUM ( ALL + 91 ) * + + COALESCE ( + 84, - 44, + 90 * - CAST ( + - 99 AS INTEGER ) * - 39 + - + 57 + - + 90 )
----
-68796

query I rowsort
SELECT 90 * 5 AS col2
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT SUM( DISTINCT - - 72 ) + 96
----
168

skipif mysql # not compatible
query I rowsort label-2468
SELECT SUM ( DISTINCT - - 72 ) + 96
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL MAX( ALL 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL MAX ( ALL 41 ) AS col0
----
41

query I rowsort
SELECT - 98 + + 46 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT - 72 DIV 20 * - + 76
----
228

skipif mysql # not compatible
query I rowsort label-2471
SELECT - 72 / 20 * - + 76
----
228

query I rowsort
SELECT ALL - 18 + - 30 - ( + + 14 ) AS col1
----
-62

query I rowsort
SELECT 12 * + 63 + 88 + - + 0
----
844

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

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

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

skipif mysql # not compatible
query I rowsort label-2475
SELECT + CAST ( NULL AS INTEGER ) + 86 * + - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL - NULLIF ( + 66, - - 29 ) + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL - NULLIF ( + 66, - - 29 ) + - COUNT ( * )
----
-67

query I rowsort
SELECT DISTINCT - 15 * - 75 col1
----
1125

query II rowsort
SELECT ALL + 57 + + + 32, 25 AS col1
----
89
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL - ( - 97 ) + - + MAX( - + 88 ) AS col1
----
185

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL - ( - 97 ) + - + MAX ( - + 88 ) AS col1
----
185

query I rowsort
SELECT + 61 + - 31 AS col1
----
30

query I rowsort
SELECT ( - 0 ) col2
----
0

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

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

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

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

query I rowsort
SELECT ALL 71 + 77 AS col2
----
148

query I rowsort
SELECT + + 36 + COALESCE ( + 15, + 94, 81 ) + - - 31 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2486
SELECT + - 30 + - 55 * + CAST( - ( + COUNT( * ) ) AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-2486
SELECT + - 30 + - 55 * + CAST ( - ( + COUNT ( * ) ) AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2487
SELECT MIN( DISTINCT + 27 ), 7 * + - ( - 17 ) AS col2
----
27
119

skipif mysql # not compatible
query II rowsort label-2487
SELECT MIN ( DISTINCT + 27 ), 7 * + - ( - 17 ) AS col2
----
27
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT ALL + CAST( + 26 AS SIGNED ) * + ( - 4 ) + 62 * + 47 * 96 * + 62 * 49
----
849862168

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL + CAST ( + 26 AS INTEGER ) * + ( - 4 ) + 62 * + 47 * 96 * + 62 * 49
----
849862168

onlyif mysql # aggregate syntax: 
query II rowsort label-2489
SELECT + + 44 * - ( - 12 ) + COUNT( * ) * + 30 - - 47 * + - 94, 5 * 9 AS col2
----
-3860
45

skipif mysql # not compatible
query II rowsort label-2489
SELECT + + 44 * - ( - 12 ) + COUNT ( * ) * + 30 - - 47 * + - 94, 5 * 9 AS col2
----
-3860
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ( CASE - 46 WHEN - - 65 + + COUNT( * ) THEN - + 29 ELSE NULLIF ( NULLIF ( + 77, + 10 ), - COUNT( * ) + + 46 * + + 2 * 76 ) * - 77 - - 19 * - 75 + 53 END )
----
-7301

skipif mysql # not compatible
query I rowsort label-2490
SELECT ( CASE - 46 WHEN - - 65 + + COUNT ( * ) THEN - + 29 ELSE NULLIF ( NULLIF ( + 77, + 10 ), - COUNT ( * ) + + 46 * + + 2 * 76 ) * - 77 - - 19 * - 75 + 53 END )
----
-7301

query II rowsort
SELECT ALL + 13, - ( + 13 ) AS col1
----
13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL COUNT( * ) * + 70 * 64 AS col0
----
4480

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL COUNT ( * ) * + 70 * 64 AS col0
----
4480

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

skipif mysql # not compatible
query I rowsort label-2493
SELECT + ( + 66 ) + CAST ( NULL AS INTEGER ) - + - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT CASE 79 WHEN + 47 THEN + - SUM( - 19 ) + + + SUM( ALL + 15 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT CASE 79 WHEN + 47 THEN + - SUM ( - 19 ) + + + SUM ( ALL + 15 ) ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT + MAX( 96 ) + + + 2
----
98

skipif mysql # not compatible
query I rowsort label-2496
SELECT + MAX ( 96 ) + + + 2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2497
SELECT + 76 DIV - - 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2497
SELECT + 76 / - - 44 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2498
SELECT - MAX( ALL + ( - 12 ) ) DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT - MAX ( ALL + ( - 12 ) ) / - 48
----
0

query I rowsort
SELECT CASE + 95 WHEN NULLIF ( - COALESCE ( - - 40, - 2 ), - NULLIF ( + 39, - 78 ) ) THEN NULL WHEN + 51 THEN + 75 WHEN - 54 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2500
SELECT ALL + COUNT( * ), + 88 DIV - 6 AS col2
----
1
-14

skipif mysql # not compatible
query II rowsort label-2500
SELECT ALL + COUNT ( * ), + 88 / - 6 AS col2
----
1
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT CASE + ( - ( + COUNT( * ) ) ) WHEN + 64 THEN 83 * - 56 WHEN + 96 / - 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT CASE + ( - ( + COUNT ( * ) ) ) WHEN + 64 THEN 83 * - 56 WHEN + 96 / - 36 THEN NULL END
----
NULL

query I rowsort
SELECT + 22 * - - 90
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL - 91 * COUNT( * ) * + + 23 AS col2
----
-2093

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - 91 * COUNT ( * ) * + + 23 AS col2
----
-2093

query I rowsort
SELECT ALL + COALESCE ( ( + - 32 ), 10 ) AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT + 86 DIV - - 21
----
4

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 86 / - - 21
----
4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2507
SELECT + CAST( + CASE - - 41 WHEN COUNT( - 73 ) * + 29 THEN NULL WHEN - 96 THEN + - 29 * - 16 * 75 + - 50 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT + CAST ( + CASE - - 41 WHEN COUNT ( - 73 ) * + 29 THEN NULL WHEN - 96 THEN + - 29 * - 16 * 75 + - 50 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2508
SELECT 83 * MAX( - 19 ) DIV - 68 - - + 95
----
118

skipif mysql # not compatible
query I rowsort label-2508
SELECT 83 * MAX ( - 19 ) / - 68 - - + 95
----
118

query II rowsort
SELECT ALL 77 col0, 42 AS col0
----
77
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2510
SELECT ALL 92 + + - MIN( + 17 ) DIV - 15 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL 92 + + - MIN ( + 17 ) / - 15 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT + ( + 65 ) + - 97 * NULLIF ( COALESCE ( + 28, - 16 ), + COUNT( * ) ) AS col0
----
-2651

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT + ( + 65 ) + - 97 * NULLIF ( COALESCE ( + 28, - 16 ), + COUNT ( * ) ) AS col0
----
-2651

query II rowsort
SELECT ALL + - 97 + - 23 * - 73, - 86 AS col2
----
1582
-86

query I rowsort
SELECT - ( - + NULLIF ( 55, - 88 ) ) * + ( + + 49 )
----
2695

query I rowsort
SELECT ALL + - 80 + + 70
----
-10

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

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

query I rowsort
SELECT ALL + - 5 + - - 44 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT - - 34 * - COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-2517
SELECT - - 34 * - COUNT ( * ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL - - SUM( + + 13 ) * - 69 AS col1
----
-897

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL - - SUM ( + + 13 ) * - 69 AS col1
----
-897

query I rowsort
SELECT DISTINCT - + 75 * + 25
----
-1875

query II rowsort
SELECT DISTINCT + 78 col2, - 49 AS col2
----
78
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT COUNT( DISTINCT 0 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2521
SELECT COUNT ( DISTINCT 0 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2522
SELECT DISTINCT 65 - CASE + 79 WHEN - 82 THEN NULL WHEN - 50 * + 48 / + - COUNT( * ) + COUNT( * ) THEN + 79 END AS col0, 99
----
NULL
99

skipif mysql # not compatible
query II rowsort label-2522
SELECT DISTINCT 65 - CASE + 79 WHEN - 82 THEN NULL WHEN - 50 * + 48 / + - COUNT ( * ) + COUNT ( * ) THEN + 79 END AS col0, 99
----
NULL
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT - 82 + + COALESCE ( - NULLIF ( CAST( NULL AS SIGNED ), + 19 ), + 74 - - 46 + 63, + CAST( - MAX( + 87 ) AS SIGNED ) ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-2523
SELECT - 82 + + COALESCE ( - NULLIF ( CAST ( NULL AS INTEGER ), + 19 ), + 74 - - 46 + 63, + CAST ( - MAX ( + 87 ) AS INTEGER ) ) AS col1
----
101

query I rowsort
SELECT - 0 * + ( 22 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2525
SELECT + COUNT( * ) * + 61 AS col2, + 61
----
61
61

skipif mysql # not compatible
query II rowsort label-2525
SELECT + COUNT ( * ) * + 61 AS col2, + 61
----
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT - MAX( DISTINCT + 38 ) + + 27 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2526
SELECT - MAX ( DISTINCT + 38 ) + + 27 AS col0
----
-11

query II rowsort
SELECT + ( - + CASE + 30 WHEN - AVG ( - 20 ) THEN - 81 * 98 END ), - 96 + + + COALESCE ( + - 21, 21 * 19 + - 31 ) AS col0
----
NULL
-117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL 64 * - - 13 / - 51 * + 84 / + CASE + 35 WHEN 56 THEN + + CASE 56 WHEN + 67 * + COUNT( * ) * - COUNT( * ) THEN - 20 END - + 8 WHEN + - 98 THEN + 89 - 81 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL 64 * - - 13 / - 51 * + 84 / + CASE + 35 WHEN 56 THEN + + CASE 56 WHEN + 67 * + COUNT ( * ) * - COUNT ( * ) THEN - 20 END - + 8 WHEN + - 98 THEN + 89 - 81 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + MIN( + + 15 ) * - 46 col2
----
-690

skipif mysql # not compatible
query I rowsort label-2530
SELECT + MIN ( + + 15 ) * - 46 col2
----
-690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2531
SELECT DISTINCT + ( - MIN( - - 13 ) ) DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT + ( - MIN ( - - 13 ) ) / + - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + COUNT( * ) + - - 65 * + 83 + COUNT( * )
----
5397

skipif mysql # not compatible
query I rowsort label-2532
SELECT + COUNT ( * ) + - - 65 * + 83 + COUNT ( * )
----
5397

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

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

query II rowsort
SELECT DISTINCT + 6 AS col0, + 10 AS col1
----
6
10

query I rowsort
SELECT + 98 - + - ( 95 )
----
193

query I rowsort
SELECT ALL 4 * 50 col1
----
200

query I rowsort
SELECT - 10 * + 50
----
-500

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT + CAST( - NULLIF ( - CASE MAX( - - 46 ) WHEN - + 70 / 95 + + 40 * 45 - 87 THEN - 55 WHEN 90 THEN NULL END, - COALESCE ( - COUNT( * ), + + 80 * 18 * - 92 ) * + MIN( DISTINCT - 17 * 64 ) ) AS SIGNED ) / + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT + CAST ( - NULLIF ( - CASE MAX ( - - 46 ) WHEN - + 70 / 95 + + 40 * 45 - 87 THEN - 55 WHEN 90 THEN NULL END, - COALESCE ( - COUNT ( * ), + + 80 * 18 * - 92 ) * + MIN ( DISTINCT - 17 * 64 ) ) AS INTEGER ) / + 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2540
SELECT ALL ( 58 ) DIV - ( + - 16 ) + - 34 * COUNT( * ) * - + 44 + - MAX( - 97 ) AS col0
----
1596

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL ( 58 ) / - ( + - 16 ) + - 34 * COUNT ( * ) * - + 44 + - MAX ( - 97 ) AS col0
----
1596

query I rowsort
SELECT ( - 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT + ( - - MIN( + + 46 ) ) + 5 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2542
SELECT + ( - - MIN ( + + 46 ) ) + 5 AS col2
----
51

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2544
SELECT + 94, COUNT( * ) * + - ( + + 67 ) AS col2
----
94
-67

skipif mysql # not compatible
query II rowsort label-2544
SELECT + 94, COUNT ( * ) * + - ( + + 67 ) AS col2
----
94
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT - MIN( ALL 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - MIN ( ALL 33 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT MIN( DISTINCT 66 ) + 8
----
74

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT MIN ( DISTINCT 66 ) + 8
----
74

query I rowsort
SELECT 72 * 88 + + - 3 AS col2
----
6333

query I rowsort
SELECT ALL 4 * + 7
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT 71 AS col1, ( SUM( - 61 ) )
----
71
-61

skipif mysql # not compatible
query II rowsort label-2549
SELECT 71 AS col1, ( SUM ( - 61 ) )
----
71
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL + MAX( DISTINCT + + 66 ) col2
----
66

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL + MAX ( DISTINCT + + 66 ) col2
----
66

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

query I rowsort
SELECT - 79 - + 74 * 43
----
-3261

onlyif mysql # aggregate syntax: 
query II rowsort label-2553
SELECT DISTINCT - 70, SUM( ALL - 4 ) AS col1
----
-70
-4

skipif mysql # not compatible
query II rowsort label-2553
SELECT DISTINCT - 70, SUM ( ALL - 4 ) AS col1
----
-70
-4

query II rowsort
SELECT ALL 41 AS col2, 44
----
41
44

query I rowsort
SELECT 29 + - - 2 col2
----
31

query II rowsort
SELECT ALL 63 AS col2, + 91 AS col1
----
63
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2557
SELECT ALL + COALESCE ( - - COALESCE ( + 94, 90 ), - - 91 + - - COUNT( 20 ) ) DIV + COUNT( * ) + 42 * + 22 AS col0
----
1018

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + COALESCE ( - - COALESCE ( + 94, 90 ), - - 91 + - - COUNT ( 20 ) ) / + COUNT ( * ) + 42 * + 22 AS col0
----
1018

query I rowsort
SELECT + 45 + - + 39 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT ALL + 89 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + 89 / 93
----
0

query I rowsort
SELECT + 3 * - - 95 + - 33 + + - 68 - 82 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT 98 + - 52 * ( MAX( DISTINCT + 74 ) ) + 56 * + 83
----
898

skipif mysql # not compatible
query I rowsort label-2561
SELECT 98 + - 52 * ( MAX ( DISTINCT + 74 ) ) + 56 * + 83
----
898

query I rowsort
SELECT 68 + 81 * - 63 * 12 AS col2
----
-61168

query I rowsort
SELECT DISTINCT + 81 * - 90
----
-7290

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL - 9 * 86 * + COUNT( * )
----
-774

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL - 9 * 86 * + COUNT ( * )
----
-774

query II rowsort
SELECT 64 * - 82 col0, - 31
----
-5248
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2566
SELECT DISTINCT + 91 + COUNT( * ) * COUNT( * ) * 37 DIV - + COUNT( * ) col0, - COUNT( * ) + - - CAST( NULL AS SIGNED ) * COUNT( * ) * + - 59 + 19 col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2566
SELECT DISTINCT + 91 + COUNT ( * ) * COUNT ( * ) * 37 / - + COUNT ( * ) col0, - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + - 59 + 19 col1
----
54
NULL

query I rowsort
SELECT DISTINCT + 18 * - 6 AS col1
----
-108

query I rowsort
SELECT DISTINCT - 46 + NULLIF ( - - 73, - 10 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT COALESCE ( 23, 77 - + 76 + + COUNT( * ) + - 45 * - + 78 + - - 20 * + COUNT( * ) + 42 + - 10 ) * MIN( - 81 ) + + 5 + COUNT( * ) + + + MIN( + 9 ) + 79 * - MAX( + 33 ) * 65
----
-171303

skipif mysql # not compatible
query I rowsort label-2569
SELECT COALESCE ( 23, 77 - + 76 + + COUNT ( * ) + - 45 * - + 78 + - - 20 * + COUNT ( * ) + 42 + - 10 ) * MIN ( - 81 ) + + 5 + COUNT ( * ) + + + MIN ( + 9 ) + 79 * - MAX ( + 33 ) * 65
----
-171303

query I rowsort
SELECT ALL + 74 + + 42
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2571
SELECT CAST( NULL AS SIGNED ) + + AVG ( ALL + - 39 ), + 26 AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-2571
SELECT CAST ( NULL AS INTEGER ) + + AVG ( ALL + - 39 ), + 26 AS col0
----
NULL
26

query II rowsort
SELECT - - 12 * + 63 + + - 50 AS col0, 31 AS col0
----
706
31

query I rowsort
SELECT + 85 * 54
----
4590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2574
SELECT 64 * - COUNT( * ) + - NULLIF ( 15, + + 87 ) * + CAST( - + 94 AS SIGNED )
----
1346

skipif mysql # not compatible
query I rowsort label-2574
SELECT 64 * - COUNT ( * ) + - NULLIF ( 15, + + 87 ) * + CAST ( - + 94 AS INTEGER )
----
1346

query I rowsort
SELECT + + 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT SUM( 64 ) + - - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2576
SELECT SUM ( 64 ) + - - COUNT ( * ) AS col2
----
65

query I rowsort
SELECT ALL 81 - - + COALESCE ( - 92, - 67 ) * + ( 48 ) * + + 41 * + 39 col0
----
-7061103

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

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

query I rowsort
SELECT + 1 * + 38 * 48
----
1824

query I rowsort
SELECT 13 * - 93 * + + 3 * - - 24 * - - 71 + + 35 AS col0
----
-6180373

query II rowsort
SELECT - 86 AS col1, 73 AS col1
----
-86
73

query I rowsort
SELECT DISTINCT 88 * + 90 col2
----
7920

query II rowsort
SELECT 18, 38 * - 83 * - ( - 86 ) AS col1
----
18
-271244

query II rowsort
SELECT DISTINCT 46 AS col0, 79 AS col0
----
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL + 5 + SUM( + 16 ) - - 48 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + 5 + SUM ( + 16 ) - - 48 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT 74 - - + 1 + - 88 * COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-2586
SELECT 74 - - + 1 + - 88 * COUNT ( * )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2587
SELECT ALL 87 + CAST( NULL AS SIGNED ) * - 63 / - + 35 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 87 + CAST ( NULL AS INTEGER ) * - 63 / - + 35 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2588
SELECT ALL + 5 + - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col2, - 33 + + + 20 AS col0
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-2588
SELECT ALL + 5 + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col2, - 33 + + + 20 AS col0
----
NULL
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2589
SELECT 2 DIV + + 80
----
0

skipif mysql # not compatible
query I rowsort label-2589
SELECT 2 / + + 80
----
0

query I rowsort
SELECT 73 + - 77
----
-4

query II rowsort
SELECT + 18, + 3 AS col2
----
18
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2593
SELECT ALL 45 * + + 66 * + + 33 + - MIN( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL 45 * + + 66 * + + 33 + - MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT COALESCE ( + SUM( 82 ), + - COUNT( * ) + + MIN( DISTINCT - 65 ) + + ( - + 82 ) )
----
82

skipif mysql # not compatible
query I rowsort label-2594
SELECT COALESCE ( + SUM ( 82 ), + - COUNT ( * ) + + MIN ( DISTINCT - 65 ) + + ( - + 82 ) )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT ALL 51 * + 74 / COALESCE ( + 31, 56, 76 + AVG ( DISTINCT 79 ) ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL 51 * + 74 / COALESCE ( + 31, 56, 76 + AVG ( DISTINCT 79 ) ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 88 * 91 col1
----
8008

query I rowsort
SELECT COALESCE ( + 2, - 50 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2598
SELECT ALL + 70 * - + COUNT( * ) DIV - + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + 70 * - + COUNT ( * ) / - + 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2599
SELECT DISTINCT + 22 AS col1, - 55 + 24 * 43 + + 10 * COUNT( * )
----
22
987

skipif mysql # not compatible
query II rowsort label-2599
SELECT DISTINCT + 22 AS col1, - 55 + 24 * 43 + + 10 * COUNT ( * )
----
22
987

query I rowsort
SELECT - + 29 + - + 3
----
-32

query I rowsort
SELECT ALL + - 49 * + ( + 71 ) - + ( - + 98 ) AS col2
----
-3381

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

query I rowsort
SELECT ALL - - 18 * + + 0 col2
----
0

query I rowsort
SELECT - 80 + 39
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2605
SELECT - SUM( + 6 ) / - + CAST( NULL AS SIGNED ) AS col0, 89 * - - CASE + ( - + 54 ) WHEN - + 3 + - COUNT( * ) THEN - MIN( - 38 ) + + - 80 END + 15
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2605
SELECT - SUM ( + 6 ) / - + CAST ( NULL AS INTEGER ) AS col0, 89 * - - CASE + ( - + 54 ) WHEN - + 3 + - COUNT ( * ) THEN - MIN ( - 38 ) + + - 80 END + 15
----
NULL
NULL

query I rowsort
SELECT + - 45 - 13 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL COALESCE ( ( ( - ( + 27 ) ) ), - ( COUNT( * ) ) ) + 9 * - 46 AS col2
----
-441

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL COALESCE ( ( ( - ( + 27 ) ) ), - ( COUNT ( * ) ) ) + 9 * - 46 AS col2
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + + 76 + - COUNT( * ) + - 26 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2608
SELECT + + 76 + - COUNT ( * ) + - 26 AS col0
----
49

query I rowsort
SELECT ALL - ( - 4 ) AS col0
----
4

query I rowsort
SELECT ALL ( + - 35 ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2611
SELECT ALL 41 + + CAST( + + COUNT( * ) AS SIGNED ) * - 95 + - 50 + + + NULLIF ( 97, 49 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL 41 + + CAST ( + + COUNT ( * ) AS INTEGER ) * - 95 + - 50 + + + NULLIF ( 97, 49 ) AS col2
----
-7

query I rowsort
SELECT + ( 32 ) * + - 19 + + 58 col1
----
-550

query I rowsort
SELECT + ( 14 ) + 95 AS col2
----
109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2614
SELECT DISTINCT COALESCE ( 49, - - 86 + CASE 56 WHEN - 16 + - - 24 THEN NULL WHEN 42 / - - 46 + - - CAST( NULL AS DECIMAL ) THEN - 58 END, - - 7 ) * - ( + - 41 )
----
2009

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT COALESCE ( 49, - - 86 + CASE 56 WHEN - 16 + - - 24 THEN NULL WHEN 42 / - - 46 + - - CAST ( NULL AS REAL ) THEN - 58 END, - - 7 ) * - ( + - 41 )
----
2009

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2615
SELECT + 69 * + 87 AS col1, MAX( DISTINCT + + 77 ) + - ( 35 ) DIV - - 21 AS col0
----
6003
76

skipif mysql # not compatible
query II rowsort label-2615
SELECT + 69 * + 87 AS col1, MAX ( DISTINCT + + 77 ) + - ( 35 ) / - - 21 AS col0
----
6003
76

query II rowsort
SELECT + 75 + - 52 col0, + 84 + + - 59 AS col0
----
23
25

query I rowsort
SELECT ALL 81 + 52 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT - CASE + 42 WHEN - 58 / MAX( + 95 ) * - - ( 71 ) THEN NULL WHEN MIN( ALL + - 65 ) THEN + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT - CASE + 42 WHEN - 58 / MAX ( + 95 ) * - - ( 71 ) THEN NULL WHEN MIN ( ALL + - 65 ) THEN + 41 ELSE NULL END
----
NULL

query I rowsort
SELECT + 51 + + 39 - 59 * + - 21 * 87 + + - 47 AS col1
----
107836

query I rowsort
SELECT + 39 * + 97 AS col1
----
3783

query I rowsort
SELECT ALL 45 + + ( 21 ) + - 56 + + + 36 * - ( - - 84 ) * 78 * - 89 * + - 23 + + 8
----
-482829966

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2623
SELECT DISTINCT - COUNT( * ) + 70 + + 67 * - 99 * - + 14 AS col0, 65 AS col1
----
92931
65

skipif mysql # not compatible
query II rowsort label-2623
SELECT DISTINCT - COUNT ( * ) + 70 + + 67 * - 99 * - + 14 AS col0, 65 AS col1
----
92931
65

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

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL - 2 / COUNT ( * ) col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT DISTINCT - 7 DIV 67 - + ( + - COUNT( * ) ) - - 11 * - + ( + MIN( ALL 44 ) ) DIV - + COUNT( * ) + + 86 - COUNT( * )
----
570

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT - 7 / 67 - + ( + - COUNT ( * ) ) - - 11 * - + ( + MIN ( ALL 44 ) ) / - + COUNT ( * ) + + 86 - COUNT ( * )
----
570

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2627
SELECT ALL + + 72 DIV - 66 + - 60 + - 93 - - + MIN( DISTINCT 59 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL + + 72 / - 66 + - 60 + - 93 - - + MIN ( DISTINCT 59 ) AS col2
----
-95

query I rowsort
SELECT + 40 * + 87 + 34 col2
----
3514

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT - + 67 * + 38 * COUNT( * )
----
-2546

skipif mysql # not compatible
query I rowsort label-2629
SELECT - + 67 * + 38 * COUNT ( * )
----
-2546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2630
SELECT - + CAST( NULL AS SIGNED ) * - 0 * - + 90 - - - 13 + - - NULLIF ( - - COUNT( * ), - 28 ) * + CASE - - COUNT( * ) WHEN - COUNT( * ) THEN + 50 ELSE NULL END + 83, + 75 AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-2630
SELECT - + CAST ( NULL AS INTEGER ) * - 0 * - + 90 - - - 13 + - - NULLIF ( - - COUNT ( * ), - 28 ) * + CASE - - COUNT ( * ) WHEN - COUNT ( * ) THEN + 50 ELSE NULL END + 83, + 75 AS col1
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT MIN( 44 )
----
44

skipif mysql # not compatible
query I rowsort label-2631
SELECT MIN ( 44 )
----
44

query I rowsort
SELECT DISTINCT + - 41 AS col2
----
-41

query I rowsort
SELECT 66 * + + 11 + - NULLIF ( 7, + + 50 )
----
719

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT - - CAST( NULL AS SIGNED ) * - 85 + ( + 78 ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL + + ( ( - COUNT( - + 44 ) ) ) * + 71 + 5
----
-66

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + + ( ( - COUNT ( - + 44 ) ) ) * + 71 + 5
----
-66

query I rowsort
SELECT DISTINCT + + 38 * - 24 + - + 52 + + 24
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL 78 * COUNT( * ) + + - 15 + - + 32 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL 78 * COUNT ( * ) + + - 15 + - + 32 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT ALL 0 * + CAST( + COALESCE ( - CAST( NULL AS SIGNED ), + + COALESCE ( - - 15, - - COUNT( ALL - 15 ) - 89 ) + - + MAX( - 94 ) + 50 + + + 54 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL 0 * + CAST ( + COALESCE ( - CAST ( NULL AS INTEGER ), + + COALESCE ( - - 15, - - COUNT ( ALL - 15 ) - 89 ) + - + MAX ( - 94 ) + 50 + + + 54 ) AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT - CASE WHEN NOT - 85 NOT BETWEEN - 42 AND ( - + COALESCE ( - 68, - NULLIF ( COUNT( * ), + COALESCE ( - 10, - COUNT( * ) * 99 / - 35 + + 29 ) ) - COUNT( DISTINCT - 65 ) + - 31 ) * - 86 ) THEN + 77 * - - COUNT( * ) - - ( 69 + 64 * + 11 ) ELSE + CASE - 10 WHEN COUNT( * ) THEN NULL ELSE CAST( NULL AS SIGNED ) END * + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT - CASE WHEN NOT - 85 NOT BETWEEN - 42 AND ( - + COALESCE ( - 68, - NULLIF ( COUNT ( * ), + COALESCE ( - 10, - COUNT ( * ) * 99 / - 35 + + 29 ) ) - COUNT ( DISTINCT - 65 ) + - 31 ) * - 86 ) THEN + 77 * - - COUNT ( * ) - - ( 69 + 64 * + 11 ) ELSE + CASE - 10 WHEN COUNT ( * ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END * + 13 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT ALL 56 * + 1 * CAST( NULL AS SIGNED ) + - 43 * - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL 56 * + 1 * CAST ( NULL AS INTEGER ) + - 43 * - 85 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT - 63 - + 45 * 8 + + + 27 DIV 81 col0
----
-423

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 63 - + 45 * 8 + + + 27 / 81 col0
----
-423

onlyif mysql # DIV for integer division: 
query II rowsort label-2642
SELECT 83 DIV 75 * 70, 50 * 64 + + - 94 + - 58 AS col2
----
70
3048

skipif mysql # not compatible
query II rowsort label-2642
SELECT 83 / 75 * 70, 50 * 64 + + - 94 + - 58 AS col2
----
70
3048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2643
SELECT ALL + 42 - + 28 DIV + SUM( ALL COALESCE ( - - ( 26 ), - + 68 * + 33, - - 73, 7 ) ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL + 42 - + 28 / + SUM ( ALL COALESCE ( - - ( 26 ), - + 68 * + 33, - - 73, 7 ) ) AS col2
----
41

query I rowsort
SELECT ALL 27 - - 14 AS col1
----
41

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

skipif mysql # not compatible
query II rowsort label-2645
SELECT 62 AS col1, - COUNT ( * ) AS col0
----
62
-1

query I rowsort
SELECT DISTINCT 57 - - 36 * 53
----
1965

query I rowsort
SELECT 82 + 22 AS col1
----
104

query II rowsort
SELECT ALL 26 AS col1, + 55 * + + 96 AS col1
----
26
5280

query I rowsort
SELECT 89 * - - 24
----
2136

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT MIN( ALL - + 44 ) + + 2 + 68 * - - COUNT( * ) + + - 93
----
-67

skipif mysql # not compatible
query I rowsort label-2650
SELECT MIN ( ALL - + 44 ) + + 2 + 68 * - - COUNT ( * ) + + - 93
----
-67

query I rowsort
SELECT DISTINCT 26 * 28 AS col0
----
728

query I rowsort
SELECT + 37 + + 5
----
42

query I rowsort
SELECT 70 * + 51
----
3570

query I rowsort
SELECT - 46 * 0 AS col2
----
0

query I rowsort
SELECT 49 * + - 33
----
-1617

query I rowsort
SELECT ALL - - 48 AS col2
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT + NULLIF ( + CASE - + 91 WHEN 36 * - + COALESCE ( - 76, + 55 ) THEN 51 * - + 84 ELSE + - NULLIF ( - - 48, - 83 * + + 45 ) END, - COUNT( * ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2658
SELECT + NULLIF ( + CASE - + 91 WHEN 36 * - + COALESCE ( - 76, + 55 ) THEN 51 * - + 84 ELSE + - NULLIF ( - - 48, - 83 * + + 45 ) END, - COUNT ( * ) ) AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT COUNT( * ) DIV - MAX( 44 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2659
SELECT COUNT ( * ) / - MAX ( 44 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT CASE COUNT( * ) WHEN COALESCE ( - 75, + COUNT( * ) ) * SUM( ALL - 86 ) + COUNT( * ) THEN 16 WHEN - - 15 THEN NULL END * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT CASE COUNT ( * ) WHEN COALESCE ( - 75, + COUNT ( * ) ) * SUM ( ALL - 86 ) + COUNT ( * ) THEN 16 WHEN - - 15 THEN NULL END * - 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2661
SELECT + 72 * + CASE 32 WHEN + - 7 + - 67 THEN - + CASE CAST( 19 AS SIGNED ) WHEN - ( 11 ) + - 36 + - 37 * - 39 THEN + 51 * + MIN( - + 12 ) WHEN - 9 THEN - MIN( 21 ) DIV - 57 + 51 END WHEN 8 + 50 THEN NULL ELSE 67 + - 16 * ( ( 40 ) ) END + 35
----
-41221

skipif mysql # not compatible
query I rowsort label-2661
SELECT + 72 * + CASE 32 WHEN + - 7 + - 67 THEN - + CASE CAST ( 19 AS INTEGER ) WHEN - ( 11 ) + - 36 + - 37 * - 39 THEN + 51 * + MIN ( - + 12 ) WHEN - 9 THEN - MIN ( 21 ) / - 57 + 51 END WHEN 8 + 50 THEN NULL ELSE 67 + - 16 * ( ( 40 ) ) END + 35
----
-41221

query I rowsort
SELECT 18 * - 73
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL - ( + 66 ) + + 37 + - 38 + + 10 * MIN( DISTINCT - - 52 ) AS col0
----
453

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - ( + 66 ) + + 37 + - 38 + + 10 * MIN ( DISTINCT - - 52 ) AS col0
----
453

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT 9 * 99 DIV + CASE - 11 WHEN - 6 THEN NULL ELSE + 93 - - 62 END + + + 13 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2664
SELECT 9 * 99 / + CASE - 11 WHEN - 6 THEN NULL ELSE + 93 - - 62 END + + + 13 AS col0
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2666
SELECT DISTINCT - 12 * - 44 + + CASE - ( - - 69 ) WHEN + 44 THEN + 88 / 55 WHEN + CAST( - - 21 AS SIGNED ) THEN + - CASE + 10 WHEN - - ( 9 ) + + COUNT( + 32 ) THEN + + ( - + 29 ) + - + NULLIF ( - CASE 30 WHEN + CAST( NULL AS SIGNED ) THEN 64 * COUNT( * ) + 6 END, CAST( 23 AS SIGNED ) ) ELSE 77 END * - 47 + ( COUNT( + 63 ) ) * + 6 ELSE NULL END * 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT - 12 * - 44 + + CASE - ( - - 69 ) WHEN + 44 THEN + 88 / 55 WHEN + CAST ( - - 21 AS INTEGER ) THEN + - CASE + 10 WHEN - - ( 9 ) + + COUNT ( + 32 ) THEN + + ( - + 29 ) + - + NULLIF ( - CASE 30 WHEN + CAST ( NULL AS INTEGER ) THEN 64 * COUNT ( * ) + 6 END, CAST ( 23 AS INTEGER ) ) ELSE 77 END * - 47 + ( COUNT ( + 63 ) ) * + 6 ELSE NULL END * 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL 59 + + COUNT( * ) + - MIN( + - 28 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL 59 + + COUNT ( * ) + - MIN ( + - 28 ) AS col1
----
88

query I rowsort
SELECT DISTINCT 77 + - + 28 + + ( + 13 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2669
SELECT ALL - COUNT( * ) AS col1, MIN( - - NULLIF ( 19, - - 66 + + - 32 ) ) + - 67 AS col1
----
-1
-48

skipif mysql # not compatible
query II rowsort label-2669
SELECT ALL - COUNT ( * ) AS col1, MIN ( - - NULLIF ( 19, - - 66 + + - 32 ) ) + - 67 AS col1
----
-1
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2670
SELECT - 45 AS col2, 43 + + + 22 + 32 + + 80 * + - CAST( NULL AS SIGNED ) * - 71 * + - ( 51 ) + - - COUNT( * ) * + 55 AS col2
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-2670
SELECT - 45 AS col2, 43 + + + 22 + 32 + + 80 * + - CAST ( NULL AS INTEGER ) * - 71 * + - ( 51 ) + - - COUNT ( * ) * + 55 AS col2
----
-45
NULL

query I rowsort
SELECT 9 - 12 * - 94 AS col2
----
1137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT 99 * MAX( ALL 69 )
----
6831

skipif mysql # not compatible
query I rowsort label-2673
SELECT 99 * MAX ( ALL 69 )
----
6831

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT + 29 * NULLIF ( - - 75, - + NULLIF ( + 98, - 91 + + - 47 ) + - MIN( DISTINCT 14 ) + - 75 )
----
2175

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + 29 * NULLIF ( - - 75, - + NULLIF ( + 98, - 91 + + - 47 ) + - MIN ( DISTINCT 14 ) + - 75 )
----
2175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2676
SELECT COUNT( * ) + COALESCE ( - 99, + 25 ) * - 74 - + CASE - - 86 WHEN - - ( - 85 ) THEN + 78 + + 89 WHEN - ( 41 ) - 60 THEN NULL ELSE NULL END / - + 57 * CAST( + - 33 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT COUNT ( * ) + COALESCE ( - 99, + 25 ) * - 74 - + CASE - - 86 WHEN - - ( - 85 ) THEN + 78 + + 89 WHEN - ( 41 ) - 60 THEN NULL ELSE NULL END / - + 57 * CAST ( + - 33 AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 21 AS col1, 27 AS col0
----
21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT 27 + + + MAX( - 36 ) * - 61
----
2223

skipif mysql # not compatible
query I rowsort label-2678
SELECT 27 + + + MAX ( - 36 ) * - 61
----
2223

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2680
SELECT NULLIF ( - 8, - ( NULLIF ( + 74, + 80 * + CASE + 37 WHEN - 40 THEN NULL WHEN - + 0 - - 82 THEN NULL WHEN CAST( NULL AS SIGNED ) / + + ( - 75 ) - - MAX( 30 ) THEN + 98 * + 82 + - 53 + - - CASE - - 33 WHEN - 53 THEN NULL ELSE 79 * COUNT( * ) END + 17 * - 77 ELSE NULL END ) ) ) + 93
----
85

skipif mysql # not compatible
query I rowsort label-2680
SELECT NULLIF ( - 8, - ( NULLIF ( + 74, + 80 * + CASE + 37 WHEN - 40 THEN NULL WHEN - + 0 - - 82 THEN NULL WHEN CAST ( NULL AS INTEGER ) / + + ( - 75 ) - - MAX ( 30 ) THEN + 98 * + 82 + - 53 + - - CASE - - 33 WHEN - 53 THEN NULL ELSE 79 * COUNT ( * ) END + 17 * - 77 ELSE NULL END ) ) ) + 93
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT COALESCE ( + 63, + ( COALESCE ( - - COUNT( * ), 65 ) ), + 61 ) / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT COALESCE ( + 63, + ( COALESCE ( - - COUNT ( * ), 65 ) ), + 61 ) / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT DISTINCT - 29 DIV + 4 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT - 29 / + 4 AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2683
SELECT DISTINCT - 15, + CAST( - 61 AS SIGNED ) * + COALESCE ( - 8, - ( - MAX( DISTINCT ( 74 ) ) ) * 91 - + - COUNT( * ) ) AS col2
----
-15
488

skipif mysql # not compatible
query II rowsort label-2683
SELECT DISTINCT - 15, + CAST ( - 61 AS INTEGER ) * + COALESCE ( - 8, - ( - MAX ( DISTINCT ( 74 ) ) ) * 91 - + - COUNT ( * ) ) AS col2
----
-15
488

onlyif mysql # aggregate syntax: 
query II rowsort label-2684
SELECT 56 AS col2, - COUNT( DISTINCT 10 ) * - - 22
----
56
-22

skipif mysql # not compatible
query II rowsort label-2684
SELECT 56 AS col2, - COUNT ( DISTINCT 10 ) * - - 22
----
56
-22

query I rowsort
SELECT DISTINCT - 79 + + 54 AS col1
----
-25

query II rowsort
SELECT DISTINCT - - 36 AS col1, - 19 AS col0
----
36
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2687
SELECT 56 AS col1, MIN( ALL - 50 ) * - - 78 AS col0
----
56
-3900

skipif mysql # not compatible
query II rowsort label-2687
SELECT 56 AS col1, MIN ( ALL - 50 ) * - - 78 AS col0
----
56
-3900

onlyif mysql # aggregate syntax: 
query II rowsort label-2688
SELECT + + ( - 53 ), - COUNT( * ) + 61 + - SUM( DISTINCT + + 34 ) AS col1
----
-53
26

skipif mysql # not compatible
query II rowsort label-2688
SELECT + + ( - 53 ), - COUNT ( * ) + 61 + - SUM ( DISTINCT + + 34 ) AS col1
----
-53
26

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

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

query II rowsort
SELECT DISTINCT - + 59 AS col0, - NULLIF ( + ( + + 61 ), + + 80 + 26 ) * + + 6
----
-59
-366

onlyif mysql # aggregate syntax: 
query II rowsort label-2691
SELECT + 66 AS col0, 64 - - COUNT( * )
----
66
65

skipif mysql # not compatible
query II rowsort label-2691
SELECT + 66 AS col0, 64 - - COUNT ( * )
----
66
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2692
SELECT CASE - - 89 WHEN - 53 * - 49 DIV + 94 + + NULLIF ( + - ( + COALESCE ( 64, ( AVG ( - 69 ) ), - 39 DIV - + 14 ) ), 36 ) + - 61 THEN - COUNT( * ) DIV + + 2 ELSE + 32 END DIV - 50 - + 66 * - 99
----
6534

skipif mysql # not compatible
query I rowsort label-2692
SELECT CASE - - 89 WHEN - 53 * - 49 / + 94 + + NULLIF ( + - ( + COALESCE ( 64, ( AVG ( - 69 ) ), - 39 / - + 14 ) ), 36 ) + - 61 THEN - COUNT ( * ) / + + 2 ELSE + 32 END / - 50 - + 66 * - 99
----
6534

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL - 73 * + 13 + + + CASE 86 WHEN - COUNT( * ) THEN - 48 + + + ( COALESCE ( + 36, + 81 / + 75 ) ) / - 49 + + 60 / - 24 ELSE NULL END + + 38 + - 46 + 2 / + COUNT( * ) + + 20 * - 31 + + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - 73 * + 13 + + + CASE 86 WHEN - COUNT ( * ) THEN - 48 + + + ( COALESCE ( + 36, + 81 / + 75 ) ) / - 49 + + 60 / - 24 ELSE NULL END + + 38 + - 46 + 2 / + COUNT ( * ) + + 20 * - 31 + + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL + 37 * - 1 + 3 + ( - - COUNT( * ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL + 37 * - 1 + 3 + ( - - COUNT ( * ) ) AS col1
----
-33

query II rowsort
SELECT DISTINCT - 84, ( + 48 ) AS col2
----
-84
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL + 3 + CAST( 75 AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + 3 + CAST ( 75 AS INTEGER ) AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT DISTINCT CAST( + ( 96 ) AS SIGNED ) + + 81
----
177

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT CAST ( + ( 96 ) AS INTEGER ) + + 81
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT MAX( DISTINCT - + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-2698
SELECT MAX ( DISTINCT - + 54 )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT CAST( NULL AS SIGNED ) * + ( 59 ) + - + 85 * - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT CAST ( NULL AS INTEGER ) * + ( 59 ) + - + 85 * - + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT ALL AVG ( + ( 20 ) ) * + - CASE NULLIF ( - 6, + MIN( + 74 ) ) WHEN + - ( + 9 ) THEN + 22 * - 45 END - + COALESCE ( CAST( + + COALESCE ( - - COUNT( * ), - 8 ) AS SIGNED ), 33, NULLIF ( - + 36, - 57 + + COUNT( * ) * COUNT( * ) ), - NULLIF ( - 95, MIN( ALL - 61 ) * - 17 + + ( + ( 47 ) ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL AVG ( + ( 20 ) ) * + - CASE NULLIF ( - 6, + MIN ( + 74 ) ) WHEN + - ( + 9 ) THEN + 22 * - 45 END - + COALESCE ( CAST ( + + COALESCE ( - - COUNT ( * ), - 8 ) AS INTEGER ), 33, NULLIF ( - + 36, - 57 + + COUNT ( * ) * COUNT ( * ) ), - NULLIF ( - 95, MIN ( ALL - 61 ) * - 17 + + ( + ( 47 ) ) ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT + ( + 61 ) DIV - + 60 + - 42 DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT + ( + 61 ) / - + 60 + - 42 / - 32 AS col1
----
0

query I rowsort
SELECT - 70 + - + 12 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2703
SELECT DISTINCT 87 / CAST( NULL AS DECIMAL ), COUNT( * ) - - 14 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-2703
SELECT DISTINCT 87 / CAST ( NULL AS REAL ), COUNT ( * ) - - 14 AS col1
----
NULL
15

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

query I rowsort
SELECT ALL + 87 * + ( - - 57 )
----
4959

query I rowsort
SELECT + 16 * - 36
----
-576

query I rowsort
SELECT ALL 22 * 70
----
1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT - COALESCE ( + 49, - CAST( NULL AS SIGNED ), + CASE + 27 WHEN + COALESCE ( - 80, COUNT( * ), + - 5 ) * + 48 / + - 54 * 88 THEN - 86 END - + 96 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2708
SELECT - COALESCE ( + 49, - CAST ( NULL AS INTEGER ), + CASE + 27 WHEN + COALESCE ( - 80, COUNT ( * ), + - 5 ) * + 48 / + - 54 * 88 THEN - 86 END - + 96 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + ( + COUNT( * ) ) * CASE 7 WHEN 11 + + 36 THEN ( - 8 ) * + 79 WHEN - COUNT( * ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT + ( + COUNT ( * ) ) * CASE 7 WHEN 11 + + 36 THEN ( - 8 ) * + 79 WHEN - COUNT ( * ) THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2710
SELECT + ( + 82 ) - - ( - 23 ) * - + NULLIF ( + 7, - 7 - + 63 - - 18 - - 25 - + CAST( - - COUNT( * ) AS DECIMAL ) + - - COUNT( * ) ) * - 91 + + 44 + - 54 * - - SUM( - 2 ) AS col0
----
-14417

skipif mysql # not compatible
query I rowsort label-2710
SELECT + ( + 82 ) - - ( - 23 ) * - + NULLIF ( + 7, - 7 - + 63 - - 18 - - 25 - + CAST ( - - COUNT ( * ) AS REAL ) + - - COUNT ( * ) ) * - 91 + + 44 + - 54 * - - SUM ( - 2 ) AS col0
----
-14417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2711
SELECT - 80 * 45 * + MAX( - 33 ) DIV - 1 AS col2
----
-118800

skipif mysql # not compatible
query I rowsort label-2711
SELECT - 80 * 45 * + MAX ( - 33 ) / - 1 AS col2
----
-118800

onlyif mysql # aggregate syntax: 
query II rowsort label-2712
SELECT - 50 - - 32, 77 * - 8 - - + MIN( 64 ) AS col2
----
-18
-552

skipif mysql # not compatible
query II rowsort label-2712
SELECT - 50 - - 32, 77 * - 8 - - + MIN ( 64 ) AS col2
----
-18
-552

onlyif mysql # aggregate syntax: 
query II rowsort label-2713
SELECT ALL + SUM( DISTINCT + 3 ) * - 58 * 95 * - 17 AS col2, - 72 + - 20 AS col1
----
281010
-92

skipif mysql # not compatible
query II rowsort label-2713
SELECT ALL + SUM ( DISTINCT + 3 ) * - 58 * 95 * - 17 AS col2, - 72 + - 20 AS col1
----
281010
-92

query I rowsort
SELECT - 44 * - 95 col2
----
4180

onlyif mysql # aggregate syntax: 
query II rowsort label-2715
SELECT DISTINCT MIN( ALL - 46 ) AS col0, + 36
----
-46
36

skipif mysql # not compatible
query II rowsort label-2715
SELECT DISTINCT MIN ( ALL - 46 ) AS col0, + 36
----
-46
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2716
SELECT ALL - 30 + + 60 AS col0, 17 + - COUNT( * ) AS col0
----
30
16

skipif mysql # not compatible
query II rowsort label-2716
SELECT ALL - 30 + + 60 AS col0, 17 + - COUNT ( * ) AS col0
----
30
16

query I rowsort
SELECT - + 61 * + 10 * + 2 * - + 18 * COALESCE ( + + ( 11 ), - - 77 * - - 32 )
----
241560

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT - + 44 - + ( COUNT( * ) ) * + 59 * 20 + + 7
----
-1217

skipif mysql # not compatible
query I rowsort label-2718
SELECT - + 44 - + ( COUNT ( * ) ) * + 59 * 20 + + 7
----
-1217

query I rowsort
SELECT ALL + + 60 * - 93 + - 72 - - - AVG ( - - 85 ) + - AVG ( - 76 ) + - CASE + ( - 83 ) WHEN + NULLIF ( 39, + + 10 ) * + + 58 * + + 27 + - + 86 THEN NULL WHEN - - 96 THEN NULL WHEN + 73 THEN - 22 END * 67
----
NULL

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

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

query II rowsort
SELECT - 83 * + + 40, - 36 col1
----
-3320
-36

query I rowsort
SELECT - + 56 col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT ALL + - 97 + - + 62 + 75, + COUNT( * ) - - 76 + + + 71 + ( + 0 ) + + ( 5 ) * + - 88 * + 20 * 67 * - 56 AS col0
----
-84
33017748

skipif mysql # not compatible
query II rowsort label-2723
SELECT ALL + - 97 + - + 62 + 75, + COUNT ( * ) - - 76 + + + 71 + ( + 0 ) + + ( 5 ) * + - 88 * + 20 * 67 * - 56 AS col0
----
-84
33017748

query II rowsort
SELECT DISTINCT - - 17 * - 9, 61 AS col2
----
-153
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2725
SELECT ALL - CAST( NULL AS SIGNED ) / + - 66 col1, 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-2725
SELECT ALL - CAST ( NULL AS INTEGER ) / + - 66 col1, 77
----
NULL
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT ALL + CASE COUNT( * ) WHEN + - 58 + + - ( + - 87 ) THEN - + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL + CASE COUNT ( * ) WHEN + - 58 + + - ( + - 87 ) THEN - + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL + 83 * - COUNT( * ) + - - 60 + 47 + + 60 + - 41
----
43

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL + 83 * - COUNT ( * ) + - - 60 + 47 + + 60 + - 41
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT + - 68 * CASE + 11 WHEN 76 THEN NULL ELSE - 67 - COUNT( * ) END
----
4624

skipif mysql # not compatible
query I rowsort label-2729
SELECT + - 68 * CASE + 11 WHEN 76 THEN NULL ELSE - 67 - COUNT ( * ) END
----
4624

query I rowsort
SELECT ALL + 71 col0
----
71

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

query II rowsort
SELECT ALL 77 * + + 3, 33 col1
----
231
33

query III rowsort
SELECT - ( - 5 ) * + 58 AS col2, 31, + 99 col0
----
290
31
99

query I rowsort
SELECT + 29 * - 76 AS col0
----
-2204

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT + COALESCE ( - 38, - - 83 DIV + - 39 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2736
SELECT + COALESCE ( - 38, - - 83 / + - 39 ) AS col2
----
-38

query I rowsort
SELECT ALL + NULLIF ( 63, - 15 ) AS col0
----
63

query I rowsort
SELECT + 93 * + 18 AS col2
----
1674

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2740
SELECT ALL + 47 AS col0, + 84 - CASE 79 WHEN - COUNT( * ) * + ( + CAST( NULL AS SIGNED ) ) THEN + - 34 ELSE - - NULLIF ( 67, - + 43 - - + ( + 18 ) * - 7 ) END + 14 - + CASE - CAST( + 50 AS SIGNED ) WHEN - - 11 THEN ( - + 98 ) WHEN + + ( MAX( - 69 ) ) * 57 THEN + 56 END + - AVG ( DISTINCT + 17 ) AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-2740
SELECT ALL + 47 AS col0, + 84 - CASE 79 WHEN - COUNT ( * ) * + ( + CAST ( NULL AS INTEGER ) ) THEN + - 34 ELSE - - NULLIF ( 67, - + 43 - - + ( + 18 ) * - 7 ) END + 14 - + CASE - CAST ( + 50 AS INTEGER ) WHEN - - 11 THEN ( - + 98 ) WHEN + + ( MAX ( - 69 ) ) * 57 THEN + 56 END + - AVG ( DISTINCT + 17 ) AS col1
----
47
NULL

query I rowsort
SELECT + 87 + + 29 AS col0
----
116

query I rowsort
SELECT + 57 * - 61
----
-3477

query I rowsort
SELECT + 63 * + 81 * + ( + CASE + 85 WHEN - + 48 THEN - 22 ELSE 7 END )
----
35721

onlyif mysql # DIV for integer division: 
query I rowsort label-2744
SELECT ALL 69 DIV - ( - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL 69 / - ( - 36 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT - CASE + 26 WHEN + + 35 THEN NULL WHEN - 88 + - 34 + 47 THEN NULL WHEN - + NULLIF ( - - 20, - - 5 ) + - 8 THEN - ( + - 10 ) ELSE + COUNT( * ) END * + 17 + - 98 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-2746
SELECT - CASE + 26 WHEN + + 35 THEN NULL WHEN - 88 + - 34 + 47 THEN NULL WHEN - + NULLIF ( - - 20, - - 5 ) + - 8 THEN - ( + - 10 ) ELSE + COUNT ( * ) END * + 17 + - 98 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT DISTINCT + 4 * 37 + + COUNT( + + ( - + 61 ) ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT + 4 * 37 + + COUNT ( + + ( - + 61 ) ) AS col1
----
149

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

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL 33 / + COUNT ( * )
----
33

query I rowsort
SELECT + 3 + + 20 * - - 66
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT ALL NULLIF ( MAX( DISTINCT + - 29 ), + 38 ) + - 2 + + 93
----
62

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL NULLIF ( MAX ( DISTINCT + - 29 ), + 38 ) + - 2 + + 93
----
62

query I rowsort
SELECT ALL - 21 + + 12
----
-9

query I rowsort
SELECT + 40 + + 14
----
54

query I rowsort
SELECT ALL 9 * - - 99 AS col2
----
891

query I rowsort
SELECT ALL + 10 + + 7 AS col1
----
17

query I rowsort
SELECT DISTINCT - 77 + + + 31
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT ALL - - 45 + - + CAST( 2 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - - 45 + - + CAST ( 2 AS INTEGER )
----
43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2758
SELECT + - 38 * - CAST( - 4 AS SIGNED ) AS col0, 97 / + 99 * - 11 - CAST( NULL AS SIGNED )
----
-152
NULL

skipif mysql # not compatible
query II rowsort label-2758
SELECT + - 38 * - CAST ( - 4 AS INTEGER ) AS col0, 97 / + 99 * - 11 - CAST ( NULL AS INTEGER )
----
-152
NULL

query I rowsort
SELECT - ( - 17 )
----
17

query I rowsort
SELECT DISTINCT 45 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT 98 + + + 22 - COUNT( 62 )
----
119

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT 98 + + + 22 - COUNT ( 62 )
----
119

query I rowsort
SELECT ALL + 58 + + + 84
----
142

query I rowsort
SELECT DISTINCT - ( + 89 ) * - 44
----
3916

query I rowsort
SELECT ALL - 83 + - + 71 AS col2
----
-154

query I rowsort
SELECT - 56 * - + 18 AS col1
----
1008

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

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

query I rowsort
SELECT ALL - - 40 * - + CASE - 35 WHEN + ( + + 5 ) - + 13 / - + 86 THEN - 7 ELSE - + 20 END
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL 77 / ( + 47 ) - + + CASE - 17 WHEN + 99 * + 1 THEN NULL WHEN - + 66 THEN + 7 * + - 15 END / MIN( ALL CASE - 72 WHEN - 97 * - + 19 THEN + 44 END ) / + 59 + - 63 + 4 * 75 / ( + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL 77 / ( + 47 ) - + + CASE - 17 WHEN + 99 * + 1 THEN NULL WHEN - + 66 THEN + 7 * + - 15 END / MIN ( ALL CASE - 72 WHEN - 97 * - + 19 THEN + 44 END ) / + 59 + - 63 + 4 * 75 / ( + 68 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2770
SELECT + 24 AS col2, CASE - - 37 WHEN + CAST( NULL AS SIGNED ) THEN - 37 * 32 * 80 END
----
24
NULL

skipif mysql # not compatible
query II rowsort label-2770
SELECT + 24 AS col2, CASE - - 37 WHEN + CAST ( NULL AS INTEGER ) THEN - 37 * 32 * 80 END
----
24
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2771
SELECT + 44 * + 25 + 58 + + 52 AS col0, - COUNT( * ) + - 59
----
1210
-60

skipif mysql # not compatible
query II rowsort label-2771
SELECT + 44 * + 25 + 58 + + 52 AS col0, - COUNT ( * ) + - 59
----
1210
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2772
SELECT - SUM( DISTINCT + 87 ) / + 97 + + ( 49 ) + - CASE 69 WHEN - - 74 THEN + COUNT( ALL 81 ) END * - 26 - - CAST( NULL AS SIGNED ) * 72, 28 + COUNT( * ) AS col1
----
NULL
29

skipif mysql # not compatible
query II rowsort label-2772
SELECT - SUM ( DISTINCT + 87 ) / + 97 + + ( 49 ) + - CASE 69 WHEN - - 74 THEN + COUNT ( ALL 81 ) END * - 26 - - CAST ( NULL AS INTEGER ) * 72, 28 + COUNT ( * ) AS col1
----
NULL
29

query I rowsort
SELECT DISTINCT + 69 * ( - 3 ) AS col1
----
-207

query I rowsort
SELECT ALL - 14 * 57
----
-798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2775
SELECT DISTINCT - MIN( DISTINCT 27 ) DIV 16 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - MIN ( DISTINCT 27 ) / 16 AS col0
----
-1

query I rowsort
SELECT DISTINCT - ( + - 94 ) AS col2
----
94

query I rowsort
SELECT 21 - 82 * + 62 AS col2
----
-5063

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL - CASE - + 78 WHEN 35 - - 29 THEN - 27 * 13 WHEN + - NULLIF ( + - 40, + COALESCE ( + + SUM( NULLIF ( - 96, + 17 + + 53 ) ), + 76 ) ) + + 82 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - CASE - + 78 WHEN 35 - - 29 THEN - 27 * 13 WHEN + - NULLIF ( + - 40, + COALESCE ( + + SUM ( NULLIF ( - 96, + 17 + + 53 ) ), + 76 ) ) + + 82 THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2779
SELECT 37 * CASE + - 64 WHEN 27 + - 42 THEN NULL WHEN - + CAST( + MIN( + + 31 ) AS DECIMAL ) + 21 + - 73 THEN - - 25 ELSE + + 56 END
----
2072

skipif mysql # not compatible
query I rowsort label-2779
SELECT 37 * CASE + - 64 WHEN 27 + - 42 THEN NULL WHEN - + CAST ( + MIN ( + + 31 ) AS REAL ) + 21 + - 73 THEN - - 25 ELSE + + 56 END
----
2072

query II rowsort
SELECT 43 + - 11, - 28 AS col0
----
32
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT 63 * - + NULLIF ( + - ( - 84 ), - MAX( DISTINCT CASE + + 92 WHEN - 8 THEN + 37 END ) - - 24 ) AS col2
----
-5292

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT 63 * - + NULLIF ( + - ( - 84 ), - MAX ( DISTINCT CASE + + 92 WHEN - 8 THEN + 37 END ) - - 24 ) AS col2
----
-5292

query I rowsort
SELECT ALL + 52 + + + 42 + 46 AS col0
----
140

query II rowsort
SELECT 27 * 62 AS col1, - 87
----
1674
-87

query I rowsort
SELECT ALL 15 + - 26 + + + 50
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT - 80 * + COUNT( * ) * + 28 AS col2
----
-2240

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - 80 * + COUNT ( * ) * + 28 AS col2
----
-2240

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2787
SELECT DISTINCT 50 + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT 50 + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
49

query I rowsort
SELECT 52 * + 48 AS col0
----
2496

query I rowsort
SELECT ALL + 22 + - 12
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT - - COALESCE ( + MIN( ALL - - 78 ), - 58 * - COUNT( * ) * + + 79 )
----
78

skipif mysql # not compatible
query I rowsort label-2790
SELECT - - COALESCE ( + MIN ( ALL - - 78 ), - 58 * - COUNT ( * ) * + + 79 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL - 47 + - NULLIF ( - + 35, - - 20 * COUNT( * ) ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - 47 + - NULLIF ( - + 35, - - 20 * COUNT ( * ) ) AS col2
----
-12

query I rowsort
SELECT + 90 - ( + 16 ) * + ( 80 ) * + 44 + - 72 + - 65 AS col1
----
-56367

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT - - SUM( - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-2793
SELECT - - SUM ( - 21 )
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2794
SELECT ALL CAST( NULL AS DECIMAL ) * NULLIF ( - 88, COALESCE ( - 8, - CASE + 48 WHEN - 25 THEN 84 / - + 16 END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL CAST ( NULL AS REAL ) * NULLIF ( - 88, COALESCE ( - 8, - CASE + 48 WHEN - 25 THEN 84 / - + 16 END ) ) AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 94, + 12 )
----
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2796
SELECT 42 + NULLIF ( 2, - 29 ) AS col1, CAST( NULL AS DECIMAL )
----
44
NULL

skipif mysql # not compatible
query II rowsort label-2796
SELECT 42 + NULLIF ( 2, - 29 ) AS col1, CAST ( NULL AS REAL )
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL COUNT( 34 ) - 88
----
-87

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL COUNT ( 34 ) - 88
----
-87

query II rowsort
SELECT DISTINCT - 54 - + 87 AS col2, ( 47 ) + 72 AS col0
----
-141
119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT 11 - - COUNT( + 33 ) * - 37 + + 98
----
72

skipif mysql # not compatible
query I rowsort label-2800
SELECT 11 - - COUNT ( + 33 ) * - 37 + + 98
----
72

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

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL - 46 - + COUNT ( * ) AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT + SUM( + CAST( + 45 AS SIGNED ) ) + + - 11
----
34

skipif mysql # not compatible
query I rowsort label-2802
SELECT + SUM ( + CAST ( + 45 AS INTEGER ) ) + + - 11
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT + CAST( - + ( 4 ) AS SIGNED ) * 93 AS col0
----
-372

skipif mysql # not compatible
query I rowsort label-2803
SELECT + CAST ( - + ( 4 ) AS INTEGER ) * 93 AS col0
----
-372

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 83 * - 41
----
3403

onlyif mysql # aggregate syntax: 
query II rowsort label-2808
SELECT + 85, COUNT( ALL 46 ) col2
----
85
1

skipif mysql # not compatible
query II rowsort label-2808
SELECT + 85, COUNT ( ALL 46 ) col2
----
85
1

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

skipif mysql # not compatible
query I rowsort label-2809
SELECT 18 * - - COUNT ( * ) / + 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL - ( SUM( ALL + 92 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL - ( SUM ( ALL + 92 ) ) AS col0
----
-92

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

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

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

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

query I rowsort
SELECT 43 * + - ( + - 50 )
----
2150

query I rowsort
SELECT ALL - 93 + - - 51
----
-42

query I rowsort
SELECT 18 + 28 col2
----
46

query I rowsort
SELECT ALL - 21 + - - 33 + - 69
----
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2817
SELECT ALL - COUNT( ALL CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - COUNT ( ALL CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT ALL + 21 + + COUNT( * ) + + - CASE 3 WHEN + 30 + + 44 + 34 * + ( 25 ) THEN + 34 + - 75 + - CASE - COUNT( * ) WHEN 95 * + SUM( DISTINCT + 5 ) THEN + 65 / 48 + - - NULLIF ( - 54, - 64 ) + + - ( - ( + + 34 ) ) WHEN + - 68 + 47 THEN 23 END END * - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL + 21 + + COUNT ( * ) + + - CASE 3 WHEN + 30 + + 44 + 34 * + ( 25 ) THEN + 34 + - 75 + - CASE - COUNT ( * ) WHEN 95 * + SUM ( DISTINCT + 5 ) THEN + 65 / 48 + - - NULLIF ( - 54, - 64 ) + + - ( - ( + + 34 ) ) WHEN + - 68 + 47 THEN 23 END END * - 91 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2819
SELECT 33 - - 26 - - CAST( - - 88 AS SIGNED ) + - 37 AS col2, + 8 * + 21
----
110
168

skipif mysql # not compatible
query II rowsort label-2819
SELECT 33 - - 26 - - CAST ( - - 88 AS INTEGER ) + - 37 AS col2, + 8 * + 21
----
110
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT DISTINCT - CASE COUNT( * ) WHEN - + MIN( + - ( + 92 ) ) * - - ( - 42 ) - + - 37 THEN - 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT - CASE COUNT ( * ) WHEN - + MIN ( + - ( + 92 ) ) * - - ( - 42 ) - + - 37 THEN - 28 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT + COUNT( * ) + + 70
----
71

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT + COUNT ( * ) + + 70
----
71

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

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

query II rowsort
SELECT 11 AS col2, 82 * + 8 + + - 46 * - 1 + + ( - 91 ) * 74
----
11
-6032

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT SUM( DISTINCT - 67 ) + COALESCE ( + + 30, - 20 * + - 35, + + 4 ) * + 50
----
1433

skipif mysql # not compatible
query I rowsort label-2824
SELECT SUM ( DISTINCT - 67 ) + COALESCE ( + + 30, - 20 * + - 35, + + 4 ) * + 50
----
1433

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL + ( + - MIN( - 14 ) ) + 57
----
71

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + ( + - MIN ( - 14 ) ) + 57
----
71

query I rowsort
SELECT 62 + - 50 * - - 73 * 21 * + 0 col2
----
62

query I rowsort
SELECT 18 + + + 54 * + + 94
----
5094

query II rowsort
SELECT 78 AS col0, + 17 AS col0
----
78
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2829
SELECT - + ( 51 ) * + ( - COUNT( * ) ) * - 85 + - - ( - + 67 ) + + CASE 14 WHEN + 87 THEN - COUNT( * ) + ( + - CAST( NULL AS SIGNED ) ) - + + 49 ELSE - + CAST( NULL AS SIGNED ) * - 62 - AVG ( - 19 ) - + - 88 + ( + 83 ) * + 29 END + 46 * - + CASE - 80 WHEN 76 / 93 + 47 * NULLIF ( 75 / + 75, - 25 ) THEN 56 * + 75 ELSE + 71 END * 89 + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2829
SELECT - + ( 51 ) * + ( - COUNT ( * ) ) * - 85 + - - ( - + 67 ) + + CASE 14 WHEN + 87 THEN - COUNT ( * ) + ( + - CAST ( NULL AS INTEGER ) ) - + + 49 ELSE - + CAST ( NULL AS INTEGER ) * - 62 - AVG ( - 19 ) - + - 88 + ( + 83 ) * + 29 END + 46 * - + CASE - 80 WHEN 76 / 93 + 47 * NULLIF ( 75 / + 75, - 25 ) THEN 56 * + 75 ELSE + 71 END * 89 + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL + 91 - + COUNT( * ) + - 34 + + 13 col2
----
69

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL + 91 - + COUNT ( * ) + - 34 + + 13 col2
----
69

query I rowsort
SELECT - 2 + + - 23
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL - + 73 - - + MAX( DISTINCT - + 84 )
----
-157

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - + 73 - - + MAX ( DISTINCT - + 84 )
----
-157

query I rowsort
SELECT + 11 * 30 AS col2
----
330

query I rowsort
SELECT ALL + 36 - + 37 * - 88 AS col0
----
3292

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

query I rowsort
SELECT ALL + - ( 9 ) * 32
----
-288

query II rowsort
SELECT DISTINCT 8 AS col1, ( - + 63 ) * - 96
----
8
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT + 77 * + MAX( + 44 ) + 77 * - 70
----
-2002

skipif mysql # not compatible
query I rowsort label-2838
SELECT + 77 * + MAX ( + 44 ) + 77 * - 70
----
-2002

query II rowsort
SELECT + 52, + 3 AS col0
----
52
3

query II rowsort
SELECT ALL + 75 - + 48 + + 35 AS col2, ( + 12 )
----
62
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT + - 6 + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-2842
SELECT + - 6 + - COUNT ( * )
----
-7

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

skipif mysql # not compatible
query I rowsort label-2843
SELECT - 4 / + 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2844
SELECT + 74 * + MAX( + CAST( NULL AS SIGNED ) ) AS col0, - 27 AS col2
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-2844
SELECT + 74 * + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0, - 27 AS col2
----
NULL
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2845
SELECT + - 3 + + COUNT( * ) + - + CAST( NULL AS SIGNED ) + 92 * 79 * + 41 / - + COUNT( ALL - COALESCE ( 91, - 18 - + 19 + - 26 / 99 ) ) * - 38 + MAX( ALL + 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT + - 3 + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + 92 * 79 * + 41 / - + COUNT ( ALL - COALESCE ( 91, - 18 - + 19 + - 26 / 99 ) ) * - 38 + MAX ( ALL + 23 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT - SUM ( DISTINCT 15 )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT + + 29 DIV + - 16 + + 89
----
88

skipif mysql # not compatible
query I rowsort label-2847
SELECT + + 29 / + - 16 + + 89
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2848
SELECT ALL + 23 DIV - MIN( ALL - CAST( - 43 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL + 23 / - MIN ( ALL - CAST ( - 43 AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ( - NULLIF ( 70, - COUNT( DISTINCT 3 ) * + - 23 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-2849
SELECT ( - NULLIF ( 70, - COUNT ( DISTINCT 3 ) * + - 23 ) )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2850
SELECT + ( + 7 ) - 34 + - 68, + 21 * COUNT( * ) AS col2
----
-95
21

skipif mysql # not compatible
query II rowsort label-2850
SELECT + ( + 7 ) - 34 + - 68, + 21 * COUNT ( * ) AS col2
----
-95
21

query I rowsort
SELECT + CASE - 42 WHEN 95 * + 23 THEN + - 97 END
----
NULL

query I rowsort
SELECT DISTINCT + 15 * 38 + 68
----
638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT + CASE - 44 WHEN - + CAST( NULL AS SIGNED ) * - 25 * + - 47 + - + 98 / + - NULLIF ( + 30, 3 * + ( 66 ) + + + CASE COUNT( DISTINCT - 31 ) WHEN - 64 * - 22 * 36 + 96 + - 60 THEN NULL ELSE - 28 + + - CASE + - 16 WHEN + COUNT( * ) THEN + 69 WHEN + 23 THEN NULL ELSE - ( 41 ) * - SUM( DISTINCT 49 ) - + 71 END + 20 * 62 END ) + 57 THEN + 69 + + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT + CASE - 44 WHEN - + CAST ( NULL AS INTEGER ) * - 25 * + - 47 + - + 98 / + - NULLIF ( + 30, 3 * + ( 66 ) + + + CASE COUNT ( DISTINCT - 31 ) WHEN - 64 * - 22 * 36 + 96 + - 60 THEN NULL ELSE - 28 + + - CASE + - 16 WHEN + COUNT ( * ) THEN + 69 WHEN + 23 THEN NULL ELSE - ( 41 ) * - SUM ( DISTINCT 49 ) - + 71 END + 20 * 62 END ) + 57 THEN + 69 + + COUNT ( * ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT COALESCE ( - - 24, + - NULLIF ( 62, - 88 ), - MAX( DISTINCT + 99 ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2854
SELECT COALESCE ( - - 24, + - NULLIF ( 62, - 88 ), - MAX ( DISTINCT + 99 ) ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL - 16 * + 97 + + 99 * - COUNT( * ) * - - 46 - COUNT( * ) * 43 * - 37 - + 0 + SUM( + + COALESCE ( 72, + 94 + - 76, + 53 ) )
----
-4443

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - 16 * + 97 + + 99 * - COUNT ( * ) * - - 46 - COUNT ( * ) * 43 * - 37 - + 0 + SUM ( + + COALESCE ( 72, + 94 + - 76, + 53 ) )
----
-4443

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL 16 * - COUNT( ALL - + 40 )
----
-16

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL 16 * - COUNT ( ALL - + 40 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT - COUNT( * ) * + 54 + + - 75
----
-129

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT - COUNT ( * ) * + 54 + + - 75
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT CASE + 93 WHEN + 62 THEN - 1 + - 23 WHEN - - 28 - 4 THEN - MIN( - COALESCE ( 76, + ( - - 57 ) ) ) WHEN 59 * + - 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT CASE + 93 WHEN + 62 THEN - 1 + - 23 WHEN - - 28 - 4 THEN - MIN ( - COALESCE ( 76, + ( - - 57 ) ) ) WHEN 59 * + - 50 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL - 39 * - + COUNT( * ) + + 90 + - 24
----
105

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - 39 * - + COUNT ( * ) + + 90 + - 24
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2860
SELECT ALL 49 * - COUNT( * ) + CAST( + - NULLIF ( - - CASE + COUNT( * ) WHEN 52 * + 85 THEN 76 WHEN 90 THEN NULL ELSE - - 10 END, - COUNT( * ) * + 91 ) AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL 49 * - COUNT ( * ) + CAST ( + - NULLIF ( - - CASE + COUNT ( * ) WHEN 52 * + 85 THEN 76 WHEN 90 THEN NULL ELSE - - 10 END, - COUNT ( * ) * + 91 ) AS INTEGER )
----
-59

query I rowsort
SELECT COALESCE ( + 81, + 72 ) col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT - 23 * + - 51 + 49 - + - SUM( - ( + 37 ) ) * - COUNT( * ) AS col2
----
1259

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - 23 * + - 51 + 49 - + - SUM ( - ( + 37 ) ) * - COUNT ( * ) AS col2
----
1259

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT COUNT( * ) * ( - + 70 ) + 38
----
-32

skipif mysql # not compatible
query I rowsort label-2863
SELECT COUNT ( * ) * ( - + 70 ) + 38
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT ALL + 73 * + - 11 + + + 83 + - 60 * + - 13 * + 97 + 58 DIV + + 57
----
74941

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL + 73 * + - 11 + + + 83 + - 60 * + - 13 * + 97 + 58 / + + 57
----
74941

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT CASE - 22 WHEN - 54 + - SUM( DISTINCT + + 85 ) / 65 THEN NULL ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT CASE - 22 WHEN - 54 + - SUM ( DISTINCT + + 85 ) / 65 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT + 62 * - MAX( 46 )
----
-2852

skipif mysql # not compatible
query I rowsort label-2867
SELECT + 62 * - MAX ( 46 )
----
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT DISTINCT 99 * - - 94 * COUNT( * ) - + 39 - 37
----
9230

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT 99 * - - 94 * COUNT ( * ) - + 39 - 37
----
9230

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ALL 47 * + - COUNT( * ) + - + 18
----
-65

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL 47 * + - COUNT ( * ) + - + 18
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2870
SELECT ALL - 16 * - CAST( + NULLIF ( COUNT( * ), - ( + - 99 ) / + 40 * - 56 * + + 3 ) AS SIGNED ) - 90
----
-74

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - 16 * - CAST ( + NULLIF ( COUNT ( * ), - ( + - 99 ) / + 40 * - 56 * + + 3 ) AS INTEGER ) - 90
----
-74

query I rowsort
SELECT ALL + ( - - 50 ) AS col0
----
50

query I rowsort
SELECT - - 59 * 57 * + 50 AS col2
----
168150

onlyif mysql # aggregate syntax: 
query II rowsort label-2873
SELECT ALL - COUNT( * ) col1, 21 + - 11 col2
----
-1
10

skipif mysql # not compatible
query II rowsort label-2873
SELECT ALL - COUNT ( * ) col1, 21 + - 11 col2
----
-1
10

query II rowsort
SELECT DISTINCT 64, - 98 AS col1
----
64
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT ALL + - CAST( NULL AS SIGNED ) / 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + - CAST ( NULL AS INTEGER ) / 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT - - 15 + COUNT( * ) * 31 - 74 + - 80 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-2876
SELECT - - 15 + COUNT ( * ) * 31 - 74 + - 80 AS col1
----
-108

query I rowsort
SELECT - 75 * - - 11 AS col2
----
-825

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

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

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

skipif mysql # not compatible
query I rowsort label-2879
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) - + + 13
----
-14

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

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

query I rowsort
SELECT ALL + 55 * + - 22 * - 99 AS col0
----
119790

query II rowsort
SELECT DISTINCT + 86 col0, + 69 AS col1
----
86
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL NULLIF ( + + 35, 39 / + 91 - + SUM( ALL - 30 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL NULLIF ( + + 35, 39 / + 91 - + SUM ( ALL - 30 ) ) AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2884
SELECT ALL SUM( - 51 ) + + 26 + - COUNT( * ), ( - + CAST( NULL AS SIGNED ) ) AS col1
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-2884
SELECT ALL SUM ( - 51 ) + + 26 + - COUNT ( * ), ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
-26
NULL

query I rowsort
SELECT - - COALESCE ( 32, + 61 ) + + 5 * + 68 AS col1
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT + - COALESCE ( + COUNT( DISTINCT - 45 ), - + 55 - - 23 * ( 27 ) ) - + 53 + + 42 + + - COUNT( * ) * - - 99 * + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2886
SELECT + - COALESCE ( + COUNT ( DISTINCT - 45 ), - + 55 - - 23 * ( 27 ) ) - + 53 + + 42 + + - COUNT ( * ) * - - 99 * + - COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT - + 84 col0, COUNT( * ) + - + 69 - - - 62 AS col1
----
-84
-130

skipif mysql # not compatible
query II rowsort label-2887
SELECT - + 84 col0, COUNT ( * ) + - + 69 - - - 62 AS col1
----
-84
-130

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2889
SELECT 39 DIV + 88 * - COUNT( DISTINCT - 9 ) + - 31 + + + ( + MAX( CAST( + 38 AS SIGNED ) ) ) * - 77
----
-2957

skipif mysql # not compatible
query I rowsort label-2889
SELECT 39 / + 88 * - COUNT ( DISTINCT - 9 ) + - 31 + + + ( + MAX ( CAST ( + 38 AS INTEGER ) ) ) * - 77
----
-2957

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

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT + COUNT ( * ) / 55 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2891
SELECT ALL + CASE - 96 WHEN - 35 + + + NULLIF ( - - NULLIF ( - + COUNT( * ), + + 72 + - - 21 / 77 ), + 18 ) THEN + 68 + - ( + 77 ) + 0 / + 27 * + CASE - NULLIF ( + 89, + + 18 ) WHEN + - 24 THEN NULL ELSE - - CAST( + ( - - COUNT( * ) ) AS SIGNED ) END * - 90 - - + ( + 6 ) * 38 WHEN NULLIF ( 45, 52 + 72 ) * 18 THEN - 27 WHEN + 69 THEN + 16 / - ( - 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + CASE - 96 WHEN - 35 + + + NULLIF ( - - NULLIF ( - + COUNT ( * ), + + 72 + - - 21 / 77 ), + 18 ) THEN + 68 + - ( + 77 ) + 0 / + 27 * + CASE - NULLIF ( + 89, + + 18 ) WHEN + - 24 THEN NULL ELSE - - CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) END * - 90 - - + ( + 6 ) * 38 WHEN NULLIF ( 45, 52 + 72 ) * 18 THEN - 27 WHEN + 69 THEN + 16 / - ( - 83 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2892
SELECT ALL + 12 DIV - - 62 + + COUNT( + NULLIF ( + + 30, - + 2 * + + 43 + + - 71 ) ) + + - MAX( + 72 ) * 24 * - + 59
----
101953

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL + 12 / - - 62 + + COUNT ( + NULLIF ( + + 30, - + 2 * + + 43 + + - 71 ) ) + + - MAX ( + 72 ) * 24 * - + 59
----
101953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT DISTINCT - CASE - NULLIF ( - 77, + 92 * 46 ) WHEN - - 65 / + + CAST( NULL AS SIGNED ) / - - COUNT( * ) + + 70 THEN + + 3 / 74 WHEN - CASE - 28 WHEN + 59 * 97 * - COUNT( * ) + - + 24 + + 33 * - 76 THEN + COALESCE ( + 16, - 44, 19 * 87 - + 19 * - COALESCE ( 86, + 21 ) * + 75 + - 80 ) + COUNT( * ) WHEN COUNT( * ) THEN NULL END * 94 THEN NULL ELSE NULL END / + 21 + + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - CASE - NULLIF ( - 77, + 92 * 46 ) WHEN - - 65 / + + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) + + 70 THEN + + 3 / 74 WHEN - CASE - 28 WHEN + 59 * 97 * - COUNT ( * ) + - + 24 + + 33 * - 76 THEN + COALESCE ( + 16, - 44, 19 * 87 - + 19 * - COALESCE ( 86, + 21 ) * + 75 + - 80 ) + COUNT ( * ) WHEN COUNT ( * ) THEN NULL END * 94 THEN NULL ELSE NULL END / + 21 + + 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2894
SELECT - 51 * 59, COUNT( * ) + 0 AS col0
----
-3009
1

skipif mysql # not compatible
query II rowsort label-2894
SELECT - 51 * 59, COUNT ( * ) + 0 AS col0
----
-3009
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ALL CASE + CASE - COUNT( * ) WHEN - + COUNT( * ) THEN NULL WHEN 30 THEN ( + ( + 18 ) ) ELSE NULL END WHEN + 80 THEN - - ( - 78 ) ELSE NULL END * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL CASE + CASE - COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL WHEN 30 THEN ( + ( + 18 ) ) ELSE NULL END WHEN + 80 THEN - - ( - 78 ) ELSE NULL END * - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT - 20 * - 58 + + + MAX( ALL - - 57 ) col2
----
1217

skipif mysql # not compatible
query I rowsort label-2896
SELECT - 20 * - 58 + + + MAX ( ALL - - 57 ) col2
----
1217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT CAST( 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-2897
SELECT CAST ( 84 AS INTEGER )
----
84

query I rowsort
SELECT 39 * 9 * - 5 * + - 2 + + - 92
----
3418

query I rowsort
SELECT + 45 * - 35
----
-1575

query I rowsort
SELECT 58 * + + 12 + + + 26 * + 83 AS col1
----
2854

query I rowsort
SELECT ALL 1 * + 21 * 64 - + 52
----
1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT ALL + COALESCE ( 76, - CAST( - 61 AS SIGNED ) + - ( + 86 ) ) col1
----
76

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + COALESCE ( 76, - CAST ( - 61 AS INTEGER ) + - ( + 86 ) ) col1
----
76

query II rowsort
SELECT DISTINCT + - 73 * - + 83, 13 col2
----
6059
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2904
SELECT ALL 81 * - + CAST( - 22 AS SIGNED ) - + 97
----
1685

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL 81 * - + CAST ( - 22 AS INTEGER ) - + 97
----
1685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2905
SELECT + + 61 * - 76 - - + 48 * - 51 DIV + COUNT( * ) + + + 56
----
-7028

skipif mysql # not compatible
query I rowsort label-2905
SELECT + + 61 * - 76 - - + 48 * - 51 / + COUNT ( * ) + + + 56
----
-7028

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT MIN( ALL ( + 21 ) ) col2
----
21

skipif mysql # not compatible
query I rowsort label-2906
SELECT MIN ( ALL ( + 21 ) ) col2
----
21

query I rowsort
SELECT ( - ( + + 63 ) ) + - + 6
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ALL COALESCE ( 22, + 59, + ( + 47 ), - 58 + + - NULLIF ( - COUNT( * ), - + 74 * + COALESCE ( + - 18, 29 * 83, + 35 * - 3 ) + + 95 + 10 * - 37 * - 57 - + ( - + 87 ) * 72 * - 44 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL COALESCE ( 22, + 59, + ( + 47 ), - 58 + + - NULLIF ( - COUNT ( * ), - + 74 * + COALESCE ( + - 18, 29 * 83, + 35 * - 3 ) + + 95 + 10 * - 37 * - 57 - + ( - + 87 ) * 72 * - 44 ) ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT MIN( ALL + 89 ) + + ( - 85 ) col0
----
4

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT MIN ( ALL + 89 ) + + ( - 85 ) col0
----
4

query I rowsort
SELECT DISTINCT - ( - ( - 71 ) ) AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2911
SELECT CAST( - 31 AS SIGNED ) DIV + 96, 77 col0
----
0
77

skipif mysql # not compatible
query II rowsort label-2911
SELECT CAST ( - 31 AS INTEGER ) / + 96, 77 col0
----
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL - 23 + - MIN( 54 ) + + 25
----
-52

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - 23 + - MIN ( 54 ) + + 25
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT DISTINCT - - 5 + + 99 * - 29 + + NULLIF ( + COUNT( * ), - 77 ) * + 95 - NULLIF ( + 48, - 73 ) - - - 62 * - 6 * 42 * - - CASE - 18 WHEN - + COUNT( * ) THEN + - ( + 5 ) WHEN COUNT( * ) THEN - 68 * + 97 + - 59 * + 94 WHEN - 52 + - NULLIF ( + COUNT( * ), + - 34 ) * 56 THEN MAX( DISTINCT 24 ) END * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT - - 5 + + 99 * - 29 + + NULLIF ( + COUNT ( * ), - 77 ) * + 95 - NULLIF ( + 48, - 73 ) - - - 62 * - 6 * 42 * - - CASE - 18 WHEN - + COUNT ( * ) THEN + - ( + 5 ) WHEN COUNT ( * ) THEN - 68 * + 97 + - 59 * + 94 WHEN - 52 + - NULLIF ( + COUNT ( * ), + - 34 ) * 56 THEN MAX ( DISTINCT 24 ) END * - 83
----
NULL

query I rowsort
SELECT DISTINCT - + 89 + + 88
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT DISTINCT - 73 DIV + 86 * + - 60 * - + COALESCE ( - 69, - 73 ) * - 21 * - 20 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT - 73 / + 86 * + - 60 * - + COALESCE ( - 69, - 73 ) * - 21 * - 20 + COUNT ( * )
----
1

query I rowsort
SELECT - 50 + - ( ( + 23 ) ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT SUM( 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2917
SELECT SUM ( 76 ) AS col2
----
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT DISTINCT + CASE CASE 64 WHEN - - 6 + 30 THEN + + 89 / - 2 ELSE NULL END WHEN - 60 + - COUNT( DISTINCT + 49 ) THEN NULL ELSE - 50 + COUNT( * ) + + 82 END + - - 73 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT + CASE CASE 64 WHEN - - 6 + 30 THEN + + 89 / - 2 ELSE NULL END WHEN - 60 + - COUNT ( DISTINCT + 49 ) THEN NULL ELSE - 50 + COUNT ( * ) + + 82 END + - - 73 AS col0
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-2920
SELECT ALL 38 AS col2, - 84 DIV 98 col2
----
38
0

skipif mysql # not compatible
query II rowsort label-2920
SELECT ALL 38 AS col2, - 84 / 98 col2
----
38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT 18 + MAX( - 79 )
----
-61

skipif mysql # not compatible
query I rowsort label-2921
SELECT 18 + MAX ( - 79 )
----
-61

query I rowsort
SELECT DISTINCT - 25 + + 21 AS col1
----
-4

query I rowsort
SELECT ALL + 62 * NULLIF ( - 70, - 41 )
----
-4340

query I rowsort
SELECT 11 - + 54 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT - CASE - 42 WHEN 29 THEN COUNT( * ) ELSE - 79 END AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - CASE - 42 WHEN 29 THEN COUNT ( * ) ELSE - 79 END AS col1
----
79

query II rowsort
SELECT DISTINCT - 94 AS col0, - 21 * + - ( - 89 )
----
-94
-1869

query I rowsort
SELECT 36 * 1 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT 72 * - COUNT( * ) * - 83
----
5976

skipif mysql # not compatible
query I rowsort label-2928
SELECT 72 * - COUNT ( * ) * - 83
----
5976

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT 62 * - 75 * + - COUNT( * ) * 85 col0
----
395250

skipif mysql # not compatible
query I rowsort label-2930
SELECT 62 * - 75 * + - COUNT ( * ) * 85 col0
----
395250

query I rowsort
SELECT ALL 3 * - - ( 41 )
----
123

query II rowsort
SELECT + - 95, - 53 AS col2
----
-95
-53

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

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

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

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

query I rowsort
SELECT NULLIF ( 80, 67 ) * + + ( 41 )
----
3280

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

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

query II rowsort
SELECT + - 62, 31 AS col1
----
-62
31

query I rowsort
SELECT DISTINCT + 55 + 71
----
126

query II rowsort
SELECT ALL - 52, 98 AS col1
----
-52
98

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

query I rowsort
SELECT ALL 54 + 64 AS col0
----
118

query II rowsort
SELECT + 55 col0, + 16 + - ( - 39 ) * + 99 col1
----
55
3877

query I rowsort
SELECT ( - 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2944
SELECT CASE - - AVG ( DISTINCT - 17 ) WHEN 76 * 47 * - SUM( + 41 ) + + + 28 THEN - 9 ELSE NULL END * - + ( + 12 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT CASE - - AVG ( DISTINCT - 17 ) WHEN 76 * 47 * - SUM ( + 41 ) + + + 28 THEN - 9 ELSE NULL END * - + ( + 12 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2945
SELECT 34 * 35 + - 16, COUNT( * ) * - COUNT( * ) AS col0
----
1174
-1

skipif mysql # not compatible
query II rowsort label-2945
SELECT 34 * 35 + - 16, COUNT ( * ) * - COUNT ( * ) AS col0
----
1174
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2947
SELECT - - COALESCE ( - COUNT( * ), - 60 * - + ( - - 35 ), + + 59 + + + 5 + + 48 ), 89 AS col2
----
-1
89

skipif mysql # not compatible
query II rowsort label-2947
SELECT - - COALESCE ( - COUNT ( * ), - 60 * - + ( - - 35 ), + + 59 + + + 5 + + 48 ), 89 AS col2
----
-1
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2948
SELECT - COUNT( - 34 ) + - 31 + + ( - + COUNT( * ) ) + 23 DIV - - 82 * 87
----
-33

skipif mysql # not compatible
query I rowsort label-2948
SELECT - COUNT ( - 34 ) + - 31 + + ( - + COUNT ( * ) ) + 23 / - - 82 * 87
----
-33

query II rowsort
SELECT - 89 AS col0, 73 - + - 51 AS col0
----
-89
124

query I rowsort
SELECT - + 67 col2
----
-67

query I rowsort
SELECT ALL + 11 + 82
----
93

query I rowsort
SELECT ( - 41 ) + - 34 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT 76 * - COUNT( * ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT 76 * - COUNT ( * ) col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT COUNT( * ) + 55 * - NULLIF ( + + 82, - 82 )
----
-4509

skipif mysql # not compatible
query I rowsort label-2954
SELECT COUNT ( * ) + 55 * - NULLIF ( + + 82, - 82 )
----
-4509

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT ALL 93 - - NULLIF ( + ( - MAX( ALL - CAST( NULL AS SIGNED ) ) ), SUM( DISTINCT + 10 ) ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL 93 - - NULLIF ( + ( - MAX ( ALL - CAST ( NULL AS INTEGER ) ) ), SUM ( DISTINCT + 10 ) ) + - 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT 27 * CAST( NULL AS SIGNED ) * + 75 * - + 95 * - COUNT( * ) * - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT 27 * CAST ( NULL AS INTEGER ) * + 75 * - + 95 * - COUNT ( * ) * - + 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2957
SELECT 30 + 47 AS col1, + CAST( - - 92 AS SIGNED )
----
77
92

skipif mysql # not compatible
query II rowsort label-2957
SELECT 30 + 47 AS col1, + CAST ( - - 92 AS INTEGER )
----
77
92

query I rowsort
SELECT ALL + 39 - - 20 + - + 17 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT 46 - + + MIN( ALL - 87 ) AS col1
----
133

skipif mysql # not compatible
query I rowsort label-2959
SELECT 46 - + + MIN ( ALL - 87 ) AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT COALESCE ( - + 69, - - 15 ) * + - NULLIF ( COUNT( * ), - + 76 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2960
SELECT COALESCE ( - + 69, - - 15 ) * + - NULLIF ( COUNT ( * ), - + 76 ) AS col2
----
69

query I rowsort
SELECT ALL + 76 * - 75 AS col0
----
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT 36 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT 36 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2963
SELECT 46 + - + 15 DIV - 24 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2963
SELECT 46 + - + 15 / - 24 AS col0
----
46

query I rowsort
SELECT ALL - 4 * 34 AS col1
----
-136

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

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

query I rowsort
SELECT DISTINCT - 86 * + + 25 AS col1
----
-2150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2967
SELECT ALL - ( 76 ) col1, - 39 * CAST( - 45 AS SIGNED ) AS col2
----
-76
1755

skipif mysql # not compatible
query II rowsort label-2967
SELECT ALL - ( 76 ) col1, - 39 * CAST ( - 45 AS INTEGER ) AS col2
----
-76
1755

query I rowsort
SELECT DISTINCT - NULLIF ( + COALESCE ( - - NULLIF ( NULLIF ( - - 98, - 43 + + + 79 * + 81 ), + - 74 ), + 45 ), + - ( + + ( + + 60 ) ) )
----
-98

query I rowsort
SELECT ALL - 4 * - - ( - - 61 )
----
-244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2970
SELECT + COUNT( * ) * - 80 + + - ( - 81 ) DIV + 16
----
-75

skipif mysql # not compatible
query I rowsort label-2970
SELECT + COUNT ( * ) * - 80 + + - ( - 81 ) / + 16
----
-75

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

query I rowsort
SELECT + - 22 * 45
----
-990

query I rowsort
SELECT ALL 39 * 36 + 88
----
1492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2974
SELECT + 31 * + - 80 * - 62 + - CAST( NULL AS SIGNED ) + + 19 + - 95 * + 50 + MAX( DISTINCT 70 ) col0, - 26
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-2974
SELECT + 31 * + - 80 * - 62 + - CAST ( NULL AS INTEGER ) + + 19 + - 95 * + 50 + MAX ( DISTINCT 70 ) col0, - 26
----
NULL
-26

query I rowsort
SELECT DISTINCT + - ( - NULLIF ( - + 58, 33 ) )
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - CASE + COUNT( * ) WHEN - + 60 / + 45 * - 17 + - - 97 THEN - COUNT( 77 ) * + MAX( - ( - 73 ) ) ELSE + 60 END + + MAX( DISTINCT + 75 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2977
SELECT - CASE + COUNT ( * ) WHEN - + 60 / + 45 * - 17 + - - 97 THEN - COUNT ( 77 ) * + MAX ( - ( - 73 ) ) ELSE + 60 END + + MAX ( DISTINCT + 75 ) AS col1
----
15

query I rowsort
SELECT + - 25 col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT ALL + COUNT( * ) * - 74 * - - 0 - 26 + + 27 * + 10 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + COUNT ( * ) * - 74 * - - 0 - 26 + + 27 * + 10 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT ALL + - 72 * + 96 col2, COUNT( * ) col1
----
-6912
1

skipif mysql # not compatible
query II rowsort label-2981
SELECT ALL + - 72 * + 96 col2, COUNT ( * ) col1
----
-6912
1

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2984
SELECT - 71 DIV 31 AS col2, - 82 * - ( + + 23 )
----
-2
1886

skipif mysql # not compatible
query II rowsort label-2984
SELECT - 71 / 31 AS col2, - 82 * - ( + + 23 )
----
-2
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - NULLIF ( 53, - COUNT( * ) )
----
-53

skipif mysql # not compatible
query I rowsort label-2985
SELECT - NULLIF ( 53, - COUNT ( * ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL 76 - - 60 + + 96 * - - 27 + + MAX( DISTINCT 38 ) + - 40
----
2726

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL 76 - - 60 + + 96 * - - 27 + + MAX ( DISTINCT 38 ) + - 40
----
2726

onlyif mysql # aggregate syntax: 
query II rowsort label-2987
SELECT + 81 + MAX( - - 64 ) - - 93 * 60, 77 AS col1
----
5725
77

skipif mysql # not compatible
query II rowsort label-2987
SELECT + 81 + MAX ( - - 64 ) - - 93 * 60, 77 AS col1
----
5725
77

query II rowsort
SELECT DISTINCT 94 col0, 18 * + - 60 + - 18 AS col2
----
94
-1098

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

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

query I rowsort
SELECT - NULLIF ( + ( - 50 ), - + ( - 75 ) ) AS col2
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL COALESCE ( + 18, + 93 ) * + CASE + ( + + 73 ) WHEN + COUNT( * ) THEN NULL ELSE - 79 END + COUNT( * ) AS col0
----
-1421

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL COALESCE ( + 18, + 93 ) * + CASE + ( + + 73 ) WHEN + COUNT ( * ) THEN NULL ELSE - 79 END + COUNT ( * ) AS col0
----
-1421

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT DISTINCT MAX( + ( + ( + 32 ) ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT MAX ( + ( + ( + 32 ) ) ) AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2994
SELECT ALL + 45 DIV - + 30
----
-1

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + 45 / - + 30
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT + MAX( DISTINCT 96 ) * CASE - - COUNT( * ) WHEN 9 THEN - + COUNT( * ) ELSE NULL END + - MIN( 63 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2995
SELECT + MAX ( DISTINCT 96 ) * CASE - - COUNT ( * ) WHEN 9 THEN - + COUNT ( * ) ELSE NULL END + - MIN ( 63 ) AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + 45 / + COUNT ( * )
----
45

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2999
SELECT - ( - - COUNT( * ) ) DIV - - MIN( 10 )
----
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT - ( - - COUNT ( * ) ) / - - MIN ( 10 )
----
0

query II rowsort
SELECT + 26 * 56 - + 67 AS col1, - 53 * + ( + - 53 ) AS col1
----
1389
2809

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL + 63 * + 65 * COUNT( * ) - - COUNT( * ) + + SUM( ALL + 77 ) + 25 + - MAX( + 88 ) - - 79 AS col1
----
4189

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL + 63 * + 65 * COUNT ( * ) - - COUNT ( * ) + + SUM ( ALL + 77 ) + 25 + - MAX ( + 88 ) - - 79 AS col1
----
4189

query I rowsort
SELECT - 75 * - - 85
----
-6375

onlyif mysql # aggregate syntax: 
query II rowsort label-3003
SELECT DISTINCT - COUNT( - 63 ) * + 77 col0, 72 * COUNT( * ) col1
----
-77
72

skipif mysql # not compatible
query II rowsort label-3003
SELECT DISTINCT - COUNT ( - 63 ) * + 77 col0, 72 * COUNT ( * ) col1
----
-77
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3005
SELECT DISTINCT + + CASE - + 73 WHEN + 92 / 25 * - + 51 * + - 16 * + - 63 + CASE 42 WHEN - 97 THEN NULL WHEN + + 43 * 56 THEN + ( - CAST( - 51 AS SIGNED ) ) END THEN - 16 + 15 + + ( 75 ) + + COUNT( * ) * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT + + CASE - + 73 WHEN + 92 / 25 * - + 51 * + - 16 * + - 63 + CASE 42 WHEN - 97 THEN NULL WHEN + + 43 * 56 THEN + ( - CAST ( - 51 AS INTEGER ) ) END THEN - 16 + 15 + + ( 75 ) + + COUNT ( * ) * - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 77 * + COALESCE ( + - 79, + 78 ) + 19 + 58 + + 31 + - 41
----
6150

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

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

query I rowsort
SELECT ALL 76 * + 39
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - MAX( DISTINCT 40 ) - - 51 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3009
SELECT - MAX ( DISTINCT 40 ) - - 51 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT ALL + ( 66 ) DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + ( 66 ) / - 91
----
0

query I rowsort
SELECT 12 * + 25 + + + 29 col0
----
329

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT - 46 DIV 1 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT - 46 / 1 / - 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT + ( 32 ) DIV + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT + ( 32 ) / + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT MIN( ALL + - 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3014
SELECT MIN ( ALL + - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT - 22 + + COUNT( 54 ) + + 91 + 3
----
73

skipif mysql # not compatible
query I rowsort label-3015
SELECT - 22 + + COUNT ( 54 ) + + 91 + 3
----
73

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

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

query I rowsort
SELECT + CASE 93 WHEN + - 28 / + + 72 THEN NULL WHEN - 48 * - 76 THEN + 7 ELSE NULL END + 65 + 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3018
SELECT + MIN( ALL - 64 ) + - COUNT( * ) - ( + + COUNT( * ) ) * + 11, 40 AS col0
----
-76
40

skipif mysql # not compatible
query II rowsort label-3018
SELECT + MIN ( ALL - 64 ) + - COUNT ( * ) - ( + + COUNT ( * ) ) * + 11, 40 AS col0
----
-76
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT + MIN( DISTINCT + COALESCE ( + - 65, - 51 ) ) * + - ( + + 66 )
----
4290

skipif mysql # not compatible
query I rowsort label-3019
SELECT + MIN ( DISTINCT + COALESCE ( + - 65, - 51 ) ) * + - ( + + 66 )
----
4290

query II rowsort
SELECT 72, - ( 99 ) AS col2
----
72
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT COUNT( * ) + + - 85 AS col2, - 25 - + + 10 * NULLIF ( + - 99, 18 )
----
-84
965

skipif mysql # not compatible
query II rowsort label-3021
SELECT COUNT ( * ) + + - 85 AS col2, - 25 - + + 10 * NULLIF ( + - 99, 18 )
----
-84
965

query II rowsort
SELECT - 67 AS col0, + 6 AS col1
----
-67
6

query I rowsort
SELECT ( + - 56 ) * - 12
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3024
SELECT DISTINCT 68 + COUNT( 9 ) * CAST( NULL AS SIGNED ) * + CAST( 4 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT 68 + COUNT ( 9 ) * CAST ( NULL AS INTEGER ) * + CAST ( 4 AS REAL )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT CASE - + SUM( - CASE - - 42 WHEN - CAST( NULL AS SIGNED ) + 79 THEN NULL ELSE + + 86 END ) WHEN - + NULLIF ( + 17, + 47 ) * - CASE - 69 WHEN - - 73 THEN 1 * - 16 ELSE - 55 * - 17 + + 32 END * - - 74 + - 63 + - + 94 * 84 + - + COUNT( * ) * 96 THEN + COUNT( * ) + + - 57 ELSE NULL END + - 24 + - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT CASE - + SUM ( - CASE - - 42 WHEN - CAST ( NULL AS INTEGER ) + 79 THEN NULL ELSE + + 86 END ) WHEN - + NULLIF ( + 17, + 47 ) * - CASE - 69 WHEN - - 73 THEN 1 * - 16 ELSE - 55 * - 17 + + 32 END * - - 74 + - 63 + - + 94 * 84 + - + COUNT ( * ) * 96 THEN + COUNT ( * ) + + - 57 ELSE NULL END + - 24 + - - 24
----
NULL

query I rowsort
SELECT ALL - 0 * + 99
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT 70 * + 28 + + + ( 14 ) AS col2, - MIN( - - 14 ) * COUNT( * ) * 98 * - 27 + - - 87 + - 88 * + 97 + + 96 - - 70
----
1974
28761

skipif mysql # not compatible
query II rowsort label-3028
SELECT 70 * + 28 + + + ( 14 ) AS col2, - MIN ( - - 14 ) * COUNT ( * ) * 98 * - 27 + - - 87 + - 88 * + 97 + + 96 - - 70
----
1974
28761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3029
SELECT DISTINCT - 89 + + 76 * - CAST( - CASE - 40 WHEN ( - 68 ) + - 99 THEN + - ( - - 16 ) END AS SIGNED ) * - 84 - 14 + CASE + 50 WHEN + CASE 41 WHEN - COUNT( ALL - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) THEN + + 10 * - 81 END + 77 + + + 60 * + 31 THEN + + 5 * - - 69 + NULLIF ( - 14, + - 53 / - 70 * - 37 ) + COALESCE ( COALESCE ( + COALESCE ( - CASE 82 WHEN 25 THEN NULL WHEN 81 THEN + COALESCE ( + 89, COUNT( * ) + NULLIF ( 46 + CASE 92 WHEN 53 THEN 89 ELSE NULL END, 44 ), 32 ) WHEN 81 / - 98 + + COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( * ) * - 72 ) THEN 79 ELSE - 91 END, 81 / 2, ( + COUNT( * ) ) ), SUM( 97 ) / 51 - 76 / 4, 27 ) + + NULLIF ( + 3 + 69, COUNT( * ) ), - ( + CASE + COUNT( * ) WHEN + 45 * 54 + - 34 * 82 THEN - 45 END ) * 49 ) WHEN + 75 / - 69 THEN 64 * - COUNT( * ) ELSE - 78 END * 50 + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - 89 + + 76 * - CAST ( - CASE - 40 WHEN ( - 68 ) + - 99 THEN + - ( - - 16 ) END AS INTEGER ) * - 84 - 14 + CASE + 50 WHEN + CASE 41 WHEN - COUNT ( ALL - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) THEN + + 10 * - 81 END + 77 + + + 60 * + 31 THEN + + 5 * - - 69 + NULLIF ( - 14, + - 53 / - 70 * - 37 ) + COALESCE ( COALESCE ( + COALESCE ( - CASE 82 WHEN 25 THEN NULL WHEN 81 THEN + COALESCE ( + 89, COUNT ( * ) + NULLIF ( 46 + CASE 92 WHEN 53 THEN 89 ELSE NULL END, 44 ), 32 ) WHEN 81 / - 98 + + COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) * - 72 ) THEN 79 ELSE - 91 END, 81 / 2, ( + COUNT ( * ) ) ), SUM ( 97 ) / 51 - 76 / 4, 27 ) + + NULLIF ( + 3 + 69, COUNT ( * ) ), - ( + CASE + COUNT ( * ) WHEN + 45 * 54 + - 34 * 82 THEN - 45 END ) * 49 ) WHEN + 75 / - 69 THEN 64 * - COUNT ( * ) ELSE - 78 END * 50 + - 49
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT ALL - COUNT( * ) AS col1, ( + SUM( DISTINCT - 47 ) ) * - + 61
----
-1
2867

skipif mysql # not compatible
query II rowsort label-3030
SELECT ALL - COUNT ( * ) AS col1, ( + SUM ( DISTINCT - 47 ) ) * - + 61
----
-1
2867

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

query I rowsort
SELECT DISTINCT - - 59 + + + 80 + 81
----
220

query I rowsort
SELECT ALL - - COALESCE ( + 49, + + 95 + 22, + 74 )
----
49

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

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL 43 + + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3035
SELECT DISTINCT - MIN( + 40 ) DIV - 16 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT - MIN ( + 40 ) / - 16 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT - 44 DIV 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3036
SELECT - 44 / 33 AS col2
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT ( + MAX( + + 57 ) ) + - 31
----
26

skipif mysql # not compatible
query I rowsort label-3038
SELECT ( + MAX ( + + 57 ) ) + - 31
----
26

query I rowsort
SELECT ALL + 13 - - 17 * + - 25 * + + 19
----
-8062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT - COUNT( * ) * - COUNT( * ) - + + 13 + - 21 + - + 23 + + 96 + - CAST( NULL AS SIGNED ) + + COUNT( * ) * + 3 * + 55 * 88 / - 13 * + + CASE 14 WHEN COUNT( * ) THEN + 29 / + COALESCE ( + - 10, + ( + + 26 ), - 57 - + + 46 ) * + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN - NULLIF ( MIN( 31 ), 87 + 4 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT - COUNT ( * ) * - COUNT ( * ) - + + 13 + - 21 + - + 23 + + 96 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 3 * + 55 * 88 / - 13 * + + CASE 14 WHEN COUNT ( * ) THEN + 29 / + COALESCE ( + - 10, + ( + + 26 ), - 57 - + + 46 ) * + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN - NULLIF ( MIN ( 31 ), 87 + 4 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 76 * - 93 * ( + 4 )
----
28272

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

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

query I rowsort
SELECT ALL - - 50 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3044
SELECT CAST( + 19 AS SIGNED ) * - 92 + + 17 + - 84 DIV COUNT( * ) + - - 40 + + COUNT( * )
----
-1774

skipif mysql # not compatible
query I rowsort label-3044
SELECT CAST ( + 19 AS INTEGER ) * - 92 + + 17 + - 84 / COUNT ( * ) + - - 40 + + COUNT ( * )
----
-1774

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL + MAX( - 41 ) * - 29
----
1189

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + MAX ( - 41 ) * - 29
----
1189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3047
SELECT CAST( NULL AS DECIMAL ) * + 60 * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT CAST ( NULL AS REAL ) * + 60 * 54 AS col2
----
NULL

query I rowsort
SELECT 56 + 92
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT - ( + MAX( + 60 ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT - ( + MAX ( + 60 ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT 30 * COALESCE ( - 90, + + MIN( 18 ) * 2, 10 ) * + 73 AS col0
----
-197100

skipif mysql # not compatible
query I rowsort label-3050
SELECT 30 * COALESCE ( - 90, + + MIN ( 18 ) * 2, 10 ) * + 73 AS col0
----
-197100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3051
SELECT 55 * - - COUNT( * ), + 30 + + 19 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-3051
SELECT 55 * - - COUNT ( * ), + 30 + + 19 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
55
NULL

query I rowsort
SELECT ALL - 54 + 88 col1
----
34

query I rowsort
SELECT 45 * - 25 col0
----
-1125

query I rowsort
SELECT 81 * 84
----
6804

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT 87 DIV + - 51 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3055
SELECT 87 / + - 51 col0
----
-1

query I rowsort
SELECT ALL + 82 + 25 * - 56
----
-1318

query I rowsort
SELECT DISTINCT - 27 * + 18 AS col0
----
-486

query I rowsort
SELECT ALL + 73 + - 9 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT + 0 + - 92 + NULLIF ( - SUM( - + 2 ), - + CASE 62 WHEN + 19 THEN - CASE + - COALESCE ( + 53, - + 43, 22 * - NULLIF ( + - 39, 32 ) ) WHEN + - 96 + - 89 THEN + 71 + + + COUNT( * ) END + - 27 END ) * MAX( ALL 72 ) - 38 col2
----
14

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT + 0 + - 92 + NULLIF ( - SUM ( - + 2 ), - + CASE 62 WHEN + 19 THEN - CASE + - COALESCE ( + 53, - + 43, 22 * - NULLIF ( + - 39, 32 ) ) WHEN + - 96 + - 89 THEN + 71 + + + COUNT ( * ) END + - 27 END ) * MAX ( ALL 72 ) - 38 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT COUNT( - ( + + 10 ) ) * - 52 * 14
----
-728

skipif mysql # not compatible
query I rowsort label-3060
SELECT COUNT ( - ( + + 10 ) ) * - 52 * 14
----
-728

query I rowsort
SELECT ALL + 82 + + + CASE 27 WHEN 24 - 88 THEN 80 * + 60 * 94 * - + AVG ( ALL 39 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT MAX( ( + 26 ) ) + SUM( + 4 )
----
30

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT MAX ( ( + 26 ) ) + SUM ( + 4 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3063
SELECT DISTINCT + 10 + COUNT( * ) * - 89 - + CAST( + COUNT( * ) AS SIGNED ) + + 87 * - SUM( DISTINCT + - 85 ) AS col2
----
7315

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT + 10 + COUNT ( * ) * - 89 - + CAST ( + COUNT ( * ) AS INTEGER ) + + 87 * - SUM ( DISTINCT + - 85 ) AS col2
----
7315

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

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

query I rowsort
SELECT - - 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + 57 + - SUM( DISTINCT + 20 )
----
37

skipif mysql # not compatible
query I rowsort label-3066
SELECT + 57 + - SUM ( DISTINCT + 20 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT DISTINCT + 77 - + COALESCE ( - - COUNT( * ), 67 * 80 )
----
76

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT + 77 - + COALESCE ( - - COUNT ( * ), 67 * 80 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3068
SELECT + COUNT( * ) * 31, 46 * - 62 col2
----
31
-2852

skipif mysql # not compatible
query II rowsort label-3068
SELECT + COUNT ( * ) * 31, 46 * - 62 col2
----
31
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT - 95 * 33 + + 64 + 89 + - CASE 60 WHEN + 26 THEN + 6 + - 66 - 96 + - COUNT( * ) / + COUNT( * ) * - 4 WHEN - - 24 THEN - + ( + 90 ) END / - SUM( ALL + - 23 ) + - + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT - 95 * 33 + + 64 + 89 + - CASE 60 WHEN + 26 THEN + 6 + - 66 - 96 + - COUNT ( * ) / + COUNT ( * ) * - 4 WHEN - - 24 THEN - + ( + 90 ) END / - SUM ( ALL + - 23 ) + - + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT DISTINCT - - 92 * + 68 - - + NULLIF ( - + 66, + - 51 ) * + 28
----
4408

query I rowsort
SELECT 80 * + + 25
----
2000

query I rowsort
SELECT NULLIF ( - 16, - + 81 * - 98 + 29 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3073
SELECT DISTINCT + COUNT( * ) * + COALESCE ( - 17, - 79 * - + 60 * + 7 * - + CAST( NULL AS SIGNED ) DIV - 34 - + 96 * + COALESCE ( + 10, 75 ) + COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( - 17, - 79 * - + 60 * + 7 * - + CAST ( NULL AS INTEGER ) / - 34 - + 96 * + COALESCE ( + 10, 75 ) + COUNT ( * ) )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT 72 DIV - 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3074
SELECT 72 / - 44 AS col0
----
-1

query I rowsort
SELECT 59 * 41 AS col0
----
2419

onlyif mysql # aggregate syntax: 
query II rowsort label-3076
SELECT + MIN( + 92 ), + 16 + 24 AS col2
----
92
40

skipif mysql # not compatible
query II rowsort label-3076
SELECT + MIN ( + 92 ), + 16 + 24 AS col2
----
92
40

query I rowsort
SELECT ( - 99 ) - 55
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT 30 DIV 2 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3078
SELECT 30 / 2 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3079
SELECT 66 DIV COALESCE ( + 93, - COUNT( DISTINCT CAST( NULL AS SIGNED ) ), - - CASE + + 35 WHEN 66 * - AVG ( ALL + 72 ) * + + ( - NULLIF ( 18, + 74 ) ) THEN - 15 * + 10 ELSE - 54 END )
----
0

skipif mysql # not compatible
query I rowsort label-3079
SELECT 66 / COALESCE ( + 93, - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ), - - CASE + + 35 WHEN 66 * - AVG ( ALL + 72 ) * + + ( - NULLIF ( 18, + 74 ) ) THEN - 15 * + 10 ELSE - 54 END )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3080
SELECT 36 * - 67 * + 99 AS col2, 33 + CAST( NULL AS DECIMAL ) + COUNT( ALL + + 35 )
----
-238788
NULL

skipif mysql # not compatible
query II rowsort label-3080
SELECT 36 * - 67 * + 99 AS col2, 33 + CAST ( NULL AS REAL ) + COUNT ( ALL + + 35 )
----
-238788
NULL

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

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

query I rowsort
SELECT ALL + 76 * - 12
----
-912

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

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

query I rowsort
SELECT ALL - 13 + - - 14 - 90
----
-89

query I rowsort
SELECT 65 * - 68
----
-4420

query I rowsort
SELECT ALL 57 + + 90 + + - 56 AS col0
----
91

query II rowsort
SELECT - ( 79 ) - 12 col1, + ( 69 )
----
-91
69

query II rowsort
SELECT - 52 AS col1, + NULLIF ( - + 32, NULLIF ( 86, 71 / - 81 * 69 ) )
----
-52
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT + 15 + - COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3089
SELECT + 15 + - COUNT ( * ) AS col1
----
14

query I rowsort
SELECT - 21 * + 31 AS col1
----
-651

query II rowsort
SELECT 35 AS col0, ( + 49 ) AS col2
----
35
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT ALL + 86 + - + 95 DIV + NULLIF ( - 69, 28 ) - + 69 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL + 86 + - + 95 / + NULLIF ( - 69, 28 ) - + 69 AS col0
----
18

query I rowsort
SELECT - COALESCE ( - 24, - - 35 ) + + + 64
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL NULLIF ( COUNT( * ), + SUM( + 8 ) * + 32 - 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL NULLIF ( COUNT ( * ), + SUM ( + 8 ) * + 32 - 79 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT ALL - NULLIF ( + + 64, 33 ) DIV - 28 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL - NULLIF ( + + 64, 33 ) / - 28 AS col1
----
2

query II rowsort
SELECT - 21 AS col1, - ( - - 90 ) * + - 47
----
-21
4230

query I rowsort
SELECT DISTINCT - 96 * - 54 AS col1
----
5184

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3098
SELECT - 63 / AVG ( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT - 63 / AVG ( + - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - + 29 * 52 * 79 AS col2
----
-119132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT SUM( + 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3101
SELECT SUM ( + 88 ) AS col0
----
88

query I rowsort
SELECT - - 68 * - ( 11 ) + + 23 AS col0
----
-725

query I rowsort
SELECT + 69 * - + 0 AS col1
----
0

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

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

query I rowsort
SELECT - 26 + + 53 AS col1
----
27

query I rowsort
SELECT - 35 * + 56
----
-1960

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3108
SELECT - - CAST( NULL AS SIGNED ) + + COALESCE ( - COUNT( * ), - 77, COUNT( * ) * - + 2 + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT - - CAST ( NULL AS INTEGER ) + + COALESCE ( - COUNT ( * ), - 77, COUNT ( * ) * - + 2 + 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT - 37 * - SUM( 45 ) - - + COALESCE ( + ( - COUNT( - 92 ) ), - 61 + + COUNT( * ) ) * 4 + + MAX( ALL + 46 ) col0
----
1707

skipif mysql # not compatible
query I rowsort label-3109
SELECT - 37 * - SUM ( 45 ) - - + COALESCE ( + ( - COUNT ( - 92 ) ), - 61 + + COUNT ( * ) ) * 4 + + MAX ( ALL + 46 ) col0
----
1707

query I rowsort
SELECT - - 66 * + - 26 AS col2
----
-1716

query I rowsort
SELECT + - 61 * 58
----
-3538

query I rowsort
SELECT 50 * + 48 - + 44 + + 11 * 78
----
3214

onlyif mysql # aggregate syntax: 
query II rowsort label-3113
SELECT DISTINCT ( COUNT( DISTINCT - 58 ) ) * + 26 AS col2, - 55 - + 1
----
26
-56

skipif mysql # not compatible
query II rowsort label-3113
SELECT DISTINCT ( COUNT ( DISTINCT - 58 ) ) * + 26 AS col2, - 55 - + 1
----
26
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL + ( - + CAST( + AVG ( DISTINCT + + ( 61 ) ) AS SIGNED ) )
----
-61

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + ( - + CAST ( + AVG ( DISTINCT + + ( 61 ) ) AS INTEGER ) )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT DISTINCT - ( - 86 ) * + + 12 + - COALESCE ( - - CAST( + 6 AS SIGNED ), - 39 ) AS col0
----
1026

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - ( - 86 ) * + + 12 + - COALESCE ( - - CAST ( + 6 AS INTEGER ), - 39 ) AS col0
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL + 10 * - + SUM( ALL + - 80 ) + 75 AS col1
----
875

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL + 10 * - + SUM ( ALL + - 80 ) + 75 AS col1
----
875

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + COALESCE ( + 23, - + 4 * ( 41 ) + - 48 * MIN( DISTINCT - 89 ), + COUNT( * ) ) col2
----
23

skipif mysql # not compatible
query I rowsort label-3117
SELECT + COALESCE ( + 23, - + 4 * ( 41 ) + - 48 * MIN ( DISTINCT - 89 ), + COUNT ( * ) ) col2
----
23

query I rowsort
SELECT - 63 * 69
----
-4347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT + CAST( NULL AS SIGNED ) + - MIN( ALL - 38 ) + - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT + CAST ( NULL AS INTEGER ) + - MIN ( ALL - 38 ) + - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL MIN( - 35 ) * + SUM( + 66 ) + + NULLIF ( - MAX( DISTINCT 44 ), 73 )
----
-2354

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL MIN ( - 35 ) * + SUM ( + 66 ) + + NULLIF ( - MAX ( DISTINCT 44 ), 73 )
----
-2354

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + COALESCE ( + - COUNT( * ), + + 46 ) + 23 col1
----
22

skipif mysql # not compatible
query I rowsort label-3121
SELECT + COALESCE ( + - COUNT ( * ), + + 46 ) + 23 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT + COUNT( * ) * - 48 * - 84 AS col2
----
4032

skipif mysql # not compatible
query I rowsort label-3122
SELECT + COUNT ( * ) * - 48 * - 84 AS col2
----
4032

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT 45 DIV 94 DIV + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT 45 / 94 / + 55 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3124
SELECT - ( - 1 ) AS col0, + 9 + - 45 * + 64 * + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3124
SELECT - ( - 1 ) AS col0, + 9 + - 45 * + 64 * + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + NULLIF ( + 83, - - 86 * - - COUNT( DISTINCT 82 ) ) * - + 63 AS col0
----
-5229

skipif mysql # not compatible
query I rowsort label-3125
SELECT + NULLIF ( + 83, - - 86 * - - COUNT ( DISTINCT 82 ) ) * - + 63 AS col0
----
-5229

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT DISTINCT 9 DIV 24 * - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT 9 / 24 * - 93 AS col2
----
0

query I rowsort
SELECT DISTINCT - ( 67 ) * 72
----
-4824

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

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

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

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

query I rowsort
SELECT - ( 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL - 77 * + MIN( - - 83 ) AS col0
----
-6391

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - 77 * + MIN ( - - 83 ) AS col0
----
-6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3132
SELECT + 70 * + CAST( + MAX( DISTINCT + - 43 ) AS SIGNED ) AS col2, + 71
----
-3010
71

skipif mysql # not compatible
query II rowsort label-3132
SELECT + 70 * + CAST ( + MAX ( DISTINCT + - 43 ) AS INTEGER ) AS col2, + 71
----
-3010
71

query I rowsort
SELECT DISTINCT - 61 * - 40
----
2440

query I rowsort
SELECT + 97 - 43
----
54

query I rowsort
SELECT ALL 66 * 72 + + 90 * + + 16
----
6192

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT - - 6 + - + 25 * + - SUM( DISTINCT + - ( + 9 ) )
----
-219

skipif mysql # not compatible
query I rowsort label-3136
SELECT - - 6 + - + 25 * + - SUM ( DISTINCT + - ( + 9 ) )
----
-219

query I rowsort
SELECT ( - 24 ) AS col0
----
-24

query I rowsort
SELECT ALL - CASE - 69 WHEN + + 51 THEN + - 94 WHEN - 59 + 20 + COALESCE ( 7, - - 58 * + 60 * - + 12 + - 44 ) THEN - 17 END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT - CAST( NULL AS SIGNED ) + ( + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT - CAST ( NULL AS INTEGER ) + ( + 52 ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( 78, + 52 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT ALL + + 18 * + + SUM( DISTINCT + 64 ) + - 81 * - 32 * - - COALESCE ( + COUNT( * ), COUNT( * ) )
----
3744

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + + 18 * + + SUM ( DISTINCT + 64 ) + - 81 * - 32 * - - COALESCE ( + COUNT ( * ), COUNT ( * ) )
----
3744

query I rowsort
SELECT - 8 * + 16 * + - 4 AS col2
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT + 83 * + MAX( - - 91 ) AS col2
----
7553

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 83 * + MAX ( - - 91 ) AS col2
----
7553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3145
SELECT ALL + 80 DIV 72 * ( - + CASE - ( 55 ) WHEN 92 + - - 84 THEN 14 ELSE 81 END ) * 46 + - + 18 + - 57 * - COUNT( * ) + - - COALESCE ( - MAX( 8 ), + 39 - + + 38 * + 29 ) DIV - - COUNT( * ) AS col2
----
-3695

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL + 80 / 72 * ( - + CASE - ( 55 ) WHEN 92 + - - 84 THEN 14 ELSE 81 END ) * 46 + - + 18 + - 57 * - COUNT ( * ) + - - COALESCE ( - MAX ( 8 ), + 39 - + + 38 * + 29 ) / - - COUNT ( * ) AS col2
----
-3695

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT - 35 DIV - - 99 * - + ( 72 ) + 42 + + - ( + 50 )
----
-8

skipif mysql # not compatible
query I rowsort label-3146
SELECT - 35 / - - 99 * - + ( 72 ) + 42 + + - ( + 50 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3147
SELECT ALL + + COUNT( * ) * - 11 AS col0, + 89 * 57 AS col1
----
-11
5073

skipif mysql # not compatible
query II rowsort label-3147
SELECT ALL + + COUNT ( * ) * - 11 AS col0, + 89 * 57 AS col1
----
-11
5073

query I rowsort
SELECT - 76 * - 74
----
5624

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT DISTINCT - 83 DIV - 2 + + 66 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - 83 / - 2 + + 66 AS col1
----
107

query I rowsort
SELECT 81 * + 82 col2
----
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL 27 + - + COALESCE ( - MIN( 22 ), - COUNT( * ), + 57 + + 4 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL 27 + - + COALESCE ( - MIN ( 22 ), - COUNT ( * ), + 57 + + 4 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT MAX( ALL - 37 ) - - COUNT( * ) - - 69
----
33

skipif mysql # not compatible
query I rowsort label-3152
SELECT MAX ( ALL - 37 ) - - COUNT ( * ) - - 69
----
33

query II rowsort
SELECT + 47 col0, - 64 + - - 6
----
47
-58

query I rowsort
SELECT 71 - - + 4 col0
----
75

query I rowsort
SELECT ALL 21 * 41 AS col2
----
861

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

query II rowsort
SELECT + 8 AS col2, + 32 col1
----
8
32

query I rowsort
SELECT ALL + 23 * - 62 * + 12 * - 85 AS col2
----
1454520

query I rowsort
SELECT DISTINCT - 69 - + 54
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT 6 - - + COUNT( * ) + + 30 * - + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-3160
SELECT 6 - - + COUNT ( * ) + + 30 * - + COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3161
SELECT + 99 * COUNT( * ) + + - 81 AS col2, 99 * - 97 AS col0
----
18
-9603

skipif mysql # not compatible
query II rowsort label-3161
SELECT + 99 * COUNT ( * ) + + - 81 AS col2, 99 * - 97 AS col0
----
18
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT MIN( ALL - 75 ) * CAST( NULL AS SIGNED ) * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT MIN ( ALL - 75 ) * CAST ( NULL AS INTEGER ) * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT ( - 16 ) * - + NULLIF ( COUNT( * ), + 7 ) AS col0, 67
----
16
67

skipif mysql # not compatible
query II rowsort label-3163
SELECT ( - 16 ) * - + NULLIF ( COUNT ( * ), + 7 ) AS col0, 67
----
16
67

query I rowsort
SELECT DISTINCT + COALESCE ( - 51, + 15 ) AS col0
----
-51

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

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL COUNT ( * ) / + 62
----
0

query I rowsort
SELECT 39 * - - 96 + - 16
----
3728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3167
SELECT DISTINCT - NULLIF ( - 57, CAST( - COALESCE ( COUNT( * ), + AVG ( + 74 ) ) AS SIGNED ) + CASE + 67 WHEN - MIN( ALL 53 ) THEN + 8 * + 92 ELSE 9 END * - 30 * 18 ) DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT - NULLIF ( - 57, CAST ( - COALESCE ( COUNT ( * ), + AVG ( + 74 ) ) AS INTEGER ) + CASE + 67 WHEN - MIN ( ALL 53 ) THEN + 8 * + 92 ELSE 9 END * - 30 * 18 ) / 79
----
0

query I rowsort
SELECT DISTINCT - + 33 * + - 17 * - + 18 * - 11 * - + ( + NULLIF ( + 4, 0 / - 3 + + 77 + 73 ) ) * - 96 AS col0
----
42653952

query I rowsort
SELECT 19 + - 33 * - ( 36 ) + - - 88 AS col2
----
1295

query I rowsort
SELECT 78 + + 63
----
141

query I rowsort
SELECT ALL 0 * - 28 * - 99
----
0

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

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

query I rowsort
SELECT - 44 + + + 32 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT ALL 27 + - + CAST( + 90 AS SIGNED ) * - 53
----
4797

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL 27 + - + CAST ( + 90 AS INTEGER ) * - 53
----
4797

query I rowsort
SELECT - CASE + - ( - 8 ) WHEN - 21 THEN - 72 * 27 WHEN - - 63 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 88 + + + 34
----
122

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

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

query I rowsort
SELECT ALL + ( - 3 ) + 15 AS col0
----
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3180
SELECT ALL + CASE + CAST( - AVG ( - 96 ) AS SIGNED ) WHEN + 3 THEN NULL WHEN - 50 THEN - + 2 WHEN 89 * 35 + - + 63 THEN NULL END + + + 36 - + MIN( 88 ), + SUM( - 29 ) AS col0
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-3180
SELECT ALL + CASE + CAST ( - AVG ( - 96 ) AS INTEGER ) WHEN + 3 THEN NULL WHEN - 50 THEN - + 2 WHEN 89 * 35 + - + 63 THEN NULL END + + + 36 - + MIN ( 88 ), + SUM ( - 29 ) AS col0
----
NULL
-29

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

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

query I rowsort
SELECT 36 + - 23 - + 62 * 88 * + 31
----
-169123

query II rowsort
SELECT 75 * - 38 col1, + 26 AS col2
----
-2850
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT ALL + 27 DIV + 9 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL + 27 / + 9 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT - COUNT( * ) * 39 + + 27
----
-12

skipif mysql # not compatible
query I rowsort label-3185
SELECT - COUNT ( * ) * 39 + + 27
----
-12

query I rowsort
SELECT 81 + + 69
----
150

query I rowsort
SELECT 18 * - 14 + - 37
----
-289

query I rowsort
SELECT 65 * + - 3
----
-195

query I rowsort
SELECT 71 + + 0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT ALL - COUNT( * ) AS col0, + 96 - 62 AS col1
----
-1
34

skipif mysql # not compatible
query II rowsort label-3190
SELECT ALL - COUNT ( * ) AS col0, + 96 - 62 AS col1
----
-1
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT 80 + + 7 + + 36 DIV + 35 + 77 + - - 68 AS col0
----
233

skipif mysql # not compatible
query I rowsort label-3191
SELECT 80 + + 7 + + 36 / + 35 + 77 + - - 68 AS col0
----
233

query II rowsort
SELECT ALL - 55 AS col1, 35 - 63 AS col0
----
-55
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT ALL 74 DIV - - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL 74 / - - COUNT ( * )
----
74

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

skipif mysql # not compatible
query I rowsort label-3194
SELECT 96 / - + COUNT ( * ) AS col1
----
-96

query II rowsort
SELECT + 57, 55 AS col2
----
57
55

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

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

query I rowsort
SELECT 77 * + 34 AS col1
----
2618

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3198
SELECT + 14 AS col0, 78 * + CAST( NULL AS SIGNED ) AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-3198
SELECT + 14 AS col0, 78 * + CAST ( NULL AS INTEGER ) AS col0
----
14
NULL

query I rowsort
SELECT 15 + 22
----
37

query I rowsort
SELECT 89 * 88 col2
----
7832

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3202
SELECT NULLIF ( - + SUM( - + 15 ), - CASE - 57 WHEN - 4 + - 18 + - 47 THEN + 30 END DIV + + 87 ) * 2 DIV - 5 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3202
SELECT NULLIF ( - + SUM ( - + 15 ), - CASE - 57 WHEN - 4 + - 18 + - 47 THEN + 30 END / + + 87 ) * 2 / - 5 AS col2
----
-6

query II rowsort
SELECT DISTINCT 70 AS col2, 66 AS col2
----
70
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3204
SELECT ALL + + 27 DIV 33 * + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL + + 27 / 33 * + COUNT ( * ) col0
----
0

query I rowsort
SELECT 54 * + 55
----
2970

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

query II rowsort
SELECT ALL - 44 AS col1, - 22
----
-44
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT 3 * ( - SUM( 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3209
SELECT 3 * ( - SUM ( 0 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT 34 DIV - + 50
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT 34 / - + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + COUNT( * ) + - 43 + ( - + 61 ) AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-3211
SELECT + COUNT ( * ) + - 43 + ( - + 61 ) AS col2
----
-103

query I rowsort
SELECT DISTINCT + 17 + - + 51 AS col0
----
-34

query I rowsort
SELECT ALL - 84 + NULLIF ( - 88, - 70 ) AS col1
----
-172

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

query I rowsort
SELECT ALL COALESCE ( + NULLIF ( - 43, - + 80 ), + - 34, - 76 + + 21 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT DISTINCT + + 72 + + + COUNT( * ) + + - 7 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT + + 72 + + + COUNT ( * ) + + - 7 AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT + 8 DIV + 79 + + - 88 DIV - ( - 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3217
SELECT + 8 / + 79 + + - 88 / - ( - 52 ) AS col1
----
-1

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

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

query I rowsort
SELECT ALL 61 + + - 83 + - - 70
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-3220
SELECT - - 82 AS col2, 84 DIV - - 57 + + + 20 + + + 94 * + 52 AS col1
----
82
4909

skipif mysql # not compatible
query II rowsort label-3220
SELECT - - 82 AS col2, 84 / - - 57 + + + 20 + + + 94 * + 52 AS col1
----
82
4909

query I rowsort
SELECT + + 21 + + ( - 88 ) AS col0
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3222
SELECT DISTINCT 93 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT 93 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT ALL 52 - 70 DIV + - 6 + - + 24 * + - 98 * + 65
----
152943

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL 52 - 70 / + - 6 + - + 24 * + - 98 * + 65
----
152943

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + COALESCE ( - 25, - COUNT( * ) ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3224
SELECT + COALESCE ( - 25, - COUNT ( * ) ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3225
SELECT ALL 92 * 98 AS col0, 62 * + 99 + - COALESCE ( - 98, - - ( + 35 ) ) + - + SUM( DISTINCT 25 ) * + MIN( - + ( + ( - - 41 ) ) ) AS col2
----
9016
7261

skipif mysql # not compatible
query II rowsort label-3225
SELECT ALL 92 * 98 AS col0, 62 * + 99 + - COALESCE ( - 98, - - ( + 35 ) ) + - + SUM ( DISTINCT 25 ) * + MIN ( - + ( + ( - - 41 ) ) ) AS col2
----
9016
7261

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT ALL + SUM( + + 25 ), + 18 * + 20 AS col1
----
25
360

skipif mysql # not compatible
query II rowsort label-3226
SELECT ALL + SUM ( + + 25 ), + 18 * + 20 AS col1
----
25
360

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT + CASE + CASE + 89 WHEN + 88 * + - 54 - - - 21 + + + 38 THEN NULL WHEN ( 93 ) + - ( - CAST( NULL AS SIGNED ) ) THEN + 35 END WHEN ( 23 ) THEN NULL WHEN + 81 + + - 32 * - 38 THEN 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT + CASE + CASE + 89 WHEN + 88 * + - 54 - - - 21 + + + 38 THEN NULL WHEN ( 93 ) + - ( - CAST ( NULL AS INTEGER ) ) THEN + 35 END WHEN ( 23 ) THEN NULL WHEN + 81 + + - 32 * - 38 THEN 48 ELSE NULL END
----
NULL

query II rowsort
SELECT + 20 - + 75 AS col1, + 92 AS col0
----
-55
92

query II rowsort
SELECT DISTINCT - 51 * 76 * + + 28, + 88 col1
----
-108528
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT DISTINCT 44 DIV - 10 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT 44 / - 10 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT ALL + CASE - - ( + 86 ) WHEN + + 31 + 31 THEN NULL ELSE MAX( DISTINCT 69 ) END, - 89 - + 56 AS col1
----
69
-145

skipif mysql # not compatible
query II rowsort label-3232
SELECT ALL + CASE - - ( + 86 ) WHEN + + 31 + 31 THEN NULL ELSE MAX ( DISTINCT 69 ) END, - 89 - + 56 AS col1
----
69
-145

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

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

query I rowsort
SELECT ALL - 29 * + 67 * - 84
----
163212

query I rowsort
SELECT DISTINCT + + 24 * + + 3
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL + NULLIF ( + 62, NULLIF ( - 38, + + 55 ) * 58 + 33 + - 36 + - NULLIF ( + MAX( + + CAST( NULL AS SIGNED ) ), + + 83 ) ) * - 89 + - 31
----
-5549

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL + NULLIF ( + 62, NULLIF ( - 38, + + 55 ) * 58 + 33 + - 36 + - NULLIF ( + MAX ( + + CAST ( NULL AS INTEGER ) ), + + 83 ) ) * - 89 + - 31
----
-5549

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

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + 38 * - CAST ( + - ( - 30 ) AS INTEGER )
----
-1140

query I rowsort
SELECT + 3 * 37 + 92 + - 58 AS col1
----
145

query I rowsort
SELECT - - 94 - 32 + + - 5
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT ALL + 88 + + 89 DIV 40
----
90

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + 88 + + 89 / 40
----
90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3242
SELECT DISTINCT + SUM( - 79 ) + - - 92 / - 16 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT + SUM ( - 79 ) + - - 92 / - 16 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3243
SELECT ALL 19 * 3 * CASE - + NULLIF ( + 31, + COALESCE ( - + 37, - - ( 18 ) - 85, - - 96 ) ) WHEN - 16 THEN - ( + - COUNT( * ) ) + + SUM( ALL + + 42 ) DIV 35 * + COUNT( * ) WHEN - 53 * + 45 * + + 2 THEN + - 27 WHEN + + 92 THEN NULL ELSE + 27 END * + + 72
----
110808

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL 19 * 3 * CASE - + NULLIF ( + 31, + COALESCE ( - + 37, - - ( 18 ) - 85, - - 96 ) ) WHEN - 16 THEN - ( + - COUNT ( * ) ) + + SUM ( ALL + + 42 ) / 35 * + COUNT ( * ) WHEN - 53 * + 45 * + + 2 THEN + - 27 WHEN + + 92 THEN NULL ELSE + 27 END * + + 72
----
110808

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

skipif mysql # not compatible
query I rowsort label-3244
SELECT - CAST ( + 71 AS INTEGER ) + - ( + COUNT ( * ) )
----
-72

query I rowsort
SELECT ALL + 53 + 99 AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT DISTINCT - MIN( + 88 ) * + 51 * + - 53 + + 72 + + + 35 + + 72 col1
----
238043

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT - MIN ( + 88 ) * + 51 * + - 53 + + 72 + + + 35 + + 72 col1
----
238043

query II rowsort
SELECT DISTINCT - 31 + - 19 AS col2, + 0 AS col2
----
-50
0

query I rowsort
SELECT ALL 46 + + 67 AS col2
----
113

query II rowsort
SELECT + + 67 * - 93 AS col0, + 20 AS col2
----
-6231
20

query I rowsort
SELECT - + 56 + - + 37 AS col2
----
-93

query II rowsort
SELECT + - 92 + - 17, 88 * + - 22 AS col2
----
-109
-1936

onlyif mysql # aggregate syntax: 
query II rowsort label-3252
SELECT + + 17 + - 24 AS col0, - 88 * 16 + + + COALESCE ( ( + 7 ), 37, 85 ) * 2 + + 37 + + 44 + + + 89 + 81 + - - MAX( - 17 ) + + 71 * 15
----
-7
-95

skipif mysql # not compatible
query II rowsort label-3252
SELECT + + 17 + - 24 AS col0, - 88 * 16 + + + COALESCE ( ( + 7 ), 37, 85 ) * 2 + + 37 + + 44 + + + 89 + 81 + - - MAX ( - 17 ) + + 71 * 15
----
-7
-95

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

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

query I rowsort
SELECT - 17 * + 56
----
-952

query II rowsort
SELECT 47 col0, + 83
----
47
83

query I rowsort
SELECT DISTINCT ( - - 13 ) AS col2
----
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3258
SELECT ALL 81 DIV - MAX( DISTINCT - ( - 81 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 81 / - MAX ( DISTINCT - ( - 81 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT + MAX( 61 ) + 12 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3259
SELECT + MAX ( 61 ) + 12 AS col1
----
73

query I rowsort
SELECT ALL 98 * + 1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT + 39 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-3261
SELECT + 39 / - 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3262
SELECT ALL 45 DIV + 41 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL 45 / + 41 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3263
SELECT 92 DIV + 26 - 8 * COUNT( * ) * - + COUNT( * ) * 49 AS col2
----
395

skipif mysql # not compatible
query I rowsort label-3263
SELECT 92 / + 26 - 8 * COUNT ( * ) * - + COUNT ( * ) * 49 AS col2
----
395

query I rowsort
SELECT + 33 + 12
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3265
SELECT ALL 39 * - - 85 * + - COUNT( * ), - 20 AS col2
----
-3315
-20

skipif mysql # not compatible
query II rowsort label-3265
SELECT ALL 39 * - - 85 * + - COUNT ( * ), - 20 AS col2
----
-3315
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT CAST( 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-3266
SELECT CAST ( 72 AS INTEGER )
----
72

query I rowsort
SELECT + 97 + 42
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT ALL + 77 / + CAST( NULL AS SIGNED ) + + + 18 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL + 77 / + CAST ( NULL AS INTEGER ) + + + 18 + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 73 + + - 70 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3270
SELECT - NULLIF ( - CAST( + 5 AS SIGNED ), + - ( - 46 ) ) * 49 + + 65 - - 1 + - - 25 * CAST( NULL AS SIGNED ) + + + COALESCE ( + COUNT( * ), 62, - 98 ) * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT - NULLIF ( - CAST ( + 5 AS INTEGER ), + - ( - 46 ) ) * 49 + + 65 - - 1 + - - 25 * CAST ( NULL AS INTEGER ) + + + COALESCE ( + COUNT ( * ), 62, - 98 ) * 73
----
NULL

query II rowsort
SELECT 49 AS col0, + NULLIF ( - + 81, 25 ) - + 30
----
49
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3272
SELECT ALL - 21 * - - NULLIF ( 28, - + COUNT( * ) ) * + 36 DIV 12 * + 99 * MAX( 76 ) + 45 + 35 * - 43 + - 44 DIV - 9 + - 88 AS col0
----
-13273880

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL - 21 * - - NULLIF ( 28, - + COUNT ( * ) ) * + 36 / 12 * + 99 * MAX ( 76 ) + 45 + 35 * - 43 + - 44 / - 9 + - 88 AS col0
----
-13273880

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT - + COUNT( * ) + - - 58
----
57

skipif mysql # not compatible
query I rowsort label-3273
SELECT - + COUNT ( * ) + - - 58
----
57

query I rowsort
SELECT ALL - - 44 * - 66 + 65 + + + 85 * - 14
----
-4029

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3275
SELECT COUNT( * ) AS col0, COUNT( * ) DIV + 23 AS col0
----
1
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3276
SELECT + - 32, - COUNT( * ) DIV 97 AS col2
----
-32
0

skipif mysql # not compatible
query II rowsort label-3276
SELECT + - 32, - COUNT ( * ) / 97 AS col2
----
-32
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3277
SELECT - - 48 + + 96 / - CAST( - + ( 66 ) AS SIGNED ) + - CASE NULLIF ( - - 18, + - 7 * + CAST( NULL AS SIGNED ) * + + 12 + - 75 + - - MAX( ALL + 80 ) + 83 + - 16 * - - ( + 58 ) ) WHEN + + AVG ( DISTINCT 50 ) THEN - 47 + 70 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT - - 48 + + 96 / - CAST ( - + ( 66 ) AS INTEGER ) + - CASE NULLIF ( - - 18, + - 7 * + CAST ( NULL AS INTEGER ) * + + 12 + - 75 + - - MAX ( ALL + 80 ) + 83 + - 16 * - - ( + 58 ) ) WHEN + + AVG ( DISTINCT 50 ) THEN - 47 + 70 END col1
----
NULL

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

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

query I rowsort
SELECT ALL + ( + 85 ) * 94 + 34 + 38
----
8062

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT - 63 DIV + 59
----
-1

skipif mysql # not compatible
query I rowsort label-3280
SELECT - 63 / + 59
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT COUNT( * ) * + 33 * - - 4 + - + CASE 86 WHEN - 88 THEN NULL WHEN + - 7 * - - MAX( + 55 ) * + 66 THEN 10 ELSE NULL END * - NULLIF ( + 47, - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT COUNT ( * ) * + 33 * - - 4 + - + CASE 86 WHEN - 88 THEN NULL WHEN + - 7 * - - MAX ( + 55 ) * + 66 THEN 10 ELSE NULL END * - NULLIF ( + 47, - + COUNT ( * ) )
----
NULL

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

query I rowsort
SELECT - - 41 * + 88 - + 79
----
3529

query II rowsort
SELECT - + 19, - 59 AS col1
----
-19
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + ( + + 10 ) * 7 + + COALESCE ( + 88, - - COUNT( ALL - 66 ) )
----
158

skipif mysql # not compatible
query I rowsort label-3285
SELECT + ( + + 10 ) * 7 + + COALESCE ( + 88, - - COUNT ( ALL - 66 ) )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT - 22 + 23 - - COUNT( + 64 ) * + 55
----
56

skipif mysql # not compatible
query I rowsort label-3286
SELECT - 22 + 23 - - COUNT ( + 64 ) * + 55
----
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT 74 - COUNT( * ) col0
----
73

skipif mysql # not compatible
query I rowsort label-3288
SELECT 74 - COUNT ( * ) col0
----
73

query I rowsort
SELECT ALL 57 * + 81
----
4617

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

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

query I rowsort
SELECT DISTINCT - 78 * - + 24 AS col1
----
1872

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

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

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

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

query I rowsort
SELECT ALL + 61 + - 22 + 83
----
122

query I rowsort
SELECT ALL 85 + + + 23 * - 54 AS col2
----
-1157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3297
SELECT ALL ( - - CASE ( - SUM( DISTINCT + 91 ) ) WHEN + 92 + 3 THEN - COUNT( * ) END ) * + 50 AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3297
SELECT ALL ( - - CASE ( - SUM ( DISTINCT + 91 ) ) WHEN + 92 + 3 THEN - COUNT ( * ) END ) * + 50 AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT ALL + COUNT( * ) + + 69, 84 + - 63 + - 66 - - 67 * - ( + 93 ) AS col0
----
70
-6276

skipif mysql # not compatible
query II rowsort label-3298
SELECT ALL + COUNT ( * ) + + 69, 84 + - 63 + - 66 - - 67 * - ( + 93 ) AS col0
----
70
-6276

query I rowsort
SELECT DISTINCT + + 78 + + 34
----
112

query I rowsort
SELECT ALL + 86 - 87 col0
----
-1

query II rowsort
SELECT ALL - 6 - + 27 + + 55 + 69 AS col1, + 59 col2
----
91
59

query I rowsort
SELECT - 70 * - 27 AS col2
----
1890

query I rowsort
SELECT - 56 * - 20 + - - 60 AS col2
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT 47 - COALESCE ( ( + ( + 96 ) ), - MIN( DISTINCT - 33 ) ) * - 95 AS col2
----
9167

skipif mysql # not compatible
query I rowsort label-3304
SELECT 47 - COALESCE ( ( + ( + 96 ) ), - MIN ( DISTINCT - 33 ) ) * - 95 AS col2
----
9167

query I rowsort
SELECT - 37 * 78
----
-2886

query I rowsort
SELECT 49 + + 35 * 4 AS col1
----
189

query I rowsort
SELECT + 61 * + 88 - 41 + 69 * - - 16
----
6431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT CAST( ( - 84 ) AS SIGNED ) * + ( - 5 ) * 11 * 35 + - 69 AS col1
----
161631

skipif mysql # not compatible
query I rowsort label-3308
SELECT CAST ( ( - 84 ) AS INTEGER ) * + ( - 5 ) * 11 * 35 + - 69 AS col1
----
161631

query I rowsort
SELECT + 77 + - + 19
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT 34 * - + MAX( 78 ) AS col0
----
-2652

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT 34 * - + MAX ( 78 ) AS col0
----
-2652

query I rowsort
SELECT 84 + + - 21
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT 90 DIV - 79
----
-1

skipif mysql # not compatible
query I rowsort label-3312
SELECT 90 / - 79
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL 69 * - SUM( + - ( - - 68 ) ) AS col2
----
4692

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL 69 * - SUM ( + - ( - - 68 ) ) AS col2
----
4692

query I rowsort
SELECT ALL 28 * + 95 col0
----
2660

onlyif mysql # aggregate syntax: 
query II rowsort label-3315
SELECT MIN( ALL + 13 ) + - COALESCE ( 69, + + COALESCE ( 78, 13 + 96 * - 36 + + - 21 + + 8, + + 85 ) - 48 ), - 92 AS col1
----
-56
-92

skipif mysql # not compatible
query II rowsort label-3315
SELECT MIN ( ALL + 13 ) + - COALESCE ( 69, + + COALESCE ( 78, 13 + 96 * - 36 + + - 21 + + 8, + + 85 ) - 48 ), - 92 AS col1
----
-56
-92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3316
SELECT CAST( + - 60 AS SIGNED ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT CAST ( + - 60 AS INTEGER ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT 9 + - 69 + - 80 AS col0, - 67 col1
----
-140
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT 19 + - ( + COUNT( * ) ) + + 70 + ( + CASE + + 95 WHEN 37 THEN NULL ELSE CAST( NULL AS SIGNED ) END ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT 19 + - ( + COUNT ( * ) ) + + 70 + ( + CASE + + 95 WHEN 37 THEN NULL ELSE CAST ( NULL AS INTEGER ) END ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 25 * NULLIF ( 40, - - 39 ) AS col1
----
1000

query I rowsort
SELECT 96 + + 38 AS col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-3321
SELECT DISTINCT 27 + + + 71 DIV + 26 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT 27 + + + 71 / + 26 AS col0
----
29

query I rowsort
SELECT 15 + - - 88 AS col2
----
103

query I rowsort
SELECT DISTINCT + 20 * + + 91
----
1820

onlyif mysql # aggregate syntax: 
query II rowsort label-3324
SELECT - 28 * COUNT( + 87 ) * - - 35 * + 79 + - 84 + - 54 * + - 50, 86 + ( - - 48 ) AS col0
----
-74804
134

skipif mysql # not compatible
query II rowsort label-3324
SELECT - 28 * COUNT ( + 87 ) * - - 35 * + 79 + - 84 + - 54 * + - 50, 86 + ( - - 48 ) AS col0
----
-74804
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3325
SELECT - COUNT( * ) DIV + 6 * 83 + - - MAX( + 62 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-3325
SELECT - COUNT ( * ) / + 6 * 83 + - - MAX ( + 62 ) col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT 50 + NULLIF ( 5, + ( 22 ) ) + + 6 * - + SUM( + 59 ) AS col0
----
-299

skipif mysql # not compatible
query I rowsort label-3326
SELECT 50 + NULLIF ( 5, + ( 22 ) ) + + 6 * - + SUM ( + 59 ) AS col0
----
-299

query I rowsort
SELECT 70 * + 58 + 62 - 78 AS col0
----
4044

query II rowsort
SELECT DISTINCT - + 44 AS col1, - 53 + - ( + - 71 ) + - 35 AS col1
----
-44
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL - MIN( + 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL - MIN ( + 34 ) AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT - 84 DIV + - 24 + + 86 - + - 75
----
164

skipif mysql # not compatible
query I rowsort label-3330
SELECT - 84 / + - 24 + + 86 - + - 75
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT ALL + - CAST( + 59 AS SIGNED ) * + 95 AS col1
----
-5605

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL + - CAST ( + 59 AS INTEGER ) * + 95 AS col1
----
-5605

query I rowsort
SELECT 46 + + - 37
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - - 55 * - SUM( - + 92 ) * + 31 + COUNT( * ) + - COUNT( DISTINCT + - ( + + 31 ) )
----
156860

skipif mysql # not compatible
query I rowsort label-3333
SELECT - - 55 * - SUM ( - + 92 ) * + 31 + COUNT ( * ) + - COUNT ( DISTINCT + - ( + + 31 ) )
----
156860

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + 55 * SUM( - - 10 ) - - COUNT( * )
----
551

skipif mysql # not compatible
query I rowsort label-3334
SELECT + 55 * SUM ( - - 10 ) - - COUNT ( * )
----
551

query I rowsort
SELECT DISTINCT - 55 * - 35 - 20 AS col0
----
1905

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT - - 69 DIV + 6
----
11

skipif mysql # not compatible
query I rowsort label-3336
SELECT - - 69 / + 6
----
11

query I rowsort
SELECT + 95 + + 23
----
118

query I rowsort
SELECT + + 88 * + 15 col0
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT + 83 * - - MIN( - 21 )
----
-1743

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT + 83 * - - MIN ( - 21 )
----
-1743

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT 40 * - CASE WHEN - COUNT( * ) IN ( + + ( + 50 ) + - 85, - 12, - 28 * + 90 + + COALESCE ( + 67, - 9 * - - 47 ) + + - 21 + - ( - + 80 ), + - COUNT( * ), + - 87 ) THEN NULL ELSE - COUNT( * ) - + - ( 45 ) END * + + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT 40 * - CASE WHEN - COUNT ( * ) IN ( + + ( + 50 ) + - 85, - 12, - 28 * + 90 + + COALESCE ( + 67, - 9 * - - 47 ) + + - 21 + - ( - + 80 ), + - COUNT ( * ), + - 87 ) THEN NULL ELSE - COUNT ( * ) - + - ( 45 ) END * + + 43 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL 28 + + COUNT( + 43 ) + + 94 * - 99 - - 95 AS col2
----
-9182

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL 28 + + COUNT ( + 43 ) + + 94 * - 99 - - 95 AS col2
----
-9182

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - CASE - + 96 WHEN + 78 + + 25 + - + COUNT( * ) * - + 14 THEN - 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT - CASE - + 96 WHEN + 78 + + 25 + - + COUNT ( * ) * - + 14 THEN - 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT + 10 - - COUNT( * ) AS col1, 43 AS col1
----
11
43

skipif mysql # not compatible
query II rowsort label-3345
SELECT + 10 - - COUNT ( * ) AS col1, 43 AS col1
----
11
43

query I rowsort
SELECT - 92 * - - 78 AS col2
----
-7176

query II rowsort
SELECT 6 AS col2, + 44 * - - 73 AS col2
----
6
3212

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT COUNT( * ) + - + NULLIF ( + COUNT( * ), + COUNT( * ) ) + + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT COUNT ( * ) + - + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) + + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + 56 - + ( - 96 ) * + 17 * - 83 * - ( - ( - + COUNT( * ) ) )
----
135512

skipif mysql # not compatible
query I rowsort label-3349
SELECT + 56 - + ( - 96 ) * + 17 * - 83 * - ( - ( - + COUNT ( * ) ) )
----
135512

query I rowsort
SELECT - 68 + + 4 * - ( - 17 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT DISTINCT SUM( DISTINCT 57 ) * + + 70 AS col1
----
3990

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT SUM ( DISTINCT 57 ) * + + 70 AS col1
----
3990

query I rowsort
SELECT - ( - 2 ) AS col1
----
2

query II rowsort
SELECT ALL + 95, - 51 * 42 col2
----
95
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL + - 40 * + - COUNT( * ) * 96
----
3840

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + - 40 * + - COUNT ( * ) * 96
----
3840

onlyif mysql # aggregate syntax: 
query III rowsort label-3355
SELECT DISTINCT + 89 AS col2, - SUM( + 72 ) - 65, - - 30 * 93 AS col0
----
89
-137
2790

skipif mysql # not compatible
query III rowsort label-3355
SELECT DISTINCT + 89 AS col2, - SUM ( + 72 ) - 65, - - 30 * 93 AS col0
----
89
-137
2790

query II rowsort
SELECT ALL + - 99 AS col2, 11 + - + 35 AS col2
----
-99
-24

query II rowsort
SELECT + + 92, ( + - 76 ) AS col0
----
92
-76

query I rowsort
SELECT - 43 * - 38 - - + 26
----
1660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL + 78 * CAST( 14 AS SIGNED ) + - + 87 + 14 + - 6 + + + SUM( ALL + 65 ) * - 30 * + CASE - - CAST( 16 AS SIGNED ) WHEN - - COUNT( * ) + + - 4 + - CAST( NULL AS SIGNED ) * + + 3 / ( 84 ) THEN NULL WHEN + 52 THEN + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + 78 * CAST ( 14 AS INTEGER ) + - + 87 + 14 + - 6 + + + SUM ( ALL + 65 ) * - 30 * + CASE - - CAST ( 16 AS INTEGER ) WHEN - - COUNT ( * ) + + - 4 + - CAST ( NULL AS INTEGER ) * + + 3 / ( 84 ) THEN NULL WHEN + 52 THEN + 68 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + COALESCE ( - COUNT( * ), + 17 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3360
SELECT + COALESCE ( - COUNT ( * ), + 17 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3361
SELECT ALL + - 98 * + 88, 13 * + + 18 - - CAST( COUNT( * ) AS SIGNED ) + + 11 AS col0
----
-8624
246

skipif mysql # not compatible
query II rowsort label-3361
SELECT ALL + - 98 * + 88, 13 * + + 18 - - CAST ( COUNT ( * ) AS INTEGER ) + + 11 AS col0
----
-8624
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT - + 40 + + + 16 + + - CASE + COUNT( * ) WHEN + 59 THEN - 70 ELSE + 70 END * COUNT( + 80 ) + - - 28 + + 7 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3362
SELECT - + 40 + + + 16 + + - CASE + COUNT ( * ) WHEN + 59 THEN - 70 ELSE + 70 END * COUNT ( + 80 ) + - - 28 + + 7 AS col2
----
-59

query II rowsort
SELECT + 97, 20 AS col2
----
97
20

query I rowsort
SELECT + 88 * + 91
----
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL + COALESCE ( 95, - NULLIF ( - + 48, COUNT( * ) ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + COALESCE ( 95, - NULLIF ( - + 48, COUNT ( * ) ) ) AS col0
----
95

query I rowsort
SELECT - NULLIF ( 30, - ( 52 ) ) - - 58 + + - 68 * 83 * - 21 * + - 33 * - + 97 AS col0
----
379395352

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

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

query I rowsort
SELECT + - 87 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - COUNT( * ) + - 29
----
-30

skipif mysql # not compatible
query I rowsort label-3369
SELECT - COUNT ( * ) + - 29
----
-30

query I rowsort
SELECT + 53 * - 33 + + 62
----
-1687

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + 16 - + COUNT( * ) - + 98 + - 27 * + COALESCE ( - + 75, + + 11 ) * 66 col1
----
133567

skipif mysql # not compatible
query I rowsort label-3371
SELECT + 16 - + COUNT ( * ) - + 98 + - 27 * + COALESCE ( - + 75, + + 11 ) * 66 col1
----
133567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3372
SELECT DISTINCT - COUNT( * ) * 85 * - 1 AS col2, - SUM( + - ( + 90 ) ) * + ( + + 68 ) + - NULLIF ( - MAX( - + CAST( NULL AS SIGNED ) ), ( + MAX( ALL - - 36 ) ) + CAST( NULL AS SIGNED ) * 22 )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-3372
SELECT DISTINCT - COUNT ( * ) * 85 * - 1 AS col2, - SUM ( + - ( + 90 ) ) * + ( + + 68 ) + - NULLIF ( - MAX ( - + CAST ( NULL AS INTEGER ) ), ( + MAX ( ALL - - 36 ) ) + CAST ( NULL AS INTEGER ) * 22 )
----
85
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT - CAST( - ( - - 19 ) AS SIGNED ) + + ( - + 44 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3373
SELECT - CAST ( - ( - - 19 ) AS INTEGER ) + + ( - + 44 ) AS col1
----
-25

query I rowsort
SELECT + 98 * + 42 * + + 52 * + 36
----
7705152

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT + 57 + - + 24 - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3375
SELECT + 57 + - + 24 - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL - COUNT( * ) + + + CASE - + MAX( DISTINCT + + 9 ) WHEN + 2 THEN NULL WHEN - + 7 / - + 99 THEN NULL ELSE + 14 + 7 END - - 64
----
84

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL - COUNT ( * ) + + + CASE - + MAX ( DISTINCT + + 9 ) WHEN + 2 THEN NULL WHEN - + 7 / - + 99 THEN NULL ELSE + 14 + 7 END - - 64
----
84

query I rowsort
SELECT ALL + 47 + + 77
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-3378
SELECT - COUNT( 24 ), + 11 AS col1
----
-1
11

skipif mysql # not compatible
query II rowsort label-3378
SELECT - COUNT ( 24 ), + 11 AS col1
----
-1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT - 38 + NULLIF ( SUM( 89 ), + COUNT( * ) ) col0
----
51

skipif mysql # not compatible
query I rowsort label-3379
SELECT - 38 + NULLIF ( SUM ( 89 ), + COUNT ( * ) ) col0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3380
SELECT + 8 + - - 0 + + 4 AS col2, CAST( NULL AS DECIMAL )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-3380
SELECT + 8 + - - 0 + + 4 AS col2, CAST ( NULL AS REAL )
----
12
NULL

query I rowsort
SELECT + 67 * CASE - 65 WHEN - 51 + + - 90 - 55 THEN - 71 WHEN 90 THEN 56 + - 67 + + - NULLIF ( - 76, 34 * - + 4 + + 23 ) ELSE NULL END * 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3382
SELECT 40 + - + 50 * - + CAST( + COUNT( * ) AS SIGNED ) * - 13
----
-610

skipif mysql # not compatible
query I rowsort label-3382
SELECT 40 + - + 50 * - + CAST ( + COUNT ( * ) AS INTEGER ) * - 13
----
-610

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT ALL 90 DIV - 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL 90 / - 63 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT - 14 + - CASE + - COUNT( * ) WHEN + COUNT( + 41 ) + - 7 THEN - - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT - 14 + - CASE + - COUNT ( * ) WHEN + COUNT ( + 41 ) + - 7 THEN - - 84 END
----
NULL

query I rowsort
SELECT 76 * 51 AS col2
----
3876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3386
SELECT SUM( + COALESCE ( 61, - CAST( NULL AS SIGNED ) ) ) + + 52 AS col2, 24
----
113
24

skipif mysql # not compatible
query II rowsort label-3386
SELECT SUM ( + COALESCE ( 61, - CAST ( NULL AS INTEGER ) ) ) + + 52 AS col2, 24
----
113
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT - 17 DIV + 28 + 52 * - + 34
----
-1768

skipif mysql # not compatible
query I rowsort label-3387
SELECT - 17 / + 28 + 52 * - + 34
----
-1768

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT DISTINCT COUNT( * ) * + 13 * + 35 AS col0, - 47 * - MIN( - NULLIF ( + 63, - 61 ) )
----
455
-2961

skipif mysql # not compatible
query II rowsort label-3388
SELECT DISTINCT COUNT ( * ) * + 13 * + 35 AS col0, - 47 * - MIN ( - NULLIF ( + 63, - 61 ) )
----
455
-2961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3389
SELECT ALL + 49 * - MAX( DISTINCT + - 68 ) * - 27 + CAST( 8 AS SIGNED ) + - 35 * + + 80 * + 5 AS col0
----
-103956

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + 49 * - MAX ( DISTINCT + - 68 ) * - 27 + CAST ( 8 AS INTEGER ) + - 35 * + + 80 * + 5 AS col0
----
-103956

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT COUNT( DISTINCT 26 ) * 94 * + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-3390
SELECT COUNT ( DISTINCT 26 ) * 94 * + + COUNT ( * )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3391
SELECT + 37 / 66 * + COUNT( * ) * - - CAST( + COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED ) / + 57 / - 73 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT + 37 / 66 * + COUNT ( * ) * - - CAST ( + COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) / + 57 / - 73 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - + 56 AS col1
----
-56

query I rowsort
SELECT DISTINCT + 55 + + ( + + 4 ) AS col2
----
59

query I rowsort
SELECT ALL - NULLIF ( + 21, - NULLIF ( - 35, 85 + - - 37 + 56 + 46 * + 77 ) ) AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), - - 68 + - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), - - 68 + - 48 )
----
NULL

query I rowsort
SELECT 24 * - 91 AS col0
----
-2184

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

skipif mysql # not compatible
query II rowsort label-3397
SELECT ALL - 22 + - - CAST ( NULL AS INTEGER ) AS col0, - 17 * - 24 * CAST ( NULL AS INTEGER )
----
NULL
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL + CASE + ( - 38 ) WHEN - + 19 - ( - COUNT( * ) ) THEN NULL ELSE - ( - + COUNT( * ) ) + 71 END + + 66 col1
----
138

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + CASE + ( - 38 ) WHEN - + 19 - ( - COUNT ( * ) ) THEN NULL ELSE - ( - + COUNT ( * ) ) + 71 END + + 66 col1
----
138

query I rowsort
SELECT ALL 69 + - + 9
----
60

query I rowsort
SELECT 99 * + 29
----
2871

query I rowsort
SELECT DISTINCT - 33 + + 75 AS col0
----
42

query I rowsort
SELECT ALL + 79 + 96 AS col2
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3405
SELECT 31 AS col0, CAST( 57 AS SIGNED )
----
31
57

skipif mysql # not compatible
query II rowsort label-3405
SELECT 31 AS col0, CAST ( 57 AS INTEGER )
----
31
57

query II rowsort
SELECT 25 * - 65 * + 72, + 59 * + 97 AS col1
----
-117000
5723

query I rowsort
SELECT 99 - + - 2 AS col2
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT 44 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT 44 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 15 * ( 10 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT MAX( - - 7 ) + - 39
----
-32

skipif mysql # not compatible
query I rowsort label-3410
SELECT MAX ( - - 7 ) + - 39
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT 34 - ( - MAX( + 84 ) ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-3411
SELECT 34 - ( - MAX ( + 84 ) ) AS col0
----
118

query II rowsort
SELECT ALL 62, + 62
----
62
62

query II rowsort
SELECT ALL 64 col2, + 32
----
64
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT ALL - COUNT( * ) * 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - COUNT ( * ) * 43 AS col0
----
-43

query II rowsort
SELECT ALL 19, - 16 AS col0
----
19
-16

query I rowsort
SELECT DISTINCT - + 56 * - + ( - - 26 )
----
1456

query I rowsort
SELECT + 56 + 6
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT 70 DIV - 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3418
SELECT 70 / - 56 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL - 37 + + MIN( - 77 ) + - 53 col2
----
-167

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - 37 + + MIN ( - 77 ) + - 53 col2
----
-167

onlyif mysql # DIV for integer division: 
query I rowsort label-3420
SELECT DISTINCT 89 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT 89 / - 45
----
-1

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

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

query I rowsort
SELECT DISTINCT 7 * 47 AS col2
----
329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT + + COUNT( * ) / + - CAST( NULL AS SIGNED ) + + + 56 + + CASE 24 WHEN 89 THEN - 37 + - COUNT( * ) + - + CAST( NULL AS SIGNED ) * + CAST( COALESCE ( - - 26, SUM( DISTINCT - + 58 ) * - MAX( DISTINCT - 18 ) * COUNT( * ) * - 76 - 58 + 34 ) AS SIGNED ) + 31 + - COUNT( * ) + 97 * + ( + + 78 ) WHEN + COUNT( * ) * + + ( - ( + - 33 ) ) THEN NULL WHEN - + COUNT( * ) * - + 9 * - + 29 * + + 73 - + + 66 THEN 87 END + NULLIF ( - + 19, - COUNT( * ) * - + COUNT( DISTINCT + 44 ) ) * + 82 * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT + + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) + + + 56 + + CASE 24 WHEN 89 THEN - 37 + - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * + CAST ( COALESCE ( - - 26, SUM ( DISTINCT - + 58 ) * - MAX ( DISTINCT - 18 ) * COUNT ( * ) * - 76 - 58 + 34 ) AS INTEGER ) + 31 + - COUNT ( * ) + 97 * + ( + + 78 ) WHEN + COUNT ( * ) * + + ( - ( + - 33 ) ) THEN NULL WHEN - + COUNT ( * ) * - + 9 * - + 29 * + + 73 - + + 66 THEN 87 END + NULLIF ( - + 19, - COUNT ( * ) * - + COUNT ( DISTINCT + 44 ) ) * + 82 * + 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3424
SELECT 16 * + 50 * - + CASE + 38 WHEN + 79 THEN NULL WHEN + COUNT( * ) THEN - MIN( 39 ) END * + COALESCE ( 56, + 59 ), - COALESCE ( - - 55, - 23 * + 21 DIV + 11 + - 1 DIV + 96 + 54, + 28 * - - 99 + + 2 - + + 82 DIV - + 84 ) * + COUNT( * ) + ( + 7 ) * + 97 + + + 65 + + + 57 * - 10 AS col2
----
NULL
119

skipif mysql # not compatible
query II rowsort label-3424
SELECT 16 * + 50 * - + CASE + 38 WHEN + 79 THEN NULL WHEN + COUNT ( * ) THEN - MIN ( 39 ) END * + COALESCE ( 56, + 59 ), - COALESCE ( - - 55, - 23 * + 21 / + 11 + - 1 / + 96 + 54, + 28 * - - 99 + + 2 - + + 82 / - + 84 ) * + COUNT ( * ) + ( + 7 ) * + 97 + + + 65 + + + 57 * - 10 AS col2
----
NULL
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT 19 + - COALESCE ( - + 16, - COUNT( * ) - + - 82 + - 58, 60 - - 89 )
----
35

skipif mysql # not compatible
query I rowsort label-3425
SELECT 19 + - COALESCE ( - + 16, - COUNT ( * ) - + - 82 + - 58, 60 - - 89 )
----
35

query I rowsort
SELECT ALL 47 + - 34
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT DISTINCT 52 / + 62 - + + 27 * + CASE 63 WHEN + + COUNT( * ) + + - ( - - 22 ) + + - 2 THEN - 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT 52 / + 62 - + + 27 * + CASE 63 WHEN + + COUNT ( * ) + + - ( - - 22 ) + + - 2 THEN - 58 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3428
SELECT ALL - 8 AS col1, NULLIF ( + COUNT( * ), 42 + - CAST( NULL AS SIGNED ) + + + 29 ) + + 56 AS col2
----
-8
57

skipif mysql # not compatible
query II rowsort label-3428
SELECT ALL - 8 AS col1, NULLIF ( + COUNT ( * ), 42 + - CAST ( NULL AS INTEGER ) + + + 29 ) + + 56 AS col2
----
-8
57

query I rowsort
SELECT DISTINCT 28 + 29 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL - COUNT( DISTINCT 27 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL - COUNT ( DISTINCT 27 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL + COUNT( * ) - - + 88 * 55
----
4841

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL + COUNT ( * ) - - + 88 * 55
----
4841

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

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL - MIN ( ALL - 7 )
----
7

query I rowsort
SELECT 34 - 4
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT - CASE WHEN NULL IS NULL THEN COUNT( * ) ELSE NULL END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT - CASE WHEN NULL IS NULL THEN COUNT ( * ) ELSE NULL END AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3435
SELECT 44 - - 26 AS col2, - NULLIF ( + 70, COUNT( * ) + CAST( NULL AS SIGNED ) ) + - 26 AS col2
----
70
-96

skipif mysql # not compatible
query II rowsort label-3435
SELECT 44 - - 26 AS col2, - NULLIF ( + 70, COUNT ( * ) + CAST ( NULL AS INTEGER ) ) + - 26 AS col2
----
70
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT ALL - CAST( + 88 AS SIGNED ) * - 80 * + 74
----
520960

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL - CAST ( + 88 AS INTEGER ) * - 80 * + 74
----
520960

query I rowsort
SELECT 24 * - 3
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3439
SELECT DISTINCT CASE + 54 WHEN + 44 / CAST( - 46 AS SIGNED ) + + + AVG ( + - ( 80 ) ) THEN + - 21 + + - SUM( ALL 4 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT CASE + 54 WHEN + 44 / CAST ( - 46 AS INTEGER ) + + + AVG ( + - ( 80 ) ) THEN + - 21 + + - SUM ( ALL 4 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 44 + 41
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL + 39 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + 39 / 92 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( + 61, - 94 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT - 49 + - + NULLIF ( + + MIN( DISTINCT - ( 0 ) ), + 23 * + 98 )
----
-49

skipif mysql # not compatible
query I rowsort label-3443
SELECT - 49 + - + NULLIF ( + + MIN ( DISTINCT - ( 0 ) ), + 23 * + 98 )
----
-49

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

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

query I rowsort
SELECT - 19 * + 81 * + 71 * - - 58 AS col2
----
-6337602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3446
SELECT ALL + MIN( ALL - + 45 ) DIV COUNT( * ) * CAST( + 27 AS SIGNED ) DIV - 13 + + 85 * + 44 - + + SUM( + + 57 ) + + 35 - - - 75 * COUNT( * ) * + 47 * - + COUNT( * )
----
7336

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL + MIN ( ALL - + 45 ) / COUNT ( * ) * CAST ( + 27 AS INTEGER ) / - 13 + + 85 * + 44 - + + SUM ( + + 57 ) + + 35 - - - 75 * COUNT ( * ) * + 47 * - + COUNT ( * )
----
7336

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

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

query I rowsort
SELECT DISTINCT - 99 * - 92 * 38 AS col2
----
346104

query I rowsort
SELECT ALL + 66 + + 10 * 5 * 65 col1
----
3316

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL - + MIN( + 83 ) + + 95 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - + MIN ( + 83 ) + + 95 AS col2
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL SUM( DISTINCT + 56 ) + - - 2 * - - ( + 69 ) AS col1
----
194

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL SUM ( DISTINCT + 56 ) + - - 2 * - - ( + 69 ) AS col1
----
194

query I rowsort
SELECT ALL - COALESCE ( + - 54, - 46 ) + + - 55 - - - 32
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3454
SELECT - MAX( ALL - - 66 ) DIV + 76 + 36 + + MIN( - 73 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3454
SELECT - MAX ( ALL - - 66 ) / + 76 + 36 + + MIN ( - 73 ) AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT DISTINCT 36 * NULLIF ( + 62, + - 62 ) + + 36 DIV 45 + + MIN( - ( - 21 ) ) + + 71 - - 65 * - 53 AS col0
----
-1121

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT 36 * NULLIF ( + 62, + - 62 ) + + 36 / 45 + + MIN ( - ( - 21 ) ) + + 71 - - 65 * - 53 AS col0
----
-1121

query I rowsort
SELECT ALL 74 * + + 60 - - 68 * - 68 * - 33 + + - NULLIF ( + + 13, + + 85 - - 1 * 71 + 99 * + 41 + - 63 ) * + 97 * 65 AS col1
----
75067

query I rowsort
SELECT - 95 * 87 * + ( + - 59 ) + 75
----
487710

query I rowsort
SELECT - - 34 * - + 59 + 9
----
-1997

query I rowsort
SELECT DISTINCT + 72 * 95 - + 60
----
6780

query I rowsort
SELECT ALL 3 * + - 94 - - NULLIF ( + 9, 12 )
----
-273

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

query I rowsort
SELECT ALL - 18 * 37 * - 50 - - + 48 AS col2
----
33348

query I rowsort
SELECT + 10 * 78 AS col2
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3464
SELECT ALL COALESCE ( COUNT( * ), + + 98 DIV + + ( + 80 ) ) * - 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL COALESCE ( COUNT ( * ), + + 98 / + + ( + 80 ) ) * - 98 AS col1
----
-98

query I rowsort
SELECT - 40 * - 8 + - 73 + 32
----
279

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

skipif mysql # not compatible
query I rowsort label-3466
SELECT + 39 * CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL - 41 * 61 - 58 AS col0
----
-2559

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT + 92 DIV - 25 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3469
SELECT + 92 / - 25 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT - COUNT( * ) * + 73 * 45 col0
----
-3285

skipif mysql # not compatible
query I rowsort label-3470
SELECT - COUNT ( * ) * + 73 * 45 col0
----
-3285

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

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

query I rowsort
SELECT + 49 * 75 col1
----
3675

query I rowsort
SELECT + 8 + 62
----
70

query I rowsort
SELECT - 31 + 0 * + - ( 87 )
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-3475
SELECT DISTINCT - 8 + 0 DIV - + 66 col1, + 9 + - 73
----
-8
-64

skipif mysql # not compatible
query II rowsort label-3475
SELECT DISTINCT - 8 + 0 / - + 66 col1, + 9 + - 73
----
-8
-64

query I rowsort
SELECT ALL + 54 * + 8 AS col0
----
432

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT + 22 * + + 27 + 53 * - + 14 + - 57 DIV 22 * - - 80 * 74 * 24
----
-284308

skipif mysql # not compatible
query I rowsort label-3477
SELECT + 22 * + + 27 + 53 * - + 14 + - 57 / 22 * - - 80 * 74 * 24
----
-284308

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

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

query I rowsort
SELECT DISTINCT 39 + ( + + 50 ) col1
----
89

query I rowsort
SELECT DISTINCT - ( 74 ) AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3481
SELECT + + COUNT( * ) DIV - COALESCE ( + 19, + 32 + + 62 * + + 29 DIV - 11 * + 95, + + 21 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3481
SELECT + + COUNT ( * ) / - COALESCE ( + 19, + 32 + + 62 * + + 29 / - 11 * + 95, + + 21 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT - + 24 * + CAST( + - 76 AS SIGNED ) AS col1
----
1824

skipif mysql # not compatible
query I rowsort label-3482
SELECT - + 24 * + CAST ( + - 76 AS INTEGER ) AS col1
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT - MAX( - - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-3483
SELECT - MAX ( - - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT - - 49 * MAX( - 33 )
----
-1617

skipif mysql # not compatible
query I rowsort label-3484
SELECT - - 49 * MAX ( - 33 )
----
-1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3485
SELECT ALL - 43 + - ( - CASE + + 11 WHEN - COUNT( * ) THEN + 26 ELSE NULL END ) + + + 54 + - 18 + - - 21 * ( 90 ) * CASE - - 77 WHEN - MAX( DISTINCT - 91 ) THEN NULL WHEN 64 + CASE + + COUNT( ALL - 47 ) WHEN 20 THEN + COUNT( * ) END THEN + - 78 END + - - COUNT( * ), 0 + 5 + - + 66 DIV + - 20 AS col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-3485
SELECT ALL - 43 + - ( - CASE + + 11 WHEN - COUNT ( * ) THEN + 26 ELSE NULL END ) + + + 54 + - 18 + - - 21 * ( 90 ) * CASE - - 77 WHEN - MAX ( DISTINCT - 91 ) THEN NULL WHEN 64 + CASE + + COUNT ( ALL - 47 ) WHEN 20 THEN + COUNT ( * ) END THEN + - 78 END + - - COUNT ( * ), 0 + 5 + - + 66 / + - 20 AS col0
----
NULL
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3486
SELECT ALL - - 72 DIV - + 84 + + + COUNT( * ) * + + 63 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL - - 72 / - + 84 + + + COUNT ( * ) * + + 63 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT + MIN( DISTINCT + + ( 27 ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3487
SELECT + MIN ( DISTINCT + + ( 27 ) ) AS col2
----
27

query I rowsort
SELECT - - ( 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - 85 - + MIN( - 43 ) + + ( + + SUM( DISTINCT - - 40 ) ) * + + 34 + - - COUNT( * ) * - COUNT( * )
----
1317

skipif mysql # not compatible
query I rowsort label-3489
SELECT - 85 - + MIN ( - 43 ) + + ( + + SUM ( DISTINCT - - 40 ) ) * + + 34 + - - COUNT ( * ) * - COUNT ( * )
----
1317

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT - 52 * 60 * - COALESCE ( + 7, COUNT( * ) )
----
21840

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT - 52 * 60 * - COALESCE ( + 7, COUNT ( * ) )
----
21840

query I rowsort
SELECT ALL + 94 * + - 87 AS col1
----
-8178

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - 99 * + MIN( ALL 64 ) + + + 92 * + 13 * + + 59 * 46 + - + MIN( ALL + - 25 )
----
3239633

skipif mysql # not compatible
query I rowsort label-3492
SELECT - 99 * + MIN ( ALL 64 ) + + + 92 * + 13 * + + 59 * 46 + - + MIN ( ALL + - 25 )
----
3239633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3493
SELECT ALL + COUNT( + - 38 ) DIV - 84 - 62 * + 75 + + 57 + CAST( + 28 AS SIGNED ) DIV + 46
----
-4593

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL + COUNT ( + - 38 ) / - 84 - 62 * + 75 + + 57 + CAST ( + 28 AS INTEGER ) / + 46
----
-4593

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

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

query I rowsort
SELECT DISTINCT - 61 * - 97 AS col2
----
5917

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + - 77 / - - CASE COUNT( * ) WHEN COALESCE ( 78, + 89 ) THEN - + 51 ELSE NULL END - + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + - 77 / - - CASE COUNT ( * ) WHEN COALESCE ( 78, + 89 ) THEN - + 51 ELSE NULL END - + 73 AS col2
----
NULL

query I rowsort
SELECT ALL + 20 * + 76 AS col1
----
1520

query I rowsort
SELECT - 52 * 67 AS col1
----
-3484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT 20 * - + 55 * - 37 * - 95 * + - CAST( 89 AS SIGNED ) + 4
----
344118504

skipif mysql # not compatible
query I rowsort label-3499
SELECT 20 * - + 55 * - 37 * - 95 * + - CAST ( 89 AS INTEGER ) + 4
----
344118504

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

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

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

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

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

query I rowsort
SELECT - 16 * + 0 AS col2
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT - MAX( 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - MAX ( 97 )
----
-97

query I rowsort
SELECT 57 * - 22 + - 69 + 63 + ( - - 62 )
----
-1198

onlyif mysql # aggregate syntax: 
query II rowsort label-3508
SELECT ALL - 14 AS col2, 46 * - 14 * ( + - 0 ) * - + COUNT( * ) * + 45
----
-14
0

skipif mysql # not compatible
query II rowsort label-3508
SELECT ALL - 14 AS col2, 46 * - 14 * ( + - 0 ) * - + COUNT ( * ) * + 45
----
-14
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL - ( 65 ) + - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL - ( 65 ) + - COUNT ( * )
----
-66

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

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL 26 + COUNT ( * ) AS col1
----
27

query I rowsort
SELECT 24 + + 68 AS col1
----
92

query I rowsort
SELECT 30 * - 98 AS col0
----
-2940

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT CASE - + 96 WHEN + 45 THEN - + COUNT( * ) * NULLIF ( 85, 69 ) + + 39 + - 53 - - + 94 + COUNT( * ) * - 35 WHEN - 19 * + 14 THEN NULL ELSE COUNT( * ) * + 80 - 86 END + + 76 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3514
SELECT CASE - + 96 WHEN + 45 THEN - + COUNT ( * ) * NULLIF ( 85, 69 ) + + 39 + - 53 - - + 94 + COUNT ( * ) * - 35 WHEN - 19 * + 14 THEN NULL ELSE COUNT ( * ) * + 80 - 86 END + + 76 AS col1
----
70

query I rowsort
SELECT ALL 20 * + + 13
----
260

query I rowsort
SELECT 43 * + 32 AS col2
----
1376

onlyif mysql # DIV for integer division: 
query II rowsort label-3517
SELECT ALL - 14 AS col1, 64 DIV - 97 * - 55 AS col2
----
-14
0

skipif mysql # not compatible
query II rowsort label-3517
SELECT ALL - 14 AS col1, 64 / - 97 * - 55 AS col2
----
-14
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT DISTINCT 64, MAX( + + 70 ) AS col0
----
64
70

skipif mysql # not compatible
query II rowsort label-3518
SELECT DISTINCT 64, MAX ( + + 70 ) AS col0
----
64
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT - 40 + - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT - 40 + - COUNT ( * ) AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3520
SELECT ALL 84 + + - 18 DIV - - 72 * - CAST( - + 84 AS SIGNED ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL 84 + + - 18 / - - 72 * - CAST ( - + 84 AS INTEGER ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT 7 * + 15 * + ( + 97 ) * - NULLIF ( + COUNT( * ), + - 57 ) col1
----
-10185

skipif mysql # not compatible
query I rowsort label-3521
SELECT 7 * + 15 * + ( + 97 ) * - NULLIF ( + COUNT ( * ), + - 57 ) col1
----
-10185

query I rowsort
SELECT DISTINCT ( - 27 ) col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT - 72 + - + CAST( NULLIF ( 60, 96 + - - 99 ) AS SIGNED ) + + 94 + + 40
----
2

skipif mysql # not compatible
query I rowsort label-3523
SELECT - 72 + - + CAST ( NULLIF ( 60, 96 + - - 99 ) AS INTEGER ) + + 94 + + 40
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3524
SELECT ALL 39 AS col0, 63 * + COUNT( 7 )
----
39
63

skipif mysql # not compatible
query II rowsort label-3524
SELECT ALL 39 AS col0, 63 * + COUNT ( 7 )
----
39
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3525
SELECT - 1, ( + - 59 ) * + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + - CASE - - ( NULLIF ( CAST( - 83 AS DECIMAL ), - 49 ) ) WHEN + SUM( DISTINCT + 18 ) THEN NULL WHEN + 26 THEN NULL WHEN + COUNT( * ) + - SUM( ALL 27 ) THEN - 52 * 1 END * - 59 col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3525
SELECT - 1, ( + - 59 ) * + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - CASE - - ( NULLIF ( CAST ( - 83 AS REAL ), - 49 ) ) WHEN + SUM ( DISTINCT + 18 ) THEN NULL WHEN + 26 THEN NULL WHEN + COUNT ( * ) + - SUM ( ALL 27 ) THEN - 52 * 1 END * - 59 col1
----
-1
NULL

query I rowsort
SELECT + 34 + - 13 * + 54 * 40 + + 31 * + - 31 AS col1
----
-29007

query I rowsort
SELECT DISTINCT 73 + - 82 - - 6 * + + 67 * 81 AS col0
----
32553

query I rowsort
SELECT ALL + 89 * + 36 * + 42 AS col0
----
134568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT + ( + CAST( NULL AS SIGNED ) ) + - - 9 * + ( + ( + - 38 ) ) - AVG ( ALL 90 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT + ( + CAST ( NULL AS INTEGER ) ) + - - 9 * + ( + ( + - 38 ) ) - AVG ( ALL 90 ) AS col1
----
NULL

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

query II rowsort
SELECT ALL + 81 AS col0, - 58 col0
----
81
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT DISTINCT + COUNT( * ) - + 48 + + 90 - - 25 + + + ( + 68 ) / CAST( NULL AS SIGNED ) / + SUM( DISTINCT + - 17 ) - NULLIF ( + 35, - 39 / 70 ) * ( + 48 ) * 10 * 77 + - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT + COUNT ( * ) - + 48 + + 90 - - 25 + + + ( + 68 ) / CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT + - 17 ) - NULLIF ( + 35, - 39 / 70 ) * ( + 48 ) * 10 * 77 + - 85 AS col1
----
NULL

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

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

query I rowsort
SELECT - 83 + - + 76 AS col1
----
-159

query I rowsort
SELECT ALL - 12 - + 44 - - 20 * + + 84 * - 48 AS col1
----
-80696

onlyif mysql # aggregate syntax: 
query II rowsort label-3536
SELECT ALL 35 AS col1, + COUNT( DISTINCT - 90 ) * 44 AS col0
----
35
44

skipif mysql # not compatible
query II rowsort label-3536
SELECT ALL 35 AS col1, + COUNT ( DISTINCT - 90 ) * 44 AS col0
----
35
44

query I rowsort
SELECT DISTINCT + CASE + 37 WHEN + - 83 THEN + + 35 + - 9 / - 28 + - + 44 END * - 12
----
NULL

query I rowsort
SELECT ALL + - 6 - - + 99
----
93

query I rowsort
SELECT 94 + - 4 col2
----
90

query I rowsort
SELECT ALL NULLIF ( - 81, 98 ) col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT COUNT( * ) + - 60 - - 51 * - + 65 * - - 30 + + + 15 col2, + 69
----
-99494
69

skipif mysql # not compatible
query II rowsort label-3541
SELECT COUNT ( * ) + - 60 - - 51 * - + 65 * - - 30 + + + 15 col2, + 69
----
-99494
69

query II rowsort
SELECT 57 AS col2, CASE - 59 WHEN - 89 THEN NULL WHEN - - 34 THEN + 99 END
----
57
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT - 95 DIV + - 93 + + + 83 * - - 41 AS col1
----
3404

skipif mysql # not compatible
query I rowsort label-3543
SELECT - 95 / + - 93 + + + 83 * - - 41 AS col1
----
3404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3544
SELECT ALL - ( COUNT( * ) ) DIV - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL - ( COUNT ( * ) ) / - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 9 * - 67 * - ( - 70 ) AS col1
----
-42210

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3546
SELECT 44 + CAST( NULL AS DECIMAL ) col1, + 71 AS col2
----
NULL
71

skipif mysql # not compatible
query II rowsort label-3546
SELECT 44 + CAST ( NULL AS REAL ) col1, + 71 AS col2
----
NULL
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3547
SELECT 15 DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3547
SELECT 15 / + 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3548
SELECT DISTINCT - 43 * + - 68, COUNT( * ) * 15 * + 32 * COUNT( * ) AS col1
----
2924
480

skipif mysql # not compatible
query II rowsort label-3548
SELECT DISTINCT - 43 * + - 68, COUNT ( * ) * 15 * + 32 * COUNT ( * ) AS col1
----
2924
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3549
SELECT DISTINCT 39 DIV + MAX( CAST( + 78 AS SIGNED ) ) * - + 16 * + NULLIF ( + 94, 51 )
----
0

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT 39 / + MAX ( CAST ( + 78 AS INTEGER ) ) * - + 16 * + NULLIF ( + 94, 51 )
----
0

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

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

query I rowsort
SELECT ALL - CASE + 57 WHEN + 92 THEN NULL WHEN + + 13 THEN - 21 WHEN 69 THEN NULL END / - - 77
----
NULL

query II rowsort
SELECT ALL + 53 * - 73, 78 col1
----
-3869
78

query I rowsort
SELECT DISTINCT + ( 23 ) + - + ( - 79 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL - 26 + + SUM( - 68 ) + + 38 * - - 54 - + COUNT( * )
----
1957

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - 26 + + SUM ( - 68 ) + + 38 * - - 54 - + COUNT ( * )
----
1957

query I rowsort
SELECT 33 * - 54
----
-1782

query I rowsort
SELECT DISTINCT + 8 + - + 55 * + 99 AS col2
----
-5437

query I rowsort
SELECT ALL 49 + + 22 + 59 * + 31 AS col2
----
1900

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT DISTINCT + + 43 + - + 44 DIV + 53
----
43

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT + + 43 + - + 44 / + 53
----
43

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

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

query I rowsort
SELECT - COALESCE ( + + 74, + 88, - + 88 )
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT - 4 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-3561
SELECT - 4 / - 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + - 96 * COUNT( * ) * + 82 + - + 73 AS col0
----
-7945

skipif mysql # not compatible
query I rowsort label-3562
SELECT + - 96 * COUNT ( * ) * + 82 + - + 73 AS col0
----
-7945

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT - COUNT( DISTINCT 63 ) + + 65
----
64

skipif mysql # not compatible
query I rowsort label-3564
SELECT - COUNT ( DISTINCT 63 ) + + 65
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT DISTINCT 57 - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT 57 - - COUNT ( * )
----
58

query I rowsort
SELECT DISTINCT - 60 * 16 AS col2
----
-960

query I rowsort
SELECT + 6 * + 35 * 86 AS col1
----
18060

query I rowsort
SELECT DISTINCT ( ( + 5 ) ) col1
----
5

query I rowsort
SELECT DISTINCT - 74 * - 89
----
6586

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - 58 * - + ( - 8 ) + - COUNT( * )
----
-465

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - 58 * - + ( - 8 ) + - COUNT ( * )
----
-465

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT - - SUM( + 50 ) AS col2, + ( + COUNT( * ) ) * - 7 AS col2
----
50
-7

skipif mysql # not compatible
query II rowsort label-3571
SELECT - - SUM ( + 50 ) AS col2, + ( + COUNT ( * ) ) * - 7 AS col2
----
50
-7

query I rowsort
SELECT - + 16 col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3573
SELECT 49 - - 53 AS col2, + CAST( NULL AS SIGNED )
----
102
NULL

skipif mysql # not compatible
query II rowsort label-3573
SELECT 49 - - 53 AS col2, + CAST ( NULL AS INTEGER )
----
102
NULL

query II rowsort
SELECT 8 * 73, 34 - 11 col1
----
584
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL COUNT( ALL 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL COUNT ( ALL 46 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 84 * - ( + 41 ) + - 32 col1
----
-3476

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + 75 * - 21 * + COALESCE ( + 61, - COUNT( - 75 ) )
----
-96075

skipif mysql # not compatible
query I rowsort label-3577
SELECT + 75 * - 21 * + COALESCE ( + 61, - COUNT ( - 75 ) )
----
-96075

query I rowsort
SELECT ALL 87 * - 93
----
-8091

query I rowsort
SELECT ALL 98 * + + 63
----
6174

query II rowsort
SELECT ALL 76 AS col1, + ( 88 ) AS col2
----
76
88

query I rowsort
SELECT + CASE - - 63 WHEN 98 THEN 54 ELSE + 80 * + 65 END AS col2
----
5200

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + COALESCE ( + - COUNT( * ), 13, - 72 - - + 7 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + COALESCE ( + - COUNT ( * ), 13, - 72 - - + 7 ) AS col2
----
-1

query I rowsort
SELECT + 35 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT COALESCE ( - + COUNT( * ), 13 * + ( - 57 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3584
SELECT COALESCE ( - + COUNT ( * ), 13 * + ( - 57 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL - CAST( NULL AS SIGNED ) * ( + NULLIF ( - 35, - 28 / + 10 * + 87 * 80 + + 16 + + 6 + ( - 7 ) + 35 ) ) * + 7 + 9 + + 10 - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + NULLIF ( - 35, - 28 / + 10 * + 87 * 80 + + 16 + + 6 + ( - 7 ) + 35 ) ) * + 7 + 9 + + 10 - 16 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT - 2 * + 81 + + - 68 DIV + 99
----
-162

skipif mysql # not compatible
query I rowsort label-3586
SELECT - 2 * + 81 + + - 68 / + 99
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT COALESCE ( - + 16, + COUNT( + 55 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-3587
SELECT COALESCE ( - + 16, + COUNT ( + 55 ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL + MIN( ALL + 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL + MIN ( ALL + 69 ) AS col0
----
69

query I rowsort
SELECT 94 / NULLIF ( + + CASE 65 WHEN + 37 THEN - 4 END, 90 ) + - ( + - 97 ) / + 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT 58 * 78 - ( + ( + ( - COUNT( * ) ) ) )
----
4525

skipif mysql # not compatible
query I rowsort label-3590
SELECT 58 * 78 - ( + ( + ( - COUNT ( * ) ) ) )
----
4525

query I rowsort
SELECT + NULLIF ( - 25, + 86 * - 80 ) AS col1
----
-25

query II rowsort
SELECT + 99 col0, - ( - 31 ) * - - 64 * 80 * ( - 33 )
----
99
-5237760

query I rowsort
SELECT + NULLIF ( 5, - CASE + 95 WHEN - 6 THEN NULL WHEN ( - + 82 ) + - 25 * - 10 THEN - 1 END )
----
5

query I rowsort
SELECT + 61 + + - 96 AS col1
----
-35

query I rowsort
SELECT ALL ( 98 ) * - - 53 + 16 + + + ( 20 ) + 24 AS col2
----
5254

query I rowsort
SELECT ALL - 22 * - - 94 AS col1
----
-2068

query I rowsort
SELECT + 70 * - 46 + + - 51 + - 50 AS col2
----
-3321

query I rowsort
SELECT DISTINCT + COALESCE ( 16, - 91 ) AS col0
----
16

query I rowsort
SELECT + 93 * 73
----
6789

query I rowsort
SELECT - 63 * 97
----
-6111

query I rowsort
SELECT ALL - 22 * 37 col1
----
-814

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

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

query I rowsort
SELECT - 76 + - - 47
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3604
SELECT ALL + - NULLIF ( - 73, - CAST( 30 AS DECIMAL ) / 20 )
----
73

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + - NULLIF ( - 73, - CAST ( 30 AS REAL ) / 20 )
----
73

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

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

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

query I rowsort
SELECT - - 67 * - 68 + + 85 + - 86 * + + 95
----
-12641

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

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

query I rowsort
SELECT ALL ( - 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT - - 76 + + - MAX( + 50 ), - 91 * - 69 + + 72 AS col2
----
26
6351

skipif mysql # not compatible
query II rowsort label-3610
SELECT - - 76 + + - MAX ( + 50 ), - 91 * - 69 + + 72 AS col2
----
26
6351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT DISTINCT 91 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT 91 - - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

query I rowsort
SELECT - 18 + + 13 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3615
SELECT + CASE - 75 WHEN 72 THEN NULL ELSE - + 79 END DIV 40 DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3615
SELECT + CASE - 75 WHEN 72 THEN NULL ELSE - + 79 END / 40 / - COUNT ( * )
----
1

query I rowsort
SELECT + 1 - - + 90 - + - 67 AS col1
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-3617
SELECT ALL + 67 col2, NULLIF ( + COUNT( * ), COUNT( * ) ) + - 93
----
67
NULL

skipif mysql # not compatible
query II rowsort label-3617
SELECT ALL + 67 col2, NULLIF ( + COUNT ( * ), COUNT ( * ) ) + - 93
----
67
NULL

query II rowsort
SELECT 55 AS col1, - 99 + 73
----
55
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT - 93 + + 21 DIV + - ( + - 71 )
----
-93

skipif mysql # not compatible
query I rowsort label-3619
SELECT - 93 + + 21 / + - ( + - 71 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL - SUM( ALL 54 ) * + - 44
----
2376

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - SUM ( ALL 54 ) * + - 44
----
2376

query I rowsort
SELECT DISTINCT + 43 + - 35
----
8

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

query I rowsort
SELECT - 33 * 98 AS col1
----
-3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3624
SELECT ALL 67 DIV ( 15 ) * + + COUNT( * ) + - 84, COUNT( * ) AS col1
----
-80
1

skipif mysql # not compatible
query II rowsort label-3624
SELECT ALL 67 / ( 15 ) * + + COUNT ( * ) + - 84, COUNT ( * ) AS col1
----
-80
1

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

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

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

skipif mysql # not compatible
query I rowsort label-3626
SELECT + COUNT ( * ) - - 31 + - 85 AS col1
----
-53

query I rowsort
SELECT - ( 49 ) * + - 89 * + + 62
----
270382

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

skipif mysql # not compatible
query I rowsort label-3628
SELECT + MAX ( ALL CAST ( - 83 AS INTEGER ) ) AS col2
----
-83

query I rowsort
SELECT DISTINCT + ( + 9 ) AS col0
----
9

query I rowsort
SELECT ALL - 59 * - 45 - 85 AS col1
----
2570

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3631
SELECT + + 96 DIV 75 * COALESCE ( - 20, - + 82 * + CAST( NULL AS SIGNED ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-3631
SELECT + + 96 / 75 * COALESCE ( - 20, - + 82 * + CAST ( NULL AS INTEGER ) ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT - 49 * - ( 23 ) * COUNT( * ) * - 80
----
-90160

skipif mysql # not compatible
query I rowsort label-3632
SELECT - 49 * - ( 23 ) * COUNT ( * ) * - 80
----
-90160

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT DISTINCT + - 71 * - 36, 61 + COUNT( * ) col2
----
2556
62

skipif mysql # not compatible
query II rowsort label-3633
SELECT DISTINCT + - 71 * - 36, 61 + COUNT ( * ) col2
----
2556
62

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

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

query I rowsort
SELECT + 7 + - 76
----
-69

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT - + ( - NULLIF ( 92, + CASE - + 20 WHEN - + 55 * + - 57 THEN + 52 / ( + 18 ) WHEN + 75 THEN - - 50 * CASE + 0 WHEN - - 44 THEN NULL ELSE ( CAST( - - 40 AS SIGNED ) ) + + AVG ( 23 ) + - 13 + 85 END * - 90 + + 77 WHEN - - COALESCE ( - MAX( + 7 ), 48 - - + 83 ) THEN NULL WHEN 33 * - SUM( + 19 ) THEN - 0 ELSE - 64 END ) ) + + COUNT( * ) col1
----
93

skipif mysql # not compatible
query I rowsort label-3637
SELECT - + ( - NULLIF ( 92, + CASE - + 20 WHEN - + 55 * + - 57 THEN + 52 / ( + 18 ) WHEN + 75 THEN - - 50 * CASE + 0 WHEN - - 44 THEN NULL ELSE ( CAST ( - - 40 AS INTEGER ) ) + + AVG ( 23 ) + - 13 + 85 END * - 90 + + 77 WHEN - - COALESCE ( - MAX ( + 7 ), 48 - - + 83 ) THEN NULL WHEN 33 * - SUM ( + 19 ) THEN - 0 ELSE - 64 END ) ) + + COUNT ( * ) col1
----
93

query I rowsort
SELECT ALL + 14 + + - ( - - 49 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT COALESCE ( + MIN( - 95 ), - 45 )
----
-95

skipif mysql # not compatible
query I rowsort label-3639
SELECT COALESCE ( + MIN ( - 95 ), - 45 )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT ALL + NULLIF ( - 28, - 27 - + 45 * + 34 ) + - ( ( - 24 ) ) - + CAST( NULL AS SIGNED ) / + 22 * - 79 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + NULLIF ( - 28, - 27 - + 45 * + 34 ) + - ( ( - 24 ) ) - + CAST ( NULL AS INTEGER ) / + 22 * - 79 * 45
----
NULL

query I rowsort
SELECT - 66 * + 75
----
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3642
SELECT ALL + 23 + + 59, + CAST( - - 10 AS SIGNED ) * 80 - + + 68 AS col2
----
82
732

skipif mysql # not compatible
query II rowsort label-3642
SELECT ALL + 23 + + 59, + CAST ( - - 10 AS INTEGER ) * 80 - + + 68 AS col2
----
82
732

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

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

query I rowsort
SELECT DISTINCT + 39 + NULLIF ( 48, - - 48 ) + - - 27 AS col1
----
NULL

query I rowsort
SELECT 24 - + - 87
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3646
SELECT DISTINCT + COALESCE ( 22, + COUNT( * ) - + 35 + + CASE - + 50 WHEN COUNT( * ) THEN NULL WHEN + 41 + 93 + - 91 + - 46 + - ( - CAST( + - 29 AS SIGNED ) ) + - + 23 * - ( + COUNT( * ) ) * + ( - 66 ) - + COUNT( * ) + + 54 + 63 * 65 DIV 23 THEN - ( - 78 ) DIV - 28 DIV + 22 ELSE - ( + 61 ) * - 73 + - 1 * - 10 + COALESCE ( 49, + - 56 DIV + - 14 DIV - - 71 + COUNT( * ) ) - - 92 END ) * - 25 * - + 61
----
33550

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT + COALESCE ( 22, + COUNT ( * ) - + 35 + + CASE - + 50 WHEN COUNT ( * ) THEN NULL WHEN + 41 + 93 + - 91 + - 46 + - ( - CAST ( + - 29 AS INTEGER ) ) + - + 23 * - ( + COUNT ( * ) ) * + ( - 66 ) - + COUNT ( * ) + + 54 + 63 * 65 / 23 THEN - ( - 78 ) / - 28 / + 22 ELSE - ( + 61 ) * - 73 + - 1 * - 10 + COALESCE ( 49, + - 56 / + - 14 / - - 71 + COUNT ( * ) ) - - 92 END ) * - 25 * - + 61
----
33550

query II rowsort
SELECT ALL 30 AS col1, - 40
----
30
-40

query I rowsort
SELECT DISTINCT + 12 + + - 9 + + + 83 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT COUNT( * ) * - 91 col0
----
-91

skipif mysql # not compatible
query I rowsort label-3649
SELECT COUNT ( * ) * - 91 col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT DISTINCT + 22 * - 93 * 62 * + + COUNT( * )
----
-126852

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT + 22 * - 93 * 62 * + + COUNT ( * )
----
-126852

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT 59 - + + 60 DIV + - 39 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3651
SELECT 59 - + + 60 / + - 39 AS col0
----
60

query II rowsort
SELECT ALL + COALESCE ( - - 12, - 68, - 63 ) * 87 col0, 36 + + 96
----
1044
132

query I rowsort
SELECT DISTINCT - 49 * + 95
----
-4655

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

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT 85 / + COUNT ( * )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT DISTINCT - COALESCE ( - - 70, - 16 DIV + + 63 )
----
-70

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT - COALESCE ( - - 70, - 16 / + + 63 )
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT + ( - 73 ) DIV + + 34 + + 39 col1
----
37

skipif mysql # not compatible
query I rowsort label-3656
SELECT + ( - 73 ) / + + 34 + + 39 col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT - 74 * + CASE + - 78 WHEN COUNT( * ) * - - 82 + - 77 THEN - 87 / + 19 * - NULLIF ( - 15, - + 10 * - COALESCE ( COUNT( * ), - 99, - 18 * - + 23 * + ( - COALESCE ( + + 21, - 8 * 74 ) ) ) ) END * - 88 + 39 / - - 71 - + - 64 - - + 12 * + 33 + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT - 74 * + CASE + - 78 WHEN COUNT ( * ) * - - 82 + - 77 THEN - 87 / + 19 * - NULLIF ( - 15, - + 10 * - COALESCE ( COUNT ( * ), - 99, - 18 * - + 23 * + ( - COALESCE ( + + 21, - 8 * 74 ) ) ) ) END * - 88 + 39 / - - 71 - + - 64 - - + 12 * + 33 + + 24
----
NULL

query I rowsort
SELECT 77 + - ( - 27 ) AS col2
----
104

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

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

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

query I rowsort
SELECT DISTINCT 89 * + 90
----
8010

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT - 23 DIV - 2 + 7 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3662
SELECT - 23 / - 2 + 7 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL COUNT( * ) * - 8 col1
----
-8

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL COUNT ( * ) * - 8 col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3664
SELECT CAST( NULL AS SIGNED ) / - SUM( ALL + 78 )
----
NULL

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

query I rowsort
SELECT DISTINCT ( 54 ) + 5
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT CAST( NULL AS SIGNED ) / + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT CAST ( NULL AS INTEGER ) / + 24 AS col2
----
NULL

query I rowsort
SELECT 44 * 66 AS col2
----
2904

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL SUM( DISTINCT 29 ) + - 47
----
-18

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL SUM ( DISTINCT 29 ) + - 47
----
-18

query I rowsort
SELECT DISTINCT 40 + 25 * 81 AS col2
----
2065

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * ( + 5 - - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * ( + 5 - - 24 )
----
NULL

query I rowsort
SELECT ALL 75 + 52 AS col2
----
127

query I rowsort
SELECT DISTINCT - 80 + + 53
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL + 25 + + 39 * COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + 25 + + 39 * COUNT ( * )
----
64

query I rowsort
SELECT ALL 28 * + 47
----
1316

query I rowsort
SELECT 24 + - 97 AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3677
SELECT 60 - - CAST( - 85 AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3677
SELECT 60 - - CAST ( - 85 AS INTEGER ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL + 35 * + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + 35 * + COUNT ( * )
----
35

query I rowsort
SELECT ( - 2 ) + 25 AS col2
----
23

query I rowsort
SELECT ALL + 26 + + 88
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT 79 + - 38 DIV 96 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3681
SELECT 79 + - 38 / 96 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL - 62 - COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - 62 - COUNT ( * ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3683
SELECT 49 + MAX( ALL 56 + CASE 56 WHEN CAST( NULL AS SIGNED ) THEN + COALESCE ( + 65, + ( - 48 ), 32, 37 ) DIV + 6 WHEN 43 THEN NULL ELSE 73 DIV + 21 END * + 10 ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-3683
SELECT 49 + MAX ( ALL 56 + CASE 56 WHEN CAST ( NULL AS INTEGER ) THEN + COALESCE ( + 65, + ( - 48 ), 32, 37 ) / + 6 WHEN 43 THEN NULL ELSE 73 / + 21 END * + 10 ) AS col2
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT ALL CAST( - 21 AS SIGNED ) * NULLIF ( + 6, + 87 / 90 + + 73 )
----
-126

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL CAST ( - 21 AS INTEGER ) * NULLIF ( + 6, + 87 / 90 + + 73 )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT 59 + COUNT( * ) * 65
----
124

skipif mysql # not compatible
query I rowsort label-3685
SELECT 59 + COUNT ( * ) * 65
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3686
SELECT DISTINCT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT 69 + + 9 * COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3687
SELECT 69 + + 9 * COUNT ( * )
----
78

query I rowsort
SELECT ALL - 63 - - 27 * - 10 AS col1
----
-333

query I rowsort
SELECT 78 + + 6
----
84

query I rowsort
SELECT ALL + 63 - - 87 col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT MIN( 66 ) * 11
----
726

skipif mysql # not compatible
query I rowsort label-3691
SELECT MIN ( 66 ) * 11
----
726

query I rowsort
SELECT 94 + + 15
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL - SUM( 60 ) * NULLIF ( + 61 + - 76, COUNT( * ) ) AS col1
----
900

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - SUM ( 60 ) * NULLIF ( + 61 + - 76, COUNT ( * ) ) AS col1
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL - 64 * MAX( 22 ) AS col1
----
-1408

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL - 64 * MAX ( 22 ) AS col1
----
-1408

query I rowsort
SELECT 74 * 53
----
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - COUNT( * ) * + 42 + + 90 col1
----
48

skipif mysql # not compatible
query I rowsort label-3696
SELECT - COUNT ( * ) * + 42 + + 90 col1
----
48

query I rowsort
SELECT ALL - ( 33 ) AS col0
----
-33

query I rowsort
SELECT DISTINCT - 46 * - 2 AS col1
----
92

query I rowsort
SELECT 87 * 20 col1
----
1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT ALL - 91 * - CAST( + ( 26 ) AS SIGNED ) AS col0
----
2366

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - 91 * - CAST ( + ( 26 ) AS INTEGER ) AS col0
----
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL - NULLIF ( + 32, COUNT( * ) - 34 * 80 ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL - NULLIF ( + 32, COUNT ( * ) - 34 * 80 ) col2
----
-32

query I rowsort
SELECT DISTINCT - + COALESCE ( + 5, 60 * 67 ) * 51
----
-255

query I rowsort
SELECT ALL + 99 * 87
----
8613

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT AVG ( ALL - 66 ) * - CASE 49 - 74 WHEN - COUNT( * ) THEN MIN( DISTINCT - 89 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT AVG ( ALL - 66 ) * - CASE 49 - 74 WHEN - COUNT ( * ) THEN MIN ( DISTINCT - 89 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT + 23 * CASE + 99 * COUNT( * ) WHEN 3 THEN + 94 + 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT + 23 * CASE + 99 * COUNT ( * ) WHEN 3 THEN + 94 + 10 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + 45 * - COUNT( DISTINCT - 58 * 85 ) - - 38
----
-7

skipif mysql # not compatible
query I rowsort label-3706
SELECT + 45 * - COUNT ( DISTINCT - 58 * 85 ) - - 38
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL - COUNT( * ) * + 7 + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - COUNT ( * ) * + 7 + + COUNT ( * )
----
-6

query I rowsort
SELECT 39 - 26 * - 46
----
1235

query I rowsort
SELECT 70 * - 16 AS col1
----
-1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3710
SELECT DISTINCT - 64 * - 72 + - 83 * NULLIF ( - COUNT( DISTINCT 21 ) * + CAST( 6 AS SIGNED ), 65 )
----
5106

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - 64 * - 72 + - 83 * NULLIF ( - COUNT ( DISTINCT 21 ) * + CAST ( 6 AS INTEGER ), 65 )
----
5106

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + COUNT( DISTINCT + 80 ) * + 60
----
60

skipif mysql # not compatible
query I rowsort label-3711
SELECT + COUNT ( DISTINCT + 80 ) * + 60
----
60

query I rowsort
SELECT ALL + - 81 AS col0
----
-81

query I rowsort
SELECT ALL + 67 + - 21 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL + + COUNT( ALL 19 )
----
1

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL + + COUNT ( ALL 19 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3715
SELECT - COUNT( * ) * + ( ( 56 ) ) + + MIN( DISTINCT 85 ) DIV 94
----
-56

skipif mysql # not compatible
query I rowsort label-3715
SELECT - COUNT ( * ) * + ( ( 56 ) ) + + MIN ( DISTINCT 85 ) / 94
----
-56

query I rowsort
SELECT DISTINCT + 81 + - 18 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT COUNT( ALL - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-3717
SELECT COUNT ( ALL - 19 )
----
1

query I rowsort
SELECT DISTINCT 87 + + 40 AS col2
----
127

query I rowsort
SELECT DISTINCT 26 * - 52 AS col0
----
-1352

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL ( COUNT( DISTINCT - 4 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL ( COUNT ( DISTINCT - 4 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT + COUNT( ALL 76 ) + 87 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + COUNT ( ALL 76 ) + 87 AS col0
----
88

query I rowsort
SELECT + + 68 + 44
----
112

query I rowsort
SELECT + 16 + + 46 AS col1
----
62

query I rowsort
SELECT DISTINCT 22 - - - 57 * + 32
----
-1802

query I rowsort
SELECT + ( + 37 ) * + 58 + 9 AS col2
----
2155

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3726
SELECT ALL 57 DIV - + COALESCE ( - CAST( 35 AS SIGNED ), 9 * 58, 99 - - 53 * CAST( NULL AS SIGNED ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL 57 / - + COALESCE ( - CAST ( 35 AS INTEGER ), 9 * 58, 99 - - 53 * CAST ( NULL AS INTEGER ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT COUNT( DISTINCT 27 ) - - 86 * - 24
----
-2063

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT COUNT ( DISTINCT 27 ) - - 86 * - 24
----
-2063

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL MAX( ALL - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL MAX ( ALL - 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT + COUNT( * ) * 26 * + 37
----
962

skipif mysql # not compatible
query I rowsort label-3729
SELECT + COUNT ( * ) * 26 * + 37
----
962

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3730
SELECT + COALESCE ( COUNT( 75 ), 19 * + 70, - 12 + 66 DIV 18 ) * 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3730
SELECT + COALESCE ( COUNT ( 75 ), 19 * + 70, - 12 + 66 / 18 ) * 40 AS col1
----
40

query I rowsort
SELECT + COALESCE ( - - 60, 23 ) + + 39 * 29
----
1191

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL MAX( + + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL MAX ( + + 14 )
----
14

query I rowsort
SELECT + 73 * 21 AS col0
----
1533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3734
SELECT DISTINCT CASE + 53 WHEN - SUM( DISTINCT + 7 ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 62 + 13 / + 61 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT CASE + 53 WHEN - SUM ( DISTINCT + 7 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 62 + 13 / + 61 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 33, 93 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT ALL + COUNT( * ) + + 8 * + 1
----
9

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL + COUNT ( * ) + + 8 * + 1
----
9

query I rowsort
SELECT ALL - 42 + - 99 col1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT - + 34 - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-3738
SELECT - + 34 - + COUNT ( * )
----
-35

query I rowsort
SELECT ALL ( + 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3740
SELECT DISTINCT 77 DIV - 86 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT 77 / - 86 + COUNT ( * )
----
1

query I rowsort
SELECT + 46 + - 99
----
-53

query I rowsort
SELECT - + 84 * 74
----
-6216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3743
SELECT ALL - + 82 DIV - - 73 * - COUNT( * ) + 50 DIV + 44
----
2

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL - + 82 / - - 73 * - COUNT ( * ) + 50 / + 44
----
2

query I rowsort
SELECT + NULLIF ( + 34, 82 ) AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT - + SUM( + 19 ) DIV - 61 + 7
----
7

skipif mysql # not compatible
query I rowsort label-3745
SELECT - + SUM ( + 19 ) / - 61 + 7
----
7

query I rowsort
SELECT - - 31 * - 23 + + 35 - + 69 col0
----
-747

query I rowsort
SELECT DISTINCT - + 51 * - 75 - 2
----
3823

query I rowsort
SELECT - 87 + + COALESCE ( + 38, - 18 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3749
SELECT - 34 DIV 94 - + NULLIF ( 23, 30 ) col1
----
-23

skipif mysql # not compatible
query I rowsort label-3749
SELECT - 34 / 94 - + NULLIF ( 23, 30 ) col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT - - COUNT( * ) * - 28 * ( + 70 ) AS col2
----
-1960

skipif mysql # not compatible
query I rowsort label-3750
SELECT - - COUNT ( * ) * - 28 * ( + 70 ) AS col2
----
-1960

query I rowsort
SELECT ALL - - 63 * + 79 + - ( 9 )
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL - 59 * + + COUNT( * ) + ( - 88 ) + + 34 AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL - 59 * + + COUNT ( * ) + ( - 88 ) + + 34 AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT - - 2 * MAX( 95 ) + CASE 54 + 21 WHEN COUNT( * ) + 23 THEN + 92 + COUNT( * ) END + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT - - 2 * MAX ( 95 ) + CASE 54 + 21 WHEN COUNT ( * ) + 23 THEN + 92 + COUNT ( * ) END + + 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL + MIN( ALL + + 9 ) * - 43 + - ( + COUNT( * ) ) * - 7 col1
----
-380

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + MIN ( ALL + + 9 ) * - 43 + - ( + COUNT ( * ) ) * - 7 col1
----
-380

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT 58 * + 41 + 62 DIV 57 + 29
----
2408

skipif mysql # not compatible
query I rowsort label-3755
SELECT 58 * + 41 + 62 / 57 + 29
----
2408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT ALL - + 32 * + CAST( NULL AS SIGNED ) + - 60 + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - + 32 * + CAST ( NULL AS INTEGER ) + - 60 + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) * - 39
----
39

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * - 39
----
39

query I rowsort
SELECT ALL + - ( - 15 ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3759
SELECT - 85 + - 10 - CASE 27 WHEN - 28 * - 5 + 58 THEN NULL WHEN + CAST( + 56 AS SIGNED ) THEN - 79 * 74 + - 88 WHEN + 52 THEN - 61 - COUNT( * ) DIV COUNT( * ) ELSE 73 * + COUNT( * ) END AS col2
----
-168

skipif mysql # not compatible
query I rowsort label-3759
SELECT - 85 + - 10 - CASE 27 WHEN - 28 * - 5 + 58 THEN NULL WHEN + CAST ( + 56 AS INTEGER ) THEN - 79 * 74 + - 88 WHEN + 52 THEN - 61 - COUNT ( * ) / COUNT ( * ) ELSE 73 * + COUNT ( * ) END AS col2
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - 89 / + CASE MAX( DISTINCT - 40 ) WHEN COUNT( * ) THEN 40 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT - 89 / + CASE MAX ( DISTINCT - 40 ) WHEN COUNT ( * ) THEN 40 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT + 59 * - COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3761
SELECT + 59 * - COUNT ( * ) AS col2
----
-59

query I rowsort
SELECT - 98 + + 57
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - ( NULLIF ( COUNT( * ), + NULLIF ( 9, + COUNT( * ) * 38 ) + 39 * - 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3763
SELECT - ( NULLIF ( COUNT ( * ), + NULLIF ( 9, + COUNT ( * ) * 38 ) + 39 * - 1 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT 9 * + - 68 * 24 - COUNT( * )
----
-14689

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT 9 * + - 68 * 24 - COUNT ( * )
----
-14689

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT + COUNT( * ), + 1
----
1
1

skipif mysql # not compatible
query II rowsort label-3765
SELECT + COUNT ( * ), + 1
----
1
1

query I rowsort
SELECT CASE - 24 WHEN - AVG ( DISTINCT - 51 ) THEN + 77 WHEN - 79 THEN + 8 ELSE 56 END
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3767
SELECT ALL + CASE + - 52 WHEN ( + 82 ) + 1 * + CAST( 17 AS SIGNED ) THEN 5 WHEN + ( 46 ) THEN NULL ELSE 4 * - COUNT( * ) END AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + CASE + - 52 WHEN ( + 82 ) + 1 * + CAST ( 17 AS INTEGER ) THEN 5 WHEN + ( 46 ) THEN NULL ELSE 4 * - COUNT ( * ) END AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT COALESCE ( - COUNT( * ), - + 42 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3768
SELECT COALESCE ( - COUNT ( * ), - + 42 ) col1
----
-1

query I rowsort
SELECT DISTINCT + 19 * ( + - NULLIF ( 60, 67 ) ) - - 88 * - 82
----
-8356

query I rowsort
SELECT + 56 + - - 72 AS col1
----
128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3771
SELECT - CASE + + ( - 48 ) WHEN 1 / 21 THEN CAST( NULL AS DECIMAL ) WHEN 2 * + ( - 48 ) THEN 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT - CASE + + ( - 48 ) WHEN 1 / 21 THEN CAST ( NULL AS REAL ) WHEN 2 * + ( - 48 ) THEN 62 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT - 90 * - - NULLIF ( 81, CASE - ( - 30 ) WHEN 46 THEN NULL WHEN 23 THEN - 99 * COUNT( * ) ELSE - COUNT( ALL - 62 ) / + COUNT( * ) END * + 40 )
----
-7290

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - 90 * - - NULLIF ( 81, CASE - ( - 30 ) WHEN 46 THEN NULL WHEN 23 THEN - 99 * COUNT ( * ) ELSE - COUNT ( ALL - 62 ) / + COUNT ( * ) END * + 40 )
----
-7290

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT - 3 * + SUM( - - 74 ) AS col0
----
-222

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 3 * + SUM ( - - 74 ) AS col0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + COUNT( * ) * + 13 / CASE - 95 WHEN + 4 / 16 THEN COUNT( * ) * - ( - 88 ) WHEN NULLIF ( + 69, + 6 ) + 63 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT + COUNT ( * ) * + 13 / CASE - 95 WHEN + 4 / 16 THEN COUNT ( * ) * - ( - 88 ) WHEN NULLIF ( + 69, + 6 ) + 63 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 15 * - + 82 * + 40 AS col2
----
-49200

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - 21 + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3776
SELECT - 21 + + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT COUNT( DISTINCT + ( 92 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3777
SELECT COUNT ( DISTINCT + ( 92 ) ) AS col0
----
1

query I rowsort
SELECT + ( - 22 ) + + + 98
----
76

query I rowsort
SELECT + 79 + 53 * + 48 col0
----
2623

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT 69, - COUNT( * ) AS col0
----
69
-1

skipif mysql # not compatible
query II rowsort label-3780
SELECT 69, - COUNT ( * ) AS col0
----
69
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT ALL 61 + - + CAST( NULL AS SIGNED ) * + - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL 61 + - + CAST ( NULL AS INTEGER ) * + - 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT + 67 + - - CASE 30 WHEN - 53 THEN 23 * - MAX( - 25 * - 36 ) ELSE + ( MIN( + 30 ) ) END + 78 * + COUNT( * ) * - 87 col2
----
-6689

skipif mysql # not compatible
query I rowsort label-3782
SELECT + 67 + - - CASE 30 WHEN - 53 THEN 23 * - MAX ( - 25 * - 36 ) ELSE + ( MIN ( + 30 ) ) END + 78 * + COUNT ( * ) * - 87 col2
----
-6689

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL + COUNT( * ) * + 53
----
53

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL + COUNT ( * ) * + 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT ALL ( COUNT( * ) ) + + 50
----
51

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL ( COUNT ( * ) ) + + 50
----
51

query I rowsort
SELECT ALL 74 + - - 11 + + 46 col1
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT DISTINCT - MAX( ALL + ( - 33 ) ) + - CAST( NULL AS SIGNED ) * + ( 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT - MAX ( ALL + ( - 33 ) ) + - CAST ( NULL AS INTEGER ) * + ( 44 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL + CASE + - 2 WHEN - 95 THEN + 77 * 6 ELSE + ( - ( - COUNT( * ) ) ) * - NULLIF ( - 70, + 8 + 53 ) END * - 31
----
-2170

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + CASE + - 2 WHEN - 95 THEN + 77 * 6 ELSE + ( - ( - COUNT ( * ) ) ) * - NULLIF ( - 70, + 8 + 53 ) END * - 31
----
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT COUNT( * ) * - ( 4 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-3788
SELECT COUNT ( * ) * - ( 4 ) col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT + 27 + + COUNT( * ) + - - 87 * + 34 AS col0
----
2986

skipif mysql # not compatible
query I rowsort label-3789
SELECT + 27 + + COUNT ( * ) + - - 87 * + 34 AS col0
----
2986

query I rowsort
SELECT ALL - 17 + + + 3 + + 5 * + 97 AS col0
----
471

query I rowsort
SELECT DISTINCT - 0 + 64 + + ( 28 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT 45 + + COUNT( ALL + 52 )
----
46

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT 45 + + COUNT ( ALL + 52 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL - 67 + + 78 + - COUNT( DISTINCT - ( - 71 ) ) + + 5 * ( 1 + - COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - 67 + + 78 + - COUNT ( DISTINCT - ( - 71 ) ) + + 5 * ( 1 + - COUNT ( * ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + 94 * + - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-3794
SELECT + 94 * + - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL MIN( DISTINCT 8 ) * + - COUNT( * ) + 54
----
46

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL MIN ( DISTINCT 8 ) * + - COUNT ( * ) + 54
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT DISTINCT - + 49 - - - COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT - + 49 - - - COUNT ( * ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3797
SELECT ALL - 79, + 17 * COALESCE ( - NULLIF ( + COUNT( ALL 80 ), - ( + 69 ) + - COALESCE ( - 33, + 97 ) * COUNT( * ) ), - 92 ) AS col0
----
-79
-17

skipif mysql # not compatible
query II rowsort label-3797
SELECT ALL - 79, + 17 * COALESCE ( - NULLIF ( + COUNT ( ALL 80 ), - ( + 69 ) + - COALESCE ( - 33, + 97 ) * COUNT ( * ) ), - 92 ) AS col0
----
-79
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT 1 DIV - + 66 * 43 + - 67 - - 56 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3798
SELECT 1 / - + 66 * 43 + - 67 - - 56 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT SUM( 45 ) - + - 23
----
68

skipif mysql # not compatible
query I rowsort label-3799
SELECT SUM ( 45 ) - + - 23
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3800
SELECT MIN( ( - 96 ) ) DIV - 84
----
1

skipif mysql # not compatible
query I rowsort label-3800
SELECT MIN ( ( - 96 ) ) / - 84
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL + - 7 * - MAX( - 33 )
----
-231

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL + - 7 * - MAX ( - 33 )
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ( + ( + SUM( ALL + 64 ) ) ) * COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-3802
SELECT ( + ( + SUM ( ALL + 64 ) ) ) * COUNT ( * )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3803
SELECT + + 75 DIV 29 DIV - 69 + 84 + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3803
SELECT + + 75 / 29 / - 69 + 84 + COUNT ( * ) AS col1
----
85

query I rowsort
SELECT ALL + 24 * - 49
----
-1176

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT DISTINCT 75 DIV 7 * - 38 * + 75
----
-28500

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT 75 / 7 * - 38 * + 75
----
-28500

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + 90 * - COUNT( * ) - - 18 - ( - 92 ) * - 77 AS col0
----
-7156

skipif mysql # not compatible
query I rowsort label-3806
SELECT + 90 * - COUNT ( * ) - - 18 - ( - 92 ) * - 77 AS col0
----
-7156

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT 69 * - + MAX( - 93 )
----
6417

skipif mysql # not compatible
query I rowsort label-3807
SELECT 69 * - + MAX ( - 93 )
----
6417

query I rowsort
SELECT 72 - - 17 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3809
SELECT DISTINCT MAX( DISTINCT + 48 ) DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT MAX ( DISTINCT + 48 ) / - + 75
----
0

query II rowsort
SELECT ALL - ( - - 22 ), 25 AS col2
----
-22
25

query I rowsort
SELECT 59 * - 64
----
-3776

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT MAX( DISTINCT + 16 ) + - 80
----
-64

skipif mysql # not compatible
query I rowsort label-3812
SELECT MAX ( DISTINCT + 16 ) + - 80
----
-64

query I rowsort
SELECT 68 * - 65
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT COALESCE ( - COUNT( * ), + COALESCE ( 21, ( + 79 ) ) * + 56 ) - - 56
----
55

skipif mysql # not compatible
query I rowsort label-3814
SELECT COALESCE ( - COUNT ( * ), + COALESCE ( 21, ( + 79 ) ) * + 56 ) - - 56
----
55

query I rowsort
SELECT DISTINCT - 59 + ( + ( - 81 ) ) AS col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL 61 + + COUNT( * ) + + - NULLIF ( ( 36 ), - 7 ) * + 61
----
-2134

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL 61 + + COUNT ( * ) + + - NULLIF ( ( 36 ), - 7 ) * + 61
----
-2134

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT ( - - 97 ) + - - ( - ( MIN( 60 ) ) ) - - MIN( 76 ) * - 59 * + 5 AS col2
----
-22383

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT ( - - 97 ) + - - ( - ( MIN ( 60 ) ) ) - - MIN ( 76 ) * - 59 * + 5 AS col2
----
-22383

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT MAX( 44 ) * 54
----
2376

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT MAX ( 44 ) * 54
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT DISTINCT + SUM( DISTINCT - 18 ) + + 29
----
11

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT + SUM ( DISTINCT - 18 ) + + 29
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT ALL 55 + - 81 * CAST( 82 AS SIGNED ) col1
----
-6587

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL 55 + - 81 * CAST ( 82 AS INTEGER ) col1
----
-6587

query I rowsort
SELECT ALL NULLIF ( + 18, - COALESCE ( + 5, 0 / 1, - 36 ) ) * - 90
----
-1620

onlyif mysql # aggregate syntax: 
query II rowsort label-3822
SELECT COUNT( * ) * - 37 col1, 83 + - + 99
----
-37
-16

skipif mysql # not compatible
query II rowsort label-3822
SELECT COUNT ( * ) * - 37 col1, 83 + - + 99
----
-37
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3823
SELECT ALL + 42 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + 42 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 83 - - - 82 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ( ( 33 ) ) + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-3825
SELECT ( ( 33 ) ) + + COUNT ( * )
----
34

query I rowsort
SELECT ALL ( + - 27 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + COUNT( * ) + - + 19
----
-18

skipif mysql # not compatible
query I rowsort label-3827
SELECT + COUNT ( * ) + - + 19
----
-18

query I rowsort
SELECT - 51 * + 9 col2
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT 68 - - - ( - - 1 ) * 41 * + 46 - + COUNT( * )
----
-1819

skipif mysql # not compatible
query I rowsort label-3829
SELECT 68 - - - ( - - 1 ) * 41 * + 46 - + COUNT ( * )
----
-1819

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT ALL COALESCE ( - 1, - 99, - 39 ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL COALESCE ( - 1, - 99, - 39 ) / 33
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3831
SELECT - 91 + + NULLIF ( + - 41, CAST( COUNT( 13 ) AS DECIMAL ) ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-3831
SELECT - 91 + + NULLIF ( + - 41, CAST ( COUNT ( 13 ) AS REAL ) ) AS col2
----
-132

query I rowsort
SELECT DISTINCT - COALESCE ( - - 21, + 16 )
----
-21

query I rowsort
SELECT - - 65 * + - 38 + 61
----
-2409

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT 37 * 97, MIN( ALL - 80 ) col0
----
3589
-80

skipif mysql # not compatible
query II rowsort label-3834
SELECT 37 * 97, MIN ( ALL - 80 ) col0
----
3589
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT - MIN( DISTINCT 62 ) * 48 + + MIN( ALL + 27 )
----
-2949

skipif mysql # not compatible
query I rowsort label-3835
SELECT - MIN ( DISTINCT 62 ) * 48 + + MIN ( ALL + 27 )
----
-2949

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT CASE + - 94 WHEN 56 THEN AVG ( 22 ) / + 35 WHEN + 12 + + 39 THEN NULL ELSE NULL END - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT CASE + - 94 WHEN 56 THEN AVG ( 22 ) / + 35 WHEN + 12 + + 39 THEN NULL ELSE NULL END - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL + 44 * - + 42 + + + 50
----
-1798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT DISTINCT + 86 * - CASE + COUNT( * ) WHEN - 18 / + 27 THEN NULL WHEN 8 * 2 THEN NULL ELSE + CAST( NULL AS SIGNED ) END - - COUNT( ALL 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + 86 * - CASE + COUNT ( * ) WHEN - 18 / + 27 THEN NULL WHEN 8 * 2 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END - - COUNT ( ALL 19 )
----
NULL

query I rowsort
SELECT 86 + + NULLIF ( + 76, - 2 ) * - 5 AS col1
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT 75 * + COUNT( * ) - + 61 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3840
SELECT 75 * + COUNT ( * ) - + 61 AS col1
----
14

query I rowsort
SELECT DISTINCT - 11 * + 46 col0
----
-506

query II rowsort
SELECT ALL 64 * + - 91 AS col2, ( + + 93 ) + ( 96 ) AS col1
----
-5824
189

query I rowsort
SELECT 14 * + 43 + - 97
----
505

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT DISTINCT 4 * + - MIN( + 77 ) * - 24
----
7392

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT 4 * + - MIN ( + 77 ) * - 24
----
7392

query II rowsort
SELECT DISTINCT - 4 AS col2, 16 + 1 AS col0
----
-4
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3846
SELECT ALL - NULLIF ( + 79, - ( - CAST( - 12 AS DECIMAL ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - NULLIF ( + 79, - ( - CAST ( - 12 AS REAL ) ) )
----
-79

query I rowsort
SELECT 78 * 85
----
6630

onlyif mysql # aggregate syntax: 
query II rowsort label-3848
SELECT ALL - COUNT( * ), - 35 AS col2
----
-1
-35

skipif mysql # not compatible
query II rowsort label-3848
SELECT ALL - COUNT ( * ), - 35 AS col2
----
-1
-35

query I rowsort
SELECT 59 + + + 19 AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3850
SELECT ALL + COUNT( * ) DIV - + ( 55 ) * 16
----
0

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL + COUNT ( * ) / - + ( 55 ) * 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT + 98 * 45 * COALESCE ( - - 91, 30 * + 5, CAST( NULL AS SIGNED ) ) + 0 * COUNT( * ) AS col2
----
401310

skipif mysql # not compatible
query I rowsort label-3851
SELECT + 98 * 45 * COALESCE ( - - 91, 30 * + 5, CAST ( NULL AS INTEGER ) ) + 0 * COUNT ( * ) AS col2
----
401310

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3852
SELECT 4 * + ( - + 45 ), + COALESCE ( + 74, 86, COALESCE ( ( - 98 ), 71 * - COUNT( * ), - 25 + + 11 ) + - CASE 9 WHEN COUNT( * ) THEN 61 + 79 ELSE 81 END ) DIV - 20 AS col2
----
-180
-3

skipif mysql # not compatible
query II rowsort label-3852
SELECT 4 * + ( - + 45 ), + COALESCE ( + 74, 86, COALESCE ( ( - 98 ), 71 * - COUNT ( * ), - 25 + + 11 ) + - CASE 9 WHEN COUNT ( * ) THEN 61 + 79 ELSE 81 END ) / - 20 AS col2
----
-180
-3

query II rowsort
SELECT + COALESCE ( 20, 70 ) AS col1, - 86 + 72 * 48
----
20
3370

onlyif mysql # aggregate syntax: 
query II rowsort label-3854
SELECT ALL + 18 + MAX( 10 ) AS col2, 34 AS col1
----
28
34

skipif mysql # not compatible
query II rowsort label-3854
SELECT ALL + 18 + MAX ( 10 ) AS col2, 34 AS col1
----
28
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3855
SELECT 94 + - + 78 - + 14 * COALESCE ( - - 54, + 56 DIV COUNT( * ) ) col1
----
-740

skipif mysql # not compatible
query I rowsort label-3855
SELECT 94 + - + 78 - + 14 * COALESCE ( - - 54, + 56 / COUNT ( * ) ) col1
----
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT SUM( ALL + + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT SUM ( ALL + + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT DISTINCT + COUNT( * ) + - - 94 + 92 + + COUNT( * )
----
188

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT + COUNT ( * ) + - - 94 + 92 + + COUNT ( * )
----
188

query I rowsort
SELECT ALL - 73 + - 13
----
-86

query I rowsort
SELECT 13 + + COALESCE ( 98, + 44 * + + 55 * + 18 ) + + 19 AS col1
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-3860
SELECT ALL - 10 + + 19 - + + 95 DIV 5 * + 38 * 35 AS col0
----
-25261

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - 10 + + 19 - + + 95 / 5 * + 38 * 35 AS col0
----
-25261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT 74 * - 20 + - - 26 * + COALESCE ( - 96, + 18, 11 ) * 86 + 45 * + MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3861
SELECT 74 * - 20 + - - 26 * + COALESCE ( - 96, + 18, 11 ) * 86 + 45 * + MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - NULLIF ( - 77, 9 + - - 56 + + 8 ) + 36 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT DISTINCT SUM( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT SUM ( + 40 )
----
40

query I rowsort
SELECT DISTINCT CASE - 95 WHEN + + 66 THEN - - 88 * - 60 + 31 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT SUM( DISTINCT - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT SUM ( DISTINCT - 12 )
----
-12

query I rowsort
SELECT ALL + + 7 - 74 AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3867
SELECT - COUNT( * ) + + 87 DIV - 95 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3867
SELECT - COUNT ( * ) + + 87 / - 95 AS col1
----
-1

query I rowsort
SELECT ALL + + 15 - + 69 AS col1
----
-54

query I rowsort
SELECT DISTINCT + - 65 - - + 49
----
-16

query I rowsort
SELECT + + 95 * + NULLIF ( + - 20, - 59 * + - 77 * 75 + + 89 * 77 ) AS col1
----
-1900

query I rowsort
SELECT CASE - 52 WHEN - + 11 * + 66 THEN - + 27 END AS col1
----
NULL

query I rowsort
SELECT + 12 + 35 AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT ALL SUM( + - 95 ) * - 25 AS col2, - 97 + 14
----
2375
-83

skipif mysql # not compatible
query II rowsort label-3873
SELECT ALL SUM ( + - 95 ) * - 25 AS col2, - 97 + 14
----
2375
-83

query I rowsort
SELECT - 51 * - + 93 AS col2
----
4743

query I rowsort
SELECT ( 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT - 69 * SUM( ALL + 14 ) + - - ( 83 ) + 74 * + SUM( 57 ) * COUNT( DISTINCT 54 )
----
3335

skipif mysql # not compatible
query I rowsort label-3876
SELECT - 69 * SUM ( ALL + 14 ) + - - ( 83 ) + 74 * + SUM ( 57 ) * COUNT ( DISTINCT 54 )
----
3335

query II rowsort
SELECT DISTINCT + + 13 AS col0, 51
----
13
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3878
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), 2 * + 84 * 45 ) DIV 58
----
130

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), 2 * + 84 * 45 ) / 58
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT + 19 DIV + 66 + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-3879
SELECT + 19 / + 66 + - 38
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT ALL + CASE + 54 WHEN + - 92 THEN - 84 DIV + + 63 + + 11 WHEN + 26 + 21 THEN NULL WHEN 47 THEN NULL ELSE NULLIF ( 53, 34 ) END DIV 39 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL + CASE + 54 WHEN + - 92 THEN - 84 / + + 63 + + 11 WHEN + 26 + 21 THEN NULL WHEN 47 THEN NULL ELSE NULLIF ( 53, 34 ) END / 39 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT + 34 DIV + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3881
SELECT + 34 / + 56 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT ALL CAST( - 61 AS SIGNED ) * 36 + + 77 AS col0
----
-2119

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL CAST ( - 61 AS INTEGER ) * 36 + + 77 AS col0
----
-2119

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3883
SELECT + CASE - 11 WHEN - COALESCE ( 50, ( CAST( NULL AS DECIMAL ) ), + 45 ) * 66 THEN - 28 ELSE COUNT( * ) * + 75 - COUNT( * ) END
----
74

skipif mysql # not compatible
query I rowsort label-3883
SELECT + CASE - 11 WHEN - COALESCE ( 50, ( CAST ( NULL AS REAL ) ), + 45 ) * 66 THEN - 28 ELSE COUNT ( * ) * + 75 - COUNT ( * ) END
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT + MIN( - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-3884
SELECT + MIN ( - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + ( - COUNT( - 91 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3885
SELECT + ( - COUNT ( - 91 ) )
----
-1

query I rowsort
SELECT ALL 92 * - 31 AS col2
----
-2852

query II rowsort
SELECT ALL + 23 AS col0, - 11
----
23
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT + CAST( NULL AS SIGNED ) - + ( 74 ) * - 9 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT + CAST ( NULL AS INTEGER ) - + ( 74 ) * - 9 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 44 * + - 65
----
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL 94 * - + SUM( DISTINCT - 36 ) + 99 * + SUM( - - 50 ) col0
----
8334

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL 94 * - + SUM ( DISTINCT - 36 ) + 99 * + SUM ( - - 50 ) col0
----
8334

query I rowsort
SELECT - 14 + 25
----
11

query II rowsort
SELECT - 57, 22 + + - 26 AS col1
----
-57
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3893
SELECT ALL - ( 85 ) * 73 + - + COALESCE ( CAST( + 26 AS SIGNED ), - 65 * - COUNT( ALL 61 * + ( NULLIF ( 64, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) ) ) DIV - 81
----
-6205

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - ( 85 ) * 73 + - + COALESCE ( CAST ( + 26 AS INTEGER ), - 65 * - COUNT ( ALL 61 * + ( NULLIF ( 64, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) ) ) / - 81
----
-6205

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT + - 24 DIV + 17
----
-1

skipif mysql # not compatible
query I rowsort label-3894
SELECT + - 24 / + 17
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - MAX( + - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-3895
SELECT - MAX ( + - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT DISTINCT ( 93 ) * - 28 * + COUNT( * ) + + 20 AS col2
----
-2584

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT ( 93 ) * - 28 * + COUNT ( * ) + + 20 AS col2
----
-2584

query I rowsort
SELECT ALL + 69 * - 7 AS col1
----
-483

query I rowsort
SELECT DISTINCT + + 13 * + 20 AS col2
----
260

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT + 13 + 99 DIV + - 47 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3899
SELECT + 13 + 99 / + - 47 AS col0
----
11

query I rowsort
SELECT - 82 * + 56
----
-4592

query I rowsort
SELECT - 40 + 77
----
37

query II rowsort
SELECT - - 67, 73 + - 85 AS col0
----
67
-12

query II rowsort
SELECT ALL + 10 AS col0, - 61
----
10
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - + 47 - + 95 + - 45 * + 26 * + COUNT( * ) AS col0
----
-1312

skipif mysql # not compatible
query I rowsort label-3904
SELECT - + 47 - + 95 + - 45 * + 26 * + COUNT ( * ) AS col0
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL + 61 * - + 80 + + 32 - + + SUM( ALL + - 52 ) AS col2
----
-4796

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL + 61 * - + 80 + + 32 - + + SUM ( ALL + - 52 ) AS col2
----
-4796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3906
SELECT ALL + 3 + + 91 + COUNT( * ) + + COALESCE ( - 40, + - 30 ) * ( 74 DIV + 7 ) AS col0
----
-305

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL + 3 + + 91 + COUNT ( * ) + + COALESCE ( - 40, + - 30 ) * ( 74 / + 7 ) AS col0
----
-305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT - + CAST( - COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL 10, - 14 AS col1
----
10
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT - COUNT( * ) * 50
----
-50

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT - COUNT ( * ) * 50
----
-50

query I rowsort
SELECT - - 23 + - + 38
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3911
SELECT - 82 AS col0, + NULLIF ( + 45, 43 * - 25 + + + COUNT( * ) ) AS col1
----
-82
45

skipif mysql # not compatible
query II rowsort label-3911
SELECT - 82 AS col0, + NULLIF ( + 45, 43 * - 25 + + + COUNT ( * ) ) AS col1
----
-82
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL - - 95 * COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - - 95 * COUNT ( * ) AS col0
----
95

query I rowsort
SELECT + 28 * + 77 - + 93
----
2063

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT DISTINCT 9 DIV + - 3 + + + 34 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT 9 / + - 3 + + + 34 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT 54 * COUNT( * ) - - 24
----
78

skipif mysql # not compatible
query I rowsort label-3915
SELECT 54 * COUNT ( * ) - - 24
----
78

query I rowsort
SELECT ALL - 45 * - - 31
----
-1395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT ALL - COUNT( * ) DIV - + 44 * + - 1 + + - ( - + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - COUNT ( * ) / - + 44 * + - 1 + + - ( - + 85 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3918
SELECT DISTINCT 46 DIV + + 74 + - 67 * + CASE + 10 WHEN - - 4 THEN 98 * CAST( NULL AS SIGNED ) + + 94 * - 59 ELSE + 55 DIV + COALESCE ( - COUNT( * ), - 40 - - NULLIF ( - 65 + + CAST( + 36 AS SIGNED ), COALESCE ( 43, - COUNT( ALL + 21 ) + 34, - 69 ) * - 25 - COUNT( DISTINCT + 2 ) * 76 ), - 87 ) END
----
3685

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT 46 / + + 74 + - 67 * + CASE + 10 WHEN - - 4 THEN 98 * CAST ( NULL AS INTEGER ) + + 94 * - 59 ELSE + 55 / + COALESCE ( - COUNT ( * ), - 40 - - NULLIF ( - 65 + + CAST ( + 36 AS INTEGER ), COALESCE ( 43, - COUNT ( ALL + 21 ) + 34, - 69 ) * - 25 - COUNT ( DISTINCT + 2 ) * 76 ), - 87 ) END
----
3685

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT DISTINCT NULLIF ( + + 72, - NULLIF ( - 46, - NULLIF ( - ( + - 8 ), ( - 85 ) ) + 15 ) ) DIV 27 + 95 col0
----
97

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT NULLIF ( + + 72, - NULLIF ( - 46, - NULLIF ( - ( + - 8 ), ( - 85 ) ) + 15 ) ) / 27 + 95 col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3920
SELECT ALL 90 DIV - CASE - 75 WHEN 27 THEN + COUNT( * ) ELSE + 14 END + - COALESCE ( + COUNT( * ), COUNT( * ), + 7 + - 13 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL 90 / - CASE - 75 WHEN 27 THEN + COUNT ( * ) ELSE + 14 END + - COALESCE ( + COUNT ( * ), COUNT ( * ), + 7 + - 13 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + ( - MIN( ALL + 17 ) ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3921
SELECT + ( - MIN ( ALL + 17 ) ) AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT - CAST( NULL AS SIGNED ) + + ( + + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT - CAST ( NULL AS INTEGER ) + + ( + + 36 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3923
SELECT 87 * + NULLIF ( - - COUNT( * ), - 57 * 41 * + CAST( NULL AS DECIMAL ) * + MAX( DISTINCT ( + 76 ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-3923
SELECT 87 * + NULLIF ( - - COUNT ( * ), - 57 * 41 * + CAST ( NULL AS REAL ) * + MAX ( DISTINCT ( + 76 ) ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT COUNT( * ) * - 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3924
SELECT COUNT ( * ) * - 6 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL 2 * - CAST( - ( + - NULLIF ( 93, 28 + - + ( 41 ) - + CAST( NULL AS SIGNED ) * - ( - 95 - + MIN( 33 ) * + 89 ) ) ) AS SIGNED )
----
-186

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL 2 * - CAST ( - ( + - NULLIF ( 93, 28 + - + ( 41 ) - + CAST ( NULL AS INTEGER ) * - ( - 95 - + MIN ( 33 ) * + 89 ) ) ) AS INTEGER )
----
-186

query II rowsort
SELECT 93 + 33 AS col2, 24 AS col2
----
126
24

query I rowsort
SELECT - ( - 40 ) * + 89 + + 74 * + 63
----
8222

query I rowsort
SELECT ALL 96 - COALESCE ( 96, - + 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT COUNT( * ) * - - 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3929
SELECT COUNT ( * ) * - - 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT 22 * COALESCE ( 4, MIN( 74 ), + 95 * 66 )
----
88

skipif mysql # not compatible
query I rowsort label-3930
SELECT 22 * COALESCE ( 4, MIN ( 74 ), + 95 * 66 )
----
88

query I rowsort
SELECT 28 + 47
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL COUNT( * ) * - + 63 + + CASE 18 WHEN - + 81 THEN + 16 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL COUNT ( * ) * - + 63 + + CASE 18 WHEN - + 81 THEN + 16 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 12 + - 50
----
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3934
SELECT 89 + + COALESCE ( - CAST( NULL AS SIGNED ), - - COALESCE ( - + COALESCE ( + 35, 55 ), 74 * + 2 ) DIV 21 + 63, + 49 ) AS col1
----
151

skipif mysql # not compatible
query I rowsort label-3934
SELECT 89 + + COALESCE ( - CAST ( NULL AS INTEGER ), - - COALESCE ( - + COALESCE ( + 35, 55 ), 74 * + 2 ) / 21 + 63, + 49 ) AS col1
----
151

query I rowsort
SELECT - 85 * + + 32 * + + 21
----
-57120

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT MAX( DISTINCT - + 47 ) * - 26 + + - 45
----
1177

skipif mysql # not compatible
query I rowsort label-3936
SELECT MAX ( DISTINCT - + 47 ) * - 26 + + - 45
----
1177

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT + SUM( ALL 43 ) + + 77 * - 34 * 3 + + ( - NULLIF ( COUNT( * ), + 49 + - 86 ) ) col1
----
-7812

skipif mysql # not compatible
query I rowsort label-3937
SELECT + SUM ( ALL 43 ) + + 77 * - 34 * 3 + + ( - NULLIF ( COUNT ( * ), + 49 + - 86 ) ) col1
----
-7812

query I rowsort
SELECT ALL - 87 + 28
----
-59

query I rowsort
SELECT CASE - 16 WHEN - 60 THEN 59 * - 13 * - - 77 WHEN + - 56 THEN NULL END + + 42 * - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT - ( - COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3940
SELECT - ( - COUNT ( * ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL 30 * + COUNT( ALL - 47 ) + 50 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL 30 * + COUNT ( ALL - 47 ) + 50 AS col0
----
80

query I rowsort
SELECT ALL + 32 + + NULLIF ( - 21, - 95 ) * + 76
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT 61 + + + MAX( ALL - 30 )
----
31

skipif mysql # not compatible
query I rowsort label-3943
SELECT 61 + + + MAX ( ALL - 30 )
----
31

query I rowsort
SELECT DISTINCT + 63 * 81
----
5103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3945
SELECT DISTINCT + 5 + + 87 - - + CASE 16 WHEN + CAST( + 73 AS DECIMAL ) * + + 1 THEN NULL WHEN - 70 THEN - 70 / - 76 END + 21 * - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT + 5 + + 87 - - + CASE 16 WHEN + CAST ( + 73 AS REAL ) * + + 1 THEN NULL WHEN - 70 THEN - 70 / - 76 END + 21 * - 61 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 30 + + - 26 AS col2
----
-56

query I rowsort
SELECT 7 + - 25
----
-18

query I rowsort
SELECT 78 * + + CASE NULLIF ( - AVG ( - 94 ), + ( 18 ) ) WHEN + + 68 * 44 + - 90 * + 23 THEN 50 WHEN 40 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL + 59 + MAX( - + 62 ) * 72
----
-4405

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + 59 + MAX ( - + 62 ) * 72
----
-4405

query I rowsort
SELECT ALL - NULLIF ( - 58, 61 * + + 48 ) AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT - 36 DIV - COUNT( * ) + - NULLIF ( + - 84, + - COUNT( * ) * - 77 + - 98 + - 38 )
----
120

skipif mysql # not compatible
query I rowsort label-3951
SELECT - 36 / - COUNT ( * ) + - NULLIF ( + - 84, + - COUNT ( * ) * - 77 + - 98 + - 38 )
----
120

query I rowsort
SELECT 6 * 64 AS col2
----
384

query I rowsort
SELECT ALL - 14 * + 61 AS col2
----
-854

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT + 36 DIV + 44 - 84 col0
----
-84

skipif mysql # not compatible
query I rowsort label-3954
SELECT + 36 / + 44 - 84 col0
----
-84

query I rowsort
SELECT 32 * - - 81
----
2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3956
SELECT COUNT( * ) * + + COALESCE ( + 69, - 14 * - + 2 * + - 83 * + + 73 + + 10, 24, + 89 ) * CAST( NULL AS SIGNED ) + + 32 / + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT COUNT ( * ) * + + COALESCE ( + 69, - 14 * - + 2 * + - 83 * + + 73 + + 10, 24, + 89 ) * CAST ( NULL AS INTEGER ) + + 32 / + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT DISTINCT - COUNT( ALL 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - COUNT ( ALL 90 )
----
-1

query I rowsort
SELECT 22 * 23 * - 75
----
-37950

query I rowsort
SELECT 31 - - 17 AS col0
----
48

query I rowsort
SELECT DISTINCT 84 * + 63 AS col0
----
5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3961
SELECT - 42 * - 61 + + 55, + COALESCE ( + 64, + 61, + COUNT( * ) + - - 61 DIV - CAST( NULL AS SIGNED ) ) + 76 * 46 AS col2
----
2617
3560

skipif mysql # not compatible
query II rowsort label-3961
SELECT - 42 * - 61 + + 55, + COALESCE ( + 64, + 61, + COUNT ( * ) + - - 61 / - CAST ( NULL AS INTEGER ) ) + 76 * 46 AS col2
----
2617
3560

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT ALL + 52 DIV 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL + 52 / 81 AS col1
----
0

query II rowsort
SELECT + + 83 AS col0, 24 + - NULLIF ( 90, 3 )
----
83
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT 27 * + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-3964
SELECT 27 * + + COUNT ( * )
----
27

query I rowsort
SELECT + + COALESCE ( - 25, + 82 * - + 0 + + - 28 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3966
SELECT - 87 AS col0, COUNT( * )
----
-87
1

skipif mysql # not compatible
query II rowsort label-3966
SELECT - 87 AS col0, COUNT ( * )
----
-87
1

query I rowsort
SELECT ALL 48 * - 1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3968
SELECT ALL + COUNT( * ) * 97 * + 23 + ( + + NULLIF ( - 16, + - 71 * CAST( NULL AS SIGNED ) * - NULLIF ( 59 * - 50, - COUNT( * ) + 53 * 50 ) + + SUM( DISTINCT CAST( + ( 52 ) AS SIGNED ) ) * 9 ) ) AS col1
----
2215

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL + COUNT ( * ) * 97 * + 23 + ( + + NULLIF ( - 16, + - 71 * CAST ( NULL AS INTEGER ) * - NULLIF ( 59 * - 50, - COUNT ( * ) + 53 * 50 ) + + SUM ( DISTINCT CAST ( + ( 52 ) AS INTEGER ) ) * 9 ) ) AS col1
----
2215

query I rowsort
SELECT ALL - + 29 + + 42 + 6 * - 7 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT + ( + ( + - 26 ) ) + + + 46 * + - COALESCE ( 58, + COUNT( * ) )
----
-2694

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + ( + ( + - 26 ) ) + + + 46 * + - COALESCE ( 58, + COUNT ( * ) )
----
-2694

query I rowsort
SELECT ALL 75 + 79
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL COUNT( * ) * + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL COUNT ( * ) * + - 31
----
-31

query I rowsort
SELECT - 58 * - ( + 41 ) * + 75 AS col2
----
178350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT 17 + - MAX( + - CAST( + 92 AS SIGNED ) ) * + COUNT( * ) + - - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-3974
SELECT 17 + - MAX ( + - CAST ( + 92 AS INTEGER ) ) * + COUNT ( * ) + - - COUNT ( * )
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-3975
SELECT - + 32, - COUNT( * ) AS col0
----
-32
-1

skipif mysql # not compatible
query II rowsort label-3975
SELECT - + 32, - COUNT ( * ) AS col0
----
-32
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3976
SELECT ALL + 76 + + COUNT( * ) + - + 7 + - - 41 * 33 DIV - 60 AS col1, + 21
----
48
21

skipif mysql # not compatible
query II rowsort label-3976
SELECT ALL + 76 + + COUNT ( * ) + - + 7 + - - 41 * 33 / - 60 AS col1, + 21
----
48
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT + COALESCE ( + 96, - CASE - 73 WHEN 71 THEN - 67 ELSE - ( - 44 ) * - 49 + 0 * 70 END * + 46 ) + - 71 DIV COALESCE ( - 80 * ( + 28 ) - - 55, 23 DIV 55, 99 )
----
96

skipif mysql # not compatible
query I rowsort label-3977
SELECT + COALESCE ( + 96, - CASE - 73 WHEN 71 THEN - 67 ELSE - ( - 44 ) * - 49 + 0 * 70 END * + 46 ) + - 71 / COALESCE ( - 80 * ( + 28 ) - - 55, 23 / 55, 99 )
----
96

query I rowsort
SELECT + 94 * - + 37
----
-3478

query I rowsort
SELECT ( + 3 ) + + 47
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT - + CAST( - 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-3980
SELECT - + CAST ( - 89 AS INTEGER )
----
89

query I rowsort
SELECT + 51 + - 99
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT DISTINCT 98 + 79 - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - ( MAX( + 46 ) ) * + + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT 98 + 79 - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - ( MAX ( + 46 ) ) * + + 71 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 92 * + 14 col1
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT 6 + - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3984
SELECT 6 + - COUNT ( * ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3985
SELECT - 21 * 21 * + + MAX( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT - 21 * 21 * + + MAX ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL COUNT( * ) * + 96 * ( - COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL COUNT ( * ) * + 96 * ( - COUNT ( * ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT NULLIF ( + 56, - COUNT( * ) - + 9 + - + 30 )
----
56

skipif mysql # not compatible
query I rowsort label-3987
SELECT NULLIF ( + 56, - COUNT ( * ) - + 9 + - + 30 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT CASE + MAX( - 83 ) WHEN - 2 / 27 * - 36 THEN NULL ELSE - + CAST( NULL AS SIGNED ) / + 90 + + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT CASE + MAX ( - 83 ) WHEN - 2 / 27 * - 36 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) / + 90 + + 69 END
----
NULL

query I rowsort
SELECT + 85 * 31 AS col1
----
2635

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - 61 * - - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3990
SELECT - 61 * - - COUNT ( * ) AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3991
SELECT ALL + CAST( 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL + CAST ( 23 AS INTEGER )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT COALESCE ( + 84, - - NULLIF ( + - 87, + ( 30 ) ) DIV - COUNT( ALL + 24 ) )
----
84

skipif mysql # not compatible
query I rowsort label-3992
SELECT COALESCE ( + 84, - - NULLIF ( + - 87, + ( 30 ) ) / - COUNT ( ALL + 24 ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3993
SELECT - 25 * + COALESCE ( + + COALESCE ( + COUNT( * ), 21, + 46 * + - 93 ), COUNT( * ) + 24, - 32 ) DIV + 58 + - 70 * + 98 col1
----
-6860

skipif mysql # not compatible
query I rowsort label-3993
SELECT - 25 * + COALESCE ( + + COALESCE ( + COUNT ( * ), 21, + 46 * + - 93 ), COUNT ( * ) + 24, - 32 ) / + 58 + - 70 * + 98 col1
----
-6860

query I rowsort
SELECT - 31 * + 8 AS col0
----
-248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3995
SELECT MAX( - 17 ) DIV + ( - 84 ) + + 61
----
61

skipif mysql # not compatible
query I rowsort label-3995
SELECT MAX ( - 17 ) / + ( - 84 ) + + 61
----
61

query I rowsort
SELECT - - ( - 61 ) + 56 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT + + COUNT( - 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3997
SELECT + + COUNT ( - 56 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT NULLIF ( + - 31, - CAST( NULL AS SIGNED ) * 3 / NULLIF ( + - 65, + 2 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-3998
SELECT NULLIF ( + - 31, - CAST ( NULL AS INTEGER ) * 3 / NULLIF ( + - 65, + 2 ) )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3999
SELECT ALL - SUM( DISTINCT - 1 ) * + COUNT( ALL - CAST( NULL AS SIGNED ) ) * - 98 + + SUM( DISTINCT - 3 ) * + 29
----
-87

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - SUM ( DISTINCT - 1 ) * + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - 98 + + SUM ( DISTINCT - 3 ) * + 29
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + 72 * 92 * + - MIN( ALL + 52 ) + + 75
----
-344373

skipif mysql # not compatible
query I rowsort label-4000
SELECT + 72 * 92 * + - MIN ( ALL + 52 ) + + 75
----
-344373

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4001
SELECT DISTINCT + - 64 * COALESCE ( - - CAST( NULL AS SIGNED ), COALESCE ( - + 54, + 26 DIV - + 26, - 96 ) ) AS col2
----
3456

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + - 64 * COALESCE ( - - CAST ( NULL AS INTEGER ), COALESCE ( - + 54, + 26 / - + 26, - 96 ) ) AS col2
----
3456

query I rowsort
SELECT ALL 59 + - + 36 * - 5
----
239

query I rowsort
SELECT DISTINCT - - 51 + - 76 col2
----
-25

query I rowsort
SELECT ALL - 5 + + 68
----
63

query I rowsort
SELECT - + 24 / + CASE + 9 WHEN - - 29 THEN - 58 END AS col1
----
NULL

query I rowsort
SELECT + 78 + 28 AS col2
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT ALL 48 * 45 * + CAST( NULL AS SIGNED ) + - 26 + + CAST( - 95 AS SIGNED ) * + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL 48 * 45 * + CAST ( NULL AS INTEGER ) + - 26 + + CAST ( - 95 AS INTEGER ) * + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT + MIN( - 97 ) + - 12
----
-109

skipif mysql # not compatible
query I rowsort label-4008
SELECT + MIN ( - 97 ) + - 12
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT - + MAX( 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4009
SELECT - + MAX ( 42 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4010
SELECT DISTINCT + COUNT( * ) * + - 48 + CAST( NULL AS SIGNED ) + + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + COUNT ( * ) * + - 48 + CAST ( NULL AS INTEGER ) + + 18 AS col1
----
NULL

query I rowsort
SELECT ALL 75 - - 5 AS col2
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-4012
SELECT + 45 DIV - - 47 AS col0, 7 DIV + 8 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-4012
SELECT + 45 / - - 47 AS col0, 7 / + 8 AS col2
----
0
0

query I rowsort
SELECT ALL - 53 * - + 2 * 39 - - - 28 AS col2
----
4106

onlyif mysql # aggregate syntax: 
query II rowsort label-4014
SELECT + ( + COUNT( * ) ) * - 67 col0, COALESCE ( + 27, + COUNT( * ) + 40 ) AS col1
----
-67
27

skipif mysql # not compatible
query II rowsort label-4014
SELECT + ( + COUNT ( * ) ) * - 67 col0, COALESCE ( + 27, + COUNT ( * ) + 40 ) AS col1
----
-67
27

query I rowsort
SELECT DISTINCT 51 * + 94 AS col0
----
4794

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4016
SELECT ALL 72 col2, + 23 DIV + 58 AS col0, 89 + + + 88 + - CAST( NULL AS SIGNED )
----
72
0
NULL

skipif mysql # not compatible
query III rowsort label-4016
SELECT ALL 72 col2, + 23 / + 58 AS col0, 89 + + + 88 + - CAST ( NULL AS INTEGER )
----
72
0
NULL

query I rowsort
SELECT + 74 + - - 94 AS col2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4018
SELECT - CASE + - ( + 55 ) WHEN + - COUNT( * ) - - 12 THEN - 95 * 80 * - + NULLIF ( - 33, 95 / ( 85 * - 48 ) ) WHEN 70 + + 0 THEN - 26 * ( - MAX( ALL - 85 ) * - CAST( 33 + 83 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT - CASE + - ( + 55 ) WHEN + - COUNT ( * ) - - 12 THEN - 95 * 80 * - + NULLIF ( - 33, 95 / ( 85 * - 48 ) ) WHEN 70 + + 0 THEN - 26 * ( - MAX ( ALL - 85 ) * - CAST ( 33 + 83 AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT + 61 * - 76
----
-4636

query I rowsort
SELECT + ( + + 65 )
----
65

query I rowsort
SELECT ALL + 34 * + 68 AS col2
----
2312

query I rowsort
SELECT ALL + 25 * + 58 AS col0
----
1450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4023
SELECT + COUNT( * ) * + CAST( 94 AS SIGNED ) DIV + 69 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4023
SELECT + COUNT ( * ) * + CAST ( 94 AS INTEGER ) / + 69 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT ALL CAST( NULL AS SIGNED ) * - 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL CAST ( NULL AS INTEGER ) * - 64 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + CASE 96 WHEN + - 31 + + + SUM( - 50 ) THEN NULL ELSE - + 6 END AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4025
SELECT + CASE 96 WHEN + - 31 + + + SUM ( - 50 ) THEN NULL ELSE - + 6 END AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4026
SELECT ALL + 43 DIV + + COUNT( * ) + 74
----
117

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + 43 / + + COUNT ( * ) + 74
----
117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4027
SELECT + 78 - - 56 DIV + - 69, - 45 - 7 + - + 61 * CASE - - CAST( + 48 AS SIGNED ) WHEN + 51 THEN - 99 WHEN + CAST( 39 AS SIGNED ) THEN + 72 ELSE NULL END + 46 * 56 AS col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-4027
SELECT + 78 - - 56 / + - 69, - 45 - 7 + - + 61 * CASE - - CAST ( + 48 AS INTEGER ) WHEN + 51 THEN - 99 WHEN + CAST ( 39 AS INTEGER ) THEN + 72 ELSE NULL END + 46 * 56 AS col1
----
78
NULL

query I rowsort
SELECT + 95 * - 29
----
-2755

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT + MIN( + + 70 ) * + 64 AS col2, 68 AS col1
----
4480
68

skipif mysql # not compatible
query II rowsort label-4029
SELECT + MIN ( + + 70 ) * + 64 AS col2, 68 AS col1
----
4480
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4030
SELECT + - CAST( - 73 AS SIGNED ) * + COUNT( * ) * - - 59 + + + 54 + 34 * 69 * - 84 + + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT + - CAST ( - 73 AS INTEGER ) * + COUNT ( * ) * - - 59 + + + 54 + 34 * 69 * - 84 + + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4031
SELECT DISTINCT + + 64 * + CAST( - MIN( ALL - + 38 ) AS SIGNED ) * + 70 + + 44 * + 15 + - 55 + + 65 * - 56 + - 39 AS col2
----
167166

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT + + 64 * + CAST ( - MIN ( ALL - + 38 ) AS INTEGER ) * + 70 + + 44 * + 15 + - 55 + + 65 * - 56 + - 39 AS col2
----
167166

query I rowsort
SELECT - + 89 * 46 AS col2
----
-4094

query I rowsort
SELECT - + 31 - + 68
----
-99

query I rowsort
SELECT ALL 49 * + - 96 + + + ( + - 36 )
----
-4740

query I rowsort
SELECT + ( 52 ) AS col2
----
52

query I rowsort
SELECT + 79 * + 22 * + 60
----
104280

query I rowsort
SELECT - 49 * 75 AS col0
----
-3675

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT + - 46 AS col0, COUNT( * )
----
-46
1

skipif mysql # not compatible
query II rowsort label-4038
SELECT + - 46 AS col0, COUNT ( * )
----
-46
1

query I rowsort
SELECT - 67 * + 75
----
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL + - MIN( ALL - 74 ) * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + - MIN ( ALL - 74 ) * + COUNT ( * )
----
74

query II rowsort
SELECT + 95 AS col2, + 2 AS col0
----
95
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4042
SELECT DISTINCT + COALESCE ( 75, 77, - SUM( DISTINCT + 19 ) + + 23 DIV 43 )
----
75

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT + COALESCE ( 75, 77, - SUM ( DISTINCT + 19 ) + + 23 / 43 )
----
75

query I rowsort
SELECT - + 87 - 45 + + 32 AS col1
----
-100

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4044
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, - 26 + + 68 DIV + 87
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-4044
SELECT ALL + CAST ( NULL AS REAL ) AS col2, - 26 + + 68 / + 87
----
NULL
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4045
SELECT ALL - 24 * - + 16 + COALESCE ( ( - 48 ), - + MIN( ALL CAST( NULL AS SIGNED ) ) - COUNT( * ) * NULLIF ( + 30, - 75 + + COUNT( * ) * - 49 ) ) AS col2
----
336

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL - 24 * - + 16 + COALESCE ( ( - 48 ), - + MIN ( ALL CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * NULLIF ( + 30, - 75 + + COUNT ( * ) * - 49 ) ) AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL - COALESCE ( + 77, + ( - COUNT( * ) ) + + - 47 ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - COALESCE ( + 77, + ( - COUNT ( * ) ) + + - 47 ) col1
----
-77

query I rowsort
SELECT 77 + + 72
----
149

query I rowsort
SELECT 81 * - - 42 AS col1
----
3402

query I rowsort
SELECT 87 + 53 + 7 AS col1
----
147

query I rowsort
SELECT 96 + 5 * + 1
----
101

query II rowsort
SELECT - 74, - 65 * - + 14 AS col1
----
-74
910

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT ALL - 65 DIV 20 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL - 65 / 20 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4053
SELECT 12 DIV + + CAST( + 92 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT 12 / + + CAST ( + 92 AS INTEGER ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT ALL CAST( NULL AS SIGNED ) * CAST( - 82 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( - 82 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT COUNT( * ) + - - 85 + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT COUNT ( * ) + - - 85 + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 38 * + - 64 col2
----
2432

query I rowsort
SELECT ( + + 5 ) + - 75 - - + 8
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT ALL - 92 AS col0, + COUNT( * )
----
-92
1

skipif mysql # not compatible
query II rowsort label-4058
SELECT ALL - 92 AS col0, + COUNT ( * )
----
-92
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT 3 DIV 9 + 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4059
SELECT 3 / 9 + 27 AS col2
----
27

query II rowsort
SELECT + 6, 31 + - 52 AS col0
----
6
-21

query I rowsort
SELECT 73 * + + 79
----
5767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4062
SELECT DISTINCT 84 + - 26 col2, + 51 - + CASE - NULLIF ( - ( + 20 ), ( + CAST( + - 30 AS SIGNED ) ) * - 46 + + 24 ) WHEN + COUNT( * ) * 52 + - 70 THEN COUNT( DISTINCT + 17 ) WHEN + 83 / - COUNT( * ) + CAST( NULL AS SIGNED ) / + 78 THEN NULL END col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-4062
SELECT DISTINCT 84 + - 26 col2, + 51 - + CASE - NULLIF ( - ( + 20 ), ( + CAST ( + - 30 AS INTEGER ) ) * - 46 + + 24 ) WHEN + COUNT ( * ) * 52 + - 70 THEN COUNT ( DISTINCT + 17 ) WHEN + 83 / - COUNT ( * ) + CAST ( NULL AS INTEGER ) / + 78 THEN NULL END col1
----
58
NULL

query I rowsort
SELECT ALL + 40 + 82
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4064
SELECT DISTINCT - + 62 AS col1, - CAST( - 47 AS SIGNED ) * CAST( NULL AS DECIMAL ) + 9 * + COALESCE ( + 83, NULLIF ( - 14, MIN( DISTINCT 33 ) * - 66 ) + 42 / ( 57 * + 66 ), + 42 * + AVG ( - ( + 92 ) ) + + 22 * + 27 )
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-4064
SELECT DISTINCT - + 62 AS col1, - CAST ( - 47 AS INTEGER ) * CAST ( NULL AS REAL ) + 9 * + COALESCE ( + 83, NULLIF ( - 14, MIN ( DISTINCT 33 ) * - 66 ) + 42 / ( 57 * + 66 ), + 42 * + AVG ( - ( + 92 ) ) + + 22 * + 27 )
----
-62
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4065
SELECT ALL ( + + 56 ) + + 13 DIV - 65 AS col0, - COUNT( * ) AS col1
----
56
-1

skipif mysql # not compatible
query II rowsort label-4065
SELECT ALL ( + + 56 ) + + 13 / - 65 AS col0, - COUNT ( * ) AS col1
----
56
-1

query I rowsort
SELECT - 55 * - 2 * + 91 AS col2
----
10010

onlyif mysql # aggregate syntax: 
query II rowsort label-4067
SELECT - MIN( + 44 ) + - COUNT( ALL - 98 ) AS col2, ( + 36 ) AS col2
----
-45
36

skipif mysql # not compatible
query II rowsort label-4067
SELECT - MIN ( + 44 ) + - COUNT ( ALL - 98 ) AS col2, ( + 36 ) AS col2
----
-45
36

query I rowsort
SELECT + - 84 col0
----
-84

query II rowsort
SELECT + 79, - 70 col2
----
79
-70

query I rowsort
SELECT + 47 * - 81 * - 6 + - 73
----
22769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4071
SELECT 74 * - - NULLIF ( - CAST( - + COUNT( * ) AS SIGNED ), ( + ( - ( + 46 ) ) ) * + COUNT( * ) + - + 73 + + + 87 / + 87 )
----
74

skipif mysql # not compatible
query I rowsort label-4071
SELECT 74 * - - NULLIF ( - CAST ( - + COUNT ( * ) AS INTEGER ), ( + ( - ( + 46 ) ) ) * + COUNT ( * ) + - + 73 + + + 87 / + 87 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT + - COUNT( 38 ) AS col0, + 84 * SUM( + + 14 )
----
-1
1176

skipif mysql # not compatible
query II rowsort label-4072
SELECT + - COUNT ( 38 ) AS col0, + 84 * SUM ( + + 14 )
----
-1
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT - - COUNT( 17 )
----
1

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - - COUNT ( 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT + 25 * - CASE - - 54 WHEN - 54 * + + 5 THEN 34 WHEN - COUNT( * ) * - 14 THEN NULL ELSE + 79 + 52 END * + + 55 + - 41
----
-180166

skipif mysql # not compatible
query I rowsort label-4074
SELECT + 25 * - CASE - - 54 WHEN - 54 * + + 5 THEN 34 WHEN - COUNT ( * ) * - 14 THEN NULL ELSE + 79 + 52 END * + + 55 + - 41
----
-180166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT ALL - + ( MIN( DISTINCT CAST( - - 29 AS SIGNED ) ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL - + ( MIN ( DISTINCT CAST ( - - 29 AS INTEGER ) ) ) AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4076
SELECT - CAST( NULL AS SIGNED ) + - MIN( 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT - CAST ( NULL AS INTEGER ) + - MIN ( 77 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL - ( - 13 ) * + CASE + + 66 WHEN - + 14 - COUNT( * ) THEN + 2 + - 74 + + ( - 43 ) + + COALESCE ( + 89, SUM( ALL - 0 ) / 45 ) / 57 WHEN + 69 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL - ( - 13 ) * + CASE + + 66 WHEN - + 14 - COUNT ( * ) THEN + 2 + - 74 + + ( - 43 ) + + COALESCE ( + 89, SUM ( ALL - 0 ) / 45 ) / 57 WHEN + 69 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 30 + - 96 + + 96 AS col2
----
30

query II rowsort
SELECT ALL 47 AS col1, 54 AS col2
----
47
54

query II rowsort
SELECT - 58, 49 AS col2
----
-58
49

query II rowsort
SELECT - + 76 col1, 69
----
-76
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4082
SELECT 22 + + 83 + + ( 40 ) * - 88 * + NULLIF ( CAST( NULL AS SIGNED ), NULLIF ( + COUNT( * ), - 90 ) ) col0, 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-4082
SELECT 22 + + 83 + + ( 40 ) * - 88 * + NULLIF ( CAST ( NULL AS INTEGER ), NULLIF ( + COUNT ( * ), - 90 ) ) col0, 75
----
NULL
75

query I rowsort
SELECT 26 * - 54 AS col1
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL - MAX( 76 ) * - + 83 AS col1
----
6308

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - MAX ( 76 ) * - + 83 AS col1
----
6308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4085
SELECT 32 + + + 74 DIV - COUNT( * ) + - - 69 - + 82
----
-55

skipif mysql # not compatible
query I rowsort label-4085
SELECT 32 + + + 74 / - COUNT ( * ) + - - 69 - + 82
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT 3 * - - NULLIF ( ( 38 ), + 37 * + 52 * - 59 * - COUNT( * ) + SUM( + + 3 ) / + 11 * + - COALESCE ( MAX( - 15 ), 83 ) )
----
114

skipif mysql # not compatible
query I rowsort label-4086
SELECT 3 * - - NULLIF ( ( 38 ), + 37 * + 52 * - 59 * - COUNT ( * ) + SUM ( + + 3 ) / + 11 * + - COALESCE ( MAX ( - 15 ), 83 ) )
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4087
SELECT DISTINCT - CAST( COALESCE ( 42, - + 43 ) AS SIGNED ) * + 21 col2, - COALESCE ( 49, 77, - 62 ) + - + 82 DIV - 1 + 26 + + COUNT( * ) * 72 AS col0
----
-882
131

skipif mysql # not compatible
query II rowsort label-4087
SELECT DISTINCT - CAST ( COALESCE ( 42, - + 43 ) AS INTEGER ) * + 21 col2, - COALESCE ( 49, 77, - 62 ) + - + 82 / - 1 + 26 + + COUNT ( * ) * 72 AS col0
----
-882
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT 16 * NULLIF ( 26, CASE 49 WHEN COALESCE ( COUNT( * ), + 39 + - - 33 ) THEN + 22 * 41 * COUNT( * ) + + 67 WHEN - ( COUNT( * ) ) + COUNT( * ) THEN NULL WHEN - ( 1 ) THEN NULL END )
----
416

skipif mysql # not compatible
query I rowsort label-4088
SELECT 16 * NULLIF ( 26, CASE 49 WHEN COALESCE ( COUNT ( * ), + 39 + - - 33 ) THEN + 22 * 41 * COUNT ( * ) + + 67 WHEN - ( COUNT ( * ) ) + COUNT ( * ) THEN NULL WHEN - ( 1 ) THEN NULL END )
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT - MIN( - 35 ) + - NULLIF ( 20, + COUNT( DISTINCT + 68 ) ) * - 33
----
695

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT - MIN ( - 35 ) + - NULLIF ( 20, + COUNT ( DISTINCT + 68 ) ) * - 33
----
695

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT COUNT( * ) * - + 77
----
-77

skipif mysql # not compatible
query I rowsort label-4090
SELECT COUNT ( * ) * - + 77
----
-77

query I rowsort
SELECT 41 * + + 45 AS col1
----
1845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4092
SELECT 12 - - ( - 35 ) AS col0, + COUNT( * ) * + 60 * + 47 / - MIN( + - CAST( NULL AS SIGNED ) ) + + - SUM( ALL + 87 )
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-4092
SELECT 12 - - ( - 35 ) AS col0, + COUNT ( * ) * + 60 * + 47 / - MIN ( + - CAST ( NULL AS INTEGER ) ) + + - SUM ( ALL + 87 )
----
-23
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT ALL COUNT( DISTINCT + - 69 ) AS col2, 99 + + - 53
----
1
46

skipif mysql # not compatible
query II rowsort label-4093
SELECT ALL COUNT ( DISTINCT + - 69 ) AS col2, 99 + + - 53
----
1
46

query I rowsort
SELECT 28 * - + 86 AS col1
----
-2408

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT 66 * - 73 AS col2, CASE - + 93 WHEN - 17 THEN NULL ELSE MIN( ALL - 17 ) END
----
-4818
-17

skipif mysql # not compatible
query II rowsort label-4095
SELECT 66 * - 73 AS col2, CASE - + 93 WHEN - 17 THEN NULL ELSE MIN ( ALL - 17 ) END
----
-4818
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT ALL - 35 + 77 + + ( - 98 ) DIV 30 * ( + - COUNT( * ) ) + - NULLIF ( COUNT( * ), + + 74 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - 35 + 77 + + ( - 98 ) / 30 * ( + - COUNT ( * ) ) + - NULLIF ( COUNT ( * ), + + 74 ) AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT + 99 DIV - + 44 - - - 59 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4097
SELECT + 99 / - + 44 - - - 59 AS col1
----
-61

query I rowsort
SELECT ALL - - 12 col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4099
SELECT + + COUNT( * ) DIV - COUNT( * ) + - 61
----
-62

skipif mysql # not compatible
query I rowsort label-4099
SELECT + + COUNT ( * ) / - COUNT ( * ) + - 61
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT DISTINCT - - COALESCE ( 79, + CAST( NULL AS SIGNED ) ) * 50 + + CAST( NULL AS SIGNED ) + + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT - - COALESCE ( 79, + CAST ( NULL AS INTEGER ) ) * 50 + + CAST ( NULL AS INTEGER ) + + 66 AS col1
----
NULL

query I rowsort
SELECT ALL - - 25 col1
----
25

query I rowsort
SELECT ALL + 31 * + 80 + - 37 - - 28 - + 72 AS col1
----
2399

query I rowsort
SELECT - 52 + - - 63 AS col1
----
11

query I rowsort
SELECT 96 * 50 AS col0
----
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4105
SELECT - 78 * 91 DIV - ( CAST( COUNT( * ) AS SIGNED ) ) * COUNT( + - 21 ) + + - ( + COUNT( * ) )
----
7097

skipif mysql # not compatible
query I rowsort label-4105
SELECT - 78 * 91 / - ( CAST ( COUNT ( * ) AS INTEGER ) ) * COUNT ( + - 21 ) + + - ( + COUNT ( * ) )
----
7097

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4106
SELECT COUNT( CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4106
SELECT COUNT ( CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT ALL - + 19 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4108
SELECT DISTINCT - COUNT( * ) * + NULLIF ( - NULLIF ( COALESCE ( + 78, - + 57, 57 ), + + COALESCE ( + 57, - 35 * 20 * + 82 + MAX( ALL - 89 ) / 76, 81 + 39 * 65 ) * + 87 ), + CAST( + 12 AS SIGNED ) ) + 48 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( - NULLIF ( COALESCE ( + 78, - + 57, 57 ), + + COALESCE ( + 57, - 35 * 20 * + 82 + MAX ( ALL - 89 ) / 76, 81 + 39 * 65 ) * + 87 ), + CAST ( + 12 AS INTEGER ) ) + 48 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4109
SELECT DISTINCT - + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT - + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 96 col1
----
-96

query I rowsort
SELECT + 62 - + 65 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL COUNT( * ) + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL COUNT ( * ) + - 17
----
-16

query I rowsort
SELECT + 39 - - 18 AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4114
SELECT DISTINCT + CASE 86 WHEN - - 41 + - 39 THEN NULL WHEN + 75 * COUNT( * ) * 96 THEN NULL ELSE - + 28 * - 9 * + CAST( NULL AS SIGNED ) * - + 95 - - - 40 + - + 79 END / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + CASE 86 WHEN - - 41 + - 39 THEN NULL WHEN + 75 * COUNT ( * ) * 96 THEN NULL ELSE - + 28 * - 9 * + CAST ( NULL AS INTEGER ) * - + 95 - - - 40 + - + 79 END / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 38 + 70 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT - NULLIF ( COALESCE ( + COUNT( * ), - - 72 ), 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-4116
SELECT - NULLIF ( COALESCE ( + COUNT ( * ), - - 72 ), 90 )
----
-1

query I rowsort
SELECT ALL 21 + 99 col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-4118
SELECT + 85 DIV - - 24
----
3

skipif mysql # not compatible
query I rowsort label-4118
SELECT + 85 / - - 24
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4119
SELECT DISTINCT 83 AS col2, 26 DIV - 62 AS col0
----
83
0

skipif mysql # not compatible
query II rowsort label-4119
SELECT DISTINCT 83 AS col2, 26 / - 62 AS col0
----
83
0

query I rowsort
SELECT + 79 + 0 AS col2
----
79

query I rowsort
SELECT - 85 - - CASE - 79 WHEN + 75 THEN NULL ELSE - 18 * 63 END * NULLIF ( 20, + 9 ) AS col1
----
-22765

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL COUNT( + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL COUNT ( + 45 )
----
1

query II rowsort
SELECT + 55 + + COALESCE ( 32, - CASE + - 84 WHEN + 27 THEN - - 20 END, + 45 ) col1, - 37
----
87
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4124
SELECT - ( + 13 ) - - NULLIF ( + 40, + 39 * + 26 + 96 + 90 ) * + 14 + + 94 + + - NULLIF ( + COUNT( * ), - - 47 ) + 39 * - NULLIF ( + 48 DIV + 90, 88 * + 29 - + 38 ) * 47 AS col1
----
640

skipif mysql # not compatible
query I rowsort label-4124
SELECT - ( + 13 ) - - NULLIF ( + 40, + 39 * + 26 + 96 + 90 ) * + 14 + + 94 + + - NULLIF ( + COUNT ( * ), - - 47 ) + 39 * - NULLIF ( + 48 / + 90, 88 * + 29 - + 38 ) * 47 AS col1
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL - 3 + ( + SUM( + + 76 ) ) + MIN( + 78 ) + 55 + + 88 AS col2
----
294

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL - 3 + ( + SUM ( + + 76 ) ) + MIN ( + 78 ) + 55 + + 88 AS col2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL NULLIF ( + 31, + COUNT( * ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL NULLIF ( + 31, + COUNT ( * ) ) AS col0
----
31

query I rowsort
SELECT ALL CASE 17 WHEN - 15 * - 77 * + - 27 THEN + 36 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - COUNT( * ) + - + 82
----
-83

skipif mysql # not compatible
query I rowsort label-4128
SELECT - COUNT ( * ) + - + 82
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL + 3 - - COALESCE ( - + COUNT( * ), + 18 )
----
2

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL + 3 - - COALESCE ( - + COUNT ( * ), + 18 )
----
2

query I rowsort
SELECT - 84 + - 98 * 95 * 37
----
-344554

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + ( MAX( - 97 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-4131
SELECT + ( MAX ( - 97 ) )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT - 73 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT - 73 / + 87
----
0

query I rowsort
SELECT ALL + + ( + - 22 ) col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT ALL - MIN( DISTINCT 51 ) * 96
----
-4896

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL - MIN ( DISTINCT 51 ) * 96
----
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL + COALESCE ( - + 93, - NULLIF ( - + 0, 20 ), - 30 * + - 85 + - 65 + SUM( + ( - 99 ) ) ) * - 64 * - - 81 + 40
----
482152

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL + COALESCE ( - + 93, - NULLIF ( - + 0, 20 ), - 30 * + - 85 + - 65 + SUM ( + ( - 99 ) ) ) * - 64 * - - 81 + 40
----
482152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4136
SELECT - - 31 DIV + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4136
SELECT - - 31 / + + COUNT ( * )
----
31

query I rowsort
SELECT - - 25 * - ( - 96 ) + + 27 - - + 74 AS col1
----
2501

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT + + 50 * - + COUNT( * ) * - ( + MAX( - 57 ) ) + + 15 + + 28 AS col1
----
-2807

skipif mysql # not compatible
query I rowsort label-4138
SELECT + + 50 * - + COUNT ( * ) * - ( + MAX ( - 57 ) ) + + 15 + + 28 AS col1
----
-2807

onlyif mysql # aggregate syntax: 
query II rowsort label-4139
SELECT ALL + + 92, - COUNT( * ) + + 52 AS col2
----
92
51

skipif mysql # not compatible
query II rowsort label-4139
SELECT ALL + + 92, - COUNT ( * ) + + 52 AS col2
----
92
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT - 62 + 85 + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT - 62 + 85 + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4141
SELECT 34 * + 42 * - 3 * - 0 * + 70 - + 34 + 64 * 39, COALESCE ( - - NULLIF ( + 19, 5 - - - COUNT( ALL + 20 ) ), 17 ) col1
----
2462
19

skipif mysql # not compatible
query II rowsort label-4141
SELECT 34 * + 42 * - 3 * - 0 * + 70 - + 34 + 64 * 39, COALESCE ( - - NULLIF ( + 19, 5 - - - COUNT ( ALL + 20 ) ), 17 ) col1
----
2462
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT CASE + 85 WHEN - COUNT( * ) THEN NULL WHEN + NULLIF ( 49, - 51 * 67 * + 30 * + 93 - + 87 + + COUNT( * ) + - - 96 - 3 * - 76 ) + 45 / - COUNT( * ) THEN COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT CASE + 85 WHEN - COUNT ( * ) THEN NULL WHEN + NULLIF ( 49, - 51 * 67 * + 30 * + 93 - + 87 + + COUNT ( * ) + - - 96 - 3 * - 76 ) + 45 / - COUNT ( * ) THEN COUNT ( * ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4143
SELECT ALL - 82 * + - 9 + - 77 / + NULLIF ( CAST( NULL AS SIGNED ), - 36 ) + - + NULLIF ( - 81, - COUNT( * ) * - 58 / + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL - 82 * + - 9 + - 77 / + NULLIF ( CAST ( NULL AS INTEGER ), - 36 ) + - + NULLIF ( - 81, - COUNT ( * ) * - 58 / + 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL - 66 * + + COUNT( * ) + 6 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL - 66 * + + COUNT ( * ) + 6 AS col0
----
-60

query II rowsort
SELECT + 91 + 45, 4 AS col0
----
136
4

query I rowsort
SELECT - ( 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + 67 * - + 62 + + + 57 + 69 - + + COUNT( * ) + + - ( - + 86 )
----
-3943

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + 67 * - + 62 + + + 57 + 69 - + + COUNT ( * ) + + - ( - + 86 )
----
-3943

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT + 79 * + SUM( ALL - 91 ) * + - 27 AS col0
----
194103

skipif mysql # not compatible
query I rowsort label-4148
SELECT + 79 * + SUM ( ALL - 91 ) * + - 27 AS col0
----
194103

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT + COUNT( * ) * - 80 + + 90 + + COUNT( * ) * 89 * - COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4149
SELECT + COUNT ( * ) * - 80 + + 90 + + COUNT ( * ) * 89 * - COUNT ( * ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT MAX( ALL - 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4150
SELECT MAX ( ALL - 58 ) AS col1
----
-58

query I rowsort
SELECT - NULLIF ( 40, - 49 ) AS col1
----
-40

query I rowsort
SELECT ALL 67 + - 95 + 22 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT MAX( 23 )
----
23

skipif mysql # not compatible
query I rowsort label-4153
SELECT MAX ( 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT + NULLIF ( - + COUNT( DISTINCT + 62 ), + + 62 ) * 42 * 87 + + 52
----
-3602

skipif mysql # not compatible
query I rowsort label-4154
SELECT + NULLIF ( - + COUNT ( DISTINCT + 62 ), + + 62 ) * 42 * 87 + + 52
----
-3602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT DISTINCT CAST( + - 4 AS SIGNED ) - - 12 * + 93 * - - 65 * - 89 * COUNT( DISTINCT + + 61 ) AS col0
----
-6456064

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT CAST ( + - 4 AS INTEGER ) - - 12 * + 93 * - - 65 * - 89 * COUNT ( DISTINCT + + 61 ) AS col0
----
-6456064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4156
SELECT ALL + COUNT( * ) DIV CAST( + COUNT( * ) AS SIGNED ) * SUM( DISTINCT - ( - 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) * SUM ( DISTINCT - ( - 21 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT + 90 - + NULLIF ( - 35, + 61 ) + + - COUNT( * ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + 90 - + NULLIF ( - 35, + 61 ) + + - COUNT ( * ) AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT + 19 * + - COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4158
SELECT + 19 * + - COUNT ( * ) AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4159
SELECT - CASE 17 WHEN - 12 THEN NULL WHEN - 35 + 66 * + COUNT( * ) THEN - 35 * + + 11 WHEN MAX( - CAST( 29 AS DECIMAL ) ) THEN 59 END * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4159
SELECT - CASE 17 WHEN - 12 THEN NULL WHEN - 35 + 66 * + COUNT ( * ) THEN - 35 * + + 11 WHEN MAX ( - CAST ( 29 AS REAL ) ) THEN 59 END * - 1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4160
SELECT + - 87 - - - 29 + 31 - + COALESCE ( 32, 76 DIV + CASE - 41 WHEN - 53 DIV COALESCE ( + 73, - COUNT( * ) + - 20 ) THEN + AVG ( + 39 ) WHEN + COUNT( * ) THEN - 49 END - 1 ) + + 53 * ( - COUNT( * ) )
----
-170

skipif mysql # not compatible
query I rowsort label-4160
SELECT + - 87 - - - 29 + 31 - + COALESCE ( 32, 76 / + CASE - 41 WHEN - 53 / COALESCE ( + 73, - COUNT ( * ) + - 20 ) THEN + AVG ( + 39 ) WHEN + COUNT ( * ) THEN - 49 END - 1 ) + + 53 * ( - COUNT ( * ) )
----
-170

query I rowsort
SELECT DISTINCT - COALESCE ( 69, 96, - 20 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL + 1 * - 52 * + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + 1 * - 52 * + COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + 43 * - 39 * + 15 + - 90 + - CASE 18 WHEN - + 64 * - 98 THEN - 38 WHEN 19 THEN NULL WHEN + - NULLIF ( ( + 33 ), + 55 ) * MAX( 88 ) - - 90 * - 8 THEN NULL END + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT + 43 * - 39 * + 15 + - 90 + - CASE 18 WHEN - + 64 * - 98 THEN - 38 WHEN 19 THEN NULL WHEN + - NULLIF ( ( + 33 ), + 55 ) * MAX ( 88 ) - - 90 * - 8 THEN NULL END + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL + ( MAX( 20 ) ) col0
----
20

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + ( MAX ( 20 ) ) col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT - - COUNT( * ) - - - 36 + + 36
----
1

skipif mysql # not compatible
query I rowsort label-4165
SELECT - - COUNT ( * ) - - - 36 + + 36
----
1

query I rowsort
SELECT ALL - ( 61 ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4167
SELECT + + CAST( - 16 AS SIGNED ) col2, + 88
----
-16
88

skipif mysql # not compatible
query II rowsort label-4167
SELECT + + CAST ( - 16 AS INTEGER ) col2, + 88
----
-16
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT - COALESCE ( + 87, + 34, 66 ) DIV + 51 - + + 72
----
-73

skipif mysql # not compatible
query I rowsort label-4168
SELECT - COALESCE ( + 87, + 34, 66 ) / + 51 - + + 72
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT 69 * + COUNT( * ) * - - 17 AS col2
----
1173

skipif mysql # not compatible
query I rowsort label-4169
SELECT 69 * + COUNT ( * ) * - - 17 AS col2
----
1173

query I rowsort
SELECT DISTINCT - 83 + + - 31
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL + - 60 * 75 * + + COUNT( * ) * 61 col1
----
-274500

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + - 60 * 75 * + + COUNT ( * ) * 61 col1
----
-274500

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - CASE 25 WHEN 53 * 37 * - COUNT( DISTINCT + 67 ) * + - NULLIF ( 74, - 1 ) - 14 THEN + + 26 + + 91 WHEN + 67 * + - 8 THEN NULL END / 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT - CASE 25 WHEN 53 * 37 * - COUNT ( DISTINCT + 67 ) * + - NULLIF ( 74, - 1 ) - 14 THEN + + 26 + + 91 WHEN + 67 * + - 8 THEN NULL END / 39 AS col0
----
NULL

query I rowsort
SELECT ALL + 33 + - 53
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT 32 DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT 32 / 63 AS col2
----
0

query I rowsort
SELECT 12 - 15 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4176
SELECT 39 * - ( + COUNT( * ) ) DIV - COUNT( * ) - - 34, - 24 AS col2
----
73
-24

skipif mysql # not compatible
query II rowsort label-4176
SELECT 39 * - ( + COUNT ( * ) ) / - COUNT ( * ) - - 34, - 24 AS col2
----
73
-24

query I rowsort
SELECT ALL + 2 + - - 53 AS col1
----
55

query I rowsort
SELECT DISTINCT + ( - 99 ) * 38
----
-3762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4179
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 54
----
NULL

query I rowsort
SELECT ALL 20 * + + 96
----
1920

query II rowsort
SELECT - 44 AS col2, 57
----
-44
57

query I rowsort
SELECT DISTINCT + 85 * + 37
----
3145

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT 46 + - 47 - + - 36 * + COUNT( * ) * + 69 * - - 5 - 98 + - 94 * - - 40 AS col0
----
8561

skipif mysql # not compatible
query I rowsort label-4183
SELECT 46 + - 47 - + - 36 * + COUNT ( * ) * + 69 * - - 5 - 98 + - 94 * - - 40 AS col0
----
8561

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT 82 * - + COUNT( * ) * + + MIN( - + 20 )
----
1640

skipif mysql # not compatible
query I rowsort label-4184
SELECT 82 * - + COUNT ( * ) * + + MIN ( - + 20 )
----
1640

query I rowsort
SELECT 4 + + 40
----
44

query I rowsort
SELECT - 88 - + + 99 * + 64
----
-6424

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT NULLIF ( 65, - 82 ) DIV ( 6 )
----
10

skipif mysql # not compatible
query I rowsort label-4187
SELECT NULLIF ( 65, - 82 ) / ( 6 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4188
SELECT ALL - + 71 * + - 75 * COALESCE ( + COALESCE ( 66, - CAST( NULL AS SIGNED ) + NULLIF ( - COUNT( * ), - 95 ) ), + - 63 * 51 DIV - - 12 DIV + + 33 + - 69 + + + 52 )
----
351450

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - + 71 * + - 75 * COALESCE ( + COALESCE ( 66, - CAST ( NULL AS INTEGER ) + NULLIF ( - COUNT ( * ), - 95 ) ), + - 63 * 51 / - - 12 / + + 33 + - 69 + + + 52 )
----
351450

query I rowsort
SELECT DISTINCT - 2 * + 43
----
-86

query II rowsort
SELECT ALL ( ( - + 63 ) ), 98 * - - 28 * 18 AS col1
----
-63
49392

query II rowsort
SELECT + 55 + 56 - - 95, + 63 AS col1
----
206
63

query I rowsort
SELECT 74 + 14 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
SELECT DISTINCT + 36 DIV + 55 * + + 25
----
0

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT + 36 / + 55 * + + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL COUNT( * ) + + + NULLIF ( - 35, COUNT( * ) * + 75 ) * - + CASE 86 WHEN + 7 THEN NULL ELSE + - 29 + 17 END * 30
----
-12599

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL COUNT ( * ) + + + NULLIF ( - 35, COUNT ( * ) * + 75 ) * - + CASE 86 WHEN + 7 THEN NULL ELSE + - 29 + 17 END * 30
----
-12599

onlyif mysql # DIV for integer division: 
query II rowsort label-4195
SELECT + 30 + + 54 DIV + 30, 44 AS col2
----
31
44

skipif mysql # not compatible
query II rowsort label-4195
SELECT + 30 + + 54 / + 30, 44 AS col2
----
31
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4196
SELECT DISTINCT + 87 + + + 69 + - 58 + 15 DIV NULLIF ( + 54, - - NULLIF ( - 72, COUNT( * ) ) * - + 25 + + 63 + - - ( + CAST( - 84 AS DECIMAL ) ) + + 11 * + 32 ) DIV + 63 + - 84
----
14

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT + 87 + + + 69 + - 58 + 15 / NULLIF ( + 54, - - NULLIF ( - 72, COUNT ( * ) ) * - + 25 + + 63 + - - ( + CAST ( - 84 AS REAL ) ) + + 11 * + 32 ) / + 63 + - 84
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT CASE 61 WHEN - 16 / - 4 * + 93 / - ( 60 ) THEN 31 * COUNT( * ) / - 63 WHEN - 79 THEN NULL END * + 16 * + 33 * 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT CASE 61 WHEN - 16 / - 4 * + 93 / - ( 60 ) THEN 31 * COUNT ( * ) / - 63 WHEN - 79 THEN NULL END * + 16 * + 33 * 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + 13 * - 86 + + - COUNT( * ) AS col0
----
-1119

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 13 * - 86 + + - COUNT ( * ) AS col0
----
-1119

query I rowsort
SELECT DISTINCT 92 * + 26 * - 84 AS col0
----
-200928

query I rowsort
SELECT ALL COALESCE ( + 42, - + 30 ) + - 12 AS col2
----
30

query II rowsort
SELECT DISTINCT - - 36, 95 col2
----
36
95

query I rowsort
SELECT ALL - 62 + ( - 35 ) col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - 80 + + 40 * - - 17 + 45 + - COUNT( * )
----
644

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 80 + + 40 * - - 17 + 45 + - COUNT ( * )
----
644

query I rowsort
SELECT DISTINCT 50 + 1 * + 63
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - + COUNT( 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - + COUNT ( 36 ) AS col1
----
-1

query I rowsort
SELECT ALL 98 + 55
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ( + ( - + 65 ) ) + MAX( ALL - 99 ) AS col2
----
-164

skipif mysql # not compatible
query I rowsort label-4207
SELECT ( + ( - + 65 ) ) + MAX ( ALL - 99 ) AS col2
----
-164

query I rowsort
SELECT + ( + 52 ) * 94 - + 15 AS col1
----
4873

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT - COUNT( - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - COUNT ( - 81 )
----
-1

query I rowsort
SELECT 43 * - + 38 + 76 * + - 84 AS col2
----
-8018

query I rowsort
SELECT ALL - NULLIF ( + + 55, + 73 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT ALL - MAX( - 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - MAX ( - 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT 97 - - - 17 + 8 * + 25 * + COALESCE ( - 18, + - 48 * + COUNT( * ) + - 1 + + 72 / + COUNT( * ) ) * - CASE + COUNT( ALL - + 39 ) WHEN + 66 THEN + 26 * - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT 97 - - - 17 + 8 * + 25 * + COALESCE ( - 18, + - 48 * + COUNT ( * ) + - 1 + + 72 / + COUNT ( * ) ) * - CASE + COUNT ( ALL - + 39 ) WHEN + 66 THEN + 26 * - 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT - MIN( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT - MIN ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT 57 + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-4215
SELECT 57 + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL - MAX( ALL - - 97 ) - - 4 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL - MAX ( ALL - - 97 ) - - 4 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT COUNT( * ) * - MIN( DISTINCT + 28 ) * + 35
----
-980

skipif mysql # not compatible
query I rowsort label-4217
SELECT COUNT ( * ) * - MIN ( DISTINCT + 28 ) * + 35
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ( + COUNT( * ) ) * 81 + + 25 + 49 - 75 * - - 77 AS col0
----
-5620

skipif mysql # not compatible
query I rowsort label-4218
SELECT ( + COUNT ( * ) ) * 81 + + 25 + 49 - 75 * - - 77 AS col0
----
-5620

query I rowsort
SELECT ALL - 44 * 86
----
-3784

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT 82 DIV + 14
----
5

skipif mysql # not compatible
query I rowsort label-4220
SELECT 82 / + 14
----
5

query I rowsort
SELECT + 64 * + - 78 * - 32 + - 96
----
159648

query II rowsort
SELECT - 52 AS col1, 43
----
-52
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT COUNT( * ) + - - 56 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4223
SELECT COUNT ( * ) + - - 56 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT 75 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT 75 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( - 11 ) col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT - COUNT( - 45 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT - COUNT ( - 45 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL - COUNT( * ) + 78
----
77

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL - COUNT ( * ) + 78
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4228
SELECT - 31 AS col1, + ( - + COUNT( * ) )
----
-31
-1

skipif mysql # not compatible
query II rowsort label-4228
SELECT - 31 AS col1, + ( - + COUNT ( * ) )
----
-31
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT + CASE + 39 WHEN 45 * - ( + SUM( 94 ) ) * - + 34 + - COUNT( * ) THEN - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT + CASE + 39 WHEN 45 * - ( + SUM ( 94 ) ) * - + 34 + - COUNT ( * ) THEN - 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT - COUNT( * ) - 99 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-4230
SELECT - COUNT ( * ) - 99 AS col1
----
-100

query II rowsort
SELECT - - 65 AS col1, 57 * - - 28 + + 76
----
65
1672

query I rowsort
SELECT ALL - 58 * - 37 AS col0
----
2146

query I rowsort
SELECT + ( - 36 ) col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT + CASE NULLIF ( + 88, + + 68 ) WHEN + - ( + 56 ) THEN NULL WHEN + + COUNT( * ) * - MIN( 23 ) THEN - ( - + 9 ) / + SUM( ALL - - 58 ) + + 43 END * - 52 * + 92 + + COUNT( DISTINCT - 20 ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT + CASE NULLIF ( + 88, + + 68 ) WHEN + - ( + 56 ) THEN NULL WHEN + + COUNT ( * ) * - MIN ( 23 ) THEN - ( - + 9 ) / + SUM ( ALL - - 58 ) + + 43 END * - 52 * + 92 + + COUNT ( DISTINCT - 20 ) + - 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT + CAST( 29 AS SIGNED ) - - 24 * - - 14 + - 80
----
285

skipif mysql # not compatible
query I rowsort label-4235
SELECT + CAST ( 29 AS INTEGER ) - - 24 * - - 14 + - 80
----
285

query I rowsort
SELECT - 22 * - 67
----
1474

query II rowsort
SELECT 49 col1, + 40
----
49
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT ALL + 31 DIV + 5
----
6

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL + 31 / + 5
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT + + 25 DIV - COUNT( * ) - 62 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4239
SELECT + + 25 / - COUNT ( * ) - 62 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT + COALESCE ( 35, + + 84, SUM( ALL 64 ), + ( 47 ) + + + 72 )
----
35

skipif mysql # not compatible
query I rowsort label-4240
SELECT + COALESCE ( 35, + + 84, SUM ( ALL 64 ), + ( 47 ) + + + 72 )
----
35

query I rowsort
SELECT DISTINCT + 68 * + 78 - - 10 AS col0
----
5314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4242
SELECT CASE + 20 WHEN + 0 THEN - - CAST( NULL AS SIGNED ) * + 67 + + 44 + + 33 WHEN - 45 THEN 79 / + CASE - MIN( ALL 39 ) WHEN 13 * - 15 THEN NULL ELSE + 52 + 62 * - 66 - - 92 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT CASE + 20 WHEN + 0 THEN - - CAST ( NULL AS INTEGER ) * + 67 + + 44 + + 33 WHEN - 45 THEN 79 / + CASE - MIN ( ALL 39 ) WHEN 13 * - 15 THEN NULL ELSE + 52 + 62 * - 66 - - 92 END END
----
NULL

query I rowsort
SELECT ALL 44 * - + 92 AS col0
----
-4048

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT + 50 * + 86, MAX( 24 ) + - - 46 - + CASE COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE - + 97 + - COUNT( * ) END / - COUNT( * ) * - 25 AS col2
----
4300
NULL

skipif mysql # not compatible
query II rowsort label-4244
SELECT + 50 * + 86, MAX ( 24 ) + - - 46 - + CASE COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE - + 97 + - COUNT ( * ) END / - COUNT ( * ) * - 25 AS col2
----
4300
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT 56 * + 95 * - 99 / - CASE - 89 WHEN - COUNT( * ) THEN + - 86 / + 44 WHEN + + COUNT( * ) - + COUNT( * ) THEN - - 14 END * - - 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT 56 * + 95 * - 99 / - CASE - 89 WHEN - COUNT ( * ) THEN + - 86 / + 44 WHEN + + COUNT ( * ) - + COUNT ( * ) THEN - - 14 END * - - 64 AS col0
----
NULL

query I rowsort
SELECT + ( ( - 37 ) ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4247
SELECT ALL 91 * - MAX( ALL 58 ) col1, 29 * ( 54 )
----
-5278
1566

skipif mysql # not compatible
query II rowsort label-4247
SELECT ALL 91 * - MAX ( ALL 58 ) col1, 29 * ( 54 )
----
-5278
1566

query I rowsort
SELECT + ( - + 37 ) AS col1
----
-37

query I rowsort
SELECT + 14 - 52
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-4250
SELECT + CASE - + 75 WHEN - COUNT( * ) - 88 * - 29 THEN NULL WHEN + - 80 THEN NULL WHEN + - SUM( ALL - 3 ) + 39 THEN - NULLIF ( 15, + - NULLIF ( - 33, - 39 + - + 53 ) ) END col1, - 17
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-4250
SELECT + CASE - + 75 WHEN - COUNT ( * ) - 88 * - 29 THEN NULL WHEN + - 80 THEN NULL WHEN + - SUM ( ALL - 3 ) + 39 THEN - NULLIF ( 15, + - NULLIF ( - 33, - 39 + - + 53 ) ) END col1, - 17
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + SUM( DISTINCT - 28 ) - 43 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4251
SELECT + SUM ( DISTINCT - 28 ) - 43 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT - COUNT( DISTINCT - + 90 ) * + 30
----
-30

skipif mysql # not compatible
query I rowsort label-4252
SELECT - COUNT ( DISTINCT - + 90 ) * + 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL + NULLIF ( + 55, ( ( + ( + ( + + 73 ) ) ) ) - COUNT( DISTINCT + 22 ) )
----
55

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + NULLIF ( + 55, ( ( + ( + ( + + 73 ) ) ) ) - COUNT ( DISTINCT + 22 ) )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4254
SELECT COUNT( ALL - + 23 ) AS col2, + ( CAST( NULL AS SIGNED ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4254
SELECT COUNT ( ALL - + 23 ) AS col2, + ( CAST ( NULL AS INTEGER ) )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT COUNT( DISTINCT - + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-4255
SELECT COUNT ( DISTINCT - + 10 )
----
1

query II rowsort
SELECT ALL + 13 * 78 AS col0, + 12
----
1014
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - COALESCE ( 11, - 23 ) - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-4257
SELECT - COALESCE ( 11, - 23 ) - COUNT ( * )
----
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-4258
SELECT ALL 42 DIV - 13 * - 1, 81 * + - 42 + + 17 - 79 AS col0
----
3
-3464

skipif mysql # not compatible
query II rowsort label-4258
SELECT ALL 42 / - 13 * - 1, 81 * + - 42 + + 17 - 79 AS col0
----
3
-3464

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT - ( + 92 ) - + ( - 20 ) DIV + 80 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4259
SELECT - ( + 92 ) - + ( - 20 ) / + 80 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL - COUNT( * ) * 69 - - + 94 + + - 45 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL - COUNT ( * ) * 69 - - + 94 + + - 45 AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT DISTINCT - 11 + + 28 + - - 96 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT - 11 + + 28 + - - 96 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - CASE WHEN NOT NULL <> - 53 THEN + - ( NULLIF ( - - 23, - 61 ) ) / - 87 - + 83 / - 85 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - MIN( 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-4263
SELECT - MIN ( 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT - + 98 + - COUNT( ALL + 57 ) - - 75 + + 40 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4264
SELECT - + 98 + - COUNT ( ALL + 57 ) - - 75 + + 40 AS col0
----
16

query I rowsort
SELECT - + 92 - + - 78
----
-14

query I rowsort
SELECT - 53 + + + 48 AS col1
----
-5

query I rowsort
SELECT ALL + NULLIF ( - - 54, - - 85 ) * 50
----
2700

onlyif mysql # aggregate syntax: 
query II rowsort label-4268
SELECT - 66 + + 42 * + COALESCE ( - SUM( + 87 ), - 99 ) * + + 29 AS col0, + ( - 24 ) AS col1
----
-106032
-24

skipif mysql # not compatible
query II rowsort label-4268
SELECT - 66 + + 42 * + COALESCE ( - SUM ( + 87 ), - 99 ) * + + 29 AS col0, + ( - 24 ) AS col1
----
-106032
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL + + 74 - - 21 - + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + + 74 - - 21 - + COUNT ( * )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT + + CAST( + 46 AS SIGNED ) * + + ( - 95 )
----
-4370

skipif mysql # not compatible
query I rowsort label-4270
SELECT + + CAST ( + 46 AS INTEGER ) * + + ( - 95 )
----
-4370

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT - NULLIF ( - 41, COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-4271
SELECT - NULLIF ( - 41, COUNT ( * ) )
----
41

query II rowsort
SELECT ALL + 96 AS col1, 0 AS col1
----
96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT CAST( - 49 AS SIGNED ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4273
SELECT CAST ( - 49 AS INTEGER ) AS col1
----
-49

query I rowsort
SELECT DISTINCT + ( - 96 )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT ALL 97 DIV + 4 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL 97 / + 4 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + 69 * + 30 * MIN( - 87 ) + + 78 + + 84 AS col0
----
-179928

skipif mysql # not compatible
query I rowsort label-4276
SELECT + 69 * + 30 * MIN ( - 87 ) + + 78 + + 84 AS col0
----
-179928

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT - 73 * + 55 * ( + + 20 ) * - COUNT( * ) AS col0
----
80300

skipif mysql # not compatible
query I rowsort label-4277
SELECT - 73 * + 55 * ( + + 20 ) * - COUNT ( * ) AS col0
----
80300

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT + ( - + COUNT( + + ( 70 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4278
SELECT + ( - + COUNT ( + + ( 70 ) ) ) AS col0
----
-1

query I rowsort
SELECT - 90 + 28 AS col1
----
-62

query I rowsort
SELECT ( - 23 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4281
SELECT + COUNT( * ) / - 23 * CAST( NULL AS SIGNED ) - - NULLIF ( + 39, + 88 * - + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT + COUNT ( * ) / - 23 * CAST ( NULL AS INTEGER ) - - NULLIF ( + 39, + 88 * - + 18 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT ALL COUNT( * ) * + 62 + - COUNT( * ) + + - 83 DIV - + ( + - 14 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL COUNT ( * ) * + 62 + - COUNT ( * ) + + - 83 / - + ( + - 14 ) AS col1
----
56

query I rowsort
SELECT + 56 * + - 42 * + 19 + - 98 - - ( + - 18 ) - + 56 AS col0
----
-44860

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4284
SELECT DISTINCT 60 + + 90 + + COUNT( * ) AS col2, 54 DIV 41 + - COUNT( * )
----
151
0

skipif mysql # not compatible
query II rowsort label-4284
SELECT DISTINCT 60 + + 90 + + COUNT ( * ) AS col2, 54 / 41 + - COUNT ( * )
----
151
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ( 16 ) + - - 41 + - COUNT( * ) - - 41 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4285
SELECT ( 16 ) + - - 41 + - COUNT ( * ) - - 41 AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT ALL - 82 + - 74 DIV 75 + 50 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - 82 + - 74 / 75 + 50 AS col1
----
-32

query I rowsort
SELECT + 35 * 72 AS col2
----
2520

query I rowsort
SELECT + 74 * + 26 col0
----
1924

query I rowsort
SELECT 21 * + - 37 + + - 45 AS col1
----
-822

query II rowsort
SELECT + 50 AS col2, - 30 * + + 69
----
50
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL MIN( + - 32 ) + + ( + 4 )
----
-28

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL MIN ( + - 32 ) + + ( + 4 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT 36 * 89 * - COUNT( * ) + - COUNT( * ) * 0 + - + 14
----
-3218

skipif mysql # not compatible
query I rowsort label-4292
SELECT 36 * 89 * - COUNT ( * ) + - COUNT ( * ) * 0 + - + 14
----
-3218

query II rowsort
SELECT ALL - 79 AS col2, 89 * 6 col0
----
-79
534

query I rowsort
SELECT ALL - 66 + 87
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL MAX( DISTINCT - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL MAX ( DISTINCT - 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL + 75 * + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + 75 * + COUNT ( * )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT DISTINCT 16 * + 14 * CAST( NULL AS SIGNED ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT 16 * + 14 * CAST ( NULL AS INTEGER ) + - 28
----
NULL

query I rowsort
SELECT ALL + 6 - + 46 AS col0
----
-40

query I rowsort
SELECT - + ( - 3 ) AS col0
----
3

query II rowsort
SELECT - + 20 AS col0, + 91 + 24 AS col1
----
-20
115

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT - 73 DIV - 75 * + 88 * + 10
----
0

skipif mysql # not compatible
query I rowsort label-4301
SELECT - 73 / - 75 * + 88 * + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT 97 * - - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4302
SELECT 97 * - - COUNT ( * )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4303
SELECT 50 * + COUNT( * ), 40 DIV - 42 * + SUM( DISTINCT - 20 ) AS col0
----
50
0

skipif mysql # not compatible
query II rowsort label-4303
SELECT 50 * + COUNT ( * ), 40 / - 42 * + SUM ( DISTINCT - 20 ) AS col0
----
50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT - MAX( ALL - + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT - MAX ( ALL - + 27 ) AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4305
SELECT ALL - COALESCE ( + 97, - 50 * - COALESCE ( - + ( - - 47 ), - 81 + NULLIF ( + CAST( NULL AS SIGNED ), 77 + - 14 + + COALESCE ( - 60, + COUNT( * ) ) ) DIV + 19 ) ) AS col0, + COUNT( * ) AS col0
----
-97
1

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL - COALESCE ( + 97, - 50 * - COALESCE ( - + ( - - 47 ), - 81 + NULLIF ( + CAST ( NULL AS INTEGER ), 77 + - 14 + + COALESCE ( - 60, + COUNT ( * ) ) ) / + 19 ) ) AS col0, + COUNT ( * ) AS col0
----
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT 40 * - COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4306
SELECT 40 * - COUNT ( * ) AS col2
----
-40

query I rowsort
SELECT DISTINCT + 40 * + + 60 AS col0
----
2400

query I rowsort
SELECT ALL + 13 + 65 * + 17 AS col0
----
1118

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT DISTINCT + 40 * - + 67 AS col0, - MIN( - 59 ) AS col2
----
-2680
59

skipif mysql # not compatible
query II rowsort label-4309
SELECT DISTINCT + 40 * - + 67 AS col0, - MIN ( - 59 ) AS col2
----
-2680
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4310
SELECT ALL - 86 + - 36 + - COUNT( 43 ), + 48 * 28 * + 94 + - 83 AS col1
----
-123
126253

skipif mysql # not compatible
query II rowsort label-4310
SELECT ALL - 86 + - 36 + - COUNT ( 43 ), + 48 * 28 * + 94 + - 83 AS col1
----
-123
126253

query I rowsort
SELECT ALL + 22 * + ( + 28 )
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT - 68 + ( COUNT( * ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT - 68 + ( COUNT ( * ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL + 13 + + 73 + 68 + - ( + + 43 ) * - + MIN( + + 66 ) * - ( 61 ) * + 49 - + ( ( 16 ) ) + - - 1 AS col0
----
-8482643

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL + 13 + + 73 + 68 + - ( + + 43 ) * - + MIN ( + + 66 ) * - ( 61 ) * + 49 - + ( ( 16 ) ) + - - 1 AS col0
----
-8482643

onlyif mysql # aggregate syntax: 
query II rowsort label-4314
SELECT 71 - COUNT( * ) AS col0, - 14 AS col2
----
70
-14

skipif mysql # not compatible
query II rowsort label-4314
SELECT 71 - COUNT ( * ) AS col0, - 14 AS col2
----
70
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT - NULLIF ( - COUNT( * ), COUNT( * ) * - + MIN( - 70 ) + + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT - NULLIF ( - COUNT ( * ), COUNT ( * ) * - + MIN ( - 70 ) + + 40 )
----
1

query I rowsort
SELECT 25 * 74
----
1850

query I rowsort
SELECT ALL - 70 + NULLIF ( - 35, + 49 ) AS col0
----
-105

query I rowsort
SELECT DISTINCT 87 * - 32
----
-2784

query I rowsort
SELECT ALL 91 - - 75 AS col2
----
166

query II rowsort
SELECT 43 + + + 72, + 19 AS col0
----
115
19

query I rowsort
SELECT - 74 * - 60
----
4440

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT 73 * 78 DIV - + 14
----
-406

skipif mysql # not compatible
query I rowsort label-4322
SELECT 73 * 78 / - + 14
----
-406

query I rowsort
SELECT DISTINCT 14 * 49 AS col1
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT - ( 44 ) + - COUNT( * ) + 55 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4324
SELECT - ( 44 ) + - COUNT ( * ) + 55 AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT - 71 - + 93 DIV + 74 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4325
SELECT - 71 - + 93 / + 74 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - NULLIF ( + 18, - 7 ) + + COUNT( * ) * - + ( 57 )
----
-75

skipif mysql # not compatible
query I rowsort label-4326
SELECT - NULLIF ( + 18, - 7 ) + + COUNT ( * ) * - + ( 57 )
----
-75

query I rowsort
SELECT ALL - 16 * - 48 col2
----
768

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT DISTINCT 33 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT 33 / + 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4329
SELECT 69 + + 10 + - CAST( + 84 AS SIGNED ) DIV + 52 * + + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4329
SELECT 69 + + 10 + - CAST ( + 84 AS INTEGER ) / + 52 * + + COUNT ( * ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL 68 * - COUNT( DISTINCT + - 90 )
----
-68

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL 68 * - COUNT ( DISTINCT + - 90 )
----
-68

query I rowsort
SELECT ALL 85 + - 62 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT 47 + - - 55 DIV + 18
----
50

skipif mysql # not compatible
query I rowsort label-4332
SELECT 47 + - - 55 / + 18
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - MIN( ALL 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-4333
SELECT - MIN ( ALL 29 )
----
-29

query I rowsort
SELECT ALL + 53 * 14 * + 6
----
4452

query I rowsort
SELECT ( ( + 93 ) ) + + - 97 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4336
SELECT COALESCE ( 15, + + ( + SUM( - - 62 ) ) + - 65 + + SUM( ALL 23 ) + - + COUNT( ALL + - CAST( - + NULLIF ( CAST( NULL AS SIGNED ), - 61 * + 2 ) AS SIGNED ) ) )
----
15

skipif mysql # not compatible
query I rowsort label-4336
SELECT COALESCE ( 15, + + ( + SUM ( - - 62 ) ) + - 65 + + SUM ( ALL 23 ) + - + COUNT ( ALL + - CAST ( - + NULLIF ( CAST ( NULL AS INTEGER ), - 61 * + 2 ) AS INTEGER ) ) )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4337
SELECT + 25 AS col1, COUNT( * )
----
25
1

skipif mysql # not compatible
query II rowsort label-4337
SELECT + 25 AS col1, COUNT ( * )
----
25
1

query I rowsort
SELECT ALL - ( + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL 86 * - NULLIF ( - - COUNT( * ), - 83 ) + + 5 * + + 93 * - 43 * + COALESCE ( - + ( + 20 ), - MIN( + 72 ) + - SUM( ALL - 66 ), + 80 ) * - - ( - 60 ) * - 5 - + 73 + + - 33 AS col0
----
119969808

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL 86 * - NULLIF ( - - COUNT ( * ), - 83 ) + + 5 * + + 93 * - 43 * + COALESCE ( - + ( + 20 ), - MIN ( + 72 ) + - SUM ( ALL - 66 ), + 80 ) * - - ( - 60 ) * - 5 - + 73 + + - 33 AS col0
----
119969808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4340
SELECT DISTINCT CAST( COALESCE ( + + 52, + CAST( NULL AS SIGNED ) * - 35 ) AS SIGNED ) * - NULLIF ( COUNT( * ), COUNT( - 99 ) ) + - 52 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT CAST ( COALESCE ( + + 52, + CAST ( NULL AS INTEGER ) * - 35 ) AS INTEGER ) * - NULLIF ( COUNT ( * ), COUNT ( - 99 ) ) + - 52 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT ALL - 44 * - 45 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - 44 * - 45 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4342
SELECT ALL 29 * - + ( + COUNT( ALL - 93 ) ) / + + COUNT( * ) + - - CASE + NULLIF ( + + 2, + ( - 86 ) ) WHEN + 13 THEN NULL WHEN - 27 THEN - + 44 ELSE NULL END AS col1, 42 * MIN( - 73 )
----
NULL
-3066

skipif mysql # not compatible
query II rowsort label-4342
SELECT ALL 29 * - + ( + COUNT ( ALL - 93 ) ) / + + COUNT ( * ) + - - CASE + NULLIF ( + + 2, + ( - 86 ) ) WHEN + 13 THEN NULL WHEN - 27 THEN - + 44 ELSE NULL END AS col1, 42 * MIN ( - 73 )
----
NULL
-3066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT ALL + COALESCE ( - COALESCE ( + + 33, + + CAST( NULL AS SIGNED ) * + + 54, 94 ), CAST( NULL AS SIGNED ) ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL + COALESCE ( - COALESCE ( + + 33, + + CAST ( NULL AS INTEGER ) * + + 54, 94 ), CAST ( NULL AS INTEGER ) ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT - NULLIF ( + - MIN( - - 11 ), + 13 / 62 ) * + - COUNT( * ) + - 92 col0
----
-103

skipif mysql # not compatible
query I rowsort label-4344
SELECT - NULLIF ( + - MIN ( - - 11 ), + 13 / 62 ) * + - COUNT ( * ) + - 92 col0
----
-103

query I rowsort
SELECT + 48 * 85 + - 7 + - + 34 + - - 39 AS col0
----
4078

query I rowsort
SELECT DISTINCT + ( + - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT - ( - 93 ) * + COUNT( * ) - + 58
----
35

skipif mysql # not compatible
query I rowsort label-4347
SELECT - ( - 93 ) * + COUNT ( * ) - + 58
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT - 54 + + - CASE - 76 WHEN + 69 - + 88 * - 52 / ( 57 ) - - 95 + + COUNT( * ) THEN - + 62 WHEN MAX( 98 ) THEN NULL ELSE - COUNT( * ) * - 51 + + 21 END * - 37 AS col2
----
2610

skipif mysql # not compatible
query I rowsort label-4348
SELECT - 54 + + - CASE - 76 WHEN + 69 - + 88 * - 52 / ( 57 ) - - 95 + + COUNT ( * ) THEN - + 62 WHEN MAX ( 98 ) THEN NULL ELSE - COUNT ( * ) * - 51 + + 21 END * - 37 AS col2
----
2610

query I rowsort
SELECT - - 80 + + + 57 AS col2
----
137

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4350
SELECT DISTINCT - + 93 / - + CAST( NULL AS DECIMAL ) * - 5, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4350
SELECT DISTINCT - + 93 / - + CAST ( NULL AS REAL ) * - 5, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT ALL - 30 * 53
----
-1590

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT COUNT( ALL - COALESCE ( 86, + 43 * + 93 ) ) * + 11 - 80 + + 60
----
-9

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT COUNT ( ALL - COALESCE ( 86, + 43 * + 93 ) ) * + 11 - 80 + + 60
----
-9

query II rowsort
SELECT ALL + - 36 AS col1, - 56 col0
----
-36
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT ALL - - 29 * - 43 - + COUNT( * ) + - 68 * - NULLIF ( - - ( - NULLIF ( COUNT( * ), + 39 / - 32 + 26 ) ), - - CASE - + COALESCE ( - - 16, + + 22, + ( + 57 ) ) WHEN + 43 * - COUNT( * ) - + - MIN( - 23 ) + + COUNT( * ) THEN + 30 / NULLIF ( AVG ( ALL + 16 ), + 61 * + 61 ) + + 54 WHEN 17 + - CAST( NULL AS SIGNED ) / - 75 THEN 33 END * 97 )
----
-1316

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - - 29 * - 43 - + COUNT ( * ) + - 68 * - NULLIF ( - - ( - NULLIF ( COUNT ( * ), + 39 / - 32 + 26 ) ), - - CASE - + COALESCE ( - - 16, + + 22, + ( + 57 ) ) WHEN + 43 * - COUNT ( * ) - + - MIN ( - 23 ) + + COUNT ( * ) THEN + 30 / NULLIF ( AVG ( ALL + 16 ), + 61 * + 61 ) + + 54 WHEN 17 + - CAST ( NULL AS INTEGER ) / - 75 THEN 33 END * 97 )
----
-1316

query I rowsort
SELECT + + 53 * - 29 * - 67
----
102979

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT MAX( - + 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4356
SELECT MAX ( - + 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT COUNT( DISTINCT - 7 )
----
1

skipif mysql # not compatible
query I rowsort label-4357
SELECT COUNT ( DISTINCT - 7 )
----
1

query I rowsort
SELECT + + 3 + 28
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4359
SELECT - - 92 DIV + 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4359
SELECT - - 92 / + 60 AS col2
----
1

query I rowsort
SELECT ALL + 23 * + + 96
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL 66 + COALESCE ( + MIN( DISTINCT - - 52 ), - + 59 + - 1, + + SUM( - 12 ) ) * + - 23
----
-1130

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL 66 + COALESCE ( + MIN ( DISTINCT - - 52 ), - + 59 + - 1, + + SUM ( - 12 ) ) * + - 23
----
-1130

query I rowsort
SELECT ALL 44 + + + 19 AS col2
----
63

query I rowsort
SELECT + 50 - 80 * + + 7 AS col1
----
-510

query I rowsort
SELECT - ( + 16 )
----
-16

query I rowsort
SELECT + 68 * + + 85
----
5780

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + COUNT( * ) - SUM( DISTINCT 6 )
----
-5

skipif mysql # not compatible
query I rowsort label-4366
SELECT + COUNT ( * ) - SUM ( DISTINCT 6 )
----
-5

query I rowsort
SELECT ALL 50 + + 71 AS col0
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4368
SELECT - COALESCE ( + 92, + 62 - - 6 DIV + - 15 - 27, + - COUNT( ALL + 64 ) + + 41 + 53 * - 56 * - + 53 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4368
SELECT - COALESCE ( + 92, + 62 - - 6 / + - 15 - 27, + - COUNT ( ALL + 64 ) + + 41 + 53 * - 56 * - + 53 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT 85 + ( + SUM( DISTINCT + 57 ) ) * - 72
----
-4019

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT 85 + ( + SUM ( DISTINCT + 57 ) ) * - 72
----
-4019

query I rowsort
SELECT DISTINCT 43 + - - 56 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL MIN( + - 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL MIN ( + - 7 ) AS col1
----
-7

query I rowsort
SELECT - ( - 77 ) AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT DISTINCT 56 DIV 61 + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT 56 / 61 + - 96
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4374
SELECT ALL 78 DIV - + 56
----
-1

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL 78 / - + 56
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4375
SELECT CAST( + 29 AS SIGNED ) AS col2, + COUNT( * ) AS col2
----
29
1

skipif mysql # not compatible
query II rowsort label-4375
SELECT CAST ( + 29 AS INTEGER ) AS col2, + COUNT ( * ) AS col2
----
29
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT ALL + COUNT( * ) AS col0, + 26 AS col1
----
1
26

skipif mysql # not compatible
query II rowsort label-4376
SELECT ALL + COUNT ( * ) AS col0, + 26 AS col1
----
1
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4377
SELECT + CAST( + - 55 AS DECIMAL ) * - + COUNT( * ) + + NULLIF ( + CAST( NULL AS SIGNED ), - + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT + CAST ( + - 55 AS REAL ) * - + COUNT ( * ) + + NULLIF ( + CAST ( NULL AS INTEGER ), - + 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT + COUNT( * ) + - 34
----
-33

skipif mysql # not compatible
query I rowsort label-4378
SELECT + COUNT ( * ) + - 34
----
-33

query II rowsort
SELECT - 42 * + 75 AS col0, 60
----
-3150
60

query II rowsort
SELECT + ( + - 15 ) AS col1, + 95
----
-15
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT - 60 DIV - + ( - 78 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT - 60 / - + ( - 78 ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT DISTINCT + 7 DIV + 37 - - 73 col1
----
73

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT + 7 / + 37 - - 73 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT 77 * - - MAX( DISTINCT + - 6 ) AS col0
----
-462

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT 77 * - - MAX ( DISTINCT + - 6 ) AS col0
----
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT ALL 36 * CAST( - 38 AS SIGNED ) AS col1
----
-1368

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL 36 * CAST ( - 38 AS INTEGER ) AS col1
----
-1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT DISTINCT - 1 * - 1 * - CASE 41 WHEN + + ( - 55 ) * CAST( + - 61 AS SIGNED ) THEN 23 WHEN 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT - 1 * - 1 * - CASE 41 WHEN + + ( - 55 ) * CAST ( + - 61 AS INTEGER ) THEN 23 WHEN 78 THEN NULL END
----
NULL

query I rowsort
SELECT - 81 * - - 78
----
-6318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4387
SELECT ALL + - COALESCE ( + COUNT( * ), 65, - - 57 DIV - + 5 - 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + - COALESCE ( + COUNT ( * ), 65, - - 57 / - + 5 - 26 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL + + ( - - MIN( - - 29 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + + ( - - MIN ( - - 29 ) ) AS col0
----
29

query I rowsort
SELECT + + 62 * - 99 * + + 45 AS col2
----
-276210

query I rowsort
SELECT + 34 + - 39 + 51 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT NULLIF ( - - COUNT( * ), - NULLIF ( - 14, - + AVG ( DISTINCT + 18 ) + - ( + - 40 ) + - ( - COUNT( * ) ) * CAST( NULL AS SIGNED ) ) / - 9 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4391
SELECT NULLIF ( - - COUNT ( * ), - NULLIF ( - 14, - + AVG ( DISTINCT + 18 ) + - ( + - 40 ) + - ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) ) / - 9 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + - COUNT( - 44 ) + - 98 - + ( 51 ) AS col2
----
-150

skipif mysql # not compatible
query I rowsort label-4392
SELECT + - COUNT ( - 44 ) + - 98 - + ( 51 ) AS col2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + + NULLIF ( - + 32, + 93 + COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-4393
SELECT + + NULLIF ( - + 32, + 93 + COUNT ( * ) )
----
-32

query I rowsort
SELECT DISTINCT + ( + COALESCE ( + - 28, 58 + - - 99 + + 17 * - 36 ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT - 6 * + 95 + + 15 + - - MIN( DISTINCT - + 89 ) + + + 63 * - + 74
----
-5306

skipif mysql # not compatible
query I rowsort label-4395
SELECT - 6 * + 95 + + 15 + - - MIN ( DISTINCT - + 89 ) + + + 63 * - + 74
----
-5306

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4396
SELECT + CAST( NULL AS SIGNED ), 69 col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-4396
SELECT + CAST ( NULL AS INTEGER ), 69 col0
----
NULL
69

query I rowsort
SELECT - + 63 + 25 - + 75 col2
----
-113

query I rowsort
SELECT ALL - 57 * 88 AS col1
----
-5016

onlyif mysql # aggregate syntax: 
query II rowsort label-4399
SELECT COUNT( * ), - 96 * + - 60 AS col1
----
1
5760

skipif mysql # not compatible
query II rowsort label-4399
SELECT COUNT ( * ), - 96 * + - 60 AS col1
----
1
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - - COUNT( ALL 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4400
SELECT - - COUNT ( ALL 45 ) AS col2
----
1

query I rowsort
SELECT ALL + + 35 * 62 * + - 74 + 99 * + 59 * + + 20 * + 18
----
1942180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4402
SELECT DISTINCT - - 73 * + CASE + MIN( + CAST( + + ( - 74 ) AS SIGNED ) ) WHEN + - 16 * + 84 * 27 + + + 39 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 2 + 32 END AS col2
----
2190

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT - - 73 * + CASE + MIN ( + CAST ( + + ( - 74 ) AS INTEGER ) ) WHEN + - 16 * + 84 * 27 + + + 39 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 2 + 32 END AS col2
----
2190

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4403
SELECT ALL + 83 * + ( ( - + CAST( NULL AS DECIMAL ) ) ) + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL + 83 * + ( ( - + CAST ( NULL AS REAL ) ) ) + 0 AS col2
----
NULL

query I rowsort
SELECT ALL + 99 + - + 32 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT - SUM( ALL - - 14 ) + - 87 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-4405
SELECT - SUM ( ALL - - 14 ) + - 87 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT MIN( DISTINCT 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4406
SELECT MIN ( DISTINCT 81 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4407
SELECT ALL - 54 + - ( - - CASE - MIN( DISTINCT + - 89 ) WHEN + 18 + - 10 + + CAST( - - 58 AS DECIMAL ) THEN NULL WHEN - - 44 THEN NULL ELSE - + 55 END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - 54 + - ( - - CASE - MIN ( DISTINCT + - 89 ) WHEN + 18 + - 10 + + CAST ( - - 58 AS REAL ) THEN NULL WHEN - - 44 THEN NULL ELSE - + 55 END ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL + 99 + - 74 - COUNT( * ) + + - 33
----
-9

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + 99 + - 74 - COUNT ( * ) + + - 33
----
-9

query I rowsort
SELECT ALL - 36 + + COALESCE ( 45, + - 7 * 74 * + 36 )
----
9

query I rowsort
SELECT DISTINCT - 9 * - 41 col0
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT 4 + + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4411
SELECT 4 + + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT 75 * + COALESCE ( + 43, 74 * 95 )
----
3225

query I rowsort
SELECT 81 + - + 52 * + 94
----
-4807

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - NULLIF ( + - COUNT( * ), 97 - - + NULLIF ( 2, - 18 * - 25 * 15 + 79 + - 37 + AVG ( + 56 ) * + - 76 * - - 9 * + - 78 * - 36 ) * - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - NULLIF ( + - COUNT ( * ), 97 - - + NULLIF ( 2, - 18 * - 25 * 15 + 79 + - 37 + AVG ( + 56 ) * + - 76 * - - 9 * + - 78 * - 36 ) * - 61 )
----
1

query I rowsort
SELECT DISTINCT + 72 - + - ( - 29 ) AS col0
----
43

query I rowsort
SELECT + 74 + + 95
----
169

query I rowsort
SELECT ( + - 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + 58 * COUNT( * ) + - + ( - COUNT( * ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4418
SELECT + 58 * COUNT ( * ) + - + ( - COUNT ( * ) ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT CASE + + 67 WHEN 33 * + CASE + 54 WHEN - COUNT( * ) THEN NULL ELSE + MAX( ALL - 10 ) END THEN MAX( ALL - + ( 28 ) ) * + 64 - + COUNT( * ) + + 89 WHEN 19 THEN NULL END * + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT CASE + + 67 WHEN 33 * + CASE + 54 WHEN - COUNT ( * ) THEN NULL ELSE + MAX ( ALL - 10 ) END THEN MAX ( ALL - + ( 28 ) ) * + 64 - + COUNT ( * ) + + 89 WHEN 19 THEN NULL END * + + 92
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4420
SELECT - 24 + CAST( NULL AS DECIMAL ) * 3 + 21 + - 50 * + 83 * + 0 + + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT - 24 + CAST ( NULL AS REAL ) * 3 + 21 + - 50 * + 83 * + 0 + + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4421
SELECT - COUNT( DISTINCT - ( + 34 ) ) DIV + + 16 * - 7 + - - 11 col0
----
11

skipif mysql # not compatible
query I rowsort label-4421
SELECT - COUNT ( DISTINCT - ( + 34 ) ) / + + 16 * - 7 + - - 11 col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL - 6 + - MIN( DISTINCT + 92 )
----
-98

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL - 6 + - MIN ( DISTINCT + 92 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT + 90 + - 63 + + - 81 + - 98 * + ( + COUNT( * ) )
----
-152

skipif mysql # not compatible
query I rowsort label-4423
SELECT + 90 + - 63 + + - 81 + - 98 * + ( + COUNT ( * ) )
----
-152

query I rowsort
SELECT CASE 45 WHEN + - 76 THEN NULL ELSE - - 35 + 66 * 93 END + + 11
----
6184

onlyif mysql # aggregate syntax: 
query II rowsort label-4425
SELECT 0 * - COUNT( + + 56 ) AS col2, - 52
----
0
-52

skipif mysql # not compatible
query II rowsort label-4425
SELECT 0 * - COUNT ( + + 56 ) AS col2, - 52
----
0
-52

query II rowsort
SELECT + 17 * - - 65 AS col0, + 76 AS col2
----
1105
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT ALL - CAST( NULL AS SIGNED ) + + - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 94 AS col0
----
NULL

query I rowsort
SELECT ALL + - 8 + NULLIF ( 70, - 95 * + + CASE - 38 WHEN - 2 THEN NULL ELSE - ( - - 79 ) END )
----
62

query I rowsort
SELECT 59 * + 19
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL + 94 * - COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + 94 * - COUNT ( * ) AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4431
SELECT 5 AS col1, + 71 + - CAST( NULL AS SIGNED ) * - 75
----
5
NULL

skipif mysql # not compatible
query II rowsort label-4431
SELECT 5 AS col1, + 71 + - CAST ( NULL AS INTEGER ) * - 75
----
5
NULL

query I rowsort
SELECT DISTINCT + 85 + - 87 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT 68 + SUM( + ( 20 ) )
----
88

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT 68 + SUM ( + ( 20 ) )
----
88

query I rowsort
SELECT ALL + CASE + 3 WHEN + + 48 THEN NULL WHEN + 48 THEN - 56 - 52 * - - 47 + 42 END + - - 69 AS col2
----
NULL

query I rowsort
SELECT 85 * - 89
----
-7565

query I rowsort
SELECT 91 + - + 83 AS col0
----
8

query II rowsort
SELECT 30, - 89 + ( - 36 ) AS col2
----
30
-125

query II rowsort
SELECT - 23 col2, AVG ( ALL + - CASE + 6 WHEN + + 50 THEN + - 90 + - 82 + + 62 * 37 * + ( + NULLIF ( + 26, 99 ) ) END ) * - - 98 * + ( - ( 48 ) ) * + AVG ( ALL + COALESCE ( 69, 36 * + 58 ) ) col0
----
-23
NULL

query I rowsort
SELECT ALL + 68 - - - 12
----
56

query I rowsort
SELECT 75 * - - 61 col1
----
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT COUNT( * ) * + + 88 * 2 * + + 6 AS col0
----
1056

skipif mysql # not compatible
query I rowsort label-4441
SELECT COUNT ( * ) * + + 88 * 2 * + + 6 AS col0
----
1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT 84 - + 60 + COUNT( ALL + 52 ) - - - ( + ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT 84 - + 60 + COUNT ( ALL + 52 ) - - - ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT ALL 34 AS col0, - COUNT( * ) * 5 * + 63
----
34
-315

skipif mysql # not compatible
query II rowsort label-4443
SELECT ALL 34 AS col0, - COUNT ( * ) * 5 * + 63
----
34
-315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT 26 + - 4 + 3 DIV + COUNT( * ) col0
----
25

skipif mysql # not compatible
query I rowsort label-4444
SELECT 26 + - 4 + 3 / + COUNT ( * ) col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4445
SELECT ALL + 32 DIV COALESCE ( COUNT( * ), + - 74 * 88 + - 74 * - ( - - COUNT( DISTINCT - 68 ) ) * 50 DIV - 3 )
----
32

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL + 32 / COALESCE ( COUNT ( * ), + - 74 * 88 + - 74 * - ( - - COUNT ( DISTINCT - 68 ) ) * 50 / - 3 )
----
32

query I rowsort
SELECT 0 * 34
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT ALL + 60 DIV + - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + 60 / + - 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL ( + + MIN( DISTINCT 58 ) ) * 61 - - ( - 11 ) + + 6
----
3533

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL ( + + MIN ( DISTINCT 58 ) ) * 61 - - ( - 11 ) + + 6
----
3533

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL COUNT( * ) * + 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL COUNT ( * ) * + 9 AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4450
SELECT ALL 98 AS col1, - 81 * + + COUNT( * ) + - + 83
----
98
-164

skipif mysql # not compatible
query II rowsort label-4450
SELECT ALL 98 AS col1, - 81 * + + COUNT ( * ) + - + 83
----
98
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL MIN( ALL - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL MIN ( ALL - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT ( COUNT( ALL + ( - 63 ) ) ) - - ( - 46 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4452
SELECT ( COUNT ( ALL + ( - 63 ) ) ) - - ( - 46 ) AS col0
----
-45

query I rowsort
SELECT 74 * 62 AS col0
----
4588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT ALL + 51 * + 96 * + + CAST( + 64 AS SIGNED ) - + 26 + 36 AS col2
----
313354

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + 51 * + 96 * + + CAST ( + 64 AS INTEGER ) - + 26 + 36 AS col2
----
313354

query I rowsort
SELECT + ( - 11 )
----
-11

query I rowsort
SELECT DISTINCT - 18 * - - 58 * - 3 * - + 44 AS col1
----
-137808

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT - COALESCE ( + + 7, + 69, + COUNT( * ) ) * + 52
----
-364

skipif mysql # not compatible
query I rowsort label-4457
SELECT - COALESCE ( + + 7, + 69, + COUNT ( * ) ) * + 52
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT ( + - NULLIF ( - 28, 15 + + COUNT( * ) ) ) * 30 + + 9 * - - 28 AS col1
----
1092

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT ( + - NULLIF ( - 28, 15 + + COUNT ( * ) ) ) * 30 + + 9 * - - 28 AS col1
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT SUM( + 98 ) - + 98
----
0

skipif mysql # not compatible
query I rowsort label-4459
SELECT SUM ( + 98 ) - + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + + SUM( - 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4460
SELECT + + SUM ( - 17 ) AS col0
----
-17

query I rowsort
SELECT ALL - 82 * + + 81 + - 71
----
-6713

query I rowsort
SELECT + 75 * + 68 AS col2
----
5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4463
SELECT + - 35 col2, - 55 DIV + + 50 * COALESCE ( - CAST( + COUNT( * ) AS SIGNED ), + 48 DIV + COUNT( * ), + + 83 * - + 70 * + ( - 32 ), + 66 * - 76 * - - 32 + MIN( DISTINCT 94 ) + + + 39 + 3 * 42 )
----
-35
1

skipif mysql # not compatible
query II rowsort label-4463
SELECT + - 35 col2, - 55 / + + 50 * COALESCE ( - CAST ( + COUNT ( * ) AS INTEGER ), + 48 / + COUNT ( * ), + + 83 * - + 70 * + ( - 32 ), + 66 * - 76 * - - 32 + MIN ( DISTINCT 94 ) + + + 39 + 3 * 42 )
----
-35
1

query I rowsort
SELECT + + ( + 27 ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT 12 DIV + 56 + - 80 + 37
----
-43

skipif mysql # not compatible
query I rowsort label-4465
SELECT 12 / + 56 + - 80 + 37
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT + COUNT( - + ( + 80 ) ) col0, 52
----
1
52

skipif mysql # not compatible
query II rowsort label-4466
SELECT + COUNT ( - + ( + 80 ) ) col0, 52
----
1
52

query II rowsort
SELECT ALL 98 * ( 28 ) AS col0, + 86 + - - 72
----
2744
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4468
SELECT + - 3 * COALESCE ( - 68, + - COUNT( * ) + - 12, - 92, + - ( - CASE + 53 WHEN + 22 * - + 9 THEN NULL WHEN + 22 * - 67 + + - 56 THEN - CASE + COUNT( * ) WHEN - MIN( - 29 ) THEN NULL ELSE + 14 * - 0 END + - + 48 + + 49 END ) * + 83 + + 67 DIV 45 ) * CASE COUNT( * ) WHEN 1 THEN 76 * MIN( ALL + 28 DIV + 54 ) END
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT + - 3 * COALESCE ( - 68, + - COUNT ( * ) + - 12, - 92, + - ( - CASE + 53 WHEN + 22 * - + 9 THEN NULL WHEN + 22 * - 67 + + - 56 THEN - CASE + COUNT ( * ) WHEN - MIN ( - 29 ) THEN NULL ELSE + 14 * - 0 END + - + 48 + + 49 END ) * + 83 + + 67 / 45 ) * CASE COUNT ( * ) WHEN 1 THEN 76 * MIN ( ALL + 28 / + 54 ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT + COUNT( * ) + - 92 + - - ( - 96 ) col0
----
-187

skipif mysql # not compatible
query I rowsort label-4469
SELECT + COUNT ( * ) + - 92 + - - ( - 96 ) col0
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL 9 + + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL 9 + + COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4471
SELECT ALL 15 + COUNT( * ) DIV - 54
----
15

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL 15 + COUNT ( * ) / - 54
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4472
SELECT + 95 * + - NULLIF ( - - 89, - NULLIF ( - - 37, + - 85 * - COUNT( * ) * + 6 + - - 31 * COUNT( * ) ) + + 94 + - + NULLIF ( + 20, + 64 ) + - + 88 * + 51 ) / 4 * - AVG ( ALL + + 48 ) / - COUNT( * ) + - 40 - - ( - 74 ) + + + COUNT( ALL CAST( NULL AS SIGNED ) ) * + 88 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT + 95 * + - NULLIF ( - - 89, - NULLIF ( - - 37, + - 85 * - COUNT ( * ) * + 6 + - - 31 * COUNT ( * ) ) + + 94 + - + NULLIF ( + 20, + 64 ) + - + 88 * + 51 ) / 4 * - AVG ( ALL + + 48 ) / - COUNT ( * ) + - 40 - - ( - 74 ) + + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + 88 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 50 + - 89
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT + ( - 54 ) + - ( - COUNT( - CAST( + 50 AS SIGNED ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4474
SELECT + ( - 54 ) + - ( - COUNT ( - CAST ( + 50 AS INTEGER ) ) )
----
-53

query I rowsort
SELECT - 43 * 57 * + 63 AS col1
----
-154413

query I rowsort
SELECT - ( + 97 ) col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4477
SELECT ALL SUM( ALL - 97 ) DIV + 67 + ( + - 27 ) + - - 64
----
36

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL SUM ( ALL - 97 ) / + 67 + ( + - 27 ) + - - 64
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL COUNT( * ) * + - 16 * + 4
----
-64

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL COUNT ( * ) * + - 16 * + 4
----
-64

query I rowsort
SELECT ALL COALESCE ( + 82, + 15 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT - 83 + + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-4480
SELECT - 83 + + COUNT ( * )
----
-82

query I rowsort
SELECT DISTINCT + 47 * - + 53 AS col2
----
-2491

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT - 60 + + 66 DIV - 47 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4482
SELECT - 60 + + 66 / - 47 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4483
SELECT ALL SUM( - 24 ), - 12 - + - 99 AS col1
----
-24
87

skipif mysql # not compatible
query II rowsort label-4483
SELECT ALL SUM ( - 24 ), - 12 - + - 99 AS col1
----
-24
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT ALL - - 8 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL - - 8 / + 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT - - 25 + MAX( + - 98 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4485
SELECT - - 25 + MAX ( + - 98 ) AS col1
----
-73

query I rowsort
SELECT ALL + - 97 AS col1
----
-97

query I rowsort
SELECT - + 50 * 62
----
-3100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT ALL - - ( - + CAST( - ( - ( - - 58 ) ) AS SIGNED ) ) * + 76 AS col1
----
-4408

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - - ( - + CAST ( - ( - ( - - 58 ) ) AS INTEGER ) ) * + 76 AS col1
----
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL + 85 * + 33 * + + COUNT( * ) + - 63 + 86 col1
----
2828

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL + 85 * + 33 * + + COUNT ( * ) + - 63 + 86 col1
----
2828

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT + + COALESCE ( - COUNT( * ), - 1 * + 54 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4490
SELECT + + COALESCE ( - COUNT ( * ), - 1 * + 54 ) AS col1
----
-1

query I rowsort
SELECT ALL + ( 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4492
SELECT DISTINCT - 42 * 90 DIV 83 + - COUNT( * ) + - 74 + - - 38 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - 42 * 90 / 83 + - COUNT ( * ) + - 74 + - - 38 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT ALL + 6 * + ( 77 ) + + 7 AS col0, 77 * 41 + - 20 * + COUNT( 16 )
----
469
3137

skipif mysql # not compatible
query II rowsort label-4493
SELECT ALL + 6 * + ( 77 ) + + 7 AS col0, 77 * 41 + - 20 * + COUNT ( 16 )
----
469
3137

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ( 90 ) * + - COUNT( * ) * 57 + - 40 col0
----
-5170

skipif mysql # not compatible
query I rowsort label-4494
SELECT ( 90 ) * + - COUNT ( * ) * 57 + - 40 col0
----
-5170

onlyif mysql # aggregate syntax: 
query II rowsort label-4495
SELECT + - MAX( ALL + COALESCE ( - 47, 26 * - 25 ) ), ( + + 34 ) * + - 88 col2
----
47
-2992

skipif mysql # not compatible
query II rowsort label-4495
SELECT + - MAX ( ALL + COALESCE ( - 47, 26 * - 25 ) ), ( + + 34 ) * + - 88 col2
----
47
-2992

query I rowsort
SELECT + + COALESCE ( 14, - 65 + + 98 ) AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT - - 24 * CAST( NULL AS SIGNED ) * 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT - - 24 * CAST ( NULL AS INTEGER ) * 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT + - 77 / - 21 * + COALESCE ( MAX( DISTINCT - + 43 ), - 60 + - 2 + + 75 + - 51 * 66 / COUNT( ALL - 1 ) ) * - + 72 + - COUNT( - 46 ) + - 56 * - COUNT( * ) / - 97 * + - 88 * + 30 * - 78 * + + 47 + CASE ( + AVG ( - 79 ) ) WHEN + 36 + 41 THEN NULL WHEN - 31 THEN + ( - 99 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT + - 77 / - 21 * + COALESCE ( MAX ( DISTINCT - + 43 ), - 60 + - 2 + + 75 + - 51 * 66 / COUNT ( ALL - 1 ) ) * - + 72 + - COUNT ( - 46 ) + - 56 * - COUNT ( * ) / - 97 * + - 88 * + 30 * - 78 * + + 47 + CASE ( + AVG ( - 79 ) ) WHEN + 36 + 41 THEN NULL WHEN - 31 THEN + ( - 99 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL - 5 * + 65 - - - 9 + ( - 54 ) + 7 + - COUNT( * ) * + 46 * 93 * - + 6 * - 62
----
-1591797

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL - 5 * + 65 - - - 9 + ( - 54 ) + 7 + - COUNT ( * ) * + 46 * 93 * - + 6 * - 62
----
-1591797

query I rowsort
SELECT + 75 * - 3
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL + - COALESCE ( 24, 28 * COUNT( * ) + 46 )
----
-24

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + - COALESCE ( 24, 28 * COUNT ( * ) + 46 )
----
-24

query I rowsort
SELECT ALL + COALESCE ( - - 56, 20 ) AS col2
----
56

query I rowsort
SELECT ALL COALESCE ( + 92, + 12 ) * - - 21 - + 28 * 88 - + 82
----
-614

query I rowsort
SELECT - 85 * - 14
----
1190

query I rowsort
SELECT + 91 * + 81 AS col0
----
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT + ( COUNT( ALL 18 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4506
SELECT + ( COUNT ( ALL 18 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4507
SELECT + SUM( DISTINCT - COALESCE ( - CASE + 43 WHEN + CAST( - 99 AS SIGNED ) THEN 34 * 30 WHEN NULLIF ( - 64, 17 * - 48 + - 22 ) - + 78 THEN NULL END, - - 99 ) ), - 46 AS col2
----
-99
-46

skipif mysql # not compatible
query II rowsort label-4507
SELECT + SUM ( DISTINCT - COALESCE ( - CASE + 43 WHEN + CAST ( - 99 AS INTEGER ) THEN 34 * 30 WHEN NULLIF ( - 64, 17 * - 48 + - 22 ) - + 78 THEN NULL END, - - 99 ) ), - 46 AS col2
----
-99
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT + 43 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-4508
SELECT + 43 / + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL 49 * MIN( ALL + 93 ) AS col1
----
4557

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL 49 * MIN ( ALL + 93 ) AS col1
----
4557

query I rowsort
SELECT + 55 * + 24
----
1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT DISTINCT - 59 / CASE + 31 WHEN - + CASE + 49 WHEN - + 51 THEN NULL WHEN + + 56 - - MIN( DISTINCT - 17 ) + - COUNT( * ) * - NULLIF ( 78, + - 13 ) THEN NULL ELSE + ( 41 ) END / + CAST( + 67 AS SIGNED ) * - ( - 57 ) THEN ( - ( - 34 ) ) WHEN + 77 * COUNT( * ) - + 79 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT - 59 / CASE + 31 WHEN - + CASE + 49 WHEN - + 51 THEN NULL WHEN + + 56 - - MIN ( DISTINCT - 17 ) + - COUNT ( * ) * - NULLIF ( 78, + - 13 ) THEN NULL ELSE + ( 41 ) END / + CAST ( + 67 AS INTEGER ) * - ( - 57 ) THEN ( - ( - 34 ) ) WHEN + 77 * COUNT ( * ) - + 79 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 67 * 61 AS col2
----
4087

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT DISTINCT 78 * - - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT 78 * - - COUNT ( * )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT + 8 DIV - - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT + 8 / - - 78 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4515
SELECT ALL 13 * + 53 * - + NULLIF ( + 34, 55 * + 23 * + CAST( NULL AS SIGNED ) + - + 62 * - CAST( NULL AS SIGNED ) * - 59 ) col0, + COUNT( * ) - 98 * - + 47 * - COUNT( * ) AS col2
----
-23426
-4605

skipif mysql # not compatible
query II rowsort label-4515
SELECT ALL 13 * + 53 * - + NULLIF ( + 34, 55 * + 23 * + CAST ( NULL AS INTEGER ) + - + 62 * - CAST ( NULL AS INTEGER ) * - 59 ) col0, + COUNT ( * ) - 98 * - + 47 * - COUNT ( * ) AS col2
----
-23426
-4605

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4516
SELECT DISTINCT - SUM( ALL - 96 ) DIV 93 DIV 36 + ( - - COUNT( - ( - 39 ) ) ) DIV 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT - SUM ( ALL - 96 ) / 93 / 36 + ( - - COUNT ( - ( - 39 ) ) ) / 67 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT + 1 + COUNT( * ) + ( - 12 ) * - 84, + 63 + 29 * - 35 + - 93 AS col1
----
1010
-1045

skipif mysql # not compatible
query II rowsort label-4517
SELECT + 1 + COUNT ( * ) + ( - 12 ) * - 84, + 63 + 29 * - 35 + - 93 AS col1
----
1010
-1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT ALL CAST( NULL AS SIGNED ) + 55 + MIN( - - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL CAST ( NULL AS INTEGER ) + 55 + MIN ( - - 36 )
----
NULL

query I rowsort
SELECT - ( + + 64 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 90 AS col2
----
NULL

query I rowsort
SELECT + 65 * + 80 AS col0
----
5200

query I rowsort
SELECT + 24 + + ( + + 61 )
----
85

query I rowsort
SELECT ALL ( - 34 ) AS col1
----
-34

query I rowsort
SELECT DISTINCT - - 6 + ( + 51 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4525
SELECT + + 96 + - 75 * - COUNT( * ) AS col1, - 41
----
171
-41

skipif mysql # not compatible
query II rowsort label-4525
SELECT + + 96 + - 75 * - COUNT ( * ) AS col1, - 41
----
171
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT ALL + CAST( 67 AS SIGNED ) + + 38 + - - 66 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + CAST ( 67 AS INTEGER ) + + 38 + - - 66 AS col2
----
171

query I rowsort
SELECT ALL + + 93 + + 9
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT DISTINCT - + COUNT( * ) * MAX( - 99 ) AS col0, 54 AS col1
----
99
54

skipif mysql # not compatible
query II rowsort label-4528
SELECT DISTINCT - + COUNT ( * ) * MAX ( - 99 ) AS col0, 54 AS col1
----
99
54

query I rowsort
SELECT DISTINCT + 41 + + 61 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - 48 * 71 - ( - COUNT( * ) ) * - NULLIF ( - - 32, - 49 * + 4 * - 59 + + 59 * - - 18 + + 56 + 22 + + 76 + 7 * - - 75 / 46 ) + + - COUNT( * ) * + 31 * 17
----
-3967

skipif mysql # not compatible
query I rowsort label-4530
SELECT - 48 * 71 - ( - COUNT ( * ) ) * - NULLIF ( - - 32, - 49 * + 4 * - 59 + + 59 * - - 18 + + 56 + 22 + + 76 + 7 * - - 75 / 46 ) + + - COUNT ( * ) * + 31 * 17
----
-3967

query I rowsort
SELECT ALL + 8 + - 46 * + + 9 + - 63 AS col0
----
-469

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - 68 * + SUM( - - 48 ) - - - 28 AS col1
----
-3292

skipif mysql # not compatible
query I rowsort label-4532
SELECT - 68 * + SUM ( - - 48 ) - - - 28 AS col1
----
-3292

query I rowsort
SELECT + - 69 * 59 AS col2
----
-4071

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT - 93 DIV - 32
----
2

skipif mysql # not compatible
query I rowsort label-4534
SELECT - 93 / - 32
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4535
SELECT ALL - 85 AS col0, - SUM( 1 ) AS col1
----
-85
-1

skipif mysql # not compatible
query II rowsort label-4535
SELECT ALL - 85 AS col0, - SUM ( 1 ) AS col1
----
-85
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4536
SELECT - ( + COALESCE ( - 38, COUNT( * ), + ( + 32 ) ) ), 32 + - + COUNT( * ) AS col1
----
38
31

skipif mysql # not compatible
query II rowsort label-4536
SELECT - ( + COALESCE ( - 38, COUNT ( * ), + ( + 32 ) ) ), 32 + - + COUNT ( * ) AS col1
----
38
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL 6 - 20 + 65 * - - 54 * - 82 * - - ( + + COALESCE ( - COALESCE ( - + 47, + 8 + - 23, + 55 + - 88 ), 63, 23 * 53 - 17 * - + ( + 97 ) + - 22 + - + 58 * 69 * - 48, - COUNT( * ) ) )
----
-13527554

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL 6 - 20 + 65 * - - 54 * - 82 * - - ( + + COALESCE ( - COALESCE ( - + 47, + 8 + - 23, + 55 + - 88 ), 63, 23 * 53 - 17 * - + ( + 97 ) + - 22 + - + 58 * 69 * - 48, - COUNT ( * ) ) )
----
-13527554

query I rowsort
SELECT ALL + 67 - + 28 - + ( ( - - 24 ) ) * 90
----
-2121

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT 75 * - 38 * COUNT( * )
----
-2850

skipif mysql # not compatible
query I rowsort label-4539
SELECT 75 * - 38 * COUNT ( * )
----
-2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4540
SELECT ALL - + CAST( + NULLIF ( 34, CASE - - 50 WHEN - 8 * - - CAST( 73 AS SIGNED ) THEN - 14 END * - + 77 * + 96 * + COUNT( * ) ) AS SIGNED ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - + CAST ( + NULLIF ( 34, CASE - - 50 WHEN - 8 * - - CAST ( 73 AS INTEGER ) THEN - 14 END * - + 77 * + 96 * + COUNT ( * ) ) AS INTEGER ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT DISTINCT - + 46 DIV - - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT - + 46 / - - 84 AS col0
----
0

query I rowsort
SELECT DISTINCT + 1 * + + 22 * + ( + - 87 ) AS col0
----
-1914

onlyif mysql # aggregate syntax: 
query II rowsort label-4543
SELECT DISTINCT - 81 * - 32 * COUNT( * ) * 36 AS col2, - 20 + - 14
----
93312
-34

skipif mysql # not compatible
query II rowsort label-4543
SELECT DISTINCT - 81 * - 32 * COUNT ( * ) * 36 AS col2, - 20 + - 14
----
93312
-34

query II rowsort
SELECT 75 + + - 96 AS col0, - 37 + 72 + + - 3
----
-21
32

query I rowsort
SELECT 10 * - 26 col1
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL - NULLIF ( - SUM( ALL 67 ), 16 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - NULLIF ( - SUM ( ALL 67 ), 16 ) col2
----
67

query I rowsort
SELECT + 86 * - 48 + + 89 * 40
----
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT COUNT( * ) - - - 49
----
-48

skipif mysql # not compatible
query I rowsort label-4548
SELECT COUNT ( * ) - - - 49
----
-48

query I rowsort
SELECT 94 + + 93
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT - COALESCE ( COUNT( * ), + - 6 + - NULLIF ( - + 90, 96 ) + - - 64 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT - COALESCE ( COUNT ( * ), + - 6 + - NULLIF ( - + 90, 96 ) + - - 64 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 64 * + 69 * 67 AS col2
----
-295872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT 19 + 7 * - COUNT( * ) DIV - ( 86 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4552
SELECT 19 + 7 * - COUNT ( * ) / - ( 86 ) AS col2
----
19

query I rowsort
SELECT DISTINCT - 28 + - 76 * - + 7
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-4554
SELECT 32 AS col1, + COUNT( * )
----
32
1

skipif mysql # not compatible
query II rowsort label-4554
SELECT 32 AS col1, + COUNT ( * )
----
32
1

query I rowsort
SELECT 38 + - 25
----
13

query II rowsort
SELECT DISTINCT 91 AS col1, + 59 + + + 53
----
91
112

query II rowsort
SELECT 83 AS col2, + 63 + + 67 * 4 * 89
----
83
23915

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT DISTINCT 53 + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT 53 + COUNT ( * ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT + CASE - 11 WHEN 34 * + 48 THEN - MAX( 41 ) * - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT + CASE - 11 WHEN 34 * + 48 THEN - MAX ( 41 ) * - 91 END
----
NULL

query I rowsort
SELECT ALL + + 24 * - 22 col0
----
-528

onlyif mysql # aggregate syntax: 
query II rowsort label-4561
SELECT ALL 49 + + NULLIF ( + + MIN( DISTINCT - 75 ), + + COUNT( * ) * - 91 * + 27 ), 14 AS col2
----
-26
14

skipif mysql # not compatible
query II rowsort label-4561
SELECT ALL 49 + + NULLIF ( + + MIN ( DISTINCT - 75 ), + + COUNT ( * ) * - 91 * + 27 ), 14 AS col2
----
-26
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT 92 + - COUNT( * ) * + 66 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT 92 + - COUNT ( * ) * + 66 AS col2
----
26

query II rowsort
SELECT - - ( - 23 ), - 99 + - 21 * 65 AS col1
----
-23
-1464

query II rowsort
SELECT ALL - 30, + 70 * + 27 AS col2
----
-30
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT - - COALESCE ( + MAX( + 14 ), - 15 - - + 66 + + + ( + 50 ) )
----
14

skipif mysql # not compatible
query I rowsort label-4565
SELECT - - COALESCE ( + MAX ( + 14 ), - 15 - - + 66 + + + ( + 50 ) )
----
14

query I rowsort
SELECT - 94 + + NULLIF ( - 27, - + 97 * + 5 )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT 51 + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4567
SELECT 51 + COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT - SUM( + 60 ) - + + 85
----
-145

skipif mysql # not compatible
query I rowsort label-4568
SELECT - SUM ( + 60 ) - + + 85
----
-145

query I rowsort
SELECT 97 + - 49 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL 60 - + 88 + + COUNT( * ) * 79 - - + 31
----
82

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL 60 - + 88 + + COUNT ( * ) * 79 - - + 31
----
82

query II rowsort
SELECT DISTINCT - + 0 AS col2, 13 AS col1
----
0
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT + - 40 DIV - COUNT( * ) + - 26 + - 86 + - 90 + - COUNT( - 20 ) * - 86 * + 60 * + 70 + + - MAX( ALL + - 14 ) + - + COALESCE ( + ( 93 ), - 8 ) + + - 78 + 23 AS col0
----
360904

skipif mysql # not compatible
query I rowsort label-4572
SELECT + - 40 / - COUNT ( * ) + - 26 + - 86 + - 90 + - COUNT ( - 20 ) * - 86 * + 60 * + 70 + + - MAX ( ALL + - 14 ) + - + COALESCE ( + ( 93 ), - 8 ) + + - 78 + 23 AS col0
----
360904

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL COUNT( * ) * + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL COUNT ( * ) * + - 39
----
-39

query I rowsort
SELECT ALL - ( + 76 ) * - 95
----
7220

onlyif mysql # DIV for integer division: 
query II rowsort label-4575
SELECT 23 DIV 3 AS col0, 47
----
7
47

skipif mysql # not compatible
query II rowsort label-4575
SELECT 23 / 3 AS col0, 47
----
7
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT ALL + 5 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + 5 / + 44
----
0

query I rowsort
SELECT ALL 96 + + + COALESCE ( - - 20, + 42 ) AS col1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4578
SELECT ALL + ( + COUNT( * ) ) + + + 47 col0, COUNT( DISTINCT - - 49 ) * - CAST( CAST( - NULLIF ( - + 56, + 57 * + + CAST( NULL AS DECIMAL ) ) AS DECIMAL ) AS SIGNED ) + - 94 * - 6 * + + 3 + - 39
----
48
1597

skipif mysql # not compatible
query II rowsort label-4578
SELECT ALL + ( + COUNT ( * ) ) + + + 47 col0, COUNT ( DISTINCT - - 49 ) * - CAST ( CAST ( - NULLIF ( - + 56, + 57 * + + CAST ( NULL AS REAL ) ) AS REAL ) AS INTEGER ) + - 94 * - 6 * + + 3 + - 39
----
48
1597

query I rowsort
SELECT 19 * - + 92
----
-1748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4580
SELECT ALL + COALESCE ( - 1, + ( + MIN( + ( + CAST( + 65 AS SIGNED ) ) ) ) * + 74 ) DIV COALESCE ( + 61, - 79, - 75 + - + 54 * + 43 + 9 - + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + COALESCE ( - 1, + ( + MIN ( + ( + CAST ( + 65 AS INTEGER ) ) ) ) * + 74 ) / COALESCE ( + 61, - 79, - 75 + - + 54 * + 43 + 9 - + COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT 94 * - - 28
----
2632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4582
SELECT ALL - COALESCE ( + 84, - CAST( - 35 AS SIGNED ) - + 88 * 27, + - ( - + 57 ) - - - 85 + - 66 ) + - - 98 + - + 40 - + COUNT( * ) col0, + 92 AS col2
----
-27
92

skipif mysql # not compatible
query II rowsort label-4582
SELECT ALL - COALESCE ( + 84, - CAST ( - 35 AS INTEGER ) - + 88 * 27, + - ( - + 57 ) - - - 85 + - 66 ) + - - 98 + - + 40 - + COUNT ( * ) col0, + 92 AS col2
----
-27
92

query I rowsort
SELECT DISTINCT - CASE 62 WHEN + 71 THEN + 26 WHEN + 93 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT - ( + - COUNT( * ) ) + - 69 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - ( + - COUNT ( * ) ) + - 69 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT 9 - 16 - - 97 * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4585
SELECT 9 - 16 - - 97 * + COUNT ( * )
----
90

query II rowsort
SELECT 19 * - 13, + 58 AS col1
----
-247
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4587
SELECT ALL COUNT( 17 ), 60 AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-4587
SELECT ALL COUNT ( 17 ), 60 AS col2
----
1
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT DISTINCT NULLIF ( - COUNT( * ), CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL - ( - + 15 ) + - 60
----
-45

query I rowsort
SELECT 44 * - - ( + 34 )
----
1496

query I rowsort
SELECT ALL ( + + 51 ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL - MAX( 15 ) + + - 70
----
-85

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - MAX ( 15 ) + + - 70
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT + NULLIF ( - - 50, + CAST( NULL AS SIGNED ) / + 87 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4593
SELECT + NULLIF ( - - 50, + CAST ( NULL AS INTEGER ) / + 87 ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4594
SELECT - 25 + + 82 DIV + 10 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4594
SELECT - 25 + + 82 / + 10 AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4595
SELECT ( + 50 ) DIV MIN( DISTINCT + 98 ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT ( + 50 ) / MIN ( DISTINCT + 98 ) * - 0 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4596
SELECT ALL + + 22 - 7 AS col1, CAST( NULL AS SIGNED ) + - + ( + + 83 ) AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-4596
SELECT ALL + + 22 - 7 AS col1, CAST ( NULL AS INTEGER ) + - + ( + + 83 ) AS col1
----
15
NULL

query I rowsort
SELECT DISTINCT + 58 * 26 * 56 - 87
----
84361

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - 96 + MAX( - - ( 66 ) ) + + NULLIF ( - 0, 8 * - + 7 + + COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-4598
SELECT - 96 + MAX ( - - ( 66 ) ) + + NULLIF ( - 0, 8 * - + 7 + + COUNT ( * ) )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT + 66 * - 40 * + CAST( - 96 AS SIGNED )
----
253440

skipif mysql # not compatible
query I rowsort label-4599
SELECT + 66 * - 40 * + CAST ( - 96 AS INTEGER )
----
253440

query I rowsort
SELECT - 5 * 63 AS col1
----
-315

onlyif mysql # DIV for integer division: 
query II rowsort label-4601
SELECT + - 87 DIV + 1 AS col0, 73
----
-87
73

skipif mysql # not compatible
query II rowsort label-4601
SELECT + - 87 / + 1 AS col0, 73
----
-87
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL - COALESCE ( - COUNT( * ), + 8 )
----
1

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL - COALESCE ( - COUNT ( * ), + 8 )
----
1

query II rowsort
SELECT - + ( + 32 ) AS col1, 43
----
-32
43

query I rowsort
SELECT + + 12 + 58 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4605
SELECT + CAST( - 87 AS SIGNED ) AS col0, + 50 + 59 col0
----
-87
109

skipif mysql # not compatible
query II rowsort label-4605
SELECT + CAST ( - 87 AS INTEGER ) AS col0, + 50 + 59 col0
----
-87
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT + - 49 * + - COUNT( * ) - + 90 + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-4606
SELECT + - 49 * + - COUNT ( * ) - + 90 + + COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT + 82 * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4607
SELECT + 82 * COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT CASE + 45 WHEN ( + 31 ) THEN + 4 + + COUNT( * ) * ( 14 ) WHEN 81 * + COUNT( 2 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT CASE + 45 WHEN ( + 31 ) THEN + 4 + + COUNT ( * ) * ( 14 ) WHEN 81 * + COUNT ( 2 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-4609
SELECT + 91 * + + COUNT( * ) * 91 AS col1, + 12, - CASE 99 WHEN + + COALESCE ( 46, - + 9 ) * + + 67 * + - ( - - COALESCE ( - 23, + NULLIF ( + 63, + COALESCE ( - - 8, CASE + 85 WHEN - CAST( NULL AS DECIMAL ) THEN 57 END, - 25 + + 45 ) + + - 39 ) * + + 52 * 93 - - - 70 ) ) * 23 + 45 * - 69 THEN NULL ELSE 17 * + 45 END AS col0
----
8281
12
-765

skipif mysql # not compatible
query III rowsort label-4609
SELECT + 91 * + + COUNT ( * ) * 91 AS col1, + 12, - CASE 99 WHEN + + COALESCE ( 46, - + 9 ) * + + 67 * + - ( - - COALESCE ( - 23, + NULLIF ( + 63, + COALESCE ( - - 8, CASE + 85 WHEN - CAST ( NULL AS REAL ) THEN 57 END, - 25 + + 45 ) + + - 39 ) * + + 52 * 93 - - - 70 ) ) * 23 + 45 * - 69 THEN NULL ELSE 17 * + 45 END AS col0
----
8281
12
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4610
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN 23 - - CAST( - 54 AS SIGNED ) THEN - 67 / + + 9 / 14 ELSE NULL END * 45 + 90 * ( + CASE + COUNT( * ) WHEN - 51 THEN 7 WHEN - + 21 THEN - ( 96 ) * - - COUNT( * ) - + 88 WHEN 47 THEN NULL END ) AS col2, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4610
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN 23 - - CAST ( - 54 AS INTEGER ) THEN - 67 / + + 9 / 14 ELSE NULL END * 45 + 90 * ( + CASE + COUNT ( * ) WHEN - 51 THEN 7 WHEN - + 21 THEN - ( 96 ) * - - COUNT ( * ) - + 88 WHEN 47 THEN NULL END ) AS col2, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + NULLIF ( - 64, + - COUNT( * ) / - 28 * - SUM( - - 38 ) + 54 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4611
SELECT + NULLIF ( - 64, + - COUNT ( * ) / - 28 * - SUM ( - - 38 ) + 54 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL + COUNT( * ) * - 24 + + 71
----
47

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL + COUNT ( * ) * - 24 + + 71
----
47

query I rowsort
SELECT 10 * - - 38 * - 25 - - 18
----
-9482

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL + 38 * - MIN( + - 66 ) * - + 64 + - + 36 AS col0
----
-160548

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL + 38 * - MIN ( + - 66 ) * - + 64 + - + 36 AS col0
----
-160548

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT + COUNT( * ) AS col0, - 1 AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-4615
SELECT + COUNT ( * ) AS col0, - 1 AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT + ( ( - CASE + MIN( ALL - + 34 ) WHEN + + 27 * 75 * - - 61 THEN NULL WHEN COUNT( * ) THEN - 55 WHEN 89 / - 2 - + COUNT( * ) + - 15 * 28 / - - 34 THEN - 69 ELSE + 68 END ) ) + + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-4616
SELECT + ( ( - CASE + MIN ( ALL - + 34 ) WHEN + + 27 * 75 * - - 61 THEN NULL WHEN COUNT ( * ) THEN - 55 WHEN 89 / - 2 - + COUNT ( * ) + - 15 * 28 / - - 34 THEN - 69 ELSE + 68 END ) ) + + COUNT ( * )
----
-67

query I rowsort
SELECT - 61 * 55 AS col1
----
-3355

query I rowsort
SELECT NULLIF ( + - 57, - + 89 * + + 90 ) AS col1
----
-57

query I rowsort
SELECT ALL - 38 * 82 * - 76 + 8
----
236824

query I rowsort
SELECT 10 * - 65 + 36 AS col1
----
-614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT NULLIF ( CAST( NULL AS SIGNED ), - 7 + + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT NULLIF ( CAST ( NULL AS INTEGER ), - 7 + + 51 )
----
NULL

query I rowsort
SELECT ALL - 89 * + 69 + + 93
----
-6048

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - NULLIF ( + + MIN( - - 19 ), MAX( ALL + 86 ) ) - + 66 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4623
SELECT - NULLIF ( + + MIN ( - - 19 ), MAX ( ALL + 86 ) ) - + 66 AS col1
----
-85

query I rowsort
SELECT + ( 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL - 72 * - 67 * - 48 * + - MAX( + 30 ) + - + NULLIF ( ( + 87 ), + 45 * + 11 / - 19 ) col1
----
6946473

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - 72 * - 67 * - 48 * + - MAX ( + 30 ) + - + NULLIF ( ( + 87 ), + 45 * + 11 / - 19 ) col1
----
6946473

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT DISTINCT + 56 DIV + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT + 56 / + 91 AS col2
----
0

query I rowsort
SELECT ALL + 39 * 62 col0
----
2418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4628
SELECT DISTINCT - 79 * + 6 - - COUNT( * ) AS col2, 76 DIV - - 16 + - 88 - + COUNT( ALL + 36 ) * + COUNT( * ) + - 10 AS col2
----
-473
-95

skipif mysql # not compatible
query II rowsort label-4628
SELECT DISTINCT - 79 * + 6 - - COUNT ( * ) AS col2, 76 / - - 16 + - 88 - + COUNT ( ALL + 36 ) * + COUNT ( * ) + - 10 AS col2
----
-473
-95

query II rowsort
SELECT + 53 * + 87 * - 82 - - + 33 * - ( 33 ) AS col1, - 41 AS col2
----
-379191
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL - COUNT( + 9 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - COUNT ( + 9 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT ALL + - ( COUNT( * ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + - ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 36 * + 70 col2
----
-2520

query II rowsort
SELECT ALL 46 AS col0, 53 AS col1
----
46
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4634
SELECT ALL 80 AS col2, COUNT( * ) / + - CAST( NULL AS DECIMAL )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-4634
SELECT ALL 80 AS col2, COUNT ( * ) / + - CAST ( NULL AS REAL )
----
80
NULL

query II rowsort
SELECT + 8 AS col0, 48
----
8
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT - - 91 * - - 73 + + CASE + + 66 WHEN + + 74 + + + NULLIF ( + 88, 26 + + 1 ) * - + MAX( DISTINCT + 95 ) * - 23 THEN + + CAST( NULL AS SIGNED ) WHEN + 76 + + - 33 * + 8 THEN + 45 + + COUNT( * ) + - - 95 * + - 17 / - 1 WHEN 10 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT - - 91 * - - 73 + + CASE + + 66 WHEN + + 74 + + + NULLIF ( + 88, 26 + + 1 ) * - + MAX ( DISTINCT + 95 ) * - 23 THEN + + CAST ( NULL AS INTEGER ) WHEN + 76 + + - 33 * + 8 THEN + 45 + + COUNT ( * ) + - - 95 * + - 17 / - 1 WHEN 10 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL - COALESCE ( COUNT( * ), - 43 - COALESCE ( - + 1, 72 * + COUNT( * ) + + - 79, 97 * - 81 * - + 13 * + 45, CASE - 61 WHEN + 68 * + + 37 THEN NULL WHEN 81 THEN COALESCE ( + + 24, 68, 57 ) WHEN - 8 THEN NULL END ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL - COALESCE ( COUNT ( * ), - 43 - COALESCE ( - + 1, 72 * + COUNT ( * ) + + - 79, 97 * - 81 * - + 13 * + 45, CASE - 61 WHEN + 68 * + + 37 THEN NULL WHEN 81 THEN COALESCE ( + + 24, 68, 57 ) WHEN - 8 THEN NULL END ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4638
SELECT - 25 + + + COUNT( * ) - + 61 DIV - 25
----
-22

skipif mysql # not compatible
query I rowsort label-4638
SELECT - 25 + + + COUNT ( * ) - + 61 / - 25
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4639
SELECT DISTINCT 36, 23 DIV - COUNT( * ) AS col0
----
36
-23

skipif mysql # not compatible
query II rowsort label-4639
SELECT DISTINCT 36, 23 / - COUNT ( * ) AS col0
----
36
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4640
SELECT - MAX( DISTINCT - 11 ) * - 24 DIV - 12 + + SUM( - 36 ) - + - 62 * - COALESCE ( - 79, 50 ) AS col0
----
4884

skipif mysql # not compatible
query I rowsort label-4640
SELECT - MAX ( DISTINCT - 11 ) * - 24 / - 12 + + SUM ( - 36 ) - + - 62 * - COALESCE ( - 79, 50 ) AS col0
----
4884

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4641
SELECT - - COUNT( * ) + - + 20 + - + 23 DIV - + MAX( - - 65 ) + - 44 - + 96 DIV - - 50
----
-64

skipif mysql # not compatible
query I rowsort label-4641
SELECT - - COUNT ( * ) + - + 20 + - + 23 / - + MAX ( - - 65 ) + - 44 - + 96 / - - 50
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4642
SELECT - + 64 + + + 79 DIV 34 * + NULLIF ( + - 32, + + 92 DIV - NULLIF ( - + 56, 44 ) + - 6 * + 45 + - 29 DIV + - 44 * 38 * COUNT( * ) )
----
-128

skipif mysql # not compatible
query I rowsort label-4642
SELECT - + 64 + + + 79 / 34 * + NULLIF ( + - 32, + + 92 / - NULLIF ( - + 56, 44 ) + - 6 * + 45 + - 29 / + - 44 * 38 * COUNT ( * ) )
----
-128

query I rowsort
SELECT + - 58 - - 56 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT + COALESCE ( - + 58, + 90 ) DIV COUNT( * ) * + COUNT( ALL - 50 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + COALESCE ( - + 58, + 90 ) / COUNT ( * ) * + COUNT ( ALL - 50 ) AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4645
SELECT ALL - + CAST( - + NULLIF ( + 95, + COUNT( * ) ) AS SIGNED ) + 95 - ( - + CAST( 31 AS SIGNED ) ) + + COALESCE ( - 0, + ( + NULLIF ( - 21, - ( - 6 ) ) ) - - - 3 ) AS col2
----
221

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - + CAST ( - + NULLIF ( + 95, + COUNT ( * ) ) AS INTEGER ) + 95 - ( - + CAST ( 31 AS INTEGER ) ) + + COALESCE ( - 0, + ( + NULLIF ( - 21, - ( - 6 ) ) ) - - - 3 ) AS col2
----
221

query I rowsort
SELECT ALL 85 * + 75
----
6375

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT - 91 DIV + 43 col1
----
-2

skipif mysql # not compatible
query I rowsort label-4647
SELECT - 91 / + 43 col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4648
SELECT ALL - 21 DIV + - 98 * 16 + + + 41 + - COUNT( * ) + - + 13 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - 21 / + - 98 * 16 + + + 41 + - COUNT ( * ) + - + 13 AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT 41 DIV - 74 * - 82 + 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4649
SELECT 41 / - 74 * - 82 + 49 AS col1
----
49

query II rowsort
SELECT DISTINCT - 5 * - 70 AS col0, 53
----
350
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT ALL + 71 DIV + 88 + + 7 + 75 * + 22 * + + 75 AS col1
----
123757

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + 71 / + 88 + + 7 + 75 * + 22 * + + 75 AS col1
----
123757

query II rowsort
SELECT + 85 + + - 49 AS col2, - 23 col2
----
36
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4653
SELECT ALL + 94 DIV - 10 + CAST( - ( + - 53 ) AS SIGNED ) + - 78
----
-34

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + 94 / - 10 + CAST ( - ( + - 53 ) AS INTEGER ) + - 78
----
-34

query I rowsort
SELECT - 73 * 56 AS col1
----
-4088

query I rowsort
SELECT DISTINCT + 71 col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT ALL - 94 / + 58 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - 94 / + 58 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - 49 * + MIN( 30 )
----
-1470

skipif mysql # not compatible
query I rowsort label-4657
SELECT - 49 * + MIN ( 30 )
----
-1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT CAST( + + MAX( ALL 17 ) AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-4658
SELECT CAST ( + + MAX ( ALL 17 ) AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT DISTINCT + MIN( ALL 24 )
----
24

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + MIN ( ALL 24 )
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4660
SELECT ALL - 17 DIV - 80 * + CAST( + + 67 AS SIGNED ) + + - COALESCE ( - 37, - 19 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL - 17 / - 80 * + CAST ( + + 67 AS INTEGER ) + + - COALESCE ( - 37, - 19 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT + COUNT( * ) * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-4661
SELECT + COUNT ( * ) * - 1
----
-1

query II rowsort
SELECT ( + 12 ) AS col1, 20 * + + ( + 72 ) - 59
----
12
1381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4663
SELECT ALL 4 * + 81 - CASE CAST( NULL AS SIGNED ) WHEN - NULLIF ( COUNT( * ), - - 85 ) * + - 28 THEN 15 * SUM( DISTINCT 33 ) ELSE NULL END * 44 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL 4 * + 81 - CASE CAST ( NULL AS INTEGER ) WHEN - NULLIF ( COUNT ( * ), - - 85 ) * + - 28 THEN 15 * SUM ( DISTINCT 33 ) ELSE NULL END * 44 col2
----
NULL

query I rowsort
SELECT ALL + 52 * 41 AS col1
----
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + CASE - + 12 WHEN - 49 THEN + - 13 END * - + MAX( DISTINCT + 34 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT + CASE - + 12 WHEN - 49 THEN + - 13 END * - + MAX ( DISTINCT + 34 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT ALL CAST( 1 AS SIGNED ) * + 4
----
4

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL CAST ( 1 AS INTEGER ) * + 4
----
4

query I rowsort
SELECT + 83 * 7
----
581

query I rowsort
SELECT + ( - 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT COUNT( * ) - NULLIF ( - 90, + 42 ) * + 96 + - - 80
----
8721

skipif mysql # not compatible
query I rowsort label-4669
SELECT COUNT ( * ) - NULLIF ( - 90, + 42 ) * + 96 + - - 80
----
8721

query I rowsort
SELECT + COALESCE ( 25, - 34 + - + 99 + ( 13 ) - + ( - - 83 ) * + 29 + + - 57 - + 54 ) * 57
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - + COALESCE ( - MAX( DISTINCT 39 ), + 95, 61 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4671
SELECT - + COALESCE ( - MAX ( DISTINCT 39 ), + 95, 61 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL + ( + COALESCE ( - 70, SUM( DISTINCT - - 86 ) * 63 * - COUNT( - 17 ) ) )
----
-70

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + ( + COALESCE ( - 70, SUM ( DISTINCT - - 86 ) * 63 * - COUNT ( - 17 ) ) )
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4673
SELECT ALL - 9 / - 37 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - 9 / - 37 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT NULLIF ( - 76, + 46 * + 66 * 26 * - 51 ) + - SUM( + 86 )
----
-162

skipif mysql # not compatible
query I rowsort label-4674
SELECT NULLIF ( - 76, + 46 * + 66 * 26 * - 51 ) + - SUM ( + 86 )
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT - COUNT( * ) - - - 64 * + - 40 + + ( 20 ) * + 78 - + ( + 28 ) * + 23 * 30 + - + 32 AS col0
----
-15233

skipif mysql # not compatible
query I rowsort label-4675
SELECT - COUNT ( * ) - - - 64 * + - 40 + + ( 20 ) * + 78 - + ( + 28 ) * + 23 * 30 + - + 32 AS col0
----
-15233

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT - 54 DIV + + 22 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4676
SELECT - 54 / + + 22 AS col1
----
-2

query II rowsort
SELECT 72 * - 31, 87 AS col2
----
-2232
87

onlyif mysql # DIV for integer division: 
query II rowsort label-4678
SELECT ALL - 48 DIV + 80 AS col0, 65
----
0
65

skipif mysql # not compatible
query II rowsort label-4678
SELECT ALL - 48 / + 80 AS col0, 65
----
0
65

query I rowsort
SELECT + 37 * + 5
----
185

query I rowsort
SELECT + 81 + 84 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT - CASE + SUM( 65 ) WHEN 2 THEN + - CASE COUNT( * ) WHEN + - 24 THEN NULL ELSE + 24 + MAX( - 46 ) + + COUNT( * ) END WHEN 24 - + + 15 * + - 43 * - - 44 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT - CASE + SUM ( 65 ) WHEN 2 THEN + - CASE COUNT ( * ) WHEN + - 24 THEN NULL ELSE + 24 + MAX ( - 46 ) + + COUNT ( * ) END WHEN 24 - + + 15 * + - 43 * - - 44 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT 95 + 4 * + - CASE + - 20 WHEN - 66 + - 12 + + COUNT( * ) THEN 40 END / + 34 * + 59 + 60 + AVG ( ALL + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT 95 + 4 * + - CASE + - 20 WHEN - 66 + - 12 + + COUNT ( * ) THEN 40 END / + 34 * + 59 + 60 + AVG ( ALL + 10 )
----
NULL

query I rowsort
SELECT ALL + + 75 * - 16 AS col0
----
-1200

query I rowsort
SELECT - 3 * - COALESCE ( - 57, 2 ) AS col1
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT ALL 73 + - + CAST( NULL AS SIGNED ) - - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL 73 + - + CAST ( NULL AS INTEGER ) - - + 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT ALL - CASE + ( - 52 ) WHEN - + 43 THEN + 72 ELSE + NULLIF ( - COUNT( * ), + - 72 ) DIV + - 63 + - ( 34 ) - + - COUNT( * ) - - 87 END + - + 8 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - CASE + ( - 52 ) WHEN - + 43 THEN + 72 ELSE + NULLIF ( - COUNT ( * ), + - 72 ) / + - 63 + - ( 34 ) - + - COUNT ( * ) - - 87 END + - + 8 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL - COUNT( * ) * + 56
----
-56

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - COUNT ( * ) * + 56
----
-56

query I rowsort
SELECT 20 * - + 28
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT 23 + 40 + 36 * + + 0 * + COUNT( * ) - + - 9 * - 76 - ( - 9 ) AS col2
----
-612

skipif mysql # not compatible
query I rowsort label-4689
SELECT 23 + 40 + 36 * + + 0 * + COUNT ( * ) - + - 9 * - 76 - ( - 9 ) AS col2
----
-612

query II rowsort
SELECT DISTINCT 8 AS col0, + 62 * - + ( - - 88 )
----
8
-5456

query I rowsort
SELECT 0 - - + 62 + - - 39 + - 73 - + CASE + + 42 WHEN - - 45 THEN NULL ELSE - 66 END AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT 45 * - + COUNT( * ) * 22
----
-990

skipif mysql # not compatible
query I rowsort label-4692
SELECT 45 * - + COUNT ( * ) * 22
----
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT DISTINCT - CASE - + 80 WHEN - 49 THEN NULL ELSE + - 27 + + 74 * NULLIF ( + + 75, + - 91 ) END DIV + - 32 + + 81
----
253

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - CASE - + 80 WHEN - 49 THEN NULL ELSE + - 27 + + 74 * NULLIF ( + + 75, + - 91 ) END / + - 32 + + 81
----
253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT ALL - ( - CAST( + 90 AS SIGNED ) ) col2
----
90

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - ( - CAST ( + 90 AS INTEGER ) ) col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4695
SELECT ALL - 84 DIV - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - 84 / - COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - NULLIF ( + COUNT( * ), + + COUNT( ALL - 23 ) ) * 13 - + 50 - + AVG ( DISTINCT 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT - NULLIF ( + COUNT ( * ), + + COUNT ( ALL - 23 ) ) * 13 - + 50 - + AVG ( DISTINCT 74 ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT 25 * - + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4698
SELECT 25 * - + COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT - COUNT( + 44 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT - COUNT ( + 44 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT COUNT( * ) * - + 26
----
-26

skipif mysql # not compatible
query I rowsort label-4700
SELECT COUNT ( * ) * - + 26
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT ( + + 68 ) * 55 DIV - 41 - + - 38 + + ( + - ( 84 ) ) AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-4701
SELECT ( + + 68 ) * 55 / - 41 - + - 38 + + ( + - ( 84 ) ) AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT MAX( DISTINCT + + 60 ) * + 57 - - COUNT( * ) AS col1
----
3421

skipif mysql # not compatible
query I rowsort label-4702
SELECT MAX ( DISTINCT + + 60 ) * + 57 - - COUNT ( * ) AS col1
----
3421

query I rowsort
SELECT 85 * - - 43 + + 4 + 76
----
3735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT - 19 * - + 80 + + - 83 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT - 19 * - + 80 + + - 83 + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 62 + - 43 AS col0
----
19

query I rowsort
SELECT ALL 15 * - 97
----
-1455

query I rowsort
SELECT - 85 + - - ( - 83 ) col1
----
-168

query I rowsort
SELECT DISTINCT - - 59
----
59

query I rowsort
SELECT ALL - 19 * 99 AS col2
----
-1881

query I rowsort
SELECT - ( + 16 ) AS col1
----
-16

query I rowsort
SELECT ALL + NULLIF ( 0, 77 ) + - 15
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4712
SELECT DISTINCT + 94 + + 30 + - - ( - NULLIF ( - 12, CAST( NULL AS SIGNED ) ) ) + - 30 + + 18 DIV - 12 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + 94 + + 30 + - - ( - NULLIF ( - 12, CAST ( NULL AS INTEGER ) ) ) + - 30 + + 18 / - 12 AS col2
----
105

query I rowsort
SELECT DISTINCT + 36 + + 88
----
124

query I rowsort
SELECT ALL - - 60 + + 67 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT 58 * COUNT( * ) + + - 12
----
46

skipif mysql # not compatible
query I rowsort label-4715
SELECT 58 * COUNT ( * ) + + - 12
----
46

query I rowsort
SELECT DISTINCT 89 + + 14 AS col1
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT - COUNT( * ) AS col2, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-4717
SELECT - COUNT ( * ) AS col2, + COUNT ( * )
----
-1
1

query II rowsort
SELECT - 2, - 74 AS col2
----
-2
-74

query II rowsort
SELECT ALL 68 + + 75, - 95 col0
----
143
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4720
SELECT ALL COUNT( * ) + - 82 * + - COALESCE ( + 83, - 43, + 73 DIV COUNT( ALL - - 9 ) * - 13 * - 97 - + + COALESCE ( - 9, + 10 ) ) * + 73, 32 col0
----
496839
32

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL COUNT ( * ) + - 82 * + - COALESCE ( + 83, - 43, + 73 / COUNT ( ALL - - 9 ) * - 13 * - 97 - + + COALESCE ( - 9, + 10 ) ) * + 73, 32 col0
----
496839
32

query I rowsort
SELECT NULLIF ( 6, + - AVG ( 73 ) ) * - - 7 AS col1
----
42

query I rowsort
SELECT COALESCE ( 79, + + 20 - + 50 + 71 ) + 41 * + 62 * + ( - 13 )
----
-32967

query II rowsort
SELECT ALL - 88 * - 92 AS col0, 70
----
8096
70

query I rowsort
SELECT 19 + 52
----
71

query I rowsort
SELECT ALL + 15 - - 60 + 11 + - 40 AS col0
----
46

query II rowsort
SELECT ALL - 9 AS col2, 10 * 65 AS col2
----
-9
650

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4727
SELECT COALESCE ( - + 19, COUNT( * ), - + COUNT( * ) * - + 89 DIV - 31 ) AS col0, 57 AS col2
----
-19
57

skipif mysql # not compatible
query II rowsort label-4727
SELECT COALESCE ( - + 19, COUNT ( * ), - + COUNT ( * ) * - + 89 / - 31 ) AS col0, 57 AS col2
----
-19
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL - SUM( + 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL - SUM ( + 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT + CASE - 80 WHEN - - 38 + + + 54 THEN NULL WHEN + 49 / - 93 + + 31 + + COUNT( * ) THEN - 41 WHEN + - COUNT( * ) + - 74 + + 58 - - 76 THEN NULL ELSE 39 + 16 END
----
55

skipif mysql # not compatible
query I rowsort label-4729
SELECT + CASE - 80 WHEN - - 38 + + + 54 THEN NULL WHEN + 49 / - 93 + + 31 + + COUNT ( * ) THEN - 41 WHEN + - COUNT ( * ) + - 74 + + 58 - - 76 THEN NULL ELSE 39 + 16 END
----
55

query II rowsort
SELECT ALL - 99 col0, 58 * - 74 + 55
----
-99
-4237

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT - ( - SUM( ALL 69 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT - ( - SUM ( ALL 69 ) ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT COUNT( * ) AS col1, 90 + 60 AS col2
----
1
150

skipif mysql # not compatible
query II rowsort label-4732
SELECT COUNT ( * ) AS col1, 90 + 60 AS col2
----
1
150

query II rowsort
SELECT + 88 AS col2, - 43 + + ( + 53 ) * 87 AS col1
----
88
4568

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT DISTINCT - 35 DIV + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT - 35 / + 64 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4735
SELECT ALL + CAST( NULL AS SIGNED ), - 81 AS col2
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-4735
SELECT ALL + CAST ( NULL AS INTEGER ), - 81 AS col2
----
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + + COUNT( DISTINCT 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + + COUNT ( DISTINCT 0 ) AS col0
----
1

query II rowsort
SELECT ALL - 41 * - 52 + + 29 + 42 AS col0, 7
----
2203
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT + 92 + + SUM( ALL + 47 ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-4738
SELECT + 92 + + SUM ( ALL + 47 ) AS col0
----
139

query I rowsort
SELECT + + 54 * 12
----
648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4740
SELECT - 49 - - - 47 + + NULLIF ( 91, + 1 * - CAST( 34 AS DECIMAL ) / + - 87 * - 70 + - ( + 20 ) + - CASE ( + 25 ) WHEN 46 THEN - CAST( - + ( - - AVG ( 33 ) ) AS SIGNED ) ELSE NULL END ) * + MIN( NULLIF ( - 19, + ( 89 ) * - 42 ) ) AS col0
----
-1825

skipif mysql # not compatible
query I rowsort label-4740
SELECT - 49 - - - 47 + + NULLIF ( 91, + 1 * - CAST ( 34 AS REAL ) / + - 87 * - 70 + - ( + 20 ) + - CASE ( + 25 ) WHEN 46 THEN - CAST ( - + ( - - AVG ( 33 ) ) AS INTEGER ) ELSE NULL END ) * + MIN ( NULLIF ( - 19, + ( 89 ) * - 42 ) ) AS col0
----
-1825

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL + - COUNT( * ) + 94
----
93

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL + - COUNT ( * ) + 94
----
93

query I rowsort
SELECT + 76 * ( + 21 )
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - + COUNT( + 49 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4743
SELECT - + COUNT ( + 49 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL - 32 + - COUNT( - - 1 )
----
-33

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL - 32 + - COUNT ( - - 1 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT - + 27 AS col0, 31 + 67 - + 14 - 4 * - COUNT( DISTINCT - 12 )
----
-27
88

skipif mysql # not compatible
query II rowsort label-4745
SELECT - + 27 AS col0, 31 + 67 - + 14 - 4 * - COUNT ( DISTINCT - 12 )
----
-27
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4746
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) + + - 58 - + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + - 58 - + - 48
----
NULL

query I rowsort
SELECT DISTINCT 77 + - - 49
----
126

query I rowsort
SELECT ALL ( + 39 ) - + 16
----
23

query I rowsort
SELECT + 79 * + 38 AS col0
----
3002

query I rowsort
SELECT - ( - - ( + 3 ) )
----
-3

query I rowsort
SELECT + 43 * + 95 * + 46
----
187910

query I rowsort
SELECT - COALESCE ( + 91, + 44 ) * + 34 * + 20 AS col1
----
-61880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT + 60 - + CAST( - - 35 AS SIGNED ) + - 83 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4753
SELECT + 60 - + CAST ( - - 35 AS INTEGER ) + - 83 AS col0
----
-58

query I rowsort
SELECT + 19 * + 84 AS col1
----
1596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4755
SELECT 21 DIV ( - + 35 ) - - + 93 * 20 * MAX( DISTINCT - + ( 86 ) ) * 27 + + 26 + - + COUNT( DISTINCT + + 89 ) AS col2
----
-4318895

skipif mysql # not compatible
query I rowsort label-4755
SELECT 21 / ( - + 35 ) - - + 93 * 20 * MAX ( DISTINCT - + ( 86 ) ) * 27 + + 26 + - + COUNT ( DISTINCT + + 89 ) AS col2
----
-4318895

query I rowsort
SELECT DISTINCT - 48 * + + 50 AS col2
----
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT + 89 * + + CAST( 90 AS SIGNED ) AS col2
----
8010

skipif mysql # not compatible
query I rowsort label-4757
SELECT + 89 * + + CAST ( 90 AS INTEGER ) AS col2
----
8010

query I rowsort
SELECT ( + - CASE + 56 WHEN CASE WHEN ( NULL > ( + + 6 ) ) THEN - 61 - - - 81 + + NULLIF ( - + 14, + 25 ) + NULLIF ( 59, - + 16 ) * + + 1 + + 57 + + 90 * + 97 * + 0 + - 39 + + + 42 * + 41 - - - 98 * + + 75 END * + 53 THEN NULL WHEN 91 + - 96 THEN NULL WHEN + 49 + + 82 * - 51 THEN 98 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 12 * 37 AS col1
----
444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL - 15 * + COUNT( * ) * - 4 + + + AVG ( - CAST( 93 AS SIGNED ) ) + - + NULLIF ( - + NULLIF ( 19, 12 * + - 82 / + 68 ), 49 ) * 33 * 35 / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - 15 * + COUNT ( * ) * - 4 + + + AVG ( - CAST ( 93 AS INTEGER ) ) + - + NULLIF ( - + NULLIF ( 19, 12 * + - 82 / + 68 ), 49 ) * 33 * 35 / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 81 + 45 * 79
----
3474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT + COUNT( * ) + + CASE 65 WHEN + - 85 THEN + - COUNT( * ) + 74 * - CASE - 85 WHEN 64 THEN NULL ELSE + 65 * - - MIN( DISTINCT 79 ) END + 47 WHEN - MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + 81 THEN NULL ELSE ( - 95 ) END * + ( + + ( - 98 ) ) + - + COUNT( * )
----
9310

skipif mysql # not compatible
query I rowsort label-4762
SELECT + COUNT ( * ) + + CASE 65 WHEN + - 85 THEN + - COUNT ( * ) + 74 * - CASE - 85 WHEN 64 THEN NULL ELSE + 65 * - - MIN ( DISTINCT 79 ) END + 47 WHEN - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 81 THEN NULL ELSE ( - 95 ) END * + ( + + ( - 98 ) ) + - + COUNT ( * )
----
9310

query I rowsort
SELECT NULLIF ( + 16, + 61 ) col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT DISTINCT + + SUM( + - 57 ), - ( + + 10 ) AS col0
----
-57
-10

skipif mysql # not compatible
query II rowsort label-4764
SELECT DISTINCT + + SUM ( + - 57 ), - ( + + 10 ) AS col0
----
-57
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT + MIN( + - 73 ) * SUM( + 61 ) * + COUNT( * ) + + + COALESCE ( + 10, + - ( - 58 ) + - 79 + 23, 14 + + 15 ) + 61 + - MAX( ALL 73 )
----
-4455

skipif mysql # not compatible
query I rowsort label-4765
SELECT + MIN ( + - 73 ) * SUM ( + 61 ) * + COUNT ( * ) + + + COALESCE ( + 10, + - ( - 58 ) + - 79 + 23, 14 + + 15 ) + 61 + - MAX ( ALL 73 )
----
-4455

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4766
SELECT ALL + 86 DIV - NULLIF ( + + 55, CASE 95 WHEN 24 * CAST( + 68 AS SIGNED ) THEN AVG ( - 40 ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL + 86 / - NULLIF ( + + 55, CASE 95 WHEN 24 * CAST ( + 68 AS INTEGER ) THEN AVG ( - 40 ) END )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT ALL + - CAST( NULL AS SIGNED ) * - 28 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 28 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT - COUNT( * ) + + 52 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4768
SELECT - COUNT ( * ) + + 52 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT + CAST( + - 54 AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4769
SELECT + CAST ( + - 54 AS INTEGER ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4770
SELECT - - COUNT( * ) * + CAST( NULL AS SIGNED ), 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-4770
SELECT - - COUNT ( * ) * + CAST ( NULL AS INTEGER ), 7 AS col2
----
NULL
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT ALL + COUNT( * ) DIV - 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL + COUNT ( * ) / - 35 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4772
SELECT DISTINCT + - 57 * NULLIF ( + + COUNT( * ), + 54 ) * + - NULLIF ( 5, - - 97 ) * + + 30 + + 23 - - 7 DIV COUNT( * ) - + 45 AS col2
----
8535

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT + - 57 * NULLIF ( + + COUNT ( * ), + 54 ) * + - NULLIF ( 5, - - 97 ) * + + 30 + + 23 - - 7 / COUNT ( * ) - + 45 AS col2
----
8535

query I rowsort
SELECT - 36 * + + 76 * 1 * - 72 AS col0
----
196992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT - ( + 2 ) + - 20 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT - ( + 2 ) + - 20 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4775
SELECT - 63 / CASE 79 WHEN - + 81 + + 6 THEN + - NULLIF ( 34, - ( MAX( - + 99 ) ) - + 89 ) WHEN - 79 + - COALESCE ( 38, + + 94, CAST( COUNT( * ) AS SIGNED ) + - COALESCE ( + 71, + 54 ) + 84 - - + ( 80 ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT - 63 / CASE 79 WHEN - + 81 + + 6 THEN + - NULLIF ( 34, - ( MAX ( - + 99 ) ) - + 89 ) WHEN - 79 + - COALESCE ( 38, + + 94, CAST ( COUNT ( * ) AS INTEGER ) + - COALESCE ( + 71, + 54 ) + 84 - - + ( 80 ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4776
SELECT ALL + 24 DIV + + COUNT( 0 ) AS col0, 27 * + 62 col1
----
24
1674

skipif mysql # not compatible
query II rowsort label-4776
SELECT ALL + 24 / + + COUNT ( 0 ) AS col0, 27 * + 62 col1
----
24
1674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4777
SELECT - 26 + - CASE - + 77 WHEN + - 78 THEN + CAST( NULL AS SIGNED ) + - COUNT( * ) END / + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT - 26 + - CASE - + 77 WHEN + - 78 THEN + CAST ( NULL AS INTEGER ) + - COUNT ( * ) END / + 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT - MAX( ALL 30 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-4778
SELECT - MAX ( ALL 30 ) col2
----
-30

query I rowsort
SELECT DISTINCT ( 23 ) AS col2
----
23

query I rowsort
SELECT DISTINCT 32 * 96 AS col0
----
3072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4781
SELECT DISTINCT CAST( + COUNT( - - 23 ) AS SIGNED ) AS col1, + 1 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4781
SELECT DISTINCT CAST ( + COUNT ( - - 23 ) AS INTEGER ) AS col1, + 1 AS col0
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4782
SELECT + COUNT( ALL - - CAST( + 36 AS SIGNED ) ) * + 85 * + 89 col2
----
7565

skipif mysql # not compatible
query I rowsort label-4782
SELECT + COUNT ( ALL - - CAST ( + 36 AS INTEGER ) ) * + 85 * + 89 col2
----
7565

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT + COUNT( - 48 ) + - + 84
----
-83

skipif mysql # not compatible
query I rowsort label-4783
SELECT + COUNT ( - 48 ) + - + 84
----
-83

query II rowsort
SELECT ALL + ( + 23 ) * 77, + 84 AS col0
----
1771
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT ALL 19 AS col0, 24 * - 19 * - + NULLIF ( + + 55, - 80 + + + MIN( DISTINCT + 48 ) * - - CASE + + 9 WHEN 43 THEN + CASE + 66 WHEN - 68 THEN - - 74 WHEN + MAX( ALL - 23 ) + ( - - COUNT( * ) ) + - 1 THEN + AVG ( ALL + 78 ) WHEN - 63 THEN NULL ELSE 31 END END )
----
19
25080

skipif mysql # not compatible
query II rowsort label-4785
SELECT ALL 19 AS col0, 24 * - 19 * - + NULLIF ( + + 55, - 80 + + + MIN ( DISTINCT + 48 ) * - - CASE + + 9 WHEN 43 THEN + CASE + 66 WHEN - 68 THEN - - 74 WHEN + MAX ( ALL - 23 ) + ( - - COUNT ( * ) ) + - 1 THEN + AVG ( ALL + 78 ) WHEN - 63 THEN NULL ELSE 31 END END )
----
19
25080

query I rowsort
SELECT + 49 + 34 AS col2
----
83

query II rowsort
SELECT 35 + - + NULLIF ( 27, + 20 ) + ( - 9 ) col1, 99
----
-1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4788
SELECT COUNT( * ) DIV COUNT( ALL - + 0 ) * - 31 + - COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4788
SELECT COUNT ( * ) / COUNT ( ALL - + 0 ) * - 31 + - COUNT ( * ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT ALL 31 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL 31 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT COUNT( * ) + + 79 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4790
SELECT COUNT ( * ) + + 79 AS col0
----
80

query I rowsort
SELECT ( - 87 ) - - 52
----
-35

query I rowsort
SELECT 54 + - 65
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4793
SELECT ALL + CAST( NULL AS SIGNED ) * MIN( 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + CAST ( NULL AS INTEGER ) * MIN ( 97 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL COUNT( * ) + 97 + ( + 52 )
----
150

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL COUNT ( * ) + 97 + ( + 52 )
----
150

query I rowsort
SELECT ALL 71 + 11 - + 59 * - + 63
----
3799

query I rowsort
SELECT DISTINCT 30 + + 61
----
91

query II rowsort
SELECT 81 AS col1, - 16
----
81
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT - 82 DIV - + 16 + + SUM( ALL - 39 )
----
-34

skipif mysql # not compatible
query I rowsort label-4798
SELECT - 82 / - + 16 + + SUM ( ALL - 39 )
----
-34

query I rowsort
SELECT ALL 21 + + 54
----
75

query I rowsort
SELECT + + 3 col0
----
3

query II rowsort
SELECT + + 93 col1, NULLIF ( + 75, + 36 )
----
93
75

query I rowsort
SELECT ALL - 31 + + - 61
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4803
SELECT + COUNT( * ) * - 87 + - + 69 AS col2, 13 * + 15 AS col0
----
-156
195

skipif mysql # not compatible
query II rowsort label-4803
SELECT + COUNT ( * ) * - 87 + - + 69 AS col2, 13 * + 15 AS col0
----
-156
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL + 40 * - COALESCE ( + + COUNT( * ), 2, + 98 - + 1 ) * - 70
----
2800

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + 40 * - COALESCE ( + + COUNT ( * ), 2, + 98 - + 1 ) * - 70
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT + - MIN( ALL 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4805
SELECT + - MIN ( ALL 83 ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-4806
SELECT ALL - + COALESCE ( - 75, 19 * - MIN( + 9 ) + 8 + - + COUNT( * ) + + NULLIF ( 56, - 42 + - 71 + + ( + 8 ) - - - 67 * 58 * + COUNT( * ) / - COUNT( * ) / 33 ) * ( + 50 ) ) - + COUNT( * ), 52 * - 6 * - - 33 AS col1
----
74
-10296

skipif mysql # not compatible
query II rowsort label-4806
SELECT ALL - + COALESCE ( - 75, 19 * - MIN ( + 9 ) + 8 + - + COUNT ( * ) + + NULLIF ( 56, - 42 + - 71 + + ( + 8 ) - - - 67 * 58 * + COUNT ( * ) / - COUNT ( * ) / 33 ) * ( + 50 ) ) - + COUNT ( * ), 52 * - 6 * - - 33 AS col1
----
74
-10296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT DISTINCT - + CAST( - + 27 AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT - + CAST ( - + 27 AS INTEGER ) AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4808
SELECT COUNT( * ) AS col0, 89 * - + CASE - 88 WHEN 96 THEN NULL WHEN + AVG ( DISTINCT + 93 ) + + 5 THEN NULL ELSE - - 0 END DIV - 85 + - ( 5 ) + + 20 * 42 + + + 43 DIV + SUM( ALL - 18 ) AS col0
----
1
833

skipif mysql # not compatible
query II rowsort label-4808
SELECT COUNT ( * ) AS col0, 89 * - + CASE - 88 WHEN 96 THEN NULL WHEN + AVG ( DISTINCT + 93 ) + + 5 THEN NULL ELSE - - 0 END / - 85 + - ( 5 ) + + 20 * 42 + + + 43 / + SUM ( ALL - 18 ) AS col0
----
1
833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL CASE + 72 WHEN - CAST( + - COUNT( * ) AS SIGNED ) * + 56 * - + 29 THEN + ( + CAST( - 1 AS SIGNED ) ) + + + 73 + + - 15 END - + - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL CASE + 72 WHEN - CAST ( + - COUNT ( * ) AS INTEGER ) * + 56 * - + 29 THEN + ( + CAST ( - 1 AS INTEGER ) ) + + + 73 + + - 15 END - + - 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT COUNT( * ) * - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4810
SELECT COUNT ( * ) * - 79 AS col0
----
-79

query II rowsort
SELECT + 47 - - ( - 54 ), + 2 AS col2
----
-7
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT COUNT( * ) - - 24 - - 66 * 57 AS col0
----
3787

skipif mysql # not compatible
query I rowsort label-4812
SELECT COUNT ( * ) - - 24 - - 66 * 57 AS col0
----
3787

query II rowsort
SELECT DISTINCT - 11 * - - 44 AS col2, - 43 AS col1
----
-484
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT - COUNT( * ) * + + ( + + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT - COUNT ( * ) * + + ( + + 70 )
----
-70

query I rowsort
SELECT 19 * + - 34
----
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT 54 * + - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-4816
SELECT 54 * + - COUNT ( * )
----
-54

query I rowsort
SELECT 57 - + 34 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT ALL + MIN( + - CAST( NULL AS SIGNED ) ) * 66 + + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL + MIN ( + - CAST ( NULL AS INTEGER ) ) * 66 + + - 86 AS col0
----
NULL

query I rowsort
SELECT 28 * - 94 * - 60
----
157920

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT 73 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT 73 / 79
----
0

query I rowsort
SELECT 47 + + 82 + + 71
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT ALL + 66 * + 43 * CAST( 39 AS SIGNED )
----
110682

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL + 66 * + 43 * CAST ( 39 AS INTEGER )
----
110682

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT 54 * + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4823
SELECT 54 * + COUNT ( * )
----
54

query I rowsort
SELECT DISTINCT + 21 + 8 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL COUNT( 11 ) + + 27 + - 11
----
17

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL COUNT ( 11 ) + + 27 + - 11
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL + 22 + + 58 + - - 32 + 12 + COUNT( * ) + - 32 + - 65 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL + 22 + + 58 + - - 32 + 12 + COUNT ( * ) + - 32 + - 65 AS col1
----
28

query I rowsort
SELECT 53 + - 71 AS col0
----
-18

query I rowsort
SELECT ALL + 4 * 30
----
120

query I rowsort
SELECT ( + 45 ) * - ( - - ( + 53 ) ) AS col1
----
-2385

query I rowsort
SELECT + 88 - + 57
----
31

query I rowsort
SELECT + CASE + - ( - + 44 ) WHEN + 59 THEN - 86 * - 99 * + - 51 / + - 89 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4832
SELECT + - COALESCE ( + 97, + 64 * - 45 - + 13 + 4 + + + CAST( - COUNT( * ) AS SIGNED ) * - COALESCE ( + 38, - - 89 * - 97 - - CASE - COUNT( * ) WHEN - - ( - CAST( NULL AS SIGNED ) ) THEN + 66 + - 19 WHEN + COUNT( * ) * 3 THEN + 2 WHEN + 25 + MAX( + - 80 ) THEN NULL END + - 5 * 85 - + - MAX( DISTINCT - NULLIF ( - 5, 36 * + + 49 + - + 80 ) ) ) * + 31 + COUNT( * ) DIV - 6 ) DIV 29 + 15
----
12

skipif mysql # not compatible
query I rowsort label-4832
SELECT + - COALESCE ( + 97, + 64 * - 45 - + 13 + 4 + + + CAST ( - COUNT ( * ) AS INTEGER ) * - COALESCE ( + 38, - - 89 * - 97 - - CASE - COUNT ( * ) WHEN - - ( - CAST ( NULL AS INTEGER ) ) THEN + 66 + - 19 WHEN + COUNT ( * ) * 3 THEN + 2 WHEN + 25 + MAX ( + - 80 ) THEN NULL END + - 5 * 85 - + - MAX ( DISTINCT - NULLIF ( - 5, 36 * + + 49 + - + 80 ) ) ) * + 31 + COUNT ( * ) / - 6 ) / 29 + 15
----
12

query II rowsort
SELECT 10 + - 21, 52 * 59 AS col0
----
-11
3068

query I rowsort
SELECT 2 * 65 col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT - 93 * 69 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT - 93 * 69 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 20 * - 17 AS col1
----
-340

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4837
SELECT - 95 + + 40 col0, COUNT( * ) DIV 82 col0
----
-55
0

skipif mysql # not compatible
query II rowsort label-4837
SELECT - 95 + + 40 col0, COUNT ( * ) / 82 col0
----
-55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT - - NULLIF ( + - COUNT( * ), + 31 * + ( + 6 ) - - - 54 + + 0 - - 67 * + 37 + + 45 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT - - NULLIF ( + - COUNT ( * ), + 31 * + ( + 6 ) - - - 54 + + 0 - - 67 * + 37 + + 45 ) col2
----
-1

query I rowsort
SELECT + 18 + 88 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-4840
SELECT - 88 DIV + 63 + - 72 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4840
SELECT - 88 / + 63 + - 72 AS col1
----
-73

query I rowsort
SELECT - 1 * - + 97
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4842
SELECT DISTINCT + 15 DIV 55 AS col0, - 52 * + 87 + - 48 * + 13 * + ( + 67 )
----
0
-46332

skipif mysql # not compatible
query II rowsort label-4842
SELECT DISTINCT + 15 / 55 AS col0, - 52 * + 87 + - 48 * + 13 * + ( + 67 )
----
0
-46332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT - 45 + - 45 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT - 45 + - 45 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 51 + - 29
----
22

query I rowsort
SELECT ALL - - ( + 40 )
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4846
SELECT CAST( NULL AS DECIMAL ) * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT CAST ( NULL AS REAL ) * 74 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT DISTINCT 3 * + - CAST( + - 15 AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT 3 * + - CAST ( + - 15 AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT 70 * + CAST( NULL AS SIGNED ) + - + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT 70 * + CAST ( NULL AS INTEGER ) + - + 54 AS col2
----
NULL

query I rowsort
SELECT - 49 * + 84
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL 55 + - 8 + + - CASE - + 91 WHEN + + CASE + 72 WHEN - - 29 + + - 67 THEN 47 WHEN + COUNT( * ) THEN NULL END * + 64 * - 34 + 75 * COUNT( * ) / - 66 THEN - + 11 * - 5 * - 14 WHEN - 31 * - - ( - - 73 ) + - - ( - 48 ) THEN NULL ELSE NULL END + + 57 * + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL 55 + - 8 + + - CASE - + 91 WHEN + + CASE + 72 WHEN - - 29 + + - 67 THEN 47 WHEN + COUNT ( * ) THEN NULL END * + 64 * - 34 + 75 * COUNT ( * ) / - 66 THEN - + 11 * - 5 * - 14 WHEN - 31 * - - ( - - 73 ) + - - ( - 48 ) THEN NULL ELSE NULL END + + 57 * + + 86
----
NULL

query III rowsort
SELECT 82 AS col1, + 16 * + + 4 AS col1, + 89 * 29 - + 20
----
82
64
2561

query II rowsort
SELECT 17 AS col2, - 43
----
17
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4853
SELECT + COUNT( * ) + - + CASE - + NULLIF ( - - 55, + 89 + + 20 * + COUNT( * ) ) WHEN - + 36 * ( 96 ) / - + 50 * + 83 THEN - NULLIF ( + CAST( NULL AS DECIMAL ), COUNT( * ) ) WHEN ( MAX( - 28 ) ) * + - ( + 37 ) THEN NULL WHEN + 5 THEN NULL END + 9 + - + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT + COUNT ( * ) + - + CASE - + NULLIF ( - - 55, + 89 + + 20 * + COUNT ( * ) ) WHEN - + 36 * ( 96 ) / - + 50 * + 83 THEN - NULLIF ( + CAST ( NULL AS REAL ), COUNT ( * ) ) WHEN ( MAX ( - 28 ) ) * + - ( + 37 ) THEN NULL WHEN + 5 THEN NULL END + 9 + - + 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT - NULLIF ( - - COUNT( DISTINCT - 27 ), + 8 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4854
SELECT - NULLIF ( - - COUNT ( DISTINCT - 27 ), + 8 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL MAX( ALL - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL MAX ( ALL - 35 )
----
-35

query I rowsort
SELECT DISTINCT - 80 + + 33 AS col1
----
-47

query I rowsort
SELECT - 83 + - 17 AS col0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4858
SELECT DISTINCT - 90 + 69 DIV + 45 + - 16 * SUM( + - 99 ) AS col2
----
1495

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT - 90 + 69 / + 45 + - 16 * SUM ( + - 99 ) AS col2
----
1495

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4859
SELECT - CAST( + 53 AS SIGNED ) + - 64 + ( - CAST( - 26 AS DECIMAL ) ) * - 89 * + ( + 10 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT - CAST ( + 53 AS INTEGER ) + - 64 + ( - CAST ( - 26 AS REAL ) ) * - 89 * + ( + 10 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 17 * + 11 AS col0
----
187

query I rowsort
SELECT ALL - 63 + 22 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT - COUNT( * ) + - 13 + + ( + 79 ) * + + 33
----
2593

skipif mysql # not compatible
query I rowsort label-4862
SELECT - COUNT ( * ) + - 13 + + ( + 79 ) * + + 33
----
2593

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT - 86 + - COALESCE ( + 61, + ( 60 ), - SUM( DISTINCT - + 37 ) ) * - 55 + - - 32 AS col1
----
3301

skipif mysql # not compatible
query I rowsort label-4863
SELECT - 86 + - COALESCE ( + 61, + ( 60 ), - SUM ( DISTINCT - + 37 ) ) * - 55 + - - 32 AS col1
----
3301

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - CASE + COALESCE ( - + COUNT( * ), + - 14 ) WHEN 9 + - 15 THEN + + 11 WHEN + NULLIF ( 33, + COUNT( * ) + - 14 / - 28 * - + CASE - 76 WHEN 39 THEN NULL WHEN - + 59 THEN + + 94 ELSE NULL END / - 26 - - 21 + + 56 ) THEN NULL WHEN - 65 THEN - NULLIF ( - NULLIF ( + 87, 85 * + - 23 ), - - 11 ) + - 99 * + + 95 + - 52 + 21 - - COUNT( * ) * - 10 ELSE NULL END + SUM( ALL 77 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT - CASE + COALESCE ( - + COUNT ( * ), + - 14 ) WHEN 9 + - 15 THEN + + 11 WHEN + NULLIF ( 33, + COUNT ( * ) + - 14 / - 28 * - + CASE - 76 WHEN 39 THEN NULL WHEN - + 59 THEN + + 94 ELSE NULL END / - 26 - - 21 + + 56 ) THEN NULL WHEN - 65 THEN - NULLIF ( - NULLIF ( + 87, 85 * + - 23 ), - - 11 ) + - 99 * + + 95 + - 52 + 21 - - COUNT ( * ) * - 10 ELSE NULL END + SUM ( ALL 77 ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 62 * + 47
----
-2914

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL - COUNT( - 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL - COUNT ( - 67 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT DISTINCT + + ( + ( - 19 ) ) - AVG ( CAST( NULL AS SIGNED ) ) * 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT + + ( + ( - 19 ) ) - AVG ( CAST ( NULL AS INTEGER ) ) * 5 col2
----
NULL

query I rowsort
SELECT - - 43 + - + 49 * - 58 * + 14
----
39831

query I rowsort
SELECT ALL + NULLIF ( - - 61, + - 18 ) AS col0
----
61

query II rowsort
SELECT + 80, 12 AS col0
----
80
12

query I rowsort
SELECT - 89 * - - 99
----
-8811

query I rowsort
SELECT - ( 92 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT + COUNT( * ) col2, COUNT( ALL + 13 )
----
1
1

skipif mysql # not compatible
query II rowsort label-4873
SELECT + COUNT ( * ) col2, COUNT ( ALL + 13 )
----
1
1

query II rowsort
SELECT + 75, 8 AS col1
----
75
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + + COUNT( * ) * + 2
----
2

skipif mysql # not compatible
query I rowsort label-4875
SELECT + + COUNT ( * ) * + 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL 55 * + 66 * + 74 * - COUNT( + ( - 43 ) ) * + 16
----
-4297920

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL 55 * + 66 * + 74 * - COUNT ( + ( - 43 ) ) * + 16
----
-4297920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 20
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4878
SELECT DISTINCT + 76 AS col2, + 68 DIV + NULLIF ( 27, + 81 * + ( 1 ) DIV - + 14 )
----
76
2

skipif mysql # not compatible
query II rowsort label-4878
SELECT DISTINCT + 76 AS col2, + 68 / + NULLIF ( 27, + 81 * + ( 1 ) / - + 14 )
----
76
2

query I rowsort
SELECT + 43 * + - 21 AS col1
----
-903

onlyif mysql # aggregate syntax: 
query II rowsort label-4880
SELECT + + MIN( ( - 70 ) ) AS col2, - 55
----
-70
-55

skipif mysql # not compatible
query II rowsort label-4880
SELECT + + MIN ( ( - 70 ) ) AS col2, - 55
----
-70
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL + ( 38 ) * + 70 * + + CAST( NULL AS SIGNED ) + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + ( 38 ) * + 70 * + + CAST ( NULL AS INTEGER ) + 95 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + COUNT( * ) * - 5 * - 24 * - - 35 * - - 85 AS col2
----
357000

skipif mysql # not compatible
query I rowsort label-4882
SELECT + COUNT ( * ) * - 5 * - 24 * - - 35 * - - 85 AS col2
----
357000

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT + MAX( + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-4883
SELECT + MAX ( + 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL 1 * - 58 + 42 * + + 1 - COUNT( * ) + - - 34 * + - 30
----
-1037

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL 1 * - 58 + 42 * + + 1 - COUNT ( * ) + - - 34 * + - 30
----
-1037

query I rowsort
SELECT + ( + ( - 96 ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL 8 * - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL 8 * - - COUNT ( * )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4887
SELECT ALL 88 * + COUNT( + 17 ) + COALESCE ( - COUNT( * ), - - 94 - - - COUNT( * ) ) DIV + + 67 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL 88 * + COUNT ( + 17 ) + COALESCE ( - COUNT ( * ), - - 94 - - - COUNT ( * ) ) / + + 67 AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT ALL MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 42 - + + 29 - 63 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT MAX( DISTINCT - - 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4890
SELECT MAX ( DISTINCT - - 75 ) AS col0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4891
SELECT + CAST( NULL AS DECIMAL ) - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT + CAST ( NULL AS REAL ) - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL MAX( + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL MAX ( + 84 )
----
84

query I rowsort
SELECT - ( + 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT + 6 * + 77 * + CASE + 24 WHEN + ( - 99 ) THEN + - COUNT( * ) WHEN + COALESCE ( + COUNT( * ), + MAX( + 64 ) + 89 ) THEN 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT + 6 * + 77 * + CASE + 24 WHEN + ( - 99 ) THEN + - COUNT ( * ) WHEN + COALESCE ( + COUNT ( * ), + MAX ( + 64 ) + 89 ) THEN 64 END AS col2
----
NULL

query I rowsort
SELECT - ( 12 ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT + CAST( - 13 AS SIGNED ) + + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-4896
SELECT + CAST ( - 13 AS INTEGER ) + + COUNT ( * )
----
-12

query II rowsort
SELECT 89 AS col2, + 91 AS col0
----
89
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT - - 47 DIV 30 + - 65 * - 55 * - 91 AS col0
----
-325324

skipif mysql # not compatible
query I rowsort label-4898
SELECT - - 47 / 30 + - 65 * - 55 * - 91 AS col0
----
-325324

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT - - 14 DIV + 28 * + + 3
----
0

skipif mysql # not compatible
query I rowsort label-4899
SELECT - - 14 / + 28 * + + 3
----
0

query I rowsort
SELECT ALL - 9 * - 85 * + 77
----
58905

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT + 73 DIV - + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4901
SELECT + 73 / - + 90 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4902
SELECT ALL - 17 * COUNT( * ) * 46 + 85 - - 2 DIV + 43 DIV 22 * - 77
----
-697

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL - 17 * COUNT ( * ) * 46 + 85 - - 2 / + 43 / 22 * - 77
----
-697

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4903
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1, + 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-4903
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1, + 84 AS col0
----
NULL
84

query II rowsort
SELECT ALL + 98, 28 AS col2
----
98
28

query I rowsort
SELECT - - 62 + - - NULLIF ( - 75, - 48 ) - 23 * - 38 * - 26
----
-22737

query I rowsort
SELECT - - CASE 70 WHEN + 16 * - 10 THEN 19 END * + 29 + 17 + - NULLIF ( 46, + 59 ) * - 40
----
NULL

query I rowsort
SELECT ALL + + ( - + 80 ) col2
----
-80

query II rowsort
SELECT ALL + - 6 AS col0, - ( + 9 ) AS col1
----
-6
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4909
SELECT + NULLIF ( + 47, 32 ) * - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + + NULLIF ( + - 11, - - COUNT( * ) + - 44 + NULLIF ( COUNT( * ), + - COUNT( DISTINCT 54 ) - + AVG ( ALL + 35 ) ) + COUNT( * ) * - 54 * CASE + CAST( 51 AS SIGNED ) WHEN - + 7 THEN NULL WHEN - 32 THEN - 30 END ) - - 14 - + COUNT( + 68 ) * COUNT( * ) * - 11 * 1 + - 9 * - - 63 - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT + NULLIF ( + 47, 32 ) * - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + + NULLIF ( + - 11, - - COUNT ( * ) + - 44 + NULLIF ( COUNT ( * ), + - COUNT ( DISTINCT 54 ) - + AVG ( ALL + 35 ) ) + COUNT ( * ) * - 54 * CASE + CAST ( 51 AS INTEGER ) WHEN - + 7 THEN NULL WHEN - 32 THEN - 30 END ) - - 14 - + COUNT ( + 68 ) * COUNT ( * ) * - 11 * 1 + - 9 * - - 63 - - 51
----
NULL

query II rowsort
SELECT 98 col0, 65 AS col1
----
98
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT + 58 DIV - COUNT( * ) + + + 8 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4911
SELECT + 58 / - COUNT ( * ) + + + 8 AS col0
----
-50

query II rowsort
SELECT 67 + + 91 col1, + 1
----
158
1

query I rowsort
SELECT ALL - 7 + 61
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT + COUNT( * ) + - NULLIF ( MAX( DISTINCT + - 53 ), + COALESCE ( - - SUM( ALL + 81 ), 61 ) )
----
54

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT + COUNT ( * ) + - NULLIF ( MAX ( DISTINCT + - 53 ), + COALESCE ( - - SUM ( ALL + 81 ), 61 ) )
----
54

query I rowsort
SELECT 57 + + - 67
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4916
SELECT ALL + CAST( NULL AS DECIMAL ) + + - CASE 62 WHEN + 52 / + 19 * - - 20 THEN MIN( DISTINCT + 98 ) * 10 * + COUNT( * ) + 68 * SUM( ALL 79 ) WHEN - 0 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL + CAST ( NULL AS REAL ) + + - CASE 62 WHEN + 52 / + 19 * - - 20 THEN MIN ( DISTINCT + 98 ) * 10 * + COUNT ( * ) + 68 * SUM ( ALL 79 ) WHEN - 0 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4917
SELECT DISTINCT 2 + CASE 86 WHEN + - 95 + - 10 * 7 * - AVG ( 74 ) + - 96 + + 39 THEN NULL WHEN - - CAST( NULL AS DECIMAL ) THEN NULL WHEN + + 79 THEN NULL ELSE - 29 END + 71 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT 2 + CASE 86 WHEN + - 95 + - 10 * 7 * - AVG ( 74 ) + - 96 + + 39 THEN NULL WHEN - - CAST ( NULL AS REAL ) THEN NULL WHEN + + 79 THEN NULL ELSE - 29 END + 71 AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT 47 DIV 30
----
1

skipif mysql # not compatible
query I rowsort label-4918
SELECT 47 / 30
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT + 3 * + CAST( 29 AS SIGNED ) + - 90 * - + 5 AS col0
----
537

skipif mysql # not compatible
query I rowsort label-4919
SELECT + 3 * + CAST ( 29 AS INTEGER ) + - 90 * - + 5 AS col0
----
537

query I rowsort
SELECT DISTINCT + 63 - 45 + + 53 + - AVG ( ALL - + 42 ) + + - CASE 99 WHEN + - ( - 42 ) THEN - 5 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL COUNT( * ) - + ( - COUNT( * ) ) - + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL COUNT ( * ) - + ( - COUNT ( * ) ) - + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4922
SELECT ( - COUNT( * ) ) * - ( + 87 ) * - - 6 + + + 84 + - + 16, 33 AS col0
----
590
33

skipif mysql # not compatible
query II rowsort label-4922
SELECT ( - COUNT ( * ) ) * - ( + 87 ) * - - 6 + + + 84 + - + 16, 33 AS col0
----
590
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT MAX( DISTINCT - - 37 ) + 41 * - 44 * - + COUNT( * ) * + CASE - 13 WHEN 38 THEN - 57 + 77 - 51 + - 25 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT MAX ( DISTINCT - - 37 ) + 41 * - 44 * - + COUNT ( * ) * + CASE - 13 WHEN 38 THEN - 57 + 77 - 51 + - 25 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT 82 * - MAX( 70 ) * + 95 * 28 * - + 3 AS col2
----
45805200

skipif mysql # not compatible
query I rowsort label-4924
SELECT 82 * - MAX ( 70 ) * + 95 * 28 * - + 3 AS col2
----
45805200

query I rowsort
SELECT ALL + 45 - - 60 AS col1
----
105

query I rowsort
SELECT ( + ( - 12 ) ) * - - ( 77 )
----
-924

query II rowsort
SELECT ALL - 24 - + 99, + 67 * - - 60 col0
----
-123
4020

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT 8 * - + MIN( + 4 ) + 1
----
-31

skipif mysql # not compatible
query I rowsort label-4928
SELECT 8 * - + MIN ( + 4 ) + 1
----
-31

query I rowsort
SELECT ALL 65 * + 44 * 14 - - - 74 * + 82
----
33972

query I rowsort
SELECT 39 + + 43
----
82

query I rowsort
SELECT 87 * + - 65 AS col0
----
-5655

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT - CASE + 33 WHEN + - 84 THEN CASE COUNT( + 55 ) WHEN 34 + 39 - - 40 + COUNT( * ) * + - 75 * 95 THEN + COUNT( * ) + + 87 ELSE NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT - CASE + 33 WHEN + - 84 THEN CASE COUNT ( + 55 ) WHEN 34 + 39 - - 40 + COUNT ( * ) * + - 75 * 95 THEN + COUNT ( * ) + + 87 ELSE NULL END ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 5 + - 87
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4934
SELECT ALL MAX( + CAST( + 40 AS SIGNED ) ) + 88 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL MAX ( + CAST ( + 40 AS INTEGER ) ) + 88 AS col2
----
128

query I rowsort
SELECT 33 + + 71 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT CASE 64 WHEN + + 34 THEN NULL WHEN + COUNT( * ) THEN - - 3 * - ( 63 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT CASE 64 WHEN + + 34 THEN NULL WHEN + COUNT ( * ) THEN - - 3 * - ( 63 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT + 3 + ( + COUNT( DISTINCT + 11 ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT + 3 + ( + COUNT ( DISTINCT + 11 ) ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT ALL + 45 + + COUNT( * ), 39 * - COUNT( * ) AS col2
----
46
-39

skipif mysql # not compatible
query II rowsort label-4938
SELECT ALL + 45 + + COUNT ( * ), 39 * - COUNT ( * ) AS col2
----
46
-39

query I rowsort
SELECT + CASE - 11 WHEN - + 15 THEN NULL ELSE - 68 END AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4940
SELECT 26 DIV + + 69
----
0

skipif mysql # not compatible
query I rowsort label-4940
SELECT 26 / + + 69
----
0

query I rowsort
SELECT ALL - ( 66 ) AS col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT DISTINCT CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) / 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4943
SELECT ALL COUNT( * ) + + - CAST( NULL AS DECIMAL ) * CASE - - 17 WHEN - 42 / + 99 + MIN( ALL + CAST( NULL AS DECIMAL ) ) - ( - 46 ) * + + 93 THEN + - 48 WHEN - + COUNT( ALL - 49 ) * + 99 + - 77 THEN 84 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS REAL ) * CASE - - 17 WHEN - 42 / + 99 + MIN ( ALL + CAST ( NULL AS REAL ) ) - ( - 46 ) * + + 93 THEN + - 48 WHEN - + COUNT ( ALL - 49 ) * + 99 + - 77 THEN 84 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - 22 AS col0, 79 * 40 + + 18 AS col1
----
-22
3178

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT 57 DIV - 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4945
SELECT 57 / - 49 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT ALL 79 + - COALESCE ( - + 83, - - 94 ) DIV + 91
----
79

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL 79 + - COALESCE ( - + 83, - - 94 ) / + 91
----
79

query I rowsort
SELECT ALL + 76 - 23
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT 12 * 76 * + - 54 + - - 76 DIV MIN( DISTINCT + 85 ) * 83 AS col2
----
-49248

skipif mysql # not compatible
query I rowsort label-4948
SELECT 12 * 76 * + - 54 + - - 76 / MIN ( DISTINCT + 85 ) * 83 AS col2
----
-49248

query II rowsort
SELECT 28, 73 AS col0
----
28
73

query I rowsort
SELECT 92 * + 20 AS col0
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL + 76 - COUNT( * ) col0
----
75

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + 76 - COUNT ( * ) col0
----
75

query I rowsort
SELECT 63 * 97 AS col0
----
6111

query II rowsort
SELECT 41 AS col0, 28 * - ( - 98 ) AS col2
----
41
2744

query I rowsort
SELECT 72 - + + 82
----
-10

query I rowsort
SELECT 82 - - - 35 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT ALL + 77 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL + 77 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4957
SELECT DISTINCT + 32 * 38 DIV + COUNT( * ) col0, 65 * + 15 * + + 75 AS col2
----
1216
73125

skipif mysql # not compatible
query II rowsort label-4957
SELECT DISTINCT + 32 * 38 / + COUNT ( * ) col0, 65 * + 15 * + + 75 AS col2
----
1216
73125

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT COUNT( * ) * + + 42 * + ( - - 91 )
----
3822

skipif mysql # not compatible
query I rowsort label-4958
SELECT COUNT ( * ) * + + 42 * + ( - - 91 )
----
3822

query I rowsort
SELECT ALL + 41 * - ( - 30 )
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT 78 * - COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4960
SELECT 78 * - COUNT ( * ) AS col1
----
-78

query II rowsort
SELECT ALL 87, COALESCE ( + 39, - 70 ) AS col1
----
87
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT 0 * 14 + - - 16 * + 88 + COUNT( * ) - 61 + + 49 + - 39 * + 69
----
-1294

skipif mysql # not compatible
query I rowsort label-4962
SELECT 0 * 14 + - - 16 * + 88 + COUNT ( * ) - 61 + + 49 + - 39 * + 69
----
-1294

query I rowsort
SELECT - ( - + 88 ) AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4964
SELECT ALL - COUNT( * ) DIV + + 34 * 12
----
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - COUNT ( * ) / + + 34 * 12
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4965
SELECT 79 DIV - 14 + - 64 AS col2, + COUNT( DISTINCT - 33 ) * - 66 * 66
----
-69
-4356

skipif mysql # not compatible
query II rowsort label-4965
SELECT 79 / - 14 + - 64 AS col2, + COUNT ( DISTINCT - 33 ) * - 66 * 66
----
-69
-4356

onlyif mysql # DIV for integer division: 
query I rowsort label-4966
SELECT DISTINCT - + ( + ( - 95 ) ) DIV 69 + - 58 col2
----
-57

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT - + ( + ( - 95 ) ) / 69 + - 58 col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT + 5 - + 62 - - 2 + + - 31 AS col2, - MIN( DISTINCT - 17 ) col1
----
-86
17

skipif mysql # not compatible
query II rowsort label-4967
SELECT + 5 - + 62 - - 2 + + - 31 AS col2, - MIN ( DISTINCT - 17 ) col1
----
-86
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - COUNT( * ) + 16 + + - 61 * - 15 * + - 89 AS col1
----
-81420

skipif mysql # not compatible
query I rowsort label-4968
SELECT - COUNT ( * ) + 16 + + - 61 * - 15 * + - 89 AS col1
----
-81420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4969
SELECT - - COUNT( * ), - COUNT( * ) * - CAST( 26 AS SIGNED ) * - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * + 6 + 64 - - 39 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4969
SELECT - - COUNT ( * ), - COUNT ( * ) * - CAST ( 26 AS INTEGER ) * - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 6 + 64 - - 39 AS col2
----
1
NULL

query I rowsort
SELECT - - 85 + - 79 * - 41 AS col0
----
3324

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + - 79 * + MAX( DISTINCT 63 ) - - 91 AS col1
----
-4886

skipif mysql # not compatible
query I rowsort label-4971
SELECT + - 79 * + MAX ( DISTINCT 63 ) - - 91 AS col1
----
-4886

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT MAX( - 53 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-4972
SELECT MAX ( - 53 ) col0
----
-53

query I rowsort
SELECT - CASE + + 20 WHEN - - ( 28 ) THEN - 66 ELSE NULL END col2
----
NULL

query I rowsort
SELECT + + ( - 19 ) + 94 AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4975
SELECT DISTINCT - + 26 * - ( - 11 ) + - 54 + 15 * 40 + + - 77 + + ( - - 71 ) * - 67 + - COUNT( * ) col1, 80
----
-4575
80

skipif mysql # not compatible
query II rowsort label-4975
SELECT DISTINCT - + 26 * - ( - 11 ) + - 54 + 15 * 40 + + - 77 + + ( - - 71 ) * - 67 + - COUNT ( * ) col1, 80
----
-4575
80

query I rowsort
SELECT DISTINCT + + ( + 97 ) AS col0
----
97

query I rowsort
SELECT + 73 + + - 75 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL 33 * SUM( ALL 47 ) - 20 + CASE 33 WHEN 42 THEN - NULLIF ( - 28, - 6 ) ELSE - 56 END + + 98 * 34 AS col2
----
4807

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL 33 * SUM ( ALL 47 ) - 20 + CASE 33 WHEN 42 THEN - NULLIF ( - 28, - 6 ) ELSE - 56 END + + 98 * 34 AS col2
----
4807

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT COUNT( * ) * COUNT( * ) + 15 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4979
SELECT COUNT ( * ) * COUNT ( * ) + 15 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 31 * + 90
----
2790

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - 37 * - 33 * + 73 * - + 59 * + + COUNT( * ) AS col0
----
-5258847

skipif mysql # not compatible
query I rowsort label-4982
SELECT - 37 * - 33 * + 73 * - + 59 * + + COUNT ( * ) AS col0
----
-5258847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4983
SELECT + 94 * 93 + 65 DIV ( + COUNT( * ) ) + + - 62 * 24 AS col1
----
7319

skipif mysql # not compatible
query I rowsort label-4983
SELECT + 94 * 93 + 65 / ( + COUNT ( * ) ) + + - 62 * 24 AS col1
----
7319

query I rowsort
SELECT COALESCE ( 86, + 10 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL COUNT( * ) * - 38 - 84 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL COUNT ( * ) * - 38 - 84 AS col1
----
-122

query I rowsort
SELECT DISTINCT 48 * + 66
----
3168

query I rowsort
SELECT - ( ( + 31 ) ) + + 56 AS col1
----
25

query I rowsort
SELECT DISTINCT + ( 95 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4989
SELECT COUNT( ALL + 89 ) AS col2, + 70
----
1
70

skipif mysql # not compatible
query II rowsort label-4989
SELECT COUNT ( ALL + 89 ) AS col2, + 70
----
1
70

query I rowsort
SELECT - 56 * + - 58 + 22
----
3270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4991
SELECT - 47 * + - 41 DIV COUNT( * )
----
1927

skipif mysql # not compatible
query I rowsort label-4991
SELECT - 47 * + - 41 / COUNT ( * )
----
1927

query I rowsort
SELECT - 6 + 33 + - - 35
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4993
SELECT - 53 + NULLIF ( 92, - 41 ) AS col0, CASE + + 81 WHEN - 35 THEN NULL WHEN + 48 * + 7 + 28 / + 99 + 78 + + 69 + 83 * + 37 THEN NULL ELSE + + COUNT( * ) END + - - 84 * + + CAST( NULL AS SIGNED ) * + MIN( - 72 ) AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-4993
SELECT - 53 + NULLIF ( 92, - 41 ) AS col0, CASE + + 81 WHEN - 35 THEN NULL WHEN + 48 * + 7 + 28 / + 99 + 78 + + 69 + 83 * + 37 THEN NULL ELSE + + COUNT ( * ) END + - - 84 * + + CAST ( NULL AS INTEGER ) * + MIN ( - 72 ) AS col1
----
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT - + 81 + MAX( + 38 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT - + 81 + MAX ( + 38 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL + 39 + + COALESCE ( 12, + 46 - - 29 ) - - 84 * + CASE - 68 WHEN - - COUNT( * ) THEN NULL ELSE - 66 * - 11 * 73 * - - 74 + + NULLIF ( 97, ( + + 70 ) * - 39 ) END + 76 * + 71 AS col1
----
329449163

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + 39 + + COALESCE ( 12, + 46 - - 29 ) - - 84 * + CASE - 68 WHEN - - COUNT ( * ) THEN NULL ELSE - 66 * - 11 * 73 * - - 74 + + NULLIF ( 97, ( + + 70 ) * - 39 ) END + 76 * + 71 AS col1
----
329449163

query I rowsort
SELECT DISTINCT NULLIF ( 63, - - 60 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT - + 58 + + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4997
SELECT - + 58 + + COUNT ( * ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4998
SELECT DISTINCT - ( + 48 ) + + - MAX( - - 41 ) DIV 62 * COALESCE ( - - CAST( + 72 AS SIGNED ), 38, + ( 57 ) + + + 12 + - 66 * 76 * - NULLIF ( 60, - 41 DIV 68 * + CASE + + 31 WHEN + 89 THEN - - 13 WHEN - - 97 THEN NULL WHEN + 70 + + ( + 87 ) THEN NULL ELSE - 3 + + - 77 END + - NULLIF ( - 84, - 66 ) * + COUNT( * ) ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - ( + 48 ) + + - MAX ( - - 41 ) / 62 * COALESCE ( - - CAST ( + 72 AS INTEGER ), 38, + ( 57 ) + + + 12 + - 66 * 76 * - NULLIF ( 60, - 41 / 68 * + CASE + + 31 WHEN + 89 THEN - - 13 WHEN - - 97 THEN NULL WHEN + 70 + + ( + 87 ) THEN NULL ELSE - 3 + + - 77 END + - NULLIF ( - 84, - 66 ) * + COUNT ( * ) ) ) AS col1
----
-48

query II rowsort
SELECT ALL + 78 + + 76 AS col0, 0
----
154
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT - SUM( 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-5000
SELECT - SUM ( 55 )
----
-55

query II rowsort
SELECT - 55 * - 85 AS col2, - 57 * 70
----
4675
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + - 34 + 50 + - COUNT( * ) + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5002
SELECT + - 34 + 50 + - COUNT ( * ) + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL COALESCE ( + 75, + + 42, - - 11 ) / CASE - COUNT( * ) WHEN + COUNT( * ) * + COALESCE ( COUNT( * ), 72, COALESCE ( + SUM( ALL 52 ), - COUNT( * ) ) - COUNT( * ) * + + NULLIF ( + CASE - MAX( DISTINCT 64 ) WHEN + + COUNT( * ) + + SUM( + 50 ) - + 73 * - - 23 THEN NULL WHEN 52 / - ( 21 ) * - - 57 + + 1 THEN NULL ELSE 91 END, - - COUNT( * ) ) ) + - 58 THEN NULL WHEN + - 92 THEN 3 * - + 83 * + CASE + AVG ( - 76 ) WHEN + + CASE + 52 WHEN 20 * COUNT( * ) THEN + 33 END THEN 15 WHEN CASE - 42 WHEN 21 * + 66 THEN - 88 * 93 END / + 5 THEN NULL END * + 47 + ( 59 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL COALESCE ( + 75, + + 42, - - 11 ) / CASE - COUNT ( * ) WHEN + COUNT ( * ) * + COALESCE ( COUNT ( * ), 72, COALESCE ( + SUM ( ALL 52 ), - COUNT ( * ) ) - COUNT ( * ) * + + NULLIF ( + CASE - MAX ( DISTINCT 64 ) WHEN + + COUNT ( * ) + + SUM ( + 50 ) - + 73 * - - 23 THEN NULL WHEN 52 / - ( 21 ) * - - 57 + + 1 THEN NULL ELSE 91 END, - - COUNT ( * ) ) ) + - 58 THEN NULL WHEN + - 92 THEN 3 * - + 83 * + CASE + AVG ( - 76 ) WHEN + + CASE + 52 WHEN 20 * COUNT ( * ) THEN + 33 END THEN 15 WHEN CASE - 42 WHEN 21 * + 66 THEN - 88 * 93 END / + 5 THEN NULL END * + 47 + ( 59 ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL - 42 - + + 61
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - - ( - - MIN( DISTINCT - 63 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-5005
SELECT - - ( - - MIN ( DISTINCT - 63 ) )
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5006
SELECT + CAST( NULL AS DECIMAL ) * + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT + CAST ( NULL AS REAL ) * + - 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT + SUM( ALL - - 52 ) DIV COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5007
SELECT + SUM ( ALL - - 52 ) / COUNT ( * ) AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT DISTINCT + 30 * CAST( NULL AS SIGNED ) * + 77 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT + 30 * CAST ( NULL AS INTEGER ) * + 77 * + 87
----
NULL

query I rowsort
SELECT - 55 * - 83 * + + 20 AS col2
----
91300

query I rowsort
SELECT + ( 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT + SUM( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-5011
SELECT + SUM ( - 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT CAST( - ( + + COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5012
SELECT CAST ( - ( + + COUNT ( * ) ) AS INTEGER )
----
-1

query I rowsort
SELECT + 13 * - - 14 AS col2
----
182

query I rowsort
SELECT ALL + ( COALESCE ( - 40, 81 ) ) col0
----
-40

query I rowsort
SELECT + 77 * + + 44 col2
----
3388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT + CAST( 47 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5016
SELECT + CAST ( 47 AS INTEGER ) AS col1
----
47

query I rowsort
SELECT ( + 90 )
----
90

query I rowsort
SELECT 86 * - 85 + + - NULLIF ( 30, + 35 ) * + 48 + + 6
----
-8744

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT ALL 36 DIV 5 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL 36 / 5 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5020
SELECT + COUNT( * ) DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT + COUNT ( * ) / - + 75
----
0

query I rowsort
SELECT + 47 + + + 5 col1
----
52

query I rowsort
SELECT + ( + 53 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5023
SELECT ( - CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5023
SELECT ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT + 28 - + - 92 AS col2
----
120

query II rowsort
SELECT + 71 col2, 47 * + 85 * 78 * + 76 * + 1
----
71
23682360

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT + + 53 DIV + - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5026
SELECT + + 53 / + - 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT + 42 + 99 + + + 26 - + + COUNT( * ) AS col0
----
166

skipif mysql # not compatible
query I rowsort label-5027
SELECT + 42 + 99 + + + 26 - + + COUNT ( * ) AS col0
----
166

query I rowsort
SELECT DISTINCT 16 * - 68
----
-1088

query I rowsort
SELECT ALL + ( 41 ) * 85 + + 32 * 96 + + 63
----
6620

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT ALL + - 8 DIV 19 + - 89 * 24 AS col1
----
-2136

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL + - 8 / 19 + - 89 * 24 AS col1
----
-2136

query I rowsort
SELECT - - ( - + 91 )
----
-91

query II rowsort
SELECT ALL + 6, + 33 AS col2
----
6
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT 39 * - - COUNT( * ) * + - COUNT( * ) - - 91 * - + ( + + 57 ) + - 51
----
-5277

skipif mysql # not compatible
query I rowsort label-5033
SELECT 39 * - - COUNT ( * ) * + - COUNT ( * ) - - 91 * - + ( + + 57 ) + - 51
----
-5277

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT ALL COALESCE ( ( - + 35 ), - SUM( DISTINCT 57 ) * + ( 97 ) * 17 * - 99 - - 88 + - - ( + COUNT( * ) ) * - 1, + - 17 )
----
-35

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL COALESCE ( ( - + 35 ), - SUM ( DISTINCT 57 ) * + ( 97 ) * 17 * - 99 - - 88 + - - ( + COUNT ( * ) ) * - 1, + - 17 )
----
-35

query I rowsort
SELECT 72 - + - 27 AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5036
SELECT DISTINCT - CASE + 85 WHEN + - 11 * - 75 + 61 / 57 THEN + COUNT( - CAST( + 65 AS SIGNED ) ) * + - MIN( DISTINCT 91 ) / - COALESCE ( 61, - COUNT( * ) * - + 2 ) + 63 + - + 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT - CASE + 85 WHEN + - 11 * - 75 + 61 / 57 THEN + COUNT ( - CAST ( + 65 AS INTEGER ) ) * + - MIN ( DISTINCT 91 ) / - COALESCE ( 61, - COUNT ( * ) * - + 2 ) + 63 + - + 19 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5037
SELECT ALL SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5038
SELECT 19 * + + ( COUNT( * ) ) + + CAST( + - COUNT( * ) AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col1, 41 - - + 51
----
NULL
92

skipif mysql # not compatible
query II rowsort label-5038
SELECT 19 * + + ( COUNT ( * ) ) + + CAST ( + - COUNT ( * ) AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col1, 41 - - + 51
----
NULL
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5039
SELECT ALL + + 91 - - CAST( NULL AS SIGNED ) + 0 - 25 * - - ( + + COUNT( * ) ) * + 56 * 94 + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + + 91 - - CAST ( NULL AS INTEGER ) + 0 - 25 * - - ( + + COUNT ( * ) ) * + 56 * 94 + + 84 AS col1
----
NULL

query I rowsort
SELECT ALL - 97 * + 54 AS col0
----
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT - + COUNT( + CASE WHEN NOT - NULLIF ( + + 19, 70 ) < + - 22 THEN - 50 / + - 84 * 48 + + 80 + + + 24 ELSE - 83 / - - 76 / 33 END )
----
-1

skipif mysql # not compatible
query I rowsort label-5041
SELECT - + COUNT ( + CASE WHEN NOT - NULLIF ( + + 19, 70 ) < + - 22 THEN - 50 / + - 84 * 48 + + 80 + + + 24 ELSE - 83 / - - 76 / 33 END )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5042
SELECT ALL - COALESCE ( - COUNT( ALL - 42 ), - ( - 56 ), + - ( + MAX( ALL + 70 ) ) ), 43 DIV - 96 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-5042
SELECT ALL - COALESCE ( - COUNT ( ALL - 42 ), - ( - 56 ), + - ( + MAX ( ALL + 70 ) ) ), 43 / - 96 AS col0
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5043
SELECT ALL - 44 - + + CAST( NULL AS SIGNED ) AS col0, + 49 + + 63 * - + 22 * + 14
----
NULL
-19355

skipif mysql # not compatible
query II rowsort label-5043
SELECT ALL - 44 - + + CAST ( NULL AS INTEGER ) AS col0, + 49 + + 63 * - + 22 * + 14
----
NULL
-19355

query I rowsort
SELECT 53 * - 65
----
-3445

query I rowsort
SELECT 57 + 45 AS col0
----
102

query I rowsort
SELECT 63 + 47 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT 66 * + - MAX( ALL + + 92 ) * + MAX( DISTINCT + 45 )
----
-273240

skipif mysql # not compatible
query I rowsort label-5047
SELECT 66 * + - MAX ( ALL + + 92 ) * + MAX ( DISTINCT + 45 )
----
-273240

onlyif mysql # aggregate syntax: 
query II rowsort label-5048
SELECT 2 * + - COUNT( * ), MAX( ALL 50 ) * - COUNT( * ) AS col0
----
-2
-50

skipif mysql # not compatible
query II rowsort label-5048
SELECT 2 * + - COUNT ( * ), MAX ( ALL 50 ) * - COUNT ( * ) AS col0
----
-2
-50

query II rowsort
SELECT 73 + 51 AS col1, ( 76 ) col0
----
124
76

query II rowsort
SELECT 57 AS col1, + 21 * - 36 AS col1
----
57
-756

query I rowsort
SELECT DISTINCT - NULLIF ( + 13, + 58 ) AS col2
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-5052
SELECT ALL + 18 DIV + + 97, 33 AS col2
----
0
33

skipif mysql # not compatible
query II rowsort label-5052
SELECT ALL + 18 / + + 97, 33 AS col2
----
0
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5053
SELECT 44 col1, - COUNT( * )
----
44
-1

skipif mysql # not compatible
query II rowsort label-5053
SELECT 44 col1, - COUNT ( * )
----
44
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL - 54 + + MIN( DISTINCT 29 )
----
-25

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL - 54 + + MIN ( DISTINCT 29 )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5055
SELECT DISTINCT + 0 * - 81 DIV - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT + 0 * - 81 / - 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5056
SELECT 78 * - 80 * - CASE - + 85 WHEN - NULLIF ( - 20, - COUNT( 44 ) ) * + 13 THEN NULL WHEN 50 THEN - ( - 45 ) + + 41 + + 92 ELSE NULL END AS col2, + MAX( ALL + 95 ) * - COUNT( * )
----
NULL
-95

skipif mysql # not compatible
query II rowsort label-5056
SELECT 78 * - 80 * - CASE - + 85 WHEN - NULLIF ( - 20, - COUNT ( 44 ) ) * + 13 THEN NULL WHEN 50 THEN - ( - 45 ) + + 41 + + 92 ELSE NULL END AS col2, + MAX ( ALL + 95 ) * - COUNT ( * )
----
NULL
-95

query I rowsort
SELECT 82 * + 75 / CASE WHEN NOT NULL IS NULL THEN + 76 END * 22 AS col0
----
NULL

query I rowsort
SELECT - 11 * - 3 + - 2 * - 66 + - 83
----
82

query I rowsort
SELECT ALL + 82 * 36
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT - COALESCE ( 24, + - 96 * + 99 * - 17 ) * ( - - COUNT( - 49 ) ) + - 92 AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT - COALESCE ( 24, + - 96 * + 99 * - 17 ) * ( - - COUNT ( - 49 ) ) + - 92 AS col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT 26 + - MIN( ALL + 66 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-5061
SELECT 26 + - MIN ( ALL + 66 ) AS col1
----
-40

query I rowsort
SELECT ALL 30 + - - 4
----
34

query II rowsort
SELECT ALL ( 96 ) + + ( 41 ) AS col2, 32
----
137
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5064
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, - 69 * 36 + + 6 + - + 74 * + 16
----
NULL
-3662

skipif mysql # not compatible
query II rowsort label-5064
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, - 69 * 36 + + 6 + - + 74 * + 16
----
NULL
-3662

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5065
SELECT 16 * + ( + COALESCE ( + - 58, + + 25, 66 - - ( 0 ), + AVG ( 12 ) * + - ( - AVG ( - 53 ) ) DIV 39 + + 95 + - - COUNT( * ) ) ), + 98 * + 0 AS col0
----
-928
0

skipif mysql # not compatible
query II rowsort label-5065
SELECT 16 * + ( + COALESCE ( + - 58, + + 25, 66 - - ( 0 ), + AVG ( 12 ) * + - ( - AVG ( - 53 ) ) / 39 + + 95 + - - COUNT ( * ) ) ), + 98 * + 0 AS col0
----
-928
0

query I rowsort
SELECT ALL - 2 + + 61
----
59

query I rowsort
SELECT ALL + 44 + + 96
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT CASE + 17 WHEN + + NULLIF ( - 81, - 30 ) * - + COUNT( * ) THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT CASE + 17 WHEN + + NULLIF ( - 81, - 30 ) * - + COUNT ( * ) THEN + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT 27 + - NULLIF ( + 2, 24 )
----
25

query I rowsort
SELECT ALL - - 32 AS col2
----
32

query I rowsort
SELECT - - 90 * + 31 + - - 49
----
2839

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT 8 DIV - + 28
----
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT 8 / - + 28
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5073
SELECT - ( 4 ) * - CAST( + 79 AS SIGNED ) - + 15 + 24, + 88 AS col2
----
325
88

skipif mysql # not compatible
query II rowsort label-5073
SELECT - ( 4 ) * - CAST ( + 79 AS INTEGER ) - + 15 + 24, + 88 AS col2
----
325
88

onlyif mysql # aggregate syntax: 
query III rowsort label-5074
SELECT 34 AS col2, 88 * ( + + COUNT( * ) ) AS col1, + - 23
----
34
88
-23

skipif mysql # not compatible
query III rowsort label-5074
SELECT 34 AS col2, 88 * ( + + COUNT ( * ) ) AS col1, + - 23
----
34
88
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT 56 * - COUNT( + - 0 ) - 91 - + + 79
----
-226

skipif mysql # not compatible
query I rowsort label-5075
SELECT 56 * - COUNT ( + - 0 ) - 91 - + + 79
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - NULLIF ( + 3, + + 69 * - AVG ( ALL + 35 ) + + MIN( + + 91 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5076
SELECT - NULLIF ( + 3, + + 69 * - AVG ( ALL + 35 ) + + MIN ( + + 91 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL - SUM( ALL COALESCE ( - + 43, - 31 ) ) * + 84
----
3612

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - SUM ( ALL COALESCE ( - + 43, - 31 ) ) * + 84
----
3612

query I rowsort
SELECT DISTINCT 16 * - + 95 * + + ( 36 ) - + + 73 AS col0
----
-54793

query I rowsort
SELECT ALL 34 * 67
----
2278

query I rowsort
SELECT DISTINCT + 68 - - 20 AS col2
----
88

onlyif mysql # aggregate syntax: 
query III rowsort label-5081
SELECT ALL - 13, - COUNT( * ) AS col0, 5 AS col0
----
-13
-1
5

skipif mysql # not compatible
query III rowsort label-5081
SELECT ALL - 13, - COUNT ( * ) AS col0, 5 AS col0
----
-13
-1
5

query II rowsort
SELECT 56 + - 94 + 58 * - 55 * - - 59 - 20, 4 col0
----
-188268
4

query II rowsort
SELECT DISTINCT + 0 AS col1, 86
----
0
86

query II rowsort
SELECT 92 + + 19, NULLIF ( 39, + 93 ) AS col2
----
111
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5085
SELECT 2 + + - 93, - CAST( NULL AS SIGNED ) / - 72 AS col0
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-5085
SELECT 2 + + - 93, - CAST ( NULL AS INTEGER ) / - 72 AS col0
----
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL + NULLIF ( + 18, + - 89 * + 91 + COUNT( * ) * NULLIF ( - 96, 86 ) * + 13 / - - 93 ) * - 91 AS col1
----
-1638

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + NULLIF ( + 18, + - 89 * + 91 + COUNT ( * ) * NULLIF ( - 96, 86 ) * + 13 / - - 93 ) * - 91 AS col1
----
-1638

query I rowsort
SELECT ALL 66 + 65 AS col2
----
131

query I rowsort
SELECT DISTINCT 25 * - 6 AS col1
----
-150

query II rowsort
SELECT 1 * 52 AS col1, - 37 AS col1
----
52
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL + 14 * - 36 * - - 7 * - - COUNT( * ) AS col0
----
-3528

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL + 14 * - 36 * - - 7 * - - COUNT ( * ) AS col0
----
-3528

query I rowsort
SELECT ALL - 59 + - 28 AS col2
----
-87

query I rowsort
SELECT NULLIF ( - 50, + + 17 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + COALESCE ( + - COALESCE ( - 47, 37 - + COUNT( * ) ), - + ( - 8 ) )
----
47

skipif mysql # not compatible
query I rowsort label-5093
SELECT + COALESCE ( + - COALESCE ( - 47, 37 - + COUNT ( * ) ), - + ( - 8 ) )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5094
SELECT 91 DIV - 74 AS col1, - COUNT( * ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5094
SELECT 91 / - 74 AS col1, - COUNT ( * ) AS col2
----
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT 7 - + - 86 DIV 48
----
8

skipif mysql # not compatible
query I rowsort label-5095
SELECT 7 - + - 86 / 48
----
8

query I rowsort
SELECT DISTINCT - COALESCE ( - + COALESCE ( 52, - + ( - 61 ) ), + 75 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT 25 * ( - COUNT( * ) ) + 47
----
22

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT 25 * ( - COUNT ( * ) ) + 47
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5098
SELECT ALL + CAST( - 50 AS SIGNED ) * + 14 + SUM( ALL 51 )
----
-649

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + CAST ( - 50 AS INTEGER ) * + 14 + SUM ( ALL 51 )
----
-649

query I rowsort
SELECT ALL + 83 * 17 + - 99 AS col2
----
1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5100
SELECT DISTINCT + 69 DIV - COALESCE ( + + CASE + 27 WHEN + 10 + ( CAST( NULL AS SIGNED ) ) THEN NULL WHEN + MIN( DISTINCT - 96 ) + + - 50 THEN 83 + 30 ELSE NULL END, CASE WHEN ( COUNT( * ) ) NOT IN ( 13, - COALESCE ( + CASE 55 WHEN - + 54 THEN NULL WHEN - - 34 - + 6 THEN + 40 ELSE + MIN( - 20 ) END, + 57, - 61 * + 34, + 38 + + COUNT( * ) ) * 1 + + - 35 + 1, - COUNT( * ), 96 ) THEN COUNT( * ) ELSE NULL END - 97 ), 64 AS col1
----
0
64

skipif mysql # not compatible
query II rowsort label-5100
SELECT DISTINCT + 69 / - COALESCE ( + + CASE + 27 WHEN + 10 + ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + MIN ( DISTINCT - 96 ) + + - 50 THEN 83 + 30 ELSE NULL END, CASE WHEN ( COUNT ( * ) ) NOT IN ( 13, - COALESCE ( + CASE 55 WHEN - + 54 THEN NULL WHEN - - 34 - + 6 THEN + 40 ELSE + MIN ( - 20 ) END, + 57, - 61 * + 34, + 38 + + COUNT ( * ) ) * 1 + + - 35 + 1, - COUNT ( * ), 96 ) THEN COUNT ( * ) ELSE NULL END - 97 ), 64 AS col1
----
0
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5101
SELECT ALL CAST( NULL AS SIGNED ) * - 22 + + + SUM( DISTINCT - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL CAST ( NULL AS INTEGER ) * - 22 + + + SUM ( DISTINCT - 10 )
----
NULL

query I rowsort
SELECT - 46 * - - 40 AS col2
----
-1840

query I rowsort
SELECT ALL + + 24 * - + 68 * 95
----
-155040

query II rowsort
SELECT + 60 * - 86, 7 AS col2
----
-5160
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT - 49 * + COUNT( 67 ) * + 15
----
-735

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT - 49 * + COUNT ( 67 ) * + 15
----
-735

query I rowsort
SELECT + ( - 25 ) AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5107
SELECT + SUM( ALL + 63 ) AS col2, + CAST( NULL AS SIGNED ) AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-5107
SELECT + SUM ( ALL + 63 ) AS col2, + CAST ( NULL AS INTEGER ) AS col1
----
63
NULL

query I rowsort
SELECT ALL + + 57 AS col0
----
57

query I rowsort
SELECT - - 52 + - - 8 AS col1
----
60

query I rowsort
SELECT ALL + - 20 * + + 12
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * 76
----
NULL

query I rowsort
SELECT + + 20 * - 36
----
-720

query I rowsort
SELECT + - 9 - ( 10 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT + COUNT( * ) - + 97
----
-96

skipif mysql # not compatible
query I rowsort label-5114
SELECT + COUNT ( * ) - + 97
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL + 26 * + + COUNT( ALL - - ( - 74 ) ) * + + 89 AS col0
----
2314

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL + 26 * + + COUNT ( ALL - - ( - 74 ) ) * + + 89 AS col0
----
2314

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT DISTINCT 25 + - CASE + 94 WHEN + - 14 / + 61 THEN + - 34 * + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT 25 + - CASE + 94 WHEN + - 14 / + 61 THEN + - 34 * + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT + 55 - - - 39
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT + 31 - 14 * - COUNT( * ) - + 34 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5118
SELECT + 31 - 14 * - COUNT ( * ) - + 34 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT + 1 + - 10 + - - CAST( + + 38 AS SIGNED ) + + 52 * 31 - - 82 * 59
----
6479

skipif mysql # not compatible
query I rowsort label-5119
SELECT + 1 + - 10 + - - CAST ( + + 38 AS INTEGER ) + + 52 * 31 - - 82 * 59
----
6479

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT - 7 DIV + - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT - 7 / + - 71 AS col0
----
0

query I rowsort
SELECT ALL 13 + - 93 + + - 19 * + 53 AS col1
----
-1087

query I rowsort
SELECT + 19 + + + 10 AS col1
----
29

query I rowsort
SELECT + 95 + - 43 + + 90 - + 21
----
121

query I rowsort
SELECT ALL + 82 * + 77
----
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT DISTINCT 52 DIV - 17 + 1 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT 52 / - 17 + 1 AS col2
----
-2

query I rowsort
SELECT - 15 * + ( - 2 ) + + + 90 + 52 * + 93 AS col1
----
4956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5127
SELECT ALL + 39 DIV + 94 + + 7 + + COUNT( * ) + - 16 * - 98 + + - 34
----
1542

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL + 39 / + 94 + + 7 + + COUNT ( * ) + - 16 * - 98 + + - 34
----
1542

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5128
SELECT DISTINCT + 89, 90 + + + 72 * + 83 * + + 41 + COALESCE ( - 38, 40 DIV 6 + - 73, + SUM( ALL - 92 ) * 81 * 9 + - 79 ) - - + COUNT( * ) AS col0
----
89
245069

skipif mysql # not compatible
query II rowsort label-5128
SELECT DISTINCT + 89, 90 + + + 72 * + 83 * + + 41 + COALESCE ( - 38, 40 / 6 + - 73, + SUM ( ALL - 92 ) * 81 * 9 + - 79 ) - - + COUNT ( * ) AS col0
----
89
245069

query I rowsort
SELECT - - 67 + 90 AS col0
----
157

query II rowsort
SELECT 95, + 51 AS col0
----
95
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5131
SELECT - COUNT( * ) DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-5131
SELECT - COUNT ( * ) / - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT - 19 * + + 89 - + MIN( DISTINCT + - 6 ) - ( - + 88 ) * + - 95 AS col2
----
-10045

skipif mysql # not compatible
query I rowsort label-5132
SELECT - 19 * + + 89 - + MIN ( DISTINCT + - 6 ) - ( - + 88 ) * + - 95 AS col2
----
-10045

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL + - 7 * + - 99 + - - 14 - - - COUNT( * ) * - + 22 * + - 18
----
311

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL + - 7 * + - 99 + - - 14 - - - COUNT ( * ) * - + 22 * + - 18
----
311

query I rowsort
SELECT DISTINCT - + 46 * 63
----
-2898

query I rowsort
SELECT DISTINCT + ( + + 62 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT ALL - 9 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL - 9 / 57
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5137
SELECT + CASE - 54 WHEN - 37 THEN 40 + - - CAST( + - 30 AS SIGNED ) * - 34 + - AVG ( 59 ) + + 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT + CASE - 54 WHEN - 37 THEN 40 + - - CAST ( + - 30 AS INTEGER ) * - 34 + - AVG ( 59 ) + + 15 END AS col1
----
NULL

query II rowsort
SELECT + 92 AS col0, 25 + + 5
----
92
30

query I rowsort
SELECT - - 24 + - - 44
----
68

query II rowsort
SELECT + 20 AS col1, 7
----
20
7

query I rowsort
SELECT - 36 + - - 41 + - 57 * + 52
----
-2959

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5142
SELECT - 40 - COUNT( * ) + - 29 + COUNT( * ) + + - ( - + 57 ) DIV 80
----
-69

skipif mysql # not compatible
query I rowsort label-5142
SELECT - 40 - COUNT ( * ) + - 29 + COUNT ( * ) + + - ( - + 57 ) / 80
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5143
SELECT DISTINCT - COUNT( * ) * + + 68 + - 86 AS col2, 98 col1
----
-154
98

skipif mysql # not compatible
query II rowsort label-5143
SELECT DISTINCT - COUNT ( * ) * + + 68 + - 86 AS col2, 98 col1
----
-154
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL + ( + ( 21 ) ) * COUNT( * ) * - 17 * - COUNT( * ) + + 49 AS col2
----
406

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL + ( + ( 21 ) ) * COUNT ( * ) * - 17 * - COUNT ( * ) + + 49 AS col2
----
406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT DISTINCT CAST( - - 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT CAST ( - - 37 AS INTEGER )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT + 55 + - + 79 DIV - + 37
----
57

skipif mysql # not compatible
query I rowsort label-5146
SELECT + 55 + - + 79 / - + 37
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5147
SELECT - ( 86 ), CASE - 86 WHEN - 84 * + - 95 + - 96 - - 75 THEN NULL WHEN + + 90 THEN NULL WHEN + COUNT( * ) * - 24 * - ( 16 ) + + + 54 THEN - CASE - 77 WHEN + 83 - + 31 + - - ( 83 ) + + 14 + COALESCE ( + 68, 34 ) + + NULLIF ( + + COUNT( * ), + 16 ) / 68 * + - 98 * - 79 THEN NULL WHEN ( + 5 ) THEN 52 / - + 21 - - 64 * ( - 94 ) / - 67 * 42 / + + NULLIF ( - 30, + + ( - + 17 ) ) - 7 * + 18 + 97 END * NULLIF ( - 33 * ( NULLIF ( 28, + COUNT( * ) ) * - 57 ), + 66 ) END / - 0 AS col1
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-5147
SELECT - ( 86 ), CASE - 86 WHEN - 84 * + - 95 + - 96 - - 75 THEN NULL WHEN + + 90 THEN NULL WHEN + COUNT ( * ) * - 24 * - ( 16 ) + + + 54 THEN - CASE - 77 WHEN + 83 - + 31 + - - ( 83 ) + + 14 + COALESCE ( + 68, 34 ) + + NULLIF ( + + COUNT ( * ), + 16 ) / 68 * + - 98 * - 79 THEN NULL WHEN ( + 5 ) THEN 52 / - + 21 - - 64 * ( - 94 ) / - 67 * 42 / + + NULLIF ( - 30, + + ( - + 17 ) ) - 7 * + 18 + 97 END * NULLIF ( - 33 * ( NULLIF ( 28, + COUNT ( * ) ) * - 57 ), + 66 ) END / - 0 AS col1
----
-86
NULL

query I rowsort
SELECT - 25 * + 36
----
-900

query I rowsort
SELECT + 31 + - - 62 + 2 AS col1
----
95

query I rowsort
SELECT ALL 37 + + + 38 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5151
SELECT ALL COUNT( * ) + CAST( + + 2 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL COUNT ( * ) + CAST ( + + 2 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - CASE - + COUNT( * ) WHEN 16 THEN 18 ELSE - - 87 END AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5152
SELECT - CASE - + COUNT ( * ) WHEN 16 THEN 18 ELSE - - 87 END AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT DISTINCT + 41 + 39 * - COUNT( + 63 ) * - 27 AS col2
----
1094

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT + 41 + 39 * - COUNT ( + 63 ) * - 27 AS col2
----
1094

query I rowsort
SELECT ALL 7 * + 81 AS col1
----
567

onlyif mysql # aggregate syntax: 
query II rowsort label-5155
SELECT ALL + COUNT( * ) - - 84 AS col0, + MIN( - - 20 ) * 68 * 71
----
85
96560

skipif mysql # not compatible
query II rowsort label-5155
SELECT ALL + COUNT ( * ) - - 84 AS col0, + MIN ( - - 20 ) * 68 * 71
----
85
96560

query II rowsort
SELECT DISTINCT 36 * - - 17, - 51 AS col0
----
612
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL 59 - ( MAX( ALL - 95 ) )
----
154

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL 59 - ( MAX ( ALL - 95 ) )
----
154

query II rowsort
SELECT 32 * + 57 AS col2, + 79
----
1824
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5159
SELECT COUNT( * ) - + + 76 AS col2, - 64 + 92 + - - ( - COUNT( * ) ) DIV - + 22 AS col0
----
-75
28

skipif mysql # not compatible
query II rowsort label-5159
SELECT COUNT ( * ) - + + 76 AS col2, - 64 + 92 + - - ( - COUNT ( * ) ) / - + 22 AS col0
----
-75
28

query I rowsort
SELECT + + ( + 33 ) col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT - 51 * + + COUNT( - 53 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-5161
SELECT - 51 * + + COUNT ( - 53 ) AS col0
----
-51

query I rowsort
SELECT DISTINCT - + 60 AS col2
----
-60

query I rowsort
SELECT DISTINCT - ( + 81 ) AS col1
----
-81

query I rowsort
SELECT + 17 * COALESCE ( + + 93, - 95 ) AS col0
----
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT - COUNT( * ) * + 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT - COUNT ( * ) * + 48 AS col1
----
-48

query I rowsort
SELECT ALL - + CASE + - 32 WHEN - 36 THEN NULL WHEN - 23 THEN NULL WHEN - 92 + + - 51 THEN - 71 + + 47 / - 41 END col1
----
NULL

query I rowsort
SELECT + - ( + ( + - ( ( - 95 ) ) ) )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT ALL - + ( + CAST( + - 69 AS SIGNED ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - + ( + CAST ( + - 69 AS INTEGER ) ) AS col1
----
69

query I rowsort
SELECT ALL - 80 * - 29 * 86
----
199520

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT + 44 - + COUNT( * ) * + - CASE - - COUNT( * ) WHEN - 3 THEN 69 * - - 61 + COUNT( * ) + + 53 / - + 54 + + - 98 - - 10 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT + 44 - + COUNT ( * ) * + - CASE - - COUNT ( * ) WHEN - 3 THEN 69 * - - 61 + COUNT ( * ) + + 53 / - + 54 + + - 98 - - 10 WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5171
SELECT DISTINCT COUNT( * ) * 71 * + + COALESCE ( 72, + + 17 ) * + 77 * - 88 + 70 DIV 31
----
-34638910

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT COUNT ( * ) * 71 * + + COALESCE ( 72, + + 17 ) * + 77 * - 88 + 70 / 31
----
-34638910

query I rowsort
SELECT ALL - - ( - - 45 ) AS col1
----
45

query I rowsort
SELECT - 9 col2
----
-9

query I rowsort
SELECT DISTINCT + 87 + 56 AS col2
----
143

query I rowsort
SELECT DISTINCT - 64 + 96
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5176
SELECT ALL - CAST( + + 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - CAST ( + + 37 AS INTEGER )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5177
SELECT 11 * CASE - + 85 WHEN + - CASE CASE - COUNT( * ) WHEN + - 84 - + 7 * - COUNT( * ) - + COUNT( * ) * - NULLIF ( 2, - 5 ) / COUNT( * ) THEN - + 71 ELSE + 12 END WHEN + 29 * + - 19 THEN NULL WHEN - COALESCE ( + + 74, MAX( DISTINCT - 19 ), - + ( 34 ) + 51 * 62 ) / ( + COUNT( * ) ) + 52 + + 59 THEN NULL WHEN 8 THEN - 37 + - 81 ELSE NULL END THEN 66 WHEN + CAST( NULL AS SIGNED ) THEN COALESCE ( ( - 10 ), - 33 * + 79, + CASE + - 8 WHEN - 0 * - + 74 * + + 75 * COUNT( * ) + + 61 THEN + COUNT( * ) WHEN + 19 * + 9 THEN NULL END * 8 ) + - 62 * - 1 END * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT 11 * CASE - + 85 WHEN + - CASE CASE - COUNT ( * ) WHEN + - 84 - + 7 * - COUNT ( * ) - + COUNT ( * ) * - NULLIF ( 2, - 5 ) / COUNT ( * ) THEN - + 71 ELSE + 12 END WHEN + 29 * + - 19 THEN NULL WHEN - COALESCE ( + + 74, MAX ( DISTINCT - 19 ), - + ( 34 ) + 51 * 62 ) / ( + COUNT ( * ) ) + 52 + + 59 THEN NULL WHEN 8 THEN - 37 + - 81 ELSE NULL END THEN 66 WHEN + CAST ( NULL AS INTEGER ) THEN COALESCE ( ( - 10 ), - 33 * + 79, + CASE + - 8 WHEN - 0 * - + 74 * + + 75 * COUNT ( * ) + + 61 THEN + COUNT ( * ) WHEN + 19 * + 9 THEN NULL END * 8 ) + - 62 * - 1 END * + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT DISTINCT - COUNT( * ) + - 11
----
-12

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT - COUNT ( * ) + - 11
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5179
SELECT ALL + 55 + - 11 + - - COUNT( + 44 ) * - + COUNT( * ) * + + 37 * + COALESCE ( + - 15, - + COUNT( * ) - + CAST( ( - 38 ) AS SIGNED ) ) + - - 39 * + MAX( + 21 ) DIV + - COUNT( * ) + + + 56 - + 76 + - 34 * 61 + + + 6 * - 13 * 68 * - MAX( DISTINCT + + 16 ) * - 89 * + 51
----
-385200010

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL + 55 + - 11 + - - COUNT ( + 44 ) * - + COUNT ( * ) * + + 37 * + COALESCE ( + - 15, - + COUNT ( * ) - + CAST ( ( - 38 ) AS INTEGER ) ) + - - 39 * + MAX ( + 21 ) / + - COUNT ( * ) + + + 56 - + 76 + - 34 * 61 + + + 6 * - 13 * 68 * - MAX ( DISTINCT + + 16 ) * - 89 * + 51
----
-385200010

query I rowsort
SELECT 98 - + - 68
----
166

query I rowsort
SELECT 1 * - 43
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5182
SELECT - 59, - COUNT( * ) AS col0
----
-59
-1

skipif mysql # not compatible
query II rowsort label-5182
SELECT - 59, - COUNT ( * ) AS col0
----
-59
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5183
SELECT 7 - - 12 DIV + + 5 - + - 73 - - 70 * - + COUNT( * ) * 70 * - 88
----
431282

skipif mysql # not compatible
query I rowsort label-5183
SELECT 7 - - 12 / + + 5 - + - 73 - - 70 * - + COUNT ( * ) * 70 * - 88
----
431282

query I rowsort
SELECT ALL + 55 - 83 * 99
----
-8162

query II rowsort
SELECT ALL 15 AS col1, + 58
----
15
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5186
SELECT DISTINCT - CASE + + 44 WHEN + SUM( DISTINCT + 6 ) * + - 31 - - 61 THEN - 31 ELSE - 47 + 47 + + 23 DIV + COUNT( DISTINCT + ( - 42 ) ) END * + 33 AS col0
----
-759

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT - CASE + + 44 WHEN + SUM ( DISTINCT + 6 ) * + - 31 - - 61 THEN - 31 ELSE - 47 + 47 + + 23 / + COUNT ( DISTINCT + ( - 42 ) ) END * + 33 AS col0
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT 16 + + COUNT( * ) + + 7 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5187
SELECT 16 + + COUNT ( * ) + + 7 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL + 92 - - CASE + COALESCE ( - 43, + + 28, COUNT( * ) * + SUM( DISTINCT 2 ) ) WHEN - + 53 THEN - COUNT( * ) + - + 17 ELSE NULL END - 57 - - ( - 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL + 92 - - CASE + COALESCE ( - 43, + + 28, COUNT ( * ) * + SUM ( DISTINCT 2 ) ) WHEN - + 53 THEN - COUNT ( * ) + - + 17 ELSE NULL END - 57 - - ( - 54 ) AS col1
----
NULL

query I rowsort
SELECT 26 * - 94 col0
----
-2444

query II rowsort
SELECT 69, ( + + ( + ( + 78 ) ) ) AS col0
----
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT 32 + - + ( MIN( + - 3 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5191
SELECT 32 + - + ( MIN ( + - 3 ) ) AS col1
----
35

query I rowsort
SELECT DISTINCT + 3 * - 91
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT CASE CAST( 92 AS SIGNED ) WHEN - - 25 + + 56 THEN + COUNT( * ) END + - ( - - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT CASE CAST ( 92 AS INTEGER ) WHEN - - 25 + + 56 THEN + COUNT ( * ) END + - ( - - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL + + COUNT( * ) * 21 * 60
----
1260

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + + COUNT ( * ) * 21 * 60
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT + COUNT( * ) * - - 85 + 99 + + 48 AS col0
----
232

skipif mysql # not compatible
query I rowsort label-5196
SELECT + COUNT ( * ) * - - 85 + 99 + + 48 AS col0
----
232

query I rowsort
SELECT + 59 * + 64
----
3776

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5198
SELECT + COUNT( * ) * - 72 DIV - 68 + + - 6 * - + COUNT( * ) * 98 + 43 * - ( - - COUNT( 74 ) ) AS col0, + 82 AS col1
----
546
82

skipif mysql # not compatible
query II rowsort label-5198
SELECT + COUNT ( * ) * - 72 / - 68 + + - 6 * - + COUNT ( * ) * 98 + 43 * - ( - - COUNT ( 74 ) ) AS col0, + 82 AS col1
----
546
82

query I rowsort
SELECT DISTINCT - 76 + + + 5 AS col1
----
-71

query I rowsort
SELECT + 51 * + 20
----
1020

query I rowsort
SELECT 38 + - 4 AS col1
----
34

query I rowsort
SELECT ALL - 27 + + 18 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL - COALESCE ( + SUM( DISTINCT + - 62 ), - + NULLIF ( - + 24, - 99 ), - - 98 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - COALESCE ( + SUM ( DISTINCT + - 62 ), - + NULLIF ( - + 24, - 99 ), - - 98 ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT - 41 * + CAST( - - 10 AS SIGNED ) * + 60 * + + 70 + - 19 * + + 44
----
-1722836

skipif mysql # not compatible
query I rowsort label-5204
SELECT - 41 * + CAST ( - - 10 AS INTEGER ) * + 60 * + + 70 + - 19 * + + 44
----
-1722836

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT - ( + CASE 22 WHEN COUNT( * ) + 90 THEN 96 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - ( + CASE 22 WHEN COUNT ( * ) + 90 THEN 96 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 61 + 91 * + 7 AS col0
----
698

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT + COUNT( 24 )
----
1

skipif mysql # not compatible
query I rowsort label-5207
SELECT + COUNT ( 24 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT 17 + + 5 + + + 92 + + 10 DIV - 36 + - - COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-5208
SELECT 17 + + 5 + + + 92 + + 10 / - 36 + - - COUNT ( * )
----
115

query I rowsort
SELECT ALL 96 * - + 82 AS col2
----
-7872

onlyif mysql # aggregate syntax: 
query II rowsort label-5210
SELECT DISTINCT - CASE 97 WHEN - 37 * - 98 * - 60 * + COUNT( * ) / - MAX( ALL - + 94 ) THEN + 65 WHEN + CASE + 31 WHEN + - 49 THEN NULL WHEN - 17 * + - 97 THEN - + 6 - 27 * + 61 ELSE NULL END THEN NULL ELSE NULL END AS col0, 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-5210
SELECT DISTINCT - CASE 97 WHEN - 37 * - 98 * - 60 * + COUNT ( * ) / - MAX ( ALL - + 94 ) THEN + 65 WHEN + CASE + 31 WHEN + - 49 THEN NULL WHEN - 17 * + - 97 THEN - + 6 - 27 * + 61 ELSE NULL END THEN NULL ELSE NULL END AS col0, 14
----
NULL
14

query II rowsort
SELECT DISTINCT 52 AS col0, + 79 AS col2
----
52
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT + COUNT( * ) - + 34 + - 91 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT + COUNT ( * ) - + 34 + - 91 AS col2
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5213
SELECT 17 + - + 57 + 67 DIV + - 48 + 9 * 76 + COUNT( * )
----
644

skipif mysql # not compatible
query I rowsort label-5213
SELECT 17 + - + 57 + 67 / + - 48 + 9 * 76 + COUNT ( * )
----
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT ALL + CAST( NULL AS SIGNED ) - - 80 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL + CAST ( NULL AS INTEGER ) - - 80 / - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5215
SELECT DISTINCT 63 AS col1, + 70 / + - 66 * + + 14 + - 39 + 41 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 44 AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-5215
SELECT DISTINCT 63 AS col1, + 70 / + - 66 * + + 14 + - 39 + 41 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 44 AS col2
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT - 66 + 8 + 12 + ( + NULLIF ( - COUNT( * ), + 96 * - 99 + 86 ) ) + 7
----
-40

skipif mysql # not compatible
query I rowsort label-5216
SELECT - 66 + 8 + 12 + ( + NULLIF ( - COUNT ( * ), + 96 * - 99 + 86 ) ) + 7
----
-40

query I rowsort
SELECT - 24 * - - 44 col2
----
-1056

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT ALL + 33 DIV - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + 33 / - 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT - CASE 45 WHEN - 44 THEN + + COALESCE ( + + 17, + COALESCE ( - 83, + 23, SUM( + 45 ) ) * + 22 * - + COUNT( * ) ) ELSE + - 88 + - - COUNT( * ) END
----
87

skipif mysql # not compatible
query I rowsort label-5219
SELECT - CASE 45 WHEN - 44 THEN + + COALESCE ( + + 17, + COALESCE ( - 83, + 23, SUM ( + 45 ) ) * + 22 * - + COUNT ( * ) ) ELSE + - 88 + - - COUNT ( * ) END
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - NULLIF ( + COUNT( * ), + SUM( - + 44 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5220
SELECT - NULLIF ( + COUNT ( * ), + SUM ( - + 44 ) ) col1
----
-1

query I rowsort
SELECT - 30 * 83 AS col2
----
-2490

query I rowsort
SELECT - 88 * - 57 col1
----
5016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT - CASE CAST( - + 38 AS SIGNED ) WHEN - - 1 THEN + 35 * + + 82 - - COUNT( * ) ELSE NULL END + ( COUNT( * ) ) / - - ( + - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT - CASE CAST ( - + 38 AS INTEGER ) WHEN - - 1 THEN + 35 * + + 82 - - COUNT ( * ) ELSE NULL END + ( COUNT ( * ) ) / - - ( + - 98 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5224
SELECT - NULLIF ( - MIN( ALL - - 34 ), - + 43 ) DIV - + 70
----
0

skipif mysql # not compatible
query I rowsort label-5224
SELECT - NULLIF ( - MIN ( ALL - - 34 ), - + 43 ) / - + 70
----
0

query I rowsort
SELECT ALL - 34 * - + 41 col2
----
1394

query II rowsort
SELECT 17, + 27 * - + 38 col1
----
17
-1026

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT COUNT( + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT COUNT ( + 57 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5228
SELECT - - 92 AS col2, 89 DIV COUNT( * ) AS col0
----
92
89

skipif mysql # not compatible
query II rowsort label-5228
SELECT - - 92 AS col2, 89 / COUNT ( * ) AS col0
----
92
89

query II rowsort
SELECT - - 22 col0, 39 * 73
----
22
2847

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT - + COUNT( * ) * - COUNT( * ) * + - 0 - - 55 + - 46 + + - 97 + + - 47 * - 96 AS col1
----
4424

skipif mysql # not compatible
query I rowsort label-5230
SELECT - + COUNT ( * ) * - COUNT ( * ) * + - 0 - - 55 + - 46 + + - 97 + + - 47 * - 96 AS col1
----
4424

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT - + COUNT( - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-5231
SELECT - + COUNT ( - 0 )
----
-1

query I rowsort
SELECT ALL - 38 + - + ( + 3 ) + + 78 AS col1
----
37

query I rowsort
SELECT - 43 - + 66 col1
----
-109

query II rowsort
SELECT 64 AS col0, + 15
----
64
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT - 57 * - + SUM( + COALESCE ( - 49, - + 49 * + + 74 ) ) + ( + ( - 72 ) )
----
-2865

skipif mysql # not compatible
query I rowsort label-5235
SELECT - 57 * - + SUM ( + COALESCE ( - 49, - + 49 * + + 74 ) ) + ( + ( - 72 ) )
----
-2865

query I rowsort
SELECT + NULLIF ( 32, + 47 ) AS col0
----
32

query I rowsort
SELECT DISTINCT 85 * - 74 + + + 77 AS col1
----
-6213

query I rowsort
SELECT + + ( 72 ) col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5239
SELECT ALL + 81, - 76 * 66 + - COALESCE ( CAST( NULL AS SIGNED ), 26 + - 71, ( COUNT( * ) ) * - COUNT( * ) * + + 88 * - 68 ) * - CAST( 83 AS SIGNED ) AS col2
----
81
-8751

skipif mysql # not compatible
query II rowsort label-5239
SELECT ALL + 81, - 76 * 66 + - COALESCE ( CAST ( NULL AS INTEGER ), 26 + - 71, ( COUNT ( * ) ) * - COUNT ( * ) * + + 88 * - 68 ) * - CAST ( 83 AS INTEGER ) AS col2
----
81
-8751

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5240
SELECT - - MAX( ALL - + 6 ) - - COUNT( DISTINCT - - 38 ) DIV 83 + + + 9 AS col2, + 60 AS col2
----
3
60

skipif mysql # not compatible
query II rowsort label-5240
SELECT - - MAX ( ALL - + 6 ) - - COUNT ( DISTINCT - - 38 ) / 83 + + + 9 AS col2, + 60 AS col2
----
3
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5241
SELECT ALL + CASE - COALESCE ( 16, 51, + 21 + - 4 - - CAST( CASE + - MAX( 74 ) WHEN 88 * + 19 + + 18 THEN NULL ELSE + 81 END AS SIGNED ) / + COUNT( * ) ) WHEN - COUNT( * ) * - - 68 * + 8 + + 31 + ( + COUNT( * ) ) * 52 THEN - + 12 WHEN - 30 THEN - - CAST( + 32 AS SIGNED ) END / - 25 * 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + CASE - COALESCE ( 16, 51, + 21 + - 4 - - CAST ( CASE + - MAX ( 74 ) WHEN 88 * + 19 + + 18 THEN NULL ELSE + 81 END AS INTEGER ) / + COUNT ( * ) ) WHEN - COUNT ( * ) * - - 68 * + 8 + + 31 + ( + COUNT ( * ) ) * 52 THEN - + 12 WHEN - 30 THEN - - CAST ( + 32 AS INTEGER ) END / - 25 * 49 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 99 AS col2, - 83 AS col2
----
99
-83

query I rowsort
SELECT + 39 * - 52 - + 37 col1
----
-2065

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT ALL + 96 * 58 * + MAX( ALL - + 4 ) + - - 35
----
-22237

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL + 96 * 58 * + MAX ( ALL - + 4 ) + - - 35
----
-22237

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT + COUNT( * ) * + 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5245
SELECT + COUNT ( * ) * + 17 AS col2
----
17

query II rowsort
SELECT + 67 AS col0, 91
----
67
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5247
SELECT + COUNT( * ) * 33 + + 91 DIV - - 40
----
35

skipif mysql # not compatible
query I rowsort label-5247
SELECT + COUNT ( * ) * 33 + + 91 / - - 40
----
35

query I rowsort
SELECT + 42 - - 72
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-5249
SELECT - COUNT( * ) AS col0, 78 AS col0
----
-1
78

skipif mysql # not compatible
query II rowsort label-5249
SELECT - COUNT ( * ) AS col0, 78 AS col0
----
-1
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT - CAST( NULL AS SIGNED ) * - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT - CAST ( NULL AS INTEGER ) * - + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5251
SELECT ALL ( COALESCE ( + ( + - CAST( - 15 AS SIGNED ) ), + 31, - - COUNT( * ) + - - 91 DIV + COALESCE ( - 96, + + 37 * 49 * + 30 * - 95, + + 57 ), + COUNT( * ), 79 * 80 + + - 57 ) ) DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL ( COALESCE ( + ( + - CAST ( - 15 AS INTEGER ) ), + 31, - - COUNT ( * ) + - - 91 / + COALESCE ( - 96, + + 37 * 49 * + 30 * - 95, + + 57 ), + COUNT ( * ), 79 * 80 + + - 57 ) ) / 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5252
SELECT CASE + 1 WHEN + + 11 THEN - 83 WHEN - 91 / - COUNT( * ) * 40 + + + CAST( NULL AS SIGNED ) + - 79 + - 38 THEN - 61 + ( 41 ) WHEN - 53 / + + 72 - - - COUNT( * ) - 88 * CAST( NULL AS SIGNED ) * + 80 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT CASE + 1 WHEN + + 11 THEN - 83 WHEN - 91 / - COUNT ( * ) * 40 + + + CAST ( NULL AS INTEGER ) + - 79 + - 38 THEN - 61 + ( 41 ) WHEN - 53 / + + 72 - - - COUNT ( * ) - 88 * CAST ( NULL AS INTEGER ) * + 80 THEN NULL END col0
----
NULL

query I rowsort
SELECT + NULLIF ( + 74, - 56 + - 41 ) AS col2
----
74

query I rowsort
SELECT DISTINCT 24 * + 27 - + - 88 + - 88 * + + 56 + - - 22
----
-4170

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT ALL NULLIF ( - 0, NULLIF ( + + 9, + 45 * 2 ) + 25 ) * + 19 * + MIN( ALL - + 4 ) col0, + ( - COUNT( - - 98 ) )
----
0
-1

skipif mysql # not compatible
query II rowsort label-5255
SELECT ALL NULLIF ( - 0, NULLIF ( + + 9, + 45 * 2 ) + 25 ) * + 19 * + MIN ( ALL - + 4 ) col0, + ( - COUNT ( - - 98 ) )
----
0
-1

query I rowsort
SELECT + ( - + 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT + 36 + - + 40 * + COUNT( 24 ) + - 62 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-5257
SELECT + 36 + - + 40 * + COUNT ( 24 ) + - 62 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT + COUNT( * ) * - + 37 * - COUNT( + 44 ) * - 57
----
-2109

skipif mysql # not compatible
query I rowsort label-5258
SELECT + COUNT ( * ) * - + 37 * - COUNT ( + 44 ) * - 57
----
-2109

query I rowsort
SELECT + 12 * + 32 AS col1
----
384

onlyif mysql # aggregate syntax: 
query II rowsort label-5260
SELECT SUM( 42 ), - 5 col2
----
42
-5

skipif mysql # not compatible
query II rowsort label-5260
SELECT SUM ( 42 ), - 5 col2
----
42
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT ( - 85 ) * - 6 * + 20 - + - NULLIF ( - 18, 19 * + + 41 + - COUNT( * ) ) AS col1
----
10182

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT ( - 85 ) * - 6 * + 20 - + - NULLIF ( - 18, 19 * + + 41 + - COUNT ( * ) ) AS col1
----
10182

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT + 65 DIV + - 50
----
-1

skipif mysql # not compatible
query I rowsort label-5262
SELECT + 65 / + - 50
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL ( COUNT( ALL + 46 ) ) * + - 85 * 88 + + COUNT( * )
----
-7479

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL ( COUNT ( ALL + 46 ) ) * + - 85 * 88 + + COUNT ( * )
----
-7479

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL CASE - 79 WHEN + - 71 * 51 * NULLIF ( - 49, - 29 ) + + MIN( ALL - 65 ) THEN NULL ELSE + 65 + - 21 - + 92 END col2
----
-48

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL CASE - 79 WHEN + - 71 * 51 * NULLIF ( - 49, - 29 ) + + MIN ( ALL - 65 ) THEN NULL ELSE + 65 + - 21 - + 92 END col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT DISTINCT ( 35 ) + - MIN( ALL + - 91 )
----
126

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT ( 35 ) + - MIN ( ALL + - 91 )
----
126

query I rowsort
SELECT ALL 44 + + 34
----
78

query I rowsort
SELECT + + 62 + + 89
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT - + CAST( - 43 AS SIGNED ) - + + 93 col2
----
-50

skipif mysql # not compatible
query I rowsort label-5268
SELECT - + CAST ( - 43 AS INTEGER ) - + + 93 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + - COUNT( DISTINCT + 47 ) + + + 99 col1
----
98

skipif mysql # not compatible
query I rowsort label-5269
SELECT + - COUNT ( DISTINCT + 47 ) + + + 99 col1
----
98

query I rowsort
SELECT - - 82 + + ( - 45 ) + - - 33 + - 67 * + 14 AS col1
----
-868

query I rowsort
SELECT - + COALESCE ( + 34, 21 + - + 6 )
----
-34

query I rowsort
SELECT ALL + 1 + - 17 * - - 13 * + 38 AS col2
----
-8397

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT - 64 + - 16 DIV + 71 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5273
SELECT - 64 + - 16 / + 71 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5274
SELECT ALL - + 95 + + CAST( NULL AS SIGNED ) * - + COUNT( * ) / + SUM( ALL 94 ) AS col1, 88 - + 61
----
NULL
27

skipif mysql # not compatible
query II rowsort label-5274
SELECT ALL - + 95 + + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) / + SUM ( ALL 94 ) AS col1, 88 - + 61
----
NULL
27

query I rowsort
SELECT - 77 + 25
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL COUNT( * ) + - - NULLIF ( 33, 10 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL COUNT ( * ) + - - NULLIF ( 33, 10 ) AS col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT - 91 + 85 * - - 81 + + 58 DIV - 80
----
6794

skipif mysql # not compatible
query I rowsort label-5277
SELECT - 91 + 85 * - - 81 + + 58 / - 80
----
6794

query I rowsort
SELECT ALL + - 66 * - + 13
----
858

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5279
SELECT ALL NULLIF ( - + 59, NULLIF ( 59, - - COUNT( * ) ) * 30 * + - 16 + - - MAX( + 46 ) * 69 DIV - - ( - - 65 ) + 58 + + + 33 + 85 ) DIV 36 + - + COUNT( * ) * 5, - 83 * 39 DIV + 85 + + ( - + 47 ) + + 32 + + 84 + - - 26 * - CASE ( - + 92 ) WHEN - 13 THEN NULL WHEN 88 THEN NULL WHEN + CASE - MIN( DISTINCT - + 89 ) WHEN + + 63 THEN + 37 END + - + 84 THEN + 59 * - 82 * - ( 65 ) END AS col0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-5279
SELECT ALL NULLIF ( - + 59, NULLIF ( 59, - - COUNT ( * ) ) * 30 * + - 16 + - - MAX ( + 46 ) * 69 / - - ( - - 65 ) + 58 + + + 33 + 85 ) / 36 + - + COUNT ( * ) * 5, - 83 * 39 / + 85 + + ( - + 47 ) + + 32 + + 84 + - - 26 * - CASE ( - + 92 ) WHEN - 13 THEN NULL WHEN 88 THEN NULL WHEN + CASE - MIN ( DISTINCT - + 89 ) WHEN + + 63 THEN + 37 END + - + 84 THEN + 59 * - 82 * - ( 65 ) END AS col0
----
-6
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT DISTINCT + 6 DIV + 84 + - 0 * - + 52
----
0

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + 6 / + 84 + - 0 * - + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT - - 86 * ( COUNT( * ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5281
SELECT - - 86 * ( COUNT ( * ) ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5282
SELECT - - CAST( NULL AS SIGNED ) * - ( CAST( - MIN( - 95 ) AS SIGNED ) ) + + COUNT( * ) + - CASE + COUNT( * ) WHEN + + ( 26 ) THEN NULL ELSE + COUNT( * ) END + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT - - CAST ( NULL AS INTEGER ) * - ( CAST ( - MIN ( - 95 ) AS INTEGER ) ) + + COUNT ( * ) + - CASE + COUNT ( * ) WHEN + + ( 26 ) THEN NULL ELSE + COUNT ( * ) END + - 42
----
NULL

query I rowsort
SELECT ALL + + 96 col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT + SUM( DISTINCT + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5284
SELECT + SUM ( DISTINCT + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - - 5 + - SUM( - 48 )
----
53

skipif mysql # not compatible
query I rowsort label-5285
SELECT - - 5 + - SUM ( - 48 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL + - COALESCE ( + 51, - 70 * + COALESCE ( + + 9, - 58 + + MIN( - - 75 ) ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + - COALESCE ( + 51, - 70 * + COALESCE ( + + 9, - 58 + + MIN ( - - 75 ) ) ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5287
SELECT - 79 * - NULLIF ( + + 52, - + 83 ) * MIN( DISTINCT + 33 ) AS col1, - 39 - - 4 AS col1
----
135564
-35

skipif mysql # not compatible
query II rowsort label-5287
SELECT - 79 * - NULLIF ( + + 52, - + 83 ) * MIN ( DISTINCT + 33 ) AS col1, - 39 - - 4 AS col1
----
135564
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT DISTINCT - 30 DIV - - 81 - + + 95
----
-95

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT - 30 / - - 81 - + + 95
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT ALL - SUM( DISTINCT + ( - 44 ) ), 70 AS col1
----
44
70

skipif mysql # not compatible
query II rowsort label-5289
SELECT ALL - SUM ( DISTINCT + ( - 44 ) ), 70 AS col1
----
44
70

query I rowsort
SELECT ALL 43 * - ( - 29 )
----
1247

query I rowsort
SELECT 26 * 4 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL - COUNT( * ) * - 13 * + 74
----
962

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - COUNT ( * ) * - 13 * + 74
----
962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5293
SELECT DISTINCT - CASE - ( + + 51 ) WHEN - CAST( COALESCE ( + MAX( ALL + + CAST( + 69 AS DECIMAL ) ), 55 + + + CASE - 24 WHEN - - 72 THEN + COUNT( * ) - + - 52 + 43 ELSE COUNT( * ) + 27 * - COALESCE ( + MAX( ALL + 66 ), - 51 * + CAST( - 84 AS SIGNED ) / SUM( DISTINCT + 23 ) * + + COUNT( * ) / + COALESCE ( 95, 87 ) - - COUNT( * ) / + 72 * + 21 + - - 58, ( + - 41 ), - - 18 / - NULLIF ( - 9, - COALESCE ( + 98, + + 84 ) ) * - 82 ) END ) AS SIGNED ) * + + ( 38 ) + - + 34 THEN 30 / + CAST( - ( 21 ) AS SIGNED ) + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT - CASE - ( + + 51 ) WHEN - CAST ( COALESCE ( + MAX ( ALL + + CAST ( + 69 AS REAL ) ), 55 + + + CASE - 24 WHEN - - 72 THEN + COUNT ( * ) - + - 52 + 43 ELSE COUNT ( * ) + 27 * - COALESCE ( + MAX ( ALL + 66 ), - 51 * + CAST ( - 84 AS INTEGER ) / SUM ( DISTINCT + 23 ) * + + COUNT ( * ) / + COALESCE ( 95, 87 ) - - COUNT ( * ) / + 72 * + 21 + - - 58, ( + - 41 ), - - 18 / - NULLIF ( - 9, - COALESCE ( + 98, + + 84 ) ) * - 82 ) END ) AS INTEGER ) * + + ( 38 ) + - + 34 THEN 30 / + CAST ( - ( 21 ) AS INTEGER ) + - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( 89 ) AS col0
----
-89

query I rowsort
SELECT 16 * + 61
----
976

query I rowsort
SELECT 52 + 78
----
130

query I rowsort
SELECT 26 * - 62
----
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT + ( + 49 ) * + COUNT( * ) + + 82 col1
----
131

skipif mysql # not compatible
query I rowsort label-5298
SELECT + ( + 49 ) * + COUNT ( * ) + + 82 col1
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT DISTINCT 59 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT 59 / + 50
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5300
SELECT ALL 22 AS col0, 30 * 25 DIV - + 11 AS col0
----
22
-68

skipif mysql # not compatible
query II rowsort label-5300
SELECT ALL 22 AS col0, 30 * 25 / - + 11 AS col0
----
22
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5301
SELECT DISTINCT 94 DIV + + 91
----
1

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT 94 / + + 91
----
1

query I rowsort
SELECT DISTINCT - 88 + - + NULLIF ( - 53, 78 + - 37 ) AS col1
----
-35

query I rowsort
SELECT DISTINCT 88 + - + 34 AS col0
----
54

query I rowsort
SELECT + 12 * - 57 AS col1
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL ( - 60 ) + + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL ( - 60 ) + + COUNT ( * )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT - - CAST( - - 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-5306
SELECT - - CAST ( - - 6 AS INTEGER )
----
6

query II rowsort
SELECT DISTINCT 44 col0, COALESCE ( 87, + 53 ) + - ( + + 23 ) * + 22 AS col1
----
44
-419

onlyif mysql # aggregate syntax: 
query II rowsort label-5308
SELECT 31 * 77 * + MIN( ALL + 25 ) AS col1, ( + 4 ) + + 19 - ( 98 ) AS col2
----
59675
-75

skipif mysql # not compatible
query II rowsort label-5308
SELECT 31 * 77 * + MIN ( ALL + 25 ) AS col1, ( + 4 ) + + 19 - ( 98 ) AS col2
----
59675
-75

query I rowsort
SELECT ALL ( + 50 ) * + 90 * - + NULLIF ( 67, + + 89 * - + 8 + + + 52 ) * + - 92 + 63 AS col2
----
27738063

query II rowsort
SELECT ALL - 90, + 25 * - 27 AS col2
----
-90
-675

query II rowsort
SELECT + 22 AS col1, 23 * + 90
----
22
2070

query I rowsort
SELECT DISTINCT 36 * + 5
----
180

query I rowsort
SELECT DISTINCT - ( - 41 ) col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL + MIN( DISTINCT - - 21 ) - + - 24 * 67 AS col2
----
1629

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL + MIN ( DISTINCT - - 21 ) - + - 24 * 67 AS col2
----
1629

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT - 23 AS col2, 36 + + COUNT( ALL - - 99 ) AS col0
----
-23
37

skipif mysql # not compatible
query II rowsort label-5315
SELECT - 23 AS col2, 36 + + COUNT ( ALL - - 99 ) AS col0
----
-23
37

query II rowsort
SELECT ALL 34, 83 + + 61 AS col0
----
34
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT ALL + 90 - - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL + 90 - - - COUNT ( * )
----
89

query II rowsort
SELECT ALL 68, + 36 * + 53 AS col2
----
68
1908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT CAST( NULL AS SIGNED ) + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT CAST ( NULL AS INTEGER ) + - 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT + 11 DIV COUNT( * ) + 80
----
91

skipif mysql # not compatible
query I rowsort label-5320
SELECT + 11 / COUNT ( * ) + 80
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT - COUNT( * ) + - 98 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5321
SELECT - COUNT ( * ) + - 98 AS col2
----
-99

query II rowsort
SELECT 36 AS col0, + 24 * + - 18 AS col1
----
36
-432

query II rowsort
SELECT + - 39, - 16 AS col2
----
-39
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL - 54 * + COUNT( * ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - 54 * + COUNT ( * ) col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT - + ( + + 78 ) * + CASE WHEN NOT 84 IS NULL THEN NULL ELSE - 46 END - COUNT( * ) + - COUNT( * ) + 2 * + + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT - + ( + + 78 ) * + CASE WHEN NOT 84 IS NULL THEN NULL ELSE - 46 END - COUNT ( * ) + - COUNT ( * ) + 2 * + + 71 AS col0
----
NULL

query I rowsort
SELECT ALL - ( - - ( + 31 ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT DISTINCT - MAX( ALL - 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - MAX ( ALL - 58 ) AS col2
----
58

query I rowsort
SELECT 46 * - 39 + - 4
----
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT ALL - SUM( ALL 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - SUM ( ALL 70 ) AS col2
----
-70

query I rowsort
SELECT 7 * + 83 col0
----
581

query I rowsort
SELECT 45 - + 0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT 61 * - CASE 66 WHEN 26 / + + COUNT( * ) + - 80 - - MAX( 41 ) + + 85 THEN + + 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT 61 * - CASE 66 WHEN 26 / + + COUNT ( * ) + - 80 - - MAX ( 41 ) + + 85 THEN + + 43 END AS col0
----
NULL

query II rowsort
SELECT ALL - 2 + - 83 AS col2, - 5 * 68
----
-85
-340

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5334
SELECT ALL + 47 + - 75 AS col0, + CAST( NULL AS SIGNED )
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-5334
SELECT ALL + 47 + - 75 AS col0, + CAST ( NULL AS INTEGER )
----
-28
NULL

query I rowsort
SELECT DISTINCT - 93 * + 96 AS col1
----
-8928

query I rowsort
SELECT DISTINCT - 20 + + + 9 AS col1
----
-11

query I rowsort
SELECT 51 * - + 3
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL - COALESCE ( - - 88, 81 + + COUNT( * ) ) + - 21
----
-109

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL - COALESCE ( - - 88, 81 + + COUNT ( * ) ) + - 21
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-5339
SELECT ALL + 48 + 42 * 83 * 65 + - - 94 DIV - 29 AS col1
----
226635

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + 48 + 42 * 83 * 65 + - - 94 / - 29 AS col1
----
226635

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5340
SELECT DISTINCT 88 + 56, CAST( - 48 AS SIGNED ) AS col2
----
144
-48

skipif mysql # not compatible
query II rowsort label-5340
SELECT DISTINCT 88 + 56, CAST ( - 48 AS INTEGER ) AS col2
----
144
-48

query II rowsort
SELECT ALL 47 + 51 AS col0, + 32
----
98
32

query I rowsort
SELECT 35 * - 68
----
-2380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5343
SELECT ALL + - 91 + + + 23 + + 4 + 62 AS col2, + CAST( + 60 AS SIGNED ) AS col2
----
-2
60

skipif mysql # not compatible
query II rowsort label-5343
SELECT ALL + - 91 + + + 23 + + 4 + 62 AS col2, + CAST ( + 60 AS INTEGER ) AS col2
----
-2
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT + COUNT( * ) - 46
----
-45

skipif mysql # not compatible
query I rowsort label-5344
SELECT + COUNT ( * ) - 46
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5345
SELECT DISTINCT + ( - + CASE 94 WHEN - 31 * - + 40 - 37 THEN NULL WHEN - 13 DIV - ( - 89 ) + + + COUNT( * ) * + - 90 THEN NULL WHEN + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) THEN + - 44 * ( 9 ) + - 91 * - 5 ELSE + 89 END ) DIV 80 AS col1, + ( COALESCE ( - - COUNT( * ), 65 - + 59 * - 72 + - + 67 * 46 ) ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-5345
SELECT DISTINCT + ( - + CASE 94 WHEN - 31 * - + 40 - 37 THEN NULL WHEN - 13 / - ( - 89 ) + + + COUNT ( * ) * + - 90 THEN NULL WHEN + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN + - 44 * ( 9 ) + - 91 * - 5 ELSE + 89 END ) / 80 AS col1, + ( COALESCE ( - - COUNT ( * ), 65 - + 59 * - 72 + - + 67 * 46 ) ) AS col0
----
-1
1

query I rowsort
SELECT NULLIF ( + - 8, - 10 * + ( + 24 ) ) + - 78
----
-86

query I rowsort
SELECT + 59 + - + 9 + + 6
----
56

query I rowsort
SELECT ALL + 99 - - - 51
----
48

query I rowsort
SELECT ALL 12 - + 10 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5350
SELECT 69 - - 55 AS col1, CAST( NULL AS SIGNED )
----
124
NULL

skipif mysql # not compatible
query II rowsort label-5350
SELECT 69 - - 55 AS col1, CAST ( NULL AS INTEGER )
----
124
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT - COUNT( * ) + + + 81
----
80

skipif mysql # not compatible
query I rowsort label-5351
SELECT - COUNT ( * ) + + + 81
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5352
SELECT 15 - + - COUNT( * ) * + NULLIF ( + COUNT( * ), - 55 ), 27 AS col0
----
16
27

skipif mysql # not compatible
query II rowsort label-5352
SELECT 15 - + - COUNT ( * ) * + NULLIF ( + COUNT ( * ), - 55 ), 27 AS col0
----
16
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5353
SELECT DISTINCT ( - COUNT( * ) ) col1, SUM( ALL + - 23 ) DIV + COUNT( * ) AS col0
----
-1
-23

skipif mysql # not compatible
query II rowsort label-5353
SELECT DISTINCT ( - COUNT ( * ) ) col1, SUM ( ALL + - 23 ) / + COUNT ( * ) AS col0
----
-1
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-5354
SELECT 49 * + 74 * + ( - 84 ) * - - 37 AS col2, - 54 + - COUNT( * ) + - 92 + - + 38
----
-11269608
-185

skipif mysql # not compatible
query II rowsort label-5354
SELECT 49 * + 74 * + ( - 84 ) * - - 37 AS col2, - 54 + - COUNT ( * ) + - 92 + - + 38
----
-11269608
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL + COUNT( ALL + 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + COUNT ( ALL + 71 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT + - COUNT( * ) + - + 10 + - + 53 + COUNT( ALL CAST( + - 13 AS SIGNED ) ) * 34 * + 79 AS col0
----
2622

skipif mysql # not compatible
query I rowsort label-5356
SELECT + - COUNT ( * ) + - + 10 + - + 53 + COUNT ( ALL CAST ( + - 13 AS INTEGER ) ) * 34 * + 79 AS col0
----
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL - NULLIF ( + MAX( DISTINCT - 5 ), + 82 * - 32 / + COUNT( * ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - NULLIF ( + MAX ( DISTINCT - 5 ), + 82 * - 32 / + COUNT ( * ) ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5358
SELECT + CASE 48 WHEN - 23 THEN NULL WHEN + 93 THEN 11 WHEN - 56 * - MAX( - - CAST( NULL AS SIGNED ) ) + + COUNT( * ) THEN NULL ELSE - 17 END * - 65 col0
----
1105

skipif mysql # not compatible
query I rowsort label-5358
SELECT + CASE 48 WHEN - 23 THEN NULL WHEN + 93 THEN 11 WHEN - 56 * - MAX ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) THEN NULL ELSE - 17 END * - 65 col0
----
1105

query I rowsort
SELECT DISTINCT 54 * - 36 * + 37 AS col0
----
-71928

query I rowsort
SELECT DISTINCT + CASE 50 WHEN - 22 THEN + 53 * - + 67 + - 19 - + 95 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 68 AS col1, + 76 + 58 * 2 AS col2
----
68
192

query II rowsort
SELECT 69 * 64 + 38 + - 28 * 61, - 70 * - 27 AS col1
----
2746
1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5363
SELECT - 18 DIV - COUNT( * ) + + + 74 + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5363
SELECT - 18 / - COUNT ( * ) + + + 74 + COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT CASE + - 15 WHEN - COUNT( * ) THEN NULL ELSE + 99 END
----
99

skipif mysql # not compatible
query I rowsort label-5364
SELECT CASE + - 15 WHEN - COUNT ( * ) THEN NULL ELSE + 99 END
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT DISTINCT - 65 * - ( 16 ) * - - SUM( ALL - 94 ) + - 56
----
-97816

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT - 65 * - ( 16 ) * - - SUM ( ALL - 94 ) + - 56
----
-97816

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL CASE + ( - 45 ) WHEN 11 THEN - 25 WHEN + + MIN( + 51 ) THEN NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL CASE + ( - 45 ) WHEN 11 THEN - 25 WHEN + + MIN ( + 51 ) THEN NULL END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5367
SELECT CASE + 96 WHEN + 63 THEN + 83 WHEN + CAST( 50 AS SIGNED ) THEN - CASE 35 WHEN - 94 * - 94 THEN NULL WHEN + COUNT( * ) THEN + 66 END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT CASE + 96 WHEN + 63 THEN + 83 WHEN + CAST ( 50 AS INTEGER ) THEN - CASE 35 WHEN - 94 * - 94 THEN NULL WHEN + COUNT ( * ) THEN + 66 END ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL 80 * + - NULLIF ( - 1, - COUNT( * ) + - 35 ) + + SUM( ALL 34 )
----
114

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL 80 * + - NULLIF ( - 1, - COUNT ( * ) + - 35 ) + + SUM ( ALL 34 )
----
114

query I rowsort
SELECT DISTINCT + 88 * + 44 + + + 48 AS col2
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL + COALESCE ( - ( 41 ), - - COALESCE ( + COUNT( * ), - 98 * + COUNT( * ) ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + COALESCE ( - ( 41 ), - - COALESCE ( + COUNT ( * ), - 98 * + COUNT ( * ) ) ) AS col2
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5371
SELECT + 99 * + CAST( NULL AS DECIMAL ) + + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT + 99 * + CAST ( NULL AS REAL ) + + - 24
----
NULL

query I rowsort
SELECT DISTINCT 23 * + 6 + - - 62 + + - 21 + + 79 + + + 60 * - 82 AS col1
----
-4662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT DISTINCT + COUNT( ALL CAST( - NULLIF ( + + 60, + - 48 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT + COUNT ( ALL CAST ( - NULLIF ( + + 60, + - 48 ) AS INTEGER ) )
----
1

query I rowsort
SELECT - 53 + - ( - 85 ) col0
----
32

query I rowsort
SELECT DISTINCT - 98 * - 2 AS col2
----
196

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5376
SELECT - ( - - CAST( NULL AS DECIMAL ) ) + + 13 col0, + 96 + - ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5376
SELECT - ( - - CAST ( NULL AS REAL ) ) + + 13 col0, + 96 + - ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT MAX( ALL + - 50 ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-5377
SELECT MAX ( ALL + - 50 ) col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT 7 * - - COUNT( * ) * 48 * - ( - 74 ) + + - 23
----
24841

skipif mysql # not compatible
query I rowsort label-5378
SELECT 7 * - - COUNT ( * ) * 48 * - ( - 74 ) + + - 23
----
24841

query I rowsort
SELECT ALL 67 * 72 + - + 77
----
4747

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5380
SELECT - ( CASE 95 WHEN + 89 THEN COALESCE ( 45, 21 - COUNT( * ) DIV + 68 ) * + 87 + + 67 * 16 ELSE + 92 * - COUNT( * ) END ) + 86
----
178

skipif mysql # not compatible
query I rowsort label-5380
SELECT - ( CASE 95 WHEN + 89 THEN COALESCE ( 45, 21 - COUNT ( * ) / + 68 ) * + 87 + + 67 * 16 ELSE + 92 * - COUNT ( * ) END ) + 86
----
178

query I rowsort
SELECT - 52 * 84
----
-4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT ALL - 44 * - COALESCE ( + 25, + CASE + 32 WHEN 74 THEN - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) - 15 WHEN 15 + 64 THEN + 21 END * + ( 73 ) + + 35 ) AS col2
----
1100

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL - 44 * - COALESCE ( + 25, + CASE + 32 WHEN 74 THEN - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) - 15 WHEN 15 + 64 THEN + 21 END * + ( 73 ) + + 35 ) AS col2
----
1100

query I rowsort
SELECT ALL - 72 - - 94
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT - COALESCE ( + 73, COUNT( * ) ) * - ( 2 )
----
146

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - COALESCE ( + 73, COUNT ( * ) ) * - ( 2 )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ALL + MAX( 24 ) - 2 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL + MAX ( 24 ) - 2 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT NULLIF ( 15, + COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT NULLIF ( 15, + COUNT ( * ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL + 36 * + COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL + 36 * + COUNT ( * ) AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT ALL NULLIF ( CAST( ( + 51 ) AS SIGNED ), - 18 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL NULLIF ( CAST ( ( + 51 ) AS INTEGER ), - 18 ) AS col0
----
51

query I rowsort
SELECT DISTINCT + 27 * - 20
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT + 9 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-5390
SELECT + 9 / 61
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT - NULLIF ( 43, - 79 / - NULLIF ( 34, 81 + + 89 ) + + ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5391
SELECT - NULLIF ( 43, - 79 / - NULLIF ( 34, 81 + + 89 ) + + ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT - 56 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT - 56 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 27 ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT - 73 DIV 40 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5394
SELECT - 73 / 40 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT DISTINCT + ( - 70 ) DIV 63
----
-1

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + ( - 70 ) / 63
----
-1

query I rowsort
SELECT ALL ( - 79 ) AS col1
----
-79

query I rowsort
SELECT - 20 - 72
----
-92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5398
SELECT - CASE - 7 WHEN 95 * + CAST( NULL AS DECIMAL ) THEN ( ( + CAST( 14 AS SIGNED ) ) ) WHEN - 58 THEN ( + CAST( NULL AS SIGNED ) ) ELSE 23 END AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5398
SELECT - CASE - 7 WHEN 95 * + CAST ( NULL AS REAL ) THEN ( ( + CAST ( 14 AS INTEGER ) ) ) WHEN - 58 THEN ( + CAST ( NULL AS INTEGER ) ) ELSE 23 END AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5399
SELECT ALL CAST( + CASE 51 WHEN - ( + 11 ) THEN NULLIF ( COUNT( * ), CAST( - 49 AS SIGNED ) - 32 ) WHEN 6 * - 44 THEN COUNT( * ) * + 86 - 92 WHEN - 15 + - 76 / - ( 37 + - 65 ) THEN MAX( ( 5 ) ) + 75 * 38 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL CAST ( + CASE 51 WHEN - ( + 11 ) THEN NULLIF ( COUNT ( * ), CAST ( - 49 AS INTEGER ) - 32 ) WHEN 6 * - 44 THEN COUNT ( * ) * + 86 - 92 WHEN - 15 + - 76 / - ( 37 + - 65 ) THEN MAX ( ( 5 ) ) + 75 * 38 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT - 96 + - COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-5400
SELECT - 96 + - COUNT ( * ) AS col1
----
-97

query I rowsort
SELECT + 20 + 75 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT ALL + COUNT( * ) DIV + 63 + 65 * 45 AS col0
----
2925

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL + COUNT ( * ) / + 63 + 65 * 45 AS col0
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT + MAX( ALL 50 )
----
50

skipif mysql # not compatible
query I rowsort label-5403
SELECT + MAX ( ALL 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT CAST ( + 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT + MAX( DISTINCT - 41 ) * + 8
----
-328

skipif mysql # not compatible
query I rowsort label-5405
SELECT + MAX ( DISTINCT - 41 ) * + 8
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + 66 - - 32 * - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-5406
SELECT + 66 - - 32 * - COUNT ( * )
----
34

query I rowsort
SELECT + 84 * 89 AS col0
----
7476

onlyif mysql # DIV for integer division: 
query I rowsort label-5408
SELECT DISTINCT + 44 DIV 87 + - 91 * 68 AS col0
----
-6188

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT + 44 / 87 + - 91 * 68 AS col0
----
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT ALL - 61 DIV COUNT( * ) + 99 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - 61 / COUNT ( * ) + 99 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5410
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5410
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5411
SELECT DISTINCT 51 DIV 28 + + 43 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT 51 / 28 + + 43 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT + 6 + + COALESCE ( ( COUNT( * ) ), 76, + ( + 97 ) )
----
7

skipif mysql # not compatible
query I rowsort label-5412
SELECT + 6 + + COALESCE ( ( COUNT ( * ) ), 76, + ( + 97 ) )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT DISTINCT 88 DIV 68 + - 86 DIV 39
----
-1

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT 88 / 68 + - 86 / 39
----
-1

query I rowsort
SELECT + ( + 28 ) AS col0
----
28

query I rowsort
SELECT ALL 94 * - 12 - + 0 * - 54
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL ( COUNT( * ) ) * - 96 - + ( - 33 + + 14 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL ( COUNT ( * ) ) * - 96 - + ( - 33 + + 14 ) AS col1
----
-77

query I rowsort
SELECT DISTINCT 29 * 78
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL + 12 * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL + 12 * COUNT ( * )
----
12

query I rowsort
SELECT ALL + - 88 AS col2
----
-88

query I rowsort
SELECT ALL + - 72 AS col1
----
-72

query I rowsort
SELECT - 55 * CASE - 49 WHEN 27 THEN NULL WHEN + 17 * + AVG ( ALL - 46 * - 33 ) THEN NULL ELSE 89 END
----
-4895

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT + + 2 + NULLIF ( + 40, COUNT( * ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5422
SELECT + + 2 + NULLIF ( + 40, COUNT ( * ) ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL COUNT( 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL COUNT ( 46 ) AS col1
----
1

query I rowsort
SELECT + + 53 * - 50
----
-2650

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT - + COUNT( * ) * + 80
----
-80

skipif mysql # not compatible
query I rowsort label-5425
SELECT - + COUNT ( * ) * + 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT + 25 * NULLIF ( COUNT( * ) + + 58, + NULLIF ( ( - COUNT( * ) ), 16 ) + ( - AVG ( - ( + 35 ) ) ) )
----
1475

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + 25 * NULLIF ( COUNT ( * ) + + 58, + NULLIF ( ( - COUNT ( * ) ), 16 ) + ( - AVG ( - ( + 35 ) ) ) )
----
1475

query I rowsort
SELECT 78 + + 25 AS col1
----
103

query I rowsort
SELECT ALL + 75 * - 71
----
-5325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5429
SELECT DISTINCT + MIN( 89 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + MIN ( 89 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT ALL - - 77 + + 8 DIV 78
----
77

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - - 77 + + 8 / 78
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5431
SELECT + 80 - + CAST( NULL AS SIGNED ) * - NULLIF ( SUM( ( - 54 ) ) + - 22 * 76, COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT + 80 - + CAST ( NULL AS INTEGER ) * - NULLIF ( SUM ( ( - 54 ) ) + - 22 * 76, COUNT ( * ) ) col1
----
NULL

query I rowsort
SELECT + 24 + 41 col0
----
65

query I rowsort
SELECT 47 + + ( 57 )
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT MAX( - CAST( NULL AS SIGNED ) ) / - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) / - 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT 55 + - 23 + COUNT( * ) * + 96
----
128

skipif mysql # not compatible
query I rowsort label-5435
SELECT 55 + - 23 + COUNT ( * ) * + 96
----
128

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5436
SELECT ALL - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL + COUNT( + 43 ) + 2
----
3

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL + COUNT ( + 43 ) + 2
----
3

query I rowsort
SELECT DISTINCT - 33 + - - 9
----
-24

query I rowsort
SELECT ALL 37 + - + 41
----
-4

query I rowsort
SELECT 45 + - 87
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL + COUNT( * ) + 56 + - SUM( 72 )
----
-15

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL + COUNT ( * ) + 56 + - SUM ( 72 )
----
-15

query I rowsort
SELECT 55 + 39 AS col2
----
94

query I rowsort
SELECT ALL 30 + - 63 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT 61 * + 63 * + COUNT( * )
----
3843

skipif mysql # not compatible
query I rowsort label-5444
SELECT 61 * + 63 * + COUNT ( * )
----
3843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5445
SELECT ALL - COUNT( * ) DIV - ( + MAX( 54 ) ) * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL - COUNT ( * ) / - ( + MAX ( 54 ) ) * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT 7 * - - COALESCE ( CASE + 77 WHEN - CAST( NULL AS SIGNED ) THEN + ( - CAST( NULL AS SIGNED ) ) ELSE NULL END, 51 - - 84, + 97 ) * 15 + + 22 AS col1
----
14197

skipif mysql # not compatible
query I rowsort label-5446
SELECT 7 * - - COALESCE ( CASE + 77 WHEN - CAST ( NULL AS INTEGER ) THEN + ( - CAST ( NULL AS INTEGER ) ) ELSE NULL END, 51 - - 84, + 97 ) * 15 + + 22 AS col1
----
14197

query I rowsort
SELECT 35 * 8
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT DISTINCT + 71 - + 17 + + ( COUNT( * ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT + 71 - + 17 + + ( COUNT ( * ) ) AS col0
----
55

query I rowsort
SELECT ALL 71 - 43 * - NULLIF ( - 57, 30 * ( + 18 ) - 76 ) AS col2
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT SUM( 45 ) * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5450
SELECT SUM ( 45 ) * COUNT ( * )
----
45

query I rowsort
SELECT ALL 88 * 84
----
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT COUNT( + + 98 ) + - 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5452
SELECT COUNT ( + + 98 ) + - 93 AS col0
----
-92

query I rowsort
SELECT DISTINCT + 71 - + 48 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT NULLIF ( - ( 36 ), 26 ) * COUNT( * ) + COUNT( * ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-5454
SELECT NULLIF ( - ( 36 ), 26 ) * COUNT ( * ) + COUNT ( * ) col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT + COUNT( ALL + 17 ) * 89 + 65
----
154

skipif mysql # not compatible
query I rowsort label-5455
SELECT + COUNT ( ALL + 17 ) * 89 + 65
----
154

query I rowsort
SELECT ALL - 85 col0
----
-85

query I rowsort
SELECT DISTINCT - - 60 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT - MAX( ALL - - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-5458
SELECT - MAX ( ALL - - 50 ) AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT CAST( 34 AS SIGNED ) + - 47 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5459
SELECT CAST ( 34 AS INTEGER ) + - 47 AS col1
----
-13

query I rowsort
SELECT + 78 * - 67 col0
----
-5226

query I rowsort
SELECT ALL - + COALESCE ( - 4, NULLIF ( 61, 17 ) ) col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT - + 42 * + 84 * MAX( ALL - 88 ) + + 46 * - COALESCE ( 83, - 64 * - 35 )
----
306646

skipif mysql # not compatible
query I rowsort label-5462
SELECT - + 42 * + 84 * MAX ( ALL - 88 ) + + 46 * - COALESCE ( 83, - 64 * - 35 )
----
306646

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT - 5 DIV - - 97 + 17 * - 87 AS col0
----
-1479

skipif mysql # not compatible
query I rowsort label-5463
SELECT - 5 / - - 97 + 17 * - 87 AS col0
----
-1479

query I rowsort
SELECT ALL 45 + - 33
----
12

query I rowsort
SELECT 0 * - 48 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5466
SELECT DISTINCT 63 + + 52 + COUNT( * ) DIV COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT 63 + + 52 + COUNT ( * ) / COUNT ( * )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL + 79 * - CASE + 99 WHEN 56 THEN 2 * + 50 WHEN - 0 * - COUNT( * ) THEN NULL ELSE NULL END / - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL + 79 * - CASE + 99 WHEN 56 THEN 2 * + 50 WHEN - 0 * - COUNT ( * ) THEN NULL ELSE NULL END / - 55
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT DISTINCT - 68 + 17 + 1 DIV 93
----
-51

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT - 68 + 17 + 1 / 93
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5469
SELECT - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5470
SELECT + 55 * CASE CAST( 40 AS SIGNED ) WHEN CASE - 62 WHEN 37 + 72 THEN 13 WHEN 98 + - 61 / - COUNT( * ) THEN NULL ELSE NULL END / - AVG ( + 9 ) THEN COUNT( * ) * 61 + ( ( 37 ) ) WHEN - CAST( NULL AS SIGNED ) * - 58 THEN 67 * CASE SUM( 67 ) WHEN - 8 THEN - COUNT( * ) * - 72 END ELSE NULL END / - AVG ( 20 ) + - 20 * - NULLIF ( 89, + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT + 55 * CASE CAST ( 40 AS INTEGER ) WHEN CASE - 62 WHEN 37 + 72 THEN 13 WHEN 98 + - 61 / - COUNT ( * ) THEN NULL ELSE NULL END / - AVG ( + 9 ) THEN COUNT ( * ) * 61 + ( ( 37 ) ) WHEN - CAST ( NULL AS INTEGER ) * - 58 THEN 67 * CASE SUM ( 67 ) WHEN - 8 THEN - COUNT ( * ) * - 72 END ELSE NULL END / - AVG ( 20 ) + - 20 * - NULLIF ( 89, + 38 )
----
NULL

query I rowsort
SELECT ALL - 35 + + 44 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT DISTINCT COUNT( * ) + + ( 43 ) * - 46
----
-1977

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT COUNT ( * ) + + ( 43 ) * - 46
----
-1977

query I rowsort
SELECT - - ( 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL ( + 91 ) + + 25 * SUM( 65 )
----
1716

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL ( + 91 ) + + 25 * SUM ( 65 )
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT MAX( 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5475
SELECT MAX ( 13 ) AS col2
----
13

query I rowsort
SELECT ALL - 20 + + - 28 + + 9 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL + 56 * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + 56 * - COUNT ( * )
----
-56

query I rowsort
SELECT 45 * - CASE - 99 WHEN - 48 - 8 * + 5 THEN 77 - 36 WHEN 18 THEN NULL WHEN COALESCE ( - 72, - 77 * 13, 84 ) + 31 THEN 19 END AS col0
----
NULL

query I rowsort
SELECT ALL + 47 * + + 13 AS col2
----
611

query II rowsort
SELECT 10 AS col0, 48 AS col2
----
10
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL + 84 - - - SUM( DISTINCT 10 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL + 84 - - - SUM ( DISTINCT 10 ) AS col1
----
74

query I rowsort
SELECT DISTINCT - 29 * - NULLIF ( - 82, 78 )
----
-2378

query I rowsort
SELECT ALL - 57 * + + 33 * + 18 AS col2
----
-33858

query I rowsort
SELECT 35 + + + 18
----
53

query I rowsort
SELECT 70 * + 38 * - 72 * 58
----
-11108160

query I rowsort
SELECT ( - + 17 ) + + 1
----
-16

query II rowsort
SELECT 34 col0, + 66 + - 80 col1
----
34
-14

query I rowsort
SELECT 86 + 30
----
116

query II rowsort
SELECT - 14 AS col0, 47 + 28
----
-14
75

query I rowsort
SELECT 60 * + + 67 AS col1
----
4020

query I rowsort
SELECT 96 * - + 34 AS col2
----
-3264

query I rowsort
SELECT ALL - ( 77 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT 70 - MIN( - 58 ) + + 69 col1
----
197

skipif mysql # not compatible
query I rowsort label-5493
SELECT 70 - MIN ( - 58 ) + + 69 col1
----
197

query I rowsort
SELECT ALL + 85 * - 84 AS col2
----
-7140

onlyif mysql # DIV for integer division: 
query I rowsort label-5495
SELECT DISTINCT - 94 DIV - 9
----
10

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT - 94 / - 9
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT 58 * COUNT( * ) * 70 + 36 col1
----
4096

skipif mysql # not compatible
query I rowsort label-5496
SELECT 58 * COUNT ( * ) * 70 + 36 col1
----
4096

onlyif mysql # DIV for integer division: 
query I rowsort label-5497
SELECT ALL - 85 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL - 85 / - 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT 86 * + CAST( NULL AS SIGNED ) * 95 / 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT 86 * + CAST ( NULL AS INTEGER ) * 95 / 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT MAX( DISTINCT + 81 ) * - 78
----
-6318

skipif mysql # not compatible
query I rowsort label-5499
SELECT MAX ( DISTINCT + 81 ) * - 78
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT 77 * - - MIN( - + 28 ) + + COUNT( * )
----
-2155

skipif mysql # not compatible
query I rowsort label-5500
SELECT 77 * - - MIN ( - + 28 ) + + COUNT ( * )
----
-2155

query II rowsort
SELECT 91 AS col2, - 22 AS col2
----
91
-22

query II rowsort
SELECT + 86 AS col1, 46 AS col1
----
86
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5503
SELECT + 37 - + - 44 DIV - + NULLIF ( 54, 14 ) + - ( + SUM( DISTINCT 66 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-5503
SELECT + 37 - + - 44 / - + NULLIF ( 54, 14 ) + - ( + SUM ( DISTINCT 66 ) )
----
-29

query I rowsort
SELECT - 46 * + + 82 + 14 + 45 AS col1
----
-3713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT + ( - + 43 ) * - CASE 23 WHEN + COALESCE ( COUNT( * ), 20, + 67 ) + 90 THEN + CAST( + 86 AS SIGNED ) + COALESCE ( - 54 + COUNT( * ), - 3, - 16 * 81 ) END - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT + ( - + 43 ) * - CASE 23 WHEN + COALESCE ( COUNT ( * ), 20, + 67 ) + 90 THEN + CAST ( + 86 AS INTEGER ) + COALESCE ( - 54 + COUNT ( * ), - 3, - 16 * 81 ) END - - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT DISTINCT + 58 * + COUNT( * ) * + COUNT( * ) col2
----
58

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + 58 * + COUNT ( * ) * + COUNT ( * ) col2
----
58

query I rowsort
SELECT ALL - 31 * + - ( - ( - ( + ( 78 ) ) ) ) - 69 AS col0
----
2349

query I rowsort
SELECT + + 20 * + + 36
----
720

query I rowsort
SELECT ALL + 9 + - 15 + + 28 * + 9
----
246

query I rowsort
SELECT ALL + ( + + 3 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT ALL + 39 + 19 DIV - 17 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + 39 + 19 / - 17 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT + CASE 91 WHEN + CASE 54 WHEN 97 THEN 80 END THEN NULL WHEN - AVG ( 9 ) THEN NULL WHEN 48 THEN NULL ELSE ( + COALESCE ( 56, 4 ) ) DIV + 56 + 32 END * 40 + - 68 AS col2
----
1252

skipif mysql # not compatible
query I rowsort label-5512
SELECT + CASE 91 WHEN + CASE 54 WHEN 97 THEN 80 END THEN NULL WHEN - AVG ( 9 ) THEN NULL WHEN 48 THEN NULL ELSE ( + COALESCE ( 56, 4 ) ) / + 56 + 32 END * 40 + - 68 AS col2
----
1252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5513
SELECT CASE COUNT( * ) WHEN + + 48 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT CASE COUNT ( * ) WHEN + + 48 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT - 92 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT - 92 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 32 + 89 + 1 * + 42 * - 99 AS col0
----
-4037

query II rowsort
SELECT 52 AS col2, 12
----
52
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT + CAST( NULL AS SIGNED ) + - - AVG ( ALL + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT + CAST ( NULL AS INTEGER ) + - - AVG ( ALL + 36 )
----
NULL

query I rowsort
SELECT + - 93 + - - 41 * 76
----
3023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT DISTINCT - 82 * - COALESCE ( + + 47, - 93 DIV COUNT( * ) )
----
3854

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT - 82 * - COALESCE ( + + 47, - 93 / COUNT ( * ) )
----
3854

query I rowsort
SELECT ALL + 23 + + 68 AS col0
----
91

query I rowsort
SELECT + + 18 + 0 - + - 64 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5522
SELECT ALL 32 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL 32 / - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT + 43 + + 47 * - + 19 * COUNT( * ) AS col1
----
-850

skipif mysql # not compatible
query I rowsort label-5523
SELECT + 43 + + 47 * - + 19 * COUNT ( * ) AS col1
----
-850

query I rowsort
SELECT + 61 * - + ( - 18 ) AS col0
----
1098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5525
SELECT DISTINCT MIN( - 97 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT MIN ( - 97 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 60 - + 78 * - - 75 AS col2
----
-5790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT - MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT - MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 1 * - 41 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - CASE - 52 WHEN COUNT( * ) THEN + + 25 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT - CASE - 52 WHEN COUNT ( * ) THEN + + 25 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - CASE COUNT( * ) WHEN + 80 THEN 30 WHEN + COUNT( * ) THEN NULL ELSE + 91 END + - 9 * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT - CASE COUNT ( * ) WHEN + 80 THEN 30 WHEN + COUNT ( * ) THEN NULL ELSE + 91 END + - 9 * - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT + 53 + - 68 * + - COUNT( * ) * + 82 + + 66 AS col1
----
5695

skipif mysql # not compatible
query I rowsort label-5531
SELECT + 53 + - 68 * + - COUNT ( * ) * + 82 + + 66 AS col1
----
5695

query II rowsort
SELECT + 71 * - 51, 30 AS col2
----
-3621
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT + NULLIF ( 72, - CASE - + NULLIF ( 2, 5 * CAST( MAX( - 64 ) * - 18 AS SIGNED ) ) WHEN 3 THEN - ( 70 ) + NULLIF ( 63, CAST( NULL AS SIGNED ) ) WHEN - 15 THEN NULL WHEN COUNT( * ) * 12 + 94 THEN + 81 / - COUNT( * ) ELSE MIN( DISTINCT 47 ) / + 53 END + MAX( 32 ) ) + - 8
----
64

skipif mysql # not compatible
query I rowsort label-5533
SELECT + NULLIF ( 72, - CASE - + NULLIF ( 2, 5 * CAST ( MAX ( - 64 ) * - 18 AS INTEGER ) ) WHEN 3 THEN - ( 70 ) + NULLIF ( 63, CAST ( NULL AS INTEGER ) ) WHEN - 15 THEN NULL WHEN COUNT ( * ) * 12 + 94 THEN + 81 / - COUNT ( * ) ELSE MIN ( DISTINCT 47 ) / + 53 END + MAX ( 32 ) ) + - 8
----
64

query I rowsort
SELECT ALL CASE - 9 WHEN + + 79 + + 8 THEN 63 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT DISTINCT - 99 * - + CAST( - 48 AS SIGNED ) * - 35
----
166320

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT - 99 * - + CAST ( - 48 AS INTEGER ) * - 35
----
166320

query I rowsort
SELECT 81 * 94 + 23 - - + 22 * 95
----
9727

query I rowsort
SELECT + ( + ( + 10 ) )
----
10

query I rowsort
SELECT + ( - NULLIF ( - 0, + - 45 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ( - ( + + ( COUNT( DISTINCT 5 ) ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5539
SELECT ( - ( + + ( COUNT ( DISTINCT 5 ) ) ) ) AS col1
----
-1

query I rowsort
SELECT ALL - - 50 * 15 AS col2
----
750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5541
SELECT + + COUNT( * ) DIV - 44 AS col1, 6 DIV + - 31 - + CAST( NULL AS SIGNED ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5541
SELECT + + COUNT ( * ) / - 44 AS col1, 6 / + - 31 - + CAST ( NULL AS INTEGER ) col1
----
0
NULL

query I rowsort
SELECT - + 9 * - 16 * + + 88 AS col0
----
12672

query I rowsort
SELECT + NULLIF ( - 39, + + 75 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL + 69 * - COALESCE ( - 37, - 68 + 36, COUNT( * ) ) + + 47 + 77
----
2677

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + 69 * - COALESCE ( - 37, - 68 + 36, COUNT ( * ) ) + + 47 + 77
----
2677

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT - + COUNT( * ) + - 36 AS col0, 50
----
-37
50

skipif mysql # not compatible
query II rowsort label-5545
SELECT - + COUNT ( * ) + - 36 AS col0, 50
----
-37
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5546
SELECT DISTINCT 96 * - - 64 + CAST( 81 AS SIGNED ) DIV 4
----
6164

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT 96 * - - 64 + CAST ( 81 AS INTEGER ) / 4
----
6164

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL + + COALESCE ( + - MAX( + 60 ), 52 - - 91, 5 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL + + COALESCE ( + - MAX ( + 60 ), 52 - - 91, 5 ) AS col2
----
-60

query I rowsort
SELECT DISTINCT + - 95 * - 26 * - + 95 + - - 32
----
-234618

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT - 63 DIV + - 69 + - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5549
SELECT - 63 / + - 69 + - 59 AS col2
----
-59

query I rowsort
SELECT - 33 + - 49 * + - 81 + + 29
----
3965

query I rowsort
SELECT ALL + - NULLIF ( - 21, + COALESCE ( - - 10, 20 ) )
----
21

query I rowsort
SELECT - - 8 + - 33
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ( + - ( + + NULLIF ( 5, COUNT( * ) / - 66 ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-5553
SELECT ( + - ( + + NULLIF ( 5, COUNT ( * ) / - 66 ) ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT + + 4 * 57 + - + SUM( DISTINCT + + 39 ) col1
----
189

skipif mysql # not compatible
query I rowsort label-5554
SELECT + + 4 * 57 + - + SUM ( DISTINCT + + 39 ) col1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL + 46 * COUNT( * ) + 91 + + 1 * 16
----
153

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL + 46 * COUNT ( * ) + 91 + + 1 * 16
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT CAST( - + 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-5556
SELECT CAST ( - + 53 AS INTEGER )
----
-53

query I rowsort
SELECT DISTINCT 52 * 93 col2
----
4836

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5558
SELECT DISTINCT - - 28 * + + NULLIF ( - - 89, - + 28 ) + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT - - 28 * + + NULLIF ( - - 89, - + 28 ) + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5559
SELECT - COALESCE ( - CASE - COUNT( + - 18 ) WHEN + + MIN( DISTINCT 19 ) + + CASE WHEN 73 NOT IN ( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE + CAST( MIN( + 93 ) AS SIGNED ) + + 66 END THEN NULL ELSE NULLIF ( MIN( ALL 5 ), ( - 30 ) * - COUNT( * ) ) + + CAST( - 96 AS SIGNED ) END, - 73 * 72 )
----
-91

skipif mysql # not compatible
query I rowsort label-5559
SELECT - COALESCE ( - CASE - COUNT ( + - 18 ) WHEN + + MIN ( DISTINCT 19 ) + + CASE WHEN 73 NOT IN ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + CAST ( MIN ( + 93 ) AS INTEGER ) + + 66 END THEN NULL ELSE NULLIF ( MIN ( ALL 5 ), ( - 30 ) * - COUNT ( * ) ) + + CAST ( - 96 AS INTEGER ) END, - 73 * 72 )
----
-91

query I rowsort
SELECT ALL - 57 * - 74 AS col0
----
4218

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT + 51 * - 45 * 56 * COUNT( * ) * - - COUNT( + 51 ) - 94 * 60
----
-134160

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT + 51 * - 45 * 56 * COUNT ( * ) * - - COUNT ( + 51 ) - 94 * 60
----
-134160

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT COUNT( DISTINCT 24 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5562
SELECT COUNT ( DISTINCT 24 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT COUNT( ALL 98 )
----
1

skipif mysql # not compatible
query I rowsort label-5563
SELECT COUNT ( ALL 98 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5564
SELECT MIN( DISTINCT CAST( - 31 AS SIGNED ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5564
SELECT MIN ( DISTINCT CAST ( - 31 AS INTEGER ) ) AS col0
----
-31

query I rowsort
SELECT - 1 * + + 64 AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT DISTINCT 13 DIV 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT 13 / 51 AS col1
----
0

query I rowsort
SELECT + 77 - + 31 AS col2
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5568
SELECT 59 AS col1, + 68 - + CAST( NULL AS DECIMAL ) + 92 col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-5568
SELECT 59 AS col1, + 68 - + CAST ( NULL AS REAL ) + 92 col1
----
59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL 65 * - + CAST( 65 AS SIGNED ) * - 19 col2
----
80275

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL 65 * - + CAST ( 65 AS INTEGER ) * - 19 col2
----
80275

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT DISTINCT 77 DIV 31 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT 77 / 31 AS col0
----
2

query I rowsort
SELECT + 47 * - 38 * - 81 AS col1
----
144666

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT + ( - 46 ) * - ( COUNT( * ) ) - + 62 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5572
SELECT + ( - 46 ) * - ( COUNT ( * ) ) - + 62 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5573
SELECT ALL 12 * - NULLIF ( + - 16, 94 * + MAX( + 93 ) * - 38 + + CAST( NULL AS SIGNED ) )
----
192

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL 12 * - NULLIF ( + - 16, 94 * + MAX ( + 93 ) * - 38 + + CAST ( NULL AS INTEGER ) )
----
192

query I rowsort
SELECT + 94 + + + 15 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT + 0 - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5575
SELECT + 0 - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL 6 * 34
----
204

query I rowsort
SELECT + 11 * + - 41
----
-451

query I rowsort
SELECT - ( 26 ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL + MAX( ALL - 55 ) + 69 + + COALESCE ( - 91, + 23 ) * COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL + MAX ( ALL - 55 ) + 69 + + COALESCE ( - 91, + 23 ) * COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT + CASE 65 WHEN + 43 THEN 35 WHEN + + 56 * 76 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 64 * 42
----
2688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT - 67 * + 24 + 83 * CASE - SUM( ALL ( 26 ) ) WHEN + 10 + + CAST( - 99 AS SIGNED ) THEN NULLIF ( + 54, + NULLIF ( COUNT( * ), + 53 * 3 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT - 67 * + 24 + 83 * CASE - SUM ( ALL ( 26 ) ) WHEN + 10 + + CAST ( - 99 AS INTEGER ) THEN NULLIF ( + 54, + NULLIF ( COUNT ( * ), + 53 * 3 ) ) END AS col1
----
NULL

query I rowsort
SELECT + 72 + 96 AS col0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT ALL CAST( COUNT( + 52 ) AS SIGNED ) + 25
----
26

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL CAST ( COUNT ( + 52 ) AS INTEGER ) + 25
----
26

query I rowsort
SELECT ALL - 9 * - 35
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL - COUNT( + - 82 ) + + MAX( DISTINCT - 39 )
----
-40

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL - COUNT ( + - 82 ) + + MAX ( DISTINCT - 39 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - COUNT( * ) * - + 2 * - - 19 * + 51 * - 34 + + 29 AS col1
----
-65863

skipif mysql # not compatible
query I rowsort label-5587
SELECT - COUNT ( * ) * - + 2 * - - 19 * + 51 * - 34 + + 29 AS col1
----
-65863

query I rowsort
SELECT - 21 * - - 25 AS col2
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL - COUNT( * ) * - 86 * + COUNT( * ) + + - 5 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL - COUNT ( * ) * - 86 * + COUNT ( * ) + + - 5 AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT + 30 DIV 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5590
SELECT + 30 / 34 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT COUNT( * ) - - 6
----
7

skipif mysql # not compatible
query I rowsort label-5591
SELECT COUNT ( * ) - - 6
----
7

query I rowsort
SELECT ALL + 87 * + 73 AS col2
----
6351

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT - + 68 - + 76 * 99 DIV - - 81 AS col1
----
-160

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT - + 68 - + 76 * 99 / - - 81 AS col1
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT CAST( NULL AS SIGNED ) + - ( - 51 ) + - - 74 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT CAST ( NULL AS INTEGER ) + - ( - 51 ) + - - 74 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL - - COUNT( - 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - - COUNT ( - 33 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT - CAST( NULL AS SIGNED ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5596
SELECT - CAST ( NULL AS INTEGER ) * 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5597
SELECT ALL + NULLIF ( + 92, + - 18 ) DIV + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL + NULLIF ( + 92, + - 18 ) / + COUNT ( * )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT + 33 - CAST( + 97 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-5598
SELECT + 33 - CAST ( + 97 AS INTEGER )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT DISTINCT + 5 DIV + 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + 5 / + 8 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT 89 * + 9 - + MIN( - COALESCE ( - + 86, 36, + 89 * 10 ) ) AS col0
----
715

skipif mysql # not compatible
query I rowsort label-5600
SELECT 89 * + 9 - + MIN ( - COALESCE ( - + 86, 36, + 89 * 10 ) ) AS col0
----
715

query I rowsort
SELECT 54 * + + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL - 25 * + 98 * + - ( COUNT( * ) )
----
2450

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL - 25 * + 98 * + - ( COUNT ( * ) )
----
2450

onlyif mysql # aggregate syntax: 
query II rowsort label-5603
SELECT ALL 48 AS col0, COUNT( * ) * + 79
----
48
79

skipif mysql # not compatible
query II rowsort label-5603
SELECT ALL 48 AS col0, COUNT ( * ) * + 79
----
48
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT COUNT( * ) * + 25 + + 37 + + 63 + 80 AS col1
----
205

skipif mysql # not compatible
query I rowsort label-5604
SELECT COUNT ( * ) * + 25 + + 37 + + 63 + 80 AS col1
----
205

onlyif mysql # aggregate syntax: 
query II rowsort label-5605
SELECT ALL 4, + COUNT( * ) * 27 + - 10 - - 93 AS col0
----
4
110

skipif mysql # not compatible
query II rowsort label-5605
SELECT ALL 4, + COUNT ( * ) * 27 + - 10 - - 93 AS col0
----
4
110

query I rowsort
SELECT ALL 24 * - - 80
----
1920

query I rowsort
SELECT 80 + - 8 + 50
----
122

query I rowsort
SELECT ALL + 26 * - ( - 10 )
----
260

query I rowsort
SELECT 86 * 19 AS col1
----
1634

query I rowsort
SELECT 89 + + 96 AS col0
----
185

query II rowsort
SELECT - 13 AS col1, + 6 * + 31 + - 17 * + 60 * - 87
----
-13
88926

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT 70 * + + CASE + + 31 WHEN + - 10 THEN COALESCE ( + + COUNT( * ), - 67 + 63 / 36 ) WHEN 48 / 60 THEN + COALESCE ( - 69, 71, + ( 26 ) ) WHEN 49 * 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT 70 * + + CASE + + 31 WHEN + - 10 THEN COALESCE ( + + COUNT ( * ), - 67 + 63 / 36 ) WHEN 48 / 60 THEN + COALESCE ( - 69, 71, + ( 26 ) ) WHEN 49 * 36 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT COUNT( * ) + - COUNT( * ) + + 54
----
54

skipif mysql # not compatible
query I rowsort label-5613
SELECT COUNT ( * ) + - COUNT ( * ) + + 54
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5614
SELECT DISTINCT - COUNT( * ) + + CASE - - CAST( NULL AS SIGNED ) WHEN - 5 + COUNT( * ) THEN + 73 - ( + 63 ) WHEN - 93 THEN NULL END + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT - COUNT ( * ) + + CASE - - CAST ( NULL AS INTEGER ) WHEN - 5 + COUNT ( * ) THEN + 73 - ( + 63 ) WHEN - 93 THEN NULL END + + 30
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5615
SELECT 36, COUNT( * ) * - + NULLIF ( + 46, - + COUNT( * ) ) - 0 + SUM( ALL - 63 + 89 ) DIV - 18 col1
----
36
-47

skipif mysql # not compatible
query II rowsort label-5615
SELECT 36, COUNT ( * ) * - + NULLIF ( + 46, - + COUNT ( * ) ) - 0 + SUM ( ALL - 63 + 89 ) / - 18 col1
----
36
-47

query II rowsort
SELECT - 25, 98 + - 69 * - - 22 * 67 AS col1
----
-25
-101608

query I rowsort
SELECT ( - 89 ) + + 8 col2
----
-81

query I rowsort
SELECT ALL CASE WHEN ( + 79 ) IS NULL THEN NULL WHEN NULL IS NOT NULL THEN - ( + 59 ) END + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT COUNT( * ) + - 84 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT COUNT ( * ) + - 84 AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT 36 DIV - - 69 * 13
----
0

skipif mysql # not compatible
query I rowsort label-5620
SELECT 36 / - - 69 * 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT SUM( DISTINCT + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5621
SELECT SUM ( DISTINCT + 3 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5622
SELECT DISTINCT - 21 + 92 + - ( + COUNT( * ) ) * ( + CAST( + 98 AS SIGNED ) ) + 38 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT - 21 + 92 + - ( + COUNT ( * ) ) * ( + CAST ( + 98 AS INTEGER ) ) + 38 AS col0
----
11

query I rowsort
SELECT + 22 - 67 * + 20
----
-1318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5624
SELECT ALL - SUM( + - 81 ) * + 73 * + 16 + - 21 - COUNT( * ) + + SUM( 97 ) DIV - 37
----
94584

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL - SUM ( + - 81 ) * + 73 * + 16 + - 21 - COUNT ( * ) + + SUM ( 97 ) / - 37
----
94584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5625
SELECT COUNT( * ) DIV 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5625
SELECT COUNT ( * ) / 31 AS col0
----
0

query II rowsort
SELECT 3 col2, + 67 AS col1
----
3
67

query I rowsort
SELECT 85 * - 47
----
-3995

query I rowsort
SELECT ALL 69 - + 36 + 11 AS col1
----
44

query II rowsort
SELECT - 35 AS col0, 27 * ( + - 74 ) * - 84 - 83 AS col1
----
-35
167749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5630
SELECT ALL - + COUNT( * ), - CAST( 73 AS SIGNED ) * - - 16 + + + CASE + 5 WHEN + 73 THEN NULL WHEN ( - 68 ) / - NULLIF ( + 99, + 17 ) THEN + 88 + 80 WHEN - 85 + + COUNT( * ) THEN - 73 * 62 + - CAST( - 20 + 52 AS SIGNED ) * + 26 ELSE + 56 * 31 + 70 END AS col1
----
-1
638

skipif mysql # not compatible
query II rowsort label-5630
SELECT ALL - + COUNT ( * ), - CAST ( 73 AS INTEGER ) * - - 16 + + + CASE + 5 WHEN + 73 THEN NULL WHEN ( - 68 ) / - NULLIF ( + 99, + 17 ) THEN + 88 + 80 WHEN - 85 + + COUNT ( * ) THEN - 73 * 62 + - CAST ( - 20 + 52 AS INTEGER ) * + 26 ELSE + 56 * 31 + 70 END AS col1
----
-1
638

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT + 82 * - - 20 * 35 + + - 1 + - 55 + - - 28 * NULLIF ( 96 + 75, - 24 + 64 / COUNT( * ) ) AS col0
----
62132

skipif mysql # not compatible
query I rowsort label-5631
SELECT + 82 * - - 20 * 35 + + - 1 + - 55 + - - 28 * NULLIF ( 96 + 75, - 24 + 64 / COUNT ( * ) ) AS col0
----
62132

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT - - MAX( ALL - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - - MAX ( ALL - 38 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL + CASE + 80 WHEN - 13 THEN COUNT( * ) END * + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + CASE + 80 WHEN - 13 THEN COUNT ( * ) END * + - 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5634
SELECT + CAST( NULL AS DECIMAL ) AS col1, - 2 * + - ( - - 6 ) - + MAX( + 2 ) + 47
----
NULL
57

skipif mysql # not compatible
query II rowsort label-5634
SELECT + CAST ( NULL AS REAL ) AS col1, - 2 * + - ( - - 6 ) - + MAX ( + 2 ) + 47
----
NULL
57

query I rowsort
SELECT - 31 + + 65 * + 52 AS col0
----
3349

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + 14 * - COUNT( * ) + - + CASE - 14 WHEN + 55 - + + MIN( DISTINCT - 66 ) - 1 * - 38 / - 32 THEN 62 * 87 ELSE - COUNT( * ) END AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5636
SELECT + 14 * - COUNT ( * ) + - + CASE - 14 WHEN + 55 - + + MIN ( DISTINCT - 66 ) - 1 * - 38 / - 32 THEN 62 * 87 ELSE - COUNT ( * ) END AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5637
SELECT DISTINCT 1 * MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) / 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT 1 * MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / 84
----
NULL

query I rowsort
SELECT 80 * 36
----
2880

query I rowsort
SELECT ALL 36 + - 26 * + 12
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL - SUM( ALL - 11 ) + - 3
----
8

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - SUM ( ALL - 11 ) + - 3
----
8

query II rowsort
SELECT 5 * + 91 AS col0, 76
----
455
76

query I rowsort
SELECT 79 * + 3
----
237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5643
SELECT - 64 - CASE WHEN NOT - 23 BETWEEN NULL AND ( + + NULLIF ( + MIN( + 6 ), CAST( ( - 78 ) AS SIGNED ) + ( - 14 ) ) + + 91 ) THEN + 82 * 83 - - 79 * CASE - 6 + 41 WHEN 78 THEN COUNT( * ) + + 40 WHEN COUNT( * ) + + 87 THEN 35 END WHEN NOT ( - 97 / + 58 + 81 ) > ( - 45 + - 6 ) THEN NULL END * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT - 64 - CASE WHEN NOT - 23 BETWEEN NULL AND ( + + NULLIF ( + MIN ( + 6 ), CAST ( ( - 78 ) AS INTEGER ) + ( - 14 ) ) + + 91 ) THEN + 82 * 83 - - 79 * CASE - 6 + 41 WHEN 78 THEN COUNT ( * ) + + 40 WHEN COUNT ( * ) + + 87 THEN 35 END WHEN NOT ( - 97 / + 58 + 81 ) > ( - 45 + - 6 ) THEN NULL END * 72
----
NULL

query I rowsort
SELECT ALL COALESCE ( - + 23, - 90, + - 96 + 25 * - 91 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT - COUNT( + 96 ) + + - 7
----
-8

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT - COUNT ( + 96 ) + + - 7
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL COALESCE ( + MAX( - 79 ), COUNT( - + 34 ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL COALESCE ( + MAX ( - 79 ), COUNT ( - + 34 ) ) AS col1
----
-79

query I rowsort
SELECT DISTINCT + ( 45 ) + 72
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5648
SELECT DISTINCT + 14 * - + CAST( NULL AS SIGNED ), MAX( ALL - + 81 ) * - 97 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5648
SELECT DISTINCT + 14 * - + CAST ( NULL AS INTEGER ), MAX ( ALL - + 81 ) * - 97 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query I rowsort
SELECT - + 92 + + 11 * - - 0 + ( + + 54 )
----
-38

query I rowsort
SELECT - + ( 3 ) * 75 AS col0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL + - COUNT( * ) * - 27
----
27

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL + - COUNT ( * ) * - 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT - - 17 + + + 97 + - COUNT( DISTINCT - - 11 ) * 50 + - 17 - - 30 * - MIN( DISTINCT 86 * + 77 )
----
-198613

skipif mysql # not compatible
query I rowsort label-5652
SELECT - - 17 + + + 97 + - COUNT ( DISTINCT - - 11 ) * 50 + - 17 - - 30 * - MIN ( DISTINCT 86 * + 77 )
----
-198613

query I rowsort
SELECT + - 12 - + 65 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT + COUNT( 3 ) + + COUNT( - NULLIF ( 22, - - 38 ) )
----
2

skipif mysql # not compatible
query I rowsort label-5654
SELECT + COUNT ( 3 ) + + COUNT ( - NULLIF ( 22, - - 38 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT DISTINCT CASE ( + 99 ) WHEN ( - MIN( + + 33 ) ) THEN + + COUNT( DISTINCT + 83 ) / 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT CASE ( + 99 ) WHEN ( - MIN ( + + 33 ) ) THEN + + COUNT ( DISTINCT + 83 ) / 75 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - 43 * + COUNT( ALL - 88 ) + + COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5656
SELECT - 43 * + COUNT ( ALL - 88 ) + + COUNT ( * ) AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5657
SELECT DISTINCT + CAST( 73 AS SIGNED ) DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + CAST ( 73 AS INTEGER ) / - 34
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT ALL + + CAST( - 61 AS SIGNED ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + + CAST ( - 61 AS INTEGER ) AS col1
----
-61

query I rowsort
SELECT + - ( - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT COUNT( ALL - + 35 ) * - 48 * 21 + COUNT( * ) + COUNT( * )
----
-1006

skipif mysql # not compatible
query I rowsort label-5660
SELECT COUNT ( ALL - + 35 ) * - 48 * 21 + COUNT ( * ) + COUNT ( * )
----
-1006

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT DISTINCT - + 22 * - - MIN( - 68 ) * - 16 + - 54 AS col2
----
-23990

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT - + 22 * - - MIN ( - 68 ) * - 16 + - 54 AS col2
----
-23990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5662
SELECT ( + + 78 ), + CAST( NULL AS SIGNED ) * + 28 * + - 23 * + + 53 * - 11 col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5662
SELECT ( + + 78 ), + CAST ( NULL AS INTEGER ) * + 28 * + - 23 * + + 53 * - 11 col1
----
78
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5663
SELECT + - 10 / + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT + - 10 / + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT - COUNT( * ) * + 33 + - - 63 / 55 * + 18 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT - COUNT ( * ) * + 33 + - - 63 / 55 * + 18 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL CASE + 60 WHEN + - 70 + - - 14 - + - 90 * - 76 THEN NULL ELSE - + COALESCE ( - 39, COUNT( * ) ) + 15 END * + COUNT( * ) + - MAX( ALL - 43 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL CASE + 60 WHEN + - 70 + - - 14 - + - 90 * - 76 THEN NULL ELSE - + COALESCE ( - 39, COUNT ( * ) ) + 15 END * + COUNT ( * ) + - MAX ( ALL - 43 ) AS col0
----
97

query II rowsort
SELECT ALL + 6 AS col1, - 71
----
6
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT CASE + 59 WHEN + - NULLIF ( + NULLIF ( - SUM( + 31 ), 90 * 95 / + 55 ), - 39 ) + 75 THEN NULL ELSE 71 END AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5667
SELECT CASE + 59 WHEN + - NULLIF ( + NULLIF ( - SUM ( + 31 ), 90 * 95 / + 55 ), - 39 ) + 75 THEN NULL ELSE 71 END AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL - 21 * - 58 + + + COUNT( * )
----
1219

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - 21 * - 58 + + + COUNT ( * )
----
1219

onlyif mysql # aggregate syntax: 
query II rowsort label-5669
SELECT DISTINCT + 21 AS col1, CASE + ( 28 ) WHEN + 89 THEN NULL WHEN COUNT( * ) * - + 53 / 78 * 16 THEN 55 + NULLIF ( 39, 22 * + 2 ) * 17 ELSE NULL END
----
21
NULL

skipif mysql # not compatible
query II rowsort label-5669
SELECT DISTINCT + 21 AS col1, CASE + ( 28 ) WHEN + 89 THEN NULL WHEN COUNT ( * ) * - + 53 / 78 * 16 THEN 55 + NULLIF ( 39, 22 * + 2 ) * 17 ELSE NULL END
----
21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT 63 * 98 * COUNT( * ) * COUNT( * ) * + COUNT( * ) * 58 + ( - 55 )
----
358037

skipif mysql # not compatible
query I rowsort label-5670
SELECT 63 * 98 * COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) * 58 + ( - 55 )
----
358037

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT + ( + CASE WHEN NOT + 79 IS NOT NULL THEN NULL WHEN NULL NOT IN ( COUNT( * ) ) THEN + 23 * + 41 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT + ( + CASE WHEN NOT + 79 IS NOT NULL THEN NULL WHEN NULL NOT IN ( COUNT ( * ) ) THEN + 23 * + 41 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ALL COUNT( * ) * 92 + 38
----
130

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL COUNT ( * ) * 92 + 38
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT - 28 * - SUM( ALL - 96 ) - + 54
----
-2742

skipif mysql # not compatible
query I rowsort label-5673
SELECT - 28 * - SUM ( ALL - 96 ) - + 54
----
-2742

query I rowsort
SELECT - 77 * - 80
----
6160

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL + COUNT( - 16 ) * 34 + + + 40 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + COUNT ( - 16 ) * 34 + + + 40 AS col1
----
74

query I rowsort
SELECT - ( 92 ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT + ( NULLIF ( + 67, 22 ) ) + + + 53 + - - ( 42 ) - + COALESCE ( 62, 82 * + 69, 99 ) DIV - 45 col2
----
163

skipif mysql # not compatible
query I rowsort label-5677
SELECT + ( NULLIF ( + 67, 22 ) ) + + + 53 + - - ( 42 ) - + COALESCE ( 62, 82 * + 69, 99 ) / - 45 col2
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL SUM( DISTINCT + + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL SUM ( DISTINCT + + 44 )
----
44

query II rowsort
SELECT 0 * - + 10 + + 78, 24 col2
----
78
24

query I rowsort
SELECT ALL 47 + + - 18 * - - 84
----
-1465

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL CASE 16 WHEN - CASE - 26 WHEN - 88 - + 21 THEN + ( - COUNT( * ) ) END THEN 46 WHEN - COALESCE ( - 30, 55 - 96 ) * 31 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL CASE 16 WHEN - CASE - 26 WHEN - 88 - + 21 THEN + ( - COUNT ( * ) ) END THEN 46 WHEN - COALESCE ( - 30, 55 - 96 ) * 31 THEN NULL END col2
----
NULL

query I rowsort
SELECT ALL CASE - - 9 WHEN - 18 * - - 46 THEN 93 WHEN + ( + 79 ) THEN 62 * + 23 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL MIN( + - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL MIN ( + - 67 ) AS col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5684
SELECT + COUNT( * ) DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT + COUNT ( * ) / 75 AS col2
----
0

query I rowsort
SELECT - 61 * 74
----
-4514

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT - MAX( - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5686
SELECT - MAX ( - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT - - MIN( - 60 ) - + - NULLIF ( + + 79, - - 39 * + COUNT( + 23 ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT - - MIN ( - 60 ) - + - NULLIF ( + + 79, - - 39 * + COUNT ( + 23 ) ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT - 88 + + - 66 + - COUNT( * ) AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-5688
SELECT - 88 + + - 66 + - COUNT ( * ) AS col0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT ALL - + COUNT( * ) - 62
----
-63

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - + COUNT ( * ) - 62
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT - + CAST( NULL AS SIGNED ) * + 42 + - 35 + + 19 + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT - + CAST ( NULL AS INTEGER ) * + 42 + - 35 + + 19 + 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL COUNT( + 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL COUNT ( + 30 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT - - MAX( 96 ) * + 9
----
864

skipif mysql # not compatible
query I rowsort label-5692
SELECT - - MAX ( 96 ) * + 9
----
864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5693
SELECT ALL - CASE - - 4 WHEN - - COUNT( * ) + + 30 + - - COUNT( * ) * - - 11 THEN NULL WHEN - 59 / + - 11 THEN NULL ELSE + 43 * - NULLIF ( 22, 59 ) + CAST( + 86 AS SIGNED ) END * - 80 AS col2
----
-68800

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL - CASE - - 4 WHEN - - COUNT ( * ) + + 30 + - - COUNT ( * ) * - - 11 THEN NULL WHEN - 59 / + - 11 THEN NULL ELSE + 43 * - NULLIF ( 22, 59 ) + CAST ( + 86 AS INTEGER ) END * - 80 AS col2
----
-68800

query I rowsort
SELECT - 50 + - + 97
----
-147

query II rowsort
SELECT DISTINCT + 50, 35 AS col1
----
50
35

query II rowsort
SELECT 76, - 79 AS col1
----
76
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-5697
SELECT + ( - 22 ) + + + 9 AS col0, ( + 51 ) + - COUNT( * )
----
-13
50

skipif mysql # not compatible
query II rowsort label-5697
SELECT + ( - 22 ) + + + 9 AS col0, ( + 51 ) + - COUNT ( * )
----
-13
50

query I rowsort
SELECT - 21 - 18
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT - 23 * 5 + MAX( ALL - CAST( + 71 AS SIGNED ) )
----
-186

skipif mysql # not compatible
query I rowsort label-5699
SELECT - 23 * 5 + MAX ( ALL - CAST ( + 71 AS INTEGER ) )
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5700
SELECT - - CAST( NULL AS SIGNED ) + - 24 / 68 + 1 + + + 23 + - - 9 / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT - - CAST ( NULL AS INTEGER ) + - 24 / 68 + 1 + + + 23 + - - 9 / 59
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5701
SELECT - + MAX( - 16 ) * + 30 DIV + ( + 5 ) col2
----
96

skipif mysql # not compatible
query I rowsort label-5701
SELECT - + MAX ( - 16 ) * + 30 / + ( + 5 ) col2
----
96

query I rowsort
SELECT - 27 * + - 0 * - 81 + + 60 + + - 61 * + - 67 + 93
----
4240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT ALL - SUM( DISTINCT + 37 ) DIV - - COUNT( ALL 89 ) + + 81 * - + ( + + 70 ) + 52
----
-5655

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL - SUM ( DISTINCT + 37 ) / - - COUNT ( ALL 89 ) + + 81 * - + ( + + 70 ) + 52
----
-5655

query I rowsort
SELECT ALL + ( + 78 ) col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT CAST( AVG ( DISTINCT - - 42 ) AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5705
SELECT CAST ( AVG ( DISTINCT - - 42 ) AS INTEGER ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT - 19 * COUNT( * ) * COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5706
SELECT - 19 * COUNT ( * ) * COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ( - MIN( - 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-5707
SELECT ( - MIN ( - 16 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - ( + MAX( + 0 ) ) * + 72
----
0

skipif mysql # not compatible
query I rowsort label-5708
SELECT - ( + MAX ( + 0 ) ) * + 72
----
0

query I rowsort
SELECT + 1 + + 54
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT - CASE - 67 WHEN + - 12 THEN + 72 + + 56 * + - 88 ELSE NULL END * - 10 * CAST( 73 AS SIGNED ) / - ( - CAST( NULL AS SIGNED ) / 59 ) + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT - CASE - 67 WHEN + - 12 THEN + 72 + + 56 * + - 88 ELSE NULL END * - 10 * CAST ( 73 AS INTEGER ) / - ( - CAST ( NULL AS INTEGER ) / 59 ) + 41 AS col2
----
NULL

query I rowsort
SELECT 86 * + - 94 AS col0
----
-8084

query I rowsort
SELECT DISTINCT + 50 + + - 16
----
34

query I rowsort
SELECT DISTINCT 94 - + - 7
----
101

query I rowsort
SELECT ALL 29 - + 66 AS col0
----
-37

query I rowsort
SELECT 20 * - 34 * - 24
----
16320

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL 93 * + CASE + COUNT( * ) WHEN - 97 * 24 / - 77 * 14 THEN - - 96 * 65 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL 93 * + CASE + COUNT ( * ) WHEN - 97 * 24 / - 77 * 14 THEN - - 96 * 65 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT + MIN( DISTINCT - 63 ) * - 96 AS col2
----
6048

skipif mysql # not compatible
query I rowsort label-5717
SELECT + MIN ( DISTINCT - 63 ) * - 96 AS col2
----
6048

query I rowsort
SELECT - - ( - NULLIF ( + 40, ( 49 ) ) ) AS col1
----
-40

query I rowsort
SELECT DISTINCT 46 * 62 col0
----
2852

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT 91 - 13 + + COALESCE ( + + COALESCE ( 72, + ( + 98 ) + + - 46 DIV + + 69, 29 ), + 79 )
----
150

skipif mysql # not compatible
query I rowsort label-5720
SELECT 91 - 13 + + COALESCE ( + + COALESCE ( 72, + ( + 98 ) + + - 46 / + + 69, 29 ), + 79 )
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5721
SELECT 37 * + CAST( + COUNT( * ) AS SIGNED ) * - 62 AS col1
----
-2294

skipif mysql # not compatible
query I rowsort label-5721
SELECT 37 * + CAST ( + COUNT ( * ) AS INTEGER ) * - 62 AS col1
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT ALL NULLIF ( + 40, - COUNT( * ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL NULLIF ( + 40, - COUNT ( * ) ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5723
SELECT 70 + 18, + COUNT( DISTINCT + + 66 ) + - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5723
SELECT 70 + 18, + COUNT ( DISTINCT + + 66 ) + - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1
----
88
NULL

query I rowsort
SELECT - + 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT COUNT( * ) + + 89
----
90

skipif mysql # not compatible
query I rowsort label-5725
SELECT COUNT ( * ) + + 89
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5726
SELECT 60 - 6 + 95 DIV - NULLIF ( - 30, + COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-5726
SELECT 60 - 6 + 95 / - NULLIF ( - 30, + COUNT ( * ) )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5727
SELECT 47 DIV + 76 - - - 34 + + COUNT( * ) + + 56 * + 71 * - 94 * + 91 + + 52
----
-34010685

skipif mysql # not compatible
query I rowsort label-5727
SELECT 47 / + 76 - - - 34 + + COUNT ( * ) + + 56 * + 71 * - 94 * + 91 + + 52
----
-34010685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT ALL - + CAST( - 51 AS SIGNED ) + + + 72 col1
----
123

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL - + CAST ( - 51 AS INTEGER ) + + + 72 col1
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5729
SELECT DISTINCT 20 + - AVG ( ALL + 17 ) + 86 * - CAST( NULL AS SIGNED ) + - 50 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT 20 + - AVG ( ALL + 17 ) + 86 * - CAST ( NULL AS INTEGER ) + - 50 + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - - ( 62 ) + 22
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5731
SELECT + COUNT( * ) * 90 * + ( + 78 ) + - 32 DIV 91 * - + 42 AS col0
----
7020

skipif mysql # not compatible
query I rowsort label-5731
SELECT + COUNT ( * ) * 90 * + ( + 78 ) + - 32 / 91 * - + 42 AS col0
----
7020

query I rowsort
SELECT DISTINCT - + 42 AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5733
SELECT ALL - CAST( - 10 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - CAST ( - 10 AS INTEGER ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT + 64 DIV - + 60 + - 7 + COUNT( * ) * - + 61
----
-69

skipif mysql # not compatible
query I rowsort label-5734
SELECT + 64 / - + 60 + - 7 + COUNT ( * ) * - + 61
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5735
SELECT + 88 AS col2, 73 - CAST( NULL AS SIGNED ) + - 15 * 48 * - 51 + - 42
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5735
SELECT + 88 AS col2, 73 - CAST ( NULL AS INTEGER ) + - 15 * 48 * - 51 + - 42
----
88
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5736
SELECT 70 + - - 43 * - COUNT( * ) * - + 13 / + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT 70 + - - 43 * - COUNT ( * ) * - + 13 / + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 5 * 88 AS col1
----
440

query I rowsort
SELECT ALL - ( + 48 ) AS col0
----
-48

query I rowsort
SELECT 86 - + + 76 * + 84 + - - 14
----
-6284

query I rowsort
SELECT ALL - CASE - 43 WHEN + + 7 THEN + 60 ELSE NULL END
----
NULL

query I rowsort
SELECT 5 + 80
----
85

query I rowsort
SELECT 30 - + - 22 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT COUNT( * ) * - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5743
SELECT COUNT ( * ) * - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5744
SELECT 10 DIV + - COUNT( * ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-5744
SELECT 10 / + - COUNT ( * ) col2
----
-10

query I rowsort
SELECT 14 + - 50
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT 49 + + + 9 * COUNT( DISTINCT + ( + + 52 ) ) * + + SUM( + 96 ) AS col2
----
913

skipif mysql # not compatible
query I rowsort label-5746
SELECT 49 + + + 9 * COUNT ( DISTINCT + ( + + 52 ) ) * + + SUM ( + 96 ) AS col2
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT 20 * - COUNT( * ) * + 4
----
-80

skipif mysql # not compatible
query I rowsort label-5747
SELECT 20 * - COUNT ( * ) * + 4
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT CAST( 24 AS SIGNED ) * 41
----
984

skipif mysql # not compatible
query I rowsort label-5748
SELECT CAST ( 24 AS INTEGER ) * 41
----
984

query I rowsort
SELECT + 32 * 51
----
1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5750
SELECT 52 + - 14 + - 41, + 2 DIV - COALESCE ( CAST( + - 76 AS SIGNED ), - + NULLIF ( + 4, COUNT( * ) ), - ( - COUNT( ALL 55 ) ) ) * 65 col1
----
-3
0

skipif mysql # not compatible
query II rowsort label-5750
SELECT 52 + - 14 + - 41, + 2 / - COALESCE ( CAST ( + - 76 AS INTEGER ), - + NULLIF ( + 4, COUNT ( * ) ), - ( - COUNT ( ALL 55 ) ) ) * 65 col1
----
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL CAST( NULL AS SIGNED ) + + 42 * + 86 * + 7 * - CASE - 46 WHEN 98 THEN NULL WHEN + - 63 THEN NULL WHEN + - 9 THEN NULL ELSE - 72 + AVG ( DISTINCT 68 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL CAST ( NULL AS INTEGER ) + + 42 * + 86 * + 7 * - CASE - 46 WHEN 98 THEN NULL WHEN + - 63 THEN NULL WHEN + - 9 THEN NULL ELSE - 72 + AVG ( DISTINCT 68 ) END AS col2
----
NULL

query I rowsort
SELECT - + ( + 28 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT + 72 + 91 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT + 72 + 91 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - - 41 )
----
-41

query I rowsort
SELECT ALL 64 + - - 25 AS col1
----
89

query I rowsort
SELECT + 48 + + 42 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5757
SELECT 54 * + 24 * 83 - - 25 + CAST( NULL AS SIGNED ) * - SUM( - 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT 54 * + 24 * 83 - - 25 + CAST ( NULL AS INTEGER ) * - SUM ( - 86 ) AS col2
----
NULL

query II rowsort
SELECT - 16, ( 46 ) AS col0
----
-16
46

query I rowsort
SELECT + 14 + 15 * 63 col2
----
959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5760
SELECT CASE - 28 WHEN + CASE 98 WHEN + 4 * + COUNT( * ) + - CAST( ( + + 93 ) AS SIGNED ) THEN + AVG ( + - 2 ) * - COUNT( * ) + 71 END * 11 THEN CAST( NULL AS SIGNED ) * - 16 WHEN COALESCE ( MIN( DISTINCT - 70 ), 51, 79 ) THEN NULL WHEN 57 * - 81 + 98 * + 15 THEN - 56 + - 41 WHEN + 3 THEN - ( + 79 ) ELSE NULL END - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT CASE - 28 WHEN + CASE 98 WHEN + 4 * + COUNT ( * ) + - CAST ( ( + + 93 ) AS INTEGER ) THEN + AVG ( + - 2 ) * - COUNT ( * ) + 71 END * 11 THEN CAST ( NULL AS INTEGER ) * - 16 WHEN COALESCE ( MIN ( DISTINCT - 70 ), 51, 79 ) THEN NULL WHEN 57 * - 81 + 98 * + 15 THEN - 56 + - 41 WHEN + 3 THEN - ( + 79 ) ELSE NULL END - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT + SUM( ALL + - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-5761
SELECT + SUM ( ALL + - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5762
SELECT ALL + 44 col0, SUM( - 92 ) * - 50
----
44
4600

skipif mysql # not compatible
query II rowsort label-5762
SELECT ALL + 44 col0, SUM ( - 92 ) * - 50
----
44
4600

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT CASE 73 WHEN + 9 THEN 85 WHEN - CASE CASE + - 77 WHEN COALESCE ( - - 12, - 30 + - + 90 * + NULLIF ( - 87, 16 ), + 96 * + 87, + 92 + - 22 ) THEN NULL WHEN ( 79 ) + - 40 / 7 THEN 20 END WHEN - COUNT( * ) THEN 19 END * - 17 THEN - 33 * + 90 + - 86 * ( + 23 ) ELSE + 45 END col1
----
45

skipif mysql # not compatible
query I rowsort label-5763
SELECT CASE 73 WHEN + 9 THEN 85 WHEN - CASE CASE + - 77 WHEN COALESCE ( - - 12, - 30 + - + 90 * + NULLIF ( - 87, 16 ), + 96 * + 87, + 92 + - 22 ) THEN NULL WHEN ( 79 ) + - 40 / 7 THEN 20 END WHEN - COUNT ( * ) THEN 19 END * - 17 THEN - 33 * + 90 + - 86 * ( + 23 ) ELSE + 45 END col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT 4 * - 8 + + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5764
SELECT 4 * - 8 + + COUNT ( * ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5765
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL + COUNT( * ) * + 69 * + - 95
----
-6555

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL + COUNT ( * ) * + 69 * + - 95
----
-6555

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT + COUNT( * ) * + + 3 * 84
----
252

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT + COUNT ( * ) * + + 3 * 84
----
252

query II rowsort
SELECT ALL + 79, + ( + + 46 ) AS col1
----
79
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT + CASE - COUNT( * ) WHEN - 85 THEN + 65 ELSE NULL END * - CASE + 98 WHEN CAST( + 39 AS SIGNED ) THEN 58 + + 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT + CASE - COUNT ( * ) WHEN - 85 THEN + 65 ELSE NULL END * - CASE + 98 WHEN CAST ( + 39 AS INTEGER ) THEN 58 + + 11 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( + 53, + 61 * 52 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT SUM( ALL - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5771
SELECT SUM ( ALL - 93 ) AS col0
----
-93

query I rowsort
SELECT - 12 + 0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT + NULLIF ( - + MIN( ALL - 67 ), + 60 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5773
SELECT + NULLIF ( - + MIN ( ALL - 67 ), + 60 ) AS col2
----
67

query I rowsort
SELECT - 88 + - ( - - 72 )
----
-160

query I rowsort
SELECT ALL + CASE 40 WHEN - 0 + + 90 THEN 41 END
----
NULL

query II rowsort
SELECT - 58 * - 30 * + COALESCE ( + + 34, + + 23, + - 17 ), + 37 * + 92 AS col1
----
59160
3404

query I rowsort
SELECT DISTINCT + ( - 12 )
----
-12

query II rowsort
SELECT ALL + 41 AS col2, 1 col1
----
41
1

query I rowsort
SELECT - - 93 * 78 AS col2
----
7254

onlyif mysql # aggregate syntax: 
query II rowsort label-5780
SELECT ALL + - COUNT( * ) * + - 49 AS col0, + 30
----
49
30

skipif mysql # not compatible
query II rowsort label-5780
SELECT ALL + - COUNT ( * ) * + - 49 AS col0, + 30
----
49
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL - - 25 + - + COUNT( * ) - - 1 * + + 76 * CASE + 0 WHEN 68 - + 21 / - 22 + + 33 THEN + SUM( 15 ) * 0 + - 90 WHEN COUNT( * ) THEN - 65 * 74 END + 21 / 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - - 25 + - + COUNT ( * ) - - 1 * + + 76 * CASE + 0 WHEN 68 - + 21 / - 22 + + 33 THEN + SUM ( 15 ) * 0 + - 90 WHEN COUNT ( * ) THEN - 65 * 74 END + 21 / 77 AS col2
----
NULL

query I rowsort
SELECT - ( + - 13 ) AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT - - 43 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-5783
SELECT - - 43 / 43
----
1

query I rowsort
SELECT - + 32 - + + 64 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT + 65 AS col0, ( + 24 ) + ( - 71 ) - + - MAX( + + 91 )
----
65
44

skipif mysql # not compatible
query II rowsort label-5785
SELECT + 65 AS col0, ( + 24 ) + ( - 71 ) - + - MAX ( + + 91 )
----
65
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT - AVG ( ( + 43 ) ) / CASE + - COUNT( * ) WHEN - - ( - - NULLIF ( - - ( - + 41 ), + + 30 ) ) - - 39 THEN + SUM( + 79 ) * 9 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT - AVG ( ( + 43 ) ) / CASE + - COUNT ( * ) WHEN - - ( - - NULLIF ( - - ( - + 41 ), + + 30 ) ) - - 39 THEN + SUM ( + 79 ) * 9 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT - - CASE + + 15 WHEN 80 + + AVG ( ALL 18 ) + - 18 + - 49 THEN - ( - 23 ) * + ( + COUNT( * ) ) WHEN CASE 9 WHEN 75 THEN MIN( DISTINCT - 90 ) + + COUNT( * ) END THEN 53 + + ( + MIN( DISTINCT ( 58 ) ) ) ELSE NULL END + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT - - CASE + + 15 WHEN 80 + + AVG ( ALL 18 ) + - 18 + - 49 THEN - ( - 23 ) * + ( + COUNT ( * ) ) WHEN CASE 9 WHEN 75 THEN MIN ( DISTINCT - 90 ) + + COUNT ( * ) END THEN 53 + + ( + MIN ( DISTINCT ( 58 ) ) ) ELSE NULL END + + 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5788
SELECT + 15 AS col1, COUNT( * ) + - 16 - + ( + 48 ) AS col1
----
15
-63

skipif mysql # not compatible
query II rowsort label-5788
SELECT + 15 AS col1, COUNT ( * ) + - 16 - + ( + 48 ) AS col1
----
15
-63

query II rowsort
SELECT - + 84 AS col1, - 35 AS col0
----
-84
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT DISTINCT + + 0 + COALESCE ( + 40, - 45 + + - ( + 21 ) ) + 32 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT + + 0 + COALESCE ( + 40, - 45 + + - ( + 21 ) ) + 32 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5791
SELECT ALL - + COALESCE ( + 93, - - ( - CAST( NULL AS SIGNED ) ), + 29 * + 18 ) * ( + - COUNT( * ) ) * - + ( - 85 ) - + 86 * + 42 AS col1
----
4293

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL - + COALESCE ( + 93, - - ( - CAST ( NULL AS INTEGER ) ), + 29 * + 18 ) * ( + - COUNT ( * ) ) * - + ( - 85 ) - + 86 * + 42 AS col1
----
4293

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT - COUNT( * ) - + 49 * - 39 + - + 45 + + 55 col0
----
1920

skipif mysql # not compatible
query I rowsort label-5792
SELECT - COUNT ( * ) - + 49 * - 39 + - + 45 + + 55 col0
----
1920

query I rowsort
SELECT - + 16 - + 27 + 19
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT + - COUNT( * ) * - + 60 * - - COUNT( * ) * - 54 + - 8 + - 23 * 19
----
-3685

skipif mysql # not compatible
query I rowsort label-5794
SELECT + - COUNT ( * ) * - + 60 * - - COUNT ( * ) * - 54 + - 8 + - 23 * 19
----
-3685

query I rowsort
SELECT ALL + - 58 + - 73 * + - 57 * - 42
----
-174820

query I rowsort
SELECT - - 56 + + 85
----
141

query I rowsort
SELECT + CASE 92 WHEN + + 65 * - - 87 + + - 62 THEN - - 53 END + + 32 AS col1
----
NULL

query I rowsort
SELECT + 61 - + 70 + + 0 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT - SUM( ALL 3 ) AS col1, 50 AS col1
----
-3
50

skipif mysql # not compatible
query II rowsort label-5799
SELECT - SUM ( ALL 3 ) AS col1, 50 AS col1
----
-3
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL CASE + 47 WHEN - - COALESCE ( + 75, COUNT( * ) ) * 47 - - 25 THEN - - 61 - - - 59 WHEN 91 / 48 THEN + COUNT( * ) * 24 + + 3 WHEN 78 THEN NULL END * + CASE + 34 * + 85 WHEN ( CASE 21 WHEN - 76 + - 61 * - COUNT( * ) THEN - 32 WHEN 83 THEN NULL END ) + 9 * 88 THEN - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL CASE + 47 WHEN - - COALESCE ( + 75, COUNT ( * ) ) * 47 - - 25 THEN - - 61 - - - 59 WHEN 91 / 48 THEN + COUNT ( * ) * 24 + + 3 WHEN 78 THEN NULL END * + CASE + 34 * + 85 WHEN ( CASE 21 WHEN - 76 + - 61 * - COUNT ( * ) THEN - 32 WHEN 83 THEN NULL END ) + 9 * 88 THEN - 10 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT ALL ( + CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL ( + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
-1

query I rowsort
SELECT ALL 83 * + 9
----
747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5803
SELECT + 95 * COUNT( * ) / 16 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT + 95 * COUNT ( * ) / 16 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5804
SELECT CAST( + CASE - 99 WHEN 68 THEN NULL WHEN 58 - + + 51 THEN + - 69 + + ( - - 4 ) + + - 94 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT CAST ( + CASE - 99 WHEN 68 THEN NULL WHEN 58 - + + 51 THEN + - 69 + + ( - - 4 ) + + - 94 END AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT CAST( - - ( + 3 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-5805
SELECT CAST ( - - ( + 3 ) AS INTEGER )
----
3

query I rowsort
SELECT + 82 + COALESCE ( - - 37, 72 ) col2
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5807
SELECT + CAST( - + ( 60 ) AS SIGNED ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-5807
SELECT + CAST ( - + ( 60 ) AS INTEGER ) col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT ( - CASE - 27 WHEN + - COUNT( ALL 41 ) THEN + COUNT( * ) WHEN + + 86 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT ( - CASE - 27 WHEN + - COUNT ( ALL 41 ) THEN + COUNT ( * ) WHEN + + 86 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT + 59 * ( 7 ) * + 74 * 19
----
580678

query I rowsort
SELECT - 64 * + 54 AS col0
----
-3456

query I rowsort
SELECT 37 * + - 73 * + 72 - - NULLIF ( - + 28, + 24 )
----
-194500

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT + 35 * - + ( + SUM( 32 ) ) AS col1
----
-1120

skipif mysql # not compatible
query I rowsort label-5812
SELECT + 35 * - + ( + SUM ( 32 ) ) AS col1
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT - MAX( DISTINCT - 58 ) * + 88 - + COUNT( * ) + - 0
----
5103

skipif mysql # not compatible
query I rowsort label-5813
SELECT - MAX ( DISTINCT - 58 ) * + 88 - + COUNT ( * ) + - 0
----
5103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT ALL + AVG ( DISTINCT - 61 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL + AVG ( DISTINCT - 61 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 47 + + 76 AS col0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5816
SELECT + + CAST( - ( + + 49 ) AS SIGNED ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-5816
SELECT + + CAST ( - ( + + 49 ) AS INTEGER ) col2
----
-49

query I rowsort
SELECT 56 * - + 39 - - 51 * + 84 * - + 67 + - - 11 AS col2
----
-289201

query I rowsort
SELECT + 71 + - ( 45 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT COUNT( DISTINCT - + 20 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5819
SELECT COUNT ( DISTINCT - + 20 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5820
SELECT ALL - 55 * + 23 + + - 50 * CASE - 20 WHEN + 5 * - 79 + + CASE - 7 WHEN + CAST( + 19 AS SIGNED ) / 41 THEN 17 + MIN( - 62 ) ELSE NULL END + + 37 * 88 THEN NULL WHEN + 86 * - 32 - 83 THEN NULL ELSE - 89 END
----
3185

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL - 55 * + 23 + + - 50 * CASE - 20 WHEN + 5 * - 79 + + CASE - 7 WHEN + CAST ( + 19 AS INTEGER ) / 41 THEN 17 + MIN ( - 62 ) ELSE NULL END + + 37 * 88 THEN NULL WHEN + 86 * - 32 - 83 THEN NULL ELSE - 89 END
----
3185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT + COALESCE ( 80, CAST( + 18 AS SIGNED ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-5821
SELECT + COALESCE ( 80, CAST ( + 18 AS INTEGER ) ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL - COALESCE ( + COUNT( * ), 88 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - COALESCE ( + COUNT ( * ), 88 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL MAX( + - 76 ) * - + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL MAX ( + - 76 ) * - + COUNT ( * )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT DISTINCT CAST( 83 AS SIGNED ) * COUNT( * ) * - - 18 + 59 * + 94 * - 44 AS col1
----
-242530

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT CAST ( 83 AS INTEGER ) * COUNT ( * ) * - - 18 + 59 * + 94 * - 44 AS col1
----
-242530

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT DISTINCT - + NULLIF ( 1, - 48 ) * - 88 + NULLIF ( - 29, NULLIF ( - + 88, - - 31 ) ) + - - MAX( + + 24 ) * ( 64 ) AS col1
----
1595

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT - + NULLIF ( 1, - 48 ) * - 88 + NULLIF ( - 29, NULLIF ( - + 88, - - 31 ) ) + - - MAX ( + + 24 ) * ( 64 ) AS col1
----
1595

query II rowsort
SELECT - + 71 + + + 50, 66 AS col1
----
-21
66

query I rowsort
SELECT ALL - 19 * - - 58 - - 7
----
-1095

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + 74 * - - COUNT( * ) + + - 32 + 66 col1
----
108

skipif mysql # not compatible
query I rowsort label-5828
SELECT + 74 * - - COUNT ( * ) + + - 32 + 66 col1
----
108

query I rowsort
SELECT - 43 * - 32 col2
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT 1 + COALESCE ( COALESCE ( - + COUNT( * ), + 9 ), + + 68 * COUNT( * ), + 93 ) * - 28
----
29

skipif mysql # not compatible
query I rowsort label-5830
SELECT 1 + COALESCE ( COALESCE ( - + COUNT ( * ), + 9 ), + + 68 * COUNT ( * ), + 93 ) * - 28
----
29

query I rowsort
SELECT + 10 * - 34 AS col1
----
-340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5832
SELECT DISTINCT - - SUM( - 61 ) * + + ( + 58 ) * + 20 - + - 73 + 22 + 63 - + CAST( NULL AS SIGNED ) + COUNT( * ) + + MIN( DISTINCT + - 0 ) * 46 + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT - - SUM ( - 61 ) * + + ( + 58 ) * + 20 - + - 73 + 22 + 63 - + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + MIN ( DISTINCT + - 0 ) * 46 + 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5833
SELECT ALL + 49 - 12 * - - 75 * + + COALESCE ( ( - + COUNT( * ) ), + + 63, + + 31 ) * + 32 + + ( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL + 49 - 12 * - - 75 * + + COALESCE ( ( - + COUNT ( * ) ), + + 63, + + 31 ) * + 32 + + ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query II rowsort
SELECT ALL 82, + 61 + + - 82 + - 34 col1
----
82
-55

query I rowsort
SELECT DISTINCT - 22 * + 27 * 38 AS col2
----
-22572

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT 98 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-5836
SELECT 98 / 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT + MIN( DISTINCT + + 20 ) * - - 97 - - - 5 AS col2
----
1935

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT + MIN ( DISTINCT + + 20 ) * - - 97 - - - 5 AS col2
----
1935

onlyif mysql # aggregate syntax: 
query II rowsort label-5838
SELECT ALL + 50 * - - COUNT( DISTINCT + 35 ) col1, 71 * + 25 * - 37 - + - 31 + - 30 + + - 73 * - COUNT( * ) AS col0
----
50
-65601

skipif mysql # not compatible
query II rowsort label-5838
SELECT ALL + 50 * - - COUNT ( DISTINCT + 35 ) col1, 71 * + 25 * - 37 - + - 31 + - 30 + + - 73 * - COUNT ( * ) AS col0
----
50
-65601

onlyif mysql # aggregate syntax: 
query II rowsort label-5839
SELECT NULLIF ( - - 7, - 28 + + SUM( - 70 ) ) + - + 16 col0, 71 col1
----
-9
71

skipif mysql # not compatible
query II rowsort label-5839
SELECT NULLIF ( - - 7, - 28 + + SUM ( - 70 ) ) + - + 16 col0, 71 col1
----
-9
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT 33 * + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-5840
SELECT 33 * + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5841
SELECT COUNT( * ) * + + 84 + + - 44, 54 / CASE - 13 WHEN 81 + + 52 * - ( + 2 ) * + 12 / - + 6 THEN 51 * ( - ( - 51 ) ) - - 68 WHEN + 60 * + 24 THEN 17 * - ( - 7 ) END * - 94 + 63 AS col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-5841
SELECT COUNT ( * ) * + + 84 + + - 44, 54 / CASE - 13 WHEN 81 + + 52 * - ( + 2 ) * + 12 / - + 6 THEN 51 * ( - ( - 51 ) ) - - 68 WHEN + 60 * + 24 THEN 17 * - ( - 7 ) END * - 94 + 63 AS col1
----
40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5842
SELECT - CASE 77 WHEN - - 48 THEN NULL WHEN 43 THEN - 71 * - COUNT( * ) END / + - CASE + 52 WHEN 59 + + 43 THEN 10 WHEN 5 THEN NULL WHEN + CASE CASE 71 WHEN + 3 * 44 THEN CAST( NULL AS SIGNED ) END WHEN - COUNT( * ) / + 5 THEN ( + 97 ) * + 85 WHEN 61 * 16 THEN NULL ELSE + 42 / - 57 + + 85 END THEN NULL ELSE NULL END * - 67 + - 68 / - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5842
SELECT - CASE 77 WHEN - - 48 THEN NULL WHEN 43 THEN - 71 * - COUNT ( * ) END / + - CASE + 52 WHEN 59 + + 43 THEN 10 WHEN 5 THEN NULL WHEN + CASE CASE 71 WHEN + 3 * 44 THEN CAST ( NULL AS INTEGER ) END WHEN - COUNT ( * ) / + 5 THEN ( + 97 ) * + 85 WHEN 61 * 16 THEN NULL ELSE + 42 / - 57 + + 85 END THEN NULL ELSE NULL END * - 67 + - 68 / - 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT DISTINCT - CASE WHEN NOT ( NULL ) IN ( - - 89 ) THEN COUNT( * ) * 43 * - + 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT - CASE WHEN NOT ( NULL ) IN ( - - 89 ) THEN COUNT ( * ) * 43 * - + 10 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 64 * - 6 AS col1
----
-384

query I rowsort
SELECT ALL 23 + 52
----
75

query I rowsort
SELECT ALL + 42 + - 45 AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5847
SELECT 49 DIV + SUM( DISTINCT 85 )
----
0

skipif mysql # not compatible
query I rowsort label-5847
SELECT 49 / + SUM ( DISTINCT 85 )
----
0

query I rowsort
SELECT 20 * 38
----
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5849
SELECT CAST( NULL AS SIGNED ), MAX( - 43 ) AS col0
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-5849
SELECT CAST ( NULL AS INTEGER ), MAX ( - 43 ) AS col0
----
NULL
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-5850
SELECT 91 DIV - - 24 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5850
SELECT 91 / - - 24 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT + 25 + - COUNT( - 0 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5851
SELECT + 25 + - COUNT ( - 0 ) AS col2
----
24

query II rowsort
SELECT COALESCE ( - 8, + 5 - - + 22 ) * + + 77 + 83 AS col1, ( - 17 ) AS col1
----
-533
-17

query I rowsort
SELECT + - 58 * - 88 * - 28 + 25
----
-142887

query I rowsort
SELECT ALL + 30 + - 57
----
-27

query I rowsort
SELECT + - 68 AS col1
----
-68

query I rowsort
SELECT DISTINCT 57 + 42 + 9 + - 57
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL 31 * - CASE COUNT( * ) WHEN MIN( - 42 ) + ( 94 ) THEN NULL ELSE + 24 + 81 + - - NULLIF ( - - 87, - 73 * - + 28 * + 78 + 24 ) END * - ( - 66 * COUNT( * ) )
----
-392832

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL 31 * - CASE COUNT ( * ) WHEN MIN ( - 42 ) + ( 94 ) THEN NULL ELSE + 24 + 81 + - - NULLIF ( - - 87, - 73 * - + 28 * + 78 + 24 ) END * - ( - 66 * COUNT ( * ) )
----
-392832

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL - - COUNT( 71 ) * - + 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL - - COUNT ( 71 ) * - + 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT 60 * - 83 + + 59 - - MAX( + COALESCE ( + 12, + 58 ) )
----
-4909

skipif mysql # not compatible
query I rowsort label-5859
SELECT 60 * - 83 + + 59 - - MAX ( + COALESCE ( + 12, + 58 ) )
----
-4909

query II rowsort
SELECT - 34 AS col1, - 75
----
-34
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT DISTINCT - + 33 * 12 + SUM( DISTINCT - - CAST( + - 35 AS SIGNED ) ) AS col1
----
-431

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT - + 33 * 12 + SUM ( DISTINCT - - CAST ( + - 35 AS INTEGER ) ) AS col1
----
-431

query I rowsort
SELECT - ( + 92 ) - 84 - - 94 + + 80 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-5863
SELECT ALL 95 col1, - 9 DIV 51 AS col0
----
95
0

skipif mysql # not compatible
query II rowsort label-5863
SELECT ALL 95 col1, - 9 / 51 AS col0
----
95
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5864
SELECT 39 - - 54 - + 90 AS col1, CAST( - 72 AS SIGNED )
----
3
-72

skipif mysql # not compatible
query II rowsort label-5864
SELECT 39 - - 54 - + 90 AS col1, CAST ( - 72 AS INTEGER )
----
3
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT - ( + + SUM( ALL + - 35 ) ) + - 9 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5865
SELECT - ( + + SUM ( ALL + - 35 ) ) + - 9 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT - - 16 AS col0, - 16 * - - CASE + 29 WHEN ( + 33 ) + - + 19 THEN 14 * + COUNT( 46 ) * + 79 + - 36 + - 44 + - 77 * + 14 WHEN 97 THEN NULL END
----
16
NULL

skipif mysql # not compatible
query II rowsort label-5866
SELECT - - 16 AS col0, - 16 * - - CASE + 29 WHEN ( + 33 ) + - + 19 THEN 14 * + COUNT ( 46 ) * + 79 + - 36 + - 44 + - 77 * + 14 WHEN 97 THEN NULL END
----
16
NULL

query I rowsort
SELECT DISTINCT ( - ( 81 ) ) AS col1
----
-81

query I rowsort
SELECT 98 - - ( ( + + 16 ) )
----
114

query I rowsort
SELECT 14 * + 14
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL COUNT( - - 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL COUNT ( - - 50 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5871
SELECT ALL + 83 * 15, ( - - MIN( DISTINCT - 89 ) ) AS col2
----
1245
-89

skipif mysql # not compatible
query II rowsort label-5871
SELECT ALL + 83 * 15, ( - - MIN ( DISTINCT - 89 ) ) AS col2
----
1245
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5872
SELECT ALL 21 * + + 86 + - CAST( NULL AS SIGNED ) * + 13 AS col2, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5872
SELECT ALL 21 * + + 86 + - CAST ( NULL AS INTEGER ) * + 13 AS col2, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5873
SELECT ALL - 10 * - 89 * + CAST( NULL AS SIGNED ) * - AVG ( DISTINCT 74 ) + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL - 10 * - 89 * + CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT 74 ) + + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT 29 + + 18 * + COUNT( - 82 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5874
SELECT 29 + + 18 * + COUNT ( - 82 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT SUM( DISTINCT - ( - + 74 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5875
SELECT SUM ( DISTINCT - ( - + 74 ) ) AS col0
----
74

query I rowsort
SELECT + NULLIF ( 68, - + 49 ) + - + 74 * - 86 col1
----
6432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT ALL 6 * - + 85 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL 6 * - + 85 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT - COUNT( * ) * - + 49 - - 1 + - 90
----
-40

skipif mysql # not compatible
query I rowsort label-5878
SELECT - COUNT ( * ) * - + 49 - - 1 + - 90
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT + CASE - + 67 WHEN - + 36 THEN 3 WHEN + CAST( + 25 AS SIGNED ) + - - COUNT( DISTINCT + ( - + 43 ) ) + - CAST( + 26 AS SIGNED ) + + 87 + - + 80 / 69 * 80 THEN 49 * + 79 - 75 * + 19 ELSE - 34 END AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5879
SELECT + CASE - + 67 WHEN - + 36 THEN 3 WHEN + CAST ( + 25 AS INTEGER ) + - - COUNT ( DISTINCT + ( - + 43 ) ) + - CAST ( + 26 AS INTEGER ) + + 87 + - + 80 / 69 * 80 THEN 49 * + 79 - 75 * + 19 ELSE - 34 END AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL COUNT( * ) * 66
----
66

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL COUNT ( * ) * 66
----
66

query I rowsort
SELECT - 89 + - + 61
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL - + ( + 74 ) - + - COUNT( * ) + + + NULLIF ( - + COUNT( * ), - COUNT( * ) - + 50 + - 17 ) * + 67 + + 12 - 56 AS col0
----
-184

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL - + ( + 74 ) - + - COUNT ( * ) + + + NULLIF ( - + COUNT ( * ), - COUNT ( * ) - + 50 + - 17 ) * + 67 + + 12 - 56 AS col0
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5883
SELECT DISTINCT + 82 * - CASE - 54 WHEN - + COALESCE ( COUNT( + 71 ), ( + AVG ( ALL + 14 ) ) ) THEN - 5 + - 39 / CAST( - - 71 AS SIGNED ) * - COUNT( * ) + 48 * + 57 ELSE NULL END + - ( 45 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + 82 * - CASE - 54 WHEN - + COALESCE ( COUNT ( + 71 ), ( + AVG ( ALL + 14 ) ) ) THEN - 5 + - 39 / CAST ( - - 71 AS INTEGER ) * - COUNT ( * ) + 48 * + 57 ELSE NULL END + - ( 45 ) col2
----
NULL

query I rowsort
SELECT + 16 * + - 36 col1
----
-576

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5885
SELECT - + 43 + - 46 + COUNT( * ) + + 73 + - + NULLIF ( - 23, 31 ) AS col2, CAST( NULL AS DECIMAL ) * 77 * + + 60 * + COUNT( * ) col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5885
SELECT - + 43 + - 46 + COUNT ( * ) + + 73 + - + NULLIF ( - 23, 31 ) AS col2, CAST ( NULL AS REAL ) * 77 * + + 60 * + COUNT ( * ) col2
----
8
NULL

query I rowsort
SELECT + - 89 * + 45 - - 1 - 5
----
-4009

query I rowsort
SELECT - 65 * - 0 * - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT MIN( ALL - + 41 ) * - 79 * - 14 + - 55 + + COUNT( DISTINCT 42 ) - MAX( + 44 ) AS col2
----
-45444

skipif mysql # not compatible
query I rowsort label-5888
SELECT MIN ( ALL - + 41 ) * - 79 * - 14 + - 55 + + COUNT ( DISTINCT 42 ) - MAX ( + 44 ) AS col2
----
-45444

query I rowsort
SELECT + + 94 * - 55
----
-5170

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT + 92 DIV - + 72 + - - 0
----
-1

skipif mysql # not compatible
query I rowsort label-5890
SELECT + 92 / - + 72 + - - 0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5891
SELECT + 55 * + 48 + - ( + 96 ) + + - 57 DIV + 32
----
2543

skipif mysql # not compatible
query I rowsort label-5891
SELECT + 55 * + 48 + - ( + 96 ) + + - 57 / + 32
----
2543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5892
SELECT + 19 + 85 + 61 * + CAST( + 74 AS SIGNED ) + 8 AS col1
----
4626

skipif mysql # not compatible
query I rowsort label-5892
SELECT + 19 + 85 + 61 * + CAST ( + 74 AS INTEGER ) + 8 AS col1
----
4626

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5893
SELECT + 19 DIV SUM( DISTINCT - - 39 ) AS col0, 25 AS col0
----
0
25

skipif mysql # not compatible
query II rowsort label-5893
SELECT + 19 / SUM ( DISTINCT - - 39 ) AS col0, 25 AS col0
----
0
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5894
SELECT ALL 81 AS col2, CAST( 14 AS SIGNED )
----
81
14

skipif mysql # not compatible
query II rowsort label-5894
SELECT ALL 81 AS col2, CAST ( 14 AS INTEGER )
----
81
14

query I rowsort
SELECT ALL 1 * 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT + COUNT( * ) + 30 - + 15 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5896
SELECT + COUNT ( * ) + 30 - + 15 AS col1
----
16

query I rowsort
SELECT + 83 + - 13 + + 74 - - 77 AS col2
----
221

query I rowsort
SELECT DISTINCT ( + 62 ) + + + NULLIF ( + - 58, + - 83 )
----
4

query I rowsort
SELECT - 65 * + 90
----
-5850

query I rowsort
SELECT ALL COALESCE ( - 12, + 49 ) + 40 col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT - NULLIF ( CAST( + ( + COUNT( * ) ) AS SIGNED ), - ( + 52 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5901
SELECT - NULLIF ( CAST ( + ( + COUNT ( * ) ) AS INTEGER ), - ( + 52 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT + 53 + - 57 + + MAX( ( - 92 ) ) * 4 AS col1
----
-372

skipif mysql # not compatible
query I rowsort label-5902
SELECT + 53 + - 57 + + MAX ( ( - 92 ) ) * 4 AS col1
----
-372

query I rowsort
SELECT - 29 + - 48
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5904
SELECT DISTINCT + 42 + - 38 DIV + + SUM( + + 61 ) - + 96 AS col1, - 73 + - - CASE SUM( - + 93 ) WHEN 27 THEN NULL WHEN - MAX( - 98 ) + + - 81 * - 92 DIV + 42 THEN NULL ELSE 74 END + - 32 AS col2
----
-54
-31

skipif mysql # not compatible
query II rowsort label-5904
SELECT DISTINCT + 42 + - 38 / + + SUM ( + + 61 ) - + 96 AS col1, - 73 + - - CASE SUM ( - + 93 ) WHEN 27 THEN NULL WHEN - MAX ( - 98 ) + + - 81 * - 92 / + 42 THEN NULL ELSE 74 END + - 32 AS col2
----
-54
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5905
SELECT DISTINCT 62 AS col0, + MIN( ALL 18 ) AS col1
----
62
18

skipif mysql # not compatible
query II rowsort label-5905
SELECT DISTINCT 62 AS col0, + MIN ( ALL 18 ) AS col1
----
62
18

query I rowsort
SELECT ALL 11 + + 1
----
12

query I rowsort
SELECT + 76 * + 72
----
5472

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT + 93 DIV 87 col2
----
1

skipif mysql # not compatible
query I rowsort label-5908
SELECT + 93 / 87 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - CASE + - SUM( - + 71 ) WHEN - - 94 + 51 - - 50 THEN - 9 / 36 WHEN + AVG ( 18 ) + COUNT( * ) THEN NULL END + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT - CASE + - SUM ( - + 71 ) WHEN - - 94 + 51 - - 50 THEN - 9 / 36 WHEN + AVG ( 18 ) + COUNT ( * ) THEN NULL END + 33
----
NULL

query I rowsort
SELECT + ( ( 42 ) )
----
42

query I rowsort
SELECT ALL + 25 * + - 59 AS col2
----
-1475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5912
SELECT ( - CAST( - 20 AS SIGNED ) ), ( - 68 ) DIV COUNT( * ) * + 23 + COUNT( * ) AS col2
----
20
-1563

skipif mysql # not compatible
query II rowsort label-5912
SELECT ( - CAST ( - 20 AS INTEGER ) ), ( - 68 ) / COUNT ( * ) * + 23 + COUNT ( * ) AS col2
----
20
-1563

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT ALL 7 DIV + 51 * - 64 + - + 53 * + 24 AS col1
----
-1272

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL 7 / + 51 * - 64 + - + 53 * + 24 AS col1
----
-1272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT ALL - 7 * 58 * + + 0 - CAST( NULL AS SIGNED ) + - - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - 7 * 58 * + + 0 - CAST ( NULL AS INTEGER ) + - - 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5915
SELECT + + COUNT( * ) AS col0, 35
----
1
35

skipif mysql # not compatible
query II rowsort label-5915
SELECT + + COUNT ( * ) AS col0, 35
----
1
35

query I rowsort
SELECT ALL + + ( - - 27 )
----
27

query I rowsort
SELECT ALL + + 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT + + MIN( ALL 85 )
----
85

skipif mysql # not compatible
query I rowsort label-5918
SELECT + + MIN ( ALL 85 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT - 62 * + COALESCE ( + COALESCE ( - 23, + - 99 ), + - CAST( NULL AS SIGNED ) ) AS col2
----
1426

skipif mysql # not compatible
query I rowsort label-5919
SELECT - 62 * + COALESCE ( + COALESCE ( - 23, + - 99 ), + - CAST ( NULL AS INTEGER ) ) AS col2
----
1426

query I rowsort
SELECT DISTINCT + ( + ( - 48 ) )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5921
SELECT ALL + NULLIF ( - 61, + COUNT( * ) ) DIV + - 27 + - 69 col1, COUNT( * ) AS col0
----
-67
1

skipif mysql # not compatible
query II rowsort label-5921
SELECT ALL + NULLIF ( - 61, + COUNT ( * ) ) / + - 27 + - 69 col1, COUNT ( * ) AS col0
----
-67
1

query I rowsort
SELECT DISTINCT + - 64 AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL + CAST( - - 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + CAST ( - - 96 AS INTEGER )
----
96

query I rowsort
SELECT ALL + + 1 * - 0 + 50
----
50

query I rowsort
SELECT - - 71 - + - 8 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL + 82 * 89 + + + COUNT( * )
----
7299

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL + 82 * 89 + + + COUNT ( * )
----
7299

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT - COUNT( DISTINCT + - 95 ) + + 47 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5927
SELECT - COUNT ( DISTINCT + - 95 ) + + 47 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT MAX( - COALESCE ( + - 65, - 66 * - - 59 / 40 + - + ( 86 ) ) )
----
65

skipif mysql # not compatible
query I rowsort label-5928
SELECT MAX ( - COALESCE ( + - 65, - 66 * - - 59 / 40 + - + ( 86 ) ) )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5929
SELECT + COUNT( * ) * - CAST( - 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5929
SELECT + COUNT ( * ) * - CAST ( - 1 AS INTEGER )
----
1

query I rowsort
SELECT ALL - 28 + + 96
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5931
SELECT ALL 46 AS col2, COUNT( * )
----
46
1

skipif mysql # not compatible
query II rowsort label-5931
SELECT ALL 46 AS col2, COUNT ( * )
----
46
1

query I rowsort
SELECT + 88 + + 2 AS col0
----
90

query I rowsort
SELECT ALL 0 * + 3 * + - ( - + CASE + 57 WHEN + 88 THEN - 1 END ) AS col0
----
NULL

query II rowsort
SELECT ALL 57 AS col0, - 33
----
57
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL 70 + + + COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL 70 + + + COUNT ( * ) AS col1
----
71

query I rowsort
SELECT + 52 + + NULLIF ( + - 55, + - 46 )
----
-3

query II rowsort
SELECT 64 AS col0, + 53
----
64
53

query II rowsort
SELECT 99 col2, ( 60 ) + - 18 AS col2
----
99
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT - 35 - ( MIN( DISTINCT + - 18 ) ) + 91 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5939
SELECT - 35 - ( MIN ( DISTINCT + - 18 ) ) + 91 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5940
SELECT - ( - COUNT( CAST( NULL AS SIGNED ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5940
SELECT - ( - COUNT ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
0

query II rowsort
SELECT ALL 22 AS col1, 3 * + 2 + + - 87 AS col1
----
22
-81

query I rowsort
SELECT ALL - 31 - - - ( + - 7 )
----
-24

query I rowsort
SELECT ALL ( - + 16 ) AS col0
----
-16

query II rowsort
SELECT - 68 AS col1, + 7
----
-68
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5945
SELECT ALL + 53 DIV - - CAST( COUNT( * ) AS SIGNED ) + + 95 - + 12
----
136

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL + 53 / - - CAST ( COUNT ( * ) AS INTEGER ) + + 95 - + 12
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-5946
SELECT ALL + 93 * - COUNT( * ) AS col2, 72 + - + ( - COALESCE ( + 97, ( - + MIN( DISTINCT - 39 ) ), - COUNT( DISTINCT 5 ) * - - MAX( DISTINCT 92 ) ) )
----
-93
169

skipif mysql # not compatible
query II rowsort label-5946
SELECT ALL + 93 * - COUNT ( * ) AS col2, 72 + - + ( - COALESCE ( + 97, ( - + MIN ( DISTINCT - 39 ) ), - COUNT ( DISTINCT 5 ) * - - MAX ( DISTINCT 92 ) ) )
----
-93
169

onlyif mysql # aggregate syntax: 
query II rowsort label-5947
SELECT ALL - 55, - SUM( ALL 88 ) AS col2
----
-55
-88

skipif mysql # not compatible
query II rowsort label-5947
SELECT ALL - 55, - SUM ( ALL 88 ) AS col2
----
-55
-88

query I rowsort
SELECT + + ( + - 42 )
----
-42

query I rowsort
SELECT 45 + - + 16 AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5950
SELECT + + 89 col2, - ( COUNT( * ) ) + - - CASE + 44 WHEN MAX( ALL - + 45 ) * + 6 THEN - 9 END AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-5950
SELECT + + 89 col2, - ( COUNT ( * ) ) + - - CASE + 44 WHEN MAX ( ALL - + 45 ) * + 6 THEN - 9 END AS col1
----
89
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5951
SELECT 4 / - + ( + 9 ) + 26 + + CASE + ( + 72 ) WHEN + 48 * + CAST( NULL AS SIGNED ) THEN - + 3 END - ( + 27 ) / COUNT( * ) * 89 / + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5951
SELECT 4 / - + ( + 9 ) + 26 + + CASE + ( + 72 ) WHEN + 48 * + CAST ( NULL AS INTEGER ) THEN - + 3 END - ( + 27 ) / COUNT ( * ) * 89 / + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5952
SELECT + - 31 * - CASE 25 WHEN - - 47 THEN 43 + - - 66 + - COUNT( * ) + - COUNT( + 57 ) DIV 74 ELSE + ( 96 ) END + 80 AS col2
----
3056

skipif mysql # not compatible
query I rowsort label-5952
SELECT + - 31 * - CASE 25 WHEN - - 47 THEN 43 + - - 66 + - COUNT ( * ) + - COUNT ( + 57 ) / 74 ELSE + ( 96 ) END + 80 AS col2
----
3056

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5953
SELECT 43 AS col0, CAST( NULL AS SIGNED )
----
43
NULL

skipif mysql # not compatible
query II rowsort label-5953
SELECT 43 AS col0, CAST ( NULL AS INTEGER )
----
43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5954
SELECT + MAX( 70 ) AS col1, - 42
----
70
-42

skipif mysql # not compatible
query II rowsort label-5954
SELECT + MAX ( 70 ) AS col1, - 42
----
70
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5955
SELECT + 88 * CAST( NULL AS DECIMAL ) + - + 34 + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT + 88 * CAST ( NULL AS REAL ) + - + 34 + 92 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5956
SELECT DISTINCT 25 DIV - 93 * - + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT 25 / - 93 * - + 47 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5957
SELECT 84 DIV + 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5957
SELECT 84 / + 54 AS col2
----
1

query I rowsort
SELECT ALL + 55 * + + 4
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT ALL - AVG ( DISTINCT - NULLIF ( 21, + + NULLIF ( - + ( + + 25 ), + - 29 + - + 82 + + + 19 + + 76 ) ) ) * CASE 42 WHEN - - ( - 35 ) THEN + CAST( - ( COUNT( - COALESCE ( + 58, 63 ) ) ) AS SIGNED ) END * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL - AVG ( DISTINCT - NULLIF ( 21, + + NULLIF ( - + ( + + 25 ), + - 29 + - + 82 + + + 19 + + 76 ) ) ) * CASE 42 WHEN - - ( - 35 ) THEN + CAST ( - ( COUNT ( - COALESCE ( + 58, 63 ) ) ) AS INTEGER ) END * 93
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + 3, - 59 ) + + - 42
----
-45

query I rowsort
SELECT ALL - + 92 + - 3 + 66
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT + 83 * + 54 + - - COUNT( * ) - 78 * + COALESCE ( - SUM( + 63 ), + 21 - - ( + - 97 ) ) AS col1
----
9397

skipif mysql # not compatible
query I rowsort label-5962
SELECT + 83 * + 54 + - - COUNT ( * ) - 78 * + COALESCE ( - SUM ( + 63 ), + 21 - - ( + - 97 ) ) AS col1
----
9397

query I rowsort
SELECT 53 * NULLIF ( - + 28, 47 + - - 30 * + 21 )
----
-1484

query I rowsort
SELECT - 54 + 5
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5965
SELECT DISTINCT - CAST( COALESCE ( + + 56, COUNT( * ) / - COUNT( * ), - CASE - 33 WHEN 68 / NULLIF ( + 84, + 39 ) THEN NULL WHEN + + 50 THEN + 18 + + + COALESCE ( - 25, + COUNT( * ) * - - 41, CAST( NULL AS SIGNED ) * COUNT( * ) ) + + CASE MIN( DISTINCT 79 ) WHEN 13 THEN + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN 91 THEN - 26 ELSE NULL END ELSE 47 END * 84 ) AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT - CAST ( COALESCE ( + + 56, COUNT ( * ) / - COUNT ( * ), - CASE - 33 WHEN 68 / NULLIF ( + 84, + 39 ) THEN NULL WHEN + + 50 THEN + 18 + + + COALESCE ( - 25, + COUNT ( * ) * - - 41, CAST ( NULL AS INTEGER ) * COUNT ( * ) ) + + CASE MIN ( DISTINCT 79 ) WHEN 13 THEN + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN 91 THEN - 26 ELSE NULL END ELSE 47 END * 84 ) AS INTEGER )
----
-56

query I rowsort
SELECT DISTINCT - ( 38 ) + - 26 + + 20 AS col0
----
-44

query I rowsort
SELECT ALL - 96 + - 95 AS col1
----
-191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5968
SELECT 60 * - CAST( SUM( - 69 ) AS SIGNED ) + - 94 - + 56 AS col1
----
3990

skipif mysql # not compatible
query I rowsort label-5968
SELECT 60 * - CAST ( SUM ( - 69 ) AS INTEGER ) + - 94 - + 56 AS col1
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT DISTINCT + CASE SUM( ALL + 67 ) WHEN - 4 * - + AVG ( DISTINCT 19 ) + 39 THEN NULL WHEN + 94 THEN - AVG ( DISTINCT + 38 ) * AVG ( DISTINCT + 78 ) + 81 WHEN - 76 THEN - COUNT( * ) ELSE NULL END * + 47 / + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT + CASE SUM ( ALL + 67 ) WHEN - 4 * - + AVG ( DISTINCT 19 ) + 39 THEN NULL WHEN + 94 THEN - AVG ( DISTINCT + 38 ) * AVG ( DISTINCT + 78 ) + 81 WHEN - 76 THEN - COUNT ( * ) ELSE NULL END * + 47 / + + 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT DISTINCT - 42 * + - 39 * 9 * + + SUM( + 99 ), + 15 * - 93 * - 3 * - 99 AS col1
----
1459458
-414315

skipif mysql # not compatible
query II rowsort label-5970
SELECT DISTINCT - 42 * + - 39 * 9 * + + SUM ( + 99 ), + 15 * - 93 * - 3 * - 99 AS col1
----
1459458
-414315

query I rowsort
SELECT 29 + 60 * - 10 AS col0
----
-571

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT 32 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-5972
SELECT 32 / + 66
----
0

query I rowsort
SELECT 68 + + 62 * - 83 * - - ( - 36 ) AS col2
----
185324

query I rowsort
SELECT DISTINCT + ( + 3 ) - 67
----
-64

query I rowsort
SELECT 64 + 19 + + + 12
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-5976
SELECT DISTINCT - 7 DIV - + 21 AS col2, - ( 9 ) AS col1
----
0
-9

skipif mysql # not compatible
query II rowsort label-5976
SELECT DISTINCT - 7 / - + 21 AS col2, - ( 9 ) AS col1
----
0
-9

query I rowsort
SELECT ALL 86 * - 14
----
-1204

onlyif mysql # aggregate syntax: 
query II rowsort label-5978
SELECT 80 * - - 32, + CASE - + 63 WHEN 47 THEN NULL WHEN ( + COUNT( * ) ) THEN NULL WHEN - NULLIF ( + 65, + 74 ) THEN - 30 END AS col2
----
2560
NULL

skipif mysql # not compatible
query II rowsort label-5978
SELECT 80 * - - 32, + CASE - + 63 WHEN 47 THEN NULL WHEN ( + COUNT ( * ) ) THEN NULL WHEN - NULLIF ( + 65, + 74 ) THEN - 30 END AS col2
----
2560
NULL

query I rowsort
SELECT DISTINCT - 94 * + 45
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT + 19 * 1 * 5 + + - 51 + - - 72 * + COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT + 19 * 1 * 5 + + - 51 + - - 72 * + COUNT ( * )
----
116

query I rowsort
SELECT 50 * 52 + + - 70 AS col2
----
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL + ( + - CASE + MAX( DISTINCT - - 21 ) WHEN 49 * - + 31 + - - 78 + - ( COUNT( * ) ) THEN + COUNT( * ) + - + 33 WHEN - + 31 THEN NULL WHEN - 6 THEN - COUNT( * ) - AVG ( + 63 ) * + ( COUNT( * ) ) / 91 END ) + 28 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + ( + - CASE + MAX ( DISTINCT - - 21 ) WHEN 49 * - + 31 + - - 78 + - ( COUNT ( * ) ) THEN + COUNT ( * ) + - + 33 WHEN - + 31 THEN NULL WHEN - 6 THEN - COUNT ( * ) - AVG ( + 63 ) * + ( COUNT ( * ) ) / 91 END ) + 28 * 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5983
SELECT DISTINCT CAST( NULL AS SIGNED ) * - MAX( ALL + + 68 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - MAX ( ALL + + 68 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL + 26 * + - NULLIF ( + 2, - 61 ) + 50 * - - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL + 26 * + - NULLIF ( + 2, - 61 ) + 50 * - - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT DISTINCT + 68 + - 9
----
59

query I rowsort
SELECT ALL ( + 66 ) + - 99 - - 55 AS col0
----
22

query I rowsort
SELECT NULLIF ( - 94, + 13 + - - 4 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT DISTINCT 59 + + - 20 + - + CASE + 25 WHEN + - COUNT( * ) THEN NULL WHEN - + 61 THEN + - 48 END / + NULLIF ( + - 86, + 93 * + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT 59 + + - 20 + - + CASE + 25 WHEN + - COUNT ( * ) THEN NULL WHEN - + 61 THEN + - 48 END / + NULLIF ( + - 86, + 93 * + - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5989
SELECT DISTINCT - COALESCE ( - - 26, - 30 - + 6 * - + 17 - + CAST( NULL AS SIGNED ) + - 41, - + NULLIF ( + 57, - + 89 * - 26 ) + - + 43 + + 90, 78 DIV 92 * + - 94 DIV - COUNT( * ) * 55 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT - COALESCE ( - - 26, - 30 - + 6 * - + 17 - + CAST ( NULL AS INTEGER ) + - 41, - + NULLIF ( + 57, - + 89 * - 26 ) + - + 43 + + 90, 78 / 92 * + - 94 / - COUNT ( * ) * 55 ) AS col0
----
-26

query II rowsort
SELECT 8 * + 13, 13 + + + 90 AS col0
----
104
103

query I rowsort
SELECT ALL - 11 col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5992
SELECT + + CAST( + - COALESCE ( + SUM( - + ( + - 79 ) ), - MIN( DISTINCT + 61 ) ) AS SIGNED ) AS col2, - COUNT( * )
----
-79
-1

skipif mysql # not compatible
query II rowsort label-5992
SELECT + + CAST ( + - COALESCE ( + SUM ( - + ( + - 79 ) ), - MIN ( DISTINCT + 61 ) ) AS INTEGER ) AS col2, - COUNT ( * )
----
-79
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT ALL - 28 + - ( 19 ) + + 63 * + - CAST( NULL AS SIGNED ) * 14 * 98 + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - 28 + - ( 19 ) + + 63 * + - CAST ( NULL AS INTEGER ) * 14 * 98 + - 2
----
NULL

query I rowsort
SELECT ALL 42 * - - 6 * 50 * + 22
----
277200

query I rowsort
SELECT ALL - ( - 42 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT DISTINCT ( + + COUNT( * ) ) * 63 AS col1, + 68
----
63
68

skipif mysql # not compatible
query II rowsort label-5996
SELECT DISTINCT ( + + COUNT ( * ) ) * 63 AS col1, + 68
----
63
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL MAX( + - 68 ) - - 42 - 57 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL MAX ( + - 68 ) - - 42 - 57 AS col0
----
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-5998
SELECT 32 AS col0, 78 DIV - - 91 + 90 AS col1
----
32
90

skipif mysql # not compatible
query II rowsort label-5998
SELECT 32 AS col0, 78 / - - 91 + 90 AS col1
----
32
90

query I rowsort
SELECT 48 * - 35 * - 53 AS col2
----
89040

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL MAX( - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL MAX ( - 25 )
----
-25

query II rowsort
SELECT 19 AS col0, 97 AS col0
----
19
97

query I rowsort
SELECT 67 - - 71 * - 21
----
-1424

query I rowsort
SELECT ALL - 93 * - 65 col1
----
6045

query I rowsort
SELECT 74 * 59
----
4366

query I rowsort
SELECT ALL - 21 * + 25 AS col2
----
-525

onlyif mysql # aggregate syntax: 
query II rowsort label-6006
SELECT - SUM( + 23 ) + + + 31, + 68 col0
----
8
68

skipif mysql # not compatible
query II rowsort label-6006
SELECT - SUM ( + 23 ) + + + 31, + 68 col0
----
8
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL - - 92 * - 3 * - + CASE - + COUNT( * ) WHEN + - 74 * 96 + + 90 * - - COUNT( * ) * - 70 THEN NULL ELSE - - COUNT( * ) * 32 + - 24 END AS col0
----
2208

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL - - 92 * - 3 * - + CASE - + COUNT ( * ) WHEN + - 74 * 96 + + 90 * - - COUNT ( * ) * - 70 THEN NULL ELSE - - COUNT ( * ) * 32 + - 24 END AS col0
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6008
SELECT - - CAST( - 42 AS SIGNED ) * + NULLIF ( - - SUM( - 20 ), + 0 + 41 - 9 ) * - 51 * + - COUNT( * ) - MAX( ALL - - CASE - 81 WHEN 81 * 79 + + 9 THEN NULL ELSE + ( - 63 ) END ) AS col1
----
42903

skipif mysql # not compatible
query I rowsort label-6008
SELECT - - CAST ( - 42 AS INTEGER ) * + NULLIF ( - - SUM ( - 20 ), + 0 + 41 - 9 ) * - 51 * + - COUNT ( * ) - MAX ( ALL - - CASE - 81 WHEN 81 * 79 + + 9 THEN NULL ELSE + ( - 63 ) END ) AS col1
----
42903

query II rowsort
SELECT - - 26 AS col2, + 55 AS col1
----
26
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6010
SELECT MAX( CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT MAX ( CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT SUM( DISTINCT + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-6011
SELECT SUM ( DISTINCT + 46 )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6012
SELECT - - 10 DIV 51 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-6012
SELECT - - 10 / 51 / + 65
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT ALL 59 + 1 + COUNT( * ) DIV + MAX( - 68 ) - - 49 * - + COUNT( * ) DIV 86
----
60

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL 59 + 1 + COUNT ( * ) / + MAX ( - 68 ) - - 49 * - + COUNT ( * ) / 86
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6014
SELECT - 29 - + 93 + - ( + + 51 ) * + - 25 DIV + + COUNT( * ) + - 13 AS col0
----
1140

skipif mysql # not compatible
query I rowsort label-6014
SELECT - 29 - + 93 + - ( + + 51 ) * + - 25 / + + COUNT ( * ) + - 13 AS col0
----
1140

query III rowsort
SELECT ALL 65 AS col0, ( + + 37 ) * - 92, - 68 + - + ( - 46 ) AS col2
----
65
-3404
-22

query I rowsort
SELECT DISTINCT - + 50 + - 43 AS col1
----
-93

query I rowsort
SELECT DISTINCT NULLIF ( 30, + + 89 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6018
SELECT + MIN( 6 ) DIV 58 + + + 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6018
SELECT + MIN ( 6 ) / 58 + + + 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT + - COUNT( * ) AS col0, + 25 + + 94 + + 51
----
-1
170

skipif mysql # not compatible
query II rowsort label-6019
SELECT + - COUNT ( * ) AS col0, + 25 + + 94 + + 51
----
-1
170

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT 58 DIV 86 + 21 + - 13
----
8

skipif mysql # not compatible
query I rowsort label-6020
SELECT 58 / 86 + 21 + - 13
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6021
SELECT ( 95 ) * - AVG ( DISTINCT + - 44 ) - + AVG ( + 14 ) + + 6 - - CASE - + 59 WHEN + 82 THEN + CAST( + 12 AS SIGNED ) ELSE NULL END + + - 25 * - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT ( 95 ) * - AVG ( DISTINCT + - 44 ) - + AVG ( + 14 ) + + 6 - - CASE - + 59 WHEN + 82 THEN + CAST ( + 12 AS INTEGER ) ELSE NULL END + + - 25 * - - 7
----
NULL

query II rowsort
SELECT DISTINCT + + 48, ( + 44 ) AS col2
----
48
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT - + 83 + - COUNT( * ) - - CAST( NULL AS SIGNED ) + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6023
SELECT - + 83 + - COUNT ( * ) - - CAST ( NULL AS INTEGER ) + - 60
----
NULL

query I rowsort
SELECT + + ( + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT + - 3 * - SUM( 1 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6025
SELECT + - 3 * - SUM ( 1 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL + + 38 * - + 88 + - AVG ( + 71 ) / - - 38 * + - 41 + - 3 * CASE + 29 WHEN + - COUNT( * ) THEN - 7 * + + 74 + 73 * - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL + + 38 * - + 88 + - AVG ( + 71 ) / - - 38 * + - 41 + - 3 * CASE + 29 WHEN + - COUNT ( * ) THEN - 7 * + + 74 + 73 * - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL - - 40 * - MIN( DISTINCT - + 58 ) + - - COUNT( * ) AS col2
----
2321

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL - - 40 * - MIN ( DISTINCT - + 58 ) + - - COUNT ( * ) AS col2
----
2321

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6028
SELECT - 16 * NULLIF ( + 73, - CAST( + 18 AS SIGNED ) ) + + + 80 * - 46 + 32 DIV + NULLIF ( - - 57, + - 93 DIV - - ( - 94 ) + 25 ) AS col1
----
-4848

skipif mysql # not compatible
query I rowsort label-6028
SELECT - 16 * NULLIF ( + 73, - CAST ( + 18 AS INTEGER ) ) + + + 80 * - 46 + 32 / + NULLIF ( - - 57, + - 93 / - - ( - 94 ) + 25 ) AS col1
----
-4848

query I rowsort
SELECT ALL 1 * - 9 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6030
SELECT 96 DIV 44 + - + 67
----
-65

skipif mysql # not compatible
query I rowsort label-6030
SELECT 96 / 44 + - + 67
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT ALL + NULLIF ( - 55, + 80 ) * - - CAST( - 56 AS SIGNED ) - - 25
----
3105

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL + NULLIF ( - 55, + 80 ) * - - CAST ( - 56 AS INTEGER ) - - 25
----
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT MIN( 75 ) * - 82 + + + COALESCE ( + - 66, COUNT( * ), 51 * + + 18 )
----
-6216

skipif mysql # not compatible
query I rowsort label-6032
SELECT MIN ( 75 ) * - 82 + + + COALESCE ( + - 66, COUNT ( * ), 51 * + + 18 )
----
-6216

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT + 77 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6033
SELECT + 77 / + 86 AS col2
----
0

query II rowsort
SELECT + 83 * + 54 AS col0, 49
----
4482
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT COUNT( - - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-6035
SELECT COUNT ( - - 54 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6036
SELECT + ( ( + 78 ) ) * - CAST( NULL AS DECIMAL ) + + 69 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT + ( ( + 78 ) ) * - CAST ( NULL AS REAL ) + + 69 + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT COUNT( + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-6037
SELECT COUNT ( + 26 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT MIN( - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-6038
SELECT MIN ( - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT - COUNT( * ) + + SUM( 12 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6039
SELECT - COUNT ( * ) + + SUM ( 12 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL COUNT( * ) * - - ( - + 88 ) - - MAX( NULLIF ( + - 75, - + 0 * + NULLIF ( + 3, 70 + 62 ) ) ) + 96 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL COUNT ( * ) * - - ( - + 88 ) - - MAX ( NULLIF ( + - 75, - + 0 * + NULLIF ( + 3, 70 + 62 ) ) ) + 96 AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT + 47 * - CAST( + 94 AS SIGNED ) AS col0
----
-4418

skipif mysql # not compatible
query I rowsort label-6041
SELECT + 47 * - CAST ( + 94 AS INTEGER ) AS col0
----
-4418

query I rowsort
SELECT DISTINCT ( + 57 ) * 58 + - - NULLIF ( + 45, - ( - 75 ) * + 74 ) AS col1
----
3351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) * + 48 + - 69 + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 48 + - 69 + ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - NULLIF ( - 31, + 37 ) * - 28 + 81 AS col1
----
-787

query I rowsort
SELECT ALL 81 * + 75
----
6075

query I rowsort
SELECT - NULLIF ( + 14, 24 - NULLIF ( 49, - 68 ) ) AS col0
----
-14

query II rowsort
SELECT - 93 * + COALESCE ( - - 59, - 54 ) AS col0, 52 * + - 91
----
-5487
-4732

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL MAX( DISTINCT - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL MAX ( DISTINCT - 21 )
----
-21

query I rowsort
SELECT - + 25 + - 6 * + 52 AS col0
----
-337

onlyif mysql # aggregate syntax: 
query II rowsort label-6050
SELECT + 91 * - COUNT( * ) + + MIN( 98 ) col2, 34 col1
----
7
34

skipif mysql # not compatible
query II rowsort label-6050
SELECT + 91 * - COUNT ( * ) + + MIN ( 98 ) col2, 34 col1
----
7
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT DISTINCT - SUM( ALL + 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT - SUM ( ALL + 74 ) AS col1
----
-74

query I rowsort
SELECT ALL ( - 20 ) + - - 32
----
12

query I rowsort
SELECT - + 73 + - NULLIF ( + + ( - - 66 ), + 48 ) - - 15 * 65 + - + 89
----
747

query I rowsort
SELECT - + 87 * + ( 25 ) * 11 AS col0
----
-23925

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT - COUNT( DISTINCT - + 54 ) + - 58 + ( + 25 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-6055
SELECT - COUNT ( DISTINCT - + 54 ) + - 58 + ( + 25 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT + + 48 * - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT + + 48 * - COUNT ( * ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT + 60 + - MIN( ALL + - 22 )
----
82

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT + 60 + - MIN ( ALL + - 22 )
----
82

query I rowsort
SELECT + - 49 * + 1 col1
----
-49

query I rowsort
SELECT DISTINCT + CASE + 92 WHEN + + 50 - 58 + 51 THEN NULL ELSE - 21 END AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT ALL + - 61 DIV 3 + 99 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + - 61 / 3 + 99 AS col0
----
79

query I rowsort
SELECT - 29 * + 80 + - 14 AS col1
----
-2334

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT DISTINCT + ( + - 36 ) * COUNT( 25 ) * - + 24 AS col2
----
864

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT + ( + - 36 ) * COUNT ( 25 ) * - + 24 AS col2
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6063
SELECT DISTINCT + + 96 DIV - - 67 - + 89 DIV - - ( - COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT + + 96 / - - 67 - + 89 / - - ( - COUNT ( * ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT ALL - CASE COUNT( * ) WHEN - + 35 + + MAX( COALESCE ( 63, - + 46 ) ) + + 3 THEN - 89 ELSE NULL END / - + 35 + + COUNT( * ) - - 48 * - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - CASE COUNT ( * ) WHEN - + 35 + + MAX ( COALESCE ( 63, - + 46 ) ) + + 3 THEN - 89 ELSE NULL END / - + 35 + + COUNT ( * ) - - 48 * - + 90
----
NULL

query I rowsort
SELECT - 1 - - NULLIF ( + - 97, 78 )
----
-98

query I rowsort
SELECT + NULLIF ( + 15, 54 + - 26 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6067
SELECT + CASE - - COUNT( 93 ) WHEN - ( 40 ) THEN - COUNT( * ) + 49 + COUNT( CAST( NULL AS SIGNED ) ) * 40 WHEN - + 80 THEN NULL ELSE 11 + - - 97 END DIV - + 17 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6067
SELECT + CASE - - COUNT ( 93 ) WHEN - ( 40 ) THEN - COUNT ( * ) + 49 + COUNT ( CAST ( NULL AS INTEGER ) ) * 40 WHEN - + 80 THEN NULL ELSE 11 + - - 97 END / - + 17 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6068
SELECT ALL + CAST( - MIN( + 32 ) AS SIGNED ) * + 30 * - 4, - 79 col0
----
3840
-79

skipif mysql # not compatible
query II rowsort label-6068
SELECT ALL + CAST ( - MIN ( + 32 ) AS INTEGER ) * + 30 * - 4, - 79 col0
----
3840
-79

query I rowsort
SELECT DISTINCT 7 * + - 23 * + 56
----
-9016

query I rowsort
SELECT - 71 * - - 30
----
-2130

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT DISTINCT + COUNT( - 10 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT + COUNT ( - 10 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6072
SELECT DISTINCT 0 * - 24 DIV - 77 AS col0, ( + - 39 ) * - COUNT( * ) * + 65 col1
----
0
2535

skipif mysql # not compatible
query II rowsort label-6072
SELECT DISTINCT 0 * - 24 / - 77 AS col0, ( + - 39 ) * - COUNT ( * ) * + 65 col1
----
0
2535

query I rowsort
SELECT + 6 * - 24 * 44 AS col0
----
-6336

query I rowsort
SELECT ALL - 38 * 43
----
-1634

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT + COUNT( * ) - + 3 * CASE - + COUNT( * ) WHEN + + COUNT( + - CASE - COALESCE ( + 76, 37 + 66 * - 29 + + ( - 5 ) + + 73 ) WHEN - 96 - - + NULLIF ( - + 71, + - 33 + 84 ) + 59 * 51 THEN - 66 * + 3 END ) THEN 10 ELSE NULL END + - 92 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT + COUNT ( * ) - + 3 * CASE - + COUNT ( * ) WHEN + + COUNT ( + - CASE - COALESCE ( + 76, 37 + 66 * - 29 + + ( - 5 ) + + 73 ) WHEN - 96 - - + NULLIF ( - + 71, + - 33 + 84 ) + 59 * 51 THEN - 66 * + 3 END ) THEN 10 ELSE NULL END + - 92 / - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 29, - 46 AS col1
----
29
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT + 20 * - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + 20 * - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT ALL - 13 AS col0, COUNT( * ) + 44 AS col2
----
-13
45

skipif mysql # not compatible
query II rowsort label-6078
SELECT ALL - 13 AS col0, COUNT ( * ) + 44 AS col2
----
-13
45

query I rowsort
SELECT 58 + + 70 + - 14
----
114

query I rowsort
SELECT 9 + 40 * + - 48 col2
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL 19 + + ( ( - CASE COUNT( * ) WHEN 88 THEN - + 34 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL 19 + + ( ( - CASE COUNT ( * ) WHEN 88 THEN - + 34 END ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6082
SELECT - COUNT( * ), 7 DIV + 74 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-6082
SELECT - COUNT ( * ), 7 / + 74 AS col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL + - COUNT( * ) * - 41 * 68
----
2788

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + - COUNT ( * ) * - 41 * 68
----
2788

query I rowsort
SELECT DISTINCT 81 + - + COALESCE ( 5, + 14 ) col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6085
SELECT CAST( NULL AS SIGNED ) * + - 15 * - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT CAST ( NULL AS INTEGER ) * + - 15 * - - COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT - 77 DIV + 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6086
SELECT - 77 / + 47 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT COUNT( DISTINCT 77 ) + + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-6087
SELECT COUNT ( DISTINCT 77 ) + + - 72
----
-71

query I rowsort
SELECT ALL - 56 - - 38
----
-18

query I rowsort
SELECT DISTINCT - ( + + 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL MIN( DISTINCT 23 )
----
23

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL MIN ( DISTINCT 23 )
----
23

query II rowsort
SELECT + 27 - - 26 - 37, 20 col0
----
16
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT MAX( ALL 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6092
SELECT MAX ( ALL 88 ) AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT ALL NULLIF ( ( - CAST( - + 83 AS SIGNED ) ), 83 + - COUNT( * ) / - ( + COUNT( * ) ) ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL NULLIF ( ( - CAST ( - + 83 AS INTEGER ) ), 83 + - COUNT ( * ) / - ( + COUNT ( * ) ) ) AS col1
----
83

query I rowsort
SELECT ALL - ( + - 83 ) AS col0
----
83

query I rowsort
SELECT - 45 * + 33 + 68 AS col0
----
-1417

query I rowsort
SELECT DISTINCT + - 28 * - + 42
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT 62 * + ( + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-6097
SELECT 62 * + ( + COUNT ( * ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL + 97 * + MAX( ALL + 31 )
----
3007

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL + 97 * + MAX ( ALL + 31 )
----
3007

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT 6 * + COUNT( * ) + + 52 - - 57 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-6099
SELECT 6 * + COUNT ( * ) + + 52 - - 57 AS col2
----
115

query I rowsort
SELECT 52 * 47 AS col0
----
2444

query I rowsort
SELECT ALL + 6 * - - 28 AS col2
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6102
SELECT + 81 * - - NULLIF ( COALESCE ( - ( + - CASE - COUNT( * ) WHEN 22 * - - 61 * 95 DIV - 68 + 41 THEN NULL WHEN - 57 THEN + COUNT( * ) ELSE - - 55 - - ( - 55 ) END ), + COALESCE ( - - ( 55 ), + ( + 5 ) * - 97 ) + + ( COUNT( * ) + 47 ) ), 17 ) * + COUNT( * ) + 55 * COALESCE ( - 86, + COALESCE ( 31, + 27 + - 90 ) + + 59 DIV 20 )
----
-4730

skipif mysql # not compatible
query I rowsort label-6102
SELECT + 81 * - - NULLIF ( COALESCE ( - ( + - CASE - COUNT ( * ) WHEN 22 * - - 61 * 95 / - 68 + 41 THEN NULL WHEN - 57 THEN + COUNT ( * ) ELSE - - 55 - - ( - 55 ) END ), + COALESCE ( - - ( 55 ), + ( + 5 ) * - 97 ) + + ( COUNT ( * ) + 47 ) ), 17 ) * + COUNT ( * ) + 55 * COALESCE ( - 86, + COALESCE ( 31, + 27 + - 90 ) + + 59 / 20 )
----
-4730

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL 94 + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL 94 + COUNT ( * ) AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6104
SELECT 68 + - + NULLIF ( 99, + 14 + - COUNT( * ) ) + - + 77 AS col0, - 1 + - COALESCE ( + NULLIF ( + 10, 75 * - 79 / 4 ), - + 25 + COUNT( * ) ) + + CAST( NULL AS SIGNED ) * - 4
----
-108
NULL

skipif mysql # not compatible
query II rowsort label-6104
SELECT 68 + - + NULLIF ( 99, + 14 + - COUNT ( * ) ) + - + 77 AS col0, - 1 + - COALESCE ( + NULLIF ( + 10, 75 * - 79 / 4 ), - + 25 + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * - 4
----
-108
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT 77 + + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6105
SELECT 77 + + - COUNT ( * )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6106
SELECT ALL - 62 DIV - MAX( DISTINCT 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL - 62 / - MAX ( DISTINCT 51 ) AS col1
----
1

query I rowsort
SELECT 67 * + 9
----
603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6108
SELECT 71 * + CAST( NULL AS SIGNED ) + - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6108
SELECT 71 * + CAST ( NULL AS INTEGER ) + - - 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6109
SELECT + 18, - 47 * - - ( - - MAX( ALL 88 ) ) * 22 + - 29 AS col0
----
18
-91021

skipif mysql # not compatible
query II rowsort label-6109
SELECT + 18, - 47 * - - ( - - MAX ( ALL 88 ) ) * 22 + - 29 AS col0
----
18
-91021

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL - NULLIF ( + - 23, + SUM( ALL - 12 ) - + + ( - + 45 ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL - NULLIF ( + - 23, + SUM ( ALL - 12 ) - + + ( - + 45 ) ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL COUNT( * ) + + 52 + - - 74 * - 86 col2
----
-6311

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL COUNT ( * ) + + 52 + - - 74 * - 86 col2
----
-6311

query II rowsort
SELECT - 55 AS col2, + 65
----
-55
65

query I rowsort
SELECT DISTINCT - - 68 + + + 8 + 29
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT DISTINCT COUNT( * ) + - 92 * 75
----
-6899

skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT COUNT ( * ) + - 92 * 75
----
-6899

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT MAX( - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-6115
SELECT MAX ( - 25 )
----
-25

query II rowsort
SELECT - + 6 AS col0, + 7 AS col2
----
-6
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6117
SELECT ALL - 93 AS col0, CASE + MAX( DISTINCT + - 65 ) WHEN + 26 THEN + - 28 * - + 90 WHEN - COALESCE ( + 23, + 93 ) * + ( - 26 ) + + 21 + - - 74 + 25 THEN NULL WHEN 39 - - COUNT( * ) * 82 * + 2 THEN NULL ELSE NULL END
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-6117
SELECT ALL - 93 AS col0, CASE + MAX ( DISTINCT + - 65 ) WHEN + 26 THEN + - 28 * - + 90 WHEN - COALESCE ( + 23, + 93 ) * + ( - 26 ) + + 21 + - - 74 + 25 THEN NULL WHEN 39 - - COUNT ( * ) * 82 * + 2 THEN NULL ELSE NULL END
----
-93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT + MIN( ALL + - 12 ) + + + 47 + 56 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6118
SELECT + MIN ( ALL + - 12 ) + + + 47 + 56 AS col0
----
91

query I rowsort
SELECT 52 * + + 57 * - + 72
----
-213408

query I rowsort
SELECT - 36 * - NULLIF ( + 49, - 32 ) AS col2
----
1764

onlyif mysql # aggregate syntax: 
query II rowsort label-6121
SELECT + 45 + + 62 * - ( COUNT( * ) ) col0, + 8 * + 97 AS col2
----
-17
776

skipif mysql # not compatible
query II rowsort label-6121
SELECT + 45 + + 62 * - ( COUNT ( * ) ) col0, + 8 * + 97 AS col2
----
-17
776

query II rowsort
SELECT DISTINCT + 60 - + 66 AS col2, 78 AS col0
----
-6
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL COUNT( 32 )
----
1

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL COUNT ( 32 )
----
1

query I rowsort
SELECT ALL - 27 - 93
----
-120

query I rowsort
SELECT + 2 * 64
----
128

query I rowsort
SELECT ALL + 10 * 62 AS col1
----
620

query I rowsort
SELECT - 11 + + 33
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6128
SELECT DISTINCT COUNT( DISTINCT + 93 ) - + + ( - COUNT( * ) ) DIV - + 9
----
1

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT COUNT ( DISTINCT + 93 ) - + + ( - COUNT ( * ) ) / - + 9
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT 52 + + 42 + + 40 - - COUNT( * ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-6129
SELECT 52 + + 42 + + 40 - - COUNT ( * ) AS col0
----
135

query II rowsort
SELECT ALL 24 AS col0, 47 AS col0
----
24
47

query I rowsort
SELECT 1 * + + 95 + 62
----
157

query II rowsort
SELECT ALL 21 * - + 26 * 37 + + 18, - 27 * 82 AS col2
----
-20184
-2214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6133
SELECT 52, - COALESCE ( + - COALESCE ( 64, - CASE - 54 WHEN + - COALESCE ( - COUNT( * ), - 6, 71 DIV - 14 ) * - - 10 THEN 13 END DIV + COALESCE ( + - 44, - - COUNT( * ), - SUM( DISTINCT 96 ) ) + + CAST( + - COUNT( * ) AS SIGNED ) ), 2 * 36 ) col0
----
52
64

skipif mysql # not compatible
query II rowsort label-6133
SELECT 52, - COALESCE ( + - COALESCE ( 64, - CASE - 54 WHEN + - COALESCE ( - COUNT ( * ), - 6, 71 / - 14 ) * - - 10 THEN 13 END / + COALESCE ( + - 44, - - COUNT ( * ), - SUM ( DISTINCT 96 ) ) + + CAST ( + - COUNT ( * ) AS INTEGER ) ), 2 * 36 ) col0
----
52
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT + SUM( 58 ) + + 55
----
113

skipif mysql # not compatible
query I rowsort label-6134
SELECT + SUM ( 58 ) + + 55
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6135
SELECT 90 / - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT 90 / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 33 * - - 25
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ( - 94 ) * - SUM( DISTINCT + + 81 )
----
7614

skipif mysql # not compatible
query I rowsort label-6137
SELECT ( - 94 ) * - SUM ( DISTINCT + + 81 )
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL ( - NULLIF ( + - 56, - 9 + + + COUNT( * ) ) ) * COALESCE ( + - 82, - 15 * 16, - 39 )
----
-4592

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL ( - NULLIF ( + - 56, - 9 + + + COUNT ( * ) ) ) * COALESCE ( + - 82, - 15 * 16, - 39 )
----
-4592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6139
SELECT ALL 95 * + COUNT( * ) + - 47 DIV + - 23
----
97

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL 95 * + COUNT ( * ) + - 47 / + - 23
----
97

query I rowsort
SELECT DISTINCT 70 * - + 57 + + ( + + 2 )
----
-3988

query I rowsort
SELECT ALL + 66 * 85 * - 36
----
-201960

query I rowsort
SELECT - 53 * ( - - 28 ) AS col2
----
-1484

query II rowsort
SELECT ALL 76 * 98 + - + 89, + 44 AS col2
----
7359
44

query I rowsort
SELECT - ( + 0 ) - - 36 + 97 + + 71 * 73
----
5316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6145
SELECT ALL - NULLIF ( 17, 42 DIV + 55 ) DIV + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - NULLIF ( 17, 42 / + 55 ) / + COUNT ( * )
----
-17

query I rowsort
SELECT DISTINCT + COALESCE ( + 57, 96 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT - + 16 + - - 49 * + 5 * - SUM( DISTINCT - - ( + - 98 ) ) AS col2
----
23994

skipif mysql # not compatible
query I rowsort label-6147
SELECT - + 16 + - - 49 * + 5 * - SUM ( DISTINCT - - ( + - 98 ) ) AS col2
----
23994

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT + + 11 * + SUM( DISTINCT + 45 ) AS col1
----
495

skipif mysql # not compatible
query I rowsort label-6148
SELECT + + 11 * + SUM ( DISTINCT + 45 ) AS col1
----
495

query I rowsort
SELECT + ( + COALESCE ( + 84, + 69 ) ) AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6150
SELECT - + COUNT( * ) * - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT - + COUNT ( * ) * - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6151
SELECT ALL - + COUNT( ALL - + 93 ) DIV - 89 * + + 82 + - 2 + - 23 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL - + COUNT ( ALL - + 93 ) / - 89 * + + 82 + - 2 + - 23 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT - MIN( DISTINCT COALESCE ( 83, 95 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-6152
SELECT - MIN ( DISTINCT COALESCE ( 83, 95 ) )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6153
SELECT ALL - 81 * - 48 DIV - COALESCE ( + COALESCE ( + 24, - + 73 ), + 87, 68 DIV + CAST( NULL AS SIGNED ) * + COUNT( * ) )
----
-162

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL - 81 * - 48 / - COALESCE ( + COALESCE ( + 24, - + 73 ), + 87, 68 / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) )
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6154
SELECT - COUNT( * ) + - 56 + 72 DIV + - 18 col2
----
-61

skipif mysql # not compatible
query I rowsort label-6154
SELECT - COUNT ( * ) + - 56 + 72 / + - 18 col2
----
-61

query I rowsort
SELECT ALL - 70 * - 23 AS col1
----
1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT DISTINCT + CAST( + NULLIF ( + 57, - - 76 + - 83 ) AS SIGNED ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT + CAST ( + NULLIF ( + 57, - - 76 + - 83 ) AS INTEGER ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT - - SUM( ALL + 34 ) - - + 91 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-6157
SELECT - - SUM ( ALL + 34 ) - - + 91 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL - CASE - COUNT( * ) WHEN 15 * 86 THEN + - 59 + 84 + 5 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - CASE - COUNT ( * ) WHEN 15 * 86 THEN + - 59 + 84 + 5 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6159
SELECT - + CASE + 1 WHEN + 81 * - 41 THEN + - 60 * - CAST( + - ( + + 34 ) AS SIGNED ) * - 70 + - CASE + 40 WHEN - 14 THEN NULLIF ( - - ( + 81 ), + + 85 ) WHEN - 85 + 24 THEN + 91 - - 0 + + - 93 * - 27 ELSE NULL END * 7 WHEN 57 * 19 THEN NULL WHEN 42 THEN 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT - + CASE + 1 WHEN + 81 * - 41 THEN + - 60 * - CAST ( + - ( + + 34 ) AS INTEGER ) * - 70 + - CASE + 40 WHEN - 14 THEN NULLIF ( - - ( + 81 ), + + 85 ) WHEN - 85 + 24 THEN + 91 - - 0 + + - 93 * - 27 ELSE NULL END * 7 WHEN 57 * 19 THEN NULL WHEN 42 THEN 72 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 60 + - 2
----
58

query II rowsort
SELECT ALL ( - 66 ) AS col0, - 11 AS col1
----
-66
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT ALL - COUNT( * ) + + 19 col1
----
18

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL - COUNT ( * ) + + 19 col1
----
18

query I rowsort
SELECT DISTINCT ( - 32 )
----
-32

query II rowsort
SELECT ALL 19 + - 52 + 63, 34 AS col1
----
30
34

query II rowsort
SELECT 68, 86 - 42 AS col0
----
68
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6166
SELECT ALL SUM( + - 85 ) DIV - 20 * - COUNT( + 59 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL SUM ( + - 85 ) / - 20 * - COUNT ( + 59 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL MIN( DISTINCT 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL MIN ( DISTINCT 44 ) AS col0
----
44

query II rowsort
SELECT 81 col1, ( 6 ) * + - 11
----
81
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL 83 + - + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL 83 + - + COUNT ( * )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6170
SELECT - ( - - NULLIF ( - + 98, - 1 - CAST( 7 AS SIGNED ) + - COUNT( * ) - + + 26 * 82 ) ) DIV - 13 + + + COUNT( - + 87 ) * 80 * MAX( ALL 85 ) + - 6 + - 79
----
6708

skipif mysql # not compatible
query I rowsort label-6170
SELECT - ( - - NULLIF ( - + 98, - 1 - CAST ( 7 AS INTEGER ) + - COUNT ( * ) - + + 26 * 82 ) ) / - 13 + + + COUNT ( - + 87 ) * 80 * MAX ( ALL 85 ) + - 6 + - 79
----
6708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT CAST( - 41 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-6171
SELECT CAST ( - 41 AS INTEGER )
----
-41

query I rowsort
SELECT + ( 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT COUNT( * ) DIV - COUNT( ALL - 2 ) + 77
----
76

skipif mysql # not compatible
query I rowsort label-6173
SELECT COUNT ( * ) / - COUNT ( ALL - 2 ) + 77
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6174
SELECT ( 30 ) * 96 * - - 90 + - CAST( NULL AS SIGNED ) + 4 - 99 - - + 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT ( 30 ) * 96 * - - 90 + - CAST ( NULL AS INTEGER ) + 4 - 99 - - + 70 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6175
SELECT ALL COUNT( * ) DIV COUNT( * ) + 21
----
22

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL COUNT ( * ) / COUNT ( * ) + 21
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT ALL 11 DIV - NULLIF ( + + 29, + 6 * - 73 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL 11 / - NULLIF ( + + 29, + 6 * - 73 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + 90 * + + ( - 47 ) + - + COUNT( * )
----
-4231

skipif mysql # not compatible
query I rowsort label-6177
SELECT + 90 * + + ( - 47 ) + - + COUNT ( * )
----
-4231

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT DISTINCT + MIN( DISTINCT 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + MIN ( DISTINCT 34 ) AS col2
----
34

query I rowsort
SELECT + 87 + - 5
----
82

query I rowsort
SELECT + ( - 57 ) AS col2
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-6181
SELECT - 63 + - 78 * + 50 AS col1, + 15 DIV 5
----
-3963
3

skipif mysql # not compatible
query II rowsort label-6181
SELECT - 63 + - 78 * + 50 AS col1, + 15 / 5
----
-3963
3

query I rowsort
SELECT + 75 * 4
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6183
SELECT - + CAST( NULL AS SIGNED ) * + 65 + - 44 * - 64 / 10 * + ( + + 14 ) * ( 97 ) * + + 80 + - 85 + 58 + - COUNT( * ) * + + ( + 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT - + CAST ( NULL AS INTEGER ) * + 65 + - 44 * - 64 / 10 * + ( + + 14 ) * ( 97 ) * + + 80 + - 85 + 58 + - COUNT ( * ) * + + ( + 2 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT DISTINCT - + 50 * - 41 * - - CASE 56 WHEN 33 + + 13 THEN + CASE 71 WHEN + + 47 - + + 61 THEN + + 92 WHEN + 52 * - 44 THEN - 16 END WHEN + - 76 THEN NULL ELSE NULL END / - 98 * - 78 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT - + 50 * - 41 * - - CASE 56 WHEN 33 + + 13 THEN + CASE 71 WHEN + + 47 - + + 61 THEN + + 92 WHEN + 52 * - 44 THEN - 16 END WHEN + - 76 THEN NULL ELSE NULL END / - 98 * - 78 - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( + - 66, 62 ) * 86
----
-5676

query II rowsort
SELECT + ( 27 ) * + - 45, + 68 col0
----
-1215
68

query II rowsort
SELECT ALL + - 31 AS col2, + 59 * + - 99 AS col0
----
-31
-5841

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6188
SELECT DISTINCT + MAX( ALL 59 ) * CAST( NULL AS DECIMAL ) - - 13 * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + MAX ( ALL 59 ) * CAST ( NULL AS REAL ) - - 13 * - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + - COUNT( - 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-6189
SELECT + - COUNT ( - 42 )
----
-1

query I rowsort
SELECT ALL 54 * - + NULLIF ( + 32, - 33 ) AS col1
----
-1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6191
SELECT - - CAST( - CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) + + 22 + - 75 + - + 45 * + 60 * + + 25 + COALESCE ( ( 7 ), 43 ) * + 46 + + COALESCE ( - 34, - COALESCE ( - + 82, - CAST( + + 50 AS SIGNED ), 82 * + 45 DIV - + 35 - ( + 38 ) + 50 * COUNT( * ) ), CAST( + 69 AS SIGNED ) )
----
-67266

skipif mysql # not compatible
query I rowsort label-6191
SELECT - - CAST ( - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) + + 22 + - 75 + - + 45 * + 60 * + + 25 + COALESCE ( ( 7 ), 43 ) * + 46 + + COALESCE ( - 34, - COALESCE ( - + 82, - CAST ( + + 50 AS INTEGER ), 82 * + 45 / - + 35 - ( + 38 ) + 50 * COUNT ( * ) ), CAST ( + 69 AS INTEGER ) )
----
-67266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6192
SELECT DISTINCT - 77 DIV - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT - 77 / - COUNT ( * ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT - + ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6193
SELECT - + ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6194
SELECT ALL - CAST( CASE + ( + 23 ) WHEN - - 97 * - AVG ( DISTINCT + 83 ) * COUNT( * ) * + 89 THEN 33 WHEN + 52 THEN NULL ELSE - ( - CASE + COUNT( * ) WHEN + 59 THEN 23 * - 9 + - 30 / + ( + NULLIF ( - + 51, 37 ) ) / - - 69 + 77 * - 74 END ) END AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL - CAST ( CASE + ( + 23 ) WHEN - - 97 * - AVG ( DISTINCT + 83 ) * COUNT ( * ) * + 89 THEN 33 WHEN + 52 THEN NULL ELSE - ( - CASE + COUNT ( * ) WHEN + 59 THEN 23 * - 9 + - 30 / + ( + NULLIF ( - + 51, 37 ) ) / - - 69 + 77 * - 74 END ) END AS REAL ) AS col2
----
NULL

query II rowsort
SELECT - - 38 AS col2, + 80
----
38
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT - - 38 DIV - - 66 * + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6196
SELECT - - 38 / - - 66 * + 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT - MAX( + + 80 ) + 16 - 6 * 54
----
-388

skipif mysql # not compatible
query I rowsort label-6197
SELECT - MAX ( + + 80 ) + 16 - 6 * 54
----
-388

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT + CASE + 71 WHEN + COUNT( * ) * COUNT( * ) + 20 + 70 * 61 + - 54 + 46 + + COALESCE ( + COALESCE ( 68, 75 ), - 58 + - 63 * + + 63 * - 51 * - 33 ) * + 3 THEN SUM( DISTINCT - - 39 ) * 83 WHEN - 64 + 56 THEN 21 ELSE NULL END * + 47 - + 22 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT + CASE + 71 WHEN + COUNT ( * ) * COUNT ( * ) + 20 + 70 * 61 + - 54 + 46 + + COALESCE ( + COALESCE ( 68, 75 ), - 58 + - 63 * + + 63 * - 51 * - 33 ) * + 3 THEN SUM ( DISTINCT - - 39 ) * 83 WHEN - 64 + 56 THEN 21 ELSE NULL END * + 47 - + 22 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT - MAX( 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6199
SELECT - MAX ( 53 ) AS col1
----
-53

query I rowsort
SELECT - 43 + 1 AS col1
----
-42

query I rowsort
SELECT ALL + 83 * - - 48 * 55
----
219120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6202
SELECT - SUM( DISTINCT - 32 ) DIV - 14 AS col0, - 94 + 39 * + COALESCE ( + 4, + 15 ) * - 61 * - 42 AS col1
----
-2
399578

skipif mysql # not compatible
query II rowsort label-6202
SELECT - SUM ( DISTINCT - 32 ) / - 14 AS col0, - 94 + 39 * + COALESCE ( + 4, + 15 ) * - 61 * - 42 AS col1
----
-2
399578

onlyif mysql # aggregate syntax: 
query II rowsort label-6203
SELECT DISTINCT + - COUNT( * ) * + - ( - - 62 ) * - 23, + 23 AS col2
----
-1426
23

skipif mysql # not compatible
query II rowsort label-6203
SELECT DISTINCT + - COUNT ( * ) * + - ( - - 62 ) * - 23, + 23 AS col2
----
-1426
23

query I rowsort
SELECT ALL - 75 + - 10 + - + 78 * 67 AS col2
----
-5311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6205
SELECT DISTINCT - COUNT( * ) + + 47 + + + CAST( COUNT( DISTINCT 73 ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT - COUNT ( * ) + + 47 + + + CAST ( COUNT ( DISTINCT 73 ) AS INTEGER )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT DISTINCT - 93 + - 2 + - ( - MAX( ALL - 40 ) ) col2
----
-135

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - 93 + - 2 + - ( - MAX ( ALL - 40 ) ) col2
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6207
SELECT 77 * - CAST( + 93 AS SIGNED )
----
-7161

skipif mysql # not compatible
query I rowsort label-6207
SELECT 77 * - CAST ( + 93 AS INTEGER )
----
-7161

onlyif mysql # aggregate syntax: 
query II rowsort label-6208
SELECT ALL - 75 + - ( + COUNT( * ) ) * 30 AS col0, - 74 * + 13 + + 9
----
-105
-953

skipif mysql # not compatible
query II rowsort label-6208
SELECT ALL - 75 + - ( + COUNT ( * ) ) * 30 AS col0, - 74 * + 13 + + 9
----
-105
-953

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6209
SELECT DISTINCT - 57 + COUNT( * ) AS col2, - 37 DIV - 22
----
-56
1

skipif mysql # not compatible
query II rowsort label-6209
SELECT DISTINCT - 57 + COUNT ( * ) AS col2, - 37 / - 22
----
-56
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6210
SELECT DISTINCT 70 DIV COUNT( * ) AS col0, + COUNT( * ) + 88 + - 99 * + - 64
----
70
6425

skipif mysql # not compatible
query II rowsort label-6210
SELECT DISTINCT 70 / COUNT ( * ) AS col0, + COUNT ( * ) + 88 + - 99 * + - 64
----
70
6425

query I rowsort
SELECT ALL 29 + NULLIF ( - - 14, - + 5 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT ALL COUNT( * ) * + 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL COUNT ( * ) * + 87 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6213
SELECT 76 * + CASE - - 89 WHEN + 99 THEN NULL WHEN 3 THEN 18 END / - 61 - + ( + CAST( - COUNT( + + 1 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT 76 * + CASE - - 89 WHEN + 99 THEN NULL WHEN 3 THEN 18 END / - 61 - + ( + CAST ( - COUNT ( + + 1 ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT COALESCE ( + 34, - 62 * - 28 * - 70 * - COUNT( * ) * - 98, + + 90 ) * - CASE + ( - + 7 ) WHEN + SUM( 50 ) * + + 0 + - 73 THEN NULL WHEN + + CASE + 1 WHEN - 22 THEN NULL WHEN COUNT( * ) THEN + COUNT( * ) / 95 + - - 80 ELSE + 20 + 26 END - - 33 THEN - 29 + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT COALESCE ( + 34, - 62 * - 28 * - 70 * - COUNT ( * ) * - 98, + + 90 ) * - CASE + ( - + 7 ) WHEN + SUM ( 50 ) * + + 0 + - 73 THEN NULL WHEN + + CASE + 1 WHEN - 22 THEN NULL WHEN COUNT ( * ) THEN + COUNT ( * ) / 95 + - - 80 ELSE + 20 + 26 END - - 33 THEN - 29 + 41 END
----
NULL

query I rowsort
SELECT 28 * + + 66 AS col2
----
1848

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT 35 DIV - 15 - 12 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6216
SELECT 35 / - 15 - 12 AS col1
----
-14

query I rowsort
SELECT ALL - ( - 88 )
----
88

query I rowsort
SELECT + 21 * - 18 * + - 57 AS col1
----
21546

query I rowsort
SELECT 4 * - - 38
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-6220
SELECT - 48 + - + 14 * 73 * + - 3 AS col0, - COUNT( * ) + + 97 AS col0
----
3018
96

skipif mysql # not compatible
query II rowsort label-6220
SELECT - 48 + - + 14 * 73 * + - 3 AS col0, - COUNT ( * ) + + 97 AS col0
----
3018
96

query I rowsort
SELECT ALL 88 * - - 21 * + - 62 AS col1
----
-114576

query II rowsort
SELECT 83 * + - 39 AS col2, + 36 AS col0
----
-3237
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6223
SELECT - COUNT( * ) - + CAST( + 79 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-6223
SELECT - COUNT ( * ) - + CAST ( + 79 AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT DISTINCT + 54 + COUNT( * ) * 49 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT + 54 + COUNT ( * ) * 49 AS col0
----
103

query I rowsort
SELECT ALL - 96 + 91 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6226
SELECT ALL + 38 + 60 + - + CAST( COALESCE ( 23, - - 22, + - COUNT( * ) ) AS SIGNED ) * 24 col1
----
-454

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + 38 + 60 + - + CAST ( COALESCE ( 23, - - 22, + - COUNT ( * ) ) AS INTEGER ) * 24 col1
----
-454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6227
SELECT ALL + 27 * 89 * 28 DIV 68, + COUNT( * ) + + MAX( - 63 ) * + 34 * - CAST( NULL AS SIGNED ) DIV - 55 AS col1
----
989
NULL

skipif mysql # not compatible
query II rowsort label-6227
SELECT ALL + 27 * 89 * 28 / 68, + COUNT ( * ) + + MAX ( - 63 ) * + 34 * - CAST ( NULL AS INTEGER ) / - 55 AS col1
----
989
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6228
SELECT CAST( NULL AS SIGNED ) * + 62 * + MIN( ALL 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT CAST ( NULL AS INTEGER ) * + 62 * + MIN ( ALL 62 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT + 98 + - CAST( - - 44 AS SIGNED ) + + 37
----
91

skipif mysql # not compatible
query I rowsort label-6229
SELECT + 98 + - CAST ( - - 44 AS INTEGER ) + + 37
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6230
SELECT DISTINCT 72 + 90 DIV - 10 + + 1 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT 72 + 90 / - 10 + + 1 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL 7 + ( 19 ) - 85 * + COUNT( * ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL 7 + ( 19 ) - 85 * + COUNT ( * ) col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6232
SELECT - 77 col0, COUNT( * )
----
-77
1

skipif mysql # not compatible
query II rowsort label-6232
SELECT - 77 col0, COUNT ( * )
----
-77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL + 43 + - 42 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL + 43 + - 42 + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6234
SELECT ALL - 89 + + NULLIF ( COUNT( ALL 74 ), 12 ) AS col2, + COUNT( * ) * + 58
----
-88
58

skipif mysql # not compatible
query II rowsort label-6234
SELECT ALL - 89 + + NULLIF ( COUNT ( ALL 74 ), 12 ) AS col2, + COUNT ( * ) * + 58
----
-88
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT ALL + 16 DIV + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + 16 / + 24 AS col0
----
0

query II rowsort
SELECT ALL - 44 - + 12 + - + 23 * - 53 * - - 4 AS col0, ( 9 ) + - 36
----
4820
-27

query I rowsort
SELECT 83 - + 29
----
54

query I rowsort
SELECT 86 * + + 28
----
2408

query I rowsort
SELECT 93 - - 15 col1
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-6240
SELECT DISTINCT COUNT( * ) AS col0, + 82 col2
----
1
82

skipif mysql # not compatible
query II rowsort label-6240
SELECT DISTINCT COUNT ( * ) AS col0, + 82 col2
----
1
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6241
SELECT 2 + - 69 DIV - 16 * - COUNT( ALL + 38 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6241
SELECT 2 + - 69 / - 16 * - COUNT ( ALL + 38 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL + COUNT( * ) - - 30 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL + COUNT ( * ) - - 30 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6243
SELECT ALL COUNT( * ), 5 * 73 AS col2
----
1
365

skipif mysql # not compatible
query II rowsort label-6243
SELECT ALL COUNT ( * ), 5 * 73 AS col2
----
1
365

query I rowsort
SELECT 92 + + 40 * 32
----
1372

query I rowsort
SELECT - 44 * 1 * 76 * + 99 - + 38 * - 43 AS col1
----
-329422

query I rowsort
SELECT ALL - ( 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT 18 * + COUNT( * ) + - + 69
----
-51

skipif mysql # not compatible
query I rowsort label-6247
SELECT 18 * + COUNT ( * ) + - + 69
----
-51

query I rowsort
SELECT 37 - + 46 col0
----
-9

query I rowsort
SELECT - 30 * + 63 + 73 AS col1
----
-1817

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT ALL - 43 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL - 43 / + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT - - 6 * 57 * - 5 - + 4 + + - COUNT( + 28 ) + + COUNT( * )
----
-1714

skipif mysql # not compatible
query I rowsort label-6251
SELECT - - 6 * 57 * - 5 - + 4 + + - COUNT ( + 28 ) + + COUNT ( * )
----
-1714

query I rowsort
SELECT ALL - ( 3 ) AS col2
----
-3

query I rowsort
SELECT ALL - + 13 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL + + MAX( ( + + 26 ) ) * + 38 * + + COUNT( * )
----
988

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL + + MAX ( ( + + 26 ) ) * + 38 * + + COUNT ( * )
----
988

onlyif mysql # aggregate syntax: 
query II rowsort label-6255
SELECT COUNT( * ) AS col2, - 23
----
1
-23

skipif mysql # not compatible
query II rowsort label-6255
SELECT COUNT ( * ) AS col2, - 23
----
1
-23

query I rowsort
SELECT ALL 49 + + 51 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT DISTINCT - 49 * - COUNT( * ) + + ( 47 ) * + 80 + + COUNT( - 22 )
----
3810

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT - 49 * - COUNT ( * ) + + ( 47 ) * + 80 + + COUNT ( - 22 )
----
3810

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT 21 * COUNT( + 73 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6258
SELECT 21 * COUNT ( + 73 ) AS col2
----
21

query I rowsort
SELECT + - 5 * - 98 + + 76 AS col0
----
566

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT ALL - COALESCE ( - + 33, + - COUNT( * ) + - ( + 74 ) - - - 13 + - 60 * 93 ) AS col2, 93 AS col2
----
33
93

skipif mysql # not compatible
query II rowsort label-6260
SELECT ALL - COALESCE ( - + 33, + - COUNT ( * ) + - ( + 74 ) - - - 13 + - 60 * 93 ) AS col2, 93 AS col2
----
33
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT DISTINCT - COUNT( * ) + 70 + + - 78 + + 0 * 96 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT - COUNT ( * ) + 70 + + - 78 + + 0 * 96 AS col1
----
-9

query I rowsort
SELECT DISTINCT - - 38 * - - 40 col2
----
1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + ( + 17 ) - + 21 * - 6 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + ( + 17 ) - + 21 * - 6 col0
----
NULL

query I rowsort
SELECT + 69 * + - 25 + 77 * - 81 AS col2
----
-7962

onlyif mysql # aggregate syntax: 
query II rowsort label-6265
SELECT ALL - 78, 40 * 76 - - MIN( ALL 22 ) AS col1
----
-78
3062

skipif mysql # not compatible
query II rowsort label-6265
SELECT ALL - 78, 40 * 76 - - MIN ( ALL 22 ) AS col1
----
-78
3062

query I rowsort
SELECT + ( + 52 ) * 79 + + 88
----
4196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6267
SELECT ALL 61 + + 65 + 94 - - - SUM( - + NULLIF ( - + 74, 69 ) ) - 75 - - 78 + 44 * - - ( - + 80 ) * CAST( NULL AS SIGNED ) + - MAX( - - 70 ) * 20 - + 46 * + 18 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL 61 + + 65 + 94 - - - SUM ( - + NULLIF ( - + 74, 69 ) ) - 75 - - 78 + 44 * - - ( - + 80 ) * CAST ( NULL AS INTEGER ) + - MAX ( - - 70 ) * 20 - + 46 * + 18 col0
----
NULL

query I rowsort
SELECT ALL 66 + 6 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + 89 + + 22 - COUNT( ALL - - 58 ) * + + 32 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6269
SELECT + 89 + + 22 - COUNT ( ALL - - 58 ) * + + 32 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT + COUNT( * ) * CASE - - 64 WHEN - + 80 + - - 73 THEN + + 78 END * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT + COUNT ( * ) * CASE - - 64 WHEN - + 80 + - - 73 THEN + + 78 END * + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 97 AS col2, 37 * + 54
----
97
1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT - CAST( - 92 AS SIGNED ) + - 24
----
68

skipif mysql # not compatible
query I rowsort label-6272
SELECT - CAST ( - 92 AS INTEGER ) + - 24
----
68

query II rowsort
SELECT - 30 AS col1, + 20
----
-30
20

query II rowsort
SELECT ALL 31, 14 AS col1
----
31
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT - COUNT( * ) AS col2, 38 col1
----
-1
38

skipif mysql # not compatible
query II rowsort label-6275
SELECT - COUNT ( * ) AS col2, 38 col1
----
-1
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6276
SELECT ALL 53 - 49 DIV + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL 53 - 49 / + + COUNT ( * )
----
4

query I rowsort
SELECT ALL + 12 * - 23 * - 64 AS col1
----
17664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6278
SELECT + CAST( NULL AS SIGNED ) + - + NULLIF ( - 80, 24 / + + SUM( 82 ) ) - + NULLIF ( + COUNT( * ), + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT + CAST ( NULL AS INTEGER ) + - + NULLIF ( - 80, 24 / + + SUM ( 82 ) ) - + NULLIF ( + COUNT ( * ), + 67 )
----
NULL

query I rowsort
SELECT - 88 + - - 33 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6280
SELECT + 0 DIV - - 55 * - ( + 64 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6280
SELECT + 0 / - - 55 * - ( + 64 ) AS col2
----
0

query II rowsort
SELECT - 55, + 79 * 80 * + 48 + - 72 AS col1
----
-55
303288

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT MIN( ALL - - 21 ) col1
----
21

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT MIN ( ALL - - 21 ) col1
----
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6283
SELECT ALL - 86 DIV CAST( - 87 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - 86 / CAST ( - 87 AS INTEGER ) col1
----
0

query I rowsort
SELECT - ( + + 4 ) AS col1
----
-4

query I rowsort
SELECT - 58 + - - 65 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT ALL SUM( - - 82 )
----
82

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL SUM ( - - 82 )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT - 4 DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6287
SELECT - 4 / - 63 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT - - 8 * - ( - 14 ) + - + CAST( + - 73 AS SIGNED ) col1
----
185

skipif mysql # not compatible
query I rowsort label-6288
SELECT - - 8 * - ( - 14 ) + - + CAST ( + - 73 AS INTEGER ) col1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL + COUNT( + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL + COUNT ( + 74 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL + + ( - + 68 ) * - COUNT( * ) + - - 6
----
74

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + + ( - + 68 ) * - COUNT ( * ) + - - 6
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL + 95 * - 92 + - CAST( ( MAX( ALL ( - ( + 56 ) ) ) ) AS SIGNED ) AS col0
----
-8684

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL + 95 * - 92 + - CAST ( ( MAX ( ALL ( - ( + 56 ) ) ) ) AS INTEGER ) AS col0
----
-8684

query I rowsort
SELECT ALL + 80 * 68 * + + 10 * + 28 + - 35 + 71 * NULLIF ( 15, 10 ) + 75
----
1524305

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6293
SELECT DISTINCT + 53 * - + 4 * + + NULLIF ( 64, + - 90 + + CAST( 54 AS DECIMAL ) - 71 + - 71 * + 71 * + - MIN( - 29 ) * - - 62 )
----
-13568

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT + 53 * - + 4 * + + NULLIF ( 64, + - 90 + + CAST ( 54 AS REAL ) - 71 + - 71 * + 71 * + - MIN ( - 29 ) * - - 62 )
----
-13568

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - 94 * - 16 + 20 - + COUNT( * ) - + 56
----
1467

skipif mysql # not compatible
query I rowsort label-6294
SELECT - 94 * - 16 + 20 - + COUNT ( * ) - + 56
----
1467

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT - MIN( ALL 53 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-6295
SELECT - MIN ( ALL 53 ) * - 0
----
0

query I rowsort
SELECT + - ( 56 )
----
-56

query II rowsort
SELECT - 10, 62 + - 57 - - 25 AS col2
----
-10
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6298
SELECT - + 82 * - 82 * - MAX( CAST( NULL AS SIGNED ) ) * + 29 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT - + 82 * - 82 * - MAX ( CAST ( NULL AS INTEGER ) ) * + 29 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6299
SELECT + 16 AS col1, - 22 * - - 30 * CAST( - 66 AS SIGNED ) AS col1
----
16
43560

skipif mysql # not compatible
query II rowsort label-6299
SELECT + 16 AS col1, - 22 * - - 30 * CAST ( - 66 AS INTEGER ) AS col1
----
16
43560

query II rowsort
SELECT ALL + - 9 AS col2, 83 * + - 59
----
-9
-4897

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL 6 * - COUNT( * ) * - 2
----
12

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL 6 * - COUNT ( * ) * - 2
----
12

query I rowsort
SELECT ALL 72 * + - 8 * - + 46 + 7
----
26503

query I rowsort
SELECT - - 55 + - + 38 * - 12 * - ( 18 ) AS col0
----
-8153

query I rowsort
SELECT + + 49 * - + 77
----
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT DISTINCT COUNT( ALL - ( - - 47 ) ) * + 86 + + + 10 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT COUNT ( ALL - ( - - 47 ) ) * + 86 + + + 10 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT SUM( ALL + + 16 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-6306
SELECT SUM ( ALL + + 16 ) col0
----
16

query I rowsort
SELECT ALL - 17 * - 50
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL + 12 * - CASE + 13 WHEN + 72 THEN + MAX( DISTINCT + 6 ) * 19 END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL + 12 * - CASE + 13 WHEN + 72 THEN + MAX ( DISTINCT + 6 ) * 19 END - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT + CAST( 16 AS SIGNED ) * + - CAST( - ( + 85 ) AS SIGNED ) AS col2
----
1360

skipif mysql # not compatible
query I rowsort label-6309
SELECT + CAST ( 16 AS INTEGER ) * + - CAST ( - ( + 85 ) AS INTEGER ) AS col2
----
1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6310
SELECT - CASE + - 22 WHEN + CASE 15 WHEN - + COALESCE ( - 81, - + 9 - - 84 ) * - + COUNT( ALL 51 ) / + AVG ( DISTINCT + 42 ) THEN NULL ELSE ( + MAX( DISTINCT - 27 ) ) + + COUNT( * ) END THEN NULL WHEN + - 20 * + - 5 + + 46 - - + 16 + - 83 - - 15 + + + CAST( - 34 AS SIGNED ) THEN - - 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT - CASE + - 22 WHEN + CASE 15 WHEN - + COALESCE ( - 81, - + 9 - - 84 ) * - + COUNT ( ALL 51 ) / + AVG ( DISTINCT + 42 ) THEN NULL ELSE ( + MAX ( DISTINCT - 27 ) ) + + COUNT ( * ) END THEN NULL WHEN + - 20 * + - 5 + + 46 - - + 16 + - 83 - - 15 + + + CAST ( - 34 AS INTEGER ) THEN - - 21 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6311
SELECT + MAX( - - 89 ) + - 69 + - - 13 DIV - ( - - 25 )
----
20

skipif mysql # not compatible
query I rowsort label-6311
SELECT + MAX ( - - 89 ) + - 69 + - - 13 / - ( - - 25 )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6312
SELECT MIN( + 49 ) AS col1, + 40 * - 58 AS col0
----
49
-2320

skipif mysql # not compatible
query II rowsort label-6312
SELECT MIN ( + 49 ) AS col1, + 40 * - 58 AS col0
----
49
-2320

query I rowsort
SELECT + 64 * + - 66 AS col2
----
-4224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6314
SELECT - CAST( - + 69 AS SIGNED ) col2, 22 DIV - 73
----
69
0

skipif mysql # not compatible
query II rowsort label-6314
SELECT - CAST ( - + 69 AS INTEGER ) col2, 22 / - 73
----
69
0

query I rowsort
SELECT + 17 * - 3
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT + 28 + + ( - ( 41 ) ) - + + 72 * 59 * + SUM( ALL + + ( - 62 ) ) * 37 * 21
----
204643139

skipif mysql # not compatible
query I rowsort label-6316
SELECT + 28 + + ( - ( 41 ) ) - + + 72 * 59 * + SUM ( ALL + + ( - 62 ) ) * 37 * 21
----
204643139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT ALL 40 * - + CASE - + 7 WHEN + 16 + + + 72 + 37 THEN NULL WHEN - 80 * + - 91 * 28 * - CAST( NULL AS SIGNED ) THEN + + 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL 40 * - + CASE - + 7 WHEN + 16 + + + 72 + 37 THEN NULL WHEN - 80 * + - 91 * 28 * - CAST ( NULL AS INTEGER ) THEN + + 17 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL SUM( ALL 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL SUM ( ALL 38 ) AS col1
----
38

query I rowsort
SELECT + 22 - + - 0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6320
SELECT + 98 + + 82 col1, 15 - CAST( NULL AS SIGNED ) + - 42 * + NULLIF ( - 90, - 61 - 93 ) + + - 76 AS col1
----
180
NULL

skipif mysql # not compatible
query II rowsort label-6320
SELECT + 98 + + 82 col1, 15 - CAST ( NULL AS INTEGER ) + - 42 * + NULLIF ( - 90, - 61 - 93 ) + + - 76 AS col1
----
180
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT ALL + - COUNT( * ) + - 51
----
-52

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL + - COUNT ( * ) + - 51
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT + - 60 + - 59 - + COUNT( * ) AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-6322
SELECT + - 60 + - 59 - + COUNT ( * ) AS col1
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-6323
SELECT ALL - 12 DIV - 30 * - 17 * - 27 + + 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL - 12 / - 30 * - 17 * - 27 + + 59 AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT + ( + 91 ) DIV - + 32 - - 46 * - - 50 AS col0
----
2298

skipif mysql # not compatible
query I rowsort label-6324
SELECT + ( + 91 ) / - + 32 - - 46 * - - 50 AS col0
----
2298

query II rowsort
SELECT + 24 * - + 18, + 80 AS col1
----
-432
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6326
SELECT ALL ( + 70 ) DIV + 94 * - 99 col2
----
0

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL ( + 70 ) / + 94 * - 99 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL 98 + - COUNT( * ) + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL 98 + - COUNT ( * ) + COUNT ( * )
----
98

query I rowsort
SELECT + - 68 * + 94 + ( + 16 ) AS col1
----
-6376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6329
SELECT + 29 / - + CAST( NULL AS SIGNED ) + - 79 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT + 29 / - + CAST ( NULL AS INTEGER ) + - 79 * - 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT + CAST( - 77 AS SIGNED ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-6330
SELECT + CAST ( - 77 AS INTEGER ) col0
----
-77

query I rowsort
SELECT + CASE - 0 WHEN - + 40 THEN + + 63 + + + 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT + 12 * + - ( - COUNT( * ) ) + + 95 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-6332
SELECT + 12 * + - ( - COUNT ( * ) ) + + 95 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6333
SELECT DISTINCT + - MIN( - - CAST( + 82 AS SIGNED ) ) - COALESCE ( - CAST( NULL AS SIGNED ), + 43 + + 68 + 23 + - 12 DIV ( + 67 ), + + 42 ) + - COUNT( * ) * 55 + 23 - + - 76 + + 9
----
-163

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT + - MIN ( - - CAST ( + 82 AS INTEGER ) ) - COALESCE ( - CAST ( NULL AS INTEGER ), + 43 + + 68 + 23 + - 12 / ( + 67 ), + + 42 ) + - COUNT ( * ) * 55 + 23 - + - 76 + + 9
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6334
SELECT - ( - + 39 ) + - - CASE ( + 18 ) WHEN 56 THEN + SUM( ALL - 27 ) * - 71 + + + 32 WHEN - + 41 * + COALESCE ( 76, 71 - + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + + 1, AVG ( - 82 ) ) + - - 16 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT - ( - + 39 ) + - - CASE ( + 18 ) WHEN 56 THEN + SUM ( ALL - 27 ) * - 71 + + + 32 WHEN - + 41 * + COALESCE ( 76, 71 - + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 1, AVG ( - 82 ) ) + - - 16 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - ( + + 89 ) AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6336
SELECT 86 * + CASE 72 WHEN - 72 THEN + MAX( 25 ) END * + COUNT( ALL + CAST( - 56 AS SIGNED ) ) / 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT 86 * + CASE 72 WHEN - 72 THEN + MAX ( 25 ) END * + COUNT ( ALL + CAST ( - 56 AS INTEGER ) ) / 9 AS col0
----
NULL

query I rowsort
SELECT ALL 7 * + 99 AS col0
----
693

query I rowsort
SELECT 93 + - - ( + 57 )
----
150

query I rowsort
SELECT ALL - ( + 39 ) AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT - CAST( - 68 AS SIGNED ) * - 63 + 22 AS col0
----
-4262

skipif mysql # not compatible
query I rowsort label-6340
SELECT - CAST ( - 68 AS INTEGER ) * - 63 + 22 AS col0
----
-4262

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT 76 DIV + + 6
----
12

skipif mysql # not compatible
query I rowsort label-6341
SELECT 76 / + + 6
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL - COUNT( - 58 ) * - 70 + + 5 - - + MIN( - 35 ) + + 5 * - + 27 * + 79 AS col2
----
-10625

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL - COUNT ( - 58 ) * - 70 + + 5 - - + MIN ( - 35 ) + + 5 * - + 27 * + 79 AS col2
----
-10625

query II rowsort
SELECT 60 AS col1, - 26 AS col0
----
60
-26

query I rowsort
SELECT 95 - - + 77
----
172

query I rowsort
SELECT 2 * - 20
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6346
SELECT ALL 53 AS col1, MIN( + 73 ) * + MIN( - - 69 ) * + + 11 + - 41
----
53
55366

skipif mysql # not compatible
query II rowsort label-6346
SELECT ALL 53 AS col1, MIN ( + 73 ) * + MIN ( - - 69 ) * + + 11 + - 41
----
53
55366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6347
SELECT ALL 4 col0, COALESCE ( + 6, 36 + - 48, - COUNT( DISTINCT - 97 ) DIV - + 9 + - + 80 - - COALESCE ( 96, + COUNT( * ) - - 39 ) - + 32 + + NULLIF ( + - 68, 98 ) + + 50 ) + 68 col2, + - CASE 52 WHEN - 88 THEN NULL WHEN + CASE ( + 0 ) WHEN + 75 THEN - ( + + CASE + 22 WHEN 15 THEN CAST( - ( 79 ) AS SIGNED ) + - ( 67 ) WHEN ( COALESCE ( - 97, 22 ) ) THEN NULL ELSE NULL END ) WHEN 55 THEN NULL ELSE NULL END + 26 * - 32 THEN 15 END * 5 col1
----
4
74
NULL

skipif mysql # not compatible
query III rowsort label-6347
SELECT ALL 4 col0, COALESCE ( + 6, 36 + - 48, - COUNT ( DISTINCT - 97 ) / - + 9 + - + 80 - - COALESCE ( 96, + COUNT ( * ) - - 39 ) - + 32 + + NULLIF ( + - 68, 98 ) + + 50 ) + 68 col2, + - CASE 52 WHEN - 88 THEN NULL WHEN + CASE ( + 0 ) WHEN + 75 THEN - ( + + CASE + 22 WHEN 15 THEN CAST ( - ( 79 ) AS INTEGER ) + - ( 67 ) WHEN ( COALESCE ( - 97, 22 ) ) THEN NULL ELSE NULL END ) WHEN 55 THEN NULL ELSE NULL END + 26 * - 32 THEN 15 END * 5 col1
----
4
74
NULL

query I rowsort
SELECT 11 * - 21
----
-231

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6349
SELECT - 60, CASE + COUNT( * ) WHEN + ( - - CAST( + + 66 AS DECIMAL ) ) + - NULLIF ( 10, ( + 43 ) / 34 * - ( + SUM( ALL + NULLIF ( + + 34, - 15 ) ) ) + + ( - 2 ) ) THEN + 16 WHEN + 71 * + 22 - + + ( 33 ) + + + 24 - - 96 THEN NULL ELSE NULL END - - - 25 AS col2
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-6349
SELECT - 60, CASE + COUNT ( * ) WHEN + ( - - CAST ( + + 66 AS REAL ) ) + - NULLIF ( 10, ( + 43 ) / 34 * - ( + SUM ( ALL + NULLIF ( + + 34, - 15 ) ) ) + + ( - 2 ) ) THEN + 16 WHEN + 71 * + 22 - + + ( 33 ) + + + 24 - - 96 THEN NULL ELSE NULL END - - - 25 AS col2
----
-60
NULL

query I rowsort
SELECT ALL ( - ( + 4 ) ) + - 18 AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6351
SELECT COUNT( * ) + - COUNT( * ) DIV + ( - + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-6351
SELECT COUNT ( * ) + - COUNT ( * ) / + ( - + 91 )
----
1

onlyif mysql # DIV for integer division: 
query III rowsort label-6352
SELECT ALL 15 col1, - NULLIF ( - + 33, 99 ) + + 98 DIV - 46 AS col1, + 27 AS col0
----
15
31
27

skipif mysql # not compatible
query III rowsort label-6352
SELECT ALL 15 col1, - NULLIF ( - + 33, 99 ) + + 98 / - 46 AS col1, + 27 AS col0
----
15
31
27

query I rowsort
SELECT 37 * - + 30
----
-1110

query II rowsort
SELECT 41 AS col2, + 24 col2
----
41
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT SUM( ALL 73 )
----
73

skipif mysql # not compatible
query I rowsort label-6355
SELECT SUM ( ALL 73 )
----
73

query I rowsort
SELECT ALL + 95 + + 18 + + ( + 33 ) * + 32 AS col2
----
1169

query I rowsort
SELECT COALESCE ( + 38, 35 * - 16, + ( + 27 ), - 7 )
----
38

query I rowsort
SELECT 27 * - + 24 * + 9 * + 91
----
-530712

query I rowsort
SELECT ALL 25 * 99 + - - 67 * - + 48 - + 88 col0
----
-829

query II rowsort
SELECT - 94 AS col2, + 54 + - 44 AS col1
----
-94
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL SUM( ALL + 7 ) * - - 1 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL SUM ( ALL + 7 ) * - - 1 AS col2
----
7

query I rowsort
SELECT DISTINCT ( 49 ) + - 9
----
40

query I rowsort
SELECT ALL - + 65 col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT - NULLIF ( 78, - 4 ) - - COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - NULLIF ( 78, - 4 ) - - COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT + + ( + 41 )
----
41

query I rowsort
SELECT + 88 * + + 9 AS col2
----
792

query I rowsort
SELECT 76 - + + 63 AS col0
----
13

query I rowsort
SELECT + 10 * - ( - + 8 ) + - 43 + 34
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT ALL 54 DIV 81 * + - 40 * 91 + 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL 54 / 81 * + - 40 * 91 + 16 AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6370
SELECT + 22 DIV - + 74 + 7 col2, - COUNT( * ) AS col1
----
7
-1

skipif mysql # not compatible
query II rowsort label-6370
SELECT + 22 / - + 74 + 7 col2, - COUNT ( * ) AS col1
----
7
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6371
SELECT 86 / - - CAST( NULL AS DECIMAL ) AS col0, 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6371
SELECT 86 / - - CAST ( NULL AS REAL ) AS col0, 0 AS col2
----
NULL
0

query I rowsort
SELECT ALL + 53 * + - ( + 52 ) * + 79 * - 8 AS col0
----
1741792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6373
SELECT ALL - MIN( ALL - + 74 ) * - COALESCE ( + 92, 74, - 21 * - 14 ) AS col1, + 30 DIV + + 71 * - 22
----
-6808
0

skipif mysql # not compatible
query II rowsort label-6373
SELECT ALL - MIN ( ALL - + 74 ) * - COALESCE ( + 92, 74, - 21 * - 14 ) AS col1, + 30 / + + 71 * - 22
----
-6808
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT 96 - + 41 * + - COUNT( * ) * - + 3 + - 17 * + + 70 + + 3 AS col1
----
-1214

skipif mysql # not compatible
query I rowsort label-6374
SELECT 96 - + 41 * + - COUNT ( * ) * - + 3 + - 17 * + + 70 + + 3 AS col1
----
-1214

query I rowsort
SELECT DISTINCT 36 * - + 96 AS col1
----
-3456

query I rowsort
SELECT 92 * + 42 AS col2
----
3864

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + 10 * - + ( - COUNT( * ) ) + + 91
----
101

skipif mysql # not compatible
query I rowsort label-6377
SELECT + 10 * - + ( - COUNT ( * ) ) + + 91
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT COUNT( * ) - + 48 + MIN( DISTINCT + - 64 ) * + 92 + + 33 AS col2
----
-5902

skipif mysql # not compatible
query I rowsort label-6378
SELECT COUNT ( * ) - + 48 + MIN ( DISTINCT + - 64 ) * + 92 + + 33 AS col2
----
-5902

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL COUNT( * ) + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL COUNT ( * ) + 7 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6380
SELECT DISTINCT SUM( ALL + - 46 ), - 19 AS col1
----
-46
-19

skipif mysql # not compatible
query II rowsort label-6380
SELECT DISTINCT SUM ( ALL + - 46 ), - 19 AS col1
----
-46
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL + 55 + - 54 * + ( + SUM( - 23 ) ) + + + CASE + + 17 WHEN - MIN( - 30 ) THEN NULL WHEN - 15 * + - 36 * + + 53 THEN - 30 ELSE 88 * 93 END + + - 78
----
9403

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + 55 + - 54 * + ( + SUM ( - 23 ) ) + + + CASE + + 17 WHEN - MIN ( - 30 ) THEN NULL WHEN - 15 * + - 36 * + + 53 THEN - 30 ELSE 88 * 93 END + + - 78
----
9403

query I rowsort
SELECT 18 * + 11
----
198

onlyif mysql # aggregate syntax: 
query II rowsort label-6383
SELECT DISTINCT + COALESCE ( COUNT( + 23 ), - - 15 * + COUNT( * ) + + - NULLIF ( - + 70, ( 70 ) ) * - 11 + - COUNT( * ) ) + + 90 * - 1 * - - 71 AS col2, COUNT( * )
----
-6389
1

skipif mysql # not compatible
query II rowsort label-6383
SELECT DISTINCT + COALESCE ( COUNT ( + 23 ), - - 15 * + COUNT ( * ) + + - NULLIF ( - + 70, ( 70 ) ) * - 11 + - COUNT ( * ) ) + + 90 * - 1 * - - 71 AS col2, COUNT ( * )
----
-6389
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6384
SELECT ALL SUM( DISTINCT COALESCE ( - 89, + CAST( NULL AS SIGNED ) ) ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL SUM ( DISTINCT COALESCE ( - 89, + CAST ( NULL AS INTEGER ) ) ) col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT 37 DIV + 14
----
2

skipif mysql # not compatible
query I rowsort label-6385
SELECT 37 / + 14
----
2

query I rowsort
SELECT 8 + COALESCE ( + 2, - + 18 * - 86, - 54 ) AS col1
----
10

query I rowsort
SELECT 17 + + ( - - 95 ) * + 88
----
8377

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT - 70 + 79 + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-6388
SELECT - 70 + 79 + + COUNT ( * )
----
10

query I rowsort
SELECT ALL + 33 + + + 19 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6390
SELECT 42 + + CAST( - NULLIF ( - 48, 15 ) AS SIGNED ) + - 67 + - + COUNT( - 93 ) * 66 - - 22 + - CASE WHEN NOT + 28 IS NULL THEN - 53 ELSE + - CASE - 65 WHEN - 11 THEN - + COUNT( * ) WHEN + 11 THEN NULL ELSE NULL END * + 43 * + 34 * - - 60 * - 73 + 53 + - 44 END * + - 15 + 56 * - ( - + 31 ) AS col0
----
920

skipif mysql # not compatible
query I rowsort label-6390
SELECT 42 + + CAST ( - NULLIF ( - 48, 15 ) AS INTEGER ) + - 67 + - + COUNT ( - 93 ) * 66 - - 22 + - CASE WHEN NOT + 28 IS NULL THEN - 53 ELSE + - CASE - 65 WHEN - 11 THEN - + COUNT ( * ) WHEN + 11 THEN NULL ELSE NULL END * + 43 * + 34 * - - 60 * - 73 + 53 + - 44 END * + - 15 + 56 * - ( - + 31 ) AS col0
----
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6391
SELECT ALL - + COUNT( * ) + + 22 - 0 DIV - CAST( + 19 AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - + COUNT ( * ) + + 22 - 0 / - CAST ( + 19 AS INTEGER ) AS col1
----
21

query I rowsort
SELECT - + 88 col0
----
-88

query I rowsort
SELECT ALL - ( + 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT + + 3 + + COUNT( DISTINCT 19 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6394
SELECT + + 3 + + COUNT ( DISTINCT 19 ) AS col1
----
4

query I rowsort
SELECT + 33 + 75 + 93
----
201

query I rowsort
SELECT ALL + + ( - 82 )
----
-82

query II rowsort
SELECT + - 76 * - - 18 col1, 0 AS col1
----
-1368
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6398
SELECT DISTINCT SUM( + + 29 ) * + + COUNT( * ) * + 96, - 25 col1
----
2784
-25

skipif mysql # not compatible
query II rowsort label-6398
SELECT DISTINCT SUM ( + + 29 ) * + + COUNT ( * ) * + 96, - 25 col1
----
2784
-25

query II rowsort
SELECT ALL + ( - 29 ) AS col1, - 17
----
-29
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT + - COUNT( * ) + 83 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6400
SELECT + - COUNT ( * ) + 83 AS col1
----
82

query I rowsort
SELECT + 89 * + 25 * - + ( 18 )
----
-40050

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT ALL - 53 * - 15 + - - MAX( ALL - 11 )
----
784

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL - 53 * - 15 + - - MAX ( ALL - 11 )
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT + COUNT( + 29 )
----
1

skipif mysql # not compatible
query I rowsort label-6403
SELECT + COUNT ( + 29 )
----
1

query I rowsort
SELECT + ( + - 37 )
----
-37

query I rowsort
SELECT CASE + AVG ( ALL - 41 ) WHEN + 92 - + ( - - 34 ) THEN 51 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6406
SELECT 31 * - 12 DIV + CAST( + COUNT( * ) AS SIGNED ) DIV - COUNT( * ) + + 86 * ( - 33 ), 4 + - - 21 + - 15 + 76 AS col1
----
-2466
86

skipif mysql # not compatible
query II rowsort label-6406
SELECT 31 * - 12 / + CAST ( + COUNT ( * ) AS INTEGER ) / - COUNT ( * ) + + 86 * ( - 33 ), 4 + - - 21 + - 15 + 76 AS col1
----
-2466
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6407
SELECT + 29 * + - CASE + COALESCE ( 42, - 66 - - 81 ) WHEN + 58 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 13 / - NULLIF ( 3, - + COALESCE ( 2, + + 58, - 15 ) ) ELSE 77 * + 15 - CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6407
SELECT + 29 * + - CASE + COALESCE ( 42, - 66 - - 81 ) WHEN + 58 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 13 / - NULLIF ( 3, - + COALESCE ( 2, + + 58, - 15 ) ) ELSE 77 * + 15 - CAST ( NULL AS INTEGER ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT ALL ( COALESCE ( - ( + 43 ), + - 88 * + 65 * - 28 + - COUNT( * ) ) ) * + + 76 + - 46 + 73 * - 16
----
-4482

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL ( COALESCE ( - ( + 43 ), + - 88 * + 65 * - 28 + - COUNT ( * ) ) ) * + + 76 + - 46 + 73 * - 16
----
-4482

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT COUNT( - - 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6409
SELECT COUNT ( - - 49 ) AS col1
----
1

query I rowsort
SELECT ALL + COALESCE ( 52, - + 66 ) * + 67 + + 48 + + 61 AS col0
----
3593

query I rowsort
SELECT + 99 + - 91 AS col0
----
8

query II rowsort
SELECT - 58 * + + 57 * 91, + 7 AS col0
----
-300846
7

query I rowsort
SELECT ALL + 44 * 28 * - 66 + - + 37 * + + 50 * 93 AS col1
----
-253362

query I rowsort
SELECT - ( + 95 ) AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT + 63 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT + 63 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT 69 * 48 * 98 - - COUNT( * ) + + - 97
----
324480

skipif mysql # not compatible
query I rowsort label-6416
SELECT 69 * 48 * 98 - - COUNT ( * ) + + - 97
----
324480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT - 45 + - CAST( - - 92 AS SIGNED )
----
-137

skipif mysql # not compatible
query I rowsort label-6417
SELECT - 45 + - CAST ( - - 92 AS INTEGER )
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT - COALESCE ( NULLIF ( + 56, MAX( 28 ) ), COUNT( * ), 25 ) * + + 99 - + 68 + + 86 - + - 67 AS col1
----
-5459

skipif mysql # not compatible
query I rowsort label-6418
SELECT - COALESCE ( NULLIF ( + 56, MAX ( 28 ) ), COUNT ( * ), 25 ) * + + 99 - + 68 + + 86 - + - 67 AS col1
----
-5459

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ALL CASE - 34 WHEN + + COUNT( * ) * 68 * - 3 THEN NULL WHEN 78 THEN NULL ELSE - 27 END
----
-27

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL CASE - 34 WHEN + + COUNT ( * ) * 68 * - 3 THEN NULL WHEN 78 THEN NULL ELSE - 27 END
----
-27

query I rowsort
SELECT ALL - 93 * 71
----
-6603

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6421
SELECT DISTINCT - COUNT( * ) - + - ( 24 ) * - 43 / - 65 + + + MIN( + - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT - COUNT ( * ) - + - ( 24 ) * - 43 / - 65 + + + MIN ( + - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - - 49 * 17 AS col2
----
833

query I rowsort
SELECT DISTINCT + - 93 * + 31 + + 74 * 51 * + 73 + + + 38
----
272657

query I rowsort
SELECT - 61 * - 19 AS col2
----
1159

query I rowsort
SELECT - + 66 + + - 13
----
-79

query I rowsort
SELECT ALL + - 1 * - 3
----
3

query I rowsort
SELECT - ( + + 36 ) AS col0
----
-36

query I rowsort
SELECT + - 91 + + + 0 AS col0
----
-91

query I rowsort
SELECT ALL - + 51 * + 13 AS col2
----
-663

query I rowsort
SELECT - + 22 * 98 + + 64 * - 85 + ( - - 72 ) AS col2
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT + COALESCE ( + COUNT( DISTINCT 16 ), 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6431
SELECT + COALESCE ( + COUNT ( DISTINCT 16 ), 63 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT + MIN( DISTINCT - ( COALESCE ( - 90, - + 80 + 19 + + 3 + 65 * 84 * ( + 58 ) + 38 ) ) )
----
90

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT + MIN ( DISTINCT - ( COALESCE ( - 90, - + 80 + 19 + + 3 + 65 * 84 * ( + 58 ) + 38 ) ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL + + SUM( DISTINCT - - 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL + + SUM ( DISTINCT - - 79 ) AS col1
----
79

query I rowsort
SELECT - 33 * - 58 AS col2
----
1914

onlyif mysql # DIV for integer division: 
query I rowsort label-6435
SELECT ALL 73 DIV 56 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL 73 / 56 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT + - 39 DIV COUNT( * ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-6436
SELECT + - 39 / COUNT ( * ) col0
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6437
SELECT CAST( NULL AS DECIMAL ) AS col2, 71 * 83
----
NULL
5893

skipif mysql # not compatible
query II rowsort label-6437
SELECT CAST ( NULL AS REAL ) AS col2, 71 * 83
----
NULL
5893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6438
SELECT + CASE - - COUNT( * ) WHEN - 6 THEN - SUM( + 29 ) ELSE 80 - 83 + + MAX( ALL 0 ) + + 37 / - - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT + CASE - - COUNT ( * ) WHEN - 6 THEN - SUM ( + 29 ) ELSE 80 - 83 + + MAX ( ALL 0 ) + + 37 / - - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT CAST( - 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-6439
SELECT CAST ( - 32 AS INTEGER )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6440
SELECT MIN( + 53 ) * + SUM( ALL + + CASE 12 WHEN - 66 THEN NULL ELSE - 54 END ) / CAST( NULL AS SIGNED ) - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT MIN ( + 53 ) * + SUM ( ALL + + CASE 12 WHEN - 66 THEN NULL ELSE - 54 END ) / CAST ( NULL AS INTEGER ) - 76 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6441
SELECT CAST( - 33 AS SIGNED ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6441
SELECT CAST ( - 33 AS INTEGER ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6442
SELECT CAST( + 86 AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6442
SELECT CAST ( + 86 AS INTEGER ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6443
SELECT - 88 + CAST( NULL AS SIGNED ) + + + 5 * + 55 * 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT - 88 + CAST ( NULL AS INTEGER ) + + + 5 * + 55 * 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT ALL MAX( 23 ) DIV + + 41 + - - 71 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL MAX ( 23 ) / + + 41 + - - 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + NULLIF ( - SUM( - 90 ), + + 31 * + 44 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6445
SELECT + NULLIF ( - SUM ( - 90 ), + + 31 * + 44 ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6446
SELECT + 82 - - COALESCE ( - CAST( + COALESCE ( + NULLIF ( - + CAST( - 40 AS SIGNED ), - - COUNT( * ) ), + 87 ) AS SIGNED ), - 79, - 63 * - 92 * + 12 ) + 18 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6446
SELECT + 82 - - COALESCE ( - CAST ( + COALESCE ( + NULLIF ( - + CAST ( - 40 AS INTEGER ), - - COUNT ( * ) ), + 87 ) AS INTEGER ), - 79, - 63 * - 92 * + 12 ) + 18 AS col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6447
SELECT + COUNT( * ), + 37 * + COALESCE ( - - 60, + 68 - 37 ) * + COUNT( * ) * + + COUNT( * ) AS col2
----
1
2220

skipif mysql # not compatible
query II rowsort label-6447
SELECT + COUNT ( * ), + 37 * + COALESCE ( - - 60, + 68 - 37 ) * + COUNT ( * ) * + + COUNT ( * ) AS col2
----
1
2220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6448
SELECT ALL + ( + 80 ) * + COUNT( * ) * COALESCE ( - 47, + 87 ) * - - 19 + - COUNT( * ) * - + 3 + 6 + + 70 DIV 64 + 17
----
-71413

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + ( + 80 ) * + COUNT ( * ) * COALESCE ( - 47, + 87 ) * - - 19 + - COUNT ( * ) * - + 3 + 6 + + 70 / 64 + 17
----
-71413

query I rowsort
SELECT - 46 * + 2 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6450
SELECT + CAST( NULL AS SIGNED ) AS col0, + 52 + - 44 + - COUNT( * ) * - 93
----
NULL
101

skipif mysql # not compatible
query II rowsort label-6450
SELECT + CAST ( NULL AS INTEGER ) AS col0, + 52 + - 44 + - COUNT ( * ) * - 93
----
NULL
101

onlyif mysql # DIV for integer division: 
query I rowsort label-6451
SELECT + 64 DIV + 4
----
16

skipif mysql # not compatible
query I rowsort label-6451
SELECT + 64 / + 4
----
16

query I rowsort
SELECT + 22 + - - 92 AS col2
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT ALL + 91, 6 * + 62 * - MAX( + 36 ) AS col2
----
91
-13392

skipif mysql # not compatible
query II rowsort label-6453
SELECT ALL + 91, 6 * + 62 * - MAX ( + 36 ) AS col2
----
91
-13392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6454
SELECT SUM( - 83 ) * 88 DIV 44 * 36 + 9 + 34 + COUNT( * ) + - - COUNT( * ) * + + 18
----
-5914

skipif mysql # not compatible
query I rowsort label-6454
SELECT SUM ( - 83 ) * 88 / 44 * 36 + 9 + 34 + COUNT ( * ) + - - COUNT ( * ) * + + 18
----
-5914

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6455
SELECT - 4 - CASE - 85 WHEN 4 THEN NULL WHEN + CAST( NULL AS DECIMAL ) / 87 * - 74 THEN - 90 * - 0 ELSE - 34 * - + 54 - MIN( DISTINCT 2 ) END AS col0
----
-1838

skipif mysql # not compatible
query I rowsort label-6455
SELECT - 4 - CASE - 85 WHEN 4 THEN NULL WHEN + CAST ( NULL AS REAL ) / 87 * - 74 THEN - 90 * - 0 ELSE - 34 * - + 54 - MIN ( DISTINCT 2 ) END AS col0
----
-1838

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT ALL 28 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL 28 / - - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT - - 3 - - 79 * - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - - 3 - - 79 * - COUNT ( * )
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT ALL 49 DIV + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL 49 / + 66 AS col0
----
0

query II rowsort
SELECT DISTINCT + 89, 3 AS col1
----
89
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6460
SELECT DISTINCT + 69 col0, COUNT( * ) AS col1
----
69
1

skipif mysql # not compatible
query II rowsort label-6460
SELECT DISTINCT + 69 col0, COUNT ( * ) AS col1
----
69
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6461
SELECT + 68 + - COUNT( * ) + + 3 + - 59 + + - 68 DIV - COUNT( * ) col0, - ( 0 )
----
79
0

skipif mysql # not compatible
query II rowsort label-6461
SELECT + 68 + - COUNT ( * ) + + 3 + - 59 + + - 68 / - COUNT ( * ) col0, - ( 0 )
----
79
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6462
SELECT - 80 AS col2, 36 + + 93 + - - 77 + + COUNT( * ) * - COUNT( ALL - 46 ) + - 86
----
-80
119

skipif mysql # not compatible
query II rowsort label-6462
SELECT - 80 AS col2, 36 + + 93 + - - 77 + + COUNT ( * ) * - COUNT ( ALL - 46 ) + - 86
----
-80
119

query I rowsort
SELECT 74 + + - 5 * + - 75 - - - 13
----
436

query II rowsort
SELECT ALL 42 AS col2, - 55
----
42
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT DISTINCT MIN( ALL - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT MIN ( ALL - 30 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6466
SELECT ALL - 10 AS col0, - CAST( NULL AS SIGNED ) col2
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-6466
SELECT ALL - 10 AS col0, - CAST ( NULL AS INTEGER ) col2
----
-10
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6467
SELECT DISTINCT - 38 + + MAX( DISTINCT - 64 ) * + + 40 * - 32 * - 32 AS col2, 39 * NULLIF ( - - 58, 45 ) + 30
----
-2621478
2292

skipif mysql # not compatible
query II rowsort label-6467
SELECT DISTINCT - 38 + + MAX ( DISTINCT - 64 ) * + + 40 * - 32 * - 32 AS col2, 39 * NULLIF ( - - 58, 45 ) + 30
----
-2621478
2292

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT MIN( ( - 99 ) ) + - ( - - 14 )
----
-113

skipif mysql # not compatible
query I rowsort label-6468
SELECT MIN ( ( - 99 ) ) + - ( - - 14 )
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - MAX( ALL - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-6469
SELECT - MAX ( ALL - 81 )
----
81

query I rowsort
SELECT ALL - CASE + 49 WHEN 50 + + - 73 THEN NULL ELSE - 18 END
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6471
SELECT ALL - 40 + - - 69 AS col1, + COUNT( * ) AS col2
----
29
1

skipif mysql # not compatible
query II rowsort label-6471
SELECT ALL - 40 + - - 69 AS col1, + COUNT ( * ) AS col2
----
29
1

query II rowsort
SELECT 96 + - - 88 col2, 57 AS col1
----
184
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6473
SELECT 68 DIV 95 + - COALESCE ( - 13, + + SUM( + 70 ) DIV 6 ) DIV + 36 + + 34 + MIN( DISTINCT + + 88 ) + - 68 * 13
----
-762

skipif mysql # not compatible
query I rowsort label-6473
SELECT 68 / 95 + - COALESCE ( - 13, + + SUM ( + 70 ) / 6 ) / + 36 + + 34 + MIN ( DISTINCT + + 88 ) + - 68 * 13
----
-762

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT - COUNT( * ) + - 97 - + SUM( 70 ) * - MIN( ALL + + 1 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT - COUNT ( * ) + - 97 - + SUM ( 70 ) * - MIN ( ALL + + 1 ) col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-6475
SELECT ALL + 68 + + - COUNT( * ) AS col0, 19 * + + 48
----
67
912

skipif mysql # not compatible
query II rowsort label-6475
SELECT ALL + 68 + + - COUNT ( * ) AS col0, 19 * + + 48
----
67
912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6476
SELECT 68 / 38 + + CAST( NULL AS SIGNED ) - + - 44 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT 68 / 38 + + CAST ( NULL AS INTEGER ) - + - 44 col2
----
NULL

query I rowsort
SELECT ALL - 92 col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT DISTINCT - 23 + - COUNT( ALL 5 )
----
-24

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT - 23 + - COUNT ( ALL 5 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6479
SELECT 40 + + - COUNT( * ) AS col2, - 90 * + + CAST( + COUNT( DISTINCT + 20 ) AS SIGNED ) + - - 23 * - CAST( + 91 AS SIGNED ) AS col2
----
39
-2183

skipif mysql # not compatible
query II rowsort label-6479
SELECT 40 + + - COUNT ( * ) AS col2, - 90 * + + CAST ( + COUNT ( DISTINCT + 20 ) AS INTEGER ) + - - 23 * - CAST ( + 91 AS INTEGER ) AS col2
----
39
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL - COUNT( * ) - 30 * - + NULLIF ( + 32, + 81 + - - MIN( ALL - - 20 ) * - 19 ) * - + 93
----
-89281

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL - COUNT ( * ) - 30 * - + NULLIF ( + 32, + 81 + - - MIN ( ALL - - 20 ) * - 19 ) * - + 93
----
-89281

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT 46 * - AVG ( + + NULLIF ( + 33, + 74 ) ) * - CASE COUNT( 16 ) WHEN - COUNT( * ) THEN - + 27 * 23 * + 22 WHEN - 68 * + 82 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6481
SELECT 46 * - AVG ( + + NULLIF ( + 33, + 74 ) ) * - CASE COUNT ( 16 ) WHEN - COUNT ( * ) THEN - + 27 * 23 * + 22 WHEN - 68 * + 82 THEN NULL END
----
NULL

query I rowsort
SELECT 21 * 55 AS col1
----
1155

query I rowsort
SELECT ALL 87 - + + 78 - 59
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT 52 + - - CAST( + + 86 AS SIGNED )
----
138

skipif mysql # not compatible
query I rowsort label-6484
SELECT 52 + - - CAST ( + + 86 AS INTEGER )
----
138

query I rowsort
SELECT DISTINCT 22 * + 63 * - - 79 * - + 76
----
-8321544

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT DISTINCT - COUNT( * ) * + ( - - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - COUNT ( * ) * + ( - - 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT NULLIF ( COUNT( * ), - 64 * 69 + - 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6487
SELECT NULLIF ( COUNT ( * ), - 64 * 69 + - 75 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT - ( - + MIN( ALL - 52 ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6488
SELECT - ( - + MIN ( ALL - 52 ) ) AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6489
SELECT - CAST( NULL AS SIGNED ) + + CASE 36 WHEN - ( - + 28 ) + 20 THEN 33 * - MIN( 48 ) * - 53 + + CAST( CASE + 24 WHEN - + 63 THEN NULL WHEN NULLIF ( - 38, 28 ) * + + 12 + 69 * 73 THEN - - 90 * 9 END AS SIGNED ) WHEN - MAX( ALL + 22 ) + + + COUNT( * ) + 16 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT - CAST ( NULL AS INTEGER ) + + CASE 36 WHEN - ( - + 28 ) + 20 THEN 33 * - MIN ( 48 ) * - 53 + + CAST ( CASE + 24 WHEN - + 63 THEN NULL WHEN NULLIF ( - 38, 28 ) * + + 12 + 69 * 73 THEN - - 90 * 9 END AS INTEGER ) WHEN - MAX ( ALL + 22 ) + + + COUNT ( * ) + 16 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6490
SELECT 9 DIV + 77 + 36 + MAX( 34 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6490
SELECT 9 / + 77 + 36 + MAX ( 34 ) AS col1
----
70

query I rowsort
SELECT 96 * + + ( - 66 ) AS col0
----
-6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6492
SELECT ALL CASE - 92 WHEN - 95 THEN - - 21 WHEN - + CAST( NULL AS SIGNED ) THEN + COUNT( * ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL CASE - 92 WHEN - 95 THEN - - 21 WHEN - + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6493
SELECT 88 DIV - + COUNT( ALL - 63 )
----
-88

skipif mysql # not compatible
query I rowsort label-6493
SELECT 88 / - + COUNT ( ALL - 63 )
----
-88

query II rowsort
SELECT ALL 49 + - 36 AS col1, + 75 + - 54
----
13
21

query I rowsort
SELECT + 88 * + - 89 + - 21 AS col1
----
-7853

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT DISTINCT + 78 * 60 * + 13 * 71 + + 69 + - 28 * - 29 + - + 28 + + - 70 * SUM( ALL - 7 ) + 69
----
4321052

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT + 78 * 60 * + 13 * 71 + + 69 + - 28 * - 29 + - + 28 + + - 70 * SUM ( ALL - 7 ) + 69
----
4321052

query I rowsort
SELECT ALL + - 71 + - 22
----
-93

query I rowsort
SELECT ALL - 8 + - ( + + 35 )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6499
SELECT + 15 DIV + 72 + + COUNT( * ) + - + COUNT( * ) + - - 25 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6499
SELECT + 15 / + 72 + + COUNT ( * ) + - + COUNT ( * ) + - - 25 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6500
SELECT - CAST( + 58 AS SIGNED ) * + 73 + COUNT( * ) - + + 51 AS col1, - 9
----
-4284
-9

skipif mysql # not compatible
query II rowsort label-6500
SELECT - CAST ( + 58 AS INTEGER ) * + 73 + COUNT ( * ) - + + 51 AS col1, - 9
----
-4284
-9

query I rowsort
SELECT 45 * + - ( 94 )
----
-4230

query I rowsort
SELECT DISTINCT 77 * - 75 AS col1
----
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT ALL - ( COUNT( DISTINCT + - 85 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL - ( COUNT ( DISTINCT + - 85 ) ) AS col1
----
-1

query I rowsort
SELECT 2 * - 55 * + 98 * - + 61
----
657580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6505
SELECT CAST( NULL AS SIGNED ) + + 25 + 83 - + NULLIF ( - 89, 69 + + 71 / - COUNT( * ) * + 80 / + 41 + - 41 ) * + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT CAST ( NULL AS INTEGER ) + + 25 + 83 - + NULLIF ( - 89, 69 + + 71 / - COUNT ( * ) * + 80 / + 41 + - 41 ) * + - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT 73 * 56 / CASE 88 WHEN - - 66 / 38 + + 34 THEN NULL WHEN - 9 THEN NULL WHEN - ( 95 ) THEN + 51 * COUNT( * ) END + + ( + 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT 73 * 56 / CASE 88 WHEN - - 66 / 38 + + 34 THEN NULL WHEN - 9 THEN NULL WHEN - ( 95 ) THEN + 51 * COUNT ( * ) END + + ( + 26 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT 56 * + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-6507
SELECT 56 * + COUNT ( * )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6509
SELECT - 18 DIV - 9 + + COALESCE ( - 40, - 17 * + COUNT( * ) * - 46 + CASE NULLIF ( + 61, + 84 ) WHEN - 17 THEN + SUM( ALL 70 ) + ( - + 17 ) * + 17 END * + SUM( ALL CAST( NULL AS SIGNED ) ) )
----
-38

skipif mysql # not compatible
query I rowsort label-6509
SELECT - 18 / - 9 + + COALESCE ( - 40, - 17 * + COUNT ( * ) * - 46 + CASE NULLIF ( + 61, + 84 ) WHEN - 17 THEN + SUM ( ALL 70 ) + ( - + 17 ) * + 17 END * + SUM ( ALL CAST ( NULL AS INTEGER ) ) )
----
-38

query I rowsort
SELECT ALL - 51 * 9 - 3 AS col0
----
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6511
SELECT ALL ( + 30 ) * + NULLIF ( + 54, MIN( + 4 ) ) * - 84 + + CAST( NULL AS SIGNED ) - + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL ( + 30 ) * + NULLIF ( + 54, MIN ( + 4 ) ) * - 84 + + CAST ( NULL AS INTEGER ) - + 14 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT - 93 DIV 87 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6512
SELECT - 93 / 87 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT - 69 - + 25 * COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-6513
SELECT - 69 - + 25 * COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-6514
SELECT ALL + 26 AS col2, - 49 + - 80 + + - COUNT( * ) * + 95 * - 39 * - COUNT( 53 )
----
26
-3834

skipif mysql # not compatible
query II rowsort label-6514
SELECT ALL + 26 AS col2, - 49 + - 80 + + - COUNT ( * ) * + 95 * - 39 * - COUNT ( 53 )
----
26
-3834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6515
SELECT + 73 * CAST( 81 AS SIGNED ) + - 65 AS col1
----
5848

skipif mysql # not compatible
query I rowsort label-6515
SELECT + 73 * CAST ( 81 AS INTEGER ) + - 65 AS col1
----
5848

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6516
SELECT - 57 DIV - ( - 39 ) AS col2, NULLIF ( + + 45, - + COUNT( * ) + - - 4 ) * - + ( 30 ) AS col2
----
-1
-1350

skipif mysql # not compatible
query II rowsort label-6516
SELECT - 57 / - ( - 39 ) AS col2, NULLIF ( + + 45, - + COUNT ( * ) + - - 4 ) * - + ( 30 ) AS col2
----
-1
-1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6517
SELECT DISTINCT + COUNT( * ) DIV - 40 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT + COUNT ( * ) / - 40 * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - 27 + + + 68
----
41

query I rowsort
SELECT DISTINCT - - 57 + - + 76
----
-19

query II rowsort
SELECT DISTINCT + + 15 col2, - 39
----
15
-39

query I rowsort
SELECT - + CASE - - 57 WHEN + 7 * + - 35 THEN NULL WHEN - 10 THEN - 79 * 38 / + 64 + 77 + - 96 + + + 64 END
----
NULL

query II rowsort
SELECT + 32, - ( 93 ) col2
----
32
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6523
SELECT ALL + 49 + COUNT( * ) - - - 57 * + COALESCE ( - COUNT( * ), - CAST( - NULLIF ( 0, 40 ) AS SIGNED ), 85 * 33 * + 65 + - 53 + COUNT( * ) * + 4 ) col2
----
107

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + 49 + COUNT ( * ) - - - 57 * + COALESCE ( - COUNT ( * ), - CAST ( - NULLIF ( 0, 40 ) AS INTEGER ), 85 * 33 * + 65 + - 53 + COUNT ( * ) * + 4 ) col2
----
107

query I rowsort
SELECT + 86 * 80 AS col0
----
6880

query I rowsort
SELECT ALL - + 15 + NULLIF ( 68, 32 ) * + 57 * - 87
----
-337227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6526
SELECT - CAST( NULL AS SIGNED ) AS col0, - 75 AS col2
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-6526
SELECT - CAST ( NULL AS INTEGER ) AS col0, - 75 AS col2
----
NULL
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6527
SELECT - 39 + + + COUNT( + 4 ) + - 41 DIV - ( - - ( - 15 ) ) + - + 31 * - 39 col2
----
1169

skipif mysql # not compatible
query I rowsort label-6527
SELECT - 39 + + + COUNT ( + 4 ) + - 41 / - ( - - ( - 15 ) ) + - + 31 * - 39 col2
----
1169

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT DISTINCT + SUM( + + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT + SUM ( + + 93 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6529
SELECT ALL CASE - 18 WHEN 61 / + 15 * - NULLIF ( SUM( + 66 ), - 46 ) * - 72 THEN NULL WHEN - + 27 + - CAST( NULL AS DECIMAL ) * 74 THEN + + 28 + AVG ( - COALESCE ( + + 42, ( + 43 ) - - 89 + 40 ) ) END + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL CASE - 18 WHEN 61 / + 15 * - NULLIF ( SUM ( + 66 ), - 46 ) * - 72 THEN NULL WHEN - + 27 + - CAST ( NULL AS REAL ) * 74 THEN + + 28 + AVG ( - COALESCE ( + + 42, ( + 43 ) - - 89 + 40 ) ) END + + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT - 52 + + + 58 + - 10 + + MAX( ALL + 19 ) * 24 AS col1
----
452

skipif mysql # not compatible
query I rowsort label-6530
SELECT - 52 + + + 58 + - 10 + + MAX ( ALL + 19 ) * 24 AS col1
----
452

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6531
SELECT + + 77 - - 50 + + + 71 * + CAST( NULL AS DECIMAL ) * - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT + + 77 - - 50 + + + 71 * + CAST ( NULL AS REAL ) * - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL + 97 + - COUNT( * ) - + 68
----
28

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL + 97 + - COUNT ( * ) - + 68
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT + - COUNT( * ) + + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6533
SELECT + - COUNT ( * ) + + - COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6534
SELECT DISTINCT COUNT( * ) - - 39 + + 89 + 38 AS col2, + 85
----
167
85

skipif mysql # not compatible
query II rowsort label-6534
SELECT DISTINCT COUNT ( * ) - - 39 + + 89 + 38 AS col2, + 85
----
167
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6535
SELECT + 59 + + CAST( - + 69 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-6535
SELECT + 59 + + CAST ( - + 69 AS INTEGER )
----
-10

query I rowsort
SELECT - 71 * - 34
----
2414

query I rowsort
SELECT + 35 + + - 87
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT + 47 * - 7 * - SUM( - + 72 ) AS col1
----
-23688

skipif mysql # not compatible
query I rowsort label-6538
SELECT + 47 * - 7 * - SUM ( - + 72 ) AS col1
----
-23688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6539
SELECT ALL MAX( ALL CAST( ( - 70 ) AS SIGNED ) ) * + CAST( NULL AS SIGNED ) * 46 + - + 16 + - 45 + - CAST( + COALESCE ( + + 64, + 46 * - + 24 - CAST( NULL AS SIGNED ) + + - NULLIF ( 29, - - 30 + - - 17 ) ) AS SIGNED ) + + CAST( 2 AS SIGNED ) * - 8 * + + CAST( NULL AS DECIMAL ) + + - 61 * 81 * + 18 + + 54 + + COUNT( * ) - 88 / + 26 * - - 4 * - - 94 * - - 61 + - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL MAX ( ALL CAST ( ( - 70 ) AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) * 46 + - + 16 + - 45 + - CAST ( + COALESCE ( + + 64, + 46 * - + 24 - CAST ( NULL AS INTEGER ) + + - NULLIF ( 29, - - 30 + - - 17 ) ) AS INTEGER ) + + CAST ( 2 AS INTEGER ) * - 8 * + + CAST ( NULL AS REAL ) + + - 61 * 81 * + 18 + + 54 + + COUNT ( * ) - 88 / + 26 * - - 4 * - - 94 * - - 61 + - + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6540
SELECT ALL CAST( NULL AS SIGNED ) * MIN( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL CAST ( NULL AS INTEGER ) * MIN ( 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - NULLIF ( + COUNT( * ), - MIN( ALL + 40 ) * + + 4 - + - 42 ) + + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6541
SELECT - NULLIF ( + COUNT ( * ), - MIN ( ALL + 40 ) * + + 4 - + - 42 ) + + + COUNT ( * )
----
0

query I rowsort
SELECT + 17 * + + 91
----
1547

query I rowsort
SELECT + ( 86 ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT + CAST( - + 83 AS SIGNED ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-6544
SELECT + CAST ( - + 83 AS INTEGER ) col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - MAX( + + 40 ) * + 28 + + MIN( + NULLIF ( + - 69, - 92 ) ) AS col1
----
-1189

skipif mysql # not compatible
query I rowsort label-6545
SELECT - MAX ( + + 40 ) * + 28 + + MIN ( + NULLIF ( + - 69, - 92 ) ) AS col1
----
-1189

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6546
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col1, - 41 * + ( - 6 ) AS col2
----
NULL
246

skipif mysql # not compatible
query II rowsort label-6546
SELECT ( - CAST ( NULL AS REAL ) ) AS col1, - 41 * + ( - 6 ) AS col2
----
NULL
246

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT - NULLIF ( 6, 72 + - + ( + - COUNT( * ) ) * + 78 ) * - + ( - 22 )
----
-132

skipif mysql # not compatible
query I rowsort label-6547
SELECT - NULLIF ( 6, 72 + - + ( + - COUNT ( * ) ) * + 78 ) * - + ( - 22 )
----
-132

query II rowsort
SELECT + ( + + 60 ) AS col0, - 98 + - + 76
----
60
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT - NULLIF ( + CASE + 56 WHEN - 97 THEN - 73 + + ( + 92 ) ELSE NULL END, + MAX( 51 ) ) / + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT - NULLIF ( + CASE + 56 WHEN - 97 THEN - 73 + + ( + 92 ) ELSE NULL END, + MAX ( 51 ) ) / + 50 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT ALL + 70 DIV + 82 * 37
----
0

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL + 70 / + 82 * 37
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT + 69 * + - 43 + COUNT( * ) + + 30 + + COALESCE ( - - ( - MIN( ALL - 82 ) ), 46 * - 82 * - 71 * - - 28 + + 94 ) - CAST( 59 AS SIGNED ) * - - 50 * 54
----
-162154

skipif mysql # not compatible
query I rowsort label-6551
SELECT + 69 * + - 43 + COUNT ( * ) + + 30 + + COALESCE ( - - ( - MIN ( ALL - 82 ) ), 46 * - 82 * - 71 * - - 28 + + 94 ) - CAST ( 59 AS INTEGER ) * - - 50 * 54
----
-162154

query I rowsort
SELECT + 25 * - 7
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL + - COUNT( ALL + + 34 ) * 71
----
-71

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL + - COUNT ( ALL + + 34 ) * 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6554
SELECT ALL 75 * + ( COUNT( DISTINCT + + 94 ) ) * + 35 + 85 + + CAST( NULL AS SIGNED ) + + ( + ( + ( + - 32 ) ) ) + + 90 / COUNT( * ) * 55 - + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL 75 * + ( COUNT ( DISTINCT + + 94 ) ) * + 35 + 85 + + CAST ( NULL AS INTEGER ) + + ( + ( + ( + - 32 ) ) ) + + 90 / COUNT ( * ) * 55 - + + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT DISTINCT 63 * ( + CASE - 97 WHEN MIN( 6 ) THEN NULL WHEN - 61 THEN - 46 + - 48 ELSE NULL END ) * 58 + + 75 / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT 63 * ( + CASE - 97 WHEN MIN ( 6 ) THEN NULL WHEN - 61 THEN - 46 + - 48 ELSE NULL END ) * 58 + + 75 / + 6
----
NULL

query I rowsort
SELECT - 28 * - 28 AS col1
----
784

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT ALL + 17 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL + 17 / 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT MIN( DISTINCT 48 )
----
48

skipif mysql # not compatible
query I rowsort label-6558
SELECT MIN ( DISTINCT 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL - NULLIF ( - COUNT( * ), 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL - NULLIF ( - COUNT ( * ), 6 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT ALL 17 * - NULLIF ( - 2, + 1 * - NULLIF ( + + 43, - ( + COUNT( * ) ) * + + 94 + + - 88 ) + ( - CAST( NULL AS SIGNED ) ) - + COUNT( * ) ) - - ( 9 )
----
43

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL 17 * - NULLIF ( - 2, + 1 * - NULLIF ( + + 43, - ( + COUNT ( * ) ) * + + 94 + + - 88 ) + ( - CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) ) - - ( 9 )
----
43

query I rowsort
SELECT DISTINCT + 18 * 46
----
828

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6562
SELECT - 30 * - ( - 72 ) AS col0, COUNT( * ) DIV - 62 col1
----
-2160
0

skipif mysql # not compatible
query II rowsort label-6562
SELECT - 30 * - ( - 72 ) AS col0, COUNT ( * ) / - 62 col1
----
-2160
0

query I rowsort
SELECT - 47 - - 28 * - 56 * - 62
----
97169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6564
SELECT + MAX( DISTINCT + 64 ) * + 80 + + CAST( 2 AS SIGNED ) AS col2, MAX( DISTINCT + 82 )
----
5122
82

skipif mysql # not compatible
query II rowsort label-6564
SELECT + MAX ( DISTINCT + 64 ) * + 80 + + CAST ( 2 AS INTEGER ) AS col2, MAX ( DISTINCT + 82 )
----
5122
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT COUNT( * ) * 26 * - + COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-6565
SELECT COUNT ( * ) * 26 * - + COUNT ( * ) AS col2
----
-26

query II rowsort
SELECT DISTINCT 89 AS col0, 45
----
89
45

query I rowsort
SELECT ALL 64 * 45 AS col2
----
2880

query II rowsort
SELECT ALL 98 col1, - 90 AS col0
----
98
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT DISTINCT 10 DIV - + 62
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT 10 / - + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT DISTINCT 69 + + - CASE NULLIF ( - 73, + - 12 + + + 11 ) WHEN + COUNT( * ) THEN - 46 WHEN + 78 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT 69 + + - CASE NULLIF ( - 73, + - 12 + + + 11 ) WHEN + COUNT ( * ) THEN - 46 WHEN + 78 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 46 + - - ( - 63 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL 4 + - 93 + 60 + 77 - - 22 + + 32 * - - 42 + - 8 * 39 * 42 * + 76 - - COUNT( + 66 ) + SUM( - - 85 ) * SUM( DISTINCT + ( 31 ) ) AS col0
----
-991854

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL 4 + - 93 + 60 + 77 - - 22 + + 32 * - - 42 + - 8 * 39 * 42 * + 76 - - COUNT ( + 66 ) + SUM ( - - 85 ) * SUM ( DISTINCT + ( 31 ) ) AS col0
----
-991854

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6573
SELECT 93 AS col0, CAST( 11 AS SIGNED )
----
93
11

skipif mysql # not compatible
query II rowsort label-6573
SELECT 93 AS col0, CAST ( 11 AS INTEGER )
----
93
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT MAX( + 9 ) * - - 73 * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6574
SELECT MAX ( + 9 ) * - - 73 * 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6576
SELECT ALL + 4 + + - CAST( + - NULLIF ( - NULLIF ( - - 46, + 27 * - COUNT( ( + 85 ) ) + - 9 ), - - 79 ) AS SIGNED ) / - ( + + CAST( NULL AS SIGNED ) ) + + COUNT( DISTINCT - + ( 58 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL + 4 + + - CAST ( + - NULLIF ( - NULLIF ( - - 46, + 27 * - COUNT ( ( + 85 ) ) + - 9 ), - - 79 ) AS INTEGER ) / - ( + + CAST ( NULL AS INTEGER ) ) + + COUNT ( DISTINCT - + ( 58 ) )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - 84, + 14, - 40 * + - 24 - + - ( - + 40 ) - - 46 ) AS col0
----
84

query I rowsort
SELECT ALL + ( + 63 ) + - 59 AS col0
----
4

query I rowsort
SELECT 25 * - 35
----
-875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT DISTINCT - 71 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT - 71 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6581
SELECT + 77 AS col1, CASE - 83 WHEN - - MAX( 97 ) + - COUNT( * ) * + 56 / - 51 * - + ( 5 ) THEN NULL WHEN + ( COUNT( * ) ) * + 75 * ( 78 ) THEN - + 85 ELSE NULL END * + 18 * - CAST( - + 17 AS SIGNED ) * - CAST( NULLIF ( - NULLIF ( + 55, + COUNT( * ) ), - - COUNT( * ) ) AS SIGNED ) + - 85 * - CASE - COUNT( DISTINCT - - NULLIF ( 28, + - 83 ) ) WHEN 47 - - 29 * - - 45 THEN + COUNT( * ) WHEN 57 THEN NULL END
----
77
NULL

skipif mysql # not compatible
query II rowsort label-6581
SELECT + 77 AS col1, CASE - 83 WHEN - - MAX ( 97 ) + - COUNT ( * ) * + 56 / - 51 * - + ( 5 ) THEN NULL WHEN + ( COUNT ( * ) ) * + 75 * ( 78 ) THEN - + 85 ELSE NULL END * + 18 * - CAST ( - + 17 AS INTEGER ) * - CAST ( NULLIF ( - NULLIF ( + 55, + COUNT ( * ) ), - - COUNT ( * ) ) AS INTEGER ) + - 85 * - CASE - COUNT ( DISTINCT - - NULLIF ( 28, + - 83 ) ) WHEN 47 - - 29 * - - 45 THEN + COUNT ( * ) WHEN 57 THEN NULL END
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT - + COUNT( DISTINCT - 99 ) * - - 96 + + + 97 * 47 + + - COUNT( * ) + 90 * + + 19 AS col0
----
6172

skipif mysql # not compatible
query I rowsort label-6582
SELECT - + COUNT ( DISTINCT - 99 ) * - - 96 + + + 97 * 47 + + - COUNT ( * ) + 90 * + + 19 AS col0
----
6172

query I rowsort
SELECT DISTINCT - - 33 AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT DISTINCT - 88 - 18 - - 34 DIV 66 * - 67
----
-106

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT - 88 - 18 - - 34 / 66 * - 67
----
-106

query II rowsort
SELECT + - 43, + 37 AS col1
----
-43
37

query I rowsort
SELECT ALL - - 18 col0
----
18

query I rowsort
SELECT DISTINCT - 27 - - 30
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6588
SELECT - CASE - - 56 WHEN - + 67 * - 38 THEN - CAST( + 77 AS DECIMAL ) * + - 61 + + + 43 * - 38 WHEN + 74 * - 92 THEN + - COUNT( * ) END * - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT - CASE - - 56 WHEN - + 67 * - 38 THEN - CAST ( + 77 AS REAL ) * + - 61 + + + 43 * - 38 WHEN + 74 * - 92 THEN + - COUNT ( * ) END * - + 11
----
NULL

query I rowsort
SELECT - 64 * - - 97 + - 46 - + 61
----
-6315

query I rowsort
SELECT ALL + 94 - - 72 AS col1
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT CASE + - 60 WHEN 99 * - - COALESCE ( 59, - + 49 - 66 ) + + 46 - - CASE + CASE - 60 WHEN 21 * - 92 / - - COALESCE ( - 44, - + CAST( NULL AS SIGNED ) * - 3 - + 95 ) * + 17 THEN NULL ELSE CAST( - 30 AS SIGNED ) END WHEN + + 23 THEN - 58 + - - 72 + COALESCE ( 92, + - 63 ) END THEN 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT CASE + - 60 WHEN 99 * - - COALESCE ( 59, - + 49 - 66 ) + + 46 - - CASE + CASE - 60 WHEN 21 * - 92 / - - COALESCE ( - 44, - + CAST ( NULL AS INTEGER ) * - 3 - + 95 ) * + 17 THEN NULL ELSE CAST ( - 30 AS INTEGER ) END WHEN + + 23 THEN - 58 + - - 72 + COALESCE ( 92, + - 63 ) END THEN 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT 5 * - 21 * COUNT( * )
----
-105

skipif mysql # not compatible
query I rowsort label-6592
SELECT 5 * - 21 * COUNT ( * )
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6593
SELECT ALL 18 AS col2, - COALESCE ( - CAST( - - COUNT( * ) AS SIGNED ), + - 49 )
----
18
1

skipif mysql # not compatible
query II rowsort label-6593
SELECT ALL 18 AS col2, - COALESCE ( - CAST ( - - COUNT ( * ) AS INTEGER ), + - 49 )
----
18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT 11 + - - 86 + - COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6594
SELECT 11 + - - 86 + - COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT MAX( + + 36 ) - - + 61
----
97

skipif mysql # not compatible
query I rowsort label-6595
SELECT MAX ( + + 36 ) - - + 61
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6596
SELECT ALL 76 AS col0, + COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-6596
SELECT ALL 76 AS col0, + COUNT ( * )
----
76
1

query I rowsort
SELECT 30 + - 82
----
-52

query II rowsort
SELECT ALL 82, + 69 AS col0
----
82
69

query II rowsort
SELECT DISTINCT 35 AS col2, - 11 AS col0
----
35
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-6600
SELECT 28, - 34 * + 84 DIV - 7 AS col1
----
28
408

skipif mysql # not compatible
query II rowsort label-6600
SELECT 28, - 34 * + 84 / - 7 AS col1
----
28
408

query I rowsort
SELECT ALL - 15 + - 56 col2
----
-71

query I rowsort
SELECT 56 + - 17 * - 34
----
634

onlyif mysql # aggregate syntax: 
query II rowsort label-6603
SELECT ALL 41 AS col1, - 39 - 33 + NULLIF ( + - 32, - SUM( 49 ) ) * - - 62
----
41
-2056

skipif mysql # not compatible
query II rowsort label-6603
SELECT ALL 41 AS col1, - 39 - 33 + NULLIF ( + - 32, - SUM ( 49 ) ) * - - 62
----
41
-2056

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ALL + MAX( DISTINCT + 19 ) * + 2
----
38

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL + MAX ( DISTINCT + 19 ) * + 2
----
38

query I rowsort
SELECT 30 * 95 AS col2
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT DISTINCT + 70 + MAX( DISTINCT - ( - - COALESCE ( - 12, - 84 ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT + 70 + MAX ( DISTINCT - ( - - COALESCE ( - 12, - 84 ) ) )
----
82

query I rowsort
SELECT ALL + 15 + - 4 + - ( + 88 ) * + 91
----
-7997

query II rowsort
SELECT - 51, + 67 + + 30 AS col2
----
-51
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6609
SELECT 54 AS col1, COALESCE ( 89, COUNT( - - 42 ) + - 57 - COUNT( * ) DIV + 32 * - 31 ) + - ( - 81 ) AS col1
----
54
170

skipif mysql # not compatible
query II rowsort label-6609
SELECT 54 AS col1, COALESCE ( 89, COUNT ( - - 42 ) + - 57 - COUNT ( * ) / + 32 * - 31 ) + - ( - 81 ) AS col1
----
54
170

query I rowsort
SELECT 55 * + 38 AS col1
----
2090

query I rowsort
SELECT 91 + 26 AS col1
----
117

query II rowsort
SELECT + 9 AS col0, 42 * + - 42 + 59 col1
----
9
-1705

query I rowsort
SELECT ALL 11 * - 36 + - + 62 AS col0
----
-458

onlyif mysql # aggregate syntax: 
query II rowsort label-6614
SELECT COUNT( * ) AS col1, - 60
----
1
-60

skipif mysql # not compatible
query II rowsort label-6614
SELECT COUNT ( * ) AS col1, - 60
----
1
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6615
SELECT ALL - COUNT( * ) AS col1, - 77
----
-1
-77

skipif mysql # not compatible
query II rowsort label-6615
SELECT ALL - COUNT ( * ) AS col1, - 77
----
-1
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT ALL + + 19 * - 3 + + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL + + 19 * - 3 + + COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6617
SELECT DISTINCT - 83 DIV - COUNT( DISTINCT + 80 )
----
83

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT - 83 / - COUNT ( DISTINCT + 80 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + SUM( + 49 ) * 79 AS col1
----
3871

skipif mysql # not compatible
query I rowsort label-6618
SELECT + SUM ( + 49 ) * 79 AS col1
----
3871

onlyif mysql # aggregate syntax: 
query II rowsort label-6619
SELECT ALL - 92 - 25, - COUNT( * ) AS col0
----
-117
-1

skipif mysql # not compatible
query II rowsort label-6619
SELECT ALL - 92 - 25, - COUNT ( * ) AS col0
----
-117
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT + 12 * 48 + + - 13 * MAX( DISTINCT + 69 ) + 61
----
-260

skipif mysql # not compatible
query I rowsort label-6620
SELECT + 12 * 48 + + - 13 * MAX ( DISTINCT + 69 ) + 61
----
-260

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT + 10 DIV 41 + 77 DIV 73 + + 29 + + NULLIF ( - + 13, + 96 ) + + 56 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6621
SELECT + 10 / 41 + 77 / 73 + + 29 + + NULLIF ( - + 13, + 96 ) + + 56 AS col1
----
73

query I rowsort
SELECT ALL 49 * 99 * - 9
----
-43659

query I rowsort
SELECT ALL - 89 * 33 * - 61
----
179157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6624
SELECT ALL - CASE + - 93 WHEN 44 + - 2 THEN NULL ELSE 86 * + CAST( - SUM( 26 ) AS SIGNED ) * - + 90 + - - 29 * - + MIN( - - 61 ) END AS col0
----
-199471

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL - CASE + - 93 WHEN 44 + - 2 THEN NULL ELSE 86 * + CAST ( - SUM ( 26 ) AS INTEGER ) * - + 90 + - - 29 * - + MIN ( - - 61 ) END AS col0
----
-199471

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT DISTINCT - 98 * - COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT - 98 * - COUNT ( * ) AS col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6626
SELECT - COUNT( ALL + - 7 ) * + - 74 - + 72 - - 67 DIV 99 * + 25 * - 95 + + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6626
SELECT - COUNT ( ALL + - 7 ) * + - 74 - + 72 - - 67 / 99 * + 25 * - 95 + + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT MIN( DISTINCT 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6627
SELECT MIN ( DISTINCT 86 ) AS col0
----
86

query II rowsort
SELECT 15 AS col2, 76
----
15
76

query II rowsort
SELECT + ( + - 32 ) * + 64 * + + 85 AS col0, - 64 AS col1
----
-174080
-64

query I rowsort
SELECT - + 4 * + + 16 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT - 30 + COALESCE ( COUNT( - 0 ), + - 87 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6631
SELECT - 30 + COALESCE ( COUNT ( - 0 ), + - 87 ) AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6632
SELECT + 77 * COALESCE ( ( COALESCE ( 39, + + 26 * - 30 * - 66 ) ), + - ( - COALESCE ( - - 56, 45 - 0 * + COALESCE ( 70, + 11 * - + CAST( - 62 AS SIGNED ) DIV + 48 * + ( - 65 ) - - 39 ), + CAST( - 43 AS SIGNED ) ) ) ) AS col0
----
3003

skipif mysql # not compatible
query I rowsort label-6632
SELECT + 77 * COALESCE ( ( COALESCE ( 39, + + 26 * - 30 * - 66 ) ), + - ( - COALESCE ( - - 56, 45 - 0 * + COALESCE ( 70, + 11 * - + CAST ( - 62 AS INTEGER ) / + 48 * + ( - 65 ) - - 39 ), + CAST ( - 43 AS INTEGER ) ) ) ) AS col0
----
3003

query I rowsort
SELECT ALL - 46 + - 45 AS col0
----
-91

query II rowsort
SELECT ALL 0 * + 54 col0, - 8
----
0
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT DISTINCT - 29 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT - 29 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL MAX( DISTINCT 70 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL MAX ( DISTINCT 70 ) col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6637
SELECT + 41 DIV + COUNT( * ) col2, - 40 AS col1
----
41
-40

skipif mysql # not compatible
query II rowsort label-6637
SELECT + 41 / + COUNT ( * ) col2, - 40 AS col1
----
41
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT - 46 * + + 55 / - 67 * - CASE + + 15 WHEN - ( - - 67 ) * - 91 + - COUNT( * ) THEN + 5 + + 35 * - COUNT( * ) WHEN + - 76 THEN - - COUNT( * ) * + ( + 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT - 46 * + + 55 / - 67 * - CASE + + 15 WHEN - ( - - 67 ) * - 91 + - COUNT ( * ) THEN + 5 + + 35 * - COUNT ( * ) WHEN + - 76 THEN - - COUNT ( * ) * + ( + 78 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL + 84 + COUNT( * ) - + 93 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL + 84 + COUNT ( * ) - + 93 AS col0
----
-8

query I rowsort
SELECT + 11 * - + 49 AS col0
----
-539

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6641
SELECT - NULLIF ( + - 92, CASE CASE + - 15 WHEN 20 * NULLIF ( 42, + 49 ) + - 35 * + ( - COUNT( * ) ) THEN NULL WHEN - - 5 THEN - + 68 - COUNT( * ) * 65 ELSE - + COUNT( * ) / + - 76 END WHEN + 90 THEN - - 8 WHEN - COUNT( * ) * + - 76 * - 28 + - COUNT( * ) - - COUNT( * ) * + 41 / + SUM( 83 ) THEN - ( - 26 ) * + 79 + + + 0 - + CAST( NULL AS DECIMAL ) * - 74 END ) * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6641
SELECT - NULLIF ( + - 92, CASE CASE + - 15 WHEN 20 * NULLIF ( 42, + 49 ) + - 35 * + ( - COUNT ( * ) ) THEN NULL WHEN - - 5 THEN - + 68 - COUNT ( * ) * 65 ELSE - + COUNT ( * ) / + - 76 END WHEN + 90 THEN - - 8 WHEN - COUNT ( * ) * + - 76 * - 28 + - COUNT ( * ) - - COUNT ( * ) * + 41 / + SUM ( 83 ) THEN - ( - 26 ) * + 79 + + + 0 - + CAST ( NULL AS REAL ) * - 74 END ) * + COUNT ( * )
----
92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6642
SELECT DISTINCT NULLIF ( + CAST( NULL AS SIGNED ), + - CAST( NULL AS SIGNED ) ) + 95 + - 46 + + COALESCE ( - - 76, - - ( + + CAST( NULL AS DECIMAL ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT NULLIF ( + CAST ( NULL AS INTEGER ), + - CAST ( NULL AS INTEGER ) ) + 95 + - 46 + + COALESCE ( - - 76, - - ( + + CAST ( NULL AS REAL ) ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT DISTINCT NULLIF ( + 67, NULLIF ( + CASE + 95 WHEN + 34 THEN NULL WHEN + 40 THEN - 30 * - - COALESCE ( 31, - 87 ) + - CASE 92 WHEN - 17 * + 51 + + 86 + + 44 + - 87 * - + ( - + COUNT( * ) ) * 73 - 43 THEN NULL WHEN - + 89 * + COUNT( * ) * 7 THEN 58 ELSE - 5 END * + + 53 * NULLIF ( - 10, 26 ) + - 61 + - 97 WHEN + 68 * 65 * - 95 * 15 * 94 THEN + 59 + + 97 END, 72 + COUNT( * ) * + COUNT( * ) ) / - COUNT( * ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT NULLIF ( + 67, NULLIF ( + CASE + 95 WHEN + 34 THEN NULL WHEN + 40 THEN - 30 * - - COALESCE ( 31, - 87 ) + - CASE 92 WHEN - 17 * + 51 + + 86 + + 44 + - 87 * - + ( - + COUNT ( * ) ) * 73 - 43 THEN NULL WHEN - + 89 * + COUNT ( * ) * 7 THEN 58 ELSE - 5 END * + + 53 * NULLIF ( - 10, 26 ) + - 61 + - 97 WHEN + 68 * 65 * - 95 * 15 * 94 THEN + 59 + + 97 END, 72 + COUNT ( * ) * + COUNT ( * ) ) / - COUNT ( * ) ) AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6644
SELECT ALL + MIN( DISTINCT + 43 ) + - COUNT( DISTINCT + CAST( - 84 AS SIGNED ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL + MIN ( DISTINCT + 43 ) + - COUNT ( DISTINCT + CAST ( - 84 AS INTEGER ) ) AS col0
----
42

query I rowsort
SELECT ALL 6 * - - 65 - ( 10 )
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT - 50 * - COUNT( * ) - 97 + - 23 * - 57 - - COUNT( * )
----
1265

skipif mysql # not compatible
query I rowsort label-6646
SELECT - 50 * - COUNT ( * ) - 97 + - 23 * - 57 - - COUNT ( * )
----
1265

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT + COUNT( * ) * + 28 + - + 57
----
-29

skipif mysql # not compatible
query I rowsort label-6647
SELECT + COUNT ( * ) * + 28 + - + 57
----
-29

query I rowsort
SELECT + 64 - - - 86
----
-22

query I rowsort
SELECT DISTINCT + - 38 AS col0
----
-38

query I rowsort
SELECT - - 49 * - 6 * 15 AS col1
----
-4410

onlyif mysql # aggregate syntax: 
query II rowsort label-6651
SELECT ALL + SUM( ALL - 10 ), 68 AS col2
----
-10
68

skipif mysql # not compatible
query II rowsort label-6651
SELECT ALL + SUM ( ALL - 10 ), 68 AS col2
----
-10
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6652
SELECT ( 23 ) AS col0, - 42 - + 41 - + CASE + 64 WHEN - - 56 THEN - - 32 WHEN + + 78 THEN - - 0 * + 79 END + - + COUNT( * ) * + + ( + - 94 ) / + CAST( NULL AS SIGNED ) AS col1
----
23
NULL

skipif mysql # not compatible
query II rowsort label-6652
SELECT ( 23 ) AS col0, - 42 - + 41 - + CASE + 64 WHEN - - 56 THEN - - 32 WHEN + + 78 THEN - - 0 * + 79 END + - + COUNT ( * ) * + + ( + - 94 ) / + CAST ( NULL AS INTEGER ) AS col1
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT - ( + - 44 ) + - + COUNT( + 91 )
----
43

skipif mysql # not compatible
query I rowsort label-6653
SELECT - ( + - 44 ) + - + COUNT ( + 91 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT + + 17 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT + + 17 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 1 * + 59 AS col0
----
59

query II rowsort
SELECT ALL - 31 * - 73 + + - 89 AS col1, 60
----
2174
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6657
SELECT DISTINCT + CASE - + 73 WHEN - 48 * 88 + 74 + - 54 THEN + + ( COUNT( * ) ) WHEN 0 THEN 45 * + - 13 ELSE NULL END * - - 35 + + 86 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6657
SELECT DISTINCT + CASE - + 73 WHEN - 48 * 88 + 74 + - 54 THEN + + ( COUNT ( * ) ) WHEN 0 THEN 45 * + - 13 ELSE NULL END * - - 35 + + 86 AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6658
SELECT ALL 86 * + 77 + + COUNT( * ), 41 col1
----
6623
41

skipif mysql # not compatible
query II rowsort label-6658
SELECT ALL 86 * + 77 + + COUNT ( * ), 41 col1
----
6623
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6659
SELECT DISTINCT CAST( - COALESCE ( ( + CAST( + CASE + 39 WHEN - ( - + 65 ) * 77 THEN NULL WHEN + 82 + - 12 THEN 50 END AS SIGNED ) ), - 21 / + 70 + - ( - COUNT( * ) ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT CAST ( - COALESCE ( ( + CAST ( + CASE + 39 WHEN - ( - + 65 ) * 77 THEN NULL WHEN + 82 + - 12 THEN 50 END AS INTEGER ) ), - 21 / + 70 + - ( - COUNT ( * ) ) ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6660
SELECT ALL + ( - - 93 ) * - 22 + 59 + - CAST( + CASE - CAST( + 97 AS SIGNED ) WHEN + 12 THEN - - 94 ELSE MIN( - 53 ) END AS SIGNED ) AS col2
----
-1934

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL + ( - - 93 ) * - 22 + 59 + - CAST ( + CASE - CAST ( + 97 AS INTEGER ) WHEN + 12 THEN - - 94 ELSE MIN ( - 53 ) END AS INTEGER ) AS col2
----
-1934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT DISTINCT - 48 * - COALESCE ( COUNT( * ), - AVG ( + 45 ) * - COUNT( * ) + - - MAX( + + 66 ), 78 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - 48 * - COALESCE ( COUNT ( * ), - AVG ( + 45 ) * - COUNT ( * ) + - - MAX ( + + 66 ), 78 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT + MAX( 34 ) * - COUNT( * ) + 48
----
14

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT + MAX ( 34 ) * - COUNT ( * ) + 48
----
14

query I rowsort
SELECT ALL 53 + + 83 col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT + SUM( 34 ) + + 58 + + 91 * 64
----
5916

skipif mysql # not compatible
query I rowsort label-6664
SELECT + SUM ( 34 ) + + 58 + + 91 * 64
----
5916

query I rowsort
SELECT - NULLIF ( 32, - + 72 )
----
-32

query I rowsort
SELECT + 23 * - 76 AS col1
----
-1748

query I rowsort
SELECT + 35 + - - 15 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT MAX( ALL - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-6668
SELECT MAX ( ALL - 84 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT - CAST( - + ( - 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6669
SELECT - CAST ( - + ( - 0 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT + COUNT( DISTINCT - 46 ) + + 26 + + - ( - 71 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6670
SELECT + COUNT ( DISTINCT - 46 ) + + 26 + + - ( - 71 ) AS col1
----
98

query II rowsort
SELECT DISTINCT 0, 49 AS col2
----
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT + 81 + - 35 - - + NULLIF ( - - 3, - + COUNT( * ) ) - - 61 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-6672
SELECT + 81 + - 35 - - + NULLIF ( - - 3, - + COUNT ( * ) ) - - 61 AS col1
----
110

query II rowsort
SELECT ALL 6, - 96 col2
----
6
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6674
SELECT ALL 45 * CAST( NULL AS SIGNED ) * COALESCE ( + MIN( 6 ), + - 55 ), + 81 * 96 col1
----
NULL
7776

skipif mysql # not compatible
query II rowsort label-6674
SELECT ALL 45 * CAST ( NULL AS INTEGER ) * COALESCE ( + MIN ( 6 ), + - 55 ), + 81 * 96 col1
----
NULL
7776

query I rowsort
SELECT DISTINCT 80 * - 99
----
-7920

query I rowsort
SELECT ALL 39 - - 1
----
40

query I rowsort
SELECT - 25 + 43 * - 89 AS col0
----
-3852

query I rowsort
SELECT - - 39 * - ( + 14 ) col0
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT + SUM( DISTINCT + 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6679
SELECT + SUM ( DISTINCT + 87 ) AS col2
----
87

query I rowsort
SELECT - + 64 + 48
----
-16

query I rowsort
SELECT - ( - + 34 ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6682
SELECT ALL CAST( CAST( ( 72 ) AS SIGNED ) AS SIGNED ) DIV + + 65 + - 53
----
-52

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL CAST ( CAST ( ( 72 ) AS INTEGER ) AS INTEGER ) / + + 65 + - 53
----
-52

query II rowsort
SELECT ALL + 38 col0, - 50 AS col0
----
38
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6684
SELECT ALL - 49 * - 48 * - + 13 + - 6 AS col0, 18 DIV + COUNT( * ) * + - COUNT( * )
----
-30582
-18

skipif mysql # not compatible
query II rowsort label-6684
SELECT ALL - 49 * - 48 * - + 13 + - 6 AS col0, 18 / + COUNT ( * ) * + - COUNT ( * )
----
-30582
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT + MIN( DISTINCT + 86 ) * + 37 AS col2
----
3182

skipif mysql # not compatible
query I rowsort label-6685
SELECT + MIN ( DISTINCT + 86 ) * + 37 AS col2
----
3182

query I rowsort
SELECT - 50 * 20 - + 6 AS col2
----
-1006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6687
SELECT - ( - - 79 ) DIV 4 * - + 62 - COUNT( * ) * - 88 * + 67 * + - COUNT( * )
----
-4718

skipif mysql # not compatible
query I rowsort label-6687
SELECT - ( - - 79 ) / 4 * - + 62 - COUNT ( * ) * - 88 * + 67 * + - COUNT ( * )
----
-4718

query II rowsort
SELECT - 3 AS col2, 45 + - 31
----
-3
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6689
SELECT ALL + 88 * + - MIN( - CAST( 49 AS SIGNED ) ) AS col1
----
4312

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + 88 * + - MIN ( - CAST ( 49 AS INTEGER ) ) AS col1
----
4312

query I rowsort
SELECT ( - - 29 ) * + 41 AS col1
----
1189

query I rowsort
SELECT DISTINCT + ( - + 77 ) * 28 * + 87
----
-187572

query I rowsort
SELECT ALL - CASE + - 89 WHEN 13 THEN NULL WHEN - 65 THEN - 66 + + 22 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6693
SELECT COUNT( * ) * + 99 + - + 57 DIV 41 + - 58 + + 90 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-6693
SELECT COUNT ( * ) * + 99 + - + 57 / 41 + - 58 + + 90 AS col1
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6694
SELECT ALL + 29 DIV COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL + 29 / COUNT ( * )
----
29

query I rowsort
SELECT DISTINCT - 7 col0
----
-7

query I rowsort
SELECT DISTINCT + 11 * + 4
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 40 * + 94 * - 19
----
-71440

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ALL COUNT( - 30 ) - + + 70 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL COUNT ( - 30 ) - + + 70 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT DISTINCT + 11 * - NULLIF ( 73, MAX( - 84 ) * + - 9 + - + 32 ) AS col0
----
-803

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT + 11 * - NULLIF ( 73, MAX ( - 84 ) * + - 9 + - + 32 ) AS col0
----
-803

query I rowsort
SELECT ALL - 57 * + + 97 AS col2
----
-5529

query I rowsort
SELECT 81 * + + 98 * + 36 * - + 48 AS col2
----
-13716864

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL 63 - - 78 * + COALESCE ( + - COUNT( * ), + 83, 11 )
----
-15

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL 63 - - 78 * + COALESCE ( + - COUNT ( * ), + 83, 11 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6704
SELECT 71 * 31 AS col0, 71 * + + NULLIF ( + 67, + 1 * 52 ) * MIN( + + 20 )
----
2201
95140

skipif mysql # not compatible
query II rowsort label-6704
SELECT 71 * 31 AS col0, 71 * + + NULLIF ( + 67, + 1 * 52 ) * MIN ( + + 20 )
----
2201
95140

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT COALESCE ( - 19, + + COUNT( * ) ) * + 56 + + - COUNT( * ) * COUNT( * ) AS col1
----
-1065

skipif mysql # not compatible
query I rowsort label-6705
SELECT COALESCE ( - 19, + + COUNT ( * ) ) * + 56 + + - COUNT ( * ) * COUNT ( * ) AS col1
----
-1065

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT 80 - + - 22 + - 20 - + SUM( + 5 ) + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-6706
SELECT 80 - + - 22 + - 20 - + SUM ( + 5 ) + COUNT ( * ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT ALL COALESCE ( + + 83, + + CAST( NULL AS SIGNED ) ) col0
----
83

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL COALESCE ( + + 83, + + CAST ( NULL AS INTEGER ) ) col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6708
SELECT DISTINCT + MAX( + - 82 ) col1, 86 * + 17
----
-82
1462

skipif mysql # not compatible
query II rowsort label-6708
SELECT DISTINCT + MAX ( + - 82 ) col1, 86 * + 17
----
-82
1462

query I rowsort
SELECT - + 17 AS col1
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6710
SELECT ALL + NULLIF ( + CAST( NULL AS DECIMAL ), 98 ) / - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + NULLIF ( + CAST ( NULL AS REAL ), 98 ) / - 72 AS col0
----
NULL

query I rowsort
SELECT 63 - 85 AS col2
----
-22

query I rowsort
SELECT ALL + + 13 * - 88 AS col1
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT DISTINCT - COUNT( * ) * - + CASE 78 WHEN - 24 * COUNT( * ) THEN + 12 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT - COUNT ( * ) * - + CASE 78 WHEN - 24 * COUNT ( * ) THEN + 12 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6714
SELECT - COUNT( * ) * + CAST( - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-6714
SELECT - COUNT ( * ) * + CAST ( - 51 AS INTEGER )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6715
SELECT + 35 DIV - - 65 + + ( + 35 ) + - + 59 * + 26 * - 22
----
33783

skipif mysql # not compatible
query I rowsort label-6715
SELECT + 35 / - - 65 + + ( + 35 ) + - + 59 * + 26 * - 22
----
33783

query I rowsort
SELECT ALL - 61 + - 22 col1
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6717
SELECT ( + 40 ) * - 74 + + CAST( NULL AS DECIMAL ) + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT ( + 40 ) * - 74 + + CAST ( NULL AS REAL ) + - 27 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 28 + 34 AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6719
SELECT - 63 * - + 21 + - + CASE - CAST( 47 AS SIGNED ) WHEN COUNT( DISTINCT - 19 ) + - + 29 + + + 47 THEN NULL WHEN - AVG ( - - 65 ) THEN 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT - 63 * - + 21 + - + CASE - CAST ( 47 AS INTEGER ) WHEN COUNT ( DISTINCT - 19 ) + - + 29 + + + 47 THEN NULL WHEN - AVG ( - - 65 ) THEN 26 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6720
SELECT - 1 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-6720
SELECT - 1 / 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT DISTINCT - + COUNT( * ) + - - 63
----
62

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT - + COUNT ( * ) + - - 63
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT ALL - - NULLIF ( + 56, - - 43 / + ( + + COALESCE ( + + COUNT( * ), + 61 * 79 ) ) + + - 97 * - 28 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL - - NULLIF ( + 56, - - 43 / + ( + + COALESCE ( + + COUNT ( * ), + 61 * 79 ) ) + + - 97 * - 28 ) AS col0
----
56

query I rowsort
SELECT DISTINCT - ( - + 0 ) + - 28 * 99 * 22
----
-60984

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT - 28 * + CASE 96 WHEN 35 / - - 73 - - - 83 + + 26 THEN NULL ELSE + MIN( 22 ) * + 99 END
----
-60984

skipif mysql # not compatible
query I rowsort label-6724
SELECT - 28 * + CASE 96 WHEN 35 / - - 73 - - - 83 + + 26 THEN NULL ELSE + MIN ( 22 ) * + 99 END
----
-60984

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT 77 + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT 77 + - COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL - 97 + - - COUNT( * ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - 97 + - - COUNT ( * ) col2
----
-96

query I rowsort
SELECT DISTINCT + 42 * 0
----
0

query II rowsort
SELECT ALL - 10, 41 AS col2
----
-10
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6729
SELECT 52 * + - 98 * - 34 + + - 25 DIV - - 76 + 31 + + COUNT( * )
----
173296

skipif mysql # not compatible
query I rowsort label-6729
SELECT 52 * + - 98 * - 34 + + - 25 / - - 76 + 31 + + COUNT ( * )
----
173296

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6730
SELECT CAST( NULL AS DECIMAL ) * - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT CAST ( NULL AS REAL ) * - + 93
----
NULL

query I rowsort
SELECT ALL + 25 * - - 94 AS col1
----
2350

query I rowsort
SELECT 55 + + 20 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT AVG ( ALL + 97 ) * - + CAST( NULL AS SIGNED ) + + 42 * - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT AVG ( ALL + 97 ) * - + CAST ( NULL AS INTEGER ) + + 42 * - - 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6734
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - MIN( DISTINCT 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - MIN ( DISTINCT 30 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT ALL - MAX( - 29 ) - 21 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - MAX ( - 29 ) - 21 AS col1
----
8

query I rowsort
SELECT ALL + 25 * - 20
----
-500

query I rowsort
SELECT DISTINCT - 71 - - - COALESCE ( 97, - + NULLIF ( + 15, 6 / + 9 * - - 47 ) ) + - + 35 - + 72 * + - 81
----
5629

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT DISTINCT MIN( DISTINCT 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT MIN ( DISTINCT 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL MAX( - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL MAX ( - 58 )
----
-58

query I rowsort
SELECT 64 * - 21 * + 90 * + + 90 AS col0
----
-10886400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT 0 + + - COALESCE ( 29, + + CAST( NULL AS SIGNED ) )
----
-29

skipif mysql # not compatible
query I rowsort label-6741
SELECT 0 + + - COALESCE ( 29, + + CAST ( NULL AS INTEGER ) )
----
-29

query I rowsort
SELECT 71 + + + 7
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT 6 * - ( + - 41 ) * - - COUNT( ALL - + 93 )
----
246

skipif mysql # not compatible
query I rowsort label-6743
SELECT 6 * - ( + - 41 ) * - - COUNT ( ALL - + 93 )
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL MIN( + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL MIN ( + 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT + 94 * + 60 + - COUNT( * ) DIV + 99 col0
----
5640

skipif mysql # not compatible
query I rowsort label-6745
SELECT + 94 * + 60 + - COUNT ( * ) / + 99 col0
----
5640

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT COUNT( * ) - - ( - - 6 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6746
SELECT COUNT ( * ) - - ( - - 6 ) AS col1
----
7

query I rowsort
SELECT 19 * + 3 AS col1
----
57

query I rowsort
SELECT 90 + + 82
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT ALL - 90 DIV - 12
----
7

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL - 90 / - 12
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT 40 / - - CASE + + AVG ( - - 99 ) WHEN + + 19 + + - MIN( + - 35 ) THEN + + 64 * 80 WHEN - COUNT( * ) * COALESCE ( - CAST( + 35 AS SIGNED ), + - 27 * + 74 ) / - ( + - 90 ) * - 85 / 39 + - + 44 THEN 98 * + COUNT( * ) / + ( + NULLIF ( 62, + + 17 * + 3 ) ) END + + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT 40 / - - CASE + + AVG ( - - 99 ) WHEN + + 19 + + - MIN ( + - 35 ) THEN + + 64 * 80 WHEN - COUNT ( * ) * COALESCE ( - CAST ( + 35 AS INTEGER ), + - 27 * + 74 ) / - ( + - 90 ) * - 85 / 39 + - + 44 THEN 98 * + COUNT ( * ) / + ( + NULLIF ( 62, + + 17 * + 3 ) ) END + + 72 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT DISTINCT - 6 DIV - 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT - 6 / - 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL COUNT( * ) * - 86 + - 15 * - 90 * 12 AS col0
----
16114

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL COUNT ( * ) * - 86 + - 15 * - 90 * 12 AS col0
----
16114

query II rowsort
SELECT - ( NULLIF ( - 76, - + 96 + 25 - + 70 - - - 9 ) ) * - 92 AS col0, + 93 + + 33 + + 34
----
-6992
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL - NULLIF ( + + 65, ( + + 81 ) * - COUNT( * ) * - ( + + 93 ) * 89 + 2 * ( + NULLIF ( + 12, - - 30 ) ) + COUNT( DISTINCT - - 79 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - NULLIF ( + + 65, ( + + 81 ) * - COUNT ( * ) * - ( + + 93 ) * 89 + 2 * ( + NULLIF ( + 12, - - 30 ) ) + COUNT ( DISTINCT - - 79 ) )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6755
SELECT ALL - 73 * + CAST( NULL AS SIGNED ) + - + 63 / 64 * CAST( NULL AS SIGNED ), - 2 AS col2
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-6755
SELECT ALL - 73 * + CAST ( NULL AS INTEGER ) + - + 63 / 64 * CAST ( NULL AS INTEGER ), - 2 AS col2
----
NULL
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT + COUNT( * ) * + 90
----
90

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT + COUNT ( * ) * + 90
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6757
SELECT + COALESCE ( + - COUNT( * ), + 65 DIV + 64, - 16 - 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-6757
SELECT + COALESCE ( + - COUNT ( * ), + 65 / + 64, - 16 - 97 )
----
-1

query I rowsort
SELECT + 10 + + + 28 AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT - CAST( 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-6759
SELECT - CAST ( 89 AS INTEGER )
----
-89

query II rowsort
SELECT 0 AS col2, 99 AS col2
----
0
99

query I rowsort
SELECT ALL + 32 + 86 col2
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT CASE - MIN( ALL - + 87 ) WHEN + - 79 THEN + CASE + 95 WHEN COUNT( * ) * - COALESCE ( + NULLIF ( 91, + 60 ), - 89, + 65 + - 98 * - - ( - ( - ( 66 ) ) ) + 38 * COUNT( * ) + - 83 ) * - MAX( + 47 ) / 3 * + NULLIF ( + + 86, - 48 * AVG ( + 67 ) * + 85 + - - ( - NULLIF ( + + 18, + 70 * + ( + ( + 69 ) ) * + 6 - - + 49 ) ) ) THEN - - CAST( 52 AS SIGNED ) + + 7 * 41 END * 36 - - 66 * SUM( ALL - 72 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT CASE - MIN ( ALL - + 87 ) WHEN + - 79 THEN + CASE + 95 WHEN COUNT ( * ) * - COALESCE ( + NULLIF ( 91, + 60 ), - 89, + 65 + - 98 * - - ( - ( - ( 66 ) ) ) + 38 * COUNT ( * ) + - 83 ) * - MAX ( + 47 ) / 3 * + NULLIF ( + + 86, - 48 * AVG ( + 67 ) * + 85 + - - ( - NULLIF ( + + 18, + 70 * + ( + ( + 69 ) ) * + 6 - - + 49 ) ) ) THEN - - CAST ( 52 AS INTEGER ) + + 7 * 41 END * 36 - - 66 * SUM ( ALL - 72 ) END
----
NULL

query I rowsort
SELECT ALL - - 15 + + - 32 AS col1
----
-17

query II rowsort
SELECT 37 AS col1, 26 AS col2
----
37
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT ALL - - 90 * + + CAST( NULL AS SIGNED ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - - 90 * + + CAST ( NULL AS INTEGER ) + 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6766
SELECT ALL 19 * 75 DIV + COUNT( DISTINCT 79 ) + - COUNT( * ), - 82 * + + 68 col0
----
1424
-5576

skipif mysql # not compatible
query II rowsort label-6766
SELECT ALL 19 * 75 / + COUNT ( DISTINCT 79 ) + - COUNT ( * ), - 82 * + + 68 col0
----
1424
-5576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6767
SELECT DISTINCT - - 58 * - - 97 * + ( CAST( NULL AS SIGNED ) ) * + ( + - 78 ) + + COALESCE ( + 42, - ( 24 ), + 39 ) + - 88 + + CAST( 69 AS SIGNED ) + + ( + COUNT( * ) ) + - 74 * + - ( + COUNT( * ) ) - - 11 * + 57 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT - - 58 * - - 97 * + ( CAST ( NULL AS INTEGER ) ) * + ( + - 78 ) + + COALESCE ( + 42, - ( 24 ), + 39 ) + - 88 + + CAST ( 69 AS INTEGER ) + + ( + COUNT ( * ) ) + - 74 * + - ( + COUNT ( * ) ) - - 11 * + 57 col2
----
NULL

query I rowsort
SELECT + - ( 48 ) * - 39 + 72
----
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT DISTINCT + + 59 * - + 73 + - 67 + + 61 * 79 + - - 16 + + + COUNT( * ) AS col0
----
462

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT + + 59 * - + 73 + - 67 + + 61 * 79 + - - 16 + + + COUNT ( * ) AS col0
----
462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT ALL + 5 * - 98 / + CAST( NULL AS SIGNED ) * - 55 - + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + 5 * - 98 / + CAST ( NULL AS INTEGER ) * - 55 - + + 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6771
SELECT - COUNT( * ) DIV + 12 + - + 50 + 1 + + + 12 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6771
SELECT - COUNT ( * ) / + 12 + - + 50 + 1 + + + 12 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT CASE COUNT( * ) WHEN 50 THEN - - 50 WHEN - ( - 20 ) THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT CASE COUNT ( * ) WHEN 50 THEN - - 50 WHEN - ( - 20 ) THEN + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT + MAX( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-6773
SELECT + MAX ( 82 )
----
82

query I rowsort
SELECT - 23 * 25 + + 21 + 27 AS col2
----
-527

query I rowsort
SELECT - 0 * + 96 * + 16
----
0

query I rowsort
SELECT DISTINCT 54 * 70 - + + 98 AS col1
----
3682

query II rowsort
SELECT ALL + 0 AS col1, - 79
----
0
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6778
SELECT ALL - 66 DIV + 69 * 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL - 66 / + 69 * 51 AS col1
----
0

query I rowsort
SELECT + 64 * - 58 AS col1
----
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + MAX( ALL 68 ) + + - 70
----
-2

skipif mysql # not compatible
query I rowsort label-6780
SELECT + MAX ( ALL 68 ) + + - 70
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT DISTINCT 87 DIV + 28
----
3

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT 87 / + 28
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL + SUM( ALL - + 68 ) * 25
----
-1700

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL + SUM ( ALL - + 68 ) * 25
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + SUM( DISTINCT + - 50 ) * - 11 + - NULLIF ( - COUNT( * ), - - 86 * + COUNT( * ) )
----
551

skipif mysql # not compatible
query I rowsort label-6783
SELECT + SUM ( DISTINCT + - 50 ) * - 11 + - NULLIF ( - COUNT ( * ), - - 86 * + COUNT ( * ) )
----
551

query I rowsort
SELECT 94 * - 41 + 37 AS col2
----
-3817

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT MIN( ALL 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6785
SELECT MIN ( ALL 77 ) AS col1
----
77

query I rowsort
SELECT - 10 * 27 * - 63
----
17010

query I rowsort
SELECT ALL - 94 * 39 col0
----
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT - 28 + - 62 + - + MIN( 86 ) AS col1
----
-176

skipif mysql # not compatible
query I rowsort label-6788
SELECT - 28 + - 62 + - + MIN ( 86 ) AS col1
----
-176

query I rowsort
SELECT - 74 * + 14 AS col1
----
-1036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT ALL 80 * - - CAST( 8 AS SIGNED )
----
640

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL 80 * - - CAST ( 8 AS INTEGER )
----
640

onlyif mysql # aggregate syntax: 
query II rowsort label-6791
SELECT COUNT( * ) AS col0, + 95 AS col0
----
1
95

skipif mysql # not compatible
query II rowsort label-6791
SELECT COUNT ( * ) AS col0, + 95 AS col0
----
1
95

query I rowsort
SELECT ALL + 2 + + 36
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6793
SELECT DISTINCT - - 5 * SUM( + 62 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT - - 5 * SUM ( + 62 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 22 + + + 39 * - - 94 AS col2
----
3644

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT - - COUNT( * ) * - 26 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6795
SELECT - - COUNT ( * ) * - 26 AS col0
----
-26

query I rowsort
SELECT - 34 - + - 49 + + 23
----
38

query II rowsort
SELECT - 44, + 44 AS col2
----
-44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT - + SUM( - 71 ) * + ( + COUNT( * ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6798
SELECT - + SUM ( - 71 ) * + ( + COUNT ( * ) ) AS col0
----
71

query II rowsort
SELECT DISTINCT - 67 + - 95, 66 col1
----
-162
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT - + COUNT( * ) + 7
----
6

skipif mysql # not compatible
query I rowsort label-6800
SELECT - + COUNT ( * ) + 7
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - COUNT( * ) * - 99 + + 30
----
129

skipif mysql # not compatible
query I rowsort label-6801
SELECT - COUNT ( * ) * - 99 + + 30
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6802
SELECT CAST( + MAX( ( 0 ) ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6802
SELECT CAST ( + MAX ( ( 0 ) ) AS INTEGER ) AS col0
----
0

query I rowsort
SELECT DISTINCT + ( 2 ) AS col2
----
2

query I rowsort
SELECT ALL + ( + 72 )
----
72

query I rowsort
SELECT + ( + 7 ) col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT DISTINCT COALESCE ( - COUNT( * ), - + 3 + + - 49 ) DIV + 86 - + 74 col2
----
-74

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT COALESCE ( - COUNT ( * ), - + 3 + + - 49 ) / + 86 - + 74 col2
----
-74

query I rowsort
SELECT ALL 46 * + 8 AS col2
----
368

query I rowsort
SELECT + 81 * - - 43 + - - 54
----
3537

query I rowsort
SELECT DISTINCT 81 * + + 67 AS col1
----
5427

query I rowsort
SELECT + 11 * - 64 * - 4
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT + COUNT( * ) + - ( + 36 )
----
-35

skipif mysql # not compatible
query I rowsort label-6811
SELECT + COUNT ( * ) + - ( + 36 )
----
-35

query I rowsort
SELECT ( 87 ) AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6813
SELECT + 92 - + CAST( - + 40 AS SIGNED ) - - 27 DIV - 13
----
130

skipif mysql # not compatible
query I rowsort label-6813
SELECT + 92 - + CAST ( - + 40 AS INTEGER ) - - 27 / - 13
----
130

query I rowsort
SELECT + 51 * 29 AS col1
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL + ( - 39 ) * 35 * + 28 + + CASE + 43 WHEN + 92 THEN - - 67 * - 62 + + 21 * - 25 WHEN - 31 THEN NULL END + - MIN( + - 95 ) + + 14 + - 86 / - 1 * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + ( - 39 ) * 35 * + 28 + + CASE + 43 WHEN + 92 THEN - - 67 * - 62 + + 21 * - 25 WHEN - 31 THEN NULL END + - MIN ( + - 95 ) + + 14 + - 86 / - 1 * - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT 27 * ( - - 97 ) - + 18 + + COUNT( * ) * + 39 AS col2
----
2640

skipif mysql # not compatible
query I rowsort label-6816
SELECT 27 * ( - - 97 ) - + 18 + + COUNT ( * ) * + 39 AS col2
----
2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6817
SELECT CASE + 35 WHEN 83 * CASE - - 70 WHEN + COUNT( * ) + - - 27 - 66 * - + 77 * + 67 THEN + CAST( - 94 AS SIGNED ) * + COALESCE ( - COALESCE ( 41, - + 19 + - 99 * 16, ( - 42 ) + - NULLIF ( - ( + 57 ), + COUNT( * ) ) + CASE + COALESCE ( - - 35, - 33 ) WHEN + 87 THEN + 33 ELSE + - COUNT( * ) * - COUNT( * ) + + + 86 END ), 28 * + 18 + + + 94 ) + 49 END THEN + COALESCE ( 76, - + ( + 51 ) * + 25 * 43 + + 28 ) * 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6817
SELECT CASE + 35 WHEN 83 * CASE - - 70 WHEN + COUNT ( * ) + - - 27 - 66 * - + 77 * + 67 THEN + CAST ( - 94 AS INTEGER ) * + COALESCE ( - COALESCE ( 41, - + 19 + - 99 * 16, ( - 42 ) + - NULLIF ( - ( + 57 ), + COUNT ( * ) ) + CASE + COALESCE ( - - 35, - 33 ) WHEN + 87 THEN + 33 ELSE + - COUNT ( * ) * - COUNT ( * ) + + + 86 END ), 28 * + 18 + + + 94 ) + 49 END THEN + COALESCE ( 76, - + ( + 51 ) * + 25 * 43 + + 28 ) * 27 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT ALL + 56 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL + 56 / + 60
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6819
SELECT + + ( + 45 ) DIV 75, 66 * + 78 AS col2
----
0
5148

skipif mysql # not compatible
query II rowsort label-6819
SELECT + + ( + 45 ) / 75, 66 * + 78 AS col2
----
0
5148

query I rowsort
SELECT + 65 + + 6 AS col1
----
71

query I rowsort
SELECT ALL ( - 19 ) AS col2
----
-19

query I rowsort
SELECT ALL 48 + + + 54
----
102

query I rowsort
SELECT - - 8 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL 62 + - COUNT( * ) * + 40 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL 62 + - COUNT ( * ) * + 40 AS col2
----
22

query I rowsort
SELECT - 31 + - 23 + - + 67 * - 12
----
750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6826
SELECT ALL - - CAST( NULL AS SIGNED ) * + 57 / + - MAX( DISTINCT 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 57 / + - MAX ( DISTINCT 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT DISTINCT 24 * - COUNT( * ) * + COUNT( * ) + + + 59 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT 24 * - COUNT ( * ) * + COUNT ( * ) + + + 59 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL - 30 + - + 1 + - + 17 * - MIN( ALL + - 76 )
----
-1323

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL - 30 + - + 1 + - + 17 * - MIN ( ALL + - 76 )
----
-1323

query I rowsort
SELECT ALL - - 52 + + 70 * 66
----
4672

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT - 81 + - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-6830
SELECT - 81 + - COUNT ( * )
----
-82

query I rowsort
SELECT DISTINCT ( 88 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT 10 + 96 + + + 85 * + + 77 + + COUNT( * ) AS col2
----
6652

skipif mysql # not compatible
query I rowsort label-6832
SELECT 10 + 96 + + + 85 * + + 77 + + COUNT ( * ) AS col2
----
6652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT DISTINCT - CAST( + 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - CAST ( + 66 AS INTEGER )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6834
SELECT DISTINCT + CASE + 89 WHEN CASE + CAST( 84 AS SIGNED ) WHEN + - 81 THEN + 84 WHEN - COALESCE ( + + 7, + COUNT( * ) ) + SUM( DISTINCT - + 84 ) THEN NULL ELSE NULL END THEN NULL WHEN - + COALESCE ( + 56, + - NULLIF ( 56, + + 7 ) + + 58 * + 40 ) * + 34 THEN NULL ELSE 39 END
----
39

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT + CASE + 89 WHEN CASE + CAST ( 84 AS INTEGER ) WHEN + - 81 THEN + 84 WHEN - COALESCE ( + + 7, + COUNT ( * ) ) + SUM ( DISTINCT - + 84 ) THEN NULL ELSE NULL END THEN NULL WHEN - + COALESCE ( + 56, + - NULLIF ( 56, + + 7 ) + + 58 * + 40 ) * + 34 THEN NULL ELSE 39 END
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL + 89 - - - 17 - - - 40 * + - MIN( DISTINCT + ( + 81 ) )
----
3312

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL + 89 - - - 17 - - - 40 * + - MIN ( DISTINCT + ( + 81 ) )
----
3312

query I rowsort
SELECT 87 * 84 + - ( 74 )
----
7234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6837
SELECT DISTINCT + + NULLIF ( CAST( + 26 AS SIGNED ), + 7 * MAX( DISTINCT - 23 ) + + ( 94 ) + 38 + - CAST( NULL AS SIGNED ) * + 87 ) - + 4 + - - 18 * - 90 AS col0
----
-1598

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT + + NULLIF ( CAST ( + 26 AS INTEGER ), + 7 * MAX ( DISTINCT - 23 ) + + ( 94 ) + 38 + - CAST ( NULL AS INTEGER ) * + 87 ) - + 4 + - - 18 * - 90 AS col0
----
-1598

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT + 70 + 11 * + COUNT( ALL - 89 ) * - + COUNT( + + COALESCE ( - 37, - COALESCE ( - 1, - ( + - 33 ) / + 62 ) * + ( - 12 ) ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6838
SELECT + 70 + 11 * + COUNT ( ALL - 89 ) * - + COUNT ( + + COALESCE ( - 37, - COALESCE ( - 1, - ( + - 33 ) / + 62 ) * + ( - 12 ) ) ) AS col0
----
59

query I rowsort
SELECT DISTINCT COALESCE ( - - 57, 38, + 10 )
----
57

query I rowsort
SELECT ALL + 66 * - - 55
----
3630

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT 65 * - 76 * + MIN( ALL - 58 ) AS col1
----
286520

skipif mysql # not compatible
query I rowsort label-6841
SELECT 65 * - 76 * + MIN ( ALL - 58 ) AS col1
----
286520

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT ALL + 93 DIV ( 8 )
----
11

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + 93 / ( 8 )
----
11

query I rowsort
SELECT DISTINCT + 57 * 46
----
2622

query I rowsort
SELECT DISTINCT - 12 * + 72
----
-864

query I rowsort
SELECT 64 * + ( - 14 )
----
-896

query I rowsort
SELECT 0 + - 22
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6847
SELECT ALL - CAST( NULL AS SIGNED ), 84 + + COUNT( * ) AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-6847
SELECT ALL - CAST ( NULL AS INTEGER ), 84 + + COUNT ( * ) AS col0
----
NULL
85

query II rowsort
SELECT 58 AS col2, 64
----
58
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT DISTINCT COUNT( * ) + 3
----
4

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT COUNT ( * ) + 3
----
4

query I rowsort
SELECT ALL ( - + 8 ) + + 9 + + 91 - - - 93 + 14 AS col0
----
13

query II rowsort
SELECT 53 AS col0, 54 + 97 col2
----
53
151

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT COUNT( * ) + 28 * - - 84
----
2353

skipif mysql # not compatible
query I rowsort label-6852
SELECT COUNT ( * ) + 28 * - - 84
----
2353

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT + MIN( 44 ) + AVG ( DISTINCT + 92 ) * + CASE - + 85 WHEN + 46 - - 1 THEN 54 * - + COUNT( * ) WHEN + - 64 THEN NULL WHEN NULLIF ( 36, - - 48 ) + 48 THEN 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT + MIN ( 44 ) + AVG ( DISTINCT + 92 ) * + CASE - + 85 WHEN + 46 - - 1 THEN 54 * - + COUNT ( * ) WHEN + - 64 THEN NULL WHEN NULLIF ( 36, - - 48 ) + 48 THEN 80 END AS col2
----
NULL

query II rowsort
SELECT 31, 80 * - 19 * - 32 AS col1
----
31
48640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6855
SELECT 31 * CAST( CAST( - + 34 AS SIGNED ) AS SIGNED ) * COUNT( * ) + + 7
----
-1047

skipif mysql # not compatible
query I rowsort label-6855
SELECT 31 * CAST ( CAST ( - + 34 AS INTEGER ) AS INTEGER ) * COUNT ( * ) + + 7
----
-1047

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT - + COALESCE ( - + COUNT( * ), - 21 - 88 * + + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT - + COALESCE ( - + COUNT ( * ), - 21 - 88 * + + 74 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT ALL - 94 + 54 * COALESCE ( - + 57, + 97 * - CAST( 64 AS SIGNED ) - ( + 17 ) * + 39 ) - CAST( NULL AS SIGNED ) + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL - 94 + 54 * COALESCE ( - + 57, + 97 * - CAST ( 64 AS INTEGER ) - ( + 17 ) * + 39 ) - CAST ( NULL AS INTEGER ) + + 10
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6858
SELECT + COALESCE ( + + 13, - 90 + + 98 + - - COUNT( * ), 29 ), + 46 * + 71 * 44 * + 99 AS col0
----
13
14226696

skipif mysql # not compatible
query II rowsort label-6858
SELECT + COALESCE ( + + 13, - 90 + + 98 + - - COUNT ( * ), 29 ), + 46 * + 71 * 44 * + 99 AS col0
----
13
14226696

query I rowsort
SELECT DISTINCT 50 + - - 80 + 91 * - + 93 AS col1
----
-8333

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6860
SELECT ALL 94 AS col2, + 90 * + 61 + - - 63 + - + 39 + - CAST( + + 22 AS SIGNED ) * - - 87 * - NULLIF ( - 69, - - 20 ) AS col2
----
94
-126552

skipif mysql # not compatible
query II rowsort label-6860
SELECT ALL 94 AS col2, + 90 * + 61 + - - 63 + - + 39 + - CAST ( + + 22 AS INTEGER ) * - - 87 * - NULLIF ( - 69, - - 20 ) AS col2
----
94
-126552

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT DISTINCT 78 DIV 54 + - 67 * 45
----
-3014

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT 78 / 54 + - 67 * 45
----
-3014

query II rowsort
SELECT ALL + 30, - 92 AS col0
----
30
-92

query I rowsort
SELECT 35 + + 8 AS col0
----
43

query II rowsort
SELECT - 6 col0, 24 * - - 88 col2
----
-6
2112

query II rowsort
SELECT - NULLIF ( 19, + + 52 + - 66 ) AS col2, + 27 * - + 30
----
-19
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL SUM( ALL + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL SUM ( ALL + 93 )
----
93

query II rowsort
SELECT + 7 AS col1, - ( - - 63 ) col0
----
7
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6868
SELECT + 45 - + CAST( NULL AS SIGNED ) + 17 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT + 45 - + CAST ( NULL AS INTEGER ) + 17 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6869
SELECT DISTINCT + COUNT( * ), 10 AS col2
----
1
10

skipif mysql # not compatible
query II rowsort label-6869
SELECT DISTINCT + COUNT ( * ), 10 AS col2
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ( + - ( + 33 ) ) + MIN( 70 ) + - - 90 + - + 65 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6870
SELECT ( + - ( + 33 ) ) + MIN ( 70 ) + - - 90 + - + 65 AS col1
----
62

query I rowsort
SELECT - + 35 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT 50 + + 88 * + + 93 + - 29 + CASE - - COUNT( + 2 ) WHEN - 49 THEN COUNT( * ) / - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT 50 + + 88 * + + 93 + - 29 + CASE - - COUNT ( + 2 ) WHEN - 49 THEN COUNT ( * ) / - 39 END
----
NULL

query I rowsort
SELECT ( + + 9 ) * - 4
----
-36

query II rowsort
SELECT 84 - 97, + NULLIF ( - 65, - - 43 / 53 - 39 + - + 46 * 84 - - 42 ) * + - 41 + - 81 AS col1
----
-13
2584

onlyif mysql # DIV for integer division: 
query I rowsort label-6875
SELECT ( - 92 ) DIV - 55
----
1

skipif mysql # not compatible
query I rowsort label-6875
SELECT ( - 92 ) / - 55
----
1

query I rowsort
SELECT 0 * 75 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6877
SELECT ALL 85 * ( - - 0 ) + - ( - + 82 ) DIV - 98 * 5 col0, SUM( + - 56 ) + - 67 AS col1
----
0
-123

skipif mysql # not compatible
query II rowsort label-6877
SELECT ALL 85 * ( - - 0 ) + - ( - + 82 ) / - 98 * 5 col0, SUM ( + - 56 ) + - 67 AS col1
----
0
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT MAX( ALL + 37 ) col0, 77 AS col0
----
37
77

skipif mysql # not compatible
query II rowsort label-6878
SELECT MAX ( ALL + 37 ) col0, 77 AS col0
----
37
77

query I rowsort
SELECT + 72 * + 22 + 32 - - 97 * - 78 AS col0
----
-5950

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6880
SELECT ALL 22 * + 24 + - 37 DIV - CAST( - 62 AS SIGNED ) * + ( + 10 ), - 73 AS col2
----
528
-73

skipif mysql # not compatible
query II rowsort label-6880
SELECT ALL 22 * + 24 + - 37 / - CAST ( - 62 AS INTEGER ) * + ( + 10 ), - 73 AS col2
----
528
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT 99 * - - MAX( DISTINCT - + 48 )
----
-4752

skipif mysql # not compatible
query I rowsort label-6881
SELECT 99 * - - MAX ( DISTINCT - + 48 )
----
-4752

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT ALL + 93 * + ( - 11 ) + - 49 * - - 67 * - 72 + - 67 + MIN( + 81 ), 76 * - 81 * + 59 col1
----
235367
-363204

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL + 93 * + ( - 11 ) + - 49 * - - 67 * - 72 + - 67 + MIN ( + 81 ), 76 * - 81 * + 59 col1
----
235367
-363204

query I rowsort
SELECT 15 * + - 56
----
-840

query I rowsort
SELECT ALL + 72 * + 29 AS col2
----
2088

query I rowsort
SELECT - 45 * 43 col0
----
-1935

query I rowsort
SELECT ALL + COALESCE ( 16, - 52 - - 95 * 69 ) * 90 + - - 54
----
1494

query I rowsort
SELECT ALL - 66 * 8 * + 83 + + 54
----
-43770

query I rowsort
SELECT 63 * + 34 + + NULLIF ( 46, + ( - 68 ) )
----
2188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6889
SELECT - 0 + 19, 49 * + + CASE + + 89 WHEN - 3 THEN NULL WHEN - + NULLIF ( + 92, - SUM( - 75 ) / NULLIF ( - - 43, + 28 ) ) + + - 13 THEN + + 61 WHEN - 47 / - + COUNT( * ) * + - AVG ( DISTINCT 52 ) * + + AVG ( ALL - ( 29 ) ) + CAST( NULL AS SIGNED ) + + 70 THEN + - ( 37 ) ELSE NULL END / - - 97 / + + 62 AS col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-6889
SELECT - 0 + 19, 49 * + + CASE + + 89 WHEN - 3 THEN NULL WHEN - + NULLIF ( + 92, - SUM ( - 75 ) / NULLIF ( - - 43, + 28 ) ) + + - 13 THEN + + 61 WHEN - 47 / - + COUNT ( * ) * + - AVG ( DISTINCT 52 ) * + + AVG ( ALL - ( 29 ) ) + CAST ( NULL AS INTEGER ) + + 70 THEN + - ( 37 ) ELSE NULL END / - - 97 / + + 62 AS col2
----
19
NULL

query I rowsort
SELECT DISTINCT + - 18 * + 9 * + + 19
----
-3078

query I rowsort
SELECT - + 77 - - COALESCE ( + 66, 65 ) - - 80
----
69

query I rowsort
SELECT 2 * - 48 + + + 91
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6893
SELECT ALL + 38 DIV - + COALESCE ( + ( - CAST( NULL AS SIGNED ) ), - 19 * COUNT( * ) + - 67 ) AS col2, + NULLIF ( - NULLIF ( - CAST( NULL AS SIGNED ), + MIN( DISTINCT - 10 ) * + AVG ( DISTINCT - + 14 ) ), - 3 ) - 41
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6893
SELECT ALL + 38 / - + COALESCE ( + ( - CAST ( NULL AS INTEGER ) ), - 19 * COUNT ( * ) + - 67 ) AS col2, + NULLIF ( - NULLIF ( - CAST ( NULL AS INTEGER ), + MIN ( DISTINCT - 10 ) * + AVG ( DISTINCT - + 14 ) ), - 3 ) - 41
----
0
NULL

query I rowsort
SELECT ALL + + 68 - - 23 * + - 34 + 14 AS col0
----
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT + + AVG ( 30 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6895
SELECT + + AVG ( 30 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 29 + + 39 * - + 20 + + 98 + - 17 + - + 46 AS col0
----
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT + ( 66 ) - + NULLIF ( 56, + 39 / COALESCE ( - - 91, 55 ) / CASE - + 56 WHEN - 92 * + - COUNT( * ) + - 79 * + + 13 * + - 62 * + + 4 - - + SUM( + 78 ) THEN - 83 WHEN + + 72 + + 74 + + - COUNT( * ) * - 33 THEN NULL END ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6897
SELECT + ( 66 ) - + NULLIF ( 56, + 39 / COALESCE ( - - 91, 55 ) / CASE - + 56 WHEN - 92 * + - COUNT ( * ) + - 79 * + + 13 * + - 62 * + + 4 - - + SUM ( + 78 ) THEN - 83 WHEN + + 72 + + 74 + + - COUNT ( * ) * - 33 THEN NULL END ) AS col2
----
10

query I rowsort
SELECT DISTINCT - - 26 * + 28
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT + 57 * ( - + 82 ) * + ( + SUM( 63 ) )
----
-294462

skipif mysql # not compatible
query I rowsort label-6899
SELECT + 57 * ( - + 82 ) * + ( + SUM ( 63 ) )
----
-294462

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT - SUM( DISTINCT - 13 ) * - ( 76 ) AS col0
----
-988

skipif mysql # not compatible
query I rowsort label-6900
SELECT - SUM ( DISTINCT - 13 ) * - ( 76 ) AS col0
----
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT - 12 * - COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6901
SELECT - 12 * - COUNT ( * ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6902
SELECT + 18 + + 86 * + 6 AS col2, - COUNT( * )
----
534
-1

skipif mysql # not compatible
query II rowsort label-6902
SELECT + 18 + + 86 * + 6 AS col2, - COUNT ( * )
----
534
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6903
SELECT ALL 24 DIV 43 * 84
----
0

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL 24 / 43 * 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT + 35 DIV - - 3
----
11

skipif mysql # not compatible
query I rowsort label-6904
SELECT + 35 / - - 3
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6905
SELECT + 94 + + CAST( + 97 AS SIGNED ), + 98 col0
----
191
98

skipif mysql # not compatible
query II rowsort label-6905
SELECT + 94 + + CAST ( + 97 AS INTEGER ), + 98 col0
----
191
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT - CASE - - 95 WHEN - 98 * - - 82 * 24 / + + 45 * - - 16 - 43 + + 83 THEN NULL WHEN - CASE 26 WHEN + - ( 30 ) THEN CAST( + 60 AS SIGNED ) END / + CASE - ( + 75 ) WHEN + - 31 THEN - 89 WHEN 0 THEN + 35 END THEN + - COUNT( * ) - + 66 * + + COUNT( * ) * + + 58 * + + 45 + - CASE - COALESCE ( - + 58, - + ( - COUNT( * ) ), - - 22, 29 ) WHEN - COUNT( * ) + + 25 / 57 / - - 42 THEN - - 93 + - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - + 71 END + - - CAST( ( - 32 ) AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT - CASE - - 95 WHEN - 98 * - - 82 * 24 / + + 45 * - - 16 - 43 + + 83 THEN NULL WHEN - CASE 26 WHEN + - ( 30 ) THEN CAST ( + 60 AS INTEGER ) END / + CASE - ( + 75 ) WHEN + - 31 THEN - 89 WHEN 0 THEN + 35 END THEN + - COUNT ( * ) - + 66 * + + COUNT ( * ) * + + 58 * + + 45 + - CASE - COALESCE ( - + 58, - + ( - COUNT ( * ) ), - - 22, 29 ) WHEN - COUNT ( * ) + + 25 / 57 / - - 42 THEN - - 93 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - + 71 END + - - CAST ( ( - 32 ) AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL COUNT( * ) + - COUNT( * ) + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + ( - 68 ) + 91 * + 72
----
6484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6909
SELECT 70, 25 * COUNT( * ) * + NULLIF ( 73, - 60 - + 41 - 26 / + CAST( + - 34 AS SIGNED ) / 2 + - - COUNT( * ) ) AS col1
----
70
1825

skipif mysql # not compatible
query II rowsort label-6909
SELECT 70, 25 * COUNT ( * ) * + NULLIF ( 73, - 60 - + 41 - 26 / + CAST ( + - 34 AS INTEGER ) / 2 + - - COUNT ( * ) ) AS col1
----
70
1825

query I rowsort
SELECT + 99 + + 28 + 23
----
150

query I rowsort
SELECT ALL 5 + + + 49 col2
----
54

query I rowsort
SELECT + ( - - 37 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6913
SELECT ALL + 44 AS col2, CAST( NULL AS SIGNED ) AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-6913
SELECT ALL + 44 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
44
NULL

query II rowsort
SELECT + 28 * + ( - - 55 ) AS col1, 16
----
1540
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6915
SELECT ( - + MAX( ALL - - CAST( NULL AS SIGNED ) ) ) AS col1, 54 * 65 + - ( 62 ) + - 87 + - 6 * - 82
----
NULL
3853

skipif mysql # not compatible
query II rowsort label-6915
SELECT ( - + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) ) AS col1, 54 * 65 + - ( 62 ) + - 87 + - 6 * - 82
----
NULL
3853

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT ALL + 72 DIV + 55 + 9 + - 84 + + - ( 71 )
----
-145

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + 72 / + 55 + 9 + - 84 + + - ( 71 )
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT ( - ( CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT ( - ( CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT - 22 + + 39 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ( MAX( - 11 ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6919
SELECT ( MAX ( - 11 ) ) AS col1
----
-11

query I rowsort
SELECT ( ( - 83 ) ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6921
SELECT + CAST( NULL AS SIGNED ) AS col0, - 2 + - 39 AS col1
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-6921
SELECT + CAST ( NULL AS INTEGER ) AS col0, - 2 + - 39 AS col1
----
NULL
-41

query I rowsort
SELECT - 15 + - 74 + 79
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT ALL + COUNT( ( - ( + 27 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL + COUNT ( ( - ( + 27 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT DISTINCT - 45 * + COUNT( * ) * + NULLIF ( - - MAX( ALL - + 61 ), 69 ) AS col0
----
2745

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT - 45 * + COUNT ( * ) * + NULLIF ( - - MAX ( ALL - + 61 ), 69 ) AS col0
----
2745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT ALL + 48 * + 41 - 55 + + CAST( - 68 AS SIGNED ) * - - 39
----
-739

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL + 48 * + 41 - 55 + + CAST ( - 68 AS INTEGER ) * - - 39
----
-739

query I rowsort
SELECT DISTINCT + + 76 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL - COUNT( * ) * - 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - COUNT ( * ) * - 30 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6928
SELECT - - 6 / CASE + CAST( + NULLIF ( 43, 64 + 71 - + - 15 * + + 5 * 53 ) AS SIGNED ) WHEN COUNT( * ) THEN 84 / + ( - COUNT( * ) ) END * - 6 + + - 57 AS col1, 29
----
NULL
29

skipif mysql # not compatible
query II rowsort label-6928
SELECT - - 6 / CASE + CAST ( + NULLIF ( 43, 64 + 71 - + - 15 * + + 5 * 53 ) AS INTEGER ) WHEN COUNT ( * ) THEN 84 / + ( - COUNT ( * ) ) END * - 6 + + - 57 AS col1, 29
----
NULL
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT DISTINCT - ( + 52 ) DIV - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT - ( + 52 ) / - 62 AS col0
----
0

query I rowsort
SELECT DISTINCT - 95 * + 17
----
-1615

query I rowsort
SELECT ALL - 51 * + 74 * + - 93 AS col1
----
350982

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT + 87 DIV 11 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6932
SELECT + 87 / 11 AS col0
----
7

query I rowsort
SELECT DISTINCT + - 40 AS col2
----
-40

query II rowsort
SELECT ALL + 29 AS col0, - 76 * + 35
----
29
-2660

query I rowsort
SELECT - 3 * 26 * 28 AS col2
----
-2184

onlyif mysql # DIV for integer division: 
query II rowsort label-6936
SELECT - + 86 + - + 85 DIV + - CASE - 98 WHEN 72 - 97 THEN NULL ELSE + + 39 * - - 77 + - 12 - + 35 END AS col1, 36 AS col2
----
-86
36

skipif mysql # not compatible
query II rowsort label-6936
SELECT - + 86 + - + 85 / + - CASE - 98 WHEN 72 - 97 THEN NULL ELSE + + 39 * - - 77 + - 12 - + 35 END AS col1, 36 AS col2
----
-86
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT ALL CAST( - 59 AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL CAST ( - 59 AS INTEGER ) AS col1
----
-59

query II rowsort
SELECT - 62 AS col0, ( 88 ) * - 97 * 18
----
-62
-153648

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT - 6 - COALESCE ( - + 46, + 12 - + 77 + - - 86 - + 32 * MIN( + + ( - 38 ) ) * + + 68 * 49, + SUM( ALL - 51 ), + 75 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6939
SELECT - 6 - COALESCE ( - + 46, + 12 - + 77 + - - 86 - + 32 * MIN ( + + ( - 38 ) ) * + + 68 * 49, + SUM ( ALL - 51 ), + 75 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT - ( + CASE + - 46 WHEN + MIN( + 72 ) * - ( + 97 ) + - - COUNT( * ) + + - 73 THEN - SUM( 33 ) WHEN - SUM( ALL + 65 ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT - ( + CASE + - 46 WHEN + MIN ( + 72 ) * - ( + 97 ) + - - COUNT ( * ) + + - 73 THEN - SUM ( 33 ) WHEN - SUM ( ALL + 65 ) THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL 18 * - 32
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL COUNT( + - 10 ) + 66 + 52 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL COUNT ( + - 10 ) + 66 + 52 AS col2
----
119

query I rowsort
SELECT - ( 69 ) + + + 57
----
-12

query I rowsort
SELECT ALL + 8 + NULLIF ( + 64, + ( - 33 ) ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6945
SELECT DISTINCT 53 + CAST( 74 AS SIGNED ) - + NULLIF ( + COUNT( * ), + 63 * + + 68 + + + 46 )
----
126

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT 53 + CAST ( 74 AS INTEGER ) - + NULLIF ( + COUNT ( * ), + 63 * + + 68 + + + 46 )
----
126

query I rowsort
SELECT - 58 + 19 AS col0
----
-39

query I rowsort
SELECT ALL - 44 + - - 97
----
53

query I rowsort
SELECT DISTINCT + 90 * 73
----
6570

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL - COUNT( * ) * + - COUNT( DISTINCT 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - COUNT ( * ) * + - COUNT ( DISTINCT 1 ) AS col0
----
1

query I rowsort
SELECT ALL ( 40 ) + - + 93
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6951
SELECT 61 AS col0, 46 + - - 40 + + NULLIF ( ( + + CASE - - 14 WHEN + 92 / ( + ( - - 95 ) ) THEN CAST( + 83 AS SIGNED ) END ), - 39 * COUNT( ALL - 45 ) - - 98 * - + 63 + + 31 + 9 ) * - - CASE + 91 WHEN - ( - COUNT( * ) ) THEN NULL WHEN - + NULLIF ( - COALESCE ( COUNT( * ), 65, 90 ), 60 + - ( - 95 ) ) + + 16 + 56 * + ( + - 94 ) + - + NULLIF ( + 49, 75 ) THEN - + 12 ELSE + CAST( + + CASE + COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + + 73 THEN + COUNT( * ) ELSE NULL END AS SIGNED ) + 68 END
----
61
NULL

skipif mysql # not compatible
query II rowsort label-6951
SELECT 61 AS col0, 46 + - - 40 + + NULLIF ( ( + + CASE - - 14 WHEN + 92 / ( + ( - - 95 ) ) THEN CAST ( + 83 AS INTEGER ) END ), - 39 * COUNT ( ALL - 45 ) - - 98 * - + 63 + + 31 + 9 ) * - - CASE + 91 WHEN - ( - COUNT ( * ) ) THEN NULL WHEN - + NULLIF ( - COALESCE ( COUNT ( * ), 65, 90 ), 60 + - ( - 95 ) ) + + 16 + 56 * + ( + - 94 ) + - + NULLIF ( + 49, 75 ) THEN - + 12 ELSE + CAST ( + + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + + 73 THEN + COUNT ( * ) ELSE NULL END AS INTEGER ) + 68 END
----
61
NULL

query I rowsort
SELECT DISTINCT 52 + + 89
----
141

query I rowsort
SELECT ALL ( + - 29 ) + 30
----
1

query II rowsort
SELECT - 93 AS col0, + 45 - - 69 col1
----
-93
114

query II rowsort
SELECT DISTINCT 63 * 13 AS col1, 3 AS col2
----
819
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT 98 - - NULLIF ( + 99, - COUNT( * ) )
----
197

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT 98 - - NULLIF ( + 99, - COUNT ( * ) )
----
197

query I rowsort
SELECT DISTINCT 9 * - 50 * - 17 AS col2
----
7650

onlyif mysql # aggregate syntax: 
query II rowsort label-6958
SELECT ALL + 82 - - 17 col1, - CASE - 89 WHEN - - 4 * COUNT( * ) THEN NULL ELSE SUM( - 48 ) * - MIN( + 5 ) END
----
99
-240

skipif mysql # not compatible
query II rowsort label-6958
SELECT ALL + 82 - - 17 col1, - CASE - 89 WHEN - - 4 * COUNT ( * ) THEN NULL ELSE SUM ( - 48 ) * - MIN ( + 5 ) END
----
99
-240

query I rowsort
SELECT ( + 74 ) * + 31 AS col2
----
2294

query I rowsort
SELECT ALL - - 48 col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT DISTINCT MIN( DISTINCT - - 64 ) - - 76 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT MIN ( DISTINCT - - 64 ) - - 76 AS col2
----
140

query I rowsort
SELECT 87 * - + 34 AS col2
----
-2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6963
SELECT 31 * - CASE - MIN( - 52 ) WHEN - + 14 / + COALESCE ( - 54, + + 22 + - COUNT( * ) ) - + ( + + 6 ) + + 74 THEN + 88 * + COALESCE ( + + CAST( NULL AS SIGNED ), + 91 ) * MIN( - + 76 ) / - - 89 * - + 94 + 56 + + MIN( - - 27 ) * + + ( + + COALESCE ( + - 49, + ( - - AVG ( ALL - - 97 ) ), - + 23 ) ) * - 78 + + 59 WHEN - + 87 * 40 THEN - 23 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT 31 * - CASE - MIN ( - 52 ) WHEN - + 14 / + COALESCE ( - 54, + + 22 + - COUNT ( * ) ) - + ( + + 6 ) + + 74 THEN + 88 * + COALESCE ( + + CAST ( NULL AS INTEGER ), + 91 ) * MIN ( - + 76 ) / - - 89 * - + 94 + 56 + + MIN ( - - 27 ) * + + ( + + COALESCE ( + - 49, + ( - - AVG ( ALL - - 97 ) ), - + 23 ) ) * - 78 + + 59 WHEN - + 87 * 40 THEN - 23 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 24 col2
----
-24

query I rowsort
SELECT + ( - 92 ) + - 1
----
-93

query II rowsort
SELECT ALL - - 72 AS col1, + 88
----
72
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT COUNT( * ) + + 11 col2
----
12

skipif mysql # not compatible
query I rowsort label-6967
SELECT COUNT ( * ) + + 11 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT ALL - 70 + 74 + + COUNT( + 27 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL - 70 + 74 + + COUNT ( + 27 ) AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT + 39 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-6969
SELECT + 39 / 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL + 95 + 61 + - MIN( DISTINCT + 74 ) + + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL + 95 + 61 + - MIN ( DISTINCT + 74 ) + + COUNT ( * ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6971
SELECT ALL CAST( NULL AS SIGNED ) * ( 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL CAST ( NULL AS INTEGER ) * ( 25 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6972
SELECT + 4, 82 + + 84 DIV + 36 AS col1
----
4
84

skipif mysql # not compatible
query II rowsort label-6972
SELECT + 4, 82 + + 84 / + 36 AS col1
----
4
84

query I rowsort
SELECT 36 * - - 38
----
1368

query I rowsort
SELECT ALL - 4 + - + 72 AS col1
----
-76

query II rowsort
SELECT - 54 AS col0, + 0 * - + 42
----
-54
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6976
SELECT + 25 * + - ( + 36 ) * - - 79 / + 77 * + 52 + - CAST( NULL AS SIGNED ) + - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT + 25 * + - ( + 36 ) * - - 79 / + 77 * + 52 + - CAST ( NULL AS INTEGER ) + - 92 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6977
SELECT 85 * - 10 * + 92 * 80 + - 17 / + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT 85 * - 10 * + 92 * 80 + - 17 / + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL - COUNT( * ) + - MIN( ( - 11 ) ) col2
----
10

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL - COUNT ( * ) + - MIN ( ( - 11 ) ) col2
----
10

query II rowsort
SELECT 84 + + + 31, - 23 col0
----
115
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-6980
SELECT ALL - 49 + + 75 + - + 52 * - 4 * - 90, + COUNT( - 64 ) * - 47 * + - 87 + + 6 * + 10 AS col0
----
-18694
4149

skipif mysql # not compatible
query II rowsort label-6980
SELECT ALL - 49 + + 75 + - + 52 * - 4 * - 90, + COUNT ( - 64 ) * - 47 * + - 87 + + 6 * + 10 AS col0
----
-18694
4149

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT COUNT( * ) + + COUNT( 8 )
----
2

skipif mysql # not compatible
query I rowsort label-6981
SELECT COUNT ( * ) + + COUNT ( 8 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT ALL - 13 - COALESCE ( ( CAST( - 43 AS SIGNED ) ), + - 90, + ( - - 0 ) + + + 59 * + NULLIF ( - 42, ( - 58 ) ) - + - 22 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL - 13 - COALESCE ( ( CAST ( - 43 AS INTEGER ) ), + - 90, + ( - - 0 ) + + + 59 * + NULLIF ( - 42, ( - 58 ) ) - + - 22 ) AS col1
----
30

query I rowsort
SELECT 99 * 40
----
3960

query II rowsort
SELECT ALL - 4 * - 76, 7 * + 8 AS col0
----
304
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT COUNT( * ) + + + COUNT( ALL + 60 )
----
2

skipif mysql # not compatible
query I rowsort label-6985
SELECT COUNT ( * ) + + + COUNT ( ALL + 60 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL - COUNT( * ) * - 45 * + 52
----
2340

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL - COUNT ( * ) * - 45 * + 52
----
2340

onlyif mysql # aggregate syntax: 
query III rowsort label-6987
SELECT ALL + 87 * - - 54 AS col2, + NULLIF ( - 86, - 67 ), ( 43 ) + COUNT( * ) col2
----
4698
-86
44

skipif mysql # not compatible
query III rowsort label-6987
SELECT ALL + 87 * - - 54 AS col2, + NULLIF ( - 86, - 67 ), ( 43 ) + COUNT ( * ) col2
----
4698
-86
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6988
SELECT ALL 90 DIV + - 78 + - COUNT( * ) * + ( + + 30 ) - + + 21 col0
----
-52

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL 90 / + - 78 + - COUNT ( * ) * + ( + + 30 ) - + + 21 col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6989
SELECT + CAST( NULL AS SIGNED ) + - - 28 * - ( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT + CAST ( NULL AS INTEGER ) + - - 28 * - ( 49 )
----
NULL

query I rowsort
SELECT + + 2 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT 45 * + CASE - 3 WHEN - + 80 + - 98 * COUNT( * ) + + + 30 + + 56 * + + 25 THEN + 70 * + ( + 80 ) WHEN + + COALESCE ( 26, SUM( DISTINCT + + 41 ) ) + 67 + + + 24 * + - 58 * - 91 THEN NULL ELSE NULL END * - 99 + - 88 + 24 + - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT 45 * + CASE - 3 WHEN - + 80 + - 98 * COUNT ( * ) + + + 30 + + 56 * + + 25 THEN + 70 * + ( + 80 ) WHEN + + COALESCE ( 26, SUM ( DISTINCT + + 41 ) ) + 67 + + + 24 * + - 58 * - 91 THEN NULL ELSE NULL END * - 99 + - 88 + 24 + - - 14 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6992
SELECT + - COALESCE ( - 70, + 9 + + CAST( NULL AS SIGNED ) + + 24 * 38 )
----
70

skipif mysql # not compatible
query I rowsort label-6992
SELECT + - COALESCE ( - 70, + 9 + + CAST ( NULL AS INTEGER ) + + 24 * 38 )
----
70

query I rowsort
SELECT DISTINCT 22 * 95
----
2090

onlyif mysql # aggregate syntax: 
query II rowsort label-6994
SELECT ALL - COUNT( * ) * + 54, 1 AS col2
----
-54
1

skipif mysql # not compatible
query II rowsort label-6994
SELECT ALL - COUNT ( * ) * + 54, 1 AS col2
----
-54
1

query I rowsort
SELECT ALL 62 + - + 45 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL COUNT( * ) * 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL COUNT ( * ) * 11 AS col2
----
11

query I rowsort
SELECT 4 * - - 39 - - 48 * + + 39 AS col1
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT - COUNT( * ) * - 87
----
87

skipif mysql # not compatible
query I rowsort label-6998
SELECT - COUNT ( * ) * - 87
----
87

query I rowsort
SELECT + 12 * + 88 AS col2
----
1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7000
SELECT - NULLIF ( + CASE + 97 WHEN - 69 * + COUNT( * ) + - ( - - 77 ) - COUNT( * ) * + 1 + - 84 + + + 39 * + + 21 - - 29 / MIN( ALL + 79 ) + 22 + - + ( - + COUNT( DISTINCT - 51 ) ) THEN NULL WHEN + 16 THEN - + 75 + - 7 ELSE 14 * - 3 * CAST( NULL AS SIGNED ) END, - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT - NULLIF ( + CASE + 97 WHEN - 69 * + COUNT ( * ) + - ( - - 77 ) - COUNT ( * ) * + 1 + - 84 + + + 39 * + + 21 - - 29 / MIN ( ALL + 79 ) + 22 + - + ( - + COUNT ( DISTINCT - 51 ) ) THEN NULL WHEN + 16 THEN - + 75 + - 7 ELSE 14 * - 3 * CAST ( NULL AS INTEGER ) END, - 51 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7001
SELECT ALL 41 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL 41 / 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7002
SELECT DISTINCT 0 - + ( - 24 ) + + - 67 * + 87 + COALESCE ( - 31, - 51 ) AS col2, - 28 * + 96 + + MIN( ALL + + 47 ) AS col2
----
-5836
-2641

skipif mysql # not compatible
query II rowsort label-7002
SELECT DISTINCT 0 - + ( - 24 ) + + - 67 * + 87 + COALESCE ( - 31, - 51 ) AS col2, - 28 * + 96 + + MIN ( ALL + + 47 ) AS col2
----
-5836
-2641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7003
SELECT DISTINCT + CASE - 33 WHEN COUNT( * ) THEN + + 25 + + 67 / - 91 - + 42 * 34 ELSE NULL END * + CAST( - 56 AS SIGNED ) + - 96 + + MIN( ALL 18 ) * - 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT + CASE - 33 WHEN COUNT ( * ) THEN + + 25 + + 67 / - 91 - + 42 * 34 ELSE NULL END * + CAST ( - 56 AS INTEGER ) + - 96 + + MIN ( ALL 18 ) * - 90 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7004
SELECT + CAST( - 55 AS SIGNED ) + + ( COUNT( * ) ) * + 82 DIV + 30
----
-53

skipif mysql # not compatible
query I rowsort label-7004
SELECT + CAST ( - 55 AS INTEGER ) + + ( COUNT ( * ) ) * + 82 / + 30
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7005
SELECT + CAST( NULL AS SIGNED ) * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT + CAST ( NULL AS INTEGER ) * - 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT - COUNT( * ) * 36 * 18
----
-648

skipif mysql # not compatible
query I rowsort label-7006
SELECT - COUNT ( * ) * 36 * 18
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT DISTINCT SUM( - 46 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT SUM ( - 46 ) col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7008
SELECT ALL - ( - - 69 ) * + 60 + 57 + + - NULLIF ( 35, COALESCE ( - CAST( NULL AS SIGNED ), - 80 + + 93 ) ) AS col1
----
-4118

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - ( - - 69 ) * + 60 + 57 + + - NULLIF ( 35, COALESCE ( - CAST ( NULL AS INTEGER ), - 80 + + 93 ) ) AS col1
----
-4118

query I rowsort
SELECT - 99 * - 81
----
8019

query I rowsort
SELECT - 69 + - 52
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT ALL COUNT( ALL + 36 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL COUNT ( ALL + 36 ) AS col1
----
1

query I rowsort
SELECT - 45 + - - 57 * + + 62 AS col2
----
3489

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL COALESCE ( - 18, - SUM( - 44 ) + + 82 - COUNT( * ) + + + MAX( ALL + + 50 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL COALESCE ( - 18, - SUM ( - 44 ) + + 82 - COUNT ( * ) + + + MAX ( ALL + + 50 ) ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT - 63 * - 6 * NULLIF ( - 43, - SUM( + 30 ) * + ( 69 ) + AVG ( DISTINCT 90 ) ) AS col1
----
-16254

skipif mysql # not compatible
query I rowsort label-7014
SELECT - 63 * - 6 * NULLIF ( - 43, - SUM ( + 30 ) * + ( 69 ) + AVG ( DISTINCT 90 ) ) AS col1
----
-16254

query I rowsort
SELECT ALL NULLIF ( - 91, + 5 * ( - 80 ) / - 1 + - - 76 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7016
SELECT ALL NULLIF ( + 51, + + 11 * + COUNT( 11 ) + - 32 * + + 69 * + + 68 ), 80 col2
----
51
80

skipif mysql # not compatible
query II rowsort label-7016
SELECT ALL NULLIF ( + 51, + + 11 * + COUNT ( 11 ) + - 32 * + + 69 * + + 68 ), 80 col2
----
51
80

query I rowsort
SELECT + 9 + 92
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT - COUNT( * ) - + 62 + - 2
----
-65

skipif mysql # not compatible
query I rowsort label-7018
SELECT - COUNT ( * ) - + 62 + - 2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL COUNT( - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL COUNT ( - 95 )
----
1

query I rowsort
SELECT - 27 * 97 AS col2
----
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT - COUNT( * ) * 86
----
-86

skipif mysql # not compatible
query I rowsort label-7021
SELECT - COUNT ( * ) * 86
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7022
SELECT - 5 + + COUNT( * ) * + - CAST( - CAST( - 3 AS SIGNED ) AS SIGNED ) * 75 + + COUNT( * ) - + NULLIF ( - 26, 68 ) AS col0
----
-203

skipif mysql # not compatible
query I rowsort label-7022
SELECT - 5 + + COUNT ( * ) * + - CAST ( - CAST ( - 3 AS INTEGER ) AS INTEGER ) * 75 + + COUNT ( * ) - + NULLIF ( - 26, 68 ) AS col0
----
-203

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7023
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT + CAST ( NULL AS REAL ) * 78
----
NULL

query II rowsort
SELECT ALL 47, - 6 AS col0
----
47
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT + + 94 DIV + 32 - + 19 + - 51
----
-68

skipif mysql # not compatible
query I rowsort label-7025
SELECT + + 94 / + 32 - + 19 + - 51
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT - 66 * - 74 + + MAX( DISTINCT + - 23 ) + + + 44 AS col2
----
4905

skipif mysql # not compatible
query I rowsort label-7026
SELECT - 66 * - 74 + + MAX ( DISTINCT + - 23 ) + + + 44 AS col2
----
4905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7027
SELECT 25 * - NULLIF ( + 19, - + 22 / 44 + - COUNT( * ) ) + + CAST( NULL AS SIGNED ) / - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT 25 * - NULLIF ( + 19, - + 22 / 44 + - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) / - - 73
----
NULL

query I rowsort
SELECT DISTINCT + + 92 * - 14 col1
----
-1288

query II rowsort
SELECT + 9 AS col1, - 34
----
9
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7030
SELECT + 25 * - + ( - 19 ) - + + ( + 30 ) + - CAST( NULL AS SIGNED ) AS col1, - 3 * COUNT( * ) AS col0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-7030
SELECT + 25 * - + ( - 19 ) - + + ( + 30 ) + - CAST ( NULL AS INTEGER ) AS col1, - 3 * COUNT ( * ) AS col0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT DISTINCT + SUM( + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT + SUM ( + 54 )
----
54

query I rowsort
SELECT ALL 46 * 80 * 59 + + 88
----
217208

query II rowsort
SELECT ALL + 29 col2, 48 + - 1
----
29
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT + COALESCE ( + ( + COUNT( * ) ), 31 )
----
1

skipif mysql # not compatible
query I rowsort label-7034
SELECT + COALESCE ( + ( + COUNT ( * ) ), 31 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7035
SELECT + - 67 DIV + 43 + - + 56, 56 AS col0
----
-57
56

skipif mysql # not compatible
query II rowsort label-7035
SELECT + - 67 / + 43 + - + 56, 56 AS col0
----
-57
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT + COUNT( * ) * - + 57 + + COUNT( * ) AS col1, 39 + 53 + 40
----
-56
132

skipif mysql # not compatible
query II rowsort label-7036
SELECT + COUNT ( * ) * - + 57 + + COUNT ( * ) AS col1, 39 + 53 + 40
----
-56
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7037
SELECT + + CAST( + 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7037
SELECT + + CAST ( + 4 AS INTEGER ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL 40 * + 86 * 91 - SUM( ALL 40 ) + - + 2 AS col1
----
312998

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL 40 * + 86 * 91 - SUM ( ALL 40 ) + - + 2 AS col1
----
312998

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT + 71 * 76 DIV - 67 + - 57 AS col0
----
-137

skipif mysql # not compatible
query I rowsort label-7039
SELECT + 71 * 76 / - 67 + - 57 AS col0
----
-137

query I rowsort
SELECT 22 * - 75 + + 63
----
-1587

query I rowsort
SELECT ALL + 45 col0
----
45

query I rowsort
SELECT ALL - 62 * + 40 * + - 65 - + ( + 15 ) + + + COALESCE ( - - 88, + 39 )
----
161273

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT MAX( + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7043
SELECT MAX ( + 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + MAX( DISTINCT + - CASE + 73 WHEN 82 THEN - 0 ELSE NULL END ) + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT + MAX ( DISTINCT + - CASE + 73 WHEN 82 THEN - 0 ELSE NULL END ) + + 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7045
SELECT - CASE - 23 WHEN + + 97 THEN + 81 ELSE NULL END col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7045
SELECT - CASE - 23 WHEN + + 97 THEN + 81 ELSE NULL END col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT MAX( + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-7046
SELECT MAX ( + 67 )
----
67

query II rowsort
SELECT - ( - - 86 ), 98 * 26 col1
----
-86
2548

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7048
SELECT DISTINCT + 41 * - 2, CAST( NULL AS SIGNED ) AS col0
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-7048
SELECT DISTINCT + 41 * - 2, CAST ( NULL AS INTEGER ) AS col0
----
-82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7049
SELECT ALL NULLIF ( + + COUNT( * ), CAST( + MAX( - 44 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL NULLIF ( + + COUNT ( * ), CAST ( + MAX ( - 44 ) AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7050
SELECT + 10 * - COUNT( * ) AS col2, CASE + 38 WHEN + COALESCE ( + - COUNT( * ), 52 + - - CASE + + 37 WHEN + 22 THEN 68 WHEN CAST( NULL AS DECIMAL ) THEN NULL END * + 74 * - + 70 / - - 18, + 74 + - + CAST( - CASE + 46 WHEN - MAX( DISTINCT + 14 ) + - - SUM( - 61 ) + - + CAST( NULL AS SIGNED ) THEN + NULLIF ( + 97, - + 62 ) END AS SIGNED ) + 85 ) * - 48 THEN + 68 * + ( - - AVG ( - 49 ) ) WHEN + - 91 * + - 59 THEN NULL END
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-7050
SELECT + 10 * - COUNT ( * ) AS col2, CASE + 38 WHEN + COALESCE ( + - COUNT ( * ), 52 + - - CASE + + 37 WHEN + 22 THEN 68 WHEN CAST ( NULL AS REAL ) THEN NULL END * + 74 * - + 70 / - - 18, + 74 + - + CAST ( - CASE + 46 WHEN - MAX ( DISTINCT + 14 ) + - - SUM ( - 61 ) + - + CAST ( NULL AS INTEGER ) THEN + NULLIF ( + 97, - + 62 ) END AS INTEGER ) + 85 ) * - 48 THEN + 68 * + ( - - AVG ( - 49 ) ) WHEN + - 91 * + - 59 THEN NULL END
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL 21 * + COUNT( * ) * - - 95 col0
----
1995

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL 21 * + COUNT ( * ) * - - 95 col0
----
1995

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT + 27 DIV + 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7052
SELECT + 27 / + 45 AS col2
----
0

query I rowsort
SELECT - 33 * - 15 * 51 * + + 86 col1
----
2171070

query I rowsort
SELECT ALL 15 + - 78 + + 56 * - - 36
----
1953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT ALL - ( + 75 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL - ( + 75 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 65 + 66
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT ALL COUNT( * ) + - 4 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL COUNT ( * ) + - 4 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL - - 94 + 54 * 67 + 22 + + MAX( ALL + 88 ) * - 72 AS col2
----
-2602

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL - - 94 + 54 * 67 + 22 + + MAX ( ALL + 88 ) * - 72 AS col2
----
-2602

query II rowsort
SELECT + NULLIF ( + 32, 68 + 68 ) AS col0, + 92
----
32
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT ALL + + CAST( - 89 AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL + + CAST ( - 89 AS INTEGER ) AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7061
SELECT ALL CAST( NULL AS SIGNED ) / - 51 + + + COUNT( * ) + - AVG ( DISTINCT - 21 ) * + - 79 * + 22 * - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL CAST ( NULL AS INTEGER ) / - 51 + + + COUNT ( * ) + - AVG ( DISTINCT - 21 ) * + - 79 * + 22 * - 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT + + MIN( + 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7062
SELECT + + MIN ( + 84 ) AS col2
----
84

query I rowsort
SELECT ALL + + 14 * + 38 + + + 52 AS col2
----
584

query I rowsort
SELECT ALL + + 39 * 53 * 25 AS col0
----
51675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7065
SELECT DISTINCT + CAST( - + ( - CASE - COUNT( * ) WHEN - ( - + 55 ) * - - 0 THEN 83 WHEN - 15 THEN NULL ELSE NULL END ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT + CAST ( - + ( - CASE - COUNT ( * ) WHEN - ( - + 55 ) * - - 0 THEN 83 WHEN - 15 THEN NULL ELSE NULL END ) AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT DISTINCT + ( - - 48 ) DIV + 57 * - - 40 - 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT + ( - - 48 ) / + 57 * - - 40 - 0 col0
----
0

query I rowsort
SELECT DISTINCT + - 42
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7068
SELECT CASE + COALESCE ( + + 3, - + 61 ) WHEN + 98 + + 94 THEN 35 - - + 25 WHEN MAX( + 21 ) THEN - CAST( - COUNT( * ) AS SIGNED ) + 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT CASE + COALESCE ( + + 3, - + 61 ) WHEN + 98 + + 94 THEN 35 - - + 25 WHEN MAX ( + 21 ) THEN - CAST ( - COUNT ( * ) AS INTEGER ) + 61 END AS col0
----
NULL

query I rowsort
SELECT 12 * 71
----
852

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7070
SELECT ALL - 48, CAST( - 33 AS SIGNED ) AS col2
----
-48
-33

skipif mysql # not compatible
query II rowsort label-7070
SELECT ALL - 48, CAST ( - 33 AS INTEGER ) AS col2
----
-48
-33

query II rowsort
SELECT + 11 AS col2, ( 52 ) col0
----
11
52

query I rowsort
SELECT 90 * + 90 AS col1
----
8100

query I rowsort
SELECT ALL - ( 52 ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT 38 * + NULLIF ( + COUNT( * ), - 10 )
----
38

skipif mysql # not compatible
query I rowsort label-7074
SELECT 38 * + NULLIF ( + COUNT ( * ), - 10 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7075
SELECT ALL - ( 41 ) DIV 12 + - 36 * - 89 col1
----
3201

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL - ( 41 ) / 12 + - 36 * - 89 col1
----
3201

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT ALL 5 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL 5 / 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT DISTINCT - 73 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT - 73 / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT COUNT( * ) * - 61 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7078
SELECT COUNT ( * ) * - 61 AS col1
----
-61

query I rowsort
SELECT NULLIF ( + - 9, + 29 ) - - 33 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT COUNT( * ) * - - 65 * 55 AS col0
----
3575

skipif mysql # not compatible
query I rowsort label-7080
SELECT COUNT ( * ) * - - 65 * 55 AS col0
----
3575

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT COUNT( * ) + - 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-7081
SELECT COUNT ( * ) + - 58 AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT CAST( - + 21 AS SIGNED ) * - 96 + - 15
----
2001

skipif mysql # not compatible
query I rowsort label-7082
SELECT CAST ( - + 21 AS INTEGER ) * - 96 + - 15
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT ALL 74 + + 22 + + NULLIF ( - - COUNT( * ), AVG ( ALL + 52 ) + + + 70 ) + - - 11 + - - COUNT( * ) AS col1
----
109

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL 74 + + 22 + + NULLIF ( - - COUNT ( * ), AVG ( ALL + 52 ) + + + 70 ) + - - 11 + - - COUNT ( * ) AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT COUNT( * ) + 23 * - 24 * - COUNT( * ) AS col0
----
553

skipif mysql # not compatible
query I rowsort label-7084
SELECT COUNT ( * ) + 23 * - 24 * - COUNT ( * ) AS col0
----
553

query II rowsort
SELECT ALL 56, + 95 + + 77 * - - 28 + 17 AS col2
----
56
2268

query I rowsort
SELECT DISTINCT + 10 + - 12
----
-2

query I rowsort
SELECT DISTINCT 26 + + 4 AS col2
----
30

query I rowsort
SELECT ALL ( 69 ) + 91
----
160

query I rowsort
SELECT ALL 61 + 81 AS col2
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7090
SELECT ALL - 93 + 26 * + CAST( - CASE 73 WHEN - AVG ( DISTINCT 9 ) THEN - 60 * + 18 + COUNT( ALL 30 ) ELSE NULL END * + 60 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL - 93 + 26 * + CAST ( - CASE 73 WHEN - AVG ( DISTINCT 9 ) THEN - 60 * + 18 + COUNT ( ALL 30 ) ELSE NULL END * + 60 AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT ALL 32 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL 32 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT 84 DIV 5
----
16

skipif mysql # not compatible
query I rowsort label-7092
SELECT 84 / 5
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT ( MIN( 41 ) ) + - 39
----
2

skipif mysql # not compatible
query I rowsort label-7093
SELECT ( MIN ( 41 ) ) + - 39
----
2

query I rowsort
SELECT ALL 25 + + 62
----
87

query I rowsort
SELECT 68 * + 56
----
3808

query I rowsort
SELECT 74 - - COALESCE ( - 73 + 91, 65, + 13 ) AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7097
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), ( - 90 ) - - 24 )
----
66

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), ( - 90 ) - - 24 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT ALL 89 - MIN( ALL + 76 ) * - 92 col2
----
7081

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL 89 - MIN ( ALL + 76 ) * - 92 col2
----
7081

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT SUM( - ( 47 ) ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-7099
SELECT SUM ( - ( 47 ) ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL - COALESCE ( 31, + 76 ) - - COUNT( * ) * 82 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - COALESCE ( 31, + 76 ) - - COUNT ( * ) * 82 AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7101
SELECT 49 DIV 1 - 19 DIV - ( 29 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7101
SELECT 49 / 1 - 19 / - ( 29 ) AS col0
----
49

query I rowsort
SELECT + 7 * + 99 + 33
----
726

query I rowsort
SELECT 19 - 14
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT 49 * - 38 + COUNT( ALL - 52 ) AS col0
----
-1861

skipif mysql # not compatible
query I rowsort label-7104
SELECT 49 * - 38 + COUNT ( ALL - 52 ) AS col0
----
-1861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7105
SELECT - CAST( 62 AS SIGNED ) DIV ( COUNT( * ) ) + - 42
----
-104

skipif mysql # not compatible
query I rowsort label-7105
SELECT - CAST ( 62 AS INTEGER ) / ( COUNT ( * ) ) + - 42
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT - 69 * - MIN( 12 ) - - 86 * 42 AS col1
----
4440

skipif mysql # not compatible
query I rowsort label-7106
SELECT - 69 * - MIN ( 12 ) - - 86 * 42 AS col1
----
4440

query I rowsort
SELECT 18 + - 89
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7108
SELECT ALL 76 DIV + COUNT( + 31 * + 71 )
----
76

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL 76 / + COUNT ( + 31 * + 71 )
----
76

query I rowsort
SELECT ALL - ( 32 ) AS col0
----
-32

query I rowsort
SELECT - 69 * + 24 + - 43
----
-1699

query I rowsort
SELECT ALL - ( - 87 ) col0
----
87

query I rowsort
SELECT ALL - 23 + 19 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT 87 * COUNT( * ) + COALESCE ( - 77 + - 19, COUNT( * ) * - 84 )
----
-9

skipif mysql # not compatible
query I rowsort label-7113
SELECT 87 * COUNT ( * ) + COALESCE ( - 77 + - 19, COUNT ( * ) * - 84 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT ALL + 96 + - 32 DIV 87
----
96

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + 96 + - 32 / 87
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT - COALESCE ( - 69, COUNT( * ) * + 30 ) + - SUM( + COALESCE ( + 30, - 11 ) + 60 )
----
-21

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT - COALESCE ( - 69, COUNT ( * ) * + 30 ) + - SUM ( + COALESCE ( + 30, - 11 ) + 60 )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT 27 DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7116
SELECT 27 / + 99 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT 63 + COUNT( * ) * ( + 41 * + 50 )
----
2113

skipif mysql # not compatible
query I rowsort label-7117
SELECT 63 + COUNT ( * ) * ( + 41 * + 50 )
----
2113

query I rowsort
SELECT DISTINCT - 6 + 77
----
71

query I rowsort
SELECT ALL + 97 + 79 * ( 54 ) AS col1
----
4363

query I rowsort
SELECT DISTINCT 27 * 25 AS col0
----
675

query I rowsort
SELECT 62 * ( + 31 ) AS col1
----
1922

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL + NULLIF ( + 59, ( - 69 ) + COUNT( * ) ) + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + NULLIF ( + 59, ( - 69 ) + COUNT ( * ) ) + COUNT ( * )
----
60

query I rowsort
SELECT ALL - 52 + 84 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT - COUNT( * ) * + 59
----
-59

skipif mysql # not compatible
query I rowsort label-7124
SELECT - COUNT ( * ) * + 59
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7125
SELECT - CAST( - 55 AS SIGNED ) * + NULLIF ( + 30 / - CAST( NULL AS SIGNED ), - 48 * 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT - CAST ( - 55 AS INTEGER ) * + NULLIF ( + 30 / - CAST ( NULL AS INTEGER ), - 48 * 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL COUNT( ALL 77 ) - COUNT( + 31 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL COUNT ( ALL 77 ) - COUNT ( + 31 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT CAST( + CAST( + 11 AS SIGNED ) AS SIGNED ) + 26 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7127
SELECT CAST ( + CAST ( + 11 AS INTEGER ) AS INTEGER ) + 26 AS col2
----
37

query I rowsort
SELECT + 40 - - ( + 51 + 93 )
----
184

query I rowsort
SELECT + 49 + + 59 * 73 AS col0
----
4356

query I rowsort
SELECT ALL - 89 * 39
----
-3471

query I rowsort
SELECT ALL + + 68 - 4 AS col0
----
64

query I rowsort
SELECT ALL - 50 * - 17 AS col1
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT + 85 + + COUNT( ALL 20 )
----
86

skipif mysql # not compatible
query I rowsort label-7133
SELECT + 85 + + COUNT ( ALL 20 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT DISTINCT - ( + 5 ) DIV + 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - ( + 5 ) / + 27 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT - 64 DIV + 57 + - ( 32 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7135
SELECT - 64 / + 57 + - ( 32 ) AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT ALL + - CAST( 83 AS SIGNED ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL + - CAST ( 83 AS INTEGER ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT + 56 * MAX( ALL + 9 * + 56 )
----
28224

skipif mysql # not compatible
query I rowsort label-7137
SELECT + 56 * MAX ( ALL + 9 * + 56 )
----
28224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7138
SELECT - 0 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT - 0 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 6 * - 63
----
-378

query I rowsort
SELECT + 70 * + + 38 AS col2
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT ALL 35 * - COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL 35 * - COUNT ( * ) AS col1
----
-35

query I rowsort
SELECT + 47 * 23 * 80
----
86480

query I rowsort
SELECT DISTINCT 70 * - - 43
----
3010

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7144
SELECT ALL - 3 * 85 DIV - NULLIF ( + 74 * 50, CAST( NULL AS SIGNED ) ) + - COALESCE ( - 53, 77 )
----
53

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL - 3 * 85 / - NULLIF ( + 74 * 50, CAST ( NULL AS INTEGER ) ) + - COALESCE ( - 53, 77 )
----
53

query I rowsort
SELECT + 11 * + 78 AS col2
----
858

query I rowsort
SELECT - 16 * - + 84
----
1344

query I rowsort
SELECT + NULLIF ( + 42, 46 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT COUNT( - 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7148
SELECT COUNT ( - 29 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT + COUNT( * ) - + 2 * 6
----
-11

skipif mysql # not compatible
query I rowsort label-7149
SELECT + COUNT ( * ) - + 2 * 6
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT + NULLIF ( + - MIN( - 93 ), + COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT + NULLIF ( + - MIN ( - 93 ), + COUNT ( * ) )
----
93

query I rowsort
SELECT ALL - 19 * - 75
----
1425

query I rowsort
SELECT ALL + ( 81 ) col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT DISTINCT 45 * + 31 + + 59 DIV - 22 AS col1
----
1393

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT 45 * + 31 + + 59 / - 22 AS col1
----
1393

query I rowsort
SELECT DISTINCT NULLIF ( 30, + 53 ) * 86 AS col2
----
2580

query I rowsort
SELECT DISTINCT - 47 + 84 AS col0
----
37

query I rowsort
SELECT ALL + 93 + 31 + - 34 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT - MIN( 39 ) * + 47 AS col0
----
-1833

skipif mysql # not compatible
query I rowsort label-7157
SELECT - MIN ( 39 ) * + 47 AS col0
----
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT ALL + 20 * + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL + 20 * + COUNT ( * )
----
20

query I rowsort
SELECT - 44 - - 62
----
18

query I rowsort
SELECT + 88 + + + CASE - 86 WHEN ( 3 ) + 87 THEN ( 23 ) * - 67 ELSE NULL END
----
NULL

query I rowsort
SELECT - 58 - + 45
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL NULLIF ( + 6, + COUNT( * ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL NULLIF ( + 6, + COUNT ( * ) ) AS col2
----
6

query I rowsort
SELECT + ( + 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT - - MAX( ALL - - 4 ) + - 70 * + 71
----
-4966

skipif mysql # not compatible
query I rowsort label-7164
SELECT - - MAX ( ALL - - 4 ) + - 70 * + 71
----
-4966

query I rowsort
SELECT ALL - 60 - 48 col2
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT DISTINCT + 1 DIV - 35 * COALESCE ( - 33 * 5, 61 )
----
0

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT + 1 / - 35 * COALESCE ( - 33 * 5, 61 )
----
0

query I rowsort
SELECT DISTINCT + 37 * - - 16 - 78 AS col1
----
514

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT ALL 91 - - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL 91 - - COUNT ( * ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT - 74 * - MIN( ALL 78 ) AS col1
----
5772

skipif mysql # not compatible
query I rowsort label-7169
SELECT - 74 * - MIN ( ALL 78 ) AS col1
----
5772

query I rowsort
SELECT - + 88 * 53 - - 24 * 23 col2
----
-4112

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT - + COUNT( * ) * + + 54
----
-54

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT - + COUNT ( * ) * + + 54
----
-54

query I rowsort
SELECT + + 33 * - 10 * + 89 AS col0
----
-29370

query I rowsort
SELECT - 49 + - 74
----
-123

query I rowsort
SELECT + + 34 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7175
SELECT CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7175
SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL + CASE - 57 WHEN - - COUNT( * ) THEN + 54 / 82 ELSE - 73 * 0 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + CASE - 57 WHEN - - COUNT ( * ) THEN + 54 / 82 ELSE - 73 * 0 END AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7177
SELECT CAST( + 71 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7177
SELECT CAST ( + 71 AS INTEGER ) AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7178
SELECT DISTINCT + 76 DIV 29 DIV 92 + 89 * - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT + 76 / 29 / 92 + 89 * - COUNT ( * )
----
-89

query I rowsort
SELECT - 60 * - 25 + 4 AS col0
----
1504

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT + COUNT( * ) + 73 * - 66 + 79
----
-4738

skipif mysql # not compatible
query I rowsort label-7180
SELECT + COUNT ( * ) + 73 * - 66 + 79
----
-4738

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT ALL - 43 DIV + - 76 + + - 0 * 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL - 43 / + - 76 + + - 0 * 71 AS col2
----
0

query I rowsort
SELECT ( + - 26 ) AS col0
----
-26

query I rowsort
SELECT 24 * 62 + + - 13 AS col1
----
1475

query I rowsort
SELECT ( 30 ) AS col2
----
30

query I rowsort
SELECT DISTINCT 16 * - ( + + 23 )
----
-368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7186
SELECT ALL CAST( + 9 AS SIGNED ) * COUNT( * ) + 58 + - 64 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL CAST ( + 9 AS INTEGER ) * COUNT ( * ) + 58 + - 64 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT + SUM( - 94 ) + COUNT( * ) + 18 * 58
----
951

skipif mysql # not compatible
query I rowsort label-7187
SELECT + SUM ( - 94 ) + COUNT ( * ) + 18 * 58
----
951

query I rowsort
SELECT ALL + 66 * - 5 + + ( + 98 )
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + 57 + + 80 + + + COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-7189
SELECT + 57 + + 80 + + + COUNT ( * )
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 35 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 35 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT MIN( DISTINCT - + 71 ) * 64 * 56 - 91
----
-254555

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT MIN ( DISTINCT - + 71 ) * 64 * 56 - 91
----
-254555

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL 47 * + - 15 - MIN( 6 )
----
-711

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL 47 * + - 15 - MIN ( 6 )
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT + ( + COUNT( * ) ) * - NULLIF ( + 15, - ( 34 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-7193
SELECT + ( + COUNT ( * ) ) * - NULLIF ( + 15, - ( 34 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT DISTINCT + COALESCE ( - ( + 61 ), + 71 * + 18, - COUNT( * ) )
----
-61

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT + COALESCE ( - ( + 61 ), + 71 * + 18, - COUNT ( * ) )
----
-61

query I rowsort
SELECT + ( + - 64 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7196
SELECT - 3 + - 33 DIV 4 - + 79 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7196
SELECT - 3 + - 33 / 4 - + 79 AS col0
----
-90

query I rowsort
SELECT ALL - 20 * + - 58 * - 9 * - 3 - - 13 col1
----
31333

query I rowsort
SELECT - + 31 col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7199
SELECT - - COUNT( DISTINCT 52 ) + + 54 + - 46 * + CAST( CASE MAX( DISTINCT + 79 ) WHEN + 63 + 77 THEN NULL WHEN MIN( ( + 24 ) ) THEN 89 ELSE CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT - - COUNT ( DISTINCT 52 ) + + 54 + - 46 * + CAST ( CASE MAX ( DISTINCT + 79 ) WHEN + 63 + 77 THEN NULL WHEN MIN ( ( + 24 ) ) THEN 89 ELSE CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + MIN( DISTINCT 63 ) * + 49 + 58
----
3145

skipif mysql # not compatible
query I rowsort label-7200
SELECT + MIN ( DISTINCT 63 ) * + 49 + 58
----
3145

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - 64 * + COUNT( * ) + - 28 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7201
SELECT - 64 * + COUNT ( * ) + - 28 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL + - 56 * + 44 * + COUNT( * ) * + 30 AS col2
----
-73920

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL + - 56 * + 44 * + COUNT ( * ) * + 30 AS col2
----
-73920

query II rowsort
SELECT ALL + 52 AS col2, 44 AS col1
----
52
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7204
SELECT 52 * + + CAST( COUNT( * ) AS SIGNED ) + + 14 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7204
SELECT 52 * + + CAST ( COUNT ( * ) AS INTEGER ) + + 14 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT DISTINCT - COALESCE ( - COUNT( * ), - - COUNT( * ) * 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT - COALESCE ( - COUNT ( * ), - - COUNT ( * ) * 77 ) AS col0
----
1

query I rowsort
SELECT ALL - 72 * - NULLIF ( + 94, + 93 )
----
6768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7207
SELECT ALL COALESCE ( + COALESCE ( 84, MIN( + 57 ) + 63 DIV 98 ), 75, + 94 )
----
84

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL COALESCE ( + COALESCE ( 84, MIN ( + 57 ) + 63 / 98 ), 75, + 94 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7208
SELECT ALL CAST( 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL CAST ( 6 AS INTEGER )
----
6

query I rowsort
SELECT 64 * - - 58 col0
----
3712

query I rowsort
SELECT - 67 + - 73
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT MIN( 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-7211
SELECT MIN ( 67 ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT ALL + CASE - CAST( + 67 AS SIGNED ) WHEN + 86 * ( COUNT( * ) * - 43 ) THEN COUNT( * ) + 9 WHEN + 42 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL + CASE - CAST ( + 67 AS INTEGER ) WHEN + 86 * ( COUNT ( * ) * - 43 ) THEN COUNT ( * ) + 9 WHEN + 42 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT - ( + COUNT( 73 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7213
SELECT - ( + COUNT ( 73 ) )
----
-1

query II rowsort
SELECT 8 AS col1, - 85 + - ( - 35 )
----
8
-50

query I rowsort
SELECT + ( - ( + 89 ) ) * + 74
----
-6586

query I rowsort
SELECT ALL + 56 + - - 7
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7217
SELECT DISTINCT + 45 + - - 79 DIV - 48 * - COUNT( * ) + + 95
----
141

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT + 45 + - - 79 / - 48 * - COUNT ( * ) + + 95
----
141

query I rowsort
SELECT DISTINCT + 65 + - + 48 + - 40 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL - COUNT( * ) + + 59 + 70 * - 91 * ( - MAX( - 82 ) )
----
-522282

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL - COUNT ( * ) + + 59 + 70 * - 91 * ( - MAX ( - 82 ) )
----
-522282

query I rowsort
SELECT DISTINCT 76 * - + 54
----
-4104

query I rowsort
SELECT ALL 35 + 49 AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7222
SELECT 28 DIV - 37 * COUNT( * ) * - + COALESCE ( + 16, 9 DIV - ( 52 ) + 73, 24 ) + ( + COUNT( * ) + 58 )
----
59

skipif mysql # not compatible
query I rowsort label-7222
SELECT 28 / - 37 * COUNT ( * ) * - + COALESCE ( + 16, 9 / - ( 52 ) + 73, 24 ) + ( + COUNT ( * ) + 58 )
----
59

query I rowsort
SELECT 34 * 31
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT DISTINCT 34 + + COUNT( * ) + + + 46 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT 34 + + COUNT ( * ) + + + 46 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7225
SELECT DISTINCT - CAST( + 35 AS SIGNED ) AS col2, 49 DIV - + 68 AS col2
----
-35
0

skipif mysql # not compatible
query II rowsort label-7225
SELECT DISTINCT - CAST ( + 35 AS INTEGER ) AS col2, 49 / - + 68 AS col2
----
-35
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT ( - - 30 ) DIV - - 48
----
0

skipif mysql # not compatible
query I rowsort label-7226
SELECT ( - - 30 ) / - - 48
----
0

query I rowsort
SELECT DISTINCT 68 * + - 52 AS col2
----
-3536

query I rowsort
SELECT 62 * - + 98 AS col0
----
-6076

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT 31 - - - ( + + 67 ) * + 8 + COUNT( * )
----
-504

skipif mysql # not compatible
query I rowsort label-7229
SELECT 31 - - - ( + + 67 ) * + 8 + COUNT ( * )
----
-504

query I rowsort
SELECT ALL 23 * - 66 * NULLIF ( - + 19, - 1 )
----
28842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7231
SELECT + + CASE - 70 WHEN + + 73 THEN - - 98 ELSE - COUNT( * ) END * + ( - CAST( ( ( - COUNT( * ) ) ) AS SIGNED ) ) - + ( + 22 ) * + 90
----
-1981

skipif mysql # not compatible
query I rowsort label-7231
SELECT + + CASE - 70 WHEN + + 73 THEN - - 98 ELSE - COUNT ( * ) END * + ( - CAST ( ( ( - COUNT ( * ) ) ) AS INTEGER ) ) - + ( + 22 ) * + 90
----
-1981

onlyif mysql # DIV for integer division: 
query I rowsort label-7232
SELECT ALL + - ( - - ( - 77 ) ) - 93 DIV 68
----
76

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL + - ( - - ( - 77 ) ) - 93 / 68
----
76

query I rowsort
SELECT 23 * + 82 + - 14
----
1872

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT + 15 DIV 92 col2
----
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT + 15 / 92 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7235
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 20 + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 20 + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT ALL + 43 * - 74 + + + 58 + + - COUNT( * ) AS col2
----
-3125

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL + 43 * - 74 + + + 58 + + - COUNT ( * ) AS col2
----
-3125

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT 63 * + 38 + - COUNT( * ) + - - 57
----
2450

skipif mysql # not compatible
query I rowsort label-7237
SELECT 63 * + 38 + - COUNT ( * ) + - - 57
----
2450

query I rowsort
SELECT + 42 - - 54 AS col2
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7239
SELECT CAST( NULL AS DECIMAL ) + + 0 + - + 25 * - - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT CAST ( NULL AS REAL ) + + 0 + - + 25 * - - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7240
SELECT COALESCE ( + NULLIF ( - CASE - - 42 WHEN + 52 THEN 11 * 34 ELSE COUNT( * ) END, - 95 + 53 * + 18 ), COUNT( * ) - - 57 DIV - ( 59 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7240
SELECT COALESCE ( + NULLIF ( - CASE - - 42 WHEN + 52 THEN 11 * 34 ELSE COUNT ( * ) END, - 95 + 53 * + 18 ), COUNT ( * ) - - 57 / - ( 59 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT - - SUM( DISTINCT - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7241
SELECT - - SUM ( DISTINCT - 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT CASE - COUNT( * ) WHEN - ( - + 90 ) THEN + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT CASE - COUNT ( * ) WHEN - ( - + 90 ) THEN + 58 END
----
NULL

query I rowsort
SELECT 71 + + 30 AS col0
----
101

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7244
SELECT DISTINCT 96 + + + COALESCE ( - + 11, + 82 DIV CAST( NULL AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT 96 + + + COALESCE ( - + 11, + 82 / CAST ( NULL AS INTEGER ) )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT ALL - 67 + 86 DIV ( - 57 ) * - 16 + - 46 * - 14 AS col0
----
593

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - 67 + 86 / ( - 57 ) * - 16 + - 46 * - 14 AS col0
----
593

query I rowsort
SELECT 44 * - 76 col0
----
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT DISTINCT 47 + COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT 47 + COUNT ( * ) AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7248
SELECT - COUNT( * ), 14 DIV - 12
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7248
SELECT - COUNT ( * ), 14 / - 12
----
-1
-1

query I rowsort
SELECT 34 - - + 85 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT 46 * COUNT( * ) * + + CASE - 2 WHEN - 16 THEN 11 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT 46 * COUNT ( * ) * + + CASE - 2 WHEN - 16 THEN 11 END AS col0
----
NULL

query I rowsort
SELECT ALL - ( - - 31 )
----
-31

query I rowsort
SELECT DISTINCT - 51 * 64
----
-3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT DISTINCT CAST( + - 21 AS SIGNED ) * - - 31 * + + 89 + + COUNT( * ) - - 91
----
-57847

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT CAST ( + - 21 AS INTEGER ) * - - 31 * + + 89 + + COUNT ( * ) - - 91
----
-57847

query I rowsort
SELECT 72 * + 61
----
4392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7255
SELECT 97 DIV 96 * + + 82 - + CASE + - 39 WHEN - 89 THEN - 15 WHEN + 31 * 40 THEN NULL ELSE COUNT( * ) END + - 97 * 93
----
-8940

skipif mysql # not compatible
query I rowsort label-7255
SELECT 97 / 96 * + + 82 - + CASE + - 39 WHEN - 89 THEN - 15 WHEN + 31 * 40 THEN NULL ELSE COUNT ( * ) END + - 97 * 93
----
-8940

query I rowsort
SELECT ALL - ( + 30 ) AS col2
----
-30

query I rowsort
SELECT 59 * + COALESCE ( NULLIF ( - - 69, 67 ), + 23 + + 21, 3 )
----
4071

query I rowsort
SELECT DISTINCT + 89 * - 96 * - 27 * + 7
----
1614816

onlyif mysql # aggregate syntax: 
query II rowsort label-7259
SELECT ALL - COUNT( * ) AS col1, COUNT( - 0 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-7259
SELECT ALL - COUNT ( * ) AS col1, COUNT ( - 0 )
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7260
SELECT ( - 98 ) * + 45 * + 49 + - CAST( NULL AS SIGNED ) * - ( - COUNT( 41 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT ( - 98 ) * + 45 * + 49 + - CAST ( NULL AS INTEGER ) * - ( - COUNT ( 41 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT MIN( 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-7261
SELECT MIN ( 10 ) AS col2
----
10

query I rowsort
SELECT 7 * - 32
----
-224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7263
SELECT DISTINCT - - 72 * - 0 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT - - 72 * - 0 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7264
SELECT 78 * + 54 + 4 + + 73 + + 56 DIV 26 DIV 62 AS col1
----
4289

skipif mysql # not compatible
query I rowsort label-7264
SELECT 78 * + 54 + 4 + + 73 + + 56 / 26 / 62 AS col1
----
4289

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL + + SUM( 80 ) col1
----
80

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + + SUM ( 80 ) col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT DISTINCT + SUM( - 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT + SUM ( - 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - 17 * - 53 - + 2 * + - 82 + + 61 + CASE 11 + - SUM( ALL + 8 ) WHEN + 87 THEN 65 + + COALESCE ( + 46, 0 ) ELSE NULL END / + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT - 17 * - 53 - + 2 * + - 82 + + 61 + CASE 11 + - SUM ( ALL + 8 ) WHEN + 87 THEN 65 + + COALESCE ( + 46, 0 ) ELSE NULL END / + 93 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7268
SELECT - 70 * 73 + + 58 - + + 62 + - ( + 41 ) * 7 DIV + 74 AS col0
----
-5117

skipif mysql # not compatible
query I rowsort label-7268
SELECT - 70 * 73 + + 58 - + + 62 + - ( + 41 ) * 7 / + 74 AS col0
----
-5117

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT + COUNT( * ) + 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7269
SELECT + COUNT ( * ) + 2 AS col1
----
3

query I rowsort
SELECT DISTINCT - 89 + 73 - 44 AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT CAST( + - 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-7271
SELECT CAST ( + - 13 AS INTEGER )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT + + 51 * + ( + COUNT( 32 ) )
----
51

skipif mysql # not compatible
query I rowsort label-7272
SELECT + + 51 * + ( + COUNT ( 32 ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT 34 * + 8 + - - ( + + 28 ) + + COUNT( * )
----
301

skipif mysql # not compatible
query I rowsort label-7273
SELECT 34 * + 8 + - - ( + + 28 ) + + COUNT ( * )
----
301

query I rowsort
SELECT DISTINCT - 29 + - 90 AS col0
----
-119

query I rowsort
SELECT DISTINCT 68 + + 14 col2
----
82

query I rowsort
SELECT DISTINCT - 37 * - - 84 col0
----
-3108

query I rowsort
SELECT ALL 58 - - 38 col1
----
96

query I rowsort
SELECT + 64 * + + 86
----
5504

query II rowsort
SELECT 2, 39 * 14 AS col2
----
2
546

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT + 82 + COUNT( * ) * - 62 col0
----
20

skipif mysql # not compatible
query I rowsort label-7280
SELECT + 82 + COUNT ( * ) * - 62 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT + COUNT( * ) - - 91
----
92

skipif mysql # not compatible
query I rowsort label-7281
SELECT + COUNT ( * ) - - 91
----
92

query I rowsort
SELECT ALL - 65 * - 6 / - CASE + 30 WHEN - + 90 THEN NULL WHEN - 31 / AVG ( 42 * 8 ) + - 37 * - 7 THEN 31 + + 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT DISTINCT 57 * + SUM( - - 87 ) AS col0
----
4959

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT 57 * + SUM ( - - 87 ) AS col0
----
4959

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT - ( + COUNT( * ) ) + 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7284
SELECT - ( + COUNT ( * ) ) + 92 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7285
SELECT - 86 * CAST( + - MAX( DISTINCT + + ( + 64 ) ) AS SIGNED )
----
5504

skipif mysql # not compatible
query I rowsort label-7285
SELECT - 86 * CAST ( + - MAX ( DISTINCT + + ( + 64 ) ) AS INTEGER )
----
5504

query I rowsort
SELECT ALL 92 * - - ( - 79 )
----
-7268

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT 2 DIV + 7 + 93
----
93

skipif mysql # not compatible
query I rowsort label-7287
SELECT 2 / + 7 + 93
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7288
SELECT + 16 DIV 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7288
SELECT + 16 / 31 AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( 90, - 18 ) AS col2
----
90

query I rowsort
SELECT - 56 * + - 78 AS col2
----
4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7291
SELECT ALL + COUNT( * ) DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL + COUNT ( * ) / 97 AS col0
----
0

query I rowsort
SELECT ALL + 96 * + 0 * + - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL + CASE - - 43 WHEN + 5 THEN NULL WHEN - 33 THEN + 49 WHEN 34 THEN + 76 * - CASE 65 * + ( + 11 ) WHEN + 17 + + ( - 53 ) THEN NULL WHEN - 67 THEN NULLIF ( NULLIF ( ( - COALESCE ( COALESCE ( + 49, - 1 ), SUM( + 33 ) ) ), NULLIF ( COUNT( + 37 ), 78 ) ), + 88 * - 30 ) * ( - 3 + 53 ) ELSE NULL END ELSE NULL END / 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL + CASE - - 43 WHEN + 5 THEN NULL WHEN - 33 THEN + 49 WHEN 34 THEN + 76 * - CASE 65 * + ( + 11 ) WHEN + 17 + + ( - 53 ) THEN NULL WHEN - 67 THEN NULLIF ( NULLIF ( ( - COALESCE ( COALESCE ( + 49, - 1 ), SUM ( + 33 ) ) ), NULLIF ( COUNT ( + 37 ), 78 ) ), + 88 * - 30 ) * ( - 3 + 53 ) ELSE NULL END ELSE NULL END / 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT - 86 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) - - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT - 86 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) - - 47 AS col1
----
NULL

query II rowsort
SELECT 46 AS col0, 63 AS col2
----
46
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT DISTINCT - + MIN( + 96 ) * 16 - 72 + - + 2
----
-1610

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT - + MIN ( + 96 ) * 16 - 72 + - + 2
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL + ( MAX( DISTINCT NULLIF ( - 36, + - 79 - + 47 ) ) ) * 9 + - 15 * 19 AS col0
----
-609

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + ( MAX ( DISTINCT NULLIF ( - 36, + - 79 - + 47 ) ) ) * 9 + - 15 * 19 AS col0
----
-609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7298
SELECT - CAST( + 84 AS SIGNED ) * + - 7 - - 82
----
670

skipif mysql # not compatible
query I rowsort label-7298
SELECT - CAST ( + 84 AS INTEGER ) * + - 7 - - 82
----
670

query I rowsort
SELECT ALL + - ( + - 86 ) AS col0
----
86

query II rowsort
SELECT + - 39, 97 col2
----
-39
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT + + 41 * - ( + + MIN( - - 13 ) ) + - 47 + - 34 AS col0
----
-614

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT + + 41 * - ( + + MIN ( - - 13 ) ) + - 47 + - 34 AS col0
----
-614

query II rowsort
SELECT + 22 AS col2, + NULLIF ( - 34, + 4 )
----
22
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7303
SELECT DISTINCT + + COALESCE ( + 3, + 70 * + 41, 5 * 20 DIV - 60 ) * + 46 + 82 * 66 AS col2
----
5550

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT + + COALESCE ( + 3, + 70 * + 41, 5 * 20 / - 60 ) * + 46 + 82 * 66 AS col2
----
5550

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7304
SELECT 39 AS col0, + 93 + + 40 + - - 19 * SUM( ALL + - 37 ) DIV + 45
----
39
118

skipif mysql # not compatible
query II rowsort label-7304
SELECT 39 AS col0, + 93 + + 40 + - - 19 * SUM ( ALL + - 37 ) / + 45
----
39
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7305
SELECT 64 AS col0, ( - 59 ) DIV 8 + + COUNT( * ) - 13 * 0
----
64
-6

skipif mysql # not compatible
query II rowsort label-7305
SELECT 64 AS col0, ( - 59 ) / 8 + + COUNT ( * ) - 13 * 0
----
64
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7306
SELECT 45 * CAST( - 75 AS SIGNED ) + COALESCE ( 43, 1 ) + - 78 * + 60
----
-8012

skipif mysql # not compatible
query I rowsort label-7306
SELECT 45 * CAST ( - 75 AS INTEGER ) + COALESCE ( 43, 1 ) + - 78 * + 60
----
-8012

query I rowsort
SELECT + 40 - + 45 AS col1
----
-5

query I rowsort
SELECT + + 64 - - - 29
----
35

query I rowsort
SELECT - 64 * - 78 AS col2
----
4992

query I rowsort
SELECT DISTINCT ( - - 69 ) AS col2
----
69

query I rowsort
SELECT ALL 52 * 22 * - 69
----
-78936

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - COALESCE ( + ( 85 ), MIN( DISTINCT ( + 16 ) ) * + 89 )
----
-85

skipif mysql # not compatible
query I rowsort label-7312
SELECT - COALESCE ( + ( 85 ), MIN ( DISTINCT ( + 16 ) ) * + 89 )
----
-85

query I rowsort
SELECT ALL + 79 - - + 22 AS col2
----
101

query I rowsort
SELECT ALL 5 - 61 - + + 29
----
-85

query I rowsort
SELECT + 11 * 7 AS col0
----
77

query I rowsort
SELECT ALL 16 * 96 AS col2
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT - 22 + - - COUNT( * ) * 24
----
2

skipif mysql # not compatible
query I rowsort label-7317
SELECT - 22 + - - COUNT ( * ) * 24
----
2

query I rowsort
SELECT + 75 * - 34 AS col2
----
-2550

query I rowsort
SELECT + 92 + - - 76 col2
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT + CAST( - + 76 AS SIGNED ) + 7
----
-69

skipif mysql # not compatible
query I rowsort label-7320
SELECT + CAST ( - + 76 AS INTEGER ) + 7
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT COUNT( * ) * 44 + 83 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-7321
SELECT COUNT ( * ) * 44 + 83 AS col0
----
127

query I rowsort
SELECT ALL 50 + + 14 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL ( COUNT( ALL - - 26 ) ) + + 15 * NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL ( COUNT ( ALL - - 26 ) ) + + 15 * NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

query II rowsort
SELECT + 95 + + 59 AS col1, 52
----
154
52

query I rowsort
SELECT CASE - 90 WHEN 35 THEN 65 WHEN - 73 THEN NULL ELSE NULL END + - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL + MIN( ALL 13 ) + MIN( 35 )
----
48

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL + MIN ( ALL 13 ) + MIN ( 35 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT - NULLIF ( - + ( - - 13 ), - 98 ) DIV 67 DIV 64 + - 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7327
SELECT - NULLIF ( - + ( - - 13 ), - 98 ) / 67 / 64 + - 27 AS col2
----
-27

query II rowsort
SELECT ALL - + ( - 67 ) AS col1, - 18 + - 95 AS col1
----
67
-113

query I rowsort
SELECT DISTINCT + 62 + + 52
----
114

query I rowsort
SELECT ALL 45 + 88 + - 2 AS col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7331
SELECT DISTINCT - - ( - 41 ) AS col2, ( + - CAST( NULL AS SIGNED ) ) * + + 8 * + - 76 - + 54 + - MIN( ALL + CASE WHEN NOT ( - 31 ) = ( - 10 ) + 56 THEN NULL WHEN NOT NULL IS NOT NULL THEN 41 * 31 WHEN 0 + ( + 83 ) IS NULL THEN + 97 ELSE 85 END )
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-7331
SELECT DISTINCT - - ( - 41 ) AS col2, ( + - CAST ( NULL AS INTEGER ) ) * + + 8 * + - 76 - + 54 + - MIN ( ALL + CASE WHEN NOT ( - 31 ) = ( - 10 ) + 56 THEN NULL WHEN NOT NULL IS NOT NULL THEN 41 * 31 WHEN 0 + ( + 83 ) IS NULL THEN + 97 ELSE 85 END )
----
-41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL - 48 - + COUNT( ( - - 18 ) ) + + - COUNT( * ) * + 69
----
-118

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL - 48 - + COUNT ( ( - - 18 ) ) + + - COUNT ( * ) * + 69
----
-118

query I rowsort
SELECT NULLIF ( 69, + + 47 ) + + 72
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT 33 * + + 85 * + + 1 + - COUNT( ALL + 60 ) + - 6 AS col2
----
2798

skipif mysql # not compatible
query I rowsort label-7334
SELECT 33 * + + 85 * + + 1 + - COUNT ( ALL + 60 ) + - 6 AS col2
----
2798

query I rowsort
SELECT + + 49 col1
----
49

query I rowsort
SELECT 92 + - 27 * + 58 * + 75
----
-117358

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL - 88 - + CASE + COUNT( * ) WHEN - CASE COUNT( * ) WHEN - + COUNT( * ) THEN - 52 * 77 END / 92 THEN NULL WHEN 5 * + 53 THEN 52 * - COUNT( ALL + 38 ) END + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL - 88 - + CASE + COUNT ( * ) WHEN - CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN - 52 * 77 END / 92 THEN NULL WHEN 5 * + 53 THEN 52 * - COUNT ( ALL + 38 ) END + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT DISTINCT + 55 * - COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT + 55 * - COUNT ( * ) AS col0
----
-55

query I rowsort
SELECT DISTINCT 4 col1
----
4

query I rowsort
SELECT 53 + + 42 AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7341
SELECT DISTINCT + CAST( NULLIF ( 9, + + CASE 26 WHEN + - 56 THEN ( - 21 ) ELSE 32 END ) AS SIGNED ) * + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT + CAST ( NULLIF ( 9, + + CASE 26 WHEN + - 56 THEN ( - 21 ) ELSE 32 END ) AS INTEGER ) * + COUNT ( * ) AS col2
----
9

query I rowsort
SELECT 43 * + NULLIF ( 31, - 72 ) AS col2
----
1333

query I rowsort
SELECT 78 + - ( + 35 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7344
SELECT 13, 57 / + + 17 * + COUNT( DISTINCT + 21 ) / + ( + CAST( NULL AS SIGNED ) ) * + - SUM( DISTINCT - 98 ) col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-7344
SELECT 13, 57 / + + 17 * + COUNT ( DISTINCT + 21 ) / + ( + CAST ( NULL AS INTEGER ) ) * + - SUM ( DISTINCT - 98 ) col0
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT 88 + + NULLIF ( ( 74 ), + + 39 ) + + + COUNT( * )
----
163

skipif mysql # not compatible
query I rowsort label-7345
SELECT 88 + + NULLIF ( ( 74 ), + + 39 ) + + + COUNT ( * )
----
163

query II rowsort
SELECT 51 col2, + 8 AS col1
----
51
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT ALL + 47 DIV + 13
----
3

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL + 47 / + 13
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7348
SELECT 62 DIV - NULLIF ( + - 36, 41 * + COUNT( * ) * - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-7348
SELECT 62 / - NULLIF ( + - 36, 41 * + COUNT ( * ) * - 88 )
----
1

query I rowsort
SELECT DISTINCT + 30 * + + 79 * + 52 * 68 * 60
----
502819200

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL 63 + - + CASE - - 78 WHEN - - 39 * - + 38 THEN - ( - 80 ) WHEN 90 + - 36 THEN 25 - - 10 * + 2 ELSE COUNT( * ) * - COUNT( * ) END
----
64

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL 63 + - + CASE - - 78 WHEN - - 39 * - + 38 THEN - ( - 80 ) WHEN 90 + - 36 THEN 25 - - 10 * + 2 ELSE COUNT ( * ) * - COUNT ( * ) END
----
64

query I rowsort
SELECT ALL - 2 + + - COALESCE ( 91, + 23 )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT ALL + 48 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL + 48 / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT DISTINCT + 30 * - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT + 30 * - COUNT ( * )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7354
SELECT 3 + - COALESCE ( + 57, - CAST( + - COUNT( ALL + + 2 ) AS SIGNED ) DIV - 4 ) + 32 - - 55 * - 79 col2
----
-4367

skipif mysql # not compatible
query I rowsort label-7354
SELECT 3 + - COALESCE ( + 57, - CAST ( + - COUNT ( ALL + + 2 ) AS INTEGER ) / - 4 ) + 32 - - 55 * - 79 col2
----
-4367

query I rowsort
SELECT 13 + + 65
----
78

query II rowsort
SELECT - 53, 60 AS col0
----
-53
60

query I rowsort
SELECT ALL 63 + - 62 AS col2
----
1

query I rowsort
SELECT ALL + + 10 + - 18 AS col1
----
-8

query I rowsort
SELECT ALL - - 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT 50, SUM( ALL + 69 ) * 9 AS col2
----
50
621

skipif mysql # not compatible
query II rowsort label-7360
SELECT 50, SUM ( ALL + 69 ) * 9 AS col2
----
50
621

query I rowsort
SELECT ALL - 52 - + 86
----
-138

query II rowsort
SELECT + 33, + 21 - - - 83 AS col0
----
33
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT DISTINCT - - MIN( ALL 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT - - MIN ( ALL 76 ) AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT 3 DIV 43 + + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-7364
SELECT 3 / 43 + + - 98
----
-98

query I rowsort
SELECT + 53 + + 13
----
66

query I rowsort
SELECT ALL 92 - + 83
----
9

query I rowsort
SELECT 48 * - + 81 col2
----
-3888

query I rowsort
SELECT 92 * - ( + 84 ) * - 9 * - 3 + + 27 + 3
----
-208626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT - CASE + AVG ( + CAST( + - NULLIF ( + 74, + 69 * + - 85 * 70 + 52 ) AS SIGNED ) ) WHEN + SUM( ALL - 64 ) THEN NULL WHEN + 32 * + 8 THEN NULLIF ( 23, - 72 ) / + 4 ELSE NULL END - - ( 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT - CASE + AVG ( + CAST ( + - NULLIF ( + 74, + 69 * + - 85 * 70 + 52 ) AS INTEGER ) ) WHEN + SUM ( ALL - 64 ) THEN NULL WHEN + 32 * + 8 THEN NULLIF ( 23, - 72 ) / + 4 ELSE NULL END - - ( 80 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL - CASE 36 WHEN + - 35 * - 80 + - 46 - - ( 85 ) THEN CASE + 91 WHEN + COUNT( * ) * + 61 THEN + AVG ( ALL 84 ) + - 62 END + - MAX( DISTINCT 5 ) WHEN ( 37 ) * 42 THEN 39 / 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL - CASE 36 WHEN + - 35 * - 80 + - 46 - - ( 85 ) THEN CASE + 91 WHEN + COUNT ( * ) * + 61 THEN + AVG ( ALL 84 ) + - 62 END + - MAX ( DISTINCT 5 ) WHEN ( 37 ) * 42 THEN 39 / 9 END
----
NULL

query I rowsort
SELECT - CASE 27 WHEN 34 THEN + + 32 ELSE NULL END * - 73 + + 77 + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT - COALESCE ( + + ( + ( 2 ) ), - + 39 ) + + COUNT( * ) * + 86 col1
----
84

skipif mysql # not compatible
query I rowsort label-7372
SELECT - COALESCE ( + + ( + ( 2 ) ), - + 39 ) + + COUNT ( * ) * + 86 col1
----
84

query I rowsort
SELECT 43 * + 30 AS col2
----
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT - COUNT( DISTINCT + - NULLIF ( 74, - - 99 * - + 10 ) ) * + 51 + + 85
----
34

skipif mysql # not compatible
query I rowsort label-7374
SELECT - COUNT ( DISTINCT + - NULLIF ( 74, - - 99 * - + 10 ) ) * + 51 + + 85
----
34

query I rowsort
SELECT 82 - + 88 AS col1
----
-6

query I rowsort
SELECT ( - ( 47 ) ) * + - CASE - 89 WHEN - 14 THEN - 68 * 92 END - + 54 * 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7377
SELECT ALL - 16 * + 4, + COUNT( * ) AS col2
----
-64
1

skipif mysql # not compatible
query II rowsort label-7377
SELECT ALL - 16 * + 4, + COUNT ( * ) AS col2
----
-64
1

query I rowsort
SELECT DISTINCT + 61 * + 99 AS col2
----
6039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7379
SELECT CAST( - ( + 40 ) AS SIGNED ) + - CAST( NULL AS DECIMAL ) + 8 * CASE COUNT( * ) WHEN - + COUNT( * ) THEN - - AVG ( DISTINCT 30 ) / + 99 WHEN CASE ( 45 ) WHEN 57 * - 61 THEN + 72 ELSE 52 END * - 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT CAST ( - ( + 40 ) AS INTEGER ) + - CAST ( NULL AS REAL ) + 8 * CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN - - AVG ( DISTINCT 30 ) / + 99 WHEN CASE ( 45 ) WHEN 57 * - 61 THEN + 72 ELSE 52 END * - 52 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL + 43 + - NULLIF ( + + COUNT( * ), + + 55 + 19 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL + 43 + - NULLIF ( + + COUNT ( * ), + + 55 + 19 ) AS col2
----
42

query I rowsort
SELECT - ( - NULLIF ( + + 86, 3 ) ) * - + 3 AS col2
----
-258

query I rowsort
SELECT DISTINCT 75 + - 72 * - 2 AS col1
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT ALL + 44 + + + COUNT( * ) + + + ( + 19 ) * 50 * 61
----
57995

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL + 44 + + + COUNT ( * ) + + + ( + 19 ) * 50 * 61
----
57995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7384
SELECT + COUNT( * ) + 24 + 79 DIV - - 64
----
26

skipif mysql # not compatible
query I rowsort label-7384
SELECT + COUNT ( * ) + 24 + 79 / - - 64
----
26

query I rowsort
SELECT DISTINCT - 71 + + 46
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT - 91 DIV 73
----
-1

skipif mysql # not compatible
query I rowsort label-7386
SELECT - 91 / 73
----
-1

query I rowsort
SELECT - + 42 + + 93
----
51

query I rowsort
SELECT ALL + - 58 + 50 AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT - - 67 + + 10 DIV + + 58 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-7389
SELECT - - 67 + + 10 / + + 58 AS col0
----
67

query I rowsort
SELECT ALL - 62 - - 57
----
-5

query I rowsort
SELECT DISTINCT - + 46 * - 69 * - + 45
----
-142830

query I rowsort
SELECT ALL + + ( - 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT 18 / 10 / - CASE - 10 WHEN + 20 - COUNT( + 54 ) - - NULLIF ( 60, - 19 + 79 ) THEN + 77 * 71 WHEN CASE - 19 WHEN 15 + CASE - 89 WHEN + 97 * 70 + - ( ( - CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN MAX( + 27 ) THEN 10 ELSE NULL END * - CAST( + 92 * - 10 AS SIGNED ) THEN NULL WHEN 74 * CASE - ( - 32 ) WHEN + 57 + - 88 * 70 THEN + 82 * 46 END THEN NULL WHEN 26 THEN + 76 ELSE NULL END THEN NULL ELSE NULL END + + 86 + 35 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT 18 / 10 / - CASE - 10 WHEN + 20 - COUNT ( + 54 ) - - NULLIF ( 60, - 19 + 79 ) THEN + 77 * 71 WHEN CASE - 19 WHEN 15 + CASE - 89 WHEN + 97 * 70 + - ( ( - CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN MAX ( + 27 ) THEN 10 ELSE NULL END * - CAST ( + 92 * - 10 AS INTEGER ) THEN NULL WHEN 74 * CASE - ( - 32 ) WHEN + 57 + - 88 * 70 THEN + 82 * 46 END THEN NULL WHEN 26 THEN + 76 ELSE NULL END THEN NULL ELSE NULL END + + 86 + 35 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7394
SELECT ALL - 12 * - + ( + - 62 ) * - 42 + 10 * 29 / - CASE + - MIN( CAST( + 69 AS DECIMAL ) ) WHEN - COALESCE ( + COUNT( 68 ), + 15 ) * 26 + + MIN( ALL 53 ) THEN + 52 + 2 WHEN MIN( 42 ) THEN MIN( 36 ) + 16 WHEN 10 * + 2 + 65 THEN NULL WHEN 22 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL - 12 * - + ( + - 62 ) * - 42 + 10 * 29 / - CASE + - MIN ( CAST ( + 69 AS REAL ) ) WHEN - COALESCE ( + COUNT ( 68 ), + 15 ) * 26 + + MIN ( ALL 53 ) THEN + 52 + 2 WHEN MIN ( 42 ) THEN MIN ( 36 ) + 16 WHEN 10 * + 2 + 65 THEN NULL WHEN 22 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7395
SELECT COUNT( * ) DIV - - 68 + - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7395
SELECT COUNT ( * ) / - - 68 + - 6 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7396
SELECT + CAST( COALESCE ( + 16, + MIN( 32 ) / + COALESCE ( - - 1, MAX( ALL + 0 ) ) * 88 ) AS SIGNED ) + - 63 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7396
SELECT + CAST ( COALESCE ( + 16, + MIN ( 32 ) / + COALESCE ( - - 1, MAX ( ALL + 0 ) ) * 88 ) AS INTEGER ) + - 63 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL - - COUNT( * ) * 47 - - 33 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - - COUNT ( * ) * 47 - - 33 AS col2
----
80

query I rowsort
SELECT - 37 * - + 67
----
2479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT + 7 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT + 7 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 24 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7401
SELECT - + ( 44 ) DIV - + COUNT( * ) + MIN( - 75 )
----
-31

skipif mysql # not compatible
query I rowsort label-7401
SELECT - + ( 44 ) / - + COUNT ( * ) + MIN ( - 75 )
----
-31

query I rowsort
SELECT ALL + ( + - NULLIF ( - 21, - AVG ( DISTINCT NULLIF ( - 13, - 42 + + 15 + + 49 ) ) * + ( COALESCE ( 83, AVG ( - 26 ) * - 58 - + 57 ) ) ) )
----
21

query I rowsort
SELECT DISTINCT + + ( + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT + + 56 * + COALESCE ( - 13, - 10 * NULLIF ( 50, - - 54 ) * - 10 * - COALESCE ( COUNT( * ), COUNT( * ), + 58, - 80 ) + - COALESCE ( + 25, SUM( DISTINCT 68 ) ) ) + - MAX( 77 ) * + 87
----
-7427

skipif mysql # not compatible
query I rowsort label-7404
SELECT + + 56 * + COALESCE ( - 13, - 10 * NULLIF ( 50, - - 54 ) * - 10 * - COALESCE ( COUNT ( * ), COUNT ( * ), + 58, - 80 ) + - COALESCE ( + 25, SUM ( DISTINCT 68 ) ) ) + - MAX ( 77 ) * + 87
----
-7427

query I rowsort
SELECT + + NULLIF ( - 79, - 96 )
----
-79

query I rowsort
SELECT COALESCE ( + 36, + + 80, + 12 )
----
36

query I rowsort
SELECT - 82 * - 63
----
5166

query I rowsort
SELECT + 88 + + 62 col1
----
150

query I rowsort
SELECT ALL 94 * 65 AS col1
----
6110

query I rowsort
SELECT + 5 * + + 69 AS col1
----
345

query I rowsort
SELECT + ( 63 ) + + 48 AS col0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-7412
SELECT ALL ( 34 ) * + 65 + + - COUNT( * ) + - 97, 87 AS col0
----
2112
87

skipif mysql # not compatible
query II rowsort label-7412
SELECT ALL ( 34 ) * + 65 + + - COUNT ( * ) + - 97, 87 AS col0
----
2112
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT - COALESCE ( + COUNT( * ), 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7413
SELECT - COALESCE ( + COUNT ( * ), 52 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL 58 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL 58 * - COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT SUM( ALL - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-7415
SELECT SUM ( ALL - 17 )
----
-17

query I rowsort
SELECT ALL 51 + + 90 - + 65 - - + 52
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-7417
SELECT ALL - 85 DIV 16
----
-5

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL - 85 / 16
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT MAX( ALL + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7418
SELECT MAX ( ALL + 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7419
SELECT - CAST( COALESCE ( + 73, + COUNT( * ), + 65, + 23 - 33 ) AS SIGNED ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7419
SELECT - CAST ( COALESCE ( + 73, + COUNT ( * ), + 65, + 23 - 33 ) AS INTEGER ) AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7420
SELECT - 15 + - 58 * - COUNT( * ) * + 44 + - MIN( ALL - + 1 ) DIV - - 8
----
2537

skipif mysql # not compatible
query I rowsort label-7420
SELECT - 15 + - 58 * - COUNT ( * ) * + 44 + - MIN ( ALL - + 1 ) / - - 8
----
2537

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT DISTINCT NULLIF ( 55, - COALESCE ( - ( 61 ), + 93 * - 96 - - + 63, + - 94, + 97 ) * ( 9 + COUNT( * ) ) ) + - 6 * 28 col2
----
-113

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT NULLIF ( 55, - COALESCE ( - ( 61 ), + 93 * - 96 - - + 63, + - 94, + 97 ) * ( 9 + COUNT ( * ) ) ) + - 6 * 28 col2
----
-113

query I rowsort
SELECT ALL 80 * - 58 AS col2
----
-4640

query II rowsort
SELECT 76, 81 * + - 80 AS col1
----
76
-6480

query I rowsort
SELECT - ( - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL + COALESCE ( - 15, + COUNT( * ) ) * - - ( 53 )
----
-795

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL + COALESCE ( - 15, + COUNT ( * ) ) * - - ( 53 )
----
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT + 79 * + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7426
SELECT + 79 * + COUNT ( * ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-7427
SELECT - - ( - ( + 60 ) ) AS col1, - 12 DIV - - 86 AS col2
----
-60
0

skipif mysql # not compatible
query II rowsort label-7427
SELECT - - ( - ( + 60 ) ) AS col1, - 12 / - - 86 AS col2
----
-60
0

query I rowsort
SELECT ALL 11 * - 22 AS col1
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT + COALESCE ( - - ( 11 ), + 40 * COUNT( * ) * - MIN( - 49 ) - - 87 + + ( - 9 ) + - 39 ) col2
----
11

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + COALESCE ( - - ( 11 ), + 40 * COUNT ( * ) * - MIN ( - 49 ) - - 87 + + ( - 9 ) + - 39 ) col2
----
11

query I rowsort
SELECT - 68 * + 68
----
-4624

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - - 11 * + - NULLIF ( - + 91, 57 ) + - - COUNT( * ) AS col2
----
1002

skipif mysql # not compatible
query I rowsort label-7431
SELECT - - 11 * + - NULLIF ( - + 91, 57 ) + - - COUNT ( * ) AS col2
----
1002

onlyif mysql # aggregate syntax: 
query II rowsort label-7432
SELECT - - 6 * - + 22 * NULLIF ( 19, + - 27 ), COUNT( * ) * + + 46 AS col1
----
-2508
46

skipif mysql # not compatible
query II rowsort label-7432
SELECT - - 6 * - + 22 * NULLIF ( 19, + - 27 ), COUNT ( * ) * + + 46 AS col1
----
-2508
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL - + 68 * - - MAX( + - 69 ) AS col0
----
4692

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL - + 68 * - - MAX ( + - 69 ) AS col0
----
4692

query I rowsort
SELECT ALL + - ( + - 16 )
----
16

query I rowsort
SELECT ALL + ( + - 9 )
----
-9

query I rowsort
SELECT + COALESCE ( - 25, - 25 * - 75 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT + MAX( ALL + + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + MAX ( ALL + + 21 )
----
21

query I rowsort
SELECT ALL - + 76 * + 71
----
-5396

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT DISTINCT 42 DIV - 53 * 31 + - 20 col0
----
-20

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT 42 / - 53 * 31 + - 20 col0
----
-20

query I rowsort
SELECT - 58 + - 17 AS col2
----
-75

query I rowsort
SELECT ( + + 18 )
----
18

query I rowsort
SELECT + ( - - 9 ) AS col1
----
9

query I rowsort
SELECT 72 - - + 71
----
143

query I rowsort
SELECT ALL - COALESCE ( ( - 75 ), 66 )
----
75

query II rowsort
SELECT DISTINCT - 10, 22 AS col2
----
-10
22

query I rowsort
SELECT DISTINCT - ( 75 ) AS col1
----
-75

query I rowsort
SELECT ALL - 43 + 25
----
-18

query I rowsort
SELECT ALL + 89 + + 33
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-7449
SELECT + 75 AS col1, + NULLIF ( 4, + CASE WHEN NOT ( NOT - + 51 >= - 80 ) THEN - COUNT( * ) WHEN NOT ( + 25 ) >= ( NULL ) THEN NULL END * - COUNT( * ) )
----
75
4

skipif mysql # not compatible
query II rowsort label-7449
SELECT + 75 AS col1, + NULLIF ( 4, + CASE WHEN NOT ( NOT - + 51 >= - 80 ) THEN - COUNT ( * ) WHEN NOT ( + 25 ) >= ( NULL ) THEN NULL END * - COUNT ( * ) )
----
75
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL NULLIF ( + - COUNT( * ), + 63 ) + + + 42
----
41

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL NULLIF ( + - COUNT ( * ), + 63 ) + + + 42
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT 71 + + - 18 DIV + 49 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7451
SELECT 71 + + - 18 / + 49 AS col2
----
71

query I rowsort
SELECT ( + 4 ) - - - ( 98 ) + - + 85 * 81 + + 67 col0
----
-6912

query II rowsort
SELECT ALL 85 AS col1, + 14 AS col2
----
85
14

query I rowsort
SELECT DISTINCT 39 * - ( - 89 )
----
3471

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7455
SELECT 97 * + - 36 DIV + COUNT( * )
----
-3492

skipif mysql # not compatible
query I rowsort label-7455
SELECT 97 * + - 36 / + COUNT ( * )
----
-3492

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL ( 14 ) - 4 * + MAX( DISTINCT + 91 ) AS col1
----
-350

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL ( 14 ) - 4 * + MAX ( DISTINCT + 91 ) AS col1
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT DISTINCT - 99 * - + 82 * + SUM( DISTINCT 1 ) AS col0
----
8118

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT - 99 * - + 82 * + SUM ( DISTINCT 1 ) AS col0
----
8118

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT COUNT( * ) + - - 41
----
42

skipif mysql # not compatible
query I rowsort label-7458
SELECT COUNT ( * ) + - - 41
----
42

query I rowsort
SELECT 98 * 32
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL COALESCE ( + - 24, - - 39 * - COUNT( * ) * + - 27 * ( 20 ) + - + 56 ) - COUNT( * ) - 24 * + 6 * - 4
----
551

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL COALESCE ( + - 24, - - 39 * - COUNT ( * ) * + - 27 * ( 20 ) + - + 56 ) - COUNT ( * ) - 24 * + 6 * - 4
----
551

query III rowsort
SELECT - 18, 30 col0, + - 16 AS col0
----
-18
30
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT - ( - ( + + 81 ) ) DIV + - 78 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7462
SELECT - ( - ( + + 81 ) ) / + - 78 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT ALL + 96 DIV 51 * - 37 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL + 96 / 51 * - 37 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT 36 + CASE - 93 WHEN + 9 * - 64 THEN NULL ELSE + NULLIF ( - COUNT( * ), - + 79 * - + 99 * + 2 - - 86 * 1 + 84 ) END col0
----
35

skipif mysql # not compatible
query I rowsort label-7464
SELECT 36 + CASE - 93 WHEN + 9 * - 64 THEN NULL ELSE + NULLIF ( - COUNT ( * ), - + 79 * - + 99 * + 2 - - 86 * 1 + 84 ) END col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7465
SELECT DISTINCT COALESCE ( - - 51, - ( MIN( DISTINCT - + 24 ) ) ) * - NULLIF ( 82, - 44 * - 74 * + 52 - - 76 * + COUNT( 57 ) ) * + NULLIF ( - 6 + - 49, CASE - CAST( NULL AS SIGNED ) WHEN ( - 63 ) THEN 81 * 30 ELSE 66 / - 69 END ) - - 57
----
230067

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT COALESCE ( - - 51, - ( MIN ( DISTINCT - + 24 ) ) ) * - NULLIF ( 82, - 44 * - 74 * + 52 - - 76 * + COUNT ( 57 ) ) * + NULLIF ( - 6 + - 49, CASE - CAST ( NULL AS INTEGER ) WHEN ( - 63 ) THEN 81 * 30 ELSE 66 / - 69 END ) - - 57
----
230067

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7466
SELECT + ( - 40 ) DIV + CAST( - + 9 AS SIGNED ) + 3 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7466
SELECT + ( - 40 ) / + CAST ( - + 9 AS INTEGER ) + 3 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL 58 * + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL 58 * + COUNT ( * ) AS col1
----
58

query I rowsort
SELECT - 28 + + + 85 AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7469
SELECT ALL - COALESCE ( - 8, - + MIN( + ( + ( 44 ) ) ) - - 72 ) AS col1, + 64
----
8
64

skipif mysql # not compatible
query II rowsort label-7469
SELECT ALL - COALESCE ( - 8, - + MIN ( + ( + ( 44 ) ) ) - - 72 ) AS col1, + 64
----
8
64

query II rowsort
SELECT DISTINCT - 27 * - - 79, 71 AS col2
----
-2133
71

query I rowsort
SELECT ALL 25 + - 6 AS col1
----
19

query I rowsort
SELECT DISTINCT 29 * ( + 79 ) + - 29 + 33 + 13 * - + 98 AS col0
----
1021

query I rowsort
SELECT + 35 * 15
----
525

query I rowsort
SELECT ALL - 57 + + + 23
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT 76 + 31 * + COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT 76 + 31 * + COUNT ( * )
----
107

query I rowsort
SELECT ALL + 84 * 69
----
5796

onlyif mysql # DIV for integer division: 
query I rowsort label-7477
SELECT DISTINCT + 12 DIV + + 28
----
0

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT + 12 / + + 28
----
0

query I rowsort
SELECT ALL - 57 + + - 78 + 80 + + - 4 - COALESCE ( - 86, - - 7 ) * CASE + - 12 WHEN 22 THEN 52 ELSE NULL END / 88 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 3 * 6 AS col2
----
18

query I rowsort
SELECT - 73 * + - 93 + + + 72
----
6861

query II rowsort
SELECT ALL + 85 * + + 33 AS col0, + 21 AS col0
----
2805
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT DISTINCT - COUNT( * ) * + NULLIF ( - 93, + - 91 ) * - + 65
----
-6045

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( - 93, + - 91 ) * - + 65
----
-6045

onlyif mysql # DIV for integer division: 
query II rowsort label-7483
SELECT 97 DIV - 53 AS col1, 9 * + 54 AS col2
----
-1
486

skipif mysql # not compatible
query II rowsort label-7483
SELECT 97 / - 53 AS col1, 9 * + 54 AS col2
----
-1
486

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT COALESCE ( - 64, 10 * SUM( + + 74 ) ) * - - 18
----
-1152

skipif mysql # not compatible
query I rowsort label-7484
SELECT COALESCE ( - 64, 10 * SUM ( + + 74 ) ) * - - 18
----
-1152

onlyif mysql # aggregate syntax: 
query II rowsort label-7485
SELECT 49 * + - 2 * + - COUNT( ALL 79 ) + + COUNT( * ) + + 6 * + 4, 2 AS col1
----
123
2

skipif mysql # not compatible
query II rowsort label-7485
SELECT 49 * + - 2 * + - COUNT ( ALL 79 ) + + COUNT ( * ) + + 6 * + 4, 2 AS col1
----
123
2

query I rowsort
SELECT DISTINCT 46 col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7487
SELECT DISTINCT SUM( ALL 39 ) AS col1, + 10 + 26
----
39
36

skipif mysql # not compatible
query II rowsort label-7487
SELECT DISTINCT SUM ( ALL 39 ) AS col1, + 10 + 26
----
39
36

query I rowsort
SELECT + 67 - - - 65 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7489
SELECT CAST( - MAX( DISTINCT - + 57 ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-7489
SELECT CAST ( - MAX ( DISTINCT - + 57 ) AS INTEGER )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT - NULLIF ( - - COALESCE ( 40, 89 ), + + 49 * - + 91 + 89 ) + - NULLIF ( + CAST( - 52 AS SIGNED ), + 78 + 61 )
----
12

skipif mysql # not compatible
query I rowsort label-7490
SELECT - NULLIF ( - - COALESCE ( 40, 89 ), + + 49 * - + 91 + 89 ) + - NULLIF ( + CAST ( - 52 AS INTEGER ), + 78 + 61 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT + CAST( 83 AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7491
SELECT + CAST ( 83 AS INTEGER ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7492
SELECT ALL 29 * - CAST( NULL AS DECIMAL ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL 29 * - CAST ( NULL AS REAL ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 89 * 32
----
2848

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT - COUNT( * ) + 24 * + 90 + + 9
----
2168

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - COUNT ( * ) + 24 * + 90 + + 9
----
2168

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT DISTINCT MIN( ALL 20 ) + - + 63
----
-43

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT MIN ( ALL 20 ) + - + 63
----
-43

query I rowsort
SELECT DISTINCT 14 + CASE + - COALESCE ( + + 25, - - 24 ) WHEN - + ( - - ( - - 3 ) ) THEN - 41 ELSE NULL END
----
NULL

query I rowsort
SELECT - 62 * - 89
----
5518

query I rowsort
SELECT - + ( + 45 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT ALL + CAST( 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + CAST ( 2 AS INTEGER )
----
2

query I rowsort
SELECT ALL + 43 * 44 + - 93 * - 22
----
3938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT + 28 - - NULLIF ( - 71, - CAST( NULL AS SIGNED ) )
----
-43

skipif mysql # not compatible
query I rowsort label-7501
SELECT + 28 - - NULLIF ( - 71, - CAST ( NULL AS INTEGER ) )
----
-43

query I rowsort
SELECT - + ( - ( + ( - - 70 ) ) ) * - 78 - - COALESCE ( - 27, - 49 ) + - ( - 12 ) * - 23 + - - 86 * - 10
----
-6623

query I rowsort
SELECT + 42 * - + 37
----
-1554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT ALL 64 * - 78 * + 18 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL 64 * - 78 * + 18 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + COALESCE ( - - 55, + - 16 * 74 + - 50 ) AS col0
----
55

query I rowsort
SELECT ALL 69 * + ( - 67 ) + 34
----
-4589

query I rowsort
SELECT ALL 28 * 83 col1
----
2324

query I rowsort
SELECT - 99 - + 36 AS col1
----
-135

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT + COALESCE ( + COUNT( * ), 7 ) AS col2, 78 * - + COUNT( * ) col2
----
1
-78

skipif mysql # not compatible
query II rowsort label-7509
SELECT + COALESCE ( + COUNT ( * ), 7 ) AS col2, 78 * - + COUNT ( * ) col2
----
1
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT - 75 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT - 75 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7511
SELECT + ( + CASE 70 WHEN + - 56 THEN NULL WHEN + CASE CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN - + 54 THEN + COALESCE ( - - 21, 31, - 83 * - 59 * 26 - - 35 ) ELSE NULL END + + 49 THEN COALESCE ( 45, 10 + 34, + COUNT( * ) * + 23 ) WHEN + COUNT( * ) + 50 THEN NULL END ) * 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT + ( + CASE 70 WHEN + - 56 THEN NULL WHEN + CASE CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN - + 54 THEN + COALESCE ( - - 21, 31, - 83 * - 59 * 26 - - 35 ) ELSE NULL END + + 49 THEN COALESCE ( 45, 10 + 34, + COUNT ( * ) * + 23 ) WHEN + COUNT ( * ) + 50 THEN NULL END ) * 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT + 45 + + 54 + + MIN( 94 ) AS col0
----
193

skipif mysql # not compatible
query I rowsort label-7512
SELECT + 45 + + 54 + + MIN ( 94 ) AS col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL + 34 * + - 3 - - SUM( ALL 91 ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL + 34 * + - 3 - - SUM ( ALL 91 ) col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT MAX( DISTINCT - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-7514
SELECT MAX ( DISTINCT - 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-7515
SELECT + 28, + COUNT( * ) AS col0
----
28
1

skipif mysql # not compatible
query II rowsort label-7515
SELECT + 28, + COUNT ( * ) AS col0
----
28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL + SUM( - - 33 ) * - 87
----
-2871

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL + SUM ( - - 33 ) * - 87
----
-2871

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7517
SELECT 63 * - NULLIF ( - 67, CAST( NULL AS SIGNED ) + 2 + + + 42 - - - 52 ) + - 72, 2 + - + ( - 14 ) * - - 93 + 10 * 17 AS col1
----
4149
1474

skipif mysql # not compatible
query II rowsort label-7517
SELECT 63 * - NULLIF ( - 67, CAST ( NULL AS INTEGER ) + 2 + + + 42 - - - 52 ) + - 72, 2 + - + ( - 14 ) * - - 93 + 10 * 17 AS col1
----
4149
1474

query I rowsort
SELECT - 91 + + NULLIF ( + ( + 27 ), + - 87 ) * + 16 + + 90 col1
----
431

query I rowsort
SELECT ALL + 54 * 46
----
2484

query I rowsort
SELECT + 21 * 24
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7521
SELECT 63 * + COUNT( * ) * + 40 * 74 * - COUNT( ALL + 11 ) + + ( - MAX( ALL - CAST( + - 30 AS SIGNED ) ) ) col0
----
-186510

skipif mysql # not compatible
query I rowsort label-7521
SELECT 63 * + COUNT ( * ) * + 40 * 74 * - COUNT ( ALL + 11 ) + + ( - MAX ( ALL - CAST ( + - 30 AS INTEGER ) ) ) col0
----
-186510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT ALL - ( - + NULLIF ( ( - - 25 ), + 40 + + - 31 ) ) * - CAST( + 41 AS SIGNED )
----
-1025

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL - ( - + NULLIF ( ( - - 25 ), + 40 + + - 31 ) ) * - CAST ( + 41 AS INTEGER )
----
-1025

query II rowsort
SELECT - 50, 48 AS col2
----
-50
48

query I rowsort
SELECT DISTINCT + 37 * + 9 AS col0
----
333

onlyif mysql # aggregate syntax: 
query II rowsort label-7525
SELECT - 44 * - + NULLIF ( - + 48, 83 * 33 ) * + 42 * - MIN( - - 59 ) AS col0, 17 * + + 67
----
5233536
1139

skipif mysql # not compatible
query II rowsort label-7525
SELECT - 44 * - + NULLIF ( - + 48, 83 * 33 ) * + 42 * - MIN ( - - 59 ) AS col0, 17 * + + 67
----
5233536
1139

query I rowsort
SELECT ALL - - 36 + + + 77
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7527
SELECT ALL - - 61 DIV - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL - - 61 / - COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-7528
SELECT ALL COUNT( * ), + 21 col2
----
1
21

skipif mysql # not compatible
query II rowsort label-7528
SELECT ALL COUNT ( * ), + 21 col2
----
1
21

query I rowsort
SELECT + 46 - + 29
----
17

query I rowsort
SELECT + ( - 57 ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT - 90 + - + 88 + - 98 * + ( + 13 ) + COUNT( * ) * + 95 + + 82 AS col2
----
-1275

skipif mysql # not compatible
query I rowsort label-7531
SELECT - 90 + - + 88 + - 98 * + ( + 13 ) + COUNT ( * ) * + 95 + + 82 AS col2
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT + SUM( DISTINCT - + ( + + ( 41 ) ) ) * 88
----
-3608

skipif mysql # not compatible
query I rowsort label-7532
SELECT + SUM ( DISTINCT - + ( + + ( 41 ) ) ) * 88
----
-3608

query II rowsort
SELECT - - 55, - 34 - - 20 * + 84 * 57 * 61 col1
----
55
5841326

onlyif mysql # DIV for integer division: 
query II rowsort label-7534
SELECT - + 99 col1, - 20 DIV - 48 * + 12
----
-99
0

skipif mysql # not compatible
query II rowsort label-7534
SELECT - + 99 col1, - 20 / - 48 * + 12
----
-99
0

query I rowsort
SELECT DISTINCT - + NULLIF ( ( + 75 ), + + 29 ) + + 8
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT + 84 * + COUNT( * ) * 40
----
3360

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT + 84 * + COUNT ( * ) * 40
----
3360

query I rowsort
SELECT ALL - - 77 - + 75
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT + 23 * 32 * - - MIN( + - 78 ) * - 86 AS col0
----
4937088

skipif mysql # not compatible
query I rowsort label-7538
SELECT + 23 * 32 * - - MIN ( + - 78 ) * - 86 AS col0
----
4937088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT CAST( NULLIF ( - - 62, - 25 ) AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7539
SELECT CAST ( NULLIF ( - - 62, - 25 ) AS INTEGER ) AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7540
SELECT - ( - 56 ) DIV + 90 * ( + 48 ) + 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7540
SELECT - ( - 56 ) / + 90 * ( + 48 ) + 61 AS col1
----
61

onlyif mysql # DIV for integer division: 
query II rowsort label-7541
SELECT ALL 64 DIV - 70, - 63 + - 1 AS col2
----
0
-64

skipif mysql # not compatible
query II rowsort label-7541
SELECT ALL 64 / - 70, - 63 + - 1 AS col2
----
0
-64

query I rowsort
SELECT + 75 + 95 + + + COALESCE ( - - 68, + 63 ) / 76 * + - CASE + 91 WHEN 60 * 83 / - 34 * + + 98 + 23 THEN NULL WHEN + 98 THEN - 92 END / + 10
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT ALL + 40 DIV + - NULLIF ( - - ( 8 ), - 57 - 81 ) - - - 83 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + 40 / + - NULLIF ( - - ( 8 ), - 57 - 81 ) - - - 83 AS col0
----
-88

query I rowsort
SELECT + 87 * + 40 AS col0
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT + CASE - 52 WHEN - COUNT( * ) * ( + 46 ) THEN - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7545
SELECT + CASE - 52 WHEN - COUNT ( * ) * ( + 46 ) THEN - COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT - 40 * + 44 + - 20 AS col2
----
-1780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7547
SELECT + ( 91 ) * - + 42 + + 50 + + 97 col0, CAST( NULL AS SIGNED ) AS col1
----
-3675
NULL

skipif mysql # not compatible
query II rowsort label-7547
SELECT + ( 91 ) * - + 42 + + 50 + + 97 col0, CAST ( NULL AS INTEGER ) AS col1
----
-3675
NULL

query I rowsort
SELECT ( + + 97 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT ALL 51 * CAST( - 88 AS SIGNED )
----
-4488

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL 51 * CAST ( - 88 AS INTEGER )
----
-4488

query I rowsort
SELECT + 33 * 68 AS col0
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT + CASE - 82 WHEN + 97 * 8 THEN NULL WHEN 76 + - 27 THEN - COUNT( * ) WHEN + - 39 THEN NULL WHEN + 15 + 97 THEN - 96 ELSE CASE 83 WHEN + ( 16 ) + - NULLIF ( ( 72 ), + 96 - - 18 ) THEN - MAX( DISTINCT - 96 ) / - COUNT( * ) WHEN 93 * - 91 + 24 THEN NULL END * 20 + 65 / SUM( ALL 94 + 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT + CASE - 82 WHEN + 97 * 8 THEN NULL WHEN 76 + - 27 THEN - COUNT ( * ) WHEN + - 39 THEN NULL WHEN + 15 + 97 THEN - 96 ELSE CASE 83 WHEN + ( 16 ) + - NULLIF ( ( 72 ), + 96 - - 18 ) THEN - MAX ( DISTINCT - 96 ) / - COUNT ( * ) WHEN 93 * - 91 + 24 THEN NULL END * 20 + 65 / SUM ( ALL 94 + 65 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7552
SELECT DISTINCT CASE - - 5 WHEN + + 2 THEN 87 * + NULLIF ( + MAX( CAST( - 58 AS SIGNED ) ), - COUNT( * ) * 97 + - 75 / + ( 68 ) ) WHEN + 17 + MAX( ALL + 91 ) / 50 THEN NULL END * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT CASE - - 5 WHEN + + 2 THEN 87 * + NULLIF ( + MAX ( CAST ( - 58 AS INTEGER ) ), - COUNT ( * ) * 97 + - 75 / + ( 68 ) ) WHEN + 17 + MAX ( ALL + 91 ) / 50 THEN NULL END * - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + 97 * - COUNT( - 54 ) * 20 + 73
----
-1867

skipif mysql # not compatible
query I rowsort label-7553
SELECT + 97 * - COUNT ( - 54 ) * 20 + 73
----
-1867

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT - COALESCE ( - + COUNT( * ), 62, + 67 ) * + + 81 + 55 * - 6
----
-249

skipif mysql # not compatible
query I rowsort label-7554
SELECT - COALESCE ( - + COUNT ( * ), 62, + 67 ) * + + 81 + 55 * - 6
----
-249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7555
SELECT CASE - 6 WHEN - CASE + 27 WHEN 11 THEN NULL WHEN - 33 THEN NULL WHEN 72 THEN 8 ELSE NULL END THEN + CASE - - 52 WHEN - 99 - - MAX( DISTINCT 49 ) + + 39 THEN COUNT( * ) END WHEN + 76 + + 63 * - CAST( - 71 AS SIGNED ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT CASE - 6 WHEN - CASE + 27 WHEN 11 THEN NULL WHEN - 33 THEN NULL WHEN 72 THEN 8 ELSE NULL END THEN + CASE - - 52 WHEN - 99 - - MAX ( DISTINCT 49 ) + + 39 THEN COUNT ( * ) END WHEN + 76 + + 63 * - CAST ( - 71 AS INTEGER ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - + 31, 90 ) col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT - COUNT( * ) * 46 + - 4 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7557
SELECT - COUNT ( * ) * 46 + - 4 AS col1
----
-50

query I rowsort
SELECT ALL - 29 * - 75 * + 17 + - 90 + 17
----
36902

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT DISTINCT + - COUNT( * ) * - COUNT( ALL - - 16 ) + - COUNT( * ) + CASE WHEN - 97 <> NULL THEN - + 75 END * + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( ALL - - 16 ) + - COUNT ( * ) + CASE WHEN - 97 <> NULL THEN - + 75 END * + + 33
----
NULL

query I rowsort
SELECT ALL NULLIF ( 37, + 92 )
----
37

query I rowsort
SELECT DISTINCT + COALESCE ( + 0, 7 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7562
SELECT ALL - 72 * - - 34 + CAST( + 6 AS SIGNED ) + + + 57, NULLIF ( + SUM( ALL - 81 ), - 69 ) AS col2
----
-2385
-81

skipif mysql # not compatible
query II rowsort label-7562
SELECT ALL - 72 * - - 34 + CAST ( + 6 AS INTEGER ) + + + 57, NULLIF ( + SUM ( ALL - 81 ), - 69 ) AS col2
----
-2385
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT DISTINCT - ( + - COUNT( * ) ) * - - 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - ( + - COUNT ( * ) ) * - - 89 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT 67 * - - 39 - + MIN( - 59 ) * COALESCE ( 17, + 7 ) + + COUNT( * ) AS col2
----
3617

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT 67 * - - 39 - + MIN ( - 59 ) * COALESCE ( 17, + 7 ) + + COUNT ( * ) AS col2
----
3617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT - CAST( NULL AS SIGNED ) * - + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT - CAST ( NULL AS INTEGER ) * - + 14 AS col0
----
NULL

query I rowsort
SELECT ALL - 90 + + 91 + + - 26 AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7567
SELECT ALL - 57 + MIN( - - NULLIF ( - 7, - 29 * - 11 ) ) DIV + - 99 * + - 22
----
-57

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL - 57 + MIN ( - - NULLIF ( - 7, - 29 * - 11 ) ) / + - 99 * + - 22
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7568
SELECT 70 * + CAST( NULL AS SIGNED ), + ( + 66 ) col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-7568
SELECT 70 * + CAST ( NULL AS INTEGER ), + ( + 66 ) col2
----
NULL
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT ALL - 46 * + + ( NULLIF ( - + 56, - CAST( NULL AS SIGNED ) * - + 23 ) ) AS col1
----
2576

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - 46 * + + ( NULLIF ( - + 56, - CAST ( NULL AS INTEGER ) * - + 23 ) ) AS col1
----
2576

query I rowsort
SELECT DISTINCT 76 * + 25 AS col1
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL - - 25 - + 87 - + 3 * COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - - 25 - + 87 - + 3 * COUNT ( * )
----
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-7572
SELECT DISTINCT - 7 DIV + - 7 AS col1, - 1 + + 28
----
1
27

skipif mysql # not compatible
query II rowsort label-7572
SELECT DISTINCT - 7 / + - 7 AS col1, - 1 + + 28
----
1
27

query I rowsort
SELECT ALL + 6 col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7574
SELECT ALL ( 38 ) - + COALESCE ( - 55, + 44 * 72 + + 78 - 48 ) + - + 36 AS col0, - COUNT( * )
----
57
-1

skipif mysql # not compatible
query II rowsort label-7574
SELECT ALL ( 38 ) - + COALESCE ( - 55, + 44 * 72 + + 78 - 48 ) + - + 36 AS col0, - COUNT ( * )
----
57
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT - CASE - 13 WHEN + CAST( NULL AS SIGNED ) + + - COUNT( * ) THEN NULL WHEN + + 94 THEN + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT - CASE - 13 WHEN + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) THEN NULL WHEN + + 94 THEN + 82 END
----
NULL

query II rowsort
SELECT ALL 2, + 40 AS col2
----
2
40

query II rowsort
SELECT ALL 59 AS col2, 58
----
59
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT - 71 * + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT - 71 * + COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT 90 * COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7579
SELECT 90 * COUNT ( * ) AS col1
----
90

query I rowsort
SELECT 97 - + 38
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT DISTINCT 75 * - COUNT( - 10 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT 75 * - COUNT ( - 10 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL - NULLIF ( + 39, - 62 - - COALESCE ( + - 51, + COUNT( * ) + + + 82, COUNT( ALL 37 ) / COUNT( * ) / - 35 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL - NULLIF ( + 39, - 62 - - COALESCE ( + - 51, + COUNT ( * ) + + + 82, COUNT ( ALL 37 ) / COUNT ( * ) / - 35 ) )
----
-39

query I rowsort
SELECT ALL - 63 * + 38 col0
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT DISTINCT - ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT - ( COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT DISTINCT - 54 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT - 54 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT ALL - CAST( 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - CAST ( 23 AS INTEGER )
----
-23

query I rowsort
SELECT 0 * - 39 + - 83 * + + 44
----
-3652

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT MIN( DISTINCT 25 ) * - - 37 / - 41 * + - CASE 82 WHEN 13 THEN 77 + + AVG ( ALL + 35 ) END - + - NULLIF ( 76, - 19 ) - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT MIN ( DISTINCT 25 ) * - - 37 / - 41 * + - CASE 82 WHEN 13 THEN 77 + + AVG ( ALL + 35 ) END - + - NULLIF ( 76, - 19 ) - 71 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT 12 DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7589
SELECT 12 / + 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT COUNT( * ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-7590
SELECT COUNT ( * ) + + 24
----
25

query II rowsort
SELECT 46 AS col0, - 64
----
46
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT MAX( + ( + 53 ) ) * + CASE + + 44 WHEN 0 + + 97 THEN - + NULLIF ( - + CAST( + 76 AS SIGNED ), 14 ) ELSE NULL END + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT MAX ( + ( + 53 ) ) * + CASE + + 44 WHEN 0 + + 97 THEN - + NULLIF ( - + CAST ( + 76 AS INTEGER ), 14 ) ELSE NULL END + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 61 + 60 AS col1
----
121

query I rowsort
SELECT ALL + 88 + - - 24
----
112

query I rowsort
SELECT ALL - - 39 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7596
SELECT ALL 53 + CAST( NULL AS SIGNED ) + - - 49 + - 77 + - 10 + + ( - 14 ) + + - 44 + MAX( ALL 77 ) + 25 / + + 18 * CASE - 73 WHEN + 27 THEN + 34 ELSE NULL END * + SUM( ALL + 52 * - 46 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL 53 + CAST ( NULL AS INTEGER ) + - - 49 + - 77 + - 10 + + ( - 14 ) + + - 44 + MAX ( ALL 77 ) + 25 / + + 18 * CASE - 73 WHEN + 27 THEN + 34 ELSE NULL END * + SUM ( ALL + 52 * - 46 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7597
SELECT DISTINCT - CAST( + SUM( ALL - + 35 ) AS SIGNED ) + + COUNT( * ) + + - 36 + - - 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT - CAST ( + SUM ( ALL - + 35 ) AS INTEGER ) + + COUNT ( * ) + + - 36 + - - 54 AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7598
SELECT + CAST( ( + - 50 ) AS SIGNED ), 84 AS col2
----
-50
84

skipif mysql # not compatible
query II rowsort label-7598
SELECT + CAST ( ( + - 50 ) AS INTEGER ), 84 AS col2
----
-50
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7599
SELECT + COALESCE ( MAX( + + 20 ), COUNT( * ), - - CAST( - 25 AS SIGNED ) * - COUNT( * ) + + 51 + - 48 - - - 54 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7599
SELECT + COALESCE ( MAX ( + + 20 ), COUNT ( * ), - - CAST ( - 25 AS INTEGER ) * - COUNT ( * ) + + 51 + - 48 - - - 54 ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7600
SELECT DISTINCT - CASE - 23 WHEN + + COALESCE ( + 57, - - 86 + + CAST( - - 79 AS SIGNED ), + ( + + COUNT( * ) ), 3 ) THEN + - 98 ELSE - CASE - COALESCE ( + - 52, + 67 ) WHEN 24 THEN NULL ELSE + 31 END END AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - CASE - 23 WHEN + + COALESCE ( + 57, - - 86 + + CAST ( - - 79 AS INTEGER ), + ( + + COUNT ( * ) ), 3 ) THEN + - 98 ELSE - CASE - COALESCE ( + - 52, + 67 ) WHEN 24 THEN NULL ELSE + 31 END END AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT - - COUNT( DISTINCT 86 ) - + SUM( - 65 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - - COUNT ( DISTINCT 86 ) - + SUM ( - 65 ) col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7602
SELECT 8 * COUNT( * ) DIV + + COALESCE ( + 62, - + ( 1 ) * + 33 + - 39 + - + SUM( DISTINCT - 38 ) - - 3 + + + 14 * - 1 * + + 16 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7602
SELECT 8 * COUNT ( * ) / + + COALESCE ( + 62, - + ( 1 ) * + 33 + - 39 + - + SUM ( DISTINCT - 38 ) - - 3 + + + 14 * - 1 * + + 16 ) AS col0
----
0

query I rowsort
SELECT ALL + 34 * 31 AS col0
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT 81 + + COUNT( * ) + + 19 * 24
----
538

skipif mysql # not compatible
query I rowsort label-7604
SELECT 81 + + COUNT ( * ) + + 19 * 24
----
538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7605
SELECT 87 * + COUNT( * ) DIV - - 95 * ( - - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-7605
SELECT 87 * + COUNT ( * ) / - - 95 * ( - - 36 )
----
0

query I rowsort
SELECT 26 * + - 65 AS col1
----
-1690

query I rowsort
SELECT 97 + 51 * - 68 AS col2
----
-3371

query I rowsort
SELECT 0 * 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT 16 + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7609
SELECT 16 + COUNT ( * ) AS col0
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-7610
SELECT ALL + 95 DIV - - 57 AS col2, - 48 + 21 * - 68 AS col0
----
1
-1476

skipif mysql # not compatible
query II rowsort label-7610
SELECT ALL + 95 / - - 57 AS col2, - 48 + 21 * - 68 AS col0
----
1
-1476

query II rowsort
SELECT DISTINCT 71 AS col2, 18
----
71
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT COUNT( * ) AS col2, - 89
----
1
-89

skipif mysql # not compatible
query II rowsort label-7612
SELECT COUNT ( * ) AS col2, - 89
----
1
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT - 81 DIV - 62 + + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-7613
SELECT - 81 / - 62 + + - 99
----
-98

query I rowsort
SELECT 15 * - + 54
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT 51 + + NULLIF ( + 8, - + COUNT( * ) ) + + 40 * SUM( + 21 )
----
899

skipif mysql # not compatible
query I rowsort label-7615
SELECT 51 + + NULLIF ( + 8, - + COUNT ( * ) ) + + 40 * SUM ( + 21 )
----
899

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL + COUNT( * ) * ( + 13 ) + + 41 * + 32
----
1325

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + COUNT ( * ) * ( + 13 ) + + 41 * + 32
----
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT MAX( DISTINCT - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-7617
SELECT MAX ( DISTINCT - 91 )
----
-91

query I rowsort
SELECT DISTINCT + 43 * + 9 * + + 25 * 51 + - - 73 + + + 47 - + + 3 AS col2
----
493542

query I rowsort
SELECT ALL 11 * 45 + - 44 AS col0
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT 41 * - SUM( ALL + - 56 )
----
2296

skipif mysql # not compatible
query I rowsort label-7620
SELECT 41 * - SUM ( ALL + - 56 )
----
2296

query I rowsort
SELECT ALL - 32 * + 5
----
-160

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT DISTINCT - ( 72 ) AS col2, - COUNT( * ) * - + MIN( ALL - 70 )
----
-72
-70

skipif mysql # not compatible
query II rowsort label-7622
SELECT DISTINCT - ( 72 ) AS col2, - COUNT ( * ) * - + MIN ( ALL - 70 )
----
-72
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT - ( + + SUM( DISTINCT - 71 ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7623
SELECT - ( + + SUM ( DISTINCT - 71 ) ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT COUNT( + 14 ) * 24 * 90
----
2160

skipif mysql # not compatible
query I rowsort label-7624
SELECT COUNT ( + 14 ) * 24 * 90
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + ( - + SUM( - 59 ) )
----
59

skipif mysql # not compatible
query I rowsort label-7625
SELECT + ( - + SUM ( - 59 ) )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7626
SELECT DISTINCT + COUNT( * ) - 20, + CAST( 35 AS SIGNED ) AS col2
----
-19
35

skipif mysql # not compatible
query II rowsort label-7626
SELECT DISTINCT + COUNT ( * ) - 20, + CAST ( 35 AS INTEGER ) AS col2
----
-19
35

query II rowsort
SELECT ALL - 71 AS col0, 87 AS col0
----
-71
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7628
SELECT CAST( NULL AS SIGNED ), - ( COUNT( * ) ) * + - 57 col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-7628
SELECT CAST ( NULL AS INTEGER ), - ( COUNT ( * ) ) * + - 57 col0
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT 54 * - ( - COUNT( * ) ) + - COUNT( * ) + - + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7629
SELECT 54 * - ( - COUNT ( * ) ) + - COUNT ( * ) + - + COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7630
SELECT ALL 96 DIV + COUNT( ALL 68 )
----
96

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL 96 / + COUNT ( ALL 68 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL + - COALESCE ( - COALESCE ( - + MIN( 55 ), ( 42 ) - + ( - CASE NULLIF ( SUM( - - 62 ), + 68 ) WHEN + 63 THEN NULL WHEN - 39 THEN - 62 ELSE 92 END ) ), 51 * + 14 )
----
-55

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL + - COALESCE ( - COALESCE ( - + MIN ( 55 ), ( 42 ) - + ( - CASE NULLIF ( SUM ( - - 62 ), + 68 ) WHEN + 63 THEN NULL WHEN - 39 THEN - 62 ELSE 92 END ) ), 51 * + 14 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7632
SELECT - CAST( + MAX( + 27 ) AS SIGNED ) * 44 * - 50 * + + 25 + 34 * ( 58 )
----
1486972

skipif mysql # not compatible
query I rowsort label-7632
SELECT - CAST ( + MAX ( + 27 ) AS INTEGER ) * 44 * - 50 * + + 25 + 34 * ( 58 )
----
1486972

query I rowsort
SELECT DISTINCT + 82 - + 94 AS col0
----
-12

query II rowsort
SELECT DISTINCT 35 AS col1, 63
----
35
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7635
SELECT ALL + COUNT( * ) * - 36 DIV - 81 col1
----
0

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL + COUNT ( * ) * - 36 / - 81 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7636
SELECT - - 74 + - 7 + - 90 + 94 * + - 16 * 40 DIV NULLIF ( - COUNT( ALL 16 ), + + 23 * NULLIF ( - + MAX( - 30 ), + 98 * + 58 + + 10 - 64 ) )
----
60137

skipif mysql # not compatible
query I rowsort label-7636
SELECT - - 74 + - 7 + - 90 + 94 * + - 16 * 40 / NULLIF ( - COUNT ( ALL 16 ), + + 23 * NULLIF ( - + MAX ( - 30 ), + 98 * + 58 + + 10 - 64 ) )
----
60137

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT - + MIN( DISTINCT + 57 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-7637
SELECT - + MIN ( DISTINCT + 57 ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT + 29 + + 53 + 80 * - - MAX( DISTINCT - 64 ) * + 64 * - COUNT( * ) * + 70 + 79 + COUNT( * ) * - + 61 AS col0
----
22937700

skipif mysql # not compatible
query I rowsort label-7638
SELECT + 29 + + 53 + 80 * - - MAX ( DISTINCT - 64 ) * + 64 * - COUNT ( * ) * + 70 + 79 + COUNT ( * ) * - + 61 AS col0
----
22937700

query I rowsort
SELECT + + 94 * - 24 AS col1
----
-2256

query I rowsort
SELECT ALL + 89 * + - 68 AS col2
----
-6052

query I rowsort
SELECT + 72 * + - 82 AS col0
----
-5904

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT - COUNT( 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-7642
SELECT - COUNT ( 85 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT - CASE 45 WHEN - + COUNT( * ) THEN + 90 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT - CASE 45 WHEN - + COUNT ( * ) THEN + 90 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT CASE + 44 WHEN - - 82 THEN + 45 END / 80 - 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7645
SELECT DISTINCT MIN( 46 ) + + 77 - + 28 + 50 + + - 32 * - 89, COUNT( * ) + 68 + ( - 27 ) + + CAST( NULL AS SIGNED ) AS col0
----
2993
NULL

skipif mysql # not compatible
query II rowsort label-7645
SELECT DISTINCT MIN ( 46 ) + + 77 - + 28 + 50 + + - 32 * - 89, COUNT ( * ) + 68 + ( - 27 ) + + CAST ( NULL AS INTEGER ) AS col0
----
2993
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT ALL + CAST( NULL AS SIGNED ) * + 29 * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL + CAST ( NULL AS INTEGER ) * + 29 * + 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7647
SELECT + 93 * + 90 AS col1, ( ( 32 ) ) DIV - 87 * + 36 + - 49 + COUNT( * ) AS col1
----
8370
-48

skipif mysql # not compatible
query II rowsort label-7647
SELECT + 93 * + 90 AS col1, ( ( 32 ) ) / - 87 * + 36 + - 49 + COUNT ( * ) AS col1
----
8370
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT 57 + - COUNT( * ) * - + 46 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT 57 + - COUNT ( * ) * - + 46 AS col1
----
103

query I rowsort
SELECT - NULLIF ( + 46, - 17 ) col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT + 57 DIV - NULLIF ( - - 12, + 36 * - ( - 75 ) * - 2 + + AVG ( ALL + 70 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7650
SELECT + 57 / - NULLIF ( - - 12, + 36 * - ( - 75 ) * - 2 + + AVG ( ALL + 70 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - MAX( 39 ) * - + 49 + 32
----
1943

skipif mysql # not compatible
query I rowsort label-7651
SELECT - MAX ( 39 ) * - + 49 + 32
----
1943

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT - ( + - ( COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7652
SELECT - ( + - ( COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT - 39 * - 4
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT 0 * 39 - + - 65 * 85 + 66 + + + COUNT( * ) * 22 / + - NULLIF ( + CASE 38 WHEN - COALESCE ( + 42, 5 * - 87 + + 57 + 40 + - + 22, + NULLIF ( + 68, + COUNT( * ) ) ) THEN COUNT( * ) / + 86 WHEN + COUNT( * ) - 86 THEN - COALESCE ( - 64, 68 ) WHEN 61 THEN 46 / - 30 + COALESCE ( COUNT( * ), 13, 73, 79 + + 89 * 66 ) ELSE 91 END, 89 ) * + CASE + 46 / 62 + 81 WHEN - 73 * - 62 THEN 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT 0 * 39 - + - 65 * 85 + 66 + + + COUNT ( * ) * 22 / + - NULLIF ( + CASE 38 WHEN - COALESCE ( + 42, 5 * - 87 + + 57 + 40 + - + 22, + NULLIF ( + 68, + COUNT ( * ) ) ) THEN COUNT ( * ) / + 86 WHEN + COUNT ( * ) - 86 THEN - COALESCE ( - 64, 68 ) WHEN 61 THEN 46 / - 30 + COALESCE ( COUNT ( * ), 13, 73, 79 + + 89 * 66 ) ELSE 91 END, 89 ) * + CASE + 46 / 62 + 81 WHEN - 73 * - 62 THEN 0 END AS col1
----
NULL

query I rowsort
SELECT - 51 * - 24 - + 61
----
1163

query I rowsort
SELECT ALL - 88 * - 70 + + 58 - - 52 + + 45 + + 20 AS col0
----
6335

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT ALL + 64 DIV + + 25
----
2

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL + 64 / + + 25
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT + 46 / + - 95 * - 40 * - COUNT( * ) * + CASE ( - 88 ) WHEN + + COUNT( * ) THEN - - 27 + - 35 + MIN( DISTINCT + 44 ) * + 56 + + NULLIF ( + 17, - NULLIF ( + + 90, - 3 + 52 ) * + ( ( 68 ) + 2 * ( - SUM( DISTINCT 76 ) ) ) + - COUNT( * ) ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT + 46 / + - 95 * - 40 * - COUNT ( * ) * + CASE ( - 88 ) WHEN + + COUNT ( * ) THEN - - 27 + - 35 + MIN ( DISTINCT + 44 ) * + 56 + + NULLIF ( + 17, - NULLIF ( + + 90, - 3 + 52 ) * + ( ( 68 ) + 2 * ( - SUM ( DISTINCT 76 ) ) ) + - COUNT ( * ) ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT ( + - 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7660
SELECT - - 66 DIV - COUNT( * ) - CASE 34 WHEN COUNT( * ) + - + 77 THEN NULL ELSE + COUNT( * ) END + + MIN( - 97 ) + - 10
----
-174

skipif mysql # not compatible
query I rowsort label-7660
SELECT - - 66 / - COUNT ( * ) - CASE 34 WHEN COUNT ( * ) + - + 77 THEN NULL ELSE + COUNT ( * ) END + + MIN ( - 97 ) + - 10
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT + + 9 * + + 71 - + + CAST( - 28 AS SIGNED ) + - + 36 + - - ( 41 ) AS col2
----
672

skipif mysql # not compatible
query I rowsort label-7661
SELECT + + 9 * + + 71 - + + CAST ( - 28 AS INTEGER ) + - + 36 + - - ( 41 ) AS col2
----
672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7662
SELECT DISTINCT + CAST( 9 AS SIGNED ) AS col0, 33
----
9
33

skipif mysql # not compatible
query II rowsort label-7662
SELECT DISTINCT + CAST ( 9 AS INTEGER ) AS col0, 33
----
9
33

query II rowsort
SELECT DISTINCT + 61 * - 90 AS col2, 85 AS col2
----
-5490
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL + - COUNT( * ) * CASE + SUM( DISTINCT 85 ) WHEN + 29 THEN NULL WHEN - NULLIF ( + 0, + 23 ) THEN - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL + - COUNT ( * ) * CASE + SUM ( DISTINCT 85 ) WHEN + 29 THEN NULL WHEN - NULLIF ( + 0, + 23 ) THEN - 82 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT - ( - 61 ) + - 70 + CAST( - 70 AS SIGNED ) * - 69
----
4821

skipif mysql # not compatible
query I rowsort label-7665
SELECT - ( - 61 ) + - 70 + CAST ( - 70 AS INTEGER ) * - 69
----
4821

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL + NULLIF ( + 34, + - COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + NULLIF ( + 34, + - COUNT ( * ) )
----
34

query I rowsort
SELECT ALL + NULLIF ( - + ( 7 ), - 46 ) AS col2
----
-7

query II rowsort
SELECT + ( 74 ) AS col2, 43
----
74
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7669
SELECT ALL + SUM( - 76 ), 86 * + 85 AS col1
----
-76
7310

skipif mysql # not compatible
query II rowsort label-7669
SELECT ALL + SUM ( - 76 ), 86 * + 85 AS col1
----
-76
7310

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT + + NULLIF ( - + 88, - MAX( DISTINCT - 55 ) ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-7670
SELECT + + NULLIF ( - + 88, - MAX ( DISTINCT - 55 ) ) col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-7671
SELECT - COUNT( * ) + - 6, 72 - - + ( + + 72 ) AS col1
----
-7
144

skipif mysql # not compatible
query II rowsort label-7671
SELECT - COUNT ( * ) + - 6, 72 - - + ( + + 72 ) AS col1
----
-7
144

query I rowsort
SELECT + 26 * - 12
----
-312

query I rowsort
SELECT - 76 * - - 46 + - 6
----
-3502

onlyif mysql # DIV for integer division: 
query II rowsort label-7674
SELECT DISTINCT + 85 DIV 14 + + ( - 21 ) * + 93 * 86 + - 63, - 31 AS col1
----
-168015
-31

skipif mysql # not compatible
query II rowsort label-7674
SELECT DISTINCT + 85 / 14 + + ( - 21 ) * + 93 * 86 + - 63, - 31 AS col1
----
-168015
-31

query I rowsort
SELECT NULLIF ( ( 14 ), - 16 ) * - - 6 + - - 52 - + 35
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT + MIN( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT + MIN ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 41 + - 21 + 21 * - ( - 9 )
----
127

query I rowsort
SELECT ALL NULLIF ( - 73, + 74 ) * + 22 AS col2
----
-1606

query I rowsort
SELECT ALL + 67 + + + 31 * - 41
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL - ( + 96 ) + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - ( + 96 ) + COUNT ( * )
----
-95

query I rowsort
SELECT - 5 + + 44 + 71
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT + 10 - + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7682
SELECT + 10 - + COUNT ( * ) AS col2
----
9

query I rowsort
SELECT - 81 + 10 AS col2
----
-71

query I rowsort
SELECT + 87 - + + 27
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL CASE + 97 WHEN - 77 + + 9 THEN NULL WHEN - - 34 / + + COUNT( * ) * + - 54 THEN 17 WHEN - + 32 THEN NULL END + + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL CASE + 97 WHEN - 77 + + 9 THEN NULL WHEN - - 34 / + + COUNT ( * ) * + - 54 THEN 17 WHEN - + 32 THEN NULL END + + + 63
----
NULL

query II rowsort
SELECT - NULLIF ( - - 80, + 40 ) AS col2, + 96
----
-80
96

query I rowsort
SELECT + 63 + + 21
----
84

query I rowsort
SELECT - NULLIF ( - - 34, + 48 )
----
-34

query II rowsort
SELECT DISTINCT 25 col2, 86 AS col1
----
25
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7690
SELECT ALL CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) + - COALESCE ( + - 8, COUNT( * ) * - ( AVG ( DISTINCT - - 78 ) ) * + 48 * + - 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) + - COALESCE ( + - 8, COUNT ( * ) * - ( AVG ( DISTINCT - - 78 ) ) * + 48 * + - 99 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL + COUNT( * ) * + - 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL + COUNT ( * ) * + - 75 AS col2
----
-75

query I rowsort
SELECT + 27 + 56
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7693
SELECT ALL 97 * + CASE + 93 WHEN + COALESCE ( - 84, + - 57 * + + COUNT( * ) * - 33 + - - COUNT( * ) ) THEN NULL WHEN 55 + - + 22 * - - COALESCE ( 95, 81, 41 ) + - CAST( NULL AS SIGNED ) + - - 56 - - 13 THEN NULL ELSE - 65 END
----
-6305

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL 97 * + CASE + 93 WHEN + COALESCE ( - 84, + - 57 * + + COUNT ( * ) * - 33 + - - COUNT ( * ) ) THEN NULL WHEN 55 + - + 22 * - - COALESCE ( 95, 81, 41 ) + - CAST ( NULL AS INTEGER ) + - - 56 - - 13 THEN NULL ELSE - 65 END
----
-6305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT ALL CAST( NULL AS SIGNED ) - + 59 / - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL CAST ( NULL AS INTEGER ) - + 59 / - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + NULLIF ( + COUNT( * ), + 18 ) * + - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-7695
SELECT + NULLIF ( + COUNT ( * ), + 18 ) * + - 30 AS col0
----
-30

query I rowsort
SELECT 65 + + - 33 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ALL 42 * 7 - ( COUNT( * ) )
----
293

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL 42 * 7 - ( COUNT ( * ) )
----
293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7698
SELECT 52 * - 36 * + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT 52 * - 36 * + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 7 * - 94 AS col1
----
-658

query I rowsort
SELECT + + ( + 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ( + + ( 55 ) ) * - 0 * COUNT( * ) + - 55 * + 69
----
-3795

skipif mysql # not compatible
query I rowsort label-7701
SELECT ( + + ( 55 ) ) * - 0 * COUNT ( * ) + - 55 * + 69
----
-3795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7702
SELECT COUNT( * ) DIV + 97 - + 2 * - - 90
----
-180

skipif mysql # not compatible
query I rowsort label-7702
SELECT COUNT ( * ) / + 97 - + 2 * - - 90
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT ALL + 63 * + 35 + - - ( + CAST( NULL AS SIGNED ) ) / + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL + 63 * + 35 + - - ( + CAST ( NULL AS INTEGER ) ) / + + 94
----
NULL

query I rowsort
SELECT DISTINCT + 4 * 49
----
196

query I rowsort
SELECT DISTINCT - + 26
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7706
SELECT + 66 * + COUNT( * ) / + - CAST( NULL AS SIGNED ) * - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT + 66 * + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT 70 - CAST( - COALESCE ( - 69, 71 ) AS SIGNED ) - + CASE + - 83 WHEN - - COUNT( * ) THEN - 83 ELSE NULL END + + 31 + 87 - + ( + COUNT( * ) ) + - 2 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT 70 - CAST ( - COALESCE ( - 69, 71 ) AS INTEGER ) - + CASE + - 83 WHEN - - COUNT ( * ) THEN - 83 ELSE NULL END + + 31 + 87 - + ( + COUNT ( * ) ) + - 2 * + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7708
SELECT + - 13 AS col0, + SUM( DISTINCT + 49 )
----
-13
49

skipif mysql # not compatible
query II rowsort label-7708
SELECT + - 13 AS col0, + SUM ( DISTINCT + 49 )
----
-13
49

query I rowsort
SELECT 1 * 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7710
SELECT ALL - COUNT( * ) AS col2, 1 AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-7710
SELECT ALL - COUNT ( * ) AS col2, 1 AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT + MIN( - ( + 98 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-7711
SELECT + MIN ( - ( + 98 ) )
----
-98

query I rowsort
SELECT 36 * + 93 + + 70 - + ( - 58 )
----
3476

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7713
SELECT DISTINCT - 30 + - + CAST( NULL AS DECIMAL ) - + 67 / - 20 * - + 30 + + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT - 30 + - + CAST ( NULL AS REAL ) - + 67 / - 20 * - + 30 + + - 3
----
NULL

query I rowsort
SELECT + 24 * - + 74 AS col1
----
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL + + COALESCE ( - COUNT( * ), 4 ) + + 81
----
80

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + + COALESCE ( - COUNT ( * ), 4 ) + + 81
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT + MAX( DISTINCT - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7716
SELECT + MAX ( DISTINCT - 81 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT DISTINCT - COUNT( * ) + - 93
----
-94

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT - COUNT ( * ) + - 93
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT DISTINCT - MIN( ALL 0 ) + + + 73
----
73

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT - MIN ( ALL 0 ) + + + 73
----
73

query I rowsort
SELECT DISTINCT - ( 55 ) + + 56
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7720
SELECT ALL + CASE 39 WHEN 99 DIV + - 89 + 83 DIV CAST( + 19 AS SIGNED ) * + 10 THEN - + COALESCE ( 93, ( + + 40 ) ) END + 58 + - COALESCE ( 20, + CASE - + AVG ( 91 ) WHEN + 79 THEN NULL WHEN + NULLIF ( 16, + 76 ) THEN + CASE 94 WHEN 68 THEN + 44 ELSE NULL END + 27 WHEN - 2 * - 30 THEN - MAX( ALL 57 ) + - 15 ELSE NULL END + 56 DIV + 24 ) - 75 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + CASE 39 WHEN 99 / + - 89 + 83 / CAST ( + 19 AS INTEGER ) * + 10 THEN - + COALESCE ( 93, ( + + 40 ) ) END + 58 + - COALESCE ( 20, + CASE - + AVG ( 91 ) WHEN + 79 THEN NULL WHEN + NULLIF ( 16, + 76 ) THEN + CASE 94 WHEN 68 THEN + 44 ELSE NULL END + 27 WHEN - 2 * - 30 THEN - MAX ( ALL 57 ) + - 15 ELSE NULL END + 56 / + 24 ) - 75 AS col1
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7721
SELECT 0 + - - SUM( + 25 ) * - 45 AS col0, - COUNT( * ) DIV - COUNT( * ) * COUNT( * ) AS col2
----
-1125
1

skipif mysql # not compatible
query II rowsort label-7721
SELECT 0 + - - SUM ( + 25 ) * - 45 AS col0, - COUNT ( * ) / - COUNT ( * ) * COUNT ( * ) AS col2
----
-1125
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7722
SELECT 6 DIV + + 70 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT 6 / + + 70 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT SUM( DISTINCT - 30 ) + CASE + ( 95 ) WHEN + + 28 * - 85 THEN - 25 WHEN - 10 THEN NULL WHEN + 49 THEN 80 / - 59 END + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT SUM ( DISTINCT - 30 ) + CASE + ( 95 ) WHEN + + 28 * - 85 THEN - 25 WHEN - 10 THEN NULL WHEN + 49 THEN 80 / - 59 END + + 97 AS col1
----
NULL

query I rowsort
SELECT ALL + ( - 47 ) + 13
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL - CASE - COUNT( * ) WHEN - 31 THEN + - COUNT( * ) + - - AVG ( - 29 ) ELSE NULL END + + COUNT( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL - CASE - COUNT ( * ) WHEN - 31 THEN + - COUNT ( * ) + - - AVG ( - 29 ) ELSE NULL END + + COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT 31 DIV - - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT 31 / - - 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7727
SELECT DISTINCT 63 * - COUNT( * ), + 36 col0
----
-63
36

skipif mysql # not compatible
query II rowsort label-7727
SELECT DISTINCT 63 * - COUNT ( * ), + 36 col0
----
-63
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7728
SELECT DISTINCT - CASE - 17 WHEN + + 50 + - 95 - - COALESCE ( - 42, 13 * + 5 ) + + + CAST( NULL AS SIGNED ) * + NULLIF ( - 41, COALESCE ( + + SUM( - ( - + COALESCE ( - 88, - 49 + - 6 + + 25 + - 67 / + 79 ) ) ), 96 * COALESCE ( - 7, 63 / 54 ), 31 * ( - 77 ) - COUNT( * ), - 47 ) ) * + CAST( 9 + - 42 AS SIGNED ) THEN 57 ELSE NULL END / + CASE 55 WHEN - 95 THEN 45 * 8 - ( 86 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT - CASE - 17 WHEN + + 50 + - 95 - - COALESCE ( - 42, 13 * + 5 ) + + + CAST ( NULL AS INTEGER ) * + NULLIF ( - 41, COALESCE ( + + SUM ( - ( - + COALESCE ( - 88, - 49 + - 6 + + 25 + - 67 / + 79 ) ) ), 96 * COALESCE ( - 7, 63 / 54 ), 31 * ( - 77 ) - COUNT ( * ), - 47 ) ) * + CAST ( 9 + - 42 AS INTEGER ) THEN 57 ELSE NULL END / + CASE 55 WHEN - 95 THEN 45 * 8 - ( 86 ) END AS col2
----
NULL

query I rowsort
SELECT 57 * 15
----
855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7730
SELECT 31 - COUNT( * ) DIV 58
----
31

skipif mysql # not compatible
query I rowsort label-7730
SELECT 31 - COUNT ( * ) / 58
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT CASE 50 WHEN AVG ( + + ( + 48 ) ) * + 20 THEN NULL WHEN - 81 - + - 71 * - 43 THEN + 30 + - CASE + 89 WHEN + 16 THEN + + ( - 30 ) * - + 24 + + + 30 * 21 * + 8 END WHEN ( - 15 ) THEN - COUNT( * ) - - 39 END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT CASE 50 WHEN AVG ( + + ( + 48 ) ) * + 20 THEN NULL WHEN - 81 - + - 71 * - 43 THEN + 30 + - CASE + 89 WHEN + 16 THEN + + ( - 30 ) * - + 24 + + + 30 * 21 * + 8 END WHEN ( - 15 ) THEN - COUNT ( * ) - - 39 END * 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL + 1 * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + 1 * - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT 40 + COUNT( 71 ) + - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7733
SELECT 40 + COUNT ( 71 ) + - COUNT ( * ) AS col0
----
40

query I rowsort
SELECT CASE 51 WHEN - AVG ( DISTINCT + - 24 ) THEN NULL ELSE 79 END * + + 79 - + - 23
----
6264

query I rowsort
SELECT 10 * + - 70
----
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7736
SELECT ALL - CAST( + - 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - CAST ( + - 23 AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL - ( 85 ) * + ( - SUM( + ( - 8 ) ) )
----
-680

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL - ( 85 ) * + ( - SUM ( + ( - 8 ) ) )
----
-680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7738
SELECT 22 DIV + + 86 - - 46 + - + 56 + + 13 + + 92 + - - 59 * + COUNT( ALL - 30 ) col0
----
154

skipif mysql # not compatible
query I rowsort label-7738
SELECT 22 / + + 86 - - 46 + - + 56 + + 13 + + 92 + - - 59 * + COUNT ( ALL - 30 ) col0
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7739
SELECT MIN( 54 ) * - + CAST( 43 AS SIGNED ) AS col0, + 31 * + 95 col1
----
-2322
2945

skipif mysql # not compatible
query II rowsort label-7739
SELECT MIN ( 54 ) * - + CAST ( 43 AS INTEGER ) AS col0, + 31 * + 95 col1
----
-2322
2945

query I rowsort
SELECT DISTINCT - + 24 AS col1
----
-24

query I rowsort
SELECT - 63 * + 51 * 84 AS col0
----
-269892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT - 80 * + 21 + + + 7 * + - CASE + 0 WHEN - - 45 THEN - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT - 80 * + 21 + + + 7 * + - CASE + 0 WHEN - - 45 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7743
SELECT ALL + 51 / - - COALESCE ( + 54, + + SUM( 39 ) ) * - 99 - - 98 * - NULLIF ( CAST( NULL AS SIGNED ), + - 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL + 51 / - - COALESCE ( + 54, + + SUM ( 39 ) ) * - 99 - - 98 * - NULLIF ( CAST ( NULL AS INTEGER ), + - 32 ) AS col2
----
NULL

query I rowsort
SELECT 69 * - 75 * - - 85 AS col2
----
-439875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT + - CAST( NULL AS SIGNED ) / - AVG ( ALL 2 ) + 54 + - COUNT( * ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT + - CAST ( NULL AS INTEGER ) / - AVG ( ALL 2 ) + 54 + - COUNT ( * ) * + 15
----
NULL

query I rowsort
SELECT + - NULLIF ( + 29, + 56 ) AS col2
----
-29

query I rowsort
SELECT + 30 + ( - - 3 )
----
33

query II rowsort
SELECT ALL + 1 * - 72 + + ( 65 ) AS col1, 94 * 88
----
-7
8272

onlyif mysql # aggregate syntax: 
query II rowsort label-7749
SELECT - ( + 41 ), + COUNT( - 50 ) col2
----
-41
1

skipif mysql # not compatible
query II rowsort label-7749
SELECT - ( + 41 ), + COUNT ( - 50 ) col2
----
-41
1

query II rowsort
SELECT DISTINCT + 57 + + - 47, - 6 * + 50 * 31 * + + 48 * 4 + + - 34 AS col2
----
10
-1785634

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7751
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT CAST ( NULL AS REAL ) + - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT + 77 + + - 43 AS col2, COALESCE ( - 96, - 31 )
----
34
-96

query I rowsort
SELECT DISTINCT - + 63 + - 5 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT DISTINCT - + CASE - 18 WHEN 4 * - - COUNT( * ) + - 12 THEN NULL ELSE - MAX( - 47 ) END
----
-47

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT - + CASE - 18 WHEN 4 * - - COUNT ( * ) + - 12 THEN NULL ELSE - MAX ( - 47 ) END
----
-47

query I rowsort
SELECT ( 21 ) + - 24
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT COUNT( * ) * - - 62
----
62

skipif mysql # not compatible
query I rowsort label-7756
SELECT COUNT ( * ) * - - 62
----
62

query I rowsort
SELECT 35 * - - 29
----
1015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7758
SELECT ALL SUM( ALL - 82 ) DIV - - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL SUM ( ALL - 82 ) / - - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT COUNT( * ) + - + 4 + - 8 + + + MIN( ALL - - 17 ) - - + COUNT( * ) * - 48 * + NULLIF ( - COUNT( * ), + 3 * - + 46 * AVG ( DISTINCT - 60 ) * - 96 / - 74 * - + NULLIF ( 42, - + 62 * 91 - - - 63 * + COUNT( * ) ) * + 81 + - 14 ) * - 65 - - 76 AS col1
----
-3038

skipif mysql # not compatible
query I rowsort label-7759
SELECT COUNT ( * ) + - + 4 + - 8 + + + MIN ( ALL - - 17 ) - - + COUNT ( * ) * - 48 * + NULLIF ( - COUNT ( * ), + 3 * - + 46 * AVG ( DISTINCT - 60 ) * - 96 / - 74 * - + NULLIF ( 42, - + 62 * 91 - - - 63 * + COUNT ( * ) ) * + 81 + - 14 ) * - 65 - - 76 AS col1
----
-3038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7760
SELECT 15 AS col0, + COUNT( * ) + 39 / CAST( NULL AS SIGNED ) * - 38 + - ( + COUNT( * ) ) + COUNT( * ) + + 11 + 23 * - 78 - - - 24 * + 20
----
15
NULL

skipif mysql # not compatible
query II rowsort label-7760
SELECT 15 AS col0, + COUNT ( * ) + 39 / CAST ( NULL AS INTEGER ) * - 38 + - ( + COUNT ( * ) ) + COUNT ( * ) + + 11 + 23 * - 78 - - - 24 * + 20
----
15
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7761
SELECT ALL - ( + 78 ) + + - 81 + + - 83 DIV + + COUNT( * )
----
-242

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL - ( + 78 ) + + - 81 + + - 83 / + + COUNT ( * )
----
-242

onlyif mysql # aggregate syntax: 
query II rowsort label-7762
SELECT 96 AS col0, + COUNT( * )
----
96
1

skipif mysql # not compatible
query II rowsort label-7762
SELECT 96 AS col0, + COUNT ( * )
----
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT 31 + + COUNT( * ) - - 30
----
62

skipif mysql # not compatible
query I rowsort label-7763
SELECT 31 + + COUNT ( * ) - - 30
----
62

query I rowsort
SELECT 34 * - 21 AS col0
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT 41 + MAX( 13 )
----
54

skipif mysql # not compatible
query I rowsort label-7765
SELECT 41 + MAX ( 13 )
----
54

query I rowsort
SELECT ALL 33 - + - 61 AS col2
----
94

query I rowsort
SELECT 50 + + 75 - + 85 AS col1
----
40

query I rowsort
SELECT 60 * - - 86
----
5160

query II rowsort
SELECT 33 AS col1, + 52
----
33
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7770
SELECT - SUM( ALL - 63 ) + - 37 + - - SUM( - CASE + 32 WHEN + 40 THEN + - 82 + CAST( NULL AS SIGNED ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT - SUM ( ALL - 63 ) + - 37 + - - SUM ( - CASE + 32 WHEN + 40 THEN + - 82 + CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT - ( + 25 ) + - 26 * 61 * - 61
----
96721

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT - 44 * MAX( + 80 ) AS col1
----
-3520

skipif mysql # not compatible
query I rowsort label-7772
SELECT - 44 * MAX ( + 80 ) AS col1
----
-3520

query I rowsort
SELECT ALL NULLIF ( + 10, + + 8 / + - 47 - + 95 + 8 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT - 61 + 3 + + COUNT( - + 31 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-7774
SELECT - 61 + 3 + + COUNT ( - + 31 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL COUNT( + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL COUNT ( + 28 )
----
1

query I rowsort
SELECT - ( 78 ) + ( - - 31 ) * + 8 col0
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT ALL - + COUNT( * ) * + COUNT( * ) + - - 48 + - 68 * - - 17 * + CASE COUNT( * ) WHEN + - 26 THEN NULL WHEN + COUNT( * ) THEN - 81 + + 97 + COUNT( * ) DIV - COUNT( 14 ) + ( - 86 ) + + 33 ELSE + - 95 END + + 37 AS col0
----
44012

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) + - - 48 + - 68 * - - 17 * + CASE COUNT ( * ) WHEN + - 26 THEN NULL WHEN + COUNT ( * ) THEN - 81 + + 97 + COUNT ( * ) / - COUNT ( 14 ) + ( - 86 ) + + 33 ELSE + - 95 END + + 37 AS col0
----
44012

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - 21 + + COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-7778
SELECT - 21 + + COUNT ( * ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - COUNT( * ) + 59 * + 62 + - 75 + - 34 + + + 42 + - 10 AS col1
----
3580

skipif mysql # not compatible
query I rowsort label-7779
SELECT - COUNT ( * ) + 59 * + 62 + - 75 + - 34 + + + 42 + - 10 AS col1
----
3580

onlyif mysql # DIV for integer division: 
query I rowsort label-7780
SELECT - 48 DIV 65 * 78 + + 34 * + NULLIF ( + 66, - 68 * - + 1 ) - - 29 AS col2
----
2273

skipif mysql # not compatible
query I rowsort label-7780
SELECT - 48 / 65 * 78 + + 34 * + NULLIF ( + 66, - 68 * - + 1 ) - - 29 AS col2
----
2273

query I rowsort
SELECT - - 91 * - 80 AS col0
----
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-7782
SELECT - + 24 DIV 26 * + 82 + - - 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7782
SELECT - + 24 / 26 * + 82 + - - 61 AS col1
----
61

query I rowsort
SELECT ALL 61 * 31 + + - ( - 4 ) + + 57 + + + 30 + + 17 * - + 42
----
1268

query I rowsort
SELECT + - ( - 86 )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT + + ( - 81 ) + + COUNT( * ), MIN( DISTINCT + 11 ) * + - 76 AS col1
----
-80
-836

skipif mysql # not compatible
query II rowsort label-7785
SELECT + + ( - 81 ) + + COUNT ( * ), MIN ( DISTINCT + 11 ) * + - 76 AS col1
----
-80
-836

query I rowsort
SELECT + 79 * - - ( - 96 ) + + 32 * + - 78 * 86 + - NULLIF ( - 14, ( 74 ) / - 63 )
----
-222226

query I rowsort
SELECT DISTINCT + 88 * - 71 + + + 2 AS col0
----
-6246

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT DISTINCT + COALESCE ( - COUNT( * ), - MAX( + - 83 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT + COALESCE ( - COUNT ( * ), - MAX ( + - 83 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7789
SELECT + 10 AS col1, - NULLIF ( - + 19, + + 2 * 56 - + 6 * + COUNT( * ) + - COUNT( * ) ) * + 76 * - 47
----
10
-67868

skipif mysql # not compatible
query II rowsort label-7789
SELECT + 10 AS col1, - NULLIF ( - + 19, + + 2 * 56 - + 6 * + COUNT ( * ) + - COUNT ( * ) ) * + 76 * - 47
----
10
-67868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7790
SELECT ALL - COUNT( * ) * + COUNT( * ) + + + 89 + - + 22 + CAST( 39 AS SIGNED ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + + + 89 + - + 22 + CAST ( 39 AS INTEGER ) AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7791
SELECT + + MIN( 75 ) + - 72 + - - 79 + - - AVG ( CAST( NULL AS SIGNED ) ) - + 35 / NULLIF ( - + 46, - 13 + 0 * + 42 / + COUNT( * ) * - - ( + NULLIF ( + 61, + 8 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT + + MIN ( 75 ) + - 72 + - - 79 + - - AVG ( CAST ( NULL AS INTEGER ) ) - + 35 / NULLIF ( - + 46, - 13 + 0 * + 42 / + COUNT ( * ) * - - ( + NULLIF ( + 61, + 8 ) ) )
----
NULL

query II rowsort
SELECT + 64 * + 24 + + 88 * - 29 * + 5, + ( - 34 ) * + 31 + + 78 AS col1
----
-11224
-976

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL + ( 78 ) * + - 25 + - + 74 - COUNT( * )
----
-2025

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + ( 78 ) * + - 25 + - + 74 - COUNT ( * )
----
-2025

query I rowsort
SELECT ALL - 89 * + 27 col0
----
-2403

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT MIN( DISTINCT + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-7795
SELECT MIN ( DISTINCT + 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL + NULLIF ( - - 16, + - COUNT( * ) * + 7 + + - ( - 54 ) )
----
16

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL + NULLIF ( - - 16, + - COUNT ( * ) * + 7 + + - ( - 54 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT COALESCE ( MIN( DISTINCT + + 58 ), 41 + 8 * - 76 )
----
58

skipif mysql # not compatible
query I rowsort label-7797
SELECT COALESCE ( MIN ( DISTINCT + + 58 ), 41 + 8 * - 76 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7798
SELECT - ( - 24 ) * 97 * - CAST( NULL AS DECIMAL ) * 8 * - - 5 + COUNT( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT - ( - 24 ) * 97 * - CAST ( NULL AS REAL ) * 8 * - - 5 + COUNT ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT + 39 * COUNT( 51 ) - - + 97 - - 4 + + 74
----
214

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT + 39 * COUNT ( 51 ) - - + 97 - - 4 + + 74
----
214

query I rowsort
SELECT CASE 32 WHEN 10 THEN + 98 - + + 16 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT ALL - 6 * + - MAX( - 1 ) - 90 + - - 54 * + 38 * - - 42 + - 25 * MAX( ALL + + CAST( + 59 AS SIGNED ) ) AS col1
----
84613

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL - 6 * + - MAX ( - 1 ) - 90 + - - 54 * + 38 * - - 42 + - 25 * MAX ( ALL + + CAST ( + 59 AS INTEGER ) ) AS col1
----
84613

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT + NULLIF ( - + 55, - 63 * + + 68 * ( - - 4 ) * - - COUNT( - 41 ) + 17 - 5 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7802
SELECT + NULLIF ( - + 55, - 63 * + + 68 * ( - - 4 ) * - - COUNT ( - 41 ) + 17 - 5 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT + CASE + 92 WHEN COUNT( * ) * - COUNT( * ) THEN NULL ELSE ( 42 ) END AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7803
SELECT + CASE + 92 WHEN COUNT ( * ) * - COUNT ( * ) THEN NULL ELSE ( 42 ) END AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL 92 * + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL 92 * + COUNT ( * ) AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT AVG ( ALL + - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT AVG ( ALL + - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL + 79 * 39 - + COUNT( + 2 ) AS col0
----
3080

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL + 79 * 39 - + COUNT ( + 2 ) AS col0
----
3080

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT ALL + 19 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + 19 / + 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7808
SELECT - CASE - 56 WHEN - - 15 THEN NULL WHEN 56 - + 38 - CASE + ( + COUNT( ALL COALESCE ( - 81, + - 64 ) ) ) WHEN + 77 + - 38 THEN NULL ELSE + - COUNT( DISTINCT - 42 ) * - 7 END + + 9 + 73 * - 91 * + 38 THEN - MAX( - 41 ) WHEN - 23 * - 85 THEN NULL ELSE CAST( - 22 AS SIGNED ) DIV ( - COUNT( * ) ) END + - 58
----
-80

skipif mysql # not compatible
query I rowsort label-7808
SELECT - CASE - 56 WHEN - - 15 THEN NULL WHEN 56 - + 38 - CASE + ( + COUNT ( ALL COALESCE ( - 81, + - 64 ) ) ) WHEN + 77 + - 38 THEN NULL ELSE + - COUNT ( DISTINCT - 42 ) * - 7 END + + 9 + 73 * - 91 * + 38 THEN - MAX ( - 41 ) WHEN - 23 * - 85 THEN NULL ELSE CAST ( - 22 AS INTEGER ) / ( - COUNT ( * ) ) END + - 58
----
-80

query I rowsort
SELECT - 56 * ( - ( - + 3 ) )
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT ALL COUNT( * ), 48 - + + CASE + COUNT( ALL - 80 ) WHEN + 98 THEN - - 89 WHEN 46 - + ( - + 22 ) THEN NULL ELSE NULL END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7810
SELECT ALL COUNT ( * ), 48 - + + CASE + COUNT ( ALL - 80 ) WHEN + 98 THEN - - 89 WHEN 46 - + ( - + 22 ) THEN NULL ELSE NULL END AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7811
SELECT MAX( - 59 ) AS col2, - 67 * - 11 AS col0
----
-59
737

skipif mysql # not compatible
query II rowsort label-7811
SELECT MAX ( - 59 ) AS col2, - 67 * - 11 AS col0
----
-59
737

query I rowsort
SELECT - 74 + + + ( + - 6 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7813
SELECT ALL COUNT( * ), 3 AS col0
----
1
3

skipif mysql # not compatible
query II rowsort label-7813
SELECT ALL COUNT ( * ), 3 AS col0
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL MAX( ALL - ( - 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL MAX ( ALL - ( - 89 ) )
----
89

query II rowsort
SELECT ALL 38 AS col0, 13 - - 89
----
38
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL CASE - + COALESCE ( 7, - + 58 + COUNT( * ) + - - COUNT( * ) ) WHEN + 40 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL CASE - + COALESCE ( 7, - + 58 + COUNT ( * ) + - - COUNT ( * ) ) WHEN + 40 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - - 6 * ( COUNT( * ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7817
SELECT - - 6 * ( COUNT ( * ) ) AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT DISTINCT + - CAST( ( + - 41 ) AS SIGNED ) * + 8 * - - 75 * + - 58 AS col1
----
-1426800

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT + - CAST ( ( + - 41 ) AS INTEGER ) * + 8 * - - 75 * + - 58 AS col1
----
-1426800

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT + + NULLIF ( + 62, 14 ) + 83 * - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-7819
SELECT + + NULLIF ( + 62, 14 ) + 83 * - COUNT ( * )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7820
SELECT 9 AS col0, - CASE + 4 WHEN 41 * CAST( + - CASE - AVG ( DISTINCT - 68 ) WHEN + 86 THEN - + AVG ( ALL - - 97 ) - - 61 * + - 20 WHEN - 60 THEN + 43 ELSE NULL END AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN - 1 END AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-7820
SELECT 9 AS col0, - CASE + 4 WHEN 41 * CAST ( + - CASE - AVG ( DISTINCT - 68 ) WHEN + 86 THEN - + AVG ( ALL - - 97 ) - - 61 * + - 20 WHEN - 60 THEN + 43 ELSE NULL END AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN - 1 END AS col0
----
9
NULL

query I rowsort
SELECT ALL + 51 + + 63
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT + 85 + - MAX( + 39 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7822
SELECT + 85 + - MAX ( + 39 ) AS col2
----
46

query I rowsort
SELECT - 54 * 65 AS col2
----
-3510

query I rowsort
SELECT ALL + - 96 + + 48
----
-48

query I rowsort
SELECT - 82 col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-7826
SELECT - 93, - COUNT( * ) AS col1
----
-93
-1

skipif mysql # not compatible
query II rowsort label-7826
SELECT - 93, - COUNT ( * ) AS col1
----
-93
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL - 59 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - 59 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT DISTINCT + 12 / - - 32 * - CAST( NULL AS SIGNED ) + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT + 12 / - - 32 * - CAST ( NULL AS INTEGER ) + + 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7829
SELECT ALL + - AVG ( ALL + CAST( NULL AS SIGNED ) ) / 43 * + - ( + 51 ) / - 5 + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) / 43 * + - ( + 51 ) / - 5 + 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7830
SELECT COUNT( * ) DIV + ( - - 88 ) * + 70 - - 75 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7830
SELECT COUNT ( * ) / + ( - - 88 ) * + 70 - - 75 AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT DISTINCT + 41 DIV - 3 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT + 41 / - 3 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT - + 29 + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-7832
SELECT - + 29 + - COUNT ( * )
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-7833
SELECT ALL + - 94 DIV - 20 + - - 8 + - + 12 col2, ( + + 12 ) AS col2
----
0
12

skipif mysql # not compatible
query II rowsort label-7833
SELECT ALL + - 94 / - 20 + - - 8 + - + 12 col2, ( + + 12 ) AS col2
----
0
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT - 57 * 48 DIV 67 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7834
SELECT - 57 * 48 / 67 AS col0
----
-40

query I rowsort
SELECT ALL + 7 * - 45 + + 82
----
-233

query I rowsort
SELECT 44 * + 37 - 17 + + 62 * - + 39 AS col1
----
-807

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT DISTINCT + + MIN( + 12 ) * MIN( 21 ) * + + 25 - + - 44 + - SUM( + 18 ) * - + COUNT( * ) * - 54
----
5372

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT + + MIN ( + 12 ) * MIN ( 21 ) * + + 25 - + - 44 + - SUM ( + 18 ) * - + COUNT ( * ) * - 54
----
5372

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT - 14 + + MIN( DISTINCT + 97 )
----
83

skipif mysql # not compatible
query I rowsort label-7838
SELECT - 14 + + MIN ( DISTINCT + 97 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT - + 33 * + - 2 * - + 57 - 23 + 3 * CAST( + 93 AS SIGNED ) AS col1
----
-3506

skipif mysql # not compatible
query I rowsort label-7839
SELECT - + 33 * + - 2 * - + 57 - 23 + 3 * CAST ( + 93 AS INTEGER ) AS col1
----
-3506

query II rowsort
SELECT + + 91 AS col1, 34
----
91
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL - 62 / + - 18 * + 67 - + 40 + + CASE - 44 WHEN - - 27 + - 68 + + 95 + - COUNT( ALL + 78 ) + - 5 * + + 42 + - 55 * + COUNT( * ) * + COALESCE ( - - 63, - - MIN( - - 2 ) + + 98, 59 * 73 + ( 14 + COUNT( * ) * - 26 ) ) + - 64 THEN 59 + 73 END * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL - 62 / + - 18 * + 67 - + 40 + + CASE - 44 WHEN - - 27 + - 68 + + 95 + - COUNT ( ALL + 78 ) + - 5 * + + 42 + - 55 * + COUNT ( * ) * + COALESCE ( - - 63, - - MIN ( - - 2 ) + + 98, 59 * 73 + ( 14 + COUNT ( * ) * - 26 ) ) + - 64 THEN 59 + 73 END * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7842
SELECT - 34 * - 29, COUNT( * ) col1
----
986
1

skipif mysql # not compatible
query II rowsort label-7842
SELECT - 34 * - 29, COUNT ( * ) col1
----
986
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT + COUNT( * ) * 34
----
34

skipif mysql # not compatible
query I rowsort label-7843
SELECT + COUNT ( * ) * 34
----
34

query I rowsort
SELECT DISTINCT + ( + 46 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7845
SELECT COUNT( * ) + 81, MIN( ALL - 36 ) AS col1
----
82
-36

skipif mysql # not compatible
query II rowsort label-7845
SELECT COUNT ( * ) + 81, MIN ( ALL - 36 ) AS col1
----
82
-36

query I rowsort
SELECT DISTINCT 80 * + 98 * + 24
----
188160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) + - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - + 23
----
NULL

query I rowsort
SELECT CASE 27 WHEN - 30 THEN NULL ELSE 50 * 57 END + + 2 * - + ( + - 20 ) AS col0
----
2890

query II rowsort
SELECT ALL + 42 * + + 4 AS col2, 96
----
168
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT 75 + - + CASE + 15 WHEN - - 42 * 15 THEN - COUNT( * ) ELSE NULL END + 55 / + 65 + - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT 75 + - + CASE + 15 WHEN - - 42 * 15 THEN - COUNT ( * ) ELSE NULL END + 55 / + 65 + - 46 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7851
SELECT ALL 79 * 8 AS col0, CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
632
-1

skipif mysql # not compatible
query II rowsort label-7851
SELECT ALL 79 * 8 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
632
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7852
SELECT ALL + 79 + - 76 AS col1, + 59 - - COUNT( * ) AS col1
----
3
60

skipif mysql # not compatible
query II rowsort label-7852
SELECT ALL + 79 + - 76 AS col1, + 59 - - COUNT ( * ) AS col1
----
3
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7853
SELECT - NULLIF ( - ( - + MAX( ALL - 16 ) ), + 65 ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT - NULLIF ( - ( - + MAX ( ALL - 16 ) ), + 65 ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 14 + + 81
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7855
SELECT ALL + - 94 * - 35 + 60 + COUNT( * ) DIV ( + 54 ) + + - ( - 57 ) + + 27 DIV COUNT( * ) * 71
----
5324

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL + - 94 * - 35 + 60 + COUNT ( * ) / ( + 54 ) + + - ( - 57 ) + + 27 / COUNT ( * ) * 71
----
5324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7856
SELECT + NULLIF ( - 81, + 74 ) + + + NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) )
----
-80

skipif mysql # not compatible
query I rowsort label-7856
SELECT + NULLIF ( - 81, + 74 ) + + + NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT 97 * + COUNT( DISTINCT - 17 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT 97 * + COUNT ( DISTINCT - 17 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT ALL - ( - + MIN( DISTINCT - 7 ) ) - - 48 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - ( - + MIN ( DISTINCT - 7 ) ) - - 48 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7859
SELECT ALL CAST( NULL AS SIGNED ) * + 25 * + COUNT( ALL - 18 ) * - 96 AS col2, 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-7859
SELECT ALL CAST ( NULL AS INTEGER ) * + 25 * + COUNT ( ALL - 18 ) * - 96 AS col2, 50
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT MAX( DISTINCT + 15 ) col2
----
15

skipif mysql # not compatible
query I rowsort label-7860
SELECT MAX ( DISTINCT + 15 ) col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL - MAX( DISTINCT - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL - MAX ( DISTINCT - 68 ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT CASE NULLIF ( 47, - 89 + 39 ) WHEN SUM( DISTINCT - 64 ) * + + 37 * + + 75 * - - 24 THEN + CASE CAST( + 86 AS SIGNED ) WHEN + ( + ( - 65 ) ) + 75 + COUNT( * ) - + SUM( ALL + 25 ) * 32 * - 45 THEN NULL ELSE 22 * 30 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT CASE NULLIF ( 47, - 89 + 39 ) WHEN SUM ( DISTINCT - 64 ) * + + 37 * + + 75 * - - 24 THEN + CASE CAST ( + 86 AS INTEGER ) WHEN + ( + ( - 65 ) ) + 75 + COUNT ( * ) - + SUM ( ALL + 25 ) * 32 * - 45 THEN NULL ELSE 22 * 30 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL - COALESCE ( + COUNT( * ), + + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - COALESCE ( + COUNT ( * ), + + 78 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT - 15 DIV + 41 + + 12 * - - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-7864
SELECT - 15 / + 41 + + 12 * - - COUNT ( * )
----
12

query I rowsort
SELECT ALL - 19 * + ( - + 76 ) * 54
----
77976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7866
SELECT ALL - 46 DIV - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - 46 / - COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT 60 * - - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7867
SELECT 60 * - - COUNT ( * ) AS col1
----
60

query II rowsort
SELECT + 13 AS col1, + 1
----
13
1

query I rowsort
SELECT 40 * + - 60
----
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7870
SELECT ALL + 56 * - + CAST( - ( + 79 ) AS SIGNED ) AS col1, 93
----
4424
93

skipif mysql # not compatible
query II rowsort label-7870
SELECT ALL + 56 * - + CAST ( - ( + 79 ) AS INTEGER ) AS col1, 93
----
4424
93

query I rowsort
SELECT 50 * 34
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT MIN( DISTINCT - - 29 ) + + 21
----
50

skipif mysql # not compatible
query I rowsort label-7872
SELECT MIN ( DISTINCT - - 29 ) + + 21
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7873
SELECT + 24 AS col2, - CAST( NULL AS DECIMAL ) col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-7873
SELECT + 24 AS col2, - CAST ( NULL AS REAL ) col2
----
24
NULL

query I rowsort
SELECT ALL - 83 + 6
----
-77

query I rowsort
SELECT ALL + 56 * - - 58
----
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT DISTINCT COUNT( * ) + - - 65 col2
----
66

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT COUNT ( * ) + - - 65 col2
----
66

query II rowsort
SELECT ALL 35, - 11 AS col2
----
35
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7878
SELECT 49, NULLIF ( + + NULLIF ( + - COUNT( * ), - 10 / - 1 + - 38 ), - + ( ( + CAST( NULL AS SIGNED ) ) ) + - + 66 + - 87 ) * - 20 * 58 AS col2
----
49
1160

skipif mysql # not compatible
query II rowsort label-7878
SELECT 49, NULLIF ( + + NULLIF ( + - COUNT ( * ), - 10 / - 1 + - 38 ), - + ( ( + CAST ( NULL AS INTEGER ) ) ) + - + 66 + - 87 ) * - 20 * 58 AS col2
----
49
1160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7879
SELECT ALL - 84 + - 41 + - + 18 * ( - + 98 ) DIV - + 98 AS col2, - 32 + COUNT( * )
----
-143
-31

skipif mysql # not compatible
query II rowsort label-7879
SELECT ALL - 84 + - 41 + - + 18 * ( - + 98 ) / - + 98 AS col2, - 32 + COUNT ( * )
----
-143
-31

query II rowsort
SELECT - 89 col0, 66 + + 75 + 17
----
-89
158

query I rowsort
SELECT 65 * + - 16
----
-1040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7882
SELECT ( - - COALESCE ( + CASE - COUNT( * ) WHEN 14 THEN + - ( + + 1 ) END, + - 31 DIV + 54 + - - 12, - + 46 ) ) + + 92 + + - 60
----
44

skipif mysql # not compatible
query I rowsort label-7882
SELECT ( - - COALESCE ( + CASE - COUNT ( * ) WHEN 14 THEN + - ( + + 1 ) END, + - 31 / + 54 + - - 12, - + 46 ) ) + + 92 + + - 60
----
44

query I rowsort
SELECT + 23 + + - 46 col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT ALL + CASE ( - COALESCE ( COUNT( ALL 30 ), - + 15 ) ) WHEN - 83 THEN NULL WHEN - COUNT( * ) * + SUM( ALL - 14 ) + + - 33 + MIN( - 8 ) / 89 + + - COUNT( * ) THEN + - 51 WHEN - 88 THEN - 99 + 81 - - - 13 END + - 48 + - CAST( NULL AS SIGNED ) - 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL + CASE ( - COALESCE ( COUNT ( ALL 30 ), - + 15 ) ) WHEN - 83 THEN NULL WHEN - COUNT ( * ) * + SUM ( ALL - 14 ) + + - 33 + MIN ( - 8 ) / 89 + + - COUNT ( * ) THEN + - 51 WHEN - 88 THEN - 99 + 81 - - - 13 END + - 48 + - CAST ( NULL AS INTEGER ) - 52 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT ALL + ( - 69 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL + ( - 69 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - ( + + 2 ) AS col2
----
-2

query I rowsort
SELECT ALL - 74 * - + NULLIF ( + NULLIF ( + 10, + - 79 ), + 19 ) * ( + 5 ) + - - 66 - - 9
----
3775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT DISTINCT - 10 - - + 73 * CAST( NULL AS SIGNED ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - 10 - - + 73 * CAST ( NULL AS INTEGER ) + 72
----
NULL

query II rowsort
SELECT - 56 + - 73 + 11 col1, 36
----
-118
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT - 30 * COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7890
SELECT - 30 * COUNT ( * ) AS col2
----
-30

query I rowsort
SELECT 8 + + + 83
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7892
SELECT + COUNT( * ) DIV - 68 * + + 84 col0
----
0

skipif mysql # not compatible
query I rowsort label-7892
SELECT + COUNT ( * ) / - 68 * + + 84 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7893
SELECT + 83 + - + 39 + - + ( - + 23 ) + CAST( NULL AS DECIMAL ) * - + 95 * + COUNT( * ) + 11 * + CAST( NULL AS SIGNED ) - - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT + 83 + - + 39 + - + ( - + 23 ) + CAST ( NULL AS REAL ) * - + 95 * + COUNT ( * ) + 11 * + CAST ( NULL AS INTEGER ) - - 25 AS col1
----
NULL

query I rowsort
SELECT ALL - 16 - 63 * 42 + 29 + - - 42 AS col2
----
-2591

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT - CASE + MAX( ALL 94 ) WHEN ( + ( - COUNT( * ) ) ) THEN NULL WHEN + 74 * - 74 THEN + 14 * + COUNT( DISTINCT + 6 ) + + 13 * + NULLIF ( CASE 72 WHEN + + NULLIF ( 54, 82 + + - 12 * 61 ) * 88 - + + COUNT( * ) + - 37 + + 51 / + 20 THEN + 37 + + 60 * 2 END, - 36 ) * + 18 - - SUM( + 8 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT - CASE + MAX ( ALL 94 ) WHEN ( + ( - COUNT ( * ) ) ) THEN NULL WHEN + 74 * - 74 THEN + 14 * + COUNT ( DISTINCT + 6 ) + + 13 * + NULLIF ( CASE 72 WHEN + + NULLIF ( 54, 82 + + - 12 * 61 ) * 88 - + + COUNT ( * ) + - 37 + + 51 / + 20 THEN + 37 + + 60 * 2 END, - 36 ) * + 18 - - SUM ( + 8 ) END col1
----
NULL

query I rowsort
SELECT ALL - 66 * + 81
----
-5346

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT + COALESCE ( + SUM( ALL 2 ), 22 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7897
SELECT + COALESCE ( + SUM ( ALL 2 ), 22 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT 23 * + COUNT( * ) + - - 48 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7898
SELECT 23 * + COUNT ( * ) + - - 48 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT - 81 * + - COUNT( * ) * 96 AS col0
----
7776

skipif mysql # not compatible
query I rowsort label-7899
SELECT - 81 * + - COUNT ( * ) * 96 AS col0
----
7776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7900
SELECT - COUNT( * ) DIV + 1 + 50 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7900
SELECT - COUNT ( * ) / + 1 + 50 AS col2
----
49

query I rowsort
SELECT + 61 * 54 - - + 74 + + + 2 AS col0
----
3370

query I rowsort
SELECT - 51 * - - 30 AS col2
----
-1530

query I rowsort
SELECT DISTINCT 68 * 18
----
1224

query I rowsort
SELECT ALL 23 * - 1 * - + 60 + 46 AS col2
----
1426

query I rowsort
SELECT ( + - 39 ) * - 76 + 84
----
3048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT + CAST( NULL AS SIGNED ) * - + 89 * 41 + - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT + CAST ( NULL AS INTEGER ) * - + 89 * 41 + - + 71
----
NULL

query I rowsort
SELECT ALL + ( 14 )
----
14

query I rowsort
SELECT DISTINCT - 82 * + 12 + + 54 + + + 70 + - 57 AS col2
----
-917

query II rowsort
SELECT + 62 * - 92, - 13 * + 28 * + + 7 AS col1
----
-5704
-2548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT + 79 + + CASE + 91 WHEN - 29 THEN NULL WHEN + 23 * CAST( NULL AS SIGNED ) THEN - - CAST( NULL AS SIGNED ) END * - 78 + + 85 / 40 + - - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7910
SELECT + 79 + + CASE + 91 WHEN - 29 THEN NULL WHEN + 23 * CAST ( NULL AS INTEGER ) THEN - - CAST ( NULL AS INTEGER ) END * - 78 + + 85 / 40 + - - 77
----
NULL

query II rowsort
SELECT - 85 * 1 AS col1, 72
----
-85
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 9 + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 9 + + 6
----
NULL

query I rowsort
SELECT ALL + ( + 91 ) AS col2
----
91

query I rowsort
SELECT - 61 * + - 6
----
366

query I rowsort
SELECT 98 * - - 72 + ( + 33 ) + - - 19 AS col0
----
7108

query II rowsort
SELECT ALL - 62 * - 31 AS col0, 19 AS col1
----
1922
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7917
SELECT DISTINCT + - 52 * + COUNT( * ), SUM( ALL + 72 ) AS col0
----
-52
72

skipif mysql # not compatible
query II rowsort label-7917
SELECT DISTINCT + - 52 * + COUNT ( * ), SUM ( ALL + 72 ) AS col0
----
-52
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7918
SELECT ALL - + CASE + 82 WHEN - - COUNT( * ) THEN NULL WHEN + 58 - 3 + - - NULLIF ( CAST( NULL AS DECIMAL ), + 6 * - 51 ) + 30 * - COUNT( * ) THEN NULL WHEN - 97 THEN + 49 + + CASE WHEN NOT ( + 14 < ( - 95 + - - 0 * + + COUNT( * ) ) ) THEN 96 + + COUNT( * ) ELSE NULL END END + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL - + CASE + 82 WHEN - - COUNT ( * ) THEN NULL WHEN + 58 - 3 + - - NULLIF ( CAST ( NULL AS REAL ), + 6 * - 51 ) + 30 * - COUNT ( * ) THEN NULL WHEN - 97 THEN + 49 + + CASE WHEN NOT ( + 14 < ( - 95 + - - 0 * + + COUNT ( * ) ) ) THEN 96 + + COUNT ( * ) ELSE NULL END END + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT - 74 + + 9 * - SUM( ALL 3 ) * + - 60 * - + 68
----
-110234

skipif mysql # not compatible
query I rowsort label-7919
SELECT - 74 + + 9 * - SUM ( ALL 3 ) * + - 60 * - + 68
----
-110234

query I rowsort
SELECT DISTINCT - - 60 * 89
----
5340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7921
SELECT ALL - 81 - + - 77 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - 81 - + - 77 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - 1 + + 65, + 47 AS col2
----
64
47

query I rowsort
SELECT - + 6 + + + 99
----
93

query I rowsort
SELECT - + 0 * + - 7 * 32 * + 27
----
0

query II rowsort
SELECT + + 51 + - + 81 AS col1, 91 * - + 98
----
-30
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT - CASE + + COUNT( * ) WHEN - - 17 * - COALESCE ( + - CASE - 18 WHEN - 76 * + + 61 * 58 THEN NULL ELSE - 99 / + 22 + - 76 + 19 + + AVG ( DISTINCT - 39 ) - 92 * + 64 * + - 44 END, + + ( - - 93 ) + - 98 / + + 96, + 38, 97 - 30 * COALESCE ( - 66 + - 15, 90, - 1 * + 2 ) ) THEN 53 + + 26 * 48 END * CASE NULLIF ( 53, 54 * + COUNT( * ) ) / 7 WHEN 82 + 26 THEN 44 ELSE 80 + 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT - CASE + + COUNT ( * ) WHEN - - 17 * - COALESCE ( + - CASE - 18 WHEN - 76 * + + 61 * 58 THEN NULL ELSE - 99 / + 22 + - 76 + 19 + + AVG ( DISTINCT - 39 ) - 92 * + 64 * + - 44 END, + + ( - - 93 ) + - 98 / + + 96, + 38, 97 - 30 * COALESCE ( - 66 + - 15, 90, - 1 * + 2 ) ) THEN 53 + + 26 * 48 END * CASE NULLIF ( 53, 54 * + COUNT ( * ) ) / 7 WHEN 82 + 26 THEN 44 ELSE 80 + 51 END AS col0
----
NULL

query I rowsort
SELECT - ( + 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - SUM( - - 33 ) + - 22 col1
----
-55

skipif mysql # not compatible
query I rowsort label-7928
SELECT - SUM ( - - 33 ) + - 22 col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL + MIN( - + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + MIN ( - + 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + COUNT( * ) * + 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7930
SELECT + COUNT ( * ) * + 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT - COALESCE ( + COUNT( ALL - 82 ), - + 5 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7931
SELECT - COALESCE ( + COUNT ( ALL - 82 ), - + 5 ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7932
SELECT CAST( NULL AS SIGNED ) AS col1, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-7932
SELECT CAST ( NULL AS INTEGER ) AS col1, 45
----
NULL
45

query I rowsort
SELECT + 69 * 83
----
5727

onlyif mysql # DIV for integer division: 
query I rowsort label-7934
SELECT + 28 * + 56 DIV + 55
----
28

skipif mysql # not compatible
query I rowsort label-7934
SELECT + 28 * + 56 / + 55
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT + NULLIF ( - 11, - 34 ) + 87 + - + 25 * + ( + - 63 ) DIV 21
----
151

skipif mysql # not compatible
query I rowsort label-7935
SELECT + NULLIF ( - 11, - 34 ) + 87 + - + 25 * + ( + - 63 ) / 21
----
151

onlyif mysql # DIV for integer division: 
query II rowsort label-7936
SELECT ALL 13 DIV + 85 * + 74 * + - 56 + - 36, 26 * - 46 * - 97 AS col2
----
-36
116012

skipif mysql # not compatible
query II rowsort label-7936
SELECT ALL 13 / + 85 * + 74 * + - 56 + - 36, 26 * - 46 * - 97 AS col2
----
-36
116012

query I rowsort
SELECT + COALESCE ( 13, - 16, + 6 * + 12 * + 21 )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT ALL ( + 1 ) DIV + - ( 9 ) * - 49 + 85
----
85

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL ( + 1 ) / + - ( 9 ) * - 49 + 85
----
85

query I rowsort
SELECT ( - 61 ) col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7940
SELECT DISTINCT 81 DIV - CAST( + 67 AS SIGNED ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT 81 / - CAST ( + 67 AS INTEGER ) + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT + MIN( + + ( 2 ) ) col1
----
2

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT + MIN ( + + ( 2 ) ) col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT + CASE + 77 WHEN 58 THEN + + COUNT( * ) END - + + COUNT( * ) + - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT + CASE + 77 WHEN 58 THEN + + COUNT ( * ) END - + + COUNT ( * ) + - 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT + CAST( + 20 AS SIGNED ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7943
SELECT + CAST ( + 20 AS INTEGER ) AS col1
----
20

query I rowsort
SELECT - 44 * + 42
----
-1848

query II rowsort
SELECT ALL 50 * + 23 * - 19, - 96 * 75 AS col0
----
-21850
-7200

query I rowsort
SELECT ( - 67 )
----
-67

query I rowsort
SELECT ( + 92 ) col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7948
SELECT + CAST( COUNT( - 48 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7948
SELECT + CAST ( COUNT ( - 48 ) AS INTEGER )
----
1

query I rowsort
SELECT - 38 + 82 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT + COUNT( * ) * - COUNT( * ) * + 27 * - 9 * + ( + 63 ) * - 69 * - 75 AS col1
----
79224075

skipif mysql # not compatible
query I rowsort label-7950
SELECT + COUNT ( * ) * - COUNT ( * ) * + 27 * - 9 * + ( + 63 ) * - 69 * - 75 AS col1
----
79224075

query I rowsort
SELECT ALL 19 * - 69
----
-1311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT + 62 - - + CAST( 71 AS SIGNED ) * + COUNT( * ) * 38 * - 26
----
-70086

skipif mysql # not compatible
query I rowsort label-7952
SELECT + 62 - - + CAST ( 71 AS INTEGER ) * + COUNT ( * ) * 38 * - 26
----
-70086

query I rowsort
SELECT ALL + + 87 * - + 97
----
-8439

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT - + 46 * - - 9 * COUNT( * ) * + 2
----
-828

skipif mysql # not compatible
query I rowsort label-7954
SELECT - + 46 * - - 9 * COUNT ( * ) * + 2
----
-828

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7955
SELECT - 94 DIV + 55 DIV COUNT( * ) AS col1, - ( + + 39 )
----
-1
-39

skipif mysql # not compatible
query II rowsort label-7955
SELECT - 94 / + 55 / COUNT ( * ) AS col1, - ( + + 39 )
----
-1
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT DISTINCT + NULLIF ( - SUM( - 26 ), + - SUM( - 22 ) ) DIV - 38 + - + 57 col1
----
-57

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT + NULLIF ( - SUM ( - 26 ), + - SUM ( - 22 ) ) / - 38 + - + 57 col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7957
SELECT - + 96 DIV 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7957
SELECT - + 96 / 35 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7958
SELECT ALL + COUNT( - 36 ) * + 16 AS col2, - 11
----
16
-11

skipif mysql # not compatible
query II rowsort label-7958
SELECT ALL + COUNT ( - 36 ) * + 16 AS col2, - 11
----
16
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT + 51 * + + 81 + 33 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT + 51 * + + 81 + 33 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT - 60 DIV + 27
----
-2

skipif mysql # not compatible
query I rowsort label-7960
SELECT - 60 / + 27
----
-2

query I rowsort
SELECT ALL - - 83 * + 14 * - 49 + - ( + 28 ) * - + 73
----
-54894

query II rowsort
SELECT 54 col2, 58
----
54
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT ALL CAST( - 78 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL CAST ( - 78 AS INTEGER )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-7964
SELECT ALL - NULLIF ( 77, + 96 * + + COUNT( - - 75 ) ) AS col2, - 57
----
-77
-57

skipif mysql # not compatible
query II rowsort label-7964
SELECT ALL - NULLIF ( 77, + 96 * + + COUNT ( - - 75 ) ) AS col2, - 57
----
-77
-57

query I rowsort
SELECT - + ( + + 85 ) AS col0
----
-85

query I rowsort
SELECT ALL - 39 * - 2
----
78

query I rowsort
SELECT - 10 * - COALESCE ( CASE - 56 WHEN 45 THEN - 48 END, + + 52 - + 69 )
----
-170

query I rowsort
SELECT - 67 + - + ( + 86 )
----
-153

query I rowsort
SELECT 53 + 0 AS col2
----
53

query I rowsort
SELECT ALL 16 + 16 * - 40
----
-624

query II rowsort
SELECT 60 - + - 13 col1, - 39 * - ( - 54 ) AS col1
----
73
-2106

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT ALL + 24 DIV + ( + + 47 )
----
0

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL + 24 / + ( + + 47 )
----
0

query I rowsort
SELECT ALL + 97 + - 45 - + ( 91 ) * 63 * 12
----
-68744

query II rowsort
SELECT + 67 AS col0, 60
----
67
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7975
SELECT COUNT( - - 51 ) * - CAST( NULL AS SIGNED ) + + - 93 * - NULLIF ( + + 14, + + 48 * + - 12 * + + CAST( NULL AS SIGNED ) + 24 * 23 * + + 57 - - 19 + COALESCE ( - 21, - - 41 ) ) + + 65 col0, MAX( ALL + 46 ) col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-7975
SELECT COUNT ( - - 51 ) * - CAST ( NULL AS INTEGER ) + + - 93 * - NULLIF ( + + 14, + + 48 * + - 12 * + + CAST ( NULL AS INTEGER ) + 24 * 23 * + + 57 - - 19 + COALESCE ( - 21, - - 41 ) ) + + 65 col0, MAX ( ALL + 46 ) col1
----
NULL
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7976
SELECT 35, + COALESCE ( 15, 66 ) * CASE - 66 WHEN - COUNT( + 79 ) THEN - 22 * - 7 * - COUNT( * ) * ( 2 ) WHEN + 17 / - 4 THEN NULL END + - MIN( DISTINCT - 72 ) AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-7976
SELECT 35, + COALESCE ( 15, 66 ) * CASE - 66 WHEN - COUNT ( + 79 ) THEN - 22 * - 7 * - COUNT ( * ) * ( 2 ) WHEN + 17 / - 4 THEN NULL END + - MIN ( DISTINCT - 72 ) AS col0
----
35
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7977
SELECT DISTINCT MIN( ALL + 6 ) - - 1 DIV - - 13 + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT MIN ( ALL + 6 ) - - 1 / - - 13 + COUNT ( * )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT ALL + 62 DIV - - 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + 62 / - - 32 AS col2
----
1

query II rowsort
SELECT 65 AS col2, - 22
----
65
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT 35 * + - 9 * - - CAST( NULL AS SIGNED ) + - 77 + - ( + COUNT( * ) ) * - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT 35 * + - 9 * - - CAST ( NULL AS INTEGER ) + - 77 + - ( + COUNT ( * ) ) * - 97 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) * - - ( + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * - - ( + 73 ) AS col0
----
-73

query II rowsort
SELECT + 96, + 53 AS col0
----
96
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT - COALESCE ( 20, + 69 * - 85, 91 + + + 89 ) + - + COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7983
SELECT - COALESCE ( 20, + 69 * - 85, 91 + + + 89 ) + - + COUNT ( * ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7984
SELECT CAST( + 14 AS SIGNED ) * 88 - - + 4 + - - 65 + - + COALESCE ( + + 94, + + 19 * + 61, 54 * - 6 DIV 97 )
----
1207

skipif mysql # not compatible
query I rowsort label-7984
SELECT CAST ( + 14 AS INTEGER ) * 88 - - + 4 + - - 65 + - + COALESCE ( + + 94, + + 19 * + 61, 54 * - 6 / 97 )
----
1207

query I rowsort
SELECT - 83 * + 84 AS col0
----
-6972

query I rowsort
SELECT ALL 52 * - + 27
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ( - SUM( ALL + - 89 ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7987
SELECT ( - SUM ( ALL + - 89 ) ) AS col0
----
89

query I rowsort
SELECT + 47 * 36 + 34 col0
----
1726

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL - + CASE + 33 WHEN + 77 THEN - + COUNT( ALL - 19 ) ELSE + + 54 END AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL - + CASE + 33 WHEN + 77 THEN - + COUNT ( ALL - 19 ) ELSE + + 54 END AS col0
----
-54

query I rowsort
SELECT - 49 * 70 AS col0
----
-3430

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT - 34 * 92 DIV 76 + + - 37
----
-78

skipif mysql # not compatible
query I rowsort label-7991
SELECT - 34 * 92 / 76 + + - 37
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT SUM( DISTINCT - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-7992
SELECT SUM ( DISTINCT - 74 )
----
-74

query I rowsort
SELECT DISTINCT 37 + 20
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7994
SELECT + 85 + NULLIF ( - COUNT( * ), 22 ) * - + 32 - + - COALESCE ( + 88, + - 72 * - 94 * + 9 * - 85 ), ( - - 71 ) AS col1
----
205
71

skipif mysql # not compatible
query II rowsort label-7994
SELECT + 85 + NULLIF ( - COUNT ( * ), 22 ) * - + 32 - + - COALESCE ( + 88, + - 72 * - 94 * + 9 * - 85 ), ( - - 71 ) AS col1
----
205
71

query I rowsort
SELECT ALL CASE + 27 WHEN - + 11 THEN NULL ELSE + - 7 END + - 18
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT DISTINCT + ( + CAST( - 64 AS SIGNED ) )
----
-64

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT + ( + CAST ( - 64 AS INTEGER ) )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT 75 + - - 98 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT 75 + - - 98 / + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - + 6, 23 * - 40 AS col2
----
-6
-920

query I rowsort
SELECT - 52 * 84 + ( - 5 )
----
-4373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8000
SELECT MAX( + 75 ) + + MIN( + 5 ) + - 91 DIV - - 68
----
79

skipif mysql # not compatible
query I rowsort label-8000
SELECT MAX ( + 75 ) + + MIN ( + 5 ) + - 91 / - - 68
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT 54 * - + COUNT( 71 ) * NULLIF ( 1, 52 / 93 * + COUNT( * ) * + 56 * - 58 - 26 / - - 47 + + - 51 ) - CASE + CAST( NULL AS SIGNED ) WHEN - 92 - + 31 * - + NULLIF ( SUM( ALL - - 89 ), - 50 * + 91 + + 2 - 28 ) + + 2 - 35 / - 79 THEN NULL ELSE + 14 + 2 END + 60 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8001
SELECT 54 * - + COUNT ( 71 ) * NULLIF ( 1, 52 / 93 * + COUNT ( * ) * + 56 * - 58 - 26 / - - 47 + + - 51 ) - CASE + CAST ( NULL AS INTEGER ) WHEN - 92 - + 31 * - + NULLIF ( SUM ( ALL - - 89 ), - 50 * + 91 + + 2 - 28 ) + + 2 - 35 / - 79 THEN NULL ELSE + 14 + 2 END + 60 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT - COUNT( * ) + 93 col2
----
92

skipif mysql # not compatible
query I rowsort label-8002
SELECT - COUNT ( * ) + 93 col2
----
92

query I rowsort
SELECT ALL - 28 + 63
----
35

query I rowsort
SELECT 60 * - 31 AS col1
----
-1860

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8005
SELECT ALL CASE - COUNT( * ) WHEN 66 THEN NULL WHEN 47 / 40 THEN 24 END * 42 * + CAST( - - ( 49 ) AS DECIMAL ) - - COUNT( * ) * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL CASE - COUNT ( * ) WHEN 66 THEN NULL WHEN 47 / 40 THEN 24 END * 42 * + CAST ( - - ( 49 ) AS REAL ) - - COUNT ( * ) * - 51 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8006
SELECT DISTINCT 46 + - + 85, 92 * + CAST( 73 AS SIGNED ) AS col1
----
-39
6716

skipif mysql # not compatible
query II rowsort label-8006
SELECT DISTINCT 46 + - + 85, 92 * + CAST ( 73 AS INTEGER ) AS col1
----
-39
6716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT DISTINCT + 83 + + ( - CAST( + 63 AS SIGNED ) ) col2
----
20

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + 83 + + ( - CAST ( + 63 AS INTEGER ) ) col2
----
20

query I rowsort
SELECT 95 * - 1 AS col1
----
-95

query I rowsort
SELECT 4 + - 87
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8010
SELECT COUNT( * ) + 81 - - 46 DIV - - 79 * 71 + 19 * 12 AS col2, + 66 + ( - + 88 ) AS col0, - 9 * - 65 AS col0
----
310
-22
585

skipif mysql # not compatible
query III rowsort label-8010
SELECT COUNT ( * ) + 81 - - 46 / - - 79 * 71 + 19 * 12 AS col2, + 66 + ( - + 88 ) AS col0, - 9 * - 65 AS col0
----
310
-22
585

onlyif mysql # aggregate syntax: 
query II rowsort label-8011
SELECT ALL - MAX( ALL + - 53 ) AS col0, 63
----
53
63

skipif mysql # not compatible
query II rowsort label-8011
SELECT ALL - MAX ( ALL + - 53 ) AS col0, 63
----
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT 57 / - 8 + + CASE + 32 WHEN + - SUM( - - 15 ) THEN - ( - - 5 ) + - 26 / 51 / + ( - 94 ) WHEN + 78 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT 57 / - 8 + + CASE + 32 WHEN + - SUM ( - - 15 ) THEN - ( - - 5 ) + - 26 / 51 / + ( - 94 ) WHEN + 78 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT COUNT( * ) + - 93 AS col1, - 89 AS col1
----
-92
-89

skipif mysql # not compatible
query II rowsort label-8013
SELECT COUNT ( * ) + - 93 AS col1, - 89 AS col1
----
-92
-89

query I rowsort
SELECT DISTINCT + 49 * + - 91 AS col1
----
-4459

query I rowsort
SELECT 51 - + + NULLIF ( + 86, + - ( - 70 ) ) * + 42 AS col0
----
-3561

query I rowsort
SELECT + ( - 65 ) * 44 + - 5 AS col0
----
-2865

query I rowsort
SELECT - 87 * + 74 * - 47 + 21 + + 76
----
302683

onlyif mysql # DIV for integer division: 
query III rowsort label-8018
SELECT ALL + 74 DIV - 79, + 67 AS col1, + 82 AS col2
----
0
67
82

skipif mysql # not compatible
query III rowsort label-8018
SELECT ALL + 74 / - 79, + 67 AS col1, + 82 AS col2
----
0
67
82

query I rowsort
SELECT - 42 * + 71 AS col1
----
-2982

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8020
SELECT DISTINCT MIN( DISTINCT - 12 ) DIV ( 99 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT MIN ( DISTINCT - 12 ) / ( 99 ) AS col1
----
0

query II rowsort
SELECT ALL 86 + - 41 AS col1, 79 AS col0
----
45
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL - - NULLIF ( 58, 65 + - COUNT( * ) - + COUNT( * ) * - ( + 15 ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - - NULLIF ( 58, 65 + - COUNT ( * ) - + COUNT ( * ) * - ( + 15 ) ) AS col0
----
58

query I rowsort
SELECT ALL 9 + + + 53 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT + SUM( ALL + COALESCE ( - - 1, + 89 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8024
SELECT + SUM ( ALL + COALESCE ( - - 1, + 89 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL 66 + 9 - + 35 + - COUNT( 40 ) col2
----
39

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL 66 + 9 - + 35 + - COUNT ( 40 ) col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT 71 + + MIN( DISTINCT + 20 ) * + 45
----
971

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT 71 + + MIN ( DISTINCT + 20 ) * + 45
----
971

query II rowsort
SELECT + + 67 * - 73 * + 98, 26 col1
----
-479318
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT + + 62 * - 30 + COUNT( * )
----
-1859

skipif mysql # not compatible
query I rowsort label-8028
SELECT + + 62 * - 30 + COUNT ( * )
----
-1859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT ALL - 56 + + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL - 56 + + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL ( + 95 )
----
95

query I rowsort
SELECT + ( - ( 55 ) ) * 51 * - 72 AS col0
----
201960

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL MIN( ALL + + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL MIN ( ALL + + 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT DISTINCT - 52 - + + 49 * - COUNT( - COALESCE ( + 35, + COALESCE ( 49, + CASE 40 WHEN - 19 * 60 THEN - 38 END + - 19 + 75 * + 23 * + + 19, - 68 ) + + 9 + - 88 ) ) + CASE 44 WHEN + 91 + + - COUNT( * ) + + 98 * 79 / + - 52 THEN + - 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT - 52 - + + 49 * - COUNT ( - COALESCE ( + 35, + COALESCE ( 49, + CASE 40 WHEN - 19 * 60 THEN - 38 END + - 19 + 75 * + 23 * + + 19, - 68 ) + + 9 + - 88 ) ) + CASE 44 WHEN + 91 + + - COUNT ( * ) + + 98 * 79 / + - 52 THEN + - 81 END AS col1
----
NULL

query I rowsort
SELECT - ( - 26 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8035
SELECT 98, - COUNT( * ) AS col0
----
98
-1

skipif mysql # not compatible
query II rowsort label-8035
SELECT 98, - COUNT ( * ) AS col0
----
98
-1

query I rowsort
SELECT + 63 + 62 AS col1
----
125

query I rowsort
SELECT - 69 * + 74 AS col1
----
-5106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT + COALESCE ( - 3, + 99 ) + 42 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT + COALESCE ( - 3, + 99 ) + 42 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 45 * + 77 AS col2
----
-3465

query I rowsort
SELECT + 15 + 33 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-8041
SELECT ALL - 34 - + - COUNT( * ) * + 15 AS col2, + 7
----
-19
7

skipif mysql # not compatible
query II rowsort label-8041
SELECT ALL - 34 - + - COUNT ( * ) * + 15 AS col2, + 7
----
-19
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT + 33 DIV - 85 * - 51
----
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT + 33 / - 85 * - 51
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8043
SELECT ALL 39 DIV - + NULLIF ( 32, 40 ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL 39 / - + NULLIF ( 32, 40 ) * - COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT + ( 56 ) + + CAST( - 95 AS SIGNED ) + - + 53 * - MAX( ALL + 48 ) col1
----
2505

skipif mysql # not compatible
query I rowsort label-8044
SELECT + ( 56 ) + + CAST ( - 95 AS INTEGER ) + - + 53 * - MAX ( ALL + 48 ) col1
----
2505

query I rowsort
SELECT ALL CASE - 80 WHEN - 22 THEN - - 5 END
----
NULL

query I rowsort
SELECT - 85 + - 90
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT DISTINCT + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT + ( COUNT ( * ) )
----
1

query I rowsort
SELECT - 61 + 79
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT ALL + CAST( - 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL + CAST ( - 33 AS INTEGER )
----
-33

query I rowsort
SELECT - 79 * + - 69
----
5451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8051
SELECT CASE + 6 WHEN + + 97 THEN - 42 END * + - 35 + 39 + + CAST( NULL AS SIGNED ) / - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT CASE + 6 WHEN + + 97 THEN - 42 END * + - 35 + 39 + + CAST ( NULL AS INTEGER ) / - 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT - SUM( DISTINCT + 15 ) * + 42
----
-630

skipif mysql # not compatible
query I rowsort label-8052
SELECT - SUM ( DISTINCT + 15 ) * + 42
----
-630

query II rowsort
SELECT ALL + + 48, 91 * 21 AS col1
----
48
1911

query I rowsort
SELECT DISTINCT - 45 * + 64 AS col2
----
-2880

query I rowsort
SELECT ALL - - ( + 95 ) * + COALESCE ( - - 53, 4 ) + + 55
----
5090

query I rowsort
SELECT - 40 * + 84 AS col2
----
-3360

query I rowsort
SELECT DISTINCT - 68 * - 14 + - 66 + + 30 * + 48 * NULLIF ( 12, 69 * + 71 ) + - 93 AS col2
----
18073

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT NULLIF ( COUNT( * ), - CASE 91 WHEN - 11 + + 7 THEN + - 84 + - MAX( + 83 ) END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8058
SELECT NULLIF ( COUNT ( * ), - CASE 91 WHEN - 11 + + 7 THEN + - 84 + - MAX ( + 83 ) END ) AS col0
----
1

query I rowsort
SELECT + - 12 col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8060
SELECT - - 46 + + - COALESCE ( - + 47, 45, + ( - 77 ), - 52 ) + COUNT( * ) - 2 DIV - SUM( ALL 2 ) + + 33 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-8060
SELECT - - 46 + + - COALESCE ( - + 47, 45, + ( - 77 ), - 52 ) + COUNT ( * ) - 2 / - SUM ( ALL 2 ) + + 33 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT - CASE 38 WHEN - MAX( DISTINCT - 6 ) * 70 THEN NULL WHEN 31 THEN NULL ELSE 7 * 95 - + 65 END AS col0
----
-600

skipif mysql # not compatible
query I rowsort label-8061
SELECT - CASE 38 WHEN - MAX ( DISTINCT - 6 ) * 70 THEN NULL WHEN 31 THEN NULL ELSE 7 * 95 - + 65 END AS col0
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL SUM( DISTINCT - 29 ) * 0 + + 34 + - ( + 26 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL SUM ( DISTINCT - 29 ) * 0 + + 34 + - ( + 26 ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT + 3 DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-8063
SELECT + 3 / + + 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT - CAST( - 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-8064
SELECT - CAST ( - 13 AS INTEGER )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT DISTINCT + 81 * + COUNT( * ) + - 53 + + 68 + + 54 DIV - ( + - 20 )
----
98

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT + 81 * + COUNT ( * ) + - 53 + + 68 + + 54 / - ( + - 20 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT - MIN( - 71 ) * 89 + + + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT - MIN ( - 71 ) * 89 + + + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT + 70 + + ( ( - - MAX( - - 27 ) ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8067
SELECT + 70 + + ( ( - - MAX ( - - 27 ) ) ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8068
SELECT ALL CAST( - 95 AS SIGNED ), + 34 DIV + 27 AS col1
----
-95
1

skipif mysql # not compatible
query II rowsort label-8068
SELECT ALL CAST ( - 95 AS INTEGER ), + 34 / + 27 AS col1
----
-95
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8069
SELECT + CAST( - 53 AS SIGNED ) + COUNT( * ) - 49 DIV - COUNT( * ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-8069
SELECT + CAST ( - 53 AS INTEGER ) + COUNT ( * ) - 49 / - COUNT ( * ) col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT + CAST( - 8 AS SIGNED ) * + - ( 17 ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-8070
SELECT + CAST ( - 8 AS INTEGER ) * + - ( 17 ) AS col1
----
136

query I rowsort
SELECT + 57 * - 35 * - + 62 * 83 AS col0
----
10266270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8072
SELECT + 21 + - MAX( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8072
SELECT + 21 + - MAX ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 92 * 61 AS col1
----
5612

query I rowsort
SELECT + 62 * - 6 AS col1
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - COALESCE ( + SUM( DISTINCT + 40 ), - 9 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8075
SELECT - COALESCE ( + SUM ( DISTINCT + 40 ), - 9 ) AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8076
SELECT + 79 / + CAST( NULL AS SIGNED ) AS col2, + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8076
SELECT + 79 / + CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

query I rowsort
SELECT + 26 * + - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8078
SELECT ALL COUNT( * ) * 89 AS col1, - 49 + + 68 AS col2
----
89
19

skipif mysql # not compatible
query II rowsort label-8078
SELECT ALL COUNT ( * ) * 89 AS col1, - 49 + + 68 AS col2
----
89
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8079
SELECT - 58 DIV - + 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8079
SELECT - 58 / - + 39 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT DISTINCT - + 86 * - - 15 + + - ( + 93 ) + + 6 + - - 31 * - + SUM( - + 51 )
----
204

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT - + 86 * - - 15 + + - ( + 93 ) + + 6 + - - 31 * - + SUM ( - + 51 )
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT ALL - 35 DIV + 38 + + 11
----
11

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL - 35 / + 38 + + 11
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT - - 71 DIV - NULLIF ( - 44, ( 19 ) DIV - + 32 ) + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-8082
SELECT - - 71 / - NULLIF ( - 44, ( 19 ) / - + 32 ) + - 89
----
-88

query I rowsort
SELECT COALESCE ( + 37, CASE + 87 WHEN 99 THEN NULL WHEN 64 THEN - ( 7 ) * + - 24 * + + 75 * - 56 + + - 31 END ) AS col0
----
37

query I rowsort
SELECT + 38 * - 98
----
-3724

query I rowsort
SELECT DISTINCT - 50 + - 6 - 23 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT - - COUNT( * ) + 49 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT - - COUNT ( * ) + 49 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT + 52 * - + CAST( - 86 AS SIGNED ) + + 41 + - 45 * - 14 * 8 * - 16 AS col1
----
-76127

skipif mysql # not compatible
query I rowsort label-8087
SELECT + 52 * - + CAST ( - 86 AS INTEGER ) + + 41 + - 45 * - 14 * 8 * - 16 AS col1
----
-76127

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT DISTINCT - SUM( ALL + 28 ) AS col1, 37
----
-28
37

skipif mysql # not compatible
query II rowsort label-8088
SELECT DISTINCT - SUM ( ALL + 28 ) AS col1, 37
----
-28
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT NULLIF ( 80, CAST( NULL AS SIGNED ) ) * + + 31
----
2480

skipif mysql # not compatible
query I rowsort label-8089
SELECT NULLIF ( 80, CAST ( NULL AS INTEGER ) ) * + + 31
----
2480

query I rowsort
SELECT DISTINCT + 29 - - ( - 71 ) * - 10 * + 74 + - 21 AS col0
----
52548

query I rowsort
SELECT DISTINCT - NULLIF ( 33, 86 + 28 ) - - - ( 1 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT DISTINCT - + MIN( ( + - 8 ) ) col0
----
8

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT - + MIN ( ( + - 8 ) ) col0
----
8

query I rowsort
SELECT 98 * - 3
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL + 34 - + MAX( + ( 82 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL + 34 - + MAX ( + ( 82 ) )
----
-48

query I rowsort
SELECT DISTINCT + 52 * + 39
----
2028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8096
SELECT 88 * + - CAST( 95 AS SIGNED ) AS col2
----
-8360

skipif mysql # not compatible
query I rowsort label-8096
SELECT 88 * + - CAST ( 95 AS INTEGER ) AS col2
----
-8360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8097
SELECT ALL COUNT( * ) DIV + COALESCE ( + - 32, - 6 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL COUNT ( * ) / + COALESCE ( + - 32, - 6 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT DISTINCT + 17 DIV 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT + 17 / 49 AS col1
----
0

query I rowsort
SELECT 94 + 23
----
117

query I rowsort
SELECT 0 * + 95 * 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT COUNT( * ) + 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8101
SELECT COUNT ( * ) + 27 AS col2
----
28

query I rowsort
SELECT ( 55 ) - - 87 * 93
----
8146

query II rowsort
SELECT ALL 83 AS col1, 72 + - ( - 99 )
----
83
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT 96 + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT 96 + - COUNT ( * )
----
95

query I rowsort
SELECT 13 + 30 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8106
SELECT ALL COUNT( * ) + COUNT( * ) + - + 98 DIV 15 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL COUNT ( * ) + COUNT ( * ) + - + 98 / 15 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT NULLIF ( + + 74, + CASE + 97 WHEN - 38 * - 32 / + + 97 * - 67 + - COALESCE ( - COUNT( * ), - - CAST( - 18 AS SIGNED ) ) THEN - 72 END ) + + COUNT( * ) * + 48 + - + 69
----
53

skipif mysql # not compatible
query I rowsort label-8107
SELECT NULLIF ( + + 74, + CASE + 97 WHEN - 38 * - 32 / + + 97 * - 67 + - COALESCE ( - COUNT ( * ), - - CAST ( - 18 AS INTEGER ) ) THEN - 72 END ) + + COUNT ( * ) * + 48 + - + 69
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8108
SELECT 26 DIV - - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8108
SELECT 26 / - - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + MAX( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-8109
SELECT + MAX ( 94 )
----
94

query I rowsort
SELECT DISTINCT 95 - + 55
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL - CASE - MAX( + 28 ) WHEN - 54 THEN - 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL - CASE - MAX ( + 28 ) WHEN - 54 THEN - 37 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - MIN( + NULLIF ( 23, + 79 + + 14 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-8112
SELECT - MIN ( + NULLIF ( 23, + 79 + + 14 ) )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT + 43 DIV - 60 col1
----
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT + 43 / - 60 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT 17 * + 93 + + CASE - SUM( DISTINCT 52 ) WHEN 10 * - COUNT( * ) + + 11 + - 84 THEN NULL ELSE 52 END AS col1
----
1633

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT 17 * + 93 + + CASE - SUM ( DISTINCT 52 ) WHEN 10 * - COUNT ( * ) + + 11 + - 84 THEN NULL ELSE 52 END AS col1
----
1633

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT + + 65 * 5 + 53 DIV - - 81
----
325

skipif mysql # not compatible
query I rowsort label-8115
SELECT + + 65 * 5 + 53 / - - 81
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT ( 33 ) * + COUNT( * ) + - 47
----
-14

skipif mysql # not compatible
query I rowsort label-8116
SELECT ( 33 ) * + COUNT ( * ) + - 47
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT 31 + - COUNT( DISTINCT COALESCE ( + + 16, - 80 ) )
----
30

skipif mysql # not compatible
query I rowsort label-8117
SELECT 31 + - COUNT ( DISTINCT COALESCE ( + + 16, - 80 ) )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT CAST( 16 AS SIGNED ) + 24 * 12 + 12 AS col2
----
316

skipif mysql # not compatible
query I rowsort label-8118
SELECT CAST ( 16 AS INTEGER ) + 24 * 12 + 12 AS col2
----
316

query I rowsort
SELECT 4 - + + 40 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT 7 * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8120
SELECT 7 * + COUNT ( * )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8121
SELECT CASE - - ( + - 89 ) WHEN + MAX( + + 28 ) * 12 * - 90 - + + 37 + - + CAST( NULL AS SIGNED ) + + - 13 + + 82 * - - 24 * MIN( DISTINCT - - 70 ) THEN NULL ELSE - - 20 * 73 END * - 23
----
-33580

skipif mysql # not compatible
query I rowsort label-8121
SELECT CASE - - ( + - 89 ) WHEN + MAX ( + + 28 ) * 12 * - 90 - + + 37 + - + CAST ( NULL AS INTEGER ) + + - 13 + + 82 * - - 24 * MIN ( DISTINCT - - 70 ) THEN NULL ELSE - - 20 * 73 END * - 23
----
-33580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8122
SELECT ALL COUNT( * ) AS col2, - 6 DIV 80
----
1
0

skipif mysql # not compatible
query II rowsort label-8122
SELECT ALL COUNT ( * ) AS col2, - 6 / 80
----
1
0

query I rowsort
SELECT 4 + + ( + 24 ) * + + 35 * + 97
----
81484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8124
SELECT ALL + CAST( NULL AS SIGNED ) * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + CAST ( NULL AS INTEGER ) * + 44
----
NULL

query I rowsort
SELECT 13 + + 97 - + - 20 + 54 AS col1
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8126
SELECT 23 DIV + SUM( 91 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT 23 / + SUM ( 91 ) col0
----
0

query I rowsort
SELECT 94 * + + 2 AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL + COUNT( * ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + COUNT ( * ) * + 55
----
55

query I rowsort
SELECT 39 + - - 58
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT 13 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-8130
SELECT 13 / - 58
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT ALL - CAST( NULL AS SIGNED ) + 25 - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL - CAST ( NULL AS INTEGER ) + 25 - - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT SUM( DISTINCT 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT SUM ( DISTINCT 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT - + COUNT( * ) DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-8133
SELECT - + COUNT ( * ) / - + 95
----
0

query I rowsort
SELECT ALL 37 * - 41 AS col1
----
-1517

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - - 61 * - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8135
SELECT - - 61 * - COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT ALL - - CASE + 81 WHEN 11 THEN + ( - + 81 ) WHEN - ( 87 ) THEN - 86 ELSE NULL END + - 8 * - 16 + + COALESCE ( - 89, - 5 ) / - - 94 / 69
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8137
SELECT - - COUNT( * ), 32 AS col0, MAX( - NULLIF ( - 8, - 4 ) ) AS col2
----
1
32
8

skipif mysql # not compatible
query III rowsort label-8137
SELECT - - COUNT ( * ), 32 AS col0, MAX ( - NULLIF ( - 8, - 4 ) ) AS col2
----
1
32
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT - COUNT( * ) AS col2, - 21 AS col1
----
-1
-21

skipif mysql # not compatible
query II rowsort label-8138
SELECT - COUNT ( * ) AS col2, - 21 AS col1
----
-1
-21

query I rowsort
SELECT + 47 * + + 63 AS col2
----
2961

onlyif mysql # aggregate syntax: 
query II rowsort label-8140
SELECT 73, - COUNT( * ) AS col2
----
73
-1

skipif mysql # not compatible
query II rowsort label-8140
SELECT 73, - COUNT ( * ) AS col2
----
73
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT - 17, + COUNT( * ) * + - COALESCE ( ( 51 ), - COALESCE ( + ( - ( + 74 ) ), - 1 ) ) * + 73 * 8 + + 19 AS col1
----
-17
-29765

skipif mysql # not compatible
query II rowsort label-8141
SELECT - 17, + COUNT ( * ) * + - COALESCE ( ( 51 ), - COALESCE ( + ( - ( + 74 ) ), - 1 ) ) * + 73 * 8 + + 19 AS col1
----
-17
-29765

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT DISTINCT + + COUNT( * ) * - 54 * + 66 AS col0
----
-3564

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT + + COUNT ( * ) * - 54 * + 66 AS col0
----
-3564

query I rowsort
SELECT ALL + ( - 73 )
----
-73

query I rowsort
SELECT ALL + + NULLIF ( + + 61, 42 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-8145
SELECT + - 34 - + 23 col1, + 64 + - + ( - - 6 ) + + - NULLIF ( 38, + - COALESCE ( - 17, 63 * 6 * - 71 / - 35 * - - 7 + ( - 53 ) + - - 10 * - 2 ) ) + - COUNT( * ) * + COUNT( * ) * - 28 AS col1
----
-57
48

skipif mysql # not compatible
query II rowsort label-8145
SELECT + - 34 - + 23 col1, + 64 + - + ( - - 6 ) + + - NULLIF ( 38, + - COALESCE ( - 17, 63 * 6 * - 71 / - 35 * - - 7 + ( - 53 ) + - - 10 * - 2 ) ) + - COUNT ( * ) * + COUNT ( * ) * - 28 AS col1
----
-57
48

query I rowsort
SELECT ALL + 29 * - 11
----
-319

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8147
SELECT + 81 / + CAST( NULL AS DECIMAL ) + - COUNT( + + ( - - 44 ) ) * - 81 + - COUNT( DISTINCT + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT + 81 / + CAST ( NULL AS REAL ) + - COUNT ( + + ( - - 44 ) ) * - 81 + - COUNT ( DISTINCT + 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT + 50 * - - 6 * + - 19 * + NULLIF ( 11, - COUNT( * ) )
----
-62700

skipif mysql # not compatible
query I rowsort label-8148
SELECT + 50 * - - 6 * + - 19 * + NULLIF ( 11, - COUNT ( * ) )
----
-62700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8149
SELECT + + 52 + + SUM( + 95 ) + + ( - COUNT( * ) ) DIV - - 81 * + 66 + 21 * + 89 AS col1
----
2016

skipif mysql # not compatible
query I rowsort label-8149
SELECT + + 52 + + SUM ( + 95 ) + + ( - COUNT ( * ) ) / - - 81 * + 66 + 21 * + 89 AS col1
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8150
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT ALL + + 33 AS col1, + NULLIF ( + 71, + COUNT( * ) ) col2
----
33
71

skipif mysql # not compatible
query II rowsort label-8151
SELECT ALL + + 33 AS col1, + NULLIF ( + 71, + COUNT ( * ) ) col2
----
33
71

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8152
SELECT + CAST( NULL AS DECIMAL ) * + 94 AS col1, - COALESCE ( 65, 11 * + + 94, + 91 ) * - - 7
----
NULL
-455

skipif mysql # not compatible
query II rowsort label-8152
SELECT + CAST ( NULL AS REAL ) * + 94 AS col1, - COALESCE ( 65, 11 * + + 94, + 91 ) * - - 7
----
NULL
-455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8153
SELECT + 22 + - 86 * 14 + + MAX( DISTINCT - COALESCE ( - - CAST( NULL AS SIGNED ), + 13 * - 4, - 24 ) )
----
-1130

skipif mysql # not compatible
query I rowsort label-8153
SELECT + 22 + - 86 * 14 + + MAX ( DISTINCT - COALESCE ( - - CAST ( NULL AS INTEGER ), + 13 * - 4, - 24 ) )
----
-1130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8154
SELECT ALL NULLIF ( + - 59, + COUNT( * ) ) * + 88 * 9 DIV + + 72 AS col1
----
-649

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL NULLIF ( + - 59, + COUNT ( * ) ) * + 88 * 9 / + + 72 AS col1
----
-649

onlyif mysql # DIV for integer division: 
query II rowsort label-8155
SELECT DISTINCT 40 DIV + 97 * + 99, + 87 * + + COALESCE ( - 52, 38 ) AS col0
----
0
-4524

skipif mysql # not compatible
query II rowsort label-8155
SELECT DISTINCT 40 / + 97 * + 99, + 87 * + + COALESCE ( - 52, 38 ) AS col0
----
0
-4524

query I rowsort
SELECT ALL 75 * - 3 AS col0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT 65 * - + NULLIF ( 41, + - 86 ) * 83 + - COALESCE ( ( - NULLIF ( + + COUNT( * ), - 20 + 59 * NULLIF ( + - ( 76 ), + 14 ) + + - COUNT( * ) ) ), - + 20 ) - + 69
----
-221263

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT 65 * - + NULLIF ( 41, + - 86 ) * 83 + - COALESCE ( ( - NULLIF ( + + COUNT ( * ), - 20 + 59 * NULLIF ( + - ( 76 ), + 14 ) + + - COUNT ( * ) ) ), - + 20 ) - + 69
----
-221263

onlyif mysql # aggregate syntax: 
query II rowsort label-8158
SELECT ALL + MIN( + 49 ), + 52 AS col2
----
49
52

skipif mysql # not compatible
query II rowsort label-8158
SELECT ALL + MIN ( + 49 ), + 52 AS col2
----
49
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8159
SELECT ALL COUNT( * ) * - - COUNT( * ) + - 16 + + - 71 DIV 72 * - + 32 * 72 + + 72 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL COUNT ( * ) * - - COUNT ( * ) + - 16 + + - 71 / 72 * - + 32 * 72 + + 72 AS col0
----
57

query I rowsort
SELECT + CASE + + 37 WHEN - - ( + 76 ) THEN - 26 END - 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8161
SELECT SUM( + 88 ) AS col2, - 64
----
88
-64

skipif mysql # not compatible
query II rowsort label-8161
SELECT SUM ( + 88 ) AS col2, - 64
----
88
-64

query I rowsort
SELECT COALESCE ( + 44, 68 ) * + 56 - + 34 + + 90 + 37 + + ( 87 ) * - 95 AS col1
----
-5708

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + 27 * + CASE + + 34 WHEN - 87 THEN NULL WHEN + + COUNT( * ) * 97 + + 5 THEN ( - - 26 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT + 27 * + CASE + + 34 WHEN - 87 THEN NULL WHEN + + COUNT ( * ) * 97 + + 5 THEN ( - - 26 ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT - 32 * 68 AS col2
----
-2176

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT MAX( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8165
SELECT MAX ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL - 45 + 92 * - - COUNT( * ) + - 80 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL - 45 + 92 * - - COUNT ( * ) + - 80 AS col1
----
-33

query II rowsort
SELECT - ( - + 80 ), 47 AS col0
----
80
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + 96 - - MIN( - 22 ) + + 9 col0
----
83

skipif mysql # not compatible
query I rowsort label-8168
SELECT + 96 - - MIN ( - 22 ) + + 9 col0
----
83

query I rowsort
SELECT ALL + 72 * 29 col0
----
2088

query I rowsort
SELECT DISTINCT ( + 74 ) + + + 90 + + 47 AS col0
----
211

query I rowsort
SELECT ALL + 54 * - 72 AS col2
----
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT ALL + ( 40 ) - + 12 + 11 * CASE - 51 WHEN 78 + + + 77 THEN NULL WHEN - 21 + - 14 THEN NULL ELSE 25 + - CAST( + 44 AS SIGNED ) END AS col0
----
-181

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + ( 40 ) - + 12 + 11 * CASE - 51 WHEN 78 + + + 77 THEN NULL WHEN - 21 + - 14 THEN NULL ELSE 25 + - CAST ( + 44 AS INTEGER ) END AS col0
----
-181

query I rowsort
SELECT - + 99 - - - 52 * 17
----
-983

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8174
SELECT ALL + CAST( NULL AS DECIMAL ) * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + CAST ( NULL AS REAL ) * 63
----
NULL

query I rowsort
SELECT - 40 * + 92
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL + COUNT( * ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + COUNT ( * ) * 75
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8177
SELECT DISTINCT + MIN( DISTINCT - 69 ), - 37 AS col1
----
-69
-37

skipif mysql # not compatible
query II rowsort label-8177
SELECT DISTINCT + MIN ( DISTINCT - 69 ), - 37 AS col1
----
-69
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT - SUM( DISTINCT - 98 ) + - + 19 * + - 31 AS col0
----
687

skipif mysql # not compatible
query I rowsort label-8178
SELECT - SUM ( DISTINCT - 98 ) + - + 19 * + - 31 AS col0
----
687

onlyif mysql # DIV for integer division: 
query II rowsort label-8179
SELECT ALL - - 50 DIV - 38 - - 30 AS col2, - 61 - 6 + + 14 * 28
----
29
325

skipif mysql # not compatible
query II rowsort label-8179
SELECT ALL - - 50 / - 38 - - 30 AS col2, - 61 - 6 + + 14 * 28
----
29
325

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8180
SELECT - 11 + + - 11 + + 13 DIV + COUNT( * ) + 50, 99 AS col1
----
41
99

skipif mysql # not compatible
query II rowsort label-8180
SELECT - 11 + + - 11 + + 13 / + COUNT ( * ) + 50, 99 AS col1
----
41
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT ALL - + 83 DIV + 18
----
-4

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL - + 83 / + 18
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8182
SELECT - + 97 DIV + - COUNT( * ) + + 2 * + 58 * 20 - - - SUM( + 61 ) * 45 * 48 AS col2
----
-129343

skipif mysql # not compatible
query I rowsort label-8182
SELECT - + 97 / + - COUNT ( * ) + + 2 * + 58 * 20 - - - SUM ( + 61 ) * 45 * 48 AS col2
----
-129343

query I rowsort
SELECT - ( + 71 )
----
-71

query I rowsort
SELECT - + 11 * - CASE 38 WHEN + 23 / + + 82 THEN - - 71 * - 42 ELSE - 40 + + 52 END
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8185
SELECT + COALESCE ( - 10, - + CASE + 75 WHEN + - 30 THEN COUNT( * ) END, 85 * CAST( - - 48 AS SIGNED ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-8185
SELECT + COALESCE ( - 10, - + CASE + 75 WHEN + - 30 THEN COUNT ( * ) END, 85 * CAST ( - - 48 AS INTEGER ) ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT ALL 57 / + CAST( NULL AS SIGNED ) * ( - - 61 ) + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL 57 / + CAST ( NULL AS INTEGER ) * ( - - 61 ) + 61 AS col2
----
NULL

query I rowsort
SELECT ALL + 67 * + 92
----
6164

query II rowsort
SELECT ALL + 48 * 50 * - 15 AS col0, - COALESCE ( + 93, + 6 )
----
-36000
-93

query I rowsort
SELECT + COALESCE ( 67, + - 26 - - 42, 85 ) AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8190
SELECT ALL + 42 DIV 4 + + ( + 23 ) DIV - COALESCE ( - 55, + 66 + + + 76 + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL + 42 / 4 + + ( + 23 ) / - COALESCE ( - 55, + 66 + + + 76 + COUNT ( * ) )
----
10

query I rowsort
SELECT + 87 + + 4 AS col2
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8192
SELECT ALL ( + COUNT( * ) ) DIV + 12 * - 49 + - ( + 71 ) + - 88 * 64 AS col0, + 77 AS col0, COUNT( * ) * - 97 * 95
----
-5703
77
-9215

skipif mysql # not compatible
query III rowsort label-8192
SELECT ALL ( + COUNT ( * ) ) / + 12 * - 49 + - ( + 71 ) + - 88 * 64 AS col0, + 77 AS col0, COUNT ( * ) * - 97 * 95
----
-5703
77
-9215

query I rowsort
SELECT + 63 * + 20
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8194
SELECT - 74 + + + 99 * + 23 - - + CAST( - MAX( DISTINCT 95 ) AS SIGNED ), ( 85 ) AS col0
----
2108
85

skipif mysql # not compatible
query II rowsort label-8194
SELECT - 74 + + + 99 * + 23 - - + CAST ( - MAX ( DISTINCT 95 ) AS INTEGER ), ( 85 ) AS col0
----
2108
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ( COUNT( + 51 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8195
SELECT ( COUNT ( + 51 ) )
----
1

query I rowsort
SELECT ( - 1 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT ALL + 68, MAX( ( 41 ) ) AS col2
----
68
41

skipif mysql # not compatible
query II rowsort label-8197
SELECT ALL + 68, MAX ( ( 41 ) ) AS col2
----
68
41

query I rowsort
SELECT DISTINCT + ( - 14 ) AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8199
SELECT ALL - CASE - 54 WHEN + NULLIF ( 23, - - 15 * 53 * - COUNT( * ) + - - 30 ) - + 61 THEN NULL ELSE + CAST( + 91 AS SIGNED ) END DIV + 88 - - 21
----
20

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - CASE - 54 WHEN + NULLIF ( 23, - - 15 * 53 * - COUNT ( * ) + - - 30 ) - + 61 THEN NULL ELSE + CAST ( + 91 AS INTEGER ) END / + 88 - - 21
----
20

query I rowsort
SELECT DISTINCT 8 * + 7 AS col2
----
56

query II rowsort
SELECT ( + - 94 ) + + 67 + - + 56 AS col1, - 38 - 91 - - 72
----
-83
-57

query I rowsort
SELECT ALL ( 62 ) - 46
----
16

query I rowsort
SELECT 48 + + ( + CASE - - 80 WHEN + 94 * - - ( 48 ) THEN - 44 / - + 49 + - 40 + + 93 + - 87 * - - 3 WHEN - 24 * + + NULLIF ( + 98, - 62 ) THEN - - 51 + + - 37 / - 56 END ) * 61 / 32 + + 15 + 15 + - 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT 19 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-8204
SELECT 19 / - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT SUM( DISTINCT - 3 ) * + - MAX( - 50 ) * 61
----
-9150

skipif mysql # not compatible
query I rowsort label-8205
SELECT SUM ( DISTINCT - 3 ) * + - MAX ( - 50 ) * 61
----
-9150

query I rowsort
SELECT - COALESCE ( - + NULLIF ( + 30, + + ( 47 ) - + - 99 + + - ( - 66 ) ), + 63 ) + + 25
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT - - SUM( ALL 38 )
----
38

skipif mysql # not compatible
query I rowsort label-8207
SELECT - - SUM ( ALL 38 )
----
38

query I rowsort
SELECT 81 * + - 87 AS col1
----
-7047

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL MAX( 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL MAX ( 69 ) AS col1
----
69

query I rowsort
SELECT DISTINCT ( + + 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT + 49 - - + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-8211
SELECT + 49 - - + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT - - CASE - - ( + 72 ) WHEN 93 + + 46 THEN - COALESCE ( - COUNT( * ), + 48 + + + 81 ) WHEN - ( - 77 ) - - 7 + + 5 * - + CASE + 71 WHEN CASE - COUNT( * ) WHEN + + COALESCE ( + CASE 57 WHEN 57 - 50 * + ( + 94 ) THEN NULL ELSE + COUNT( 44 ) - - 95 END, AVG ( + 84 ) * 21 ) THEN NULLIF ( + MAX( 78 ), 25 - 94 ) END THEN 76 END * COUNT( * ) THEN - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT - - CASE - - ( + 72 ) WHEN 93 + + 46 THEN - COALESCE ( - COUNT ( * ), + 48 + + + 81 ) WHEN - ( - 77 ) - - 7 + + 5 * - + CASE + 71 WHEN CASE - COUNT ( * ) WHEN + + COALESCE ( + CASE 57 WHEN 57 - 50 * + ( + 94 ) THEN NULL ELSE + COUNT ( 44 ) - - 95 END, AVG ( + 84 ) * 21 ) THEN NULLIF ( + MAX ( 78 ), 25 - 94 ) END THEN 76 END * COUNT ( * ) THEN - 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8213
SELECT - - 37 AS col2, + COUNT( * ) AS col0
----
37
1

skipif mysql # not compatible
query II rowsort label-8213
SELECT - - 37 AS col2, + COUNT ( * ) AS col0
----
37
1

query I rowsort
SELECT - 71 * 51 * + - NULLIF ( 96, - + 72 ) * 81 AS col1
----
28156896

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT 27 + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8215
SELECT 27 + COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8216
SELECT - 75, - COUNT( * ) * - 95 + - 2 AS col0
----
-75
93

skipif mysql # not compatible
query II rowsort label-8216
SELECT - 75, - COUNT ( * ) * - 95 + - 2 AS col0
----
-75
93

query I rowsort
SELECT ALL ( - - 74 ) + - 56
----
18

query II rowsort
SELECT + + 75 AS col2, 46 AS col0
----
75
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8219
SELECT DISTINCT 72 + + 94 + 99 + - 54 + 6 DIV + + 73 * + COUNT( * ) * - - 62 * 23
----
211

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT 72 + + 94 + 99 + - 54 + 6 / + + 73 * + COUNT ( * ) * - - 62 * 23
----
211

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8220
SELECT ALL - CAST( - 46 AS SIGNED ) AS col2, - 3 AS col0
----
46
-3

skipif mysql # not compatible
query II rowsort label-8220
SELECT ALL - CAST ( - 46 AS INTEGER ) AS col2, - 3 AS col0
----
46
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT - ( 11 ) DIV + 88 * 25 + 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8221
SELECT - ( 11 ) / + 88 * 25 + 60 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL + COUNT( * ) + + + 95
----
96

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL + COUNT ( * ) + + + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT DISTINCT - ( COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT - ( COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT 84 * - - 61 * 53 col2
----
271572

query I rowsort
SELECT 94 * + 24
----
2256

query I rowsort
SELECT 44 * 5 + - 51 AS col2
----
169

query I rowsort
SELECT DISTINCT - ( 61 ) + 90 + + - 46
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL + COUNT( * ) + - - NULLIF ( - 27, - 64 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + COUNT ( * ) + - - NULLIF ( - 27, - 64 ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT 19 * CAST( NULL AS SIGNED ) * - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT 19 * CAST ( NULL AS INTEGER ) * - 70 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 32 * + + 38 * + + 12 AS col0
----
14592

query I rowsort
SELECT DISTINCT - 99 * 17
----
-1683

query I rowsort
SELECT ALL - ( 76 ) - + 58
----
-134

query I rowsort
SELECT DISTINCT - ( 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT 19 - - - CASE + COUNT( ALL 51 ) WHEN + - 21 * - 83 THEN + 19 ELSE NULL END * 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT 19 - - - CASE + COUNT ( ALL 51 ) WHEN + - 21 * - 83 THEN + 19 ELSE NULL END * 38 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT DISTINCT - CAST( 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - CAST ( 84 AS INTEGER )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL - MAX( DISTINCT + + CASE + - 74 WHEN + 36 THEN - 92 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL - MAX ( DISTINCT + + CASE + - 74 WHEN + 36 THEN - 92 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT 18 * - CAST( NULL AS SIGNED ) + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT 18 * - CAST ( NULL AS INTEGER ) + 3 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT DISTINCT 66 DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT 66 / 21
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT - 44 * - COUNT( + + 91 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8239
SELECT - 44 * - COUNT ( + + 91 ) AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8240
SELECT + 53 - - MIN( DISTINCT + CAST( 20 AS SIGNED ) ) + + 54 + + + 86 * + CASE COUNT( ALL + 32 ) WHEN - 16 * + 81 THEN + 10 WHEN + + 96 THEN 31 ELSE 58 * 10 + - 22 END + + 64 DIV + ( - 67 ) * - 36
----
48115

skipif mysql # not compatible
query I rowsort label-8240
SELECT + 53 - - MIN ( DISTINCT + CAST ( 20 AS INTEGER ) ) + + 54 + + + 86 * + CASE COUNT ( ALL + 32 ) WHEN - 16 * + 81 THEN + 10 WHEN + + 96 THEN 31 ELSE 58 * 10 + - 22 END + + 64 / + ( - 67 ) * - 36
----
48115

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT - MIN( + 10 ) * - - 85 AS col1
----
-850

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT - MIN ( + 10 ) * - - 85 AS col1
----
-850

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT DISTINCT - - 41 DIV 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT - - 41 / 91 AS col0
----
0

query I rowsort
SELECT ALL + ( - 83 ) AS col0
----
-83

query I rowsort
SELECT DISTINCT 59 * - 56 AS col2
----
-3304

query I rowsort
SELECT 75 + - 75 AS col0
----
0

query I rowsort
SELECT ALL 72 * + - 66 * + 23
----
-109296

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL - ( - - COUNT( * ) ) + 16 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL - ( - - COUNT ( * ) ) + 16 AS col0
----
15

query I rowsort
SELECT 64 - - 84
----
148

query I rowsort
SELECT - ( + 38 ) + - - 30 AS col2
----
-8

query I rowsort
SELECT ALL - 89 + - + 19 * 59 * - 52 AS col2
----
58203

query I rowsort
SELECT 21 * - 28
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL + ( + 1 ) + 69 * - COUNT( - 62 )
----
-68

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL + ( + 1 ) + 69 * - COUNT ( - 62 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT + CASE - + 52 WHEN - COUNT( * ) THEN - 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT + CASE - + 52 WHEN - COUNT ( * ) THEN - 36 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8254
SELECT ALL COUNT( * ) * 13 * 44 / + - 64 + + + 95 * CASE - SUM( - ( - 81 ) ) WHEN 65 * - 24 * - 82 / - + 65 THEN + 68 ELSE 42 END / + ( + CAST( NULL AS DECIMAL ) ) + + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL COUNT ( * ) * 13 * 44 / + - 64 + + + 95 * CASE - SUM ( - ( - 81 ) ) WHEN 65 * - 24 * - 82 / - + 65 THEN + 68 ELSE 42 END / + ( + CAST ( NULL AS REAL ) ) + + 31 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8255
SELECT MAX( ALL + 95 ) * - + 2 AS col1, COALESCE ( + 37, 85, 67 ) - + AVG ( + CAST( NULL AS SIGNED ) )
----
-190
NULL

skipif mysql # not compatible
query II rowsort label-8255
SELECT MAX ( ALL + 95 ) * - + 2 AS col1, COALESCE ( + 37, 85, 67 ) - + AVG ( + CAST ( NULL AS INTEGER ) )
----
-190
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT NULLIF ( + 26, COUNT( * ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8256
SELECT NULLIF ( + 26, COUNT ( * ) ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL 45 * - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL 45 * - COUNT ( * )
----
-45

query I rowsort
SELECT COALESCE ( - + 8, - 41, - - 62 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - 47 * 42 + - + MIN( - - 67 ) AS col2
----
-2041

skipif mysql # not compatible
query I rowsort label-8259
SELECT - 47 * 42 + - + MIN ( - - 67 ) AS col2
----
-2041

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL - COUNT( ALL + + 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL - COUNT ( ALL + + 2 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT MIN( - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-8261
SELECT MIN ( - 17 )
----
-17

query I rowsort
SELECT ALL 10 * + 91 AS col1
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT DISTINCT + 17 * + + COUNT( * ) - - 4 * + + COUNT( * ) * - COUNT( * ) col1
----
13

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT + 17 * + + COUNT ( * ) - - 4 * + + COUNT ( * ) * - COUNT ( * ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT + MAX( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + MAX ( - 96 )
----
-96

query I rowsort
SELECT ALL + 93 col1
----
93

query I rowsort
SELECT - 97 + 55 * - - 56 col2
----
2983

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL + SUM( DISTINCT COALESCE ( + 3, - 11 ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL + SUM ( DISTINCT COALESCE ( + 3, - 11 ) ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8268
SELECT - ( 28 ) * - 81 * + COUNT( DISTINCT - + 94 ) + + 49 + - 6 DIV + - NULLIF ( + 26, - + 37 + + 28 ) * - 9
----
2317

skipif mysql # not compatible
query I rowsort label-8268
SELECT - ( 28 ) * - 81 * + COUNT ( DISTINCT - + 94 ) + + 49 + - 6 / + - NULLIF ( + 26, - + 37 + + 28 ) * - 9
----
2317

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL 27 * + COUNT( * ) - + + 52
----
-25

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL 27 * + COUNT ( * ) - + + 52
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT + COUNT( + - 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT + COUNT ( + - 75 ) AS col0
----
1

query I rowsort
SELECT + 61 + - 19 + + 93
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8272
SELECT ALL + COUNT( * ) DIV 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + COUNT ( * ) / 8 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT - COALESCE ( 48, + ( - 62 ) ) - + 55 / + - CASE - ( ( - - 63 ) ) WHEN - 59 THEN - 18 * - - CASE - 44 WHEN 13 THEN NULL ELSE - 43 END + + + 61 * 67 + - 13 WHEN - 82 + CAST( NULL AS SIGNED ) THEN NULL WHEN 58 THEN + - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT - COALESCE ( 48, + ( - 62 ) ) - + 55 / + - CASE - ( ( - - 63 ) ) WHEN - 59 THEN - 18 * - - CASE - 44 WHEN 13 THEN NULL ELSE - 43 END + + + 61 * 67 + - 13 WHEN - 82 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 58 THEN + - 75 END
----
NULL

query I rowsort
SELECT - 2 * - + 44 AS col2
----
88

query I rowsort
SELECT 23 * 79 + - 7 AS col0
----
1810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8276
SELECT - 20 + - MAX( - + 61 ) * - 57 * 73 + + NULLIF ( - - 97, SUM( DISTINCT - 63 ) * - COUNT( * ) + + CAST( + 1 AS SIGNED ) + - + 22 * + - 74 ) * - + COUNT( * ) + - ( + - 97 ) AS col1
----
-253841

skipif mysql # not compatible
query I rowsort label-8276
SELECT - 20 + - MAX ( - + 61 ) * - 57 * 73 + + NULLIF ( - - 97, SUM ( DISTINCT - 63 ) * - COUNT ( * ) + + CAST ( + 1 AS INTEGER ) + - + 22 * + - 74 ) * - + COUNT ( * ) + - ( + - 97 ) AS col1
----
-253841

query I rowsort
SELECT ALL - 50 * - + 88 AS col1
----
4400

query I rowsort
SELECT - 31 * 67 col1
----
-2077

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL + CASE - 9 WHEN + - 52 THEN 89 + - - COUNT( * ) + AVG ( - + 48 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL + CASE - 9 WHEN + - 52 THEN 89 + - - COUNT ( * ) + AVG ( - + 48 ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 56 * - 18 AS col1
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8281
SELECT - - MIN( DISTINCT 21 ) + - + COUNT( - ( CAST( 34 AS SIGNED ) ) )
----
20

skipif mysql # not compatible
query I rowsort label-8281
SELECT - - MIN ( DISTINCT 21 ) + - + COUNT ( - ( CAST ( 34 AS INTEGER ) ) )
----
20

query I rowsort
SELECT - 64 + + + 85 + 30 * + + 51
----
1551

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT DISTINCT + 12 * + + COUNT( DISTINCT 95 ) + 51 * - 27 + - + 19 AS col2
----
-1384

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT + 12 * + + COUNT ( DISTINCT 95 ) + 51 * - 27 + - + 19 AS col2
----
-1384

query I rowsort
SELECT ALL + 96 + + 60 + - 25 + - 17 * + - 52
----
1015

query I rowsort
SELECT ALL - - 76 + + 86 + + 91
----
253

query I rowsort
SELECT - 44 * 27 + + - 21 + 69
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL + 29 + - COUNT( * ) col1
----
28

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + 29 + - COUNT ( * ) col1
----
28

query I rowsort
SELECT DISTINCT + 2 + - 98
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8289
SELECT ALL + 80 + 55 - COALESCE ( 22, - 46 + + + ( - - 34 ) * + 59 + - ( MIN( + 44 ) ) - + COUNT( * ), + ( 45 ) ) + - + 92 DIV + + 70
----
112

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL + 80 + 55 - COALESCE ( 22, - 46 + + + ( - - 34 ) * + 59 + - ( MIN ( + 44 ) ) - + COUNT ( * ), + ( 45 ) ) + - + 92 / + + 70
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-8290
SELECT COUNT( * ) AS col2, - 75
----
1
-75

skipif mysql # not compatible
query II rowsort label-8290
SELECT COUNT ( * ) AS col2, - 75
----
1
-75

query I rowsort
SELECT - 47 - 95
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + 16 * - 15 + + + NULLIF ( + - 27, - - 79 ) * 62 + COUNT( DISTINCT 57 ) + 30 AS col2
----
-1883

skipif mysql # not compatible
query I rowsort label-8292
SELECT + 16 * - 15 + + + NULLIF ( + - 27, - - 79 ) * 62 + COUNT ( DISTINCT 57 ) + 30 AS col2
----
-1883

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT + 34 + + MIN( + 41 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8293
SELECT + 34 + + MIN ( + 41 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT 69 * + + COUNT( * ) * + - 87
----
-6003

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT 69 * + + COUNT ( * ) * + - 87
----
-6003

query I rowsort
SELECT + 80 * - 5
----
-400

onlyif mysql # aggregate syntax: 
query II rowsort label-8296
SELECT ALL + 93 AS col0, + CASE + 22 WHEN 45 THEN 63 WHEN + COALESCE ( - 99, COUNT( * ) ) THEN NULL ELSE NULL END col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-8296
SELECT ALL + 93 AS col0, + CASE + 22 WHEN 45 THEN 63 WHEN + COALESCE ( - 99, COUNT ( * ) ) THEN NULL ELSE NULL END col0
----
93
NULL

query II rowsort
SELECT ALL + 68 AS col1, 0 + + 94
----
68
94

query I rowsort
SELECT + 44 * 34 * - 88 AS col1
----
-131648

onlyif mysql # aggregate syntax: 
query II rowsort label-8299
SELECT + CASE + + ( + ( 36 ) ) WHEN + 79 / COUNT( * ) THEN + + 43 ELSE NULL END, 26 * + + 3 + - - 73 - + ( + 83 ) * 29 AS col0
----
NULL
-2256

skipif mysql # not compatible
query II rowsort label-8299
SELECT + CASE + + ( + ( 36 ) ) WHEN + 79 / COUNT ( * ) THEN + + 43 ELSE NULL END, 26 * + + 3 + - - 73 - + ( + 83 ) * 29 AS col0
----
NULL
-2256

query II rowsort
SELECT + 18 AS col1, 87
----
18
87

query I rowsort
SELECT + ( 9 )
----
9

query I rowsort
SELECT 18 * - - 37 + - 28 + 57 - + 68 + - 10
----
617

query I rowsort
SELECT DISTINCT ( - ( - - 12 ) ) * + 23 * + + 47
----
-12972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8304
SELECT ALL CAST( NULL AS DECIMAL ) * + 65 + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL CAST ( NULL AS REAL ) * + 65 + 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8305
SELECT DISTINCT - CAST( 10 AS SIGNED ) * - NULLIF ( 34, + 32 + - - 83 ) + + - 1 DIV + 8 AS col2
----
340

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT - CAST ( 10 AS INTEGER ) * - NULLIF ( 34, + 32 + - - 83 ) + + - 1 / + 8 AS col2
----
340

query I rowsort
SELECT ALL - 62 * - 64 + + 9
----
3977

query I rowsort
SELECT + - 19 - - + 17 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8308
SELECT + 20 AS col0, - COUNT( * ) DIV + - NULLIF ( - - MAX( DISTINCT - 10 ), + 56 * + 14 * 62 ) AS col2
----
20
0

skipif mysql # not compatible
query II rowsort label-8308
SELECT + 20 AS col0, - COUNT ( * ) / + - NULLIF ( - - MAX ( DISTINCT - 10 ), + 56 * + 14 * 62 ) AS col2
----
20
0

query I rowsort
SELECT - CASE - 43 WHEN - 1 THEN + - 47 + + + 94 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT - - 70 + - - COUNT( * ) - + 92 * - 52 col1
----
4855

skipif mysql # not compatible
query I rowsort label-8310
SELECT - - 70 + - - COUNT ( * ) - + 92 * - 52 col1
----
4855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8311
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * - 36 AS col1
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-8311
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 36 AS col1
----
NULL
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT 82 * + 49 + - NULLIF ( 79, - 94 ) + + COUNT( DISTINCT - 54 ) AS col1
----
3940

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT 82 * + 49 + - NULLIF ( 79, - 94 ) + + COUNT ( DISTINCT - 54 ) AS col1
----
3940

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT - 65 - MAX( + - 74 )
----
9

skipif mysql # not compatible
query I rowsort label-8313
SELECT - 65 - MAX ( + - 74 )
----
9

query I rowsort
SELECT - - 18 * + 38 * + 18
----
12312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8315
SELECT - - 68 + + CAST( - 57 AS SIGNED ) + + 24 * - + 37
----
-877

skipif mysql # not compatible
query I rowsort label-8315
SELECT - - 68 + + CAST ( - 57 AS INTEGER ) + + 24 * - + 37
----
-877

query I rowsort
SELECT + - 63 - NULLIF ( + - 47, 18 )
----
-16

query I rowsort
SELECT ALL NULLIF ( - 83, - 84 )
----
-83

query II rowsort
SELECT - 50 AS col1, ( + 28 ) + - - 27 AS col1
----
-50
55

query I rowsort
SELECT DISTINCT - 13 - + 69
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT 32 + + CAST( - + 0 AS SIGNED ) col1
----
32

skipif mysql # not compatible
query I rowsort label-8320
SELECT 32 + + CAST ( - + 0 AS INTEGER ) col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8321
SELECT DISTINCT - 40 DIV 83 * 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT - 40 / 83 * 24 AS col0
----
0

query I rowsort
SELECT ALL 54 col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8323
SELECT 13 DIV + 24 * + + 87
----
0

skipif mysql # not compatible
query I rowsort label-8323
SELECT 13 / + 24 * + + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8324
SELECT ALL - COALESCE ( - CAST( - 39 AS SIGNED ), - ( + MAX( + 63 ) ) ) * SUM( - 77 ) DIV MIN( DISTINCT CAST( - 17 AS SIGNED ) )
----
-176

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL - COALESCE ( - CAST ( - 39 AS INTEGER ), - ( + MAX ( + 63 ) ) ) * SUM ( - 77 ) / MIN ( DISTINCT CAST ( - 17 AS INTEGER ) )
----
-176

query I rowsort
SELECT 19 + + 53 * + 16 AS col2
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT - 94 * - - 91 * - 49 + 0 * - SUM( DISTINCT - + 45 ) + - CASE - 2 WHEN - + 22 / + ( + 4 ) + - 64 THEN NULL ELSE + COUNT( * ) * - 8 * + + 70 + - + 47 END * 21 AS col1
----
431893

skipif mysql # not compatible
query I rowsort label-8326
SELECT - 94 * - - 91 * - 49 + 0 * - SUM ( DISTINCT - + 45 ) + - CASE - 2 WHEN - + 22 / + ( + 4 ) + - 64 THEN NULL ELSE + COUNT ( * ) * - 8 * + + 70 + - + 47 END * 21 AS col1
----
431893

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8327
SELECT DISTINCT ( + 43 ) * + 98 * + CASE + + 36 WHEN + ( + CAST( NULL AS DECIMAL ) ) THEN COUNT( * ) - - 74 DIV - AVG ( + 8 ) * - + 85 * 53 WHEN - - 35 DIV + + 88 THEN + COUNT( * ) ELSE - 7 END
----
-29498

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT ( + 43 ) * + 98 * + CASE + + 36 WHEN + ( + CAST ( NULL AS REAL ) ) THEN COUNT ( * ) - - 74 / - AVG ( + 8 ) * - + 85 * 53 WHEN - - 35 / + + 88 THEN + COUNT ( * ) ELSE - 7 END
----
-29498

query I rowsort
SELECT 73 * + 34
----
2482

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL + ( 65 ) * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL + ( 65 ) * + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT COUNT( * ) * + NULLIF ( - + 21, + - 98 )
----
-21

skipif mysql # not compatible
query I rowsort label-8330
SELECT COUNT ( * ) * + NULLIF ( - + 21, + - 98 )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8331
SELECT ALL 2 + - 46 col0, - COUNT( * )
----
-44
-1

skipif mysql # not compatible
query II rowsort label-8331
SELECT ALL 2 + - 46 col0, - COUNT ( * )
----
-44
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8332
SELECT DISTINCT - CAST( + - 29 AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT - CAST ( + - 29 AS INTEGER ) AS col0
----
29

query I rowsort
SELECT 63 + + 45 AS col2
----
108

query I rowsort
SELECT ALL + 54 + + 98
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT CASE + 13 WHEN - 31 THEN NULL WHEN - - 18 - + - 35 + - 92 - - 42 + - SUM( ALL + 66 ) THEN - + 30 END + + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT CASE + 13 WHEN - 31 THEN NULL WHEN - - 18 - + - 35 + - 92 - - 42 + - SUM ( ALL + 66 ) THEN - + 30 END + + + 58
----
NULL

query I rowsort
SELECT - 67 * + 64 - 84
----
-4372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8337
SELECT + 99 + + - ( + - 33 ) + + + MAX( - 61 ) + - 91 + - - CAST( ( + - COUNT( * ) ) AS SIGNED ) * + 77 * + + 42
----
-3254

skipif mysql # not compatible
query I rowsort label-8337
SELECT + 99 + + - ( + - 33 ) + + + MAX ( - 61 ) + - 91 + - - CAST ( ( + - COUNT ( * ) ) AS INTEGER ) * + 77 * + + 42
----
-3254

onlyif mysql # aggregate syntax: 
query II rowsort label-8338
SELECT ALL 38 * + - 87, ( + + COUNT( * ) ) + 60 AS col1
----
-3306
61

skipif mysql # not compatible
query II rowsort label-8338
SELECT ALL 38 * + - 87, ( + + COUNT ( * ) ) + 60 AS col1
----
-3306
61

query I rowsort
SELECT ALL - NULLIF ( + 59, 36 * + COALESCE ( + 37, - 80 ) )
----
-59

query I rowsort
SELECT ALL - 13 + - + 8 + - 55
----
-76

query I rowsort
SELECT 7 * + ( ( - - 30 ) ) + - 68
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8342
SELECT ALL + 2 * - - COUNT( * ) DIV - 52 + + 82
----
82

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + 2 * - - COUNT ( * ) / - 52 + + 82
----
82

query I rowsort
SELECT ALL + 52 - + + 11
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8344
SELECT - CASE + 41 WHEN - 48 THEN NULL WHEN + - CAST( NULL AS SIGNED ) * - 42 / - - COUNT( * ) + + - 64 - - 47 + - 60 THEN + - 65 + 90 ELSE NULL END + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT - CASE + 41 WHEN - 48 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) * - 42 / - - COUNT ( * ) + + - 64 - - 47 + - 60 THEN + - 65 + 90 ELSE NULL END + 68 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8345
SELECT ALL - - ( + - 24 ) DIV + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL - - ( + - 24 ) / + 27 AS col0
----
0

query I rowsort
SELECT - 38 * + - 45
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT DISTINCT - SUM( + - NULLIF ( + 49, 67 ) ) * - MIN( + + 92 ) * - + 61 + - - 71
----
275059

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT - SUM ( + - NULLIF ( + 49, 67 ) ) * - MIN ( + + 92 ) * - + 61 + - - 71
----
275059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8348
SELECT 98 * - - CAST( NULL AS SIGNED ) AS col1, MIN( - 12 ) * + CASE - 88 WHEN - + 18 THEN + 77 * + 9 - 59 WHEN - 9 THEN NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8348
SELECT 98 * - - CAST ( NULL AS INTEGER ) AS col1, MIN ( - 12 ) * + CASE - 88 WHEN - + 18 THEN + 77 * + 9 - 59 WHEN - 9 THEN NULL END AS col1
----
NULL
NULL

query II rowsort
SELECT - 39, 84 AS col2
----
-39
84

query II rowsort
SELECT DISTINCT 46 AS col0, + 11
----
46
11

query I rowsort
SELECT DISTINCT + ( - 39 ) * 79
----
-3081

query II rowsort
SELECT 31 AS col0, + 54 * - 86
----
31
-4644

query I rowsort
SELECT 22 - + + 41
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT 58 * COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8354
SELECT 58 * COUNT ( * ) AS col1
----
58

query I rowsort
SELECT 28 * + 67
----
1876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8356
SELECT DISTINCT - 9 + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0, - 68
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-8356
SELECT DISTINCT - 9 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0, - 68
----
NULL
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT DISTINCT + 55 + - - 93 + ( + COUNT( - 68 ) ) * - + 70 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT + 55 + - - 93 + ( + COUNT ( - 68 ) ) * - + 70 AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8358
SELECT - 16, COUNT( * ) - + 23 * + - 78 * - - 0 + + MAX( ALL + 20 ) AS col2
----
-16
21

skipif mysql # not compatible
query II rowsort label-8358
SELECT - 16, COUNT ( * ) - + 23 * + - 78 * - - 0 + + MAX ( ALL + 20 ) AS col2
----
-16
21

query I rowsort
SELECT 54 * - 36
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT - 92 * + + COUNT( * ) + 90
----
-2

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT - 92 * + + COUNT ( * ) + 90
----
-2

query I rowsort
SELECT 67 - + 31 col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8362
SELECT ALL 55 * + COUNT( ALL - - 27 ) AS col2, - 68 * + 54 AS col1
----
55
-3672

skipif mysql # not compatible
query II rowsort label-8362
SELECT ALL 55 * + COUNT ( ALL - - 27 ) AS col2, - 68 * + 54 AS col1
----
55
-3672

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT 73 DIV - - 28
----
2

skipif mysql # not compatible
query I rowsort label-8363
SELECT 73 / - - 28
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8364
SELECT ALL - 92 + - - 31 * MAX( DISTINCT + 79 ) AS col1, - 12
----
2357
-12

skipif mysql # not compatible
query II rowsort label-8364
SELECT ALL - 92 + - - 31 * MAX ( DISTINCT + 79 ) AS col1, - 12
----
2357
-12

query I rowsort
SELECT 44 * + - 63 col0
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT COUNT( ALL + 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8366
SELECT COUNT ( ALL + 89 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 74 + - 99
----
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-8368
SELECT SUM( + 18 ) * 2 AS col0, 56 * CASE - 52 WHEN - COUNT( * ) THEN NULL ELSE + CASE 55 WHEN + - 87 THEN + 23 ELSE NULL END END * + 92 + - 56 + 12 * + 34 / - ( - + 70 ) AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-8368
SELECT SUM ( + 18 ) * 2 AS col0, 56 * CASE - 52 WHEN - COUNT ( * ) THEN NULL ELSE + CASE 55 WHEN + - 87 THEN + 23 ELSE NULL END END * + 92 + - 56 + 12 * + 34 / - ( - + 70 ) AS col1
----
36
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT ALL - + 57 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - + 57 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT 95 DIV - 21 + + 86 - + 52 * - 23 + - - 7 DIV 48 * - + 76
----
1278

skipif mysql # not compatible
query I rowsort label-8370
SELECT 95 / - 21 + + 86 - + 52 * - 23 + - - 7 / 48 * - + 76
----
1278

onlyif mysql # aggregate syntax: 
query II rowsort label-8371
SELECT COUNT( * ) AS col1, 3 * + 67 AS col2
----
1
201

skipif mysql # not compatible
query II rowsort label-8371
SELECT COUNT ( * ) AS col1, 3 * + 67 AS col2
----
1
201

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL + ( - + COUNT( * ) ) + + - 94 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + ( - + COUNT ( * ) ) + + - 94 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL - 17 + - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - 17 + - COUNT ( * ) AS col0
----
-18

query I rowsort
SELECT DISTINCT + - 27 * + + 30 AS col2
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL + COUNT( * ) + + 35 * + 52 * - - 60 - - - 53
----
109148

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + COUNT ( * ) + + 35 * + 52 * - - 60 - - - 53
----
109148

query I rowsort
SELECT + ( - 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL - - MIN( - + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL - - MIN ( - + 94 )
----
-94

query I rowsort
SELECT ALL - ( 98 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8380
SELECT + + 41 AS col0, COUNT( * ) AS col0
----
41
1

skipif mysql # not compatible
query II rowsort label-8380
SELECT + + 41 AS col0, COUNT ( * ) AS col0
----
41
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8381
SELECT 88 AS col0, - ( + COUNT( * ) )
----
88
-1

skipif mysql # not compatible
query II rowsort label-8381
SELECT 88 AS col0, - ( + COUNT ( * ) )
----
88
-1

query I rowsort
SELECT ALL 39 * + 5 * 14
----
2730

onlyif mysql # DIV for integer division: 
query I rowsort label-8383
SELECT + - 59 * - - 20 + - 70 + 84 * 76 DIV - + 46 AS col2
----
-1388

skipif mysql # not compatible
query I rowsort label-8383
SELECT + - 59 * - - 20 + - 70 + 84 * 76 / - + 46 AS col2
----
-1388

onlyif mysql # aggregate syntax: 
query II rowsort label-8384
SELECT + COUNT( * ) + - 7 * 2, 30 + - COUNT( * ) AS col1
----
-13
29

skipif mysql # not compatible
query II rowsort label-8384
SELECT + COUNT ( * ) + - 7 * 2, 30 + - COUNT ( * ) AS col1
----
-13
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8385
SELECT ALL - 40 * - ( - ( + 44 ) ) + - COALESCE ( - - 29, + - COUNT( * ) * + 22 * - 23 * COUNT( - 78 ) * - 77 DIV 63 + + - COUNT( DISTINCT + + NULLIF ( - 1, + 61 ) ) - + COUNT( * ) + 19 ) * - + 93 * - 66 col0
----
-179762

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL - 40 * - ( - ( + 44 ) ) + - COALESCE ( - - 29, + - COUNT ( * ) * + 22 * - 23 * COUNT ( - 78 ) * - 77 / 63 + + - COUNT ( DISTINCT + + NULLIF ( - 1, + 61 ) ) - + COUNT ( * ) + 19 ) * - + 93 * - 66 col0
----
-179762

query I rowsort
SELECT + - 35 * + - 56 AS col1
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL - 29 * - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - 29 * - COUNT ( * )
----
29

query I rowsort
SELECT + + 60 - + 68 * ( + - 57 ) col0
----
3936

query I rowsort
SELECT ALL + ( 23 ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT + 57 + + ( - - CAST( + 66 AS SIGNED ) ) + + 10 * - COUNT( * ) * + 73 AS col0
----
-607

skipif mysql # not compatible
query I rowsort label-8390
SELECT + 57 + + ( - - CAST ( + 66 AS INTEGER ) ) + + 10 * - COUNT ( * ) * + 73 AS col0
----
-607

query I rowsort
SELECT + 75 * - 39 * - 31 * 90
----
8160750

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT + COUNT( * ) + - 90 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8392
SELECT + COUNT ( * ) + - 90 AS col1
----
-89

query I rowsort
SELECT + 21 + 90
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8394
SELECT + 39 DIV - + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8394
SELECT + 39 / - + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
39

query I rowsort
SELECT + 98 + + ( 85 ) col2
----
183

query I rowsort
SELECT - 3 - - 97
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT + 15 * + + CAST( - + ( 69 ) AS SIGNED )
----
-1035

skipif mysql # not compatible
query I rowsort label-8397
SELECT + 15 * + + CAST ( - + ( 69 ) AS INTEGER )
----
-1035

query I rowsort
SELECT ALL + 68 * 50 * + 63
----
214200

query II rowsort
SELECT ALL - 5 + - 17 col2, 34
----
-22
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT 91 + + - 73 + + 9 * ( + 84 ) * 75 * 25 * SUM( DISTINCT + 55 ) + + - 55
----
77962463

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT 91 + + - 73 + + 9 * ( + 84 ) * 75 * 25 * SUM ( DISTINCT + 55 ) + + - 55
----
77962463

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT ALL CASE - + 64 WHEN + ( + 63 ) * 78 + - - 58 * 69 THEN NULL ELSE MAX( DISTINCT + 81 ) END AS col1, ( COUNT( * ) ) AS col1
----
81
1

skipif mysql # not compatible
query II rowsort label-8401
SELECT ALL CASE - + 64 WHEN + ( + 63 ) * 78 + - - 58 * 69 THEN NULL ELSE MAX ( DISTINCT + 81 ) END AS col1, ( COUNT ( * ) ) AS col1
----
81
1

query I rowsort
SELECT ALL + 60 + COALESCE ( + 99, + + 4, + 4 ) + - - 69
----
228

query I rowsort
SELECT ALL - 6 + + 88
----
82

query I rowsort
SELECT + 49 + - 11
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL + NULLIF ( MAX( ALL - - 90 ), - - COUNT( * ) + 33 )
----
90

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + NULLIF ( MAX ( ALL - - 90 ), - - COUNT ( * ) + 33 )
----
90

query I rowsort
SELECT + 47 * 42 + - - 0
----
1974

query I rowsort
SELECT - 90 * - 18 AS col0
----
1620

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT ALL - 13 * + NULLIF ( - 74, 32 ) - - 3 - 53 DIV - - 55 AS col1
----
965

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - 13 * + NULLIF ( - 74, 32 ) - - 3 - 53 / - - 55 AS col1
----
965

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT - + 66 + + COUNT( * ) col2, 15 * 80 * 86 AS col2
----
-65
103200

skipif mysql # not compatible
query II rowsort label-8409
SELECT - + 66 + + COUNT ( * ) col2, 15 * 80 * 86 AS col2
----
-65
103200

query I rowsort
SELECT - 17 + 41
----
24

query I rowsort
SELECT ALL + 84 * + 78 - - - 12 AS col0
----
6540

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT - + 55 * + + 67 + + COUNT( * )
----
-3684

skipif mysql # not compatible
query I rowsort label-8412
SELECT - + 55 * + + 67 + + COUNT ( * )
----
-3684

query I rowsort
SELECT DISTINCT + - 12 * + + 61 AS col0
----
-732

query I rowsort
SELECT + + 50 + + 11 col0
----
61

query I rowsort
SELECT - - 81 * + 21
----
1701

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8416
SELECT ALL + + CASE + - 94 WHEN + CAST( 97 AS DECIMAL ) THEN + 1 WHEN 20 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 74 * + + ( + 86 ) - - 86 END col0
----
-6278

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL + + CASE + - 94 WHEN + CAST ( 97 AS REAL ) THEN + 1 WHEN 20 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 74 * + + ( + 86 ) - - 86 END col0
----
-6278

onlyif mysql # DIV for integer division: 
query I rowsort label-8417
SELECT - + 64 DIV 63
----
-1

skipif mysql # not compatible
query I rowsort label-8417
SELECT - + 64 / 63
----
-1

query I rowsort
SELECT ALL - + 58 * 23 - + 46 AS col1
----
-1380

query I rowsort
SELECT + 47 + - 56
----
-9

query I rowsort
SELECT - NULLIF ( - 58, 86 + + 95 ) AS col1
----
58

query I rowsort
SELECT - 39 + 71
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT + 98 * - + COUNT( 57 ) AS col1, 93
----
-98
93

skipif mysql # not compatible
query II rowsort label-8422
SELECT + 98 * - + COUNT ( 57 ) AS col1, 93
----
-98
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT + COUNT( * ) + + - COALESCE ( - 62, + - 78, - - COALESCE ( MIN( - ( + 37 ) ), 68 ) ) - - 24 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8423
SELECT + COUNT ( * ) + + - COALESCE ( - 62, + - 78, - - COALESCE ( MIN ( - ( + 37 ) ), 68 ) ) - - 24 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8424
SELECT ALL 86 + 7 - CASE 93 WHEN + ( - CAST( 55 AS SIGNED ) ) * - CASE + COUNT( * ) WHEN + COUNT( * ) THEN + ( + 44 ) ELSE NULL END THEN 78 * 84 ELSE 61 END
----
32

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL 86 + 7 - CASE 93 WHEN + ( - CAST ( 55 AS INTEGER ) ) * - CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN + ( + 44 ) ELSE NULL END THEN 78 * 84 ELSE 61 END
----
32

query II rowsort
SELECT 72 AS col1, - 47
----
72
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT + MAX( 4 ) + - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8426
SELECT + MAX ( 4 ) + - COUNT ( * ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8427
SELECT DISTINCT ( 86 ) + 7, + CAST( COALESCE ( 49, 26, + 69, + 34 + - COUNT( * ) - - 58 * + MIN( ALL + 63 ) ) AS SIGNED ) col0
----
93
49

skipif mysql # not compatible
query II rowsort label-8427
SELECT DISTINCT ( 86 ) + 7, + CAST ( COALESCE ( 49, 26, + 69, + 34 + - COUNT ( * ) - - 58 * + MIN ( ALL + 63 ) ) AS INTEGER ) col0
----
93
49

query I rowsort
SELECT + 61 + + + 0 col0
----
61

query I rowsort
SELECT ALL 26 + - 91 + 95
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT - CAST( + + 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-8430
SELECT - CAST ( + + 40 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8431
SELECT + COUNT( * ) DIV + 14 * + + 75 * 53
----
0

skipif mysql # not compatible
query I rowsort label-8431
SELECT + COUNT ( * ) / + 14 * + + 75 * 53
----
0

query I rowsort
SELECT + 8 - + 65 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT DISTINCT 78 DIV 9 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT 78 / 9 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8434
SELECT ALL NULLIF ( + COUNT( * ), 95 ) AS col1, - 36
----
1
-36

skipif mysql # not compatible
query II rowsort label-8434
SELECT ALL NULLIF ( + COUNT ( * ), 95 ) AS col1, - 36
----
1
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT + + 40 * - COUNT( * ) + - 59
----
-99

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT + + 40 * - COUNT ( * ) + - 59
----
-99

query I rowsort
SELECT + ( + 15 ) col2
----
15

query I rowsort
SELECT 34 * + - ( - 0 ) - 2 + - 17 * 56
----
-954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT DISTINCT + - 60 * + CAST( NULL AS SIGNED ) / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT + - 60 * + CAST ( NULL AS INTEGER ) / 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT ALL + COALESCE ( - 82, - 0, - CAST( NULL AS SIGNED ) )
----
-82

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL + COALESCE ( - 82, - 0, - CAST ( NULL AS INTEGER ) )
----
-82

query I rowsort
SELECT - 42 * - - 74
----
-3108

query I rowsort
SELECT + ( - + COALESCE ( - + 49, + 34 ) )
----
49

query I rowsort
SELECT ALL - ( - + 89 )
----
89

query I rowsort
SELECT DISTINCT 60 * + + 48
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT + 9 * + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8444
SELECT + 9 * + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT DISTINCT - + CASE - SUM( + 40 ) WHEN + - ( + + 53 ) + + 8 THEN + ( + 67 ) * + 61 * + 0 / + + COUNT( 8 ) + + 66 - + 14 * - 19 WHEN - 79 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT - + CASE - SUM ( + 40 ) WHEN + - ( + + 53 ) + + 8 THEN + ( + 67 ) * + 61 * + 0 / + + COUNT ( 8 ) + + 66 - + 14 * - 19 WHEN - 79 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL - COUNT( * ) + - 21 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL - COUNT ( * ) + - 21 AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-8447
SELECT DISTINCT + + 43 DIV - - 84 + - 98 + - 91
----
-189

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT + + 43 / - - 84 + - 98 + - 91
----
-189

query I rowsort
SELECT - + 7 * - - 79 - + - 36 + + - 90
----
-607

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT + MIN( + 51 ) + + - 46 * 20
----
-869

skipif mysql # not compatible
query I rowsort label-8449
SELECT + MIN ( + 51 ) + + - 46 * 20
----
-869

query I rowsort
SELECT DISTINCT + 47 * - 12 + - 7
----
-571

query I rowsort
SELECT ALL - 88 + + 48
----
-40

query I rowsort
SELECT 58 - + + 50 col0
----
8

query I rowsort
SELECT 32 + - 74 * 3
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT CASE 61 WHEN 43 * + 81 THEN + 81 * - + 49 + + + COALESCE ( - 98, + + 40 ) END * CAST( + + 36 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT CASE 61 WHEN 43 * + 81 THEN + 81 * - + 49 + + + COALESCE ( - 98, + + 40 ) END * CAST ( + + 36 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 96 + + 18
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ALL - 5 + + - COUNT( * ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL - 5 + + - COUNT ( * ) col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8457
SELECT 34, 56 - - - CAST( - + 80 AS SIGNED ) + - 6 AS col2
----
34
130

skipif mysql # not compatible
query II rowsort label-8457
SELECT 34, 56 - - - CAST ( - + 80 AS INTEGER ) + - 6 AS col2
----
34
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL - CAST( NULL AS SIGNED ) * 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - CAST ( NULL AS INTEGER ) * 57 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT DISTINCT 3 + - + COALESCE ( - + 95, NULLIF ( 84, - COALESCE ( + - 42, - 4 ) ), + COUNT( * ) ) * - - 68 AS col1
----
6463

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT 3 + - + COALESCE ( - + 95, NULLIF ( 84, - COALESCE ( + - 42, - 4 ) ), + COUNT ( * ) ) * - - 68 AS col1
----
6463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT DISTINCT + 23 + - + 43 - + - 39 + + CAST( + - 31 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT + 23 + - + 43 - + - 39 + + CAST ( + - 31 AS INTEGER )
----
-12

query I rowsort
SELECT ALL 38 + - + 26 - + 38
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-8462
SELECT 67 + 61 - - 17 * - + 18, 51 DIV - 35 AS col1
----
-178
-1

skipif mysql # not compatible
query II rowsort label-8462
SELECT 67 + 61 - - 17 * - + 18, 51 / - 35 AS col1
----
-178
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT ALL + 5 + - - COALESCE ( - 53, + 4 ) * + 65 * COUNT( * )
----
-3440

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + 5 + - - COALESCE ( - 53, + 4 ) * + 65 * COUNT ( * )
----
-3440

query I rowsort
SELECT 76 + - 87
----
-11

query II rowsort
SELECT DISTINCT 63, 7 + - - 41 AS col1
----
63
48

query I rowsort
SELECT 57 + - - 67 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT 66 + 20 DIV 31 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8467
SELECT 66 + 20 / 31 AS col2
----
66

query I rowsort
SELECT 2 - - - 17 * 71 AS col2
----
-1205

query II rowsort
SELECT - 24 AS col0, 66 col0
----
-24
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL MIN( - 83 ) - - + 85
----
2

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL MIN ( - 83 ) - - + 85
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8471
SELECT CASE - - AVG ( - 30 ) WHEN 97 THEN - - AVG ( DISTINCT + + 22 ) WHEN CASE 25 WHEN - COUNT( DISTINCT - 81 ) * + 1 + - + 62 + + 94 + - 67 + + 67 + COUNT( - CAST( NULL AS SIGNED ) ) * + SUM( 86 ) * - 65 + - - 3 * 89 * + 29 THEN - COUNT( * ) - + 74 END THEN + 77 - + - COUNT( * ) END * + + 36 * - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT CASE - - AVG ( - 30 ) WHEN 97 THEN - - AVG ( DISTINCT + + 22 ) WHEN CASE 25 WHEN - COUNT ( DISTINCT - 81 ) * + 1 + - + 62 + + 94 + - 67 + + 67 + COUNT ( - CAST ( NULL AS INTEGER ) ) * + SUM ( 86 ) * - 65 + - - 3 * 89 * + 29 THEN - COUNT ( * ) - + 74 END THEN + 77 - + - COUNT ( * ) END * + + 36 * - 25 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 61 - 24 * 64
----
-1475

onlyif mysql # aggregate syntax: 
query II rowsort label-8473
SELECT MAX( DISTINCT + COALESCE ( ( + - 26 ), + 41 ) ) * - + 18 AS col2, - 58 AS col0
----
468
-58

skipif mysql # not compatible
query II rowsort label-8473
SELECT MAX ( DISTINCT + COALESCE ( ( + - 26 ), + 41 ) ) * - + 18 AS col2, - 58 AS col0
----
468
-58

query I rowsort
SELECT + 99 * + - 4 AS col1
----
-396

query I rowsort
SELECT + 39 + 62 AS col1
----
101

query II rowsort
SELECT ALL - + 83 AS col1, - 62
----
-83
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-8477
SELECT + 41 DIV + 26 - 32 col0
----
-31

skipif mysql # not compatible
query I rowsort label-8477
SELECT + 41 / + 26 - 32 col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8478
SELECT NULLIF ( + 89, + 56 ) DIV + 68, - 90 * - 81 - - 51 + + COUNT( * ) * + - 37 + 95 * - 60 * ( + COUNT( * ) ) * 13 col2
----
1
-66796

skipif mysql # not compatible
query II rowsort label-8478
SELECT NULLIF ( + 89, + 56 ) / + 68, - 90 * - 81 - - 51 + + COUNT ( * ) * + - 37 + 95 * - 60 * ( + COUNT ( * ) ) * 13 col2
----
1
-66796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT + 62 * - CAST( NULL AS SIGNED ) / - 74 / - - 75 + AVG ( ALL + 54 ) + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT + 62 * - CAST ( NULL AS INTEGER ) / - 74 / - - 75 + AVG ( ALL + 54 ) + + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8480
SELECT ALL - - NULLIF ( + 83, + 82 + - ( CAST( + COUNT( * ) AS DECIMAL ) ) * + - SUM( 68 ) ) col2
----
83

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - - NULLIF ( + 83, + 82 + - ( CAST ( + COUNT ( * ) AS REAL ) ) * + - SUM ( 68 ) ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT - + 18 / + 13 + CASE - NULLIF ( + 34, + + 17 * 81 + + 45 ) WHEN + COALESCE ( + - 23, 83 * + 8 + - 27 + - NULLIF ( - - 18, - COUNT( * ) * + 60 ) + 17 * + 23 * + 43 ) + CASE + - 26 WHEN + 82 + + ( - ( + - 56 ) ) THEN + + 3 END THEN + + 58 ELSE NULL END - + 8 + - ( - + 56 ) + - 56 * - - 72 * 13 + - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT - + 18 / + 13 + CASE - NULLIF ( + 34, + + 17 * 81 + + 45 ) WHEN + COALESCE ( + - 23, 83 * + 8 + - 27 + - NULLIF ( - - 18, - COUNT ( * ) * + 60 ) + 17 * + 23 * + 43 ) + CASE + - 26 WHEN + 82 + + ( - ( + - 56 ) ) THEN + + 3 END THEN + + 58 ELSE NULL END - + 8 + - ( - + 56 ) + - 56 * - - 72 * 13 + - + 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT ALL - 53 + CAST( + 52 AS SIGNED ) + ( 36 ) - 58 * 33 + - COUNT( * ) + - - 96 * - CAST( CAST( - - 88 AS SIGNED ) AS SIGNED ) * 20 * 65 AS col0
----
-10984280

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - 53 + CAST ( + 52 AS INTEGER ) + ( 36 ) - 58 * 33 + - COUNT ( * ) + - - 96 * - CAST ( CAST ( - - 88 AS INTEGER ) AS INTEGER ) * 20 * 65 AS col0
----
-10984280

query I rowsort
SELECT 19 + - 71
----
-52

query I rowsort
SELECT ALL + 67 + - 69 AS col2
----
-2

query II rowsort
SELECT 98 * + - 9 + 13 + + + 69 AS col0, - 60 AS col0
----
-800
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8486
SELECT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT + + 42, - 90 AS col0
----
42
-90

query I rowsort
SELECT DISTINCT - - ( - 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL + 18 + + SUM( ALL 73 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + 18 + + SUM ( ALL 73 ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT + + 17 * + CAST( NULL AS SIGNED ) + + + CAST( 12 AS SIGNED ) + + + 85 * 96 + - 47 + 59 + - 65 + - 19 + + 89 * - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT + + 17 * + CAST ( NULL AS INTEGER ) + + + CAST ( 12 AS INTEGER ) + + + 85 * 96 + - 47 + 59 + - 65 + - 19 + + 89 * - 87 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8491
SELECT + - CASE COUNT( * ) WHEN 26 THEN NULL WHEN 43 + 9 * 72 * - 46 + 14 THEN 23 WHEN + CAST( NULL AS SIGNED ) / 25 + 76 - + 66 THEN 8 END, + 41 AS col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8491
SELECT + - CASE COUNT ( * ) WHEN 26 THEN NULL WHEN 43 + 9 * 72 * - 46 + 14 THEN 23 WHEN + CAST ( NULL AS INTEGER ) / 25 + 76 - + 66 THEN 8 END, + 41 AS col0
----
NULL
41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8492
SELECT ALL - COALESCE ( - + 3, + CAST( - 46 AS SIGNED ) + + - 62 DIV - 45 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - COALESCE ( - + 3, + CAST ( - 46 AS INTEGER ) + + - 62 / - 45 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL ( + + SUM( 21 ) ) + + - 92
----
-71

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL ( + + SUM ( 21 ) ) + + - 92
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT DISTINCT - ( + + 51 ), - COUNT( * ) * + 11 AS col1
----
-51
-11

skipif mysql # not compatible
query II rowsort label-8494
SELECT DISTINCT - ( + + 51 ), - COUNT ( * ) * + 11 AS col1
----
-51
-11

query I rowsort
SELECT ALL - 9 + + + 38 col2
----
29

query II rowsort
SELECT ALL + 46 * 72 col2, + 59 + + 44 + + + 67
----
3312
170

query I rowsort
SELECT 67 * 73 AS col1
----
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT 38 * - - SUM( ALL + 46 ) * - + COUNT( * ) + + + 42 + - 40 * + + 3 AS col0
----
-1826

skipif mysql # not compatible
query I rowsort label-8498
SELECT 38 * - - SUM ( ALL + 46 ) * - + COUNT ( * ) + + + 42 + - 40 * + + 3 AS col0
----
-1826

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8499
SELECT DISTINCT - 64 DIV - 13 AS col1, - COUNT( 18 ) + + COALESCE ( + 63, - - 56 ) AS col2
----
4
62

skipif mysql # not compatible
query II rowsort label-8499
SELECT DISTINCT - 64 / - 13 AS col1, - COUNT ( 18 ) + + COALESCE ( + 63, - - 56 ) AS col2
----
4
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - 86 * - COUNT( * ) - - 6
----
92

skipif mysql # not compatible
query I rowsort label-8500
SELECT - 86 * - COUNT ( * ) - - 6
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8501
SELECT ALL - 47 * + 93 AS col1, - 42, - 8 + - 27 + - + SUM( DISTINCT - CAST( + 59 AS SIGNED ) ) DIV - 66 * - + 81 + + 95 * - COUNT( * ) + - + 23 col2
----
-4371
-42
-153

skipif mysql # not compatible
query III rowsort label-8501
SELECT ALL - 47 * + 93 AS col1, - 42, - 8 + - 27 + - + SUM ( DISTINCT - CAST ( + 59 AS INTEGER ) ) / - 66 * - + 81 + + 95 * - COUNT ( * ) + - + 23 col2
----
-4371
-42
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-8502
SELECT 57 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-8502
SELECT 57 / 44
----
1

query I rowsort
SELECT DISTINCT - 29 * - + 73
----
2117

query I rowsort
SELECT ALL - 47 * 57
----
-2679

onlyif mysql # DIV for integer division: 
query II rowsort label-8505
SELECT 82 DIV + - 92 AS col2, + 19 + 32 AS col1
----
0
51

skipif mysql # not compatible
query II rowsort label-8505
SELECT 82 / + - 92 AS col2, + 19 + 32 AS col1
----
0
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8506
SELECT ALL COALESCE ( + NULLIF ( - COUNT( * ), + 52 ), - CAST( NULL AS SIGNED ) * COUNT( * ) + - 70 * ( + 78 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL COALESCE ( + NULLIF ( - COUNT ( * ), + 52 ), - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 70 * ( + 78 ) )
----
-1

query I rowsort
SELECT 92 * - - 96 AS col1
----
8832

query I rowsort
SELECT ALL + 75 * + - ( - 29 ) AS col2
----
2175

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT SUM( 34 ) + 36, 38 AS col2
----
70
38

skipif mysql # not compatible
query II rowsort label-8509
SELECT SUM ( 34 ) + 36, 38 AS col2
----
70
38

query I rowsort
SELECT ( - - 14 ) * - 7 * + 56
----
-5488

query I rowsort
SELECT + 97 * 37 AS col1
----
3589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT 34 - + NULLIF ( - CASE + + 64 WHEN NULLIF ( + COUNT( * ), - 92 / CAST( + + 79 AS SIGNED ) * - 89 + - - ( - - 74 ) ) + + 81 + - 19 THEN + 45 / + MAX( 58 ) ELSE NULL END, - 8 + + ( 86 ) * + 27 * ( - + 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT 34 - + NULLIF ( - CASE + + 64 WHEN NULLIF ( + COUNT ( * ), - 92 / CAST ( + + 79 AS INTEGER ) * - 89 + - - ( - - 74 ) ) + + 81 + - 19 THEN + 45 / + MAX ( 58 ) ELSE NULL END, - 8 + + ( 86 ) * + 27 * ( - + 54 ) )
----
NULL

query I rowsort
SELECT + 20 + + - 14
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT DISTINCT MIN( ALL + - 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT MIN ( ALL + - 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL ( - + 81 ) * MAX( 87 )
----
-7047

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL ( - + 81 ) * MAX ( 87 )
----
-7047

query II rowsort
SELECT - 64 * - 0 AS col0, 21 AS col0
----
0
21

query I rowsort
SELECT DISTINCT + 40 * - 40 AS col0
----
-1600

query I rowsort
SELECT ALL + 13 * 94 + + 30
----
1252

query I rowsort
SELECT + - ( 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + - 2 * NULLIF ( + COUNT( * ), + 54 )
----
-2

skipif mysql # not compatible
query I rowsort label-8520
SELECT + - 2 * NULLIF ( + COUNT ( * ), + 54 )
----
-2

query I rowsort
SELECT DISTINCT + + 89 * + 44 + 79
----
3995

query I rowsort
SELECT - + 27 * - 23 + + 44 - + 66
----
599

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8523
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 80 * + 4, - 45 AS col1
----
320
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT ALL COUNT( * ) / + + CAST( NULL AS SIGNED ) * ( + 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL COUNT ( * ) / + + CAST ( NULL AS INTEGER ) * ( + 33 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + CASE 47 WHEN + COALESCE ( 58, - 48 + + + 19 ) + 87 THEN + - 52 / COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT + CASE 47 WHEN + COALESCE ( 58, - 48 + + + 19 ) + 87 THEN + - 52 / COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8527
SELECT ALL COUNT( * ) / + 66 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL COUNT ( * ) / + 66 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8528
SELECT + COALESCE ( COALESCE ( + 43, + 92 + + - 52 + 65 DIV - + 86 ), + 52, - 8 + COUNT( * ), + 14 ) col1
----
43

skipif mysql # not compatible
query I rowsort label-8528
SELECT + COALESCE ( COALESCE ( + 43, + 92 + + - 52 + 65 / - + 86 ), + 52, - 8 + COUNT ( * ), + 14 ) col1
----
43

query II rowsort
SELECT DISTINCT + 5, 18 AS col2
----
5
18

query I rowsort
SELECT ALL 1 * - - 7 * + + 79 * - 85 - 73
----
-47078

query I rowsort
SELECT + 33 + + + 4 AS col1
----
37

query I rowsort
SELECT - 39 * 53
----
-2067

query I rowsort
SELECT - NULLIF ( - 19, 88 + 77 ) - + 64
----
-45

query I rowsort
SELECT + 85 + + + 53
----
138

query II rowsort
SELECT + 9, 14 - + 45 + - + 82 col0
----
9
-113

query I rowsort
SELECT + 3 * + 67 AS col2
----
201

query I rowsort
SELECT DISTINCT 26 - 80 + + 74 AS col0
----
20

query II rowsort
SELECT ALL COALESCE ( - 77, - + ( 11 ), 3 + + + 52 ), + 34 AS col2
----
-77
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT MAX( - - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT MAX ( - - 41 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8540
SELECT DISTINCT - COUNT( * ) DIV + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT - COUNT ( * ) / + + COUNT ( * )
----
-1

query I rowsort
SELECT - 7 + + 21 * + - 3
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT ALL - 16 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - 16 / - 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8543
SELECT - 25 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8543
SELECT - 25 / + 85
----
0

query II rowsort
SELECT ALL 97 col2, 73 + 75
----
97
148

query I rowsort
SELECT - 39 + - + 26
----
-65

query II rowsort
SELECT ALL + 36 AS col1, - 29 col1
----
36
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT - 75 * + 25 + 82 * + 14 * - COUNT( * ) AS col2
----
-3023

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT - 75 * + 25 + 82 * + 14 * - COUNT ( * ) AS col2
----
-3023

query I rowsort
SELECT - 70 - ( 14 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT - - 74 + + MIN( + 0 ) col2
----
74

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT - - 74 + + MIN ( + 0 ) col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT DISTINCT - - COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT - - COUNT ( * ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT - - 73 + - - 0
----
73

query II rowsort
SELECT - 43, - 79 AS col1
----
-43
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL - + MAX( - - 44 ) + COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - + MAX ( - - 44 ) + COUNT ( * ) AS col1
----
-43

query II rowsort
SELECT - 93 AS col0, 90 * - + 66 * 33 * 58 * + 54 + ( + + 73 ) + - 30
----
-93
-613934597

query I rowsort
SELECT - + 66 * - 23 + 22 + - 36 AS col2
----
1504

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8556
SELECT ALL + - CASE - CAST( - 11 AS DECIMAL ) WHEN + 23 * - 35 THEN - 22 * - COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL + - CASE - CAST ( - 11 AS REAL ) WHEN + 23 * - 35 THEN - 22 * - COUNT ( * ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT - ( 87 ) * + 62 + 31 * - COALESCE ( 67, + 18, COUNT( * ) ) + - 35 * + + 95 col1
----
-10796

skipif mysql # not compatible
query I rowsort label-8557
SELECT - ( 87 ) * + 62 + 31 * - COALESCE ( 67, + 18, COUNT ( * ) ) + - 35 * + + 95 col1
----
-10796

query I rowsort
SELECT + + 90 * 53 AS col0
----
4770

query II rowsort
SELECT + + 74 AS col1, - 44 AS col2
----
74
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8560
SELECT - 2 / - 52 + + MIN( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT - 2 / - 52 + + MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT + 48 col0, 86 + + - 73
----
48
13

query I rowsort
SELECT ALL + 35 * 36 AS col0
----
1260

query II rowsort
SELECT + 0 + - - 90 - + 48, 13 col1
----
42
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT ALL + 11 DIV + - 2 - - 55 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL + 11 / + - 2 - - 55 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8565
SELECT - 16 * 28 * NULLIF ( - MAX( ALL - 7 ), - - 71 + + 42 + - 49 * + - 49 ) AS col0, 22 * + CAST( NULL AS SIGNED )
----
-3136
NULL

skipif mysql # not compatible
query II rowsort label-8565
SELECT - 16 * 28 * NULLIF ( - MAX ( ALL - 7 ), - - 71 + + 42 + - 49 * + - 49 ) AS col0, 22 * + CAST ( NULL AS INTEGER )
----
-3136
NULL

query I rowsort
SELECT 83 * 1 + 51
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8567
SELECT - 33 DIV - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-8567
SELECT - 33 / - COUNT ( * )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8568
SELECT + COUNT( * ) * + ( - + COUNT( ALL 16 ) ), 91 * - + 45 * + 2 + + 79 / + 47 * CAST( NULL AS SIGNED ) * + - 69 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8568
SELECT + COUNT ( * ) * + ( - + COUNT ( ALL 16 ) ), 91 * - + 45 * + 2 + + 79 / + 47 * CAST ( NULL AS INTEGER ) * + - 69 AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8569
SELECT + COUNT( * ) DIV + COUNT( * ) AS col1, + 71
----
1
71

skipif mysql # not compatible
query II rowsort label-8569
SELECT + COUNT ( * ) / + COUNT ( * ) AS col1, + 71
----
1
71

query I rowsort
SELECT + ( + - ( + 99 ) ) AS col1
----
-99

query I rowsort
SELECT DISTINCT + ( 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL SUM( - NULLIF ( + 95, + 52 ) ) * + 61
----
-5795

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL SUM ( - NULLIF ( + 95, + 52 ) ) * + 61
----
-5795

query I rowsort
SELECT DISTINCT 79 * 15
----
1185

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT - COALESCE ( + + MIN( - 49 ), ( - + NULLIF ( 47, - SUM( + - 42 ) * + 88 * 23 ) ), + 93 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8574
SELECT - COALESCE ( + + MIN ( - 49 ), ( - + NULLIF ( 47, - SUM ( + - 42 ) * + 88 * 23 ) ), + 93 ) AS col1
----
49

query I rowsort
SELECT + 49 * - 59
----
-2891

query I rowsort
SELECT DISTINCT 55 * - 27 col0
----
-1485

query I rowsort
SELECT + ( + - 42 ) - 96
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT + 19 * + CASE 20 WHEN ( + 95 ) THEN NULL WHEN - 74 THEN 99 * + 26 + CAST( COUNT( * ) AS SIGNED ) + 52 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT + 19 * + CASE 20 WHEN ( + 95 ) THEN NULL WHEN - 74 THEN 99 * + 26 + CAST ( COUNT ( * ) AS INTEGER ) + 52 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL + COALESCE ( COUNT( * ), + + 41 ) + - 37 + 33
----
-3

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + COALESCE ( COUNT ( * ), + + 41 ) + - 37 + 33
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - - ( - COALESCE ( COUNT( * ), + 74 * 68 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8580
SELECT - - ( - COALESCE ( COUNT ( * ), + 74 * 68 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT - 59 - COUNT( * ) * 47 col1
----
-106

skipif mysql # not compatible
query I rowsort label-8581
SELECT - 59 - COUNT ( * ) * 47 col1
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8582
SELECT ALL - MIN( DISTINCT - 8 ) + + CAST( - 87 AS SIGNED ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - MIN ( DISTINCT - 8 ) + + CAST ( - 87 AS INTEGER ) AS col1
----
-79

query I rowsort
SELECT 4 * 1 + + 48 * - - ( - 57 ) * 49 + - + 27
----
-134087

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT - ( + MIN( DISTINCT 41 ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8584
SELECT - ( + MIN ( DISTINCT 41 ) ) AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8585
SELECT CAST( SUM( ALL + CAST( NULL AS DECIMAL ) ) AS SIGNED ) + + ( - 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT CAST ( SUM ( ALL + CAST ( NULL AS REAL ) ) AS INTEGER ) + + ( - 36 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - ( + + 58 ) + 0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL + COUNT( * ) * + ( - + 89 ) - + 41 - - CASE + 28 WHEN - 79 / - 61 + - + COUNT( * ) * COUNT( * ) - - 7 - + MAX( ALL 94 ) * + 62 THEN + 46 / 4 WHEN + 82 * - - SUM( DISTINCT 44 ) * 24 + - - 81 * - MIN( + - 35 ) / - COUNT( * ) + - 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL + COUNT ( * ) * + ( - + 89 ) - + 41 - - CASE + 28 WHEN - 79 / - 61 + - + COUNT ( * ) * COUNT ( * ) - - 7 - + MAX ( ALL 94 ) * + 62 THEN + 46 / 4 WHEN + 82 * - - SUM ( DISTINCT 44 ) * 24 + - - 81 * - MIN ( + - 35 ) / - COUNT ( * ) + - 36 THEN NULL END
----
NULL

query I rowsort
SELECT 73 * - + ( + - 68 )
----
4964

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL 45 * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL 45 * + COUNT ( * )
----
45

query I rowsort
SELECT DISTINCT - + 21 - - 94
----
73

query I rowsort
SELECT ALL - - 28 col1
----
28

query I rowsort
SELECT ALL - - 67 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT COUNT( * ) - - - 74 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8593
SELECT COUNT ( * ) - - - 74 AS col0
----
-73

query I rowsort
SELECT ALL - ( + 71 ) AS col0
----
-71

query I rowsort
SELECT DISTINCT - ( + 54 ) AS col2
----
-54

query II rowsort
SELECT 22 col1, 81
----
22
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT ALL - COALESCE ( 48, - + COUNT( * ) * - 62 - - 0, - 19 )
----
-48

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL - COALESCE ( 48, - + COUNT ( * ) * - 62 - - 0, - 19 )
----
-48

query I rowsort
SELECT 76 * + - 84 * + 70 * - 89 AS col2
----
39772320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8599
SELECT 82 - - - NULLIF ( - ( 16 ), - 48 * - + 76 + COUNT( + 45 ) + - 58 ) + + NULLIF ( + 91, COUNT( * ) + 1 + - - 8 - - + COUNT( * ) * + 62 ) * - CASE WHEN 51 >= CAST( + 75 AS DECIMAL ) THEN 18 WHEN + 57 IN ( ( - CASE COUNT( * ) WHEN - NULLIF ( + + COALESCE ( - 92, + - 80 * + 11 * 59, CAST( NULL AS SIGNED ) ), - MAX( - 76 ) * + 18 ) * - 72 + - 21 * + SUM( - 46 ) * CAST( NULL AS SIGNED ) * + 15 + 26 THEN + 29 + + 26 ELSE - 29 END ) * + 35 ) THEN NULL ELSE NULL END + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT 82 - - - NULLIF ( - ( 16 ), - 48 * - + 76 + COUNT ( + 45 ) + - 58 ) + + NULLIF ( + 91, COUNT ( * ) + 1 + - - 8 - - + COUNT ( * ) * + 62 ) * - CASE WHEN 51 >= CAST ( + 75 AS REAL ) THEN 18 WHEN + 57 IN ( ( - CASE COUNT ( * ) WHEN - NULLIF ( + + COALESCE ( - 92, + - 80 * + 11 * 59, CAST ( NULL AS INTEGER ) ), - MAX ( - 76 ) * + 18 ) * - 72 + - 21 * + SUM ( - 46 ) * CAST ( NULL AS INTEGER ) * + 15 + 26 THEN + 29 + + 26 ELSE - 29 END ) * + 35 ) THEN NULL ELSE NULL END + 3
----
NULL

query II rowsort
SELECT + 5 AS col2, - 17
----
5
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT NULLIF ( + 91, 79 ) * + + COUNT( * ) - - 71
----
162

skipif mysql # not compatible
query I rowsort label-8601
SELECT NULLIF ( + 91, 79 ) * + + COUNT ( * ) - - 71
----
162

query I rowsort
SELECT DISTINCT - 70 + + 45 * + 72
----
3170

query I rowsort
SELECT ALL + 16 * 3 AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8604
SELECT 21 AS col2, - 40 * - 97 AS col2, CASE + - 75 WHEN - + 67 THEN NULL ELSE - + ( + - 30 ) + - + CAST( NULL AS SIGNED ) END AS col2
----
21
3880
NULL

skipif mysql # not compatible
query III rowsort label-8604
SELECT 21 AS col2, - 40 * - 97 AS col2, CASE + - 75 WHEN - + 67 THEN NULL ELSE - + ( + - 30 ) + - + CAST ( NULL AS INTEGER ) END AS col2
----
21
3880
NULL

query I rowsort
SELECT ALL - 52 + - 23 col1
----
-75

query I rowsort
SELECT NULLIF ( + 74, - 24 + + ( 76 ) * - + 6 * - 18 ) - + 96 + - 75 * - - 95 col0
----
-7147

query II rowsort
SELECT ALL - 62, 98 col1
----
-62
98

query I rowsort
SELECT 1 + - - 5 * 91 - + 58 + + 78
----
476

query I rowsort
SELECT ALL 60 + 20
----
80

query I rowsort
SELECT 63 * - 39 AS col2
----
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT - 17 + - COUNT( * ) * + 96 + + + COUNT( ALL + 90 )
----
-112

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT - 17 + - COUNT ( * ) * + 96 + + + COUNT ( ALL + 90 )
----
-112

query I rowsort
SELECT - 43 + - + 79 AS col0
----
-122

query I rowsort
SELECT DISTINCT 87 + - 10
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL COUNT( * ) + - + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL COUNT ( * ) + - + COUNT ( * ) col2
----
0

query I rowsort
SELECT 42 * - 7 AS col2
----
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8616
SELECT ALL + 51 + 52 + + 67 * - 25 * + 31 + - 70 DIV - 61 + COALESCE ( + + COUNT( * ), 81 + + + 6 )
----
-51820

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + 51 + 52 + + 67 * - 25 * + 31 + - 70 / - 61 + COALESCE ( + + COUNT ( * ), 81 + + + 6 )
----
-51820

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT - COUNT( 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-8617
SELECT - COUNT ( 56 )
----
-1

query I rowsort
SELECT ALL - ( + + 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT DISTINCT 72 - COUNT( - + 44 ) + - 17 * 78
----
-1255

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT 72 - COUNT ( - + 44 ) + - 17 * 78
----
-1255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8620
SELECT - 73 * MAX( 40 ) * COUNT( * ) DIV + + 74 + 7
----
-32

skipif mysql # not compatible
query I rowsort label-8620
SELECT - 73 * MAX ( 40 ) * COUNT ( * ) / + + 74 + 7
----
-32

query II rowsort
SELECT ALL + + 56 * - 45 + + 59 AS col0, 53 * 12
----
-2461
636

query I rowsort
SELECT - CASE + + 66 WHEN - 54 / + 38 THEN + + 98 * - + 76 WHEN 60 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - CASE + 78 WHEN - 68 THEN + + 10 + 15 * 4 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL COUNT( ALL 5 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL COUNT ( ALL 5 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8625
SELECT ( - + ( 48 ) ) DIV COALESCE ( + + COUNT( + 42 ), - - 0 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8625
SELECT ( - + ( 48 ) ) / COALESCE ( + + COUNT ( + 42 ), - - 0 ) AS col1
----
-48

query I rowsort
SELECT 86 * + + 61
----
5246

query I rowsort
SELECT ALL 4 * - 81 * 91 AS col0
----
-29484

query I rowsort
SELECT 92 - 82 + 50
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT ( + MIN( - 98 ) ) DIV + + 17 + 1
----
-4

skipif mysql # not compatible
query I rowsort label-8629
SELECT ( + MIN ( - 98 ) ) / + + 17 + 1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT DISTINCT 51 DIV 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT 51 / 57 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8631
SELECT DISTINCT - 8, + SUM( DISTINCT + + 27 ) AS col2
----
-8
27

skipif mysql # not compatible
query II rowsort label-8631
SELECT DISTINCT - 8, + SUM ( DISTINCT + + 27 ) AS col2
----
-8
27

query I rowsort
SELECT 85 * - 37
----
-3145

query I rowsort
SELECT ALL 44 * - - 70
----
3080

query I rowsort
SELECT DISTINCT 1 * - + ( + 8 ) + + + 53 col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT ALL - COUNT( * ) * - CAST( + CASE + 86 WHEN - 4 + + - 12 THEN COUNT( * ) ELSE NULL END AS SIGNED ) + 31 + + 70 + - 42 / 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL - COUNT ( * ) * - CAST ( + CASE + 86 WHEN - 4 + + - 12 THEN COUNT ( * ) ELSE NULL END AS INTEGER ) + 31 + + 70 + - 42 / 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT 20 * - 16 + - 91 * - COUNT( * )
----
-229

skipif mysql # not compatible
query I rowsort label-8636
SELECT 20 * - 16 + - 91 * - COUNT ( * )
----
-229

onlyif mysql # aggregate syntax: 
query II rowsort label-8637
SELECT - 69 * + 46 + + SUM( - 82 ), - 38 * - 64 AS col2
----
-3256
2432

skipif mysql # not compatible
query II rowsort label-8637
SELECT - 69 * + 46 + + SUM ( - 82 ), - 38 * - 64 AS col2
----
-3256
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT SUM( ALL + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-8638
SELECT SUM ( ALL + 4 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT ALL + COALESCE ( - + ( 22 ), + 56 * - 35 ) * 90 + + 20 + - 48 + CAST( NULL AS SIGNED ) + - + 13 * 34 + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + COALESCE ( - + ( 22 ), + 56 * - 35 ) * 90 + + 20 + - 48 + CAST ( NULL AS INTEGER ) + - + 13 * 34 + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT - 2 + + - 5 + - - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8640
SELECT - 2 + + - 5 + - - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL + 15 * + 6 * + 3 + - - COUNT( + 18 ) AS col1
----
271

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL + 15 * + 6 * + 3 + - - COUNT ( + 18 ) AS col1
----
271

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL - COALESCE ( - 71, 77 ) * - COUNT( * ) * 96 AS col2
----
-6816

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - COALESCE ( - 71, 77 ) * - COUNT ( * ) * 96 AS col2
----
-6816

query II rowsort
SELECT 93 AS col0, 20 + - AVG ( DISTINCT CASE 95 WHEN + ( - 75 ) + + ( + - 83 ) * + - 12 THEN - 76 END )
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT + MAX( - 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8644
SELECT + MAX ( - 8 ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8645
SELECT - CAST( NULL AS SIGNED ), 33 col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-8645
SELECT - CAST ( NULL AS INTEGER ), 33 col1
----
NULL
33

query II rowsort
SELECT - + 70 AS col2, + 29 + 88
----
-70
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT + 64 * - 67 * + MAX( DISTINCT 33 ) AS col2
----
-141504

skipif mysql # not compatible
query I rowsort label-8647
SELECT + 64 * - 67 * + MAX ( DISTINCT 33 ) AS col2
----
-141504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT ALL + CAST( + CAST( + 46 AS SIGNED ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + CAST ( + CAST ( + 46 AS INTEGER ) AS INTEGER )
----
46

query I rowsort
SELECT - - 99 - + 46 AS col2
----
53

query II rowsort
SELECT + 11, 50 AS col0
----
11
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8651
SELECT ALL 61 DIV + ( + - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL 61 / + ( + - 92 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8652
SELECT ALL + NULLIF ( CAST( + CASE + SUM( ALL - + 69 ) WHEN COUNT( + 58 ) + + 18 THEN NULL WHEN + 66 THEN + + 50 ELSE NULL END AS DECIMAL ), + + 76 - + - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL + NULLIF ( CAST ( + CASE + SUM ( ALL - + 69 ) WHEN COUNT ( + 58 ) + + 18 THEN NULL WHEN + 66 THEN + + 50 ELSE NULL END AS REAL ), + + 76 - + - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL 74 - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL 74 - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT COUNT( ALL 43 ) * + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT COUNT ( ALL 43 ) * + 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8655
SELECT ALL + COUNT( * ) AS col2, - 82 AS col0
----
1
-82

skipif mysql # not compatible
query II rowsort label-8655
SELECT ALL + COUNT ( * ) AS col2, - 82 AS col0
----
1
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT + + COUNT( * ) + - 1 col1
----
0

skipif mysql # not compatible
query I rowsort label-8656
SELECT + + COUNT ( * ) + - 1 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8657
SELECT + + MAX( ALL - COALESCE ( 80, + 81 * + + 8 * + 32, + COALESCE ( + 38, 59 ) + - 89 ) ) - + - 97 + - CAST( - ( - 50 ) AS SIGNED ) + + + ( 52 ) * + ( - 7 ) + + 0 + ( + 41 ) + COALESCE ( 91, COUNT( + 40 ) ) + 80 * 25 + + ( - 73 ) + - COUNT( * ) DIV + 30
----
1662

skipif mysql # not compatible
query I rowsort label-8657
SELECT + + MAX ( ALL - COALESCE ( 80, + 81 * + + 8 * + 32, + COALESCE ( + 38, 59 ) + - 89 ) ) - + - 97 + - CAST ( - ( - 50 ) AS INTEGER ) + + + ( 52 ) * + ( - 7 ) + + 0 + ( + 41 ) + COALESCE ( 91, COUNT ( + 40 ) ) + 80 * 25 + + ( - 73 ) + - COUNT ( * ) / + 30
----
1662

query I rowsort
SELECT ALL - ( 71 ) * - 4
----
284

query I rowsort
SELECT + - 42 + - 62 + + 15
----
-89

query I rowsort
SELECT - ( - + 43 )
----
43

query I rowsort
SELECT ALL - 78 - - + 50
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8662
SELECT - + 73 * CAST( NULL AS SIGNED ) + 15 + + COUNT( * ) * - - COUNT( * ) * 37 AS col1, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-8662
SELECT - + 73 * CAST ( NULL AS INTEGER ) + 15 + + COUNT ( * ) * - - COUNT ( * ) * 37 AS col1, 26
----
NULL
26

onlyif mysql # DIV for integer division: 
query II rowsort label-8663
SELECT - - 95 AS col2, + COALESCE ( - + 18, 59 ) DIV 80
----
95
0

skipif mysql # not compatible
query II rowsort label-8663
SELECT - - 95 AS col2, + COALESCE ( - + 18, 59 ) / 80
----
95
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8664
SELECT ALL 30, 77 * + COUNT( * ) AS col2
----
30
77

skipif mysql # not compatible
query II rowsort label-8664
SELECT ALL 30, 77 * + COUNT ( * ) AS col2
----
30
77

query II rowsort
SELECT - 41 AS col0, + 73 AS col2
----
-41
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT + 2 + - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8666
SELECT + 2 + - COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8667
SELECT DISTINCT 10 * + 49 AS col1, - MAX( - - 5 ) * + 39
----
490
-195

skipif mysql # not compatible
query II rowsort label-8667
SELECT DISTINCT 10 * + 49 AS col1, - MAX ( - - 5 ) * + 39
----
490
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL 68 + + COUNT( * ) * - COUNT( * ) col2
----
67

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL 68 + + COUNT ( * ) * - COUNT ( * ) col2
----
67

query I rowsort
SELECT ( + 76 ) AS col2
----
76

query I rowsort
SELECT ( + - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT + COUNT( * ) - + 98
----
-97

skipif mysql # not compatible
query I rowsort label-8671
SELECT + COUNT ( * ) - + 98
----
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8672
SELECT + 9 DIV + 96 AS col1, + CAST( + 9 AS SIGNED )
----
0
9

skipif mysql # not compatible
query II rowsort label-8672
SELECT + 9 / + 96 AS col1, + CAST ( + 9 AS INTEGER )
----
0
9

query I rowsort
SELECT 52 * 50 * - 42 - + - 64 AS col2
----
-109136

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL + 87 * 2 + + - MIN( DISTINCT - + 99 ) AS col2
----
273

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL + 87 * 2 + + - MIN ( DISTINCT - + 99 ) AS col2
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT + 73 DIV 9
----
8

skipif mysql # not compatible
query I rowsort label-8675
SELECT + 73 / 9
----
8

query I rowsort
SELECT + 90 * + 57 * 85
----
436050

query I rowsort
SELECT DISTINCT 96 * + 9
----
864

query I rowsort
SELECT ALL 52 * + 8 + 37
----
453

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL - 72 * + COUNT( * ) + + 79 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - 72 * + COUNT ( * ) + + 79 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT 90 * + CASE + ( - + 30 ) WHEN - 81 THEN 73 ELSE NULL END * + - 4 - + CASE + 49 WHEN + 79 + - 79 + - ( + 28 ) THEN - 76 WHEN + - 14 * - 36 + - COUNT( * ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT 90 * + CASE + ( - + 30 ) WHEN - 81 THEN 73 ELSE NULL END * + - 4 - + CASE + 49 WHEN + 79 + - 79 + - ( + 28 ) THEN - 76 WHEN + - 14 * - 36 + - COUNT ( * ) THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 48 * + - 53 * 79
----
-200976

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT DISTINCT + - COALESCE ( COUNT( * ), COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT + - COALESCE ( COUNT ( * ), COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8683
SELECT 3 * - 92 * 28 + COUNT( * ) + + + NULLIF ( + MIN( ALL 71 ), - 12 ) + - NULLIF ( SUM( ALL - 29 ), + 40 ) * - MAX( ALL + 64 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT 3 * - 92 * 28 + COUNT ( * ) + + + NULLIF ( + MIN ( ALL 71 ), - 12 ) + - NULLIF ( SUM ( ALL - 29 ), + 40 ) * - MAX ( ALL + 64 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT - 62 - - - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-8684
SELECT - 62 - - - COUNT ( * )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8685
SELECT - 5 + + + CAST( NULL AS SIGNED ) * + - CASE + + COUNT( * ) WHEN + 90 THEN - 66 + + 4 + 12 * ( 77 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT - 5 + + + CAST ( NULL AS INTEGER ) * + - CASE + + COUNT ( * ) WHEN + 90 THEN - 66 + + 4 + 12 * ( 77 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 77 * - - 1 - - ( + 42 )
----
119

onlyif mysql # DIV for integer division: 
query III rowsort label-8687
SELECT - + 62 * - - 21 col1, - 55 AS col2, + - 77 DIV 28
----
-1302
-55
-2

skipif mysql # not compatible
query III rowsort label-8687
SELECT - + 62 * - - 21 col1, - 55 AS col2, + - 77 / 28
----
-1302
-55
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL - CASE + COUNT( * ) WHEN - 31 * + - 16 THEN NULL ELSE + 89 * - COUNT( * ) END * - 99
----
-8811

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - CASE + COUNT ( * ) WHEN - 31 * + - 16 THEN NULL ELSE + 89 * - COUNT ( * ) END * - 99
----
-8811

query I rowsort
SELECT - - 88 + - 71 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - + NULLIF ( + NULLIF ( - - 51, - 83 + + 68 * CASE WHEN - COUNT( - 68 ) <> ( 33 ) THEN NULL ELSE - 16 END - + + 80 + COUNT( * ) + + 5 ), - COALESCE ( + + 4, + 85 + - 76 + + - ( + 88 ) ) ) + 13
----
-38

skipif mysql # not compatible
query I rowsort label-8690
SELECT - + NULLIF ( + NULLIF ( - - 51, - 83 + + 68 * CASE WHEN - COUNT ( - 68 ) <> ( 33 ) THEN NULL ELSE - 16 END - + + 80 + COUNT ( * ) + + 5 ), - COALESCE ( + + 4, + 85 + - 76 + + - ( + 88 ) ) ) + 13
----
-38

query I rowsort
SELECT - 64 * + 41 + - - 76 * + 88 AS col1
----
4064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8692
SELECT ALL - 91 * + 53 * - 33 * - 4 - - 42 - + SUM( DISTINCT + 55 ) + 40 DIV + 82 AS col2
----
-636649

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL - 91 * + 53 * - 33 * - 4 - - 42 - + SUM ( DISTINCT + 55 ) + 40 / + 82 AS col2
----
-636649

onlyif mysql # aggregate syntax: 
query II rowsort label-8693
SELECT + SUM( ALL + + 70 ), 72 AS col1
----
70
72

skipif mysql # not compatible
query II rowsort label-8693
SELECT + SUM ( ALL + + 70 ), 72 AS col1
----
70
72

query I rowsort
SELECT - + 10 + + + 75 + - + 3 AS col1
----
62

query I rowsort
SELECT - ( + + ( + ( 19 ) ) ) col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8696
SELECT - - COUNT( * ) * - + ( + 83 ) DIV - CAST( + 96 AS SIGNED ) * - 66 + COUNT( * ) + + 98 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8696
SELECT - - COUNT ( * ) * - + ( + 83 ) / - CAST ( + 96 AS INTEGER ) * - 66 + COUNT ( * ) + + 98 AS col0
----
99

query I rowsort
SELECT ALL + ( - 56 ) + 79 * - + 85 + + 80 AS col2
----
-6691

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL + 56 + - - COUNT( * ) + - + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL + 56 + - - COUNT ( * ) + - + COUNT ( * )
----
56

query I rowsort
SELECT DISTINCT - 1 + 44 col0
----
43

query II rowsort
SELECT 46, + 21 + - 36 + + + 31 AS col0
----
46
16

query I rowsort
SELECT ALL - 84 + - 83 + - 66 + ( + 29 ) * 91
----
2406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8702
SELECT + 33 + + CAST( ( COUNT( * ) ) AS SIGNED ) + + 91 col2
----
125

skipif mysql # not compatible
query I rowsort label-8702
SELECT + 33 + + CAST ( ( COUNT ( * ) ) AS INTEGER ) + + 91 col2
----
125

query I rowsort
SELECT ALL 15 + + 52
----
67

query I rowsort
SELECT 82 + + 42 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT COUNT( * ) - - 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8705
SELECT COUNT ( * ) - - 72 AS col2
----
73

query I rowsort
SELECT ALL 91 * - 46 AS col2
----
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT 91 + 5 * + COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8707
SELECT 91 + 5 * + COUNT ( * ) AS col0
----
96

query I rowsort
SELECT 27 - + 57
----
-30

query I rowsort
SELECT ALL 8 * + + 87
----
696

query I rowsort
SELECT ALL CASE - 67 WHEN 17 THEN NULL ELSE + 3 END + + ( + 67 )
----
70

query II rowsort
SELECT + 61, 7 * + 41 * 16 * + + 76 col0
----
61
348992

query I rowsort
SELECT ALL - 94 * + 28
----
-2632

query II rowsort
SELECT ALL - 91, 64 AS col2
----
-91
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT NULLIF ( - + COUNT( * ), 85 * - 62 + COUNT( * ) ) + - 35 col2
----
-36

skipif mysql # not compatible
query I rowsort label-8714
SELECT NULLIF ( - + COUNT ( * ), 85 * - 62 + COUNT ( * ) ) + - 35 col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT 94 * 31 + - COUNT( + ( - + 22 ) ) AS col1
----
2913

skipif mysql # not compatible
query I rowsort label-8715
SELECT 94 * 31 + - COUNT ( + ( - + 22 ) ) AS col1
----
2913

query I rowsort
SELECT 7 * 74 AS col0
----
518

query I rowsort
SELECT 42 * 17 AS col0
----
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8718
SELECT - COUNT( * ) DIV - 70 + 50 + + 72 * - 46
----
-3262

skipif mysql # not compatible
query I rowsort label-8718
SELECT - COUNT ( * ) / - 70 + 50 + + 72 * - 46
----
-3262

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT - COALESCE ( - 53, + + COUNT( + 5 ) ) * - 8 + - - 61 * + 41
----
2077

skipif mysql # not compatible
query I rowsort label-8719
SELECT - COALESCE ( - 53, + + COUNT ( + 5 ) ) * - 8 + - - 61 * + 41
----
2077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8720
SELECT ALL 6 DIV + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL 6 / + COUNT ( * ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT CAST( + 35 AS SIGNED ) col2
----
35

skipif mysql # not compatible
query I rowsort label-8721
SELECT CAST ( + 35 AS INTEGER ) col2
----
35

query I rowsort
SELECT + 46 + - 20 AS col2
----
26

query I rowsort
SELECT ALL - 47 * 71 AS col1
----
-3337

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT + MIN( + 31 ) * + + 19 * SUM( DISTINCT - 51 ) col2
----
-30039

skipif mysql # not compatible
query I rowsort label-8724
SELECT + MIN ( + 31 ) * + + 19 * SUM ( DISTINCT - 51 ) col2
----
-30039

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT DISTINCT 55 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT 55 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + 72 - - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + 72 - - - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8728
SELECT ALL - COALESCE ( - 16, + + MIN( + - 10 ) DIV + + 50 + + 45, 36 * - MAX( + 45 ) * - 8 ) * + 26 AS col1, 4 * - 35 AS col1
----
416
-140

skipif mysql # not compatible
query II rowsort label-8728
SELECT ALL - COALESCE ( - 16, + + MIN ( + - 10 ) / + + 50 + + 45, 36 * - MAX ( + 45 ) * - 8 ) * + 26 AS col1, 4 * - 35 AS col1
----
416
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT DISTINCT - - MIN( DISTINCT + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT - - MIN ( DISTINCT + 15 ) AS col0
----
15

query I rowsort
SELECT DISTINCT - + 61 col2
----
-61

query I rowsort
SELECT 96 * - + 73 AS col0
----
-7008

query I rowsort
SELECT - 35 + - 93 AS col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT 55 * - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-8733
SELECT 55 * - COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8734
SELECT MIN( + 79 ) DIV + + 95 * 73 * + - COUNT( * ) + 2 * + + 23 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8734
SELECT MIN ( + 79 ) / + + 95 * 73 * + - COUNT ( * ) + 2 * + + 23 AS col0
----
46

query II rowsort
SELECT ALL - 45, - 75 AS col2
----
-45
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - 92 - - ( - - 57 ) + - 88 * 94 + - COUNT( * )
----
-8308

skipif mysql # not compatible
query I rowsort label-8736
SELECT - 92 - - ( - - 57 ) + - 88 * 94 + - COUNT ( * )
----
-8308

query I rowsort
SELECT + 1 * + ( + COALESCE ( 72, + 30 * + 58 + + - 31 ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT COUNT( * ) - - + 56
----
57

skipif mysql # not compatible
query I rowsort label-8738
SELECT COUNT ( * ) - - + 56
----
57

query I rowsort
SELECT + ( - 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT - + NULLIF ( + 72, + - 12 - COUNT( * ) + - - 84 + 81 * + + 59 + 90 * ( - + 97 ) + 51 * 74 )
----
-72

skipif mysql # not compatible
query I rowsort label-8740
SELECT - + NULLIF ( + 72, + - 12 - COUNT ( * ) + - - 84 + 81 * + + 59 + 90 * ( - + 97 ) + 51 * 74 )
----
-72

query I rowsort
SELECT ALL - + NULLIF ( + + 7, 47 ) + - + 67
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT DISTINCT CAST( NULL AS SIGNED ) + 40 + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 40 + - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL + COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL + COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT 92 + + + CASE SUM( ALL 70 ) WHEN + - 46 + 59 THEN 87 * + - 35 / 87 WHEN - - 99 THEN - CASE - - 85 WHEN 86 THEN 9 ELSE NULL END ELSE NULL END + - ( COALESCE ( + 83, + 77 * + - ( - 46 ) - 43, + - COALESCE ( - 57, - 31 ) ) ) * + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT 92 + + + CASE SUM ( ALL 70 ) WHEN + - 46 + 59 THEN 87 * + - 35 / 87 WHEN - - 99 THEN - CASE - - 85 WHEN 86 THEN 9 ELSE NULL END ELSE NULL END + - ( COALESCE ( + 83, + 77 * + - ( - 46 ) - 43, + - COALESCE ( - 57, - 31 ) ) ) * + 34 AS col1
----
NULL

query I rowsort
SELECT 95 - - 97
----
192

query I rowsort
SELECT ALL - 97 * + 27
----
-2619

query II rowsort
SELECT ALL + 25 + - 78 AS col2, + 66 + 1 AS col0
----
-53
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8748
SELECT DISTINCT - MAX( ALL 98 ) + + CASE 25 WHEN 85 + - 14 DIV + + 35 + 26 - - 55 * - 80 THEN - + 46 WHEN - + COUNT( DISTINCT - 86 ) THEN 56 END AS col2, 16 DIV + 99
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8748
SELECT DISTINCT - MAX ( ALL 98 ) + + CASE 25 WHEN 85 + - 14 / + + 35 + 26 - - 55 * - 80 THEN - + 46 WHEN - + COUNT ( DISTINCT - 86 ) THEN 56 END AS col2, 16 / + 99
----
NULL
0

query I rowsort
SELECT 85 * - + 89
----
-7565

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT 91 DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-8750
SELECT 91 / - + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT 27 + - - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8751
SELECT 27 + - - COUNT ( * ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 53 + - 16 + + 12 AS col1
----
-57

query I rowsort
SELECT DISTINCT + 80 * 62
----
4960

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL SUM( - 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL SUM ( - 26 ) AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT ALL CASE - ( - 12 ) WHEN 42 THEN - + COUNT( CAST( NULL AS SIGNED ) ) + COUNT( * ) END / - - 74 / - 26 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL CASE - ( - 12 ) WHEN 42 THEN - + COUNT ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) END / - - 74 / - 26 * COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT 17 DIV + + 2 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8756
SELECT 17 / + + 2 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT ALL + 35 DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL + 35 / 74 AS col1
----
0

query I rowsort
SELECT 0 * 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT SUM( - 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8759
SELECT SUM ( - 89 ) AS col0
----
-89

query I rowsort
SELECT - 68 * - 21 - 83
----
1345

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT MAX( 68 )
----
68

skipif mysql # not compatible
query I rowsort label-8761
SELECT MAX ( 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8762
SELECT 26 * - ( COALESCE ( - ( + 53 ), 76, 20 + - 28 ) ) * + COUNT( * ) - - - 29 * CASE - 9 WHEN - + 98 - + CAST( - + ( 32 ) AS SIGNED ) + 35 THEN NULL WHEN + + COUNT( * ) THEN NULL WHEN - + 41 * + 97 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT 26 * - ( COALESCE ( - ( + 53 ), 76, 20 + - 28 ) ) * + COUNT ( * ) - - - 29 * CASE - 9 WHEN - + 98 - + CAST ( - + ( 32 ) AS INTEGER ) + 35 THEN NULL WHEN + + COUNT ( * ) THEN NULL WHEN - + 41 * + 97 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT COUNT( * ) + - COUNT( ALL + 60 ) + + COUNT( 19 ) * + 32 col1
----
32

skipif mysql # not compatible
query I rowsort label-8763
SELECT COUNT ( * ) + - COUNT ( ALL + 60 ) + + COUNT ( 19 ) * + 32 col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT + - CAST( - 57 AS SIGNED ) col1
----
57

skipif mysql # not compatible
query I rowsort label-8764
SELECT + - CAST ( - 57 AS INTEGER ) col1
----
57

query I rowsort
SELECT ALL - 18 * + 46 AS col2
----
-828

query I rowsort
SELECT - CASE WHEN NULL >= 46 THEN - 38 END * + - 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8767
SELECT ALL - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8768
SELECT + 14 * - COUNT( * ) + + NULLIF ( MAX( - 33 ), + 78 DIV + COUNT( * ) ) DIV + + 9 - - CAST( + - 28 AS SIGNED ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-8768
SELECT + 14 * - COUNT ( * ) + + NULLIF ( MAX ( - 33 ), + 78 / + COUNT ( * ) ) / + + 9 - - CAST ( + - 28 AS INTEGER ) col2
----
-45

query I rowsort
SELECT + 19 * + 29 + - 26 AS col0
----
525

query II rowsort
SELECT ALL + 91 + - - 16, - 24 * - - 90 AS col1
----
107
-2160

query I rowsort
SELECT + + 83 * - 5 + ( - 39 ) + + 49 + - - 65
----
-340

query I rowsort
SELECT - 85 * + - 29 AS col2
----
2465

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT 5 * + COUNT( * ) * 4 - + - 45 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8773
SELECT 5 * + COUNT ( * ) * 4 - + - 45 AS col0
----
65

query I rowsort
SELECT ( - 79 ) + + 29
----
-50

query I rowsort
SELECT ALL 52 + - ( - 96 ) + + - 78 * - - 27
----
-1958

onlyif mysql # aggregate syntax: 
query II rowsort label-8776
SELECT ALL MIN( - 63 ) + - + 52 * + 91 AS col0, 6
----
-4795
6

skipif mysql # not compatible
query II rowsort label-8776
SELECT ALL MIN ( - 63 ) + - + 52 * + 91 AS col0, 6
----
-4795
6

query II rowsort
SELECT DISTINCT 80 * ( - 60 ), + 48 AS col2
----
-4800
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL COUNT( * ) + - 90 * 2
----
-179

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL COUNT ( * ) + - 90 * 2
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT + COUNT( * ) + + 59
----
60

skipif mysql # not compatible
query I rowsort label-8779
SELECT + COUNT ( * ) + + 59
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT + CAST( 61 AS SIGNED ) * - 94 * - 41 - - 51 AS col2
----
235145

skipif mysql # not compatible
query I rowsort label-8780
SELECT + CAST ( 61 AS INTEGER ) * - 94 * - 41 - - 51 AS col2
----
235145

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT + MAX( DISTINCT 12 ) * + - 96
----
-1152

skipif mysql # not compatible
query I rowsort label-8781
SELECT + MAX ( DISTINCT 12 ) * + - 96
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT - NULLIF ( + COUNT( - ( 91 ) ), + - 97 * - 65 + COUNT( * ) + 74 * + + 87 * + - CASE - - 90 WHEN ( MAX( + 45 ) ) THEN NULL WHEN - - 27 + + 50 THEN + - 66 ELSE + - 92 + + - 63 + - 40 END * 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-8782
SELECT - NULLIF ( + COUNT ( - ( 91 ) ), + - 97 * - 65 + COUNT ( * ) + 74 * + + 87 * + - CASE - - 90 WHEN ( MAX ( + 45 ) ) THEN NULL WHEN - - 27 + + 50 THEN + - 66 ELSE + - 92 + + - 63 + - 40 END * 56 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8783
SELECT ALL COUNT( * ) - 38 + - 30 + 60 * - 96 * + 12 col2, 52
----
-69187
52

skipif mysql # not compatible
query II rowsort label-8783
SELECT ALL COUNT ( * ) - 38 + - 30 + 60 * - 96 * + 12 col2, 52
----
-69187
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT SUM( - + 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT SUM ( - + 83 ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT ALL COUNT( * ) col1, 3
----
1
3

skipif mysql # not compatible
query II rowsort label-8785
SELECT ALL COUNT ( * ) col1, 3
----
1
3

query II rowsort
SELECT - 67 + - - 30 * + 61, - 11 AS col0
----
1763
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT - 26 * + CASE + COUNT( * ) WHEN - MIN( - 5 ) THEN - - 70 * + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT - 26 * + CASE + COUNT ( * ) WHEN - MIN ( - 5 ) THEN - - 70 * + + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - + 78, 56 ) * 70 AS col1
----
-5460

query I rowsort
SELECT + 31 + 80 * - 24
----
-1889

query I rowsort
SELECT + 90 * 60
----
5400

query I rowsort
SELECT - 8 + - 77 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - COUNT( * ) - + 77
----
-78

skipif mysql # not compatible
query I rowsort label-8792
SELECT - COUNT ( * ) - + 77
----
-78

query I rowsort
SELECT - 90 - - 30 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL + ( + - SUM( + + 13 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL + ( + - SUM ( + + 13 ) )
----
-13

query I rowsort
SELECT - 60 * - - 55 AS col2
----
-3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT ALL + ( + CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + ( + CAST ( COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8797
SELECT - NULLIF ( + COALESCE ( + 41, COUNT( * ) * 53 + COUNT( * ) ), 69 ) + 96 DIV + 97 col0
----
-41

skipif mysql # not compatible
query I rowsort label-8797
SELECT - NULLIF ( + COALESCE ( + 41, COUNT ( * ) * 53 + COUNT ( * ) ), 69 ) + 96 / + 97 col0
----
-41

query I rowsort
SELECT NULLIF ( 95, 66 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT 69 * + 0 + 29 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT 69 * + 0 + 29 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8800
SELECT ALL 82 * - CAST( + 76 AS SIGNED ) + COUNT( * )
----
-6231

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL 82 * - CAST ( + 76 AS INTEGER ) + COUNT ( * )
----
-6231

query I rowsort
SELECT - 94 * 26 AS col0
----
-2444

query I rowsort
SELECT ALL - 60 * 0
----
0

query I rowsort
SELECT DISTINCT 75 * - 65 + 60 AS col1
----
-4815

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL - COUNT( * ) * - 92 + + MAX( ALL 81 ) AS col1
----
173

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL - COUNT ( * ) * - 92 + + MAX ( ALL 81 ) AS col1
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT MAX( ALL - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8805
SELECT MAX ( ALL - 4 ) AS col1
----
-4

query I rowsort
SELECT + 34 + + 82 AS col2
----
116

query I rowsort
SELECT + 92 * 87
----
8004

query I rowsort
SELECT - ( - 31 ) * 83 AS col2
----
2573

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT - 80 - - 32 DIV 58
----
-80

skipif mysql # not compatible
query I rowsort label-8809
SELECT - 80 - - 32 / 58
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT MAX( DISTINCT 99 )
----
99

skipif mysql # not compatible
query I rowsort label-8810
SELECT MAX ( DISTINCT 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8811
SELECT + CAST( - COUNT( ALL 7 ) AS SIGNED ) - + 21 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8811
SELECT + CAST ( - COUNT ( ALL 7 ) AS INTEGER ) - + 21 AS col1
----
-22

query I rowsort
SELECT ALL ( - 78 ) * - 1 col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8813
SELECT DISTINCT MIN( ALL - 59 ) DIV + 29 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT MIN ( ALL - 59 ) / + 29 AS col2
----
-2

query I rowsort
SELECT + 68 + + 89
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-8815
SELECT + 26 DIV + ( + CASE WHEN 62 NOT BETWEEN 34 AND ( 35 ) THEN + 7 + - 47 DIV 25 ELSE 90 END )
----
4

skipif mysql # not compatible
query I rowsort label-8815
SELECT + 26 / + ( + CASE WHEN 62 NOT BETWEEN 34 AND ( 35 ) THEN + 7 + - 47 / 25 ELSE 90 END )
----
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8816
SELECT ALL NULLIF ( COALESCE ( + 16, 16 ), - 66 + 31 * - CAST( CAST( NULL AS SIGNED ) / + 25 AS DECIMAL ) ) * - 11
----
-176

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL NULLIF ( COALESCE ( + 16, 16 ), - 66 + 31 * - CAST ( CAST ( NULL AS INTEGER ) / + 25 AS REAL ) ) * - 11
----
-176

query I rowsort
SELECT + 3 - 22
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8818
SELECT - CASE 82 WHEN CAST( - COUNT( * ) AS SIGNED ) + ( 90 ) THEN + MIN( ( 41 ) ) - - 68 WHEN 45 * COUNT( * ) + 75 * 62 THEN + ( 75 ) * ( 15 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT - CASE 82 WHEN CAST ( - COUNT ( * ) AS INTEGER ) + ( 90 ) THEN + MIN ( ( 41 ) ) - - 68 WHEN 45 * COUNT ( * ) + 75 * 62 THEN + ( 75 ) * ( 15 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL COUNT( * ) * - 32
----
-32

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL COUNT ( * ) * - 32
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8820
SELECT + 90 DIV + ( - COUNT( * ) * MIN( 32 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8820
SELECT + 90 / + ( - COUNT ( * ) * MIN ( 32 ) ) AS col2
----
-2

query I rowsort
SELECT + 96 * 13 AS col0
----
1248

query I rowsort
SELECT + 67 + 62
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL NULLIF ( + 31, - 17 / + COALESCE ( 46 / - COUNT( * ), COUNT( * ) * + COUNT( * ) + - 58 * - 85, + 39 * + MAX( 92 ), + 83 / 19 + + 7 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL NULLIF ( + 31, - 17 / + COALESCE ( 46 / - COUNT ( * ), COUNT ( * ) * + COUNT ( * ) + - 58 * - 85, + 39 * + MAX ( 92 ), + 83 / 19 + + 7 ) ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT ALL + 0 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + 0 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 44 + - 64 * 29
----
-1812

query I rowsort
SELECT + - 35 * + 61
----
-2135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8827
SELECT - - NULLIF ( + 27, CAST( NULL AS SIGNED ) ) * COUNT( * ) col2
----
27

skipif mysql # not compatible
query I rowsort label-8827
SELECT - - NULLIF ( + 27, CAST ( NULL AS INTEGER ) ) * COUNT ( * ) col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8828
SELECT ALL 39 DIV 22 + 12 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL 39 / 22 + 12 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT - 30 * - COUNT( * ) - - 24 * + 10 AS col2
----
270

skipif mysql # not compatible
query I rowsort label-8829
SELECT - 30 * - COUNT ( * ) - - 24 * + 10 AS col2
----
270

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8830
SELECT ALL + NULLIF ( + ( 42 ), + 47 - 41 ) DIV + CAST( - 4 AS SIGNED ) + 95 DIV 22
----
-6

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + NULLIF ( + ( 42 ), + 47 - 41 ) / + CAST ( - 4 AS INTEGER ) + 95 / 22
----
-6

query I rowsort
SELECT - 59 + - 55 * 41 AS col0
----
-2314

query I rowsort
SELECT + - CASE - 92 WHEN - 10 / - 23 THEN NULL WHEN 68 + + 24 THEN - 29 - 82 / 66 END
----
NULL

query I rowsort
SELECT + + ( 86 ) * 5 + NULLIF ( 15, 12 )
----
445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8834
SELECT ALL - COUNT( * ) DIV - 41 + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - COUNT ( * ) / - 41 + 67 AS col2
----
67

query I rowsort
SELECT + NULLIF ( + 88, - 16 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL + MIN( ALL - 85 ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + MIN ( ALL - 85 ) col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8837
SELECT ALL - + COUNT( * ) DIV + 58 col0
----
0

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - + COUNT ( * ) / + 58 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT + COUNT( * ) + + 68 * - 37 AS col2
----
-2515

skipif mysql # not compatible
query I rowsort label-8838
SELECT + COUNT ( * ) + + 68 * - 37 AS col2
----
-2515

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT 43 * - MAX( 55 )
----
-2365

skipif mysql # not compatible
query I rowsort label-8839
SELECT 43 * - MAX ( 55 )
----
-2365

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT - 31 * COALESCE ( 61, SUM( + 8 ) )
----
-1891

skipif mysql # not compatible
query I rowsort label-8840
SELECT - 31 * COALESCE ( 61, SUM ( + 8 ) )
----
-1891

query I rowsort
SELECT + + COALESCE ( 58, + 29 ) * 68 + - 87
----
3857

query I rowsort
SELECT ALL - + COALESCE ( 54, 89 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT DISTINCT - COUNT( * ) * + SUM( 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT - COUNT ( * ) * + SUM ( 15 ) AS col1
----
-15

query I rowsort
SELECT ALL ( - 45 ) - 30
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT COUNT( * ) * - NULLIF ( 39, 24 )
----
-39

skipif mysql # not compatible
query I rowsort label-8845
SELECT COUNT ( * ) * - NULLIF ( 39, 24 )
----
-39

query I rowsort
SELECT ALL + 66 * + 14 * + 99
----
91476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT DISTINCT + COALESCE ( - 16, - 51, + 9 * - ( CAST( NULL AS SIGNED ) ) ) * 6 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT + COALESCE ( - 16, - 51, + 9 * - ( CAST ( NULL AS INTEGER ) ) ) * 6 AS col2
----
-96

query I rowsort
SELECT 1 * - 4 AS col0
----
-4

query I rowsort
SELECT ( - 85 ) * + 25
----
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT 26 + + 56 * MIN( 72 ) AS col0
----
4058

skipif mysql # not compatible
query I rowsort label-8850
SELECT 26 + + 56 * MIN ( 72 ) AS col0
----
4058

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT COUNT( * ) + + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-8851
SELECT COUNT ( * ) + + ( COUNT ( * ) )
----
2

query I rowsort
SELECT ALL 72 + 96 AS col2
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT ALL 31 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL 31 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL - COUNT( * ) + + 26 - - MIN( + 85 ) * ( NULLIF ( 59, 40 ) )
----
5040

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL - COUNT ( * ) + + 26 - - MIN ( + 85 ) * ( NULLIF ( 59, 40 ) )
----
5040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT 51 + + NULLIF ( 71, + CASE CAST( COUNT( * ) AS SIGNED ) WHEN 36 THEN ( COUNT( * ) ) - 95 END )
----
122

skipif mysql # not compatible
query I rowsort label-8855
SELECT 51 + + NULLIF ( 71, + CASE CAST ( COUNT ( * ) AS INTEGER ) WHEN 36 THEN ( COUNT ( * ) ) - 95 END )
----
122

query I rowsort
SELECT ALL 25 + ( - 39 ) + 49 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT ALL CAST( NULL AS SIGNED ) + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL CAST ( NULL AS INTEGER ) + - 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT 30 + MIN( + 6 ) * - 85
----
-480

skipif mysql # not compatible
query I rowsort label-8858
SELECT 30 + MIN ( + 6 ) * - 85
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT NULLIF ( 17, + 36 ) + - 89 * + COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8859
SELECT NULLIF ( 17, + 36 ) + - 89 * + COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT ( + 29 ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT + 29 + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8861
SELECT + 29 + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8862
SELECT COUNT( * ) - + NULLIF ( - MIN( ALL 30 ), 51 ) DIV - 14
----
-1

skipif mysql # not compatible
query I rowsort label-8862
SELECT COUNT ( * ) - + NULLIF ( - MIN ( ALL 30 ), 51 ) / - 14
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT ALL - SUM( - ( 56 ) )
----
56

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL - SUM ( - ( 56 ) )
----
56

query I rowsort
SELECT ALL - 92 + 82
----
-10

query I rowsort
SELECT DISTINCT 17 * 24 AS col2
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - 79 + - 89 + + COUNT( * ) * + 86 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8866
SELECT - 79 + - 89 + + COUNT ( * ) * + 86 AS col1
----
-82

query I rowsort
SELECT DISTINCT - COALESCE ( + + 23, ( + 52 ) + + 51 * + 39 )
----
-23

query I rowsort
SELECT ALL 62 - + + COALESCE ( - 84, 61, + 71 * 96 + - 97 ) AS col1
----
146

query I rowsort
SELECT 65 * - 14 col2
----
-910

query I rowsort
SELECT - 40 * 72 + + 35 + - 93 * 14 col1
----
-4147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT ALL - + CAST( + 75 AS SIGNED ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - + CAST ( + 75 AS INTEGER ) AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8872
SELECT 58 DIV + - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-8872
SELECT 58 / + - COUNT ( * )
----
-58

query I rowsort
SELECT + 29 * - 66 AS col2
----
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT DISTINCT COALESCE ( 98, 45 ) * - COUNT( * ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-8874
SELECT DISTINCT COALESCE ( 98, 45 ) * - COUNT ( * ) col1
----
-98

query I rowsort
SELECT ALL 57 * 36 AS col2
----
2052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT ALL - CAST( + 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL - CAST ( + 36 AS INTEGER )
----
-36

query I rowsort
SELECT DISTINCT - CASE - 89 WHEN + + 12 THEN + 59 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8878
SELECT COUNT( * ) DIV 56 * - - MAX( DISTINCT 44 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8878
SELECT COUNT ( * ) / 56 * - - MAX ( DISTINCT 44 ) AS col1
----
0

query I rowsort
SELECT 36 + + 10
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT 20 - + + 16 + - SUM( - 38 )
----
42

skipif mysql # not compatible
query I rowsort label-8880
SELECT 20 - + + 16 + - SUM ( - 38 )
----
42

query I rowsort
SELECT 29 - - - 53 + 60 * - 9
----
-564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8882
SELECT DISTINCT + 90 DIV - 64 * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT + 90 / - 64 * + COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT DISTINCT 13, - 93 AS col2
----
13
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT DISTINCT - 18 + 20 - + 29 + COUNT( * ) * 71 * - 71 AS col1
----
-5068

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT - 18 + 20 - + 29 + COUNT ( * ) * 71 * - 71 AS col1
----
-5068

query I rowsort
SELECT ALL 25 + - + 73 + 68
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT 61 * + CASE - COUNT( * ) WHEN 15 * 5 THEN 48 / COUNT( * ) END * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT 61 * + CASE - COUNT ( * ) WHEN 15 * 5 THEN 48 / COUNT ( * ) END * + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL - COUNT( * ) + - + 17 * - - 62 AS col1
----
-1055

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - COUNT ( * ) + - + 17 * - - 62 AS col1
----
-1055

query I rowsort
SELECT - - COALESCE ( - + 27, + - 74 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL + ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + ( + + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT 75 * + - 35 * - 70
----
183750

query II rowsort
SELECT - - 91 AS col2, + 83
----
91
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT 55 * - 55 + COUNT( * ) * COALESCE ( - 43, 9 )
----
-3068

skipif mysql # not compatible
query I rowsort label-8892
SELECT 55 * - 55 + COUNT ( * ) * COALESCE ( - 43, 9 )
----
-3068

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT + COUNT( * ) * - 1 + - 13 col0
----
-14

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT + COUNT ( * ) * - 1 + - 13 col0
----
-14

query I rowsort
SELECT DISTINCT - - 29 - 20 * + + 24
----
-451

query I rowsort
SELECT - + 75 * + 14 - + ( - 10 ) col2
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT 0 * - + 6 - - 29 + + CASE 92 WHEN COUNT( * ) * 9 THEN NULL WHEN + NULLIF ( - COUNT( * ), 44 * ( 34 ) ) THEN 91 + 94 WHEN - 47 THEN NULL ELSE NULL END / 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT 0 * - + 6 - - 29 + + CASE 92 WHEN COUNT ( * ) * 9 THEN NULL WHEN + NULLIF ( - COUNT ( * ), 44 * ( 34 ) ) THEN 91 + 94 WHEN - 47 THEN NULL ELSE NULL END / 66
----
NULL

query I rowsort
SELECT + - 36 * 42 AS col2
----
-1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8898
SELECT ALL + SUM( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT + 96 / CAST( NULL AS SIGNED ) + - 25 / - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT + 96 / CAST ( NULL AS INTEGER ) + - 25 / - 32 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8900
SELECT + + 20 DIV + + COALESCE ( CAST( NULL AS SIGNED ), + COUNT( + 15 ) ) + 90 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-8900
SELECT + + 20 / + + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( + 15 ) ) + 90 AS col2
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT + 66 * 4 * CAST( SUM( DISTINCT - 50 ) AS SIGNED ) + + 36 AS col1
----
-13164

skipif mysql # not compatible
query I rowsort label-8901
SELECT + 66 * 4 * CAST ( SUM ( DISTINCT - 50 ) AS INTEGER ) + + 36 AS col1
----
-13164

query I rowsort
SELECT DISTINCT + - 35
----
-35

query I rowsort
SELECT DISTINCT + 52 col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8904
SELECT + CAST( - NULLIF ( - - 69, - - 24 + - 57 ) AS SIGNED ) + MAX( 92 )
----
23

skipif mysql # not compatible
query I rowsort label-8904
SELECT + CAST ( - NULLIF ( - - 69, - - 24 + - 57 ) AS INTEGER ) + MAX ( 92 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT COUNT( 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8905
SELECT COUNT ( 52 ) AS col0
----
1

query I rowsort
SELECT - 80 + 96 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT 76 * + 56 + - 85 - - 64 + + COUNT( * ) * COUNT( * ) * - 77
----
4158

skipif mysql # not compatible
query I rowsort label-8907
SELECT 76 * + 56 + - 85 - - 64 + + COUNT ( * ) * COUNT ( * ) * - 77
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT ALL COUNT( * ) * - 88 * + 68 AS col1
----
-5984

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL COUNT ( * ) * - 88 * + 68 AS col1
----
-5984

query I rowsort
SELECT - 80 * 41 + + + ( + 69 ) + + 57
----
-3154

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT + CASE COUNT( * ) WHEN 64 THEN NULL WHEN + - 4 / - 89 THEN + 13 - 36 * 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT + CASE COUNT ( * ) WHEN 64 THEN NULL WHEN + - 4 / - 89 THEN + 13 - 36 * 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT + 44 + + - 74 + - 62 + 94 * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8911
SELECT + 44 + + - 74 + - 62 + 94 * + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT ALL + 9 * 94 + + CAST( 41 AS SIGNED ) AS col0
----
887

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL + 9 * 94 + + CAST ( 41 AS INTEGER ) AS col0
----
887

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT ALL - 4 + - 21 * + + 65 + - + 29 DIV + 74
----
-1369

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL - 4 + - 21 * + + 65 + - + 29 / + 74
----
-1369

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT 61 + - MIN( - 68 ) + + 37 col2
----
166

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT 61 + - MIN ( - 68 ) + + 37 col2
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT - CASE - - 51 WHEN 63 - - 94 / AVG ( 40 + 73 ) THEN 33 WHEN MIN( ALL - 84 ) + - 63 * CASE - 30 WHEN ( + 96 ) + COUNT( * ) THEN + 46 * CAST( - 85 AS SIGNED ) END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT - CASE - - 51 WHEN 63 - - 94 / AVG ( 40 + 73 ) THEN 33 WHEN MIN ( ALL - 84 ) + - 63 * CASE - 30 WHEN ( + 96 ) + COUNT ( * ) THEN + 46 * CAST ( - 85 AS INTEGER ) END THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8916
SELECT - COUNT( * ) DIV - SUM( NULLIF ( - 29, + 15 + 32 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8916
SELECT - COUNT ( * ) / - SUM ( NULLIF ( - 29, + 15 + 32 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT ALL + 41 DIV - + 6
----
-6

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + 41 / - + 6
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8918
SELECT - ( - 93 ) DIV 3 * + - 43 * - 20
----
26660

skipif mysql # not compatible
query I rowsort label-8918
SELECT - ( - 93 ) / 3 * + - 43 * - 20
----
26660

query I rowsort
SELECT ALL - 45 - - 58 AS col2
----
13

query I rowsort
SELECT ALL + 87 * + - ( 56 ) + + 32
----
-4840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL + - CAST( NULL AS SIGNED ) * - - 5 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL + - CAST ( NULL AS INTEGER ) * - - 5 col0
----
NULL

query I rowsort
SELECT - + 65 + - 21 col0
----
-86

query I rowsort
SELECT - + 15 + - 34
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8924
SELECT - - 46 * + + ( 0 ) DIV + MAX( + 51 ) - + 98 * - 21 col0
----
2058

skipif mysql # not compatible
query I rowsort label-8924
SELECT - - 46 * + + ( 0 ) / + MAX ( + 51 ) - + 98 * - 21 col0
----
2058

query I rowsort
SELECT + 97 + + 91
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT ( + COUNT ( * ) ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8927
SELECT ALL 80 DIV + - 66 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL 80 / + - 66 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT - + MIN( - - 52 ) * - 42 + + 27
----
2211

skipif mysql # not compatible
query I rowsort label-8928
SELECT - + MIN ( - - 52 ) * - 42 + + 27
----
2211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT ALL + 8 * - CAST( NULL AS SIGNED ) + + - 66 + + - 84 * 67 * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + 8 * - CAST ( NULL AS INTEGER ) + + - 66 + + - 84 * 67 * + 34
----
NULL

query I rowsort
SELECT 80 * - + 36 + + 45 + - 32 * + ( + 96 ) * 12
----
-39699

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT - 74 DIV + 14 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8931
SELECT - 74 / + 14 AS col2
----
-5

query I rowsort
SELECT ( + 46 ) col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT ALL + 59 DIV + 3 + ( + COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + 59 / + 3 + ( + COUNT ( * ) )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT ALL 56 DIV + 59 col1
----
0

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL 56 / + 59 col1
----
0

query I rowsort
SELECT + CASE + - 23 WHEN 87 THEN - 71 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8936
SELECT ALL + CASE - 0 WHEN 88 THEN NULL WHEN 24 * + + 87 + - CAST( NULL AS SIGNED ) THEN - 87 * + 33 WHEN + COUNT( * ) THEN NULL ELSE NULL END * 17 + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + CASE - 0 WHEN 88 THEN NULL WHEN 24 * + + 87 + - CAST ( NULL AS INTEGER ) THEN - 87 * + 33 WHEN + COUNT ( * ) THEN NULL ELSE NULL END * 17 + 60
----
NULL

query I rowsort
SELECT ALL - 82 * + 74 + + 3 + 41 * + 56 + + 38
----
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL 50 * COUNT( * ) + + 30 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL 50 * COUNT ( * ) + + 30 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT CASE 71 WHEN + 69 THEN - MIN( 32 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT CASE 71 WHEN + 69 THEN - MIN ( 32 ) END
----
NULL

query I rowsort
SELECT NULLIF ( 2, + 0 ) col0
----
2

query I rowsort
SELECT + 31 + + 3 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT + CASE + + 22 WHEN + - 32 * - 13 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT + CASE + + 22 WHEN + - 32 * - 13 THEN - + COUNT ( * ) END
----
NULL

query II rowsort
SELECT + 16 AS col0, 77
----
16
77

query I rowsort
SELECT DISTINCT 93 * - 59 - + - 37 * 46
----
-3785

query I rowsort
SELECT DISTINCT 83 * + 65 col0
----
5395

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT + + 36 * 68 + - 58 * + COUNT( * ) AS col1
----
2390

skipif mysql # not compatible
query I rowsort label-8946
SELECT + + 36 * 68 + - 58 * + COUNT ( * ) AS col1
----
2390

query I rowsort
SELECT - ( + + 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT 1 - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT 1 - - COUNT ( * )
----
2

query I rowsort
SELECT ALL ( + - 55 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8950
SELECT + CAST( + 24 AS SIGNED ) * 69 DIV + CASE - 62 WHEN + 28 THEN - 81 * 40 - - 50 * 77 ELSE - 88 * - 71 END
----
0

skipif mysql # not compatible
query I rowsort label-8950
SELECT + CAST ( + 24 AS INTEGER ) * 69 / + CASE - 62 WHEN + 28 THEN - 81 * 40 - - 50 * 77 ELSE - 88 * - 71 END
----
0

query II rowsort
SELECT 30 * + ( - 35 ) AS col1, + 18 AS col0
----
-1050
18

query II rowsort
SELECT ALL 7 AS col0, 50
----
7
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT DISTINCT - - 62 DIV + + ( + + ( - 2 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT - - 62 / + + ( + + ( - 2 ) )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT ALL - NULLIF ( - 46, 49 ) DIV 58 * COALESCE ( 13, - 89 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL - NULLIF ( - 46, 49 ) / 58 * COALESCE ( 13, - 89 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL + - 49 * + COALESCE ( - COUNT( * ), + CASE + COUNT( * ) WHEN 99 THEN 60 * - COUNT( * ) END * - 29 )
----
49

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + - 49 * + COALESCE ( - COUNT ( * ), + CASE + COUNT ( * ) WHEN 99 THEN 60 * - COUNT ( * ) END * - 29 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT - COUNT( * ) * 27
----
-27

skipif mysql # not compatible
query I rowsort label-8956
SELECT - COUNT ( * ) * 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL COUNT( - + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL COUNT ( - + 50 )
----
1

query I rowsort
SELECT DISTINCT 13 * + + 2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT 2 DIV + 87 col0
----
0

skipif mysql # not compatible
query I rowsort label-8959
SELECT 2 / + 87 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT ALL - CAST( NULL AS SIGNED ) + + - 19 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 19 col2
----
NULL

query II rowsort
SELECT DISTINCT + 4 col1, + 38
----
4
38

query I rowsort
SELECT ALL + + 57 * ( + + 29 )
----
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + COUNT( * ) + + 76 + 75 * 70 AS col1
----
5327

skipif mysql # not compatible
query I rowsort label-8963
SELECT + COUNT ( * ) + + 76 + 75 * 70 AS col1
----
5327

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8964
SELECT ALL - ( - + 37 ) + - COUNT( * ) * - 97 + - + COALESCE ( - 49, 17 ) DIV + 5 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - ( - + 37 ) + - COUNT ( * ) * - 97 + - + COALESCE ( - 49, 17 ) / + 5 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT COUNT( * ) * - 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8965
SELECT COUNT ( * ) * - 19 AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8966
SELECT - COUNT( * ) DIV + 45 + 38
----
38

skipif mysql # not compatible
query I rowsort label-8966
SELECT - COUNT ( * ) / + 45 + 38
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT ALL - CAST( + - 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL - CAST ( + - 63 AS INTEGER )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL - COUNT( * ) + ( 42 ) * + 56 + + + 66 AS col2
----
2417

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL - COUNT ( * ) + ( 42 ) * + 56 + + + 66 AS col2
----
2417

query I rowsort
SELECT ALL + 86 + - - 37 + - 18 + 86
----
191

query I rowsort
SELECT DISTINCT - ( - 37 ) + - 56
----
-19

query II rowsort
SELECT 50 * - 35 * + 99 + + 46 col1, 98 AS col2
----
-173204
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL - MAX( - + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL - MAX ( - + 50 ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT 64 + - - 56 - - - 38 DIV - 45
----
120

skipif mysql # not compatible
query I rowsort label-8973
SELECT 64 + - - 56 - - - 38 / - 45
----
120

query I rowsort
SELECT 35 * + 13 * - 15 col2
----
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - 41 * ( - ( - MIN( DISTINCT + - 27 ) ) ) * - 80 * 20 + - COUNT( * )
----
-1771201

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - 41 * ( - ( - MIN ( DISTINCT + - 27 ) ) ) * - 80 * 20 + - COUNT ( * )
----
-1771201

query I rowsort
SELECT ALL + 87 - + + 86
----
1

query I rowsort
SELECT DISTINCT + 96 * NULLIF ( - 21, - 49 - 70 ) AS col1
----
-2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8978
SELECT 80 DIV CASE - 83 WHEN + 86 * + 57 * 58 * - 40 THEN NULL WHEN 38 THEN - 12 ELSE + 81 + COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT 80 / CASE - 83 WHEN + 86 * + 57 * 58 * - 40 THEN NULL WHEN 38 THEN - 12 ELSE + 81 + COUNT ( * ) END
----
0

query I rowsort
SELECT + 94 * - 86 + + 1 AS col2
----
-8083

onlyif mysql # aggregate syntax: 
query II rowsort label-8980
SELECT - 90, MIN( + + 7 ) AS col2
----
-90
7

skipif mysql # not compatible
query II rowsort label-8980
SELECT - 90, MIN ( + + 7 ) AS col2
----
-90
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT 68 + + CAST( - - 92 AS SIGNED )
----
160

skipif mysql # not compatible
query I rowsort label-8981
SELECT 68 + + CAST ( - - 92 AS INTEGER )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL MIN( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL MIN ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT - 87 * - NULLIF ( + 25, MAX( ALL 59 ) ) col2
----
2175

skipif mysql # not compatible
query I rowsort label-8983
SELECT - 87 * - NULLIF ( + 25, MAX ( ALL 59 ) ) col2
----
2175

query I rowsort
SELECT + 96 + + + 30 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL + ( + - MIN( ALL 34 ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + ( + - MIN ( ALL 34 ) ) AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT + 23 * - - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8986
SELECT + 23 * - - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL CASE - 82 WHEN + 6 THEN + 18 / + + 96 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT - 46 + - COUNT( * ) - - ( - 7 ) * - 30 * 11 AS col1
----
2263

skipif mysql # not compatible
query I rowsort label-8988
SELECT - 46 + - COUNT ( * ) - - ( - 7 ) * - 30 * 11 AS col1
----
2263

query I rowsort
SELECT ( - 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT - 73 + - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-8990
SELECT - 73 + - COUNT ( * )
----
-74

query I rowsort
SELECT ALL 42 + + 29 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT CAST( - + 46 AS SIGNED ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-8992
SELECT CAST ( - + 46 AS INTEGER ) AS col2
----
-46

query II rowsort
SELECT 20 * - 20 AS col2, + 22
----
-400
22

query I rowsort
SELECT 55 + + 53 * + 22 + 38
----
1259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8995
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) col2, ( ( + 51 ) )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-8995
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2, ( ( + 51 ) )
----
NULL
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8996
SELECT DISTINCT 92 DIV - - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT 92 / - - COUNT ( * ) AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8997
SELECT ALL CASE - 65 WHEN + ( - 16 ) THEN + + NULLIF ( + - 12, + 0 ) WHEN CASE WHEN NOT - COUNT( DISTINCT 62 ) >= CAST( NULL AS SIGNED ) - 21 THEN NULL WHEN NOT 30 NOT IN ( + 81 ) THEN - 99 * 67 ELSE NULL END THEN NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL CASE - 65 WHEN + ( - 16 ) THEN + + NULLIF ( + - 12, + 0 ) WHEN CASE WHEN NOT - COUNT ( DISTINCT 62 ) >= CAST ( NULL AS INTEGER ) - 21 THEN NULL WHEN NOT 30 NOT IN ( + 81 ) THEN - 99 * 67 ELSE NULL END THEN NULL END + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 72 * + 48
----
3456

query I rowsort
SELECT ALL 99 * 43 + - + 59 * 1 * 40 + - 38 AS col2
----
1859

onlyif mysql # aggregate syntax: 
query II rowsort label-9000
SELECT ALL COUNT( * ) * - 55, 61 * + + 81 * + CASE - COUNT( * ) WHEN + 40 / 89 + COUNT( * ) THEN NULL WHEN + COUNT( ALL + 99 ) THEN NULL WHEN 97 THEN 42 END * 50 AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-9000
SELECT ALL COUNT ( * ) * - 55, 61 * + + 81 * + CASE - COUNT ( * ) WHEN + 40 / 89 + COUNT ( * ) THEN NULL WHEN + COUNT ( ALL + 99 ) THEN NULL WHEN 97 THEN 42 END * 50 AS col1
----
-55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL - CASE COUNT( * ) WHEN - 66 * + CASE - COUNT( * ) WHEN + COUNT( * ) * - + 2 * CASE 25 WHEN 75 / MAX( 22 * 8 ) THEN + 75 ELSE NULL END THEN + 6 * + 51 ELSE NULL END + - 80 THEN + ( + 86 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL - CASE COUNT ( * ) WHEN - 66 * + CASE - COUNT ( * ) WHEN + COUNT ( * ) * - + 2 * CASE 25 WHEN 75 / MAX ( 22 * 8 ) THEN + 75 ELSE NULL END THEN + 6 * + 51 ELSE NULL END + - 80 THEN + ( + 86 ) END
----
NULL

query I rowsort
SELECT 45 * - 71
----
-3195

query I rowsort
SELECT 80 * + 60
----
4800

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT DISTINCT - SUM( + 82 ) AS col1, 23
----
-82
23

skipif mysql # not compatible
query II rowsort label-9004
SELECT DISTINCT - SUM ( + 82 ) AS col1, 23
----
-82
23

query I rowsort
SELECT 70 * + 41
----
2870

query I rowsort
SELECT DISTINCT - 10 * 79
----
-790

query I rowsort
SELECT ALL + ( + 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL + NULLIF ( - - COUNT( * ), + 56 * + 57 * - 94 / 98 / + COUNT( * ) * - 8 + MAX( ALL 77 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL + NULLIF ( - - COUNT ( * ), + 56 * + 57 * - 94 / 98 / + COUNT ( * ) * - 8 + MAX ( ALL 77 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT + 47 * - 74 + - - CAST( NULL AS SIGNED ) * COUNT( * ) + + 83 / + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT + 47 * - 74 + - - CAST ( NULL AS INTEGER ) * COUNT ( * ) + + 83 / + - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT - COUNT( * ) * - 82 col0
----
82

skipif mysql # not compatible
query I rowsort label-9010
SELECT - COUNT ( * ) * - 82 col0
----
82

query I rowsort
SELECT - + 3 + - ( - 9 ) AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT ALL - + CAST( NULL AS SIGNED ) * + 71 / 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 71 / 6 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT CAST( 62 AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9013
SELECT CAST ( 62 AS INTEGER ) AS col0
----
62

query II rowsort
SELECT ALL - 64 * - - 71, 23 AS col0
----
-4544
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9015
SELECT + + 53 DIV - + COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9015
SELECT + + 53 / - + COUNT ( * ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9016
SELECT + MAX( - 53 ) + CAST( COUNT( * ) AS SIGNED ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-9016
SELECT + MAX ( - 53 ) + CAST ( COUNT ( * ) AS INTEGER ) col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT DISTINCT - 14 + NULLIF ( - 96, - CAST( NULL AS SIGNED ) / - NULLIF ( - 1, + + 7 ) + + 68 )
----
-110

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT - 14 + NULLIF ( - 96, - CAST ( NULL AS INTEGER ) / - NULLIF ( - 1, + + 7 ) + + 68 )
----
-110

query I rowsort
SELECT ALL 47 + 91 * - - 45 AS col1
----
4142

query I rowsort
SELECT + 16 * - 22
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT + + NULLIF ( 5, + 49 ) + - MAX( DISTINCT - 86 ) - - - 92 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT + + NULLIF ( 5, + 49 ) + - MAX ( DISTINCT - 86 ) - - - 92 AS col1
----
-1

query I rowsort
SELECT - - 15 - - CASE - + 31 WHEN + NULLIF ( + ( + + 44 ), 43 ) + 14 THEN 7 * 25 + 64 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - + COALESCE ( - - 94, - - 46 ) - + COUNT( * ) + + 85
----
-10

skipif mysql # not compatible
query I rowsort label-9022
SELECT - + COALESCE ( - - 94, - - 46 ) - + COUNT ( * ) + + 85
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL + SUM( + 48 ) + + 64 * + + 16 * + 33
----
33840

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL + SUM ( + 48 ) + + 64 * + + 16 * + 33
----
33840

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT DISTINCT NULLIF ( + 32, COUNT( * ) ) + + + COUNT( + 63 ) * + 38 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT NULLIF ( + 32, COUNT ( * ) ) + + + COUNT ( + 63 ) * + 38 AS col1
----
70

query I rowsort
SELECT DISTINCT 68 * - 30
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL 33 + + MAX( DISTINCT 26 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL 33 + + MAX ( DISTINCT 26 ) AS col2
----
59

query II rowsort
SELECT ALL 82 AS col1, + 26
----
82
26

query I rowsort
SELECT ALL 3 * - - 89
----
267

query I rowsort
SELECT + 26 * + 11 * - - 37
----
10582

query I rowsort
SELECT + 85 + + 62 col0
----
147

query II rowsort
SELECT 95 col0, - 38 + - 14 AS col2
----
95
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9032
SELECT ( - ( - COUNT( * ) ) ) AS col0, 77 * - 99 + - - 32 * 36 AS col0
----
1
-6471

skipif mysql # not compatible
query II rowsort label-9032
SELECT ( - ( - COUNT ( * ) ) ) AS col0, 77 * - 99 + - - 32 * 36 AS col0
----
1
-6471

query I rowsort
SELECT ( - - 15 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT COUNT( - + 37 ) * - 33 + - - COUNT( * ) + - - 76 DIV NULLIF ( - 45, 37 )
----
-33

skipif mysql # not compatible
query I rowsort label-9034
SELECT COUNT ( - + 37 ) * - 33 + - - COUNT ( * ) + - - 76 / NULLIF ( - 45, 37 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT - MIN( DISTINCT + 61 ) * - 84, 19 AS col0
----
5124
19

skipif mysql # not compatible
query II rowsort label-9035
SELECT - MIN ( DISTINCT + 61 ) * - 84, 19 AS col0
----
5124
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9036
SELECT ALL 90 DIV + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL 90 / + COUNT ( * )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9037
SELECT + 55 + + + 74 + CAST( - COUNT( * ) AS SIGNED ), + 23 AS col0
----
128
23

skipif mysql # not compatible
query II rowsort label-9037
SELECT + 55 + + + 74 + CAST ( - COUNT ( * ) AS INTEGER ), + 23 AS col0
----
128
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT ALL + 6 * + ( - CAST( NULL AS SIGNED ) ) - + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + 6 * + ( - CAST ( NULL AS INTEGER ) ) - + 20 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 96 * - 20
----
-1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9040
SELECT ALL NULLIF ( SUM( + + 35 ), - - MIN( DISTINCT - 20 ) ) DIV + 4, - COUNT( * ) AS col0
----
8
-1

skipif mysql # not compatible
query II rowsort label-9040
SELECT ALL NULLIF ( SUM ( + + 35 ), - - MIN ( DISTINCT - 20 ) ) / + 4, - COUNT ( * ) AS col0
----
8
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9041
SELECT ALL 55 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL 55 / + 90 AS col1
----
0

query I rowsort
SELECT ALL - 24 * 58 col1
----
-1392

query I rowsort
SELECT - 25 * - NULLIF ( + - 47, - ( - + 44 ) ) col0
----
-1175

query II rowsort
SELECT DISTINCT + 21, CASE WHEN NOT + 98 IS NULL THEN 34 END AS col0
----
21
34

query I rowsort
SELECT ( - - NULLIF ( 70, - 34 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9046
SELECT DISTINCT + COUNT( * ), 30 AS col0
----
1
30

skipif mysql # not compatible
query II rowsort label-9046
SELECT DISTINCT + COUNT ( * ), 30 AS col0
----
1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL - COUNT( * ) * - 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL - COUNT ( * ) * - 26 AS col2
----
26

query I rowsort
SELECT CASE + 48 WHEN + ( 20 ) THEN NULL ELSE + 50 * + 74 * + - 7 END AS col1
----
-25900

query I rowsort
SELECT - + 57 * + 54 AS col0
----
-3078

query II rowsort
SELECT + - 39 AS col1, - 44
----
-39
-44

query I rowsort
SELECT ALL + - 95 AS col0
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9052
SELECT ALL + 7 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + 7 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 78 * - - 73
----
-5694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 3 + - - 58 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 3 + - - 58 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 90 col0, 70 + - 67 col0
----
90
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9056
SELECT ALL 14 * - 97 + - CAST( NULL AS SIGNED ) + + COUNT( * ) + - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL 14 * - 97 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 79 AS col1
----
NULL

query I rowsort
SELECT ALL - 1 * 9 + 38 * + + 96
----
3639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL + - CASE + + CASE 38 WHEN + 9 THEN NULL ELSE + 77 END WHEN + 13 THEN NULL WHEN 66 - 27 + - 20 * 70 THEN 80 * + CASE + 40 WHEN - COUNT( * ) - - 92 THEN CAST( NULL AS SIGNED ) + + 94 ELSE NULL END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL + - CASE + + CASE 38 WHEN + 9 THEN NULL ELSE + 77 END WHEN + 13 THEN NULL WHEN 66 - 27 + - 20 * 70 THEN 80 * + CASE + 40 WHEN - COUNT ( * ) - - 92 THEN CAST ( NULL AS INTEGER ) + + 94 ELSE NULL END ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 80 + 40 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT - + COALESCE ( 63, - 9 + 50 + + - CASE ( 29 ) WHEN + 0 THEN NULL ELSE - MAX( DISTINCT - 15 ) END + - 89 )
----
-63

skipif mysql # not compatible
query I rowsort label-9060
SELECT - + COALESCE ( 63, - 9 + 50 + + - CASE ( 29 ) WHEN + 0 THEN NULL ELSE - MAX ( DISTINCT - 15 ) END + - 89 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT - ( 22 ) + - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9061
SELECT - ( 22 ) + - COUNT ( * )
----
-23

query I rowsort
SELECT ALL - 89 + - 78 AS col0
----
-167

query I rowsort
SELECT ALL + 31 * - + 80
----
-2480

query I rowsort
SELECT - 8 + - 50
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL ( - - SUM( ALL - - 1 ) ) - CAST( - 48 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL ( - - SUM ( ALL - - 1 ) ) - CAST ( - 48 AS INTEGER )
----
49

query I rowsort
SELECT DISTINCT - ( 90 ) AS col2
----
-90

query I rowsort
SELECT ALL - 40 * 18 + - + 43 * + 80 AS col2
----
-4160

query I rowsort
SELECT - 39 + - 60 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + SUM( 62 ) * - 50 AS col0
----
-3100

skipif mysql # not compatible
query I rowsort label-9069
SELECT + SUM ( 62 ) * - 50 AS col0
----
-3100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9070
SELECT + COALESCE ( 21, + 78 + + 41 ) + - 28 DIV - CAST( + NULLIF ( - - 25, + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9070
SELECT + COALESCE ( 21, + 78 + + 41 ) + - 28 / - CAST ( + NULLIF ( - - 25, + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9071
SELECT ALL + 18 - - COUNT( * ) DIV + - 42 * 9 + - - 71 + - COALESCE ( 24, 34 DIV - - 67 * 47 + - NULLIF ( - 70, AVG ( + 57 ) + COUNT( * ) ) + 62 ) DIV + 32
----
89

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + 18 - - COUNT ( * ) / + - 42 * 9 + - - 71 + - COALESCE ( 24, 34 / - - 67 * 47 + - NULLIF ( - 70, AVG ( + 57 ) + COUNT ( * ) ) + 62 ) / + 32
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9072
SELECT + 91 + + 75 DIV COUNT( * ) AS col2
----
166

skipif mysql # not compatible
query I rowsort label-9072
SELECT + 91 + + 75 / COUNT ( * ) AS col2
----
166

query I rowsort
SELECT - 3 * 85 * - 72 AS col1
----
18360

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + 9 * - 67 * - - COUNT( * ) AS col1
----
-603

skipif mysql # not compatible
query I rowsort label-9074
SELECT + 9 * - 67 * - - COUNT ( * ) AS col1
----
-603

query I rowsort
SELECT + ( - 35 ) + + 90 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT - CAST( + - 8 AS SIGNED ) col2
----
8

skipif mysql # not compatible
query I rowsort label-9076
SELECT - CAST ( + - 8 AS INTEGER ) col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT + COUNT( * ) * + - 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9077
SELECT + COUNT ( * ) * + - 95 AS col2
----
-95

query I rowsort
SELECT DISTINCT 84 * 5 * + 48
----
20160

query I rowsort
SELECT DISTINCT + 37 * 67 col0
----
2479

query II rowsort
SELECT ALL 14 * + 69 col2, 96 col1
----
966
96

onlyif mysql # aggregate syntax: 
query III rowsort label-9081
SELECT DISTINCT 49 * 44 AS col1, - 44 + - - 27 * + MAX( ALL - ( - + 1 ) ), 95 * + 41 AS col0
----
2156
-17
3895

skipif mysql # not compatible
query III rowsort label-9081
SELECT DISTINCT 49 * 44 AS col1, - 44 + - - 27 * + MAX ( ALL - ( - + 1 ) ), 95 * + 41 AS col0
----
2156
-17
3895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT ( + CAST( 5 AS SIGNED ) ) * + + ( + 55 ) AS col1
----
275

skipif mysql # not compatible
query I rowsort label-9082
SELECT ( + CAST ( 5 AS INTEGER ) ) * + + ( + 55 ) AS col1
----
275

query I rowsort
SELECT ALL - 34 col2
----
-34

query I rowsort
SELECT 79 - + 49 * - 24
----
1255

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT - COUNT( * ) + 83 AS col0, 14 * - - 22
----
82
308

skipif mysql # not compatible
query II rowsort label-9085
SELECT - COUNT ( * ) + 83 AS col0, 14 * - - 22
----
82
308

query I rowsort
SELECT DISTINCT - 95 + + 90 AS col1
----
-5

query I rowsort
SELECT ALL 23 + - 94
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-9088
SELECT 84 DIV - 98, 70 AS col0
----
0
70

skipif mysql # not compatible
query II rowsort label-9088
SELECT 84 / - 98, 70 AS col0
----
0
70

query I rowsort
SELECT DISTINCT + + 53 + + 55 AS col2
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-9090
SELECT ALL - - ( + NULLIF ( - 57, + COUNT( * ) ) ) AS col0, 52 * 40 * - COUNT( * ) * - 58
----
-57
120640

skipif mysql # not compatible
query II rowsort label-9090
SELECT ALL - - ( + NULLIF ( - 57, + COUNT ( * ) ) ) AS col0, 52 * 40 * - COUNT ( * ) * - 58
----
-57
120640

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT + MAX( DISTINCT 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9091
SELECT + MAX ( DISTINCT 35 ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT ALL - ( - CAST( 31 AS SIGNED ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL - ( - CAST ( 31 AS INTEGER ) ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9093
SELECT - ( - 74 ) * CAST( 1 AS SIGNED ) / + - 76 * 27 + + + ( 53 ) + + 17 + 97 + CASE + 49 WHEN - 56 * + MAX( ALL 42 ) + 33 THEN - 48 + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT - ( - 74 ) * CAST ( 1 AS INTEGER ) / + - 76 * 27 + + + ( 53 ) + + 17 + 97 + CASE + 49 WHEN - 56 * + MAX ( ALL 42 ) + 33 THEN - 48 + 70 ELSE NULL END
----
NULL

query I rowsort
SELECT 53 + - 93 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9095
SELECT ALL + 21 + + 22 AS col0, + COUNT( DISTINCT - - 27 )
----
43
1

skipif mysql # not compatible
query II rowsort label-9095
SELECT ALL + 21 + + 22 AS col0, + COUNT ( DISTINCT - - 27 )
----
43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT 2 + - NULLIF ( 67, - MIN( ALL + 20 ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9096
SELECT 2 + - NULLIF ( 67, - MIN ( ALL + 20 ) ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT DISTINCT - - 36 + + 68, 91 + + - COUNT( + 25 ) * - 61 col0
----
104
152

skipif mysql # not compatible
query II rowsort label-9097
SELECT DISTINCT - - 36 + + 68, 91 + + - COUNT ( + 25 ) * - 61 col0
----
104
152

query I rowsort
SELECT ALL - 38 - + 96 * + 46 - - 67
----
-4387

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL SUM( DISTINCT + ( + 75 ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL SUM ( DISTINCT + ( + 75 ) ) AS col2
----
75

query I rowsort
SELECT AVG ( ALL + NULLIF ( CASE + - 95 WHEN - - ( - 67 ) THEN NULL WHEN + - 51 + + 47 + + + 90 * - 43 THEN - 48 END, COALESCE ( + 79, + 57, 60 ) ) )
----
NULL

query I rowsort
SELECT DISTINCT - 30 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9102
SELECT ALL + CAST( NULL AS DECIMAL ) / - - CAST( 14 AS SIGNED ) / + ( + ( - - 63 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + CAST ( NULL AS REAL ) / - - CAST ( 14 AS INTEGER ) / + ( + ( - - 63 ) ) AS col0
----
NULL

query I rowsort
SELECT 35 - + 75 col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9104
SELECT DISTINCT + 14 * - 8 DIV COUNT( * )
----
-112

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT + 14 * - 8 / COUNT ( * )
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT 45 - COUNT( * ) + + 50 AS col1, + 82
----
94
82

skipif mysql # not compatible
query II rowsort label-9105
SELECT 45 - COUNT ( * ) + + 50 AS col1, + 82
----
94
82

query II rowsort
SELECT 47, 37 AS col1
----
47
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT CASE - 82 WHEN - COALESCE ( - 10, 7 / - NULLIF ( - - 1, + 44 ) ) THEN NULL ELSE - 40 END * + 33 + + COUNT( * )
----
-1319

skipif mysql # not compatible
query I rowsort label-9107
SELECT CASE - 82 WHEN - COALESCE ( - 10, 7 / - NULLIF ( - - 1, + 44 ) ) THEN NULL ELSE - 40 END * + 33 + + COUNT ( * )
----
-1319

query I rowsort
SELECT ALL + 96 * 5
----
480

query I rowsort
SELECT 80 - - - 81 col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT 54 + + 80 DIV + ( + + ( - 81 ) )
----
54

skipif mysql # not compatible
query I rowsort label-9110
SELECT 54 + + 80 / + ( + + ( - 81 ) )
----
54

query I rowsort
SELECT 89 - + + 54 + 8 + + 20 * - 14 * + 11 * - 85 AS col2
----
261843

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT DISTINCT - 69 DIV - - 85 col2
----
0

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - 69 / - - 85 col2
----
0

query I rowsort
SELECT 63 + - 47 AS col0
----
16

query I rowsort
SELECT 99 * + 12 col0
----
1188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT + COUNT( * ) DIV 22 + ( ( 99 ) ) + + 6 DIV - 39 * + + 9 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9115
SELECT + COUNT ( * ) / 22 + ( ( 99 ) ) + + 6 / - 39 * + + 9 AS col1
----
99

query I rowsort
SELECT ALL 36 + + + 4 + - 82 AS col1
----
-42

query I rowsort
SELECT DISTINCT - ( - 39 ) col1
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9118
SELECT DISTINCT - 49 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT - 49 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL - CASE - + 19 WHEN CASE - 84 WHEN 74 THEN 65 * - + 64 - - 22 - 89 + - + 44 + + 82 * 51 * - MIN( DISTINCT - 61 ) END THEN 60 - COUNT( * ) WHEN CASE - 11 WHEN - ( NULLIF ( ( - COUNT( - 16 ) ), + 45 * 76 ) ) - ( - 2 ) * 87 THEN NULL ELSE - AVG ( DISTINCT - 39 ) * 40 END - ( + 10 + + 1 ) * 23 THEN NULL END + 64 * CASE - 39 WHEN + NULLIF ( + 46, - 22 + - 38 ) - - 26 * + 65 THEN 12 * 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - CASE - + 19 WHEN CASE - 84 WHEN 74 THEN 65 * - + 64 - - 22 - 89 + - + 44 + + 82 * 51 * - MIN ( DISTINCT - 61 ) END THEN 60 - COUNT ( * ) WHEN CASE - 11 WHEN - ( NULLIF ( ( - COUNT ( - 16 ) ), + 45 * 76 ) ) - ( - 2 ) * 87 THEN NULL ELSE - AVG ( DISTINCT - 39 ) * 40 END - ( + 10 + + 1 ) * 23 THEN NULL END + 64 * CASE - 39 WHEN + NULLIF ( + 46, - 22 + - 38 ) - - 26 * + 65 THEN 12 * 7 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT ALL - + 72 + + - COALESCE ( 60, - - 72 * - - 98 + 48 * - - COALESCE ( - + 50, 55, + CAST( 95 AS SIGNED ) ) + - ( - 52 ) ) * + 72 AS col0
----
-4392

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL - + 72 + + - COALESCE ( 60, - - 72 * - - 98 + 48 * - - COALESCE ( - + 50, 55, + CAST ( 95 AS INTEGER ) ) + - ( - 52 ) ) * + 72 AS col0
----
-4392

query I rowsort
SELECT DISTINCT + + 9 + 8 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT COUNT( * ) * - 68 * - - 42 * 44 * + 48
----
-6031872

skipif mysql # not compatible
query I rowsort label-9122
SELECT COUNT ( * ) * - 68 * - - 42 * 44 * + 48
----
-6031872

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL 57 * 49 * COUNT( * ) + - 94 * - 38 AS col2
----
6365

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL 57 * 49 * COUNT ( * ) + - 94 * - 38 AS col2
----
6365

query I rowsort
SELECT 37 + - + 30 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT NULLIF ( 0, - - 96 * + - NULLIF ( + 25, - 79 + + - MIN( DISTINCT - 61 ) + + 59 + 80 + 41 * 52 / 82 ) * COUNT( * ) + 31 * 71 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9125
SELECT NULLIF ( 0, - - 96 * + - NULLIF ( + 25, - 79 + + - MIN ( DISTINCT - 61 ) + + 59 + 80 + 41 * 52 / 82 ) * COUNT ( * ) + 31 * 71 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + COUNT( * ) + - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9126
SELECT + COUNT ( * ) + - 55 AS col2
----
-54

query I rowsort
SELECT - 23 * + - 45 AS col0
----
1035

query I rowsort
SELECT DISTINCT - 42 - - 4 col2
----
-38

query I rowsort
SELECT ALL - + ( + 36 )
----
-36

query I rowsort
SELECT ALL + 9 * + 35
----
315

query I rowsort
SELECT + 90 * ( 48 )
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - 99 - MAX( ALL + 60 ) * + COUNT( * ) AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-9132
SELECT - 99 - MAX ( ALL + 60 ) * + COUNT ( * ) AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT - ( - COUNT( * ) ) + - NULLIF ( COALESCE ( - COUNT( * ), 99 ), - 51 )
----
2

skipif mysql # not compatible
query I rowsort label-9133
SELECT - ( - COUNT ( * ) ) + - NULLIF ( COALESCE ( - COUNT ( * ), 99 ), - 51 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9134
SELECT 86 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-9134
SELECT 86 / 45
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL 86 * 54 + - - MIN( DISTINCT - - 62 ) + + + 84 * + + 95 + 9
----
12695

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL 86 * 54 + - - MIN ( DISTINCT - - 62 ) + + + 84 * + + 95 + 9
----
12695

query I rowsort
SELECT 16 * 28 AS col0
----
448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9137
SELECT ( + 24 ) + COUNT( * ) DIV - 93
----
24

skipif mysql # not compatible
query I rowsort label-9137
SELECT ( + 24 ) + COUNT ( * ) / - 93
----
24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9138
SELECT 54 + + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT 54 + + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + COALESCE ( + - 41, - + 51 * + ( 80 ), ( 58 ) * - SUM( ALL - 21 ) - - 20 ) + - 18 * 95 col0
----
-1751

skipif mysql # not compatible
query I rowsort label-9139
SELECT + COALESCE ( + - 41, - + 51 * + ( 80 ), ( 58 ) * - SUM ( ALL - 21 ) - - 20 ) + - 18 * 95 col0
----
-1751

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT MIN( DISTINCT - - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT MIN ( DISTINCT - - 66 )
----
66

query I rowsort
SELECT DISTINCT 73 + - 90 + 93 AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9142
SELECT ALL MAX( 36 ) AS col1, 68 AS col1
----
36
68

skipif mysql # not compatible
query II rowsort label-9142
SELECT ALL MAX ( 36 ) AS col1, 68 AS col1
----
36
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT - COALESCE ( - 61, + 49 DIV - + 31 + 80 )
----
61

skipif mysql # not compatible
query I rowsort label-9143
SELECT - COALESCE ( - 61, + 49 / - + 31 + 80 )
----
61

query II rowsort
SELECT - 55, + ( 37 ) * 87 AS col2
----
-55
3219

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT MIN( + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT MIN ( + 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL - 65 + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - 65 + COUNT ( * )
----
-64

query I rowsort
SELECT - 66 * - 8
----
528

onlyif mysql # aggregate syntax: 
query II rowsort label-9148
SELECT - 10, - 5 - + 52 - - COUNT( * ) AS col0
----
-10
-56

skipif mysql # not compatible
query II rowsort label-9148
SELECT - 10, - 5 - + 52 - - COUNT ( * ) AS col0
----
-10
-56

query I rowsort
SELECT DISTINCT - NULLIF ( + 22, + 66 ) + + + 99 col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT MAX( ALL - - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT MAX ( ALL - - 19 ) AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT ALL - 66 + COUNT( * ) DIV + 70 col1
----
-66

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - 66 + COUNT ( * ) / + 70 col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9152
SELECT - 36 * - CAST( NULL AS SIGNED ), - MAX( DISTINCT - 70 ) AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9152
SELECT - 36 * - CAST ( NULL AS INTEGER ), - MAX ( DISTINCT - 70 ) AS col0
----
NULL
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT - 2 DIV - + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9153
SELECT - 2 / - + 59 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT - 71 / - + CAST( NULL AS SIGNED ) + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT - 71 / - + CAST ( NULL AS INTEGER ) + + 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT DISTINCT - - 94 DIV 55 + ( + - 4 )
----
-3

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - - 94 / 55 + ( + - 4 )
----
-3

query I rowsort
SELECT + - CASE 82 WHEN + 34 THEN - 30 - + - ( + - 42 ) * + 80 END
----
NULL

query II rowsort
SELECT + + ( - + 63 ) AS col0, - 10 + + + 8 AS col0
----
-63
-2

query II rowsort
SELECT ALL + + 64 AS col1, + NULLIF ( 83, 75 * + 38 ) AS col2
----
64
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT + - NULLIF ( 25, + + 15 + COUNT( * ) + - + 24 )
----
-25

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT + - NULLIF ( 25, + + 15 + COUNT ( * ) + - + 24 )
----
-25

query II rowsort
SELECT + 78 AS col1, - 9 AS col0
----
78
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT ALL - ( COALESCE ( + 34, - 94 DIV - 61 * COALESCE ( + 60, - - COUNT( * ) ) * + COUNT( * ) + + 49 + - 61 + - 91 DIV NULLIF ( - 66 DIV 74, + 50 ), - NULLIF ( + 38, 4 * 41 ) ) ) * + 18
----
-612

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - ( COALESCE ( + 34, - 94 / - 61 * COALESCE ( + 60, - - COUNT ( * ) ) * + COUNT ( * ) + + 49 + - 61 + - 91 / NULLIF ( - 66 / 74, + 50 ), - NULLIF ( + 38, 4 * 41 ) ) ) * + 18
----
-612

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9162
SELECT ALL + MAX( - 28 ) AS col0, - ( + 76 ) DIV + NULLIF ( + 96, + 79 ) * + - 46
----
-28
0

skipif mysql # not compatible
query II rowsort label-9162
SELECT ALL + MAX ( - 28 ) AS col0, - ( + 76 ) / + NULLIF ( + 96, + 79 ) * + - 46
----
-28
0

query I rowsort
SELECT DISTINCT + 80 * + - 81
----
-6480

query I rowsort
SELECT DISTINCT - - 93 * - 48 * + 42 + 69 * - 29 - + + ( 78 ) - - CASE ( 43 ) WHEN - 55 * 59 + 23 THEN + 64 WHEN - 55 / 24 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL - MAX( ALL + 47 ) * + - 37
----
1739

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL - MAX ( ALL + 47 ) * + - 37
----
1739

onlyif mysql # aggregate syntax: 
query II rowsort label-9166
SELECT - COUNT( * ) * - COUNT( DISTINCT ( + 0 ) ), + 15 AS col0
----
1
15

skipif mysql # not compatible
query II rowsort label-9166
SELECT - COUNT ( * ) * - COUNT ( DISTINCT ( + 0 ) ), + 15 AS col0
----
1
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + COUNT( * ) - - 15 * + 7
----
106

skipif mysql # not compatible
query I rowsort label-9167
SELECT + COUNT ( * ) - - 15 * + 7
----
106

query I rowsort
SELECT + ( - 58 )
----
-58

query I rowsort
SELECT + + 22 + 39 AS col0
----
61

query I rowsort
SELECT + ( + ( 83 ) ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT SUM( DISTINCT COALESCE ( + 86, - + 91 + - 27 ) )
----
86

skipif mysql # not compatible
query I rowsort label-9171
SELECT SUM ( DISTINCT COALESCE ( + 86, - + 91 + - 27 ) )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT ALL 27 DIV + + ( + + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL 27 / + + ( + + 23 )
----
1

query I rowsort
SELECT + 32 * 87
----
2784

query I rowsort
SELECT ALL - 80 * + 99 * 14 + + 71
----
-110809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT + ( CAST( NULL AS SIGNED ) ) * + 41 * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT + ( CAST ( NULL AS INTEGER ) ) * + 41 * + 68 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT - ( + - CAST( - 78 AS SIGNED ) ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-9176
SELECT - ( + - CAST ( - 78 AS INTEGER ) ) col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 91 * - - 47 * - 84
----
-359268

query I rowsort
SELECT - COALESCE ( - 65, - 31 - + 25 ) AS col0
----
65

query I rowsort
SELECT ALL 61 + - 45 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9181
SELECT ALL MIN( ALL NULLIF ( 20, 83 + + - CAST( + 44 AS SIGNED ) ) )
----
20

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL MIN ( ALL NULLIF ( 20, 83 + + - CAST ( + 44 AS INTEGER ) ) )
----
20

query I rowsort
SELECT ALL 25 + - 83 + + - 30 * - 99 col1
----
2912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT DISTINCT 83 + + - COUNT( * ) DIV - + 29 + - 77 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT 83 + + - COUNT ( * ) / - + 29 + - 77 AS col1
----
6

query I rowsort
SELECT ALL - 34 + + ( - 63 ) * + 78 * ( - 63 ) AS col0
----
309548

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9185
SELECT + COUNT( DISTINCT + 7 ) + + 57 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT + COUNT ( DISTINCT + 7 ) + + 57 + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 99 + - 57 + - 1 * ( - ( + 95 ) )
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9187
SELECT + - 3 + - + 32 DIV - MIN( ALL - 79 ) + 77
----
74

skipif mysql # not compatible
query I rowsort label-9187
SELECT + - 3 + - + 32 / - MIN ( ALL - 79 ) + 77
----
74

query I rowsort
SELECT - - 97 * - + 55
----
-5335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT ALL + + CASE CASE 26 WHEN - + 80 * + ( - 27 ) + + 83 + 42 * + 40 + + COALESCE ( 12, + + 72 * ( 29 * NULLIF ( 31, COALESCE ( - 75, + 84 / - COALESCE ( 7, + 61, 79 * - 74 ) ) ) ), + COUNT( * ) - - CAST( NULL AS SIGNED ), + 40 + 66 ) THEN NULL WHEN CAST( 34 AS SIGNED ) + - 88 * 54 THEN 79 * 48 + - 50 * - 72 END WHEN - 81 + ( 95 + + COALESCE ( - 96, 5 * - 50 - + 17, 68 ) ) THEN NULL ELSE 0 * 93 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL + + CASE CASE 26 WHEN - + 80 * + ( - 27 ) + + 83 + 42 * + 40 + + COALESCE ( 12, + + 72 * ( 29 * NULLIF ( 31, COALESCE ( - 75, + 84 / - COALESCE ( 7, + 61, 79 * - 74 ) ) ) ), + COUNT ( * ) - - CAST ( NULL AS INTEGER ), + 40 + 66 ) THEN NULL WHEN CAST ( 34 AS INTEGER ) + - 88 * 54 THEN 79 * 48 + - 50 * - 72 END WHEN - 81 + ( 95 + + COALESCE ( - 96, 5 * - 50 - + 17, 68 ) ) THEN NULL ELSE 0 * 93 END AS col1
----
0

query II rowsort
SELECT ( - - 38 ), COALESCE ( - - ( - - 3 ), - 17 ) col1
----
38
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT - ( - + 20 ) / - - CASE + COUNT( * ) WHEN - 0 + 29 THEN - 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT - ( - + 20 ) / - - CASE + COUNT ( * ) WHEN - 0 + 29 THEN - 72 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9192
SELECT ALL 14 * SUM( - + 34 ) + + 76 DIV 97 * + - 57 + - COUNT( * ) AS col0, 44
----
-477
44

skipif mysql # not compatible
query II rowsort label-9192
SELECT ALL 14 * SUM ( - + 34 ) + + 76 / 97 * + - 57 + - COUNT ( * ) AS col0, 44
----
-477
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9193
SELECT DISTINCT - 14 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT - 14 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9194
SELECT - + 97 * + + 96 DIV 1 + + 54 AS col0
----
-9258

skipif mysql # not compatible
query I rowsort label-9194
SELECT - + 97 * + + 96 / 1 + + 54 AS col0
----
-9258

query II rowsort
SELECT + + 76 * + 92 + + 71 + + + 14 + 24 AS col0, - ( - 30 )
----
7101
30

query I rowsort
SELECT - - 70 * - - 11
----
770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9197
SELECT 12 DIV COUNT( * ) * + CAST( + - MAX( - 57 ) AS SIGNED ) + 42 + 0, 2 * + 32 AS col1
----
726
64

skipif mysql # not compatible
query II rowsort label-9197
SELECT 12 / COUNT ( * ) * + CAST ( + - MAX ( - 57 ) AS INTEGER ) + 42 + 0, 2 * + 32 AS col1
----
726
64

query I rowsort
SELECT - - 1 * - 98 * + 70 * 4 AS col1
----
-27440

query I rowsort
SELECT - + ( - 75 ) + + - ( 22 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9200
SELECT ALL + - 24 DIV 17
----
-1

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + - 24 / 17
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9201
SELECT + - CAST( - 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-9201
SELECT + - CAST ( - 45 AS INTEGER )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT - - 21 DIV - ( - 42 ) * 28 * + 18 - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9202
SELECT - - 21 / - ( - 42 ) * 28 * + 18 - 59 AS col2
----
-59

query I rowsort
SELECT + ( - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL + 32 * + 91 + ( + + 0 ) + - COUNT( * ) + COUNT( * ) + 17 * - 84 * + - 54
----
80024

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + 32 * + 91 + ( + + 0 ) + - COUNT ( * ) + COUNT ( * ) + 17 * - 84 * + - 54
----
80024

query I rowsort
SELECT ALL - 10 + COALESCE ( + ( - + 20 ), - + 39 ) + + ( - 8 )
----
-38

query I rowsort
SELECT DISTINCT - ( + - 32 ) AS col0
----
32

query I rowsort
SELECT 80 + - ( + - ( - + 46 ) ) + + + 21 col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT DISTINCT - 92 + 92 + + 40 + + 35 * + - COUNT( * ) * - + COALESCE ( + + 95, - 85 * + 7 ) * + + 13 AS col1
----
43265

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - 92 + 92 + + 40 + + 35 * + - COUNT ( * ) * - + COALESCE ( + + 95, - 85 * + 7 ) * + + 13 AS col1
----
43265

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT 99 DIV - 81
----
-1

skipif mysql # not compatible
query I rowsort label-9209
SELECT 99 / - 81
----
-1

query I rowsort
SELECT ALL 85 + - + 32 * + 84
----
-2603

query I rowsort
SELECT 70 + CASE - + 93 WHEN + 63 THEN NULL WHEN - 1 THEN + 4 ELSE + ( 83 ) END
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9212
SELECT CAST( NULL AS SIGNED ) - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT CAST ( NULL AS INTEGER ) - 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT 89 + SUM( 35 ) col2
----
124

skipif mysql # not compatible
query I rowsort label-9213
SELECT 89 + SUM ( 35 ) col2
----
124

query I rowsort
SELECT ALL + 65 + + 39 AS col1
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9215
SELECT DISTINCT MAX( DISTINCT - ( + 30 ) ) DIV - 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT MAX ( DISTINCT - ( + 30 ) ) / - 23 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT DISTINCT + COUNT( * ) - - 5
----
6

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + COUNT ( * ) - - 5
----
6

query I rowsort
SELECT ALL NULLIF ( 17, + - 30 ) * + - 17
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

query II rowsort
SELECT - 19 AS col0, + 54
----
-19
54

query I rowsort
SELECT ALL + 37 * - 80
----
-2960

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT - 93 DIV - 36
----
2

skipif mysql # not compatible
query I rowsort label-9221
SELECT - 93 / - 36
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9222
SELECT 74 DIV - 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9222
SELECT 74 / - 42 AS col2
----
-1

query I rowsort
SELECT DISTINCT - 4 - + 1
----
-5

query II rowsort
SELECT DISTINCT 68, ( 17 ) AS col2
----
68
17

query I rowsort
SELECT DISTINCT + NULLIF ( + 71, 99 * + 82 ) * 86 AS col0
----
6106

query II rowsort
SELECT - 24 AS col1, - 57 col0
----
-24
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9227
SELECT DISTINCT + COUNT( * ) AS col1, - 93
----
1
-93

skipif mysql # not compatible
query II rowsort label-9227
SELECT DISTINCT + COUNT ( * ) AS col1, - 93
----
1
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9228
SELECT + CAST( NULL AS DECIMAL ) * + 94 * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT + CAST ( NULL AS REAL ) * + 94 * 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT ALL - 2 AS col0, SUM( 9 )
----
-2
9

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL - 2 AS col0, SUM ( 9 )
----
-2
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9230
SELECT ALL - + COUNT( * ), COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-9230
SELECT ALL - + COUNT ( * ), COUNT ( DISTINCT CAST ( NULL AS REAL ) ) AS col1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT - CAST( NULL AS SIGNED ) * 33 + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT - CAST ( NULL AS INTEGER ) * 33 + + 87
----
NULL

query I rowsort
SELECT DISTINCT 48 + + 14
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL - MIN( DISTINCT + - 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL - MIN ( DISTINCT + - 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + + MAX( - ( + 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-9234
SELECT + + MAX ( - ( + 29 ) )
----
-29

query I rowsort
SELECT 71 - - 45 + + 46 * + CASE + 29 WHEN - 12 THEN - - 61 END * + + 82 - + + 54 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9236
SELECT ALL - 58 + + 43 + - 89 DIV + 26 + - 47 + + 91 * + 12 AS col2
----
1027

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL - 58 + + 43 + - 89 / + 26 + - 47 + + 91 * + 12 AS col2
----
1027

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL COUNT( * ) + 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL COUNT ( * ) + 28 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT + MIN( DISTINCT 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9238
SELECT + MIN ( DISTINCT 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9239
SELECT ALL - MIN( + 43 ) + COUNT( * ) DIV - 35
----
-43

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - MIN ( + 43 ) + COUNT ( * ) / - 35
----
-43

query I rowsort
SELECT ALL 15 * + + 8 AS col1
----
120

query I rowsort
SELECT DISTINCT + 51 + + + ( 50 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT + SUM( ALL + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9242
SELECT + SUM ( ALL + 85 ) AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9243
SELECT 70 DIV + 82, 72 * + + 23 + + COALESCE ( - - 49, + 63, + 10 * - CAST( NULL AS SIGNED ), - 90 ) + - 72 * - - 44 * + + COUNT( * ) * 57 AS col0
----
0
-178871

skipif mysql # not compatible
query II rowsort label-9243
SELECT 70 / + 82, 72 * + + 23 + + COALESCE ( - - 49, + 63, + 10 * - CAST ( NULL AS INTEGER ), - 90 ) + - 72 * - - 44 * + + COUNT ( * ) * 57 AS col0
----
0
-178871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT DISTINCT + 24 / - CASE - + 31 WHEN + - CAST( + 93 AS SIGNED ) THEN - 7 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT + 24 / - CASE - + 31 WHEN + - CAST ( + 93 AS INTEGER ) THEN - 7 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT 79 * - + 43 AS col1, COUNT( * ) AS col1
----
-3397
1

skipif mysql # not compatible
query II rowsort label-9245
SELECT 79 * - + 43 AS col1, COUNT ( * ) AS col1
----
-3397
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT 83 + COUNT( * ) + - + 70 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9246
SELECT 83 + COUNT ( * ) + - + 70 AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9247
SELECT ALL - CAST( - 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL - CAST ( - 89 AS INTEGER )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT - COUNT( ALL + NULLIF ( + 89, - + 33 + - 87 + + 25 * + 35 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT - COUNT ( ALL + NULLIF ( + 89, - + 33 + - 87 + + 25 * + 35 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT SUM( DISTINCT - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT SUM ( DISTINCT - 79 )
----
-79

query II rowsort
SELECT ALL + 34 - 72 - 75 * CASE + + 43 WHEN - - 47 THEN NULL ELSE ( - 69 ) END - + 92 AS col2, 7
----
5045
7

query I rowsort
SELECT 5 * - 44 * + 9 AS col0
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT 18 * + - CAST( - - 97 AS SIGNED ) AS col0
----
-1746

skipif mysql # not compatible
query I rowsort label-9252
SELECT 18 * + - CAST ( - - 97 AS INTEGER ) AS col0
----
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ALL + COUNT( * ) * + 55 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + COUNT ( * ) * + 55 AS col0
----
55

query II rowsort
SELECT ALL + ( 91 ) - + 85 * 20 AS col2, - 60 col1
----
-1609
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9255
SELECT NULLIF ( - + 23, + + 5 ) * - 24 AS col2, MIN( 46 ) - + 67
----
552
-21

skipif mysql # not compatible
query II rowsort label-9255
SELECT NULLIF ( - + 23, + + 5 ) * - 24 AS col2, MIN ( 46 ) - + 67
----
552
-21

query I rowsort
SELECT CASE - 33 WHEN 48 THEN + 56 / - 42 / + 97 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9257
SELECT NULLIF ( ( + + 39 ), CAST( NULL AS SIGNED ) * + 57 - + 19 * - COUNT( * ) * 36 + - 50 + + MAX( 75 ) + CAST( 30 AS DECIMAL ) + + - 39 + + 37 * 91 * 35 ) * 93 col0
----
3627

skipif mysql # not compatible
query I rowsort label-9257
SELECT NULLIF ( ( + + 39 ), CAST ( NULL AS INTEGER ) * + 57 - + 19 * - COUNT ( * ) * 36 + - 50 + + MAX ( 75 ) + CAST ( 30 AS REAL ) + + - 39 + + 37 * 91 * 35 ) * 93 col0
----
3627

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9258
SELECT ALL - 25 * 58 * - CASE WHEN NOT + CAST( NULL AS DECIMAL ) = - + 22 THEN - ( - 72 ) ELSE 9 - 85 + 5 END
----
-102950

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - 25 * 58 * - CASE WHEN NOT + CAST ( NULL AS REAL ) = - + 22 THEN - ( - 72 ) ELSE 9 - 85 + 5 END
----
-102950

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT - + MAX( DISTINCT + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-9259
SELECT - + MAX ( DISTINCT + 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL - NULLIF ( + COUNT( * ), - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - NULLIF ( + COUNT ( * ), - 14 )
----
-1

query I rowsort
SELECT + 40 - - + 47
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9262
SELECT 17 + 24 * + COUNT( DISTINCT + - 81 ) DIV + 85 DIV 73 * + 96 col2, 23
----
17
23

skipif mysql # not compatible
query II rowsort label-9262
SELECT 17 + 24 * + COUNT ( DISTINCT + - 81 ) / + 85 / 73 * + 96 col2, 23
----
17
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT 60 - COUNT( * ) * + - 40
----
100

skipif mysql # not compatible
query I rowsort label-9263
SELECT 60 - COUNT ( * ) * + - 40
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL 23 * - + COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL 23 * - + COUNT ( * ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-9265
SELECT 91 DIV + + 89 AS col0, + 92
----
1
92

skipif mysql # not compatible
query II rowsort label-9265
SELECT 91 / + + 89 AS col0, + 92
----
1
92

query II rowsort
SELECT 6 + 91 * + + 62 + NULLIF ( - 83, - 80 ) * - 14, + 17 AS col2
----
6810
17

query I rowsort
SELECT - 7 + + + 73 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL - MAX( 92 ) * + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL - MAX ( 92 ) * + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9269
SELECT - 49 / + COUNT( ALL + 45 ) * - 57 + CASE - + 38 WHEN + - 84 THEN - + 24 WHEN + 85 THEN NULL ELSE NULL END AS col0, 66 * - COUNT( * ) AS col2
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-9269
SELECT - 49 / + COUNT ( ALL + 45 ) * - 57 + CASE - + 38 WHEN + - 84 THEN - + 24 WHEN + 85 THEN NULL ELSE NULL END AS col0, 66 * - COUNT ( * ) AS col2
----
NULL
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT + + 43 * 8 + + COUNT( * ) AS col1
----
345

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT + + 43 * 8 + + COUNT ( * ) AS col1
----
345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9271
SELECT DISTINCT + 67 * + 55 DIV + COUNT( * ) + + 51 + - 91 + - + 97
----
3548

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + 67 * + 55 / + COUNT ( * ) + + 51 + - 91 + - + 97
----
3548

query I rowsort
SELECT DISTINCT + - 8 AS col0
----
-8

query I rowsort
SELECT ALL CASE 26 WHEN + NULLIF ( 98, 74 ) THEN + - 13 ELSE NULL END * + 60 + - 53 + - - 73 + - 51 + + 86 * - - 22 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT DISTINCT 78 * + + MIN( - 49 ) + - + 27 + - 51 + + 64 * - 49 + + 39 * CAST( - - 77 AS SIGNED ) + 2 * - - 65 / - 22 + - CASE COALESCE ( + 20, + COUNT( * ) ) WHEN - 15 * SUM( 67 ) THEN 75 * - 22 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT 78 * + + MIN ( - 49 ) + - + 27 + - 51 + + 64 * - 49 + + 39 * CAST ( - - 77 AS INTEGER ) + 2 * - - 65 / - 22 + - CASE COALESCE ( + 20, + COUNT ( * ) ) WHEN - 15 * SUM ( 67 ) THEN 75 * - 22 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT + - 74 * - 9 AS col2, - COUNT( * ) + - 78 - - - 83 / - 76 - - NULLIF ( 74, + 29 ) * - 81 * + 87 * + CASE + COALESCE ( 36, - COUNT( * ) / - 81 - - 23 ) WHEN + 41 + - ( + MIN( - 29 ) - + 17 ) THEN - 82 END AS col0
----
666
NULL

skipif mysql # not compatible
query II rowsort label-9275
SELECT + - 74 * - 9 AS col2, - COUNT ( * ) + - 78 - - - 83 / - 76 - - NULLIF ( 74, + 29 ) * - 81 * + 87 * + CASE + COALESCE ( 36, - COUNT ( * ) / - 81 - - 23 ) WHEN + 41 + - ( + MIN ( - 29 ) - + 17 ) THEN - 82 END AS col0
----
666
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9276
SELECT + COUNT( * ) DIV + 47 + + - SUM( + + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9276
SELECT + COUNT ( * ) / + 47 + + - SUM ( + + 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + ( + COUNT( * ) ) * - - COUNT( * ) * - ( - 26 ) * + + 87
----
2262

skipif mysql # not compatible
query I rowsort label-9277
SELECT + ( + COUNT ( * ) ) * - - COUNT ( * ) * - ( - 26 ) * + + 87
----
2262

onlyif mysql # aggregate syntax: 
query II rowsort label-9278
SELECT ALL + 28 AS col2, - 33 + COALESCE ( + COUNT( + 6 ), - COUNT( * ) )
----
28
-32

skipif mysql # not compatible
query II rowsort label-9278
SELECT ALL + 28 AS col2, - 33 + COALESCE ( + COUNT ( + 6 ), - COUNT ( * ) )
----
28
-32

query I rowsort
SELECT CASE 74 WHEN - 95 THEN 39 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL MAX( DISTINCT + 11 ) * + 64 * + 18 * + SUM( 26 ) AS col0
----
329472

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL MAX ( DISTINCT + 11 ) * + 64 * + 18 * + SUM ( 26 ) AS col0
----
329472

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT COUNT( * ) * - - 7 + - 94 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9281
SELECT COUNT ( * ) * - - 7 + - 94 AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9282
SELECT DISTINCT + 67 * + - 20 - + + ( - 97 ) - + + 61 AS col0, 21 * - CAST( NULL AS SIGNED )
----
-1304
NULL

skipif mysql # not compatible
query II rowsort label-9282
SELECT DISTINCT + 67 * + - 20 - + + ( - 97 ) - + + 61 AS col0, 21 * - CAST ( NULL AS INTEGER )
----
-1304
NULL

query I rowsort
SELECT ALL + ( - - 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL + COUNT( + + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL + COUNT ( + + 0 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT - 72 DIV + 37
----
-1

skipif mysql # not compatible
query I rowsort label-9285
SELECT - 72 / + 37
----
-1

query I rowsort
SELECT + 84 * - - ( - 98 ) AS col2
----
-8232

query I rowsort
SELECT - 90 + + 66
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL SUM( ALL + - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL SUM ( ALL + - 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT MIN( DISTINCT - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-9289
SELECT MIN ( DISTINCT - 43 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT - 36 / CAST( NULL AS SIGNED ) * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT - 36 / CAST ( NULL AS INTEGER ) * 69 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9291
SELECT ALL - MIN( - - 40 ) DIV - 53 col2, NULLIF ( - + 4, COUNT( * ) - - CASE - 35 WHEN + 85 * + - MAX( - + 39 ) THEN NULL WHEN + 3 THEN + 75 END + - CAST( + + 19 AS DECIMAL ) ) AS col0
----
0
-4

skipif mysql # not compatible
query II rowsort label-9291
SELECT ALL - MIN ( - - 40 ) / - 53 col2, NULLIF ( - + 4, COUNT ( * ) - - CASE - 35 WHEN + 85 * + - MAX ( - + 39 ) THEN NULL WHEN + 3 THEN + 75 END + - CAST ( + + 19 AS REAL ) ) AS col0
----
0
-4

query I rowsort
SELECT - 54 + - + 83 col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL CASE - 45 WHEN - - 63 THEN + 63 * - 43 + ( + 79 ) + + - 66 * + + 72 WHEN - COUNT( * ) THEN + 83 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL CASE - 45 WHEN - - 63 THEN + 63 * - 43 + ( + 79 ) + + - 66 * + + 72 WHEN - COUNT ( * ) THEN + 83 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT - 30 + - 53 * + + 46 + + + NULLIF ( - - 70, + 46 ) * + + SUM( - 77 ) AS col1, 83 + - 94 * - MAX( DISTINCT + + 50 ) * + 13 + 7 * ( - 81 ) AS col0
----
-7858
60616

skipif mysql # not compatible
query II rowsort label-9294
SELECT - 30 + - 53 * + + 46 + + + NULLIF ( - - 70, + 46 ) * + + SUM ( - 77 ) AS col1, 83 + - 94 * - MAX ( DISTINCT + + 50 ) * + 13 + 7 * ( - 81 ) AS col0
----
-7858
60616

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT - MAX( DISTINCT - 75 ) * COUNT( DISTINCT - 90 ) - - 33 + 83 AS col1
----
191

skipif mysql # not compatible
query I rowsort label-9295
SELECT - MAX ( DISTINCT - 75 ) * COUNT ( DISTINCT - 90 ) - - 33 + 83 AS col1
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT - COUNT( * ) + + ( + - 70 ) * - 9 AS col2
----
629

skipif mysql # not compatible
query I rowsort label-9296
SELECT - COUNT ( * ) + + ( + - 70 ) * - 9 AS col2
----
629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT ALL + CAST( + 28 AS SIGNED ) + + 49 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + CAST ( + 28 AS INTEGER ) + + 49 AS col0
----
77

query I rowsort
SELECT - + 39 col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - SUM( DISTINCT COALESCE ( + ( - 75 ), - - COALESCE ( + - COALESCE ( - 48, 17 + + COALESCE ( - 75, + - 1 ) ), 10 ), ( + - ( + 9 ) ) * - 13 - 59 ) )
----
75

skipif mysql # not compatible
query I rowsort label-9299
SELECT - SUM ( DISTINCT COALESCE ( + ( - 75 ), - - COALESCE ( + - COALESCE ( - 48, 17 + + COALESCE ( - 75, + - 1 ) ), 10 ), ( + - ( + 9 ) ) * - 13 - 59 ) )
----
75

query I rowsort
SELECT - - 85 AS col2
----
85

query I rowsort
SELECT - 38 + - COALESCE ( - 71, 40 )
----
33

query I rowsort
SELECT ALL - + 93 + + 29
----
-64

query I rowsort
SELECT - 82 * 41
----
-3362

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT - - COALESCE ( COALESCE ( - - COUNT( * ), - 90 ), + 18 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9304
SELECT - - COALESCE ( COALESCE ( - - COUNT ( * ), - 90 ), + 18 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9305
SELECT ALL - + 18 + + - 8 + - COALESCE ( + COUNT( + 98 ), + COUNT( * ) ) + - 22 - - - 58 AS col0, + COALESCE ( - 77, - ( - ( + 74 ) ) * + 90 - - 77 + 13 * 88 ) col0
----
-107
-77

skipif mysql # not compatible
query II rowsort label-9305
SELECT ALL - + 18 + + - 8 + - COALESCE ( + COUNT ( + 98 ), + COUNT ( * ) ) + - 22 - - - 58 AS col0, + COALESCE ( - 77, - ( - ( + 74 ) ) * + 90 - - 77 + 13 * 88 ) col0
----
-107
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL - 69 + + ( + 8 ) + + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL - 69 + + ( + 8 ) + + COUNT ( * )
----
-60

query I rowsort
SELECT DISTINCT - COALESCE ( 68, + 26 ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9308
SELECT ALL SUM( 85 ) + - - 83 + 72 * COALESCE ( + 38, - 76 + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) / - + 18 - + CASE 73 WHEN + - 14 * NULLIF ( + SUM( DISTINCT + 52 ), - 86 * 31 ) + - 75 + - 75 * 82 THEN - 68 WHEN - ( 36 ) / ( 35 + - ( 49 ) ) THEN NULL END / + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL SUM ( 85 ) + - - 83 + 72 * COALESCE ( + 38, - 76 + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) / - + 18 - + CASE 73 WHEN + - 14 * NULLIF ( + SUM ( DISTINCT + 52 ), - 86 * 31 ) + - 75 + - 75 * 82 THEN - 68 WHEN - ( 36 ) / ( 35 + - ( 49 ) ) THEN NULL END / + 21 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 20 * - - 42 AS col0
----
-840

query I rowsort
SELECT ALL + - ( 90 ) AS col0
----
-90

query I rowsort
SELECT + - 81 + 37 AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT DISTINCT - ( - 3 ) DIV 44 + - + 84 + COUNT( * ) - 43
----
-126

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT - ( - 3 ) / 44 + - + 84 + COUNT ( * ) - 43
----
-126

query I rowsort
SELECT DISTINCT 27 * 54 * + 42 AS col1
----
61236

query I rowsort
SELECT + ( + + 90 )
----
90

query I rowsort
SELECT + 56 * 50 AS col2
----
2800

query I rowsort
SELECT ALL 62 * 39
----
2418

query I rowsort
SELECT ALL + 90 * - 57 - + 57 AS col2
----
-5187

query I rowsort
SELECT - 55 * 10 + + 73 AS col1
----
-477

query I rowsort
SELECT + 72 - + 67 AS col1
----
5

query I rowsort
SELECT ( 50 ) AS col1
----
50

query I rowsort
SELECT ( + 96 ) col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9322
SELECT ALL + 59 col2, 43 + - COUNT( * ) * + - 58
----
59
101

skipif mysql # not compatible
query II rowsort label-9322
SELECT ALL + 59 col2, 43 + - COUNT ( * ) * + - 58
----
59
101

query II rowsort
SELECT ALL + 63 AS col0, 56 col1
----
63
56

query I rowsort
SELECT + 60 * + + 51
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT + 66 * COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9325
SELECT + 66 * COUNT ( * )
----
66

query I rowsort
SELECT + ( - + 72 ) AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9327
SELECT CASE + CASE - + 54 WHEN + 47 * - 20 THEN NULL ELSE 22 * + 54 END WHEN - 20 * - 4 + - COALESCE ( + 13, + 69 + + - CASE 26 WHEN + + COUNT( * ) THEN 31 * + CAST( MAX( DISTINCT 81 ) AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN + COUNT( * ) - 75 THEN 43 * CASE - 60 WHEN + 17 THEN NULL ELSE 85 + + 99 END ELSE NULL END ) THEN NULL WHEN - 82 * - 94 THEN - 56 ELSE + 6 END AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9327
SELECT CASE + CASE - + 54 WHEN + 47 * - 20 THEN NULL ELSE 22 * + 54 END WHEN - 20 * - 4 + - COALESCE ( + 13, + 69 + + - CASE 26 WHEN + + COUNT ( * ) THEN 31 * + CAST ( MAX ( DISTINCT 81 ) AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN + COUNT ( * ) - 75 THEN 43 * CASE - 60 WHEN + 17 THEN NULL ELSE 85 + + 99 END ELSE NULL END ) THEN NULL WHEN - 82 * - 94 THEN - 56 ELSE + 6 END AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9328
SELECT ALL + 78, - COUNT( * ) DIV + + 27 + + - 19 AS col2
----
78
-19

skipif mysql # not compatible
query II rowsort label-9328
SELECT ALL + 78, - COUNT ( * ) / + + 27 + + - 19 AS col2
----
78
-19

query I rowsort
SELECT + ( + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + 30 * - CASE 42 WHEN + + MIN( 58 ) THEN + 26 WHEN + 20 * - 63 * + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT + 30 * - CASE 42 WHEN + + MIN ( 58 ) THEN + 26 WHEN + 20 * - 63 * + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT ALL CASE + 58 WHEN COALESCE ( + - CAST( - 37 AS SIGNED ), COUNT( + - 21 ) + 72 + + 38 - 47 ) THEN 83 WHEN - 59 THEN NULL WHEN - COUNT( * ) * - ( 74 ) + + + 59 - + CAST( ( + 73 ) - CASE - 61 WHEN 97 THEN - COUNT( * ) + + 11 WHEN - CAST( NULL AS SIGNED ) * + COUNT( * ) THEN NULL WHEN + CAST( + 81 AS SIGNED ) THEN + MAX( ALL 51 ) * 84 ELSE NULL END AS SIGNED ) THEN 32 + CASE 95 WHEN - 59 THEN - COUNT( + CAST( 23 AS SIGNED ) ) ELSE NULL END ELSE + 29 * - COUNT( * ) END AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL CASE + 58 WHEN COALESCE ( + - CAST ( - 37 AS INTEGER ), COUNT ( + - 21 ) + 72 + + 38 - 47 ) THEN 83 WHEN - 59 THEN NULL WHEN - COUNT ( * ) * - ( 74 ) + + + 59 - + CAST ( ( + 73 ) - CASE - 61 WHEN 97 THEN - COUNT ( * ) + + 11 WHEN - CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN NULL WHEN + CAST ( + 81 AS INTEGER ) THEN + MAX ( ALL 51 ) * 84 ELSE NULL END AS INTEGER ) THEN 32 + CASE 95 WHEN - 59 THEN - COUNT ( + CAST ( 23 AS INTEGER ) ) ELSE NULL END ELSE + 29 * - COUNT ( * ) END AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9332
SELECT ALL - 19 * - 57 + + - 63 / - 94 - - 50 * + 46 * - CAST( NULL AS SIGNED ) + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - 19 * - 57 + + - 63 / - 94 - - 50 * + 46 * - CAST ( NULL AS INTEGER ) + - 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT DISTINCT CAST( + ( + 26 ) AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT CAST ( + ( + 26 ) AS INTEGER )
----
26

query I rowsort
SELECT + 39 + + ( 69 ) AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT - + 3 * 96 + - - ( + 20 ) + - COUNT( * ) AS col1
----
-269

skipif mysql # not compatible
query I rowsort label-9335
SELECT - + 3 * 96 + - - ( + 20 ) + - COUNT ( * ) AS col1
----
-269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9336
SELECT ALL - CAST( + ( + 12 ) AS SIGNED ) * - - 60 * - COUNT( * ) col0
----
720

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - CAST ( + ( + 12 ) AS INTEGER ) * - - 60 * - COUNT ( * ) col0
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT + 53 + - SUM( - + ( + - 91 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-9337
SELECT + 53 + - SUM ( - + ( + - 91 ) )
----
-38

query II rowsort
SELECT + 42 AS col1, 95 * + + 27 AS col0
----
42
2565

query II rowsort
SELECT DISTINCT 70 col2, + 36
----
70
36

query II rowsort
SELECT - 81, ( 55 ) AS col1
----
-81
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT - + 54 DIV + + 34 + MIN( DISTINCT 80 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9341
SELECT - + 54 / + + 34 + MIN ( DISTINCT 80 ) AS col2
----
79

query I rowsort
SELECT + - 43 - - 42 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9343
SELECT DISTINCT - 32 DIV 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT - 32 / 52 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT DISTINCT CASE 8 WHEN + SUM( ALL + 49 ) * - 15 + + - 41 THEN 90 * 1 - - - 7 * MIN( + - 97 ) * 7 - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT CASE 8 WHEN + SUM ( ALL + 49 ) * - 15 + + - 41 THEN 90 * 1 - - - 7 * MIN ( + - 97 ) * 7 - 88 END
----
NULL

query I rowsort
SELECT ALL - 82 + 67 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT DISTINCT + - 3 * - 3 DIV - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT + - 3 * - 3 / - 38 AS col2
----
0

query I rowsort
SELECT ALL - - 86 + + + 86 AS col0
----
172

query II rowsort
SELECT DISTINCT + 72 AS col2, + 50 + + + 70 + + - 7 * 87
----
72
-489

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT - 69 + CASE 42 WHEN + 63 THEN NULL WHEN - 42 + + ( CASE - COUNT( * ) WHEN - + 93 THEN NULL WHEN + - 56 THEN + COUNT( * ) END ) + 20 + - ( - 83 ) * + 64 * 45 + ( 98 ) THEN NULL ELSE 58 END
----
-11

skipif mysql # not compatible
query I rowsort label-9349
SELECT - 69 + CASE 42 WHEN + 63 THEN NULL WHEN - 42 + + ( CASE - COUNT ( * ) WHEN - + 93 THEN NULL WHEN + - 56 THEN + COUNT ( * ) END ) + 20 + - ( - 83 ) * + 64 * 45 + ( 98 ) THEN NULL ELSE 58 END
----
-11

query I rowsort
SELECT 46 - + 21
----
25

query I rowsort
SELECT + ( 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT COUNT( * ) + - 6 + + 99 * + - 15 * 6
----
-8915

skipif mysql # not compatible
query I rowsort label-9352
SELECT COUNT ( * ) + - 6 + + 99 * + - 15 * 6
----
-8915

query I rowsort
SELECT + 52 + - 10 * + + 25
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT 79 * - 59 * + COUNT( DISTINCT ( + + CASE CAST( + + 56 AS SIGNED ) WHEN - + 32 * - 36 THEN + 65 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-9354
SELECT 79 * - 59 * + COUNT ( DISTINCT ( + + CASE CAST ( + + 56 AS INTEGER ) WHEN - + 32 * - 36 THEN + 65 END ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9355
SELECT - + COUNT( * ) AS col2, 87 * - - 12 AS col1
----
-1
1044

skipif mysql # not compatible
query II rowsort label-9355
SELECT - + COUNT ( * ) AS col2, 87 * - - 12 AS col1
----
-1
1044

query I rowsort
SELECT DISTINCT - 30 * - 17
----
510

query I rowsort
SELECT ( + 65 ) + + + 54 + + 66
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9358
SELECT 83 DIV - ( NULLIF ( 77, - 56 DIV - 62 ) ) + 84 * 88 * 69 * - - COUNT( * )
----
510047

skipif mysql # not compatible
query I rowsort label-9358
SELECT 83 / - ( NULLIF ( 77, - 56 / - 62 ) ) + 84 * 88 * 69 * - - COUNT ( * )
----
510047

query I rowsort
SELECT 92 + 84
----
176

query I rowsort
SELECT 75 * + 71 + - - 13 AS col0
----
5338

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT DISTINCT - 2 DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT - 2 / - 31
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT ALL - CAST( - 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL - CAST ( - 91 AS INTEGER )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL - SUM( ALL - - 31 ) * + 18
----
-558

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - SUM ( ALL - - 31 ) * + 18
----
-558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9364
SELECT 98 DIV - - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9364
SELECT 98 / - - COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT COUNT( * ) * - - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9365
SELECT COUNT ( * ) * - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL SUM( - 61 ) * - - COALESCE ( + 8, 99 ) * + 97 AS col0
----
-47336

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL SUM ( - 61 ) * - - COALESCE ( + 8, 99 ) * + 97 AS col0
----
-47336

query I rowsort
SELECT 4 + - 31
----
-27

query I rowsort
SELECT 43 * 35
----
1505

query I rowsort
SELECT ALL 48 * - 71 AS col2
----
-3408

query I rowsort
SELECT 76 * - 17 + 1
----
-1291

query I rowsort
SELECT DISTINCT 66 * + 74 AS col1
----
4884

query I rowsort
SELECT - 31 * 2 + - ( 67 ) AS col1
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9373
SELECT ALL - 12 + 53 * - 42 * - 20 + + - 10 AS col0, CAST( + 84 AS SIGNED ) + + 7
----
44498
91

skipif mysql # not compatible
query II rowsort label-9373
SELECT ALL - 12 + 53 * - 42 * - 20 + + - 10 AS col0, CAST ( + 84 AS INTEGER ) + + 7
----
44498
91

query I rowsort
SELECT DISTINCT 47 + 98 col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL + COUNT( * ) + - 21 + + 64 - + 49 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL + COUNT ( * ) + - 21 + + 64 - + 49 AS col2
----
-5

query II rowsort
SELECT ALL - + ( - 57 ), - 68 AS col2
----
57
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT ( + 99 ) * - 49 + - COALESCE ( - 67, - - COUNT( ( + 61 ) ) * + - 21 )
----
-4784

skipif mysql # not compatible
query I rowsort label-9377
SELECT ( + 99 ) * - 49 + - COALESCE ( - 67, - - COUNT ( ( + 61 ) ) * + - 21 )
----
-4784

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT + 22 * 56 + + 46 + 17 DIV 85 + + 60 + 57 AS col0
----
1395

skipif mysql # not compatible
query I rowsort label-9378
SELECT + 22 * 56 + + 46 + 17 / 85 + + 60 + 57 AS col0
----
1395

onlyif mysql # aggregate syntax: 
query III rowsort label-9379
SELECT MAX( DISTINCT 52 ) AS col0, 12 AS col0, - MIN( + 45 ) * 10
----
52
12
-450

skipif mysql # not compatible
query III rowsort label-9379
SELECT MAX ( DISTINCT 52 ) AS col0, 12 AS col0, - MIN ( + 45 ) * 10
----
52
12
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT - ( + CASE + 20 WHEN 63 THEN - 19 END ) + CASE + 23 WHEN + 34 THEN + - COUNT( * ) END + + - 1 * 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT - ( + CASE + 20 WHEN 63 THEN - 19 END ) + CASE + 23 WHEN + 34 THEN + - COUNT ( * ) END + + - 1 * 67 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9381
SELECT 45 + + + 19 - - + 62 DIV - 28 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9381
SELECT 45 + + + 19 - - + 62 / - 28 AS col0
----
62

query I rowsort
SELECT DISTINCT + COALESCE ( + - ( - - 28 ), - ( - 26 ) )
----
-28

query I rowsort
SELECT ALL + 11 + - 3 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL - SUM( + 65 ) * - 7 + 25
----
480

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL - SUM ( + 65 ) * - 7 + 25
----
480

query I rowsort
SELECT DISTINCT ( - - 74 ) AS col2
----
74

query I rowsort
SELECT 15 + + 12 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + ( + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9387
SELECT + ( + ( COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9388
SELECT - SUM( + - 85 ) * - NULLIF ( - 62, + CASE + 17 WHEN + 22 * NULLIF ( + - ( COALESCE ( + CAST( ( + COUNT( * ) ) AS DECIMAL ), - 91 * + 8 - - - 76 - + COUNT( * ), 91 - + ( - 25 - + SUM( ALL + CAST( NULL AS SIGNED ) ) ) ) ), + ( 81 ) ) THEN + CASE 18 WHEN - 50 + + 42 THEN NULL WHEN ( - 57 ) * - 6 THEN 7 WHEN NULLIF ( 33, COALESCE ( SUM( ALL + 91 ), + CAST( NULL AS SIGNED ) * + 36 ) ) + + 5 THEN 95 WHEN 94 THEN NULL ELSE - 10 * 83 END - - CAST( SUM( ALL ( + 30 ) ) AS DECIMAL ) WHEN 79 THEN NULL ELSE NULL END )
----
5270

skipif mysql # not compatible
query I rowsort label-9388
SELECT - SUM ( + - 85 ) * - NULLIF ( - 62, + CASE + 17 WHEN + 22 * NULLIF ( + - ( COALESCE ( + CAST ( ( + COUNT ( * ) ) AS REAL ), - 91 * + 8 - - - 76 - + COUNT ( * ), 91 - + ( - 25 - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) ) ), + ( 81 ) ) THEN + CASE 18 WHEN - 50 + + 42 THEN NULL WHEN ( - 57 ) * - 6 THEN 7 WHEN NULLIF ( 33, COALESCE ( SUM ( ALL + 91 ), + CAST ( NULL AS INTEGER ) * + 36 ) ) + + 5 THEN 95 WHEN 94 THEN NULL ELSE - 10 * 83 END - - CAST ( SUM ( ALL ( + 30 ) ) AS REAL ) WHEN 79 THEN NULL ELSE NULL END )
----
5270

onlyif mysql # aggregate syntax: 
query II rowsort label-9389
SELECT 91 * 26 col2, COUNT( * ) AS col1
----
2366
1

skipif mysql # not compatible
query II rowsort label-9389
SELECT 91 * 26 col2, COUNT ( * ) AS col1
----
2366
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9390
SELECT ALL + + 71 DIV - CAST( + 31 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL + + 71 / - CAST ( + 31 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9391
SELECT DISTINCT - ( + 84 ) AS col2, COUNT( * ) + + 62
----
-84
63

skipif mysql # not compatible
query II rowsort label-9391
SELECT DISTINCT - ( + 84 ) AS col2, COUNT ( * ) + + 62
----
-84
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT 71 * CASE - ( - + ( - NULLIF ( - + 11, + + 29 ) ) ) WHEN MIN( DISTINCT - 97 ) + - 71 * 10 * + + 50 + + COALESCE ( AVG ( ALL - + 74 ), + + 98 / + 27 * + CASE - 34 WHEN - COUNT( + 75 ) * 25 + + 52 THEN NULL ELSE 32 END - - NULLIF ( 65, - 4 ) / COUNT( * ), + 97 ) THEN NULL WHEN 20 * SUM( DISTINCT 46 ) THEN 38 * + 85 END / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT 71 * CASE - ( - + ( - NULLIF ( - + 11, + + 29 ) ) ) WHEN MIN ( DISTINCT - 97 ) + - 71 * 10 * + + 50 + + COALESCE ( AVG ( ALL - + 74 ), + + 98 / + 27 * + CASE - 34 WHEN - COUNT ( + 75 ) * 25 + + 52 THEN NULL ELSE 32 END - - NULLIF ( 65, - 4 ) / COUNT ( * ), + 97 ) THEN NULL WHEN 20 * SUM ( DISTINCT 46 ) THEN 38 * + 85 END / 40
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9393
SELECT ALL 22 AS col1, 50 DIV - 29 AS col1
----
22
-1

skipif mysql # not compatible
query II rowsort label-9393
SELECT ALL 22 AS col1, 50 / - 29 AS col1
----
22
-1

query I rowsort
SELECT 99 * 82 AS col2
----
8118

query I rowsort
SELECT DISTINCT - 6 * + + 69 AS col1
----
-414

query II rowsort
SELECT 85 AS col1, 71 * - 86
----
85
-6106

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL - COUNT( * ) * + 81 * 7
----
-567

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - COUNT ( * ) * + 81 * 7
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT COUNT( ALL + + NULLIF ( + - 55, - + 59 + - 10 ) ) * - 42 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-9398
SELECT COUNT ( ALL + + NULLIF ( + - 55, - + 59 + - 10 ) ) * - 42 AS col2
----
-42

query II rowsort
SELECT 24 + + 72 + - - 79 + 28 + + - ( - - 53 ) * + 52 + 90, - 0 * - + 43 + - 65 AS col2
----
-2463
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL + 58 * COUNT( * ) + - 26
----
32

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL + 58 * COUNT ( * ) + - 26
----
32

query I rowsort
SELECT 8 - - 91 - - 17
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT 14 * - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-9402
SELECT 14 * - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT DISTINCT - MAX( ALL + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT - MAX ( ALL + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT DISTINCT - 8 + + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT - 8 + + COUNT ( * )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT ALL + ( + - 98 ) DIV + ( + + 42 ) + 83
----
81

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + ( + - 98 ) / + ( + + 42 ) + 83
----
81

query I rowsort
SELECT ALL - 6 + - + 95 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT + COUNT( * ) + + 89 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT + COUNT ( * ) + + 89 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - COUNT( * ) * + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9408
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT ALL + - 7 DIV - - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL + - 7 / - - 3 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9410
SELECT - + 26 DIV - + 90 + + COUNT( * ) + 64 * 99
----
6337

skipif mysql # not compatible
query I rowsort label-9410
SELECT - + 26 / - + 90 + + COUNT ( * ) + 64 * 99
----
6337

query II rowsort
SELECT ALL 1 * - - 66 - + 62 + CASE + 80 WHEN + 9 * - 77 THEN + 60 END * NULLIF ( + 37, 63 ) col1, - 41 AS col0
----
NULL
-41

query I rowsort
SELECT ALL - 66 - - + 80 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9413
SELECT - 11, - 88 + - COUNT( * ) + + 89 col2
----
-11
0

skipif mysql # not compatible
query II rowsort label-9413
SELECT - 11, - 88 + - COUNT ( * ) + + 89 col2
----
-11
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9414
SELECT ALL 22 AS col2, + 50 * 73 * + COUNT( * ) AS col1
----
22
3650

skipif mysql # not compatible
query II rowsort label-9414
SELECT ALL 22 AS col2, + 50 * 73 * + COUNT ( * ) AS col1
----
22
3650

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT - + 91 + - COUNT( * ) + - COALESCE ( - - 86, 2 * - + CASE - + 76 WHEN + ( + 77 ) * 93 / + + MIN( ALL - + 2 ) - NULLIF ( + ( - 84 ), - - 34 * 95 ) THEN NULL WHEN + 66 THEN 26 WHEN 4 * + MIN( ALL - 55 ) THEN 83 ELSE NULL END, COUNT( * ) * - 21, - ( - CASE - 13 WHEN + COUNT( * ) THEN 19 WHEN COUNT( * ) THEN 48 END ) * - 59 ) * 41
----
-3618

skipif mysql # not compatible
query I rowsort label-9415
SELECT - + 91 + - COUNT ( * ) + - COALESCE ( - - 86, 2 * - + CASE - + 76 WHEN + ( + 77 ) * 93 / + + MIN ( ALL - + 2 ) - NULLIF ( + ( - 84 ), - - 34 * 95 ) THEN NULL WHEN + 66 THEN 26 WHEN 4 * + MIN ( ALL - 55 ) THEN 83 ELSE NULL END, COUNT ( * ) * - 21, - ( - CASE - 13 WHEN + COUNT ( * ) THEN 19 WHEN COUNT ( * ) THEN 48 END ) * - 59 ) * 41
----
-3618

query I rowsort
SELECT + COALESCE ( - 11, + + 70, 43 ) * + - 1 * 32
----
352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT - ( + 92 ) * - CAST( + ( - 57 ) AS SIGNED ) AS col0
----
-5244

skipif mysql # not compatible
query I rowsort label-9417
SELECT - ( + 92 ) * - CAST ( + ( - 57 ) AS INTEGER ) AS col0
----
-5244

query I rowsort
SELECT - 51 + + 85 AS col1
----
34

query I rowsort
SELECT - 64 * + 8
----
-512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9420
SELECT + CASE 49 WHEN + MAX( + - 10 ) * + 78 THEN + + 28 WHEN + - 55 * ( 27 ) THEN - NULLIF ( 21, - 70 + - ( NULLIF ( ( + COALESCE ( 84, - CAST( NULL AS SIGNED ) + + 59 ) ), 50 ) ) ) / + CASE WHEN 30 * + 84 NOT IN ( - 43 - - 75 * 80 ) THEN - ( - 66 ) * 35 + 11 * + COUNT( * ) END ELSE NULL END + - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT + CASE 49 WHEN + MAX ( + - 10 ) * + 78 THEN + + 28 WHEN + - 55 * ( 27 ) THEN - NULLIF ( 21, - 70 + - ( NULLIF ( ( + COALESCE ( 84, - CAST ( NULL AS INTEGER ) + + 59 ) ), 50 ) ) ) / + CASE WHEN 30 * + 84 NOT IN ( - 43 - - 75 * 80 ) THEN - ( - 66 ) * 35 + 11 * + COUNT ( * ) END ELSE NULL END + - 31 AS col0
----
NULL

query I rowsort
SELECT + - 50 + 6
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL COUNT( - + NULLIF ( + + 4, 9 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL COUNT ( - + NULLIF ( + + 4, 9 ) ) col0
----
1

query I rowsort
SELECT ALL 31 * - - 90 * COALESCE ( + 1, 38 )
----
2790

query I rowsort
SELECT + + 75 + 62 + - 59 + - 71 * + 94 + ( + 50 ) AS col1
----
-6546

onlyif mysql # DIV for integer division: 
query I rowsort label-9425
SELECT ALL + ( 48 ) DIV + 65 * 63 - - 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL + ( 48 ) / + 65 * 63 - - 29 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + - 58 * - CASE - + 21 WHEN - COUNT( * ) THEN + - 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT + - 58 * - CASE - + 21 WHEN - COUNT ( * ) THEN + - 18 END AS col0
----
NULL

query I rowsort
SELECT + - 0 + + 8 * - 16 AS col0
----
-128

query I rowsort
SELECT + ( - 58 ) + 0
----
-58

query I rowsort
SELECT + 73 + 77 col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + 91 * - SUM( DISTINCT - - 79 ) AS col0
----
-7189

skipif mysql # not compatible
query I rowsort label-9430
SELECT + 91 * - SUM ( DISTINCT - - 79 ) AS col0
----
-7189

query I rowsort
SELECT DISTINCT CASE + - 58 WHEN + 3 * - 8 THEN + 81 ELSE NULL END + - - 91
----
NULL

query I rowsort
SELECT - 67 * 69 AS col1
----
-4623

query I rowsort
SELECT ALL 73 + + 30
----
103

query I rowsort
SELECT + 37 + + 82 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT 2 + - 62 + - 76 + - - CASE 20 WHEN - 24 THEN - 41 WHEN - 83 * - + 54 * + + COUNT( * ) THEN + 96 / + 7 - + 52 + 24 * - COUNT( * ) WHEN + 39 THEN NULL END + 61 * AVG ( - 57 ) / MIN( 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT 2 + - 62 + - 76 + - - CASE 20 WHEN - 24 THEN - 41 WHEN - 83 * - + 54 * + + COUNT ( * ) THEN + 96 / + 7 - + 52 + 24 * - COUNT ( * ) WHEN + 39 THEN NULL END + 61 * AVG ( - 57 ) / MIN ( 81 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT + 14 + - + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9436
SELECT + 14 + - + COUNT ( * )
----
13

query I rowsort
SELECT + 31 * - 99 AS col2
----
-3069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT ALL - 37 * + - 8 + + - 77 + 40 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL - 37 * + - 8 + + - 77 + 40 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ALL + COUNT( 11 ) * + MIN( ALL + 16 ) + + 81 * - - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL + COUNT ( 11 ) * + MIN ( ALL + 16 ) + + 81 * - - COUNT ( * ) AS col0
----
97

query I rowsort
SELECT ( + + 88 ) AS col2
----
88

query I rowsort
SELECT ALL 17 * + 90 + 37
----
1567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9442
SELECT - NULLIF ( + 61, - 98 * 79 + - - 17 DIV + + MAX( DISTINCT - + 57 ) ) DIV + 84 * - + 97 * + + COUNT( * ) * + 31 + + 18
----
18

skipif mysql # not compatible
query I rowsort label-9442
SELECT - NULLIF ( + 61, - 98 * 79 + - - 17 / + + MAX ( DISTINCT - + 57 ) ) / + 84 * - + 97 * + + COUNT ( * ) * + 31 + + 18
----
18

query I rowsort
SELECT - 1 * 43 * 1 col1
----
-43

query I rowsort
SELECT ( + 99 ) AS col2
----
99

query II rowsort
SELECT ( - 14 ), 41 AS col2
----
-14
41

query I rowsort
SELECT ALL + 50 * + 44
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT + 65 + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-9447
SELECT + 65 + - COUNT ( * )
----
64

query II rowsort
SELECT DISTINCT + 19 * - 59 + + NULLIF ( - 57, - ( - 95 ) ) * - 86 AS col2, 24 AS col2
----
3781
24

query II rowsort
SELECT DISTINCT 7 * + 81, - 68 AS col2
----
567
-68

query I rowsort
SELECT DISTINCT + 68 * + 65 - + 24 AS col2
----
4396

query I rowsort
SELECT ALL + + 55 * + 11 * 89 AS col2
----
53845

query I rowsort
SELECT DISTINCT + 82 * - 50 - - - 61 AS col2
----
-4161

query I rowsort
SELECT - 78 + - 15 * - - 52 + 38 * - 76 AS col2
----
-3746

query I rowsort
SELECT ALL + - 65 col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9455
SELECT DISTINCT + - ( - - 67 ) DIV - - 44
----
-1

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT + - ( - - 67 ) / - - 44
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL + + MAX( ALL + ( 5 ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + + MAX ( ALL + ( 5 ) ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT DISTINCT - - MIN( 48 ) * COUNT( ALL - 40 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT - - MIN ( 48 ) * COUNT ( ALL - 40 ) AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9458
SELECT ALL 10 * + 11 * + + 14 DIV + 1
----
1540

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL 10 * + 11 * + + 14 / + 1
----
1540

query II rowsort
SELECT - - 4 * - 75, - 71 AS col0
----
-300
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL - + CASE - + CASE + 43 WHEN - 4 THEN + - COUNT( * ) END WHEN + + 46 THEN NULL WHEN - COUNT( * ) THEN + 70 ELSE NULL END * + + 11 * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL - + CASE - + CASE + 43 WHEN - 4 THEN + - COUNT ( * ) END WHEN + + 46 THEN NULL WHEN - COUNT ( * ) THEN + 70 ELSE NULL END * + + 11 * - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT DISTINCT + + 25 * + - MAX( DISTINCT - + 81 ) AS col2
----
2025

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT + + 25 * + - MAX ( DISTINCT - + 81 ) AS col2
----
2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9462
SELECT - + ( - NULLIF ( + COUNT( * ), + + CASE - - 60 WHEN - 90 * - + 49 * - 59 THEN - 25 + + 55 WHEN - 4 * 75 * 39 THEN NULL END ) ) * + CAST( + 2 AS SIGNED ) + - - 7 + - MIN( ALL - 15 ) * - 7
----
-96

skipif mysql # not compatible
query I rowsort label-9462
SELECT - + ( - NULLIF ( + COUNT ( * ), + + CASE - - 60 WHEN - 90 * - + 49 * - 59 THEN - 25 + + 55 WHEN - 4 * 75 * 39 THEN NULL END ) ) * + CAST ( + 2 AS INTEGER ) + - - 7 + - MIN ( ALL - 15 ) * - 7
----
-96

query I rowsort
SELECT NULLIF ( + 58, - 10 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL + COUNT( * ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + COUNT ( * ) * - 71
----
-71

query I rowsort
SELECT + 74 + - 78
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT - ( + 75 ) * - CAST( + + 34 AS SIGNED ) AS col1
----
2550

skipif mysql # not compatible
query I rowsort label-9466
SELECT - ( + 75 ) * - CAST ( + + 34 AS INTEGER ) AS col1
----
2550

query I rowsort
SELECT + 50 * - 33 AS col0
----
-1650

query I rowsort
SELECT - ( - - 5 ) AS col2
----
-5

query I rowsort
SELECT ALL 32 + + 84 col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT DISTINCT ( 49 ) + - + 88 + - 32 + + + ( COUNT( * ) ) * - 11 * - COUNT( - 37 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT ( 49 ) + - + 88 + - 32 + + + ( COUNT ( * ) ) * - 11 * - COUNT ( - 37 ) AS col1
----
-60

query I rowsort
SELECT DISTINCT + 98 + + 71
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT ALL CAST( NULL AS SIGNED ) * + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL CAST ( NULL AS INTEGER ) * + - 15
----
NULL

query II rowsort
SELECT DISTINCT 38 col2, 4
----
38
4

query I rowsort
SELECT ALL - ( + 63 ) + - 33 AS col2
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9475
SELECT DISTINCT ( + - 91 ) DIV 65 DIV - + COUNT( * ) + - 34 DIV + + ( + + COUNT( * ) )
----
-33

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT ( + - 91 ) / 65 / - + COUNT ( * ) + - 34 / + + ( + + COUNT ( * ) )
----
-33

query I rowsort
SELECT ALL 19 + - ( + + 79 ) * + + 93
----
-7328

query I rowsort
SELECT ALL 78 + + - 64
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9478
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + COUNT( * ) + + 50 * 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + COUNT ( * ) + + 50 * 92 AS col1
----
NULL

query I rowsort
SELECT + CASE - - 9 WHEN 83 THEN - 41 WHEN 39 THEN 17 * + 81 / - 94 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9480
SELECT ALL - 94 DIV + 35 + - 26 AS col0, 62
----
-28
62

skipif mysql # not compatible
query II rowsort label-9480
SELECT ALL - 94 / + 35 + - 26 AS col0, 62
----
-28
62

query I rowsort
SELECT 33 * 7 AS col1
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT 39 DIV + + 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9482
SELECT 39 / + + 30 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT NULLIF ( - ( - 49 ), - ( + 4 ) - 75 ) - - + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-9483
SELECT NULLIF ( - ( - 49 ), - ( + 4 ) - 75 ) - - + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT 63 * - + 55 - - ( + + COUNT( * ) ) + - 19
----
-3483

skipif mysql # not compatible
query I rowsort label-9484
SELECT 63 * - + 55 - - ( + + COUNT ( * ) ) + - 19
----
-3483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9485
SELECT ALL - COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT - COUNT( * ) * 23
----
-23

skipif mysql # not compatible
query I rowsort label-9486
SELECT - COUNT ( * ) * 23
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9487
SELECT ALL - + CAST( NULL AS SIGNED ) * + - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL - + CAST ( NULL AS INTEGER ) * + - 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT + COALESCE ( 69, - + SUM( + 95 ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9488
SELECT + COALESCE ( 69, - + SUM ( + 95 ) ) AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9489
SELECT COALESCE ( - COUNT( * ), 38 * + NULLIF ( - 59, 21 ) DIV 43 + + 36 DIV CASE 70 WHEN + + 0 THEN - 77 END + + 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9489
SELECT COALESCE ( - COUNT ( * ), 38 * + NULLIF ( - 59, 21 ) / 43 + + 36 / CASE 70 WHEN + + 0 THEN - 77 END + + 8 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT + - COALESCE ( + + 83, - 55, ( - - 15 ) * 78 + + - 25 + + - COUNT( DISTINCT + 28 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-9490
SELECT + - COALESCE ( + + 83, - 55, ( - - 15 ) * 78 + + - 25 + + - COUNT ( DISTINCT + 28 ) )
----
-83

query I rowsort
SELECT + 19 * - + 25 * 84 col2
----
-39900

query II rowsort
SELECT DISTINCT + COALESCE ( - + 48, 45, - 33 ) * 45 col2, - 38 AS col2
----
-2160
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + 46 * MAX( 27 ) + - ( + COUNT( * ) ) col1
----
1241

skipif mysql # not compatible
query I rowsort label-9493
SELECT + 46 * MAX ( 27 ) + - ( + COUNT ( * ) ) col1
----
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL NULLIF ( + 90, - COUNT( ALL 47 ) ) * - COUNT( * ) + - 24 AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL NULLIF ( + 90, - COUNT ( ALL 47 ) ) * - COUNT ( * ) + - 24 AS col2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9495
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 61 * + 45 * + 53
----
NULL
145485

skipif mysql # not compatible
query II rowsort label-9495
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 61 * + 45 * + 53
----
NULL
145485

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9496
SELECT - 97 AS col1, AVG ( ALL + 72 ) * 85 + + 59 + 51 + - 7 * - 68 + + + CAST( NULL AS SIGNED ) * 59 + + 15 + - + CAST( 4 AS SIGNED ) * + - NULLIF ( 56, + 5 * + - 98 ) * - 94
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-9496
SELECT - 97 AS col1, AVG ( ALL + 72 ) * 85 + + 59 + 51 + - 7 * - 68 + + + CAST ( NULL AS INTEGER ) * 59 + + 15 + - + CAST ( 4 AS INTEGER ) * + - NULLIF ( 56, + 5 * + - 98 ) * - 94
----
-97
NULL

query I rowsort
SELECT DISTINCT - 69 * + ( + - 3 ) - 15 + + 3
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT 38 * + + COUNT( * ) + + + 52 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9498
SELECT 38 * + + COUNT ( * ) + + + 52 AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9499
SELECT COUNT( * ) col2, 44 + 39 AS col0
----
1
83

skipif mysql # not compatible
query II rowsort label-9499
SELECT COUNT ( * ) col2, 44 + 39 AS col0
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT - 35 + + MAX( ALL + - 98 ) * + COUNT( * )
----
-133

skipif mysql # not compatible
query I rowsort label-9500
SELECT - 35 + + MAX ( ALL + - 98 ) * + COUNT ( * )
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT COUNT( * ) + - + COUNT( - 68 ) * - ( - 5 )
----
-4

skipif mysql # not compatible
query I rowsort label-9501
SELECT COUNT ( * ) + - + COUNT ( - 68 ) * - ( - 5 )
----
-4

query I rowsort
SELECT 27 * + + NULLIF ( - 27, + + 67 / - 50 - - 36 * CASE - 16 WHEN 33 THEN + 65 * - - 83 ELSE NULL END * - - 33 )
----
-729

query I rowsort
SELECT 98 + - - 35
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT 8 + + + CAST( + 38 AS SIGNED ) - + + 26 * COALESCE ( - - 50, + COUNT( DISTINCT - 59 ) )
----
-1254

skipif mysql # not compatible
query I rowsort label-9504
SELECT 8 + + + CAST ( + 38 AS INTEGER ) - + + 26 * COALESCE ( - - 50, + COUNT ( DISTINCT - 59 ) )
----
-1254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT ALL - 30 + COUNT( * ) DIV + - 64 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - 30 + COUNT ( * ) / + - 64 AS col1
----
-30

query I rowsort
SELECT 17 + + 73
----
90

query II rowsort
SELECT ALL - 57 + + 18 AS col2, + 85 + + 54 * + 25 AS col1
----
-39
1435

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT 27 + MAX( DISTINCT 73 ) + - + 11 * 8 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9508
SELECT 27 + MAX ( DISTINCT 73 ) + - + 11 * 8 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT ALL CAST( NULL AS SIGNED ) + - - 50 * + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL CAST ( NULL AS INTEGER ) + - - 50 * + - 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9510
SELECT 38 AS col0, - 81 DIV COUNT( * )
----
38
-81

skipif mysql # not compatible
query II rowsort label-9510
SELECT 38 AS col0, - 81 / COUNT ( * )
----
38
-81

query I rowsort
SELECT ALL + 85 * + 79 col1
----
6715

query II rowsort
SELECT 33 AS col1, + 81 * - + 52 AS col2
----
33
-4212

query I rowsort
SELECT 42 + - 50
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL + 95 - + + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + 95 - + + COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9515
SELECT + 63 AS col1, + 73 + + CASE - ( 79 ) WHEN - COUNT( * ) THEN + 77 * + 58 * - + 99 + 6 + COUNT( DISTINCT - ( + 83 ) ) END
----
63
NULL

skipif mysql # not compatible
query II rowsort label-9515
SELECT + 63 AS col1, + 73 + + CASE - ( 79 ) WHEN - COUNT ( * ) THEN + 77 * + 58 * - + 99 + 6 + COUNT ( DISTINCT - ( + 83 ) ) END
----
63
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9516
SELECT DISTINCT - 29, + 71 * - + 23 * COUNT( - + 27 ) AS col2
----
-29
-1633

skipif mysql # not compatible
query II rowsort label-9516
SELECT DISTINCT - 29, + 71 * - + 23 * COUNT ( - + 27 ) AS col2
----
-29
-1633

query I rowsort
SELECT - 37 * + 17
----
-629

query I rowsort
SELECT ALL - + 88 * 39
----
-3432

query I rowsort
SELECT DISTINCT - - 29 AS col0
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9520
SELECT CAST( NULL AS DECIMAL ) * + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT CAST ( NULL AS REAL ) * + - 76
----
NULL

query I rowsort
SELECT DISTINCT - - 52 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9522
SELECT - COUNT( * ) + + NULLIF ( 44, - - COUNT( * ) ) AS col0, 35 * + + MIN( DISTINCT + 66 ) + CAST( - 91 AS SIGNED ) * + 60 AS col2
----
43
-3150

skipif mysql # not compatible
query II rowsort label-9522
SELECT - COUNT ( * ) + + NULLIF ( 44, - - COUNT ( * ) ) AS col0, 35 * + + MIN ( DISTINCT + 66 ) + CAST ( - 91 AS INTEGER ) * + 60 AS col2
----
43
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT DISTINCT - SUM( - + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT - SUM ( - + 1 )
----
1

query I rowsort
SELECT ALL - - ( 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT 37 * COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) + - 77 * - 69 / - 14 * + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT 37 * COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) + - 77 * - 69 / - 14 * + - 42
----
NULL

query II rowsort
SELECT ALL - - 9, - 40 col0
----
9
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9527
SELECT + + 37 * + + 19 - - COUNT( * ) + + CASE + COALESCE ( + 62, - 26 * + 24 * - 21 - - CAST( NULL AS SIGNED ) * 8, - 43 ) WHEN + 76 THEN - 24 * COUNT( ALL - - 60 ) + - 0 WHEN COUNT( * ) THEN NULL END * + 46 * + + 3 * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT + + 37 * + + 19 - - COUNT ( * ) + + CASE + COALESCE ( + 62, - 26 * + 24 * - 21 - - CAST ( NULL AS INTEGER ) * 8, - 43 ) WHEN + 76 THEN - 24 * COUNT ( ALL - - 60 ) + - 0 WHEN COUNT ( * ) THEN NULL END * + 46 * + + 3 * COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9528
SELECT - 67 DIV - 76 * - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9528
SELECT - 67 / - 76 * - + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT + 76 + + 31 + 78
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + COUNT( * ) * 31
----
31

skipif mysql # not compatible
query I rowsort label-9530
SELECT + COUNT ( * ) * 31
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT CAST( - 18 AS SIGNED ) + - 76 * + - 69
----
5226

skipif mysql # not compatible
query I rowsort label-9531
SELECT CAST ( - 18 AS INTEGER ) + - 76 * + - 69
----
5226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT - 28 * CAST( NULL AS SIGNED ) + - - MIN( + + 98 ) + - + CAST( - 3 AS SIGNED ) - - 45 * + + 33 * - 88 + - SUM( - 97 ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT - 28 * CAST ( NULL AS INTEGER ) + - - MIN ( + + 98 ) + - + CAST ( - 3 AS INTEGER ) - - 45 * + + 33 * - 88 + - SUM ( - 97 ) + - 86
----
NULL

query I rowsort
SELECT DISTINCT + ( + 99 ) * + 45 + + ( 10 )
----
4465

query I rowsort
SELECT DISTINCT 85 + 13
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL - MIN( + 74 ) * ( + 42 ) AS col2
----
-3108

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - MIN ( + 74 ) * ( + 42 ) AS col2
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL COUNT( * ) + + 43 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL COUNT ( * ) + + 43 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9537
SELECT DISTINCT 79 * - - CAST( - + COALESCE ( - + NULLIF ( - 60, - - 83 ), + - 82 * + - 60 ) AS DECIMAL ) * + + 48 * - + 56 - - - SUM( - ( + 83 ) ) + + 17 * + CAST( NULL AS DECIMAL ) * + COUNT( - 48 ) - + CASE + 44 WHEN + ( - 85 ) THEN - ( 98 ) END + - 56 * + 26 / + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT 79 * - - CAST ( - + COALESCE ( - + NULLIF ( - 60, - - 83 ), + - 82 * + - 60 ) AS REAL ) * + + 48 * - + 56 - - - SUM ( - ( + 83 ) ) + + 17 * + CAST ( NULL AS REAL ) * + COUNT ( - 48 ) - + CASE + 44 WHEN + ( - 85 ) THEN - ( 98 ) END + - 56 * + 26 / + 76
----
NULL

query I rowsort
SELECT 33 * 39 * + 70 AS col1
----
90090

query I rowsort
SELECT - NULLIF ( + 12, AVG ( - + 68 ) )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9540
SELECT 52 DIV + 21
----
2

skipif mysql # not compatible
query I rowsort label-9540
SELECT 52 / + 21
----
2

query I rowsort
SELECT ALL - ( 61 ) - 92
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9542
SELECT COUNT( * ) * + CAST( 87 AS SIGNED ) * + CASE - COUNT( * ) WHEN + - COUNT( ALL + 20 ) THEN + 80 WHEN + - 1 THEN NULL END DIV - 10 + + - COUNT( * ) DIV + - COUNT( * ) - + 85 + + 11
----
-769

skipif mysql # not compatible
query I rowsort label-9542
SELECT COUNT ( * ) * + CAST ( 87 AS INTEGER ) * + CASE - COUNT ( * ) WHEN + - COUNT ( ALL + 20 ) THEN + 80 WHEN + - 1 THEN NULL END / - 10 + + - COUNT ( * ) / + - COUNT ( * ) - + 85 + + 11
----
-769

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9543
SELECT ALL AVG ( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT + 82 * - 90
----
-7380

query I rowsort
SELECT DISTINCT + ( - 56 ) * + 57 * 53 col2
----
-169176

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL + SUM( ALL 10 ) - NULLIF ( + 64, + CASE - 82 WHEN - COUNT( * ) THEN NULL WHEN - 68 + + 8 + + 56 THEN + ( COUNT( * ) ) ELSE NULL END / - + 33 ) - 46 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + SUM ( ALL 10 ) - NULLIF ( + 64, + CASE - 82 WHEN - COUNT ( * ) THEN NULL WHEN - 68 + + 8 + + 56 THEN + ( COUNT ( * ) ) ELSE NULL END / - + 33 ) - 46 AS col0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9547
SELECT - MAX( ALL + 67 ) DIV - + ( - ( - 84 ) ) + + 28
----
28

skipif mysql # not compatible
query I rowsort label-9547
SELECT - MAX ( ALL + 67 ) / - + ( - ( - 84 ) ) + + 28
----
28

query I rowsort
SELECT ALL + 91 * - - 23 * - + 76
----
-159068

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT - 65 + COUNT( * ) + + + 75
----
11

skipif mysql # not compatible
query I rowsort label-9549
SELECT - 65 + COUNT ( * ) + + + 75
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9550
SELECT - 71 * + + 86 AS col0, + COUNT( * ) AS col1
----
-6106
1

skipif mysql # not compatible
query II rowsort label-9550
SELECT - 71 * + + 86 AS col0, + COUNT ( * ) AS col1
----
-6106
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9551
SELECT + 57 + + COUNT( * ) AS col0, + 70 + COUNT( * ) + - 11 * - + CASE - + COALESCE ( - 86, + ( + COUNT( - + 43 ) ) * - - 22 * + AVG ( DISTINCT 4 ) + - + 52 ) WHEN - - 36 * + - 31 - COUNT( * ) + - + 81 THEN NULL ELSE 6 END AS col2
----
58
137

skipif mysql # not compatible
query II rowsort label-9551
SELECT + 57 + + COUNT ( * ) AS col0, + 70 + COUNT ( * ) + - 11 * - + CASE - + COALESCE ( - 86, + ( + COUNT ( - + 43 ) ) * - - 22 * + AVG ( DISTINCT 4 ) + - + 52 ) WHEN - - 36 * + - 31 - COUNT ( * ) + - + 81 THEN NULL ELSE 6 END AS col2
----
58
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT - 15 + CAST( NULL AS SIGNED ) / - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT - 15 + CAST ( NULL AS INTEGER ) / - 53
----
NULL

query I rowsort
SELECT - CASE - NULLIF ( - + 80, - - 28 ) WHEN + 98 * 22 + 16 THEN - 45 * 41 + + - 73 END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + ( + 92 ) AS col2, 35
----
92
35

query I rowsort
SELECT - - 91 * + - 45 * - + 24 AS col2
----
98280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9556
SELECT ALL - + COUNT( * ) * - + 44 * 93 + + + ( 25 ) DIV - COUNT( * ) AS col1
----
4067

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - + COUNT ( * ) * - + 44 * 93 + + + ( 25 ) / - COUNT ( * ) AS col1
----
4067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT ALL 80 * 58 + - + ( + 88 ) * + 51 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL 80 * 58 + - + ( + 88 ) * + 51 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 18 * - + 83 + + 44 AS col1
----
-1450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9559
SELECT + 73 * + COUNT( * ) * + - COUNT( * ) / - - 35 - - - CAST( NULL AS SIGNED ) * + + 28 / 83 * ( + + 16 ) * CASE - ( NULLIF ( 24, + 18 ) ) WHEN - 91 + + 96 THEN - COUNT( * ) * COUNT( * ) / - + 54 + + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT + 73 * + COUNT ( * ) * + - COUNT ( * ) / - - 35 - - - CAST ( NULL AS INTEGER ) * + + 28 / 83 * ( + + 16 ) * CASE - ( NULLIF ( 24, + 18 ) ) WHEN - 91 + + 96 THEN - COUNT ( * ) * COUNT ( * ) / - + 54 + + 74 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9560
SELECT ALL + ( 62 ) AS col2, + ( + CAST( NULL AS SIGNED ) ) / - 56 AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-9560
SELECT ALL + ( 62 ) AS col2, + ( + CAST ( NULL AS INTEGER ) ) / - 56 AS col1
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL - + 83 * 14 * - - 5 * + 1 + COUNT( * ) + + 22 + - COUNT( * ) AS col2
----
-5788

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - + 83 * 14 * - - 5 * + 1 + COUNT ( * ) + + 22 + - COUNT ( * ) AS col2
----
-5788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT + + 65 * + - CAST( NULL AS SIGNED ) * - ( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT + + 65 * + - CAST ( NULL AS INTEGER ) * - ( - 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + - COUNT( DISTINCT + + 3 ) * + - 45 - 4 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9563
SELECT + - COUNT ( DISTINCT + + 3 ) * + - 45 - 4 AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9564
SELECT ALL - COALESCE ( + 38, 10 + + COUNT( * ) ) * + - CAST( + + SUM( - 28 ) AS DECIMAL ) + CAST( NULL AS SIGNED ) + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL - COALESCE ( + 38, 10 + + COUNT ( * ) ) * + - CAST ( + + SUM ( - 28 ) AS REAL ) + CAST ( NULL AS INTEGER ) + - 61
----
NULL

query I rowsort
SELECT DISTINCT 20 * - + 90
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + 79 + MIN( ALL + 59 ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-9566
SELECT + 79 + MIN ( ALL + 59 ) AS col2
----
138

query I rowsort
SELECT + 85 - - 53
----
138

query I rowsort
SELECT + 55 + - + 30 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT COUNT( DISTINCT 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9569
SELECT COUNT ( DISTINCT 95 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT ALL CAST( 19 AS SIGNED ) - 23
----
-4

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL CAST ( 19 AS INTEGER ) - 23
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT COUNT( + 43 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9571
SELECT COUNT ( + 43 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT + 49 + + COALESCE ( - 17, + CASE + + 93 WHEN + + COUNT( * ) * - - ( + 58 ) THEN NULL WHEN + + ( + 35 ) * 24 + + - 46 + 45 / + - 74 * + - CASE + 83 WHEN - - 15 THEN 29 * - + COUNT( * ) + - 78 WHEN + + 20 THEN NULL END THEN 29 END ) * COUNT( - 86 )
----
32

skipif mysql # not compatible
query I rowsort label-9572
SELECT + 49 + + COALESCE ( - 17, + CASE + + 93 WHEN + + COUNT ( * ) * - - ( + 58 ) THEN NULL WHEN + + ( + 35 ) * 24 + + - 46 + 45 / + - 74 * + - CASE + 83 WHEN - - 15 THEN 29 * - + COUNT ( * ) + - 78 WHEN + + 20 THEN NULL END THEN 29 END ) * COUNT ( - 86 )
----
32

query I rowsort
SELECT - 55 * + + 75 AS col2
----
-4125

query II rowsort
SELECT DISTINCT 60 * 5 * - 64 AS col2, ( + - 61 ) * 30 + - 14 + + 89 AS col1
----
-19200
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL - 4 * COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - 4 * COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT + 1 + - 23 * 30
----
-689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT + COUNT( * ) * + + 19 DIV + + 73
----
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT + COUNT ( * ) * + + 19 / + + 73
----
0

query I rowsort
SELECT DISTINCT NULLIF ( - - 28, 93 ) * + - 61 AS col2
----
-1708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL NULLIF ( 33, - 36 * + - 69 * COUNT( + + 9 ) * - 6 + 32 * 31 * + - 29 / - 46 / ( CASE - 6 WHEN + 72 + + COUNT( * ) * - 80 + - 59 THEN - - CAST( + 38 AS SIGNED ) END ) + 1 * - - 12 / 88 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL NULLIF ( 33, - 36 * + - 69 * COUNT ( + + 9 ) * - 6 + 32 * 31 * + - 29 / - 46 / ( CASE - 6 WHEN + 72 + + COUNT ( * ) * - 80 + - 59 THEN - - CAST ( + 38 AS INTEGER ) END ) + 1 * - - 12 / 88 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9580
SELECT 74 AS col2, COUNT( * ) AS col0
----
74
1

skipif mysql # not compatible
query II rowsort label-9580
SELECT 74 AS col2, COUNT ( * ) AS col0
----
74
1

query I rowsort
SELECT - 47 + - + 43 AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9582
SELECT - + CASE CAST( + 39 AS SIGNED ) WHEN - + 7 THEN NULL WHEN COUNT( * ) THEN + COUNT( - 58 ) + - + 52 - 3 + + 37 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT - + CASE CAST ( + 39 AS INTEGER ) WHEN - + 7 THEN NULL WHEN COUNT ( * ) THEN + COUNT ( - 58 ) + - + 52 - 3 + + 37 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT - 46 + - 57 * CAST( - 70 AS SIGNED )
----
3944

skipif mysql # not compatible
query I rowsort label-9583
SELECT - 46 + - 57 * CAST ( - 70 AS INTEGER )
----
3944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9584
SELECT - - 81 DIV 29 + - 51 DIV - COALESCE ( - + MIN( - ( - 31 ) ), - 19, + 54 * - 43 * - 87 ) + MIN( ALL + ( 29 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9584
SELECT - - 81 / 29 + - 51 / - COALESCE ( - + MIN ( - ( - 31 ) ), - 19, + 54 * - 43 * - 87 ) + MIN ( ALL + ( 29 ) ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL + + 20 + + 65 + - - 96 + - + 45 + COUNT( * ) + + - MIN( - 5 )
----
142

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + + 20 + + 65 + - - 96 + - + 45 + COUNT ( * ) + + - MIN ( - 5 )
----
142

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9586
SELECT - + 70 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT - + 70 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT ALL 92 AS col1, + 25 * + 94
----
92
2350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9588
SELECT - COALESCE ( COALESCE ( + - CAST( NULL AS SIGNED ), COUNT( * ) ), ( + 39 ), 33 * COALESCE ( + 67, - + MAX( DISTINCT 98 ) ) + - + 36 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9588
SELECT - COALESCE ( COALESCE ( + - CAST ( NULL AS INTEGER ), COUNT ( * ) ), ( + 39 ), 33 * COALESCE ( + 67, - + MAX ( DISTINCT 98 ) ) + - + 36 ) col0
----
-1

query I rowsort
SELECT ALL + + 45 * + + 61 AS col2
----
2745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT ALL 28 DIV - 49 + - 88 + - + 8 * - - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL 28 / - 49 + - 88 + - + 8 * - - COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT - COUNT( * ) - - 2 col2
----
1

skipif mysql # not compatible
query I rowsort label-9591
SELECT - COUNT ( * ) - - 2 col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT - 58 DIV - - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9592
SELECT - 58 / - - 88 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT 96 DIV - + 12 + COALESCE ( - 61, ( - 48 ) ) + - - 22
----
-47

skipif mysql # not compatible
query I rowsort label-9593
SELECT 96 / - + 12 + COALESCE ( - 61, ( - 48 ) ) + - - 22
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT + MAX( - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT + MAX ( - 92 )
----
-92

query I rowsort
SELECT - + 69 + + 22 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT + SUM( + + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-9596
SELECT + SUM ( + + 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9597
SELECT ALL CAST( NULL AS SIGNED ) / + + SUM( ALL - - NULLIF ( - 80, 55 ) ) + - 38 + 47 + - MIN( ALL - 23 ) / + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL CAST ( NULL AS INTEGER ) / + + SUM ( ALL - - NULLIF ( - 80, 55 ) ) + - 38 + 47 + - MIN ( ALL - 23 ) / + 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL + + MAX( ALL - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + + MAX ( ALL - 21 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9599
SELECT - 57 * 3 * + MAX( - 11 ) - - 53 + + - MIN( ALL - 80 ) + + 99 * COUNT( * ) - - 32 + - CAST( + - 71 AS SIGNED ) + - 24 + - COUNT( * )
----
2191

skipif mysql # not compatible
query I rowsort label-9599
SELECT - 57 * 3 * + MAX ( - 11 ) - - 53 + + - MIN ( ALL - 80 ) + + 99 * COUNT ( * ) - - 32 + - CAST ( + - 71 AS INTEGER ) + - 24 + - COUNT ( * )
----
2191

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT ALL - - MAX( - 70 ) / + CASE + - 17 WHEN - + NULLIF ( - 89, 8 ) * 38 THEN + - 2 END * - 0 - - 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL - - MAX ( - 70 ) / + CASE + - 17 WHEN - + NULLIF ( - 89, 8 ) * 38 THEN + - 2 END * - 0 - - 50 col1
----
NULL

query I rowsort
SELECT 26 * 96 + 30 col2
----
2526

query I rowsort
SELECT ( + + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT + SUM( + 23 ) + 3 + - 65 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9603
SELECT + SUM ( + 23 ) + 3 + - 65 AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL + CAST( NULL AS SIGNED ) * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + CAST ( NULL AS INTEGER ) * + 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9605
SELECT ALL CAST( NULL AS SIGNED ) * + + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL CAST ( NULL AS INTEGER ) * + + 7 AS col0
----
NULL

query II rowsort
SELECT 26 * 62 AS col1, - 23
----
1612
-23

query I rowsort
SELECT + 47 * 76 + - 18 - + 30
----
3524

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9608
SELECT COUNT( * ) DIV ( + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-9608
SELECT COUNT ( * ) / ( + 85 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ( - COUNT( * ) ) * - - 44 + + 69
----
25

skipif mysql # not compatible
query I rowsort label-9609
SELECT ( - COUNT ( * ) ) * - - 44 + + 69
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT ALL + CAST( NULL AS SIGNED ) * - + 58 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 58 * - 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9611
SELECT ALL 13 DIV - + 66 AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-9611
SELECT ALL 13 / - + 66 AS col0, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9612
SELECT ( + + ( - COUNT( * ) ) ) DIV + - COALESCE ( + 62, COUNT( DISTINCT 48 ) * 68 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9612
SELECT ( + + ( - COUNT ( * ) ) ) / + - COALESCE ( + 62, COUNT ( DISTINCT 48 ) * 68 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9613
SELECT 48 DIV - + CAST( 86 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9613
SELECT 48 / - + CAST ( 86 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT DISTINCT 71 + + - SUM( + - 83 ) + 55 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT 71 + + - SUM ( + - 83 ) + 55 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 47 + + 18 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT COUNT( + 83 ) - 40
----
-39

skipif mysql # not compatible
query I rowsort label-9616
SELECT COUNT ( + 83 ) - 40
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT 20 * - + 17 - - ( + + COUNT( ALL - - 45 ) )
----
-339

skipif mysql # not compatible
query I rowsort label-9617
SELECT 20 * - + 17 - - ( + + COUNT ( ALL - - 45 ) )
----
-339

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9618
SELECT DISTINCT 32 + - 87 AS col1, CASE + - 60 WHEN + + 53 THEN + 17 END * CAST( NULL AS SIGNED ) * 87 / 71 AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-9618
SELECT DISTINCT 32 + - 87 AS col1, CASE + - 60 WHEN + + 53 THEN + 17 END * CAST ( NULL AS INTEGER ) * 87 / 71 AS col1
----
-55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL 76 + + 89 - + 78 * + 53 * + COUNT( DISTINCT + 78 ) AS col0
----
-3969

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL 76 + + 89 - + 78 * + 53 * + COUNT ( DISTINCT + 78 ) AS col0
----
-3969

query I rowsort
SELECT DISTINCT ( - - 38 )
----
38

query I rowsort
SELECT - 46 * 15 AS col2
----
-690

query I rowsort
SELECT DISTINCT - - ( - + 32 ) col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT DISTINCT 10 - - COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT 10 - - COUNT ( * ) AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9624
SELECT 7 * + ( - 12 ) + + + COUNT( * ) * 79 DIV - - 80 * + COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-9624
SELECT 7 * + ( - 12 ) + + + COUNT ( * ) * 79 / - - 80 * + COUNT ( * ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL + COUNT( * ) * 47
----
47

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + COUNT ( * ) * 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT 23 * + - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9626
SELECT 23 * + - COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT 27 * - 36 * - MAX( DISTINCT + 20 ) AS col1
----
19440

skipif mysql # not compatible
query I rowsort label-9627
SELECT 27 * - 36 * - MAX ( DISTINCT + 20 ) AS col1
----
19440

query II rowsort
SELECT ALL - 97, + ( 4 ) AS col1
----
-97
4

query I rowsort
SELECT 31 * + 26 - + 61
----
745

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT 36 * COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-9630
SELECT 36 * COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - 5 * 11 - - SUM( + 15 )
----
-40

skipif mysql # not compatible
query I rowsort label-9631
SELECT - 5 * 11 - - SUM ( + 15 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT 42 + + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9632
SELECT 42 + + COUNT ( * ) AS col0
----
43

query I rowsort
SELECT ALL + 78 * - 82
----
-6396

query I rowsort
SELECT 51 + + + 28
----
79

query I rowsort
SELECT 87 * - 43 * + 30
----
-112230

query I rowsort
SELECT DISTINCT - 60 + + 14 AS col0
----
-46

query I rowsort
SELECT ALL + 5 + + - 45 + 90
----
50

query I rowsort
SELECT 67 + - 88 AS col0
----
-21

query I rowsort
SELECT DISTINCT - 48 + + 25 + + 72 AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL - ( - CAST( - 77 AS SIGNED ) ) + 4 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL - ( - CAST ( - 77 AS INTEGER ) ) + 4 AS col2
----
-73

query I rowsort
SELECT DISTINCT + 57 + 57 + - + 85 + - 11 + + 39
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9642
SELECT + COUNT( * ) + - 44 + 29 DIV ( - 40 ) DIV 43 * 76 * 24 * + 36 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9642
SELECT + COUNT ( * ) + - 44 + 29 / ( - 40 ) / 43 * 76 * 24 * + 36 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT NULLIF ( - 24, - - ( - - COUNT( * ) ) ) + - ( + + 35 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9643
SELECT NULLIF ( - 24, - - ( - - COUNT ( * ) ) ) + - ( + + 35 ) AS col0
----
-59

query I rowsort
SELECT 7 * + 3 - - 38
----
59

query II rowsort
SELECT DISTINCT - - 55 AS col2, - 64 AS col0
----
55
-64

query II rowsort
SELECT ALL - + 59 col0, 89 AS col1
----
-59
89

query I rowsort
SELECT DISTINCT + 80 * + + 96
----
7680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT - + 69 * CAST( NULL AS SIGNED ) * - 69 + 64 + 19 + - 66 + + COUNT( * ) - + 32 * CAST( 97 AS SIGNED ) * COUNT( * ) / + ( 58 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT - + 69 * CAST ( NULL AS INTEGER ) * - 69 + 64 + 19 + - 66 + + COUNT ( * ) - + 32 * CAST ( 97 AS INTEGER ) * COUNT ( * ) / + ( 58 ) col0
----
NULL

query I rowsort
SELECT + 42 - 18 col2
----
24

query I rowsort
SELECT + + 42 * + 70 AS col1
----
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL + MIN( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL + MIN ( - 8 )
----
-8

query I rowsort
SELECT + 50 + + 67 col1
----
117

query I rowsort
SELECT 36 * + 2 + + 28 AS col2
----
100

query I rowsort
SELECT DISTINCT - 63 * - 75 * + 84 AS col0
----
396900

query I rowsort
SELECT + 39 * + 72 + 6 - 17 - + 87 * + 26
----
535

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT - 78 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-9656
SELECT - 78 / 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9657
SELECT ( - 71 ) * - 68 + + 45 AS col0, COUNT( * ) DIV - - 60 AS col2
----
4873
0

skipif mysql # not compatible
query II rowsort label-9657
SELECT ( - 71 ) * - 68 + + 45 AS col0, COUNT ( * ) / - - 60 AS col2
----
4873
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT 2 * + - MAX( - + 59 ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT 2 * + - MAX ( - + 59 ) AS col2
----
118

query I rowsort
SELECT ALL - 46 * - + ( 32 )
----
1472

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT + 42 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT + 42 / - 52
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9661
SELECT COUNT( - 17 ) * 74 + + COUNT( * ) DIV + 70 col1
----
74

skipif mysql # not compatible
query I rowsort label-9661
SELECT COUNT ( - 17 ) * 74 + + COUNT ( * ) / + 70 col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9662
SELECT + ( - COALESCE ( + 45, - 96, - 88 * COUNT( * ) * + 94 - + NULLIF ( + NULLIF ( NULLIF ( + NULLIF ( - MIN( ALL 70 ), - + 44 * - + 40 ), + - 32 * - 9 - 32 + + + 54 ), 10 + - MIN( 90 ) ), 57 + COUNT( * ) / - + 63 * - COALESCE ( + NULLIF ( - CAST( NULL AS DECIMAL ), - 39 * + 39 ), COUNT( * ) + - 50 ) + 28 ) - 15 * + 34 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-9662
SELECT + ( - COALESCE ( + 45, - 96, - 88 * COUNT ( * ) * + 94 - + NULLIF ( + NULLIF ( NULLIF ( + NULLIF ( - MIN ( ALL 70 ), - + 44 * - + 40 ), + - 32 * - 9 - 32 + + + 54 ), 10 + - MIN ( 90 ) ), 57 + COUNT ( * ) / - + 63 * - COALESCE ( + NULLIF ( - CAST ( NULL AS REAL ), - 39 * + 39 ), COUNT ( * ) + - 50 ) + 28 ) - 15 * + 34 ) )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT COUNT( ALL - - 79 ) AS col1, + 43 AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-9663
SELECT COUNT ( ALL - - 79 ) AS col1, + 43 AS col0
----
1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT + 0 * + - 8 + + SUM( ALL 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9664
SELECT + 0 * + - 8 + + SUM ( ALL 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9665
SELECT DISTINCT + COUNT( * ) AS col0, 92 + - 84
----
1
8

skipif mysql # not compatible
query II rowsort label-9665
SELECT DISTINCT + COUNT ( * ) AS col0, 92 + - 84
----
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL COALESCE ( - 53, COUNT( * ) * + 97 * - 93, CASE 59 WHEN 21 THEN + - 70 * 70 + 86 + + 72 WHEN 74 + + + SUM( DISTINCT - 52 ) + + - 61 * - + 54 THEN 2 + - + 79 WHEN + COUNT( * ) * + + 68 / ( 27 ) THEN - - SUM( DISTINCT 37 ) END )
----
-53

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL COALESCE ( - 53, COUNT ( * ) * + 97 * - 93, CASE 59 WHEN 21 THEN + - 70 * 70 + 86 + + 72 WHEN 74 + + + SUM ( DISTINCT - 52 ) + + - 61 * - + 54 THEN 2 + - + 79 WHEN + COUNT ( * ) * + + 68 / ( 27 ) THEN - - SUM ( DISTINCT 37 ) END )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT - 88 * COUNT( * ) * + - 91
----
8008

skipif mysql # not compatible
query I rowsort label-9667
SELECT - 88 * COUNT ( * ) * + - 91
----
8008

query I rowsort
SELECT ALL - 74 + 91
----
17

query II rowsort
SELECT + 49, - 97 AS col2
----
49
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT - - ( CASE + 72 WHEN 27 * + 24 THEN NULL WHEN - COUNT( * ) THEN - 87 + 5 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT - - ( CASE + 72 WHEN 27 * + 24 THEN NULL WHEN - COUNT ( * ) THEN - 87 + 5 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9671
SELECT - - 64 * - 77 DIV + COUNT( * )
----
-4928

skipif mysql # not compatible
query I rowsort label-9671
SELECT - - 64 * - 77 / + COUNT ( * )
----
-4928

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT - 5, COALESCE ( - + ( + + 90 ), 64, - COUNT( * ) + ( SUM( - 11 ) ) ) AS col1
----
-5
-90

skipif mysql # not compatible
query II rowsort label-9672
SELECT - 5, COALESCE ( - + ( + + 90 ), 64, - COUNT ( * ) + ( SUM ( - 11 ) ) ) AS col1
----
-5
-90

query I rowsort
SELECT - COALESCE ( + 99, + 50 ) AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9674
SELECT ALL - COUNT( * ) - + 80 * - - CASE - + 23 WHEN - 48 THEN NULL WHEN + - 28 * + CAST( NULL AS SIGNED ) THEN NULL ELSE + COUNT( * ) END
----
-81

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - COUNT ( * ) - + 80 * - - CASE - + 23 WHEN - 48 THEN NULL WHEN + - 28 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE + COUNT ( * ) END
----
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9675
SELECT - COUNT( ALL CAST( NULL AS DECIMAL ) ) - 26
----
-26

skipif mysql # not compatible
query I rowsort label-9675
SELECT - COUNT ( ALL CAST ( NULL AS REAL ) ) - 26
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9676
SELECT ALL - - COUNT( * ) * + 12 * - - CASE - 62 WHEN + - AVG ( DISTINCT - 8 ) * COUNT( * ) * - - 21 + + 98 + + COUNT( * ) THEN - + 57 ELSE 8 DIV - 49 * 98 * 76 * + COUNT( * ) END + + 24
----
24

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - - COUNT ( * ) * + 12 * - - CASE - 62 WHEN + - AVG ( DISTINCT - 8 ) * COUNT ( * ) * - - 21 + + 98 + + COUNT ( * ) THEN - + 57 ELSE 8 / - 49 * 98 * 76 * + COUNT ( * ) END + + 24
----
24

query II rowsort
SELECT DISTINCT + 34, + 20 * + - 75 + + 57 * ( 77 ) + + 51 AS col1
----
34
2940

query I rowsort
SELECT - 81 - + 53 AS col1
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL - - 67 - + 70 - 21 - 89 * - + 4 * - COALESCE ( - COUNT( * ), 74 ) * NULLIF ( 75, + COUNT( * ) ) col2
----
26676

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - - 67 - + 70 - 21 - 89 * - + 4 * - COALESCE ( - COUNT ( * ), 74 ) * NULLIF ( 75, + COUNT ( * ) ) col2
----
26676

query I rowsort
SELECT - + 32 * - 42 AS col2
----
1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9681
SELECT ALL - COUNT( * ) DIV + 59 * COALESCE ( + 76, - 32 + + - MIN( DISTINCT + 25 ) ) * - + 17 * - + ( - + 22 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - COUNT ( * ) / + 59 * COALESCE ( + 76, - 32 + + - MIN ( DISTINCT + 25 ) ) * - + 17 * - + ( - + 22 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9682
SELECT - + COUNT( * ), COUNT( * ) * 47 * + 75 AS col0
----
-1
3525

skipif mysql # not compatible
query II rowsort label-9682
SELECT - + COUNT ( * ), COUNT ( * ) * 47 * + 75 AS col0
----
-1
3525

query II rowsort
SELECT - 70 * + 63 AS col0, + 34 AS col2
----
-4410
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT + 40 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT + 40 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT CAST( - 21 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-9685
SELECT CAST ( - 21 AS INTEGER )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9686
SELECT ALL + CASE - - 76 WHEN + - 35 THEN + 94 ELSE NULLIF ( CAST( MIN( + 25 ) AS SIGNED ), CAST( + COUNT( DISTINCT + 7 ) AS SIGNED ) * + + 53 ) END AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL + CASE - - 76 WHEN + - 35 THEN + 94 ELSE NULLIF ( CAST ( MIN ( + 25 ) AS INTEGER ), CAST ( + COUNT ( DISTINCT + 7 ) AS INTEGER ) * + + 53 ) END AS col1
----
25

query II rowsort
SELECT ALL 97 * + + 47 AS col1, - 10 + 8
----
4559
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9688
SELECT ALL - 8 DIV + - COUNT( - + 35 ) + - 67 * + - COUNT( + 30 ) * - - 88 AS col2, 13 * - 43
----
5904
-559

skipif mysql # not compatible
query II rowsort label-9688
SELECT ALL - 8 / + - COUNT ( - + 35 ) + - 67 * + - COUNT ( + 30 ) * - - 88 AS col2, 13 * - 43
----
5904
-559

query I rowsort
SELECT + ( 63 )
----
63

query I rowsort
SELECT + ( - + 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9691
SELECT + 66 + + 81 AS col0, - COUNT( * )
----
147
-1

skipif mysql # not compatible
query II rowsort label-9691
SELECT + 66 + + 81 AS col0, - COUNT ( * )
----
147
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT + 72 * CAST( NULL AS SIGNED ) * + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT + 72 * CAST ( NULL AS INTEGER ) * + 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT ALL 34 * + - 85 * ( - - COUNT( * ) ) + + + CASE - COUNT( * ) WHEN - 92 THEN NULL WHEN + 99 THEN - 27 + + ( + - 12 ) / + - 85 + CASE - - 74 WHEN 31 - - 74 + - COUNT( * ) THEN - 65 WHEN - 67 THEN + 88 + + + COUNT( * ) END + NULLIF ( - 66, - - COUNT( ALL + 27 ) ) WHEN + + 65 THEN - - 82 * AVG ( 75 ) + + 67 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL 34 * + - 85 * ( - - COUNT ( * ) ) + + + CASE - COUNT ( * ) WHEN - 92 THEN NULL WHEN + 99 THEN - 27 + + ( + - 12 ) / + - 85 + CASE - - 74 WHEN 31 - - 74 + - COUNT ( * ) THEN - 65 WHEN - 67 THEN + 88 + + + COUNT ( * ) END + NULLIF ( - 66, - - COUNT ( ALL + 27 ) ) WHEN + + 65 THEN - - 82 * AVG ( 75 ) + + 67 * + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9694
SELECT - COUNT( * ) DIV - - 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT - COUNT ( * ) / - - 9 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9695
SELECT DISTINCT COUNT( * ) * - 90 + + COUNT( * ) AS col2, - COUNT( * ) + + 15
----
-89
14

skipif mysql # not compatible
query II rowsort label-9695
SELECT DISTINCT COUNT ( * ) * - 90 + + COUNT ( * ) AS col2, - COUNT ( * ) + + 15
----
-89
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT ALL + COALESCE ( - MAX( + 19 ), CAST( - COUNT( * ) AS SIGNED ) + CAST( - - 74 AS SIGNED ) * + + 18 + + - ( 28 ), - 58 ) * + 35
----
-665

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + COALESCE ( - MAX ( + 19 ), CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( - - 74 AS INTEGER ) * + + 18 + + - ( 28 ), - 58 ) * + 35
----
-665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9697
SELECT ALL SUM( ALL + 86 ) * + 6 + + - CAST( NULL AS SIGNED ) - - ( + + MIN( DISTINCT 67 ) ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL SUM ( ALL + 86 ) * + 6 + + - CAST ( NULL AS INTEGER ) - - ( + + MIN ( DISTINCT 67 ) ) * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 82 - 15
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9699
SELECT + 16 + - 43 + + COUNT( * ), CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
-26
-1

skipif mysql # not compatible
query II rowsort label-9699
SELECT + 16 + - 43 + + COUNT ( * ), CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
-26
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9700
SELECT + 25 * + - 82 * + 43 * CASE + 15 WHEN + 5 THEN - COUNT( * ) WHEN 73 + - NULLIF ( + - 7, - COUNT( * ) / COUNT( * ) * + ( CAST( NULL AS SIGNED ) ) - 87 ) THEN NULL WHEN - ( + SUM( ALL + 24 ) ) THEN COUNT( * ) * - + 14 / COUNT( * ) - + 69 * 96 * + + 72 * 28 + + COALESCE ( + COALESCE ( 60, 68 ), + 71 * 70, + 98 ) * 29 END * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT + 25 * + - 82 * + 43 * CASE + 15 WHEN + 5 THEN - COUNT ( * ) WHEN 73 + - NULLIF ( + - 7, - COUNT ( * ) / COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) - 87 ) THEN NULL WHEN - ( + SUM ( ALL + 24 ) ) THEN COUNT ( * ) * - + 14 / COUNT ( * ) - + 69 * 96 * + + 72 * 28 + + COALESCE ( + COALESCE ( 60, 68 ), + 71 * 70, + 98 ) * 29 END * + 21
----
NULL

query I rowsort
SELECT + 30 + 18 + + 97
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT - 99 - - COUNT( * ) + + 47 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9702
SELECT - 99 - - COUNT ( * ) + + 47 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL - - 28 * + 46 - 8 + + CASE - 77 WHEN + + COUNT( * ) + + 55 * + - 37 THEN NULL WHEN - 93 * MAX( DISTINCT - + 49 ) - + 30 THEN + + ( + 3 ) / 96 + - 83 * - 15 ELSE NULL END * 70 * + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - - 28 * + 46 - 8 + + CASE - 77 WHEN + + COUNT ( * ) + + 55 * + - 37 THEN NULL WHEN - 93 * MAX ( DISTINCT - + 49 ) - + 30 THEN + + ( + 3 ) / 96 + - 83 * - 15 ELSE NULL END * 70 * + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT SUM( + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-9704
SELECT SUM ( + 63 )
----
63

query I rowsort
SELECT + - 27 + + 95
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL NULLIF ( COUNT( * ), - 80 * + 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL NULLIF ( COUNT ( * ), - 80 * + 42 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT - + ( + 71 ) + - - MIN( DISTINCT + NULLIF ( + 35, 79 ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9707
SELECT - + ( + 71 ) + - - MIN ( DISTINCT + NULLIF ( + 35, 79 ) ) AS col0
----
-36

query I rowsort
SELECT - ( + 43 ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT - 2 * - 27 * + + SUM( DISTINCT - 41 ) * ( + - 98 ) - 38 * + + CAST( + + 53 AS SIGNED )
----
214958

skipif mysql # not compatible
query I rowsort label-9709
SELECT - 2 * - 27 * + + SUM ( DISTINCT - 41 ) * ( + - 98 ) - 38 * + + CAST ( + + 53 AS INTEGER )
----
214958

query I rowsort
SELECT - 41 + + - ( 95 ) AS col2
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT - + MAX( ALL - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9711
SELECT - + MAX ( ALL - 6 )
----
6

query I rowsort
SELECT DISTINCT - ( 31 )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT - MAX( DISTINCT 49 ) AS col0, + COUNT( DISTINCT + 51 ) + - 71 AS col1
----
-49
-70

skipif mysql # not compatible
query II rowsort label-9713
SELECT - MAX ( DISTINCT 49 ) AS col0, + COUNT ( DISTINCT + 51 ) + - 71 AS col1
----
-49
-70

query I rowsort
SELECT DISTINCT - 28 + - 46
----
-74

query I rowsort
SELECT DISTINCT 14 + - 79 AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9716
SELECT - 93 DIV 8 - + COALESCE ( COUNT( * ), + 12, 79 ) * - COUNT( * ) + 25 - + + MIN( DISTINCT 62 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9716
SELECT - 93 / 8 - + COALESCE ( COUNT ( * ), + 12, 79 ) * - COUNT ( * ) + 25 - + + MIN ( DISTINCT 62 ) AS col2
----
-47

query I rowsort
SELECT ALL - ( - ( + + 57 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT NULLIF ( - + 86, - 79 * - 77 + + - COUNT( DISTINCT 17 ) * - - 0 ) * - ( + - COUNT( ALL + - 78 ) ) + - + 32 AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-9718
SELECT NULLIF ( - + 86, - 79 * - 77 + + - COUNT ( DISTINCT 17 ) * - - 0 ) * - ( + - COUNT ( ALL + - 78 ) ) + - + 32 AS col0
----
-118

query I rowsort
SELECT ALL - 73 + - 22 AS col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT ALL 13 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL 13 / + 46
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9721
SELECT 72 AS col1, + COUNT( * ) AS col2
----
72
1

skipif mysql # not compatible
query II rowsort label-9721
SELECT 72 AS col1, + COUNT ( * ) AS col2
----
72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT MAX( DISTINCT + 20 ) + 45 col2
----
65

skipif mysql # not compatible
query I rowsort label-9722
SELECT MAX ( DISTINCT + 20 ) + 45 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT DISTINCT COUNT( * ) * 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT COUNT ( * ) * 67 AS col2
----
67

query I rowsort
SELECT ALL 7 * + 52
----
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9725
SELECT ALL ( + + 18 ) - + ( + + 33 ) * - + CAST( - - 97 AS SIGNED ) * - ( - 14 ) + + 48 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL ( + + 18 ) - + ( + + 33 ) * - + CAST ( - - 97 AS INTEGER ) * - ( - 14 ) + + 48 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 66 col2, 81 col2
----
66
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9727
SELECT 67 * - CASE + - 48 WHEN - - COUNT( * ) / + + 16 THEN - - 72 + - 27 WHEN - 59 + 92 THEN NULL END * + 12 * - - 83 * AVG ( ALL 62 ), MIN( DISTINCT + + 35 ) AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-9727
SELECT 67 * - CASE + - 48 WHEN - - COUNT ( * ) / + + 16 THEN - - 72 + - 27 WHEN - 59 + 92 THEN NULL END * + 12 * - - 83 * AVG ( ALL 62 ), MIN ( DISTINCT + + 35 ) AS col2
----
NULL
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9728
SELECT COUNT( * ) + + + 77 + + + ( - 37 ) - + 66 * + + 8 AS col0, 55
----
-487
55

skipif mysql # not compatible
query II rowsort label-9728
SELECT COUNT ( * ) + + + 77 + + + ( - 37 ) - + 66 * + + 8 AS col0, 55
----
-487
55

query I rowsort
SELECT DISTINCT 6 * - 99
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT - + COUNT( * ) * - - ( COALESCE ( 96, - COUNT( + + 59 ), - 92 + - - 27 ) ) + + + COUNT( * ) + + 79
----
-16

skipif mysql # not compatible
query I rowsort label-9730
SELECT - + COUNT ( * ) * - - ( COALESCE ( 96, - COUNT ( + + 59 ), - 92 + - - 27 ) ) + + + COUNT ( * ) + + 79
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9731
SELECT ALL - 36 - + 34 + + CAST( - COUNT( * ) AS SIGNED ) + + CAST( + + 70 AS SIGNED ) * - 73 + - 97 + - - 51
----
-5227

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL - 36 - + 34 + + CAST ( - COUNT ( * ) AS INTEGER ) + + CAST ( + + 70 AS INTEGER ) * - 73 + - 97 + - - 51
----
-5227

query I rowsort
SELECT + 23 * 95
----
2185

query I rowsort
SELECT 10 * - + 39
----
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-9734
SELECT 67 * - - 71 + - 15 AS col1, - 54 + COUNT( * ) AS col2
----
4742
-53

skipif mysql # not compatible
query II rowsort label-9734
SELECT 67 * - - 71 + - 15 AS col1, - 54 + COUNT ( * ) AS col2
----
4742
-53

query I rowsort
SELECT 89 * + + ( + - 57 ) AS col2
----
-5073

query I rowsort
SELECT - + ( + 42 )
----
-42

query II rowsort
SELECT ALL - 92, 76 AS col0
----
-92
76

query II rowsort
SELECT ALL - 79, - 70 AS col2
----
-79
-70

query I rowsort
SELECT 38 - + + ( - - 12 ) col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 39 * 44 - - 51 * - 18 AS col2
----
798

onlyif mysql # aggregate syntax: 
query II rowsort label-9742
SELECT - 75 AS col2, 15 + + + 3 * - + 62 * SUM( - - 41 ) + - 76 * - 82 AS col2
----
-75
-1379

skipif mysql # not compatible
query II rowsort label-9742
SELECT - 75 AS col2, 15 + + + 3 * - + 62 * SUM ( - - 41 ) + - 76 * - 82 AS col2
----
-75
-1379

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT + 22 DIV 53 DIV - - 17
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT + 22 / 53 / - - 17
----
0

query I rowsort
SELECT DISTINCT 31 + - + 74 col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT ALL 47 AS col2, - COUNT( + 98 ) AS col1
----
47
-1

skipif mysql # not compatible
query II rowsort label-9745
SELECT ALL 47 AS col2, - COUNT ( + 98 ) AS col1
----
47
-1

query I rowsort
SELECT 38 * + - 44 AS col1
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT ( - 64 ) + + + NULLIF ( - 41, 92 / MAX( 59 ) + - + 88 ) + - - 34 - 86
----
-157

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT ( - 64 ) + + + NULLIF ( - 41, 92 / MAX ( 59 ) + - + 88 ) + - - 34 - 86
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT ALL - CAST( - 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - CAST ( - 26 AS INTEGER )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT 36 + + CAST( NULL AS SIGNED ) * 84 * + ( - + COUNT( * ) ) - + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT 36 + + CAST ( NULL AS INTEGER ) * 84 * + ( - + COUNT ( * ) ) - + 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT - MIN( - ( + 71 ) )
----
71

skipif mysql # not compatible
query I rowsort label-9750
SELECT - MIN ( - ( + 71 ) )
----
71

query I rowsort
SELECT DISTINCT + 32 * + 24
----
768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9752
SELECT DISTINCT 20 * - CASE ( 99 ) WHEN + + MAX( ALL - - 86 ) THEN - - COALESCE ( + - 13, COUNT( * ), - - COUNT( * ) + + ( - 27 ) ) WHEN - 12 * 60 - + 27 - + CAST( ( - - 21 ) AS SIGNED ) + - 23 THEN + 5 END + + - 13 + - 76 * 87 / + COUNT( 70 ) + + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT 20 * - CASE ( 99 ) WHEN + + MAX ( ALL - - 86 ) THEN - - COALESCE ( + - 13, COUNT ( * ), - - COUNT ( * ) + + ( - 27 ) ) WHEN - 12 * 60 - + 27 - + CAST ( ( - - 21 ) AS INTEGER ) + - 23 THEN + 5 END + + - 13 + - 76 * 87 / + COUNT ( 70 ) + + 8 AS col2
----
NULL

query I rowsort
SELECT ALL + 14 * 30
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT MAX( ( + 85 ) ) * 49 * 27 - MAX( + 99 ) * - + 80 AS col1
----
120375

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT MAX ( ( + 85 ) ) * 49 * 27 - MAX ( + 99 ) * - + 80 AS col1
----
120375

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT DISTINCT + 33 * + + 89 * COALESCE ( + 34, - 89 DIV 76 + + 58 ) * - 38 AS col2
----
-3794604

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT + 33 * + + 89 * COALESCE ( + 34, - 89 / 76 + + 58 ) * - 38 AS col2
----
-3794604

query I rowsort
SELECT ALL - 89 * + 49 * + 69 * + - 23 - + - 97 * + - 6 col2
----
6920325

query I rowsort
SELECT ALL - ( - - 35 )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9758
SELECT + ( + 39 ) DIV + + ( + - 80 ) + 51 * + COUNT( * ) + - + ( + 69 ) * COUNT( * ) * - 33
----
2328

skipif mysql # not compatible
query I rowsort label-9758
SELECT + ( + 39 ) / + + ( + - 80 ) + 51 * + COUNT ( * ) + - + ( + 69 ) * COUNT ( * ) * - 33
----
2328

query II rowsort
SELECT 76 + + 41 + - 39 + - 21 AS col1, - 82 AS col1
----
57
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL + COUNT( * ) - + 63 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL + COUNT ( * ) - + 63 AS col0
----
-62

query I rowsort
SELECT 86 * + 95
----
8170

onlyif mysql # aggregate syntax: 
query II rowsort label-9762
SELECT 27 + - COUNT( + - 35 ) + + + 39 col0, + NULLIF ( - - COUNT( * ), - 16 + + 91 * + - COUNT( * ) ) + - COUNT( NULLIF ( - + 74, + 96 ) )
----
65
0

skipif mysql # not compatible
query II rowsort label-9762
SELECT 27 + - COUNT ( + - 35 ) + + + 39 col0, + NULLIF ( - - COUNT ( * ), - 16 + + 91 * + - COUNT ( * ) ) + - COUNT ( NULLIF ( - + 74, + 96 ) )
----
65
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9763
SELECT ALL - - ( COUNT( * ) ) AS col1, 24 + + 15
----
1
39

skipif mysql # not compatible
query II rowsort label-9763
SELECT ALL - - ( COUNT ( * ) ) AS col1, 24 + + 15
----
1
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT COUNT( * ) * - - 54, 67 AS col0
----
54
67

skipif mysql # not compatible
query II rowsort label-9764
SELECT COUNT ( * ) * - - 54, 67 AS col0
----
54
67

query I rowsort
SELECT DISTINCT + - 23 * - AVG ( CASE 31 WHEN 20 * 51 * + ( 73 ) + 5 THEN NULL WHEN 64 THEN + ( - 46 ) WHEN - 96 - 44 + - 41 * - 85 / + 69 THEN NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL - - COALESCE ( + COUNT( * ), + 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - - COALESCE ( + COUNT ( * ), + 95 ) AS col1
----
1

query I rowsort
SELECT - - 75 + 76
----
151

query I rowsort
SELECT ALL + 64 * 37
----
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT + - SUM( ALL + 83 ) + - 87 + - - 26 col2
----
-144

skipif mysql # not compatible
query I rowsort label-9769
SELECT + - SUM ( ALL + 83 ) + - 87 + - - 26 col2
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9770
SELECT DISTINCT 76 + + CAST( 56 AS SIGNED ) + + 79 * + - COUNT( * ) col1
----
53

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT 76 + + CAST ( 56 AS INTEGER ) + + 79 * + - COUNT ( * ) col1
----
53

query I rowsort
SELECT DISTINCT - - 18 + - 51 - 30
----
-63

query I rowsort
SELECT + 64 + 77 AS col2
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-9773
SELECT ALL 33 + - SUM( - - 90 ) - MAX( ALL + 62 ) AS col2, ( 71 ) AS col2
----
-119
71

skipif mysql # not compatible
query II rowsort label-9773
SELECT ALL 33 + - SUM ( - - 90 ) - MAX ( ALL + 62 ) AS col2, ( 71 ) AS col2
----
-119
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9774
SELECT DISTINCT + CASE + 45 WHEN ( 56 ) THEN + - COALESCE ( CAST( NULL AS SIGNED ), + + ( - CAST( NULL AS SIGNED ) ), - 95 / 86 * + 7 + - + 61 ) * + 40 WHEN - + 92 THEN NULL END, 73 * - + 92 + + 13 * - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9774
SELECT DISTINCT + CASE + 45 WHEN ( 56 ) THEN + - COALESCE ( CAST ( NULL AS INTEGER ), + + ( - CAST ( NULL AS INTEGER ) ), - 95 / 86 * + 7 + - + 61 ) * + 40 WHEN - + 92 THEN NULL END, 73 * - + 92 + + 13 * - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL + COUNT( * ) + + 53 * + + COUNT( * ) * 73
----
3870

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL + COUNT ( * ) + + 53 * + + COUNT ( * ) * 73
----
3870

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT + COALESCE ( 71, COUNT( * ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9776
SELECT + COALESCE ( 71, COUNT ( * ) ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9777
SELECT ALL - 37 DIV + + 64 - - 12 + 24 AS col2, COUNT( * ) * - COUNT( * ) AS col1
----
36
-1

skipif mysql # not compatible
query II rowsort label-9777
SELECT ALL - 37 / + + 64 - - 12 + 24 AS col2, COUNT ( * ) * - COUNT ( * ) AS col1
----
36
-1

query I rowsort
SELECT + - 32 + + + 33 + 59
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT + 67 + + ( - 96 ) + 5 * - COUNT( DISTINCT - 22 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-9779
SELECT + 67 + + ( - 96 ) + 5 * - COUNT ( DISTINCT - 22 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT + CASE + 55 WHEN + 55 THEN - 12 WHEN 9 + - COALESCE ( + 93, - + 35 ) THEN NULL ELSE 39 END * + - 36 * - + 71 + - COUNT( * ) * + + COALESCE ( + + COUNT( * ), 96 * - + NULLIF ( - 70, + 5 ) - + 66 - COALESCE ( 13, - + MAX( + - 8 ) * - 96 + - 39, + 90 ) ) AS col2
----
-30673

skipif mysql # not compatible
query I rowsort label-9780
SELECT + CASE + 55 WHEN + 55 THEN - 12 WHEN 9 + - COALESCE ( + 93, - + 35 ) THEN NULL ELSE 39 END * + - 36 * - + 71 + - COUNT ( * ) * + + COALESCE ( + + COUNT ( * ), 96 * - + NULLIF ( - 70, + 5 ) - + 66 - COALESCE ( 13, - + MAX ( + - 8 ) * - 96 + - 39, + 90 ) ) AS col2
----
-30673

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT 79 + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT 79 + COUNT ( * ) AS col2
----
80

query II rowsort
SELECT 75 AS col0, + 16
----
75
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT + NULLIF ( - + 90, - - 66 + 68 ) + + + CAST( 97 AS SIGNED ) - + ( 83 ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-9783
SELECT + NULLIF ( - + 90, - - 66 + 68 ) + + + CAST ( 97 AS INTEGER ) - + ( 83 ) col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT 43 - - 60 + + + 79 + 33 * - + SUM( 24 ) / - - CASE 61 WHEN + + 8 THEN - 86 END / 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT 43 - - 60 + + + 79 + 33 * - + SUM ( 24 ) / - - CASE 61 WHEN + + 8 THEN - 86 END / 18 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL 2 * MIN( ALL - + 93 ) AS col1
----
-186

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL 2 * MIN ( ALL - + 93 ) AS col1
----
-186

query I rowsort
SELECT + 13 + - 49 AS col0
----
-36

query I rowsort
SELECT ALL 78 * - - 12 * - 56
----
-52416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9788
SELECT + CAST( 9 AS SIGNED ) + + MAX( - CASE - 45 WHEN - + 66 - + 30 THEN + - 42 WHEN + + 23 THEN 74 * + 56 * ( ( + - 98 ) ) * + + 19 END ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT + CAST ( 9 AS INTEGER ) + + MAX ( - CASE - 45 WHEN - + 66 - + 30 THEN + - 42 WHEN + + 23 THEN 74 * + 56 * ( ( + - 98 ) ) * + + 19 END ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ( + MIN( - 29 ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9789
SELECT ( + MIN ( - 29 ) ) AS col2
----
-29

query I rowsort
SELECT - 83 + 86 AS col2
----
3

query I rowsort
SELECT - 42 * + 88 AS col0
----
-3696

query I rowsort
SELECT + CASE + 45 WHEN - 26 / + + 45 - - 60 * - + ( 22 ) + + 57 THEN + 67 * 38 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9793
SELECT ALL + COALESCE ( + 82, - + 72 + ( - 45 ) + + 9 + + - 80 * + 70 * - ( - 51 ) DIV - 23 + - 10, CASE + - 1 WHEN + 97 * - 77 + 3 + 46 * - NULLIF ( + 3, + 34 ) THEN - 24 ELSE NULL END * - COUNT( ALL - 89 ) + - 12 - - 60 * + 36 + - 50 * + NULLIF ( 46, + 63 * 51 ) + + 65 ) col0
----
82

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL + COALESCE ( + 82, - + 72 + ( - 45 ) + + 9 + + - 80 * + 70 * - ( - 51 ) / - 23 + - 10, CASE + - 1 WHEN + 97 * - 77 + 3 + 46 * - NULLIF ( + 3, + 34 ) THEN - 24 ELSE NULL END * - COUNT ( ALL - 89 ) + - 12 - - 60 * + 36 + - 50 * + NULLIF ( 46, + 63 * 51 ) + + 65 ) col0
----
82

query I rowsort
SELECT ( + - 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9795
SELECT - COUNT( * ) DIV 56 + - + 26
----
-26

skipif mysql # not compatible
query I rowsort label-9795
SELECT - COUNT ( * ) / 56 + - + 26
----
-26

query I rowsort
SELECT + 6 * + 30
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT - 12 + + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9797
SELECT - 12 + + COUNT ( * )
----
-11

query I rowsort
SELECT ALL - 84 * ( 27 )
----
-2268

query I rowsort
SELECT - 24 + + - 37 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT ALL 29 / 32 / 59 / - - CASE 73 WHEN + 15 THEN - COUNT( - - 38 ) WHEN + 84 THEN + ( COUNT( * ) ) + + 69 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL 29 / 32 / 59 / - - CASE 73 WHEN + 15 THEN - COUNT ( - - 38 ) WHEN + 84 THEN + ( COUNT ( * ) ) + + 69 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL + MIN( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL + MIN ( - 23 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9802
SELECT - COUNT( * ) * - - 11 - CASE - 0 WHEN CAST( 30 AS DECIMAL ) * + 45 THEN + + 49 END + 75 + - 68 / - 26 * - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT - COUNT ( * ) * - - 11 - CASE - 0 WHEN CAST ( 30 AS REAL ) * + 45 THEN + + 49 END + 75 + - 68 / - 26 * - + 72
----
NULL

query I rowsort
SELECT ALL - + 8 * 49 AS col1
----
-392

query I rowsort
SELECT ALL + - 76 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT MAX( ALL + - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-9805
SELECT MAX ( ALL + - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT + + COUNT( ALL + + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-9806
SELECT + + COUNT ( ALL + + 88 )
----
1

query II rowsort
SELECT - + 73 + - 83 + + 75, - 91 * + 4 AS col1
----
-81
-364

query II rowsort
SELECT - - 4 * - 38 + + ( - 44 ) * + 59, 55 col0
----
-2748
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9809
SELECT + - 52, 10 - + - COUNT( * ) + 33 - - - 91 AS col2
----
-52
-47

skipif mysql # not compatible
query II rowsort label-9809
SELECT + - 52, 10 - + - COUNT ( * ) + 33 - - - 91 AS col2
----
-52
-47

query I rowsort
SELECT - + 29 * 94 + + 1
----
-2725

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL COUNT( * ) * 58 + + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL COUNT ( * ) * 58 + + + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - 35 * + NULLIF ( - 96, NULLIF ( - 60, + - MAX( + - 9 ) ) * + + 28 ) * + 26 + + - 59 AS col0
----
87301

skipif mysql # not compatible
query I rowsort label-9812
SELECT - 35 * + NULLIF ( - 96, NULLIF ( - 60, + - MAX ( + - 9 ) ) * + + 28 ) * + 26 + + - 59 AS col0
----
87301

onlyif mysql # aggregate syntax: 
query II rowsort label-9813
SELECT DISTINCT + - 9 AS col1, COUNT( * ) + + + SUM( ALL 14 ) + 29 * + 15 + 97
----
-9
547

skipif mysql # not compatible
query II rowsort label-9813
SELECT DISTINCT + - 9 AS col1, COUNT ( * ) + + + SUM ( ALL 14 ) + 29 * + 15 + 97
----
-9
547

query I rowsort
SELECT DISTINCT ( 84 ) AS col2
----
84

query I rowsort
SELECT - + ( 52 )
----
-52

query I rowsort
SELECT ALL - - 53 + - + 58 - + + 51 AS col1
----
-56

query I rowsort
SELECT + - 97 * + 16
----
-1552

query I rowsort
SELECT - + 28 + 32 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT - MIN( - 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9819
SELECT - MIN ( - 72 ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT + CASE - CAST( - 34 AS SIGNED ) WHEN - - 37 THEN NULL WHEN - NULLIF ( + 30, - 33 + 24 + - 79 / + - 79 ) - - 16 * - 84 + - 93 + - CAST( NULL AS SIGNED ) - + - AVG ( DISTINCT + + 66 ) * + 92 * + + 59 THEN 11 + + 96 - 25 - - - ( - + COUNT( * ) ) ELSE NULL END + SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT + CASE - CAST ( - 34 AS INTEGER ) WHEN - - 37 THEN NULL WHEN - NULLIF ( + 30, - 33 + 24 + - 79 / + - 79 ) - - 16 * - 84 + - 93 + - CAST ( NULL AS INTEGER ) - + - AVG ( DISTINCT + + 66 ) * + 92 * + + 59 THEN 11 + + 96 - 25 - - - ( - + COUNT ( * ) ) ELSE NULL END + SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 8 * - + 80 AS col0
----
-640

query I rowsort
SELECT - ( - - ( + 98 ) )
----
-98

query I rowsort
SELECT ALL 90 - + + 19 + + 30 * + - 10 AS col0
----
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT + 72 - - 93 - + COUNT( * ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-9824
SELECT + 72 - - 93 - + COUNT ( * ) AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL 84 * + - ( - - COUNT( * ) ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL 84 * + - ( - - COUNT ( * ) ) col2
----
-84

query I rowsort
SELECT + 90 * + + 98 * + 53
----
467460

query II rowsort
SELECT ALL 80, + 6 * - 2 + - + 9 + + - 50 + - + 10 + + 54 + - - 25 col1
----
80
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT DISTINCT 31 DIV + + 11
----
2

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT 31 / + + 11
----
2

query I rowsort
SELECT - 36 + - 62 * - 65
----
3994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9830
SELECT + 42 DIV SUM( ALL 73 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9830
SELECT + 42 / SUM ( ALL 73 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT + MIN( - 26 ) * + 72 * + COUNT( * ) AS col0
----
-1872

skipif mysql # not compatible
query I rowsort label-9831
SELECT + MIN ( - 26 ) * + 72 * + COUNT ( * ) AS col0
----
-1872

query II rowsort
SELECT - ( - 63 ), ( + 82 ) AS col0
----
63
82

query I rowsort
SELECT + 24 * 9
----
216

query I rowsort
SELECT ALL 88 * - 69 * - 75 AS col2
----
455400

query I rowsort
SELECT DISTINCT 47 * - 81
----
-3807

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT ALL + ( + 42 ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + ( + 42 ) / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT - 69 + + COUNT( * ) + - - 21
----
-47

skipif mysql # not compatible
query I rowsort label-9837
SELECT - 69 + + COUNT ( * ) + - - 21
----
-47

query II rowsort
SELECT ALL - - 8 AS col2, - 28 AS col0
----
8
-28

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9839
SELECT COALESCE ( + 43, 1 DIV - - 82 + + CASE - 13 WHEN 88 THEN + - 46 WHEN + + 71 * ( - COALESCE ( + - 61, - + CASE - - 58 WHEN + - 62 THEN 97 - - - 9 WHEN - 18 + - + CAST( NULL AS DECIMAL ) * 83 THEN - - 15 END, 13 * + - 26 DIV - 50 + - 16 - + - 14 ) ) + + - 48 - 48 * 47 + + 41 - - + 46 * 93 THEN NULL END, 57 * 62 - + ( 0 - + 61 ) )
----
43

skipif mysql # not compatible
query I rowsort label-9839
SELECT COALESCE ( + 43, 1 / - - 82 + + CASE - 13 WHEN 88 THEN + - 46 WHEN + + 71 * ( - COALESCE ( + - 61, - + CASE - - 58 WHEN + - 62 THEN 97 - - - 9 WHEN - 18 + - + CAST ( NULL AS REAL ) * 83 THEN - - 15 END, 13 * + - 26 / - 50 + - 16 - + - 14 ) ) + + - 48 - 48 * 47 + + 41 - - + 46 * 93 THEN NULL END, 57 * 62 - + ( 0 - + 61 ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT - 66 * + 7 * 51 + - COUNT( ALL - - 37 ) * + 80 * + 17
----
-24922

skipif mysql # not compatible
query I rowsort label-9840
SELECT - 66 * + 7 * 51 + - COUNT ( ALL - - 37 ) * + 80 * + 17
----
-24922

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ( + 68 ) + SUM( ALL 29 ) + 0 col2
----
97

skipif mysql # not compatible
query I rowsort label-9841
SELECT ( + 68 ) + SUM ( ALL 29 ) + 0 col2
----
97

query I rowsort
SELECT ALL - 12 + - + 92
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT - 54 * + MIN( DISTINCT 72 ) col1
----
-3888

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - 54 * + MIN ( DISTINCT 72 ) col1
----
-3888

query I rowsort
SELECT + 96 * + 70 - + 90 * + 90 AS col1
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT 85 + - SUM( - 88 ) + - SUM( 75 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9845
SELECT 85 + - SUM ( - 88 ) + - SUM ( 75 ) AS col2
----
98

query II rowsort
SELECT DISTINCT - 87 AS col0, - 24
----
-87
-24

query I rowsort
SELECT + 35 * - 86
----
-3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9848
SELECT DISTINCT + 1 DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT + 1 / COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9849
SELECT 96 * + 83, - 51 + + 85 + + CAST( NULL AS SIGNED ) + + 84 * - 87 * - COUNT( * ) * + - CAST( NULL AS SIGNED ) col0
----
7968
NULL

skipif mysql # not compatible
query II rowsort label-9849
SELECT 96 * + 83, - 51 + + 85 + + CAST ( NULL AS INTEGER ) + + 84 * - 87 * - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) col0
----
7968
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9850
SELECT 15 + CAST( NULL AS SIGNED ) AS col0, + 42 + - MAX( - 54 ) + + 86 * 5 AS col2
----
NULL
526

skipif mysql # not compatible
query II rowsort label-9850
SELECT 15 + CAST ( NULL AS INTEGER ) AS col0, + 42 + - MAX ( - 54 ) + + 86 * 5 AS col2
----
NULL
526

query II rowsort
SELECT 86 * + 64 AS col0, + 23 + + + 49 * + 70
----
5504
3453

query II rowsort
SELECT 22 * 20 AS col2, 40 AS col2
----
440
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9853
SELECT COUNT( * ) + + + 86 + + + 22 + - SUM( - + 75 ) AS col0, + 3 + COUNT( * ) + 25
----
184
29

skipif mysql # not compatible
query II rowsort label-9853
SELECT COUNT ( * ) + + + 86 + + + 22 + - SUM ( - + 75 ) AS col0, + 3 + COUNT ( * ) + 25
----
184
29

query II rowsort
SELECT ALL + 84 + + + 70, - 22 + 57 AS col2
----
154
35

query I rowsort
SELECT ALL - NULLIF ( - 32, + 92 * 41 ) + 1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + 66 + + 37 + - - COUNT( * ) + + - 71
----
33

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + 66 + + 37 + - - COUNT ( * ) + + - 71
----
33

query II rowsort
SELECT 1 * - 13, + 70 col0
----
-13
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT - NULLIF ( + + 35, - - 62 * + 28 ) + 62 DIV + 72 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9858
SELECT - NULLIF ( + + 35, - - 62 * + 28 ) + 62 / + 72 AS col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT DISTINCT + 26 DIV - ( 25 ) + ( + 16 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + 26 / - ( 25 ) + ( + 16 ) AS col0
----
15

query I rowsort
SELECT ALL - - 97 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9861
SELECT DISTINCT - 10 + - CAST( NULL AS SIGNED ) / + COALESCE ( 40, - 31, - 82 * - 60 * COUNT( DISTINCT 62 ) / - 74 + - CAST( NULL AS SIGNED ) - - + 79 - + NULLIF ( + 91, - 83 ) * - 29 * - 7 - 35 + - 26 + + 24, CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT - 10 + - CAST ( NULL AS INTEGER ) / + COALESCE ( 40, - 31, - 82 * - 60 * COUNT ( DISTINCT 62 ) / - 74 + - CAST ( NULL AS INTEGER ) - - + 79 - + NULLIF ( + 91, - 83 ) * - 29 * - 7 - 35 + - 26 + + 24, CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9862
SELECT DISTINCT - + NULLIF ( CAST( - + AVG ( - - CAST( NULL AS SIGNED ) ) AS DECIMAL ), - 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT - + NULLIF ( CAST ( - + AVG ( - - CAST ( NULL AS INTEGER ) ) AS REAL ), - 38 ) AS col1
----
NULL

query II rowsort
SELECT ALL + 76 + + 27, ( + + 98 ) AS col1
----
103
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL + COUNT( * ) * + + 7 * + 90
----
630

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + COUNT ( * ) * + + 7 * + 90
----
630

onlyif mysql # aggregate syntax: 
query II rowsort label-9865
SELECT ALL 86 + + 70 AS col2, ( + COUNT( * ) )
----
156
1

skipif mysql # not compatible
query II rowsort label-9865
SELECT ALL 86 + + 70 AS col2, ( + COUNT ( * ) )
----
156
1

query I rowsort
SELECT ALL 0 + + ( - + NULLIF ( + - 82, - - 14 / - - 2 + - + 20 ) )
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9867
SELECT DISTINCT + 83 - + CAST( NULL AS DECIMAL ) * + - 93 * - + 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT + 83 - + CAST ( NULL AS REAL ) * + - 93 * - + 46 col0
----
NULL

query II rowsort
SELECT DISTINCT - - NULLIF ( 24, 14 ) col2, ( + + ( - + 41 ) ) col2
----
24
-41

query I rowsort
SELECT 51 + + 80 + - 43 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT - CAST( + + 78 AS SIGNED ) + - + 69 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-9870
SELECT - CAST ( + + 78 AS INTEGER ) + - + 69 AS col0
----
-147

query I rowsort
SELECT + 6 * + - 37 AS col1
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT COUNT( * ) * + + ( + - 36 ) + - 97 + + - 72 AS col1
----
-205

skipif mysql # not compatible
query I rowsort label-9872
SELECT COUNT ( * ) * + + ( + - 36 ) + - 97 + + - 72 AS col1
----
-205

query I rowsort
SELECT + COALESCE ( + 99, + 51 ) AS col2
----
99

query I rowsort
SELECT DISTINCT 20 * - 79
----
-1580

onlyif mysql # aggregate syntax: 
query II rowsort label-9875
SELECT - 15 col0, SUM( ALL + - 55 ) + - - 29 - CASE - + 99 WHEN + 59 * 37 + - 49 * + 27 THEN - 44 END * AVG ( ALL - 57 ) / + MIN( DISTINCT - 21 ) * 79 + 52 - + + ( + - 67 ) / + ( - AVG ( - 56 ) ) * - ( - 25 ) + + - 82
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-9875
SELECT - 15 col0, SUM ( ALL + - 55 ) + - - 29 - CASE - + 99 WHEN + 59 * 37 + - 49 * + 27 THEN - 44 END * AVG ( ALL - 57 ) / + MIN ( DISTINCT - 21 ) * 79 + 52 - + + ( + - 67 ) / + ( - AVG ( - 56 ) ) * - ( - 25 ) + + - 82
----
-15
NULL

query I rowsort
SELECT ALL 55 * - + 7 col2
----
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT ALL 73 * - + CAST( + 45 AS SIGNED ) col1
----
-3285

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL 73 * - + CAST ( + 45 AS INTEGER ) col1
----
-3285

query I rowsort
SELECT ( - - 91 ) * - + 62
----
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT 70 + 15 * + NULLIF ( 29, 71 ) * COUNT( * ) + + 86
----
591

skipif mysql # not compatible
query I rowsort label-9879
SELECT 70 + 15 * + NULLIF ( 29, 71 ) * COUNT ( * ) + + 86
----
591

query I rowsort
SELECT 12 + - 58 - - - 36 * 83
----
-3034

query I rowsort
SELECT 22 + + + 70
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9882
SELECT ALL + 52 + + + COUNT( * ) DIV - 85, - 72 * + 77 * + CAST( 67 AS SIGNED ) AS col2
----
52
-371448

skipif mysql # not compatible
query II rowsort label-9882
SELECT ALL + 52 + + + COUNT ( * ) / - 85, - 72 * + 77 * + CAST ( 67 AS INTEGER ) AS col2
----
52
-371448

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT 5 - + + 30 DIV - 87 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9883
SELECT 5 - + + 30 / - 87 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT ALL + CAST( NULL AS SIGNED ) * - - 85 * + 37 * - + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 85 * + 37 * - + 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL + 52 + SUM( + 23 )
----
75

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + 52 + SUM ( + 23 )
----
75

query I rowsort
SELECT - 77 * NULLIF ( 83, + 20 * + 29 ) * - 60 + - 64
----
383396

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9887
SELECT 1, - CAST( - 21 AS SIGNED ) + - 54 AS col1
----
1
-33

skipif mysql # not compatible
query II rowsort label-9887
SELECT 1, - CAST ( - 21 AS INTEGER ) + - 54 AS col1
----
1
-33

query I rowsort
SELECT ALL + 62 * + - 34 AS col2
----
-2108

query II rowsort
SELECT 15 AS col0, 48
----
15
48

query I rowsort
SELECT + 47 * + - 4
----
-188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9891
SELECT - COALESCE ( 47, - - 19 DIV - - 27 + + - NULLIF ( + - ( - + COUNT( * ) ), ( - 70 ) * + + 27 + + + NULLIF ( - 66, - 32 - 4 ) - - + 14 + + 12 DIV - 60 * 39 * + 54 ) ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-9891
SELECT - COALESCE ( 47, - - 19 / - - 27 + + - NULLIF ( + - ( - + COUNT ( * ) ), ( - 70 ) * + + 27 + + + NULLIF ( - 66, - 32 - 4 ) - - + 14 + + 12 / - 60 * 39 * + 54 ) ) col1
----
-47

query I rowsort
SELECT ALL - 6 + 70 AS col0
----
64

query I rowsort
SELECT ALL + + 22 * + 67
----
1474

query II rowsort
SELECT 83, + 55 AS col1
----
83
55

query II rowsort
SELECT ALL + - 31 AS col0, - 13 col0
----
-31
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9896
SELECT + - 59 * 58 * 1 AS col2, 9 * - 38 + - 49 * + + 40 + + CAST( - + 62 AS SIGNED )
----
-3422
-2364

skipif mysql # not compatible
query II rowsort label-9896
SELECT + - 59 * 58 * 1 AS col2, 9 * - 38 + - 49 * + + 40 + + CAST ( - + 62 AS INTEGER )
----
-3422
-2364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT ALL - 21 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL - 21 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 21 * + - 78 - + 29 * 41 + - 93 AS col0
----
-2920

query I rowsort
SELECT ALL - 29 * 91 + - - 89
----
-2550

query I rowsort
SELECT DISTINCT - 27 * + 6 AS col2
----
-162

query I rowsort
SELECT ALL 0 * - ( + 84 )
----
0

query I rowsort
SELECT + 50 + - + 95 + - 99
----
-144

query I rowsort
SELECT - 68 * - 18 - - 40 AS col2
----
1264

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + 14 + - MIN( DISTINCT + 11 )
----
3

skipif mysql # not compatible
query I rowsort label-9904
SELECT + 14 + - MIN ( DISTINCT + 11 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT MAX( ALL + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9905
SELECT MAX ( ALL + 51 ) AS col0
----
51

query I rowsort
SELECT - 96 + - 23 col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL COALESCE ( - 8, - - 0, + 65 ) + NULLIF ( + 16, - MIN( ALL - 62 ) )
----
8

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL COALESCE ( - 8, - - 0, + 65 ) + NULLIF ( + 16, - MIN ( ALL - 62 ) )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT DISTINCT 7 + - - ( - ( + - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT 7 + - - ( - ( + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9909
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + AVG ( ALL - 90 ) + - 73 AS col2, 44 DIV + COUNT( * )
----
NULL
44

skipif mysql # not compatible
query II rowsort label-9909
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + AVG ( ALL - 90 ) + - 73 AS col2, 44 / + COUNT ( * )
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT + 65 + - 24 + - ( + COUNT( * ) ) + - + 1 + + 88 * + 71 * 96
----
599847

skipif mysql # not compatible
query I rowsort label-9910
SELECT + 65 + - 24 + - ( + COUNT ( * ) ) + - + 1 + + 88 * + 71 * 96
----
599847

query I rowsort
SELECT + 24 * 93 AS col0
----
2232

onlyif mysql # aggregate syntax: 
query II rowsort label-9912
SELECT - COUNT( * ) * + + NULLIF ( + 46, NULLIF ( - COUNT( * ), + - 0 * - + 27 + + 13 + 29 ) ) AS col2, 36 * + 96 AS col1
----
-46
3456

skipif mysql # not compatible
query II rowsort label-9912
SELECT - COUNT ( * ) * + + NULLIF ( + 46, NULLIF ( - COUNT ( * ), + - 0 * - + 27 + + 13 + 29 ) ) AS col2, 36 * + 96 AS col1
----
-46
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT - NULLIF ( MAX( ALL + - 11 ), - COUNT( * ) + - 80 / - 51 ) + ( - 20 )
----
-9

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - NULLIF ( MAX ( ALL + - 11 ), - COUNT ( * ) + - 80 / - 51 ) + ( - 20 )
----
-9

query I rowsort
SELECT - 63 * + 20 AS col1
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9915
SELECT DISTINCT + NULLIF ( + COUNT( * ), - SUM( - 28 ) ) AS col1, - ( - - SUM( + CASE + 7 WHEN + 1 THEN ( - + 9 ) * - 42 * - 75 - + - 78 + + + 7 + + 40 * 24 END ) ) - - 78 + + + 22 / CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9915
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - SUM ( - 28 ) ) AS col1, - ( - - SUM ( + CASE + 7 WHEN + 1 THEN ( - + 9 ) * - 42 * - 75 - + - 78 + + + 7 + + 40 * 24 END ) ) - - 78 + + + 22 / CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9916
SELECT DISTINCT + 49 - + 94 + + 97 DIV - 52 DIV - COALESCE ( - COUNT( * ), ( - - 34 ) - + AVG ( 68 ), - + 57 + + 61 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT + 49 - + 94 + + 97 / - 52 / - COALESCE ( - COUNT ( * ), ( - - 34 ) - + AVG ( 68 ), - + 57 + + 61 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT - 85 + - SUM( - + 50 ) * + 12 AS col2
----
515

skipif mysql # not compatible
query I rowsort label-9917
SELECT - 85 + - SUM ( - + 50 ) * + 12 AS col2
----
515

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9918
SELECT ALL - 16 DIV COUNT( * ) AS col1, 89 AS col2
----
-16
89

skipif mysql # not compatible
query II rowsort label-9918
SELECT ALL - 16 / COUNT ( * ) AS col1, 89 AS col2
----
-16
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9919
SELECT ALL - + MAX( + 80 ) * + - ( + - 73 ) AS col0, COUNT( * ) * + + 92 * 68 * 10 + - 74 + - + 92
----
-5840
62394

skipif mysql # not compatible
query II rowsort label-9919
SELECT ALL - + MAX ( + 80 ) * + - ( + - 73 ) AS col0, COUNT ( * ) * + + 92 * 68 * 10 + - 74 + - + 92
----
-5840
62394

query I rowsort
SELECT - + 88 + + - 49 + - - 35 * + - 77 + - 34 AS col2
----
-2866

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT + COUNT( ALL + + 82 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9921
SELECT + COUNT ( ALL + + 82 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT - 90 * - + SUM( - - 39 ) + 34 AS col1, 99 AS col2
----
3544
99

skipif mysql # not compatible
query II rowsort label-9922
SELECT - 90 * - + SUM ( - - 39 ) + 34 AS col1, 99 AS col2
----
3544
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT ALL + 75 * 71 DIV MIN( DISTINCT 79 ) * + 7 + 83 AS col1
----
552

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + 75 * 71 / MIN ( DISTINCT 79 ) * + 7 + 83 AS col1
----
552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9924
SELECT + - 52 DIV - 62 + 20 * COUNT( * ) DIV - 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9924
SELECT + - 52 / - 62 + 20 * COUNT ( * ) / - 27 AS col0
----
0

query I rowsort
SELECT ALL + + 84 AS col2
----
84

query I rowsort
SELECT + + 54 * 41 * + 72
----
159408

query I rowsort
SELECT ALL 71 * + - 80 + - - 33 AS col1
----
-5647

query I rowsort
SELECT - 38 * 63
----
-2394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9929
SELECT - 55 DIV 93 * + NULLIF ( - 72, + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT - 55 / 93 * + NULLIF ( - 72, + - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT + COUNT( - - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9930
SELECT + COUNT ( - - 61 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT - 2 * - + 77 + - 36 + + COUNT( * ) + + COUNT( * ) * - 37
----
82

skipif mysql # not compatible
query I rowsort label-9931
SELECT - 2 * - + 77 + - 36 + + COUNT ( * ) + + COUNT ( * ) * - 37
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + COUNT( - + 48 )
----
1

skipif mysql # not compatible
query I rowsort label-9932
SELECT + COUNT ( - + 48 )
----
1

query I rowsort
SELECT ( + 8 ) AS col0
----
8

query I rowsort
SELECT NULLIF ( - 73, - 2 ) AS col2
----
-73

query I rowsort
SELECT ALL 19 * - 58
----
-1102

query I rowsort
SELECT ALL + ( - + 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9937
SELECT 15 DIV + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-9937
SELECT 15 / + COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ALL - COUNT( * ) + - + 30
----
-31

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL - COUNT ( * ) + - + 30
----
-31

query I rowsort
SELECT ( 85 ) * + - 54 AS col2
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT MIN( - 28 ) - COALESCE ( - 26, 35 )
----
-2

skipif mysql # not compatible
query I rowsort label-9940
SELECT MIN ( - 28 ) - COALESCE ( - 26, 35 )
----
-2

query II rowsort
SELECT - 88, 9 AS col2
----
-88
9

query I rowsort
SELECT 5 + - - COALESCE ( + 21, + 30 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9943
SELECT - 88 * + + 13 * - 13 + - ( - SUM( 2 ) ) AS col1, + 30 * - + SUM( + - 75 ) + 7 + - 83 + - 4
----
14874
2170

skipif mysql # not compatible
query II rowsort label-9943
SELECT - 88 * + + 13 * - 13 + - ( - SUM ( 2 ) ) AS col1, + 30 * - + SUM ( + - 75 ) + 7 + - 83 + - 4
----
14874
2170

query I rowsort
SELECT 56 + 46 AS col0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9945
SELECT DISTINCT COUNT( * ) - - MAX( DISTINCT - 35 ) DIV + 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT COUNT ( * ) - - MAX ( DISTINCT - 35 ) / + 34 AS col1
----
0

query I rowsort
SELECT DISTINCT 48 * - 61
----
-2928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT + COALESCE ( + 29, + + 48 * + 18 DIV 43 + 56 - COALESCE ( + 4, 1 + 57 ) + + COUNT( * ) * + 13 ) * + 31
----
899

skipif mysql # not compatible
query I rowsort label-9947
SELECT + COALESCE ( + 29, + + 48 * + 18 / 43 + 56 - COALESCE ( + 4, 1 + 57 ) + + COUNT ( * ) * + 13 ) * + 31
----
899

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT DISTINCT COUNT( DISTINCT + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT COUNT ( DISTINCT + 73 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9949
SELECT DISTINCT 75 - - COUNT( * ) + ( - COUNT( * ) ) DIV 25
----
76

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT 75 - - COUNT ( * ) + ( - COUNT ( * ) ) / 25
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9950
SELECT ALL 62, ( + COUNT( * ) ) * - + 17 * 55 AS col1
----
62
-935

skipif mysql # not compatible
query II rowsort label-9950
SELECT ALL 62, ( + COUNT ( * ) ) * - + 17 * 55 AS col1
----
62
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT 5 * + COALESCE ( 92, - 78 * - + 21 * + 9 ) + + 84 * + 92 - + - COUNT( DISTINCT + ( - - 24 ) )
----
8189

skipif mysql # not compatible
query I rowsort label-9951
SELECT 5 * + COALESCE ( 92, - 78 * - + 21 * + 9 ) + + 84 * + 92 - + - COUNT ( DISTINCT + ( - - 24 ) )
----
8189

query I rowsort
SELECT 49 * 73 + + - 98
----
3479

query I rowsort
SELECT 36 - - 16 + + 50 * + + 55
----
2802

query I rowsort
SELECT DISTINCT - - 51 AS col1
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-9955
SELECT DISTINCT - + 4 DIV - ( + 20 ) + - 69 * 81 AS col1, 80 - - 58 AS col2
----
-5589
138

skipif mysql # not compatible
query II rowsort label-9955
SELECT DISTINCT - + 4 / - ( + 20 ) + - 69 * 81 AS col1, 80 - - 58 AS col2
----
-5589
138

query I rowsort
SELECT 28 * - ( + 53 ) + - 90
----
-1574

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL - 21 * + 37 - - MIN( DISTINCT + 68 ) AS col0
----
-709

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL - 21 * + 37 - - MIN ( DISTINCT + 68 ) AS col0
----
-709

onlyif mysql # DIV for integer division: 
query II rowsort label-9958
SELECT DISTINCT 78 DIV - ( + 68 ) col0, + 72
----
-1
72

skipif mysql # not compatible
query II rowsort label-9958
SELECT DISTINCT 78 / - ( + 68 ) col0, + 72
----
-1
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9959
SELECT + + COUNT( * ) DIV + + 69 + + 22
----
22

skipif mysql # not compatible
query I rowsort label-9959
SELECT + + COUNT ( * ) / + + 69 + + 22
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT + 26 DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 26 / + 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9961
SELECT ALL + ( - + COUNT( ALL + - 14 ) ) + + CAST( NULL AS DECIMAL ) + 66 - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + ( - + COUNT ( ALL + - 14 ) ) + + CAST ( NULL AS REAL ) + 66 - + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT 8 + + + 56 * + + 94 + COALESCE ( + 61, 3, + - COUNT( * ) ) AS col0
----
5333

skipif mysql # not compatible
query I rowsort label-9962
SELECT 8 + + + 56 * + + 94 + COALESCE ( + 61, 3, + - COUNT ( * ) ) AS col0
----
5333

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9963
SELECT + 59 AS col2, MIN( + 74 ) DIV 95 * + COUNT( * ) AS col1
----
59
0

skipif mysql # not compatible
query II rowsort label-9963
SELECT + 59 AS col2, MIN ( + 74 ) / 95 * + COUNT ( * ) AS col1
----
59
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT 15 * CAST( - 36 AS SIGNED ) AS col0
----
-540

skipif mysql # not compatible
query I rowsort label-9964
SELECT 15 * CAST ( - 36 AS INTEGER ) AS col0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL - 65 + - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - 65 + - COUNT ( * ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + ( COUNT( * ) ) * - MAX( DISTINCT - + 40 ) + - 55 * - 20 AS col1
----
1140

skipif mysql # not compatible
query I rowsort label-9966
SELECT + ( COUNT ( * ) ) * - MAX ( DISTINCT - + 40 ) + - 55 * - 20 AS col1
----
1140

query I rowsort
SELECT DISTINCT - ( 31 ) AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT 2 DIV - 39 + 47
----
47

skipif mysql # not compatible
query I rowsort label-9968
SELECT 2 / - 39 + 47
----
47

query I rowsort
SELECT DISTINCT - NULLIF ( - 24, + 38 )
----
24

query I rowsort
SELECT 31 * + + 15
----
465

onlyif mysql # aggregate syntax: 
query II rowsort label-9971
SELECT DISTINCT - COALESCE ( + COALESCE ( + COALESCE ( + + NULLIF ( - 45, - + 28 ), + 38 * + 81 + - + 52 - - - 98, + 58 ), + MIN( - 51 ) * 65 + + 16 - ( - 6 ) ), 32 * + 71 + + 3 ) - - 27 AS col1, - NULLIF ( + + 21, 67 - + 50 ) + + 47 AS col0
----
72
26

skipif mysql # not compatible
query II rowsort label-9971
SELECT DISTINCT - COALESCE ( + COALESCE ( + COALESCE ( + + NULLIF ( - 45, - + 28 ), + 38 * + 81 + - + 52 - - - 98, + 58 ), + MIN ( - 51 ) * 65 + + 16 - ( - 6 ) ), 32 * + 71 + + 3 ) - - 27 AS col1, - NULLIF ( + + 21, 67 - + 50 ) + + 47 AS col0
----
72
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9972
SELECT ALL - CAST( - COUNT( ALL + 38 ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - CAST ( - COUNT ( ALL + 38 ) AS INTEGER ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9973
SELECT + 89, 35 / ( + 86 ) + + CAST( NULL AS SIGNED ) / 92 + 26 AS col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-9973
SELECT + 89, 35 / ( + 86 ) + + CAST ( NULL AS INTEGER ) / 92 + 26 AS col0
----
89
NULL

query I rowsort
SELECT 50 + 95 + - 64
----
81

query I rowsort
SELECT ALL - 3 - 95 AS col1
----
-98

query II rowsort
SELECT ALL 51, - ( - 12 ) AS col2
----
51
12

query I rowsort
SELECT ALL + ( 9 ) * + - 69
----
-621

onlyif mysql # aggregate syntax: 
query II rowsort label-9978
SELECT 49 + + 46 + + COUNT( * ) * + 50 AS col0, ( - COUNT( * ) ) AS col0
----
145
-1

skipif mysql # not compatible
query II rowsort label-9978
SELECT 49 + + 46 + + COUNT ( * ) * + 50 AS col0, ( - COUNT ( * ) ) AS col0
----
145
-1

query I rowsort
SELECT ALL - ( - + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - COUNT( * ) + CASE + 78 WHEN 12 + + + 59 / 5 + - + COUNT( * ) THEN - 35 - - 17 WHEN + + 52 + - - 67 THEN + + COALESCE ( + - COUNT( - 41 ), COUNT( * ) ) - - + ( + + 45 ) WHEN + 5 THEN NULL ELSE NULL END * + MIN( 0 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT - COUNT ( * ) + CASE + 78 WHEN 12 + + + 59 / 5 + - + COUNT ( * ) THEN - 35 - - 17 WHEN + + 52 + - - 67 THEN + + COALESCE ( + - COUNT ( - 41 ), COUNT ( * ) ) - - + ( + + 45 ) WHEN + 5 THEN NULL ELSE NULL END * + MIN ( 0 ) col0
----
NULL

query I rowsort
SELECT 82 + 20
----
102

query II rowsort
SELECT ALL 85 AS col0, 96 * - + ( - - 27 )
----
85
-2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9983
SELECT - 8 + 59 - 46 DIV + COUNT( * ) + - + 44 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9983
SELECT - 8 + 59 - 46 / + COUNT ( * ) + - + 44 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-9984
SELECT ALL - 30 AS col1, + COUNT( DISTINCT 42 ) * 64 + - 65 AS col0
----
-30
-1

skipif mysql # not compatible
query II rowsort label-9984
SELECT ALL - 30 AS col1, + COUNT ( DISTINCT 42 ) * 64 + - 65 AS col0
----
-30
-1

query I rowsort
SELECT DISTINCT + 46 col0
----
46

query II rowsort
SELECT ALL 69 AS col0, + 60 AS col1
----
69
60

query I rowsort
SELECT + 56 + 83 AS col1
----
139

query I rowsort
SELECT - - COALESCE ( + ( + 90 ), - - NULLIF ( - 69, - + 11 ), + 13 + 41 * 10 )
----
90

query I rowsort
SELECT ALL - 42 * + 35 col0
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT SUM( - - 66 ) + + - ( + - ( 68 ) ) * + 72
----
4962

skipif mysql # not compatible
query I rowsort label-9990
SELECT SUM ( - - 66 ) + + - ( + - ( 68 ) ) * + 72
----
4962

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT - + SUM( DISTINCT + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-9991
SELECT - + SUM ( DISTINCT + 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9992
SELECT ALL - NULLIF ( - - CAST( + 63 AS SIGNED ), - 72 ) AS col2, 66 * - 74 + + COALESCE ( - 93, - - MIN( ALL - - 87 ) ) AS col0
----
-63
-4977

skipif mysql # not compatible
query II rowsort label-9992
SELECT ALL - NULLIF ( - - CAST ( + 63 AS INTEGER ), - 72 ) AS col2, 66 * - 74 + + COALESCE ( - 93, - - MIN ( ALL - - 87 ) ) AS col0
----
-63
-4977

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - 92 * + CASE + AVG ( ALL 49 ) WHEN + + 2 + ( 52 ) THEN - + 97 WHEN - 61 THEN + MIN( ALL 21 ) ELSE + COUNT( + 0 ) END
----
-92

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - 92 * + CASE + AVG ( ALL 49 ) WHEN + + 2 + ( 52 ) THEN - + 97 WHEN - 61 THEN + MIN ( ALL 21 ) ELSE + COUNT ( + 0 ) END
----
-92

query I rowsort
SELECT 30 * + ( - - 24 )
----
720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9995
SELECT - COALESCE ( + 10, + NULLIF ( + COALESCE ( + - COALESCE ( 72, 12, CAST( NULL AS SIGNED ) ), + 89 DIV - 73 ), - 77 * - 32 ) ) + + 44 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9995
SELECT - COALESCE ( + 10, + NULLIF ( + COALESCE ( + - COALESCE ( 72, 12, CAST ( NULL AS INTEGER ) ), + 89 / - 73 ), - 77 * - 32 ) ) + + 44 AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9996
SELECT - - 21 * - COUNT( * ) - - + 31 + 61 + 43 * + + 41 * + 9 + 14 DIV 32 * + - COUNT( * )
----
15938

skipif mysql # not compatible
query I rowsort label-9996
SELECT - - 21 * - COUNT ( * ) - - + 31 + 61 + 43 * + + 41 * + 9 + 14 / 32 * + - COUNT ( * )
----
15938

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL - COALESCE ( 10, - 73 ) * - + SUM( DISTINCT 46 ) + - 37 AS col1
----
423

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - COALESCE ( 10, - 73 ) * - + SUM ( DISTINCT 46 ) + - 37 AS col1
----
423

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT + COUNT( DISTINCT + + 30 ), + 41 * - 40 AS col0
----
1
-1640

skipif mysql # not compatible
query II rowsort label-9998
SELECT + COUNT ( DISTINCT + + 30 ), + 41 * - 40 AS col0
----
1
-1640

onlyif mysql # DIV for integer division: 
query I rowsort label-9999
SELECT ALL + 76 * - 14 + + 25 + + ( + 37 ) DIV 32 + + 71 + - + 40 * + 80 * 12 * 31 + 74
----
-1191293

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL + 76 * - 14 + + 25 + + ( + 37 ) / 32 + + 71 + - + 40 * + 80 * 12 * 31 + 74
----
-1191293

