sqllogictest
Artifact Content
Not logged in

Artifact ef7b2552173690f10d9a08fd59f1967650da753d:


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 m